Skip to content

Commit fcebfea

Browse files
authored
feat: remove models, add LwM2M API messages (#139)
This removes the model definitions. Going forward, all devices must send in LwM2M. BREAKING CHANGE: support for asset_tracker_v2 protocol is removed.
1 parent f1ed13e commit fcebfea

File tree

120 files changed

+200
-4816
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+200
-4816
lines changed

.github/workflows/build-and-publish.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
- uses: actions/checkout@v4
3737
with:
3838
fetch-depth: 0
39-
submodules: true
4039

4140
- uses: actions/setup-node@v4
4241
with:
@@ -58,8 +57,5 @@ jobs:
5857
- name: Run tests
5958
run: npm test
6059

61-
- name: Run example
62-
run: npx tsx example.ts
63-
6460
- name: Semantic release
6561
run: npx semantic-release

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
dist/
2-
nrfcloud-application-protocols/
32
.git/

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,14 @@ and the web application.
1616
npm i --save-exact @hello.nrfcloud.com/proto
1717
```
1818

19-
[Example](./example.ts)
20-
2119
## Setup
2220

23-
Fetch the submodules
24-
25-
```bash
26-
git submodule init
27-
git submodule update --remote
28-
```
29-
3021
Install the dependencies:
3122

3223
```bash
3324
npm ci
3425
```
3526

36-
## Update generated code
37-
38-
```bash
39-
npx tsx generate/types/schema-to-type.ts
40-
npx tsx generate/schema/NRFCloudMessage.schema.ts
41-
npx prettier --write .
42-
```
43-
4427
## Run tests
4528

4629
```bash

compile.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,3 @@ npx swc -C jsc.experimental.keepImportAttributes=true -C jsc.experimental.emitAs
99
npx swc -C jsc.experimental.keepImportAttributes=true -C jsc.experimental.emitAssertForImportAttributes=true -d dist/ ./validator
1010
npx swc -C jsc.experimental.keepImportAttributes=true -C jsc.experimental.emitAssertForImportAttributes=true -d dist/ ./generate
1111
npx swc -C jsc.experimental.keepImportAttributes=true -C jsc.experimental.emitAssertForImportAttributes=true -d dist/ ./fingerprint
12-
cp -r ./schemas ./dist
13-
mkdir ./dist/nrfcloud-application-protocols
14-
cp -r ./nrfcloud-application-protocols/schemas ./dist/nrfcloud-application-protocols

eslint.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
import config from '@bifravst/eslint-config-typescript'
2-
export default [
3-
...config,
4-
{ ignores: ['dist/**', 'nrfcloud-application-protocols/**'] },
5-
]
2+
export default [...config, { ignores: ['dist/**'] }]

example.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

export.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
export * from './dist/validator/validateWithJSONSchema.js'
21
export * from './dist/validator/validateWithTypeBox.js'
32
export * from './dist/validator/formatTypeBoxErrors.js'

generate/schema/NRFCloudMessage.schema.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

generate/schema/messages.ts

Lines changed: 0 additions & 223 deletions
This file was deleted.

0 commit comments

Comments
 (0)