@salesforce/lds-adapters-service-serviceplan 1.332.0-dev4 → 1.332.0-dev6

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.
@@ -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 = "1b54ee684d826acba0725f11c75ee33b";
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)) {
@@ -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 = "1b54ee684d826acba0725f11c75ee33b";
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-dev4",
3
+ "version": "1.332.0-dev6",
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-dev4"
43
+ "@salesforce/lds-bindings": "^1.332.0-dev6"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev4"
46
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev6"
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 = "1b54ee684d826acba0725f11c75ee33b";
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)) {
@@ -2145,4 +2180,4 @@ withDefaultLuvio((luvio) => {
2145
2180
  });
2146
2181
 
2147
2182
  export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative, notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
2148
- // version: 1.332.0-dev4-b9914caa2e
2183
+ // version: 1.332.0-dev6-9c3d285d95
package/src/raml/api.raml CHANGED
@@ -222,6 +222,9 @@ types:
222
222
  copilotName:
223
223
  description: Name of the Copilot used for this service plan generation request
224
224
  type: string | nil
225
+ errorCode:
226
+ description: Error code to identify the error
227
+ type: string | nil
225
228
  errorMessage:
226
229
  description: Details related to the Error Reason, if any
227
230
  type: string | nil
@@ -238,6 +241,9 @@ types:
238
241
  - CannotGeneratePlan
239
242
  - NoPlanGenerated
240
243
  - None
244
+ - PlanAlreadyExists
245
+ - PlanEmpty
246
+ - PlanEmptyInsufficientData
241
247
  - ThresholdError
242
248
  - ThresholdNotMet
243
249
  recordId:
@@ -249,6 +255,7 @@ types:
249
255
  enum:
250
256
  - Error
251
257
  - InProgress
258
+ - Incomplete
252
259
  - Success
253
260
  type:
254
261
  description: Service Plan generation request type