Skip to content

Commit 8ce636c

Browse files
committed
using streamIds for eventTemplate
1 parent a3d1b30 commit 8ce636c

8 files changed

Lines changed: 11 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,11 @@ await connection.streamsAutoCreate.ensureExistsForItems(['body-weight', 'profile
200200

201201
# Dev
202202

203+
Source code is in TypeScript in `./ts` directory.
204+
203205
## Build
204206

205-
`npm run build` publish the code in `./docs`
207+
`npm run build` remove ts anotations and put js code in `./js` and publish the code in `./docs`
206208

207209
## Tests
208210

docs/tests-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7566,7 +7566,7 @@ class HDSItemDef {
75667566
*/
75677567
eventTemplate() {
75687568
return {
7569-
streamId: this.#data.streamId,
7569+
streamIds: [this.#data.streamId],
75707570
type: this.eventTypes[0]
75717571
};
75727572
}

docs/tests-browser.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/HDSModel/HDSItemDef.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export declare class HDSItemDef {
1313
* // TODO handle variations
1414
*/
1515
eventTemplate(): {
16-
streamId: string;
16+
streamIds: [string];
1717
type: string;
1818
};
1919
}

js/HDSModel/HDSItemDef.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/HDSModel/HDSItemDef.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/HDSModel/HDSItemDef.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/HDSModel/HDSItemDef.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export class HDSItemDef {
3737
* // TODO handle variations
3838
*/
3939
eventTemplate (): {
40-
streamId: string;
40+
streamIds: [string];
4141
type: string;
4242
} {
4343
return {
44-
streamId: this.#data.streamId,
44+
streamIds: [this.#data.streamId],
4545
type: this.eventTypes[0]
4646
};
4747
}

0 commit comments

Comments
 (0)