@salesforce/lds-adapters-service-serviceplan 1.332.0-dev2 → 1.332.0-dev21
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 +63 -2
- package/dist/es/es2018/types/src/generated/types/ServicePlanDetailsRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +64 -3
- package/src/raml/api.raml +10 -0
|
@@ -868,7 +868,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
const TTL$1 = 1000;
|
|
871
|
-
const VERSION$2 = "
|
|
871
|
+
const VERSION$2 = "b5c67e27b60e36e6fa42d8892118ac05";
|
|
872
872
|
function validate$3(obj, path = 'ServicePlanGenerationOutputRepresentation') {
|
|
873
873
|
const v_error = (() => {
|
|
874
874
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -926,6 +926,32 @@ function validate$3(obj, path = 'ServicePlanGenerationOutputRepresentation') {
|
|
|
926
926
|
message += '\n' + obj_copilotName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
927
927
|
return new TypeError(message);
|
|
928
928
|
}
|
|
929
|
+
const obj_errorCode = obj.errorCode;
|
|
930
|
+
const path_errorCode = path + '.errorCode';
|
|
931
|
+
let obj_errorCode_union0 = null;
|
|
932
|
+
const obj_errorCode_union0_error = (() => {
|
|
933
|
+
if (typeof obj_errorCode !== 'string') {
|
|
934
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
935
|
+
}
|
|
936
|
+
})();
|
|
937
|
+
if (obj_errorCode_union0_error != null) {
|
|
938
|
+
obj_errorCode_union0 = obj_errorCode_union0_error.message;
|
|
939
|
+
}
|
|
940
|
+
let obj_errorCode_union1 = null;
|
|
941
|
+
const obj_errorCode_union1_error = (() => {
|
|
942
|
+
if (obj_errorCode !== null) {
|
|
943
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
944
|
+
}
|
|
945
|
+
})();
|
|
946
|
+
if (obj_errorCode_union1_error != null) {
|
|
947
|
+
obj_errorCode_union1 = obj_errorCode_union1_error.message;
|
|
948
|
+
}
|
|
949
|
+
if (obj_errorCode_union0 && obj_errorCode_union1) {
|
|
950
|
+
let message = 'Object doesn\'t match union (at "' + path_errorCode + '")';
|
|
951
|
+
message += '\n' + obj_errorCode_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
952
|
+
message += '\n' + obj_errorCode_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
953
|
+
return new TypeError(message);
|
|
954
|
+
}
|
|
929
955
|
const obj_errorMessage = obj.errorMessage;
|
|
930
956
|
const path_errorMessage = path + '.errorMessage';
|
|
931
957
|
let obj_errorMessage_union0 = null;
|
|
@@ -1068,6 +1094,10 @@ const select$5 = function ServicePlanGenerationOutputRepresentationSelect() {
|
|
|
1068
1094
|
name: 'copilotName',
|
|
1069
1095
|
kind: 'Scalar'
|
|
1070
1096
|
},
|
|
1097
|
+
{
|
|
1098
|
+
name: 'errorCode',
|
|
1099
|
+
kind: 'Scalar'
|
|
1100
|
+
},
|
|
1071
1101
|
{
|
|
1072
1102
|
name: 'errorMessage',
|
|
1073
1103
|
kind: 'Scalar'
|
|
@@ -1132,6 +1162,11 @@ function equals$2(existing, incoming) {
|
|
|
1132
1162
|
if (!(existing_copilotName === incoming_copilotName)) {
|
|
1133
1163
|
return false;
|
|
1134
1164
|
}
|
|
1165
|
+
const existing_errorCode = existing.errorCode;
|
|
1166
|
+
const incoming_errorCode = incoming.errorCode;
|
|
1167
|
+
if (!(existing_errorCode === incoming_errorCode)) {
|
|
1168
|
+
return false;
|
|
1169
|
+
}
|
|
1135
1170
|
const existing_errorMessage = existing.errorMessage;
|
|
1136
1171
|
const incoming_errorMessage = incoming.errorMessage;
|
|
1137
1172
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -1504,7 +1539,7 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
1504
1539
|
return v_error === undefined ? null : v_error;
|
|
1505
1540
|
}
|
|
1506
1541
|
|
|
1507
|
-
const VERSION$1 = "
|
|
1542
|
+
const VERSION$1 = "c9695b537d7f54ccb9bfd42af5ddaa1d";
|
|
1508
1543
|
function validate$1(obj, path = 'ServicePlanDetailsRepresentation') {
|
|
1509
1544
|
const v_error = (() => {
|
|
1510
1545
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1614,6 +1649,32 @@ function validate$1(obj, path = 'ServicePlanDetailsRepresentation') {
|
|
|
1614
1649
|
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1615
1650
|
return new TypeError(message);
|
|
1616
1651
|
}
|
|
1652
|
+
const obj_planHeader = obj.planHeader;
|
|
1653
|
+
const path_planHeader = path + '.planHeader';
|
|
1654
|
+
let obj_planHeader_union0 = null;
|
|
1655
|
+
const obj_planHeader_union0_error = (() => {
|
|
1656
|
+
if (typeof obj_planHeader !== 'string') {
|
|
1657
|
+
return new TypeError('Expected "string" but received "' + typeof obj_planHeader + '" (at "' + path_planHeader + '")');
|
|
1658
|
+
}
|
|
1659
|
+
})();
|
|
1660
|
+
if (obj_planHeader_union0_error != null) {
|
|
1661
|
+
obj_planHeader_union0 = obj_planHeader_union0_error.message;
|
|
1662
|
+
}
|
|
1663
|
+
let obj_planHeader_union1 = null;
|
|
1664
|
+
const obj_planHeader_union1_error = (() => {
|
|
1665
|
+
if (obj_planHeader !== null) {
|
|
1666
|
+
return new TypeError('Expected "null" but received "' + typeof obj_planHeader + '" (at "' + path_planHeader + '")');
|
|
1667
|
+
}
|
|
1668
|
+
})();
|
|
1669
|
+
if (obj_planHeader_union1_error != null) {
|
|
1670
|
+
obj_planHeader_union1 = obj_planHeader_union1_error.message;
|
|
1671
|
+
}
|
|
1672
|
+
if (obj_planHeader_union0 && obj_planHeader_union1) {
|
|
1673
|
+
let message = 'Object doesn\'t match union (at "' + path_planHeader + '")';
|
|
1674
|
+
message += '\n' + obj_planHeader_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1675
|
+
message += '\n' + obj_planHeader_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1676
|
+
return new TypeError(message);
|
|
1677
|
+
}
|
|
1617
1678
|
const obj_planId = obj.planId;
|
|
1618
1679
|
const path_planId = path + '.planId';
|
|
1619
1680
|
let obj_planId_union0 = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ServicePlanStepDetailsRepresentation as ServicePlanStepDetailsRepresentation_ServicePlanStepDetailsRepresentation } from './ServicePlanStepDetailsRepresentation';
|
|
2
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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "c9695b537d7f54ccb9bfd42af5ddaa1d";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: ServicePlanDetailsRepresentation, existing: ServicePlanDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanDetailsRepresentationNormalized;
|
|
@@ -23,6 +23,8 @@ export interface ServicePlanDetailsRepresentationNormalized {
|
|
|
23
23
|
executionStatus: string | null;
|
|
24
24
|
/** Feedback ID */
|
|
25
25
|
feedbackId: string | null;
|
|
26
|
+
/** PlanHeader */
|
|
27
|
+
planHeader: string | null;
|
|
26
28
|
/** Plan ID */
|
|
27
29
|
planId: string | null;
|
|
28
30
|
/** Service Plan Steps */
|
|
@@ -41,6 +43,7 @@ export interface ServicePlanDetailsRepresentation {
|
|
|
41
43
|
createdDate: string | null;
|
|
42
44
|
executionStatus: string | null;
|
|
43
45
|
feedbackId: string | null;
|
|
46
|
+
planHeader: string | null;
|
|
44
47
|
planId: string | null;
|
|
45
48
|
servicePlanSteps: Array<ServicePlanStepDetailsRepresentation_ServicePlanStepDetailsRepresentation>;
|
|
46
49
|
topic: string | null;
|
package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationOutputRepresentation.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
2
|
import { ServicePlanOutputRepresentation as ServicePlanOutputRepresentation_ServicePlanOutputRepresentation } from './ServicePlanOutputRepresentation';
|
|
3
3
|
export declare const TTL = 1000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "b5c67e27b60e36e6fa42d8892118ac05";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -38,6 +38,8 @@ export interface ServicePlanGenerationOutputRepresentationNormalized {
|
|
|
38
38
|
copilotId: string | null;
|
|
39
39
|
/** Name of the Copilot used for this service plan generation request */
|
|
40
40
|
copilotName: string | null;
|
|
41
|
+
/** Error code to identify the error */
|
|
42
|
+
errorCode: string | null;
|
|
41
43
|
/** Details related to the Error Reason, if any */
|
|
42
44
|
errorMessage: string | null;
|
|
43
45
|
/** The generated request ID */
|
|
@@ -62,6 +64,7 @@ export interface ServicePlanGenerationOutputRepresentationNormalized {
|
|
|
62
64
|
export interface ServicePlanGenerationOutputRepresentation {
|
|
63
65
|
copilotId: string | null;
|
|
64
66
|
copilotName: string | null;
|
|
67
|
+
errorCode: string | null;
|
|
65
68
|
errorMessage: string | null;
|
|
66
69
|
id: string | null;
|
|
67
70
|
plan: ServicePlanOutputRepresentation_ServicePlanOutputRepresentation | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-serviceplan",
|
|
3
|
-
"version": "1.332.0-
|
|
3
|
+
"version": "1.332.0-dev21",
|
|
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.332.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.332.0-dev21"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.332.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev21"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -878,7 +878,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
878
878
|
}
|
|
879
879
|
|
|
880
880
|
const TTL$1 = 1000;
|
|
881
|
-
const VERSION$2 = "
|
|
881
|
+
const VERSION$2 = "b5c67e27b60e36e6fa42d8892118ac05";
|
|
882
882
|
function validate$3(obj, path = 'ServicePlanGenerationOutputRepresentation') {
|
|
883
883
|
const v_error = (() => {
|
|
884
884
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -936,6 +936,32 @@ function validate$3(obj, path = 'ServicePlanGenerationOutputRepresentation') {
|
|
|
936
936
|
message += '\n' + obj_copilotName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
937
937
|
return new TypeError(message);
|
|
938
938
|
}
|
|
939
|
+
const obj_errorCode = obj.errorCode;
|
|
940
|
+
const path_errorCode = path + '.errorCode';
|
|
941
|
+
let obj_errorCode_union0 = null;
|
|
942
|
+
const obj_errorCode_union0_error = (() => {
|
|
943
|
+
if (typeof obj_errorCode !== 'string') {
|
|
944
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
945
|
+
}
|
|
946
|
+
})();
|
|
947
|
+
if (obj_errorCode_union0_error != null) {
|
|
948
|
+
obj_errorCode_union0 = obj_errorCode_union0_error.message;
|
|
949
|
+
}
|
|
950
|
+
let obj_errorCode_union1 = null;
|
|
951
|
+
const obj_errorCode_union1_error = (() => {
|
|
952
|
+
if (obj_errorCode !== null) {
|
|
953
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
|
|
954
|
+
}
|
|
955
|
+
})();
|
|
956
|
+
if (obj_errorCode_union1_error != null) {
|
|
957
|
+
obj_errorCode_union1 = obj_errorCode_union1_error.message;
|
|
958
|
+
}
|
|
959
|
+
if (obj_errorCode_union0 && obj_errorCode_union1) {
|
|
960
|
+
let message = 'Object doesn\'t match union (at "' + path_errorCode + '")';
|
|
961
|
+
message += '\n' + obj_errorCode_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
962
|
+
message += '\n' + obj_errorCode_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
963
|
+
return new TypeError(message);
|
|
964
|
+
}
|
|
939
965
|
const obj_errorMessage = obj.errorMessage;
|
|
940
966
|
const path_errorMessage = path + '.errorMessage';
|
|
941
967
|
let obj_errorMessage_union0 = null;
|
|
@@ -1078,6 +1104,10 @@ const select$5 = function ServicePlanGenerationOutputRepresentationSelect() {
|
|
|
1078
1104
|
name: 'copilotName',
|
|
1079
1105
|
kind: 'Scalar'
|
|
1080
1106
|
},
|
|
1107
|
+
{
|
|
1108
|
+
name: 'errorCode',
|
|
1109
|
+
kind: 'Scalar'
|
|
1110
|
+
},
|
|
1081
1111
|
{
|
|
1082
1112
|
name: 'errorMessage',
|
|
1083
1113
|
kind: 'Scalar'
|
|
@@ -1142,6 +1172,11 @@ function equals$2(existing, incoming) {
|
|
|
1142
1172
|
if (!(existing_copilotName === incoming_copilotName)) {
|
|
1143
1173
|
return false;
|
|
1144
1174
|
}
|
|
1175
|
+
const existing_errorCode = existing.errorCode;
|
|
1176
|
+
const incoming_errorCode = incoming.errorCode;
|
|
1177
|
+
if (!(existing_errorCode === incoming_errorCode)) {
|
|
1178
|
+
return false;
|
|
1179
|
+
}
|
|
1145
1180
|
const existing_errorMessage = existing.errorMessage;
|
|
1146
1181
|
const incoming_errorMessage = incoming.errorMessage;
|
|
1147
1182
|
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
@@ -1514,7 +1549,7 @@ function validate$2(obj, path = 'ServicePlanStepDetailsRepresentation') {
|
|
|
1514
1549
|
return v_error === undefined ? null : v_error;
|
|
1515
1550
|
}
|
|
1516
1551
|
|
|
1517
|
-
const VERSION$1 = "
|
|
1552
|
+
const VERSION$1 = "c9695b537d7f54ccb9bfd42af5ddaa1d";
|
|
1518
1553
|
function validate$1(obj, path = 'ServicePlanDetailsRepresentation') {
|
|
1519
1554
|
const v_error = (() => {
|
|
1520
1555
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1624,6 +1659,32 @@ function validate$1(obj, path = 'ServicePlanDetailsRepresentation') {
|
|
|
1624
1659
|
message += '\n' + obj_feedbackId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1625
1660
|
return new TypeError(message);
|
|
1626
1661
|
}
|
|
1662
|
+
const obj_planHeader = obj.planHeader;
|
|
1663
|
+
const path_planHeader = path + '.planHeader';
|
|
1664
|
+
let obj_planHeader_union0 = null;
|
|
1665
|
+
const obj_planHeader_union0_error = (() => {
|
|
1666
|
+
if (typeof obj_planHeader !== 'string') {
|
|
1667
|
+
return new TypeError('Expected "string" but received "' + typeof obj_planHeader + '" (at "' + path_planHeader + '")');
|
|
1668
|
+
}
|
|
1669
|
+
})();
|
|
1670
|
+
if (obj_planHeader_union0_error != null) {
|
|
1671
|
+
obj_planHeader_union0 = obj_planHeader_union0_error.message;
|
|
1672
|
+
}
|
|
1673
|
+
let obj_planHeader_union1 = null;
|
|
1674
|
+
const obj_planHeader_union1_error = (() => {
|
|
1675
|
+
if (obj_planHeader !== null) {
|
|
1676
|
+
return new TypeError('Expected "null" but received "' + typeof obj_planHeader + '" (at "' + path_planHeader + '")');
|
|
1677
|
+
}
|
|
1678
|
+
})();
|
|
1679
|
+
if (obj_planHeader_union1_error != null) {
|
|
1680
|
+
obj_planHeader_union1 = obj_planHeader_union1_error.message;
|
|
1681
|
+
}
|
|
1682
|
+
if (obj_planHeader_union0 && obj_planHeader_union1) {
|
|
1683
|
+
let message = 'Object doesn\'t match union (at "' + path_planHeader + '")';
|
|
1684
|
+
message += '\n' + obj_planHeader_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1685
|
+
message += '\n' + obj_planHeader_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1686
|
+
return new TypeError(message);
|
|
1687
|
+
}
|
|
1627
1688
|
const obj_planId = obj.planId;
|
|
1628
1689
|
const path_planId = path + '.planId';
|
|
1629
1690
|
let obj_planId_union0 = null;
|
|
@@ -2145,4 +2206,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2145
2206
|
});
|
|
2146
2207
|
|
|
2147
2208
|
export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative, notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
|
|
2148
|
-
// version: 1.332.0-
|
|
2209
|
+
// version: 1.332.0-dev21-cc02503f9d
|
package/src/raml/api.raml
CHANGED
|
@@ -129,6 +129,9 @@ types:
|
|
|
129
129
|
clientFeatureId:
|
|
130
130
|
description: clientFeature ID
|
|
131
131
|
type: string | nil
|
|
132
|
+
planHeader:
|
|
133
|
+
description: PlanHeader
|
|
134
|
+
type: string | nil
|
|
132
135
|
planId:
|
|
133
136
|
description: Plan ID
|
|
134
137
|
type: string | nil
|
|
@@ -222,6 +225,9 @@ types:
|
|
|
222
225
|
copilotName:
|
|
223
226
|
description: Name of the Copilot used for this service plan generation request
|
|
224
227
|
type: string | nil
|
|
228
|
+
errorCode:
|
|
229
|
+
description: Error code to identify the error
|
|
230
|
+
type: string | nil
|
|
225
231
|
errorMessage:
|
|
226
232
|
description: Details related to the Error Reason, if any
|
|
227
233
|
type: string | nil
|
|
@@ -238,6 +244,9 @@ types:
|
|
|
238
244
|
- CannotGeneratePlan
|
|
239
245
|
- NoPlanGenerated
|
|
240
246
|
- None
|
|
247
|
+
- PlanAlreadyExists
|
|
248
|
+
- PlanEmpty
|
|
249
|
+
- PlanEmptyInsufficientData
|
|
241
250
|
- ThresholdError
|
|
242
251
|
- ThresholdNotMet
|
|
243
252
|
recordId:
|
|
@@ -249,6 +258,7 @@ types:
|
|
|
249
258
|
enum:
|
|
250
259
|
- Error
|
|
251
260
|
- InProgress
|
|
261
|
+
- Incomplete
|
|
252
262
|
- Success
|
|
253
263
|
type:
|
|
254
264
|
description: Service Plan generation request type
|