@salesforce/lds-adapters-industries-actionablelist 1.100.2
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/LICENSE.txt +82 -0
- package/dist/es/es2018/industries-actionablelist.js +2925 -0
- package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
- package/dist/types/src/generated/adapters/createActionableListDefinition.d.ts +15 -0
- package/dist/types/src/generated/adapters/getActionableListDatasetInfo.d.ts +27 -0
- package/dist/types/src/generated/adapters/getActionableListDefinitions.d.ts +29 -0
- package/dist/types/src/generated/adapters/getActionableListMembers.d.ts +26 -0
- package/dist/types/src/generated/adapters/upsertActionableList.d.ts +15 -0
- package/dist/types/src/generated/artifacts/main.d.ts +5 -0
- package/dist/types/src/generated/artifacts/sfdc.d.ts +9 -0
- package/dist/types/src/generated/resources/getConnectActionableListDefinition.d.ts +18 -0
- package/dist/types/src/generated/resources/getConnectActionableListMembersById.d.ts +15 -0
- package/dist/types/src/generated/resources/postConnectActionableList.d.ts +13 -0
- package/dist/types/src/generated/resources/postConnectActionableListDefinition.d.ts +13 -0
- package/dist/types/src/generated/resources/postConnectActionableListDefinitionRows.d.ts +16 -0
- package/dist/types/src/generated/types/ALDDatasetColumnOutputRepresentation.d.ts +51 -0
- package/dist/types/src/generated/types/ALDMemberStatusOutputRepresentation.d.ts +36 -0
- package/dist/types/src/generated/types/ActionableListDatasetByDefinitionRepresentation.d.ts +45 -0
- package/dist/types/src/generated/types/ActionableListDatasetColumnRepresentation.d.ts +44 -0
- package/dist/types/src/generated/types/ActionableListDatasetInputRepresentation.d.ts +50 -0
- package/dist/types/src/generated/types/ActionableListDatasetRowRepresentation.d.ts +33 -0
- package/dist/types/src/generated/types/ActionableListDatasetWrapperInputRepresentation.d.ts +30 -0
- package/dist/types/src/generated/types/ActionableListDefinitionCreateInputRepresentation.d.ts +35 -0
- package/dist/types/src/generated/types/ActionableListDefinitionCreateOutputRepresentation.d.ts +42 -0
- package/dist/types/src/generated/types/ActionableListDefinitionGetAllOutputRepresentation.d.ts +31 -0
- package/dist/types/src/generated/types/ActionableListDefinitionOutputRepresentation.d.ts +59 -0
- package/dist/types/src/generated/types/ActionableListDefinitionStatusOutputRepresentation.d.ts +33 -0
- package/dist/types/src/generated/types/ActionableListDefinitionWrapperInputRepresentation.d.ts +30 -0
- package/dist/types/src/generated/types/ActionableListFilterInputRepresentation.d.ts +38 -0
- package/dist/types/src/generated/types/ActionableListFilterInputRepresentationList.d.ts +29 -0
- package/dist/types/src/generated/types/ActionableListMemberStatusRepresentation.d.ts +35 -0
- package/dist/types/src/generated/types/ActionableListMembersOutputRepresentation.d.ts +30 -0
- package/dist/types/src/generated/types/ActionableListUpsertInputRepresentation.d.ts +59 -0
- package/dist/types/src/generated/types/ActionableListUpsertOutputRepresentation.d.ts +45 -0
- package/dist/types/src/generated/types/ActionableListWrapperInputRepresentation.d.ts +30 -0
- package/dist/types/src/generated/types/type-utils.d.ts +39 -0
- package/dist/umd/es2018/industries-actionablelist.js +2937 -0
- package/dist/umd/es5/industries-actionablelist.js +2952 -0
- package/package.json +70 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +2982 -0
- package/src/raml/api.raml +473 -0
- package/src/raml/luvio.raml +54 -0
|
@@ -0,0 +1,2952 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
(function (global, factory) {
|
|
8
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@luvio/engine')) :
|
|
9
|
+
typeof define === 'function' && define.amd ? define(['exports', '@luvio/engine'], factory) :
|
|
10
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.industriesActionablelist = {}, global.engine));
|
|
11
|
+
})(this, (function (exports, engine) { 'use strict';
|
|
12
|
+
|
|
13
|
+
var ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty;
|
|
14
|
+
var ObjectKeys$1 = Object.keys;
|
|
15
|
+
var ArrayIsArray$1 = Array.isArray;
|
|
16
|
+
/**
|
|
17
|
+
* Validates an adapter config is well-formed.
|
|
18
|
+
* @param config The config to validate.
|
|
19
|
+
* @param adapter The adapter validation configuration.
|
|
20
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
21
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
22
|
+
*/
|
|
23
|
+
function validateConfig(config, adapter, oneOf) {
|
|
24
|
+
var displayName = adapter.displayName;
|
|
25
|
+
var _a = adapter.parameters, required = _a.required, optional = _a.optional, unsupported = _a.unsupported;
|
|
26
|
+
if (config === undefined ||
|
|
27
|
+
required.every(function (req) { return ObjectPrototypeHasOwnProperty.call(config, req); }) === false) {
|
|
28
|
+
throw new TypeError("adapter ".concat(displayName, " configuration must specify ").concat(required.sort().join(', ')));
|
|
29
|
+
}
|
|
30
|
+
if (oneOf && oneOf.some(function (req) { return ObjectPrototypeHasOwnProperty.call(config, req); }) === false) {
|
|
31
|
+
throw new TypeError("adapter ".concat(displayName, " configuration must specify one of ").concat(oneOf.sort().join(', ')));
|
|
32
|
+
}
|
|
33
|
+
if (unsupported !== undefined &&
|
|
34
|
+
unsupported.some(function (req) { return ObjectPrototypeHasOwnProperty.call(config, req); })) {
|
|
35
|
+
throw new TypeError("adapter ".concat(displayName, " does not yet support ").concat(unsupported.sort().join(', ')));
|
|
36
|
+
}
|
|
37
|
+
var supported = required.concat(optional);
|
|
38
|
+
if (ObjectKeys$1(config).some(function (key) { return !supported.includes(key); })) {
|
|
39
|
+
throw new TypeError("adapter ".concat(displayName, " configuration supports only ").concat(supported.sort().join(', ')));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function untrustedIsObject(untrusted) {
|
|
43
|
+
return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
|
|
44
|
+
}
|
|
45
|
+
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
46
|
+
return configPropertyNames.parameters.required.every(function (req) { return req in config; });
|
|
47
|
+
}
|
|
48
|
+
var snapshotRefreshOptions = {
|
|
49
|
+
overrides: {
|
|
50
|
+
headers: {
|
|
51
|
+
'Cache-Control': 'no-cache',
|
|
52
|
+
},
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var keyPrefix = 'actionablelist';
|
|
56
|
+
|
|
57
|
+
var ObjectFreeze = Object.freeze, ObjectKeys = Object.keys;
|
|
58
|
+
var ArrayIsArray = Array.isArray;
|
|
59
|
+
function equalsArray(a, b, equalsItem) {
|
|
60
|
+
var aLength = a.length;
|
|
61
|
+
var bLength = b.length;
|
|
62
|
+
if (aLength !== bLength) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
for (var i = 0; i < aLength; i++) {
|
|
66
|
+
if (equalsItem(a[i], b[i]) === false) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
function equalsObject(a, b, equalsProp) {
|
|
73
|
+
var aKeys = ObjectKeys(a).sort();
|
|
74
|
+
var bKeys = ObjectKeys(b).sort();
|
|
75
|
+
var aKeysLength = aKeys.length;
|
|
76
|
+
var bKeysLength = bKeys.length;
|
|
77
|
+
if (aKeysLength !== bKeysLength) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
for (var i = 0; i < aKeys.length; i++) {
|
|
81
|
+
var key = aKeys[i];
|
|
82
|
+
if (key !== bKeys[i]) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
if (equalsProp(a[key], b[key]) === false) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
function deepFreeze(value) {
|
|
92
|
+
// No need to freeze primitives
|
|
93
|
+
if (typeof value !== 'object' || value === null) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (ArrayIsArray(value)) {
|
|
97
|
+
for (var i = 0, len = value.length; i < len; i += 1) {
|
|
98
|
+
deepFreeze(value[i]);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
var keys = ObjectKeys(value);
|
|
103
|
+
for (var i = 0, len = keys.length; i < len; i += 1) {
|
|
104
|
+
deepFreeze(value[keys[i]]);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
ObjectFreeze(value);
|
|
108
|
+
}
|
|
109
|
+
function createLink(ref) {
|
|
110
|
+
return {
|
|
111
|
+
__ref: engine.serializeStructuredKey(ref),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
var VERSION$b = "8d304f086ca6d70241ff9dc64e1c4652";
|
|
116
|
+
function validate$e(obj, path) {
|
|
117
|
+
if (path === void 0) { path = 'ALDDatasetColumnOutputRepresentation'; }
|
|
118
|
+
var v_error = (function () {
|
|
119
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
120
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
121
|
+
}
|
|
122
|
+
var obj_actionableListDefinitionId = obj.actionableListDefinitionId;
|
|
123
|
+
var path_actionableListDefinitionId = path + '.actionableListDefinitionId';
|
|
124
|
+
if (typeof obj_actionableListDefinitionId !== 'string') {
|
|
125
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionableListDefinitionId + '" (at "' + path_actionableListDefinitionId + '")');
|
|
126
|
+
}
|
|
127
|
+
var obj_dataDomain = obj.dataDomain;
|
|
128
|
+
var path_dataDomain = path + '.dataDomain';
|
|
129
|
+
var obj_dataDomain_union0 = null;
|
|
130
|
+
var obj_dataDomain_union0_error = (function () {
|
|
131
|
+
if (typeof obj_dataDomain !== 'string') {
|
|
132
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataDomain + '" (at "' + path_dataDomain + '")');
|
|
133
|
+
}
|
|
134
|
+
})();
|
|
135
|
+
if (obj_dataDomain_union0_error != null) {
|
|
136
|
+
obj_dataDomain_union0 = obj_dataDomain_union0_error.message;
|
|
137
|
+
}
|
|
138
|
+
var obj_dataDomain_union1 = null;
|
|
139
|
+
var obj_dataDomain_union1_error = (function () {
|
|
140
|
+
if (obj_dataDomain !== null) {
|
|
141
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dataDomain + '" (at "' + path_dataDomain + '")');
|
|
142
|
+
}
|
|
143
|
+
})();
|
|
144
|
+
if (obj_dataDomain_union1_error != null) {
|
|
145
|
+
obj_dataDomain_union1 = obj_dataDomain_union1_error.message;
|
|
146
|
+
}
|
|
147
|
+
if (obj_dataDomain_union0 && obj_dataDomain_union1) {
|
|
148
|
+
var message = 'Object doesn\'t match union (at "' + path_dataDomain + '")';
|
|
149
|
+
message += '\n' + obj_dataDomain_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
150
|
+
message += '\n' + obj_dataDomain_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
151
|
+
return new TypeError(message);
|
|
152
|
+
}
|
|
153
|
+
var obj_dataType = obj.dataType;
|
|
154
|
+
var path_dataType = path + '.dataType';
|
|
155
|
+
var obj_dataType_union0 = null;
|
|
156
|
+
var obj_dataType_union0_error = (function () {
|
|
157
|
+
if (typeof obj_dataType !== 'string') {
|
|
158
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
159
|
+
}
|
|
160
|
+
})();
|
|
161
|
+
if (obj_dataType_union0_error != null) {
|
|
162
|
+
obj_dataType_union0 = obj_dataType_union0_error.message;
|
|
163
|
+
}
|
|
164
|
+
var obj_dataType_union1 = null;
|
|
165
|
+
var obj_dataType_union1_error = (function () {
|
|
166
|
+
if (obj_dataType !== null) {
|
|
167
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
168
|
+
}
|
|
169
|
+
})();
|
|
170
|
+
if (obj_dataType_union1_error != null) {
|
|
171
|
+
obj_dataType_union1 = obj_dataType_union1_error.message;
|
|
172
|
+
}
|
|
173
|
+
if (obj_dataType_union0 && obj_dataType_union1) {
|
|
174
|
+
var message = 'Object doesn\'t match union (at "' + path_dataType + '")';
|
|
175
|
+
message += '\n' + obj_dataType_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
176
|
+
message += '\n' + obj_dataType_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
177
|
+
return new TypeError(message);
|
|
178
|
+
}
|
|
179
|
+
var obj_id = obj.id;
|
|
180
|
+
var path_id = path + '.id';
|
|
181
|
+
if (typeof obj_id !== 'string') {
|
|
182
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
183
|
+
}
|
|
184
|
+
var obj_isDefault = obj.isDefault;
|
|
185
|
+
var path_isDefault = path + '.isDefault';
|
|
186
|
+
if (typeof obj_isDefault !== 'boolean') {
|
|
187
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
188
|
+
}
|
|
189
|
+
var obj_objectName = obj.objectName;
|
|
190
|
+
var path_objectName = path + '.objectName';
|
|
191
|
+
var obj_objectName_union0 = null;
|
|
192
|
+
var obj_objectName_union0_error = (function () {
|
|
193
|
+
if (typeof obj_objectName !== 'string') {
|
|
194
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
195
|
+
}
|
|
196
|
+
})();
|
|
197
|
+
if (obj_objectName_union0_error != null) {
|
|
198
|
+
obj_objectName_union0 = obj_objectName_union0_error.message;
|
|
199
|
+
}
|
|
200
|
+
var obj_objectName_union1 = null;
|
|
201
|
+
var obj_objectName_union1_error = (function () {
|
|
202
|
+
if (obj_objectName !== null) {
|
|
203
|
+
return new TypeError('Expected "null" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
204
|
+
}
|
|
205
|
+
})();
|
|
206
|
+
if (obj_objectName_union1_error != null) {
|
|
207
|
+
obj_objectName_union1 = obj_objectName_union1_error.message;
|
|
208
|
+
}
|
|
209
|
+
if (obj_objectName_union0 && obj_objectName_union1) {
|
|
210
|
+
var message = 'Object doesn\'t match union (at "' + path_objectName + '")';
|
|
211
|
+
message += '\n' + obj_objectName_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
212
|
+
message += '\n' + obj_objectName_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
213
|
+
return new TypeError(message);
|
|
214
|
+
}
|
|
215
|
+
var obj_sourceColumnApiName = obj.sourceColumnApiName;
|
|
216
|
+
var path_sourceColumnApiName = path + '.sourceColumnApiName';
|
|
217
|
+
var obj_sourceColumnApiName_union0 = null;
|
|
218
|
+
var obj_sourceColumnApiName_union0_error = (function () {
|
|
219
|
+
if (typeof obj_sourceColumnApiName !== 'string') {
|
|
220
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceColumnApiName + '" (at "' + path_sourceColumnApiName + '")');
|
|
221
|
+
}
|
|
222
|
+
})();
|
|
223
|
+
if (obj_sourceColumnApiName_union0_error != null) {
|
|
224
|
+
obj_sourceColumnApiName_union0 = obj_sourceColumnApiName_union0_error.message;
|
|
225
|
+
}
|
|
226
|
+
var obj_sourceColumnApiName_union1 = null;
|
|
227
|
+
var obj_sourceColumnApiName_union1_error = (function () {
|
|
228
|
+
if (obj_sourceColumnApiName !== null) {
|
|
229
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sourceColumnApiName + '" (at "' + path_sourceColumnApiName + '")');
|
|
230
|
+
}
|
|
231
|
+
})();
|
|
232
|
+
if (obj_sourceColumnApiName_union1_error != null) {
|
|
233
|
+
obj_sourceColumnApiName_union1 = obj_sourceColumnApiName_union1_error.message;
|
|
234
|
+
}
|
|
235
|
+
if (obj_sourceColumnApiName_union0 && obj_sourceColumnApiName_union1) {
|
|
236
|
+
var message = 'Object doesn\'t match union (at "' + path_sourceColumnApiName + '")';
|
|
237
|
+
message += '\n' + obj_sourceColumnApiName_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
238
|
+
message += '\n' + obj_sourceColumnApiName_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
239
|
+
return new TypeError(message);
|
|
240
|
+
}
|
|
241
|
+
var obj_sourceFieldName = obj.sourceFieldName;
|
|
242
|
+
var path_sourceFieldName = path + '.sourceFieldName';
|
|
243
|
+
var obj_sourceFieldName_union0 = null;
|
|
244
|
+
var obj_sourceFieldName_union0_error = (function () {
|
|
245
|
+
if (typeof obj_sourceFieldName !== 'string') {
|
|
246
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceFieldName + '" (at "' + path_sourceFieldName + '")');
|
|
247
|
+
}
|
|
248
|
+
})();
|
|
249
|
+
if (obj_sourceFieldName_union0_error != null) {
|
|
250
|
+
obj_sourceFieldName_union0 = obj_sourceFieldName_union0_error.message;
|
|
251
|
+
}
|
|
252
|
+
var obj_sourceFieldName_union1 = null;
|
|
253
|
+
var obj_sourceFieldName_union1_error = (function () {
|
|
254
|
+
if (obj_sourceFieldName !== null) {
|
|
255
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sourceFieldName + '" (at "' + path_sourceFieldName + '")');
|
|
256
|
+
}
|
|
257
|
+
})();
|
|
258
|
+
if (obj_sourceFieldName_union1_error != null) {
|
|
259
|
+
obj_sourceFieldName_union1 = obj_sourceFieldName_union1_error.message;
|
|
260
|
+
}
|
|
261
|
+
if (obj_sourceFieldName_union0 && obj_sourceFieldName_union1) {
|
|
262
|
+
var message = 'Object doesn\'t match union (at "' + path_sourceFieldName + '")';
|
|
263
|
+
message += '\n' + obj_sourceFieldName_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
264
|
+
message += '\n' + obj_sourceFieldName_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
265
|
+
return new TypeError(message);
|
|
266
|
+
}
|
|
267
|
+
})();
|
|
268
|
+
return v_error === undefined ? null : v_error;
|
|
269
|
+
}
|
|
270
|
+
var select$g = function ALDDatasetColumnOutputRepresentationSelect() {
|
|
271
|
+
return {
|
|
272
|
+
kind: 'Fragment',
|
|
273
|
+
version: VERSION$b,
|
|
274
|
+
private: [],
|
|
275
|
+
selections: [
|
|
276
|
+
{
|
|
277
|
+
name: 'actionableListDefinitionId',
|
|
278
|
+
kind: 'Scalar'
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: 'dataDomain',
|
|
282
|
+
kind: 'Scalar'
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: 'dataType',
|
|
286
|
+
kind: 'Scalar'
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: 'id',
|
|
290
|
+
kind: 'Scalar'
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: 'isDefault',
|
|
294
|
+
kind: 'Scalar'
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
name: 'objectName',
|
|
298
|
+
kind: 'Scalar'
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: 'sourceColumnApiName',
|
|
302
|
+
kind: 'Scalar'
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: 'sourceFieldName',
|
|
306
|
+
kind: 'Scalar'
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
function equals$b(existing, incoming) {
|
|
312
|
+
var existing_isDefault = existing.isDefault;
|
|
313
|
+
var incoming_isDefault = incoming.isDefault;
|
|
314
|
+
if (!(existing_isDefault === incoming_isDefault)) {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
var existing_actionableListDefinitionId = existing.actionableListDefinitionId;
|
|
318
|
+
var incoming_actionableListDefinitionId = incoming.actionableListDefinitionId;
|
|
319
|
+
if (!(existing_actionableListDefinitionId === incoming_actionableListDefinitionId)) {
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
var existing_id = existing.id;
|
|
323
|
+
var incoming_id = incoming.id;
|
|
324
|
+
if (!(existing_id === incoming_id)) {
|
|
325
|
+
return false;
|
|
326
|
+
}
|
|
327
|
+
var existing_dataDomain = existing.dataDomain;
|
|
328
|
+
var incoming_dataDomain = incoming.dataDomain;
|
|
329
|
+
if (!(existing_dataDomain === incoming_dataDomain)) {
|
|
330
|
+
return false;
|
|
331
|
+
}
|
|
332
|
+
var existing_dataType = existing.dataType;
|
|
333
|
+
var incoming_dataType = incoming.dataType;
|
|
334
|
+
if (!(existing_dataType === incoming_dataType)) {
|
|
335
|
+
return false;
|
|
336
|
+
}
|
|
337
|
+
var existing_objectName = existing.objectName;
|
|
338
|
+
var incoming_objectName = incoming.objectName;
|
|
339
|
+
if (!(existing_objectName === incoming_objectName)) {
|
|
340
|
+
return false;
|
|
341
|
+
}
|
|
342
|
+
var existing_sourceColumnApiName = existing.sourceColumnApiName;
|
|
343
|
+
var incoming_sourceColumnApiName = incoming.sourceColumnApiName;
|
|
344
|
+
if (!(existing_sourceColumnApiName === incoming_sourceColumnApiName)) {
|
|
345
|
+
return false;
|
|
346
|
+
}
|
|
347
|
+
var existing_sourceFieldName = existing.sourceFieldName;
|
|
348
|
+
var incoming_sourceFieldName = incoming.sourceFieldName;
|
|
349
|
+
if (!(existing_sourceFieldName === incoming_sourceFieldName)) {
|
|
350
|
+
return false;
|
|
351
|
+
}
|
|
352
|
+
return true;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
var VERSION$a = "9d133a939d3bf9e4f6209870e525ff9f";
|
|
356
|
+
function validate$d(obj, path) {
|
|
357
|
+
if (path === void 0) { path = 'ALDMemberStatusOutputRepresentation'; }
|
|
358
|
+
var v_error = (function () {
|
|
359
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
360
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
361
|
+
}
|
|
362
|
+
var obj_iconName = obj.iconName;
|
|
363
|
+
var path_iconName = path + '.iconName';
|
|
364
|
+
if (typeof obj_iconName !== 'string') {
|
|
365
|
+
return new TypeError('Expected "string" but received "' + typeof obj_iconName + '" (at "' + path_iconName + '")');
|
|
366
|
+
}
|
|
367
|
+
var obj_id = obj.id;
|
|
368
|
+
var path_id = path + '.id';
|
|
369
|
+
if (typeof obj_id !== 'string') {
|
|
370
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
371
|
+
}
|
|
372
|
+
var obj_status = obj.status;
|
|
373
|
+
var path_status = path + '.status';
|
|
374
|
+
if (typeof obj_status !== 'string') {
|
|
375
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
376
|
+
}
|
|
377
|
+
})();
|
|
378
|
+
return v_error === undefined ? null : v_error;
|
|
379
|
+
}
|
|
380
|
+
var select$f = function ALDMemberStatusOutputRepresentationSelect() {
|
|
381
|
+
return {
|
|
382
|
+
kind: 'Fragment',
|
|
383
|
+
version: VERSION$a,
|
|
384
|
+
private: [],
|
|
385
|
+
selections: [
|
|
386
|
+
{
|
|
387
|
+
name: 'iconName',
|
|
388
|
+
kind: 'Scalar'
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
name: 'id',
|
|
392
|
+
kind: 'Scalar'
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name: 'status',
|
|
396
|
+
kind: 'Scalar'
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
function equals$a(existing, incoming) {
|
|
402
|
+
var existing_iconName = existing.iconName;
|
|
403
|
+
var incoming_iconName = incoming.iconName;
|
|
404
|
+
if (!(existing_iconName === incoming_iconName)) {
|
|
405
|
+
return false;
|
|
406
|
+
}
|
|
407
|
+
var existing_id = existing.id;
|
|
408
|
+
var incoming_id = incoming.id;
|
|
409
|
+
if (!(existing_id === incoming_id)) {
|
|
410
|
+
return false;
|
|
411
|
+
}
|
|
412
|
+
var existing_status = existing.status;
|
|
413
|
+
var incoming_status = incoming.status;
|
|
414
|
+
if (!(existing_status === incoming_status)) {
|
|
415
|
+
return false;
|
|
416
|
+
}
|
|
417
|
+
return true;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
var VERSION$9 = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
|
|
421
|
+
function validate$c(obj, path) {
|
|
422
|
+
if (path === void 0) { path = 'ActionableListDefinitionOutputRepresentation'; }
|
|
423
|
+
var v_error = (function () {
|
|
424
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
425
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
426
|
+
}
|
|
427
|
+
var obj_aldDatasetColumnOutputRepresentation = obj.aldDatasetColumnOutputRepresentation;
|
|
428
|
+
var path_aldDatasetColumnOutputRepresentation = path + '.aldDatasetColumnOutputRepresentation';
|
|
429
|
+
if (!ArrayIsArray(obj_aldDatasetColumnOutputRepresentation)) {
|
|
430
|
+
return new TypeError('Expected "array" but received "' + typeof obj_aldDatasetColumnOutputRepresentation + '" (at "' + path_aldDatasetColumnOutputRepresentation + '")');
|
|
431
|
+
}
|
|
432
|
+
for (var i = 0; i < obj_aldDatasetColumnOutputRepresentation.length; i++) {
|
|
433
|
+
var obj_aldDatasetColumnOutputRepresentation_item = obj_aldDatasetColumnOutputRepresentation[i];
|
|
434
|
+
var path_aldDatasetColumnOutputRepresentation_item = path_aldDatasetColumnOutputRepresentation + '[' + i + ']';
|
|
435
|
+
var referencepath_aldDatasetColumnOutputRepresentation_itemValidationError = validate$e(obj_aldDatasetColumnOutputRepresentation_item, path_aldDatasetColumnOutputRepresentation_item);
|
|
436
|
+
if (referencepath_aldDatasetColumnOutputRepresentation_itemValidationError !== null) {
|
|
437
|
+
var message = 'Object doesn\'t match ALDDatasetColumnOutputRepresentation (at "' + path_aldDatasetColumnOutputRepresentation_item + '")\n';
|
|
438
|
+
message += referencepath_aldDatasetColumnOutputRepresentation_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
439
|
+
return new TypeError(message);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
var obj_aldMemberStatusOutputRepresentation = obj.aldMemberStatusOutputRepresentation;
|
|
443
|
+
var path_aldMemberStatusOutputRepresentation = path + '.aldMemberStatusOutputRepresentation';
|
|
444
|
+
if (!ArrayIsArray(obj_aldMemberStatusOutputRepresentation)) {
|
|
445
|
+
return new TypeError('Expected "array" but received "' + typeof obj_aldMemberStatusOutputRepresentation + '" (at "' + path_aldMemberStatusOutputRepresentation + '")');
|
|
446
|
+
}
|
|
447
|
+
for (var i = 0; i < obj_aldMemberStatusOutputRepresentation.length; i++) {
|
|
448
|
+
var obj_aldMemberStatusOutputRepresentation_item = obj_aldMemberStatusOutputRepresentation[i];
|
|
449
|
+
var path_aldMemberStatusOutputRepresentation_item = path_aldMemberStatusOutputRepresentation + '[' + i + ']';
|
|
450
|
+
var referencepath_aldMemberStatusOutputRepresentation_itemValidationError = validate$d(obj_aldMemberStatusOutputRepresentation_item, path_aldMemberStatusOutputRepresentation_item);
|
|
451
|
+
if (referencepath_aldMemberStatusOutputRepresentation_itemValidationError !== null) {
|
|
452
|
+
var message = 'Object doesn\'t match ALDMemberStatusOutputRepresentation (at "' + path_aldMemberStatusOutputRepresentation_item + '")\n';
|
|
453
|
+
message += referencepath_aldMemberStatusOutputRepresentation_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
454
|
+
return new TypeError(message);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
var obj_batchCalcJobDefinitionId = obj.batchCalcJobDefinitionId;
|
|
458
|
+
var path_batchCalcJobDefinitionId = path + '.batchCalcJobDefinitionId';
|
|
459
|
+
var obj_batchCalcJobDefinitionId_union0 = null;
|
|
460
|
+
var obj_batchCalcJobDefinitionId_union0_error = (function () {
|
|
461
|
+
if (typeof obj_batchCalcJobDefinitionId !== 'string') {
|
|
462
|
+
return new TypeError('Expected "string" but received "' + typeof obj_batchCalcJobDefinitionId + '" (at "' + path_batchCalcJobDefinitionId + '")');
|
|
463
|
+
}
|
|
464
|
+
})();
|
|
465
|
+
if (obj_batchCalcJobDefinitionId_union0_error != null) {
|
|
466
|
+
obj_batchCalcJobDefinitionId_union0 = obj_batchCalcJobDefinitionId_union0_error.message;
|
|
467
|
+
}
|
|
468
|
+
var obj_batchCalcJobDefinitionId_union1 = null;
|
|
469
|
+
var obj_batchCalcJobDefinitionId_union1_error = (function () {
|
|
470
|
+
if (obj_batchCalcJobDefinitionId !== null) {
|
|
471
|
+
return new TypeError('Expected "null" but received "' + typeof obj_batchCalcJobDefinitionId + '" (at "' + path_batchCalcJobDefinitionId + '")');
|
|
472
|
+
}
|
|
473
|
+
})();
|
|
474
|
+
if (obj_batchCalcJobDefinitionId_union1_error != null) {
|
|
475
|
+
obj_batchCalcJobDefinitionId_union1 = obj_batchCalcJobDefinitionId_union1_error.message;
|
|
476
|
+
}
|
|
477
|
+
if (obj_batchCalcJobDefinitionId_union0 && obj_batchCalcJobDefinitionId_union1) {
|
|
478
|
+
var message = 'Object doesn\'t match union (at "' + path_batchCalcJobDefinitionId + '")';
|
|
479
|
+
message += '\n' + obj_batchCalcJobDefinitionId_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
480
|
+
message += '\n' + obj_batchCalcJobDefinitionId_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
481
|
+
return new TypeError(message);
|
|
482
|
+
}
|
|
483
|
+
var obj_fullName = obj.fullName;
|
|
484
|
+
var path_fullName = path + '.fullName';
|
|
485
|
+
if (typeof obj_fullName !== 'string') {
|
|
486
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fullName + '" (at "' + path_fullName + '")');
|
|
487
|
+
}
|
|
488
|
+
var obj_id = obj.id;
|
|
489
|
+
var path_id = path + '.id';
|
|
490
|
+
if (typeof obj_id !== 'string') {
|
|
491
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
492
|
+
}
|
|
493
|
+
var obj_isActive = obj.isActive;
|
|
494
|
+
var path_isActive = path + '.isActive';
|
|
495
|
+
if (typeof obj_isActive !== 'boolean') {
|
|
496
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
497
|
+
}
|
|
498
|
+
var obj_objectName = obj.objectName;
|
|
499
|
+
var path_objectName = path + '.objectName';
|
|
500
|
+
if (typeof obj_objectName !== 'string') {
|
|
501
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
502
|
+
}
|
|
503
|
+
var obj_status = obj.status;
|
|
504
|
+
var path_status = path + '.status';
|
|
505
|
+
if (typeof obj_status !== 'string') {
|
|
506
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
507
|
+
}
|
|
508
|
+
var obj_tcrmDatasetId = obj.tcrmDatasetId;
|
|
509
|
+
var path_tcrmDatasetId = path + '.tcrmDatasetId';
|
|
510
|
+
var obj_tcrmDatasetId_union0 = null;
|
|
511
|
+
var obj_tcrmDatasetId_union0_error = (function () {
|
|
512
|
+
if (typeof obj_tcrmDatasetId !== 'string') {
|
|
513
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tcrmDatasetId + '" (at "' + path_tcrmDatasetId + '")');
|
|
514
|
+
}
|
|
515
|
+
})();
|
|
516
|
+
if (obj_tcrmDatasetId_union0_error != null) {
|
|
517
|
+
obj_tcrmDatasetId_union0 = obj_tcrmDatasetId_union0_error.message;
|
|
518
|
+
}
|
|
519
|
+
var obj_tcrmDatasetId_union1 = null;
|
|
520
|
+
var obj_tcrmDatasetId_union1_error = (function () {
|
|
521
|
+
if (obj_tcrmDatasetId !== null) {
|
|
522
|
+
return new TypeError('Expected "null" but received "' + typeof obj_tcrmDatasetId + '" (at "' + path_tcrmDatasetId + '")');
|
|
523
|
+
}
|
|
524
|
+
})();
|
|
525
|
+
if (obj_tcrmDatasetId_union1_error != null) {
|
|
526
|
+
obj_tcrmDatasetId_union1 = obj_tcrmDatasetId_union1_error.message;
|
|
527
|
+
}
|
|
528
|
+
if (obj_tcrmDatasetId_union0 && obj_tcrmDatasetId_union1) {
|
|
529
|
+
var message = 'Object doesn\'t match union (at "' + path_tcrmDatasetId + '")';
|
|
530
|
+
message += '\n' + obj_tcrmDatasetId_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
531
|
+
message += '\n' + obj_tcrmDatasetId_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
532
|
+
return new TypeError(message);
|
|
533
|
+
}
|
|
534
|
+
var obj_tcrmDatasetName = obj.tcrmDatasetName;
|
|
535
|
+
var path_tcrmDatasetName = path + '.tcrmDatasetName';
|
|
536
|
+
if (typeof obj_tcrmDatasetName !== 'string') {
|
|
537
|
+
return new TypeError('Expected "string" but received "' + typeof obj_tcrmDatasetName + '" (at "' + path_tcrmDatasetName + '")');
|
|
538
|
+
}
|
|
539
|
+
})();
|
|
540
|
+
return v_error === undefined ? null : v_error;
|
|
541
|
+
}
|
|
542
|
+
var select$e = function ActionableListDefinitionOutputRepresentationSelect() {
|
|
543
|
+
var _a = select$g(), ALDDatasetColumnOutputRepresentation__selections = _a.selections;
|
|
544
|
+
var _b = select$f(), ALDMemberStatusOutputRepresentation__selections = _b.selections;
|
|
545
|
+
return {
|
|
546
|
+
kind: 'Fragment',
|
|
547
|
+
version: VERSION$9,
|
|
548
|
+
private: [],
|
|
549
|
+
selections: [
|
|
550
|
+
{
|
|
551
|
+
name: 'aldDatasetColumnOutputRepresentation',
|
|
552
|
+
kind: 'Object',
|
|
553
|
+
plural: true,
|
|
554
|
+
selections: ALDDatasetColumnOutputRepresentation__selections
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
name: 'aldMemberStatusOutputRepresentation',
|
|
558
|
+
kind: 'Object',
|
|
559
|
+
plural: true,
|
|
560
|
+
selections: ALDMemberStatusOutputRepresentation__selections
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: 'batchCalcJobDefinitionId',
|
|
564
|
+
kind: 'Scalar'
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
name: 'fullName',
|
|
568
|
+
kind: 'Scalar'
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
name: 'id',
|
|
572
|
+
kind: 'Scalar'
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
name: 'isActive',
|
|
576
|
+
kind: 'Scalar'
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
name: 'objectName',
|
|
580
|
+
kind: 'Scalar'
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
name: 'status',
|
|
584
|
+
kind: 'Scalar'
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
name: 'tcrmDatasetId',
|
|
588
|
+
kind: 'Scalar'
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
name: 'tcrmDatasetName',
|
|
592
|
+
kind: 'Scalar'
|
|
593
|
+
}
|
|
594
|
+
]
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
function equals$9(existing, incoming) {
|
|
598
|
+
var existing_isActive = existing.isActive;
|
|
599
|
+
var incoming_isActive = incoming.isActive;
|
|
600
|
+
if (!(existing_isActive === incoming_isActive)) {
|
|
601
|
+
return false;
|
|
602
|
+
}
|
|
603
|
+
var existing_fullName = existing.fullName;
|
|
604
|
+
var incoming_fullName = incoming.fullName;
|
|
605
|
+
if (!(existing_fullName === incoming_fullName)) {
|
|
606
|
+
return false;
|
|
607
|
+
}
|
|
608
|
+
var existing_id = existing.id;
|
|
609
|
+
var incoming_id = incoming.id;
|
|
610
|
+
if (!(existing_id === incoming_id)) {
|
|
611
|
+
return false;
|
|
612
|
+
}
|
|
613
|
+
var existing_objectName = existing.objectName;
|
|
614
|
+
var incoming_objectName = incoming.objectName;
|
|
615
|
+
if (!(existing_objectName === incoming_objectName)) {
|
|
616
|
+
return false;
|
|
617
|
+
}
|
|
618
|
+
var existing_status = existing.status;
|
|
619
|
+
var incoming_status = incoming.status;
|
|
620
|
+
if (!(existing_status === incoming_status)) {
|
|
621
|
+
return false;
|
|
622
|
+
}
|
|
623
|
+
var existing_tcrmDatasetName = existing.tcrmDatasetName;
|
|
624
|
+
var incoming_tcrmDatasetName = incoming.tcrmDatasetName;
|
|
625
|
+
if (!(existing_tcrmDatasetName === incoming_tcrmDatasetName)) {
|
|
626
|
+
return false;
|
|
627
|
+
}
|
|
628
|
+
var existing_aldDatasetColumnOutputRepresentation = existing.aldDatasetColumnOutputRepresentation;
|
|
629
|
+
var incoming_aldDatasetColumnOutputRepresentation = incoming.aldDatasetColumnOutputRepresentation;
|
|
630
|
+
var equals_aldDatasetColumnOutputRepresentation_items = equalsArray(existing_aldDatasetColumnOutputRepresentation, incoming_aldDatasetColumnOutputRepresentation, function (existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item) {
|
|
631
|
+
if (!(equals$b(existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item))) {
|
|
632
|
+
return false;
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
if (equals_aldDatasetColumnOutputRepresentation_items === false) {
|
|
636
|
+
return false;
|
|
637
|
+
}
|
|
638
|
+
var existing_aldMemberStatusOutputRepresentation = existing.aldMemberStatusOutputRepresentation;
|
|
639
|
+
var incoming_aldMemberStatusOutputRepresentation = incoming.aldMemberStatusOutputRepresentation;
|
|
640
|
+
var equals_aldMemberStatusOutputRepresentation_items = equalsArray(existing_aldMemberStatusOutputRepresentation, incoming_aldMemberStatusOutputRepresentation, function (existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item) {
|
|
641
|
+
if (!(equals$a(existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item))) {
|
|
642
|
+
return false;
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
if (equals_aldMemberStatusOutputRepresentation_items === false) {
|
|
646
|
+
return false;
|
|
647
|
+
}
|
|
648
|
+
var existing_batchCalcJobDefinitionId = existing.batchCalcJobDefinitionId;
|
|
649
|
+
var incoming_batchCalcJobDefinitionId = incoming.batchCalcJobDefinitionId;
|
|
650
|
+
if (!(existing_batchCalcJobDefinitionId === incoming_batchCalcJobDefinitionId)) {
|
|
651
|
+
return false;
|
|
652
|
+
}
|
|
653
|
+
var existing_tcrmDatasetId = existing.tcrmDatasetId;
|
|
654
|
+
var incoming_tcrmDatasetId = incoming.tcrmDatasetId;
|
|
655
|
+
if (!(existing_tcrmDatasetId === incoming_tcrmDatasetId)) {
|
|
656
|
+
return false;
|
|
657
|
+
}
|
|
658
|
+
return true;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
var TTL$4 = 100;
|
|
662
|
+
var VERSION$8 = "4c1ba3bd226b3670b78af4e7ea159854";
|
|
663
|
+
function validate$b(obj, path) {
|
|
664
|
+
if (path === void 0) { path = 'ActionableListDefinitionGetAllOutputRepresentation'; }
|
|
665
|
+
var v_error = (function () {
|
|
666
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
667
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
668
|
+
}
|
|
669
|
+
var obj_aldList = obj.aldList;
|
|
670
|
+
var path_aldList = path + '.aldList';
|
|
671
|
+
if (!ArrayIsArray(obj_aldList)) {
|
|
672
|
+
return new TypeError('Expected "array" but received "' + typeof obj_aldList + '" (at "' + path_aldList + '")');
|
|
673
|
+
}
|
|
674
|
+
for (var i = 0; i < obj_aldList.length; i++) {
|
|
675
|
+
var obj_aldList_item = obj_aldList[i];
|
|
676
|
+
var path_aldList_item = path_aldList + '[' + i + ']';
|
|
677
|
+
var referencepath_aldList_itemValidationError = validate$c(obj_aldList_item, path_aldList_item);
|
|
678
|
+
if (referencepath_aldList_itemValidationError !== null) {
|
|
679
|
+
var message = 'Object doesn\'t match ActionableListDefinitionOutputRepresentation (at "' + path_aldList_item + '")\n';
|
|
680
|
+
message += referencepath_aldList_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
681
|
+
return new TypeError(message);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
})();
|
|
685
|
+
return v_error === undefined ? null : v_error;
|
|
686
|
+
}
|
|
687
|
+
var RepresentationType$4 = 'ActionableListDefinitionGetAllOutputRepresentation';
|
|
688
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
689
|
+
return input;
|
|
690
|
+
}
|
|
691
|
+
var select$d = function ActionableListDefinitionGetAllOutputRepresentationSelect() {
|
|
692
|
+
var _a = select$e(), ActionableListDefinitionOutputRepresentation__selections = _a.selections;
|
|
693
|
+
return {
|
|
694
|
+
kind: 'Fragment',
|
|
695
|
+
version: VERSION$8,
|
|
696
|
+
private: [],
|
|
697
|
+
selections: [
|
|
698
|
+
{
|
|
699
|
+
name: 'aldList',
|
|
700
|
+
kind: 'Object',
|
|
701
|
+
plural: true,
|
|
702
|
+
selections: ActionableListDefinitionOutputRepresentation__selections
|
|
703
|
+
}
|
|
704
|
+
]
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
function equals$8(existing, incoming) {
|
|
708
|
+
var existing_aldList = existing.aldList;
|
|
709
|
+
var incoming_aldList = incoming.aldList;
|
|
710
|
+
var equals_aldList_items = equalsArray(existing_aldList, incoming_aldList, function (existing_aldList_item, incoming_aldList_item) {
|
|
711
|
+
if (!(equals$9(existing_aldList_item, incoming_aldList_item))) {
|
|
712
|
+
return false;
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
if (equals_aldList_items === false) {
|
|
716
|
+
return false;
|
|
717
|
+
}
|
|
718
|
+
return true;
|
|
719
|
+
}
|
|
720
|
+
var ingest$4 = function ActionableListDefinitionGetAllOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
721
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
722
|
+
var validateError = validate$b(input);
|
|
723
|
+
if (validateError !== null) {
|
|
724
|
+
throw validateError;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
var key = path.fullPath;
|
|
728
|
+
var existingRecord = store.readEntry(key);
|
|
729
|
+
var ttlToUse = TTL$4;
|
|
730
|
+
var incomingRecord = normalize$4(input, store.readEntry(key), {
|
|
731
|
+
fullPath: key,
|
|
732
|
+
parent: path.parent,
|
|
733
|
+
propertyName: path.propertyName,
|
|
734
|
+
ttl: ttlToUse
|
|
735
|
+
});
|
|
736
|
+
if (existingRecord === undefined || equals$8(existingRecord, incomingRecord) === false) {
|
|
737
|
+
luvio.storePublish(key, incomingRecord);
|
|
738
|
+
}
|
|
739
|
+
{
|
|
740
|
+
var storeMetadataParams = {
|
|
741
|
+
ttl: ttlToUse,
|
|
742
|
+
namespace: "actionablelist",
|
|
743
|
+
version: VERSION$8,
|
|
744
|
+
representationName: RepresentationType$4,
|
|
745
|
+
};
|
|
746
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
747
|
+
}
|
|
748
|
+
return createLink(key);
|
|
749
|
+
};
|
|
750
|
+
function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
751
|
+
var rootKeySet = new engine.StoreKeyMap();
|
|
752
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
753
|
+
var rootKey = fullPathFactory();
|
|
754
|
+
rootKeySet.set(rootKey, {
|
|
755
|
+
namespace: keyPrefix,
|
|
756
|
+
representationName: RepresentationType$4,
|
|
757
|
+
mergeable: false
|
|
758
|
+
});
|
|
759
|
+
return rootKeySet;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
function select$c(luvio, params) {
|
|
763
|
+
return select$d();
|
|
764
|
+
}
|
|
765
|
+
function keyBuilder$7(luvio, params) {
|
|
766
|
+
return keyPrefix + '::ActionableListDefinitionGetAllOutputRepresentation:(' + 'id:' + params.queryParams.id + ',' + 'isActive:' + params.queryParams.isActive + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
767
|
+
}
|
|
768
|
+
function getResponseCacheKeys$4(luvio, resourceParams, response) {
|
|
769
|
+
return getTypeCacheKeys$4(luvio, response, function () { return keyBuilder$7(luvio, resourceParams); });
|
|
770
|
+
}
|
|
771
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
772
|
+
var body = response.body;
|
|
773
|
+
var key = keyBuilder$7(luvio, resourceParams);
|
|
774
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
775
|
+
var snapshot = luvio.storeLookup({
|
|
776
|
+
recordId: key,
|
|
777
|
+
node: select$c(),
|
|
778
|
+
variables: {},
|
|
779
|
+
}, snapshotRefresh);
|
|
780
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
781
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
782
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
return snapshot;
|
|
786
|
+
}
|
|
787
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
788
|
+
var key = keyBuilder$7(luvio, params);
|
|
789
|
+
var errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
790
|
+
var storeMetadataParams = {
|
|
791
|
+
ttl: TTL$4,
|
|
792
|
+
namespace: keyPrefix,
|
|
793
|
+
version: VERSION$8,
|
|
794
|
+
representationName: RepresentationType$4
|
|
795
|
+
};
|
|
796
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
797
|
+
return errorSnapshot;
|
|
798
|
+
}
|
|
799
|
+
function createResourceRequest$4(config) {
|
|
800
|
+
var headers = {};
|
|
801
|
+
return {
|
|
802
|
+
baseUri: '/services/data/v58.0',
|
|
803
|
+
basePath: '/connect/actionable-list-definition',
|
|
804
|
+
method: 'get',
|
|
805
|
+
body: null,
|
|
806
|
+
urlParams: {},
|
|
807
|
+
queryParams: config.queryParams,
|
|
808
|
+
headers: headers,
|
|
809
|
+
priority: 'normal',
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
var getActionableListDefinitions_ConfigPropertyNames = {
|
|
814
|
+
displayName: 'getActionableListDefinitions',
|
|
815
|
+
parameters: {
|
|
816
|
+
required: [],
|
|
817
|
+
optional: ['id', 'isActive', 'limit', 'offset']
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
function createResourceParams$4(config) {
|
|
821
|
+
var resourceParams = {
|
|
822
|
+
queryParams: {
|
|
823
|
+
id: config.id, isActive: config.isActive, limit: config.limit, offset: config.offset
|
|
824
|
+
}
|
|
825
|
+
};
|
|
826
|
+
return resourceParams;
|
|
827
|
+
}
|
|
828
|
+
function keyBuilder$6(luvio, config) {
|
|
829
|
+
var resourceParams = createResourceParams$4(config);
|
|
830
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
831
|
+
}
|
|
832
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
833
|
+
var config = {};
|
|
834
|
+
var untrustedConfig_id = untrustedConfig.id;
|
|
835
|
+
if (typeof untrustedConfig_id === 'string') {
|
|
836
|
+
config.id = untrustedConfig_id;
|
|
837
|
+
}
|
|
838
|
+
var untrustedConfig_isActive = untrustedConfig.isActive;
|
|
839
|
+
if (typeof untrustedConfig_isActive === 'boolean') {
|
|
840
|
+
config.isActive = untrustedConfig_isActive;
|
|
841
|
+
}
|
|
842
|
+
var untrustedConfig_limit = untrustedConfig.limit;
|
|
843
|
+
if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
|
|
844
|
+
config.limit = untrustedConfig_limit;
|
|
845
|
+
}
|
|
846
|
+
var untrustedConfig_offset = untrustedConfig.offset;
|
|
847
|
+
if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
|
|
848
|
+
config.offset = untrustedConfig_offset;
|
|
849
|
+
}
|
|
850
|
+
return config;
|
|
851
|
+
}
|
|
852
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
853
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
854
|
+
return null;
|
|
855
|
+
}
|
|
856
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
857
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
858
|
+
}
|
|
859
|
+
var config = typeCheckConfig$4(untrustedConfig);
|
|
860
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
861
|
+
return null;
|
|
862
|
+
}
|
|
863
|
+
return config;
|
|
864
|
+
}
|
|
865
|
+
function adapterFragment$2(luvio, config) {
|
|
866
|
+
createResourceParams$4(config);
|
|
867
|
+
return select$c();
|
|
868
|
+
}
|
|
869
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
870
|
+
var snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
871
|
+
config: config,
|
|
872
|
+
resolve: function () { return buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions); }
|
|
873
|
+
});
|
|
874
|
+
return luvio.storeBroadcast().then(function () { return snapshot; });
|
|
875
|
+
}
|
|
876
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
877
|
+
var snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
878
|
+
config: config,
|
|
879
|
+
resolve: function () { return buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions); }
|
|
880
|
+
});
|
|
881
|
+
return luvio.storeBroadcast().then(function () { return snapshot; });
|
|
882
|
+
}
|
|
883
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
884
|
+
var resourceParams = createResourceParams$4(config);
|
|
885
|
+
var request = createResourceRequest$4(resourceParams);
|
|
886
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
887
|
+
.then(function (response) {
|
|
888
|
+
return luvio.handleSuccessResponse(function () { return onFetchResponseSuccess$2(luvio, config, resourceParams, response); }, function () { return getResponseCacheKeys$4(luvio, resourceParams, response.body); });
|
|
889
|
+
}, function (response) {
|
|
890
|
+
return luvio.handleErrorResponse(function () { return onFetchResponseError$2(luvio, config, resourceParams, response); });
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
894
|
+
var luvio = context.luvio, config = context.config;
|
|
895
|
+
var networkPriority = coercedAdapterRequestContext.networkPriority, requestCorrelator = coercedAdapterRequestContext.requestCorrelator, eventObservers = coercedAdapterRequestContext.eventObservers;
|
|
896
|
+
var dispatchOptions = {
|
|
897
|
+
resourceRequestContext: {
|
|
898
|
+
requestCorrelator: requestCorrelator,
|
|
899
|
+
luvioRequestMethod: undefined,
|
|
900
|
+
},
|
|
901
|
+
eventObservers: eventObservers
|
|
902
|
+
};
|
|
903
|
+
if (networkPriority !== 'normal') {
|
|
904
|
+
dispatchOptions.overrides = {
|
|
905
|
+
priority: networkPriority
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
return buildNetworkSnapshot$4(luvio, config, dispatchOptions);
|
|
909
|
+
}
|
|
910
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
911
|
+
var luvio = context.luvio, config = context.config;
|
|
912
|
+
var selector = {
|
|
913
|
+
recordId: keyBuilder$6(luvio, config),
|
|
914
|
+
node: adapterFragment$2(luvio, config),
|
|
915
|
+
variables: {},
|
|
916
|
+
};
|
|
917
|
+
var cacheSnapshot = storeLookup(selector, {
|
|
918
|
+
config: config,
|
|
919
|
+
resolve: function () { return buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions); }
|
|
920
|
+
});
|
|
921
|
+
return cacheSnapshot;
|
|
922
|
+
}
|
|
923
|
+
var getActionableListDefinitionsAdapterFactory = function (luvio) { return function actionablelist__getActionableListDefinitions(untrustedConfig, requestContext) {
|
|
924
|
+
var config = validateAdapterConfig$4(untrustedConfig, getActionableListDefinitions_ConfigPropertyNames);
|
|
925
|
+
// Invalid or incomplete config
|
|
926
|
+
if (config === null) {
|
|
927
|
+
return null;
|
|
928
|
+
}
|
|
929
|
+
return luvio.applyCachePolicy((requestContext || {}), { config: config, luvio: luvio }, // BuildSnapshotContext
|
|
930
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
931
|
+
}; };
|
|
932
|
+
|
|
933
|
+
function validate$a(obj, path) {
|
|
934
|
+
if (path === void 0) { path = 'ActionableListDefinitionCreateInputRepresentation'; }
|
|
935
|
+
var v_error = (function () {
|
|
936
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
937
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
938
|
+
}
|
|
939
|
+
var obj_developerName = obj.developerName;
|
|
940
|
+
var path_developerName = path + '.developerName';
|
|
941
|
+
if (typeof obj_developerName !== 'string') {
|
|
942
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
943
|
+
}
|
|
944
|
+
var obj_label = obj.label;
|
|
945
|
+
var path_label = path + '.label';
|
|
946
|
+
if (typeof obj_label !== 'string') {
|
|
947
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
948
|
+
}
|
|
949
|
+
var obj_objectName = obj.objectName;
|
|
950
|
+
var path_objectName = path + '.objectName';
|
|
951
|
+
if (typeof obj_objectName !== 'string') {
|
|
952
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
953
|
+
}
|
|
954
|
+
})();
|
|
955
|
+
return v_error === undefined ? null : v_error;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
var VERSION$7 = "c011e92d9100cd54f4f75b6951999c39";
|
|
959
|
+
function validate$9(obj, path) {
|
|
960
|
+
if (path === void 0) { path = 'ActionableListDefinitionStatusOutputRepresentation'; }
|
|
961
|
+
var v_error = (function () {
|
|
962
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
963
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
964
|
+
}
|
|
965
|
+
var obj_code = obj.code;
|
|
966
|
+
var path_code = path + '.code';
|
|
967
|
+
if (typeof obj_code !== 'number' || (typeof obj_code === 'number' && Math.floor(obj_code) !== obj_code)) {
|
|
968
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_code + '" (at "' + path_code + '")');
|
|
969
|
+
}
|
|
970
|
+
var obj_message = obj.message;
|
|
971
|
+
var path_message = path + '.message';
|
|
972
|
+
if (typeof obj_message !== 'string') {
|
|
973
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
974
|
+
}
|
|
975
|
+
})();
|
|
976
|
+
return v_error === undefined ? null : v_error;
|
|
977
|
+
}
|
|
978
|
+
var select$b = function ActionableListDefinitionStatusOutputRepresentationSelect() {
|
|
979
|
+
return {
|
|
980
|
+
kind: 'Fragment',
|
|
981
|
+
version: VERSION$7,
|
|
982
|
+
private: [],
|
|
983
|
+
selections: [
|
|
984
|
+
{
|
|
985
|
+
name: 'code',
|
|
986
|
+
kind: 'Scalar'
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
name: 'message',
|
|
990
|
+
kind: 'Scalar'
|
|
991
|
+
}
|
|
992
|
+
]
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
function equals$7(existing, incoming) {
|
|
996
|
+
var existing_code = existing.code;
|
|
997
|
+
var incoming_code = incoming.code;
|
|
998
|
+
if (!(existing_code === incoming_code)) {
|
|
999
|
+
return false;
|
|
1000
|
+
}
|
|
1001
|
+
var existing_message = existing.message;
|
|
1002
|
+
var incoming_message = incoming.message;
|
|
1003
|
+
if (!(existing_message === incoming_message)) {
|
|
1004
|
+
return false;
|
|
1005
|
+
}
|
|
1006
|
+
return true;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
var TTL$3 = 100;
|
|
1010
|
+
var VERSION$6 = "7f7f8555df2466c8cbc7878266c1decd";
|
|
1011
|
+
function validate$8(obj, path) {
|
|
1012
|
+
if (path === void 0) { path = 'ActionableListDefinitionCreateOutputRepresentation'; }
|
|
1013
|
+
var v_error = (function () {
|
|
1014
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1015
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1016
|
+
}
|
|
1017
|
+
var obj_actionableListDefinition = obj.actionableListDefinition;
|
|
1018
|
+
var path_actionableListDefinition = path + '.actionableListDefinition';
|
|
1019
|
+
var referencepath_actionableListDefinitionValidationError = validate$c(obj_actionableListDefinition, path_actionableListDefinition);
|
|
1020
|
+
if (referencepath_actionableListDefinitionValidationError !== null) {
|
|
1021
|
+
var message = 'Object doesn\'t match ActionableListDefinitionOutputRepresentation (at "' + path_actionableListDefinition + '")\n';
|
|
1022
|
+
message += referencepath_actionableListDefinitionValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1023
|
+
return new TypeError(message);
|
|
1024
|
+
}
|
|
1025
|
+
var obj_status = obj.status;
|
|
1026
|
+
var path_status = path + '.status';
|
|
1027
|
+
var referencepath_statusValidationError = validate$9(obj_status, path_status);
|
|
1028
|
+
if (referencepath_statusValidationError !== null) {
|
|
1029
|
+
var message = 'Object doesn\'t match ActionableListDefinitionStatusOutputRepresentation (at "' + path_status + '")\n';
|
|
1030
|
+
message += referencepath_statusValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1031
|
+
return new TypeError(message);
|
|
1032
|
+
}
|
|
1033
|
+
})();
|
|
1034
|
+
return v_error === undefined ? null : v_error;
|
|
1035
|
+
}
|
|
1036
|
+
var RepresentationType$3 = 'ActionableListDefinitionCreateOutputRepresentation';
|
|
1037
|
+
function keyBuilder$5(luvio, config) {
|
|
1038
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
|
|
1039
|
+
}
|
|
1040
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
1041
|
+
var keyParams = {
|
|
1042
|
+
id: object.actionableListDefinition.id
|
|
1043
|
+
};
|
|
1044
|
+
return keyBuilder$5(luvio, keyParams);
|
|
1045
|
+
}
|
|
1046
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
1047
|
+
return input;
|
|
1048
|
+
}
|
|
1049
|
+
var select$a = function ActionableListDefinitionCreateOutputRepresentationSelect() {
|
|
1050
|
+
var _a = select$e(), ActionableListDefinitionOutputRepresentation__selections = _a.selections;
|
|
1051
|
+
var _b = select$b(), ActionableListDefinitionStatusOutputRepresentation__selections = _b.selections;
|
|
1052
|
+
return {
|
|
1053
|
+
kind: 'Fragment',
|
|
1054
|
+
version: VERSION$6,
|
|
1055
|
+
private: [],
|
|
1056
|
+
selections: [
|
|
1057
|
+
{
|
|
1058
|
+
name: 'actionableListDefinition',
|
|
1059
|
+
kind: 'Object',
|
|
1060
|
+
selections: ActionableListDefinitionOutputRepresentation__selections
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
name: 'status',
|
|
1064
|
+
kind: 'Object',
|
|
1065
|
+
selections: ActionableListDefinitionStatusOutputRepresentation__selections
|
|
1066
|
+
}
|
|
1067
|
+
]
|
|
1068
|
+
};
|
|
1069
|
+
};
|
|
1070
|
+
function equals$6(existing, incoming) {
|
|
1071
|
+
var existing_actionableListDefinition = existing.actionableListDefinition;
|
|
1072
|
+
var incoming_actionableListDefinition = incoming.actionableListDefinition;
|
|
1073
|
+
if (!(equals$9(existing_actionableListDefinition, incoming_actionableListDefinition))) {
|
|
1074
|
+
return false;
|
|
1075
|
+
}
|
|
1076
|
+
var existing_status = existing.status;
|
|
1077
|
+
var incoming_status = incoming.status;
|
|
1078
|
+
if (!(equals$7(existing_status, incoming_status))) {
|
|
1079
|
+
return false;
|
|
1080
|
+
}
|
|
1081
|
+
return true;
|
|
1082
|
+
}
|
|
1083
|
+
var ingest$3 = function ActionableListDefinitionCreateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1084
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1085
|
+
var validateError = validate$8(input);
|
|
1086
|
+
if (validateError !== null) {
|
|
1087
|
+
throw validateError;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
var key = keyBuilderFromType$1(luvio, input);
|
|
1091
|
+
var existingRecord = store.readEntry(key);
|
|
1092
|
+
var ttlToUse = TTL$3;
|
|
1093
|
+
var incomingRecord = normalize$3(input, store.readEntry(key), {
|
|
1094
|
+
fullPath: key,
|
|
1095
|
+
parent: path.parent,
|
|
1096
|
+
propertyName: path.propertyName,
|
|
1097
|
+
ttl: ttlToUse
|
|
1098
|
+
});
|
|
1099
|
+
if (existingRecord === undefined || equals$6(existingRecord, incomingRecord) === false) {
|
|
1100
|
+
luvio.storePublish(key, incomingRecord);
|
|
1101
|
+
}
|
|
1102
|
+
{
|
|
1103
|
+
var storeMetadataParams = {
|
|
1104
|
+
ttl: ttlToUse,
|
|
1105
|
+
namespace: "actionablelist",
|
|
1106
|
+
version: VERSION$6,
|
|
1107
|
+
representationName: RepresentationType$3,
|
|
1108
|
+
};
|
|
1109
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1110
|
+
}
|
|
1111
|
+
return createLink(key);
|
|
1112
|
+
};
|
|
1113
|
+
function getTypeCacheKeys$3(luvio, input, fullPathFactory) {
|
|
1114
|
+
var rootKeySet = new engine.StoreKeyMap();
|
|
1115
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1116
|
+
var rootKey = keyBuilderFromType$1(luvio, input);
|
|
1117
|
+
rootKeySet.set(rootKey, {
|
|
1118
|
+
namespace: keyPrefix,
|
|
1119
|
+
representationName: RepresentationType$3,
|
|
1120
|
+
mergeable: false
|
|
1121
|
+
});
|
|
1122
|
+
return rootKeySet;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
function select$9(luvio, params) {
|
|
1126
|
+
return select$a();
|
|
1127
|
+
}
|
|
1128
|
+
function getResponseCacheKeys$3(luvio, resourceParams, response) {
|
|
1129
|
+
return getTypeCacheKeys$3(luvio, response);
|
|
1130
|
+
}
|
|
1131
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
1132
|
+
var body = response.body;
|
|
1133
|
+
var key = keyBuilderFromType$1(luvio, body);
|
|
1134
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1135
|
+
var snapshot = luvio.storeLookup({
|
|
1136
|
+
recordId: key,
|
|
1137
|
+
node: select$9(),
|
|
1138
|
+
variables: {},
|
|
1139
|
+
});
|
|
1140
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1141
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1142
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
return snapshot;
|
|
1146
|
+
}
|
|
1147
|
+
function createResourceRequest$3(config) {
|
|
1148
|
+
var headers = {};
|
|
1149
|
+
return {
|
|
1150
|
+
baseUri: '/services/data/v58.0',
|
|
1151
|
+
basePath: '/connect/actionable-list-definition',
|
|
1152
|
+
method: 'post',
|
|
1153
|
+
body: config.body,
|
|
1154
|
+
urlParams: {},
|
|
1155
|
+
queryParams: {},
|
|
1156
|
+
headers: headers,
|
|
1157
|
+
priority: 'normal',
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
var createActionableListDefinition_ConfigPropertyNames = {
|
|
1162
|
+
displayName: 'createActionableListDefinition',
|
|
1163
|
+
parameters: {
|
|
1164
|
+
required: ['actionableListDefinitionCreateInput'],
|
|
1165
|
+
optional: []
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
function createResourceParams$3(config) {
|
|
1169
|
+
var resourceParams = {
|
|
1170
|
+
body: {
|
|
1171
|
+
actionableListDefinitionCreateInput: config.actionableListDefinitionCreateInput
|
|
1172
|
+
}
|
|
1173
|
+
};
|
|
1174
|
+
return resourceParams;
|
|
1175
|
+
}
|
|
1176
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1177
|
+
var config = {};
|
|
1178
|
+
var untrustedConfig_actionableListDefinitionCreateInput = untrustedConfig.actionableListDefinitionCreateInput;
|
|
1179
|
+
var referenceActionableListDefinitionCreateInputRepresentationValidationError = validate$a(untrustedConfig_actionableListDefinitionCreateInput);
|
|
1180
|
+
if (referenceActionableListDefinitionCreateInputRepresentationValidationError === null) {
|
|
1181
|
+
config.actionableListDefinitionCreateInput = untrustedConfig_actionableListDefinitionCreateInput;
|
|
1182
|
+
}
|
|
1183
|
+
return config;
|
|
1184
|
+
}
|
|
1185
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1186
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1187
|
+
return null;
|
|
1188
|
+
}
|
|
1189
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1190
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1191
|
+
}
|
|
1192
|
+
var config = typeCheckConfig$3(untrustedConfig);
|
|
1193
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1194
|
+
return null;
|
|
1195
|
+
}
|
|
1196
|
+
return config;
|
|
1197
|
+
}
|
|
1198
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1199
|
+
var resourceParams = createResourceParams$3(config);
|
|
1200
|
+
var request = createResourceRequest$3(resourceParams);
|
|
1201
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1202
|
+
.then(function (response) {
|
|
1203
|
+
return luvio.handleSuccessResponse(function () {
|
|
1204
|
+
var snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1205
|
+
return luvio.storeBroadcast().then(function () { return snapshot; });
|
|
1206
|
+
}, function () { return getResponseCacheKeys$3(luvio, resourceParams, response.body); });
|
|
1207
|
+
}, function (response) {
|
|
1208
|
+
deepFreeze(response);
|
|
1209
|
+
throw response;
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
var createActionableListDefinitionAdapterFactory = function (luvio) {
|
|
1213
|
+
return function createActionableListDefinition(untrustedConfig) {
|
|
1214
|
+
var config = validateAdapterConfig$3(untrustedConfig, createActionableListDefinition_ConfigPropertyNames);
|
|
1215
|
+
// Invalid or incomplete config
|
|
1216
|
+
if (config === null) {
|
|
1217
|
+
throw new Error('Invalid config for "createActionableListDefinition"');
|
|
1218
|
+
}
|
|
1219
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
|
|
1223
|
+
var TTL$2 = 100;
|
|
1224
|
+
var VERSION$5 = "6ddedf71126866b776255aa167159b36";
|
|
1225
|
+
function validate$7(obj, path) {
|
|
1226
|
+
if (path === void 0) { path = 'ActionableListMembersOutputRepresentation'; }
|
|
1227
|
+
var v_error = (function () {
|
|
1228
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1229
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1230
|
+
}
|
|
1231
|
+
var obj_memberIds = obj.memberIds;
|
|
1232
|
+
var path_memberIds = path + '.memberIds';
|
|
1233
|
+
if (!ArrayIsArray(obj_memberIds)) {
|
|
1234
|
+
return new TypeError('Expected "array" but received "' + typeof obj_memberIds + '" (at "' + path_memberIds + '")');
|
|
1235
|
+
}
|
|
1236
|
+
for (var i = 0; i < obj_memberIds.length; i++) {
|
|
1237
|
+
var obj_memberIds_item = obj_memberIds[i];
|
|
1238
|
+
var path_memberIds_item = path_memberIds + '[' + i + ']';
|
|
1239
|
+
if (typeof obj_memberIds_item !== 'string') {
|
|
1240
|
+
return new TypeError('Expected "string" but received "' + typeof obj_memberIds_item + '" (at "' + path_memberIds_item + '")');
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
})();
|
|
1244
|
+
return v_error === undefined ? null : v_error;
|
|
1245
|
+
}
|
|
1246
|
+
var RepresentationType$2 = 'ActionableListMembersOutputRepresentation';
|
|
1247
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1248
|
+
return input;
|
|
1249
|
+
}
|
|
1250
|
+
var select$8 = function ActionableListMembersOutputRepresentationSelect() {
|
|
1251
|
+
return {
|
|
1252
|
+
kind: 'Fragment',
|
|
1253
|
+
version: VERSION$5,
|
|
1254
|
+
private: [],
|
|
1255
|
+
selections: [
|
|
1256
|
+
{
|
|
1257
|
+
name: 'memberIds',
|
|
1258
|
+
kind: 'Scalar',
|
|
1259
|
+
plural: true
|
|
1260
|
+
}
|
|
1261
|
+
]
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
function equals$5(existing, incoming) {
|
|
1265
|
+
var existing_memberIds = existing.memberIds;
|
|
1266
|
+
var incoming_memberIds = incoming.memberIds;
|
|
1267
|
+
var equals_memberIds_items = equalsArray(existing_memberIds, incoming_memberIds, function (existing_memberIds_item, incoming_memberIds_item) {
|
|
1268
|
+
if (!(existing_memberIds_item === incoming_memberIds_item)) {
|
|
1269
|
+
return false;
|
|
1270
|
+
}
|
|
1271
|
+
});
|
|
1272
|
+
if (equals_memberIds_items === false) {
|
|
1273
|
+
return false;
|
|
1274
|
+
}
|
|
1275
|
+
return true;
|
|
1276
|
+
}
|
|
1277
|
+
var ingest$2 = function ActionableListMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1278
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1279
|
+
var validateError = validate$7(input);
|
|
1280
|
+
if (validateError !== null) {
|
|
1281
|
+
throw validateError;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
var key = path.fullPath;
|
|
1285
|
+
var existingRecord = store.readEntry(key);
|
|
1286
|
+
var ttlToUse = TTL$2;
|
|
1287
|
+
var incomingRecord = normalize$2(input, store.readEntry(key), {
|
|
1288
|
+
fullPath: key,
|
|
1289
|
+
parent: path.parent,
|
|
1290
|
+
propertyName: path.propertyName,
|
|
1291
|
+
ttl: ttlToUse
|
|
1292
|
+
});
|
|
1293
|
+
if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
|
|
1294
|
+
luvio.storePublish(key, incomingRecord);
|
|
1295
|
+
}
|
|
1296
|
+
{
|
|
1297
|
+
var storeMetadataParams = {
|
|
1298
|
+
ttl: ttlToUse,
|
|
1299
|
+
namespace: "actionablelist",
|
|
1300
|
+
version: VERSION$5,
|
|
1301
|
+
representationName: RepresentationType$2,
|
|
1302
|
+
};
|
|
1303
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1304
|
+
}
|
|
1305
|
+
return createLink(key);
|
|
1306
|
+
};
|
|
1307
|
+
function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
1308
|
+
var rootKeySet = new engine.StoreKeyMap();
|
|
1309
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1310
|
+
var rootKey = fullPathFactory();
|
|
1311
|
+
rootKeySet.set(rootKey, {
|
|
1312
|
+
namespace: keyPrefix,
|
|
1313
|
+
representationName: RepresentationType$2,
|
|
1314
|
+
mergeable: false
|
|
1315
|
+
});
|
|
1316
|
+
return rootKeySet;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
function select$7(luvio, params) {
|
|
1320
|
+
return select$8();
|
|
1321
|
+
}
|
|
1322
|
+
function keyBuilder$4(luvio, params) {
|
|
1323
|
+
return keyPrefix + '::ActionableListMembersOutputRepresentation:(' + 'id:' + params.urlParams.id + ')';
|
|
1324
|
+
}
|
|
1325
|
+
function getResponseCacheKeys$2(luvio, resourceParams, response) {
|
|
1326
|
+
return getTypeCacheKeys$2(luvio, response, function () { return keyBuilder$4(luvio, resourceParams); });
|
|
1327
|
+
}
|
|
1328
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1329
|
+
var body = response.body;
|
|
1330
|
+
var key = keyBuilder$4(luvio, resourceParams);
|
|
1331
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1332
|
+
var snapshot = luvio.storeLookup({
|
|
1333
|
+
recordId: key,
|
|
1334
|
+
node: select$7(),
|
|
1335
|
+
variables: {},
|
|
1336
|
+
}, snapshotRefresh);
|
|
1337
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1338
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1339
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
return snapshot;
|
|
1343
|
+
}
|
|
1344
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
1345
|
+
var key = keyBuilder$4(luvio, params);
|
|
1346
|
+
var errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1347
|
+
var storeMetadataParams = {
|
|
1348
|
+
ttl: TTL$2,
|
|
1349
|
+
namespace: keyPrefix,
|
|
1350
|
+
version: VERSION$5,
|
|
1351
|
+
representationName: RepresentationType$2
|
|
1352
|
+
};
|
|
1353
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1354
|
+
return errorSnapshot;
|
|
1355
|
+
}
|
|
1356
|
+
function createResourceRequest$2(config) {
|
|
1357
|
+
var headers = {};
|
|
1358
|
+
return {
|
|
1359
|
+
baseUri: '/services/data/v58.0',
|
|
1360
|
+
basePath: '/connect/actionable-list/' + config.urlParams.id + '/members',
|
|
1361
|
+
method: 'get',
|
|
1362
|
+
body: null,
|
|
1363
|
+
urlParams: config.urlParams,
|
|
1364
|
+
queryParams: {},
|
|
1365
|
+
headers: headers,
|
|
1366
|
+
priority: 'normal',
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
var getActionableListMembers_ConfigPropertyNames = {
|
|
1371
|
+
displayName: 'getActionableListMembers',
|
|
1372
|
+
parameters: {
|
|
1373
|
+
required: ['id'],
|
|
1374
|
+
optional: []
|
|
1375
|
+
}
|
|
1376
|
+
};
|
|
1377
|
+
function createResourceParams$2(config) {
|
|
1378
|
+
var resourceParams = {
|
|
1379
|
+
urlParams: {
|
|
1380
|
+
id: config.id
|
|
1381
|
+
}
|
|
1382
|
+
};
|
|
1383
|
+
return resourceParams;
|
|
1384
|
+
}
|
|
1385
|
+
function keyBuilder$3(luvio, config) {
|
|
1386
|
+
var resourceParams = createResourceParams$2(config);
|
|
1387
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
1388
|
+
}
|
|
1389
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1390
|
+
var config = {};
|
|
1391
|
+
var untrustedConfig_id = untrustedConfig.id;
|
|
1392
|
+
if (typeof untrustedConfig_id === 'string') {
|
|
1393
|
+
config.id = untrustedConfig_id;
|
|
1394
|
+
}
|
|
1395
|
+
return config;
|
|
1396
|
+
}
|
|
1397
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1398
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1399
|
+
return null;
|
|
1400
|
+
}
|
|
1401
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1402
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1403
|
+
}
|
|
1404
|
+
var config = typeCheckConfig$2(untrustedConfig);
|
|
1405
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1406
|
+
return null;
|
|
1407
|
+
}
|
|
1408
|
+
return config;
|
|
1409
|
+
}
|
|
1410
|
+
function adapterFragment$1(luvio, config) {
|
|
1411
|
+
createResourceParams$2(config);
|
|
1412
|
+
return select$7();
|
|
1413
|
+
}
|
|
1414
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1415
|
+
var snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1416
|
+
config: config,
|
|
1417
|
+
resolve: function () { return buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions); }
|
|
1418
|
+
});
|
|
1419
|
+
return luvio.storeBroadcast().then(function () { return snapshot; });
|
|
1420
|
+
}
|
|
1421
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1422
|
+
var snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1423
|
+
config: config,
|
|
1424
|
+
resolve: function () { return buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions); }
|
|
1425
|
+
});
|
|
1426
|
+
return luvio.storeBroadcast().then(function () { return snapshot; });
|
|
1427
|
+
}
|
|
1428
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1429
|
+
var resourceParams = createResourceParams$2(config);
|
|
1430
|
+
var request = createResourceRequest$2(resourceParams);
|
|
1431
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1432
|
+
.then(function (response) {
|
|
1433
|
+
return luvio.handleSuccessResponse(function () { return onFetchResponseSuccess$1(luvio, config, resourceParams, response); }, function () { return getResponseCacheKeys$2(luvio, resourceParams, response.body); });
|
|
1434
|
+
}, function (response) {
|
|
1435
|
+
return luvio.handleErrorResponse(function () { return onFetchResponseError$1(luvio, config, resourceParams, response); });
|
|
1436
|
+
});
|
|
1437
|
+
}
|
|
1438
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1439
|
+
var luvio = context.luvio, config = context.config;
|
|
1440
|
+
var networkPriority = coercedAdapterRequestContext.networkPriority, requestCorrelator = coercedAdapterRequestContext.requestCorrelator, eventObservers = coercedAdapterRequestContext.eventObservers;
|
|
1441
|
+
var dispatchOptions = {
|
|
1442
|
+
resourceRequestContext: {
|
|
1443
|
+
requestCorrelator: requestCorrelator,
|
|
1444
|
+
luvioRequestMethod: undefined,
|
|
1445
|
+
},
|
|
1446
|
+
eventObservers: eventObservers
|
|
1447
|
+
};
|
|
1448
|
+
if (networkPriority !== 'normal') {
|
|
1449
|
+
dispatchOptions.overrides = {
|
|
1450
|
+
priority: networkPriority
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
1454
|
+
}
|
|
1455
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1456
|
+
var luvio = context.luvio, config = context.config;
|
|
1457
|
+
var selector = {
|
|
1458
|
+
recordId: keyBuilder$3(luvio, config),
|
|
1459
|
+
node: adapterFragment$1(luvio, config),
|
|
1460
|
+
variables: {},
|
|
1461
|
+
};
|
|
1462
|
+
var cacheSnapshot = storeLookup(selector, {
|
|
1463
|
+
config: config,
|
|
1464
|
+
resolve: function () { return buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions); }
|
|
1465
|
+
});
|
|
1466
|
+
return cacheSnapshot;
|
|
1467
|
+
}
|
|
1468
|
+
var getActionableListMembersAdapterFactory = function (luvio) { return function actionablelist__getActionableListMembers(untrustedConfig, requestContext) {
|
|
1469
|
+
var config = validateAdapterConfig$2(untrustedConfig, getActionableListMembers_ConfigPropertyNames);
|
|
1470
|
+
// Invalid or incomplete config
|
|
1471
|
+
if (config === null) {
|
|
1472
|
+
return null;
|
|
1473
|
+
}
|
|
1474
|
+
return luvio.applyCachePolicy((requestContext || {}), { config: config, luvio: luvio }, // BuildSnapshotContext
|
|
1475
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1476
|
+
}; };
|
|
1477
|
+
|
|
1478
|
+
function validate$6(obj, path) {
|
|
1479
|
+
if (path === void 0) { path = 'ActionableListUpsertInputRepresentation'; }
|
|
1480
|
+
var v_error = (function () {
|
|
1481
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1482
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1483
|
+
}
|
|
1484
|
+
if (obj.actionableListColumns !== undefined) {
|
|
1485
|
+
var obj_actionableListColumns = obj.actionableListColumns;
|
|
1486
|
+
var path_actionableListColumns = path + '.actionableListColumns';
|
|
1487
|
+
if (!ArrayIsArray(obj_actionableListColumns)) {
|
|
1488
|
+
return new TypeError('Expected "array" but received "' + typeof obj_actionableListColumns + '" (at "' + path_actionableListColumns + '")');
|
|
1489
|
+
}
|
|
1490
|
+
for (var i = 0; i < obj_actionableListColumns.length; i++) {
|
|
1491
|
+
var obj_actionableListColumns_item = obj_actionableListColumns[i];
|
|
1492
|
+
var path_actionableListColumns_item = path_actionableListColumns + '[' + i + ']';
|
|
1493
|
+
if (typeof obj_actionableListColumns_item !== 'string') {
|
|
1494
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionableListColumns_item + '" (at "' + path_actionableListColumns_item + '")');
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
if (obj.actionableListDefinitionId !== undefined) {
|
|
1499
|
+
var obj_actionableListDefinitionId_1 = obj.actionableListDefinitionId;
|
|
1500
|
+
var path_actionableListDefinitionId_1 = path + '.actionableListDefinitionId';
|
|
1501
|
+
var obj_actionableListDefinitionId_union0 = null;
|
|
1502
|
+
var obj_actionableListDefinitionId_union0_error = (function () {
|
|
1503
|
+
if (typeof obj_actionableListDefinitionId_1 !== 'string') {
|
|
1504
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionableListDefinitionId_1 + '" (at "' + path_actionableListDefinitionId_1 + '")');
|
|
1505
|
+
}
|
|
1506
|
+
})();
|
|
1507
|
+
if (obj_actionableListDefinitionId_union0_error != null) {
|
|
1508
|
+
obj_actionableListDefinitionId_union0 = obj_actionableListDefinitionId_union0_error.message;
|
|
1509
|
+
}
|
|
1510
|
+
var obj_actionableListDefinitionId_union1 = null;
|
|
1511
|
+
var obj_actionableListDefinitionId_union1_error = (function () {
|
|
1512
|
+
if (obj_actionableListDefinitionId_1 !== null) {
|
|
1513
|
+
return new TypeError('Expected "null" but received "' + typeof obj_actionableListDefinitionId_1 + '" (at "' + path_actionableListDefinitionId_1 + '")');
|
|
1514
|
+
}
|
|
1515
|
+
})();
|
|
1516
|
+
if (obj_actionableListDefinitionId_union1_error != null) {
|
|
1517
|
+
obj_actionableListDefinitionId_union1 = obj_actionableListDefinitionId_union1_error.message;
|
|
1518
|
+
}
|
|
1519
|
+
if (obj_actionableListDefinitionId_union0 && obj_actionableListDefinitionId_union1) {
|
|
1520
|
+
var message = 'Object doesn\'t match union (at "' + path_actionableListDefinitionId_1 + '")';
|
|
1521
|
+
message += '\n' + obj_actionableListDefinitionId_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1522
|
+
message += '\n' + obj_actionableListDefinitionId_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1523
|
+
return new TypeError(message);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
if (obj.actionableListMemberIds !== undefined) {
|
|
1527
|
+
var obj_actionableListMemberIds = obj.actionableListMemberIds;
|
|
1528
|
+
var path_actionableListMemberIds = path + '.actionableListMemberIds';
|
|
1529
|
+
if (!ArrayIsArray(obj_actionableListMemberIds)) {
|
|
1530
|
+
return new TypeError('Expected "array" but received "' + typeof obj_actionableListMemberIds + '" (at "' + path_actionableListMemberIds + '")');
|
|
1531
|
+
}
|
|
1532
|
+
for (var i = 0; i < obj_actionableListMemberIds.length; i++) {
|
|
1533
|
+
var obj_actionableListMemberIds_item = obj_actionableListMemberIds[i];
|
|
1534
|
+
var path_actionableListMemberIds_item = path_actionableListMemberIds + '[' + i + ']';
|
|
1535
|
+
if (typeof obj_actionableListMemberIds_item !== 'string') {
|
|
1536
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionableListMemberIds_item + '" (at "' + path_actionableListMemberIds_item + '")');
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
if (obj.defaultMemberStatusId !== undefined) {
|
|
1541
|
+
var obj_defaultMemberStatusId_1 = obj.defaultMemberStatusId;
|
|
1542
|
+
var path_defaultMemberStatusId_1 = path + '.defaultMemberStatusId';
|
|
1543
|
+
var obj_defaultMemberStatusId_union0 = null;
|
|
1544
|
+
var obj_defaultMemberStatusId_union0_error = (function () {
|
|
1545
|
+
if (typeof obj_defaultMemberStatusId_1 !== 'string') {
|
|
1546
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultMemberStatusId_1 + '" (at "' + path_defaultMemberStatusId_1 + '")');
|
|
1547
|
+
}
|
|
1548
|
+
})();
|
|
1549
|
+
if (obj_defaultMemberStatusId_union0_error != null) {
|
|
1550
|
+
obj_defaultMemberStatusId_union0 = obj_defaultMemberStatusId_union0_error.message;
|
|
1551
|
+
}
|
|
1552
|
+
var obj_defaultMemberStatusId_union1 = null;
|
|
1553
|
+
var obj_defaultMemberStatusId_union1_error = (function () {
|
|
1554
|
+
if (obj_defaultMemberStatusId_1 !== null) {
|
|
1555
|
+
return new TypeError('Expected "null" but received "' + typeof obj_defaultMemberStatusId_1 + '" (at "' + path_defaultMemberStatusId_1 + '")');
|
|
1556
|
+
}
|
|
1557
|
+
})();
|
|
1558
|
+
if (obj_defaultMemberStatusId_union1_error != null) {
|
|
1559
|
+
obj_defaultMemberStatusId_union1 = obj_defaultMemberStatusId_union1_error.message;
|
|
1560
|
+
}
|
|
1561
|
+
if (obj_defaultMemberStatusId_union0 && obj_defaultMemberStatusId_union1) {
|
|
1562
|
+
var message = 'Object doesn\'t match union (at "' + path_defaultMemberStatusId_1 + '")';
|
|
1563
|
+
message += '\n' + obj_defaultMemberStatusId_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1564
|
+
message += '\n' + obj_defaultMemberStatusId_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1565
|
+
return new TypeError(message);
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
if (obj.description !== undefined) {
|
|
1569
|
+
var obj_description_1 = obj.description;
|
|
1570
|
+
var path_description_1 = path + '.description';
|
|
1571
|
+
var obj_description_union0 = null;
|
|
1572
|
+
var obj_description_union0_error = (function () {
|
|
1573
|
+
if (typeof obj_description_1 !== 'string') {
|
|
1574
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description_1 + '" (at "' + path_description_1 + '")');
|
|
1575
|
+
}
|
|
1576
|
+
})();
|
|
1577
|
+
if (obj_description_union0_error != null) {
|
|
1578
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
1579
|
+
}
|
|
1580
|
+
var obj_description_union1 = null;
|
|
1581
|
+
var obj_description_union1_error = (function () {
|
|
1582
|
+
if (obj_description_1 !== null) {
|
|
1583
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description_1 + '" (at "' + path_description_1 + '")');
|
|
1584
|
+
}
|
|
1585
|
+
})();
|
|
1586
|
+
if (obj_description_union1_error != null) {
|
|
1587
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
1588
|
+
}
|
|
1589
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
1590
|
+
var message = 'Object doesn\'t match union (at "' + path_description_1 + '")';
|
|
1591
|
+
message += '\n' + obj_description_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1592
|
+
message += '\n' + obj_description_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1593
|
+
return new TypeError(message);
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
if (obj.filterLogic !== undefined) {
|
|
1597
|
+
var obj_filterLogic = obj.filterLogic;
|
|
1598
|
+
var path_filterLogic = path + '.filterLogic';
|
|
1599
|
+
if (typeof obj_filterLogic !== 'string') {
|
|
1600
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
if (obj.filters !== undefined) {
|
|
1604
|
+
var obj_filters = obj.filters;
|
|
1605
|
+
var path_filters = path + '.filters';
|
|
1606
|
+
if (typeof obj_filters !== 'object' || ArrayIsArray(obj_filters) || obj_filters === null) {
|
|
1607
|
+
return new TypeError('Expected "object" but received "' + typeof obj_filters + '" (at "' + path_filters + '")');
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
if (obj.id !== undefined) {
|
|
1611
|
+
var obj_id_1 = obj.id;
|
|
1612
|
+
var path_id_1 = path + '.id';
|
|
1613
|
+
var obj_id_union0 = null;
|
|
1614
|
+
var obj_id_union0_error = (function () {
|
|
1615
|
+
if (typeof obj_id_1 !== 'string') {
|
|
1616
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id_1 + '" (at "' + path_id_1 + '")');
|
|
1617
|
+
}
|
|
1618
|
+
})();
|
|
1619
|
+
if (obj_id_union0_error != null) {
|
|
1620
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
1621
|
+
}
|
|
1622
|
+
var obj_id_union1 = null;
|
|
1623
|
+
var obj_id_union1_error = (function () {
|
|
1624
|
+
if (obj_id_1 !== null) {
|
|
1625
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id_1 + '" (at "' + path_id_1 + '")');
|
|
1626
|
+
}
|
|
1627
|
+
})();
|
|
1628
|
+
if (obj_id_union1_error != null) {
|
|
1629
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
1630
|
+
}
|
|
1631
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
1632
|
+
var message = 'Object doesn\'t match union (at "' + path_id_1 + '")';
|
|
1633
|
+
message += '\n' + obj_id_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1634
|
+
message += '\n' + obj_id_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1635
|
+
return new TypeError(message);
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
if (obj.isAsync !== undefined) {
|
|
1639
|
+
var obj_isAsync = obj.isAsync;
|
|
1640
|
+
var path_isAsync = path + '.isAsync';
|
|
1641
|
+
if (typeof obj_isAsync !== 'boolean') {
|
|
1642
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAsync + '" (at "' + path_isAsync + '")');
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
if (obj.name !== undefined) {
|
|
1646
|
+
var obj_name_1 = obj.name;
|
|
1647
|
+
var path_name_1 = path + '.name';
|
|
1648
|
+
var obj_name_union0 = null;
|
|
1649
|
+
var obj_name_union0_error = (function () {
|
|
1650
|
+
if (typeof obj_name_1 !== 'string') {
|
|
1651
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name_1 + '" (at "' + path_name_1 + '")');
|
|
1652
|
+
}
|
|
1653
|
+
})();
|
|
1654
|
+
if (obj_name_union0_error != null) {
|
|
1655
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
1656
|
+
}
|
|
1657
|
+
var obj_name_union1 = null;
|
|
1658
|
+
var obj_name_union1_error = (function () {
|
|
1659
|
+
if (obj_name_1 !== null) {
|
|
1660
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name_1 + '" (at "' + path_name_1 + '")');
|
|
1661
|
+
}
|
|
1662
|
+
})();
|
|
1663
|
+
if (obj_name_union1_error != null) {
|
|
1664
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
1665
|
+
}
|
|
1666
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
1667
|
+
var message = 'Object doesn\'t match union (at "' + path_name_1 + '")';
|
|
1668
|
+
message += '\n' + obj_name_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1669
|
+
message += '\n' + obj_name_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1670
|
+
return new TypeError(message);
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
if (obj.objectName !== undefined) {
|
|
1674
|
+
var obj_objectName_1 = obj.objectName;
|
|
1675
|
+
var path_objectName_1 = path + '.objectName';
|
|
1676
|
+
var obj_objectName_union0 = null;
|
|
1677
|
+
var obj_objectName_union0_error = (function () {
|
|
1678
|
+
if (typeof obj_objectName_1 !== 'string') {
|
|
1679
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName_1 + '" (at "' + path_objectName_1 + '")');
|
|
1680
|
+
}
|
|
1681
|
+
})();
|
|
1682
|
+
if (obj_objectName_union0_error != null) {
|
|
1683
|
+
obj_objectName_union0 = obj_objectName_union0_error.message;
|
|
1684
|
+
}
|
|
1685
|
+
var obj_objectName_union1 = null;
|
|
1686
|
+
var obj_objectName_union1_error = (function () {
|
|
1687
|
+
if (obj_objectName_1 !== null) {
|
|
1688
|
+
return new TypeError('Expected "null" but received "' + typeof obj_objectName_1 + '" (at "' + path_objectName_1 + '")');
|
|
1689
|
+
}
|
|
1690
|
+
})();
|
|
1691
|
+
if (obj_objectName_union1_error != null) {
|
|
1692
|
+
obj_objectName_union1 = obj_objectName_union1_error.message;
|
|
1693
|
+
}
|
|
1694
|
+
if (obj_objectName_union0 && obj_objectName_union1) {
|
|
1695
|
+
var message = 'Object doesn\'t match union (at "' + path_objectName_1 + '")';
|
|
1696
|
+
message += '\n' + obj_objectName_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1697
|
+
message += '\n' + obj_objectName_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1698
|
+
return new TypeError(message);
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
})();
|
|
1702
|
+
return v_error === undefined ? null : v_error;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
var TTL$1 = 100;
|
|
1706
|
+
var VERSION$4 = "e644bfad74e67f4d67a107b89ef51c01";
|
|
1707
|
+
function validate$5(obj, path) {
|
|
1708
|
+
if (path === void 0) { path = 'ActionableListUpsertOutputRepresentation'; }
|
|
1709
|
+
var v_error = (function () {
|
|
1710
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1711
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1712
|
+
}
|
|
1713
|
+
var obj_errorMessage = obj.errorMessage;
|
|
1714
|
+
var path_errorMessage = path + '.errorMessage';
|
|
1715
|
+
var obj_errorMessage_union0 = null;
|
|
1716
|
+
var obj_errorMessage_union0_error = (function () {
|
|
1717
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
1718
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1719
|
+
}
|
|
1720
|
+
})();
|
|
1721
|
+
if (obj_errorMessage_union0_error != null) {
|
|
1722
|
+
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
1723
|
+
}
|
|
1724
|
+
var obj_errorMessage_union1 = null;
|
|
1725
|
+
var obj_errorMessage_union1_error = (function () {
|
|
1726
|
+
if (obj_errorMessage !== null) {
|
|
1727
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
1728
|
+
}
|
|
1729
|
+
})();
|
|
1730
|
+
if (obj_errorMessage_union1_error != null) {
|
|
1731
|
+
obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
|
|
1732
|
+
}
|
|
1733
|
+
if (obj_errorMessage_union0 && obj_errorMessage_union1) {
|
|
1734
|
+
var message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
|
|
1735
|
+
message += '\n' + obj_errorMessage_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1736
|
+
message += '\n' + obj_errorMessage_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1737
|
+
return new TypeError(message);
|
|
1738
|
+
}
|
|
1739
|
+
var obj_id = obj.id;
|
|
1740
|
+
var path_id = path + '.id';
|
|
1741
|
+
var obj_id_union0 = null;
|
|
1742
|
+
var obj_id_union0_error = (function () {
|
|
1743
|
+
if (typeof obj_id !== 'string') {
|
|
1744
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1745
|
+
}
|
|
1746
|
+
})();
|
|
1747
|
+
if (obj_id_union0_error != null) {
|
|
1748
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
1749
|
+
}
|
|
1750
|
+
var obj_id_union1 = null;
|
|
1751
|
+
var obj_id_union1_error = (function () {
|
|
1752
|
+
if (obj_id !== null) {
|
|
1753
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1754
|
+
}
|
|
1755
|
+
})();
|
|
1756
|
+
if (obj_id_union1_error != null) {
|
|
1757
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
1758
|
+
}
|
|
1759
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
1760
|
+
var message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
1761
|
+
message += '\n' + obj_id_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1762
|
+
message += '\n' + obj_id_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1763
|
+
return new TypeError(message);
|
|
1764
|
+
}
|
|
1765
|
+
var obj_isSuccess = obj.isSuccess;
|
|
1766
|
+
var path_isSuccess = path + '.isSuccess';
|
|
1767
|
+
var obj_isSuccess_union0 = null;
|
|
1768
|
+
var obj_isSuccess_union0_error = (function () {
|
|
1769
|
+
if (typeof obj_isSuccess !== 'string') {
|
|
1770
|
+
return new TypeError('Expected "string" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
1771
|
+
}
|
|
1772
|
+
})();
|
|
1773
|
+
if (obj_isSuccess_union0_error != null) {
|
|
1774
|
+
obj_isSuccess_union0 = obj_isSuccess_union0_error.message;
|
|
1775
|
+
}
|
|
1776
|
+
var obj_isSuccess_union1 = null;
|
|
1777
|
+
var obj_isSuccess_union1_error = (function () {
|
|
1778
|
+
if (obj_isSuccess !== null) {
|
|
1779
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
|
|
1780
|
+
}
|
|
1781
|
+
})();
|
|
1782
|
+
if (obj_isSuccess_union1_error != null) {
|
|
1783
|
+
obj_isSuccess_union1 = obj_isSuccess_union1_error.message;
|
|
1784
|
+
}
|
|
1785
|
+
if (obj_isSuccess_union0 && obj_isSuccess_union1) {
|
|
1786
|
+
var message = 'Object doesn\'t match union (at "' + path_isSuccess + '")';
|
|
1787
|
+
message += '\n' + obj_isSuccess_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1788
|
+
message += '\n' + obj_isSuccess_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
1789
|
+
return new TypeError(message);
|
|
1790
|
+
}
|
|
1791
|
+
})();
|
|
1792
|
+
return v_error === undefined ? null : v_error;
|
|
1793
|
+
}
|
|
1794
|
+
var RepresentationType$1 = 'ActionableListUpsertOutputRepresentation';
|
|
1795
|
+
function keyBuilder$2(luvio, config) {
|
|
1796
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + (config.id === null ? '' : config.id);
|
|
1797
|
+
}
|
|
1798
|
+
function keyBuilderFromType(luvio, object) {
|
|
1799
|
+
var keyParams = {
|
|
1800
|
+
id: object.id
|
|
1801
|
+
};
|
|
1802
|
+
return keyBuilder$2(luvio, keyParams);
|
|
1803
|
+
}
|
|
1804
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1805
|
+
return input;
|
|
1806
|
+
}
|
|
1807
|
+
var select$6 = function ActionableListUpsertOutputRepresentationSelect() {
|
|
1808
|
+
return {
|
|
1809
|
+
kind: 'Fragment',
|
|
1810
|
+
version: VERSION$4,
|
|
1811
|
+
private: [],
|
|
1812
|
+
selections: [
|
|
1813
|
+
{
|
|
1814
|
+
name: 'errorMessage',
|
|
1815
|
+
kind: 'Scalar'
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
name: 'id',
|
|
1819
|
+
kind: 'Scalar'
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
name: 'isSuccess',
|
|
1823
|
+
kind: 'Scalar'
|
|
1824
|
+
}
|
|
1825
|
+
]
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1828
|
+
function equals$4(existing, incoming) {
|
|
1829
|
+
var existing_errorMessage = existing.errorMessage;
|
|
1830
|
+
var incoming_errorMessage = incoming.errorMessage;
|
|
1831
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
1832
|
+
return false;
|
|
1833
|
+
}
|
|
1834
|
+
var existing_id = existing.id;
|
|
1835
|
+
var incoming_id = incoming.id;
|
|
1836
|
+
if (!(existing_id === incoming_id)) {
|
|
1837
|
+
return false;
|
|
1838
|
+
}
|
|
1839
|
+
var existing_isSuccess = existing.isSuccess;
|
|
1840
|
+
var incoming_isSuccess = incoming.isSuccess;
|
|
1841
|
+
if (!(existing_isSuccess === incoming_isSuccess)) {
|
|
1842
|
+
return false;
|
|
1843
|
+
}
|
|
1844
|
+
return true;
|
|
1845
|
+
}
|
|
1846
|
+
var ingest$1 = function ActionableListUpsertOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1847
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1848
|
+
var validateError = validate$5(input);
|
|
1849
|
+
if (validateError !== null) {
|
|
1850
|
+
throw validateError;
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
var key = keyBuilderFromType(luvio, input);
|
|
1854
|
+
var existingRecord = store.readEntry(key);
|
|
1855
|
+
var ttlToUse = TTL$1;
|
|
1856
|
+
var incomingRecord = normalize$1(input, store.readEntry(key), {
|
|
1857
|
+
fullPath: key,
|
|
1858
|
+
parent: path.parent,
|
|
1859
|
+
propertyName: path.propertyName,
|
|
1860
|
+
ttl: ttlToUse
|
|
1861
|
+
});
|
|
1862
|
+
if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
|
|
1863
|
+
luvio.storePublish(key, incomingRecord);
|
|
1864
|
+
}
|
|
1865
|
+
{
|
|
1866
|
+
var storeMetadataParams = {
|
|
1867
|
+
ttl: ttlToUse,
|
|
1868
|
+
namespace: "actionablelist",
|
|
1869
|
+
version: VERSION$4,
|
|
1870
|
+
representationName: RepresentationType$1,
|
|
1871
|
+
};
|
|
1872
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
1873
|
+
}
|
|
1874
|
+
return createLink(key);
|
|
1875
|
+
};
|
|
1876
|
+
function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
1877
|
+
var rootKeySet = new engine.StoreKeyMap();
|
|
1878
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1879
|
+
var rootKey = keyBuilderFromType(luvio, input);
|
|
1880
|
+
rootKeySet.set(rootKey, {
|
|
1881
|
+
namespace: keyPrefix,
|
|
1882
|
+
representationName: RepresentationType$1,
|
|
1883
|
+
mergeable: false
|
|
1884
|
+
});
|
|
1885
|
+
return rootKeySet;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
function select$5(luvio, params) {
|
|
1889
|
+
return select$6();
|
|
1890
|
+
}
|
|
1891
|
+
function getResponseCacheKeys$1(luvio, resourceParams, response) {
|
|
1892
|
+
return getTypeCacheKeys$1(luvio, response);
|
|
1893
|
+
}
|
|
1894
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
1895
|
+
var body = response.body;
|
|
1896
|
+
var key = keyBuilderFromType(luvio, body);
|
|
1897
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1898
|
+
var snapshot = luvio.storeLookup({
|
|
1899
|
+
recordId: key,
|
|
1900
|
+
node: select$5(),
|
|
1901
|
+
variables: {},
|
|
1902
|
+
});
|
|
1903
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1904
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1905
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
return snapshot;
|
|
1909
|
+
}
|
|
1910
|
+
function createResourceRequest$1(config) {
|
|
1911
|
+
var headers = {};
|
|
1912
|
+
return {
|
|
1913
|
+
baseUri: '/services/data/v58.0',
|
|
1914
|
+
basePath: '/connect/actionable-list',
|
|
1915
|
+
method: 'post',
|
|
1916
|
+
body: config.body,
|
|
1917
|
+
urlParams: {},
|
|
1918
|
+
queryParams: {},
|
|
1919
|
+
headers: headers,
|
|
1920
|
+
priority: 'normal',
|
|
1921
|
+
};
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
var upsertActionableList_ConfigPropertyNames = {
|
|
1925
|
+
displayName: 'upsertActionableList',
|
|
1926
|
+
parameters: {
|
|
1927
|
+
required: ['actionableListUpsertInput'],
|
|
1928
|
+
optional: []
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1931
|
+
function createResourceParams$1(config) {
|
|
1932
|
+
var resourceParams = {
|
|
1933
|
+
body: {
|
|
1934
|
+
actionableListUpsertInput: config.actionableListUpsertInput
|
|
1935
|
+
}
|
|
1936
|
+
};
|
|
1937
|
+
return resourceParams;
|
|
1938
|
+
}
|
|
1939
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1940
|
+
var config = {};
|
|
1941
|
+
var untrustedConfig_actionableListUpsertInput = untrustedConfig.actionableListUpsertInput;
|
|
1942
|
+
var referenceActionableListUpsertInputRepresentationValidationError = validate$6(untrustedConfig_actionableListUpsertInput);
|
|
1943
|
+
if (referenceActionableListUpsertInputRepresentationValidationError === null) {
|
|
1944
|
+
config.actionableListUpsertInput = untrustedConfig_actionableListUpsertInput;
|
|
1945
|
+
}
|
|
1946
|
+
return config;
|
|
1947
|
+
}
|
|
1948
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1949
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1950
|
+
return null;
|
|
1951
|
+
}
|
|
1952
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1953
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1954
|
+
}
|
|
1955
|
+
var config = typeCheckConfig$1(untrustedConfig);
|
|
1956
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1957
|
+
return null;
|
|
1958
|
+
}
|
|
1959
|
+
return config;
|
|
1960
|
+
}
|
|
1961
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1962
|
+
var resourceParams = createResourceParams$1(config);
|
|
1963
|
+
var request = createResourceRequest$1(resourceParams);
|
|
1964
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1965
|
+
.then(function (response) {
|
|
1966
|
+
return luvio.handleSuccessResponse(function () {
|
|
1967
|
+
var snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
1968
|
+
return luvio.storeBroadcast().then(function () { return snapshot; });
|
|
1969
|
+
}, function () { return getResponseCacheKeys$1(luvio, resourceParams, response.body); });
|
|
1970
|
+
}, function (response) {
|
|
1971
|
+
deepFreeze(response);
|
|
1972
|
+
throw response;
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
var upsertActionableListAdapterFactory = function (luvio) {
|
|
1976
|
+
return function upsertActionableList(untrustedConfig) {
|
|
1977
|
+
var config = validateAdapterConfig$1(untrustedConfig, upsertActionableList_ConfigPropertyNames);
|
|
1978
|
+
// Invalid or incomplete config
|
|
1979
|
+
if (config === null) {
|
|
1980
|
+
throw new Error('Invalid config for "upsertActionableList"');
|
|
1981
|
+
}
|
|
1982
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
1983
|
+
};
|
|
1984
|
+
};
|
|
1985
|
+
|
|
1986
|
+
function validate$4(obj, path) {
|
|
1987
|
+
if (path === void 0) { path = 'ActionableListDatasetInputRepresentation'; }
|
|
1988
|
+
var v_error = (function () {
|
|
1989
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1990
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1991
|
+
}
|
|
1992
|
+
if (obj.actionableListDefinitionId !== undefined) {
|
|
1993
|
+
var obj_actionableListDefinitionId_1 = obj.actionableListDefinitionId;
|
|
1994
|
+
var path_actionableListDefinitionId_1 = path + '.actionableListDefinitionId';
|
|
1995
|
+
var obj_actionableListDefinitionId_union0 = null;
|
|
1996
|
+
var obj_actionableListDefinitionId_union0_error = (function () {
|
|
1997
|
+
if (typeof obj_actionableListDefinitionId_1 !== 'string') {
|
|
1998
|
+
return new TypeError('Expected "string" but received "' + typeof obj_actionableListDefinitionId_1 + '" (at "' + path_actionableListDefinitionId_1 + '")');
|
|
1999
|
+
}
|
|
2000
|
+
})();
|
|
2001
|
+
if (obj_actionableListDefinitionId_union0_error != null) {
|
|
2002
|
+
obj_actionableListDefinitionId_union0 = obj_actionableListDefinitionId_union0_error.message;
|
|
2003
|
+
}
|
|
2004
|
+
var obj_actionableListDefinitionId_union1 = null;
|
|
2005
|
+
var obj_actionableListDefinitionId_union1_error = (function () {
|
|
2006
|
+
if (obj_actionableListDefinitionId_1 !== null) {
|
|
2007
|
+
return new TypeError('Expected "null" but received "' + typeof obj_actionableListDefinitionId_1 + '" (at "' + path_actionableListDefinitionId_1 + '")');
|
|
2008
|
+
}
|
|
2009
|
+
})();
|
|
2010
|
+
if (obj_actionableListDefinitionId_union1_error != null) {
|
|
2011
|
+
obj_actionableListDefinitionId_union1 = obj_actionableListDefinitionId_union1_error.message;
|
|
2012
|
+
}
|
|
2013
|
+
if (obj_actionableListDefinitionId_union0 && obj_actionableListDefinitionId_union1) {
|
|
2014
|
+
var message = 'Object doesn\'t match union (at "' + path_actionableListDefinitionId_1 + '")';
|
|
2015
|
+
message += '\n' + obj_actionableListDefinitionId_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2016
|
+
message += '\n' + obj_actionableListDefinitionId_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2017
|
+
return new TypeError(message);
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
if (obj.filterLogic !== undefined) {
|
|
2021
|
+
var obj_filterLogic = obj.filterLogic;
|
|
2022
|
+
var path_filterLogic = path + '.filterLogic';
|
|
2023
|
+
if (typeof obj_filterLogic !== 'string') {
|
|
2024
|
+
return new TypeError('Expected "string" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
if (obj.filters !== undefined) {
|
|
2028
|
+
var obj_filters = obj.filters;
|
|
2029
|
+
var path_filters = path + '.filters';
|
|
2030
|
+
if (typeof obj_filters !== 'object' || ArrayIsArray(obj_filters) || obj_filters === null) {
|
|
2031
|
+
return new TypeError('Expected "object" but received "' + typeof obj_filters + '" (at "' + path_filters + '")');
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
if (obj.offset !== undefined) {
|
|
2035
|
+
var obj_offset_1 = obj.offset;
|
|
2036
|
+
var path_offset_1 = path + '.offset';
|
|
2037
|
+
var obj_offset_union0 = null;
|
|
2038
|
+
var obj_offset_union0_error = (function () {
|
|
2039
|
+
if (typeof obj_offset_1 !== 'number' || (typeof obj_offset_1 === 'number' && Math.floor(obj_offset_1) !== obj_offset_1)) {
|
|
2040
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_offset_1 + '" (at "' + path_offset_1 + '")');
|
|
2041
|
+
}
|
|
2042
|
+
})();
|
|
2043
|
+
if (obj_offset_union0_error != null) {
|
|
2044
|
+
obj_offset_union0 = obj_offset_union0_error.message;
|
|
2045
|
+
}
|
|
2046
|
+
var obj_offset_union1 = null;
|
|
2047
|
+
var obj_offset_union1_error = (function () {
|
|
2048
|
+
if (obj_offset_1 !== null) {
|
|
2049
|
+
return new TypeError('Expected "null" but received "' + typeof obj_offset_1 + '" (at "' + path_offset_1 + '")');
|
|
2050
|
+
}
|
|
2051
|
+
})();
|
|
2052
|
+
if (obj_offset_union1_error != null) {
|
|
2053
|
+
obj_offset_union1 = obj_offset_union1_error.message;
|
|
2054
|
+
}
|
|
2055
|
+
if (obj_offset_union0 && obj_offset_union1) {
|
|
2056
|
+
var message = 'Object doesn\'t match union (at "' + path_offset_1 + '")';
|
|
2057
|
+
message += '\n' + obj_offset_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2058
|
+
message += '\n' + obj_offset_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2059
|
+
return new TypeError(message);
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
if (obj.orderBy !== undefined) {
|
|
2063
|
+
var obj_orderBy_1 = obj.orderBy;
|
|
2064
|
+
var path_orderBy_1 = path + '.orderBy';
|
|
2065
|
+
var obj_orderBy_union0 = null;
|
|
2066
|
+
var obj_orderBy_union0_error = (function () {
|
|
2067
|
+
if (typeof obj_orderBy_1 !== 'string') {
|
|
2068
|
+
return new TypeError('Expected "string" but received "' + typeof obj_orderBy_1 + '" (at "' + path_orderBy_1 + '")');
|
|
2069
|
+
}
|
|
2070
|
+
})();
|
|
2071
|
+
if (obj_orderBy_union0_error != null) {
|
|
2072
|
+
obj_orderBy_union0 = obj_orderBy_union0_error.message;
|
|
2073
|
+
}
|
|
2074
|
+
var obj_orderBy_union1 = null;
|
|
2075
|
+
var obj_orderBy_union1_error = (function () {
|
|
2076
|
+
if (obj_orderBy_1 !== null) {
|
|
2077
|
+
return new TypeError('Expected "null" but received "' + typeof obj_orderBy_1 + '" (at "' + path_orderBy_1 + '")');
|
|
2078
|
+
}
|
|
2079
|
+
})();
|
|
2080
|
+
if (obj_orderBy_union1_error != null) {
|
|
2081
|
+
obj_orderBy_union1 = obj_orderBy_union1_error.message;
|
|
2082
|
+
}
|
|
2083
|
+
if (obj_orderBy_union0 && obj_orderBy_union1) {
|
|
2084
|
+
var message = 'Object doesn\'t match union (at "' + path_orderBy_1 + '")';
|
|
2085
|
+
message += '\n' + obj_orderBy_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2086
|
+
message += '\n' + obj_orderBy_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2087
|
+
return new TypeError(message);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
if (obj.rowLimit !== undefined) {
|
|
2091
|
+
var obj_rowLimit_1 = obj.rowLimit;
|
|
2092
|
+
var path_rowLimit_1 = path + '.rowLimit';
|
|
2093
|
+
var obj_rowLimit_union0 = null;
|
|
2094
|
+
var obj_rowLimit_union0_error = (function () {
|
|
2095
|
+
if (typeof obj_rowLimit_1 !== 'number' || (typeof obj_rowLimit_1 === 'number' && Math.floor(obj_rowLimit_1) !== obj_rowLimit_1)) {
|
|
2096
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_rowLimit_1 + '" (at "' + path_rowLimit_1 + '")');
|
|
2097
|
+
}
|
|
2098
|
+
})();
|
|
2099
|
+
if (obj_rowLimit_union0_error != null) {
|
|
2100
|
+
obj_rowLimit_union0 = obj_rowLimit_union0_error.message;
|
|
2101
|
+
}
|
|
2102
|
+
var obj_rowLimit_union1 = null;
|
|
2103
|
+
var obj_rowLimit_union1_error = (function () {
|
|
2104
|
+
if (obj_rowLimit_1 !== null) {
|
|
2105
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rowLimit_1 + '" (at "' + path_rowLimit_1 + '")');
|
|
2106
|
+
}
|
|
2107
|
+
})();
|
|
2108
|
+
if (obj_rowLimit_union1_error != null) {
|
|
2109
|
+
obj_rowLimit_union1 = obj_rowLimit_union1_error.message;
|
|
2110
|
+
}
|
|
2111
|
+
if (obj_rowLimit_union0 && obj_rowLimit_union1) {
|
|
2112
|
+
var message = 'Object doesn\'t match union (at "' + path_rowLimit_1 + '")';
|
|
2113
|
+
message += '\n' + obj_rowLimit_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2114
|
+
message += '\n' + obj_rowLimit_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2115
|
+
return new TypeError(message);
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
if (obj.shouldReturnCurrencyCode !== undefined) {
|
|
2119
|
+
var obj_shouldReturnCurrencyCode = obj.shouldReturnCurrencyCode;
|
|
2120
|
+
var path_shouldReturnCurrencyCode = path + '.shouldReturnCurrencyCode';
|
|
2121
|
+
if (typeof obj_shouldReturnCurrencyCode !== 'boolean') {
|
|
2122
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_shouldReturnCurrencyCode + '" (at "' + path_shouldReturnCurrencyCode + '")');
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
if (obj.sortOrder !== undefined) {
|
|
2126
|
+
var obj_sortOrder_1 = obj.sortOrder;
|
|
2127
|
+
var path_sortOrder_1 = path + '.sortOrder';
|
|
2128
|
+
var obj_sortOrder_union0 = null;
|
|
2129
|
+
var obj_sortOrder_union0_error = (function () {
|
|
2130
|
+
if (typeof obj_sortOrder_1 !== 'string') {
|
|
2131
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sortOrder_1 + '" (at "' + path_sortOrder_1 + '")');
|
|
2132
|
+
}
|
|
2133
|
+
})();
|
|
2134
|
+
if (obj_sortOrder_union0_error != null) {
|
|
2135
|
+
obj_sortOrder_union0 = obj_sortOrder_union0_error.message;
|
|
2136
|
+
}
|
|
2137
|
+
var obj_sortOrder_union1 = null;
|
|
2138
|
+
var obj_sortOrder_union1_error = (function () {
|
|
2139
|
+
if (obj_sortOrder_1 !== null) {
|
|
2140
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sortOrder_1 + '" (at "' + path_sortOrder_1 + '")');
|
|
2141
|
+
}
|
|
2142
|
+
})();
|
|
2143
|
+
if (obj_sortOrder_union1_error != null) {
|
|
2144
|
+
obj_sortOrder_union1 = obj_sortOrder_union1_error.message;
|
|
2145
|
+
}
|
|
2146
|
+
if (obj_sortOrder_union0 && obj_sortOrder_union1) {
|
|
2147
|
+
var message = 'Object doesn\'t match union (at "' + path_sortOrder_1 + '")';
|
|
2148
|
+
message += '\n' + obj_sortOrder_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2149
|
+
message += '\n' + obj_sortOrder_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2150
|
+
return new TypeError(message);
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
})();
|
|
2154
|
+
return v_error === undefined ? null : v_error;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
var VERSION$3 = "0d035b8885aca0b70b9d3d7cec487492";
|
|
2158
|
+
function validate$3(obj, path) {
|
|
2159
|
+
if (path === void 0) { path = 'ActionableListDatasetColumnRepresentation'; }
|
|
2160
|
+
var v_error = (function () {
|
|
2161
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2162
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2163
|
+
}
|
|
2164
|
+
var obj_dataDomain = obj.dataDomain;
|
|
2165
|
+
var path_dataDomain = path + '.dataDomain';
|
|
2166
|
+
var obj_dataDomain_union0 = null;
|
|
2167
|
+
var obj_dataDomain_union0_error = (function () {
|
|
2168
|
+
if (typeof obj_dataDomain !== 'string') {
|
|
2169
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataDomain + '" (at "' + path_dataDomain + '")');
|
|
2170
|
+
}
|
|
2171
|
+
})();
|
|
2172
|
+
if (obj_dataDomain_union0_error != null) {
|
|
2173
|
+
obj_dataDomain_union0 = obj_dataDomain_union0_error.message;
|
|
2174
|
+
}
|
|
2175
|
+
var obj_dataDomain_union1 = null;
|
|
2176
|
+
var obj_dataDomain_union1_error = (function () {
|
|
2177
|
+
if (obj_dataDomain !== null) {
|
|
2178
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dataDomain + '" (at "' + path_dataDomain + '")');
|
|
2179
|
+
}
|
|
2180
|
+
})();
|
|
2181
|
+
if (obj_dataDomain_union1_error != null) {
|
|
2182
|
+
obj_dataDomain_union1 = obj_dataDomain_union1_error.message;
|
|
2183
|
+
}
|
|
2184
|
+
if (obj_dataDomain_union0 && obj_dataDomain_union1) {
|
|
2185
|
+
var message = 'Object doesn\'t match union (at "' + path_dataDomain + '")';
|
|
2186
|
+
message += '\n' + obj_dataDomain_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2187
|
+
message += '\n' + obj_dataDomain_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2188
|
+
return new TypeError(message);
|
|
2189
|
+
}
|
|
2190
|
+
var obj_dataType = obj.dataType;
|
|
2191
|
+
var path_dataType = path + '.dataType';
|
|
2192
|
+
var obj_dataType_union0 = null;
|
|
2193
|
+
var obj_dataType_union0_error = (function () {
|
|
2194
|
+
if (typeof obj_dataType !== 'string') {
|
|
2195
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
2196
|
+
}
|
|
2197
|
+
})();
|
|
2198
|
+
if (obj_dataType_union0_error != null) {
|
|
2199
|
+
obj_dataType_union0 = obj_dataType_union0_error.message;
|
|
2200
|
+
}
|
|
2201
|
+
var obj_dataType_union1 = null;
|
|
2202
|
+
var obj_dataType_union1_error = (function () {
|
|
2203
|
+
if (obj_dataType !== null) {
|
|
2204
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
2205
|
+
}
|
|
2206
|
+
})();
|
|
2207
|
+
if (obj_dataType_union1_error != null) {
|
|
2208
|
+
obj_dataType_union1 = obj_dataType_union1_error.message;
|
|
2209
|
+
}
|
|
2210
|
+
if (obj_dataType_union0 && obj_dataType_union1) {
|
|
2211
|
+
var message = 'Object doesn\'t match union (at "' + path_dataType + '")';
|
|
2212
|
+
message += '\n' + obj_dataType_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2213
|
+
message += '\n' + obj_dataType_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2214
|
+
return new TypeError(message);
|
|
2215
|
+
}
|
|
2216
|
+
var obj_isDefault = obj.isDefault;
|
|
2217
|
+
var path_isDefault = path + '.isDefault';
|
|
2218
|
+
var obj_isDefault_union0 = null;
|
|
2219
|
+
var obj_isDefault_union0_error = (function () {
|
|
2220
|
+
if (typeof obj_isDefault !== 'boolean') {
|
|
2221
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
2222
|
+
}
|
|
2223
|
+
})();
|
|
2224
|
+
if (obj_isDefault_union0_error != null) {
|
|
2225
|
+
obj_isDefault_union0 = obj_isDefault_union0_error.message;
|
|
2226
|
+
}
|
|
2227
|
+
var obj_isDefault_union1 = null;
|
|
2228
|
+
var obj_isDefault_union1_error = (function () {
|
|
2229
|
+
if (obj_isDefault !== null) {
|
|
2230
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
2231
|
+
}
|
|
2232
|
+
})();
|
|
2233
|
+
if (obj_isDefault_union1_error != null) {
|
|
2234
|
+
obj_isDefault_union1 = obj_isDefault_union1_error.message;
|
|
2235
|
+
}
|
|
2236
|
+
if (obj_isDefault_union0 && obj_isDefault_union1) {
|
|
2237
|
+
var message = 'Object doesn\'t match union (at "' + path_isDefault + '")';
|
|
2238
|
+
message += '\n' + obj_isDefault_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2239
|
+
message += '\n' + obj_isDefault_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2240
|
+
return new TypeError(message);
|
|
2241
|
+
}
|
|
2242
|
+
var obj_objectName = obj.objectName;
|
|
2243
|
+
var path_objectName = path + '.objectName';
|
|
2244
|
+
var obj_objectName_union0 = null;
|
|
2245
|
+
var obj_objectName_union0_error = (function () {
|
|
2246
|
+
if (typeof obj_objectName !== 'string') {
|
|
2247
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
2248
|
+
}
|
|
2249
|
+
})();
|
|
2250
|
+
if (obj_objectName_union0_error != null) {
|
|
2251
|
+
obj_objectName_union0 = obj_objectName_union0_error.message;
|
|
2252
|
+
}
|
|
2253
|
+
var obj_objectName_union1 = null;
|
|
2254
|
+
var obj_objectName_union1_error = (function () {
|
|
2255
|
+
if (obj_objectName !== null) {
|
|
2256
|
+
return new TypeError('Expected "null" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
2257
|
+
}
|
|
2258
|
+
})();
|
|
2259
|
+
if (obj_objectName_union1_error != null) {
|
|
2260
|
+
obj_objectName_union1 = obj_objectName_union1_error.message;
|
|
2261
|
+
}
|
|
2262
|
+
if (obj_objectName_union0 && obj_objectName_union1) {
|
|
2263
|
+
var message = 'Object doesn\'t match union (at "' + path_objectName + '")';
|
|
2264
|
+
message += '\n' + obj_objectName_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2265
|
+
message += '\n' + obj_objectName_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2266
|
+
return new TypeError(message);
|
|
2267
|
+
}
|
|
2268
|
+
var obj_sourceColumnApiName = obj.sourceColumnApiName;
|
|
2269
|
+
var path_sourceColumnApiName = path + '.sourceColumnApiName';
|
|
2270
|
+
var obj_sourceColumnApiName_union0 = null;
|
|
2271
|
+
var obj_sourceColumnApiName_union0_error = (function () {
|
|
2272
|
+
if (typeof obj_sourceColumnApiName !== 'string') {
|
|
2273
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceColumnApiName + '" (at "' + path_sourceColumnApiName + '")');
|
|
2274
|
+
}
|
|
2275
|
+
})();
|
|
2276
|
+
if (obj_sourceColumnApiName_union0_error != null) {
|
|
2277
|
+
obj_sourceColumnApiName_union0 = obj_sourceColumnApiName_union0_error.message;
|
|
2278
|
+
}
|
|
2279
|
+
var obj_sourceColumnApiName_union1 = null;
|
|
2280
|
+
var obj_sourceColumnApiName_union1_error = (function () {
|
|
2281
|
+
if (obj_sourceColumnApiName !== null) {
|
|
2282
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sourceColumnApiName + '" (at "' + path_sourceColumnApiName + '")');
|
|
2283
|
+
}
|
|
2284
|
+
})();
|
|
2285
|
+
if (obj_sourceColumnApiName_union1_error != null) {
|
|
2286
|
+
obj_sourceColumnApiName_union1 = obj_sourceColumnApiName_union1_error.message;
|
|
2287
|
+
}
|
|
2288
|
+
if (obj_sourceColumnApiName_union0 && obj_sourceColumnApiName_union1) {
|
|
2289
|
+
var message = 'Object doesn\'t match union (at "' + path_sourceColumnApiName + '")';
|
|
2290
|
+
message += '\n' + obj_sourceColumnApiName_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2291
|
+
message += '\n' + obj_sourceColumnApiName_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2292
|
+
return new TypeError(message);
|
|
2293
|
+
}
|
|
2294
|
+
var obj_sourceFieldName = obj.sourceFieldName;
|
|
2295
|
+
var path_sourceFieldName = path + '.sourceFieldName';
|
|
2296
|
+
var obj_sourceFieldName_union0 = null;
|
|
2297
|
+
var obj_sourceFieldName_union0_error = (function () {
|
|
2298
|
+
if (typeof obj_sourceFieldName !== 'string') {
|
|
2299
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceFieldName + '" (at "' + path_sourceFieldName + '")');
|
|
2300
|
+
}
|
|
2301
|
+
})();
|
|
2302
|
+
if (obj_sourceFieldName_union0_error != null) {
|
|
2303
|
+
obj_sourceFieldName_union0 = obj_sourceFieldName_union0_error.message;
|
|
2304
|
+
}
|
|
2305
|
+
var obj_sourceFieldName_union1 = null;
|
|
2306
|
+
var obj_sourceFieldName_union1_error = (function () {
|
|
2307
|
+
if (obj_sourceFieldName !== null) {
|
|
2308
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sourceFieldName + '" (at "' + path_sourceFieldName + '")');
|
|
2309
|
+
}
|
|
2310
|
+
})();
|
|
2311
|
+
if (obj_sourceFieldName_union1_error != null) {
|
|
2312
|
+
obj_sourceFieldName_union1 = obj_sourceFieldName_union1_error.message;
|
|
2313
|
+
}
|
|
2314
|
+
if (obj_sourceFieldName_union0 && obj_sourceFieldName_union1) {
|
|
2315
|
+
var message = 'Object doesn\'t match union (at "' + path_sourceFieldName + '")';
|
|
2316
|
+
message += '\n' + obj_sourceFieldName_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2317
|
+
message += '\n' + obj_sourceFieldName_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2318
|
+
return new TypeError(message);
|
|
2319
|
+
}
|
|
2320
|
+
})();
|
|
2321
|
+
return v_error === undefined ? null : v_error;
|
|
2322
|
+
}
|
|
2323
|
+
var select$4 = function ActionableListDatasetColumnRepresentationSelect() {
|
|
2324
|
+
return {
|
|
2325
|
+
kind: 'Fragment',
|
|
2326
|
+
version: VERSION$3,
|
|
2327
|
+
private: [],
|
|
2328
|
+
selections: [
|
|
2329
|
+
{
|
|
2330
|
+
name: 'dataDomain',
|
|
2331
|
+
kind: 'Scalar'
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
name: 'dataType',
|
|
2335
|
+
kind: 'Scalar'
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
name: 'isDefault',
|
|
2339
|
+
kind: 'Scalar'
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
name: 'objectName',
|
|
2343
|
+
kind: 'Scalar'
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
name: 'sourceColumnApiName',
|
|
2347
|
+
kind: 'Scalar'
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
name: 'sourceFieldName',
|
|
2351
|
+
kind: 'Scalar'
|
|
2352
|
+
}
|
|
2353
|
+
]
|
|
2354
|
+
};
|
|
2355
|
+
};
|
|
2356
|
+
function equals$3(existing, incoming) {
|
|
2357
|
+
var existing_dataDomain = existing.dataDomain;
|
|
2358
|
+
var incoming_dataDomain = incoming.dataDomain;
|
|
2359
|
+
if (!(existing_dataDomain === incoming_dataDomain)) {
|
|
2360
|
+
return false;
|
|
2361
|
+
}
|
|
2362
|
+
var existing_dataType = existing.dataType;
|
|
2363
|
+
var incoming_dataType = incoming.dataType;
|
|
2364
|
+
if (!(existing_dataType === incoming_dataType)) {
|
|
2365
|
+
return false;
|
|
2366
|
+
}
|
|
2367
|
+
var existing_isDefault = existing.isDefault;
|
|
2368
|
+
var incoming_isDefault = incoming.isDefault;
|
|
2369
|
+
if (!(existing_isDefault === incoming_isDefault)) {
|
|
2370
|
+
return false;
|
|
2371
|
+
}
|
|
2372
|
+
var existing_objectName = existing.objectName;
|
|
2373
|
+
var incoming_objectName = incoming.objectName;
|
|
2374
|
+
if (!(existing_objectName === incoming_objectName)) {
|
|
2375
|
+
return false;
|
|
2376
|
+
}
|
|
2377
|
+
var existing_sourceColumnApiName = existing.sourceColumnApiName;
|
|
2378
|
+
var incoming_sourceColumnApiName = incoming.sourceColumnApiName;
|
|
2379
|
+
if (!(existing_sourceColumnApiName === incoming_sourceColumnApiName)) {
|
|
2380
|
+
return false;
|
|
2381
|
+
}
|
|
2382
|
+
var existing_sourceFieldName = existing.sourceFieldName;
|
|
2383
|
+
var incoming_sourceFieldName = incoming.sourceFieldName;
|
|
2384
|
+
if (!(existing_sourceFieldName === incoming_sourceFieldName)) {
|
|
2385
|
+
return false;
|
|
2386
|
+
}
|
|
2387
|
+
return true;
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
var VERSION$2 = "ad799b06e079ea81d47ce361336c5282";
|
|
2391
|
+
function validate$2(obj, path) {
|
|
2392
|
+
if (path === void 0) { path = 'ActionableListDatasetRowRepresentation'; }
|
|
2393
|
+
var v_error = (function () {
|
|
2394
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2395
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2396
|
+
}
|
|
2397
|
+
var obj_rowMap = obj.rowMap;
|
|
2398
|
+
var path_rowMap = path + '.rowMap';
|
|
2399
|
+
if (typeof obj_rowMap !== 'object' || ArrayIsArray(obj_rowMap) || obj_rowMap === null) {
|
|
2400
|
+
return new TypeError('Expected "object" but received "' + typeof obj_rowMap + '" (at "' + path_rowMap + '")');
|
|
2401
|
+
}
|
|
2402
|
+
var obj_rowMap_keys = ObjectKeys(obj_rowMap);
|
|
2403
|
+
for (var i = 0; i < obj_rowMap_keys.length; i++) {
|
|
2404
|
+
var key = obj_rowMap_keys[i];
|
|
2405
|
+
var obj_rowMap_prop = obj_rowMap[key];
|
|
2406
|
+
var path_rowMap_prop = path_rowMap + '["' + key + '"]';
|
|
2407
|
+
if (typeof obj_rowMap_prop !== 'string') {
|
|
2408
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rowMap_prop + '" (at "' + path_rowMap_prop + '")');
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
})();
|
|
2412
|
+
return v_error === undefined ? null : v_error;
|
|
2413
|
+
}
|
|
2414
|
+
var select$3 = function ActionableListDatasetRowRepresentationSelect() {
|
|
2415
|
+
return {
|
|
2416
|
+
kind: 'Fragment',
|
|
2417
|
+
version: VERSION$2,
|
|
2418
|
+
private: [],
|
|
2419
|
+
selections: [
|
|
2420
|
+
{
|
|
2421
|
+
name: 'rowMap',
|
|
2422
|
+
kind: 'Scalar',
|
|
2423
|
+
map: true
|
|
2424
|
+
}
|
|
2425
|
+
]
|
|
2426
|
+
};
|
|
2427
|
+
};
|
|
2428
|
+
function equals$2(existing, incoming) {
|
|
2429
|
+
var existing_rowMap = existing.rowMap;
|
|
2430
|
+
var incoming_rowMap = incoming.rowMap;
|
|
2431
|
+
var equals_rowMap_props = equalsObject(existing_rowMap, incoming_rowMap, function (existing_rowMap_prop, incoming_rowMap_prop) {
|
|
2432
|
+
if (!(existing_rowMap_prop === incoming_rowMap_prop)) {
|
|
2433
|
+
return false;
|
|
2434
|
+
}
|
|
2435
|
+
});
|
|
2436
|
+
if (equals_rowMap_props === false) {
|
|
2437
|
+
return false;
|
|
2438
|
+
}
|
|
2439
|
+
return true;
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
var VERSION$1 = "4ddcc2754150af16fd09c10d9fdabfbc";
|
|
2443
|
+
function validate$1(obj, path) {
|
|
2444
|
+
if (path === void 0) { path = 'ActionableListMemberStatusRepresentation'; }
|
|
2445
|
+
var v_error = (function () {
|
|
2446
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2447
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2448
|
+
}
|
|
2449
|
+
var obj_iconName = obj.iconName;
|
|
2450
|
+
var path_iconName = path + '.iconName';
|
|
2451
|
+
var obj_iconName_union0 = null;
|
|
2452
|
+
var obj_iconName_union0_error = (function () {
|
|
2453
|
+
if (typeof obj_iconName !== 'string') {
|
|
2454
|
+
return new TypeError('Expected "string" but received "' + typeof obj_iconName + '" (at "' + path_iconName + '")');
|
|
2455
|
+
}
|
|
2456
|
+
})();
|
|
2457
|
+
if (obj_iconName_union0_error != null) {
|
|
2458
|
+
obj_iconName_union0 = obj_iconName_union0_error.message;
|
|
2459
|
+
}
|
|
2460
|
+
var obj_iconName_union1 = null;
|
|
2461
|
+
var obj_iconName_union1_error = (function () {
|
|
2462
|
+
if (obj_iconName !== null) {
|
|
2463
|
+
return new TypeError('Expected "null" but received "' + typeof obj_iconName + '" (at "' + path_iconName + '")');
|
|
2464
|
+
}
|
|
2465
|
+
})();
|
|
2466
|
+
if (obj_iconName_union1_error != null) {
|
|
2467
|
+
obj_iconName_union1 = obj_iconName_union1_error.message;
|
|
2468
|
+
}
|
|
2469
|
+
if (obj_iconName_union0 && obj_iconName_union1) {
|
|
2470
|
+
var message = 'Object doesn\'t match union (at "' + path_iconName + '")';
|
|
2471
|
+
message += '\n' + obj_iconName_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2472
|
+
message += '\n' + obj_iconName_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2473
|
+
return new TypeError(message);
|
|
2474
|
+
}
|
|
2475
|
+
var obj_id = obj.id;
|
|
2476
|
+
var path_id = path + '.id';
|
|
2477
|
+
var obj_id_union0 = null;
|
|
2478
|
+
var obj_id_union0_error = (function () {
|
|
2479
|
+
if (typeof obj_id !== 'string') {
|
|
2480
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2481
|
+
}
|
|
2482
|
+
})();
|
|
2483
|
+
if (obj_id_union0_error != null) {
|
|
2484
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
2485
|
+
}
|
|
2486
|
+
var obj_id_union1 = null;
|
|
2487
|
+
var obj_id_union1_error = (function () {
|
|
2488
|
+
if (obj_id !== null) {
|
|
2489
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2490
|
+
}
|
|
2491
|
+
})();
|
|
2492
|
+
if (obj_id_union1_error != null) {
|
|
2493
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
2494
|
+
}
|
|
2495
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
2496
|
+
var message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
2497
|
+
message += '\n' + obj_id_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2498
|
+
message += '\n' + obj_id_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2499
|
+
return new TypeError(message);
|
|
2500
|
+
}
|
|
2501
|
+
var obj_status = obj.status;
|
|
2502
|
+
var path_status = path + '.status';
|
|
2503
|
+
var obj_status_union0 = null;
|
|
2504
|
+
var obj_status_union0_error = (function () {
|
|
2505
|
+
if (typeof obj_status !== 'string') {
|
|
2506
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
2507
|
+
}
|
|
2508
|
+
})();
|
|
2509
|
+
if (obj_status_union0_error != null) {
|
|
2510
|
+
obj_status_union0 = obj_status_union0_error.message;
|
|
2511
|
+
}
|
|
2512
|
+
var obj_status_union1 = null;
|
|
2513
|
+
var obj_status_union1_error = (function () {
|
|
2514
|
+
if (obj_status !== null) {
|
|
2515
|
+
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
2516
|
+
}
|
|
2517
|
+
})();
|
|
2518
|
+
if (obj_status_union1_error != null) {
|
|
2519
|
+
obj_status_union1 = obj_status_union1_error.message;
|
|
2520
|
+
}
|
|
2521
|
+
if (obj_status_union0 && obj_status_union1) {
|
|
2522
|
+
var message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
2523
|
+
message += '\n' + obj_status_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2524
|
+
message += '\n' + obj_status_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2525
|
+
return new TypeError(message);
|
|
2526
|
+
}
|
|
2527
|
+
})();
|
|
2528
|
+
return v_error === undefined ? null : v_error;
|
|
2529
|
+
}
|
|
2530
|
+
var select$2 = function ActionableListMemberStatusRepresentationSelect() {
|
|
2531
|
+
return {
|
|
2532
|
+
kind: 'Fragment',
|
|
2533
|
+
version: VERSION$1,
|
|
2534
|
+
private: [],
|
|
2535
|
+
selections: [
|
|
2536
|
+
{
|
|
2537
|
+
name: 'iconName',
|
|
2538
|
+
kind: 'Scalar'
|
|
2539
|
+
},
|
|
2540
|
+
{
|
|
2541
|
+
name: 'id',
|
|
2542
|
+
kind: 'Scalar'
|
|
2543
|
+
},
|
|
2544
|
+
{
|
|
2545
|
+
name: 'status',
|
|
2546
|
+
kind: 'Scalar'
|
|
2547
|
+
}
|
|
2548
|
+
]
|
|
2549
|
+
};
|
|
2550
|
+
};
|
|
2551
|
+
function equals$1(existing, incoming) {
|
|
2552
|
+
var existing_iconName = existing.iconName;
|
|
2553
|
+
var incoming_iconName = incoming.iconName;
|
|
2554
|
+
if (!(existing_iconName === incoming_iconName)) {
|
|
2555
|
+
return false;
|
|
2556
|
+
}
|
|
2557
|
+
var existing_id = existing.id;
|
|
2558
|
+
var incoming_id = incoming.id;
|
|
2559
|
+
if (!(existing_id === incoming_id)) {
|
|
2560
|
+
return false;
|
|
2561
|
+
}
|
|
2562
|
+
var existing_status = existing.status;
|
|
2563
|
+
var incoming_status = incoming.status;
|
|
2564
|
+
if (!(existing_status === incoming_status)) {
|
|
2565
|
+
return false;
|
|
2566
|
+
}
|
|
2567
|
+
return true;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
var TTL = 100;
|
|
2571
|
+
var VERSION = "c2472d63cf7565f324c596127a5840a6";
|
|
2572
|
+
function validate(obj, path) {
|
|
2573
|
+
if (path === void 0) { path = 'ActionableListDatasetByDefinitionRepresentation'; }
|
|
2574
|
+
var v_error = (function () {
|
|
2575
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2576
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2577
|
+
}
|
|
2578
|
+
var obj_currencyCode = obj.currencyCode;
|
|
2579
|
+
var path_currencyCode = path + '.currencyCode';
|
|
2580
|
+
var obj_currencyCode_union0 = null;
|
|
2581
|
+
var obj_currencyCode_union0_error = (function () {
|
|
2582
|
+
if (typeof obj_currencyCode !== 'string') {
|
|
2583
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyCode + '" (at "' + path_currencyCode + '")');
|
|
2584
|
+
}
|
|
2585
|
+
})();
|
|
2586
|
+
if (obj_currencyCode_union0_error != null) {
|
|
2587
|
+
obj_currencyCode_union0 = obj_currencyCode_union0_error.message;
|
|
2588
|
+
}
|
|
2589
|
+
var obj_currencyCode_union1 = null;
|
|
2590
|
+
var obj_currencyCode_union1_error = (function () {
|
|
2591
|
+
if (obj_currencyCode !== null) {
|
|
2592
|
+
return new TypeError('Expected "null" but received "' + typeof obj_currencyCode + '" (at "' + path_currencyCode + '")');
|
|
2593
|
+
}
|
|
2594
|
+
})();
|
|
2595
|
+
if (obj_currencyCode_union1_error != null) {
|
|
2596
|
+
obj_currencyCode_union1 = obj_currencyCode_union1_error.message;
|
|
2597
|
+
}
|
|
2598
|
+
if (obj_currencyCode_union0 && obj_currencyCode_union1) {
|
|
2599
|
+
var message = 'Object doesn\'t match union (at "' + path_currencyCode + '")';
|
|
2600
|
+
message += '\n' + obj_currencyCode_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2601
|
+
message += '\n' + obj_currencyCode_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2602
|
+
return new TypeError(message);
|
|
2603
|
+
}
|
|
2604
|
+
var obj_datasetColumns = obj.datasetColumns;
|
|
2605
|
+
var path_datasetColumns = path + '.datasetColumns';
|
|
2606
|
+
if (!ArrayIsArray(obj_datasetColumns)) {
|
|
2607
|
+
return new TypeError('Expected "array" but received "' + typeof obj_datasetColumns + '" (at "' + path_datasetColumns + '")');
|
|
2608
|
+
}
|
|
2609
|
+
for (var i = 0; i < obj_datasetColumns.length; i++) {
|
|
2610
|
+
var obj_datasetColumns_item = obj_datasetColumns[i];
|
|
2611
|
+
var path_datasetColumns_item = path_datasetColumns + '[' + i + ']';
|
|
2612
|
+
var referencepath_datasetColumns_itemValidationError = validate$3(obj_datasetColumns_item, path_datasetColumns_item);
|
|
2613
|
+
if (referencepath_datasetColumns_itemValidationError !== null) {
|
|
2614
|
+
var message = 'Object doesn\'t match ActionableListDatasetColumnRepresentation (at "' + path_datasetColumns_item + '")\n';
|
|
2615
|
+
message += referencepath_datasetColumns_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2616
|
+
return new TypeError(message);
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
var obj_datasetRows = obj.datasetRows;
|
|
2620
|
+
var path_datasetRows = path + '.datasetRows';
|
|
2621
|
+
if (!ArrayIsArray(obj_datasetRows)) {
|
|
2622
|
+
return new TypeError('Expected "array" but received "' + typeof obj_datasetRows + '" (at "' + path_datasetRows + '")');
|
|
2623
|
+
}
|
|
2624
|
+
for (var i = 0; i < obj_datasetRows.length; i++) {
|
|
2625
|
+
var obj_datasetRows_item = obj_datasetRows[i];
|
|
2626
|
+
var path_datasetRows_item = path_datasetRows + '[' + i + ']';
|
|
2627
|
+
var referencepath_datasetRows_itemValidationError = validate$2(obj_datasetRows_item, path_datasetRows_item);
|
|
2628
|
+
if (referencepath_datasetRows_itemValidationError !== null) {
|
|
2629
|
+
var message = 'Object doesn\'t match ActionableListDatasetRowRepresentation (at "' + path_datasetRows_item + '")\n';
|
|
2630
|
+
message += referencepath_datasetRows_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2631
|
+
return new TypeError(message);
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
var obj_memberStatuses = obj.memberStatuses;
|
|
2635
|
+
var path_memberStatuses = path + '.memberStatuses';
|
|
2636
|
+
if (!ArrayIsArray(obj_memberStatuses)) {
|
|
2637
|
+
return new TypeError('Expected "array" but received "' + typeof obj_memberStatuses + '" (at "' + path_memberStatuses + '")');
|
|
2638
|
+
}
|
|
2639
|
+
for (var i = 0; i < obj_memberStatuses.length; i++) {
|
|
2640
|
+
var obj_memberStatuses_item = obj_memberStatuses[i];
|
|
2641
|
+
var path_memberStatuses_item = path_memberStatuses + '[' + i + ']';
|
|
2642
|
+
var referencepath_memberStatuses_itemValidationError = validate$1(obj_memberStatuses_item, path_memberStatuses_item);
|
|
2643
|
+
if (referencepath_memberStatuses_itemValidationError !== null) {
|
|
2644
|
+
var message = 'Object doesn\'t match ActionableListMemberStatusRepresentation (at "' + path_memberStatuses_item + '")\n';
|
|
2645
|
+
message += referencepath_memberStatuses_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2646
|
+
return new TypeError(message);
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
var obj_responseId = obj.responseId;
|
|
2650
|
+
var path_responseId = path + '.responseId';
|
|
2651
|
+
if (typeof obj_responseId !== 'string') {
|
|
2652
|
+
return new TypeError('Expected "string" but received "' + typeof obj_responseId + '" (at "' + path_responseId + '")');
|
|
2653
|
+
}
|
|
2654
|
+
})();
|
|
2655
|
+
return v_error === undefined ? null : v_error;
|
|
2656
|
+
}
|
|
2657
|
+
var RepresentationType = 'ActionableListDatasetByDefinitionRepresentation';
|
|
2658
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
2659
|
+
return input;
|
|
2660
|
+
}
|
|
2661
|
+
var select$1 = function ActionableListDatasetByDefinitionRepresentationSelect() {
|
|
2662
|
+
var _a = select$4(), ActionableListDatasetColumnRepresentation__selections = _a.selections;
|
|
2663
|
+
var _b = select$3(), ActionableListDatasetRowRepresentation__selections = _b.selections;
|
|
2664
|
+
var _c = select$2(), ActionableListMemberStatusRepresentation__selections = _c.selections;
|
|
2665
|
+
return {
|
|
2666
|
+
kind: 'Fragment',
|
|
2667
|
+
version: VERSION,
|
|
2668
|
+
private: [],
|
|
2669
|
+
selections: [
|
|
2670
|
+
{
|
|
2671
|
+
name: 'currencyCode',
|
|
2672
|
+
kind: 'Scalar'
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
name: 'datasetColumns',
|
|
2676
|
+
kind: 'Object',
|
|
2677
|
+
plural: true,
|
|
2678
|
+
selections: ActionableListDatasetColumnRepresentation__selections
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
name: 'datasetRows',
|
|
2682
|
+
kind: 'Object',
|
|
2683
|
+
plural: true,
|
|
2684
|
+
selections: ActionableListDatasetRowRepresentation__selections
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
name: 'memberStatuses',
|
|
2688
|
+
kind: 'Object',
|
|
2689
|
+
plural: true,
|
|
2690
|
+
selections: ActionableListMemberStatusRepresentation__selections
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
name: 'responseId',
|
|
2694
|
+
kind: 'Scalar'
|
|
2695
|
+
}
|
|
2696
|
+
]
|
|
2697
|
+
};
|
|
2698
|
+
};
|
|
2699
|
+
function equals(existing, incoming) {
|
|
2700
|
+
var existing_responseId = existing.responseId;
|
|
2701
|
+
var incoming_responseId = incoming.responseId;
|
|
2702
|
+
if (!(existing_responseId === incoming_responseId)) {
|
|
2703
|
+
return false;
|
|
2704
|
+
}
|
|
2705
|
+
var existing_currencyCode = existing.currencyCode;
|
|
2706
|
+
var incoming_currencyCode = incoming.currencyCode;
|
|
2707
|
+
if (!(existing_currencyCode === incoming_currencyCode)) {
|
|
2708
|
+
return false;
|
|
2709
|
+
}
|
|
2710
|
+
var existing_datasetColumns = existing.datasetColumns;
|
|
2711
|
+
var incoming_datasetColumns = incoming.datasetColumns;
|
|
2712
|
+
var equals_datasetColumns_items = equalsArray(existing_datasetColumns, incoming_datasetColumns, function (existing_datasetColumns_item, incoming_datasetColumns_item) {
|
|
2713
|
+
if (!(equals$3(existing_datasetColumns_item, incoming_datasetColumns_item))) {
|
|
2714
|
+
return false;
|
|
2715
|
+
}
|
|
2716
|
+
});
|
|
2717
|
+
if (equals_datasetColumns_items === false) {
|
|
2718
|
+
return false;
|
|
2719
|
+
}
|
|
2720
|
+
var existing_datasetRows = existing.datasetRows;
|
|
2721
|
+
var incoming_datasetRows = incoming.datasetRows;
|
|
2722
|
+
var equals_datasetRows_items = equalsArray(existing_datasetRows, incoming_datasetRows, function (existing_datasetRows_item, incoming_datasetRows_item) {
|
|
2723
|
+
if (!(equals$2(existing_datasetRows_item, incoming_datasetRows_item))) {
|
|
2724
|
+
return false;
|
|
2725
|
+
}
|
|
2726
|
+
});
|
|
2727
|
+
if (equals_datasetRows_items === false) {
|
|
2728
|
+
return false;
|
|
2729
|
+
}
|
|
2730
|
+
var existing_memberStatuses = existing.memberStatuses;
|
|
2731
|
+
var incoming_memberStatuses = incoming.memberStatuses;
|
|
2732
|
+
var equals_memberStatuses_items = equalsArray(existing_memberStatuses, incoming_memberStatuses, function (existing_memberStatuses_item, incoming_memberStatuses_item) {
|
|
2733
|
+
if (!(equals$1(existing_memberStatuses_item, incoming_memberStatuses_item))) {
|
|
2734
|
+
return false;
|
|
2735
|
+
}
|
|
2736
|
+
});
|
|
2737
|
+
if (equals_memberStatuses_items === false) {
|
|
2738
|
+
return false;
|
|
2739
|
+
}
|
|
2740
|
+
return true;
|
|
2741
|
+
}
|
|
2742
|
+
var ingest = function ActionableListDatasetByDefinitionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2743
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2744
|
+
var validateError = validate(input);
|
|
2745
|
+
if (validateError !== null) {
|
|
2746
|
+
throw validateError;
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
var key = path.fullPath;
|
|
2750
|
+
var existingRecord = store.readEntry(key);
|
|
2751
|
+
var ttlToUse = TTL;
|
|
2752
|
+
var incomingRecord = normalize(input, store.readEntry(key), {
|
|
2753
|
+
fullPath: key,
|
|
2754
|
+
parent: path.parent,
|
|
2755
|
+
propertyName: path.propertyName,
|
|
2756
|
+
ttl: ttlToUse
|
|
2757
|
+
});
|
|
2758
|
+
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
2759
|
+
luvio.storePublish(key, incomingRecord);
|
|
2760
|
+
}
|
|
2761
|
+
{
|
|
2762
|
+
var storeMetadataParams = {
|
|
2763
|
+
ttl: ttlToUse,
|
|
2764
|
+
namespace: "actionablelist",
|
|
2765
|
+
version: VERSION,
|
|
2766
|
+
representationName: RepresentationType,
|
|
2767
|
+
};
|
|
2768
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
2769
|
+
}
|
|
2770
|
+
return createLink(key);
|
|
2771
|
+
};
|
|
2772
|
+
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
2773
|
+
var rootKeySet = new engine.StoreKeyMap();
|
|
2774
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2775
|
+
var rootKey = fullPathFactory();
|
|
2776
|
+
rootKeySet.set(rootKey, {
|
|
2777
|
+
namespace: keyPrefix,
|
|
2778
|
+
representationName: RepresentationType,
|
|
2779
|
+
mergeable: false
|
|
2780
|
+
});
|
|
2781
|
+
return rootKeySet;
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
function select(luvio, params) {
|
|
2785
|
+
return select$1();
|
|
2786
|
+
}
|
|
2787
|
+
function keyBuilder$1(luvio, params) {
|
|
2788
|
+
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + +'::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
2789
|
+
}
|
|
2790
|
+
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
2791
|
+
return getTypeCacheKeys(luvio, response, function () { return keyBuilder$1(luvio, resourceParams); });
|
|
2792
|
+
}
|
|
2793
|
+
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
2794
|
+
var body = response.body;
|
|
2795
|
+
var key = keyBuilder$1(luvio, resourceParams);
|
|
2796
|
+
luvio.storeIngest(key, ingest, body);
|
|
2797
|
+
var snapshot = luvio.storeLookup({
|
|
2798
|
+
recordId: key,
|
|
2799
|
+
node: select(),
|
|
2800
|
+
variables: {},
|
|
2801
|
+
}, snapshotRefresh);
|
|
2802
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2803
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2804
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
return snapshot;
|
|
2808
|
+
}
|
|
2809
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
2810
|
+
var key = keyBuilder$1(luvio, params);
|
|
2811
|
+
var errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2812
|
+
var storeMetadataParams = {
|
|
2813
|
+
ttl: TTL,
|
|
2814
|
+
namespace: keyPrefix,
|
|
2815
|
+
version: VERSION,
|
|
2816
|
+
representationName: RepresentationType
|
|
2817
|
+
};
|
|
2818
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2819
|
+
return errorSnapshot;
|
|
2820
|
+
}
|
|
2821
|
+
function createResourceRequest(config) {
|
|
2822
|
+
var headers = {};
|
|
2823
|
+
return {
|
|
2824
|
+
baseUri: '/services/data/v58.0',
|
|
2825
|
+
basePath: '/connect/actionable-list-definition/rows',
|
|
2826
|
+
method: 'post',
|
|
2827
|
+
body: config.body,
|
|
2828
|
+
urlParams: {},
|
|
2829
|
+
queryParams: {},
|
|
2830
|
+
headers: headers,
|
|
2831
|
+
priority: 'normal',
|
|
2832
|
+
};
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
var getActionableListDatasetInfo_ConfigPropertyNames = {
|
|
2836
|
+
displayName: 'getActionableListDatasetInfo',
|
|
2837
|
+
parameters: {
|
|
2838
|
+
required: ['actionableListDataset'],
|
|
2839
|
+
optional: []
|
|
2840
|
+
}
|
|
2841
|
+
};
|
|
2842
|
+
function createResourceParams(config) {
|
|
2843
|
+
var resourceParams = {
|
|
2844
|
+
body: {
|
|
2845
|
+
actionableListDataset: config.actionableListDataset
|
|
2846
|
+
}
|
|
2847
|
+
};
|
|
2848
|
+
return resourceParams;
|
|
2849
|
+
}
|
|
2850
|
+
function keyBuilder(luvio, config) {
|
|
2851
|
+
var resourceParams = createResourceParams(config);
|
|
2852
|
+
return keyBuilder$1(luvio, resourceParams);
|
|
2853
|
+
}
|
|
2854
|
+
function typeCheckConfig(untrustedConfig) {
|
|
2855
|
+
var config = {};
|
|
2856
|
+
var untrustedConfig_actionableListDataset = untrustedConfig.actionableListDataset;
|
|
2857
|
+
var referenceActionableListDatasetInputRepresentationValidationError = validate$4(untrustedConfig_actionableListDataset);
|
|
2858
|
+
if (referenceActionableListDatasetInputRepresentationValidationError === null) {
|
|
2859
|
+
config.actionableListDataset = untrustedConfig_actionableListDataset;
|
|
2860
|
+
}
|
|
2861
|
+
return config;
|
|
2862
|
+
}
|
|
2863
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
2864
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2865
|
+
return null;
|
|
2866
|
+
}
|
|
2867
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2868
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2869
|
+
}
|
|
2870
|
+
var config = typeCheckConfig(untrustedConfig);
|
|
2871
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2872
|
+
return null;
|
|
2873
|
+
}
|
|
2874
|
+
return config;
|
|
2875
|
+
}
|
|
2876
|
+
function adapterFragment(luvio, config) {
|
|
2877
|
+
createResourceParams(config);
|
|
2878
|
+
return select();
|
|
2879
|
+
}
|
|
2880
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
2881
|
+
var snapshot = ingestSuccess(luvio, resourceParams, response, {
|
|
2882
|
+
config: config,
|
|
2883
|
+
resolve: function () { return buildNetworkSnapshot(luvio, config, snapshotRefreshOptions); }
|
|
2884
|
+
});
|
|
2885
|
+
return luvio.storeBroadcast().then(function () { return snapshot; });
|
|
2886
|
+
}
|
|
2887
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
2888
|
+
var snapshot = ingestError(luvio, resourceParams, response, {
|
|
2889
|
+
config: config,
|
|
2890
|
+
resolve: function () { return buildNetworkSnapshot(luvio, config, snapshotRefreshOptions); }
|
|
2891
|
+
});
|
|
2892
|
+
return luvio.storeBroadcast().then(function () { return snapshot; });
|
|
2893
|
+
}
|
|
2894
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
2895
|
+
var resourceParams = createResourceParams(config);
|
|
2896
|
+
var request = createResourceRequest(resourceParams);
|
|
2897
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2898
|
+
.then(function (response) {
|
|
2899
|
+
return luvio.handleSuccessResponse(function () { return onFetchResponseSuccess(luvio, config, resourceParams, response); }, function () { return getResponseCacheKeys(luvio, resourceParams, response.body); });
|
|
2900
|
+
}, function (response) {
|
|
2901
|
+
return luvio.handleErrorResponse(function () { return onFetchResponseError(luvio, config, resourceParams, response); });
|
|
2902
|
+
});
|
|
2903
|
+
}
|
|
2904
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
2905
|
+
var luvio = context.luvio, config = context.config;
|
|
2906
|
+
var networkPriority = coercedAdapterRequestContext.networkPriority, requestCorrelator = coercedAdapterRequestContext.requestCorrelator, eventObservers = coercedAdapterRequestContext.eventObservers;
|
|
2907
|
+
var dispatchOptions = {
|
|
2908
|
+
resourceRequestContext: {
|
|
2909
|
+
requestCorrelator: requestCorrelator,
|
|
2910
|
+
luvioRequestMethod: 'get',
|
|
2911
|
+
},
|
|
2912
|
+
eventObservers: eventObservers
|
|
2913
|
+
};
|
|
2914
|
+
if (networkPriority !== 'normal') {
|
|
2915
|
+
dispatchOptions.overrides = {
|
|
2916
|
+
priority: networkPriority
|
|
2917
|
+
};
|
|
2918
|
+
}
|
|
2919
|
+
return buildNetworkSnapshot(luvio, config, dispatchOptions);
|
|
2920
|
+
}
|
|
2921
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
2922
|
+
var luvio = context.luvio, config = context.config;
|
|
2923
|
+
var selector = {
|
|
2924
|
+
recordId: keyBuilder(luvio, config),
|
|
2925
|
+
node: adapterFragment(luvio, config),
|
|
2926
|
+
variables: {},
|
|
2927
|
+
};
|
|
2928
|
+
var cacheSnapshot = storeLookup(selector, {
|
|
2929
|
+
config: config,
|
|
2930
|
+
resolve: function () { return buildNetworkSnapshot(luvio, config, snapshotRefreshOptions); }
|
|
2931
|
+
});
|
|
2932
|
+
return cacheSnapshot;
|
|
2933
|
+
}
|
|
2934
|
+
var getActionableListDatasetInfoAdapterFactory = function (luvio) { return function actionablelist__getActionableListDatasetInfo(untrustedConfig, requestContext) {
|
|
2935
|
+
var config = validateAdapterConfig(untrustedConfig, getActionableListDatasetInfo_ConfigPropertyNames);
|
|
2936
|
+
// Invalid or incomplete config
|
|
2937
|
+
if (config === null) {
|
|
2938
|
+
return null;
|
|
2939
|
+
}
|
|
2940
|
+
return luvio.applyCachePolicy((requestContext || {}), { config: config, luvio: luvio }, // BuildSnapshotContext
|
|
2941
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2942
|
+
}; };
|
|
2943
|
+
|
|
2944
|
+
exports.createActionableListDefinitionAdapterFactory = createActionableListDefinitionAdapterFactory;
|
|
2945
|
+
exports.getActionableListDatasetInfoAdapterFactory = getActionableListDatasetInfoAdapterFactory;
|
|
2946
|
+
exports.getActionableListDefinitionsAdapterFactory = getActionableListDefinitionsAdapterFactory;
|
|
2947
|
+
exports.getActionableListMembersAdapterFactory = getActionableListMembersAdapterFactory;
|
|
2948
|
+
exports.upsertActionableListAdapterFactory = upsertActionableListAdapterFactory;
|
|
2949
|
+
|
|
2950
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2951
|
+
|
|
2952
|
+
}));
|