@salesforce/lds-adapters-industries-claim 1.383.0 → 1.384.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.
@@ -809,33 +809,28 @@ const UpdateClaimAdapterFactory = (luvio) => {
809
809
  };
810
810
  };
811
811
 
812
- function validate$1(obj, path = 'ClaimErrorsOutput') {
812
+ function validate$1(obj, path = 'ErrorDetail') {
813
813
  const v_error = (() => {
814
814
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
815
815
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
816
816
  }
817
- const obj_list = obj.list;
818
- const path_list = path + '.list';
819
- if (!ArrayIsArray(obj_list)) {
820
- return new TypeError('Expected "array" but received "' + typeof obj_list + '" (at "' + path_list + '")');
817
+ const obj_code = obj.code;
818
+ const path_code = path + '.code';
819
+ if (typeof obj_code !== 'string') {
820
+ return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
821
821
  }
822
- for (let i = 0; i < obj_list.length; i++) {
823
- const obj_list_item = obj_list[i];
824
- const path_list_item = path_list + '[' + i + ']';
825
- const referencepath_list_itemValidationError = validate$3(obj_list_item, path_list_item);
826
- if (referencepath_list_itemValidationError !== null) {
827
- let message = 'Object doesn\'t match ClaimErrorOutputRepresentation (at "' + path_list_item + '")\n';
828
- message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
829
- return new TypeError(message);
830
- }
822
+ const obj_message = obj.message;
823
+ const path_message = path + '.message';
824
+ if (typeof obj_message !== 'string') {
825
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
831
826
  }
832
827
  })();
833
828
  return v_error === undefined ? null : v_error;
834
829
  }
835
830
 
836
831
  const TTL = 1000;
837
- const VERSION = "35f177f27215c8f2ce3f8fb56ff7c2be";
838
- function validate(obj, path = 'ClaimCoverageOutputRepresentation') {
832
+ const VERSION = "0478e1dc0bf47896d0f8cdac6657beb0";
833
+ function validate(obj, path = 'ClaimCoverageRepresentation') {
839
834
  const v_error = (() => {
840
835
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
841
836
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -848,11 +843,18 @@ function validate(obj, path = 'ClaimCoverageOutputRepresentation') {
848
843
  if (obj.errors !== undefined) {
849
844
  const obj_errors = obj.errors;
850
845
  const path_errors = path + '.errors';
851
- const referencepath_errorsValidationError = validate$1(obj_errors, path_errors);
852
- if (referencepath_errorsValidationError !== null) {
853
- let message = 'Object doesn\'t match ClaimErrorsOutput (at "' + path_errors + '")\n';
854
- message += referencepath_errorsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
855
- return new TypeError(message);
846
+ if (!ArrayIsArray(obj_errors)) {
847
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
848
+ }
849
+ for (let i = 0; i < obj_errors.length; i++) {
850
+ const obj_errors_item = obj_errors[i];
851
+ const path_errors_item = path_errors + '[' + i + ']';
852
+ const referencepath_errors_itemValidationError = validate$1(obj_errors_item, path_errors_item);
853
+ if (referencepath_errors_itemValidationError !== null) {
854
+ let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
855
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
856
+ return new TypeError(message);
857
+ }
856
858
  }
857
859
  }
858
860
  const obj_isSuccess = obj.isSuccess;
@@ -863,20 +865,20 @@ function validate(obj, path = 'ClaimCoverageOutputRepresentation') {
863
865
  })();
864
866
  return v_error === undefined ? null : v_error;
865
867
  }
866
- const RepresentationType = 'ClaimCoverageOutputRepresentation';
868
+ const RepresentationType = 'ClaimCoverageRepresentation';
867
869
  function keyBuilder(luvio, config) {
868
- return keyPrefix + '::' + RepresentationType + ':' + config.coverageId;
870
+ return keyPrefix + '::' + RepresentationType + ':' + config.isSuccess;
869
871
  }
870
872
  function keyBuilderFromType(luvio, object) {
871
873
  const keyParams = {
872
- coverageId: object.coverageId
874
+ isSuccess: object.isSuccess
873
875
  };
874
876
  return keyBuilder(luvio, keyParams);
875
877
  }
876
878
  function normalize(input, existing, path, luvio, store, timestamp) {
877
879
  return input;
878
880
  }
879
- const select$2 = function ClaimCoverageOutputRepresentationSelect() {
881
+ const select$2 = function ClaimCoverageRepresentationSelect() {
880
882
  return {
881
883
  kind: 'Fragment',
882
884
  version: VERSION,
@@ -890,7 +892,7 @@ function equals(existing, incoming) {
890
892
  }
891
893
  return true;
892
894
  }
893
- const ingest = function ClaimCoverageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
895
+ const ingest = function ClaimCoverageRepresentationIngest(input, path, luvio, store, timestamp) {
894
896
  if (process.env.NODE_ENV !== 'production') {
895
897
  const validateError = validate(input);
896
898
  if (validateError !== null) {
@@ -1,7 +1,7 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
3
  import { ResourceRequestConfig as resources_postConnectClaimsCoveragesByClaimId_ResourceRequestConfig } from '../resources/postConnectClaimsCoveragesByClaimId';
4
- import { ClaimCoverageOutputRepresentation as types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation } from '../types/ClaimCoverageOutputRepresentation';
4
+ import { ClaimCoverageRepresentation as types_ClaimCoverageRepresentation_ClaimCoverageRepresentation } from '../types/ClaimCoverageRepresentation';
5
5
  export declare const adapterName = "CreateClaimCoverage";
6
6
  export declare const CreateClaimCoverage_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const CreateClaimCoverage_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
@@ -21,5 +21,5 @@ export interface CreateClaimCoverageConfig {
21
21
  export declare const createResourceParams: (config: CreateClaimCoverageConfig) => resources_postConnectClaimsCoveragesByClaimId_ResourceRequestConfig;
22
22
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateClaimCoverageConfig>): adapter$45$utils_Untrusted<CreateClaimCoverageConfig>;
23
23
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateClaimCoverageConfig | null;
24
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateClaimCoverageConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, any>>;
25
- export declare const CreateClaimCoverageAdapterFactory: $64$luvio_engine_AdapterFactory<CreateClaimCoverageConfig, types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation>;
24
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateClaimCoverageConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, any>>;
25
+ export declare const CreateClaimCoverageAdapterFactory: $64$luvio_engine_AdapterFactory<CreateClaimCoverageConfig, types_ClaimCoverageRepresentation_ClaimCoverageRepresentation>;
@@ -1,7 +1,7 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
3
  import { ResourceRequestConfig as resources_patchConnectClaimsCoveragesByClaimIdAndCoverageId_ResourceRequestConfig } from '../resources/patchConnectClaimsCoveragesByClaimIdAndCoverageId';
4
- import { ClaimCoverageOutputRepresentation as types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation } from '../types/ClaimCoverageOutputRepresentation';
4
+ import { ClaimCoverageRepresentation as types_ClaimCoverageRepresentation_ClaimCoverageRepresentation } from '../types/ClaimCoverageRepresentation';
5
5
  export declare const adapterName = "UpdateClaimCoverage";
6
6
  export declare const UpdateClaimCoverage_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const UpdateClaimCoverage_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
@@ -15,5 +15,5 @@ export interface UpdateClaimCoverageConfig {
15
15
  export declare const createResourceParams: (config: UpdateClaimCoverageConfig) => resources_patchConnectClaimsCoveragesByClaimIdAndCoverageId_ResourceRequestConfig;
16
16
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateClaimCoverageConfig>): adapter$45$utils_Untrusted<UpdateClaimCoverageConfig>;
17
17
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateClaimCoverageConfig | null;
18
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateClaimCoverageConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, any>>;
19
- export declare const UpdateClaimCoverageAdapterFactory: $64$luvio_engine_AdapterFactory<UpdateClaimCoverageConfig, types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation>;
18
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateClaimCoverageConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, any>>;
19
+ export declare const UpdateClaimCoverageAdapterFactory: $64$luvio_engine_AdapterFactory<UpdateClaimCoverageConfig, types_ClaimCoverageRepresentation_ClaimCoverageRepresentation>;
@@ -1,5 +1,5 @@
1
1
  import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
- import { ClaimCoverageOutputRepresentation as types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation } from '../types/ClaimCoverageOutputRepresentation';
2
+ import { ClaimCoverageRepresentation as types_ClaimCoverageRepresentation_ClaimCoverageRepresentation } from '../types/ClaimCoverageRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
5
5
  claimId: string;
@@ -12,7 +12,7 @@ export interface ResourceRequestConfig {
12
12
  };
13
13
  }
14
14
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
15
- export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation): void;
16
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, any>;
15
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ClaimCoverageRepresentation_ClaimCoverageRepresentation): void;
16
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, any>;
17
17
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
18
  export default createResourceRequest;
@@ -1,5 +1,5 @@
1
1
  import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
- import { ClaimCoverageOutputRepresentation as types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation } from '../types/ClaimCoverageOutputRepresentation';
2
+ import { ClaimCoverageRepresentation as types_ClaimCoverageRepresentation_ClaimCoverageRepresentation } from '../types/ClaimCoverageRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
5
5
  claimId: string;
@@ -18,7 +18,7 @@ export interface ResourceRequestConfig {
18
18
  };
19
19
  }
20
20
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
21
- export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation): void;
22
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ClaimCoverageOutputRepresentation_ClaimCoverageOutputRepresentation, any>;
21
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ClaimCoverageRepresentation_ClaimCoverageRepresentation): void;
22
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ClaimCoverageRepresentation_ClaimCoverageRepresentation, any>;
23
23
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
24
24
  export default createResourceRequest;
@@ -1,34 +1,34 @@
1
- import { ClaimErrorsOutput as ClaimErrorsOutput_ClaimErrorsOutput } from './ClaimErrorsOutput';
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 = "35f177f27215c8f2ce3f8fb56ff7c2be";
4
+ export declare const VERSION = "0478e1dc0bf47896d0f8cdac6657beb0";
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 {
8
- coverageId: string;
8
+ isSuccess: boolean;
9
9
  }
10
- export type ClaimCoverageOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
- export type PartialClaimCoverageOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type ClaimCoverageRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export type PartialClaimCoverageRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
12
12
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
13
- export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ClaimCoverageOutputRepresentationNormalizedKeyMetadata;
14
- export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ClaimCoverageOutputRepresentation): string;
15
- export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ClaimCoverageOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
- export declare function normalize(input: ClaimCoverageOutputRepresentation, existing: ClaimCoverageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ClaimCoverageOutputRepresentationNormalized;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ClaimCoverageRepresentationNormalizedKeyMetadata;
14
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ClaimCoverageRepresentation): string;
15
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ClaimCoverageRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function normalize(input: ClaimCoverageRepresentation, existing: ClaimCoverageRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ClaimCoverageRepresentationNormalized;
17
17
  export declare const select: () => $64$luvio_engine_BaseFragment;
18
- export declare function equals(existing: ClaimCoverageOutputRepresentationNormalized, incoming: ClaimCoverageOutputRepresentationNormalized): boolean;
18
+ export declare function equals(existing: ClaimCoverageRepresentationNormalized, incoming: ClaimCoverageRepresentationNormalized): boolean;
19
19
  export declare const ingest: $64$luvio_engine_ResourceIngest;
20
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ClaimCoverageOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ClaimCoverageRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
21
  /**
22
22
  * Output Representation for claim coverage creation service
23
23
  *
24
24
  * Keys:
25
- * coverageId (string): coverageId
25
+ * isSuccess (boolean): isSuccess
26
26
  */
27
- export interface ClaimCoverageOutputRepresentationNormalized {
27
+ export interface ClaimCoverageRepresentationNormalized {
28
28
  /** The ID of the created coverage */
29
29
  coverageId: string;
30
30
  /** A list of errors, including detailed information about each one. */
31
- errors?: ClaimErrorsOutput_ClaimErrorsOutput;
31
+ errors?: Array<ErrorDetail_ErrorDetail>;
32
32
  /** Indicates whether the claim coverage creation was successful */
33
33
  isSuccess: boolean;
34
34
  }
@@ -36,10 +36,10 @@ export interface ClaimCoverageOutputRepresentationNormalized {
36
36
  * Output Representation for claim coverage creation service
37
37
  *
38
38
  * Keys:
39
- * coverageId (string): coverageId
39
+ * isSuccess (boolean): isSuccess
40
40
  */
41
- export interface ClaimCoverageOutputRepresentation {
41
+ export interface ClaimCoverageRepresentation {
42
42
  coverageId: string;
43
- errors?: ClaimErrorsOutput_ClaimErrorsOutput;
43
+ errors?: Array<ErrorDetail_ErrorDetail>;
44
44
  isSuccess: boolean;
45
45
  }
@@ -0,0 +1,31 @@
1
+ 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';
2
+ export declare const VERSION = "baa93b024e3fa57b9bb9fb284fc162dd";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ErrorDetail, existing: ErrorDetailNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ErrorDetailNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ErrorDetailNormalized, incoming: ErrorDetailNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ErrorDetail, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Output Representation for Error
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ErrorDetailNormalized {
17
+ /** Code of the error */
18
+ code: string;
19
+ /** Message of the error */
20
+ message: string;
21
+ }
22
+ /**
23
+ * Output Representation for Error
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ErrorDetail {
29
+ code: string;
30
+ message: string;
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-claim",
3
- "version": "1.383.0",
3
+ "version": "1.384.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.383.0"
43
+ "@salesforce/lds-bindings": "^1.384.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.383.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.384.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -81,7 +81,7 @@ function createLink(ref) {
81
81
  };
82
82
  }
83
83
 
84
- function validate$c(obj, path = 'ClaimErrorOutputRepresentation') {
84
+ function validate$c(obj, path = 'ErrorDetail') {
85
85
  const v_error = (() => {
86
86
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
87
87
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -100,33 +100,9 @@ function validate$c(obj, path = 'ClaimErrorOutputRepresentation') {
100
100
  return v_error === undefined ? null : v_error;
101
101
  }
102
102
 
103
- function validate$b(obj, path = 'ClaimErrorsOutput') {
104
- const v_error = (() => {
105
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
106
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
107
- }
108
- const obj_list = obj.list;
109
- const path_list = path + '.list';
110
- if (!ArrayIsArray(obj_list)) {
111
- return new TypeError('Expected "array" but received "' + typeof obj_list + '" (at "' + path_list + '")');
112
- }
113
- for (let i = 0; i < obj_list.length; i++) {
114
- const obj_list_item = obj_list[i];
115
- const path_list_item = path_list + '[' + i + ']';
116
- const referencepath_list_itemValidationError = validate$c(obj_list_item, path_list_item);
117
- if (referencepath_list_itemValidationError !== null) {
118
- let message = 'Object doesn\'t match ClaimErrorOutputRepresentation (at "' + path_list_item + '")\n';
119
- message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
120
- return new TypeError(message);
121
- }
122
- }
123
- })();
124
- return v_error === undefined ? null : v_error;
125
- }
126
-
127
103
  const TTL$1 = 1000;
128
- const VERSION$1 = "35f177f27215c8f2ce3f8fb56ff7c2be";
129
- function validate$a(obj, path = 'ClaimCoverageOutputRepresentation') {
104
+ const VERSION$1 = "0478e1dc0bf47896d0f8cdac6657beb0";
105
+ function validate$b(obj, path = 'ClaimCoverageRepresentation') {
130
106
  const v_error = (() => {
131
107
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
132
108
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -139,11 +115,18 @@ function validate$a(obj, path = 'ClaimCoverageOutputRepresentation') {
139
115
  if (obj.errors !== undefined) {
140
116
  const obj_errors = obj.errors;
141
117
  const path_errors = path + '.errors';
142
- const referencepath_errorsValidationError = validate$b(obj_errors, path_errors);
143
- if (referencepath_errorsValidationError !== null) {
144
- let message = 'Object doesn\'t match ClaimErrorsOutput (at "' + path_errors + '")\n';
145
- message += referencepath_errorsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
146
- return new TypeError(message);
118
+ if (!ArrayIsArray(obj_errors)) {
119
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
120
+ }
121
+ for (let i = 0; i < obj_errors.length; i++) {
122
+ const obj_errors_item = obj_errors[i];
123
+ const path_errors_item = path_errors + '[' + i + ']';
124
+ const referencepath_errors_itemValidationError = validate$c(obj_errors_item, path_errors_item);
125
+ if (referencepath_errors_itemValidationError !== null) {
126
+ let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
127
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
128
+ return new TypeError(message);
129
+ }
147
130
  }
148
131
  }
149
132
  const obj_isSuccess = obj.isSuccess;
@@ -154,20 +137,20 @@ function validate$a(obj, path = 'ClaimCoverageOutputRepresentation') {
154
137
  })();
155
138
  return v_error === undefined ? null : v_error;
156
139
  }
157
- const RepresentationType$1 = 'ClaimCoverageOutputRepresentation';
140
+ const RepresentationType$1 = 'ClaimCoverageRepresentation';
158
141
  function keyBuilder$1(luvio, config) {
159
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.coverageId;
142
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.isSuccess;
160
143
  }
161
144
  function keyBuilderFromType$1(luvio, object) {
162
145
  const keyParams = {
163
- coverageId: object.coverageId
146
+ isSuccess: object.isSuccess
164
147
  };
165
148
  return keyBuilder$1(luvio, keyParams);
166
149
  }
167
150
  function normalize$1(input, existing, path, luvio, store, timestamp) {
168
151
  return input;
169
152
  }
170
- const select$4 = function ClaimCoverageOutputRepresentationSelect() {
153
+ const select$4 = function ClaimCoverageRepresentationSelect() {
171
154
  return {
172
155
  kind: 'Fragment',
173
156
  version: VERSION$1,
@@ -181,9 +164,9 @@ function equals$1(existing, incoming) {
181
164
  }
182
165
  return true;
183
166
  }
184
- const ingest$1 = function ClaimCoverageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
167
+ const ingest$1 = function ClaimCoverageRepresentationIngest(input, path, luvio, store, timestamp) {
185
168
  if (process.env.NODE_ENV !== 'production') {
186
- const validateError = validate$a(input);
169
+ const validateError = validate$b(input);
187
170
  if (validateError !== null) {
188
171
  throw validateError;
189
172
  }
@@ -305,7 +288,7 @@ const CreateClaimCoverageAdapterFactory = (luvio) => {
305
288
  };
306
289
  };
307
290
 
308
- function validate$9(obj, path = 'ClaimAttributeInputRepresentation') {
291
+ function validate$a(obj, path = 'ClaimAttributeInputRepresentation') {
309
292
  const v_error = (() => {
310
293
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
311
294
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -328,7 +311,7 @@ function validate$9(obj, path = 'ClaimAttributeInputRepresentation') {
328
311
  return v_error === undefined ? null : v_error;
329
312
  }
330
313
 
331
- function validate$8(obj, path = 'ClaimAttributesInput') {
314
+ function validate$9(obj, path = 'ClaimAttributesInput') {
332
315
  const v_error = (() => {
333
316
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
334
317
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -341,7 +324,7 @@ function validate$8(obj, path = 'ClaimAttributesInput') {
341
324
  for (let i = 0; i < obj_list.length; i++) {
342
325
  const obj_list_item = obj_list[i];
343
326
  const path_list_item = path_list + '[' + i + ']';
344
- const referencepath_list_itemValidationError = validate$9(obj_list_item, path_list_item);
327
+ const referencepath_list_itemValidationError = validate$a(obj_list_item, path_list_item);
345
328
  if (referencepath_list_itemValidationError !== null) {
346
329
  let message = 'Object doesn\'t match ClaimAttributeInputRepresentation (at "' + path_list_item + '")\n';
347
330
  message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -352,7 +335,7 @@ function validate$8(obj, path = 'ClaimAttributesInput') {
352
335
  return v_error === undefined ? null : v_error;
353
336
  }
354
337
 
355
- function validate$7(obj, path = 'ClaimRelatedObjectInputRepresentation') {
338
+ function validate$8(obj, path = 'ClaimRelatedObjectInputRepresentation') {
356
339
  const v_error = (() => {
357
340
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
358
341
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -375,7 +358,7 @@ function validate$7(obj, path = 'ClaimRelatedObjectInputRepresentation') {
375
358
  return v_error === undefined ? null : v_error;
376
359
  }
377
360
 
378
- function validate$6(obj, path = 'ClaimRelatedObjectsInput') {
361
+ function validate$7(obj, path = 'ClaimRelatedObjectsInput') {
379
362
  const v_error = (() => {
380
363
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
381
364
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -388,7 +371,7 @@ function validate$6(obj, path = 'ClaimRelatedObjectsInput') {
388
371
  for (let i = 0; i < obj_list.length; i++) {
389
372
  const obj_list_item = obj_list[i];
390
373
  const path_list_item = path_list + '[' + i + ']';
391
- const referencepath_list_itemValidationError = validate$7(obj_list_item, path_list_item);
374
+ const referencepath_list_itemValidationError = validate$8(obj_list_item, path_list_item);
392
375
  if (referencepath_list_itemValidationError !== null) {
393
376
  let message = 'Object doesn\'t match ClaimRelatedObjectInputRepresentation (at "' + path_list_item + '")\n';
394
377
  message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -399,7 +382,7 @@ function validate$6(obj, path = 'ClaimRelatedObjectsInput') {
399
382
  return v_error === undefined ? null : v_error;
400
383
  }
401
384
 
402
- function validate$5(obj, path = 'ClaimItemInputRepresentation') {
385
+ function validate$6(obj, path = 'ClaimItemInputRepresentation') {
403
386
  const v_error = (() => {
404
387
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
405
388
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -421,7 +404,7 @@ function validate$5(obj, path = 'ClaimItemInputRepresentation') {
421
404
  const path_attributes = path + '.attributes';
422
405
  let obj_attributes_union0 = null;
423
406
  const obj_attributes_union0_error = (() => {
424
- const referencepath_attributesValidationError = validate$8(obj_attributes, path_attributes);
407
+ const referencepath_attributesValidationError = validate$9(obj_attributes, path_attributes);
425
408
  if (referencepath_attributesValidationError !== null) {
426
409
  let message = 'Object doesn\'t match ClaimAttributesInput (at "' + path_attributes + '")\n';
427
410
  message += referencepath_attributesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -625,7 +608,7 @@ function validate$5(obj, path = 'ClaimItemInputRepresentation') {
625
608
  const path_relatedObjects = path + '.relatedObjects';
626
609
  let obj_relatedObjects_union0 = null;
627
610
  const obj_relatedObjects_union0_error = (() => {
628
- const referencepath_relatedObjectsValidationError = validate$6(obj_relatedObjects, path_relatedObjects);
611
+ const referencepath_relatedObjectsValidationError = validate$7(obj_relatedObjects, path_relatedObjects);
629
612
  if (referencepath_relatedObjectsValidationError !== null) {
630
613
  let message = 'Object doesn\'t match ClaimRelatedObjectsInput (at "' + path_relatedObjects + '")\n';
631
614
  message += referencepath_relatedObjectsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -655,7 +638,7 @@ function validate$5(obj, path = 'ClaimItemInputRepresentation') {
655
638
  return v_error === undefined ? null : v_error;
656
639
  }
657
640
 
658
- function validate$4(obj, path = 'ClaimItemsInput') {
641
+ function validate$5(obj, path = 'ClaimItemsInput') {
659
642
  const v_error = (() => {
660
643
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
661
644
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -668,7 +651,7 @@ function validate$4(obj, path = 'ClaimItemsInput') {
668
651
  for (let i = 0; i < obj_list.length; i++) {
669
652
  const obj_list_item = obj_list[i];
670
653
  const path_list_item = path_list + '[' + i + ']';
671
- const referencepath_list_itemValidationError = validate$5(obj_list_item, path_list_item);
654
+ const referencepath_list_itemValidationError = validate$6(obj_list_item, path_list_item);
672
655
  if (referencepath_list_itemValidationError !== null) {
673
656
  let message = 'Object doesn\'t match ClaimItemInputRepresentation (at "' + path_list_item + '")\n';
674
657
  message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -679,7 +662,7 @@ function validate$4(obj, path = 'ClaimItemsInput') {
679
662
  return v_error === undefined ? null : v_error;
680
663
  }
681
664
 
682
- function validate$3(obj, path = 'ClaimParticipantRolesInput') {
665
+ function validate$4(obj, path = 'ClaimParticipantRolesInput') {
683
666
  const v_error = (() => {
684
667
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
685
668
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -702,7 +685,7 @@ function validate$3(obj, path = 'ClaimParticipantRolesInput') {
702
685
  return v_error === undefined ? null : v_error;
703
686
  }
704
687
 
705
- function validate$2(obj, path = 'ClaimParticipantInputRepresentation') {
688
+ function validate$3(obj, path = 'ClaimParticipantInputRepresentation') {
706
689
  const v_error = (() => {
707
690
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
708
691
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -755,7 +738,7 @@ function validate$2(obj, path = 'ClaimParticipantInputRepresentation') {
755
738
  if (obj.roles !== undefined) {
756
739
  const obj_roles = obj.roles;
757
740
  const path_roles = path + '.roles';
758
- const referencepath_rolesValidationError = validate$3(obj_roles, path_roles);
741
+ const referencepath_rolesValidationError = validate$4(obj_roles, path_roles);
759
742
  if (referencepath_rolesValidationError !== null) {
760
743
  let message = 'Object doesn\'t match ClaimParticipantRolesInput (at "' + path_roles + '")\n';
761
744
  message += referencepath_rolesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -766,7 +749,7 @@ function validate$2(obj, path = 'ClaimParticipantInputRepresentation') {
766
749
  return v_error === undefined ? null : v_error;
767
750
  }
768
751
 
769
- function validate$1(obj, path = 'ClaimParticipantsInput') {
752
+ function validate$2(obj, path = 'ClaimParticipantsInput') {
770
753
  const v_error = (() => {
771
754
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
772
755
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -779,7 +762,7 @@ function validate$1(obj, path = 'ClaimParticipantsInput') {
779
762
  for (let i = 0; i < obj_list.length; i++) {
780
763
  const obj_list_item = obj_list[i];
781
764
  const path_list_item = path_list + '[' + i + ']';
782
- const referencepath_list_itemValidationError = validate$2(obj_list_item, path_list_item);
765
+ const referencepath_list_itemValidationError = validate$3(obj_list_item, path_list_item);
783
766
  if (referencepath_list_itemValidationError !== null) {
784
767
  let message = 'Object doesn\'t match ClaimParticipantInputRepresentation (at "' + path_list_item + '")\n';
785
768
  message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -790,6 +773,25 @@ function validate$1(obj, path = 'ClaimParticipantsInput') {
790
773
  return v_error === undefined ? null : v_error;
791
774
  }
792
775
 
776
+ function validate$1(obj, path = 'ClaimErrorOutputRepresentation') {
777
+ const v_error = (() => {
778
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
779
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
780
+ }
781
+ const obj_code = obj.code;
782
+ const path_code = path + '.code';
783
+ if (typeof obj_code !== 'string') {
784
+ return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
785
+ }
786
+ const obj_message = obj.message;
787
+ const path_message = path + '.message';
788
+ if (typeof obj_message !== 'string') {
789
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
790
+ }
791
+ })();
792
+ return v_error === undefined ? null : v_error;
793
+ }
794
+
793
795
  const TTL = 1000;
794
796
  const VERSION = "a2761ec24de7405a85015297b44aa3cf";
795
797
  function validate(obj, path = 'CreateClaimOutputRepresentation') {
@@ -834,7 +836,7 @@ function validate(obj, path = 'CreateClaimOutputRepresentation') {
834
836
  for (let i = 0; i < obj_errors.length; i++) {
835
837
  const obj_errors_item = obj_errors[i];
836
838
  const path_errors_item = path_errors + '[' + i + ']';
837
- const referencepath_errors_itemValidationError = validate$c(obj_errors_item, path_errors_item);
839
+ const referencepath_errors_itemValidationError = validate$1(obj_errors_item, path_errors_item);
838
840
  if (referencepath_errors_itemValidationError !== null) {
839
841
  let message = 'Object doesn\'t match ClaimErrorOutputRepresentation (at "' + path_errors_item + '")\n';
840
842
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -963,19 +965,19 @@ function typeCheckConfig$1(untrustedConfig) {
963
965
  const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
964
966
  config.additionalFields = untrustedConfig_additionalFields;
965
967
  const untrustedConfig_attributes = untrustedConfig.attributes;
966
- const referenceClaimAttributesInputValidationError = validate$8(untrustedConfig_attributes);
968
+ const referenceClaimAttributesInputValidationError = validate$9(untrustedConfig_attributes);
967
969
  if (referenceClaimAttributesInputValidationError === null) {
968
970
  config.attributes = untrustedConfig_attributes;
969
971
  }
970
972
  const untrustedConfig_items = untrustedConfig.items;
971
- const referenceClaimItemsInputValidationError = validate$4(untrustedConfig_items);
973
+ const referenceClaimItemsInputValidationError = validate$5(untrustedConfig_items);
972
974
  if (referenceClaimItemsInputValidationError === null) {
973
975
  config.items = untrustedConfig_items;
974
976
  }
975
977
  const untrustedConfig_options = untrustedConfig.options;
976
978
  config.options = untrustedConfig_options;
977
979
  const untrustedConfig_participants = untrustedConfig.participants;
978
- const referenceClaimParticipantsInputValidationError = validate$1(untrustedConfig_participants);
980
+ const referenceClaimParticipantsInputValidationError = validate$2(untrustedConfig_participants);
979
981
  if (referenceClaimParticipantsInputValidationError === null) {
980
982
  config.participants = untrustedConfig_participants;
981
983
  }
@@ -1142,4 +1144,4 @@ withDefaultLuvio((luvio) => {
1142
1144
  });
1143
1145
 
1144
1146
  export { CreateClaimCoverage, UpdateClaim, UpdateClaimCoverage };
1145
- // version: 1.383.0-d85dce8db1
1147
+ // version: 1.384.0-835fd13f44
package/src/raml/api.raml CHANGED
@@ -25,6 +25,16 @@ annotationTypes:
25
25
  type: string
26
26
  allowedTargets: TypeDeclaration
27
27
  types:
28
+ ErrorDetail:
29
+ description: Output Representation for Error
30
+ type: object
31
+ properties:
32
+ code:
33
+ description: Code of the error
34
+ type: string
35
+ message:
36
+ description: Message of the error
37
+ type: string
28
38
  ClaimAttributeInputRepresentation:
29
39
  description: Input Representation for Attributes
30
40
  type: object
@@ -336,7 +346,7 @@ types:
336
346
  reserveProcessingMode:
337
347
  description: Reserve Processing Mode for claim coverage
338
348
  type: string
339
- ClaimCoverageOutputRepresentation:
349
+ ClaimCoverageRepresentation:
340
350
  description: Output Representation for claim coverage creation service
341
351
  type: object
342
352
  properties:
@@ -345,7 +355,9 @@ types:
345
355
  type: string
346
356
  errors:
347
357
  description: A list of errors, including detailed information about each one.
348
- type: ClaimErrorsOutput
358
+ type: array
359
+ items:
360
+ type: ErrorDetail
349
361
  required: false
350
362
  isSuccess:
351
363
  description: Indicates whether the claim coverage creation was successful
@@ -400,7 +412,7 @@ types:
400
412
  description: Success
401
413
  body:
402
414
  application/json:
403
- type: ClaimCoverageOutputRepresentation
415
+ type: ClaimCoverageRepresentation
404
416
  body:
405
417
  application/json:
406
418
  type: CreateClaimCoverageInputRepresentation
@@ -412,14 +424,14 @@ types:
412
424
  required: true
413
425
  /claims/{claimId}/coverages/{coverageId}:
414
426
  patch:
415
- displayName: patchUpdateClaimCoverage
427
+ displayName: patchClaimCoverage
416
428
  description: HTTP PATCH Method to update claim coverage
417
429
  responses:
418
430
  '200':
419
431
  description: Success
420
432
  body:
421
433
  application/json:
422
- type: ClaimCoverageOutputRepresentation
434
+ type: ClaimCoverageRepresentation
423
435
  body:
424
436
  application/json:
425
437
  type: UpdateClaimCoverageInputRepresentation
@@ -18,11 +18,11 @@ types:
18
18
  (luvio.opaque): true
19
19
  (luvio.key):
20
20
  claimItemId: claimItemId
21
- ClaimCoverageOutputRepresentation:
21
+ ClaimCoverageRepresentation:
22
22
  (luvio.ttl): 1000
23
23
  (luvio.opaque): true
24
24
  (luvio.key):
25
- coverageId: coverageId
25
+ isSuccess: isSuccess
26
26
 
27
27
  /connect:
28
28
  /claims/{claimId}: