@salesforce/lds-adapters-platform-interaction-orchestrator 1.296.1 → 1.298.0

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.
@@ -91,7 +91,7 @@ function createLink(ref) {
91
91
  };
92
92
  }
93
93
 
94
- const VERSION$4 = "388a6ce1e0c17b0241040602001273c3";
94
+ const VERSION$4 = "b69d8daaed2eb1f7100d21944f59f208";
95
95
  function validate$4(obj, path = 'FlowOrchestrationWorkItemRepresentation') {
96
96
  const v_error = (() => {
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -133,6 +133,32 @@ function validate$4(obj, path = 'FlowOrchestrationWorkItemRepresentation') {
133
133
  message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
134
134
  return new TypeError(message);
135
135
  }
136
+ const obj_flowType = obj.flowType;
137
+ const path_flowType = path + '.flowType';
138
+ let obj_flowType_union0 = null;
139
+ const obj_flowType_union0_error = (() => {
140
+ if (typeof obj_flowType !== 'string') {
141
+ return new TypeError('Expected "string" but received "' + typeof obj_flowType + '" (at "' + path_flowType + '")');
142
+ }
143
+ })();
144
+ if (obj_flowType_union0_error != null) {
145
+ obj_flowType_union0 = obj_flowType_union0_error.message;
146
+ }
147
+ let obj_flowType_union1 = null;
148
+ const obj_flowType_union1_error = (() => {
149
+ if (obj_flowType !== null) {
150
+ return new TypeError('Expected "null" but received "' + typeof obj_flowType + '" (at "' + path_flowType + '")');
151
+ }
152
+ })();
153
+ if (obj_flowType_union1_error != null) {
154
+ obj_flowType_union1 = obj_flowType_union1_error.message;
155
+ }
156
+ if (obj_flowType_union0 && obj_flowType_union1) {
157
+ let message = 'Object doesn\'t match union (at "' + path_flowType + '")';
158
+ message += '\n' + obj_flowType_union0.split('\n').map((line) => '\t' + line).join('\n');
159
+ message += '\n' + obj_flowType_union1.split('\n').map((line) => '\t' + line).join('\n');
160
+ return new TypeError(message);
161
+ }
136
162
  const obj_id = obj.id;
137
163
  const path_id = path + '.id';
138
164
  if (typeof obj_id !== 'string') {
@@ -236,6 +262,10 @@ const select$5 = function FlowOrchestrationWorkItemRepresentationSelect() {
236
262
  name: 'description',
237
263
  kind: 'Scalar'
238
264
  },
265
+ {
266
+ name: 'flowType',
267
+ kind: 'Scalar'
268
+ },
239
269
  {
240
270
  name: 'id',
241
271
  kind: 'Scalar'
@@ -317,6 +347,11 @@ function equals$4(existing, incoming) {
317
347
  if (!(existing_description === incoming_description)) {
318
348
  return false;
319
349
  }
350
+ const existing_flowType = existing.flowType;
351
+ const incoming_flowType = incoming.flowType;
352
+ if (!(existing_flowType === incoming_flowType)) {
353
+ return false;
354
+ }
320
355
  const existing_label = existing.label;
321
356
  const incoming_label = incoming.label;
322
357
  if (!(existing_label === incoming_label)) {
@@ -1,5 +1,5 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "388a6ce1e0c17b0241040602001273c3";
2
+ export declare const VERSION = "b69d8daaed2eb1f7100d21944f59f208";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: FlowOrchestrationWorkItemRepresentation, existing: FlowOrchestrationWorkItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FlowOrchestrationWorkItemRepresentationNormalized;
@@ -20,6 +20,8 @@ export interface FlowOrchestrationWorkItemRepresentationNormalized {
20
20
  createdDate: string;
21
21
  /** Description for this Orchestration work item */
22
22
  description: string | null;
23
+ /** The flow type of the orchestration that created the orchestration work item */
24
+ flowType: string | null;
23
25
  /** Orchestration work item id */
24
26
  id: string;
25
27
  /** Label key for this work item */
@@ -47,6 +49,7 @@ export interface FlowOrchestrationWorkItemRepresentation {
47
49
  assigneeId: string;
48
50
  createdDate: string;
49
51
  description: string | null;
52
+ flowType: string | null;
50
53
  id: string;
51
54
  label: string | null;
52
55
  lastModifiedDate: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-interaction-orchestrator",
3
- "version": "1.296.1",
3
+ "version": "1.298.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Interaction Orchestrator APIs",
6
6
  "main": "dist/es/es2018/platform-interaction-orchestrator.js",
@@ -42,11 +42,11 @@
42
42
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-interaction-orchestrator"
43
43
  },
44
44
  "dependencies": {
45
- "@salesforce/lds-bindings": "^1.296.1"
45
+ "@salesforce/lds-bindings": "^1.298.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.296.1",
49
- "@salesforce/lds-karma": "^1.296.1"
48
+ "@salesforce/lds-compiler-plugins": "^1.298.0",
49
+ "@salesforce/lds-karma": "^1.298.0"
50
50
  },
51
51
  "nx": {
52
52
  "targets": {
package/sfdc/index.js CHANGED
@@ -101,7 +101,7 @@ function createLink(ref) {
101
101
  };
102
102
  }
103
103
 
104
- const VERSION$4 = "388a6ce1e0c17b0241040602001273c3";
104
+ const VERSION$4 = "b69d8daaed2eb1f7100d21944f59f208";
105
105
  function validate$4(obj, path = 'FlowOrchestrationWorkItemRepresentation') {
106
106
  const v_error = (() => {
107
107
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -143,6 +143,32 @@ function validate$4(obj, path = 'FlowOrchestrationWorkItemRepresentation') {
143
143
  message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
144
144
  return new TypeError(message);
145
145
  }
146
+ const obj_flowType = obj.flowType;
147
+ const path_flowType = path + '.flowType';
148
+ let obj_flowType_union0 = null;
149
+ const obj_flowType_union0_error = (() => {
150
+ if (typeof obj_flowType !== 'string') {
151
+ return new TypeError('Expected "string" but received "' + typeof obj_flowType + '" (at "' + path_flowType + '")');
152
+ }
153
+ })();
154
+ if (obj_flowType_union0_error != null) {
155
+ obj_flowType_union0 = obj_flowType_union0_error.message;
156
+ }
157
+ let obj_flowType_union1 = null;
158
+ const obj_flowType_union1_error = (() => {
159
+ if (obj_flowType !== null) {
160
+ return new TypeError('Expected "null" but received "' + typeof obj_flowType + '" (at "' + path_flowType + '")');
161
+ }
162
+ })();
163
+ if (obj_flowType_union1_error != null) {
164
+ obj_flowType_union1 = obj_flowType_union1_error.message;
165
+ }
166
+ if (obj_flowType_union0 && obj_flowType_union1) {
167
+ let message = 'Object doesn\'t match union (at "' + path_flowType + '")';
168
+ message += '\n' + obj_flowType_union0.split('\n').map((line) => '\t' + line).join('\n');
169
+ message += '\n' + obj_flowType_union1.split('\n').map((line) => '\t' + line).join('\n');
170
+ return new TypeError(message);
171
+ }
146
172
  const obj_id = obj.id;
147
173
  const path_id = path + '.id';
148
174
  if (typeof obj_id !== 'string') {
@@ -246,6 +272,10 @@ const select$5 = function FlowOrchestrationWorkItemRepresentationSelect() {
246
272
  name: 'description',
247
273
  kind: 'Scalar'
248
274
  },
275
+ {
276
+ name: 'flowType',
277
+ kind: 'Scalar'
278
+ },
249
279
  {
250
280
  name: 'id',
251
281
  kind: 'Scalar'
@@ -327,6 +357,11 @@ function equals$4(existing, incoming) {
327
357
  if (!(existing_description === incoming_description)) {
328
358
  return false;
329
359
  }
360
+ const existing_flowType = existing.flowType;
361
+ const incoming_flowType = incoming.flowType;
362
+ if (!(existing_flowType === incoming_flowType)) {
363
+ return false;
364
+ }
330
365
  const existing_label = existing.label;
331
366
  const incoming_label = incoming.label;
332
367
  if (!(existing_label === incoming_label)) {
@@ -1131,4 +1166,4 @@ withDefaultLuvio((luvio) => {
1131
1166
  });
1132
1167
 
1133
1168
  export { getOrchestrationInstanceCollection, getOrchestrationInstanceCollection_imperative };
1134
- // version: 1.296.1-cf86708a0
1169
+ // version: 1.298.0-6f15dc1ec
package/src/raml/api.raml CHANGED
@@ -138,6 +138,9 @@ types:
138
138
  description:
139
139
  description: Description for this Orchestration work item
140
140
  type: string | nil
141
+ flowType:
142
+ description: The flow type of the orchestration that created the orchestration work item
143
+ type: string | nil
141
144
  id:
142
145
  description: Orchestration work item id
143
146
  type: string