@salesforce/lds-adapters-industries-interesttagging 0.1.0-dev1

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 (54) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-interesttagging.js +1694 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/createInterestTagEntityAssignment.d.ts +22 -0
  5. package/dist/es/es2018/types/src/generated/adapters/createInterestTagsAndCategories.d.ts +16 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getInterestTagEntityAssignments.d.ts +31 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getTagCategoriesByTagId.d.ts +31 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getTagsByCategoryId.d.ts +31 -0
  9. package/dist/es/es2018/types/src/generated/adapters/getTagsByRecordId.d.ts +31 -0
  10. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
  11. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +11 -0
  12. package/dist/es/es2018/types/src/generated/resources/deleteConnectInterestTagsTags.d.ts +11 -0
  13. package/dist/es/es2018/types/src/generated/resources/deleteConnectInterestTagsTagsByTagId.d.ts +14 -0
  14. package/dist/es/es2018/types/src/generated/resources/getConnectInterestTagsAssignments.d.ts +18 -0
  15. package/dist/es/es2018/types/src/generated/resources/getConnectInterestTagsAssignmentsEntityByRecordId.d.ts +21 -0
  16. package/dist/es/es2018/types/src/generated/resources/getConnectInterestTagsAssignmentsTagByTagId.d.ts +21 -0
  17. package/dist/es/es2018/types/src/generated/resources/getConnectInterestTagsCategories.d.ts +19 -0
  18. package/dist/es/es2018/types/src/generated/resources/getConnectInterestTagsTags.d.ts +19 -0
  19. package/dist/es/es2018/types/src/generated/resources/getConnectInterestTagsTagsByTagId.d.ts +22 -0
  20. package/dist/es/es2018/types/src/generated/resources/patchConnectInterestTagsTags.d.ts +12 -0
  21. package/dist/es/es2018/types/src/generated/resources/patchConnectInterestTagsTagsByTagId.d.ts +15 -0
  22. package/dist/es/es2018/types/src/generated/resources/postConnectInterestTagsAssignments.d.ts +19 -0
  23. package/dist/es/es2018/types/src/generated/resources/postConnectInterestTagsAssignmentsTagByTagId.d.ts +22 -0
  24. package/dist/es/es2018/types/src/generated/resources/postConnectInterestTagsTagsAndCategories.d.ts +13 -0
  25. package/dist/es/es2018/types/src/generated/types/CategoryCreatedResult.d.ts +31 -0
  26. package/dist/es/es2018/types/src/generated/types/InterestTagAndCategoryCreateInputRepresentation.d.ts +29 -0
  27. package/dist/es/es2018/types/src/generated/types/InterestTagAndCategoryCreateOutputRepresentation.d.ts +50 -0
  28. package/dist/es/es2018/types/src/generated/types/InterestTagAndCategoryErrorOutputRepresentation.d.ts +31 -0
  29. package/dist/es/es2018/types/src/generated/types/InterestTagAndCategoryItemInputRepresentation.d.ts +41 -0
  30. package/dist/es/es2018/types/src/generated/types/InterestTagAssignmentInputRepresentation.d.ts +43 -0
  31. package/dist/es/es2018/types/src/generated/types/InterestTagAssignmentOutputRepresentation.d.ts +50 -0
  32. package/dist/es/es2018/types/src/generated/types/InterestTagCreateCollectionOutputRepresentation.d.ts +29 -0
  33. package/dist/es/es2018/types/src/generated/types/InterestTagCreateInputListRepresentation.d.ts +28 -0
  34. package/dist/es/es2018/types/src/generated/types/InterestTagCreateInputRepresentation.d.ts +37 -0
  35. package/dist/es/es2018/types/src/generated/types/InterestTagCreateResult.d.ts +37 -0
  36. package/dist/es/es2018/types/src/generated/types/InterestTagItemInputRepresentation.d.ts +37 -0
  37. package/dist/es/es2018/types/src/generated/types/InterestTagListRepresentation.d.ts +30 -0
  38. package/dist/es/es2018/types/src/generated/types/InterestTagRepresentation.d.ts +38 -0
  39. package/dist/es/es2018/types/src/generated/types/InterestTagUpdateInputRepresentation.d.ts +37 -0
  40. package/dist/es/es2018/types/src/generated/types/InterestTagUpdateOutputRepresentation.d.ts +31 -0
  41. package/dist/es/es2018/types/src/generated/types/RecordsForTag.d.ts +31 -0
  42. package/dist/es/es2018/types/src/generated/types/TagCategoryListRepresentation.d.ts +29 -0
  43. package/dist/es/es2018/types/src/generated/types/TagCategoryRepresentation.d.ts +34 -0
  44. package/dist/es/es2018/types/src/generated/types/TagCategoryWithParentRepresentation.d.ts +43 -0
  45. package/dist/es/es2018/types/src/generated/types/TagCreatedOutputRepresentation.d.ts +31 -0
  46. package/dist/es/es2018/types/src/generated/types/TagRecordAssignment.d.ts +37 -0
  47. package/dist/es/es2018/types/src/generated/types/TagRecordAssignmentCollectionRepresentation.d.ts +29 -0
  48. package/dist/es/es2018/types/src/generated/types/TagsForRecord.d.ts +31 -0
  49. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  50. package/package.json +75 -0
  51. package/sfdc/index.d.ts +1 -0
  52. package/sfdc/index.js +1775 -0
  53. package/src/raml/api.raml +659 -0
  54. package/src/raml/luvio.raml +53 -0
package/sfdc/index.js ADDED
@@ -0,0 +1,1775 @@
1
+ /**
2
+ * Copyright (c) 2022, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+
7
+ /*
8
+ * ATTENTION!
9
+ * THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
10
+ * If you would like to contribute to LDS, please follow the steps outlined in the git repo.
11
+ * Any changes made to this file in p4 will be automatically overwritten.
12
+ * *******************************************************************************************
13
+ */
14
+ /* proxy-compat-disable */
15
+ import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
+ import { withDefaultLuvio } from 'force/ldsEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$6, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$6 } from 'force/luvioEngine';
18
+
19
+ const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
+ const { keys: ObjectKeys, create: ObjectCreate } = Object;
21
+ const { isArray: ArrayIsArray$1 } = Array;
22
+ /**
23
+ * Validates an adapter config is well-formed.
24
+ * @param config The config to validate.
25
+ * @param adapter The adapter validation configuration.
26
+ * @param oneOf The keys the config must contain at least one of.
27
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
28
+ */
29
+ function validateConfig(config, adapter, oneOf) {
30
+ const { displayName } = adapter;
31
+ const { required, optional, unsupported } = adapter.parameters;
32
+ if (config === undefined ||
33
+ required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
34
+ throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
35
+ }
36
+ if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
37
+ throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
38
+ }
39
+ if (unsupported !== undefined &&
40
+ unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
41
+ throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
42
+ }
43
+ const supported = required.concat(optional);
44
+ if (ObjectKeys(config).some(key => !supported.includes(key))) {
45
+ throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
46
+ }
47
+ }
48
+ function untrustedIsObject(untrusted) {
49
+ return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
50
+ }
51
+ function areRequiredParametersPresent(config, configPropertyNames) {
52
+ return configPropertyNames.parameters.required.every(req => req in config);
53
+ }
54
+ const snapshotRefreshOptions = {
55
+ overrides: {
56
+ headers: {
57
+ 'Cache-Control': 'no-cache',
58
+ },
59
+ }
60
+ };
61
+ function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
62
+ return {
63
+ name,
64
+ required,
65
+ resourceType,
66
+ typeCheckShape,
67
+ isArrayShape,
68
+ coerceFn,
69
+ };
70
+ }
71
+ function buildAdapterValidationConfig(displayName, paramsMeta) {
72
+ const required = paramsMeta.filter(p => p.required).map(p => p.name);
73
+ const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
74
+ return {
75
+ displayName,
76
+ parameters: {
77
+ required,
78
+ optional,
79
+ }
80
+ };
81
+ }
82
+ const keyPrefix = 'interesttagging';
83
+
84
+ const { isArray: ArrayIsArray } = Array;
85
+ const { stringify: JSONStringify } = JSON;
86
+ function equalsArray(a, b, equalsItem) {
87
+ const aLength = a.length;
88
+ const bLength = b.length;
89
+ if (aLength !== bLength) {
90
+ return false;
91
+ }
92
+ for (let i = 0; i < aLength; i++) {
93
+ if (equalsItem(a[i], b[i]) === false) {
94
+ return false;
95
+ }
96
+ }
97
+ return true;
98
+ }
99
+ function createLink(ref) {
100
+ return {
101
+ __ref: serializeStructuredKey(ref),
102
+ };
103
+ }
104
+
105
+ const TTL$2 = 10000;
106
+ const VERSION$6 = "d1e3c71d06accea875e9f0c6f41bd7bd";
107
+ function validate$d(obj, path = 'InterestTagAssignmentOutputRepresentation') {
108
+ const v_error = (() => {
109
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
110
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
111
+ }
112
+ const obj_errors = obj.errors;
113
+ const path_errors = path + '.errors';
114
+ if (!ArrayIsArray(obj_errors)) {
115
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
116
+ }
117
+ for (let i = 0; i < obj_errors.length; i++) {
118
+ const obj_errors_item = obj_errors[i];
119
+ const path_errors_item = path_errors + '[' + i + ']';
120
+ if (typeof obj_errors_item !== 'string') {
121
+ return new TypeError('Expected "string" but received "' + typeof obj_errors_item + '" (at "' + path_errors_item + '")');
122
+ }
123
+ }
124
+ const obj_isCreated = obj.isCreated;
125
+ const path_isCreated = path + '.isCreated';
126
+ if (typeof obj_isCreated !== 'boolean') {
127
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isCreated + '" (at "' + path_isCreated + '")');
128
+ }
129
+ const obj_isSuccess = obj.isSuccess;
130
+ const path_isSuccess = path + '.isSuccess';
131
+ if (typeof obj_isSuccess !== 'boolean') {
132
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
133
+ }
134
+ })();
135
+ return v_error === undefined ? null : v_error;
136
+ }
137
+ const RepresentationType$4 = 'InterestTagAssignmentOutputRepresentation';
138
+ function keyBuilder$9(luvio, config) {
139
+ return keyPrefix + '::' + RepresentationType$4 + ':' + '[' + config.errors.join(',') + ']' + ':' + config.isCreated + ':' + config.isSuccess;
140
+ }
141
+ function keyBuilderFromType$1(luvio, object) {
142
+ const keyParams = {
143
+ errors: object.errors,
144
+ isCreated: object.isCreated,
145
+ isSuccess: object.isSuccess
146
+ };
147
+ return keyBuilder$9(luvio, keyParams);
148
+ }
149
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
150
+ return input;
151
+ }
152
+ const select$c = function InterestTagAssignmentOutputRepresentationSelect() {
153
+ return {
154
+ kind: 'Fragment',
155
+ version: VERSION$6,
156
+ private: [],
157
+ opaque: true
158
+ };
159
+ };
160
+ function equals$6(existing, incoming) {
161
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
162
+ return false;
163
+ }
164
+ return true;
165
+ }
166
+ const ingest$4 = function InterestTagAssignmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
167
+ if (process.env.NODE_ENV !== 'production') {
168
+ const validateError = validate$d(input);
169
+ if (validateError !== null) {
170
+ throw validateError;
171
+ }
172
+ }
173
+ const key = keyBuilderFromType$1(luvio, input);
174
+ const ttlToUse = TTL$2;
175
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "interesttagging", VERSION$6, RepresentationType$4, equals$6);
176
+ return createLink(key);
177
+ };
178
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
179
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
180
+ const rootKey = keyBuilderFromType$1(luvio, input);
181
+ rootKeySet.set(rootKey, {
182
+ namespace: keyPrefix,
183
+ representationName: RepresentationType$4,
184
+ mergeable: false
185
+ });
186
+ }
187
+
188
+ function select$b(luvio, params) {
189
+ return select$c();
190
+ }
191
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
192
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
193
+ }
194
+ function ingestSuccess$5(luvio, resourceParams, response) {
195
+ const { body } = response;
196
+ const key = keyBuilderFromType$1(luvio, body);
197
+ luvio.storeIngest(key, ingest$4, body);
198
+ const snapshot = luvio.storeLookup({
199
+ recordId: key,
200
+ node: select$b(),
201
+ variables: {},
202
+ });
203
+ if (process.env.NODE_ENV !== 'production') {
204
+ if (snapshot.state !== 'Fulfilled') {
205
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
206
+ }
207
+ }
208
+ deepFreeze(snapshot.data);
209
+ return snapshot;
210
+ }
211
+ function createResourceRequest$5(config) {
212
+ const headers = {};
213
+ return {
214
+ baseUri: '/services/data/v66.0',
215
+ basePath: '/connect/interest-tags/assignments',
216
+ method: 'post',
217
+ body: config.body,
218
+ urlParams: {},
219
+ queryParams: {},
220
+ headers,
221
+ priority: 'normal',
222
+ };
223
+ }
224
+
225
+ const adapterName$5 = 'createInterestTagEntityAssignment';
226
+ const createInterestTagEntityAssignment_ConfigPropertyMetadata = [
227
+ generateParamConfigMetadata('recordsForTag', true, 2 /* Body */, 4 /* Unsupported */),
228
+ generateParamConfigMetadata('tagsForRecord', true, 2 /* Body */, 4 /* Unsupported */),
229
+ ];
230
+ const createInterestTagEntityAssignment_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createInterestTagEntityAssignment_ConfigPropertyMetadata);
231
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createInterestTagEntityAssignment_ConfigPropertyMetadata);
232
+ function typeCheckConfig$5(untrustedConfig) {
233
+ const config = {};
234
+ const untrustedConfig_recordsForTag = untrustedConfig.recordsForTag;
235
+ if (untrustedIsObject(untrustedConfig_recordsForTag)) {
236
+ const untrustedConfig_recordsForTag_object = {};
237
+ const untrustedConfig_recordsForTag_TagId = untrustedConfig_recordsForTag.TagId;
238
+ if (typeof untrustedConfig_recordsForTag_TagId === 'string') {
239
+ untrustedConfig_recordsForTag_object.TagId = untrustedConfig_recordsForTag_TagId;
240
+ }
241
+ const untrustedConfig_recordsForTag_RecordIds = untrustedConfig_recordsForTag.RecordIds;
242
+ if (ArrayIsArray$1(untrustedConfig_recordsForTag_RecordIds)) {
243
+ const untrustedConfig_recordsForTag_RecordIds_array = [];
244
+ for (let i = 0, arrayLength = untrustedConfig_recordsForTag_RecordIds.length; i < arrayLength; i++) {
245
+ const untrustedConfig_recordsForTag_RecordIds_item = untrustedConfig_recordsForTag_RecordIds[i];
246
+ if (typeof untrustedConfig_recordsForTag_RecordIds_item === 'string') {
247
+ untrustedConfig_recordsForTag_RecordIds_array.push(untrustedConfig_recordsForTag_RecordIds_item);
248
+ }
249
+ }
250
+ untrustedConfig_recordsForTag_object.RecordIds = untrustedConfig_recordsForTag_RecordIds_array;
251
+ }
252
+ if (untrustedConfig_recordsForTag_object !== undefined && Object.keys(untrustedConfig_recordsForTag_object).length >= 0) {
253
+ config.recordsForTag = untrustedConfig_recordsForTag_object;
254
+ }
255
+ }
256
+ const untrustedConfig_tagsForRecord = untrustedConfig.tagsForRecord;
257
+ if (untrustedIsObject(untrustedConfig_tagsForRecord)) {
258
+ const untrustedConfig_tagsForRecord_object = {};
259
+ const untrustedConfig_tagsForRecord_RecordId = untrustedConfig_tagsForRecord.RecordId;
260
+ if (typeof untrustedConfig_tagsForRecord_RecordId === 'string') {
261
+ untrustedConfig_tagsForRecord_object.RecordId = untrustedConfig_tagsForRecord_RecordId;
262
+ }
263
+ const untrustedConfig_tagsForRecord_TagIds = untrustedConfig_tagsForRecord.TagIds;
264
+ if (ArrayIsArray$1(untrustedConfig_tagsForRecord_TagIds)) {
265
+ const untrustedConfig_tagsForRecord_TagIds_array = [];
266
+ for (let i = 0, arrayLength = untrustedConfig_tagsForRecord_TagIds.length; i < arrayLength; i++) {
267
+ const untrustedConfig_tagsForRecord_TagIds_item = untrustedConfig_tagsForRecord_TagIds[i];
268
+ if (typeof untrustedConfig_tagsForRecord_TagIds_item === 'string') {
269
+ untrustedConfig_tagsForRecord_TagIds_array.push(untrustedConfig_tagsForRecord_TagIds_item);
270
+ }
271
+ }
272
+ untrustedConfig_tagsForRecord_object.TagIds = untrustedConfig_tagsForRecord_TagIds_array;
273
+ }
274
+ if (untrustedConfig_tagsForRecord_object !== undefined && Object.keys(untrustedConfig_tagsForRecord_object).length >= 0) {
275
+ config.tagsForRecord = untrustedConfig_tagsForRecord_object;
276
+ }
277
+ }
278
+ return config;
279
+ }
280
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
281
+ if (!untrustedIsObject(untrustedConfig)) {
282
+ return null;
283
+ }
284
+ if (process.env.NODE_ENV !== 'production') {
285
+ validateConfig(untrustedConfig, configPropertyNames);
286
+ }
287
+ const config = typeCheckConfig$5(untrustedConfig);
288
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
289
+ return null;
290
+ }
291
+ return config;
292
+ }
293
+ function buildNetworkSnapshot$5(luvio, config, options) {
294
+ const resourceParams = createResourceParams$5(config);
295
+ const request = createResourceRequest$5(resourceParams);
296
+ return luvio.dispatchResourceRequest(request, options)
297
+ .then((response) => {
298
+ return luvio.handleSuccessResponse(() => {
299
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
300
+ return luvio.storeBroadcast().then(() => snapshot);
301
+ }, () => {
302
+ const cache = new StoreKeyMap();
303
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
304
+ return cache;
305
+ });
306
+ }, (response) => {
307
+ deepFreeze(response);
308
+ throw response;
309
+ });
310
+ }
311
+ const createInterestTagEntityAssignmentAdapterFactory = (luvio) => {
312
+ return function createInterestTagEntityAssignment(untrustedConfig) {
313
+ const config = validateAdapterConfig$5(untrustedConfig, createInterestTagEntityAssignment_ConfigPropertyNames);
314
+ // Invalid or incomplete config
315
+ if (config === null) {
316
+ throw new Error('Invalid config for "createInterestTagEntityAssignment"');
317
+ }
318
+ return buildNetworkSnapshot$5(luvio, config);
319
+ };
320
+ };
321
+
322
+ function validate$c(obj, path = 'InterestTagItemInputRepresentation') {
323
+ const v_error = (() => {
324
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
325
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
326
+ }
327
+ if (obj.recordId !== undefined) {
328
+ const obj_recordId = obj.recordId;
329
+ const path_recordId = path + '.recordId';
330
+ if (typeof obj_recordId !== 'string') {
331
+ return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
332
+ }
333
+ }
334
+ if (obj.tagDescription !== undefined) {
335
+ const obj_tagDescription = obj.tagDescription;
336
+ const path_tagDescription = path + '.tagDescription';
337
+ if (typeof obj_tagDescription !== 'string') {
338
+ return new TypeError('Expected "string" but received "' + typeof obj_tagDescription + '" (at "' + path_tagDescription + '")');
339
+ }
340
+ }
341
+ if (obj.tagId !== undefined) {
342
+ const obj_tagId = obj.tagId;
343
+ const path_tagId = path + '.tagId';
344
+ if (typeof obj_tagId !== 'string') {
345
+ return new TypeError('Expected "string" but received "' + typeof obj_tagId + '" (at "' + path_tagId + '")');
346
+ }
347
+ }
348
+ if (obj.tagName !== undefined) {
349
+ const obj_tagName = obj.tagName;
350
+ const path_tagName = path + '.tagName';
351
+ if (typeof obj_tagName !== 'string') {
352
+ return new TypeError('Expected "string" but received "' + typeof obj_tagName + '" (at "' + path_tagName + '")');
353
+ }
354
+ }
355
+ })();
356
+ return v_error === undefined ? null : v_error;
357
+ }
358
+
359
+ function validate$b(obj, path = 'InterestTagAndCategoryItemInputRepresentation') {
360
+ const v_error = (() => {
361
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
362
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
363
+ }
364
+ if (obj.categoryDescription !== undefined) {
365
+ const obj_categoryDescription = obj.categoryDescription;
366
+ const path_categoryDescription = path + '.categoryDescription';
367
+ if (typeof obj_categoryDescription !== 'string') {
368
+ return new TypeError('Expected "string" but received "' + typeof obj_categoryDescription + '" (at "' + path_categoryDescription + '")');
369
+ }
370
+ }
371
+ if (obj.categoryIcon !== undefined) {
372
+ const obj_categoryIcon = obj.categoryIcon;
373
+ const path_categoryIcon = path + '.categoryIcon';
374
+ if (typeof obj_categoryIcon !== 'string') {
375
+ return new TypeError('Expected "string" but received "' + typeof obj_categoryIcon + '" (at "' + path_categoryIcon + '")');
376
+ }
377
+ }
378
+ if (obj.categoryId !== undefined) {
379
+ const obj_categoryId = obj.categoryId;
380
+ const path_categoryId = path + '.categoryId';
381
+ if (typeof obj_categoryId !== 'string') {
382
+ return new TypeError('Expected "string" but received "' + typeof obj_categoryId + '" (at "' + path_categoryId + '")');
383
+ }
384
+ }
385
+ if (obj.categoryName !== undefined) {
386
+ const obj_categoryName = obj.categoryName;
387
+ const path_categoryName = path + '.categoryName';
388
+ if (typeof obj_categoryName !== 'string') {
389
+ return new TypeError('Expected "string" but received "' + typeof obj_categoryName + '" (at "' + path_categoryName + '")');
390
+ }
391
+ }
392
+ const obj_tags = obj.tags;
393
+ const path_tags = path + '.tags';
394
+ if (!ArrayIsArray(obj_tags)) {
395
+ return new TypeError('Expected "array" but received "' + typeof obj_tags + '" (at "' + path_tags + '")');
396
+ }
397
+ for (let i = 0; i < obj_tags.length; i++) {
398
+ const obj_tags_item = obj_tags[i];
399
+ const path_tags_item = path_tags + '[' + i + ']';
400
+ const referencepath_tags_itemValidationError = validate$c(obj_tags_item, path_tags_item);
401
+ if (referencepath_tags_itemValidationError !== null) {
402
+ let message = 'Object doesn\'t match InterestTagItemInputRepresentation (at "' + path_tags_item + '")\n';
403
+ message += referencepath_tags_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
404
+ return new TypeError(message);
405
+ }
406
+ }
407
+ })();
408
+ return v_error === undefined ? null : v_error;
409
+ }
410
+
411
+ function validate$a(obj, path = 'CategoryCreatedResult') {
412
+ const v_error = (() => {
413
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
414
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
415
+ }
416
+ const obj_id = obj.id;
417
+ const path_id = path + '.id';
418
+ if (typeof obj_id !== 'string') {
419
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
420
+ }
421
+ const obj_name = obj.name;
422
+ const path_name = path + '.name';
423
+ if (typeof obj_name !== 'string') {
424
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
425
+ }
426
+ })();
427
+ return v_error === undefined ? null : v_error;
428
+ }
429
+
430
+ function validate$9(obj, path = 'InterestTagAndCategoryErrorOutputRepresentation') {
431
+ const v_error = (() => {
432
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
433
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
434
+ }
435
+ const obj_message = obj.message;
436
+ const path_message = path + '.message';
437
+ if (typeof obj_message !== 'string') {
438
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
439
+ }
440
+ const obj_type = obj.type;
441
+ const path_type = path + '.type';
442
+ if (typeof obj_type !== 'string') {
443
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
444
+ }
445
+ })();
446
+ return v_error === undefined ? null : v_error;
447
+ }
448
+
449
+ function validate$8(obj, path = 'TagCreatedOutputRepresentation') {
450
+ const v_error = (() => {
451
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
452
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
453
+ }
454
+ const obj_id = obj.id;
455
+ const path_id = path + '.id';
456
+ if (typeof obj_id !== 'string') {
457
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
458
+ }
459
+ const obj_name = obj.name;
460
+ const path_name = path + '.name';
461
+ if (typeof obj_name !== 'string') {
462
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
463
+ }
464
+ })();
465
+ return v_error === undefined ? null : v_error;
466
+ }
467
+
468
+ const TTL$1 = 10000;
469
+ const VERSION$5 = "15a824d2c5496eabd6c3f95e8bd0da38";
470
+ function validate$7(obj, path = 'InterestTagAndCategoryCreateOutputRepresentation') {
471
+ const v_error = (() => {
472
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
473
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
474
+ }
475
+ const obj_categories = obj.categories;
476
+ const path_categories = path + '.categories';
477
+ if (!ArrayIsArray(obj_categories)) {
478
+ return new TypeError('Expected "array" but received "' + typeof obj_categories + '" (at "' + path_categories + '")');
479
+ }
480
+ for (let i = 0; i < obj_categories.length; i++) {
481
+ const obj_categories_item = obj_categories[i];
482
+ const path_categories_item = path_categories + '[' + i + ']';
483
+ const referencepath_categories_itemValidationError = validate$a(obj_categories_item, path_categories_item);
484
+ if (referencepath_categories_itemValidationError !== null) {
485
+ let message = 'Object doesn\'t match CategoryCreatedResult (at "' + path_categories_item + '")\n';
486
+ message += referencepath_categories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
487
+ return new TypeError(message);
488
+ }
489
+ }
490
+ const obj_errors = obj.errors;
491
+ const path_errors = path + '.errors';
492
+ if (!ArrayIsArray(obj_errors)) {
493
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
494
+ }
495
+ for (let i = 0; i < obj_errors.length; i++) {
496
+ const obj_errors_item = obj_errors[i];
497
+ const path_errors_item = path_errors + '[' + i + ']';
498
+ const referencepath_errors_itemValidationError = validate$9(obj_errors_item, path_errors_item);
499
+ if (referencepath_errors_itemValidationError !== null) {
500
+ let message = 'Object doesn\'t match InterestTagAndCategoryErrorOutputRepresentation (at "' + path_errors_item + '")\n';
501
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
502
+ return new TypeError(message);
503
+ }
504
+ }
505
+ const obj_isSuccess = obj.isSuccess;
506
+ const path_isSuccess = path + '.isSuccess';
507
+ if (typeof obj_isSuccess !== 'boolean') {
508
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
509
+ }
510
+ const obj_tags = obj.tags;
511
+ const path_tags = path + '.tags';
512
+ if (!ArrayIsArray(obj_tags)) {
513
+ return new TypeError('Expected "array" but received "' + typeof obj_tags + '" (at "' + path_tags + '")');
514
+ }
515
+ for (let i = 0; i < obj_tags.length; i++) {
516
+ const obj_tags_item = obj_tags[i];
517
+ const path_tags_item = path_tags + '[' + i + ']';
518
+ const referencepath_tags_itemValidationError = validate$8(obj_tags_item, path_tags_item);
519
+ if (referencepath_tags_itemValidationError !== null) {
520
+ let message = 'Object doesn\'t match TagCreatedOutputRepresentation (at "' + path_tags_item + '")\n';
521
+ message += referencepath_tags_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
522
+ return new TypeError(message);
523
+ }
524
+ }
525
+ })();
526
+ return v_error === undefined ? null : v_error;
527
+ }
528
+ const RepresentationType$3 = 'InterestTagAndCategoryCreateOutputRepresentation';
529
+ function keyBuilder$8(luvio, config) {
530
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.isSuccess;
531
+ }
532
+ function keyBuilderFromType(luvio, object) {
533
+ const keyParams = {
534
+ isSuccess: object.isSuccess
535
+ };
536
+ return keyBuilder$8(luvio, keyParams);
537
+ }
538
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
539
+ return input;
540
+ }
541
+ const select$a = function InterestTagAndCategoryCreateOutputRepresentationSelect() {
542
+ return {
543
+ kind: 'Fragment',
544
+ version: VERSION$5,
545
+ private: [],
546
+ opaque: true
547
+ };
548
+ };
549
+ function equals$5(existing, incoming) {
550
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
551
+ return false;
552
+ }
553
+ return true;
554
+ }
555
+ const ingest$3 = function InterestTagAndCategoryCreateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
556
+ if (process.env.NODE_ENV !== 'production') {
557
+ const validateError = validate$7(input);
558
+ if (validateError !== null) {
559
+ throw validateError;
560
+ }
561
+ }
562
+ const key = keyBuilderFromType(luvio, input);
563
+ const ttlToUse = TTL$1;
564
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "interesttagging", VERSION$5, RepresentationType$3, equals$5);
565
+ return createLink(key);
566
+ };
567
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
568
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
569
+ const rootKey = keyBuilderFromType(luvio, input);
570
+ rootKeySet.set(rootKey, {
571
+ namespace: keyPrefix,
572
+ representationName: RepresentationType$3,
573
+ mergeable: false
574
+ });
575
+ }
576
+
577
+ function select$9(luvio, params) {
578
+ return select$a();
579
+ }
580
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
581
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
582
+ }
583
+ function ingestSuccess$4(luvio, resourceParams, response) {
584
+ const { body } = response;
585
+ const key = keyBuilderFromType(luvio, body);
586
+ luvio.storeIngest(key, ingest$3, body);
587
+ const snapshot = luvio.storeLookup({
588
+ recordId: key,
589
+ node: select$9(),
590
+ variables: {},
591
+ });
592
+ if (process.env.NODE_ENV !== 'production') {
593
+ if (snapshot.state !== 'Fulfilled') {
594
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
595
+ }
596
+ }
597
+ deepFreeze(snapshot.data);
598
+ return snapshot;
599
+ }
600
+ function createResourceRequest$4(config) {
601
+ const headers = {};
602
+ return {
603
+ baseUri: '/services/data/v66.0',
604
+ basePath: '/connect/interest-tags/tags-and-categories',
605
+ method: 'post',
606
+ body: config.body,
607
+ urlParams: {},
608
+ queryParams: {},
609
+ headers,
610
+ priority: 'normal',
611
+ };
612
+ }
613
+
614
+ const adapterName$4 = 'createInterestTagsAndCategories';
615
+ const createInterestTagsAndCategories_ConfigPropertyMetadata = [
616
+ generateParamConfigMetadata('interestTags', true, 2 /* Body */, 4 /* Unsupported */, true),
617
+ ];
618
+ const createInterestTagsAndCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createInterestTagsAndCategories_ConfigPropertyMetadata);
619
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(createInterestTagsAndCategories_ConfigPropertyMetadata);
620
+ function typeCheckConfig$4(untrustedConfig) {
621
+ const config = {};
622
+ const untrustedConfig_interestTags = untrustedConfig.interestTags;
623
+ if (ArrayIsArray$1(untrustedConfig_interestTags)) {
624
+ const untrustedConfig_interestTags_array = [];
625
+ for (let i = 0, arrayLength = untrustedConfig_interestTags.length; i < arrayLength; i++) {
626
+ const untrustedConfig_interestTags_item = untrustedConfig_interestTags[i];
627
+ const referenceInterestTagAndCategoryItemInputRepresentationValidationError = validate$b(untrustedConfig_interestTags_item);
628
+ if (referenceInterestTagAndCategoryItemInputRepresentationValidationError === null) {
629
+ untrustedConfig_interestTags_array.push(untrustedConfig_interestTags_item);
630
+ }
631
+ }
632
+ config.interestTags = untrustedConfig_interestTags_array;
633
+ }
634
+ return config;
635
+ }
636
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
637
+ if (!untrustedIsObject(untrustedConfig)) {
638
+ return null;
639
+ }
640
+ if (process.env.NODE_ENV !== 'production') {
641
+ validateConfig(untrustedConfig, configPropertyNames);
642
+ }
643
+ const config = typeCheckConfig$4(untrustedConfig);
644
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
645
+ return null;
646
+ }
647
+ return config;
648
+ }
649
+ function buildNetworkSnapshot$4(luvio, config, options) {
650
+ const resourceParams = createResourceParams$4(config);
651
+ const request = createResourceRequest$4(resourceParams);
652
+ return luvio.dispatchResourceRequest(request, options)
653
+ .then((response) => {
654
+ return luvio.handleSuccessResponse(() => {
655
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
656
+ return luvio.storeBroadcast().then(() => snapshot);
657
+ }, () => {
658
+ const cache = new StoreKeyMap();
659
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
660
+ return cache;
661
+ });
662
+ }, (response) => {
663
+ deepFreeze(response);
664
+ throw response;
665
+ });
666
+ }
667
+ const createInterestTagsAndCategoriesAdapterFactory = (luvio) => {
668
+ return function createInterestTagsAndCategories(untrustedConfig) {
669
+ const config = validateAdapterConfig$4(untrustedConfig, createInterestTagsAndCategories_ConfigPropertyNames);
670
+ // Invalid or incomplete config
671
+ if (config === null) {
672
+ throw new Error('Invalid config for "createInterestTagsAndCategories"');
673
+ }
674
+ return buildNetworkSnapshot$4(luvio, config);
675
+ };
676
+ };
677
+
678
+ const VERSION$4 = "bead7737d6de24db2005f390553ce4bf";
679
+ function validate$6(obj, path = 'TagRecordAssignment') {
680
+ const v_error = (() => {
681
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
682
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
683
+ }
684
+ const obj_assignmentId = obj.assignmentId;
685
+ const path_assignmentId = path + '.assignmentId';
686
+ if (typeof obj_assignmentId !== 'string') {
687
+ return new TypeError('Expected "string" but received "' + typeof obj_assignmentId + '" (at "' + path_assignmentId + '")');
688
+ }
689
+ const obj_objectName = obj.objectName;
690
+ const path_objectName = path + '.objectName';
691
+ if (typeof obj_objectName !== 'string') {
692
+ return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
693
+ }
694
+ const obj_recordId = obj.recordId;
695
+ const path_recordId = path + '.recordId';
696
+ if (typeof obj_recordId !== 'string') {
697
+ return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
698
+ }
699
+ const obj_recordName = obj.recordName;
700
+ const path_recordName = path + '.recordName';
701
+ if (typeof obj_recordName !== 'string') {
702
+ return new TypeError('Expected "string" but received "' + typeof obj_recordName + '" (at "' + path_recordName + '")');
703
+ }
704
+ })();
705
+ return v_error === undefined ? null : v_error;
706
+ }
707
+ const select$8 = function TagRecordAssignmentSelect() {
708
+ return {
709
+ kind: 'Fragment',
710
+ version: VERSION$4,
711
+ private: [],
712
+ selections: [
713
+ {
714
+ name: 'assignmentId',
715
+ kind: 'Scalar'
716
+ },
717
+ {
718
+ name: 'objectName',
719
+ kind: 'Scalar'
720
+ },
721
+ {
722
+ name: 'recordId',
723
+ kind: 'Scalar'
724
+ },
725
+ {
726
+ name: 'recordName',
727
+ kind: 'Scalar'
728
+ }
729
+ ]
730
+ };
731
+ };
732
+ function equals$4(existing, incoming) {
733
+ const existing_assignmentId = existing.assignmentId;
734
+ const incoming_assignmentId = incoming.assignmentId;
735
+ if (!(existing_assignmentId === incoming_assignmentId)) {
736
+ return false;
737
+ }
738
+ const existing_objectName = existing.objectName;
739
+ const incoming_objectName = incoming.objectName;
740
+ if (!(existing_objectName === incoming_objectName)) {
741
+ return false;
742
+ }
743
+ const existing_recordId = existing.recordId;
744
+ const incoming_recordId = incoming.recordId;
745
+ if (!(existing_recordId === incoming_recordId)) {
746
+ return false;
747
+ }
748
+ const existing_recordName = existing.recordName;
749
+ const incoming_recordName = incoming.recordName;
750
+ if (!(existing_recordName === incoming_recordName)) {
751
+ return false;
752
+ }
753
+ return true;
754
+ }
755
+
756
+ const VERSION$3 = "2c249834bed42974b83ef01b3abacb2c";
757
+ function validate$5(obj, path = 'TagRecordAssignmentCollectionRepresentation') {
758
+ const v_error = (() => {
759
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
760
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
761
+ }
762
+ const obj_assignments = obj.assignments;
763
+ const path_assignments = path + '.assignments';
764
+ if (!ArrayIsArray(obj_assignments)) {
765
+ return new TypeError('Expected "array" but received "' + typeof obj_assignments + '" (at "' + path_assignments + '")');
766
+ }
767
+ for (let i = 0; i < obj_assignments.length; i++) {
768
+ const obj_assignments_item = obj_assignments[i];
769
+ const path_assignments_item = path_assignments + '[' + i + ']';
770
+ const referencepath_assignments_itemValidationError = validate$6(obj_assignments_item, path_assignments_item);
771
+ if (referencepath_assignments_itemValidationError !== null) {
772
+ let message = 'Object doesn\'t match TagRecordAssignment (at "' + path_assignments_item + '")\n';
773
+ message += referencepath_assignments_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
774
+ return new TypeError(message);
775
+ }
776
+ }
777
+ })();
778
+ return v_error === undefined ? null : v_error;
779
+ }
780
+ const RepresentationType$2 = 'TagRecordAssignmentCollectionRepresentation';
781
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
782
+ return input;
783
+ }
784
+ const select$7 = function TagRecordAssignmentCollectionRepresentationSelect() {
785
+ const { selections: TagRecordAssignment__selections, opaque: TagRecordAssignment__opaque, } = select$8();
786
+ return {
787
+ kind: 'Fragment',
788
+ version: VERSION$3,
789
+ private: [],
790
+ selections: [
791
+ {
792
+ name: 'assignments',
793
+ kind: 'Object',
794
+ plural: true,
795
+ selections: TagRecordAssignment__selections
796
+ }
797
+ ]
798
+ };
799
+ };
800
+ function equals$3(existing, incoming) {
801
+ const existing_assignments = existing.assignments;
802
+ const incoming_assignments = incoming.assignments;
803
+ const equals_assignments_items = equalsArray(existing_assignments, incoming_assignments, (existing_assignments_item, incoming_assignments_item) => {
804
+ if (!(equals$4(existing_assignments_item, incoming_assignments_item))) {
805
+ return false;
806
+ }
807
+ });
808
+ if (equals_assignments_items === false) {
809
+ return false;
810
+ }
811
+ return true;
812
+ }
813
+ const ingest$2 = function TagRecordAssignmentCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
814
+ if (process.env.NODE_ENV !== 'production') {
815
+ const validateError = validate$5(input);
816
+ if (validateError !== null) {
817
+ throw validateError;
818
+ }
819
+ }
820
+ const key = path.fullPath;
821
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
822
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "interesttagging", VERSION$3, RepresentationType$2, equals$3);
823
+ return createLink(key);
824
+ };
825
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
826
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
827
+ const rootKey = fullPathFactory();
828
+ rootKeySet.set(rootKey, {
829
+ namespace: keyPrefix,
830
+ representationName: RepresentationType$2,
831
+ mergeable: false
832
+ });
833
+ }
834
+
835
+ function select$6(luvio, params) {
836
+ return select$7();
837
+ }
838
+ function keyBuilder$7(luvio, params) {
839
+ return keyPrefix + '::TagRecordAssignmentCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sort:' + params.queryParams.sort + ',' + 'tagId:' + params.urlParams.tagId + ')';
840
+ }
841
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
842
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
843
+ }
844
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
845
+ const { body } = response;
846
+ const key = keyBuilder$7(luvio, resourceParams);
847
+ luvio.storeIngest(key, ingest$2, body);
848
+ const snapshot = luvio.storeLookup({
849
+ recordId: key,
850
+ node: select$6(),
851
+ variables: {},
852
+ }, snapshotRefresh);
853
+ if (process.env.NODE_ENV !== 'production') {
854
+ if (snapshot.state !== 'Fulfilled') {
855
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
856
+ }
857
+ }
858
+ deepFreeze(snapshot.data);
859
+ return snapshot;
860
+ }
861
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
862
+ const key = keyBuilder$7(luvio, params);
863
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
864
+ luvio.storeIngestError(key, errorSnapshot);
865
+ return errorSnapshot;
866
+ }
867
+ function createResourceRequest$3(config) {
868
+ const headers = {};
869
+ return {
870
+ baseUri: '/services/data/v66.0',
871
+ basePath: '/connect/interest-tags/assignments/tag/' + config.urlParams.tagId + '',
872
+ method: 'get',
873
+ body: null,
874
+ urlParams: config.urlParams,
875
+ queryParams: config.queryParams,
876
+ headers,
877
+ priority: 'normal',
878
+ };
879
+ }
880
+
881
+ const adapterName$3 = 'getInterestTagEntityAssignments';
882
+ const getInterestTagEntityAssignments_ConfigPropertyMetadata = [
883
+ generateParamConfigMetadata('tagId', true, 0 /* UrlParameter */, 0 /* String */),
884
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
885
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
886
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
887
+ generateParamConfigMetadata('sort', false, 1 /* QueryParameter */, 0 /* String */),
888
+ ];
889
+ const getInterestTagEntityAssignments_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getInterestTagEntityAssignments_ConfigPropertyMetadata);
890
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(getInterestTagEntityAssignments_ConfigPropertyMetadata);
891
+ function keyBuilder$6(luvio, config) {
892
+ const resourceParams = createResourceParams$3(config);
893
+ return keyBuilder$7(luvio, resourceParams);
894
+ }
895
+ function typeCheckConfig$3(untrustedConfig) {
896
+ const config = {};
897
+ typeCheckConfig$6(untrustedConfig, config, getInterestTagEntityAssignments_ConfigPropertyMetadata);
898
+ return config;
899
+ }
900
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
901
+ if (!untrustedIsObject(untrustedConfig)) {
902
+ return null;
903
+ }
904
+ if (process.env.NODE_ENV !== 'production') {
905
+ validateConfig(untrustedConfig, configPropertyNames);
906
+ }
907
+ const config = typeCheckConfig$3(untrustedConfig);
908
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
909
+ return null;
910
+ }
911
+ return config;
912
+ }
913
+ function adapterFragment$3(luvio, config) {
914
+ createResourceParams$3(config);
915
+ return select$6();
916
+ }
917
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
918
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
919
+ config,
920
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
921
+ });
922
+ return luvio.storeBroadcast().then(() => snapshot);
923
+ }
924
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
925
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
926
+ config,
927
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
928
+ });
929
+ return luvio.storeBroadcast().then(() => snapshot);
930
+ }
931
+ function buildNetworkSnapshot$3(luvio, config, options) {
932
+ const resourceParams = createResourceParams$3(config);
933
+ const request = createResourceRequest$3(resourceParams);
934
+ return luvio.dispatchResourceRequest(request, options)
935
+ .then((response) => {
936
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
937
+ const cache = new StoreKeyMap();
938
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
939
+ return cache;
940
+ });
941
+ }, (response) => {
942
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
943
+ });
944
+ }
945
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
946
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
947
+ }
948
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
949
+ const { luvio, config } = context;
950
+ const selector = {
951
+ recordId: keyBuilder$6(luvio, config),
952
+ node: adapterFragment$3(luvio, config),
953
+ variables: {},
954
+ };
955
+ const cacheSnapshot = storeLookup(selector, {
956
+ config,
957
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
958
+ });
959
+ return cacheSnapshot;
960
+ }
961
+ const getInterestTagEntityAssignmentsAdapterFactory = (luvio) => function interesttagging__getInterestTagEntityAssignments(untrustedConfig, requestContext) {
962
+ const config = validateAdapterConfig$3(untrustedConfig, getInterestTagEntityAssignments_ConfigPropertyNames);
963
+ // Invalid or incomplete config
964
+ if (config === null) {
965
+ return null;
966
+ }
967
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
968
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
969
+ };
970
+
971
+ const VERSION$2 = "2dcce5f2b607682447018f5b9db9cd4d";
972
+ function validate$4(obj, path = 'TagCategoryWithParentRepresentation') {
973
+ const v_error = (() => {
974
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
975
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
976
+ }
977
+ const obj_categoryId = obj.categoryId;
978
+ const path_categoryId = path + '.categoryId';
979
+ if (typeof obj_categoryId !== 'string') {
980
+ return new TypeError('Expected "string" but received "' + typeof obj_categoryId + '" (at "' + path_categoryId + '")');
981
+ }
982
+ const obj_icon = obj.icon;
983
+ const path_icon = path + '.icon';
984
+ if (typeof obj_icon !== 'string') {
985
+ return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
986
+ }
987
+ const obj_name = obj.name;
988
+ const path_name = path + '.name';
989
+ if (typeof obj_name !== 'string') {
990
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
991
+ }
992
+ const obj_parentCategoryId = obj.parentCategoryId;
993
+ const path_parentCategoryId = path + '.parentCategoryId';
994
+ if (typeof obj_parentCategoryId !== 'string') {
995
+ return new TypeError('Expected "string" but received "' + typeof obj_parentCategoryId + '" (at "' + path_parentCategoryId + '")');
996
+ }
997
+ const obj_parentCategoryName = obj.parentCategoryName;
998
+ const path_parentCategoryName = path + '.parentCategoryName';
999
+ if (typeof obj_parentCategoryName !== 'string') {
1000
+ return new TypeError('Expected "string" but received "' + typeof obj_parentCategoryName + '" (at "' + path_parentCategoryName + '")');
1001
+ }
1002
+ const obj_tagCategoryAssignmentId = obj.tagCategoryAssignmentId;
1003
+ const path_tagCategoryAssignmentId = path + '.tagCategoryAssignmentId';
1004
+ if (typeof obj_tagCategoryAssignmentId !== 'string') {
1005
+ return new TypeError('Expected "string" but received "' + typeof obj_tagCategoryAssignmentId + '" (at "' + path_tagCategoryAssignmentId + '")');
1006
+ }
1007
+ })();
1008
+ return v_error === undefined ? null : v_error;
1009
+ }
1010
+ const select$5 = function TagCategoryWithParentRepresentationSelect() {
1011
+ return {
1012
+ kind: 'Fragment',
1013
+ version: VERSION$2,
1014
+ private: [],
1015
+ selections: [
1016
+ {
1017
+ name: 'categoryId',
1018
+ kind: 'Scalar'
1019
+ },
1020
+ {
1021
+ name: 'icon',
1022
+ kind: 'Scalar'
1023
+ },
1024
+ {
1025
+ name: 'name',
1026
+ kind: 'Scalar'
1027
+ },
1028
+ {
1029
+ name: 'parentCategoryId',
1030
+ kind: 'Scalar'
1031
+ },
1032
+ {
1033
+ name: 'parentCategoryName',
1034
+ kind: 'Scalar'
1035
+ },
1036
+ {
1037
+ name: 'tagCategoryAssignmentId',
1038
+ kind: 'Scalar'
1039
+ }
1040
+ ]
1041
+ };
1042
+ };
1043
+ function equals$2(existing, incoming) {
1044
+ const existing_categoryId = existing.categoryId;
1045
+ const incoming_categoryId = incoming.categoryId;
1046
+ if (!(existing_categoryId === incoming_categoryId)) {
1047
+ return false;
1048
+ }
1049
+ const existing_icon = existing.icon;
1050
+ const incoming_icon = incoming.icon;
1051
+ if (!(existing_icon === incoming_icon)) {
1052
+ return false;
1053
+ }
1054
+ const existing_name = existing.name;
1055
+ const incoming_name = incoming.name;
1056
+ if (!(existing_name === incoming_name)) {
1057
+ return false;
1058
+ }
1059
+ const existing_parentCategoryId = existing.parentCategoryId;
1060
+ const incoming_parentCategoryId = incoming.parentCategoryId;
1061
+ if (!(existing_parentCategoryId === incoming_parentCategoryId)) {
1062
+ return false;
1063
+ }
1064
+ const existing_parentCategoryName = existing.parentCategoryName;
1065
+ const incoming_parentCategoryName = incoming.parentCategoryName;
1066
+ if (!(existing_parentCategoryName === incoming_parentCategoryName)) {
1067
+ return false;
1068
+ }
1069
+ const existing_tagCategoryAssignmentId = existing.tagCategoryAssignmentId;
1070
+ const incoming_tagCategoryAssignmentId = incoming.tagCategoryAssignmentId;
1071
+ if (!(existing_tagCategoryAssignmentId === incoming_tagCategoryAssignmentId)) {
1072
+ return false;
1073
+ }
1074
+ return true;
1075
+ }
1076
+
1077
+ const VERSION$1 = "9b56734fafb1d500056d1c1cdb6fe22d";
1078
+ function validate$3(obj, path = 'TagCategoryListRepresentation') {
1079
+ const v_error = (() => {
1080
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1081
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1082
+ }
1083
+ const obj_categories = obj.categories;
1084
+ const path_categories = path + '.categories';
1085
+ if (!ArrayIsArray(obj_categories)) {
1086
+ return new TypeError('Expected "array" but received "' + typeof obj_categories + '" (at "' + path_categories + '")');
1087
+ }
1088
+ for (let i = 0; i < obj_categories.length; i++) {
1089
+ const obj_categories_item = obj_categories[i];
1090
+ const path_categories_item = path_categories + '[' + i + ']';
1091
+ const referencepath_categories_itemValidationError = validate$4(obj_categories_item, path_categories_item);
1092
+ if (referencepath_categories_itemValidationError !== null) {
1093
+ let message = 'Object doesn\'t match TagCategoryWithParentRepresentation (at "' + path_categories_item + '")\n';
1094
+ message += referencepath_categories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1095
+ return new TypeError(message);
1096
+ }
1097
+ }
1098
+ })();
1099
+ return v_error === undefined ? null : v_error;
1100
+ }
1101
+ const RepresentationType$1 = 'TagCategoryListRepresentation';
1102
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1103
+ return input;
1104
+ }
1105
+ const select$4 = function TagCategoryListRepresentationSelect() {
1106
+ const { selections: TagCategoryWithParentRepresentation__selections, opaque: TagCategoryWithParentRepresentation__opaque, } = select$5();
1107
+ return {
1108
+ kind: 'Fragment',
1109
+ version: VERSION$1,
1110
+ private: [],
1111
+ selections: [
1112
+ {
1113
+ name: 'categories',
1114
+ kind: 'Object',
1115
+ plural: true,
1116
+ selections: TagCategoryWithParentRepresentation__selections
1117
+ }
1118
+ ]
1119
+ };
1120
+ };
1121
+ function equals$1(existing, incoming) {
1122
+ const existing_categories = existing.categories;
1123
+ const incoming_categories = incoming.categories;
1124
+ const equals_categories_items = equalsArray(existing_categories, incoming_categories, (existing_categories_item, incoming_categories_item) => {
1125
+ if (!(equals$2(existing_categories_item, incoming_categories_item))) {
1126
+ return false;
1127
+ }
1128
+ });
1129
+ if (equals_categories_items === false) {
1130
+ return false;
1131
+ }
1132
+ return true;
1133
+ }
1134
+ const ingest$1 = function TagCategoryListRepresentationIngest(input, path, luvio, store, timestamp) {
1135
+ if (process.env.NODE_ENV !== 'production') {
1136
+ const validateError = validate$3(input);
1137
+ if (validateError !== null) {
1138
+ throw validateError;
1139
+ }
1140
+ }
1141
+ const key = path.fullPath;
1142
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
1143
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "interesttagging", VERSION$1, RepresentationType$1, equals$1);
1144
+ return createLink(key);
1145
+ };
1146
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1147
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1148
+ const rootKey = fullPathFactory();
1149
+ rootKeySet.set(rootKey, {
1150
+ namespace: keyPrefix,
1151
+ representationName: RepresentationType$1,
1152
+ mergeable: false
1153
+ });
1154
+ }
1155
+
1156
+ function select$3(luvio, params) {
1157
+ return select$4();
1158
+ }
1159
+ function keyBuilder$5(luvio, params) {
1160
+ return keyPrefix + '::TagCategoryListRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sort:' + params.queryParams.sort + ',' + 'tagId:' + params.queryParams.tagId + ')';
1161
+ }
1162
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1163
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
1164
+ }
1165
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1166
+ const { body } = response;
1167
+ const key = keyBuilder$5(luvio, resourceParams);
1168
+ luvio.storeIngest(key, ingest$1, body);
1169
+ const snapshot = luvio.storeLookup({
1170
+ recordId: key,
1171
+ node: select$3(),
1172
+ variables: {},
1173
+ }, snapshotRefresh);
1174
+ if (process.env.NODE_ENV !== 'production') {
1175
+ if (snapshot.state !== 'Fulfilled') {
1176
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1177
+ }
1178
+ }
1179
+ deepFreeze(snapshot.data);
1180
+ return snapshot;
1181
+ }
1182
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
1183
+ const key = keyBuilder$5(luvio, params);
1184
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1185
+ luvio.storeIngestError(key, errorSnapshot);
1186
+ return errorSnapshot;
1187
+ }
1188
+ function createResourceRequest$2(config) {
1189
+ const headers = {};
1190
+ return {
1191
+ baseUri: '/services/data/v66.0',
1192
+ basePath: '/connect/interest-tags/categories',
1193
+ method: 'get',
1194
+ body: null,
1195
+ urlParams: {},
1196
+ queryParams: config.queryParams,
1197
+ headers,
1198
+ priority: 'normal',
1199
+ };
1200
+ }
1201
+
1202
+ const adapterName$2 = 'getTagCategoriesByTagId';
1203
+ const getTagCategoriesByTagId_ConfigPropertyMetadata = [
1204
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1205
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1206
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
1207
+ generateParamConfigMetadata('sort', false, 1 /* QueryParameter */, 0 /* String */),
1208
+ generateParamConfigMetadata('tagId', false, 1 /* QueryParameter */, 0 /* String */),
1209
+ ];
1210
+ const getTagCategoriesByTagId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTagCategoriesByTagId_ConfigPropertyMetadata);
1211
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$6(getTagCategoriesByTagId_ConfigPropertyMetadata);
1212
+ function keyBuilder$4(luvio, config) {
1213
+ const resourceParams = createResourceParams$2(config);
1214
+ return keyBuilder$5(luvio, resourceParams);
1215
+ }
1216
+ function typeCheckConfig$2(untrustedConfig) {
1217
+ const config = {};
1218
+ typeCheckConfig$6(untrustedConfig, config, getTagCategoriesByTagId_ConfigPropertyMetadata);
1219
+ return config;
1220
+ }
1221
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1222
+ if (!untrustedIsObject(untrustedConfig)) {
1223
+ return null;
1224
+ }
1225
+ if (process.env.NODE_ENV !== 'production') {
1226
+ validateConfig(untrustedConfig, configPropertyNames);
1227
+ }
1228
+ const config = typeCheckConfig$2(untrustedConfig);
1229
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1230
+ return null;
1231
+ }
1232
+ return config;
1233
+ }
1234
+ function adapterFragment$2(luvio, config) {
1235
+ createResourceParams$2(config);
1236
+ return select$3();
1237
+ }
1238
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
1239
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1240
+ config,
1241
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1242
+ });
1243
+ return luvio.storeBroadcast().then(() => snapshot);
1244
+ }
1245
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
1246
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
1247
+ config,
1248
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1249
+ });
1250
+ return luvio.storeBroadcast().then(() => snapshot);
1251
+ }
1252
+ function buildNetworkSnapshot$2(luvio, config, options) {
1253
+ const resourceParams = createResourceParams$2(config);
1254
+ const request = createResourceRequest$2(resourceParams);
1255
+ return luvio.dispatchResourceRequest(request, options)
1256
+ .then((response) => {
1257
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1258
+ const cache = new StoreKeyMap();
1259
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1260
+ return cache;
1261
+ });
1262
+ }, (response) => {
1263
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
1264
+ });
1265
+ }
1266
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1267
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1268
+ }
1269
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1270
+ const { luvio, config } = context;
1271
+ const selector = {
1272
+ recordId: keyBuilder$4(luvio, config),
1273
+ node: adapterFragment$2(luvio, config),
1274
+ variables: {},
1275
+ };
1276
+ const cacheSnapshot = storeLookup(selector, {
1277
+ config,
1278
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1279
+ });
1280
+ return cacheSnapshot;
1281
+ }
1282
+ const getTagCategoriesByTagIdAdapterFactory = (luvio) => function interesttagging__getTagCategoriesByTagId(untrustedConfig, requestContext) {
1283
+ const config = validateAdapterConfig$2(untrustedConfig, getTagCategoriesByTagId_ConfigPropertyNames);
1284
+ // Invalid or incomplete config
1285
+ if (config === null) {
1286
+ return null;
1287
+ }
1288
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1289
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1290
+ };
1291
+
1292
+ function validate$2(obj, path = 'TagCategoryRepresentation') {
1293
+ const v_error = (() => {
1294
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1295
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1296
+ }
1297
+ const obj_categoryId = obj.categoryId;
1298
+ const path_categoryId = path + '.categoryId';
1299
+ if (typeof obj_categoryId !== 'string') {
1300
+ return new TypeError('Expected "string" but received "' + typeof obj_categoryId + '" (at "' + path_categoryId + '")');
1301
+ }
1302
+ const obj_icon = obj.icon;
1303
+ const path_icon = path + '.icon';
1304
+ if (typeof obj_icon !== 'string') {
1305
+ return new TypeError('Expected "string" but received "' + typeof obj_icon + '" (at "' + path_icon + '")');
1306
+ }
1307
+ const obj_name = obj.name;
1308
+ const path_name = path + '.name';
1309
+ if (typeof obj_name !== 'string') {
1310
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1311
+ }
1312
+ })();
1313
+ return v_error === undefined ? null : v_error;
1314
+ }
1315
+
1316
+ function validate$1(obj, path = 'InterestTagRepresentation') {
1317
+ const v_error = (() => {
1318
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1319
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1320
+ }
1321
+ const obj_categories = obj.categories;
1322
+ const path_categories = path + '.categories';
1323
+ if (!ArrayIsArray(obj_categories)) {
1324
+ return new TypeError('Expected "array" but received "' + typeof obj_categories + '" (at "' + path_categories + '")');
1325
+ }
1326
+ for (let i = 0; i < obj_categories.length; i++) {
1327
+ const obj_categories_item = obj_categories[i];
1328
+ const path_categories_item = path_categories + '[' + i + ']';
1329
+ const referencepath_categories_itemValidationError = validate$2(obj_categories_item, path_categories_item);
1330
+ if (referencepath_categories_itemValidationError !== null) {
1331
+ let message = 'Object doesn\'t match TagCategoryRepresentation (at "' + path_categories_item + '")\n';
1332
+ message += referencepath_categories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1333
+ return new TypeError(message);
1334
+ }
1335
+ }
1336
+ const obj_name = obj.name;
1337
+ const path_name = path + '.name';
1338
+ if (typeof obj_name !== 'string') {
1339
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1340
+ }
1341
+ const obj_recordAssignmentId = obj.recordAssignmentId;
1342
+ const path_recordAssignmentId = path + '.recordAssignmentId';
1343
+ if (typeof obj_recordAssignmentId !== 'string') {
1344
+ return new TypeError('Expected "string" but received "' + typeof obj_recordAssignmentId + '" (at "' + path_recordAssignmentId + '")');
1345
+ }
1346
+ const obj_tagId = obj.tagId;
1347
+ const path_tagId = path + '.tagId';
1348
+ if (typeof obj_tagId !== 'string') {
1349
+ return new TypeError('Expected "string" but received "' + typeof obj_tagId + '" (at "' + path_tagId + '")');
1350
+ }
1351
+ })();
1352
+ return v_error === undefined ? null : v_error;
1353
+ }
1354
+
1355
+ const TTL = 10000;
1356
+ const VERSION = "a7f32ea47ff9fb394c6f9e13003a5595";
1357
+ function validate(obj, path = 'InterestTagListRepresentation') {
1358
+ const v_error = (() => {
1359
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1360
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1361
+ }
1362
+ const obj_tags = obj.tags;
1363
+ const path_tags = path + '.tags';
1364
+ if (!ArrayIsArray(obj_tags)) {
1365
+ return new TypeError('Expected "array" but received "' + typeof obj_tags + '" (at "' + path_tags + '")');
1366
+ }
1367
+ for (let i = 0; i < obj_tags.length; i++) {
1368
+ const obj_tags_item = obj_tags[i];
1369
+ const path_tags_item = path_tags + '[' + i + ']';
1370
+ const referencepath_tags_itemValidationError = validate$1(obj_tags_item, path_tags_item);
1371
+ if (referencepath_tags_itemValidationError !== null) {
1372
+ let message = 'Object doesn\'t match InterestTagRepresentation (at "' + path_tags_item + '")\n';
1373
+ message += referencepath_tags_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1374
+ return new TypeError(message);
1375
+ }
1376
+ }
1377
+ })();
1378
+ return v_error === undefined ? null : v_error;
1379
+ }
1380
+ const RepresentationType = 'InterestTagListRepresentation';
1381
+ function normalize(input, existing, path, luvio, store, timestamp) {
1382
+ return input;
1383
+ }
1384
+ const select$2 = function InterestTagListRepresentationSelect() {
1385
+ return {
1386
+ kind: 'Fragment',
1387
+ version: VERSION,
1388
+ private: [],
1389
+ opaque: true
1390
+ };
1391
+ };
1392
+ function equals(existing, incoming) {
1393
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1394
+ return false;
1395
+ }
1396
+ return true;
1397
+ }
1398
+ const ingest = function InterestTagListRepresentationIngest(input, path, luvio, store, timestamp) {
1399
+ if (process.env.NODE_ENV !== 'production') {
1400
+ const validateError = validate(input);
1401
+ if (validateError !== null) {
1402
+ throw validateError;
1403
+ }
1404
+ }
1405
+ const key = path.fullPath;
1406
+ const ttlToUse = TTL;
1407
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "interesttagging", VERSION, RepresentationType, equals);
1408
+ return createLink(key);
1409
+ };
1410
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1411
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1412
+ const rootKey = fullPathFactory();
1413
+ rootKeySet.set(rootKey, {
1414
+ namespace: keyPrefix,
1415
+ representationName: RepresentationType,
1416
+ mergeable: false
1417
+ });
1418
+ }
1419
+
1420
+ function select$1(luvio, params) {
1421
+ return select$2();
1422
+ }
1423
+ function keyBuilder$3(luvio, params) {
1424
+ return keyPrefix + '::InterestTagListRepresentation:(' + 'categoryId:' + params.queryParams.categoryId + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sort:' + params.queryParams.sort + ')';
1425
+ }
1426
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1427
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
1428
+ }
1429
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1430
+ const { body } = response;
1431
+ const key = keyBuilder$3(luvio, resourceParams);
1432
+ luvio.storeIngest(key, ingest, body);
1433
+ const snapshot = luvio.storeLookup({
1434
+ recordId: key,
1435
+ node: select$1(),
1436
+ variables: {},
1437
+ }, snapshotRefresh);
1438
+ if (process.env.NODE_ENV !== 'production') {
1439
+ if (snapshot.state !== 'Fulfilled') {
1440
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1441
+ }
1442
+ }
1443
+ deepFreeze(snapshot.data);
1444
+ return snapshot;
1445
+ }
1446
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
1447
+ const key = keyBuilder$3(luvio, params);
1448
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1449
+ const storeMetadataParams = {
1450
+ ttl: TTL,
1451
+ namespace: keyPrefix,
1452
+ version: VERSION,
1453
+ representationName: RepresentationType
1454
+ };
1455
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1456
+ return errorSnapshot;
1457
+ }
1458
+ function createResourceRequest$1(config) {
1459
+ const headers = {};
1460
+ return {
1461
+ baseUri: '/services/data/v66.0',
1462
+ basePath: '/connect/interest-tags/tags',
1463
+ method: 'get',
1464
+ body: null,
1465
+ urlParams: {},
1466
+ queryParams: config.queryParams,
1467
+ headers,
1468
+ priority: 'normal',
1469
+ };
1470
+ }
1471
+
1472
+ const adapterName$1 = 'getTagsByCategoryId';
1473
+ const getTagsByCategoryId_ConfigPropertyMetadata = [
1474
+ generateParamConfigMetadata('categoryId', false, 1 /* QueryParameter */, 0 /* String */),
1475
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1476
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1477
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
1478
+ generateParamConfigMetadata('sort', false, 1 /* QueryParameter */, 0 /* String */),
1479
+ ];
1480
+ const getTagsByCategoryId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getTagsByCategoryId_ConfigPropertyMetadata);
1481
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(getTagsByCategoryId_ConfigPropertyMetadata);
1482
+ function keyBuilder$2(luvio, config) {
1483
+ const resourceParams = createResourceParams$1(config);
1484
+ return keyBuilder$3(luvio, resourceParams);
1485
+ }
1486
+ function typeCheckConfig$1(untrustedConfig) {
1487
+ const config = {};
1488
+ typeCheckConfig$6(untrustedConfig, config, getTagsByCategoryId_ConfigPropertyMetadata);
1489
+ return config;
1490
+ }
1491
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1492
+ if (!untrustedIsObject(untrustedConfig)) {
1493
+ return null;
1494
+ }
1495
+ if (process.env.NODE_ENV !== 'production') {
1496
+ validateConfig(untrustedConfig, configPropertyNames);
1497
+ }
1498
+ const config = typeCheckConfig$1(untrustedConfig);
1499
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1500
+ return null;
1501
+ }
1502
+ return config;
1503
+ }
1504
+ function adapterFragment$1(luvio, config) {
1505
+ createResourceParams$1(config);
1506
+ return select$1();
1507
+ }
1508
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1509
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1510
+ config,
1511
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1512
+ });
1513
+ return luvio.storeBroadcast().then(() => snapshot);
1514
+ }
1515
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
1516
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
1517
+ config,
1518
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1519
+ });
1520
+ return luvio.storeBroadcast().then(() => snapshot);
1521
+ }
1522
+ function buildNetworkSnapshot$1(luvio, config, options) {
1523
+ const resourceParams = createResourceParams$1(config);
1524
+ const request = createResourceRequest$1(resourceParams);
1525
+ return luvio.dispatchResourceRequest(request, options)
1526
+ .then((response) => {
1527
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1528
+ const cache = new StoreKeyMap();
1529
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1530
+ return cache;
1531
+ });
1532
+ }, (response) => {
1533
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1534
+ });
1535
+ }
1536
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1537
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1538
+ }
1539
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1540
+ const { luvio, config } = context;
1541
+ const selector = {
1542
+ recordId: keyBuilder$2(luvio, config),
1543
+ node: adapterFragment$1(luvio, config),
1544
+ variables: {},
1545
+ };
1546
+ const cacheSnapshot = storeLookup(selector, {
1547
+ config,
1548
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1549
+ });
1550
+ return cacheSnapshot;
1551
+ }
1552
+ const getTagsByCategoryIdAdapterFactory = (luvio) => function interesttagging__getTagsByCategoryId(untrustedConfig, requestContext) {
1553
+ const config = validateAdapterConfig$1(untrustedConfig, getTagsByCategoryId_ConfigPropertyNames);
1554
+ // Invalid or incomplete config
1555
+ if (config === null) {
1556
+ return null;
1557
+ }
1558
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1559
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1560
+ };
1561
+
1562
+ function select(luvio, params) {
1563
+ return select$2();
1564
+ }
1565
+ function keyBuilder$1(luvio, params) {
1566
+ return keyPrefix + '::InterestTagListRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sort:' + params.queryParams.sort + ',' + 'recordId:' + params.urlParams.recordId + ')';
1567
+ }
1568
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1569
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
1570
+ }
1571
+ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1572
+ const { body } = response;
1573
+ const key = keyBuilder$1(luvio, resourceParams);
1574
+ luvio.storeIngest(key, ingest, body);
1575
+ const snapshot = luvio.storeLookup({
1576
+ recordId: key,
1577
+ node: select(),
1578
+ variables: {},
1579
+ }, snapshotRefresh);
1580
+ if (process.env.NODE_ENV !== 'production') {
1581
+ if (snapshot.state !== 'Fulfilled') {
1582
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1583
+ }
1584
+ }
1585
+ deepFreeze(snapshot.data);
1586
+ return snapshot;
1587
+ }
1588
+ function ingestError(luvio, params, error, snapshotRefresh) {
1589
+ const key = keyBuilder$1(luvio, params);
1590
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1591
+ const storeMetadataParams = {
1592
+ ttl: TTL,
1593
+ namespace: keyPrefix,
1594
+ version: VERSION,
1595
+ representationName: RepresentationType
1596
+ };
1597
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1598
+ return errorSnapshot;
1599
+ }
1600
+ function createResourceRequest(config) {
1601
+ const headers = {};
1602
+ return {
1603
+ baseUri: '/services/data/v66.0',
1604
+ basePath: '/connect/interest-tags/assignments/entity/' + config.urlParams.recordId + '',
1605
+ method: 'get',
1606
+ body: null,
1607
+ urlParams: config.urlParams,
1608
+ queryParams: config.queryParams,
1609
+ headers,
1610
+ priority: 'normal',
1611
+ };
1612
+ }
1613
+
1614
+ const adapterName = 'getTagsByRecordId';
1615
+ const getTagsByRecordId_ConfigPropertyMetadata = [
1616
+ generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
1617
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1618
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1619
+ generateParamConfigMetadata('orderBy', false, 1 /* QueryParameter */, 0 /* String */),
1620
+ generateParamConfigMetadata('sort', false, 1 /* QueryParameter */, 0 /* String */),
1621
+ ];
1622
+ const getTagsByRecordId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getTagsByRecordId_ConfigPropertyMetadata);
1623
+ const createResourceParams = /*#__PURE__*/ createResourceParams$6(getTagsByRecordId_ConfigPropertyMetadata);
1624
+ function keyBuilder(luvio, config) {
1625
+ const resourceParams = createResourceParams(config);
1626
+ return keyBuilder$1(luvio, resourceParams);
1627
+ }
1628
+ function typeCheckConfig(untrustedConfig) {
1629
+ const config = {};
1630
+ typeCheckConfig$6(untrustedConfig, config, getTagsByRecordId_ConfigPropertyMetadata);
1631
+ return config;
1632
+ }
1633
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1634
+ if (!untrustedIsObject(untrustedConfig)) {
1635
+ return null;
1636
+ }
1637
+ if (process.env.NODE_ENV !== 'production') {
1638
+ validateConfig(untrustedConfig, configPropertyNames);
1639
+ }
1640
+ const config = typeCheckConfig(untrustedConfig);
1641
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1642
+ return null;
1643
+ }
1644
+ return config;
1645
+ }
1646
+ function adapterFragment(luvio, config) {
1647
+ createResourceParams(config);
1648
+ return select();
1649
+ }
1650
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1651
+ const snapshot = ingestSuccess(luvio, resourceParams, response, {
1652
+ config,
1653
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1654
+ });
1655
+ return luvio.storeBroadcast().then(() => snapshot);
1656
+ }
1657
+ function onFetchResponseError(luvio, config, resourceParams, response) {
1658
+ const snapshot = ingestError(luvio, resourceParams, response, {
1659
+ config,
1660
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1661
+ });
1662
+ return luvio.storeBroadcast().then(() => snapshot);
1663
+ }
1664
+ function buildNetworkSnapshot(luvio, config, options) {
1665
+ const resourceParams = createResourceParams(config);
1666
+ const request = createResourceRequest(resourceParams);
1667
+ return luvio.dispatchResourceRequest(request, options)
1668
+ .then((response) => {
1669
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1670
+ const cache = new StoreKeyMap();
1671
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1672
+ return cache;
1673
+ });
1674
+ }, (response) => {
1675
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1676
+ });
1677
+ }
1678
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1679
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1680
+ }
1681
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1682
+ const { luvio, config } = context;
1683
+ const selector = {
1684
+ recordId: keyBuilder(luvio, config),
1685
+ node: adapterFragment(luvio, config),
1686
+ variables: {},
1687
+ };
1688
+ const cacheSnapshot = storeLookup(selector, {
1689
+ config,
1690
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1691
+ });
1692
+ return cacheSnapshot;
1693
+ }
1694
+ const getTagsByRecordIdAdapterFactory = (luvio) => function interesttagging__getTagsByRecordId(untrustedConfig, requestContext) {
1695
+ const config = validateAdapterConfig(untrustedConfig, getTagsByRecordId_ConfigPropertyNames);
1696
+ // Invalid or incomplete config
1697
+ if (config === null) {
1698
+ return null;
1699
+ }
1700
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1701
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1702
+ };
1703
+
1704
+ let createInterestTagEntityAssignment;
1705
+ let createInterestTagsAndCategories;
1706
+ let getInterestTagEntityAssignments;
1707
+ let getTagCategoriesByTagId;
1708
+ let getTagsByCategoryId;
1709
+ let getTagsByRecordId;
1710
+ // Imperative GET Adapters
1711
+ let getInterestTagEntityAssignments_imperative;
1712
+ let getTagCategoriesByTagId_imperative;
1713
+ let getTagsByCategoryId_imperative;
1714
+ let getTagsByRecordId_imperative;
1715
+ const getInterestTagEntityAssignmentsMetadata = {
1716
+ apiFamily: 'interesttagging',
1717
+ name: 'getInterestTagEntityAssignments',
1718
+ };
1719
+ const getTagCategoriesByTagIdMetadata = {
1720
+ apiFamily: 'interesttagging',
1721
+ name: 'getTagCategoriesByTagId',
1722
+ };
1723
+ const getTagsByCategoryIdMetadata = {
1724
+ apiFamily: 'interesttagging',
1725
+ name: 'getTagsByCategoryId',
1726
+ ttl: 10000,
1727
+ };
1728
+ const getTagsByRecordIdMetadata = {
1729
+ apiFamily: 'interesttagging',
1730
+ name: 'getTagsByRecordId',
1731
+ ttl: 10000,
1732
+ };
1733
+ // Notify Update Available
1734
+ function bindExportsTo(luvio) {
1735
+ // LDS Adapters
1736
+ const getInterestTagEntityAssignments_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getInterestTagEntityAssignments', getInterestTagEntityAssignmentsAdapterFactory), getInterestTagEntityAssignmentsMetadata);
1737
+ const getTagCategoriesByTagId_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getTagCategoriesByTagId', getTagCategoriesByTagIdAdapterFactory), getTagCategoriesByTagIdMetadata);
1738
+ const getTagsByCategoryId_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getTagsByCategoryId', getTagsByCategoryIdAdapterFactory), getTagsByCategoryIdMetadata);
1739
+ const getTagsByRecordId_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getTagsByRecordId', getTagsByRecordIdAdapterFactory), getTagsByRecordIdMetadata);
1740
+ function unwrapSnapshotData(factory) {
1741
+ const adapter = factory(luvio);
1742
+ return (config) => adapter(config).then((snapshot) => snapshot.data);
1743
+ }
1744
+ return {
1745
+ createInterestTagEntityAssignment: unwrapSnapshotData(createInterestTagEntityAssignmentAdapterFactory),
1746
+ createInterestTagsAndCategories: unwrapSnapshotData(createInterestTagsAndCategoriesAdapterFactory),
1747
+ getInterestTagEntityAssignments: createWireAdapterConstructor(luvio, getInterestTagEntityAssignments_ldsAdapter, getInterestTagEntityAssignmentsMetadata),
1748
+ getTagCategoriesByTagId: createWireAdapterConstructor(luvio, getTagCategoriesByTagId_ldsAdapter, getTagCategoriesByTagIdMetadata),
1749
+ getTagsByCategoryId: createWireAdapterConstructor(luvio, getTagsByCategoryId_ldsAdapter, getTagsByCategoryIdMetadata),
1750
+ getTagsByRecordId: createWireAdapterConstructor(luvio, getTagsByRecordId_ldsAdapter, getTagsByRecordIdMetadata),
1751
+ // Imperative GET Adapters
1752
+ getInterestTagEntityAssignments_imperative: createImperativeAdapter(luvio, getInterestTagEntityAssignments_ldsAdapter, getInterestTagEntityAssignmentsMetadata),
1753
+ getTagCategoriesByTagId_imperative: createImperativeAdapter(luvio, getTagCategoriesByTagId_ldsAdapter, getTagCategoriesByTagIdMetadata),
1754
+ getTagsByCategoryId_imperative: createImperativeAdapter(luvio, getTagsByCategoryId_ldsAdapter, getTagsByCategoryIdMetadata),
1755
+ getTagsByRecordId_imperative: createImperativeAdapter(luvio, getTagsByRecordId_ldsAdapter, getTagsByRecordIdMetadata),
1756
+ // Notify Update Availables
1757
+ };
1758
+ }
1759
+ withDefaultLuvio((luvio) => {
1760
+ ({
1761
+ createInterestTagEntityAssignment,
1762
+ createInterestTagsAndCategories,
1763
+ getInterestTagEntityAssignments,
1764
+ getTagCategoriesByTagId,
1765
+ getTagsByCategoryId,
1766
+ getTagsByRecordId,
1767
+ getInterestTagEntityAssignments_imperative,
1768
+ getTagCategoriesByTagId_imperative,
1769
+ getTagsByCategoryId_imperative,
1770
+ getTagsByRecordId_imperative,
1771
+ } = bindExportsTo(luvio));
1772
+ });
1773
+
1774
+ export { createInterestTagEntityAssignment, createInterestTagsAndCategories, getInterestTagEntityAssignments, getInterestTagEntityAssignments_imperative, getTagCategoriesByTagId, getTagCategoriesByTagId_imperative, getTagsByCategoryId, getTagsByCategoryId_imperative, getTagsByRecordId, getTagsByRecordId_imperative };
1775
+ // version: 0.1.0-dev1-c978a7b010