@salesforce/lds-adapters-service-ecm 1.323.0 → 1.325.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/service-ecm.js +101 -209
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemCreateInputRepresentation.d.ts +1 -37
- package/dist/es/es2018/types/src/generated/types/CatalogItemInputRepresentation.d.ts +61 -0
- package/dist/es/es2018/types/src/generated/types/CatalogItemOutputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/CatalogItemUpdateInputRepresentation.d.ts +1 -37
- package/dist/es/es2018/types/src/generated/types/FulfillmentFlowOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FulfillmentFowInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/PreprocessorInputRepresentation.d.ts +31 -0
- package/package.json +3 -3
- package/sfdc/index.js +102 -210
- package/src/raml/api.raml +63 -60
|
@@ -1,5 +1,5 @@
|
|
|
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 = "472473eb633522f4226b17ddb4e40c29";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: CatalogItemUpdateInputRepresentation, existing: CatalogItemUpdateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CatalogItemUpdateInputRepresentationNormalized;
|
|
@@ -14,32 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface CatalogItemUpdateInputRepresentationNormalized {
|
|
17
|
-
/** Knowledge Articles */
|
|
18
|
-
associatedArticles: Array<{}>;
|
|
19
|
-
/** Attribute List */
|
|
20
|
-
attributes: Array<{}>;
|
|
21
|
-
/** Context Definition Id */
|
|
22
|
-
contextDefinitionId: string;
|
|
23
|
-
/** Description */
|
|
24
|
-
description: string;
|
|
25
|
-
/** Eligibility Rules */
|
|
26
|
-
eligibilityRules: Array<{}>;
|
|
27
|
-
/** Fulfillment Flow Id */
|
|
28
|
-
fulfillmentFlowId: string;
|
|
29
17
|
/** The ID of the catalog Item */
|
|
30
18
|
id: string;
|
|
31
|
-
/** Intake Form */
|
|
32
|
-
intakeForm: {};
|
|
33
|
-
/** Integrations */
|
|
34
|
-
integrations: Array<{}>;
|
|
35
|
-
/** is Active */
|
|
36
|
-
isActive: boolean;
|
|
37
|
-
/** Name */
|
|
38
|
-
name: string;
|
|
39
|
-
/** Pre-Processor Id */
|
|
40
|
-
preProcessorId: string;
|
|
41
|
-
/** Type */
|
|
42
|
-
type: string;
|
|
43
19
|
}
|
|
44
20
|
/**
|
|
45
21
|
* The configuration of updates to the CatalogItem
|
|
@@ -48,17 +24,5 @@ export interface CatalogItemUpdateInputRepresentationNormalized {
|
|
|
48
24
|
* (none)
|
|
49
25
|
*/
|
|
50
26
|
export interface CatalogItemUpdateInputRepresentation {
|
|
51
|
-
associatedArticles: Array<{}>;
|
|
52
|
-
attributes: Array<{}>;
|
|
53
|
-
contextDefinitionId: string;
|
|
54
|
-
description: string;
|
|
55
|
-
eligibilityRules: Array<{}>;
|
|
56
|
-
fulfillmentFlowId: string;
|
|
57
27
|
id: string;
|
|
58
|
-
intakeForm: {};
|
|
59
|
-
integrations: Array<{}>;
|
|
60
|
-
isActive: boolean;
|
|
61
|
-
name: string;
|
|
62
|
-
preProcessorId: string;
|
|
63
|
-
type: string;
|
|
64
28
|
}
|
|
@@ -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 = "a629c7f39e6f7bfcb57e38849c46ba98";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: FulfillmentFlowOutputRepresentation, existing: FulfillmentFlowOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FulfillmentFlowOutputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: FulfillmentFlowOutputRepresentationNormalized, incoming: FulfillmentFlowOutputRepresentationNormalized): 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: FulfillmentFlowOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Output Representation for Fulfillment Flow
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface FulfillmentFlowOutputRepresentationNormalized {
|
|
17
|
+
/** FulfillmentFlow Id */
|
|
18
|
+
id: string;
|
|
19
|
+
/** FulfillmentFlow Type */
|
|
20
|
+
type: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Output Representation for Fulfillment Flow
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface FulfillmentFlowOutputRepresentation {
|
|
29
|
+
id: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}
|
|
@@ -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 = "c9d37cbcbcc8aa8f1d8999cbccae5620";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: FulfillmentFowInputRepresentation, existing: FulfillmentFowInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FulfillmentFowInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: FulfillmentFowInputRepresentationNormalized, incoming: FulfillmentFowInputRepresentationNormalized): 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: FulfillmentFowInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input Representation for Fulfillment Flow
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface FulfillmentFowInputRepresentationNormalized {
|
|
17
|
+
/** The ID of the catalog Item */
|
|
18
|
+
id: string;
|
|
19
|
+
/** The Type of the catalog Item */
|
|
20
|
+
type: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Input Representation for Fulfillment Flow
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface FulfillmentFowInputRepresentation {
|
|
29
|
+
id: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}
|
|
@@ -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 = "487743c641195a148685f2357c157e27";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: PreprocessorInputRepresentation, existing: PreprocessorInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PreprocessorInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: PreprocessorInputRepresentationNormalized, incoming: PreprocessorInputRepresentationNormalized): 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: PreprocessorInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input Representation for Preprocessor
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface PreprocessorInputRepresentationNormalized {
|
|
17
|
+
/** The ID of the catalog Item */
|
|
18
|
+
id: string;
|
|
19
|
+
/** The operation type of the catalog Item */
|
|
20
|
+
operationType: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Input Representation for Preprocessor
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface PreprocessorInputRepresentation {
|
|
29
|
+
id: string;
|
|
30
|
+
operationType: string;
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-ecm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.325.0",
|
|
4
4
|
"description": "Service Automation Request",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-ecm.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.325.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.325.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -159,105 +159,17 @@ function createLink(ref) {
|
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
function validate$
|
|
162
|
+
function validate$7(obj, path = 'CatalogItemCreateInputRepresentation') {
|
|
163
163
|
const v_error = (() => {
|
|
164
164
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
165
165
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
166
166
|
}
|
|
167
|
-
const obj_associatedArticles = obj.associatedArticles;
|
|
168
|
-
const path_associatedArticles = path + '.associatedArticles';
|
|
169
|
-
if (!ArrayIsArray(obj_associatedArticles)) {
|
|
170
|
-
return new TypeError('Expected "array" but received "' + typeof obj_associatedArticles + '" (at "' + path_associatedArticles + '")');
|
|
171
|
-
}
|
|
172
|
-
for (let i = 0; i < obj_associatedArticles.length; i++) {
|
|
173
|
-
const obj_associatedArticles_item = obj_associatedArticles[i];
|
|
174
|
-
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
175
|
-
if (typeof obj_associatedArticles_item !== 'object' || ArrayIsArray(obj_associatedArticles_item) || obj_associatedArticles_item === null) {
|
|
176
|
-
return new TypeError('Expected "object" but received "' + typeof obj_associatedArticles_item + '" (at "' + path_associatedArticles_item + '")');
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
const obj_attributes = obj.attributes;
|
|
180
|
-
const path_attributes = path + '.attributes';
|
|
181
|
-
if (!ArrayIsArray(obj_attributes)) {
|
|
182
|
-
return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
|
|
183
|
-
}
|
|
184
|
-
for (let i = 0; i < obj_attributes.length; i++) {
|
|
185
|
-
const obj_attributes_item = obj_attributes[i];
|
|
186
|
-
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
187
|
-
if (typeof obj_attributes_item !== 'object' || ArrayIsArray(obj_attributes_item) || obj_attributes_item === null) {
|
|
188
|
-
return new TypeError('Expected "object" but received "' + typeof obj_attributes_item + '" (at "' + path_attributes_item + '")');
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
const obj_contextDefinitionId = obj.contextDefinitionId;
|
|
192
|
-
const path_contextDefinitionId = path + '.contextDefinitionId';
|
|
193
|
-
if (typeof obj_contextDefinitionId !== 'string') {
|
|
194
|
-
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
195
|
-
}
|
|
196
|
-
const obj_description = obj.description;
|
|
197
|
-
const path_description = path + '.description';
|
|
198
|
-
if (typeof obj_description !== 'string') {
|
|
199
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
200
|
-
}
|
|
201
|
-
const obj_eligibilityRules = obj.eligibilityRules;
|
|
202
|
-
const path_eligibilityRules = path + '.eligibilityRules';
|
|
203
|
-
if (!ArrayIsArray(obj_eligibilityRules)) {
|
|
204
|
-
return new TypeError('Expected "array" but received "' + typeof obj_eligibilityRules + '" (at "' + path_eligibilityRules + '")');
|
|
205
|
-
}
|
|
206
|
-
for (let i = 0; i < obj_eligibilityRules.length; i++) {
|
|
207
|
-
const obj_eligibilityRules_item = obj_eligibilityRules[i];
|
|
208
|
-
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
209
|
-
if (typeof obj_eligibilityRules_item !== 'object' || ArrayIsArray(obj_eligibilityRules_item) || obj_eligibilityRules_item === null) {
|
|
210
|
-
return new TypeError('Expected "object" but received "' + typeof obj_eligibilityRules_item + '" (at "' + path_eligibilityRules_item + '")');
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
const obj_fulfillmentFlowId = obj.fulfillmentFlowId;
|
|
214
|
-
const path_fulfillmentFlowId = path + '.fulfillmentFlowId';
|
|
215
|
-
if (typeof obj_fulfillmentFlowId !== 'string') {
|
|
216
|
-
return new TypeError('Expected "string" but received "' + typeof obj_fulfillmentFlowId + '" (at "' + path_fulfillmentFlowId + '")');
|
|
217
|
-
}
|
|
218
|
-
const obj_intakeForm = obj.intakeForm;
|
|
219
|
-
const path_intakeForm = path + '.intakeForm';
|
|
220
|
-
if (typeof obj_intakeForm !== 'object' || ArrayIsArray(obj_intakeForm) || obj_intakeForm === null) {
|
|
221
|
-
return new TypeError('Expected "object" but received "' + typeof obj_intakeForm + '" (at "' + path_intakeForm + '")');
|
|
222
|
-
}
|
|
223
|
-
const obj_integrations = obj.integrations;
|
|
224
|
-
const path_integrations = path + '.integrations';
|
|
225
|
-
if (!ArrayIsArray(obj_integrations)) {
|
|
226
|
-
return new TypeError('Expected "array" but received "' + typeof obj_integrations + '" (at "' + path_integrations + '")');
|
|
227
|
-
}
|
|
228
|
-
for (let i = 0; i < obj_integrations.length; i++) {
|
|
229
|
-
const obj_integrations_item = obj_integrations[i];
|
|
230
|
-
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
231
|
-
if (typeof obj_integrations_item !== 'object' || ArrayIsArray(obj_integrations_item) || obj_integrations_item === null) {
|
|
232
|
-
return new TypeError('Expected "object" but received "' + typeof obj_integrations_item + '" (at "' + path_integrations_item + '")');
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
const obj_isActive = obj.isActive;
|
|
236
|
-
const path_isActive = path + '.isActive';
|
|
237
|
-
if (typeof obj_isActive !== 'boolean') {
|
|
238
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
239
|
-
}
|
|
240
|
-
const obj_name = obj.name;
|
|
241
|
-
const path_name = path + '.name';
|
|
242
|
-
if (typeof obj_name !== 'string') {
|
|
243
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
244
|
-
}
|
|
245
|
-
const obj_preProcessorId = obj.preProcessorId;
|
|
246
|
-
const path_preProcessorId = path + '.preProcessorId';
|
|
247
|
-
if (typeof obj_preProcessorId !== 'string') {
|
|
248
|
-
return new TypeError('Expected "string" but received "' + typeof obj_preProcessorId + '" (at "' + path_preProcessorId + '")');
|
|
249
|
-
}
|
|
250
|
-
const obj_type = obj.type;
|
|
251
|
-
const path_type = path + '.type';
|
|
252
|
-
if (typeof obj_type !== 'string') {
|
|
253
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
254
|
-
}
|
|
255
167
|
})();
|
|
256
168
|
return v_error === undefined ? null : v_error;
|
|
257
169
|
}
|
|
258
170
|
|
|
259
|
-
const VERSION$
|
|
260
|
-
function validate$
|
|
171
|
+
const VERSION$4 = "984f5657f237c67c169022cb991d17de";
|
|
172
|
+
function validate$6(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
261
173
|
const v_error = (() => {
|
|
262
174
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
263
175
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -310,10 +222,10 @@ function validate$5(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
310
222
|
})();
|
|
311
223
|
return v_error === undefined ? null : v_error;
|
|
312
224
|
}
|
|
313
|
-
const select$
|
|
225
|
+
const select$8 = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
314
226
|
return {
|
|
315
227
|
kind: 'Fragment',
|
|
316
|
-
version: VERSION$
|
|
228
|
+
version: VERSION$4,
|
|
317
229
|
private: [],
|
|
318
230
|
selections: [
|
|
319
231
|
{
|
|
@@ -355,7 +267,7 @@ const select$7 = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
355
267
|
]
|
|
356
268
|
};
|
|
357
269
|
};
|
|
358
|
-
function equals$
|
|
270
|
+
function equals$4(existing, incoming) {
|
|
359
271
|
const existing_isHidden = existing.isHidden;
|
|
360
272
|
const incoming_isHidden = incoming.isHidden;
|
|
361
273
|
if (!(existing_isHidden === incoming_isHidden)) {
|
|
@@ -404,6 +316,56 @@ function equals$3(existing, incoming) {
|
|
|
404
316
|
return true;
|
|
405
317
|
}
|
|
406
318
|
|
|
319
|
+
const VERSION$3 = "a629c7f39e6f7bfcb57e38849c46ba98";
|
|
320
|
+
function validate$5(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
321
|
+
const v_error = (() => {
|
|
322
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
323
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
324
|
+
}
|
|
325
|
+
const obj_id = obj.id;
|
|
326
|
+
const path_id = path + '.id';
|
|
327
|
+
if (typeof obj_id !== 'string') {
|
|
328
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
329
|
+
}
|
|
330
|
+
const obj_type = obj.type;
|
|
331
|
+
const path_type = path + '.type';
|
|
332
|
+
if (typeof obj_type !== 'string') {
|
|
333
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
334
|
+
}
|
|
335
|
+
})();
|
|
336
|
+
return v_error === undefined ? null : v_error;
|
|
337
|
+
}
|
|
338
|
+
const select$7 = function FulfillmentFlowOutputRepresentationSelect() {
|
|
339
|
+
return {
|
|
340
|
+
kind: 'Fragment',
|
|
341
|
+
version: VERSION$3,
|
|
342
|
+
private: [],
|
|
343
|
+
selections: [
|
|
344
|
+
{
|
|
345
|
+
name: 'id',
|
|
346
|
+
kind: 'Scalar'
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
name: 'type',
|
|
350
|
+
kind: 'Scalar'
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
function equals$3(existing, incoming) {
|
|
356
|
+
const existing_id = existing.id;
|
|
357
|
+
const incoming_id = incoming.id;
|
|
358
|
+
if (!(existing_id === incoming_id)) {
|
|
359
|
+
return false;
|
|
360
|
+
}
|
|
361
|
+
const existing_type = existing.type;
|
|
362
|
+
const incoming_type = incoming.type;
|
|
363
|
+
if (!(existing_type === incoming_type)) {
|
|
364
|
+
return false;
|
|
365
|
+
}
|
|
366
|
+
return true;
|
|
367
|
+
}
|
|
368
|
+
|
|
407
369
|
const VERSION$2 = "d0fe6f2d5b8246f10afe4067d3721d5b";
|
|
408
370
|
function validate$4(obj, path = 'IntakeFormOutputRepresentation') {
|
|
409
371
|
const v_error = (() => {
|
|
@@ -455,7 +417,7 @@ function equals$2(existing, incoming) {
|
|
|
455
417
|
}
|
|
456
418
|
|
|
457
419
|
const TTL$1 = 6000;
|
|
458
|
-
const VERSION$1 = "
|
|
420
|
+
const VERSION$1 = "d0103a1b0725c5c2006308b12e54542c";
|
|
459
421
|
function validate$3(obj, path = 'CatalogItemOutputRepresentation') {
|
|
460
422
|
const v_error = (() => {
|
|
461
423
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -481,7 +443,7 @@ function validate$3(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
481
443
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
482
444
|
const obj_attributes_item = obj_attributes[i];
|
|
483
445
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
484
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
446
|
+
const referencepath_attributes_itemValidationError = validate$6(obj_attributes_item, path_attributes_item);
|
|
485
447
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
486
448
|
let message = 'Object doesn\'t match CatalogItemAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
487
449
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -515,10 +477,13 @@ function validate$3(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
515
477
|
return new TypeError('Expected "string" but received "' + typeof obj_eligibilityRules_item + '" (at "' + path_eligibilityRules_item + '")');
|
|
516
478
|
}
|
|
517
479
|
}
|
|
518
|
-
const
|
|
519
|
-
const
|
|
520
|
-
|
|
521
|
-
|
|
480
|
+
const obj_fulfillmentFlow = obj.fulfillmentFlow;
|
|
481
|
+
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
482
|
+
const referencepath_fulfillmentFlowValidationError = validate$5(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
483
|
+
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
484
|
+
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
485
|
+
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
486
|
+
return new TypeError(message);
|
|
522
487
|
}
|
|
523
488
|
const obj_intakeForm = obj.intakeForm;
|
|
524
489
|
const path_intakeForm = path + '.intakeForm';
|
|
@@ -550,10 +515,17 @@ function validate$3(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
550
515
|
if (typeof obj_name !== 'string') {
|
|
551
516
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
552
517
|
}
|
|
553
|
-
const
|
|
554
|
-
const
|
|
555
|
-
if (
|
|
556
|
-
return new TypeError('Expected "
|
|
518
|
+
const obj_preProcessors = obj.preProcessors;
|
|
519
|
+
const path_preProcessors = path + '.preProcessors';
|
|
520
|
+
if (!ArrayIsArray(obj_preProcessors)) {
|
|
521
|
+
return new TypeError('Expected "array" but received "' + typeof obj_preProcessors + '" (at "' + path_preProcessors + '")');
|
|
522
|
+
}
|
|
523
|
+
for (let i = 0; i < obj_preProcessors.length; i++) {
|
|
524
|
+
const obj_preProcessors_item = obj_preProcessors[i];
|
|
525
|
+
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
526
|
+
if (typeof obj_preProcessors_item !== 'string') {
|
|
527
|
+
return new TypeError('Expected "string" but received "' + typeof obj_preProcessors_item + '" (at "' + path_preProcessors_item + '")');
|
|
528
|
+
}
|
|
557
529
|
}
|
|
558
530
|
const obj_type = obj.type;
|
|
559
531
|
const path_type = path + '.type';
|
|
@@ -577,7 +549,8 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
577
549
|
return input;
|
|
578
550
|
}
|
|
579
551
|
const select$5 = function CatalogItemOutputRepresentationSelect() {
|
|
580
|
-
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$
|
|
552
|
+
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$8();
|
|
553
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$7();
|
|
581
554
|
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$6();
|
|
582
555
|
return {
|
|
583
556
|
kind: 'Fragment',
|
|
@@ -613,8 +586,9 @@ const select$5 = function CatalogItemOutputRepresentationSelect() {
|
|
|
613
586
|
plural: true
|
|
614
587
|
},
|
|
615
588
|
{
|
|
616
|
-
name: '
|
|
617
|
-
kind: '
|
|
589
|
+
name: 'fulfillmentFlow',
|
|
590
|
+
kind: 'Object',
|
|
591
|
+
selections: FulfillmentFlowOutputRepresentation__selections
|
|
618
592
|
},
|
|
619
593
|
{
|
|
620
594
|
name: 'intakeForm',
|
|
@@ -635,8 +609,9 @@ const select$5 = function CatalogItemOutputRepresentationSelect() {
|
|
|
635
609
|
kind: 'Scalar'
|
|
636
610
|
},
|
|
637
611
|
{
|
|
638
|
-
name: '
|
|
639
|
-
kind: 'Scalar'
|
|
612
|
+
name: 'preProcessors',
|
|
613
|
+
kind: 'Scalar',
|
|
614
|
+
plural: true
|
|
640
615
|
},
|
|
641
616
|
{
|
|
642
617
|
name: 'type',
|
|
@@ -666,21 +641,11 @@ function equals$1(existing, incoming) {
|
|
|
666
641
|
if (!(existing_description === incoming_description)) {
|
|
667
642
|
return false;
|
|
668
643
|
}
|
|
669
|
-
const existing_fulfillmentFlowId = existing.fulfillmentFlowId;
|
|
670
|
-
const incoming_fulfillmentFlowId = incoming.fulfillmentFlowId;
|
|
671
|
-
if (!(existing_fulfillmentFlowId === incoming_fulfillmentFlowId)) {
|
|
672
|
-
return false;
|
|
673
|
-
}
|
|
674
644
|
const existing_name = existing.name;
|
|
675
645
|
const incoming_name = incoming.name;
|
|
676
646
|
if (!(existing_name === incoming_name)) {
|
|
677
647
|
return false;
|
|
678
648
|
}
|
|
679
|
-
const existing_preProcessorId = existing.preProcessorId;
|
|
680
|
-
const incoming_preProcessorId = incoming.preProcessorId;
|
|
681
|
-
if (!(existing_preProcessorId === incoming_preProcessorId)) {
|
|
682
|
-
return false;
|
|
683
|
-
}
|
|
684
649
|
const existing_type = existing.type;
|
|
685
650
|
const incoming_type = incoming.type;
|
|
686
651
|
if (!(existing_type === incoming_type)) {
|
|
@@ -699,7 +664,7 @@ function equals$1(existing, incoming) {
|
|
|
699
664
|
const existing_attributes = existing.attributes;
|
|
700
665
|
const incoming_attributes = incoming.attributes;
|
|
701
666
|
const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
|
|
702
|
-
if (!(equals$
|
|
667
|
+
if (!(equals$4(existing_attributes_item, incoming_attributes_item))) {
|
|
703
668
|
return false;
|
|
704
669
|
}
|
|
705
670
|
});
|
|
@@ -716,6 +681,11 @@ function equals$1(existing, incoming) {
|
|
|
716
681
|
if (equals_eligibilityRules_items === false) {
|
|
717
682
|
return false;
|
|
718
683
|
}
|
|
684
|
+
const existing_fulfillmentFlow = existing.fulfillmentFlow;
|
|
685
|
+
const incoming_fulfillmentFlow = incoming.fulfillmentFlow;
|
|
686
|
+
if (!(equals$3(existing_fulfillmentFlow, incoming_fulfillmentFlow))) {
|
|
687
|
+
return false;
|
|
688
|
+
}
|
|
719
689
|
const existing_intakeForm = existing.intakeForm;
|
|
720
690
|
const incoming_intakeForm = incoming.intakeForm;
|
|
721
691
|
if (!(equals$2(existing_intakeForm, incoming_intakeForm))) {
|
|
@@ -731,6 +701,16 @@ function equals$1(existing, incoming) {
|
|
|
731
701
|
if (equals_integrations_items === false) {
|
|
732
702
|
return false;
|
|
733
703
|
}
|
|
704
|
+
const existing_preProcessors = existing.preProcessors;
|
|
705
|
+
const incoming_preProcessors = incoming.preProcessors;
|
|
706
|
+
const equals_preProcessors_items = equalsArray(existing_preProcessors, incoming_preProcessors, (existing_preProcessors_item, incoming_preProcessors_item) => {
|
|
707
|
+
if (!(existing_preProcessors_item === incoming_preProcessors_item)) {
|
|
708
|
+
return false;
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
if (equals_preProcessors_items === false) {
|
|
712
|
+
return false;
|
|
713
|
+
}
|
|
734
714
|
return true;
|
|
735
715
|
}
|
|
736
716
|
const ingest$1 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -801,7 +781,7 @@ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(createCatalo
|
|
|
801
781
|
function typeCheckConfig$3(untrustedConfig) {
|
|
802
782
|
const config = {};
|
|
803
783
|
const untrustedConfig_catalogItemCreateInput = untrustedConfig.catalogItemCreateInput;
|
|
804
|
-
const referenceCatalogItemCreateInputRepresentationValidationError = validate$
|
|
784
|
+
const referenceCatalogItemCreateInputRepresentationValidationError = validate$7(untrustedConfig_catalogItemCreateInput);
|
|
805
785
|
if (referenceCatalogItemCreateInputRepresentationValidationError === null) {
|
|
806
786
|
config.catalogItemCreateInput = untrustedConfig_catalogItemCreateInput;
|
|
807
787
|
}
|
|
@@ -1283,99 +1263,11 @@ function validate(obj, path = 'CatalogItemUpdateInputRepresentation') {
|
|
|
1283
1263
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1284
1264
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1285
1265
|
}
|
|
1286
|
-
const obj_associatedArticles = obj.associatedArticles;
|
|
1287
|
-
const path_associatedArticles = path + '.associatedArticles';
|
|
1288
|
-
if (!ArrayIsArray(obj_associatedArticles)) {
|
|
1289
|
-
return new TypeError('Expected "array" but received "' + typeof obj_associatedArticles + '" (at "' + path_associatedArticles + '")');
|
|
1290
|
-
}
|
|
1291
|
-
for (let i = 0; i < obj_associatedArticles.length; i++) {
|
|
1292
|
-
const obj_associatedArticles_item = obj_associatedArticles[i];
|
|
1293
|
-
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
1294
|
-
if (typeof obj_associatedArticles_item !== 'object' || ArrayIsArray(obj_associatedArticles_item) || obj_associatedArticles_item === null) {
|
|
1295
|
-
return new TypeError('Expected "object" but received "' + typeof obj_associatedArticles_item + '" (at "' + path_associatedArticles_item + '")');
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
const obj_attributes = obj.attributes;
|
|
1299
|
-
const path_attributes = path + '.attributes';
|
|
1300
|
-
if (!ArrayIsArray(obj_attributes)) {
|
|
1301
|
-
return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
|
|
1302
|
-
}
|
|
1303
|
-
for (let i = 0; i < obj_attributes.length; i++) {
|
|
1304
|
-
const obj_attributes_item = obj_attributes[i];
|
|
1305
|
-
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
1306
|
-
if (typeof obj_attributes_item !== 'object' || ArrayIsArray(obj_attributes_item) || obj_attributes_item === null) {
|
|
1307
|
-
return new TypeError('Expected "object" but received "' + typeof obj_attributes_item + '" (at "' + path_attributes_item + '")');
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
const obj_contextDefinitionId = obj.contextDefinitionId;
|
|
1311
|
-
const path_contextDefinitionId = path + '.contextDefinitionId';
|
|
1312
|
-
if (typeof obj_contextDefinitionId !== 'string') {
|
|
1313
|
-
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
1314
|
-
}
|
|
1315
|
-
const obj_description = obj.description;
|
|
1316
|
-
const path_description = path + '.description';
|
|
1317
|
-
if (typeof obj_description !== 'string') {
|
|
1318
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1319
|
-
}
|
|
1320
|
-
const obj_eligibilityRules = obj.eligibilityRules;
|
|
1321
|
-
const path_eligibilityRules = path + '.eligibilityRules';
|
|
1322
|
-
if (!ArrayIsArray(obj_eligibilityRules)) {
|
|
1323
|
-
return new TypeError('Expected "array" but received "' + typeof obj_eligibilityRules + '" (at "' + path_eligibilityRules + '")');
|
|
1324
|
-
}
|
|
1325
|
-
for (let i = 0; i < obj_eligibilityRules.length; i++) {
|
|
1326
|
-
const obj_eligibilityRules_item = obj_eligibilityRules[i];
|
|
1327
|
-
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
1328
|
-
if (typeof obj_eligibilityRules_item !== 'object' || ArrayIsArray(obj_eligibilityRules_item) || obj_eligibilityRules_item === null) {
|
|
1329
|
-
return new TypeError('Expected "object" but received "' + typeof obj_eligibilityRules_item + '" (at "' + path_eligibilityRules_item + '")');
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
const obj_fulfillmentFlowId = obj.fulfillmentFlowId;
|
|
1333
|
-
const path_fulfillmentFlowId = path + '.fulfillmentFlowId';
|
|
1334
|
-
if (typeof obj_fulfillmentFlowId !== 'string') {
|
|
1335
|
-
return new TypeError('Expected "string" but received "' + typeof obj_fulfillmentFlowId + '" (at "' + path_fulfillmentFlowId + '")');
|
|
1336
|
-
}
|
|
1337
1266
|
const obj_id = obj.id;
|
|
1338
1267
|
const path_id = path + '.id';
|
|
1339
1268
|
if (typeof obj_id !== 'string') {
|
|
1340
1269
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1341
1270
|
}
|
|
1342
|
-
const obj_intakeForm = obj.intakeForm;
|
|
1343
|
-
const path_intakeForm = path + '.intakeForm';
|
|
1344
|
-
if (typeof obj_intakeForm !== 'object' || ArrayIsArray(obj_intakeForm) || obj_intakeForm === null) {
|
|
1345
|
-
return new TypeError('Expected "object" but received "' + typeof obj_intakeForm + '" (at "' + path_intakeForm + '")');
|
|
1346
|
-
}
|
|
1347
|
-
const obj_integrations = obj.integrations;
|
|
1348
|
-
const path_integrations = path + '.integrations';
|
|
1349
|
-
if (!ArrayIsArray(obj_integrations)) {
|
|
1350
|
-
return new TypeError('Expected "array" but received "' + typeof obj_integrations + '" (at "' + path_integrations + '")');
|
|
1351
|
-
}
|
|
1352
|
-
for (let i = 0; i < obj_integrations.length; i++) {
|
|
1353
|
-
const obj_integrations_item = obj_integrations[i];
|
|
1354
|
-
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
1355
|
-
if (typeof obj_integrations_item !== 'object' || ArrayIsArray(obj_integrations_item) || obj_integrations_item === null) {
|
|
1356
|
-
return new TypeError('Expected "object" but received "' + typeof obj_integrations_item + '" (at "' + path_integrations_item + '")');
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
const obj_isActive = obj.isActive;
|
|
1360
|
-
const path_isActive = path + '.isActive';
|
|
1361
|
-
if (typeof obj_isActive !== 'boolean') {
|
|
1362
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
1363
|
-
}
|
|
1364
|
-
const obj_name = obj.name;
|
|
1365
|
-
const path_name = path + '.name';
|
|
1366
|
-
if (typeof obj_name !== 'string') {
|
|
1367
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1368
|
-
}
|
|
1369
|
-
const obj_preProcessorId = obj.preProcessorId;
|
|
1370
|
-
const path_preProcessorId = path + '.preProcessorId';
|
|
1371
|
-
if (typeof obj_preProcessorId !== 'string') {
|
|
1372
|
-
return new TypeError('Expected "string" but received "' + typeof obj_preProcessorId + '" (at "' + path_preProcessorId + '")');
|
|
1373
|
-
}
|
|
1374
|
-
const obj_type = obj.type;
|
|
1375
|
-
const path_type = path + '.type';
|
|
1376
|
-
if (typeof obj_type !== 'string') {
|
|
1377
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1378
|
-
}
|
|
1379
1271
|
})();
|
|
1380
1272
|
return v_error === undefined ? null : v_error;
|
|
1381
1273
|
}
|
|
@@ -1524,4 +1416,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1524
1416
|
});
|
|
1525
1417
|
|
|
1526
1418
|
export { createCatalogItem, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItemNotifyChange, getCatalogItem_imperative, updateCatalogItem };
|
|
1527
|
-
// version: 1.
|
|
1419
|
+
// version: 1.325.0-19eed1b9b8
|