@salesforce/lds-adapters-industries-claim 1.439.0 → 1.441.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.
@@ -741,6 +741,10 @@ const UpdateClaim_ConfigPropertyMetadata = [
741
741
  generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
742
742
  generateParamConfigMetadata('participants', false, 2 /* Body */, 4 /* Unsupported */),
743
743
  generateParamConfigMetadata('productCode', false, 2 /* Body */, 0 /* String */),
744
+ generateParamConfigMetadata('lossReserveAmount', false, 2 /* Body */, 2 /* Number */),
745
+ generateParamConfigMetadata('expenseReserveAmount', false, 2 /* Body */, 2 /* Number */),
746
+ generateParamConfigMetadata('lossReserveAdjustmentReason', false, 2 /* Body */, 0 /* String */),
747
+ generateParamConfigMetadata('expenseReserveAdjustmentReason', false, 2 /* Body */, 0 /* String */),
744
748
  ];
745
749
  const UpdateClaim_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, UpdateClaim_ConfigPropertyMetadata);
746
750
  const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(UpdateClaim_ConfigPropertyMetadata);
@@ -830,7 +834,7 @@ function validate$1(obj, path = 'ErrorDetail') {
830
834
  }
831
835
 
832
836
  const TTL = 1000;
833
- const VERSION = "452fa1d606be2ab752c4163290746f63";
837
+ const VERSION = "55b86557387cafedfe7d11d295a5fe28";
834
838
  function validate(obj, path = 'ClaimCoverageRepresentation') {
835
839
  const v_error = (() => {
836
840
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -865,6 +869,20 @@ function validate(obj, path = 'ClaimCoverageRepresentation') {
865
869
  if (typeof obj_isSuccess !== 'boolean') {
866
870
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
867
871
  }
872
+ if (obj.warnings !== undefined) {
873
+ const obj_warnings = obj.warnings;
874
+ const path_warnings = path + '.warnings';
875
+ if (!ArrayIsArray(obj_warnings)) {
876
+ return new TypeError('Expected "array" but received "' + typeof obj_warnings + '" (at "' + path_warnings + '")');
877
+ }
878
+ for (let i = 0; i < obj_warnings.length; i++) {
879
+ const obj_warnings_item = obj_warnings[i];
880
+ const path_warnings_item = path_warnings + '[' + i + ']';
881
+ if (typeof obj_warnings_item !== 'string') {
882
+ return new TypeError('Expected "string" but received "' + typeof obj_warnings_item + '" (at "' + path_warnings_item + '")');
883
+ }
884
+ }
885
+ }
868
886
  })();
869
887
  return v_error === undefined ? null : v_error;
870
888
  }
@@ -26,6 +26,10 @@ export interface UpdateClaimConfig {
26
26
  options?: unknown;
27
27
  participants?: types_ClaimParticipantsInput_ClaimParticipantsInput;
28
28
  productCode?: string;
29
+ lossReserveAmount?: number;
30
+ expenseReserveAmount?: number;
31
+ lossReserveAdjustmentReason?: string;
32
+ expenseReserveAdjustmentReason?: string;
29
33
  }
30
34
  export declare const createResourceParams: (config: UpdateClaimConfig) => resources_patchConnectClaimsByClaimId_ResourceRequestConfig;
31
35
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateClaimConfig>): adapter$45$utils_Untrusted<UpdateClaimConfig>;
@@ -24,6 +24,10 @@ export interface ResourceRequestConfig {
24
24
  options?: unknown;
25
25
  participants?: types_ClaimParticipantsInput_ClaimParticipantsInput;
26
26
  productCode?: string;
27
+ lossReserveAmount?: number;
28
+ expenseReserveAmount?: number;
29
+ lossReserveAdjustmentReason?: string;
30
+ expenseReserveAdjustmentReason?: string;
27
31
  };
28
32
  }
29
33
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -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 = "452fa1d606be2ab752c4163290746f63";
4
+ export declare const VERSION = "55b86557387cafedfe7d11d295a5fe28";
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 {
@@ -31,6 +31,8 @@ export interface ClaimCoverageRepresentationNormalized {
31
31
  errors?: Array<ErrorDetail_ErrorDetail>;
32
32
  /** Indicates whether the claim coverage creation was successful */
33
33
  isSuccess: boolean;
34
+ /** List of warning messages that are generated when a claim coverage reserve amount exceeds the reserve amount defined at the claim level. The API operation still completes successfully while informing the user which reserve limits are exceeded and by how much. */
35
+ warnings?: Array<string>;
34
36
  }
35
37
  /**
36
38
  * Output Representation for claim coverage creation service
@@ -42,4 +44,5 @@ export interface ClaimCoverageRepresentation {
42
44
  coverageId?: string;
43
45
  errors?: Array<ErrorDetail_ErrorDetail>;
44
46
  isSuccess: boolean;
47
+ warnings?: Array<string>;
45
48
  }
@@ -2,7 +2,7 @@ import { ClaimAttributesInput as ClaimAttributesInput_ClaimAttributesInput } fro
2
2
  import { ClaimItemsInput as ClaimItemsInput_ClaimItemsInput } from './ClaimItemsInput';
3
3
  import { ClaimParticipantsInput as ClaimParticipantsInput_ClaimParticipantsInput } from './ClaimParticipantsInput';
4
4
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
5
- export declare const VERSION = "dec9f6681c1a37aef5b7126045bece43";
5
+ export declare const VERSION = "e34e95a8ca31b37f21096e59a9eddc8a";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export declare function normalize(input: ClaimInputRepresentation, existing: ClaimInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ClaimInputRepresentationNormalized;
@@ -31,6 +31,10 @@ export interface ClaimInputRepresentationNormalized {
31
31
  claimReasonType?: string;
32
32
  /** The type of claim */
33
33
  claimType?: string;
34
+ /** Reason for expense reserve adjustment */
35
+ expenseReserveAdjustmentReason?: string;
36
+ /** Expense reserve amount for the claim */
37
+ expenseReserveAmount?: number;
34
38
  /** Id of the incident type */
35
39
  incidentTypeId?: string;
36
40
  /** Policy Id on which the claim is raised */
@@ -38,6 +42,10 @@ export interface ClaimInputRepresentationNormalized {
38
42
  items?: ClaimItemsInput_ClaimItemsInput;
39
43
  /** The date on which loss occurred */
40
44
  lossDate?: string;
45
+ /** Reason for loss reserve adjustment */
46
+ lossReserveAdjustmentReason?: string;
47
+ /** Loss reserve amount for the claim */
48
+ lossReserveAmount?: number;
41
49
  /** Type of the loss for which claim is raised */
42
50
  lossType?: string;
43
51
  /** Name of the claim */
@@ -62,10 +70,14 @@ export interface ClaimInputRepresentation {
62
70
  claimReason?: string;
63
71
  claimReasonType?: string;
64
72
  claimType?: string;
73
+ expenseReserveAdjustmentReason?: string;
74
+ expenseReserveAmount?: number;
65
75
  incidentTypeId?: string;
66
76
  insurancePolicyId?: string;
67
77
  items?: ClaimItemsInput_ClaimItemsInput;
68
78
  lossDate?: string;
79
+ lossReserveAdjustmentReason?: string;
80
+ lossReserveAmount?: number;
69
81
  lossType?: string;
70
82
  name?: string;
71
83
  options?: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-claim",
3
- "version": "1.439.0",
3
+ "version": "1.441.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.439.0"
43
+ "@salesforce/lds-bindings": "^1.441.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.439.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.441.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -101,7 +101,7 @@ function validate$c(obj, path = 'ErrorDetail') {
101
101
  }
102
102
 
103
103
  const TTL$1 = 1000;
104
- const VERSION$1 = "452fa1d606be2ab752c4163290746f63";
104
+ const VERSION$1 = "55b86557387cafedfe7d11d295a5fe28";
105
105
  function validate$b(obj, path = 'ClaimCoverageRepresentation') {
106
106
  const v_error = (() => {
107
107
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -136,6 +136,20 @@ function validate$b(obj, path = 'ClaimCoverageRepresentation') {
136
136
  if (typeof obj_isSuccess !== 'boolean') {
137
137
  return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
138
138
  }
139
+ if (obj.warnings !== undefined) {
140
+ const obj_warnings = obj.warnings;
141
+ const path_warnings = path + '.warnings';
142
+ if (!ArrayIsArray(obj_warnings)) {
143
+ return new TypeError('Expected "array" but received "' + typeof obj_warnings + '" (at "' + path_warnings + '")');
144
+ }
145
+ for (let i = 0; i < obj_warnings.length; i++) {
146
+ const obj_warnings_item = obj_warnings[i];
147
+ const path_warnings_item = path_warnings + '[' + i + ']';
148
+ if (typeof obj_warnings_item !== 'string') {
149
+ return new TypeError('Expected "string" but received "' + typeof obj_warnings_item + '" (at "' + path_warnings_item + '")');
150
+ }
151
+ }
152
+ }
139
153
  })();
140
154
  return v_error === undefined ? null : v_error;
141
155
  }
@@ -959,6 +973,10 @@ const UpdateClaim_ConfigPropertyMetadata = [
959
973
  generateParamConfigMetadata('options', false, 2 /* Body */, 4 /* Unsupported */),
960
974
  generateParamConfigMetadata('participants', false, 2 /* Body */, 4 /* Unsupported */),
961
975
  generateParamConfigMetadata('productCode', false, 2 /* Body */, 0 /* String */),
976
+ generateParamConfigMetadata('lossReserveAmount', false, 2 /* Body */, 2 /* Number */),
977
+ generateParamConfigMetadata('expenseReserveAmount', false, 2 /* Body */, 2 /* Number */),
978
+ generateParamConfigMetadata('lossReserveAdjustmentReason', false, 2 /* Body */, 0 /* String */),
979
+ generateParamConfigMetadata('expenseReserveAdjustmentReason', false, 2 /* Body */, 0 /* String */),
962
980
  ];
963
981
  const UpdateClaim_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, UpdateClaim_ConfigPropertyMetadata);
964
982
  const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(UpdateClaim_ConfigPropertyMetadata);
@@ -1147,4 +1165,4 @@ withDefaultLuvio((luvio) => {
1147
1165
  });
1148
1166
 
1149
1167
  export { CreateClaimCoverage, UpdateClaim, UpdateClaimCoverage };
1150
- // version: 1.439.0-1d518350b5
1168
+ // version: 1.441.0-0055bd971e
package/src/raml/api.raml CHANGED
@@ -143,6 +143,24 @@ types:
143
143
  description: The product code of the claim product
144
144
  type: string
145
145
  required: false
146
+ lossReserveAmount:
147
+ description: Loss reserve amount for the claim
148
+ format: float
149
+ type: number
150
+ required: false
151
+ expenseReserveAmount:
152
+ description: Expense reserve amount for the claim
153
+ format: float
154
+ type: number
155
+ required: false
156
+ lossReserveAdjustmentReason:
157
+ description: Reason for loss reserve adjustment
158
+ type: string
159
+ required: false
160
+ expenseReserveAdjustmentReason:
161
+ description: Reason for expense reserve adjustment
162
+ type: string
163
+ required: false
146
164
  # ClaimInputWrapperRepresentation: # removing redundant wrapper over the input representation
147
165
  # description: Input representation wrapper for ClaimInputRepresentation
148
166
  # type: object
@@ -367,6 +385,12 @@ types:
367
385
  isSuccess:
368
386
  description: Indicates whether the claim coverage creation was successful
369
387
  type: boolean
388
+ warnings:
389
+ description: List of warning messages that are generated when a claim coverage reserve amount exceeds the reserve amount defined at the claim level. The API operation still completes successfully while informing the user which reserve limits are exceeded and by how much.
390
+ type: array
391
+ items:
392
+ type: string
393
+ required: false
370
394
  UpdateClaimCoverageInputRepresentation:
371
395
  description: Input Representation for Update Claim Coverage Connect resource
372
396
  type: object