@salesforce/lds-adapters-service-serviceplan 1.370.0 → 1.372.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.
@@ -94,7 +94,7 @@ function createLink(ref) {
94
94
  }
95
95
 
96
96
  const VERSION$4 = "de8249c0171ece44729fbb33b422a074";
97
- function validate$6(obj, path = 'ServicePlanStepExecutionStatusRepresentation') {
97
+ function validate$7(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$6(input);
156
+ const validateError = validate$7(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$5(obj, path = 'ServicePlanExecutionOutputRepresentation') {
177
+ function validate$6(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$5(input);
270
+ const validateError = validate$6(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$4(obj, path = 'ServicePlanGenerationOutputRepresentation') {
387
+ function validate$5(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$4(input);
583
+ const validateError = validate$5(input);
584
584
  if (validateError !== null) {
585
585
  throw validateError;
586
586
  }
@@ -656,6 +656,7 @@ const generateServicePlan_ConfigPropertyMetadata = [
656
656
  generateParamConfigMetadata('processingMode', false, 1 /* QueryParameter */, 0 /* String */),
657
657
  generateParamConfigMetadata('recordId', false, 1 /* QueryParameter */, 0 /* String */),
658
658
  generateParamConfigMetadata('regenerate', false, 1 /* QueryParameter */, 1 /* Boolean */),
659
+ generateParamConfigMetadata('useCase', false, 1 /* QueryParameter */, 0 /* String */),
659
660
  generateParamConfigMetadata('additionalContext', true, 2 /* Body */, 4 /* Unsupported */),
660
661
  generateParamConfigMetadata('generationMode', true, 2 /* Body */, 0 /* String */),
661
662
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
@@ -866,6 +867,93 @@ const getGenerationRequestAdapterFactory = (luvio) => function ServicePlan__getG
866
867
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
867
868
  };
868
869
 
870
+ function validate$4(obj, path = 'ServicePlanStepCitationSourceRepresentation') {
871
+ const v_error = (() => {
872
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
873
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
874
+ }
875
+ const obj_recordId = obj.recordId;
876
+ const path_recordId = path + '.recordId';
877
+ let obj_recordId_union0 = null;
878
+ const obj_recordId_union0_error = (() => {
879
+ if (typeof obj_recordId !== 'string') {
880
+ return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
881
+ }
882
+ })();
883
+ if (obj_recordId_union0_error != null) {
884
+ obj_recordId_union0 = obj_recordId_union0_error.message;
885
+ }
886
+ let obj_recordId_union1 = null;
887
+ const obj_recordId_union1_error = (() => {
888
+ if (obj_recordId !== null) {
889
+ return new TypeError('Expected "null" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
890
+ }
891
+ })();
892
+ if (obj_recordId_union1_error != null) {
893
+ obj_recordId_union1 = obj_recordId_union1_error.message;
894
+ }
895
+ if (obj_recordId_union0 && obj_recordId_union1) {
896
+ let message = 'Object doesn\'t match union (at "' + path_recordId + '")';
897
+ message += '\n' + obj_recordId_union0.split('\n').map((line) => '\t' + line).join('\n');
898
+ message += '\n' + obj_recordId_union1.split('\n').map((line) => '\t' + line).join('\n');
899
+ return new TypeError(message);
900
+ }
901
+ const obj_sourceObjectName = obj.sourceObjectName;
902
+ const path_sourceObjectName = path + '.sourceObjectName';
903
+ let obj_sourceObjectName_union0 = null;
904
+ const obj_sourceObjectName_union0_error = (() => {
905
+ if (typeof obj_sourceObjectName !== 'string') {
906
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectName + '" (at "' + path_sourceObjectName + '")');
907
+ }
908
+ })();
909
+ if (obj_sourceObjectName_union0_error != null) {
910
+ obj_sourceObjectName_union0 = obj_sourceObjectName_union0_error.message;
911
+ }
912
+ let obj_sourceObjectName_union1 = null;
913
+ const obj_sourceObjectName_union1_error = (() => {
914
+ if (obj_sourceObjectName !== null) {
915
+ return new TypeError('Expected "null" but received "' + typeof obj_sourceObjectName + '" (at "' + path_sourceObjectName + '")');
916
+ }
917
+ })();
918
+ if (obj_sourceObjectName_union1_error != null) {
919
+ obj_sourceObjectName_union1 = obj_sourceObjectName_union1_error.message;
920
+ }
921
+ if (obj_sourceObjectName_union0 && obj_sourceObjectName_union1) {
922
+ let message = 'Object doesn\'t match union (at "' + path_sourceObjectName + '")';
923
+ message += '\n' + obj_sourceObjectName_union0.split('\n').map((line) => '\t' + line).join('\n');
924
+ message += '\n' + obj_sourceObjectName_union1.split('\n').map((line) => '\t' + line).join('\n');
925
+ return new TypeError(message);
926
+ }
927
+ const obj_url = obj.url;
928
+ const path_url = path + '.url';
929
+ let obj_url_union0 = null;
930
+ const obj_url_union0_error = (() => {
931
+ if (typeof obj_url !== 'string') {
932
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
933
+ }
934
+ })();
935
+ if (obj_url_union0_error != null) {
936
+ obj_url_union0 = obj_url_union0_error.message;
937
+ }
938
+ let obj_url_union1 = null;
939
+ const obj_url_union1_error = (() => {
940
+ if (obj_url !== null) {
941
+ return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
942
+ }
943
+ })();
944
+ if (obj_url_union1_error != null) {
945
+ obj_url_union1 = obj_url_union1_error.message;
946
+ }
947
+ if (obj_url_union0 && obj_url_union1) {
948
+ let message = 'Object doesn\'t match union (at "' + path_url + '")';
949
+ message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
950
+ message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
951
+ return new TypeError(message);
952
+ }
953
+ })();
954
+ return v_error === undefined ? null : v_error;
955
+ }
956
+
869
957
  function validate$3(obj, path = 'ServicePlanReferenceDetailsRepresentation') {
870
958
  const v_error = (() => {
871
959
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -895,6 +983,23 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
895
983
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
896
984
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
897
985
  }
986
+ if (obj.citations !== undefined) {
987
+ const obj_citations = obj.citations;
988
+ const path_citations = path + '.citations';
989
+ if (!ArrayIsArray(obj_citations)) {
990
+ return new TypeError('Expected "array" but received "' + typeof obj_citations + '" (at "' + path_citations + '")');
991
+ }
992
+ for (let i = 0; i < obj_citations.length; i++) {
993
+ const obj_citations_item = obj_citations[i];
994
+ const path_citations_item = path_citations + '[' + i + ']';
995
+ const referencepath_citations_itemValidationError = validate$4(obj_citations_item, path_citations_item);
996
+ if (referencepath_citations_itemValidationError !== null) {
997
+ let message = 'Object doesn\'t match ServicePlanStepCitationSourceRepresentation (at "' + path_citations_item + '")\n';
998
+ message += referencepath_citations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
999
+ return new TypeError(message);
1000
+ }
1001
+ }
1002
+ }
898
1003
  const obj_executionStatus = obj.executionStatus;
899
1004
  const path_executionStatus = path + '.executionStatus';
900
1005
  if (typeof obj_executionStatus !== 'string') {
@@ -9,6 +9,7 @@ export interface GenerateServicePlanConfig {
9
9
  processingMode?: string;
10
10
  recordId?: string;
11
11
  regenerate?: boolean;
12
+ useCase?: string;
12
13
  additionalContext: {
13
14
  [key: string]: string;
14
15
  };
@@ -5,6 +5,7 @@ export interface ResourceRequestConfig {
5
5
  processingMode?: string;
6
6
  recordId?: string;
7
7
  regenerate?: boolean;
8
+ useCase?: string;
8
9
  };
9
10
  body: {
10
11
  additionalContext: {
@@ -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 = "bb508629a92ac8b87df9c8426f100da5";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ServicePlanStepCitationSourceRepresentation, existing: ServicePlanStepCitationSourceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanStepCitationSourceRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ServicePlanStepCitationSourceRepresentationNormalized, incoming: ServicePlanStepCitationSourceRepresentationNormalized): 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: ServicePlanStepCitationSourceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Service Plan citations representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ServicePlanStepCitationSourceRepresentationNormalized {
17
+ /** Citation RecordId, if any */
18
+ recordId: string | null;
19
+ /** Citation source type */
20
+ sourceObjectName: string | null;
21
+ /** Citation URL */
22
+ url: string | null;
23
+ }
24
+ /**
25
+ * Service Plan citations representation
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface ServicePlanStepCitationSourceRepresentation {
31
+ recordId: string | null;
32
+ sourceObjectName: string | null;
33
+ url: string | null;
34
+ }
@@ -1,6 +1,7 @@
1
+ import { ServicePlanStepCitationSourceRepresentation as ServicePlanStepCitationSourceRepresentation_ServicePlanStepCitationSourceRepresentation } from './ServicePlanStepCitationSourceRepresentation';
1
2
  import { ServicePlanReferenceDetailsRepresentation as ServicePlanReferenceDetailsRepresentation_ServicePlanReferenceDetailsRepresentation } from './ServicePlanReferenceDetailsRepresentation';
2
3
  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';
3
- export declare const VERSION = "32680bb6f733b1949165799c654d0e37";
4
+ export declare const VERSION = "120c6b181c8d4f71c8c74fbcd02a18c4";
4
5
  export declare function validate(obj: any, path?: string): TypeError | null;
5
6
  export declare const RepresentationType: string;
6
7
  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;
@@ -15,6 +16,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
16
  * (none)
16
17
  */
17
18
  export interface ServicePlanStepDetailsRepresentationNormalized {
19
+ /** Step citations */
20
+ citations?: Array<ServicePlanStepCitationSourceRepresentation_ServicePlanStepCitationSourceRepresentation>;
18
21
  /** Step execution state */
19
22
  executionStatus: string;
20
23
  /** Group Name */
@@ -39,6 +42,7 @@ export interface ServicePlanStepDetailsRepresentationNormalized {
39
42
  * (none)
40
43
  */
41
44
  export interface ServicePlanStepDetailsRepresentation {
45
+ citations?: Array<ServicePlanStepCitationSourceRepresentation_ServicePlanStepCitationSourceRepresentation>;
42
46
  executionStatus: string;
43
47
  groupName: string | null;
44
48
  isSuggested: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-serviceplan",
3
- "version": "1.370.0",
3
+ "version": "1.372.0",
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.370.0"
43
+ "@salesforce/lds-bindings": "^1.372.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.370.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.372.0"
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$6(obj, path = 'ServicePlanStepExecutionStatusRepresentation') {
107
+ function validate$7(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$6(input);
166
+ const validateError = validate$7(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$5(obj, path = 'ServicePlanExecutionOutputRepresentation') {
187
+ function validate$6(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$5(input);
280
+ const validateError = validate$6(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$4(obj, path = 'ServicePlanGenerationOutputRepresentation') {
397
+ function validate$5(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$4(input);
593
+ const validateError = validate$5(input);
594
594
  if (validateError !== null) {
595
595
  throw validateError;
596
596
  }
@@ -666,6 +666,7 @@ const generateServicePlan_ConfigPropertyMetadata = [
666
666
  generateParamConfigMetadata('processingMode', false, 1 /* QueryParameter */, 0 /* String */),
667
667
  generateParamConfigMetadata('recordId', false, 1 /* QueryParameter */, 0 /* String */),
668
668
  generateParamConfigMetadata('regenerate', false, 1 /* QueryParameter */, 1 /* Boolean */),
669
+ generateParamConfigMetadata('useCase', false, 1 /* QueryParameter */, 0 /* String */),
669
670
  generateParamConfigMetadata('additionalContext', true, 2 /* Body */, 4 /* Unsupported */),
670
671
  generateParamConfigMetadata('generationMode', true, 2 /* Body */, 0 /* String */),
671
672
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
@@ -876,6 +877,93 @@ const getGenerationRequestAdapterFactory = (luvio) => function ServicePlan__getG
876
877
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
877
878
  };
878
879
 
880
+ function validate$4(obj, path = 'ServicePlanStepCitationSourceRepresentation') {
881
+ const v_error = (() => {
882
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
883
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
884
+ }
885
+ const obj_recordId = obj.recordId;
886
+ const path_recordId = path + '.recordId';
887
+ let obj_recordId_union0 = null;
888
+ const obj_recordId_union0_error = (() => {
889
+ if (typeof obj_recordId !== 'string') {
890
+ return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
891
+ }
892
+ })();
893
+ if (obj_recordId_union0_error != null) {
894
+ obj_recordId_union0 = obj_recordId_union0_error.message;
895
+ }
896
+ let obj_recordId_union1 = null;
897
+ const obj_recordId_union1_error = (() => {
898
+ if (obj_recordId !== null) {
899
+ return new TypeError('Expected "null" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
900
+ }
901
+ })();
902
+ if (obj_recordId_union1_error != null) {
903
+ obj_recordId_union1 = obj_recordId_union1_error.message;
904
+ }
905
+ if (obj_recordId_union0 && obj_recordId_union1) {
906
+ let message = 'Object doesn\'t match union (at "' + path_recordId + '")';
907
+ message += '\n' + obj_recordId_union0.split('\n').map((line) => '\t' + line).join('\n');
908
+ message += '\n' + obj_recordId_union1.split('\n').map((line) => '\t' + line).join('\n');
909
+ return new TypeError(message);
910
+ }
911
+ const obj_sourceObjectName = obj.sourceObjectName;
912
+ const path_sourceObjectName = path + '.sourceObjectName';
913
+ let obj_sourceObjectName_union0 = null;
914
+ const obj_sourceObjectName_union0_error = (() => {
915
+ if (typeof obj_sourceObjectName !== 'string') {
916
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectName + '" (at "' + path_sourceObjectName + '")');
917
+ }
918
+ })();
919
+ if (obj_sourceObjectName_union0_error != null) {
920
+ obj_sourceObjectName_union0 = obj_sourceObjectName_union0_error.message;
921
+ }
922
+ let obj_sourceObjectName_union1 = null;
923
+ const obj_sourceObjectName_union1_error = (() => {
924
+ if (obj_sourceObjectName !== null) {
925
+ return new TypeError('Expected "null" but received "' + typeof obj_sourceObjectName + '" (at "' + path_sourceObjectName + '")');
926
+ }
927
+ })();
928
+ if (obj_sourceObjectName_union1_error != null) {
929
+ obj_sourceObjectName_union1 = obj_sourceObjectName_union1_error.message;
930
+ }
931
+ if (obj_sourceObjectName_union0 && obj_sourceObjectName_union1) {
932
+ let message = 'Object doesn\'t match union (at "' + path_sourceObjectName + '")';
933
+ message += '\n' + obj_sourceObjectName_union0.split('\n').map((line) => '\t' + line).join('\n');
934
+ message += '\n' + obj_sourceObjectName_union1.split('\n').map((line) => '\t' + line).join('\n');
935
+ return new TypeError(message);
936
+ }
937
+ const obj_url = obj.url;
938
+ const path_url = path + '.url';
939
+ let obj_url_union0 = null;
940
+ const obj_url_union0_error = (() => {
941
+ if (typeof obj_url !== 'string') {
942
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
943
+ }
944
+ })();
945
+ if (obj_url_union0_error != null) {
946
+ obj_url_union0 = obj_url_union0_error.message;
947
+ }
948
+ let obj_url_union1 = null;
949
+ const obj_url_union1_error = (() => {
950
+ if (obj_url !== null) {
951
+ return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
952
+ }
953
+ })();
954
+ if (obj_url_union1_error != null) {
955
+ obj_url_union1 = obj_url_union1_error.message;
956
+ }
957
+ if (obj_url_union0 && obj_url_union1) {
958
+ let message = 'Object doesn\'t match union (at "' + path_url + '")';
959
+ message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
960
+ message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
961
+ return new TypeError(message);
962
+ }
963
+ })();
964
+ return v_error === undefined ? null : v_error;
965
+ }
966
+
879
967
  function validate$3(obj, path = 'ServicePlanReferenceDetailsRepresentation') {
880
968
  const v_error = (() => {
881
969
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -905,6 +993,23 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
905
993
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
906
994
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
907
995
  }
996
+ if (obj.citations !== undefined) {
997
+ const obj_citations = obj.citations;
998
+ const path_citations = path + '.citations';
999
+ if (!ArrayIsArray(obj_citations)) {
1000
+ return new TypeError('Expected "array" but received "' + typeof obj_citations + '" (at "' + path_citations + '")');
1001
+ }
1002
+ for (let i = 0; i < obj_citations.length; i++) {
1003
+ const obj_citations_item = obj_citations[i];
1004
+ const path_citations_item = path_citations + '[' + i + ']';
1005
+ const referencepath_citations_itemValidationError = validate$4(obj_citations_item, path_citations_item);
1006
+ if (referencepath_citations_itemValidationError !== null) {
1007
+ let message = 'Object doesn\'t match ServicePlanStepCitationSourceRepresentation (at "' + path_citations_item + '")\n';
1008
+ message += referencepath_citations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1009
+ return new TypeError(message);
1010
+ }
1011
+ }
1012
+ }
908
1013
  const obj_executionStatus = obj.executionStatus;
909
1014
  const path_executionStatus = path + '.executionStatus';
910
1015
  if (typeof obj_executionStatus !== 'string') {
@@ -1644,4 +1749,4 @@ withDefaultLuvio((luvio) => {
1644
1749
  });
1645
1750
 
1646
1751
  export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative, notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
1647
- // version: 1.370.0-7c1df2520b
1752
+ // version: 1.372.0-59e8aa192f
package/src/raml/api.raml CHANGED
@@ -201,10 +201,29 @@ types:
201
201
  type:
202
202
  description: Reference type
203
203
  type: string
204
+ ServicePlanStepCitationSourceRepresentation:
205
+ description: Service Plan citations representation
206
+ type: object
207
+ properties:
208
+ recordId:
209
+ description: Citation RecordId, if any
210
+ type: string | nil #handRolled
211
+ sourceObjectName:
212
+ description: Citation source type
213
+ type: string | nil #handRolled
214
+ url:
215
+ description: Citation URL
216
+ type: string | nil #handRolled
204
217
  ServicePlanStepDetailsRepresentation:
205
218
  description: Service Plan step representation
206
219
  type: object
207
220
  properties:
221
+ citations:
222
+ description: Step citations
223
+ type: array
224
+ items:
225
+ type: ServicePlanStepCitationSourceRepresentation
226
+ required: false # Hand-Rolled W-18566464
208
227
  executionStatus:
209
228
  description: Step execution state
210
229
  type: string
@@ -295,6 +314,9 @@ types:
295
314
  type: boolean
296
315
  required: false
297
316
  default: false
317
+ useCase:
318
+ type: string
319
+ required: false
298
320
  body:
299
321
  application/json:
300
322
  type: ServicePlanGenerationInputParamRepresentation