@salesforce/lds-adapters-industries-claim 1.380.0-dev2 → 1.380.0-dev20
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/industries-claim.js +34 -30
- package/dist/es/es2018/types/src/generated/adapters/CreateClaimCoverage.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/adapters/UpdateClaimCoverage.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/resources/patchConnectClaimsCoveragesByClaimIdAndCoverageId.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/resources/postConnectClaimsCoveragesByClaimId.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/ClaimCoverageRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/ErrorDetail.d.ts +31 -0
- package/package.json +3 -3
- package/sfdc/index.js +67 -63
- package/src/raml/api.raml +18 -5
- package/src/raml/luvio.raml +2 -2
- package/dist/es/es2018/types/src/generated/types/ClaimCoverageOutputRepresentation.d.ts +0 -45
|
@@ -809,50 +809,54 @@ const UpdateClaimAdapterFactory = (luvio) => {
|
|
|
809
809
|
};
|
|
810
810
|
};
|
|
811
811
|
|
|
812
|
-
function validate$1(obj, path = '
|
|
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
|
|
818
|
-
const
|
|
819
|
-
if (
|
|
820
|
-
return new TypeError('Expected "
|
|
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
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
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 = "
|
|
838
|
-
function validate(obj, path = '
|
|
832
|
+
const VERSION = "452fa1d606be2ab752c4163290746f63";
|
|
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 + '")');
|
|
842
837
|
}
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
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
|
+
}
|
|
847
844
|
}
|
|
848
845
|
if (obj.errors !== undefined) {
|
|
849
846
|
const obj_errors = obj.errors;
|
|
850
847
|
const path_errors = path + '.errors';
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
848
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
849
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
850
|
+
}
|
|
851
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
852
|
+
const obj_errors_item = obj_errors[i];
|
|
853
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
854
|
+
const referencepath_errors_itemValidationError = validate$1(obj_errors_item, path_errors_item);
|
|
855
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
856
|
+
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
857
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
858
|
+
return new TypeError(message);
|
|
859
|
+
}
|
|
856
860
|
}
|
|
857
861
|
}
|
|
858
862
|
const obj_isSuccess = obj.isSuccess;
|
|
@@ -863,20 +867,20 @@ function validate(obj, path = 'ClaimCoverageOutputRepresentation') {
|
|
|
863
867
|
})();
|
|
864
868
|
return v_error === undefined ? null : v_error;
|
|
865
869
|
}
|
|
866
|
-
const RepresentationType = '
|
|
870
|
+
const RepresentationType = 'ClaimCoverageRepresentation';
|
|
867
871
|
function keyBuilder(luvio, config) {
|
|
868
|
-
return keyPrefix + '::' + RepresentationType + ':' + config.
|
|
872
|
+
return keyPrefix + '::' + RepresentationType + ':' + config.isSuccess;
|
|
869
873
|
}
|
|
870
874
|
function keyBuilderFromType(luvio, object) {
|
|
871
875
|
const keyParams = {
|
|
872
|
-
|
|
876
|
+
isSuccess: object.isSuccess
|
|
873
877
|
};
|
|
874
878
|
return keyBuilder(luvio, keyParams);
|
|
875
879
|
}
|
|
876
880
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
877
881
|
return input;
|
|
878
882
|
}
|
|
879
|
-
const select$2 = function
|
|
883
|
+
const select$2 = function ClaimCoverageRepresentationSelect() {
|
|
880
884
|
return {
|
|
881
885
|
kind: 'Fragment',
|
|
882
886
|
version: VERSION,
|
|
@@ -890,7 +894,7 @@ function equals(existing, incoming) {
|
|
|
890
894
|
}
|
|
891
895
|
return true;
|
|
892
896
|
}
|
|
893
|
-
const ingest = function
|
|
897
|
+
const ingest = function ClaimCoverageRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
894
898
|
if (process.env.NODE_ENV !== 'production') {
|
|
895
899
|
const validateError = validate(input);
|
|
896
900
|
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 {
|
|
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<
|
|
25
|
-
export declare const CreateClaimCoverageAdapterFactory: $64$luvio_engine_AdapterFactory<CreateClaimCoverageConfig,
|
|
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 {
|
|
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<
|
|
19
|
-
export declare const UpdateClaimCoverageAdapterFactory: $64$luvio_engine_AdapterFactory<UpdateClaimCoverageConfig,
|
|
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 {
|
|
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:
|
|
16
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<
|
|
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;
|
package/dist/es/es2018/types/src/generated/resources/postConnectClaimsCoveragesByClaimId.d.ts
CHANGED
|
@@ -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 {
|
|
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:
|
|
22
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<
|
|
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;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ErrorDetail as ErrorDetail_ErrorDetail } from './ErrorDetail';
|
|
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
|
+
export declare const TTL = 1000;
|
|
4
|
+
export declare const VERSION = "452fa1d606be2ab752c4163290746f63";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
+
isSuccess: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type ClaimCoverageRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialClaimCoverageRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
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): 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
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
18
|
+
export declare function equals(existing: ClaimCoverageRepresentationNormalized, incoming: ClaimCoverageRepresentationNormalized): boolean;
|
|
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: ClaimCoverageRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
21
|
+
/**
|
|
22
|
+
* Output Representation for claim coverage creation service
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* isSuccess (boolean): isSuccess
|
|
26
|
+
*/
|
|
27
|
+
export interface ClaimCoverageRepresentationNormalized {
|
|
28
|
+
/** The ID of the created coverage */
|
|
29
|
+
coverageId?: string;
|
|
30
|
+
/** A list of errors, including detailed information about each one. */
|
|
31
|
+
errors?: Array<ErrorDetail_ErrorDetail>;
|
|
32
|
+
/** Indicates whether the claim coverage creation was successful */
|
|
33
|
+
isSuccess: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Output Representation for claim coverage creation service
|
|
37
|
+
*
|
|
38
|
+
* Keys:
|
|
39
|
+
* isSuccess (boolean): isSuccess
|
|
40
|
+
*/
|
|
41
|
+
export interface ClaimCoverageRepresentation {
|
|
42
|
+
coverageId?: string;
|
|
43
|
+
errors?: Array<ErrorDetail_ErrorDetail>;
|
|
44
|
+
isSuccess: boolean;
|
|
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.380.0-
|
|
3
|
+
"version": "1.380.0-dev20",
|
|
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.380.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.380.0-dev20"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.380.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.380.0-dev20"
|
|
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 = '
|
|
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,50 +100,35 @@ 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 = "
|
|
129
|
-
function validate$
|
|
104
|
+
const VERSION$1 = "452fa1d606be2ab752c4163290746f63";
|
|
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 + '")');
|
|
133
109
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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
|
+
}
|
|
138
116
|
}
|
|
139
117
|
if (obj.errors !== undefined) {
|
|
140
118
|
const obj_errors = obj.errors;
|
|
141
119
|
const path_errors = path + '.errors';
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
120
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
121
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
122
|
+
}
|
|
123
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
124
|
+
const obj_errors_item = obj_errors[i];
|
|
125
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
126
|
+
const referencepath_errors_itemValidationError = validate$c(obj_errors_item, path_errors_item);
|
|
127
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
128
|
+
let message = 'Object doesn\'t match ErrorDetail (at "' + path_errors_item + '")\n';
|
|
129
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
130
|
+
return new TypeError(message);
|
|
131
|
+
}
|
|
147
132
|
}
|
|
148
133
|
}
|
|
149
134
|
const obj_isSuccess = obj.isSuccess;
|
|
@@ -154,20 +139,20 @@ function validate$a(obj, path = 'ClaimCoverageOutputRepresentation') {
|
|
|
154
139
|
})();
|
|
155
140
|
return v_error === undefined ? null : v_error;
|
|
156
141
|
}
|
|
157
|
-
const RepresentationType$1 = '
|
|
142
|
+
const RepresentationType$1 = 'ClaimCoverageRepresentation';
|
|
158
143
|
function keyBuilder$1(luvio, config) {
|
|
159
|
-
return keyPrefix + '::' + RepresentationType$1 + ':' + config.
|
|
144
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + config.isSuccess;
|
|
160
145
|
}
|
|
161
146
|
function keyBuilderFromType$1(luvio, object) {
|
|
162
147
|
const keyParams = {
|
|
163
|
-
|
|
148
|
+
isSuccess: object.isSuccess
|
|
164
149
|
};
|
|
165
150
|
return keyBuilder$1(luvio, keyParams);
|
|
166
151
|
}
|
|
167
152
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
168
153
|
return input;
|
|
169
154
|
}
|
|
170
|
-
const select$4 = function
|
|
155
|
+
const select$4 = function ClaimCoverageRepresentationSelect() {
|
|
171
156
|
return {
|
|
172
157
|
kind: 'Fragment',
|
|
173
158
|
version: VERSION$1,
|
|
@@ -181,9 +166,9 @@ function equals$1(existing, incoming) {
|
|
|
181
166
|
}
|
|
182
167
|
return true;
|
|
183
168
|
}
|
|
184
|
-
const ingest$1 = function
|
|
169
|
+
const ingest$1 = function ClaimCoverageRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
185
170
|
if (process.env.NODE_ENV !== 'production') {
|
|
186
|
-
const validateError = validate$
|
|
171
|
+
const validateError = validate$b(input);
|
|
187
172
|
if (validateError !== null) {
|
|
188
173
|
throw validateError;
|
|
189
174
|
}
|
|
@@ -305,7 +290,7 @@ const CreateClaimCoverageAdapterFactory = (luvio) => {
|
|
|
305
290
|
};
|
|
306
291
|
};
|
|
307
292
|
|
|
308
|
-
function validate$
|
|
293
|
+
function validate$a(obj, path = 'ClaimAttributeInputRepresentation') {
|
|
309
294
|
const v_error = (() => {
|
|
310
295
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
311
296
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -328,7 +313,7 @@ function validate$9(obj, path = 'ClaimAttributeInputRepresentation') {
|
|
|
328
313
|
return v_error === undefined ? null : v_error;
|
|
329
314
|
}
|
|
330
315
|
|
|
331
|
-
function validate$
|
|
316
|
+
function validate$9(obj, path = 'ClaimAttributesInput') {
|
|
332
317
|
const v_error = (() => {
|
|
333
318
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
334
319
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -341,7 +326,7 @@ function validate$8(obj, path = 'ClaimAttributesInput') {
|
|
|
341
326
|
for (let i = 0; i < obj_list.length; i++) {
|
|
342
327
|
const obj_list_item = obj_list[i];
|
|
343
328
|
const path_list_item = path_list + '[' + i + ']';
|
|
344
|
-
const referencepath_list_itemValidationError = validate$
|
|
329
|
+
const referencepath_list_itemValidationError = validate$a(obj_list_item, path_list_item);
|
|
345
330
|
if (referencepath_list_itemValidationError !== null) {
|
|
346
331
|
let message = 'Object doesn\'t match ClaimAttributeInputRepresentation (at "' + path_list_item + '")\n';
|
|
347
332
|
message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -352,7 +337,7 @@ function validate$8(obj, path = 'ClaimAttributesInput') {
|
|
|
352
337
|
return v_error === undefined ? null : v_error;
|
|
353
338
|
}
|
|
354
339
|
|
|
355
|
-
function validate$
|
|
340
|
+
function validate$8(obj, path = 'ClaimRelatedObjectInputRepresentation') {
|
|
356
341
|
const v_error = (() => {
|
|
357
342
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
358
343
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -375,7 +360,7 @@ function validate$7(obj, path = 'ClaimRelatedObjectInputRepresentation') {
|
|
|
375
360
|
return v_error === undefined ? null : v_error;
|
|
376
361
|
}
|
|
377
362
|
|
|
378
|
-
function validate$
|
|
363
|
+
function validate$7(obj, path = 'ClaimRelatedObjectsInput') {
|
|
379
364
|
const v_error = (() => {
|
|
380
365
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
381
366
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -388,7 +373,7 @@ function validate$6(obj, path = 'ClaimRelatedObjectsInput') {
|
|
|
388
373
|
for (let i = 0; i < obj_list.length; i++) {
|
|
389
374
|
const obj_list_item = obj_list[i];
|
|
390
375
|
const path_list_item = path_list + '[' + i + ']';
|
|
391
|
-
const referencepath_list_itemValidationError = validate$
|
|
376
|
+
const referencepath_list_itemValidationError = validate$8(obj_list_item, path_list_item);
|
|
392
377
|
if (referencepath_list_itemValidationError !== null) {
|
|
393
378
|
let message = 'Object doesn\'t match ClaimRelatedObjectInputRepresentation (at "' + path_list_item + '")\n';
|
|
394
379
|
message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -399,7 +384,7 @@ function validate$6(obj, path = 'ClaimRelatedObjectsInput') {
|
|
|
399
384
|
return v_error === undefined ? null : v_error;
|
|
400
385
|
}
|
|
401
386
|
|
|
402
|
-
function validate$
|
|
387
|
+
function validate$6(obj, path = 'ClaimItemInputRepresentation') {
|
|
403
388
|
const v_error = (() => {
|
|
404
389
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
405
390
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -421,7 +406,7 @@ function validate$5(obj, path = 'ClaimItemInputRepresentation') {
|
|
|
421
406
|
const path_attributes = path + '.attributes';
|
|
422
407
|
let obj_attributes_union0 = null;
|
|
423
408
|
const obj_attributes_union0_error = (() => {
|
|
424
|
-
const referencepath_attributesValidationError = validate$
|
|
409
|
+
const referencepath_attributesValidationError = validate$9(obj_attributes, path_attributes);
|
|
425
410
|
if (referencepath_attributesValidationError !== null) {
|
|
426
411
|
let message = 'Object doesn\'t match ClaimAttributesInput (at "' + path_attributes + '")\n';
|
|
427
412
|
message += referencepath_attributesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -625,7 +610,7 @@ function validate$5(obj, path = 'ClaimItemInputRepresentation') {
|
|
|
625
610
|
const path_relatedObjects = path + '.relatedObjects';
|
|
626
611
|
let obj_relatedObjects_union0 = null;
|
|
627
612
|
const obj_relatedObjects_union0_error = (() => {
|
|
628
|
-
const referencepath_relatedObjectsValidationError = validate$
|
|
613
|
+
const referencepath_relatedObjectsValidationError = validate$7(obj_relatedObjects, path_relatedObjects);
|
|
629
614
|
if (referencepath_relatedObjectsValidationError !== null) {
|
|
630
615
|
let message = 'Object doesn\'t match ClaimRelatedObjectsInput (at "' + path_relatedObjects + '")\n';
|
|
631
616
|
message += referencepath_relatedObjectsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -655,7 +640,7 @@ function validate$5(obj, path = 'ClaimItemInputRepresentation') {
|
|
|
655
640
|
return v_error === undefined ? null : v_error;
|
|
656
641
|
}
|
|
657
642
|
|
|
658
|
-
function validate$
|
|
643
|
+
function validate$5(obj, path = 'ClaimItemsInput') {
|
|
659
644
|
const v_error = (() => {
|
|
660
645
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
661
646
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -668,7 +653,7 @@ function validate$4(obj, path = 'ClaimItemsInput') {
|
|
|
668
653
|
for (let i = 0; i < obj_list.length; i++) {
|
|
669
654
|
const obj_list_item = obj_list[i];
|
|
670
655
|
const path_list_item = path_list + '[' + i + ']';
|
|
671
|
-
const referencepath_list_itemValidationError = validate$
|
|
656
|
+
const referencepath_list_itemValidationError = validate$6(obj_list_item, path_list_item);
|
|
672
657
|
if (referencepath_list_itemValidationError !== null) {
|
|
673
658
|
let message = 'Object doesn\'t match ClaimItemInputRepresentation (at "' + path_list_item + '")\n';
|
|
674
659
|
message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -679,7 +664,7 @@ function validate$4(obj, path = 'ClaimItemsInput') {
|
|
|
679
664
|
return v_error === undefined ? null : v_error;
|
|
680
665
|
}
|
|
681
666
|
|
|
682
|
-
function validate$
|
|
667
|
+
function validate$4(obj, path = 'ClaimParticipantRolesInput') {
|
|
683
668
|
const v_error = (() => {
|
|
684
669
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
685
670
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -702,7 +687,7 @@ function validate$3(obj, path = 'ClaimParticipantRolesInput') {
|
|
|
702
687
|
return v_error === undefined ? null : v_error;
|
|
703
688
|
}
|
|
704
689
|
|
|
705
|
-
function validate$
|
|
690
|
+
function validate$3(obj, path = 'ClaimParticipantInputRepresentation') {
|
|
706
691
|
const v_error = (() => {
|
|
707
692
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
708
693
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -755,7 +740,7 @@ function validate$2(obj, path = 'ClaimParticipantInputRepresentation') {
|
|
|
755
740
|
if (obj.roles !== undefined) {
|
|
756
741
|
const obj_roles = obj.roles;
|
|
757
742
|
const path_roles = path + '.roles';
|
|
758
|
-
const referencepath_rolesValidationError = validate$
|
|
743
|
+
const referencepath_rolesValidationError = validate$4(obj_roles, path_roles);
|
|
759
744
|
if (referencepath_rolesValidationError !== null) {
|
|
760
745
|
let message = 'Object doesn\'t match ClaimParticipantRolesInput (at "' + path_roles + '")\n';
|
|
761
746
|
message += referencepath_rolesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -766,7 +751,7 @@ function validate$2(obj, path = 'ClaimParticipantInputRepresentation') {
|
|
|
766
751
|
return v_error === undefined ? null : v_error;
|
|
767
752
|
}
|
|
768
753
|
|
|
769
|
-
function validate$
|
|
754
|
+
function validate$2(obj, path = 'ClaimParticipantsInput') {
|
|
770
755
|
const v_error = (() => {
|
|
771
756
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
772
757
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -779,7 +764,7 @@ function validate$1(obj, path = 'ClaimParticipantsInput') {
|
|
|
779
764
|
for (let i = 0; i < obj_list.length; i++) {
|
|
780
765
|
const obj_list_item = obj_list[i];
|
|
781
766
|
const path_list_item = path_list + '[' + i + ']';
|
|
782
|
-
const referencepath_list_itemValidationError = validate$
|
|
767
|
+
const referencepath_list_itemValidationError = validate$3(obj_list_item, path_list_item);
|
|
783
768
|
if (referencepath_list_itemValidationError !== null) {
|
|
784
769
|
let message = 'Object doesn\'t match ClaimParticipantInputRepresentation (at "' + path_list_item + '")\n';
|
|
785
770
|
message += referencepath_list_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -790,6 +775,25 @@ function validate$1(obj, path = 'ClaimParticipantsInput') {
|
|
|
790
775
|
return v_error === undefined ? null : v_error;
|
|
791
776
|
}
|
|
792
777
|
|
|
778
|
+
function validate$1(obj, path = 'ClaimErrorOutputRepresentation') {
|
|
779
|
+
const v_error = (() => {
|
|
780
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
781
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
782
|
+
}
|
|
783
|
+
const obj_code = obj.code;
|
|
784
|
+
const path_code = path + '.code';
|
|
785
|
+
if (typeof obj_code !== 'string') {
|
|
786
|
+
return new TypeError('Expected "string" but received "' + typeof obj_code + '" (at "' + path_code + '")');
|
|
787
|
+
}
|
|
788
|
+
const obj_message = obj.message;
|
|
789
|
+
const path_message = path + '.message';
|
|
790
|
+
if (typeof obj_message !== 'string') {
|
|
791
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
792
|
+
}
|
|
793
|
+
})();
|
|
794
|
+
return v_error === undefined ? null : v_error;
|
|
795
|
+
}
|
|
796
|
+
|
|
793
797
|
const TTL = 1000;
|
|
794
798
|
const VERSION = "a2761ec24de7405a85015297b44aa3cf";
|
|
795
799
|
function validate(obj, path = 'CreateClaimOutputRepresentation') {
|
|
@@ -834,7 +838,7 @@ function validate(obj, path = 'CreateClaimOutputRepresentation') {
|
|
|
834
838
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
835
839
|
const obj_errors_item = obj_errors[i];
|
|
836
840
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
837
|
-
const referencepath_errors_itemValidationError = validate$
|
|
841
|
+
const referencepath_errors_itemValidationError = validate$1(obj_errors_item, path_errors_item);
|
|
838
842
|
if (referencepath_errors_itemValidationError !== null) {
|
|
839
843
|
let message = 'Object doesn\'t match ClaimErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
840
844
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -963,19 +967,19 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
963
967
|
const untrustedConfig_additionalFields = untrustedConfig.additionalFields;
|
|
964
968
|
config.additionalFields = untrustedConfig_additionalFields;
|
|
965
969
|
const untrustedConfig_attributes = untrustedConfig.attributes;
|
|
966
|
-
const referenceClaimAttributesInputValidationError = validate$
|
|
970
|
+
const referenceClaimAttributesInputValidationError = validate$9(untrustedConfig_attributes);
|
|
967
971
|
if (referenceClaimAttributesInputValidationError === null) {
|
|
968
972
|
config.attributes = untrustedConfig_attributes;
|
|
969
973
|
}
|
|
970
974
|
const untrustedConfig_items = untrustedConfig.items;
|
|
971
|
-
const referenceClaimItemsInputValidationError = validate$
|
|
975
|
+
const referenceClaimItemsInputValidationError = validate$5(untrustedConfig_items);
|
|
972
976
|
if (referenceClaimItemsInputValidationError === null) {
|
|
973
977
|
config.items = untrustedConfig_items;
|
|
974
978
|
}
|
|
975
979
|
const untrustedConfig_options = untrustedConfig.options;
|
|
976
980
|
config.options = untrustedConfig_options;
|
|
977
981
|
const untrustedConfig_participants = untrustedConfig.participants;
|
|
978
|
-
const referenceClaimParticipantsInputValidationError = validate$
|
|
982
|
+
const referenceClaimParticipantsInputValidationError = validate$2(untrustedConfig_participants);
|
|
979
983
|
if (referenceClaimParticipantsInputValidationError === null) {
|
|
980
984
|
config.participants = untrustedConfig_participants;
|
|
981
985
|
}
|
|
@@ -1142,4 +1146,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1142
1146
|
});
|
|
1143
1147
|
|
|
1144
1148
|
export { CreateClaimCoverage, UpdateClaim, UpdateClaimCoverage };
|
|
1145
|
-
// version: 1.380.0-
|
|
1149
|
+
// version: 1.380.0-dev20-504301d774
|
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,16 +346,19 @@ types:
|
|
|
336
346
|
reserveProcessingMode:
|
|
337
347
|
description: Reserve Processing Mode for claim coverage
|
|
338
348
|
type: string
|
|
339
|
-
|
|
349
|
+
ClaimCoverageRepresentation:
|
|
340
350
|
description: Output Representation for claim coverage creation service
|
|
341
351
|
type: object
|
|
342
352
|
properties:
|
|
343
353
|
coverageId:
|
|
344
354
|
description: The ID of the created coverage
|
|
345
355
|
type: string
|
|
356
|
+
required: false
|
|
346
357
|
errors:
|
|
347
358
|
description: A list of errors, including detailed information about each one.
|
|
348
|
-
type:
|
|
359
|
+
type: array
|
|
360
|
+
items:
|
|
361
|
+
type: ErrorDetail
|
|
349
362
|
required: false
|
|
350
363
|
isSuccess:
|
|
351
364
|
description: Indicates whether the claim coverage creation was successful
|
|
@@ -400,7 +413,7 @@ types:
|
|
|
400
413
|
description: Success
|
|
401
414
|
body:
|
|
402
415
|
application/json:
|
|
403
|
-
type:
|
|
416
|
+
type: ClaimCoverageRepresentation
|
|
404
417
|
body:
|
|
405
418
|
application/json:
|
|
406
419
|
type: CreateClaimCoverageInputRepresentation
|
|
@@ -412,14 +425,14 @@ types:
|
|
|
412
425
|
required: true
|
|
413
426
|
/claims/{claimId}/coverages/{coverageId}:
|
|
414
427
|
patch:
|
|
415
|
-
displayName:
|
|
428
|
+
displayName: patchClaimCoverage
|
|
416
429
|
description: HTTP PATCH Method to update claim coverage
|
|
417
430
|
responses:
|
|
418
431
|
'200':
|
|
419
432
|
description: Success
|
|
420
433
|
body:
|
|
421
434
|
application/json:
|
|
422
|
-
type:
|
|
435
|
+
type: ClaimCoverageRepresentation
|
|
423
436
|
body:
|
|
424
437
|
application/json:
|
|
425
438
|
type: UpdateClaimCoverageInputRepresentation
|
package/src/raml/luvio.raml
CHANGED
|
@@ -18,11 +18,11 @@ types:
|
|
|
18
18
|
(luvio.opaque): true
|
|
19
19
|
(luvio.key):
|
|
20
20
|
claimItemId: claimItemId
|
|
21
|
-
|
|
21
|
+
ClaimCoverageRepresentation:
|
|
22
22
|
(luvio.ttl): 1000
|
|
23
23
|
(luvio.opaque): true
|
|
24
24
|
(luvio.key):
|
|
25
|
-
|
|
25
|
+
isSuccess: isSuccess
|
|
26
26
|
|
|
27
27
|
/connect:
|
|
28
28
|
/claims/{claimId}:
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ClaimErrorsOutput as ClaimErrorsOutput_ClaimErrorsOutput } from './ClaimErrorsOutput';
|
|
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
|
-
export declare const TTL = 1000;
|
|
4
|
-
export declare const VERSION = "35f177f27215c8f2ce3f8fb56ff7c2be";
|
|
5
|
-
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
-
export declare const RepresentationType: string;
|
|
7
|
-
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
-
coverageId: string;
|
|
9
|
-
}
|
|
10
|
-
export type ClaimCoverageOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export type PartialClaimCoverageOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
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;
|
|
17
|
-
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
18
|
-
export declare function equals(existing: ClaimCoverageOutputRepresentationNormalized, incoming: ClaimCoverageOutputRepresentationNormalized): boolean;
|
|
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;
|
|
21
|
-
/**
|
|
22
|
-
* Output Representation for claim coverage creation service
|
|
23
|
-
*
|
|
24
|
-
* Keys:
|
|
25
|
-
* coverageId (string): coverageId
|
|
26
|
-
*/
|
|
27
|
-
export interface ClaimCoverageOutputRepresentationNormalized {
|
|
28
|
-
/** The ID of the created coverage */
|
|
29
|
-
coverageId: string;
|
|
30
|
-
/** A list of errors, including detailed information about each one. */
|
|
31
|
-
errors?: ClaimErrorsOutput_ClaimErrorsOutput;
|
|
32
|
-
/** Indicates whether the claim coverage creation was successful */
|
|
33
|
-
isSuccess: boolean;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Output Representation for claim coverage creation service
|
|
37
|
-
*
|
|
38
|
-
* Keys:
|
|
39
|
-
* coverageId (string): coverageId
|
|
40
|
-
*/
|
|
41
|
-
export interface ClaimCoverageOutputRepresentation {
|
|
42
|
-
coverageId: string;
|
|
43
|
-
errors?: ClaimErrorsOutput_ClaimErrorsOutput;
|
|
44
|
-
isSuccess: boolean;
|
|
45
|
-
}
|