@salesforce/lds-adapters-service-serviceplan 1.354.0-dev1 → 1.354.0-dev10
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.
|
@@ -871,6 +871,34 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
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
|
+
if (obj.actionLabel !== undefined) {
|
|
875
|
+
const obj_actionLabel = obj.actionLabel;
|
|
876
|
+
const path_actionLabel = path + '.actionLabel';
|
|
877
|
+
let obj_actionLabel_union0 = null;
|
|
878
|
+
const obj_actionLabel_union0_error = (() => {
|
|
879
|
+
if (typeof obj_actionLabel !== 'string') {
|
|
880
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
881
|
+
}
|
|
882
|
+
})();
|
|
883
|
+
if (obj_actionLabel_union0_error != null) {
|
|
884
|
+
obj_actionLabel_union0 = obj_actionLabel_union0_error.message;
|
|
885
|
+
}
|
|
886
|
+
let obj_actionLabel_union1 = null;
|
|
887
|
+
const obj_actionLabel_union1_error = (() => {
|
|
888
|
+
if (obj_actionLabel !== null) {
|
|
889
|
+
return new TypeError('Expected "null" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
890
|
+
}
|
|
891
|
+
})();
|
|
892
|
+
if (obj_actionLabel_union1_error != null) {
|
|
893
|
+
obj_actionLabel_union1 = obj_actionLabel_union1_error.message;
|
|
894
|
+
}
|
|
895
|
+
if (obj_actionLabel_union0 && obj_actionLabel_union1) {
|
|
896
|
+
let message = 'Object doesn\'t match union (at "' + path_actionLabel + '")';
|
|
897
|
+
message += '\n' + obj_actionLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
898
|
+
message += '\n' + obj_actionLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
899
|
+
return new TypeError(message);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
874
902
|
const obj_executionStatus = obj.executionStatus;
|
|
875
903
|
const path_executionStatus = path + '.executionStatus';
|
|
876
904
|
if (typeof obj_executionStatus !== 'string') {
|
|
@@ -912,6 +940,13 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
912
940
|
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
913
941
|
return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
|
|
914
942
|
}
|
|
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 + '")');
|
|
948
|
+
}
|
|
949
|
+
}
|
|
915
950
|
const obj_stepId = obj.stepId;
|
|
916
951
|
const path_stepId = path + '.stepId';
|
|
917
952
|
if (typeof obj_stepId !== 'string') {
|
|
@@ -927,6 +962,13 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
927
962
|
if (typeof obj_stepSummary !== 'string') {
|
|
928
963
|
return new TypeError('Expected "string" but received "' + typeof obj_stepSummary + '" (at "' + path_stepSummary + '")');
|
|
929
964
|
}
|
|
965
|
+
if (obj.type !== undefined) {
|
|
966
|
+
const obj_type = obj.type;
|
|
967
|
+
const path_type = path + '.type';
|
|
968
|
+
if (typeof obj_type !== 'string') {
|
|
969
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
970
|
+
}
|
|
971
|
+
}
|
|
930
972
|
})();
|
|
931
973
|
return v_error === undefined ? null : v_error;
|
|
932
974
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, 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 = "
|
|
2
|
+
export declare const VERSION = "fd4d825589b04981787ab6c2faf648a5";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ServicePlanStepDetailsRepresentation, existing: ServicePlanStepDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanStepDetailsRepresentationNormalized;
|
|
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface ServicePlanStepDetailsRepresentationNormalized {
|
|
17
|
+
/** Action label */
|
|
18
|
+
actionLabel?: string | null;
|
|
17
19
|
/** Step execution state */
|
|
18
20
|
executionStatus: string;
|
|
19
21
|
/** Group Name */
|
|
@@ -22,12 +24,16 @@ export interface ServicePlanStepDetailsRepresentationNormalized {
|
|
|
22
24
|
isSuggested: boolean;
|
|
23
25
|
/** Step order */
|
|
24
26
|
order: number;
|
|
27
|
+
/** Related action name */
|
|
28
|
+
relatedActionName?: string;
|
|
25
29
|
/** Step ID */
|
|
26
30
|
stepId: string;
|
|
27
31
|
/** Step name */
|
|
28
32
|
stepName: string;
|
|
29
33
|
/** Step summary */
|
|
30
34
|
stepSummary: string;
|
|
35
|
+
/** Step type */
|
|
36
|
+
type?: string;
|
|
31
37
|
}
|
|
32
38
|
/**
|
|
33
39
|
* Service Plan step representation
|
|
@@ -36,11 +42,14 @@ export interface ServicePlanStepDetailsRepresentationNormalized {
|
|
|
36
42
|
* (none)
|
|
37
43
|
*/
|
|
38
44
|
export interface ServicePlanStepDetailsRepresentation {
|
|
45
|
+
actionLabel?: string | null;
|
|
39
46
|
executionStatus: string;
|
|
40
47
|
groupName: string | null;
|
|
41
48
|
isSuggested: boolean;
|
|
42
49
|
order: number;
|
|
50
|
+
relatedActionName?: string;
|
|
43
51
|
stepId: string;
|
|
44
52
|
stepName: string;
|
|
45
53
|
stepSummary: string;
|
|
54
|
+
type?: string;
|
|
46
55
|
}
|
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-dev10",
|
|
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-dev10"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev10"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -881,6 +881,34 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
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
|
+
if (obj.actionLabel !== undefined) {
|
|
885
|
+
const obj_actionLabel = obj.actionLabel;
|
|
886
|
+
const path_actionLabel = path + '.actionLabel';
|
|
887
|
+
let obj_actionLabel_union0 = null;
|
|
888
|
+
const obj_actionLabel_union0_error = (() => {
|
|
889
|
+
if (typeof obj_actionLabel !== 'string') {
|
|
890
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
891
|
+
}
|
|
892
|
+
})();
|
|
893
|
+
if (obj_actionLabel_union0_error != null) {
|
|
894
|
+
obj_actionLabel_union0 = obj_actionLabel_union0_error.message;
|
|
895
|
+
}
|
|
896
|
+
let obj_actionLabel_union1 = null;
|
|
897
|
+
const obj_actionLabel_union1_error = (() => {
|
|
898
|
+
if (obj_actionLabel !== null) {
|
|
899
|
+
return new TypeError('Expected "null" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
900
|
+
}
|
|
901
|
+
})();
|
|
902
|
+
if (obj_actionLabel_union1_error != null) {
|
|
903
|
+
obj_actionLabel_union1 = obj_actionLabel_union1_error.message;
|
|
904
|
+
}
|
|
905
|
+
if (obj_actionLabel_union0 && obj_actionLabel_union1) {
|
|
906
|
+
let message = 'Object doesn\'t match union (at "' + path_actionLabel + '")';
|
|
907
|
+
message += '\n' + obj_actionLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
908
|
+
message += '\n' + obj_actionLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
909
|
+
return new TypeError(message);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
884
912
|
const obj_executionStatus = obj.executionStatus;
|
|
885
913
|
const path_executionStatus = path + '.executionStatus';
|
|
886
914
|
if (typeof obj_executionStatus !== 'string') {
|
|
@@ -922,6 +950,13 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
922
950
|
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
923
951
|
return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
|
|
924
952
|
}
|
|
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 + '")');
|
|
958
|
+
}
|
|
959
|
+
}
|
|
925
960
|
const obj_stepId = obj.stepId;
|
|
926
961
|
const path_stepId = path + '.stepId';
|
|
927
962
|
if (typeof obj_stepId !== 'string') {
|
|
@@ -937,6 +972,13 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
937
972
|
if (typeof obj_stepSummary !== 'string') {
|
|
938
973
|
return new TypeError('Expected "string" but received "' + typeof obj_stepSummary + '" (at "' + path_stepSummary + '")');
|
|
939
974
|
}
|
|
975
|
+
if (obj.type !== undefined) {
|
|
976
|
+
const obj_type = obj.type;
|
|
977
|
+
const path_type = path + '.type';
|
|
978
|
+
if (typeof obj_type !== 'string') {
|
|
979
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
980
|
+
}
|
|
981
|
+
}
|
|
940
982
|
})();
|
|
941
983
|
return v_error === undefined ? null : v_error;
|
|
942
984
|
}
|
|
@@ -1603,4 +1645,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1603
1645
|
});
|
|
1604
1646
|
|
|
1605
1647
|
export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative, notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
|
|
1606
|
-
// version: 1.354.0-
|
|
1648
|
+
// version: 1.354.0-dev10-f675337995
|
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:
|
|
@@ -193,6 +192,10 @@ types:
|
|
|
193
192
|
description: Service Plan step representation
|
|
194
193
|
type: object
|
|
195
194
|
properties:
|
|
195
|
+
actionLabel:
|
|
196
|
+
description: Action label
|
|
197
|
+
required: false #TODO Hand-rolled W-18452620
|
|
198
|
+
type: string | nil #handRolled
|
|
196
199
|
executionStatus:
|
|
197
200
|
description: Step execution state
|
|
198
201
|
type: string
|
|
@@ -210,6 +213,10 @@ types:
|
|
|
210
213
|
order:
|
|
211
214
|
description: Step order
|
|
212
215
|
type: integer
|
|
216
|
+
relatedActionName:
|
|
217
|
+
description: Related action name
|
|
218
|
+
required: false #TODO Hand-rolled W-18452620
|
|
219
|
+
type: string
|
|
213
220
|
stepId:
|
|
214
221
|
description: Step ID
|
|
215
222
|
type: string
|
|
@@ -219,6 +226,10 @@ types:
|
|
|
219
226
|
stepSummary:
|
|
220
227
|
description: Step summary
|
|
221
228
|
type: string
|
|
229
|
+
type:
|
|
230
|
+
description: Step type
|
|
231
|
+
required: false #TODO Hand-rolled W-18452620
|
|
232
|
+
type: string
|
|
222
233
|
ServicePlanStepExecutionStatusRepresentation:
|
|
223
234
|
description: Represents the execution status of a Service Plan Step
|
|
224
235
|
type: object
|