@salesforce/lds-adapters-service-serviceplan 1.354.0-dev2 → 1.354.0-dev20
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.
- package/dist/es/es2018/service-serviceplan.js +82 -6
- package/dist/es/es2018/types/src/generated/types/ServicePlanReferenceDetailsRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepDetailsRepresentation.d.ts +11 -1
- package/package.json +3 -3
- package/sfdc/index.js +83 -7
- package/src/raml/api.raml +28 -2
|
@@ -94,7 +94,7 @@ function createLink(ref) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
const VERSION$4 = "de8249c0171ece44729fbb33b422a074";
|
|
97
|
-
function validate$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
583
|
+
const validateError = validate$4(input);
|
|
584
584
|
if (validateError !== null) {
|
|
585
585
|
throw validateError;
|
|
586
586
|
}
|
|
@@ -866,11 +866,63 @@ 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) {
|
|
872
896
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
873
897
|
}
|
|
898
|
+
if (obj.actionLabel !== undefined) {
|
|
899
|
+
const obj_actionLabel = obj.actionLabel;
|
|
900
|
+
const path_actionLabel = path + '.actionLabel';
|
|
901
|
+
let obj_actionLabel_union0 = null;
|
|
902
|
+
const obj_actionLabel_union0_error = (() => {
|
|
903
|
+
if (typeof obj_actionLabel !== 'string') {
|
|
904
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
905
|
+
}
|
|
906
|
+
})();
|
|
907
|
+
if (obj_actionLabel_union0_error != null) {
|
|
908
|
+
obj_actionLabel_union0 = obj_actionLabel_union0_error.message;
|
|
909
|
+
}
|
|
910
|
+
let obj_actionLabel_union1 = null;
|
|
911
|
+
const obj_actionLabel_union1_error = (() => {
|
|
912
|
+
if (obj_actionLabel !== null) {
|
|
913
|
+
return new TypeError('Expected "null" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
914
|
+
}
|
|
915
|
+
})();
|
|
916
|
+
if (obj_actionLabel_union1_error != null) {
|
|
917
|
+
obj_actionLabel_union1 = obj_actionLabel_union1_error.message;
|
|
918
|
+
}
|
|
919
|
+
if (obj_actionLabel_union0 && obj_actionLabel_union1) {
|
|
920
|
+
let message = 'Object doesn\'t match union (at "' + path_actionLabel + '")';
|
|
921
|
+
message += '\n' + obj_actionLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
922
|
+
message += '\n' + obj_actionLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
923
|
+
return new TypeError(message);
|
|
924
|
+
}
|
|
925
|
+
}
|
|
874
926
|
const obj_executionStatus = obj.executionStatus;
|
|
875
927
|
const path_executionStatus = path + '.executionStatus';
|
|
876
928
|
if (typeof obj_executionStatus !== 'string') {
|
|
@@ -912,6 +964,23 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
912
964
|
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
913
965
|
return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
|
|
914
966
|
}
|
|
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
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
915
984
|
const obj_stepId = obj.stepId;
|
|
916
985
|
const path_stepId = path + '.stepId';
|
|
917
986
|
if (typeof obj_stepId !== 'string') {
|
|
@@ -927,6 +996,13 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
927
996
|
if (typeof obj_stepSummary !== 'string') {
|
|
928
997
|
return new TypeError('Expected "string" but received "' + typeof obj_stepSummary + '" (at "' + path_stepSummary + '")');
|
|
929
998
|
}
|
|
999
|
+
if (obj.type !== undefined) {
|
|
1000
|
+
const obj_type = obj.type;
|
|
1001
|
+
const path_type = path + '.type';
|
|
1002
|
+
if (typeof obj_type !== 'string') {
|
|
1003
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
930
1006
|
})();
|
|
931
1007
|
return v_error === undefined ? null : v_error;
|
|
932
1008
|
}
|
package/dist/es/es2018/types/src/generated/types/ServicePlanReferenceDetailsRepresentation.d.ts
ADDED
|
@@ -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 = "
|
|
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;
|
|
@@ -14,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
15
|
* (none)
|
|
15
16
|
*/
|
|
16
17
|
export interface ServicePlanStepDetailsRepresentationNormalized {
|
|
18
|
+
/** Action label */
|
|
19
|
+
actionLabel?: string | null;
|
|
17
20
|
/** Step execution state */
|
|
18
21
|
executionStatus: string;
|
|
19
22
|
/** Group Name */
|
|
@@ -22,12 +25,16 @@ export interface ServicePlanStepDetailsRepresentationNormalized {
|
|
|
22
25
|
isSuggested: boolean;
|
|
23
26
|
/** Step order */
|
|
24
27
|
order: number;
|
|
28
|
+
/** Step references */
|
|
29
|
+
references?: Array<ServicePlanReferenceDetailsRepresentation_ServicePlanReferenceDetailsRepresentation>;
|
|
25
30
|
/** Step ID */
|
|
26
31
|
stepId: string;
|
|
27
32
|
/** Step name */
|
|
28
33
|
stepName: string;
|
|
29
34
|
/** Step summary */
|
|
30
35
|
stepSummary: string;
|
|
36
|
+
/** Step type */
|
|
37
|
+
type?: string;
|
|
31
38
|
}
|
|
32
39
|
/**
|
|
33
40
|
* Service Plan step representation
|
|
@@ -36,11 +43,14 @@ export interface ServicePlanStepDetailsRepresentationNormalized {
|
|
|
36
43
|
* (none)
|
|
37
44
|
*/
|
|
38
45
|
export interface ServicePlanStepDetailsRepresentation {
|
|
46
|
+
actionLabel?: string | null;
|
|
39
47
|
executionStatus: string;
|
|
40
48
|
groupName: string | null;
|
|
41
49
|
isSuggested: boolean;
|
|
42
50
|
order: number;
|
|
51
|
+
references?: Array<ServicePlanReferenceDetailsRepresentation_ServicePlanReferenceDetailsRepresentation>;
|
|
43
52
|
stepId: string;
|
|
44
53
|
stepName: string;
|
|
45
54
|
stepSummary: string;
|
|
55
|
+
type?: string;
|
|
46
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-serviceplan",
|
|
3
|
-
"version": "1.354.0-
|
|
3
|
+
"version": "1.354.0-dev20",
|
|
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-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.354.0-dev20"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev20"
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
593
|
+
const validateError = validate$4(input);
|
|
594
594
|
if (validateError !== null) {
|
|
595
595
|
throw validateError;
|
|
596
596
|
}
|
|
@@ -876,11 +876,63 @@ 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) {
|
|
882
906
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
883
907
|
}
|
|
908
|
+
if (obj.actionLabel !== undefined) {
|
|
909
|
+
const obj_actionLabel = obj.actionLabel;
|
|
910
|
+
const path_actionLabel = path + '.actionLabel';
|
|
911
|
+
let obj_actionLabel_union0 = null;
|
|
912
|
+
const obj_actionLabel_union0_error = (() => {
|
|
913
|
+
if (typeof obj_actionLabel !== 'string') {
|
|
914
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
915
|
+
}
|
|
916
|
+
})();
|
|
917
|
+
if (obj_actionLabel_union0_error != null) {
|
|
918
|
+
obj_actionLabel_union0 = obj_actionLabel_union0_error.message;
|
|
919
|
+
}
|
|
920
|
+
let obj_actionLabel_union1 = null;
|
|
921
|
+
const obj_actionLabel_union1_error = (() => {
|
|
922
|
+
if (obj_actionLabel !== null) {
|
|
923
|
+
return new TypeError('Expected "null" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
924
|
+
}
|
|
925
|
+
})();
|
|
926
|
+
if (obj_actionLabel_union1_error != null) {
|
|
927
|
+
obj_actionLabel_union1 = obj_actionLabel_union1_error.message;
|
|
928
|
+
}
|
|
929
|
+
if (obj_actionLabel_union0 && obj_actionLabel_union1) {
|
|
930
|
+
let message = 'Object doesn\'t match union (at "' + path_actionLabel + '")';
|
|
931
|
+
message += '\n' + obj_actionLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
932
|
+
message += '\n' + obj_actionLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
933
|
+
return new TypeError(message);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
884
936
|
const obj_executionStatus = obj.executionStatus;
|
|
885
937
|
const path_executionStatus = path + '.executionStatus';
|
|
886
938
|
if (typeof obj_executionStatus !== 'string') {
|
|
@@ -922,6 +974,23 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
922
974
|
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
923
975
|
return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
|
|
924
976
|
}
|
|
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
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
925
994
|
const obj_stepId = obj.stepId;
|
|
926
995
|
const path_stepId = path + '.stepId';
|
|
927
996
|
if (typeof obj_stepId !== 'string') {
|
|
@@ -937,6 +1006,13 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
937
1006
|
if (typeof obj_stepSummary !== 'string') {
|
|
938
1007
|
return new TypeError('Expected "string" but received "' + typeof obj_stepSummary + '" (at "' + path_stepSummary + '")');
|
|
939
1008
|
}
|
|
1009
|
+
if (obj.type !== undefined) {
|
|
1010
|
+
const obj_type = obj.type;
|
|
1011
|
+
const path_type = path + '.type';
|
|
1012
|
+
if (typeof obj_type !== 'string') {
|
|
1013
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
940
1016
|
})();
|
|
941
1017
|
return v_error === undefined ? null : v_error;
|
|
942
1018
|
}
|
|
@@ -1603,4 +1679,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1603
1679
|
});
|
|
1604
1680
|
|
|
1605
1681
|
export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative, notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
|
|
1606
|
-
// version: 1.354.0-
|
|
1682
|
+
// version: 1.354.0-dev20-c23c23e6bf
|
package/src/raml/api.raml
CHANGED
|
@@ -89,8 +89,7 @@ types:
|
|
|
89
89
|
description: Topic
|
|
90
90
|
type: string | nil #handRolled
|
|
91
91
|
ServicePlanExecutionInputRepresentation:
|
|
92
|
-
description: Represents a generated service plan input context required for service
|
|
93
|
-
plan execution
|
|
92
|
+
description: Represents a generated service plan input context required for service plan execution
|
|
94
93
|
type: object
|
|
95
94
|
properties:
|
|
96
95
|
action:
|
|
@@ -189,10 +188,27 @@ types:
|
|
|
189
188
|
- Generation
|
|
190
189
|
- GenerationPreview
|
|
191
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
|
|
192
204
|
ServicePlanStepDetailsRepresentation:
|
|
193
205
|
description: Service Plan step representation
|
|
194
206
|
type: object
|
|
195
207
|
properties:
|
|
208
|
+
actionLabel:
|
|
209
|
+
description: Action label
|
|
210
|
+
required: false #TODO Hand-rolled W-18452620
|
|
211
|
+
type: string | nil #handRolled
|
|
196
212
|
executionStatus:
|
|
197
213
|
description: Step execution state
|
|
198
214
|
type: string
|
|
@@ -210,6 +226,12 @@ types:
|
|
|
210
226
|
order:
|
|
211
227
|
description: Step order
|
|
212
228
|
type: integer
|
|
229
|
+
references:
|
|
230
|
+
description: Step references
|
|
231
|
+
type: array
|
|
232
|
+
items:
|
|
233
|
+
type: ServicePlanReferenceDetailsRepresentation
|
|
234
|
+
required: false #Hand-rolled W-18566464
|
|
213
235
|
stepId:
|
|
214
236
|
description: Step ID
|
|
215
237
|
type: string
|
|
@@ -219,6 +241,10 @@ types:
|
|
|
219
241
|
stepSummary:
|
|
220
242
|
description: Step summary
|
|
221
243
|
type: string
|
|
244
|
+
type:
|
|
245
|
+
description: Step type
|
|
246
|
+
required: false #TODO Hand-rolled W-18452620
|
|
247
|
+
type: string
|
|
222
248
|
ServicePlanStepExecutionStatusRepresentation:
|
|
223
249
|
description: Represents the execution status of a Service Plan Step
|
|
224
250
|
type: object
|