@salesforce/lds-adapters-industries-documentmatrix 1.227.2 → 1.228.1
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 +98 -5
- package/dist/es/es2018/types/src/generated/types/DecisionTableDocumentDecisionRepresentation.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/DocumentMatrixOutputRepresentation.d.ts +4 -3
- package/package.json +1 -1
- package/sfdc/index.js +99 -6
- package/src/raml/api.raml +8 -5
|
@@ -79,17 +79,110 @@ function createLink(ref) {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
function validate$2(obj, path = 'DocumentTypesOutputRepresentation') {
|
|
83
|
+
const v_error = (() => {
|
|
84
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
85
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
86
|
+
}
|
|
87
|
+
const obj_documentTypeId = obj.documentTypeId;
|
|
88
|
+
const path_documentTypeId = path + '.documentTypeId';
|
|
89
|
+
if (typeof obj_documentTypeId !== 'string') {
|
|
90
|
+
return new TypeError('Expected "string" but received "' + typeof obj_documentTypeId + '" (at "' + path_documentTypeId + '")');
|
|
91
|
+
}
|
|
92
|
+
const obj_documentTypeLabel = obj.documentTypeLabel;
|
|
93
|
+
const path_documentTypeLabel = path + '.documentTypeLabel';
|
|
94
|
+
if (typeof obj_documentTypeLabel !== 'string') {
|
|
95
|
+
return new TypeError('Expected "string" but received "' + typeof obj_documentTypeLabel + '" (at "' + path_documentTypeLabel + '")');
|
|
96
|
+
}
|
|
97
|
+
const obj_maximumFileSizeAllowed = obj.maximumFileSizeAllowed;
|
|
98
|
+
const path_maximumFileSizeAllowed = path + '.maximumFileSizeAllowed';
|
|
99
|
+
if (typeof obj_maximumFileSizeAllowed !== 'string') {
|
|
100
|
+
return new TypeError('Expected "string" but received "' + typeof obj_maximumFileSizeAllowed + '" (at "' + path_maximumFileSizeAllowed + '")');
|
|
101
|
+
}
|
|
102
|
+
const obj_maximumFileUploadsAllowed = obj.maximumFileUploadsAllowed;
|
|
103
|
+
const path_maximumFileUploadsAllowed = path + '.maximumFileUploadsAllowed';
|
|
104
|
+
if (typeof obj_maximumFileUploadsAllowed !== 'string') {
|
|
105
|
+
return new TypeError('Expected "string" but received "' + typeof obj_maximumFileUploadsAllowed + '" (at "' + path_maximumFileUploadsAllowed + '")');
|
|
106
|
+
}
|
|
107
|
+
})();
|
|
108
|
+
return v_error === undefined ? null : v_error;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function validate$1(obj, path = 'DecisionTableDocumentDecisionRepresentation') {
|
|
112
|
+
const v_error = (() => {
|
|
113
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
114
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
115
|
+
}
|
|
116
|
+
const obj_defaultMaximumFileSizeAllowed = obj.defaultMaximumFileSizeAllowed;
|
|
117
|
+
const path_defaultMaximumFileSizeAllowed = path + '.defaultMaximumFileSizeAllowed';
|
|
118
|
+
if (typeof obj_defaultMaximumFileSizeAllowed !== 'string') {
|
|
119
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultMaximumFileSizeAllowed + '" (at "' + path_defaultMaximumFileSizeAllowed + '")');
|
|
120
|
+
}
|
|
121
|
+
const obj_defaultMaximumFileUploadsAllowed = obj.defaultMaximumFileUploadsAllowed;
|
|
122
|
+
const path_defaultMaximumFileUploadsAllowed = path + '.defaultMaximumFileUploadsAllowed';
|
|
123
|
+
if (typeof obj_defaultMaximumFileUploadsAllowed !== 'string') {
|
|
124
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultMaximumFileUploadsAllowed + '" (at "' + path_defaultMaximumFileUploadsAllowed + '")');
|
|
125
|
+
}
|
|
126
|
+
const obj_documentCategoryId = obj.documentCategoryId;
|
|
127
|
+
const path_documentCategoryId = path + '.documentCategoryId';
|
|
128
|
+
if (typeof obj_documentCategoryId !== 'string') {
|
|
129
|
+
return new TypeError('Expected "string" but received "' + typeof obj_documentCategoryId + '" (at "' + path_documentCategoryId + '")');
|
|
130
|
+
}
|
|
131
|
+
const obj_documentCategoryLabel = obj.documentCategoryLabel;
|
|
132
|
+
const path_documentCategoryLabel = path + '.documentCategoryLabel';
|
|
133
|
+
if (typeof obj_documentCategoryLabel !== 'string') {
|
|
134
|
+
return new TypeError('Expected "string" but received "' + typeof obj_documentCategoryLabel + '" (at "' + path_documentCategoryLabel + '")');
|
|
135
|
+
}
|
|
136
|
+
const obj_documentTypes = obj.documentTypes;
|
|
137
|
+
const path_documentTypes = path + '.documentTypes';
|
|
138
|
+
if (!ArrayIsArray(obj_documentTypes)) {
|
|
139
|
+
return new TypeError('Expected "array" but received "' + typeof obj_documentTypes + '" (at "' + path_documentTypes + '")');
|
|
140
|
+
}
|
|
141
|
+
for (let i = 0; i < obj_documentTypes.length; i++) {
|
|
142
|
+
const obj_documentTypes_item = obj_documentTypes[i];
|
|
143
|
+
const path_documentTypes_item = path_documentTypes + '[' + i + ']';
|
|
144
|
+
const referencepath_documentTypes_itemValidationError = validate$2(obj_documentTypes_item, path_documentTypes_item);
|
|
145
|
+
if (referencepath_documentTypes_itemValidationError !== null) {
|
|
146
|
+
let message = 'Object doesn\'t match DocumentTypesOutputRepresentation (at "' + path_documentTypes_item + '")\n';
|
|
147
|
+
message += referencepath_documentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
148
|
+
return new TypeError(message);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
const obj_helpText = obj.helpText;
|
|
152
|
+
const path_helpText = path + '.helpText';
|
|
153
|
+
if (typeof obj_helpText !== 'string') {
|
|
154
|
+
return new TypeError('Expected "string" but received "' + typeof obj_helpText + '" (at "' + path_helpText + '")');
|
|
155
|
+
}
|
|
156
|
+
const obj_isRequired = obj.isRequired;
|
|
157
|
+
const path_isRequired = path + '.isRequired';
|
|
158
|
+
if (typeof obj_isRequired !== 'boolean') {
|
|
159
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRequired + '" (at "' + path_isRequired + '")');
|
|
160
|
+
}
|
|
161
|
+
})();
|
|
162
|
+
return v_error === undefined ? null : v_error;
|
|
163
|
+
}
|
|
164
|
+
|
|
82
165
|
const TTL = 10000;
|
|
83
|
-
const VERSION = "
|
|
166
|
+
const VERSION = "596adfea8082b1fd4f92b5afaafff846";
|
|
84
167
|
function validate(obj, path = 'DocumentMatrixOutputRepresentation') {
|
|
85
168
|
const v_error = (() => {
|
|
86
169
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
87
170
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
88
171
|
}
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
92
|
-
return new TypeError('Expected "
|
|
172
|
+
const obj_decisionTableDocumentDecisions = obj.decisionTableDocumentDecisions;
|
|
173
|
+
const path_decisionTableDocumentDecisions = path + '.decisionTableDocumentDecisions';
|
|
174
|
+
if (!ArrayIsArray(obj_decisionTableDocumentDecisions)) {
|
|
175
|
+
return new TypeError('Expected "array" but received "' + typeof obj_decisionTableDocumentDecisions + '" (at "' + path_decisionTableDocumentDecisions + '")');
|
|
176
|
+
}
|
|
177
|
+
for (let i = 0; i < obj_decisionTableDocumentDecisions.length; i++) {
|
|
178
|
+
const obj_decisionTableDocumentDecisions_item = obj_decisionTableDocumentDecisions[i];
|
|
179
|
+
const path_decisionTableDocumentDecisions_item = path_decisionTableDocumentDecisions + '[' + i + ']';
|
|
180
|
+
const referencepath_decisionTableDocumentDecisions_itemValidationError = validate$1(obj_decisionTableDocumentDecisions_item, path_decisionTableDocumentDecisions_item);
|
|
181
|
+
if (referencepath_decisionTableDocumentDecisions_itemValidationError !== null) {
|
|
182
|
+
let message = 'Object doesn\'t match DecisionTableDocumentDecisionRepresentation (at "' + path_decisionTableDocumentDecisions_item + '")\n';
|
|
183
|
+
message += referencepath_decisionTableDocumentDecisions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
184
|
+
return new TypeError(message);
|
|
185
|
+
}
|
|
93
186
|
}
|
|
94
187
|
const obj_message = obj.message;
|
|
95
188
|
const path_message = path + '.message';
|
package/dist/es/es2018/types/src/generated/types/DecisionTableDocumentDecisionRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DocumentTypesOutputRepresentation as DocumentTypesOutputRepresentation_DocumentTypesOutputRepresentation } from './DocumentTypesOutputRepresentation';
|
|
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 = "91389c9b8505cd8d35f1ea12dff4530c";
|
|
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;
|
|
@@ -23,7 +23,8 @@ export interface DecisionTableDocumentDecisionRepresentationNormalized {
|
|
|
23
23
|
documentCategoryId: string;
|
|
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
28
|
/** Helptext for document Category uploads. */
|
|
28
29
|
helpText: string;
|
|
29
30
|
/** Represents if upload for the document category is required or not. */
|
|
@@ -40,7 +41,7 @@ export interface DecisionTableDocumentDecisionRepresentation {
|
|
|
40
41
|
defaultMaximumFileUploadsAllowed: string;
|
|
41
42
|
documentCategoryId: string;
|
|
42
43
|
documentCategoryLabel: string;
|
|
43
|
-
|
|
44
|
+
documentTypes: Array<DocumentTypesOutputRepresentation_DocumentTypesOutputRepresentation>;
|
|
44
45
|
helpText: string;
|
|
45
46
|
isRequired: boolean;
|
|
46
47
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { DecisionTableDocumentDecisionRepresentation as DecisionTableDocumentDecisionRepresentation_DecisionTableDocumentDecisionRepresentation } from './DecisionTableDocumentDecisionRepresentation';
|
|
1
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';
|
|
2
3
|
export declare const TTL = 10000;
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "596adfea8082b1fd4f92b5afaafff846";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
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;
|
|
@@ -16,7 +17,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
17
|
*/
|
|
17
18
|
export interface DocumentMatrixOutputRepresentationNormalized {
|
|
18
19
|
/** The flat data of Decision Table Output. */
|
|
19
|
-
|
|
20
|
+
decisionTableDocumentDecisions: Array<DecisionTableDocumentDecisionRepresentation_DecisionTableDocumentDecisionRepresentation>;
|
|
20
21
|
/** The message explaining why the request failed. */
|
|
21
22
|
message: string;
|
|
22
23
|
/** Indicates whether the request succeeded (true) or failed (false). */
|
|
@@ -29,7 +30,7 @@ export interface DocumentMatrixOutputRepresentationNormalized {
|
|
|
29
30
|
* (none)
|
|
30
31
|
*/
|
|
31
32
|
export interface DocumentMatrixOutputRepresentation {
|
|
32
|
-
|
|
33
|
+
decisionTableDocumentDecisions: Array<DecisionTableDocumentDecisionRepresentation_DecisionTableDocumentDecisionRepresentation>;
|
|
33
34
|
message: string;
|
|
34
35
|
status: string;
|
|
35
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-documentmatrix",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.228.1",
|
|
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,17 +89,110 @@ function createLink(ref) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
function validate$2(obj, path = 'DocumentTypesOutputRepresentation') {
|
|
93
|
+
const v_error = (() => {
|
|
94
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
95
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
96
|
+
}
|
|
97
|
+
const obj_documentTypeId = obj.documentTypeId;
|
|
98
|
+
const path_documentTypeId = path + '.documentTypeId';
|
|
99
|
+
if (typeof obj_documentTypeId !== 'string') {
|
|
100
|
+
return new TypeError('Expected "string" but received "' + typeof obj_documentTypeId + '" (at "' + path_documentTypeId + '")');
|
|
101
|
+
}
|
|
102
|
+
const obj_documentTypeLabel = obj.documentTypeLabel;
|
|
103
|
+
const path_documentTypeLabel = path + '.documentTypeLabel';
|
|
104
|
+
if (typeof obj_documentTypeLabel !== 'string') {
|
|
105
|
+
return new TypeError('Expected "string" but received "' + typeof obj_documentTypeLabel + '" (at "' + path_documentTypeLabel + '")');
|
|
106
|
+
}
|
|
107
|
+
const obj_maximumFileSizeAllowed = obj.maximumFileSizeAllowed;
|
|
108
|
+
const path_maximumFileSizeAllowed = path + '.maximumFileSizeAllowed';
|
|
109
|
+
if (typeof obj_maximumFileSizeAllowed !== 'string') {
|
|
110
|
+
return new TypeError('Expected "string" but received "' + typeof obj_maximumFileSizeAllowed + '" (at "' + path_maximumFileSizeAllowed + '")');
|
|
111
|
+
}
|
|
112
|
+
const obj_maximumFileUploadsAllowed = obj.maximumFileUploadsAllowed;
|
|
113
|
+
const path_maximumFileUploadsAllowed = path + '.maximumFileUploadsAllowed';
|
|
114
|
+
if (typeof obj_maximumFileUploadsAllowed !== 'string') {
|
|
115
|
+
return new TypeError('Expected "string" but received "' + typeof obj_maximumFileUploadsAllowed + '" (at "' + path_maximumFileUploadsAllowed + '")');
|
|
116
|
+
}
|
|
117
|
+
})();
|
|
118
|
+
return v_error === undefined ? null : v_error;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function validate$1(obj, path = 'DecisionTableDocumentDecisionRepresentation') {
|
|
122
|
+
const v_error = (() => {
|
|
123
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
124
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
125
|
+
}
|
|
126
|
+
const obj_defaultMaximumFileSizeAllowed = obj.defaultMaximumFileSizeAllowed;
|
|
127
|
+
const path_defaultMaximumFileSizeAllowed = path + '.defaultMaximumFileSizeAllowed';
|
|
128
|
+
if (typeof obj_defaultMaximumFileSizeAllowed !== 'string') {
|
|
129
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultMaximumFileSizeAllowed + '" (at "' + path_defaultMaximumFileSizeAllowed + '")');
|
|
130
|
+
}
|
|
131
|
+
const obj_defaultMaximumFileUploadsAllowed = obj.defaultMaximumFileUploadsAllowed;
|
|
132
|
+
const path_defaultMaximumFileUploadsAllowed = path + '.defaultMaximumFileUploadsAllowed';
|
|
133
|
+
if (typeof obj_defaultMaximumFileUploadsAllowed !== 'string') {
|
|
134
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultMaximumFileUploadsAllowed + '" (at "' + path_defaultMaximumFileUploadsAllowed + '")');
|
|
135
|
+
}
|
|
136
|
+
const obj_documentCategoryId = obj.documentCategoryId;
|
|
137
|
+
const path_documentCategoryId = path + '.documentCategoryId';
|
|
138
|
+
if (typeof obj_documentCategoryId !== 'string') {
|
|
139
|
+
return new TypeError('Expected "string" but received "' + typeof obj_documentCategoryId + '" (at "' + path_documentCategoryId + '")');
|
|
140
|
+
}
|
|
141
|
+
const obj_documentCategoryLabel = obj.documentCategoryLabel;
|
|
142
|
+
const path_documentCategoryLabel = path + '.documentCategoryLabel';
|
|
143
|
+
if (typeof obj_documentCategoryLabel !== 'string') {
|
|
144
|
+
return new TypeError('Expected "string" but received "' + typeof obj_documentCategoryLabel + '" (at "' + path_documentCategoryLabel + '")');
|
|
145
|
+
}
|
|
146
|
+
const obj_documentTypes = obj.documentTypes;
|
|
147
|
+
const path_documentTypes = path + '.documentTypes';
|
|
148
|
+
if (!ArrayIsArray(obj_documentTypes)) {
|
|
149
|
+
return new TypeError('Expected "array" but received "' + typeof obj_documentTypes + '" (at "' + path_documentTypes + '")');
|
|
150
|
+
}
|
|
151
|
+
for (let i = 0; i < obj_documentTypes.length; i++) {
|
|
152
|
+
const obj_documentTypes_item = obj_documentTypes[i];
|
|
153
|
+
const path_documentTypes_item = path_documentTypes + '[' + i + ']';
|
|
154
|
+
const referencepath_documentTypes_itemValidationError = validate$2(obj_documentTypes_item, path_documentTypes_item);
|
|
155
|
+
if (referencepath_documentTypes_itemValidationError !== null) {
|
|
156
|
+
let message = 'Object doesn\'t match DocumentTypesOutputRepresentation (at "' + path_documentTypes_item + '")\n';
|
|
157
|
+
message += referencepath_documentTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
158
|
+
return new TypeError(message);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
const obj_helpText = obj.helpText;
|
|
162
|
+
const path_helpText = path + '.helpText';
|
|
163
|
+
if (typeof obj_helpText !== 'string') {
|
|
164
|
+
return new TypeError('Expected "string" but received "' + typeof obj_helpText + '" (at "' + path_helpText + '")');
|
|
165
|
+
}
|
|
166
|
+
const obj_isRequired = obj.isRequired;
|
|
167
|
+
const path_isRequired = path + '.isRequired';
|
|
168
|
+
if (typeof obj_isRequired !== 'boolean') {
|
|
169
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRequired + '" (at "' + path_isRequired + '")');
|
|
170
|
+
}
|
|
171
|
+
})();
|
|
172
|
+
return v_error === undefined ? null : v_error;
|
|
173
|
+
}
|
|
174
|
+
|
|
92
175
|
const TTL = 10000;
|
|
93
|
-
const VERSION = "
|
|
176
|
+
const VERSION = "596adfea8082b1fd4f92b5afaafff846";
|
|
94
177
|
function validate(obj, path = 'DocumentMatrixOutputRepresentation') {
|
|
95
178
|
const v_error = (() => {
|
|
96
179
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
97
180
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
98
181
|
}
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
102
|
-
return new TypeError('Expected "
|
|
182
|
+
const obj_decisionTableDocumentDecisions = obj.decisionTableDocumentDecisions;
|
|
183
|
+
const path_decisionTableDocumentDecisions = path + '.decisionTableDocumentDecisions';
|
|
184
|
+
if (!ArrayIsArray(obj_decisionTableDocumentDecisions)) {
|
|
185
|
+
return new TypeError('Expected "array" but received "' + typeof obj_decisionTableDocumentDecisions + '" (at "' + path_decisionTableDocumentDecisions + '")');
|
|
186
|
+
}
|
|
187
|
+
for (let i = 0; i < obj_decisionTableDocumentDecisions.length; i++) {
|
|
188
|
+
const obj_decisionTableDocumentDecisions_item = obj_decisionTableDocumentDecisions[i];
|
|
189
|
+
const path_decisionTableDocumentDecisions_item = path_decisionTableDocumentDecisions + '[' + i + ']';
|
|
190
|
+
const referencepath_decisionTableDocumentDecisions_itemValidationError = validate$1(obj_decisionTableDocumentDecisions_item, path_decisionTableDocumentDecisions_item);
|
|
191
|
+
if (referencepath_decisionTableDocumentDecisions_itemValidationError !== null) {
|
|
192
|
+
let message = 'Object doesn\'t match DecisionTableDocumentDecisionRepresentation (at "' + path_decisionTableDocumentDecisions_item + '")\n';
|
|
193
|
+
message += referencepath_decisionTableDocumentDecisions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
194
|
+
return new TypeError(message);
|
|
195
|
+
}
|
|
103
196
|
}
|
|
104
197
|
const obj_message = obj.message;
|
|
105
198
|
const path_message = path + '.message';
|
|
@@ -317,4 +410,4 @@ withDefaultLuvio((luvio) => {
|
|
|
317
410
|
});
|
|
318
411
|
|
|
319
412
|
export { getDocumentDecision, getDocumentDecision_imperative };
|
|
320
|
-
// version: 1.
|
|
413
|
+
// version: 1.228.1-0cb6f94f1
|
package/src/raml/api.raml
CHANGED
|
@@ -44,10 +44,12 @@ types:
|
|
|
44
44
|
description: The Master Label of DocumentCategory given as an output of Decision
|
|
45
45
|
Table
|
|
46
46
|
type: string
|
|
47
|
-
|
|
47
|
+
documentTypes:
|
|
48
48
|
description: The document types associated with document category OR given
|
|
49
49
|
as output of Decision Table
|
|
50
|
-
type:
|
|
50
|
+
type: array
|
|
51
|
+
items:
|
|
52
|
+
type: DocumentTypesOutputRepresentation
|
|
51
53
|
helpText:
|
|
52
54
|
description: Helptext for document Category uploads.
|
|
53
55
|
type: string
|
|
@@ -72,10 +74,11 @@ types:
|
|
|
72
74
|
description: Output representation of Document Matrix Decision
|
|
73
75
|
type: object
|
|
74
76
|
properties:
|
|
75
|
-
|
|
77
|
+
decisionTableDocumentDecisions:
|
|
76
78
|
description: The flat data of Decision Table Output.
|
|
77
|
-
type:
|
|
78
|
-
|
|
79
|
+
type: array
|
|
80
|
+
items:
|
|
81
|
+
type: DecisionTableDocumentDecisionRepresentation
|
|
79
82
|
message:
|
|
80
83
|
description: The message explaining why the request failed.
|
|
81
84
|
type: string
|