@salesforce/lds-adapters-industries-education 1.109.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-education.js +1450 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/getAvailableTimeSlots.d.ts +27 -0
  5. package/dist/types/src/generated/adapters/getAvailableTopics.d.ts +25 -0
  6. package/dist/types/src/generated/adapters/getSuccessTeam.d.ts +26 -0
  7. package/dist/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/types/src/generated/artifacts/sfdc.d.ts +7 -0
  9. package/dist/types/src/generated/resources/getConnectEducationAppointmentBookingAvailableTopics.d.ts +12 -0
  10. package/dist/types/src/generated/resources/getConnectEducationSuccessTeamByAccountId.d.ts +15 -0
  11. package/dist/types/src/generated/resources/postConnectEducationAppointmentBookingAvailableTimeSlots.d.ts +16 -0
  12. package/dist/types/src/generated/types/AvailableStaff.d.ts +60 -0
  13. package/dist/types/src/generated/types/AvailableTeam.d.ts +48 -0
  14. package/dist/types/src/generated/types/AvailableTimeSlotsInputRepresentation.d.ts +44 -0
  15. package/dist/types/src/generated/types/AvailableTimeSlotsInputRepresentationData.d.ts +30 -0
  16. package/dist/types/src/generated/types/AvailableTimeSlotsOuputRepresentation.d.ts +30 -0
  17. package/dist/types/src/generated/types/AvailableTopic.d.ts +42 -0
  18. package/dist/types/src/generated/types/AvailableTopicsOutputRepresentation.d.ts +30 -0
  19. package/dist/types/src/generated/types/GetSuccessTeamResult.d.ts +40 -0
  20. package/dist/types/src/generated/types/ServiceAppointment.d.ts +38 -0
  21. package/dist/types/src/generated/types/ServiceLocation.d.ts +32 -0
  22. package/dist/types/src/generated/types/SuccessTeamOutputRepresentation.d.ts +30 -0
  23. package/dist/types/src/generated/types/TimeSlot.d.ts +38 -0
  24. package/dist/types/src/generated/types/WorkType.d.ts +35 -0
  25. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  26. package/dist/umd/es2018/industries-education.js +1460 -0
  27. package/dist/umd/es5/industries-education.js +1468 -0
  28. package/package.json +72 -0
  29. package/sfdc/index.d.ts +1 -0
  30. package/sfdc/index.js +1498 -0
  31. package/src/raml/api.raml +340 -0
  32. package/src/raml/luvio.raml +24 -0
@@ -0,0 +1,1468 @@
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.industriesEducation = {}, 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 = 'education';
56
+
57
+ var ObjectKeys = Object.keys;
58
+ var ArrayIsArray = Array.isArray;
59
+ var JSONStringify = JSON.stringify;
60
+ function equalsArray(a, b, equalsItem) {
61
+ var aLength = a.length;
62
+ var bLength = b.length;
63
+ if (aLength !== bLength) {
64
+ return false;
65
+ }
66
+ for (var i = 0; i < aLength; i++) {
67
+ if (equalsItem(a[i], b[i]) === false) {
68
+ return false;
69
+ }
70
+ }
71
+ return true;
72
+ }
73
+ function equalsObject(a, b, equalsProp) {
74
+ var aKeys = ObjectKeys(a).sort();
75
+ var bKeys = ObjectKeys(b).sort();
76
+ var aKeysLength = aKeys.length;
77
+ var bKeysLength = bKeys.length;
78
+ if (aKeysLength !== bKeysLength) {
79
+ return false;
80
+ }
81
+ for (var i = 0; i < aKeys.length; i++) {
82
+ var key = aKeys[i];
83
+ if (key !== bKeys[i]) {
84
+ return false;
85
+ }
86
+ if (equalsProp(a[key], b[key]) === false) {
87
+ return false;
88
+ }
89
+ }
90
+ return true;
91
+ }
92
+ function createLink(ref) {
93
+ return {
94
+ __ref: engine.serializeStructuredKey(ref),
95
+ };
96
+ }
97
+
98
+ function validate$7(obj, path) {
99
+ if (path === void 0) { path = 'AvailableTimeSlotsInputRepresentation'; }
100
+ var v_error = (function () {
101
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
102
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
103
+ }
104
+ if (obj.endTime !== undefined) {
105
+ var obj_endTime = obj.endTime;
106
+ var path_endTime = path + '.endTime';
107
+ if (typeof obj_endTime !== 'string') {
108
+ return new TypeError('Expected "string" but received "' + typeof obj_endTime + '" (at "' + path_endTime + '")');
109
+ }
110
+ }
111
+ var obj_engagementChannelTypeIds = obj.engagementChannelTypeIds;
112
+ var path_engagementChannelTypeIds = path + '.engagementChannelTypeIds';
113
+ if (!ArrayIsArray(obj_engagementChannelTypeIds)) {
114
+ return new TypeError('Expected "array" but received "' + typeof obj_engagementChannelTypeIds + '" (at "' + path_engagementChannelTypeIds + '")');
115
+ }
116
+ for (var i = 0; i < obj_engagementChannelTypeIds.length; i++) {
117
+ var obj_engagementChannelTypeIds_item = obj_engagementChannelTypeIds[i];
118
+ var path_engagementChannelTypeIds_item = path_engagementChannelTypeIds + '[' + i + ']';
119
+ if (typeof obj_engagementChannelTypeIds_item !== 'string') {
120
+ return new TypeError('Expected "string" but received "' + typeof obj_engagementChannelTypeIds_item + '" (at "' + path_engagementChannelTypeIds_item + '")');
121
+ }
122
+ }
123
+ var obj_serviceResourceIds = obj.serviceResourceIds;
124
+ var path_serviceResourceIds = path + '.serviceResourceIds';
125
+ if (!ArrayIsArray(obj_serviceResourceIds)) {
126
+ return new TypeError('Expected "array" but received "' + typeof obj_serviceResourceIds + '" (at "' + path_serviceResourceIds + '")');
127
+ }
128
+ for (var i = 0; i < obj_serviceResourceIds.length; i++) {
129
+ var obj_serviceResourceIds_item = obj_serviceResourceIds[i];
130
+ var path_serviceResourceIds_item = path_serviceResourceIds + '[' + i + ']';
131
+ if (typeof obj_serviceResourceIds_item !== 'string') {
132
+ return new TypeError('Expected "string" but received "' + typeof obj_serviceResourceIds_item + '" (at "' + path_serviceResourceIds_item + '")');
133
+ }
134
+ }
135
+ var obj_serviceTerritoryIds = obj.serviceTerritoryIds;
136
+ var path_serviceTerritoryIds = path + '.serviceTerritoryIds';
137
+ if (!ArrayIsArray(obj_serviceTerritoryIds)) {
138
+ return new TypeError('Expected "array" but received "' + typeof obj_serviceTerritoryIds + '" (at "' + path_serviceTerritoryIds + '")');
139
+ }
140
+ for (var i = 0; i < obj_serviceTerritoryIds.length; i++) {
141
+ var obj_serviceTerritoryIds_item = obj_serviceTerritoryIds[i];
142
+ var path_serviceTerritoryIds_item = path_serviceTerritoryIds + '[' + i + ']';
143
+ if (typeof obj_serviceTerritoryIds_item !== 'string') {
144
+ return new TypeError('Expected "string" but received "' + typeof obj_serviceTerritoryIds_item + '" (at "' + path_serviceTerritoryIds_item + '")');
145
+ }
146
+ }
147
+ if (obj.startTime !== undefined) {
148
+ var obj_startTime = obj.startTime;
149
+ var path_startTime = path + '.startTime';
150
+ if (typeof obj_startTime !== 'string') {
151
+ return new TypeError('Expected "string" but received "' + typeof obj_startTime + '" (at "' + path_startTime + '")');
152
+ }
153
+ }
154
+ var obj_workTypeGroupId = obj.workTypeGroupId;
155
+ var path_workTypeGroupId = path + '.workTypeGroupId';
156
+ if (typeof obj_workTypeGroupId !== 'string') {
157
+ return new TypeError('Expected "string" but received "' + typeof obj_workTypeGroupId + '" (at "' + path_workTypeGroupId + '")');
158
+ }
159
+ })();
160
+ return v_error === undefined ? null : v_error;
161
+ }
162
+
163
+ var VERSION$6 = "cfd94fbef61f52ffe43428e23e7a68c8";
164
+ function validate$6(obj, path) {
165
+ if (path === void 0) { path = 'TimeSlot'; }
166
+ var v_error = (function () {
167
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
168
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
169
+ }
170
+ if (obj.endTime !== undefined) {
171
+ var obj_endTime = obj.endTime;
172
+ var path_endTime = path + '.endTime';
173
+ if (typeof obj_endTime !== 'string') {
174
+ return new TypeError('Expected "string" but received "' + typeof obj_endTime + '" (at "' + path_endTime + '")');
175
+ }
176
+ }
177
+ if (obj.serviceResourceId !== undefined) {
178
+ var obj_serviceResourceId = obj.serviceResourceId;
179
+ var path_serviceResourceId = path + '.serviceResourceId';
180
+ if (typeof obj_serviceResourceId !== 'string') {
181
+ return new TypeError('Expected "string" but received "' + typeof obj_serviceResourceId + '" (at "' + path_serviceResourceId + '")');
182
+ }
183
+ }
184
+ if (obj.serviceTerritoryId !== undefined) {
185
+ var obj_serviceTerritoryId = obj.serviceTerritoryId;
186
+ var path_serviceTerritoryId = path + '.serviceTerritoryId';
187
+ if (typeof obj_serviceTerritoryId !== 'string') {
188
+ return new TypeError('Expected "string" but received "' + typeof obj_serviceTerritoryId + '" (at "' + path_serviceTerritoryId + '")');
189
+ }
190
+ }
191
+ if (obj.startTime !== undefined) {
192
+ var obj_startTime = obj.startTime;
193
+ var path_startTime = path + '.startTime';
194
+ if (typeof obj_startTime !== 'string') {
195
+ return new TypeError('Expected "string" but received "' + typeof obj_startTime + '" (at "' + path_startTime + '")');
196
+ }
197
+ }
198
+ })();
199
+ return v_error === undefined ? null : v_error;
200
+ }
201
+ var select$9 = function TimeSlotSelect() {
202
+ return {
203
+ kind: 'Fragment',
204
+ version: VERSION$6,
205
+ private: [],
206
+ selections: [
207
+ {
208
+ name: 'endTime',
209
+ kind: 'Scalar',
210
+ required: false
211
+ },
212
+ {
213
+ name: 'serviceResourceId',
214
+ kind: 'Scalar',
215
+ required: false
216
+ },
217
+ {
218
+ name: 'serviceTerritoryId',
219
+ kind: 'Scalar',
220
+ required: false
221
+ },
222
+ {
223
+ name: 'startTime',
224
+ kind: 'Scalar',
225
+ required: false
226
+ }
227
+ ]
228
+ };
229
+ };
230
+ function equals$6(existing, incoming) {
231
+ var existing_endTime = existing.endTime;
232
+ var incoming_endTime = incoming.endTime;
233
+ // if at least one of these optionals is defined
234
+ if (existing_endTime !== undefined || incoming_endTime !== undefined) {
235
+ // if one of these is not defined we know the other is defined and therefore
236
+ // not equal
237
+ if (existing_endTime === undefined || incoming_endTime === undefined) {
238
+ return false;
239
+ }
240
+ if (!(existing_endTime === incoming_endTime)) {
241
+ return false;
242
+ }
243
+ }
244
+ var existing_serviceResourceId = existing.serviceResourceId;
245
+ var incoming_serviceResourceId = incoming.serviceResourceId;
246
+ // if at least one of these optionals is defined
247
+ if (existing_serviceResourceId !== undefined || incoming_serviceResourceId !== undefined) {
248
+ // if one of these is not defined we know the other is defined and therefore
249
+ // not equal
250
+ if (existing_serviceResourceId === undefined || incoming_serviceResourceId === undefined) {
251
+ return false;
252
+ }
253
+ if (!(existing_serviceResourceId === incoming_serviceResourceId)) {
254
+ return false;
255
+ }
256
+ }
257
+ var existing_serviceTerritoryId = existing.serviceTerritoryId;
258
+ var incoming_serviceTerritoryId = incoming.serviceTerritoryId;
259
+ // if at least one of these optionals is defined
260
+ if (existing_serviceTerritoryId !== undefined || incoming_serviceTerritoryId !== undefined) {
261
+ // if one of these is not defined we know the other is defined and therefore
262
+ // not equal
263
+ if (existing_serviceTerritoryId === undefined || incoming_serviceTerritoryId === undefined) {
264
+ return false;
265
+ }
266
+ if (!(existing_serviceTerritoryId === incoming_serviceTerritoryId)) {
267
+ return false;
268
+ }
269
+ }
270
+ var existing_startTime = existing.startTime;
271
+ var incoming_startTime = incoming.startTime;
272
+ // if at least one of these optionals is defined
273
+ if (existing_startTime !== undefined || incoming_startTime !== undefined) {
274
+ // if one of these is not defined we know the other is defined and therefore
275
+ // not equal
276
+ if (existing_startTime === undefined || incoming_startTime === undefined) {
277
+ return false;
278
+ }
279
+ if (!(existing_startTime === incoming_startTime)) {
280
+ return false;
281
+ }
282
+ }
283
+ return true;
284
+ }
285
+
286
+ var VERSION$5 = "9c2ef94b89ee532c50c8423528617441";
287
+ function validate$5(obj, path) {
288
+ if (path === void 0) { path = 'AvailableTimeSlotsOuputRepresentation'; }
289
+ var v_error = (function () {
290
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
291
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
292
+ }
293
+ var obj_timeSlots = obj.timeSlots;
294
+ var path_timeSlots = path + '.timeSlots';
295
+ if (!ArrayIsArray(obj_timeSlots)) {
296
+ return new TypeError('Expected "array" but received "' + typeof obj_timeSlots + '" (at "' + path_timeSlots + '")');
297
+ }
298
+ for (var i = 0; i < obj_timeSlots.length; i++) {
299
+ var obj_timeSlots_item = obj_timeSlots[i];
300
+ var path_timeSlots_item = path_timeSlots + '[' + i + ']';
301
+ var referencepath_timeSlots_itemValidationError = validate$6(obj_timeSlots_item, path_timeSlots_item);
302
+ if (referencepath_timeSlots_itemValidationError !== null) {
303
+ var message = 'Object doesn\'t match TimeSlot (at "' + path_timeSlots_item + '")\n';
304
+ message += referencepath_timeSlots_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
305
+ return new TypeError(message);
306
+ }
307
+ }
308
+ })();
309
+ return v_error === undefined ? null : v_error;
310
+ }
311
+ var RepresentationType$2 = 'AvailableTimeSlotsOuputRepresentation';
312
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
313
+ return input;
314
+ }
315
+ var select$8 = function AvailableTimeSlotsOuputRepresentationSelect() {
316
+ var _a = select$9(), TimeSlot__selections = _a.selections;
317
+ return {
318
+ kind: 'Fragment',
319
+ version: VERSION$5,
320
+ private: [],
321
+ selections: [
322
+ {
323
+ name: 'timeSlots',
324
+ kind: 'Object',
325
+ plural: true,
326
+ selections: TimeSlot__selections
327
+ }
328
+ ]
329
+ };
330
+ };
331
+ function equals$5(existing, incoming) {
332
+ var existing_timeSlots = existing.timeSlots;
333
+ var incoming_timeSlots = incoming.timeSlots;
334
+ var equals_timeSlots_items = equalsArray(existing_timeSlots, incoming_timeSlots, function (existing_timeSlots_item, incoming_timeSlots_item) {
335
+ if (!(equals$6(existing_timeSlots_item, incoming_timeSlots_item))) {
336
+ return false;
337
+ }
338
+ });
339
+ if (equals_timeSlots_items === false) {
340
+ return false;
341
+ }
342
+ return true;
343
+ }
344
+ var ingest$2 = function AvailableTimeSlotsOuputRepresentationIngest(input, path, luvio, store, timestamp) {
345
+ if (process.env.NODE_ENV !== 'production') {
346
+ var validateError = validate$5(input);
347
+ if (validateError !== null) {
348
+ throw validateError;
349
+ }
350
+ }
351
+ var key = path.fullPath;
352
+ var existingRecord = store.readEntry(key);
353
+ var ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
354
+ var incomingRecord = normalize$2(input, store.readEntry(key), {
355
+ fullPath: key,
356
+ parent: path.parent,
357
+ propertyName: path.propertyName,
358
+ ttl: ttlToUse
359
+ });
360
+ if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
361
+ luvio.storePublish(key, incomingRecord);
362
+ }
363
+ if (ttlToUse !== undefined) {
364
+ var storeMetadataParams = {
365
+ ttl: ttlToUse,
366
+ namespace: "education",
367
+ version: VERSION$5,
368
+ representationName: RepresentationType$2,
369
+ };
370
+ luvio.publishStoreMetadata(key, storeMetadataParams);
371
+ }
372
+ return createLink(key);
373
+ };
374
+ function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
375
+ var rootKeySet = new engine.StoreKeyMap();
376
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
377
+ var rootKey = fullPathFactory();
378
+ rootKeySet.set(rootKey, {
379
+ namespace: keyPrefix,
380
+ representationName: RepresentationType$2,
381
+ mergeable: false
382
+ });
383
+ return rootKeySet;
384
+ }
385
+
386
+ function select$7(luvio, params) {
387
+ return select$8();
388
+ }
389
+ function keyBuilder$5(luvio, params) {
390
+ return keyPrefix + '::AvailableTimeSlotsOuputRepresentation:(' + (params.body.availableTimeSlotsInput.endTime === undefined ? 'availableTimeSlotsInput.endTime' : 'availableTimeSlotsInput.endTime:' + params.body.availableTimeSlotsInput.endTime) + '::' + 'availableTimeSlotsInput.engagementChannelTypeIds:' + params.body.availableTimeSlotsInput.engagementChannelTypeIds + '::' + 'availableTimeSlotsInput.serviceResourceIds:' + params.body.availableTimeSlotsInput.serviceResourceIds + '::' + 'availableTimeSlotsInput.serviceTerritoryIds:' + params.body.availableTimeSlotsInput.serviceTerritoryIds + '::' + (params.body.availableTimeSlotsInput.startTime === undefined ? 'availableTimeSlotsInput.startTime' : 'availableTimeSlotsInput.startTime:' + params.body.availableTimeSlotsInput.startTime) + '::' + 'availableTimeSlotsInput.workTypeGroupId:' + params.body.availableTimeSlotsInput.workTypeGroupId + ')';
391
+ }
392
+ function getResponseCacheKeys$2(luvio, resourceParams, response) {
393
+ return getTypeCacheKeys$2(luvio, response, function () { return keyBuilder$5(luvio, resourceParams); });
394
+ }
395
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
396
+ var body = response.body;
397
+ var key = keyBuilder$5(luvio, resourceParams);
398
+ luvio.storeIngest(key, ingest$2, body);
399
+ var snapshot = luvio.storeLookup({
400
+ recordId: key,
401
+ node: select$7(),
402
+ variables: {},
403
+ }, snapshotRefresh);
404
+ if (process.env.NODE_ENV !== 'production') {
405
+ if (snapshot.state !== 'Fulfilled') {
406
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
407
+ }
408
+ }
409
+ return snapshot;
410
+ }
411
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
412
+ var key = keyBuilder$5(luvio, params);
413
+ var errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
414
+ luvio.storeIngestError(key, errorSnapshot);
415
+ return errorSnapshot;
416
+ }
417
+ function createResourceRequest$2(config) {
418
+ var headers = {};
419
+ return {
420
+ baseUri: '/services/data/v58.0',
421
+ basePath: '/connect/education/appointment-booking/available-time-slots',
422
+ method: 'post',
423
+ body: config.body,
424
+ urlParams: {},
425
+ queryParams: {},
426
+ headers: headers,
427
+ priority: 'normal',
428
+ };
429
+ }
430
+
431
+ var getAvailableTimeSlots_ConfigPropertyNames = {
432
+ displayName: 'getAvailableTimeSlots',
433
+ parameters: {
434
+ required: ['availableTimeSlotsInput'],
435
+ optional: []
436
+ }
437
+ };
438
+ function createResourceParams$2(config) {
439
+ var resourceParams = {
440
+ body: {
441
+ availableTimeSlotsInput: config.availableTimeSlotsInput
442
+ }
443
+ };
444
+ return resourceParams;
445
+ }
446
+ function keyBuilder$4(luvio, config) {
447
+ var resourceParams = createResourceParams$2(config);
448
+ return keyBuilder$5(luvio, resourceParams);
449
+ }
450
+ function typeCheckConfig$2(untrustedConfig) {
451
+ var config = {};
452
+ var untrustedConfig_availableTimeSlotsInput = untrustedConfig.availableTimeSlotsInput;
453
+ var referenceAvailableTimeSlotsInputRepresentationValidationError = validate$7(untrustedConfig_availableTimeSlotsInput);
454
+ if (referenceAvailableTimeSlotsInputRepresentationValidationError === null) {
455
+ config.availableTimeSlotsInput = untrustedConfig_availableTimeSlotsInput;
456
+ }
457
+ return config;
458
+ }
459
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
460
+ if (!untrustedIsObject(untrustedConfig)) {
461
+ return null;
462
+ }
463
+ if (process.env.NODE_ENV !== 'production') {
464
+ validateConfig(untrustedConfig, configPropertyNames);
465
+ }
466
+ var config = typeCheckConfig$2(untrustedConfig);
467
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
468
+ return null;
469
+ }
470
+ return config;
471
+ }
472
+ function adapterFragment$2(luvio, config) {
473
+ createResourceParams$2(config);
474
+ return select$7();
475
+ }
476
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
477
+ var snapshot = ingestSuccess$2(luvio, resourceParams, response, {
478
+ config: config,
479
+ resolve: function () { return buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions); }
480
+ });
481
+ return luvio.storeBroadcast().then(function () { return snapshot; });
482
+ }
483
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
484
+ var snapshot = ingestError$2(luvio, resourceParams, response, {
485
+ config: config,
486
+ resolve: function () { return buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions); }
487
+ });
488
+ return luvio.storeBroadcast().then(function () { return snapshot; });
489
+ }
490
+ function buildNetworkSnapshot$2(luvio, config, options) {
491
+ var resourceParams = createResourceParams$2(config);
492
+ var request = createResourceRequest$2(resourceParams);
493
+ return luvio.dispatchResourceRequest(request, options)
494
+ .then(function (response) {
495
+ return luvio.handleSuccessResponse(function () { return onFetchResponseSuccess$2(luvio, config, resourceParams, response); }, function () { return getResponseCacheKeys$2(luvio, resourceParams, response.body); });
496
+ }, function (response) {
497
+ return luvio.handleErrorResponse(function () { return onFetchResponseError$2(luvio, config, resourceParams, response); });
498
+ });
499
+ }
500
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
501
+ var luvio = context.luvio, config = context.config;
502
+ var networkPriority = coercedAdapterRequestContext.networkPriority, requestCorrelator = coercedAdapterRequestContext.requestCorrelator, eventObservers = coercedAdapterRequestContext.eventObservers;
503
+ var dispatchOptions = {
504
+ resourceRequestContext: {
505
+ requestCorrelator: requestCorrelator,
506
+ luvioRequestMethod: 'get',
507
+ },
508
+ eventObservers: eventObservers
509
+ };
510
+ if (networkPriority !== 'normal') {
511
+ dispatchOptions.overrides = {
512
+ priority: networkPriority
513
+ };
514
+ }
515
+ return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
516
+ }
517
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
518
+ var luvio = context.luvio, config = context.config;
519
+ var selector = {
520
+ recordId: keyBuilder$4(luvio, config),
521
+ node: adapterFragment$2(luvio, config),
522
+ variables: {},
523
+ };
524
+ var cacheSnapshot = storeLookup(selector, {
525
+ config: config,
526
+ resolve: function () { return buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions); }
527
+ });
528
+ return cacheSnapshot;
529
+ }
530
+ var getAvailableTimeSlotsAdapterFactory = function (luvio) { return function education__getAvailableTimeSlots(untrustedConfig, requestContext) {
531
+ var config = validateAdapterConfig$2(untrustedConfig, getAvailableTimeSlots_ConfigPropertyNames);
532
+ // Invalid or incomplete config
533
+ if (config === null) {
534
+ return null;
535
+ }
536
+ return luvio.applyCachePolicy((requestContext || {}), { config: config, luvio: luvio }, // BuildSnapshotContext
537
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
538
+ }; };
539
+
540
+ var VERSION$4 = "c470aba735607497dd11c1fcd34489d1";
541
+ function validate$4(obj, path) {
542
+ if (path === void 0) { path = 'AvailableTopic'; }
543
+ var v_error = (function () {
544
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
545
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
546
+ }
547
+ if (obj.parentWorkTypeGroupName !== undefined) {
548
+ var obj_parentWorkTypeGroupName = obj.parentWorkTypeGroupName;
549
+ var path_parentWorkTypeGroupName = path + '.parentWorkTypeGroupName';
550
+ if (typeof obj_parentWorkTypeGroupName !== 'string') {
551
+ return new TypeError('Expected "string" but received "' + typeof obj_parentWorkTypeGroupName + '" (at "' + path_parentWorkTypeGroupName + '")');
552
+ }
553
+ }
554
+ if (obj.serviceTerritoryWorkTypes !== undefined) {
555
+ var obj_serviceTerritoryWorkTypes = obj.serviceTerritoryWorkTypes;
556
+ var path_serviceTerritoryWorkTypes = path + '.serviceTerritoryWorkTypes';
557
+ if (typeof obj_serviceTerritoryWorkTypes !== 'object' || ArrayIsArray(obj_serviceTerritoryWorkTypes) || obj_serviceTerritoryWorkTypes === null) {
558
+ return new TypeError('Expected "object" but received "' + typeof obj_serviceTerritoryWorkTypes + '" (at "' + path_serviceTerritoryWorkTypes + '")');
559
+ }
560
+ var obj_serviceTerritoryWorkTypes_keys = ObjectKeys(obj_serviceTerritoryWorkTypes);
561
+ for (var i = 0; i < obj_serviceTerritoryWorkTypes_keys.length; i++) {
562
+ var key = obj_serviceTerritoryWorkTypes_keys[i];
563
+ var obj_serviceTerritoryWorkTypes_prop = obj_serviceTerritoryWorkTypes[key];
564
+ var path_serviceTerritoryWorkTypes_prop = path_serviceTerritoryWorkTypes + '["' + key + '"]';
565
+ if (obj_serviceTerritoryWorkTypes_prop === undefined) {
566
+ return new TypeError('Expected "defined" but received "' + typeof obj_serviceTerritoryWorkTypes_prop + '" (at "' + path_serviceTerritoryWorkTypes_prop + '")');
567
+ }
568
+ }
569
+ }
570
+ if (obj.workTypeGroupId !== undefined) {
571
+ var obj_workTypeGroupId = obj.workTypeGroupId;
572
+ var path_workTypeGroupId = path + '.workTypeGroupId';
573
+ if (typeof obj_workTypeGroupId !== 'string') {
574
+ return new TypeError('Expected "string" but received "' + typeof obj_workTypeGroupId + '" (at "' + path_workTypeGroupId + '")');
575
+ }
576
+ }
577
+ if (obj.workTypeGroupName !== undefined) {
578
+ var obj_workTypeGroupName = obj.workTypeGroupName;
579
+ var path_workTypeGroupName = path + '.workTypeGroupName';
580
+ if (typeof obj_workTypeGroupName !== 'string') {
581
+ return new TypeError('Expected "string" but received "' + typeof obj_workTypeGroupName + '" (at "' + path_workTypeGroupName + '")');
582
+ }
583
+ }
584
+ })();
585
+ return v_error === undefined ? null : v_error;
586
+ }
587
+ var select$6 = function AvailableTopicSelect() {
588
+ return {
589
+ kind: 'Fragment',
590
+ version: VERSION$4,
591
+ private: [],
592
+ selections: [
593
+ {
594
+ name: 'parentWorkTypeGroupName',
595
+ kind: 'Scalar',
596
+ required: false
597
+ },
598
+ {
599
+ name: 'serviceTerritoryWorkTypes',
600
+ kind: 'Object',
601
+ // any
602
+ },
603
+ {
604
+ name: 'workTypeGroupId',
605
+ kind: 'Scalar',
606
+ required: false
607
+ },
608
+ {
609
+ name: 'workTypeGroupName',
610
+ kind: 'Scalar',
611
+ required: false
612
+ }
613
+ ]
614
+ };
615
+ };
616
+ function equals$4(existing, incoming) {
617
+ var existing_parentWorkTypeGroupName = existing.parentWorkTypeGroupName;
618
+ var incoming_parentWorkTypeGroupName = incoming.parentWorkTypeGroupName;
619
+ // if at least one of these optionals is defined
620
+ if (existing_parentWorkTypeGroupName !== undefined || incoming_parentWorkTypeGroupName !== undefined) {
621
+ // if one of these is not defined we know the other is defined and therefore
622
+ // not equal
623
+ if (existing_parentWorkTypeGroupName === undefined || incoming_parentWorkTypeGroupName === undefined) {
624
+ return false;
625
+ }
626
+ if (!(existing_parentWorkTypeGroupName === incoming_parentWorkTypeGroupName)) {
627
+ return false;
628
+ }
629
+ }
630
+ var existing_workTypeGroupId = existing.workTypeGroupId;
631
+ var incoming_workTypeGroupId = incoming.workTypeGroupId;
632
+ // if at least one of these optionals is defined
633
+ if (existing_workTypeGroupId !== undefined || incoming_workTypeGroupId !== undefined) {
634
+ // if one of these is not defined we know the other is defined and therefore
635
+ // not equal
636
+ if (existing_workTypeGroupId === undefined || incoming_workTypeGroupId === undefined) {
637
+ return false;
638
+ }
639
+ if (!(existing_workTypeGroupId === incoming_workTypeGroupId)) {
640
+ return false;
641
+ }
642
+ }
643
+ var existing_workTypeGroupName = existing.workTypeGroupName;
644
+ var incoming_workTypeGroupName = incoming.workTypeGroupName;
645
+ // if at least one of these optionals is defined
646
+ if (existing_workTypeGroupName !== undefined || incoming_workTypeGroupName !== undefined) {
647
+ // if one of these is not defined we know the other is defined and therefore
648
+ // not equal
649
+ if (existing_workTypeGroupName === undefined || incoming_workTypeGroupName === undefined) {
650
+ return false;
651
+ }
652
+ if (!(existing_workTypeGroupName === incoming_workTypeGroupName)) {
653
+ return false;
654
+ }
655
+ }
656
+ var existing_serviceTerritoryWorkTypes = existing.serviceTerritoryWorkTypes;
657
+ var incoming_serviceTerritoryWorkTypes = incoming.serviceTerritoryWorkTypes;
658
+ // if at least one of these optionals is defined
659
+ if (existing_serviceTerritoryWorkTypes !== undefined || incoming_serviceTerritoryWorkTypes !== undefined) {
660
+ // if one of these is not defined we know the other is defined and therefore
661
+ // not equal
662
+ if (existing_serviceTerritoryWorkTypes === undefined || incoming_serviceTerritoryWorkTypes === undefined) {
663
+ return false;
664
+ }
665
+ var equals_serviceTerritoryWorkTypes_props = equalsObject(existing_serviceTerritoryWorkTypes, incoming_serviceTerritoryWorkTypes, function (existing_serviceTerritoryWorkTypes_prop, incoming_serviceTerritoryWorkTypes_prop) {
666
+ if (JSONStringify(incoming_serviceTerritoryWorkTypes_prop) !== JSONStringify(existing_serviceTerritoryWorkTypes_prop)) {
667
+ return false;
668
+ }
669
+ });
670
+ if (equals_serviceTerritoryWorkTypes_props === false) {
671
+ return false;
672
+ }
673
+ }
674
+ return true;
675
+ }
676
+
677
+ var VERSION$3 = "3cb0110faf688dc57056aa83be527181";
678
+ function validate$3(obj, path) {
679
+ if (path === void 0) { path = 'AvailableTopicsOutputRepresentation'; }
680
+ var v_error = (function () {
681
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
682
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
683
+ }
684
+ var obj_topics = obj.topics;
685
+ var path_topics = path + '.topics';
686
+ if (!ArrayIsArray(obj_topics)) {
687
+ return new TypeError('Expected "array" but received "' + typeof obj_topics + '" (at "' + path_topics + '")');
688
+ }
689
+ for (var i = 0; i < obj_topics.length; i++) {
690
+ var obj_topics_item = obj_topics[i];
691
+ var path_topics_item = path_topics + '[' + i + ']';
692
+ var referencepath_topics_itemValidationError = validate$4(obj_topics_item, path_topics_item);
693
+ if (referencepath_topics_itemValidationError !== null) {
694
+ var message = 'Object doesn\'t match AvailableTopic (at "' + path_topics_item + '")\n';
695
+ message += referencepath_topics_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
696
+ return new TypeError(message);
697
+ }
698
+ }
699
+ })();
700
+ return v_error === undefined ? null : v_error;
701
+ }
702
+ var RepresentationType$1 = 'AvailableTopicsOutputRepresentation';
703
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
704
+ return input;
705
+ }
706
+ var select$5 = function AvailableTopicsOutputRepresentationSelect() {
707
+ var _a = select$6(), AvailableTopic__selections = _a.selections;
708
+ return {
709
+ kind: 'Fragment',
710
+ version: VERSION$3,
711
+ private: [],
712
+ selections: [
713
+ {
714
+ name: 'topics',
715
+ kind: 'Object',
716
+ plural: true,
717
+ selections: AvailableTopic__selections
718
+ }
719
+ ]
720
+ };
721
+ };
722
+ function equals$3(existing, incoming) {
723
+ var existing_topics = existing.topics;
724
+ var incoming_topics = incoming.topics;
725
+ var equals_topics_items = equalsArray(existing_topics, incoming_topics, function (existing_topics_item, incoming_topics_item) {
726
+ if (!(equals$4(existing_topics_item, incoming_topics_item))) {
727
+ return false;
728
+ }
729
+ });
730
+ if (equals_topics_items === false) {
731
+ return false;
732
+ }
733
+ return true;
734
+ }
735
+ var ingest$1 = function AvailableTopicsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
736
+ if (process.env.NODE_ENV !== 'production') {
737
+ var validateError = validate$3(input);
738
+ if (validateError !== null) {
739
+ throw validateError;
740
+ }
741
+ }
742
+ var key = path.fullPath;
743
+ var existingRecord = store.readEntry(key);
744
+ var ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
745
+ var incomingRecord = normalize$1(input, store.readEntry(key), {
746
+ fullPath: key,
747
+ parent: path.parent,
748
+ propertyName: path.propertyName,
749
+ ttl: ttlToUse
750
+ });
751
+ if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
752
+ luvio.storePublish(key, incomingRecord);
753
+ }
754
+ if (ttlToUse !== undefined) {
755
+ var storeMetadataParams = {
756
+ ttl: ttlToUse,
757
+ namespace: "education",
758
+ version: VERSION$3,
759
+ representationName: RepresentationType$1,
760
+ };
761
+ luvio.publishStoreMetadata(key, storeMetadataParams);
762
+ }
763
+ return createLink(key);
764
+ };
765
+ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
766
+ var rootKeySet = new engine.StoreKeyMap();
767
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
768
+ var rootKey = fullPathFactory();
769
+ rootKeySet.set(rootKey, {
770
+ namespace: keyPrefix,
771
+ representationName: RepresentationType$1,
772
+ mergeable: false
773
+ });
774
+ return rootKeySet;
775
+ }
776
+
777
+ function select$4(luvio, params) {
778
+ return select$5();
779
+ }
780
+ function keyBuilder$3(luvio, params) {
781
+ return keyPrefix + '::AvailableTopicsOutputRepresentation:(' + ')';
782
+ }
783
+ function getResponseCacheKeys$1(luvio, resourceParams, response) {
784
+ return getTypeCacheKeys$1(luvio, response, function () { return keyBuilder$3(); });
785
+ }
786
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
787
+ var body = response.body;
788
+ var key = keyBuilder$3();
789
+ luvio.storeIngest(key, ingest$1, body);
790
+ var snapshot = luvio.storeLookup({
791
+ recordId: key,
792
+ node: select$4(),
793
+ variables: {},
794
+ }, snapshotRefresh);
795
+ if (process.env.NODE_ENV !== 'production') {
796
+ if (snapshot.state !== 'Fulfilled') {
797
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
798
+ }
799
+ }
800
+ return snapshot;
801
+ }
802
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
803
+ var key = keyBuilder$3();
804
+ var errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
805
+ luvio.storeIngestError(key, errorSnapshot);
806
+ return errorSnapshot;
807
+ }
808
+ function createResourceRequest$1(config) {
809
+ var headers = {};
810
+ return {
811
+ baseUri: '/services/data/v58.0',
812
+ basePath: '/connect/education/appointment-booking/available-topics',
813
+ method: 'get',
814
+ body: null,
815
+ urlParams: {},
816
+ queryParams: {},
817
+ headers: headers,
818
+ priority: 'normal',
819
+ };
820
+ }
821
+
822
+ var getAvailableTopics_ConfigPropertyNames = {
823
+ displayName: 'getAvailableTopics',
824
+ parameters: {
825
+ required: [],
826
+ optional: []
827
+ }
828
+ };
829
+ function createResourceParams$1(config) {
830
+ var resourceParams = {};
831
+ return resourceParams;
832
+ }
833
+ function keyBuilder$2(luvio, config) {
834
+ return keyBuilder$3();
835
+ }
836
+ function typeCheckConfig$1(untrustedConfig) {
837
+ var config = {};
838
+ return config;
839
+ }
840
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
841
+ if (!untrustedIsObject(untrustedConfig)) {
842
+ return null;
843
+ }
844
+ if (process.env.NODE_ENV !== 'production') {
845
+ validateConfig(untrustedConfig, configPropertyNames);
846
+ }
847
+ var config = typeCheckConfig$1();
848
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
849
+ return null;
850
+ }
851
+ return config;
852
+ }
853
+ function adapterFragment$1(luvio, config) {
854
+ return select$4();
855
+ }
856
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
857
+ var snapshot = ingestSuccess$1(luvio, resourceParams, response, {
858
+ config: config,
859
+ resolve: function () { return buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions); }
860
+ });
861
+ return luvio.storeBroadcast().then(function () { return snapshot; });
862
+ }
863
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
864
+ var snapshot = ingestError$1(luvio, resourceParams, response, {
865
+ config: config,
866
+ resolve: function () { return buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions); }
867
+ });
868
+ return luvio.storeBroadcast().then(function () { return snapshot; });
869
+ }
870
+ function buildNetworkSnapshot$1(luvio, config, options) {
871
+ var resourceParams = createResourceParams$1();
872
+ var request = createResourceRequest$1();
873
+ return luvio.dispatchResourceRequest(request, options)
874
+ .then(function (response) {
875
+ return luvio.handleSuccessResponse(function () { return onFetchResponseSuccess$1(luvio, config, resourceParams, response); }, function () { return getResponseCacheKeys$1(luvio, resourceParams, response.body); });
876
+ }, function (response) {
877
+ return luvio.handleErrorResponse(function () { return onFetchResponseError$1(luvio, config, resourceParams, response); });
878
+ });
879
+ }
880
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
881
+ var luvio = context.luvio, config = context.config;
882
+ var networkPriority = coercedAdapterRequestContext.networkPriority, requestCorrelator = coercedAdapterRequestContext.requestCorrelator, eventObservers = coercedAdapterRequestContext.eventObservers;
883
+ var dispatchOptions = {
884
+ resourceRequestContext: {
885
+ requestCorrelator: requestCorrelator,
886
+ luvioRequestMethod: undefined,
887
+ },
888
+ eventObservers: eventObservers
889
+ };
890
+ if (networkPriority !== 'normal') {
891
+ dispatchOptions.overrides = {
892
+ priority: networkPriority
893
+ };
894
+ }
895
+ return buildNetworkSnapshot$1(luvio, config, dispatchOptions);
896
+ }
897
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
898
+ var luvio = context.luvio, config = context.config;
899
+ var selector = {
900
+ recordId: keyBuilder$2(),
901
+ node: adapterFragment$1(),
902
+ variables: {},
903
+ };
904
+ var cacheSnapshot = storeLookup(selector, {
905
+ config: config,
906
+ resolve: function () { return buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions); }
907
+ });
908
+ return cacheSnapshot;
909
+ }
910
+ var getAvailableTopicsAdapterFactory = function (luvio) { return function education__getAvailableTopics(untrustedConfig, requestContext) {
911
+ var config = validateAdapterConfig$1(untrustedConfig, getAvailableTopics_ConfigPropertyNames);
912
+ // Invalid or incomplete config
913
+ if (config === null) {
914
+ return null;
915
+ }
916
+ return luvio.applyCachePolicy((requestContext || {}), { config: config, luvio: luvio }, // BuildSnapshotContext
917
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
918
+ }; };
919
+
920
+ var VERSION$2 = "256a3344cb09454a859ca2f0645eb0bc";
921
+ function validate$2(obj, path) {
922
+ if (path === void 0) { path = 'AvailableTeam'; }
923
+ var v_error = (function () {
924
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
925
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
926
+ }
927
+ if (obj.canSelfSchedule !== undefined) {
928
+ var obj_canSelfSchedule = obj.canSelfSchedule;
929
+ var path_canSelfSchedule = path + '.canSelfSchedule';
930
+ if (typeof obj_canSelfSchedule !== 'boolean') {
931
+ return new TypeError('Expected "boolean" but received "' + typeof obj_canSelfSchedule + '" (at "' + path_canSelfSchedule + '")');
932
+ }
933
+ }
934
+ if (obj.caseId !== undefined) {
935
+ var obj_caseId = obj.caseId;
936
+ var path_caseId = path + '.caseId';
937
+ if (typeof obj_caseId !== 'string') {
938
+ return new TypeError('Expected "string" but received "' + typeof obj_caseId + '" (at "' + path_caseId + '")');
939
+ }
940
+ }
941
+ if (obj.caseRecordTypeName !== undefined) {
942
+ var obj_caseRecordTypeName = obj.caseRecordTypeName;
943
+ var path_caseRecordTypeName = path + '.caseRecordTypeName';
944
+ if (typeof obj_caseRecordTypeName !== 'string') {
945
+ return new TypeError('Expected "string" but received "' + typeof obj_caseRecordTypeName + '" (at "' + path_caseRecordTypeName + '")');
946
+ }
947
+ }
948
+ if (obj.members !== undefined) {
949
+ var obj_members = obj.members;
950
+ var path_members = path + '.members';
951
+ if (typeof obj_members !== 'object' || ArrayIsArray(obj_members) || obj_members === null) {
952
+ return new TypeError('Expected "object" but received "' + typeof obj_members + '" (at "' + path_members + '")');
953
+ }
954
+ var obj_members_keys = ObjectKeys(obj_members);
955
+ for (var i = 0; i < obj_members_keys.length; i++) {
956
+ var key = obj_members_keys[i];
957
+ var obj_members_prop = obj_members[key];
958
+ var path_members_prop = path_members + '["' + key + '"]';
959
+ if (obj_members_prop === undefined) {
960
+ return new TypeError('Expected "defined" but received "' + typeof obj_members_prop + '" (at "' + path_members_prop + '")');
961
+ }
962
+ }
963
+ }
964
+ if (obj.name !== undefined) {
965
+ var obj_name = obj.name;
966
+ var path_name = path + '.name';
967
+ if (typeof obj_name !== 'string') {
968
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
969
+ }
970
+ }
971
+ if (obj.teamId !== undefined) {
972
+ var obj_teamId = obj.teamId;
973
+ var path_teamId = path + '.teamId';
974
+ if (typeof obj_teamId !== 'string') {
975
+ return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
976
+ }
977
+ }
978
+ })();
979
+ return v_error === undefined ? null : v_error;
980
+ }
981
+ var select$3 = function AvailableTeamSelect() {
982
+ return {
983
+ kind: 'Fragment',
984
+ version: VERSION$2,
985
+ private: [],
986
+ selections: [
987
+ {
988
+ name: 'canSelfSchedule',
989
+ kind: 'Scalar',
990
+ required: false
991
+ },
992
+ {
993
+ name: 'caseId',
994
+ kind: 'Scalar',
995
+ required: false
996
+ },
997
+ {
998
+ name: 'caseRecordTypeName',
999
+ kind: 'Scalar',
1000
+ required: false
1001
+ },
1002
+ {
1003
+ name: 'members',
1004
+ kind: 'Object',
1005
+ // any
1006
+ },
1007
+ {
1008
+ name: 'name',
1009
+ kind: 'Scalar',
1010
+ required: false
1011
+ },
1012
+ {
1013
+ name: 'teamId',
1014
+ kind: 'Scalar',
1015
+ required: false
1016
+ }
1017
+ ]
1018
+ };
1019
+ };
1020
+ function equals$2(existing, incoming) {
1021
+ var existing_canSelfSchedule = existing.canSelfSchedule;
1022
+ var incoming_canSelfSchedule = incoming.canSelfSchedule;
1023
+ // if at least one of these optionals is defined
1024
+ if (existing_canSelfSchedule !== undefined || incoming_canSelfSchedule !== undefined) {
1025
+ // if one of these is not defined we know the other is defined and therefore
1026
+ // not equal
1027
+ if (existing_canSelfSchedule === undefined || incoming_canSelfSchedule === undefined) {
1028
+ return false;
1029
+ }
1030
+ if (!(existing_canSelfSchedule === incoming_canSelfSchedule)) {
1031
+ return false;
1032
+ }
1033
+ }
1034
+ var existing_caseId = existing.caseId;
1035
+ var incoming_caseId = incoming.caseId;
1036
+ // if at least one of these optionals is defined
1037
+ if (existing_caseId !== undefined || incoming_caseId !== undefined) {
1038
+ // if one of these is not defined we know the other is defined and therefore
1039
+ // not equal
1040
+ if (existing_caseId === undefined || incoming_caseId === undefined) {
1041
+ return false;
1042
+ }
1043
+ if (!(existing_caseId === incoming_caseId)) {
1044
+ return false;
1045
+ }
1046
+ }
1047
+ var existing_caseRecordTypeName = existing.caseRecordTypeName;
1048
+ var incoming_caseRecordTypeName = incoming.caseRecordTypeName;
1049
+ // if at least one of these optionals is defined
1050
+ if (existing_caseRecordTypeName !== undefined || incoming_caseRecordTypeName !== undefined) {
1051
+ // if one of these is not defined we know the other is defined and therefore
1052
+ // not equal
1053
+ if (existing_caseRecordTypeName === undefined || incoming_caseRecordTypeName === undefined) {
1054
+ return false;
1055
+ }
1056
+ if (!(existing_caseRecordTypeName === incoming_caseRecordTypeName)) {
1057
+ return false;
1058
+ }
1059
+ }
1060
+ var existing_name = existing.name;
1061
+ var incoming_name = incoming.name;
1062
+ // if at least one of these optionals is defined
1063
+ if (existing_name !== undefined || incoming_name !== undefined) {
1064
+ // if one of these is not defined we know the other is defined and therefore
1065
+ // not equal
1066
+ if (existing_name === undefined || incoming_name === undefined) {
1067
+ return false;
1068
+ }
1069
+ if (!(existing_name === incoming_name)) {
1070
+ return false;
1071
+ }
1072
+ }
1073
+ var existing_teamId = existing.teamId;
1074
+ var incoming_teamId = incoming.teamId;
1075
+ // if at least one of these optionals is defined
1076
+ if (existing_teamId !== undefined || incoming_teamId !== undefined) {
1077
+ // if one of these is not defined we know the other is defined and therefore
1078
+ // not equal
1079
+ if (existing_teamId === undefined || incoming_teamId === undefined) {
1080
+ return false;
1081
+ }
1082
+ if (!(existing_teamId === incoming_teamId)) {
1083
+ return false;
1084
+ }
1085
+ }
1086
+ var existing_members = existing.members;
1087
+ var incoming_members = incoming.members;
1088
+ // if at least one of these optionals is defined
1089
+ if (existing_members !== undefined || incoming_members !== undefined) {
1090
+ // if one of these is not defined we know the other is defined and therefore
1091
+ // not equal
1092
+ if (existing_members === undefined || incoming_members === undefined) {
1093
+ return false;
1094
+ }
1095
+ var equals_members_props = equalsObject(existing_members, incoming_members, function (existing_members_prop, incoming_members_prop) {
1096
+ if (JSONStringify(incoming_members_prop) !== JSONStringify(existing_members_prop)) {
1097
+ return false;
1098
+ }
1099
+ });
1100
+ if (equals_members_props === false) {
1101
+ return false;
1102
+ }
1103
+ }
1104
+ return true;
1105
+ }
1106
+
1107
+ var VERSION$1 = "4fc48796f6987d3512fb81d3baf6479c";
1108
+ function validate$1(obj, path) {
1109
+ if (path === void 0) { path = 'GetSuccessTeamResult'; }
1110
+ var v_error = (function () {
1111
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1112
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1113
+ }
1114
+ var obj_assignedStaff = obj.assignedStaff;
1115
+ var path_assignedStaff = path + '.assignedStaff';
1116
+ if (typeof obj_assignedStaff !== 'object' || ArrayIsArray(obj_assignedStaff) || obj_assignedStaff === null) {
1117
+ return new TypeError('Expected "object" but received "' + typeof obj_assignedStaff + '" (at "' + path_assignedStaff + '")');
1118
+ }
1119
+ var obj_assignedStaff_keys = ObjectKeys(obj_assignedStaff);
1120
+ for (var i = 0; i < obj_assignedStaff_keys.length; i++) {
1121
+ var key = obj_assignedStaff_keys[i];
1122
+ var obj_assignedStaff_prop = obj_assignedStaff[key];
1123
+ var path_assignedStaff_prop = path_assignedStaff + '["' + key + '"]';
1124
+ if (obj_assignedStaff_prop === undefined) {
1125
+ return new TypeError('Expected "defined" but received "' + typeof obj_assignedStaff_prop + '" (at "' + path_assignedStaff_prop + '")');
1126
+ }
1127
+ }
1128
+ var obj_assignedTeams = obj.assignedTeams;
1129
+ var path_assignedTeams = path + '.assignedTeams';
1130
+ if (!ArrayIsArray(obj_assignedTeams)) {
1131
+ return new TypeError('Expected "array" but received "' + typeof obj_assignedTeams + '" (at "' + path_assignedTeams + '")');
1132
+ }
1133
+ for (var i = 0; i < obj_assignedTeams.length; i++) {
1134
+ var obj_assignedTeams_item = obj_assignedTeams[i];
1135
+ var path_assignedTeams_item = path_assignedTeams + '[' + i + ']';
1136
+ var referencepath_assignedTeams_itemValidationError = validate$2(obj_assignedTeams_item, path_assignedTeams_item);
1137
+ if (referencepath_assignedTeams_itemValidationError !== null) {
1138
+ var message = 'Object doesn\'t match AvailableTeam (at "' + path_assignedTeams_item + '")\n';
1139
+ message += referencepath_assignedTeams_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
1140
+ return new TypeError(message);
1141
+ }
1142
+ }
1143
+ var obj_unassignedTeams = obj.unassignedTeams;
1144
+ var path_unassignedTeams = path + '.unassignedTeams';
1145
+ if (!ArrayIsArray(obj_unassignedTeams)) {
1146
+ return new TypeError('Expected "array" but received "' + typeof obj_unassignedTeams + '" (at "' + path_unassignedTeams + '")');
1147
+ }
1148
+ for (var i = 0; i < obj_unassignedTeams.length; i++) {
1149
+ var obj_unassignedTeams_item = obj_unassignedTeams[i];
1150
+ var path_unassignedTeams_item = path_unassignedTeams + '[' + i + ']';
1151
+ var referencepath_unassignedTeams_itemValidationError = validate$2(obj_unassignedTeams_item, path_unassignedTeams_item);
1152
+ if (referencepath_unassignedTeams_itemValidationError !== null) {
1153
+ var message = 'Object doesn\'t match AvailableTeam (at "' + path_unassignedTeams_item + '")\n';
1154
+ message += referencepath_unassignedTeams_itemValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
1155
+ return new TypeError(message);
1156
+ }
1157
+ }
1158
+ })();
1159
+ return v_error === undefined ? null : v_error;
1160
+ }
1161
+ var select$2 = function GetSuccessTeamResultSelect() {
1162
+ var _a = select$3(), AvailableTeam__selections = _a.selections;
1163
+ return {
1164
+ kind: 'Fragment',
1165
+ version: VERSION$1,
1166
+ private: [],
1167
+ selections: [
1168
+ {
1169
+ name: 'assignedStaff',
1170
+ kind: 'Object',
1171
+ // any
1172
+ },
1173
+ {
1174
+ name: 'assignedTeams',
1175
+ kind: 'Object',
1176
+ plural: true,
1177
+ selections: AvailableTeam__selections
1178
+ },
1179
+ {
1180
+ name: 'unassignedTeams',
1181
+ kind: 'Object',
1182
+ plural: true,
1183
+ selections: AvailableTeam__selections
1184
+ }
1185
+ ]
1186
+ };
1187
+ };
1188
+ function equals$1(existing, incoming) {
1189
+ var existing_assignedStaff = existing.assignedStaff;
1190
+ var incoming_assignedStaff = incoming.assignedStaff;
1191
+ var equals_assignedStaff_props = equalsObject(existing_assignedStaff, incoming_assignedStaff, function (existing_assignedStaff_prop, incoming_assignedStaff_prop) {
1192
+ if (JSONStringify(incoming_assignedStaff_prop) !== JSONStringify(existing_assignedStaff_prop)) {
1193
+ return false;
1194
+ }
1195
+ });
1196
+ if (equals_assignedStaff_props === false) {
1197
+ return false;
1198
+ }
1199
+ var existing_assignedTeams = existing.assignedTeams;
1200
+ var incoming_assignedTeams = incoming.assignedTeams;
1201
+ var equals_assignedTeams_items = equalsArray(existing_assignedTeams, incoming_assignedTeams, function (existing_assignedTeams_item, incoming_assignedTeams_item) {
1202
+ if (!(equals$2(existing_assignedTeams_item, incoming_assignedTeams_item))) {
1203
+ return false;
1204
+ }
1205
+ });
1206
+ if (equals_assignedTeams_items === false) {
1207
+ return false;
1208
+ }
1209
+ var existing_unassignedTeams = existing.unassignedTeams;
1210
+ var incoming_unassignedTeams = incoming.unassignedTeams;
1211
+ var equals_unassignedTeams_items = equalsArray(existing_unassignedTeams, incoming_unassignedTeams, function (existing_unassignedTeams_item, incoming_unassignedTeams_item) {
1212
+ if (!(equals$2(existing_unassignedTeams_item, incoming_unassignedTeams_item))) {
1213
+ return false;
1214
+ }
1215
+ });
1216
+ if (equals_unassignedTeams_items === false) {
1217
+ return false;
1218
+ }
1219
+ return true;
1220
+ }
1221
+
1222
+ var VERSION = "bb85bc85ab5fe2cd81d05e073d1bccf5";
1223
+ function validate(obj, path) {
1224
+ if (path === void 0) { path = 'SuccessTeamOutputRepresentation'; }
1225
+ var v_error = (function () {
1226
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1227
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1228
+ }
1229
+ var obj_result = obj.result;
1230
+ var path_result = path + '.result';
1231
+ var referencepath_resultValidationError = validate$1(obj_result, path_result);
1232
+ if (referencepath_resultValidationError !== null) {
1233
+ var message = 'Object doesn\'t match GetSuccessTeamResult (at "' + path_result + '")\n';
1234
+ message += referencepath_resultValidationError.message.split('\n').map(function (line) { return '\t' + line; }).join('\n');
1235
+ return new TypeError(message);
1236
+ }
1237
+ })();
1238
+ return v_error === undefined ? null : v_error;
1239
+ }
1240
+ var RepresentationType = 'SuccessTeamOutputRepresentation';
1241
+ function normalize(input, existing, path, luvio, store, timestamp) {
1242
+ return input;
1243
+ }
1244
+ var select$1 = function SuccessTeamOutputRepresentationSelect() {
1245
+ var _a = select$2(), GetSuccessTeamResult__selections = _a.selections;
1246
+ return {
1247
+ kind: 'Fragment',
1248
+ version: VERSION,
1249
+ private: [],
1250
+ selections: [
1251
+ {
1252
+ name: 'result',
1253
+ kind: 'Object',
1254
+ selections: GetSuccessTeamResult__selections
1255
+ }
1256
+ ]
1257
+ };
1258
+ };
1259
+ function equals(existing, incoming) {
1260
+ var existing_result = existing.result;
1261
+ var incoming_result = incoming.result;
1262
+ if (!(equals$1(existing_result, incoming_result))) {
1263
+ return false;
1264
+ }
1265
+ return true;
1266
+ }
1267
+ var ingest = function SuccessTeamOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1268
+ if (process.env.NODE_ENV !== 'production') {
1269
+ var validateError = validate(input);
1270
+ if (validateError !== null) {
1271
+ throw validateError;
1272
+ }
1273
+ }
1274
+ var key = path.fullPath;
1275
+ var existingRecord = store.readEntry(key);
1276
+ var ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1277
+ var incomingRecord = normalize(input, store.readEntry(key), {
1278
+ fullPath: key,
1279
+ parent: path.parent,
1280
+ propertyName: path.propertyName,
1281
+ ttl: ttlToUse
1282
+ });
1283
+ if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
1284
+ luvio.storePublish(key, incomingRecord);
1285
+ }
1286
+ if (ttlToUse !== undefined) {
1287
+ var storeMetadataParams = {
1288
+ ttl: ttlToUse,
1289
+ namespace: "education",
1290
+ version: VERSION,
1291
+ representationName: RepresentationType,
1292
+ };
1293
+ luvio.publishStoreMetadata(key, storeMetadataParams);
1294
+ }
1295
+ return createLink(key);
1296
+ };
1297
+ function getTypeCacheKeys(luvio, input, fullPathFactory) {
1298
+ var rootKeySet = new engine.StoreKeyMap();
1299
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1300
+ var rootKey = fullPathFactory();
1301
+ rootKeySet.set(rootKey, {
1302
+ namespace: keyPrefix,
1303
+ representationName: RepresentationType,
1304
+ mergeable: false
1305
+ });
1306
+ return rootKeySet;
1307
+ }
1308
+
1309
+ function select(luvio, params) {
1310
+ return select$1();
1311
+ }
1312
+ function keyBuilder$1(luvio, params) {
1313
+ return keyPrefix + '::SuccessTeamOutputRepresentation:(' + 'accountId:' + params.urlParams.accountId + ')';
1314
+ }
1315
+ function getResponseCacheKeys(luvio, resourceParams, response) {
1316
+ return getTypeCacheKeys(luvio, response, function () { return keyBuilder$1(luvio, resourceParams); });
1317
+ }
1318
+ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1319
+ var body = response.body;
1320
+ var key = keyBuilder$1(luvio, resourceParams);
1321
+ luvio.storeIngest(key, ingest, body);
1322
+ var snapshot = luvio.storeLookup({
1323
+ recordId: key,
1324
+ node: select(),
1325
+ variables: {},
1326
+ }, snapshotRefresh);
1327
+ if (process.env.NODE_ENV !== 'production') {
1328
+ if (snapshot.state !== 'Fulfilled') {
1329
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1330
+ }
1331
+ }
1332
+ return snapshot;
1333
+ }
1334
+ function ingestError(luvio, params, error, snapshotRefresh) {
1335
+ var key = keyBuilder$1(luvio, params);
1336
+ var errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1337
+ luvio.storeIngestError(key, errorSnapshot);
1338
+ return errorSnapshot;
1339
+ }
1340
+ function createResourceRequest(config) {
1341
+ var headers = {};
1342
+ return {
1343
+ baseUri: '/services/data/v58.0',
1344
+ basePath: '/connect/education/' + config.urlParams.accountId + '/success-team',
1345
+ method: 'get',
1346
+ body: null,
1347
+ urlParams: config.urlParams,
1348
+ queryParams: {},
1349
+ headers: headers,
1350
+ priority: 'normal',
1351
+ };
1352
+ }
1353
+
1354
+ var getSuccessTeam_ConfigPropertyNames = {
1355
+ displayName: 'getSuccessTeam',
1356
+ parameters: {
1357
+ required: ['accountId'],
1358
+ optional: []
1359
+ }
1360
+ };
1361
+ function createResourceParams(config) {
1362
+ var resourceParams = {
1363
+ urlParams: {
1364
+ accountId: config.accountId
1365
+ }
1366
+ };
1367
+ return resourceParams;
1368
+ }
1369
+ function keyBuilder(luvio, config) {
1370
+ var resourceParams = createResourceParams(config);
1371
+ return keyBuilder$1(luvio, resourceParams);
1372
+ }
1373
+ function typeCheckConfig(untrustedConfig) {
1374
+ var config = {};
1375
+ var untrustedConfig_accountId = untrustedConfig.accountId;
1376
+ if (typeof untrustedConfig_accountId === 'string') {
1377
+ config.accountId = untrustedConfig_accountId;
1378
+ }
1379
+ return config;
1380
+ }
1381
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1382
+ if (!untrustedIsObject(untrustedConfig)) {
1383
+ return null;
1384
+ }
1385
+ if (process.env.NODE_ENV !== 'production') {
1386
+ validateConfig(untrustedConfig, configPropertyNames);
1387
+ }
1388
+ var config = typeCheckConfig(untrustedConfig);
1389
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1390
+ return null;
1391
+ }
1392
+ return config;
1393
+ }
1394
+ function adapterFragment(luvio, config) {
1395
+ createResourceParams(config);
1396
+ return select();
1397
+ }
1398
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1399
+ var snapshot = ingestSuccess(luvio, resourceParams, response, {
1400
+ config: config,
1401
+ resolve: function () { return buildNetworkSnapshot(luvio, config, snapshotRefreshOptions); }
1402
+ });
1403
+ return luvio.storeBroadcast().then(function () { return snapshot; });
1404
+ }
1405
+ function onFetchResponseError(luvio, config, resourceParams, response) {
1406
+ var snapshot = ingestError(luvio, resourceParams, response, {
1407
+ config: config,
1408
+ resolve: function () { return buildNetworkSnapshot(luvio, config, snapshotRefreshOptions); }
1409
+ });
1410
+ return luvio.storeBroadcast().then(function () { return snapshot; });
1411
+ }
1412
+ function buildNetworkSnapshot(luvio, config, options) {
1413
+ var resourceParams = createResourceParams(config);
1414
+ var request = createResourceRequest(resourceParams);
1415
+ return luvio.dispatchResourceRequest(request, options)
1416
+ .then(function (response) {
1417
+ return luvio.handleSuccessResponse(function () { return onFetchResponseSuccess(luvio, config, resourceParams, response); }, function () { return getResponseCacheKeys(luvio, resourceParams, response.body); });
1418
+ }, function (response) {
1419
+ return luvio.handleErrorResponse(function () { return onFetchResponseError(luvio, config, resourceParams, response); });
1420
+ });
1421
+ }
1422
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1423
+ var luvio = context.luvio, config = context.config;
1424
+ var networkPriority = coercedAdapterRequestContext.networkPriority, requestCorrelator = coercedAdapterRequestContext.requestCorrelator, eventObservers = coercedAdapterRequestContext.eventObservers;
1425
+ var dispatchOptions = {
1426
+ resourceRequestContext: {
1427
+ requestCorrelator: requestCorrelator,
1428
+ luvioRequestMethod: undefined,
1429
+ },
1430
+ eventObservers: eventObservers
1431
+ };
1432
+ if (networkPriority !== 'normal') {
1433
+ dispatchOptions.overrides = {
1434
+ priority: networkPriority
1435
+ };
1436
+ }
1437
+ return buildNetworkSnapshot(luvio, config, dispatchOptions);
1438
+ }
1439
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1440
+ var luvio = context.luvio, config = context.config;
1441
+ var selector = {
1442
+ recordId: keyBuilder(luvio, config),
1443
+ node: adapterFragment(luvio, config),
1444
+ variables: {},
1445
+ };
1446
+ var cacheSnapshot = storeLookup(selector, {
1447
+ config: config,
1448
+ resolve: function () { return buildNetworkSnapshot(luvio, config, snapshotRefreshOptions); }
1449
+ });
1450
+ return cacheSnapshot;
1451
+ }
1452
+ var getSuccessTeamAdapterFactory = function (luvio) { return function education__getSuccessTeam(untrustedConfig, requestContext) {
1453
+ var config = validateAdapterConfig(untrustedConfig, getSuccessTeam_ConfigPropertyNames);
1454
+ // Invalid or incomplete config
1455
+ if (config === null) {
1456
+ return null;
1457
+ }
1458
+ return luvio.applyCachePolicy((requestContext || {}), { config: config, luvio: luvio }, // BuildSnapshotContext
1459
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1460
+ }; };
1461
+
1462
+ exports.getAvailableTimeSlotsAdapterFactory = getAvailableTimeSlotsAdapterFactory;
1463
+ exports.getAvailableTopicsAdapterFactory = getAvailableTopicsAdapterFactory;
1464
+ exports.getSuccessTeamAdapterFactory = getSuccessTeamAdapterFactory;
1465
+
1466
+ Object.defineProperty(exports, '__esModule', { value: true });
1467
+
1468
+ }));