@salesforce/lds-adapters-service-serviceplan 1.364.0 → 1.366.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.
- package/dist/es/es2018/service-serviceplan.js +44 -39
- package/dist/es/es2018/types/src/generated/types/ServicePlanReferenceDetailsRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepDetailsRepresentation.d.ts +5 -10
- package/package.json +3 -3
- package/sfdc/index.js +45 -40
- package/src/raml/api.raml +20 -10
|
@@ -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,36 +866,34 @@ const getGenerationRequestAdapterFactory = (luvio) => function ServicePlan__getG
|
|
|
866
866
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
867
867
|
};
|
|
868
868
|
|
|
869
|
-
function validate$
|
|
869
|
+
function validate$3(obj, path = 'ServicePlanReferenceDetailsRepresentation') {
|
|
870
870
|
const v_error = (() => {
|
|
871
871
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
872
872
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
873
873
|
}
|
|
874
|
-
const
|
|
875
|
-
const
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
if (typeof obj_actionLabel !== 'string') {
|
|
879
|
-
return new TypeError('Expected "string" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
880
|
-
}
|
|
881
|
-
})();
|
|
882
|
-
if (obj_actionLabel_union0_error != null) {
|
|
883
|
-
obj_actionLabel_union0 = obj_actionLabel_union0_error.message;
|
|
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 + '")');
|
|
884
878
|
}
|
|
885
|
-
|
|
886
|
-
const
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
}
|
|
890
|
-
})();
|
|
891
|
-
if (obj_actionLabel_union1_error != null) {
|
|
892
|
-
obj_actionLabel_union1 = obj_actionLabel_union1_error.message;
|
|
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 + '")');
|
|
893
883
|
}
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
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
|
+
|
|
893
|
+
function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
894
|
+
const v_error = (() => {
|
|
895
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
896
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
899
897
|
}
|
|
900
898
|
const obj_executionStatus = obj.executionStatus;
|
|
901
899
|
const path_executionStatus = path + '.executionStatus';
|
|
@@ -938,10 +936,22 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
938
936
|
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
939
937
|
return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
|
|
940
938
|
}
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
939
|
+
if (obj.references !== undefined) {
|
|
940
|
+
const obj_references = obj.references;
|
|
941
|
+
const path_references = path + '.references';
|
|
942
|
+
if (!ArrayIsArray(obj_references)) {
|
|
943
|
+
return new TypeError('Expected "array" but received "' + typeof obj_references + '" (at "' + path_references + '")');
|
|
944
|
+
}
|
|
945
|
+
for (let i = 0; i < obj_references.length; i++) {
|
|
946
|
+
const obj_references_item = obj_references[i];
|
|
947
|
+
const path_references_item = path_references + '[' + i + ']';
|
|
948
|
+
const referencepath_references_itemValidationError = validate$3(obj_references_item, path_references_item);
|
|
949
|
+
if (referencepath_references_itemValidationError !== null) {
|
|
950
|
+
let message = 'Object doesn\'t match ServicePlanReferenceDetailsRepresentation (at "' + path_references_item + '")\n';
|
|
951
|
+
message += referencepath_references_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
952
|
+
return new TypeError(message);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
945
955
|
}
|
|
946
956
|
const obj_stepId = obj.stepId;
|
|
947
957
|
const path_stepId = path + '.stepId';
|
|
@@ -958,11 +968,6 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
958
968
|
if (typeof obj_stepSummary !== 'string') {
|
|
959
969
|
return new TypeError('Expected "string" but received "' + typeof obj_stepSummary + '" (at "' + path_stepSummary + '")');
|
|
960
970
|
}
|
|
961
|
-
const obj_type = obj.type;
|
|
962
|
-
const path_type = path + '.type';
|
|
963
|
-
if (typeof obj_type !== 'string') {
|
|
964
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
965
|
-
}
|
|
966
971
|
})();
|
|
967
972
|
return v_error === undefined ? null : v_error;
|
|
968
973
|
}
|
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 = "32680bb6f733b1949165799c654d0e37";
|
|
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,8 +15,6 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
15
|
* (none)
|
|
15
16
|
*/
|
|
16
17
|
export interface ServicePlanStepDetailsRepresentationNormalized {
|
|
17
|
-
/** Action label */
|
|
18
|
-
actionLabel: string | null;
|
|
19
18
|
/** Step execution state */
|
|
20
19
|
executionStatus: string;
|
|
21
20
|
/** Group Name */
|
|
@@ -24,16 +23,14 @@ export interface ServicePlanStepDetailsRepresentationNormalized {
|
|
|
24
23
|
isSuggested: boolean;
|
|
25
24
|
/** Step order */
|
|
26
25
|
order: number;
|
|
27
|
-
/**
|
|
28
|
-
|
|
26
|
+
/** Step references */
|
|
27
|
+
references?: Array<ServicePlanReferenceDetailsRepresentation_ServicePlanReferenceDetailsRepresentation>;
|
|
29
28
|
/** Step ID */
|
|
30
29
|
stepId: string;
|
|
31
30
|
/** Step name */
|
|
32
31
|
stepName: string;
|
|
33
32
|
/** Step summary */
|
|
34
33
|
stepSummary: string;
|
|
35
|
-
/** Step type */
|
|
36
|
-
type: string;
|
|
37
34
|
}
|
|
38
35
|
/**
|
|
39
36
|
* Service Plan step representation
|
|
@@ -42,14 +39,12 @@ export interface ServicePlanStepDetailsRepresentationNormalized {
|
|
|
42
39
|
* (none)
|
|
43
40
|
*/
|
|
44
41
|
export interface ServicePlanStepDetailsRepresentation {
|
|
45
|
-
actionLabel: string | null;
|
|
46
42
|
executionStatus: string;
|
|
47
43
|
groupName: string | null;
|
|
48
44
|
isSuggested: boolean;
|
|
49
45
|
order: number;
|
|
50
|
-
|
|
46
|
+
references?: Array<ServicePlanReferenceDetailsRepresentation_ServicePlanReferenceDetailsRepresentation>;
|
|
51
47
|
stepId: string;
|
|
52
48
|
stepName: string;
|
|
53
49
|
stepSummary: string;
|
|
54
|
-
type: string;
|
|
55
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-serviceplan",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.366.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.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.366.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.366.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$
|
|
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,36 +876,34 @@ const getGenerationRequestAdapterFactory = (luvio) => function ServicePlan__getG
|
|
|
876
876
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
877
877
|
};
|
|
878
878
|
|
|
879
|
-
function validate$
|
|
879
|
+
function validate$3(obj, path = 'ServicePlanReferenceDetailsRepresentation') {
|
|
880
880
|
const v_error = (() => {
|
|
881
881
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
882
882
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
883
883
|
}
|
|
884
|
-
const
|
|
885
|
-
const
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
if (typeof obj_actionLabel !== 'string') {
|
|
889
|
-
return new TypeError('Expected "string" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
890
|
-
}
|
|
891
|
-
})();
|
|
892
|
-
if (obj_actionLabel_union0_error != null) {
|
|
893
|
-
obj_actionLabel_union0 = obj_actionLabel_union0_error.message;
|
|
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 + '")');
|
|
894
888
|
}
|
|
895
|
-
|
|
896
|
-
const
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
}
|
|
900
|
-
})();
|
|
901
|
-
if (obj_actionLabel_union1_error != null) {
|
|
902
|
-
obj_actionLabel_union1 = obj_actionLabel_union1_error.message;
|
|
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 + '")');
|
|
903
893
|
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
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
|
+
|
|
903
|
+
function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
904
|
+
const v_error = (() => {
|
|
905
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
906
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
909
907
|
}
|
|
910
908
|
const obj_executionStatus = obj.executionStatus;
|
|
911
909
|
const path_executionStatus = path + '.executionStatus';
|
|
@@ -948,10 +946,22 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
948
946
|
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
949
947
|
return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
|
|
950
948
|
}
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
949
|
+
if (obj.references !== undefined) {
|
|
950
|
+
const obj_references = obj.references;
|
|
951
|
+
const path_references = path + '.references';
|
|
952
|
+
if (!ArrayIsArray(obj_references)) {
|
|
953
|
+
return new TypeError('Expected "array" but received "' + typeof obj_references + '" (at "' + path_references + '")');
|
|
954
|
+
}
|
|
955
|
+
for (let i = 0; i < obj_references.length; i++) {
|
|
956
|
+
const obj_references_item = obj_references[i];
|
|
957
|
+
const path_references_item = path_references + '[' + i + ']';
|
|
958
|
+
const referencepath_references_itemValidationError = validate$3(obj_references_item, path_references_item);
|
|
959
|
+
if (referencepath_references_itemValidationError !== null) {
|
|
960
|
+
let message = 'Object doesn\'t match ServicePlanReferenceDetailsRepresentation (at "' + path_references_item + '")\n';
|
|
961
|
+
message += referencepath_references_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
962
|
+
return new TypeError(message);
|
|
963
|
+
}
|
|
964
|
+
}
|
|
955
965
|
}
|
|
956
966
|
const obj_stepId = obj.stepId;
|
|
957
967
|
const path_stepId = path + '.stepId';
|
|
@@ -968,11 +978,6 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
968
978
|
if (typeof obj_stepSummary !== 'string') {
|
|
969
979
|
return new TypeError('Expected "string" but received "' + typeof obj_stepSummary + '" (at "' + path_stepSummary + '")');
|
|
970
980
|
}
|
|
971
|
-
const obj_type = obj.type;
|
|
972
|
-
const path_type = path + '.type';
|
|
973
|
-
if (typeof obj_type !== 'string') {
|
|
974
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
975
|
-
}
|
|
976
981
|
})();
|
|
977
982
|
return v_error === undefined ? null : v_error;
|
|
978
983
|
}
|
|
@@ -1639,4 +1644,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1639
1644
|
});
|
|
1640
1645
|
|
|
1641
1646
|
export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative, notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
|
|
1642
|
-
// version: 1.
|
|
1647
|
+
// version: 1.366.0-bf15f04cce
|
package/src/raml/api.raml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
securedBy:
|
|
3
3
|
- OAuth2
|
|
4
4
|
title: Salesforce Connect API
|
|
5
|
-
version: '
|
|
5
|
+
version: '65.0'
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
@@ -188,13 +188,23 @@ 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
|
|
194
207
|
properties:
|
|
195
|
-
actionLabel:
|
|
196
|
-
description: Action label
|
|
197
|
-
type: string | nil #handRolled
|
|
198
208
|
executionStatus:
|
|
199
209
|
description: Step execution state
|
|
200
210
|
type: string
|
|
@@ -212,9 +222,12 @@ types:
|
|
|
212
222
|
order:
|
|
213
223
|
description: Step order
|
|
214
224
|
type: integer
|
|
215
|
-
|
|
216
|
-
description:
|
|
217
|
-
type:
|
|
225
|
+
references:
|
|
226
|
+
description: Step references
|
|
227
|
+
type: array
|
|
228
|
+
items:
|
|
229
|
+
type: ServicePlanReferenceDetailsRepresentation
|
|
230
|
+
required: false # Hand-Rolled W-18566464
|
|
218
231
|
stepId:
|
|
219
232
|
description: Step ID
|
|
220
233
|
type: string
|
|
@@ -224,9 +237,6 @@ types:
|
|
|
224
237
|
stepSummary:
|
|
225
238
|
description: Step summary
|
|
226
239
|
type: string
|
|
227
|
-
type:
|
|
228
|
-
description: Step type
|
|
229
|
-
type: string
|
|
230
240
|
ServicePlanStepExecutionStatusRepresentation:
|
|
231
241
|
description: Represents the execution status of a Service Plan Step
|
|
232
242
|
type: object
|