@voiceflow/base-types 2.18.0 → 2.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,5 +2,6 @@ export * from './command';
2
2
  export * from './common';
3
3
  export * from './intent';
4
4
  export * from './node';
5
+ export * from './note';
5
6
  export * from './prototype';
6
7
  export * from './slot';
@@ -14,5 +14,6 @@ __exportStar(require("./command"), exports);
14
14
  __exportStar(require("./common"), exports);
15
15
  __exportStar(require("./intent"), exports);
16
16
  __exportStar(require("./node"), exports);
17
+ __exportStar(require("./note"), exports);
17
18
  __exportStar(require("./prototype"), exports);
18
19
  __exportStar(require("./slot"), exports);
@@ -20,4 +20,5 @@ export interface Intent {
20
20
  name: string;
21
21
  slots?: IntentSlot[];
22
22
  inputs: IntentInput[];
23
+ noteID?: string;
23
24
  }
@@ -0,0 +1,19 @@
1
+ import { AnyRecord } from "../../types";
2
+ export declare enum NoteType {
3
+ INTENT = "INTENT"
4
+ }
5
+ export interface BaseNote {
6
+ id: string;
7
+ type: NoteType;
8
+ text: string;
9
+ meta?: AnyRecord;
10
+ mentions: number[];
11
+ }
12
+ export interface IntentNoteMeta {
13
+ intentID: string;
14
+ }
15
+ export interface IntentNote extends BaseNote {
16
+ type: NoteType.INTENT;
17
+ meta: IntentNoteMeta;
18
+ }
19
+ export declare type AnyNote = IntentNote;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoteType = void 0;
4
+ var NoteType;
5
+ (function (NoteType) {
6
+ NoteType["INTENT"] = "INTENT";
7
+ })(NoteType = exports.NoteType || (exports.NoteType = {}));
@@ -1,5 +1,5 @@
1
1
  import { AnyRecord } from "../../types";
2
- import { BaseCommand, Intent, Slot, Variable } from '../base';
2
+ import { BaseCommand, BaseNote, Intent, Slot, Variable } from '../base';
3
3
  import { Prototype } from './prototype';
4
4
  export * from './prototype';
5
5
  export interface PlatformData<Settings extends AnyRecord = AnyRecord, Publishing extends AnyRecord = AnyRecord> {
@@ -35,6 +35,7 @@ export interface Model<_PlatformData extends PlatformData, Command extends BaseC
35
35
  projectID: string;
36
36
  rootDiagramID: string;
37
37
  name: string;
38
+ notes?: Record<string, BaseNote>;
38
39
  topics?: FolderItem[];
39
40
  folders?: Record<string, Folder>;
40
41
  variables: Variable[];
@@ -2,5 +2,6 @@ export * from './command';
2
2
  export * from './common';
3
3
  export * from './intent';
4
4
  export * from './node';
5
+ export * from './note';
5
6
  export * from './prototype';
6
7
  export * from './slot';
@@ -2,5 +2,6 @@ export * from './command';
2
2
  export * from './common';
3
3
  export * from './intent';
4
4
  export * from './node';
5
+ export * from './note';
5
6
  export * from './prototype';
6
7
  export * from './slot';
@@ -20,4 +20,5 @@ export interface Intent {
20
20
  name: string;
21
21
  slots?: IntentSlot[];
22
22
  inputs: IntentInput[];
23
+ noteID?: string;
23
24
  }
@@ -0,0 +1,19 @@
1
+ import { AnyRecord } from "../../types";
2
+ export declare enum NoteType {
3
+ INTENT = "INTENT"
4
+ }
5
+ export interface BaseNote {
6
+ id: string;
7
+ type: NoteType;
8
+ text: string;
9
+ meta?: AnyRecord;
10
+ mentions: number[];
11
+ }
12
+ export interface IntentNoteMeta {
13
+ intentID: string;
14
+ }
15
+ export interface IntentNote extends BaseNote {
16
+ type: NoteType.INTENT;
17
+ meta: IntentNoteMeta;
18
+ }
19
+ export declare type AnyNote = IntentNote;
@@ -0,0 +1,4 @@
1
+ export var NoteType;
2
+ (function (NoteType) {
3
+ NoteType["INTENT"] = "INTENT";
4
+ })(NoteType || (NoteType = {}));
@@ -1,5 +1,5 @@
1
1
  import { AnyRecord } from "../../types";
2
- import { BaseCommand, Intent, Slot, Variable } from '../base';
2
+ import { BaseCommand, BaseNote, Intent, Slot, Variable } from '../base';
3
3
  import { Prototype } from './prototype';
4
4
  export * from './prototype';
5
5
  export interface PlatformData<Settings extends AnyRecord = AnyRecord, Publishing extends AnyRecord = AnyRecord> {
@@ -35,6 +35,7 @@ export interface Model<_PlatformData extends PlatformData, Command extends BaseC
35
35
  projectID: string;
36
36
  rootDiagramID: string;
37
37
  name: string;
38
+ notes?: Record<string, BaseNote>;
38
39
  topics?: FolderItem[];
39
40
  folders?: Record<string, Folder>;
40
41
  variables: Variable[];
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@voiceflow/base-types",
3
3
  "description": "Voiceflow base project types",
4
- "version": "2.18.0",
4
+ "version": "2.19.2",
5
5
  "author": "Voiceflow",
6
6
  "bugs": {
7
7
  "url": "https://github.com/voiceflow/libs/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@voiceflow/common": "^7.24.0",
10
+ "@voiceflow/common": "^7.25.1",
11
11
  "slate": "0.73.0"
12
12
  },
13
13
  "files": [
@@ -43,5 +43,5 @@
43
43
  "test:smoke": "exit 0",
44
44
  "test:unit": "exit 0"
45
45
  },
46
- "gitHead": "8151c9f50f464c63f792373626d50079b0e605d1"
46
+ "gitHead": "cb46007be51b23d0852dbe4899c55bdc2afcf9bd"
47
47
  }