cogfy-data-exchange 1.0.4 → 1.0.6

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.
@@ -1,20 +1,20 @@
1
1
  export type FlowJsonDataValue = {
2
2
  type: 'string';
3
- __example__: string;
3
+ __example__?: string;
4
4
  } | {
5
5
  type: 'number';
6
- __example__: number;
6
+ __example__?: number;
7
7
  } | {
8
8
  type: 'boolean';
9
- __example__: boolean;
9
+ __example__?: boolean;
10
10
  } | {
11
11
  type: 'object';
12
12
  properties: Record<string, FlowJsonDataValue>;
13
- __example__: Record<string, unknown>;
13
+ __example__?: Record<string, unknown>;
14
14
  } | {
15
15
  type: 'array';
16
16
  items: FlowJsonDataValue;
17
- __example__: unknown[];
17
+ __example__?: unknown[];
18
18
  };
19
19
  export type FlowJsonData = Record<string, FlowJsonDataValue>;
20
20
  export type FlowJsonScreenId = string;
@@ -23,8 +23,11 @@ export type FlowJson = {
23
23
  screens: {
24
24
  id: FlowJsonScreenId;
25
25
  title: string;
26
+ data: FlowJsonData;
26
27
  terminal?: boolean;
27
28
  success?: boolean;
28
- data: FlowJsonData;
29
+ layout?: Record<string, unknown>;
29
30
  }[];
31
+ version?: string;
32
+ data_api_version?: string;
30
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogfy-data-exchange",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,9 +1,9 @@
1
1
  export type FlowJsonDataValue =
2
- | { type: 'string'; __example__: string }
3
- | { type: 'number'; __example__: number }
4
- | { type: 'boolean'; __example__: boolean }
5
- | { type: 'object'; properties: Record<string, FlowJsonDataValue>; __example__: Record<string, unknown> }
6
- | { type: 'array'; items: FlowJsonDataValue; __example__: unknown[] }
2
+ | { type: 'string'; __example__?: string }
3
+ | { type: 'number'; __example__?: number }
4
+ | { type: 'boolean'; __example__?: boolean }
5
+ | { type: 'object'; properties: Record<string, FlowJsonDataValue>; __example__?: Record<string, unknown> }
6
+ | { type: 'array'; items: FlowJsonDataValue; __example__?: unknown[] }
7
7
 
8
8
  export type FlowJsonData = Record<string, FlowJsonDataValue>
9
9
 
@@ -14,8 +14,11 @@ export type FlowJson = {
14
14
  screens: {
15
15
  id: FlowJsonScreenId
16
16
  title: string
17
+ data: FlowJsonData
17
18
  terminal?: boolean
18
19
  success?: boolean
19
- data: FlowJsonData
20
+ layout?: Record<string, unknown>
20
21
  }[]
22
+ version?: string
23
+ data_api_version?: string
21
24
  }