@salesforce/lds-adapters-industries-documentmatrix 1.228.1 → 1.229.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.
@@ -79,7 +79,7 @@ function createLink(ref) {
79
79
  };
80
80
  }
81
81
 
82
- function validate$2(obj, path = 'DocumentTypesOutputRepresentation') {
82
+ function validate$2(obj, path = 'DocumentTypesRepresentation') {
83
83
  const v_error = (() => {
84
84
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
85
85
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -143,7 +143,7 @@ function validate$1(obj, path = 'DecisionTableDocumentDecisionRepresentation') {
143
143
  const path_documentTypes_item = path_documentTypes + '[' + i + ']';
144
144
  const referencepath_documentTypes_itemValidationError = validate$2(obj_documentTypes_item, path_documentTypes_item);
145
145
  if (referencepath_documentTypes_itemValidationError !== null) {
146
- let message = 'Object doesn\'t match DocumentTypesOutputRepresentation (at "' + path_documentTypes_item + '")\n';
146
+ let message = 'Object doesn\'t match DocumentTypesRepresentation (at "' + path_documentTypes_item + '")\n';
147
147
  message += referencepath_documentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
148
148
  return new TypeError(message);
149
149
  }
@@ -163,8 +163,8 @@ function validate$1(obj, path = 'DecisionTableDocumentDecisionRepresentation') {
163
163
  }
164
164
 
165
165
  const TTL = 10000;
166
- const VERSION = "596adfea8082b1fd4f92b5afaafff846";
167
- function validate(obj, path = 'DocumentMatrixOutputRepresentation') {
166
+ const VERSION = "6bd68bfab828ce0f9e1f82bd1920e04d";
167
+ function validate(obj, path = 'DocumentDecisionResponseRepresentation') {
168
168
  const v_error = (() => {
169
169
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
170
170
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -197,11 +197,11 @@ function validate(obj, path = 'DocumentMatrixOutputRepresentation') {
197
197
  })();
198
198
  return v_error === undefined ? null : v_error;
199
199
  }
200
- const RepresentationType = 'DocumentMatrixOutputRepresentation';
200
+ const RepresentationType = 'DocumentDecisionResponseRepresentation';
201
201
  function normalize(input, existing, path, luvio, store, timestamp) {
202
202
  return input;
203
203
  }
204
- const select$1 = function DocumentMatrixOutputRepresentationSelect() {
204
+ const select$1 = function DocumentDecisionResponseRepresentationSelect() {
205
205
  return {
206
206
  kind: 'Fragment',
207
207
  version: VERSION,
@@ -215,7 +215,7 @@ function equals(existing, incoming) {
215
215
  }
216
216
  return true;
217
217
  }
218
- const ingest = function DocumentMatrixOutputRepresentationIngest(input, path, luvio, store, timestamp) {
218
+ const ingest = function DocumentDecisionResponseRepresentationIngest(input, path, luvio, store, timestamp) {
219
219
  if (process.env.NODE_ENV !== 'production') {
220
220
  const validateError = validate(input);
221
221
  if (validateError !== null) {
@@ -241,7 +241,7 @@ function select(luvio, params) {
241
241
  return select$1();
242
242
  }
243
243
  function keyBuilder$1(luvio, params) {
244
- return keyPrefix + '::DocumentMatrixOutputRepresentation:(' + 'decisionTableId:' + params.urlParams.decisionTableId + ',' + 'inputs:' + params.body.inputs + ')';
244
+ return keyPrefix + '::DocumentDecisionResponseRepresentation:(' + 'decisionTableId:' + params.urlParams.decisionTableId + ',' + 'inputs:' + params.body.inputs + ')';
245
245
  }
246
246
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
247
247
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -279,7 +279,7 @@ function createResourceRequest(config) {
279
279
  const headers = {};
280
280
  return {
281
281
  baseUri: '/services/data/v59.0',
282
- basePath: '/connect/document-matrix/documentDecision/' + config.urlParams.decisionTableId + '',
282
+ basePath: '/connect/document-matrix/document-decision/' + config.urlParams.decisionTableId + '',
283
283
  method: 'post',
284
284
  body: config.body,
285
285
  urlParams: config.urlParams,
@@ -1,7 +1,7 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, 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_postConnectDocumentMatrixDocumentDecisionByDecisionTableId_ResourceRequestConfig } from '../resources/postConnectDocumentMatrixDocumentDecisionByDecisionTableId';
4
- import { DocumentMatrixOutputRepresentation as types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation } from '../types/DocumentMatrixOutputRepresentation';
4
+ import { DocumentDecisionResponseRepresentation as types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation } from '../types/DocumentDecisionResponseRepresentation';
5
5
  export declare const adapterName = "getDocumentDecision";
6
6
  export declare const getDocumentDecision_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const getDocumentDecision_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
@@ -15,14 +15,14 @@ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio,
15
15
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetDocumentDecisionConfig>): adapter$45$utils_Untrusted<GetDocumentDecisionConfig>;
16
16
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetDocumentDecisionConfig | null;
17
17
  export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetDocumentDecisionConfig): $64$luvio_engine_Fragment;
18
- export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDocumentDecisionConfig): $64$luvio_engine_Snapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, any>;
19
- export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDocumentDecisionConfig, resourceParams: resources_postConnectDocumentMatrixDocumentDecisionByDecisionTableId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, any>>;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDocumentDecisionConfig): $64$luvio_engine_Snapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, any>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDocumentDecisionConfig, resourceParams: resources_postConnectDocumentMatrixDocumentDecisionByDecisionTableId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, any>>;
20
20
  export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetDocumentDecisionConfig, resourceParams: resources_postConnectDocumentMatrixDocumentDecisionByDecisionTableId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
- export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDocumentDecisionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, any>>;
21
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetDocumentDecisionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, any>>;
22
22
  export type BuildSnapshotContext = {
23
23
  luvio: $64$luvio_engine_Luvio;
24
24
  config: GetDocumentDecisionConfig;
25
25
  };
26
- export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, any>>;
27
- export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation>): $64$luvio_engine_Snapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, any>;
28
- export declare const getDocumentDecisionAdapterFactory: $64$luvio_engine_AdapterFactory<GetDocumentDecisionConfig, types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation>;
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation>): $64$luvio_engine_Snapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, any>;
28
+ export declare const getDocumentDecisionAdapterFactory: $64$luvio_engine_AdapterFactory<GetDocumentDecisionConfig, types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation>;
@@ -1,5 +1,5 @@
1
1
  import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
- import { DocumentMatrixOutputRepresentation as types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation } from '../types/DocumentMatrixOutputRepresentation';
2
+ import { DocumentDecisionResponseRepresentation as types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation } from '../types/DocumentDecisionResponseRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
5
5
  decisionTableId: string;
@@ -11,8 +11,8 @@ export interface ResourceRequestConfig {
11
11
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
12
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
13
13
  export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
- export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation): void;
15
- export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation, any>;
16
- export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DocumentMatrixOutputRepresentation_DocumentMatrixOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
14
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation): void;
15
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation, any>;
16
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_DocumentDecisionResponseRepresentation_DocumentDecisionResponseRepresentation>): $64$luvio_engine_ErrorSnapshot;
17
17
  export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
18
  export default createResourceRequest;
@@ -1,6 +1,6 @@
1
- import { DocumentTypesOutputRepresentation as DocumentTypesOutputRepresentation_DocumentTypesOutputRepresentation } from './DocumentTypesOutputRepresentation';
1
+ import { DocumentTypesRepresentation as DocumentTypesRepresentation_DocumentTypesRepresentation } from './DocumentTypesRepresentation';
2
2
  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';
3
- export declare const VERSION = "91389c9b8505cd8d35f1ea12dff4530c";
3
+ export declare const VERSION = "392c65f30f88767ad7e2f6336d24ba70";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: DecisionTableDocumentDecisionRepresentation, existing: DecisionTableDocumentDecisionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionTableDocumentDecisionRepresentationNormalized;
@@ -24,7 +24,7 @@ export interface DecisionTableDocumentDecisionRepresentationNormalized {
24
24
  /** The Master Label of DocumentCategory given as an output of Decision Table */
25
25
  documentCategoryLabel: string;
26
26
  /** The document types associated with document category OR given as output of Decision Table */
27
- documentTypes: Array<DocumentTypesOutputRepresentation_DocumentTypesOutputRepresentation>;
27
+ documentTypes: Array<DocumentTypesRepresentation_DocumentTypesRepresentation>;
28
28
  /** Helptext for document Category uploads. */
29
29
  helpText: string;
30
30
  /** Represents if upload for the document category is required or not. */
@@ -41,7 +41,7 @@ export interface DecisionTableDocumentDecisionRepresentation {
41
41
  defaultMaximumFileUploadsAllowed: string;
42
42
  documentCategoryId: string;
43
43
  documentCategoryLabel: string;
44
- documentTypes: Array<DocumentTypesOutputRepresentation_DocumentTypesOutputRepresentation>;
44
+ documentTypes: Array<DocumentTypesRepresentation_DocumentTypesRepresentation>;
45
45
  helpText: string;
46
46
  isRequired: boolean;
47
47
  }
@@ -1,19 +1,19 @@
1
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 = "ddd99bc8ed8ada6195b8fe8e3cb2ecf4";
2
+ export declare const VERSION = "8cb5e7eceb053c1f1a4cd0fd01b94bef";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
- export declare function normalize(input: DocumentMatrixInputRepresentation, existing: DocumentMatrixInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DocumentMatrixInputRepresentationNormalized;
5
+ export declare function normalize(input: DocumentDecisionInputRepresentation, existing: DocumentDecisionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DocumentDecisionInputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: DocumentMatrixInputRepresentationNormalized, incoming: DocumentMatrixInputRepresentationNormalized): boolean;
7
+ export declare function equals(existing: DocumentDecisionInputRepresentationNormalized, incoming: DocumentDecisionInputRepresentationNormalized): boolean;
8
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: DocumentMatrixInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: DocumentDecisionInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Input representation for the connect api
12
12
  *
13
13
  * Keys:
14
14
  * (none)
15
15
  */
16
- export interface DocumentMatrixInputRepresentationNormalized {
16
+ export interface DocumentDecisionInputRepresentationNormalized {
17
17
  /** List of inputs passed to Decision Table. The key should contain field name of Decision table and value should contain value of the field that is the key. An input may contain multiple fields. */
18
18
  inputs: unknown;
19
19
  }
@@ -23,6 +23,6 @@ export interface DocumentMatrixInputRepresentationNormalized {
23
23
  * Keys:
24
24
  * (none)
25
25
  */
26
- export interface DocumentMatrixInputRepresentation {
26
+ export interface DocumentDecisionInputRepresentation {
27
27
  inputs: unknown;
28
28
  }
@@ -1,21 +1,21 @@
1
1
  import { DecisionTableDocumentDecisionRepresentation as DecisionTableDocumentDecisionRepresentation_DecisionTableDocumentDecisionRepresentation } from './DecisionTableDocumentDecisionRepresentation';
2
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const TTL = 10000;
4
- export declare const VERSION = "596adfea8082b1fd4f92b5afaafff846";
4
+ export declare const VERSION = "6bd68bfab828ce0f9e1f82bd1920e04d";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
- export declare function normalize(input: DocumentMatrixOutputRepresentation, existing: DocumentMatrixOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DocumentMatrixOutputRepresentationNormalized;
7
+ export declare function normalize(input: DocumentDecisionResponseRepresentation, existing: DocumentDecisionResponseRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DocumentDecisionResponseRepresentationNormalized;
8
8
  export declare const select: () => $64$luvio_engine_BaseFragment;
9
- export declare function equals(existing: DocumentMatrixOutputRepresentationNormalized, incoming: DocumentMatrixOutputRepresentationNormalized): boolean;
9
+ export declare function equals(existing: DocumentDecisionResponseRepresentationNormalized, incoming: DocumentDecisionResponseRepresentationNormalized): boolean;
10
10
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
- export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: DocumentMatrixOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: DocumentDecisionResponseRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
12
  /**
13
13
  * Output representation of Document Matrix Decision
14
14
  *
15
15
  * Keys:
16
16
  * (none)
17
17
  */
18
- export interface DocumentMatrixOutputRepresentationNormalized {
18
+ export interface DocumentDecisionResponseRepresentationNormalized {
19
19
  /** The flat data of Decision Table Output. */
20
20
  decisionTableDocumentDecisions: Array<DecisionTableDocumentDecisionRepresentation_DecisionTableDocumentDecisionRepresentation>;
21
21
  /** The message explaining why the request failed. */
@@ -29,7 +29,7 @@ export interface DocumentMatrixOutputRepresentationNormalized {
29
29
  * Keys:
30
30
  * (none)
31
31
  */
32
- export interface DocumentMatrixOutputRepresentation {
32
+ export interface DocumentDecisionResponseRepresentation {
33
33
  decisionTableDocumentDecisions: Array<DecisionTableDocumentDecisionRepresentation_DecisionTableDocumentDecisionRepresentation>;
34
34
  message: string;
35
35
  status: string;
@@ -1,19 +1,19 @@
1
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 = "03eca7f454ecd89fcae234cebcf9469d";
2
+ export declare const VERSION = "add8a5d32573407b3829466076c1cb90";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
- export declare function normalize(input: DocumentTypesOutputRepresentation, existing: DocumentTypesOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DocumentTypesOutputRepresentationNormalized;
5
+ export declare function normalize(input: DocumentTypesRepresentation, existing: DocumentTypesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DocumentTypesRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
- export declare function equals(existing: DocumentTypesOutputRepresentationNormalized, incoming: DocumentTypesOutputRepresentationNormalized): boolean;
7
+ export declare function equals(existing: DocumentTypesRepresentationNormalized, incoming: DocumentTypesRepresentationNormalized): boolean;
8
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: DocumentTypesOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: DocumentTypesRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
10
  /**
11
11
  * Output representation of Document Type
12
12
  *
13
13
  * Keys:
14
14
  * (none)
15
15
  */
16
- export interface DocumentTypesOutputRepresentationNormalized {
16
+ export interface DocumentTypesRepresentationNormalized {
17
17
  /** The Id of Document Type that is associated with document category */
18
18
  documentTypeId: string;
19
19
  /** The label of Document Type that is associated with document category */
@@ -29,7 +29,7 @@ export interface DocumentTypesOutputRepresentationNormalized {
29
29
  * Keys:
30
30
  * (none)
31
31
  */
32
- export interface DocumentTypesOutputRepresentation {
32
+ export interface DocumentTypesRepresentation {
33
33
  documentTypeId: string;
34
34
  documentTypeLabel: string;
35
35
  maximumFileSizeAllowed: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-documentmatrix",
3
- "version": "1.228.1",
3
+ "version": "1.229.0",
4
4
  "description": "Document Matrix component is a custom OS element by Discovery Framework. It is an out-of-box solution that removes the need for Admins to create multiple Assessments with the same set of questions but with a different set of files to upload at the end.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/industries-documentmatrix.js",
package/sfdc/index.js CHANGED
@@ -89,7 +89,7 @@ function createLink(ref) {
89
89
  };
90
90
  }
91
91
 
92
- function validate$2(obj, path = 'DocumentTypesOutputRepresentation') {
92
+ function validate$2(obj, path = 'DocumentTypesRepresentation') {
93
93
  const v_error = (() => {
94
94
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
95
95
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -153,7 +153,7 @@ function validate$1(obj, path = 'DecisionTableDocumentDecisionRepresentation') {
153
153
  const path_documentTypes_item = path_documentTypes + '[' + i + ']';
154
154
  const referencepath_documentTypes_itemValidationError = validate$2(obj_documentTypes_item, path_documentTypes_item);
155
155
  if (referencepath_documentTypes_itemValidationError !== null) {
156
- let message = 'Object doesn\'t match DocumentTypesOutputRepresentation (at "' + path_documentTypes_item + '")\n';
156
+ let message = 'Object doesn\'t match DocumentTypesRepresentation (at "' + path_documentTypes_item + '")\n';
157
157
  message += referencepath_documentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
158
158
  return new TypeError(message);
159
159
  }
@@ -173,8 +173,8 @@ function validate$1(obj, path = 'DecisionTableDocumentDecisionRepresentation') {
173
173
  }
174
174
 
175
175
  const TTL = 10000;
176
- const VERSION = "596adfea8082b1fd4f92b5afaafff846";
177
- function validate(obj, path = 'DocumentMatrixOutputRepresentation') {
176
+ const VERSION = "6bd68bfab828ce0f9e1f82bd1920e04d";
177
+ function validate(obj, path = 'DocumentDecisionResponseRepresentation') {
178
178
  const v_error = (() => {
179
179
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
180
180
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -207,11 +207,11 @@ function validate(obj, path = 'DocumentMatrixOutputRepresentation') {
207
207
  })();
208
208
  return v_error === undefined ? null : v_error;
209
209
  }
210
- const RepresentationType = 'DocumentMatrixOutputRepresentation';
210
+ const RepresentationType = 'DocumentDecisionResponseRepresentation';
211
211
  function normalize(input, existing, path, luvio, store, timestamp) {
212
212
  return input;
213
213
  }
214
- const select$1 = function DocumentMatrixOutputRepresentationSelect() {
214
+ const select$1 = function DocumentDecisionResponseRepresentationSelect() {
215
215
  return {
216
216
  kind: 'Fragment',
217
217
  version: VERSION,
@@ -225,7 +225,7 @@ function equals(existing, incoming) {
225
225
  }
226
226
  return true;
227
227
  }
228
- const ingest = function DocumentMatrixOutputRepresentationIngest(input, path, luvio, store, timestamp) {
228
+ const ingest = function DocumentDecisionResponseRepresentationIngest(input, path, luvio, store, timestamp) {
229
229
  if (process.env.NODE_ENV !== 'production') {
230
230
  const validateError = validate(input);
231
231
  if (validateError !== null) {
@@ -251,7 +251,7 @@ function select(luvio, params) {
251
251
  return select$1();
252
252
  }
253
253
  function keyBuilder$1(luvio, params) {
254
- return keyPrefix + '::DocumentMatrixOutputRepresentation:(' + 'decisionTableId:' + params.urlParams.decisionTableId + ',' + 'inputs:' + params.body.inputs + ')';
254
+ return keyPrefix + '::DocumentDecisionResponseRepresentation:(' + 'decisionTableId:' + params.urlParams.decisionTableId + ',' + 'inputs:' + params.body.inputs + ')';
255
255
  }
256
256
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
257
257
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -289,7 +289,7 @@ function createResourceRequest(config) {
289
289
  const headers = {};
290
290
  return {
291
291
  baseUri: '/services/data/v59.0',
292
- basePath: '/connect/document-matrix/documentDecision/' + config.urlParams.decisionTableId + '',
292
+ basePath: '/connect/document-matrix/document-decision/' + config.urlParams.decisionTableId + '',
293
293
  method: 'post',
294
294
  body: config.body,
295
295
  urlParams: config.urlParams,
@@ -410,4 +410,4 @@ withDefaultLuvio((luvio) => {
410
410
  });
411
411
 
412
412
  export { getDocumentDecision, getDocumentDecision_imperative };
413
- // version: 1.228.1-0cb6f94f1
413
+ // version: 1.229.0-41a436d3f
package/src/raml/api.raml CHANGED
@@ -49,7 +49,7 @@ types:
49
49
  as output of Decision Table
50
50
  type: array
51
51
  items:
52
- type: DocumentTypesOutputRepresentation
52
+ type: DocumentTypesRepresentation
53
53
  helpText:
54
54
  description: Helptext for document Category uploads.
55
55
  type: string
@@ -57,7 +57,7 @@ types:
57
57
  description: Represents if upload for the document category is required or
58
58
  not.
59
59
  type: boolean
60
- DocumentMatrixInputRepresentation:
60
+ DocumentDecisionInputRepresentation:
61
61
  description: Input representation for the connect api
62
62
  type: object
63
63
  properties:
@@ -65,12 +65,8 @@ types:
65
65
  description: List of inputs passed to Decision Table. The key should contain
66
66
  field name of Decision table and value should contain value of the field
67
67
  that is the key. An input may contain multiple fields.
68
- # type: object
69
68
  type: any
70
- # properties:
71
- # //:
72
- # type: object
73
- DocumentMatrixOutputRepresentation:
69
+ DocumentDecisionResponseRepresentation:
74
70
  description: Output representation of Document Matrix Decision
75
71
  type: object
76
72
  properties:
@@ -85,7 +81,7 @@ types:
85
81
  status:
86
82
  description: Indicates whether the request succeeded (true) or failed (false).
87
83
  type: string
88
- DocumentTypesOutputRepresentation:
84
+ DocumentTypesRepresentation:
89
85
  description: Output representation of Document Type
90
86
  type: object
91
87
  properties:
@@ -102,7 +98,7 @@ types:
102
98
  maximumFileUploadsAllowed:
103
99
  description: 'Maximum file uploads that can be uploaded for a document type '
104
100
  type: string
105
- /connect/document-matrix/documentDecision/{decisionTableId}:
101
+ /connect/document-matrix/document-decision/{decisionTableId}:
106
102
  post:
107
103
  displayName: postDocumentMatrix
108
104
  description: Get Document Decision data
@@ -111,13 +107,13 @@ types:
111
107
  description: Success
112
108
  body:
113
109
  application/json:
114
- type: DocumentMatrixOutputRepresentation
110
+ type: DocumentDecisionResponseRepresentation
115
111
  body:
116
112
  application/json:
117
113
  description: List of inputs passed to Decision Table. The key should contain
118
114
  field name of Decision table and value should contain value of the field
119
115
  that is the key. An input may contain multiple fields.
120
- type: DocumentMatrixInputRepresentation
116
+ type: DocumentDecisionInputRepresentation
121
117
  (oas-body-name): inputs
122
118
  uriParameters:
123
119
  decisionTableId:
@@ -8,11 +8,11 @@ uses:
8
8
  (luvio.ttl): 3600000
9
9
 
10
10
  types:
11
- DocumentMatrixOutputRepresentation:
11
+ DocumentDecisionResponseRepresentation:
12
12
  (luvio.ttl): 10000
13
13
  (luvio.opaque): true
14
14
 
15
- /connect/document-matrix/documentDecision/{decisionTableId}:
15
+ /connect/document-matrix/document-decision/{decisionTableId}:
16
16
  post:
17
17
  (luvio.method): get
18
18
  (luvio.adapter):