@salesforce/lds-adapters-industries-claim 1.384.0 → 1.386.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.
@@ -711,7 +711,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
711
711
  function createResourceRequest$2(config) {
712
712
  const headers = {};
713
713
  return {
714
- baseUri: '/services/data/v65.0',
714
+ baseUri: '/services/data/v66.0',
715
715
  basePath: '/connect/claims/' + config.urlParams.claimId + '',
716
716
  method: 'patch',
717
717
  body: config.body,
@@ -829,16 +829,18 @@ function validate$1(obj, path = 'ErrorDetail') {
829
829
  }
830
830
 
831
831
  const TTL = 1000;
832
- const VERSION = "0478e1dc0bf47896d0f8cdac6657beb0";
832
+ const VERSION = "452fa1d606be2ab752c4163290746f63";
833
833
  function validate(obj, path = 'ClaimCoverageRepresentation') {
834
834
  const v_error = (() => {
835
835
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
836
836
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
837
837
  }
838
- const obj_coverageId = obj.coverageId;
839
- const path_coverageId = path + '.coverageId';
840
- if (typeof obj_coverageId !== 'string') {
841
- return new TypeError('Expected "string" but received "' + typeof obj_coverageId + '" (at "' + path_coverageId + '")');
838
+ if (obj.coverageId !== undefined) {
839
+ const obj_coverageId = obj.coverageId;
840
+ const path_coverageId = path + '.coverageId';
841
+ if (typeof obj_coverageId !== 'string') {
842
+ return new TypeError('Expected "string" but received "' + typeof obj_coverageId + '" (at "' + path_coverageId + '")');
843
+ }
842
844
  }
843
845
  if (obj.errors !== undefined) {
844
846
  const obj_errors = obj.errors;
@@ -940,7 +942,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
940
942
  function createResourceRequest$1(config) {
941
943
  const headers = {};
942
944
  return {
943
- baseUri: '/services/data/v65.0',
945
+ baseUri: '/services/data/v66.0',
944
946
  basePath: '/connect/claims/' + config.urlParams.claimId + '/coverages',
945
947
  method: 'post',
946
948
  body: config.body,
@@ -1042,7 +1044,7 @@ function ingestSuccess(luvio, resourceParams, response) {
1042
1044
  function createResourceRequest(config) {
1043
1045
  const headers = {};
1044
1046
  return {
1045
- baseUri: '/services/data/v65.0',
1047
+ baseUri: '/services/data/v66.0',
1046
1048
  basePath: '/connect/claims/' + config.urlParams.claimId + '/coverages/' + config.urlParams.coverageId + '',
1047
1049
  method: 'patch',
1048
1050
  body: config.body,
@@ -1,7 +1,7 @@
1
1
  import { ErrorDetail as ErrorDetail_ErrorDetail } from './ErrorDetail';
2
2
  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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
3
  export declare const TTL = 1000;
4
- export declare const VERSION = "0478e1dc0bf47896d0f8cdac6657beb0";
4
+ export declare const VERSION = "452fa1d606be2ab752c4163290746f63";
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 {
@@ -26,7 +26,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
26
26
  */
27
27
  export interface ClaimCoverageRepresentationNormalized {
28
28
  /** The ID of the created coverage */
29
- coverageId: string;
29
+ coverageId?: string;
30
30
  /** A list of errors, including detailed information about each one. */
31
31
  errors?: Array<ErrorDetail_ErrorDetail>;
32
32
  /** Indicates whether the claim coverage creation was successful */
@@ -39,7 +39,7 @@ export interface ClaimCoverageRepresentationNormalized {
39
39
  * isSuccess (boolean): isSuccess
40
40
  */
41
41
  export interface ClaimCoverageRepresentation {
42
- coverageId: string;
42
+ coverageId?: string;
43
43
  errors?: Array<ErrorDetail_ErrorDetail>;
44
44
  isSuccess: boolean;
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-claim",
3
- "version": "1.384.0",
3
+ "version": "1.386.0",
4
4
  "description": "Family for Claim related APIs",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/industries-claim.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.384.0"
43
+ "@salesforce/lds-bindings": "^1.386.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.384.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.386.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -101,16 +101,18 @@ function validate$c(obj, path = 'ErrorDetail') {
101
101
  }
102
102
 
103
103
  const TTL$1 = 1000;
104
- const VERSION$1 = "0478e1dc0bf47896d0f8cdac6657beb0";
104
+ const VERSION$1 = "452fa1d606be2ab752c4163290746f63";
105
105
  function validate$b(obj, path = 'ClaimCoverageRepresentation') {
106
106
  const v_error = (() => {
107
107
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
108
108
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
109
109
  }
110
- const obj_coverageId = obj.coverageId;
111
- const path_coverageId = path + '.coverageId';
112
- if (typeof obj_coverageId !== 'string') {
113
- return new TypeError('Expected "string" but received "' + typeof obj_coverageId + '" (at "' + path_coverageId + '")');
110
+ if (obj.coverageId !== undefined) {
111
+ const obj_coverageId = obj.coverageId;
112
+ const path_coverageId = path + '.coverageId';
113
+ if (typeof obj_coverageId !== 'string') {
114
+ return new TypeError('Expected "string" but received "' + typeof obj_coverageId + '" (at "' + path_coverageId + '")');
115
+ }
114
116
  }
115
117
  if (obj.errors !== undefined) {
116
118
  const obj_errors = obj.errors;
@@ -212,7 +214,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
212
214
  function createResourceRequest$2(config) {
213
215
  const headers = {};
214
216
  return {
215
- baseUri: '/services/data/v65.0',
217
+ baseUri: '/services/data/v66.0',
216
218
  basePath: '/connect/claims/' + config.urlParams.claimId + '/coverages',
217
219
  method: 'post',
218
220
  body: config.body,
@@ -927,7 +929,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
927
929
  function createResourceRequest$1(config) {
928
930
  const headers = {};
929
931
  return {
930
- baseUri: '/services/data/v65.0',
932
+ baseUri: '/services/data/v66.0',
931
933
  basePath: '/connect/claims/' + config.urlParams.claimId + '',
932
934
  method: 'patch',
933
935
  body: config.body,
@@ -1051,7 +1053,7 @@ function ingestSuccess(luvio, resourceParams, response) {
1051
1053
  function createResourceRequest(config) {
1052
1054
  const headers = {};
1053
1055
  return {
1054
- baseUri: '/services/data/v65.0',
1056
+ baseUri: '/services/data/v66.0',
1055
1057
  basePath: '/connect/claims/' + config.urlParams.claimId + '/coverages/' + config.urlParams.coverageId + '',
1056
1058
  method: 'patch',
1057
1059
  body: config.body,
@@ -1144,4 +1146,4 @@ withDefaultLuvio((luvio) => {
1144
1146
  });
1145
1147
 
1146
1148
  export { CreateClaimCoverage, UpdateClaim, UpdateClaimCoverage };
1147
- // version: 1.384.0-835fd13f44
1149
+ // version: 1.386.0-521094e838
package/src/raml/api.raml CHANGED
@@ -6,7 +6,7 @@ version: '65.0'
6
6
  mediaType: application/json
7
7
  protocols:
8
8
  - https
9
- baseUri: /services/data/v65.0
9
+ baseUri: /services/data/v66.0
10
10
  securitySchemes:
11
11
  OAuth2:
12
12
  type: OAuth 2.0
@@ -353,6 +353,7 @@ types:
353
353
  coverageId:
354
354
  description: The ID of the created coverage
355
355
  type: string
356
+ required: false
356
357
  errors:
357
358
  description: A list of errors, including detailed information about each one.
358
359
  type: array