Skip to content

Commit f97eedf

Browse files
authored
Merge pull request #95 from kuzzleio/0.3.0-proposal
# [0.3.0](https://github.com/kuzzleio/kuzzle-plugin-device-manager/releases/tag/0.3.0) (2021-09-06) #### Breaking changes - [ [#90](#90) ] [breaking] Allows to skip payloads ([Aschen](https://github.com/Aschen)) - [ [#84](#84) ] Returning standard response on device-manager/device:search ([xbill82](https://github.com/xbill82)) #### Bug fixes - [ [#79](#79) ] Fix registering of multiple mappings for the same tenantGroup ([Aschen](https://github.com/Aschen)) #### New features - [ [#92](#92) ] Add provisionning catalog ([Aschen](https://github.com/Aschen)) #### Enhancements - [ [#89](#89) ] Rename tenantGroup to group ([Aschen](https://github.com/Aschen)) - [ [#88](#88) ] Trigger tenant events after payload processing ([Aschen](https://github.com/Aschen)) #### Others - [ [#81](#81) ] Update deps ([rolljee](https://github.com/rolljee)) - [ [#73](#73) ] Fix some typing issues in documentation ([rolljee](https://github.com/rolljee)) ---
2 parents bf2f898 + e41951a commit f97eedf

File tree

51 files changed

+4019
-1823
lines changed

Some content is hidden

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

51 files changed

+4019
-1823
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Dead Links
2+
description: Run Dead Links Tests
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Install deps
7+
run: npm ci
8+
shell: bash
9+
- name: Install Kuzdoc (latest minor)
10+
run: npm i kuzdoc
11+
shell: bash
12+
- name: Prepare documentation
13+
run: npm run doc:prepare
14+
shell: bash
15+
- name: Install docs repositories
16+
run: npx kuzdoc iterate-repos:install --repos_path doc/framework/.repos/
17+
shell: bash
18+
- name: Link kuzdoc
19+
run: npx kuzdoc framework:link -d /official-plugins/device-manager/1/ -v 1
20+
shell: bash
21+
- name: Install typhoeus
22+
run: sudo gem install typhoeus
23+
shell: bash
24+
- name: Run dead links tests
25+
run: cd doc/framework/ && HYDRA_MAX_CONCURRENCY=20 ruby .ci/dead-links.rb -p src/official-plugins/device-manager/1/
26+
shell: bash
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy Documentation
2+
description: Build doc, upload it to S3 and invalidate Cloudfront cache
3+
4+
inputs:
5+
AWS_ACCESS_KEY_ID:
6+
description: AWS Access key ID
7+
required: true
8+
AWS_SECRET_ACCESS_KEY:
9+
description: AWS secret key
10+
required: true
11+
S3_BUCKET:
12+
description: S3 bucket name
13+
required: true
14+
CLOUDFRONT_ID:
15+
description: Cloudfront distribution ID
16+
required: true
17+
REGION:
18+
description: AWS default region
19+
required: true
20+
FRAMEWORK_BRANCH:
21+
description: Documentation framework branch to use
22+
required: true
23+
24+
runs:
25+
using: "composite"
26+
steps:
27+
- name: Install AWS CLI
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install python python-pip
31+
pip install awscli --upgrade --user
32+
shell: bash
33+
- name: Build documentation
34+
run: |
35+
rm -rf doc/framework
36+
npm ci
37+
npm install kuzdoc
38+
npm run doc:prepare
39+
npm run doc:build
40+
env:
41+
NODE_ENV: production
42+
FRAMEWORK_BRANCH: ${{ inputs.FRAMEWORK_BRANCH }}
43+
shell: bash
44+
- name: Deploy documentation
45+
run: |
46+
npm run doc:upload
47+
npm run doc:cloudfront
48+
env:
49+
AWS_DEFAULT_REGION: ${{ inputs.REGION }}
50+
AWS_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }}
51+
AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }}
52+
S3_BUCKET: ${{ inputs.S3_BUCKET }}
53+
CLOUDFRONT_DISTRIBUTION_ID: ${{ inputs.CLOUDFRONT_ID }}
54+
shell: bash

doc/1/classes/assets-custom-properties/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
code: true
33
type: branch
44
title: AssetsCustomProperties
5-
description: Kuzzle IoT Platform - AssetsCustomProperties class
5+
description: Kuzzle IoT - AssetsCustomProperties class
66
---

doc/1/classes/assets-custom-properties/register-metadata/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ Add properties definition to the `metadata` field of the `assets` collection.
1111

1212

1313
```ts
14-
registerMetadata (mapping: JSONObject, options: JSONObject);
14+
registerMetadata (mappings: JSONObject, options: JSONObject);
1515
```
1616

1717
<br/>
1818

1919
| Arguments | Type | Description |
2020
|-----------|-----------------------|---------------------------------------------|
21-
| `mapping` | <pre>JSONObject</pre> | Mapping definiton of the `metadata` property |
21+
| `mappings` | <pre>JSONObject</pre> | Mappings definiton of the `metadata` property |
2222
| `options` | <pre>JSONObject</pre> | Additional options |
2323

2424
### options
2525

2626
| Properties | Type | Description |
2727
|-----------|-----------------------|---------------------------------------------|
28-
| `tenantGroup` | <pre>string</pre> | Name of the group for which the mapping should apply. If unspecified, mappings will apply to every group who does not have specific definition. |
28+
| `group` | <pre>string</pre> | Name of the group for which the mappings should apply. If unspecified, mappings will apply to every group who does not have specific definition. |
2929

3030
## Usage
3131

@@ -40,5 +40,5 @@ deviceManagerPlugin.assets.registerMetadata({
4040
fields: {
4141
text: { type: 'text' } }
4242
}
43-
}, { tenantGroup: 'water_management' });
43+
}, { group: 'water_management' });
4444
```

doc/1/classes/decoder/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
code: true
33
type: branch
44
title: Decoder
5-
description: Kuzzle IoT Platform - Device Manager Decoder abstract class
5+
description: Kuzzle IoT - Device Manager Decoder abstract class
66
---

doc/1/classes/devices-custom-properties/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
code: true
33
type: branch
44
title: DevicesCustomProperties
5-
description: Kuzzle IoT Platform - DevicesCustomProperties class
5+
description: Kuzzle IoT - DevicesCustomProperties class
66
---

doc/1/classes/devices-custom-properties/register-measure/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ Add properties definition to the `measures` field of the `devices` collection.
1111

1212

1313
```ts
14-
registerMeasure (measureName: string, mapping: JSONObject, options: JSONObject);
14+
registerMeasure (measureName: string, mappings: JSONObject, options: JSONObject);
1515
```
1616

1717
<br/>
1818

1919
| Arguments | Type | Description |
2020
|-----------|-----------------------|---------------------------------------------|
2121
| `measureName` | <pre>string</pre> | Name of the measure you are willing to add to the `measures` field |
22-
| `mapping` | <pre>JSONObject</pre> | Mapping definiton of the custom measure property |
22+
| `mappings` | <pre>JSONObject</pre> | Mappings definiton of the custom measure property |
2323
| `options` | <pre>JSONObject</pre> | Additional options |
2424

2525
### options
2626

2727
| Properties | Type | Description |
2828
|-----------|-----------------------|---------------------------------------------|
29-
| `tenantGroup` | <pre>string</pre> | Name of the group for which the mapping should apply. If unspecified, mappings will apply to every group who does not have specific definition |
29+
| `group` | <pre>string</pre> | Name of the group for which the mappings should apply. If unspecified, mappings will apply to every group who does not have specific definition |
3030

3131
## Usage
3232

@@ -44,7 +44,7 @@ deviceManagerPlugin.devices.registerMeasure(
4444
celsius: { type: 'float' }
4545
}
4646
},
47-
{ tenantGroup: 'water_management' });
47+
{ group: 'water_management' });
4848

4949
deviceManagerPlugin.devices.registerMeasure(
5050
'humidity',
@@ -58,5 +58,5 @@ deviceManagerPlugin.devices.registerMeasure(
5858
}
5959
}
6060
},
61-
{ tenantGroup: 'air_quality' });
61+
{ group: 'air_quality' });
6262
```

doc/1/classes/devices-custom-properties/register-metadata/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ Add properties definition to the `metadata` field of the `devices` collection.
1111

1212

1313
```ts
14-
registerMetadata (mapping: JSONObject, options: JSONObject);
14+
registerMetadata (mappings: JSONObject, options: JSONObject);
1515
```
1616

1717
<br/>
1818

1919
| Arguments | Type | Description |
2020
|-----------|-----------------------|---------------------------------------------|
21-
| `mapping` | <pre>JSONObject</pre> | Mapping definiton of the `metadata` property |
21+
| `mappings` | <pre>JSONObject</pre> | Mappings definiton of the `metadata` property |
2222
| `options` | <pre>JSONObject</pre> | Additional options |
2323

2424
### options
2525

2626
| Properties | Type | Description |
2727
|-----------|-----------------------|---------------------------------------------|
28-
| `tenantGroup` | <pre>string</pre> | Name of the group for which the mapping should apply. If unspecified, mappings will apply to every group who does not have specific definition. |
28+
| `group` | <pre>string</pre> | Name of the group for which the mappings should apply. If unspecified, mappings will apply to every group who does not have specific definition. |
2929

3030
## Usage
3131

@@ -40,5 +40,5 @@ deviceManagerPlugin.devices.registerMetadata({
4040
fields: {
4141
text: { type: 'text' } }
4242
}
43-
}, { tenantGroup: 'water_management' });
43+
}, { group: 'water_management' });
4444
```

doc/1/classes/devices-custom-properties/register-qos/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ Add properties definition to the `qos` field of the `devices` collection.
1111

1212

1313
```ts
14-
registerQos (mapping: JSONObject, options: JSONObject);
14+
registerQos (mappings: JSONObject, options: JSONObject);
1515
```
1616

1717
<br/>
1818

1919
| Arguments | Type | Description |
2020
|-----------|-----------------------|---------------------------------------------|
21-
| `mapping` | <pre>JSONObject</pre> | Mapping definiton of the `qos` property |
21+
| `mappings` | <pre>JSONObject</pre> | Mappings definiton of the `qos` property |
2222
| `options` | <pre>JSONObject</pre> | Additional options |
2323

2424
### options
2525

2626
| Properties | Type | Description |
2727
|-----------|-----------------------|---------------------------------------------|
28-
| `tenantGroup` | <pre>string</pre> | Name of the group for which the mapping should apply. If unspecified, mappings will apply to every group who does not have specific definition. |
28+
| `group` | <pre>string</pre> | Name of the group for which the mappings should apply. If unspecified, mappings will apply to every group who does not have specific definition. |
2929

3030
## Usage
3131

@@ -36,5 +36,5 @@ const deviceManagerPlugin = new DeviceManagerPlugin();
3636

3737
deviceManagerPlugin.devices.registerQos({
3838
battery: { type: 'integer' }
39-
}, { tenantGroup: 'water_management' });
39+
}, { group: 'water_management' });
4040
```

doc/1/classes/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
code: false
33
type: branch
44
title: Classes
5-
description: Kuzzle IoT Platform - Device Manager Classes
5+
description: Kuzzle IoT - Device Manager Classes
66
order: 300
77
---

0 commit comments

Comments
 (0)