@salesforce/lds-adapters-industries-documentmatrix 1.228.0 → 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.
- package/dist/es/es2018/industries-documentmatrix.js +9 -9
- package/dist/es/es2018/types/src/generated/adapters/getDocumentDecision.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/resources/postConnectDocumentMatrixDocumentDecisionByDecisionTableId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/DecisionTableDocumentDecisionRepresentation.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/{DocumentMatrixInputRepresentation.d.ts → DocumentDecisionInputRepresentation.d.ts} +6 -6
- package/dist/es/es2018/types/src/generated/types/{DocumentMatrixOutputRepresentation.d.ts → DocumentDecisionResponseRepresentation.d.ts} +6 -6
- package/dist/es/es2018/types/src/generated/types/{DocumentTypesOutputRepresentation.d.ts → DocumentTypesRepresentation.d.ts} +6 -6
- package/package.json +1 -1
- package/sfdc/index.js +10 -10
- package/src/raml/api.raml +7 -11
- package/src/raml/luvio.raml +2 -2
|
@@ -79,7 +79,7 @@ function createLink(ref) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
function validate$2(obj, path = '
|
|
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
|
|
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 = "
|
|
167
|
-
function validate(obj, path = '
|
|
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 = '
|
|
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
|
|
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
|
|
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 + '::
|
|
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/
|
|
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 {
|
|
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<
|
|
19
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetDocumentDecisionConfig, resourceParams: resources_postConnectDocumentMatrixDocumentDecisionByDecisionTableId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<
|
|
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<
|
|
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<
|
|
27
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<
|
|
28
|
-
export declare const getDocumentDecisionAdapterFactory: $64$luvio_engine_AdapterFactory<GetDocumentDecisionConfig,
|
|
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 {
|
|
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:
|
|
15
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<
|
|
16
|
-
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<
|
|
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;
|
package/dist/es/es2018/types/src/generated/types/DecisionTableDocumentDecisionRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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 = "
|
|
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<
|
|
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<
|
|
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 = "
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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 = "
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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 = "
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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.
|
|
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 = '
|
|
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
|
|
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 = "
|
|
177
|
-
function validate(obj, path = '
|
|
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 = '
|
|
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
|
|
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
|
|
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 + '::
|
|
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/
|
|
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.
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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/
|
|
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:
|
|
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:
|
|
116
|
+
type: DocumentDecisionInputRepresentation
|
|
121
117
|
(oas-body-name): inputs
|
|
122
118
|
uriParameters:
|
|
123
119
|
decisionTableId:
|
package/src/raml/luvio.raml
CHANGED
|
@@ -8,11 +8,11 @@ uses:
|
|
|
8
8
|
(luvio.ttl): 3600000
|
|
9
9
|
|
|
10
10
|
types:
|
|
11
|
-
|
|
11
|
+
DocumentDecisionResponseRepresentation:
|
|
12
12
|
(luvio.ttl): 10000
|
|
13
13
|
(luvio.opaque): true
|
|
14
14
|
|
|
15
|
-
/connect/document-matrix/
|
|
15
|
+
/connect/document-matrix/document-decision/{decisionTableId}:
|
|
16
16
|
post:
|
|
17
17
|
(luvio.method): get
|
|
18
18
|
(luvio.adapter):
|