@salesforce/lds-adapters-service-serviceplan 1.354.0-dev10 → 1.354.0-dev12

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.
@@ -94,7 +94,7 @@ function createLink(ref) {
94
94
  }
95
95
 
96
96
  const VERSION$4 = "de8249c0171ece44729fbb33b422a074";
97
- function validate$5(obj, path = 'ServicePlanStepExecutionStatusRepresentation') {
97
+ function validate$6(obj, path = 'ServicePlanStepExecutionStatusRepresentation') {
98
98
  const v_error = (() => {
99
99
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
100
100
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -153,7 +153,7 @@ function equals$4(existing, incoming) {
153
153
  }
154
154
  const ingest$4 = function ServicePlanStepExecutionStatusRepresentationIngest(input, path, luvio, store, timestamp) {
155
155
  if (process.env.NODE_ENV !== 'production') {
156
- const validateError = validate$5(input);
156
+ const validateError = validate$6(input);
157
157
  if (validateError !== null) {
158
158
  throw validateError;
159
159
  }
@@ -174,7 +174,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
174
174
  }
175
175
 
176
176
  const VERSION$3 = "f3a6de28bf56634adca757ba07accf43";
177
- function validate$4(obj, path = 'ServicePlanExecutionOutputRepresentation') {
177
+ function validate$5(obj, path = 'ServicePlanExecutionOutputRepresentation') {
178
178
  const v_error = (() => {
179
179
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
180
180
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -267,7 +267,7 @@ function equals$3(existing, incoming) {
267
267
  }
268
268
  const ingest$3 = function ServicePlanExecutionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
269
269
  if (process.env.NODE_ENV !== 'production') {
270
- const validateError = validate$4(input);
270
+ const validateError = validate$5(input);
271
271
  if (validateError !== null) {
272
272
  throw validateError;
273
273
  }
@@ -384,7 +384,7 @@ const executeServicePlanAdapterFactory = (luvio) => {
384
384
 
385
385
  const TTL$1 = 1000;
386
386
  const VERSION$2 = "e7b90a0cede064026bfdd02757e2d945";
387
- function validate$3(obj, path = 'ServicePlanGenerationOutputRepresentation') {
387
+ function validate$4(obj, path = 'ServicePlanGenerationOutputRepresentation') {
388
388
  const v_error = (() => {
389
389
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
390
390
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -580,7 +580,7 @@ function equals$2(existing, incoming) {
580
580
  }
581
581
  const ingest$2 = function ServicePlanGenerationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
582
582
  if (process.env.NODE_ENV !== 'production') {
583
- const validateError = validate$3(input);
583
+ const validateError = validate$4(input);
584
584
  if (validateError !== null) {
585
585
  throw validateError;
586
586
  }
@@ -866,6 +866,30 @@ const getGenerationRequestAdapterFactory = (luvio) => function ServicePlan__getG
866
866
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
867
867
  };
868
868
 
869
+ function validate$3(obj, path = 'ServicePlanReferenceDetailsRepresentation') {
870
+ const v_error = (() => {
871
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
872
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
873
+ }
874
+ const obj_id = obj.id;
875
+ const path_id = path + '.id';
876
+ if (typeof obj_id !== 'string') {
877
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
878
+ }
879
+ const obj_label = obj.label;
880
+ const path_label = path + '.label';
881
+ if (typeof obj_label !== 'string') {
882
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
883
+ }
884
+ const obj_type = obj.type;
885
+ const path_type = path + '.type';
886
+ if (typeof obj_type !== 'string') {
887
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
888
+ }
889
+ })();
890
+ return v_error === undefined ? null : v_error;
891
+ }
892
+
869
893
  function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
870
894
  const v_error = (() => {
871
895
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -940,11 +964,21 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
940
964
  if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
941
965
  return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
942
966
  }
943
- if (obj.relatedActionName !== undefined) {
944
- const obj_relatedActionName = obj.relatedActionName;
945
- const path_relatedActionName = path + '.relatedActionName';
946
- if (typeof obj_relatedActionName !== 'string') {
947
- return new TypeError('Expected "string" but received "' + typeof obj_relatedActionName + '" (at "' + path_relatedActionName + '")');
967
+ if (obj.references !== undefined) {
968
+ const obj_references = obj.references;
969
+ const path_references = path + '.references';
970
+ if (!ArrayIsArray(obj_references)) {
971
+ return new TypeError('Expected "array" but received "' + typeof obj_references + '" (at "' + path_references + '")');
972
+ }
973
+ for (let i = 0; i < obj_references.length; i++) {
974
+ const obj_references_item = obj_references[i];
975
+ const path_references_item = path_references + '[' + i + ']';
976
+ const referencepath_references_itemValidationError = validate$3(obj_references_item, path_references_item);
977
+ if (referencepath_references_itemValidationError !== null) {
978
+ let message = 'Object doesn\'t match ServicePlanReferenceDetailsRepresentation (at "' + path_references_item + '")\n';
979
+ message += referencepath_references_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
980
+ return new TypeError(message);
981
+ }
948
982
  }
949
983
  }
950
984
  const obj_stepId = obj.stepId;
@@ -0,0 +1,34 @@
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 = "3655e876c6bcf8c72fcf4e298d70b64c";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ServicePlanReferenceDetailsRepresentation, existing: ServicePlanReferenceDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanReferenceDetailsRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ServicePlanReferenceDetailsRepresentationNormalized, incoming: ServicePlanReferenceDetailsRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServicePlanReferenceDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Service Plan reference representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ServicePlanReferenceDetailsRepresentationNormalized {
17
+ /** Reference ID */
18
+ id: string;
19
+ /** Reference name */
20
+ label: string;
21
+ /** Reference type */
22
+ type: string;
23
+ }
24
+ /**
25
+ * Service Plan reference representation
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface ServicePlanReferenceDetailsRepresentation {
31
+ id: string;
32
+ label: string;
33
+ type: string;
34
+ }
@@ -1,5 +1,6 @@
1
+ import { ServicePlanReferenceDetailsRepresentation as ServicePlanReferenceDetailsRepresentation_ServicePlanReferenceDetailsRepresentation } from './ServicePlanReferenceDetailsRepresentation';
1
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, 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 = "fd4d825589b04981787ab6c2faf648a5";
3
+ export declare const VERSION = "6fdebf4e5344459ffa4c6950dded44e6";
3
4
  export declare function validate(obj: any, path?: string): TypeError | null;
4
5
  export declare const RepresentationType: string;
5
6
  export declare function normalize(input: ServicePlanStepDetailsRepresentation, existing: ServicePlanStepDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanStepDetailsRepresentationNormalized;
@@ -24,8 +25,8 @@ export interface ServicePlanStepDetailsRepresentationNormalized {
24
25
  isSuggested: boolean;
25
26
  /** Step order */
26
27
  order: number;
27
- /** Related action name */
28
- relatedActionName?: string;
28
+ /** Step references */
29
+ references?: Array<ServicePlanReferenceDetailsRepresentation_ServicePlanReferenceDetailsRepresentation>;
29
30
  /** Step ID */
30
31
  stepId: string;
31
32
  /** Step name */
@@ -47,7 +48,7 @@ export interface ServicePlanStepDetailsRepresentation {
47
48
  groupName: string | null;
48
49
  isSuggested: boolean;
49
50
  order: number;
50
- relatedActionName?: string;
51
+ references?: Array<ServicePlanReferenceDetailsRepresentation_ServicePlanReferenceDetailsRepresentation>;
51
52
  stepId: string;
52
53
  stepName: string;
53
54
  stepSummary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-serviceplan",
3
- "version": "1.354.0-dev10",
3
+ "version": "1.354.0-dev12",
4
4
  "description": "collectionof service plan apis",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-serviceplan.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.354.0-dev10"
43
+ "@salesforce/lds-bindings": "^1.354.0-dev12"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.354.0-dev10"
46
+ "@salesforce/lds-compiler-plugins": "^1.354.0-dev12"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -104,7 +104,7 @@ function createLink(ref) {
104
104
  }
105
105
 
106
106
  const VERSION$4 = "de8249c0171ece44729fbb33b422a074";
107
- function validate$5(obj, path = 'ServicePlanStepExecutionStatusRepresentation') {
107
+ function validate$6(obj, path = 'ServicePlanStepExecutionStatusRepresentation') {
108
108
  const v_error = (() => {
109
109
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
110
110
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -163,7 +163,7 @@ function equals$4(existing, incoming) {
163
163
  }
164
164
  const ingest$4 = function ServicePlanStepExecutionStatusRepresentationIngest(input, path, luvio, store, timestamp) {
165
165
  if (process.env.NODE_ENV !== 'production') {
166
- const validateError = validate$5(input);
166
+ const validateError = validate$6(input);
167
167
  if (validateError !== null) {
168
168
  throw validateError;
169
169
  }
@@ -184,7 +184,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
184
184
  }
185
185
 
186
186
  const VERSION$3 = "f3a6de28bf56634adca757ba07accf43";
187
- function validate$4(obj, path = 'ServicePlanExecutionOutputRepresentation') {
187
+ function validate$5(obj, path = 'ServicePlanExecutionOutputRepresentation') {
188
188
  const v_error = (() => {
189
189
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
190
190
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -277,7 +277,7 @@ function equals$3(existing, incoming) {
277
277
  }
278
278
  const ingest$3 = function ServicePlanExecutionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
279
279
  if (process.env.NODE_ENV !== 'production') {
280
- const validateError = validate$4(input);
280
+ const validateError = validate$5(input);
281
281
  if (validateError !== null) {
282
282
  throw validateError;
283
283
  }
@@ -394,7 +394,7 @@ const executeServicePlanAdapterFactory = (luvio) => {
394
394
 
395
395
  const TTL$1 = 1000;
396
396
  const VERSION$2 = "e7b90a0cede064026bfdd02757e2d945";
397
- function validate$3(obj, path = 'ServicePlanGenerationOutputRepresentation') {
397
+ function validate$4(obj, path = 'ServicePlanGenerationOutputRepresentation') {
398
398
  const v_error = (() => {
399
399
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
400
400
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -590,7 +590,7 @@ function equals$2(existing, incoming) {
590
590
  }
591
591
  const ingest$2 = function ServicePlanGenerationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
592
592
  if (process.env.NODE_ENV !== 'production') {
593
- const validateError = validate$3(input);
593
+ const validateError = validate$4(input);
594
594
  if (validateError !== null) {
595
595
  throw validateError;
596
596
  }
@@ -876,6 +876,30 @@ const getGenerationRequestAdapterFactory = (luvio) => function ServicePlan__getG
876
876
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
877
877
  };
878
878
 
879
+ function validate$3(obj, path = 'ServicePlanReferenceDetailsRepresentation') {
880
+ const v_error = (() => {
881
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
882
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
883
+ }
884
+ const obj_id = obj.id;
885
+ const path_id = path + '.id';
886
+ if (typeof obj_id !== 'string') {
887
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
888
+ }
889
+ const obj_label = obj.label;
890
+ const path_label = path + '.label';
891
+ if (typeof obj_label !== 'string') {
892
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
893
+ }
894
+ const obj_type = obj.type;
895
+ const path_type = path + '.type';
896
+ if (typeof obj_type !== 'string') {
897
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
898
+ }
899
+ })();
900
+ return v_error === undefined ? null : v_error;
901
+ }
902
+
879
903
  function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
880
904
  const v_error = (() => {
881
905
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -950,11 +974,21 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
950
974
  if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
951
975
  return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
952
976
  }
953
- if (obj.relatedActionName !== undefined) {
954
- const obj_relatedActionName = obj.relatedActionName;
955
- const path_relatedActionName = path + '.relatedActionName';
956
- if (typeof obj_relatedActionName !== 'string') {
957
- return new TypeError('Expected "string" but received "' + typeof obj_relatedActionName + '" (at "' + path_relatedActionName + '")');
977
+ if (obj.references !== undefined) {
978
+ const obj_references = obj.references;
979
+ const path_references = path + '.references';
980
+ if (!ArrayIsArray(obj_references)) {
981
+ return new TypeError('Expected "array" but received "' + typeof obj_references + '" (at "' + path_references + '")');
982
+ }
983
+ for (let i = 0; i < obj_references.length; i++) {
984
+ const obj_references_item = obj_references[i];
985
+ const path_references_item = path_references + '[' + i + ']';
986
+ const referencepath_references_itemValidationError = validate$3(obj_references_item, path_references_item);
987
+ if (referencepath_references_itemValidationError !== null) {
988
+ let message = 'Object doesn\'t match ServicePlanReferenceDetailsRepresentation (at "' + path_references_item + '")\n';
989
+ message += referencepath_references_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
990
+ return new TypeError(message);
991
+ }
958
992
  }
959
993
  }
960
994
  const obj_stepId = obj.stepId;
@@ -1645,4 +1679,4 @@ withDefaultLuvio((luvio) => {
1645
1679
  });
1646
1680
 
1647
1681
  export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative, notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
1648
- // version: 1.354.0-dev10-f675337995
1682
+ // version: 1.354.0-dev12-1fd5866001
package/src/raml/api.raml CHANGED
@@ -188,6 +188,19 @@ types:
188
188
  - Generation
189
189
  - GenerationPreview
190
190
  - Summary
191
+ ServicePlanReferenceDetailsRepresentation:
192
+ description: Service Plan reference representation
193
+ type: object
194
+ properties:
195
+ id:
196
+ description: Reference ID
197
+ type: string
198
+ label:
199
+ description: Reference name
200
+ type: string
201
+ type:
202
+ description: Reference type
203
+ type: string
191
204
  ServicePlanStepDetailsRepresentation:
192
205
  description: Service Plan step representation
193
206
  type: object
@@ -213,10 +226,12 @@ types:
213
226
  order:
214
227
  description: Step order
215
228
  type: integer
216
- relatedActionName:
217
- description: Related action name
218
- required: false #TODO Hand-rolled W-18452620
219
- type: string
229
+ references:
230
+ description: Step references
231
+ type: array
232
+ items:
233
+ type: ServicePlanReferenceDetailsRepresentation
234
+ required: false #Hand-rolled W-18566464
220
235
  stepId:
221
236
  description: Step ID
222
237
  type: string