@salesforce/lds-adapters-service-serviceplan 1.357.0 → 1.359.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 +37 -0
- package/dist/es/es2018/types/src/generated/adapters/generateServicePlan.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServicePlanGenerationRequests.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepDetailsRepresentation.d.ts +10 -1
- package/package.json +3 -3
- package/sfdc/index.js +38 -1
- package/src/raml/api.raml +16 -2
|
@@ -653,6 +653,7 @@ function createResourceRequest$2(config) {
|
|
|
653
653
|
|
|
654
654
|
const adapterName$2 = 'generateServicePlan';
|
|
655
655
|
const generateServicePlan_ConfigPropertyMetadata = [
|
|
656
|
+
generateParamConfigMetadata('processingMode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
656
657
|
generateParamConfigMetadata('recordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
657
658
|
generateParamConfigMetadata('regenerate', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
658
659
|
generateParamConfigMetadata('additionalContext', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -870,6 +871,32 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
870
871
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
871
872
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
872
873
|
}
|
|
874
|
+
const obj_actionLabel = obj.actionLabel;
|
|
875
|
+
const path_actionLabel = path + '.actionLabel';
|
|
876
|
+
let obj_actionLabel_union0 = null;
|
|
877
|
+
const obj_actionLabel_union0_error = (() => {
|
|
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;
|
|
884
|
+
}
|
|
885
|
+
let obj_actionLabel_union1 = null;
|
|
886
|
+
const obj_actionLabel_union1_error = (() => {
|
|
887
|
+
if (obj_actionLabel !== null) {
|
|
888
|
+
return new TypeError('Expected "null" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
889
|
+
}
|
|
890
|
+
})();
|
|
891
|
+
if (obj_actionLabel_union1_error != null) {
|
|
892
|
+
obj_actionLabel_union1 = obj_actionLabel_union1_error.message;
|
|
893
|
+
}
|
|
894
|
+
if (obj_actionLabel_union0 && obj_actionLabel_union1) {
|
|
895
|
+
let message = 'Object doesn\'t match union (at "' + path_actionLabel + '")';
|
|
896
|
+
message += '\n' + obj_actionLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
897
|
+
message += '\n' + obj_actionLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
898
|
+
return new TypeError(message);
|
|
899
|
+
}
|
|
873
900
|
const obj_executionStatus = obj.executionStatus;
|
|
874
901
|
const path_executionStatus = path + '.executionStatus';
|
|
875
902
|
if (typeof obj_executionStatus !== 'string') {
|
|
@@ -911,6 +938,11 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
911
938
|
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
912
939
|
return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
|
|
913
940
|
}
|
|
941
|
+
const obj_relatedActionName = obj.relatedActionName;
|
|
942
|
+
const path_relatedActionName = path + '.relatedActionName';
|
|
943
|
+
if (typeof obj_relatedActionName !== 'string') {
|
|
944
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedActionName + '" (at "' + path_relatedActionName + '")');
|
|
945
|
+
}
|
|
914
946
|
const obj_stepId = obj.stepId;
|
|
915
947
|
const path_stepId = path + '.stepId';
|
|
916
948
|
if (typeof obj_stepId !== 'string') {
|
|
@@ -926,6 +958,11 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
926
958
|
if (typeof obj_stepSummary !== 'string') {
|
|
927
959
|
return new TypeError('Expected "string" but received "' + typeof obj_stepSummary + '" (at "' + path_stepSummary + '")');
|
|
928
960
|
}
|
|
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
|
+
}
|
|
929
966
|
})();
|
|
930
967
|
return v_error === undefined ? null : v_error;
|
|
931
968
|
}
|
|
@@ -6,6 +6,7 @@ export declare const adapterName = "generateServicePlan";
|
|
|
6
6
|
export declare const generateServicePlan_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const generateServicePlan_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GenerateServicePlanConfig {
|
|
9
|
+
processingMode?: string;
|
|
9
10
|
recordId?: string;
|
|
10
11
|
regenerate?: boolean;
|
|
11
12
|
additionalContext: {
|
package/dist/es/es2018/types/src/generated/resources/postConnectServicePlanGenerationRequests.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { ServicePlanGenerationOutputRepresentation as types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation } from '../types/ServicePlanGenerationOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
|
+
processingMode?: string;
|
|
5
6
|
recordId?: string;
|
|
6
7
|
regenerate?: boolean;
|
|
7
8
|
};
|
|
@@ -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 = "f94343a60bf954935e11c5776104e8a6";
|
|
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.
|
|
3
|
+
"version": "1.359.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.359.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.359.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -663,6 +663,7 @@ function createResourceRequest$2(config) {
|
|
|
663
663
|
|
|
664
664
|
const adapterName$2 = 'generateServicePlan';
|
|
665
665
|
const generateServicePlan_ConfigPropertyMetadata = [
|
|
666
|
+
generateParamConfigMetadata('processingMode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
666
667
|
generateParamConfigMetadata('recordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
667
668
|
generateParamConfigMetadata('regenerate', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
668
669
|
generateParamConfigMetadata('additionalContext', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -880,6 +881,32 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
880
881
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
881
882
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
882
883
|
}
|
|
884
|
+
const obj_actionLabel = obj.actionLabel;
|
|
885
|
+
const path_actionLabel = path + '.actionLabel';
|
|
886
|
+
let obj_actionLabel_union0 = null;
|
|
887
|
+
const obj_actionLabel_union0_error = (() => {
|
|
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;
|
|
894
|
+
}
|
|
895
|
+
let obj_actionLabel_union1 = null;
|
|
896
|
+
const obj_actionLabel_union1_error = (() => {
|
|
897
|
+
if (obj_actionLabel !== null) {
|
|
898
|
+
return new TypeError('Expected "null" but received "' + typeof obj_actionLabel + '" (at "' + path_actionLabel + '")');
|
|
899
|
+
}
|
|
900
|
+
})();
|
|
901
|
+
if (obj_actionLabel_union1_error != null) {
|
|
902
|
+
obj_actionLabel_union1 = obj_actionLabel_union1_error.message;
|
|
903
|
+
}
|
|
904
|
+
if (obj_actionLabel_union0 && obj_actionLabel_union1) {
|
|
905
|
+
let message = 'Object doesn\'t match union (at "' + path_actionLabel + '")';
|
|
906
|
+
message += '\n' + obj_actionLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
907
|
+
message += '\n' + obj_actionLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
908
|
+
return new TypeError(message);
|
|
909
|
+
}
|
|
883
910
|
const obj_executionStatus = obj.executionStatus;
|
|
884
911
|
const path_executionStatus = path + '.executionStatus';
|
|
885
912
|
if (typeof obj_executionStatus !== 'string') {
|
|
@@ -921,6 +948,11 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
921
948
|
if (typeof obj_order !== 'number' || (typeof obj_order === 'number' && Math.floor(obj_order) !== obj_order)) {
|
|
922
949
|
return new TypeError('Expected "integer" but received "' + typeof obj_order + '" (at "' + path_order + '")');
|
|
923
950
|
}
|
|
951
|
+
const obj_relatedActionName = obj.relatedActionName;
|
|
952
|
+
const path_relatedActionName = path + '.relatedActionName';
|
|
953
|
+
if (typeof obj_relatedActionName !== 'string') {
|
|
954
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedActionName + '" (at "' + path_relatedActionName + '")');
|
|
955
|
+
}
|
|
924
956
|
const obj_stepId = obj.stepId;
|
|
925
957
|
const path_stepId = path + '.stepId';
|
|
926
958
|
if (typeof obj_stepId !== 'string') {
|
|
@@ -936,6 +968,11 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
936
968
|
if (typeof obj_stepSummary !== 'string') {
|
|
937
969
|
return new TypeError('Expected "string" but received "' + typeof obj_stepSummary + '" (at "' + path_stepSummary + '")');
|
|
938
970
|
}
|
|
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
|
+
}
|
|
939
976
|
})();
|
|
940
977
|
return v_error === undefined ? null : v_error;
|
|
941
978
|
}
|
|
@@ -1602,4 +1639,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1602
1639
|
});
|
|
1603
1640
|
|
|
1604
1641
|
export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative, notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
|
|
1605
|
-
// version: 1.
|
|
1642
|
+
// version: 1.359.0-0fa7873931
|
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,9 @@ types:
|
|
|
193
192
|
description: Service Plan step representation
|
|
194
193
|
type: object
|
|
195
194
|
properties:
|
|
195
|
+
actionLabel:
|
|
196
|
+
description: Action label
|
|
197
|
+
type: string | nil #handRolled
|
|
196
198
|
executionStatus:
|
|
197
199
|
description: Step execution state
|
|
198
200
|
type: string
|
|
@@ -210,6 +212,9 @@ types:
|
|
|
210
212
|
order:
|
|
211
213
|
description: Step order
|
|
212
214
|
type: integer
|
|
215
|
+
relatedActionName:
|
|
216
|
+
description: Related action name
|
|
217
|
+
type: string
|
|
213
218
|
stepId:
|
|
214
219
|
description: Step ID
|
|
215
220
|
type: string
|
|
@@ -219,6 +224,9 @@ types:
|
|
|
219
224
|
stepSummary:
|
|
220
225
|
description: Step summary
|
|
221
226
|
type: string
|
|
227
|
+
type:
|
|
228
|
+
description: Step type
|
|
229
|
+
type: string
|
|
222
230
|
ServicePlanStepExecutionStatusRepresentation:
|
|
223
231
|
description: Represents the execution status of a Service Plan Step
|
|
224
232
|
type: object
|
|
@@ -264,6 +272,12 @@ types:
|
|
|
264
272
|
application/json:
|
|
265
273
|
type: ServicePlanGenerationOutputRepresentation
|
|
266
274
|
queryParameters:
|
|
275
|
+
processingMode:
|
|
276
|
+
type: string
|
|
277
|
+
required: false
|
|
278
|
+
enum:
|
|
279
|
+
- Async
|
|
280
|
+
- Sync
|
|
267
281
|
recordId:
|
|
268
282
|
type: string
|
|
269
283
|
required: false
|