@salesforce/lds-adapters-platform-enablement 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.
@@ -0,0 +1,1492 @@
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.platformEnablement = {}, global.engine));
11
+ })(this, (function (exports, engine) { 'use strict';
12
+
13
+ var ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty;
14
+ var ObjectKeys = 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(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 = 'enablement';
56
+
57
+ var ArrayIsArray = Array.isArray;
58
+ var JSONStringify = JSON.stringify;
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 createLink(ref) {
73
+ return {
74
+ __ref: engine.serializeStructuredKey(ref),
75
+ };
76
+ }
77
+
78
+ /******************************************************************************
79
+ Copyright (c) Microsoft Corporation.
80
+
81
+ Permission to use, copy, modify, and/or distribute this software for any
82
+ purpose with or without fee is hereby granted.
83
+
84
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
85
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
86
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
87
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
88
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
89
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
90
+ PERFORMANCE OF THIS SOFTWARE.
91
+ ***************************************************************************** */
92
+
93
+ function __spreadArray(to, from, pack) {
94
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
95
+ if (ar || !(i in from)) {
96
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
97
+ ar[i] = from[i];
98
+ }
99
+ }
100
+ return to.concat(ar || Array.prototype.slice.call(from));
101
+ }
102
+
103
+ var DiscriminatorValues;
104
+ (function (DiscriminatorValues) {
105
+ DiscriminatorValues["Task"] = "Task";
106
+ DiscriminatorValues["Section"] = "Section";
107
+ })(DiscriminatorValues || (DiscriminatorValues = {}));
108
+ var VERSION$3 = "a9470f37b0d95500b425222897fff882";
109
+ function validate$3(obj, path) {
110
+ if (path === void 0) { path = 'EnablementProgramSummaryItemRepresentation'; }
111
+ var v_error = (function () {
112
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
113
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
114
+ }
115
+ var obj_description = obj.description;
116
+ var path_description = path + '.description';
117
+ if (typeof obj_description !== 'string') {
118
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
119
+ }
120
+ var obj_id = obj.id;
121
+ var path_id = path + '.id';
122
+ if (typeof obj_id !== 'string') {
123
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
124
+ }
125
+ var obj_sequenceNumber = obj.sequenceNumber;
126
+ var path_sequenceNumber = path + '.sequenceNumber';
127
+ if (typeof obj_sequenceNumber !== 'number' || (typeof obj_sequenceNumber === 'number' && Math.floor(obj_sequenceNumber) !== obj_sequenceNumber)) {
128
+ return new TypeError('Expected "integer" but received "' + typeof obj_sequenceNumber + '" (at "' + path_sequenceNumber + '")');
129
+ }
130
+ var obj_title = obj.title;
131
+ var path_title = path + '.title';
132
+ if (typeof obj_title !== 'string') {
133
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
134
+ }
135
+ var obj_type = obj.type;
136
+ var path_type = path + '.type';
137
+ if (typeof obj_type !== 'string') {
138
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
139
+ }
140
+ })();
141
+ return v_error === undefined ? null : v_error;
142
+ }
143
+ var select$5 = function EnablementProgramSummaryItemRepresentationSelect() {
144
+ return {
145
+ kind: 'Fragment',
146
+ version: VERSION$3,
147
+ private: [],
148
+ selections: [
149
+ {
150
+ name: 'description',
151
+ kind: 'Scalar'
152
+ },
153
+ {
154
+ name: 'id',
155
+ kind: 'Scalar'
156
+ },
157
+ {
158
+ name: 'sequenceNumber',
159
+ kind: 'Scalar'
160
+ },
161
+ {
162
+ name: 'title',
163
+ kind: 'Scalar'
164
+ },
165
+ {
166
+ name: 'type',
167
+ kind: 'Scalar'
168
+ }
169
+ ]
170
+ };
171
+ };
172
+ function equals$3(existing, incoming) {
173
+ var existing_sequenceNumber = existing.sequenceNumber;
174
+ var incoming_sequenceNumber = incoming.sequenceNumber;
175
+ if (!(existing_sequenceNumber === incoming_sequenceNumber)) {
176
+ return false;
177
+ }
178
+ var existing_description = existing.description;
179
+ var incoming_description = incoming.description;
180
+ if (!(existing_description === incoming_description)) {
181
+ return false;
182
+ }
183
+ var existing_id = existing.id;
184
+ var incoming_id = incoming.id;
185
+ if (!(existing_id === incoming_id)) {
186
+ return false;
187
+ }
188
+ var existing_title = existing.title;
189
+ var incoming_title = incoming.title;
190
+ if (!(existing_title === incoming_title)) {
191
+ return false;
192
+ }
193
+ var existing_type = existing.type;
194
+ var incoming_type = incoming.type;
195
+ if (!(existing_type === incoming_type)) {
196
+ return false;
197
+ }
198
+ return true;
199
+ }
200
+
201
+ var VERSION$2 = "4c8624037e7270f09e6a41f95632e74b";
202
+ function validate$2(obj, path) {
203
+ if (path === void 0) { path = 'EnablementProgramSummaryTaskRepresentation'; }
204
+ var validateEnablementProgramSummaryItemRepresentation_validateError = validate$3(obj, path);
205
+ if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
206
+ return validateEnablementProgramSummaryItemRepresentation_validateError;
207
+ }
208
+ var v_error = (function () {
209
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
210
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
211
+ }
212
+ var obj_completedDate = obj.completedDate;
213
+ var path_completedDate = path + '.completedDate';
214
+ var obj_completedDate_union0 = null;
215
+ var obj_completedDate_union0_error = (function () {
216
+ if (typeof obj_completedDate !== 'string') {
217
+ return new TypeError('Expected "string" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
218
+ }
219
+ })();
220
+ if (obj_completedDate_union0_error != null) {
221
+ obj_completedDate_union0 = obj_completedDate_union0_error.message;
222
+ }
223
+ var obj_completedDate_union1 = null;
224
+ var obj_completedDate_union1_error = (function () {
225
+ if (obj_completedDate !== null) {
226
+ return new TypeError('Expected "null" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
227
+ }
228
+ })();
229
+ if (obj_completedDate_union1_error != null) {
230
+ obj_completedDate_union1 = obj_completedDate_union1_error.message;
231
+ }
232
+ if (obj_completedDate_union0 && obj_completedDate_union1) {
233
+ var message = 'Object doesn\'t match union (at "' + path_completedDate + '")';
234
+ message += '\n' + obj_completedDate_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
235
+ message += '\n' + obj_completedDate_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
236
+ return new TypeError(message);
237
+ }
238
+ var obj_completedPercent = obj.completedPercent;
239
+ var path_completedPercent = path + '.completedPercent';
240
+ var obj_completedPercent_union0 = null;
241
+ var obj_completedPercent_union0_error = (function () {
242
+ if (typeof obj_completedPercent !== 'number') {
243
+ return new TypeError('Expected "number" but received "' + typeof obj_completedPercent + '" (at "' + path_completedPercent + '")');
244
+ }
245
+ })();
246
+ if (obj_completedPercent_union0_error != null) {
247
+ obj_completedPercent_union0 = obj_completedPercent_union0_error.message;
248
+ }
249
+ var obj_completedPercent_union1 = null;
250
+ var obj_completedPercent_union1_error = (function () {
251
+ if (obj_completedPercent !== null) {
252
+ return new TypeError('Expected "null" but received "' + typeof obj_completedPercent + '" (at "' + path_completedPercent + '")');
253
+ }
254
+ })();
255
+ if (obj_completedPercent_union1_error != null) {
256
+ obj_completedPercent_union1 = obj_completedPercent_union1_error.message;
257
+ }
258
+ if (obj_completedPercent_union0 && obj_completedPercent_union1) {
259
+ var message = 'Object doesn\'t match union (at "' + path_completedPercent + '")';
260
+ message += '\n' + obj_completedPercent_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
261
+ message += '\n' + obj_completedPercent_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
262
+ return new TypeError(message);
263
+ }
264
+ var obj_contributingRecordCount = obj.contributingRecordCount;
265
+ var path_contributingRecordCount = path + '.contributingRecordCount';
266
+ var obj_contributingRecordCount_union0 = null;
267
+ var obj_contributingRecordCount_union0_error = (function () {
268
+ if (typeof obj_contributingRecordCount !== 'number' || (typeof obj_contributingRecordCount === 'number' && Math.floor(obj_contributingRecordCount) !== obj_contributingRecordCount)) {
269
+ return new TypeError('Expected "integer" but received "' + typeof obj_contributingRecordCount + '" (at "' + path_contributingRecordCount + '")');
270
+ }
271
+ })();
272
+ if (obj_contributingRecordCount_union0_error != null) {
273
+ obj_contributingRecordCount_union0 = obj_contributingRecordCount_union0_error.message;
274
+ }
275
+ var obj_contributingRecordCount_union1 = null;
276
+ var obj_contributingRecordCount_union1_error = (function () {
277
+ if (obj_contributingRecordCount !== null) {
278
+ return new TypeError('Expected "null" but received "' + typeof obj_contributingRecordCount + '" (at "' + path_contributingRecordCount + '")');
279
+ }
280
+ })();
281
+ if (obj_contributingRecordCount_union1_error != null) {
282
+ obj_contributingRecordCount_union1 = obj_contributingRecordCount_union1_error.message;
283
+ }
284
+ if (obj_contributingRecordCount_union0 && obj_contributingRecordCount_union1) {
285
+ var message = 'Object doesn\'t match union (at "' + path_contributingRecordCount + '")';
286
+ message += '\n' + obj_contributingRecordCount_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
287
+ message += '\n' + obj_contributingRecordCount_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
288
+ return new TypeError(message);
289
+ }
290
+ var obj_dueDate = obj.dueDate;
291
+ var path_dueDate = path + '.dueDate';
292
+ var obj_dueDate_union0 = null;
293
+ var obj_dueDate_union0_error = (function () {
294
+ if (typeof obj_dueDate !== 'string') {
295
+ return new TypeError('Expected "string" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
296
+ }
297
+ })();
298
+ if (obj_dueDate_union0_error != null) {
299
+ obj_dueDate_union0 = obj_dueDate_union0_error.message;
300
+ }
301
+ var obj_dueDate_union1 = null;
302
+ var obj_dueDate_union1_error = (function () {
303
+ if (obj_dueDate !== null) {
304
+ return new TypeError('Expected "null" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
305
+ }
306
+ })();
307
+ if (obj_dueDate_union1_error != null) {
308
+ obj_dueDate_union1 = obj_dueDate_union1_error.message;
309
+ }
310
+ if (obj_dueDate_union0 && obj_dueDate_union1) {
311
+ var message = 'Object doesn\'t match union (at "' + path_dueDate + '")';
312
+ message += '\n' + obj_dueDate_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
313
+ message += '\n' + obj_dueDate_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
314
+ return new TypeError(message);
315
+ }
316
+ var obj_enablementProgramSectionId = obj.enablementProgramSectionId;
317
+ var path_enablementProgramSectionId = path + '.enablementProgramSectionId';
318
+ var obj_enablementProgramSectionId_union0 = null;
319
+ var obj_enablementProgramSectionId_union0_error = (function () {
320
+ if (typeof obj_enablementProgramSectionId !== 'string') {
321
+ return new TypeError('Expected "string" but received "' + typeof obj_enablementProgramSectionId + '" (at "' + path_enablementProgramSectionId + '")');
322
+ }
323
+ })();
324
+ if (obj_enablementProgramSectionId_union0_error != null) {
325
+ obj_enablementProgramSectionId_union0 = obj_enablementProgramSectionId_union0_error.message;
326
+ }
327
+ var obj_enablementProgramSectionId_union1 = null;
328
+ var obj_enablementProgramSectionId_union1_error = (function () {
329
+ if (obj_enablementProgramSectionId !== null) {
330
+ return new TypeError('Expected "null" but received "' + typeof obj_enablementProgramSectionId + '" (at "' + path_enablementProgramSectionId + '")');
331
+ }
332
+ })();
333
+ if (obj_enablementProgramSectionId_union1_error != null) {
334
+ obj_enablementProgramSectionId_union1 = obj_enablementProgramSectionId_union1_error.message;
335
+ }
336
+ if (obj_enablementProgramSectionId_union0 && obj_enablementProgramSectionId_union1) {
337
+ var message = 'Object doesn\'t match union (at "' + path_enablementProgramSectionId + '")';
338
+ message += '\n' + obj_enablementProgramSectionId_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
339
+ message += '\n' + obj_enablementProgramSectionId_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
340
+ return new TypeError(message);
341
+ }
342
+ var obj_isCompleted = obj.isCompleted;
343
+ var path_isCompleted = path + '.isCompleted';
344
+ var obj_isCompleted_union0 = null;
345
+ var obj_isCompleted_union0_error = (function () {
346
+ if (typeof obj_isCompleted !== 'boolean') {
347
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isCompleted + '" (at "' + path_isCompleted + '")');
348
+ }
349
+ })();
350
+ if (obj_isCompleted_union0_error != null) {
351
+ obj_isCompleted_union0 = obj_isCompleted_union0_error.message;
352
+ }
353
+ var obj_isCompleted_union1 = null;
354
+ var obj_isCompleted_union1_error = (function () {
355
+ if (obj_isCompleted !== null) {
356
+ return new TypeError('Expected "null" but received "' + typeof obj_isCompleted + '" (at "' + path_isCompleted + '")');
357
+ }
358
+ })();
359
+ if (obj_isCompleted_union1_error != null) {
360
+ obj_isCompleted_union1 = obj_isCompleted_union1_error.message;
361
+ }
362
+ if (obj_isCompleted_union0 && obj_isCompleted_union1) {
363
+ var message = 'Object doesn\'t match union (at "' + path_isCompleted + '")';
364
+ message += '\n' + obj_isCompleted_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
365
+ message += '\n' + obj_isCompleted_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
366
+ return new TypeError(message);
367
+ }
368
+ var obj_isOverdue = obj.isOverdue;
369
+ var path_isOverdue = path + '.isOverdue';
370
+ var obj_isOverdue_union0 = null;
371
+ var obj_isOverdue_union0_error = (function () {
372
+ if (typeof obj_isOverdue !== 'boolean') {
373
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isOverdue + '" (at "' + path_isOverdue + '")');
374
+ }
375
+ })();
376
+ if (obj_isOverdue_union0_error != null) {
377
+ obj_isOverdue_union0 = obj_isOverdue_union0_error.message;
378
+ }
379
+ var obj_isOverdue_union1 = null;
380
+ var obj_isOverdue_union1_error = (function () {
381
+ if (obj_isOverdue !== null) {
382
+ return new TypeError('Expected "null" but received "' + typeof obj_isOverdue + '" (at "' + path_isOverdue + '")');
383
+ }
384
+ })();
385
+ if (obj_isOverdue_union1_error != null) {
386
+ obj_isOverdue_union1 = obj_isOverdue_union1_error.message;
387
+ }
388
+ if (obj_isOverdue_union0 && obj_isOverdue_union1) {
389
+ var message = 'Object doesn\'t match union (at "' + path_isOverdue + '")';
390
+ message += '\n' + obj_isOverdue_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
391
+ message += '\n' + obj_isOverdue_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
392
+ return new TypeError(message);
393
+ }
394
+ var obj_learningItemId = obj.learningItemId;
395
+ var path_learningItemId = path + '.learningItemId';
396
+ var obj_learningItemId_union0 = null;
397
+ var obj_learningItemId_union0_error = (function () {
398
+ if (typeof obj_learningItemId !== 'string') {
399
+ return new TypeError('Expected "string" but received "' + typeof obj_learningItemId + '" (at "' + path_learningItemId + '")');
400
+ }
401
+ })();
402
+ if (obj_learningItemId_union0_error != null) {
403
+ obj_learningItemId_union0 = obj_learningItemId_union0_error.message;
404
+ }
405
+ var obj_learningItemId_union1 = null;
406
+ var obj_learningItemId_union1_error = (function () {
407
+ if (obj_learningItemId !== null) {
408
+ return new TypeError('Expected "null" but received "' + typeof obj_learningItemId + '" (at "' + path_learningItemId + '")');
409
+ }
410
+ })();
411
+ if (obj_learningItemId_union1_error != null) {
412
+ obj_learningItemId_union1 = obj_learningItemId_union1_error.message;
413
+ }
414
+ if (obj_learningItemId_union0 && obj_learningItemId_union1) {
415
+ var message = 'Object doesn\'t match union (at "' + path_learningItemId + '")';
416
+ message += '\n' + obj_learningItemId_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
417
+ message += '\n' + obj_learningItemId_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
418
+ return new TypeError(message);
419
+ }
420
+ var obj_milestoneResult = obj.milestoneResult;
421
+ var path_milestoneResult = path + '.milestoneResult';
422
+ var obj_milestoneResult_union0 = null;
423
+ var obj_milestoneResult_union0_error = (function () {
424
+ if (typeof obj_milestoneResult !== 'number') {
425
+ return new TypeError('Expected "number" but received "' + typeof obj_milestoneResult + '" (at "' + path_milestoneResult + '")');
426
+ }
427
+ })();
428
+ if (obj_milestoneResult_union0_error != null) {
429
+ obj_milestoneResult_union0 = obj_milestoneResult_union0_error.message;
430
+ }
431
+ var obj_milestoneResult_union1 = null;
432
+ var obj_milestoneResult_union1_error = (function () {
433
+ if (obj_milestoneResult !== null) {
434
+ return new TypeError('Expected "null" but received "' + typeof obj_milestoneResult + '" (at "' + path_milestoneResult + '")');
435
+ }
436
+ })();
437
+ if (obj_milestoneResult_union1_error != null) {
438
+ obj_milestoneResult_union1 = obj_milestoneResult_union1_error.message;
439
+ }
440
+ if (obj_milestoneResult_union0 && obj_milestoneResult_union1) {
441
+ var message = 'Object doesn\'t match union (at "' + path_milestoneResult + '")';
442
+ message += '\n' + obj_milestoneResult_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
443
+ message += '\n' + obj_milestoneResult_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
444
+ return new TypeError(message);
445
+ }
446
+ var obj_milestoneTarget = obj.milestoneTarget;
447
+ var path_milestoneTarget = path + '.milestoneTarget';
448
+ var obj_milestoneTarget_union0 = null;
449
+ var obj_milestoneTarget_union0_error = (function () {
450
+ if (typeof obj_milestoneTarget !== 'number') {
451
+ return new TypeError('Expected "number" but received "' + typeof obj_milestoneTarget + '" (at "' + path_milestoneTarget + '")');
452
+ }
453
+ })();
454
+ if (obj_milestoneTarget_union0_error != null) {
455
+ obj_milestoneTarget_union0 = obj_milestoneTarget_union0_error.message;
456
+ }
457
+ var obj_milestoneTarget_union1 = null;
458
+ var obj_milestoneTarget_union1_error = (function () {
459
+ if (obj_milestoneTarget !== null) {
460
+ return new TypeError('Expected "null" but received "' + typeof obj_milestoneTarget + '" (at "' + path_milestoneTarget + '")');
461
+ }
462
+ })();
463
+ if (obj_milestoneTarget_union1_error != null) {
464
+ obj_milestoneTarget_union1 = obj_milestoneTarget_union1_error.message;
465
+ }
466
+ if (obj_milestoneTarget_union0 && obj_milestoneTarget_union1) {
467
+ var message = 'Object doesn\'t match union (at "' + path_milestoneTarget + '")';
468
+ message += '\n' + obj_milestoneTarget_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
469
+ message += '\n' + obj_milestoneTarget_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
470
+ return new TypeError(message);
471
+ }
472
+ var obj_minimumSampleSize = obj.minimumSampleSize;
473
+ var path_minimumSampleSize = path + '.minimumSampleSize';
474
+ var obj_minimumSampleSize_union0 = null;
475
+ var obj_minimumSampleSize_union0_error = (function () {
476
+ if (typeof obj_minimumSampleSize !== 'number' || (typeof obj_minimumSampleSize === 'number' && Math.floor(obj_minimumSampleSize) !== obj_minimumSampleSize)) {
477
+ return new TypeError('Expected "integer" but received "' + typeof obj_minimumSampleSize + '" (at "' + path_minimumSampleSize + '")');
478
+ }
479
+ })();
480
+ if (obj_minimumSampleSize_union0_error != null) {
481
+ obj_minimumSampleSize_union0 = obj_minimumSampleSize_union0_error.message;
482
+ }
483
+ var obj_minimumSampleSize_union1 = null;
484
+ var obj_minimumSampleSize_union1_error = (function () {
485
+ if (obj_minimumSampleSize !== null) {
486
+ return new TypeError('Expected "null" but received "' + typeof obj_minimumSampleSize + '" (at "' + path_minimumSampleSize + '")');
487
+ }
488
+ })();
489
+ if (obj_minimumSampleSize_union1_error != null) {
490
+ obj_minimumSampleSize_union1 = obj_minimumSampleSize_union1_error.message;
491
+ }
492
+ if (obj_minimumSampleSize_union0 && obj_minimumSampleSize_union1) {
493
+ var message = 'Object doesn\'t match union (at "' + path_minimumSampleSize + '")';
494
+ message += '\n' + obj_minimumSampleSize_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
495
+ message += '\n' + obj_minimumSampleSize_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
496
+ return new TypeError(message);
497
+ }
498
+ var obj_programDay = obj.programDay;
499
+ var path_programDay = path + '.programDay';
500
+ if (typeof obj_programDay !== 'number' || (typeof obj_programDay === 'number' && Math.floor(obj_programDay) !== obj_programDay)) {
501
+ return new TypeError('Expected "integer" but received "' + typeof obj_programDay + '" (at "' + path_programDay + '")');
502
+ }
503
+ var obj_taskCategory = obj.taskCategory;
504
+ var path_taskCategory = path + '.taskCategory';
505
+ if (typeof obj_taskCategory !== 'string') {
506
+ return new TypeError('Expected "string" but received "' + typeof obj_taskCategory + '" (at "' + path_taskCategory + '")');
507
+ }
508
+ var obj_taskSubCategory = obj.taskSubCategory;
509
+ var path_taskSubCategory = path + '.taskSubCategory';
510
+ if (typeof obj_taskSubCategory !== 'string') {
511
+ return new TypeError('Expected "string" but received "' + typeof obj_taskSubCategory + '" (at "' + path_taskSubCategory + '")');
512
+ }
513
+ })();
514
+ return v_error === undefined ? null : v_error;
515
+ }
516
+ var select$4 = function EnablementProgramSummaryTaskRepresentationSelect() {
517
+ var EnablementProgramSummaryItemRepresentationSelections = select$5().selections;
518
+ return {
519
+ kind: 'Fragment',
520
+ version: VERSION$2,
521
+ private: [],
522
+ selections: __spreadArray(__spreadArray([], EnablementProgramSummaryItemRepresentationSelections, true), [
523
+ {
524
+ name: 'completedDate',
525
+ kind: 'Scalar'
526
+ },
527
+ {
528
+ name: 'completedPercent',
529
+ kind: 'Scalar'
530
+ },
531
+ {
532
+ name: 'contributingRecordCount',
533
+ kind: 'Scalar'
534
+ },
535
+ {
536
+ name: 'dueDate',
537
+ kind: 'Scalar'
538
+ },
539
+ {
540
+ name: 'enablementProgramSectionId',
541
+ kind: 'Scalar'
542
+ },
543
+ {
544
+ name: 'isCompleted',
545
+ kind: 'Scalar'
546
+ },
547
+ {
548
+ name: 'isOverdue',
549
+ kind: 'Scalar'
550
+ },
551
+ {
552
+ name: 'learningItemId',
553
+ kind: 'Scalar'
554
+ },
555
+ {
556
+ name: 'milestoneResult',
557
+ kind: 'Scalar'
558
+ },
559
+ {
560
+ name: 'milestoneTarget',
561
+ kind: 'Scalar'
562
+ },
563
+ {
564
+ name: 'minimumSampleSize',
565
+ kind: 'Scalar'
566
+ },
567
+ {
568
+ name: 'programDay',
569
+ kind: 'Scalar'
570
+ },
571
+ {
572
+ name: 'taskCategory',
573
+ kind: 'Scalar'
574
+ },
575
+ {
576
+ name: 'taskSubCategory',
577
+ kind: 'Scalar'
578
+ }
579
+ ], false)
580
+ };
581
+ };
582
+ function equals$2(existing, incoming) {
583
+ if (equals$3(existing, incoming) === false) {
584
+ return false;
585
+ }
586
+ var existing_programDay = existing.programDay;
587
+ var incoming_programDay = incoming.programDay;
588
+ if (!(existing_programDay === incoming_programDay)) {
589
+ return false;
590
+ }
591
+ var existing_taskCategory = existing.taskCategory;
592
+ var incoming_taskCategory = incoming.taskCategory;
593
+ if (!(existing_taskCategory === incoming_taskCategory)) {
594
+ return false;
595
+ }
596
+ var existing_taskSubCategory = existing.taskSubCategory;
597
+ var incoming_taskSubCategory = incoming.taskSubCategory;
598
+ if (!(existing_taskSubCategory === incoming_taskSubCategory)) {
599
+ return false;
600
+ }
601
+ var existing_completedDate = existing.completedDate;
602
+ var incoming_completedDate = incoming.completedDate;
603
+ if (!(existing_completedDate === incoming_completedDate)) {
604
+ return false;
605
+ }
606
+ var existing_completedPercent = existing.completedPercent;
607
+ var incoming_completedPercent = incoming.completedPercent;
608
+ if (!(existing_completedPercent === incoming_completedPercent)) {
609
+ return false;
610
+ }
611
+ var existing_contributingRecordCount = existing.contributingRecordCount;
612
+ var incoming_contributingRecordCount = incoming.contributingRecordCount;
613
+ if (!(existing_contributingRecordCount === incoming_contributingRecordCount)) {
614
+ return false;
615
+ }
616
+ var existing_dueDate = existing.dueDate;
617
+ var incoming_dueDate = incoming.dueDate;
618
+ if (!(existing_dueDate === incoming_dueDate)) {
619
+ return false;
620
+ }
621
+ var existing_enablementProgramSectionId = existing.enablementProgramSectionId;
622
+ var incoming_enablementProgramSectionId = incoming.enablementProgramSectionId;
623
+ if (!(existing_enablementProgramSectionId === incoming_enablementProgramSectionId)) {
624
+ return false;
625
+ }
626
+ var existing_isCompleted = existing.isCompleted;
627
+ var incoming_isCompleted = incoming.isCompleted;
628
+ if (!(existing_isCompleted === incoming_isCompleted)) {
629
+ return false;
630
+ }
631
+ var existing_isOverdue = existing.isOverdue;
632
+ var incoming_isOverdue = incoming.isOverdue;
633
+ if (!(existing_isOverdue === incoming_isOverdue)) {
634
+ return false;
635
+ }
636
+ var existing_learningItemId = existing.learningItemId;
637
+ var incoming_learningItemId = incoming.learningItemId;
638
+ if (!(existing_learningItemId === incoming_learningItemId)) {
639
+ return false;
640
+ }
641
+ var existing_milestoneResult = existing.milestoneResult;
642
+ var incoming_milestoneResult = incoming.milestoneResult;
643
+ if (!(existing_milestoneResult === incoming_milestoneResult)) {
644
+ return false;
645
+ }
646
+ var existing_milestoneTarget = existing.milestoneTarget;
647
+ var incoming_milestoneTarget = incoming.milestoneTarget;
648
+ if (!(existing_milestoneTarget === incoming_milestoneTarget)) {
649
+ return false;
650
+ }
651
+ var existing_minimumSampleSize = existing.minimumSampleSize;
652
+ var incoming_minimumSampleSize = incoming.minimumSampleSize;
653
+ if (!(existing_minimumSampleSize === incoming_minimumSampleSize)) {
654
+ return false;
655
+ }
656
+ return true;
657
+ }
658
+
659
+ var TTL = 15000;
660
+ var VERSION$1 = "83df796ee9af3bf09f5729eac8b86d08";
661
+ function validate$1(obj, path) {
662
+ if (path === void 0) { path = 'EnablementProgramSummaryRepresentation'; }
663
+ var v_error = (function () {
664
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
665
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
666
+ }
667
+ var obj_description = obj.description;
668
+ var path_description = path + '.description';
669
+ var obj_description_union0 = null;
670
+ var obj_description_union0_error = (function () {
671
+ if (typeof obj_description !== 'string') {
672
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
673
+ }
674
+ })();
675
+ if (obj_description_union0_error != null) {
676
+ obj_description_union0 = obj_description_union0_error.message;
677
+ }
678
+ var obj_description_union1 = null;
679
+ var obj_description_union1_error = (function () {
680
+ if (obj_description !== null) {
681
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
682
+ }
683
+ })();
684
+ if (obj_description_union1_error != null) {
685
+ obj_description_union1 = obj_description_union1_error.message;
686
+ }
687
+ if (obj_description_union0 && obj_description_union1) {
688
+ var message = 'Object doesn\'t match union (at "' + path_description + '")';
689
+ message += '\n' + obj_description_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
690
+ message += '\n' + obj_description_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
691
+ return new TypeError(message);
692
+ }
693
+ var obj_dueDate = obj.dueDate;
694
+ var path_dueDate = path + '.dueDate';
695
+ var obj_dueDate_union0 = null;
696
+ var obj_dueDate_union0_error = (function () {
697
+ if (typeof obj_dueDate !== 'string') {
698
+ return new TypeError('Expected "string" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
699
+ }
700
+ })();
701
+ if (obj_dueDate_union0_error != null) {
702
+ obj_dueDate_union0 = obj_dueDate_union0_error.message;
703
+ }
704
+ var obj_dueDate_union1 = null;
705
+ var obj_dueDate_union1_error = (function () {
706
+ if (obj_dueDate !== null) {
707
+ return new TypeError('Expected "null" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
708
+ }
709
+ })();
710
+ if (obj_dueDate_union1_error != null) {
711
+ obj_dueDate_union1 = obj_dueDate_union1_error.message;
712
+ }
713
+ if (obj_dueDate_union0 && obj_dueDate_union1) {
714
+ var message = 'Object doesn\'t match union (at "' + path_dueDate + '")';
715
+ message += '\n' + obj_dueDate_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
716
+ message += '\n' + obj_dueDate_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
717
+ return new TypeError(message);
718
+ }
719
+ var obj_id = obj.id;
720
+ var path_id = path + '.id';
721
+ var obj_id_union0 = null;
722
+ var obj_id_union0_error = (function () {
723
+ if (typeof obj_id !== 'string') {
724
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
725
+ }
726
+ })();
727
+ if (obj_id_union0_error != null) {
728
+ obj_id_union0 = obj_id_union0_error.message;
729
+ }
730
+ var obj_id_union1 = null;
731
+ var obj_id_union1_error = (function () {
732
+ if (obj_id !== null) {
733
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
734
+ }
735
+ })();
736
+ if (obj_id_union1_error != null) {
737
+ obj_id_union1 = obj_id_union1_error.message;
738
+ }
739
+ if (obj_id_union0 && obj_id_union1) {
740
+ var message = 'Object doesn\'t match union (at "' + path_id + '")';
741
+ message += '\n' + obj_id_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
742
+ message += '\n' + obj_id_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
743
+ return new TypeError(message);
744
+ }
745
+ var obj_items = obj.items;
746
+ var path_items = path + '.items';
747
+ if (!ArrayIsArray(obj_items)) {
748
+ return new TypeError('Expected "array" but received "' + typeof obj_items + '" (at "' + path_items + '")');
749
+ }
750
+ for (var i = 0; i < obj_items.length; i++) {
751
+ var obj_items_item = obj_items[i];
752
+ var path_items_item = path_items + '[' + i + ']';
753
+ if (obj_items_item === undefined) {
754
+ return new TypeError('Expected "defined" but received "' + typeof obj_items_item + '" (at "' + path_items_item + '")');
755
+ }
756
+ }
757
+ var obj_learningItemId = obj.learningItemId;
758
+ var path_learningItemId = path + '.learningItemId';
759
+ var obj_learningItemId_union0 = null;
760
+ var obj_learningItemId_union0_error = (function () {
761
+ if (typeof obj_learningItemId !== 'string') {
762
+ return new TypeError('Expected "string" but received "' + typeof obj_learningItemId + '" (at "' + path_learningItemId + '")');
763
+ }
764
+ })();
765
+ if (obj_learningItemId_union0_error != null) {
766
+ obj_learningItemId_union0 = obj_learningItemId_union0_error.message;
767
+ }
768
+ var obj_learningItemId_union1 = null;
769
+ var obj_learningItemId_union1_error = (function () {
770
+ if (obj_learningItemId !== null) {
771
+ return new TypeError('Expected "null" but received "' + typeof obj_learningItemId + '" (at "' + path_learningItemId + '")');
772
+ }
773
+ })();
774
+ if (obj_learningItemId_union1_error != null) {
775
+ obj_learningItemId_union1 = obj_learningItemId_union1_error.message;
776
+ }
777
+ if (obj_learningItemId_union0 && obj_learningItemId_union1) {
778
+ var message = 'Object doesn\'t match union (at "' + path_learningItemId + '")';
779
+ message += '\n' + obj_learningItemId_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
780
+ message += '\n' + obj_learningItemId_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
781
+ return new TypeError(message);
782
+ }
783
+ var obj_outcome = obj.outcome;
784
+ var path_outcome = path + '.outcome';
785
+ var obj_outcome_union0 = null;
786
+ var obj_outcome_union0_error = (function () {
787
+ var referencepath_outcomeValidationError = validate$2(obj_outcome, path_outcome);
788
+ if (referencepath_outcomeValidationError !== null) {
789
+ var message = 'Object doesn\'t match EnablementProgramSummaryTaskRepresentation (at "' + path_outcome + '")\n';
790
+ message += referencepath_outcomeValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
791
+ return new TypeError(message);
792
+ }
793
+ })();
794
+ if (obj_outcome_union0_error != null) {
795
+ obj_outcome_union0 = obj_outcome_union0_error.message;
796
+ }
797
+ var obj_outcome_union1 = null;
798
+ var obj_outcome_union1_error = (function () {
799
+ if (obj_outcome !== null) {
800
+ return new TypeError('Expected "null" but received "' + typeof obj_outcome + '" (at "' + path_outcome + '")');
801
+ }
802
+ })();
803
+ if (obj_outcome_union1_error != null) {
804
+ obj_outcome_union1 = obj_outcome_union1_error.message;
805
+ }
806
+ if (obj_outcome_union0 && obj_outcome_union1) {
807
+ var message = 'Object doesn\'t match union (at "' + path_outcome + '")';
808
+ message += '\n' + obj_outcome_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
809
+ message += '\n' + obj_outcome_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
810
+ return new TypeError(message);
811
+ }
812
+ var obj_status = obj.status;
813
+ var path_status = path + '.status';
814
+ if (typeof obj_status !== 'string') {
815
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
816
+ }
817
+ if (obj.systemModStamp !== undefined) {
818
+ var obj_systemModStamp_1 = obj.systemModStamp;
819
+ var path_systemModStamp_1 = path + '.systemModStamp';
820
+ var obj_systemModStamp_union0 = null;
821
+ var obj_systemModStamp_union0_error = (function () {
822
+ if (typeof obj_systemModStamp_1 !== 'string') {
823
+ return new TypeError('Expected "string" but received "' + typeof obj_systemModStamp_1 + '" (at "' + path_systemModStamp_1 + '")');
824
+ }
825
+ })();
826
+ if (obj_systemModStamp_union0_error != null) {
827
+ obj_systemModStamp_union0 = obj_systemModStamp_union0_error.message;
828
+ }
829
+ var obj_systemModStamp_union1 = null;
830
+ var obj_systemModStamp_union1_error = (function () {
831
+ if (obj_systemModStamp_1 !== null) {
832
+ return new TypeError('Expected "null" but received "' + typeof obj_systemModStamp_1 + '" (at "' + path_systemModStamp_1 + '")');
833
+ }
834
+ })();
835
+ if (obj_systemModStamp_union1_error != null) {
836
+ obj_systemModStamp_union1 = obj_systemModStamp_union1_error.message;
837
+ }
838
+ if (obj_systemModStamp_union0 && obj_systemModStamp_union1) {
839
+ var message = 'Object doesn\'t match union (at "' + path_systemModStamp_1 + '")';
840
+ message += '\n' + obj_systemModStamp_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
841
+ message += '\n' + obj_systemModStamp_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
842
+ return new TypeError(message);
843
+ }
844
+ }
845
+ var obj_title = obj.title;
846
+ var path_title = path + '.title';
847
+ var obj_title_union0 = null;
848
+ var obj_title_union0_error = (function () {
849
+ if (typeof obj_title !== 'string') {
850
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
851
+ }
852
+ })();
853
+ if (obj_title_union0_error != null) {
854
+ obj_title_union0 = obj_title_union0_error.message;
855
+ }
856
+ var obj_title_union1 = null;
857
+ var obj_title_union1_error = (function () {
858
+ if (obj_title !== null) {
859
+ return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
860
+ }
861
+ })();
862
+ if (obj_title_union1_error != null) {
863
+ obj_title_union1 = obj_title_union1_error.message;
864
+ }
865
+ if (obj_title_union0 && obj_title_union1) {
866
+ var message = 'Object doesn\'t match union (at "' + path_title + '")';
867
+ message += '\n' + obj_title_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
868
+ message += '\n' + obj_title_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
869
+ return new TypeError(message);
870
+ }
871
+ })();
872
+ return v_error === undefined ? null : v_error;
873
+ }
874
+ var RepresentationType$1 = 'EnablementProgramSummaryRepresentation';
875
+ function keyBuilder$4(luvio, config) {
876
+ return keyPrefix + '::' + RepresentationType$1 + ':' + (config.enablement_program_id === null ? '' : config.enablement_program_id);
877
+ }
878
+ function keyBuilderFromType(luvio, object) {
879
+ var keyParams = {
880
+ enablement_program_id: object.id
881
+ };
882
+ return keyBuilder$4(luvio, keyParams);
883
+ }
884
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
885
+ return input;
886
+ }
887
+ var select$3 = function EnablementProgramSummaryRepresentationSelect() {
888
+ var _a = select$4(), EnablementProgramSummaryTaskRepresentation__selections = _a.selections;
889
+ return {
890
+ kind: 'Fragment',
891
+ version: VERSION$1,
892
+ private: [],
893
+ selections: [
894
+ {
895
+ name: 'description',
896
+ kind: 'Scalar'
897
+ },
898
+ {
899
+ name: 'dueDate',
900
+ kind: 'Scalar'
901
+ },
902
+ {
903
+ name: 'id',
904
+ kind: 'Scalar'
905
+ },
906
+ {
907
+ name: 'items',
908
+ kind: 'Object',
909
+ // any
910
+ },
911
+ {
912
+ name: 'learningItemId',
913
+ kind: 'Scalar'
914
+ },
915
+ {
916
+ name: 'outcome',
917
+ kind: 'Object',
918
+ nullable: true,
919
+ selections: EnablementProgramSummaryTaskRepresentation__selections
920
+ },
921
+ {
922
+ name: 'status',
923
+ kind: 'Scalar'
924
+ },
925
+ {
926
+ name: 'systemModStamp',
927
+ kind: 'Scalar',
928
+ required: false
929
+ },
930
+ {
931
+ name: 'title',
932
+ kind: 'Scalar'
933
+ }
934
+ ]
935
+ };
936
+ };
937
+ function equals$1(existing, incoming) {
938
+ var existing_status = existing.status;
939
+ var incoming_status = incoming.status;
940
+ if (!(existing_status === incoming_status)) {
941
+ return false;
942
+ }
943
+ var existing_description = existing.description;
944
+ var incoming_description = incoming.description;
945
+ if (!(existing_description === incoming_description)) {
946
+ return false;
947
+ }
948
+ var existing_dueDate = existing.dueDate;
949
+ var incoming_dueDate = incoming.dueDate;
950
+ if (!(existing_dueDate === incoming_dueDate)) {
951
+ return false;
952
+ }
953
+ var existing_id = existing.id;
954
+ var incoming_id = incoming.id;
955
+ if (!(existing_id === incoming_id)) {
956
+ return false;
957
+ }
958
+ var existing_items = existing.items;
959
+ var incoming_items = incoming.items;
960
+ var equals_items_items = equalsArray(existing_items, incoming_items, function (existing_items_item, incoming_items_item) {
961
+ if (JSONStringify(incoming_items_item) !== JSONStringify(existing_items_item)) {
962
+ return false;
963
+ }
964
+ });
965
+ if (equals_items_items === false) {
966
+ return false;
967
+ }
968
+ var existing_learningItemId = existing.learningItemId;
969
+ var incoming_learningItemId = incoming.learningItemId;
970
+ if (!(existing_learningItemId === incoming_learningItemId)) {
971
+ return false;
972
+ }
973
+ var existing_outcome = existing.outcome;
974
+ var incoming_outcome = incoming.outcome;
975
+ if (!(existing_outcome === incoming_outcome
976
+ || (existing_outcome != null &&
977
+ incoming_outcome != null &&
978
+ equals$2(existing_outcome, incoming_outcome)))) {
979
+ return false;
980
+ }
981
+ var existing_systemModStamp = existing.systemModStamp;
982
+ var incoming_systemModStamp = incoming.systemModStamp;
983
+ // if at least one of these optionals is defined
984
+ if (existing_systemModStamp !== undefined || incoming_systemModStamp !== undefined) {
985
+ // if one of these is not defined we know the other is defined and therefore
986
+ // not equal
987
+ if (existing_systemModStamp === undefined || incoming_systemModStamp === undefined) {
988
+ return false;
989
+ }
990
+ if (!(existing_systemModStamp === incoming_systemModStamp)) {
991
+ return false;
992
+ }
993
+ }
994
+ var existing_title = existing.title;
995
+ var incoming_title = incoming.title;
996
+ if (!(existing_title === incoming_title)) {
997
+ return false;
998
+ }
999
+ return true;
1000
+ }
1001
+ var ingest$1 = function EnablementProgramSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
1002
+ if (process.env.NODE_ENV !== 'production') {
1003
+ var validateError = validate$1(input);
1004
+ if (validateError !== null) {
1005
+ throw validateError;
1006
+ }
1007
+ }
1008
+ var key = keyBuilderFromType(luvio, input);
1009
+ var existingRecord = store.readEntry(key);
1010
+ var ttlToUse = TTL;
1011
+ var incomingRecord = normalize$1(input, store.readEntry(key), {
1012
+ fullPath: key,
1013
+ parent: path.parent,
1014
+ propertyName: path.propertyName,
1015
+ ttl: ttlToUse
1016
+ });
1017
+ if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
1018
+ luvio.storePublish(key, incomingRecord);
1019
+ }
1020
+ {
1021
+ var storeMetadataParams = {
1022
+ ttl: ttlToUse,
1023
+ namespace: "enablement",
1024
+ version: VERSION$1,
1025
+ representationName: RepresentationType$1,
1026
+ };
1027
+ luvio.publishStoreMetadata(key, storeMetadataParams);
1028
+ }
1029
+ return createLink(key);
1030
+ };
1031
+ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
1032
+ var rootKeySet = new engine.StoreKeyMap();
1033
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1034
+ var rootKey = keyBuilderFromType(luvio, input);
1035
+ rootKeySet.set(rootKey, {
1036
+ namespace: keyPrefix,
1037
+ representationName: RepresentationType$1,
1038
+ mergeable: false
1039
+ });
1040
+ return rootKeySet;
1041
+ }
1042
+
1043
+ var VERSION = "7ef7adad59a82a6a2a4ab4ba77434b67";
1044
+ function validate(obj, path) {
1045
+ if (path === void 0) { path = 'EnablementProgramSummaryListRepresentation'; }
1046
+ var v_error = (function () {
1047
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1048
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1049
+ }
1050
+ var obj_hasMore = obj.hasMore;
1051
+ var path_hasMore = path + '.hasMore';
1052
+ if (typeof obj_hasMore !== 'boolean') {
1053
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasMore + '" (at "' + path_hasMore + '")');
1054
+ }
1055
+ var obj_programSummaryList = obj.programSummaryList;
1056
+ var path_programSummaryList = path + '.programSummaryList';
1057
+ if (!ArrayIsArray(obj_programSummaryList)) {
1058
+ return new TypeError('Expected "array" but received "' + typeof obj_programSummaryList + '" (at "' + path_programSummaryList + '")');
1059
+ }
1060
+ for (var i = 0; i < obj_programSummaryList.length; i++) {
1061
+ var obj_programSummaryList_item = obj_programSummaryList[i];
1062
+ var path_programSummaryList_item = path_programSummaryList + '[' + i + ']';
1063
+ if (typeof obj_programSummaryList_item !== 'object') {
1064
+ return new TypeError('Expected "object" but received "' + typeof obj_programSummaryList_item + '" (at "' + path_programSummaryList_item + '")');
1065
+ }
1066
+ }
1067
+ })();
1068
+ return v_error === undefined ? null : v_error;
1069
+ }
1070
+ var RepresentationType = 'EnablementProgramSummaryListRepresentation';
1071
+ function normalize(input, existing, path, luvio, store, timestamp) {
1072
+ var input_programSummaryList = input.programSummaryList;
1073
+ var input_programSummaryList_id = path.fullPath + '__programSummaryList';
1074
+ for (var i = 0; i < input_programSummaryList.length; i++) {
1075
+ var input_programSummaryList_item = input_programSummaryList[i];
1076
+ var input_programSummaryList_item_id = input_programSummaryList_id + '__' + i;
1077
+ input_programSummaryList[i] = ingest$1(input_programSummaryList_item, {
1078
+ fullPath: input_programSummaryList_item_id,
1079
+ propertyName: i,
1080
+ parent: {
1081
+ data: input,
1082
+ key: path.fullPath,
1083
+ existing: existing,
1084
+ },
1085
+ ttl: path.ttl
1086
+ }, luvio, store);
1087
+ }
1088
+ return input;
1089
+ }
1090
+ var select$2 = function EnablementProgramSummaryListRepresentationSelect() {
1091
+ return {
1092
+ kind: 'Fragment',
1093
+ version: VERSION,
1094
+ private: [],
1095
+ selections: [
1096
+ {
1097
+ name: 'hasMore',
1098
+ kind: 'Scalar'
1099
+ },
1100
+ {
1101
+ name: 'programSummaryList',
1102
+ kind: 'Link',
1103
+ plural: true,
1104
+ fragment: select$3()
1105
+ }
1106
+ ]
1107
+ };
1108
+ };
1109
+ function equals(existing, incoming) {
1110
+ var existing_hasMore = existing.hasMore;
1111
+ var incoming_hasMore = incoming.hasMore;
1112
+ if (!(existing_hasMore === incoming_hasMore)) {
1113
+ return false;
1114
+ }
1115
+ var existing_programSummaryList = existing.programSummaryList;
1116
+ var incoming_programSummaryList = incoming.programSummaryList;
1117
+ var equals_programSummaryList_items = equalsArray(existing_programSummaryList, incoming_programSummaryList, function (existing_programSummaryList_item, incoming_programSummaryList_item) {
1118
+ if (!(existing_programSummaryList_item.__ref === incoming_programSummaryList_item.__ref)) {
1119
+ return false;
1120
+ }
1121
+ });
1122
+ if (equals_programSummaryList_items === false) {
1123
+ return false;
1124
+ }
1125
+ return true;
1126
+ }
1127
+ var ingest = function EnablementProgramSummaryListRepresentationIngest(input, path, luvio, store, timestamp) {
1128
+ if (process.env.NODE_ENV !== 'production') {
1129
+ var validateError = validate(input);
1130
+ if (validateError !== null) {
1131
+ throw validateError;
1132
+ }
1133
+ }
1134
+ var key = path.fullPath;
1135
+ var existingRecord = store.readEntry(key);
1136
+ var ttlToUse = path.ttl !== undefined ? path.ttl : 15000;
1137
+ var incomingRecord = normalize(input, store.readEntry(key), {
1138
+ fullPath: key,
1139
+ parent: path.parent,
1140
+ propertyName: path.propertyName,
1141
+ ttl: ttlToUse
1142
+ }, luvio, store);
1143
+ if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
1144
+ luvio.storePublish(key, incomingRecord);
1145
+ }
1146
+ if (ttlToUse !== undefined) {
1147
+ var storeMetadataParams = {
1148
+ ttl: ttlToUse,
1149
+ namespace: "enablement",
1150
+ version: VERSION,
1151
+ representationName: RepresentationType,
1152
+ };
1153
+ luvio.publishStoreMetadata(key, storeMetadataParams);
1154
+ }
1155
+ return createLink(key);
1156
+ };
1157
+ function getTypeCacheKeys(luvio, input, fullPathFactory) {
1158
+ var rootKeySet = new engine.StoreKeyMap();
1159
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1160
+ var rootKey = fullPathFactory();
1161
+ rootKeySet.set(rootKey, {
1162
+ namespace: keyPrefix,
1163
+ representationName: RepresentationType,
1164
+ mergeable: false
1165
+ });
1166
+ var input_programSummaryList_length = input.programSummaryList.length;
1167
+ for (var i = 0; i < input_programSummaryList_length; i++) {
1168
+ rootKeySet.merge(getTypeCacheKeys$1(luvio, input.programSummaryList[i]));
1169
+ }
1170
+ return rootKeySet;
1171
+ }
1172
+
1173
+ function select$1(luvio, params) {
1174
+ return select$2();
1175
+ }
1176
+ function keyBuilder$3(luvio, params) {
1177
+ return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'limit:' + params.queryParams.limit + ')';
1178
+ }
1179
+ function getResponseCacheKeys$1(luvio, resourceParams, response) {
1180
+ return getTypeCacheKeys(luvio, response, function () { return keyBuilder$3(luvio, resourceParams); });
1181
+ }
1182
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1183
+ var body = response.body;
1184
+ var key = keyBuilder$3(luvio, resourceParams);
1185
+ luvio.storeIngest(key, ingest, body);
1186
+ var snapshot = luvio.storeLookup({
1187
+ recordId: key,
1188
+ node: select$1(),
1189
+ variables: {},
1190
+ }, snapshotRefresh);
1191
+ if (process.env.NODE_ENV !== 'production') {
1192
+ if (snapshot.state !== 'Fulfilled') {
1193
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1194
+ }
1195
+ }
1196
+ return snapshot;
1197
+ }
1198
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
1199
+ var key = keyBuilder$3(luvio, params);
1200
+ var errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1201
+ luvio.storeIngestError(key, errorSnapshot);
1202
+ return errorSnapshot;
1203
+ }
1204
+ function createResourceRequest$1(config) {
1205
+ var headers = {};
1206
+ return {
1207
+ baseUri: '/services/data/v58.0',
1208
+ basePath: '/connect/enablement/program/summary/assigned',
1209
+ method: 'get',
1210
+ body: null,
1211
+ urlParams: {},
1212
+ queryParams: config.queryParams,
1213
+ headers: headers,
1214
+ priority: 'normal',
1215
+ };
1216
+ }
1217
+
1218
+ var getAssignedEnablementProgramSummary_ConfigPropertyNames = {
1219
+ displayName: 'getAssignedEnablementProgramSummary',
1220
+ parameters: {
1221
+ required: [],
1222
+ optional: ['limit']
1223
+ }
1224
+ };
1225
+ function createResourceParams$1(config) {
1226
+ var resourceParams = {
1227
+ queryParams: {
1228
+ limit: config.limit
1229
+ }
1230
+ };
1231
+ return resourceParams;
1232
+ }
1233
+ function keyBuilder$2(luvio, config) {
1234
+ var resourceParams = createResourceParams$1(config);
1235
+ return keyBuilder$3(luvio, resourceParams);
1236
+ }
1237
+ function typeCheckConfig$1(untrustedConfig) {
1238
+ var config = {};
1239
+ var untrustedConfig_limit = untrustedConfig.limit;
1240
+ if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
1241
+ config.limit = untrustedConfig_limit;
1242
+ }
1243
+ return config;
1244
+ }
1245
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1246
+ if (!untrustedIsObject(untrustedConfig)) {
1247
+ return null;
1248
+ }
1249
+ if (process.env.NODE_ENV !== 'production') {
1250
+ validateConfig(untrustedConfig, configPropertyNames);
1251
+ }
1252
+ var config = typeCheckConfig$1(untrustedConfig);
1253
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1254
+ return null;
1255
+ }
1256
+ return config;
1257
+ }
1258
+ function adapterFragment$1(luvio, config) {
1259
+ createResourceParams$1(config);
1260
+ return select$1();
1261
+ }
1262
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1263
+ var snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1264
+ config: config,
1265
+ resolve: function () { return buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions); }
1266
+ });
1267
+ return luvio.storeBroadcast().then(function () { return snapshot; });
1268
+ }
1269
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
1270
+ var snapshot = ingestError$1(luvio, resourceParams, response, {
1271
+ config: config,
1272
+ resolve: function () { return buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions); }
1273
+ });
1274
+ return luvio.storeBroadcast().then(function () { return snapshot; });
1275
+ }
1276
+ function buildNetworkSnapshot$1(luvio, config, options) {
1277
+ var resourceParams = createResourceParams$1(config);
1278
+ var request = createResourceRequest$1(resourceParams);
1279
+ return luvio.dispatchResourceRequest(request, options)
1280
+ .then(function (response) {
1281
+ return luvio.handleSuccessResponse(function () { return onFetchResponseSuccess$1(luvio, config, resourceParams, response); }, function () { return getResponseCacheKeys$1(luvio, resourceParams, response.body); });
1282
+ }, function (response) {
1283
+ return luvio.handleErrorResponse(function () { return onFetchResponseError$1(luvio, config, resourceParams, response); });
1284
+ });
1285
+ }
1286
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1287
+ var luvio = context.luvio, config = context.config;
1288
+ var networkPriority = coercedAdapterRequestContext.networkPriority, requestCorrelator = coercedAdapterRequestContext.requestCorrelator, eventObservers = coercedAdapterRequestContext.eventObservers;
1289
+ var dispatchOptions = {
1290
+ resourceRequestContext: {
1291
+ requestCorrelator: requestCorrelator,
1292
+ luvioRequestMethod: undefined,
1293
+ },
1294
+ eventObservers: eventObservers
1295
+ };
1296
+ if (networkPriority !== 'normal') {
1297
+ dispatchOptions.overrides = {
1298
+ priority: networkPriority
1299
+ };
1300
+ }
1301
+ return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
1302
+ }
1303
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1304
+ var luvio = context.luvio, config = context.config;
1305
+ var selector = {
1306
+ recordId: keyBuilder$2(luvio, config),
1307
+ node: adapterFragment$1(luvio, config),
1308
+ variables: {},
1309
+ };
1310
+ var cacheSnapshot = storeLookup(selector, {
1311
+ config: config,
1312
+ resolve: function () { return buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions); }
1313
+ });
1314
+ return cacheSnapshot;
1315
+ }
1316
+ var getAssignedEnablementProgramSummaryAdapterFactory = function (luvio) { return function enablement__getAssignedEnablementProgramSummary(untrustedConfig, requestContext) {
1317
+ var config = validateAdapterConfig$1(untrustedConfig, getAssignedEnablementProgramSummary_ConfigPropertyNames);
1318
+ // Invalid or incomplete config
1319
+ if (config === null) {
1320
+ return null;
1321
+ }
1322
+ return luvio.applyCachePolicy((requestContext || {}), { config: config, luvio: luvio }, // BuildSnapshotContext
1323
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1324
+ }; };
1325
+
1326
+ function select(luvio, params) {
1327
+ return select$3();
1328
+ }
1329
+ function keyBuilder$1(luvio, params) {
1330
+ return keyBuilder$4(luvio, {
1331
+ enablement_program_id: params.urlParams.enablementProgramId
1332
+ });
1333
+ }
1334
+ function getResponseCacheKeys(luvio, resourceParams, response) {
1335
+ return getTypeCacheKeys$1(luvio, response);
1336
+ }
1337
+ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1338
+ var body = response.body;
1339
+ var key = keyBuilder$1(luvio, resourceParams);
1340
+ luvio.storeIngest(key, ingest$1, body);
1341
+ var snapshot = luvio.storeLookup({
1342
+ recordId: key,
1343
+ node: select(),
1344
+ variables: {},
1345
+ }, snapshotRefresh);
1346
+ if (process.env.NODE_ENV !== 'production') {
1347
+ if (snapshot.state !== 'Fulfilled') {
1348
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1349
+ }
1350
+ }
1351
+ return snapshot;
1352
+ }
1353
+ function ingestError(luvio, params, error, snapshotRefresh) {
1354
+ var key = keyBuilder$1(luvio, params);
1355
+ var errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1356
+ var storeMetadataParams = {
1357
+ ttl: TTL,
1358
+ namespace: keyPrefix,
1359
+ version: VERSION$1,
1360
+ representationName: RepresentationType$1
1361
+ };
1362
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1363
+ return errorSnapshot;
1364
+ }
1365
+ function createResourceRequest(config) {
1366
+ var headers = {};
1367
+ return {
1368
+ baseUri: '/services/data/v58.0',
1369
+ basePath: '/connect/enablement/program/summary/' + config.urlParams.enablementProgramId + '',
1370
+ method: 'get',
1371
+ body: null,
1372
+ urlParams: config.urlParams,
1373
+ queryParams: {},
1374
+ headers: headers,
1375
+ priority: 'normal',
1376
+ };
1377
+ }
1378
+
1379
+ var getEnablementProgramSummary_ConfigPropertyNames = {
1380
+ displayName: 'getEnablementProgramSummary',
1381
+ parameters: {
1382
+ required: ['enablementProgramId'],
1383
+ optional: []
1384
+ }
1385
+ };
1386
+ function createResourceParams(config) {
1387
+ var resourceParams = {
1388
+ urlParams: {
1389
+ enablementProgramId: config.enablementProgramId
1390
+ }
1391
+ };
1392
+ return resourceParams;
1393
+ }
1394
+ function keyBuilder(luvio, config) {
1395
+ var resourceParams = createResourceParams(config);
1396
+ return keyBuilder$1(luvio, resourceParams);
1397
+ }
1398
+ function typeCheckConfig(untrustedConfig) {
1399
+ var config = {};
1400
+ var untrustedConfig_enablementProgramId = untrustedConfig.enablementProgramId;
1401
+ if (typeof untrustedConfig_enablementProgramId === 'string') {
1402
+ config.enablementProgramId = untrustedConfig_enablementProgramId;
1403
+ }
1404
+ return config;
1405
+ }
1406
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1407
+ if (!untrustedIsObject(untrustedConfig)) {
1408
+ return null;
1409
+ }
1410
+ if (process.env.NODE_ENV !== 'production') {
1411
+ validateConfig(untrustedConfig, configPropertyNames);
1412
+ }
1413
+ var config = typeCheckConfig(untrustedConfig);
1414
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1415
+ return null;
1416
+ }
1417
+ return config;
1418
+ }
1419
+ function adapterFragment(luvio, config) {
1420
+ createResourceParams(config);
1421
+ return select();
1422
+ }
1423
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1424
+ var snapshot = ingestSuccess(luvio, resourceParams, response, {
1425
+ config: config,
1426
+ resolve: function () { return buildNetworkSnapshot(luvio, config, snapshotRefreshOptions); }
1427
+ });
1428
+ return luvio.storeBroadcast().then(function () { return snapshot; });
1429
+ }
1430
+ function onFetchResponseError(luvio, config, resourceParams, response) {
1431
+ var snapshot = ingestError(luvio, resourceParams, response, {
1432
+ config: config,
1433
+ resolve: function () { return buildNetworkSnapshot(luvio, config, snapshotRefreshOptions); }
1434
+ });
1435
+ return luvio.storeBroadcast().then(function () { return snapshot; });
1436
+ }
1437
+ function buildNetworkSnapshot(luvio, config, options) {
1438
+ var resourceParams = createResourceParams(config);
1439
+ var request = createResourceRequest(resourceParams);
1440
+ return luvio.dispatchResourceRequest(request, options)
1441
+ .then(function (response) {
1442
+ return luvio.handleSuccessResponse(function () { return onFetchResponseSuccess(luvio, config, resourceParams, response); }, function () { return getResponseCacheKeys(luvio, resourceParams, response.body); });
1443
+ }, function (response) {
1444
+ return luvio.handleErrorResponse(function () { return onFetchResponseError(luvio, config, resourceParams, response); });
1445
+ });
1446
+ }
1447
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1448
+ var luvio = context.luvio, config = context.config;
1449
+ var networkPriority = coercedAdapterRequestContext.networkPriority, requestCorrelator = coercedAdapterRequestContext.requestCorrelator, eventObservers = coercedAdapterRequestContext.eventObservers;
1450
+ var dispatchOptions = {
1451
+ resourceRequestContext: {
1452
+ requestCorrelator: requestCorrelator,
1453
+ luvioRequestMethod: undefined,
1454
+ },
1455
+ eventObservers: eventObservers
1456
+ };
1457
+ if (networkPriority !== 'normal') {
1458
+ dispatchOptions.overrides = {
1459
+ priority: networkPriority
1460
+ };
1461
+ }
1462
+ return buildNetworkSnapshot(luvio, config, dispatchOptions);
1463
+ }
1464
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1465
+ var luvio = context.luvio, config = context.config;
1466
+ var selector = {
1467
+ recordId: keyBuilder(luvio, config),
1468
+ node: adapterFragment(luvio, config),
1469
+ variables: {},
1470
+ };
1471
+ var cacheSnapshot = storeLookup(selector, {
1472
+ config: config,
1473
+ resolve: function () { return buildNetworkSnapshot(luvio, config, snapshotRefreshOptions); }
1474
+ });
1475
+ return cacheSnapshot;
1476
+ }
1477
+ var getEnablementProgramSummaryAdapterFactory = function (luvio) { return function enablement__getEnablementProgramSummary(untrustedConfig, requestContext) {
1478
+ var config = validateAdapterConfig(untrustedConfig, getEnablementProgramSummary_ConfigPropertyNames);
1479
+ // Invalid or incomplete config
1480
+ if (config === null) {
1481
+ return null;
1482
+ }
1483
+ return luvio.applyCachePolicy((requestContext || {}), { config: config, luvio: luvio }, // BuildSnapshotContext
1484
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1485
+ }; };
1486
+
1487
+ exports.getAssignedEnablementProgramSummaryAdapterFactory = getAssignedEnablementProgramSummaryAdapterFactory;
1488
+ exports.getEnablementProgramSummaryAdapterFactory = getEnablementProgramSummaryAdapterFactory;
1489
+
1490
+ Object.defineProperty(exports, '__esModule', { value: true });
1491
+
1492
+ }));