@salesforce/lds-adapters-service-gis 1.369.0 → 1.371.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 (21) hide show
  1. package/dist/es/es2018/service-gis.js +1203 -111
  2. package/dist/es/es2018/types/src/generated/adapters/createGisExternalAuthIdentityProvider.d.ts +2 -2
  3. package/dist/es/es2018/types/src/generated/adapters/getGisExternalAuthAccessToken.d.ts +27 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getGisExtlMapObjectConfig.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getGisRelatedObjectConfig.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -1
  8. package/dist/es/es2018/types/src/generated/resources/getGisConfigGisExtlMapObjectConfig.d.ts +16 -0
  9. package/dist/es/es2018/types/src/generated/resources/getGisConfigGisRelatedObjectConfig.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/resources/postGisAuthGisExternalAuthIdentityProvider.d.ts +2 -2
  11. package/dist/es/es2018/types/src/generated/types/GisExternalAccessTokenOutputRepresentation.d.ts +1 -0
  12. package/dist/es/es2018/types/src/generated/types/GisExternalAuthIdentityProviderInputRepresentation.d.ts +5 -5
  13. package/dist/es/es2018/types/src/generated/types/GisExternalAuthIdentityProviderOutputRepresentation.d.ts +7 -1
  14. package/dist/es/es2018/types/src/generated/types/GisExtlMapObjectConfigCollectionRepresentation.d.ts +42 -0
  15. package/dist/es/es2018/types/src/generated/types/GisExtlMapObjectConfigOutputRepresentation.d.ts +50 -0
  16. package/dist/es/es2018/types/src/generated/types/GisRelatedObjectConfigCollectionRepresentation.d.ts +42 -0
  17. package/dist/es/es2018/types/src/generated/types/GisRelatedObjectConfigOutputRepresentation.d.ts +59 -0
  18. package/package.json +3 -3
  19. package/sfdc/index.js +1248 -120
  20. package/src/raml/api.raml +165 -45
  21. package/src/raml/luvio.raml +43 -0
package/sfdc/index.js CHANGED
@@ -14,7 +14,7 @@
14
14
  /* proxy-compat-disable */
15
15
  import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
16
  import { withDefaultLuvio } from 'force/ldsEngine';
17
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$2, typeCheckConfig as typeCheckConfig$2, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1 } from 'force/luvioEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$5, typeCheckConfig as typeCheckConfig$5, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4 } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
20
  const { keys: ObjectKeys, create: ObjectCreate } = Object;
@@ -101,13 +101,18 @@ function createLink(ref) {
101
101
  };
102
102
  }
103
103
 
104
- const TTL$1 = 300;
105
- const VERSION$1 = "c182f6bbe047068649f43ccdecbb4cab";
106
- function validate$1(obj, path = 'GisExternalAuthIdentityProviderOutputRepresentation') {
104
+ const TTL$6 = 300;
105
+ const VERSION$6 = "0f69e4358dd6aed8111c869611c4526c";
106
+ function validate$6(obj, path = 'GisExternalAuthIdentityProviderOutputRepresentation') {
107
107
  const v_error = (() => {
108
108
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
109
109
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
110
110
  }
111
+ const obj_authType = obj.authType;
112
+ const path_authType = path + '.authType';
113
+ if (typeof obj_authType !== 'string') {
114
+ return new TypeError('Expected "string" but received "' + typeof obj_authType + '" (at "' + path_authType + '")');
115
+ }
111
116
  const obj_baseUrl = obj.baseUrl;
112
117
  const path_baseUrl = path + '.baseUrl';
113
118
  if (typeof obj_baseUrl !== 'string') {
@@ -123,6 +128,11 @@ function validate$1(obj, path = 'GisExternalAuthIdentityProviderOutputRepresenta
123
128
  if (typeof obj_fullName !== 'string') {
124
129
  return new TypeError('Expected "string" but received "' + typeof obj_fullName + '" (at "' + path_fullName + '")');
125
130
  }
131
+ const obj_gisProvider = obj.gisProvider;
132
+ const path_gisProvider = path + '.gisProvider';
133
+ if (typeof obj_gisProvider !== 'string') {
134
+ return new TypeError('Expected "string" but received "' + typeof obj_gisProvider + '" (at "' + path_gisProvider + '")');
135
+ }
126
136
  const obj_id = obj.id;
127
137
  const path_id = path + '.id';
128
138
  if (typeof obj_id !== 'string') {
@@ -136,25 +146,29 @@ function validate$1(obj, path = 'GisExternalAuthIdentityProviderOutputRepresenta
136
146
  })();
137
147
  return v_error === undefined ? null : v_error;
138
148
  }
139
- const RepresentationType$1 = 'GisExternalAuthIdentityProviderOutputRepresentation';
140
- function keyBuilder$2(luvio, config) {
141
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
149
+ const RepresentationType$6 = 'GisExternalAuthIdentityProviderOutputRepresentation';
150
+ function keyBuilder$a(luvio, config) {
151
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
142
152
  }
143
- function keyBuilderFromType(luvio, object) {
153
+ function keyBuilderFromType$2(luvio, object) {
144
154
  const keyParams = {
145
155
  id: object.id
146
156
  };
147
- return keyBuilder$2(luvio, keyParams);
157
+ return keyBuilder$a(luvio, keyParams);
148
158
  }
149
- function normalize$1(input, existing, path, luvio, store, timestamp) {
159
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
150
160
  return input;
151
161
  }
152
- const select$3 = function GisExternalAuthIdentityProviderOutputRepresentationSelect() {
162
+ const select$b = function GisExternalAuthIdentityProviderOutputRepresentationSelect() {
153
163
  return {
154
164
  kind: 'Fragment',
155
- version: VERSION$1,
165
+ version: VERSION$6,
156
166
  private: [],
157
167
  selections: [
168
+ {
169
+ name: 'authType',
170
+ kind: 'Scalar'
171
+ },
158
172
  {
159
173
  name: 'baseUrl',
160
174
  kind: 'Scalar'
@@ -167,6 +181,10 @@ const select$3 = function GisExternalAuthIdentityProviderOutputRepresentationSel
167
181
  name: 'fullName',
168
182
  kind: 'Scalar'
169
183
  },
184
+ {
185
+ name: 'gisProvider',
186
+ kind: 'Scalar'
187
+ },
170
188
  {
171
189
  name: 'id',
172
190
  kind: 'Scalar'
@@ -178,7 +196,12 @@ const select$3 = function GisExternalAuthIdentityProviderOutputRepresentationSel
178
196
  ]
179
197
  };
180
198
  };
181
- function equals$1(existing, incoming) {
199
+ function equals$6(existing, incoming) {
200
+ const existing_authType = existing.authType;
201
+ const incoming_authType = incoming.authType;
202
+ if (!(existing_authType === incoming_authType)) {
203
+ return false;
204
+ }
182
205
  const existing_baseUrl = existing.baseUrl;
183
206
  const incoming_baseUrl = incoming.baseUrl;
184
207
  if (!(existing_baseUrl === incoming_baseUrl)) {
@@ -194,6 +217,11 @@ function equals$1(existing, incoming) {
194
217
  if (!(existing_fullName === incoming_fullName)) {
195
218
  return false;
196
219
  }
220
+ const existing_gisProvider = existing.gisProvider;
221
+ const incoming_gisProvider = incoming.gisProvider;
222
+ if (!(existing_gisProvider === incoming_gisProvider)) {
223
+ return false;
224
+ }
197
225
  const existing_id = existing.id;
198
226
  const incoming_id = incoming.id;
199
227
  if (!(existing_id === incoming_id)) {
@@ -206,41 +234,41 @@ function equals$1(existing, incoming) {
206
234
  }
207
235
  return true;
208
236
  }
209
- const ingest$1 = function GisExternalAuthIdentityProviderOutputRepresentationIngest(input, path, luvio, store, timestamp) {
237
+ const ingest$6 = function GisExternalAuthIdentityProviderOutputRepresentationIngest(input, path, luvio, store, timestamp) {
210
238
  if (process.env.NODE_ENV !== 'production') {
211
- const validateError = validate$1(input);
239
+ const validateError = validate$6(input);
212
240
  if (validateError !== null) {
213
241
  throw validateError;
214
242
  }
215
243
  }
216
- const key = keyBuilderFromType(luvio, input);
217
- const ttlToUse = TTL$1;
218
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "gis", VERSION$1, RepresentationType$1, equals$1);
244
+ const key = keyBuilderFromType$2(luvio, input);
245
+ const ttlToUse = TTL$6;
246
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "gis", VERSION$6, RepresentationType$6, equals$6);
219
247
  return createLink(key);
220
248
  };
221
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
249
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
222
250
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
223
- const rootKey = keyBuilderFromType(luvio, input);
251
+ const rootKey = keyBuilderFromType$2(luvio, input);
224
252
  rootKeySet.set(rootKey, {
225
253
  namespace: keyPrefix,
226
- representationName: RepresentationType$1,
254
+ representationName: RepresentationType$6,
227
255
  mergeable: false
228
256
  });
229
257
  }
230
258
 
231
- function select$2(luvio, params) {
232
- return select$3();
259
+ function select$a(luvio, params) {
260
+ return select$b();
233
261
  }
234
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
235
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
262
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
263
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
236
264
  }
237
- function ingestSuccess$1(luvio, resourceParams, response) {
265
+ function ingestSuccess$4(luvio, resourceParams, response) {
238
266
  const { body } = response;
239
- const key = keyBuilderFromType(luvio, body);
240
- luvio.storeIngest(key, ingest$1, body);
267
+ const key = keyBuilderFromType$2(luvio, body);
268
+ luvio.storeIngest(key, ingest$6, body);
241
269
  const snapshot = luvio.storeLookup({
242
270
  recordId: key,
243
- node: select$2(),
271
+ node: select$a(),
244
272
  variables: {},
245
273
  });
246
274
  if (process.env.NODE_ENV !== 'production') {
@@ -251,7 +279,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
251
279
  deepFreeze(snapshot.data);
252
280
  return snapshot;
253
281
  }
254
- function createResourceRequest$1(config) {
282
+ function createResourceRequest$4(config) {
255
283
  const headers = {};
256
284
  return {
257
285
  baseUri: '/services/data/v65.0',
@@ -265,46 +293,46 @@ function createResourceRequest$1(config) {
265
293
  };
266
294
  }
267
295
 
268
- const adapterName$1 = 'createGisExternalAuthIdentityProvider';
296
+ const adapterName$4 = 'createGisExternalAuthIdentityProvider';
269
297
  const createGisExternalAuthIdentityProvider_ConfigPropertyMetadata = [
270
- generateParamConfigMetadata('authenticationMethod', true, 2 /* Body */, 0 /* String */),
298
+ generateParamConfigMetadata('authType', true, 2 /* Body */, 0 /* String */),
271
299
  generateParamConfigMetadata('baseUrl', true, 2 /* Body */, 0 /* String */),
272
300
  generateParamConfigMetadata('clientId', true, 2 /* Body */, 0 /* String */),
273
301
  generateParamConfigMetadata('clientSecret', true, 2 /* Body */, 0 /* String */),
274
- generateParamConfigMetadata('mapProvider', true, 2 /* Body */, 0 /* String */),
302
+ generateParamConfigMetadata('gisProvider', true, 2 /* Body */, 0 /* String */),
275
303
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
276
304
  ];
277
- const createGisExternalAuthIdentityProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createGisExternalAuthIdentityProvider_ConfigPropertyMetadata);
278
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(createGisExternalAuthIdentityProvider_ConfigPropertyMetadata);
279
- function typeCheckConfig$1(untrustedConfig) {
305
+ const createGisExternalAuthIdentityProvider_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createGisExternalAuthIdentityProvider_ConfigPropertyMetadata);
306
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(createGisExternalAuthIdentityProvider_ConfigPropertyMetadata);
307
+ function typeCheckConfig$4(untrustedConfig) {
280
308
  const config = {};
281
- typeCheckConfig$2(untrustedConfig, config, createGisExternalAuthIdentityProvider_ConfigPropertyMetadata);
309
+ typeCheckConfig$5(untrustedConfig, config, createGisExternalAuthIdentityProvider_ConfigPropertyMetadata);
282
310
  return config;
283
311
  }
284
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
312
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
285
313
  if (!untrustedIsObject(untrustedConfig)) {
286
314
  return null;
287
315
  }
288
316
  if (process.env.NODE_ENV !== 'production') {
289
317
  validateConfig(untrustedConfig, configPropertyNames);
290
318
  }
291
- const config = typeCheckConfig$1(untrustedConfig);
319
+ const config = typeCheckConfig$4(untrustedConfig);
292
320
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
293
321
  return null;
294
322
  }
295
323
  return config;
296
324
  }
297
- function buildNetworkSnapshot$1(luvio, config, options) {
298
- const resourceParams = createResourceParams$1(config);
299
- const request = createResourceRequest$1(resourceParams);
325
+ function buildNetworkSnapshot$4(luvio, config, options) {
326
+ const resourceParams = createResourceParams$4(config);
327
+ const request = createResourceRequest$4(resourceParams);
300
328
  return luvio.dispatchResourceRequest(request, options)
301
329
  .then((response) => {
302
330
  return luvio.handleSuccessResponse(() => {
303
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
331
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
304
332
  return luvio.storeBroadcast().then(() => snapshot);
305
333
  }, () => {
306
334
  const cache = new StoreKeyMap();
307
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
335
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
308
336
  return cache;
309
337
  });
310
338
  }, (response) => {
@@ -314,18 +342,246 @@ function buildNetworkSnapshot$1(luvio, config, options) {
314
342
  }
315
343
  const createGisExternalAuthIdentityProviderAdapterFactory = (luvio) => {
316
344
  return function createGisExternalAuthIdentityProvider(untrustedConfig) {
317
- const config = validateAdapterConfig$1(untrustedConfig, createGisExternalAuthIdentityProvider_ConfigPropertyNames);
345
+ const config = validateAdapterConfig$4(untrustedConfig, createGisExternalAuthIdentityProvider_ConfigPropertyNames);
318
346
  // Invalid or incomplete config
319
347
  if (config === null) {
320
348
  throw new Error('Invalid config for "createGisExternalAuthIdentityProvider"');
321
349
  }
322
- return buildNetworkSnapshot$1(luvio, config);
350
+ return buildNetworkSnapshot$4(luvio, config);
323
351
  };
324
352
  };
325
353
 
326
- const TTL = 300;
327
- const VERSION = "a7ac614251e70adfb9330b0fcdbfcbf2";
328
- function validate(obj, path = 'GisExternalAuthIdentityProviderCollectionRepresentation') {
354
+ const TTL$5 = 300;
355
+ const VERSION$5 = "534766993185fd21f5aac8e706c226bf";
356
+ function validate$5(obj, path = 'GisExternalAccessTokenOutputRepresentation') {
357
+ const v_error = (() => {
358
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
359
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
360
+ }
361
+ const obj_expiresIn = obj.expiresIn;
362
+ const path_expiresIn = path + '.expiresIn';
363
+ if (typeof obj_expiresIn !== 'number' || (typeof obj_expiresIn === 'number' && Math.floor(obj_expiresIn) !== obj_expiresIn)) {
364
+ return new TypeError('Expected "integer" but received "' + typeof obj_expiresIn + '" (at "' + path_expiresIn + '")');
365
+ }
366
+ const obj_token = obj.token;
367
+ const path_token = path + '.token';
368
+ if (typeof obj_token !== 'string') {
369
+ return new TypeError('Expected "string" but received "' + typeof obj_token + '" (at "' + path_token + '")');
370
+ }
371
+ const obj_type = obj.type;
372
+ const path_type = path + '.type';
373
+ if (typeof obj_type !== 'string') {
374
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
375
+ }
376
+ })();
377
+ return v_error === undefined ? null : v_error;
378
+ }
379
+ const RepresentationType$5 = 'GisExternalAccessTokenOutputRepresentation';
380
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
381
+ return input;
382
+ }
383
+ const select$9 = function GisExternalAccessTokenOutputRepresentationSelect() {
384
+ return {
385
+ kind: 'Fragment',
386
+ version: VERSION$5,
387
+ private: [],
388
+ selections: [
389
+ {
390
+ name: 'expiresIn',
391
+ kind: 'Scalar'
392
+ },
393
+ {
394
+ name: 'token',
395
+ kind: 'Scalar'
396
+ },
397
+ {
398
+ name: 'type',
399
+ kind: 'Scalar'
400
+ }
401
+ ]
402
+ };
403
+ };
404
+ function equals$5(existing, incoming) {
405
+ const existing_expiresIn = existing.expiresIn;
406
+ const incoming_expiresIn = incoming.expiresIn;
407
+ if (!(existing_expiresIn === incoming_expiresIn)) {
408
+ return false;
409
+ }
410
+ const existing_token = existing.token;
411
+ const incoming_token = incoming.token;
412
+ if (!(existing_token === incoming_token)) {
413
+ return false;
414
+ }
415
+ const existing_type = existing.type;
416
+ const incoming_type = incoming.type;
417
+ if (!(existing_type === incoming_type)) {
418
+ return false;
419
+ }
420
+ return true;
421
+ }
422
+ const ingest$5 = function GisExternalAccessTokenOutputRepresentationIngest(input, path, luvio, store, timestamp) {
423
+ if (process.env.NODE_ENV !== 'production') {
424
+ const validateError = validate$5(input);
425
+ if (validateError !== null) {
426
+ throw validateError;
427
+ }
428
+ }
429
+ const key = path.fullPath;
430
+ const ttlToUse = TTL$5;
431
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "gis", VERSION$5, RepresentationType$5, equals$5);
432
+ return createLink(key);
433
+ };
434
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
435
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
436
+ const rootKey = fullPathFactory();
437
+ rootKeySet.set(rootKey, {
438
+ namespace: keyPrefix,
439
+ representationName: RepresentationType$5,
440
+ mergeable: false
441
+ });
442
+ }
443
+
444
+ function select$8(luvio, params) {
445
+ return select$9();
446
+ }
447
+ function keyBuilder$9(luvio, params) {
448
+ return keyPrefix + '::GisExternalAccessTokenOutputRepresentation:(' + 'authSettingsId:' + params.queryParams.authSettingsId + ')';
449
+ }
450
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
451
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
452
+ }
453
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
454
+ const { body } = response;
455
+ const key = keyBuilder$9(luvio, resourceParams);
456
+ luvio.storeIngest(key, ingest$5, body);
457
+ const snapshot = luvio.storeLookup({
458
+ recordId: key,
459
+ node: select$8(),
460
+ variables: {},
461
+ }, snapshotRefresh);
462
+ if (process.env.NODE_ENV !== 'production') {
463
+ if (snapshot.state !== 'Fulfilled') {
464
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
465
+ }
466
+ }
467
+ deepFreeze(snapshot.data);
468
+ return snapshot;
469
+ }
470
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
471
+ const key = keyBuilder$9(luvio, params);
472
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
473
+ const storeMetadataParams = {
474
+ ttl: TTL$5,
475
+ namespace: keyPrefix,
476
+ version: VERSION$5,
477
+ representationName: RepresentationType$5
478
+ };
479
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
480
+ return errorSnapshot;
481
+ }
482
+ function createResourceRequest$3(config) {
483
+ const headers = {};
484
+ return {
485
+ baseUri: '/services/data/v65.0',
486
+ basePath: '/gis/auth/GisExternalAccessToken',
487
+ method: 'get',
488
+ body: null,
489
+ urlParams: {},
490
+ queryParams: config.queryParams,
491
+ headers,
492
+ priority: 'normal',
493
+ };
494
+ }
495
+
496
+ const adapterName$3 = 'getGisExternalAuthAccessToken';
497
+ const getGisExternalAuthAccessToken_ConfigPropertyMetadata = [
498
+ generateParamConfigMetadata('authSettingsId', true, 1 /* QueryParameter */, 0 /* String */),
499
+ ];
500
+ const getGisExternalAuthAccessToken_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getGisExternalAuthAccessToken_ConfigPropertyMetadata);
501
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(getGisExternalAuthAccessToken_ConfigPropertyMetadata);
502
+ function keyBuilder$8(luvio, config) {
503
+ const resourceParams = createResourceParams$3(config);
504
+ return keyBuilder$9(luvio, resourceParams);
505
+ }
506
+ function typeCheckConfig$3(untrustedConfig) {
507
+ const config = {};
508
+ typeCheckConfig$5(untrustedConfig, config, getGisExternalAuthAccessToken_ConfigPropertyMetadata);
509
+ return config;
510
+ }
511
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
512
+ if (!untrustedIsObject(untrustedConfig)) {
513
+ return null;
514
+ }
515
+ if (process.env.NODE_ENV !== 'production') {
516
+ validateConfig(untrustedConfig, configPropertyNames);
517
+ }
518
+ const config = typeCheckConfig$3(untrustedConfig);
519
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
520
+ return null;
521
+ }
522
+ return config;
523
+ }
524
+ function adapterFragment$3(luvio, config) {
525
+ createResourceParams$3(config);
526
+ return select$8();
527
+ }
528
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
529
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
530
+ config,
531
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
532
+ });
533
+ return luvio.storeBroadcast().then(() => snapshot);
534
+ }
535
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
536
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
537
+ config,
538
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
539
+ });
540
+ return luvio.storeBroadcast().then(() => snapshot);
541
+ }
542
+ function buildNetworkSnapshot$3(luvio, config, options) {
543
+ const resourceParams = createResourceParams$3(config);
544
+ const request = createResourceRequest$3(resourceParams);
545
+ return luvio.dispatchResourceRequest(request, options)
546
+ .then((response) => {
547
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
548
+ const cache = new StoreKeyMap();
549
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
550
+ return cache;
551
+ });
552
+ }, (response) => {
553
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
554
+ });
555
+ }
556
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
557
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
558
+ }
559
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
560
+ const { luvio, config } = context;
561
+ const selector = {
562
+ recordId: keyBuilder$8(luvio, config),
563
+ node: adapterFragment$3(luvio, config),
564
+ variables: {},
565
+ };
566
+ const cacheSnapshot = storeLookup(selector, {
567
+ config,
568
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
569
+ });
570
+ return cacheSnapshot;
571
+ }
572
+ const getGisExternalAuthAccessTokenAdapterFactory = (luvio) => function gis__getGisExternalAuthAccessToken(untrustedConfig, requestContext) {
573
+ const config = validateAdapterConfig$3(untrustedConfig, getGisExternalAuthAccessToken_ConfigPropertyNames);
574
+ // Invalid or incomplete config
575
+ if (config === null) {
576
+ return null;
577
+ }
578
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
579
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
580
+ };
581
+
582
+ const TTL$4 = 300;
583
+ const VERSION$4 = "a7ac614251e70adfb9330b0fcdbfcbf2";
584
+ function validate$4(obj, path = 'GisExternalAuthIdentityProviderCollectionRepresentation') {
329
585
  const v_error = (() => {
330
586
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
331
587
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -350,14 +606,14 @@ function validate(obj, path = 'GisExternalAuthIdentityProviderCollectionRepresen
350
606
  })();
351
607
  return v_error === undefined ? null : v_error;
352
608
  }
353
- const RepresentationType = 'GisExternalAuthIdentityProviderCollectionRepresentation';
354
- function normalize(input, existing, path, luvio, store, timestamp) {
609
+ const RepresentationType$4 = 'GisExternalAuthIdentityProviderCollectionRepresentation';
610
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
355
611
  const input_gisExternalAuthIdentityProviderOutputRepresentation = input.gisExternalAuthIdentityProviderOutputRepresentation;
356
612
  const input_gisExternalAuthIdentityProviderOutputRepresentation_id = path.fullPath + '__gisExternalAuthIdentityProviderOutputRepresentation';
357
613
  for (let i = 0; i < input_gisExternalAuthIdentityProviderOutputRepresentation.length; i++) {
358
614
  const input_gisExternalAuthIdentityProviderOutputRepresentation_item = input_gisExternalAuthIdentityProviderOutputRepresentation[i];
359
615
  let input_gisExternalAuthIdentityProviderOutputRepresentation_item_id = input_gisExternalAuthIdentityProviderOutputRepresentation_id + '__' + i;
360
- input_gisExternalAuthIdentityProviderOutputRepresentation[i] = ingest$1(input_gisExternalAuthIdentityProviderOutputRepresentation_item, {
616
+ input_gisExternalAuthIdentityProviderOutputRepresentation[i] = ingest$6(input_gisExternalAuthIdentityProviderOutputRepresentation_item, {
361
617
  fullPath: input_gisExternalAuthIdentityProviderOutputRepresentation_item_id,
362
618
  propertyName: i,
363
619
  parent: {
@@ -370,10 +626,10 @@ function normalize(input, existing, path, luvio, store, timestamp) {
370
626
  }
371
627
  return input;
372
628
  }
373
- const select$1 = function GisExternalAuthIdentityProviderCollectionRepresentationSelect() {
629
+ const select$7 = function GisExternalAuthIdentityProviderCollectionRepresentationSelect() {
374
630
  return {
375
631
  kind: 'Fragment',
376
- version: VERSION,
632
+ version: VERSION$4,
377
633
  private: [],
378
634
  selections: [
379
635
  {
@@ -384,12 +640,12 @@ const select$1 = function GisExternalAuthIdentityProviderCollectionRepresentatio
384
640
  name: 'gisExternalAuthIdentityProviderOutputRepresentation',
385
641
  kind: 'Link',
386
642
  plural: true,
387
- fragment: select$3()
643
+ fragment: select$b()
388
644
  }
389
645
  ]
390
646
  };
391
647
  };
392
- function equals(existing, incoming) {
648
+ function equals$4(existing, incoming) {
393
649
  const existing_count = existing.count;
394
650
  const incoming_count = incoming.count;
395
651
  if (!(existing_count === incoming_count)) {
@@ -407,48 +663,48 @@ function equals(existing, incoming) {
407
663
  }
408
664
  return true;
409
665
  }
410
- const ingest = function GisExternalAuthIdentityProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
666
+ const ingest$4 = function GisExternalAuthIdentityProviderCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
411
667
  if (process.env.NODE_ENV !== 'production') {
412
- const validateError = validate(input);
668
+ const validateError = validate$4(input);
413
669
  if (validateError !== null) {
414
670
  throw validateError;
415
671
  }
416
672
  }
417
673
  const key = path.fullPath;
418
- const ttlToUse = TTL;
419
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "gis", VERSION, RepresentationType, equals);
674
+ const ttlToUse = TTL$4;
675
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "gis", VERSION$4, RepresentationType$4, equals$4);
420
676
  return createLink(key);
421
677
  };
422
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
678
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
423
679
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
424
680
  const rootKey = fullPathFactory();
425
681
  rootKeySet.set(rootKey, {
426
682
  namespace: keyPrefix,
427
- representationName: RepresentationType,
683
+ representationName: RepresentationType$4,
428
684
  mergeable: false
429
685
  });
430
686
  const input_gisExternalAuthIdentityProviderOutputRepresentation_length = input.gisExternalAuthIdentityProviderOutputRepresentation.length;
431
687
  for (let i = 0; i < input_gisExternalAuthIdentityProviderOutputRepresentation_length; i++) {
432
- getTypeCacheKeys$1(rootKeySet, luvio, input.gisExternalAuthIdentityProviderOutputRepresentation[i]);
688
+ getTypeCacheKeys$6(rootKeySet, luvio, input.gisExternalAuthIdentityProviderOutputRepresentation[i]);
433
689
  }
434
690
  }
435
691
 
436
- function select(luvio, params) {
437
- return select$1();
692
+ function select$6(luvio, params) {
693
+ return select$7();
438
694
  }
439
- function keyBuilder$1(luvio, params) {
695
+ function keyBuilder$7(luvio, params) {
440
696
  return keyPrefix + '::GisExternalAuthIdentityProviderCollectionRepresentation:(' + 'limitByProfile:' + params.queryParams.limitByProfile + ')';
441
697
  }
442
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
443
- getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
698
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
699
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
444
700
  }
445
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
701
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
446
702
  const { body } = response;
447
- const key = keyBuilder$1(luvio, resourceParams);
448
- luvio.storeIngest(key, ingest, body);
703
+ const key = keyBuilder$7(luvio, resourceParams);
704
+ luvio.storeIngest(key, ingest$4, body);
449
705
  const snapshot = luvio.storeLookup({
450
706
  recordId: key,
451
- node: select(),
707
+ node: select$6(),
452
708
  variables: {},
453
709
  }, snapshotRefresh);
454
710
  if (process.env.NODE_ENV !== 'production') {
@@ -459,19 +715,19 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
459
715
  deepFreeze(snapshot.data);
460
716
  return snapshot;
461
717
  }
462
- function ingestError(luvio, params, error, snapshotRefresh) {
463
- const key = keyBuilder$1(luvio, params);
718
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
719
+ const key = keyBuilder$7(luvio, params);
464
720
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
465
721
  const storeMetadataParams = {
466
- ttl: TTL,
722
+ ttl: TTL$4,
467
723
  namespace: keyPrefix,
468
- version: VERSION,
469
- representationName: RepresentationType
724
+ version: VERSION$4,
725
+ representationName: RepresentationType$4
470
726
  };
471
727
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
472
728
  return errorSnapshot;
473
729
  }
474
- function createResourceRequest(config) {
730
+ function createResourceRequest$2(config) {
475
731
  const headers = {};
476
732
  return {
477
733
  baseUri: '/services/data/v65.0',
@@ -485,124 +741,996 @@ function createResourceRequest(config) {
485
741
  };
486
742
  }
487
743
 
488
- const adapterName = 'getGisExternalAuthIdentityProviders';
744
+ const adapterName$2 = 'getGisExternalAuthIdentityProviders';
489
745
  const getGisExternalAuthIdentityProviders_ConfigPropertyMetadata = [
490
746
  generateParamConfigMetadata('limitByProfile', true, 1 /* QueryParameter */, 1 /* Boolean */),
491
747
  ];
492
- const getGisExternalAuthIdentityProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getGisExternalAuthIdentityProviders_ConfigPropertyMetadata);
493
- const createResourceParams = /*#__PURE__*/ createResourceParams$2(getGisExternalAuthIdentityProviders_ConfigPropertyMetadata);
494
- function keyBuilder(luvio, config) {
495
- const resourceParams = createResourceParams(config);
496
- return keyBuilder$1(luvio, resourceParams);
748
+ const getGisExternalAuthIdentityProviders_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getGisExternalAuthIdentityProviders_ConfigPropertyMetadata);
749
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getGisExternalAuthIdentityProviders_ConfigPropertyMetadata);
750
+ function keyBuilder$6(luvio, config) {
751
+ const resourceParams = createResourceParams$2(config);
752
+ return keyBuilder$7(luvio, resourceParams);
497
753
  }
498
- function typeCheckConfig(untrustedConfig) {
754
+ function typeCheckConfig$2(untrustedConfig) {
499
755
  const config = {};
500
- typeCheckConfig$2(untrustedConfig, config, getGisExternalAuthIdentityProviders_ConfigPropertyMetadata);
756
+ typeCheckConfig$5(untrustedConfig, config, getGisExternalAuthIdentityProviders_ConfigPropertyMetadata);
501
757
  return config;
502
758
  }
503
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
759
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
504
760
  if (!untrustedIsObject(untrustedConfig)) {
505
761
  return null;
506
762
  }
507
763
  if (process.env.NODE_ENV !== 'production') {
508
764
  validateConfig(untrustedConfig, configPropertyNames);
509
765
  }
510
- const config = typeCheckConfig(untrustedConfig);
766
+ const config = typeCheckConfig$2(untrustedConfig);
511
767
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
512
768
  return null;
513
769
  }
514
770
  return config;
515
771
  }
516
- function adapterFragment(luvio, config) {
517
- createResourceParams(config);
518
- return select();
772
+ function adapterFragment$2(luvio, config) {
773
+ createResourceParams$2(config);
774
+ return select$6();
519
775
  }
520
- function onFetchResponseSuccess(luvio, config, resourceParams, response) {
521
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
776
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
777
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
522
778
  config,
523
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
779
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
524
780
  });
525
781
  return luvio.storeBroadcast().then(() => snapshot);
526
782
  }
527
- function onFetchResponseError(luvio, config, resourceParams, response) {
528
- const snapshot = ingestError(luvio, resourceParams, response, {
783
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
784
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
529
785
  config,
530
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
786
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
531
787
  });
532
788
  return luvio.storeBroadcast().then(() => snapshot);
533
789
  }
534
- function buildNetworkSnapshot(luvio, config, options) {
535
- const resourceParams = createResourceParams(config);
536
- const request = createResourceRequest(resourceParams);
790
+ function buildNetworkSnapshot$2(luvio, config, options) {
791
+ const resourceParams = createResourceParams$2(config);
792
+ const request = createResourceRequest$2(resourceParams);
537
793
  return luvio.dispatchResourceRequest(request, options)
538
794
  .then((response) => {
539
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
795
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
540
796
  const cache = new StoreKeyMap();
541
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
797
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
542
798
  return cache;
543
799
  });
544
800
  }, (response) => {
545
- return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
801
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
546
802
  });
547
803
  }
548
- function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
549
- return buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
804
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
805
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
550
806
  }
551
- function buildCachedSnapshotCachePolicy(context, storeLookup) {
807
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
552
808
  const { luvio, config } = context;
553
809
  const selector = {
554
- recordId: keyBuilder(luvio, config),
555
- node: adapterFragment(luvio, config),
810
+ recordId: keyBuilder$6(luvio, config),
811
+ node: adapterFragment$2(luvio, config),
556
812
  variables: {},
557
813
  };
558
814
  const cacheSnapshot = storeLookup(selector, {
559
815
  config,
560
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
816
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
561
817
  });
562
818
  return cacheSnapshot;
563
819
  }
564
820
  const getGisExternalAuthIdentityProvidersAdapterFactory = (luvio) => function gis__getGisExternalAuthIdentityProviders(untrustedConfig, requestContext) {
565
- const config = validateAdapterConfig(untrustedConfig, getGisExternalAuthIdentityProviders_ConfigPropertyNames);
821
+ const config = validateAdapterConfig$2(untrustedConfig, getGisExternalAuthIdentityProviders_ConfigPropertyNames);
566
822
  // Invalid or incomplete config
567
823
  if (config === null) {
568
824
  return null;
569
825
  }
570
826
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
571
- buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
827
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
572
828
  };
573
829
 
574
- let createGisExternalAuthIdentityProvider;
575
- let getGisExternalAuthIdentityProviders;
576
- // Imperative GET Adapters
577
- let getGisExternalAuthIdentityProviders_imperative;
578
- const getGisExternalAuthIdentityProvidersMetadata = {
579
- apiFamily: 'gis',
580
- name: 'getGisExternalAuthIdentityProviders',
830
+ const TTL$3 = 300;
831
+ const VERSION$3 = "d1f7afbf8cf734038f702e4ff23870c9";
832
+ function validate$3(obj, path = 'GisExtlMapObjectConfigOutputRepresentation') {
833
+ const v_error = (() => {
834
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
835
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
836
+ }
837
+ const obj_defaultMapId = obj.defaultMapId;
838
+ const path_defaultMapId = path + '.defaultMapId';
839
+ if (typeof obj_defaultMapId !== 'string') {
840
+ return new TypeError('Expected "string" but received "' + typeof obj_defaultMapId + '" (at "' + path_defaultMapId + '")');
841
+ }
842
+ const obj_id = obj.id;
843
+ const path_id = path + '.id';
844
+ if (typeof obj_id !== 'string') {
845
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
846
+ }
847
+ const obj_mapIdFieldName = obj.mapIdFieldName;
848
+ const path_mapIdFieldName = path + '.mapIdFieldName';
849
+ let obj_mapIdFieldName_union0 = null;
850
+ const obj_mapIdFieldName_union0_error = (() => {
851
+ if (typeof obj_mapIdFieldName !== 'string') {
852
+ return new TypeError('Expected "string" but received "' + typeof obj_mapIdFieldName + '" (at "' + path_mapIdFieldName + '")');
853
+ }
854
+ })();
855
+ if (obj_mapIdFieldName_union0_error != null) {
856
+ obj_mapIdFieldName_union0 = obj_mapIdFieldName_union0_error.message;
857
+ }
858
+ let obj_mapIdFieldName_union1 = null;
859
+ const obj_mapIdFieldName_union1_error = (() => {
860
+ if (obj_mapIdFieldName !== null) {
861
+ return new TypeError('Expected "null" but received "' + typeof obj_mapIdFieldName + '" (at "' + path_mapIdFieldName + '")');
862
+ }
863
+ })();
864
+ if (obj_mapIdFieldName_union1_error != null) {
865
+ obj_mapIdFieldName_union1 = obj_mapIdFieldName_union1_error.message;
866
+ }
867
+ if (obj_mapIdFieldName_union0 && obj_mapIdFieldName_union1) {
868
+ let message = 'Object doesn\'t match union (at "' + path_mapIdFieldName + '")';
869
+ message += '\n' + obj_mapIdFieldName_union0.split('\n').map((line) => '\t' + line).join('\n');
870
+ message += '\n' + obj_mapIdFieldName_union1.split('\n').map((line) => '\t' + line).join('\n');
871
+ return new TypeError(message);
872
+ }
873
+ const obj_objectName = obj.objectName;
874
+ const path_objectName = path + '.objectName';
875
+ if (typeof obj_objectName !== 'string') {
876
+ return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
877
+ }
878
+ const obj_recordType = obj.recordType;
879
+ const path_recordType = path + '.recordType';
880
+ let obj_recordType_union0 = null;
881
+ const obj_recordType_union0_error = (() => {
882
+ if (typeof obj_recordType !== 'string') {
883
+ return new TypeError('Expected "string" but received "' + typeof obj_recordType + '" (at "' + path_recordType + '")');
884
+ }
885
+ })();
886
+ if (obj_recordType_union0_error != null) {
887
+ obj_recordType_union0 = obj_recordType_union0_error.message;
888
+ }
889
+ let obj_recordType_union1 = null;
890
+ const obj_recordType_union1_error = (() => {
891
+ if (obj_recordType !== null) {
892
+ return new TypeError('Expected "null" but received "' + typeof obj_recordType + '" (at "' + path_recordType + '")');
893
+ }
894
+ })();
895
+ if (obj_recordType_union1_error != null) {
896
+ obj_recordType_union1 = obj_recordType_union1_error.message;
897
+ }
898
+ if (obj_recordType_union0 && obj_recordType_union1) {
899
+ let message = 'Object doesn\'t match union (at "' + path_recordType + '")';
900
+ message += '\n' + obj_recordType_union0.split('\n').map((line) => '\t' + line).join('\n');
901
+ message += '\n' + obj_recordType_union1.split('\n').map((line) => '\t' + line).join('\n');
902
+ return new TypeError(message);
903
+ }
904
+ })();
905
+ return v_error === undefined ? null : v_error;
906
+ }
907
+ const RepresentationType$3 = 'GisExtlMapObjectConfigOutputRepresentation';
908
+ function keyBuilder$5(luvio, config) {
909
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
910
+ }
911
+ function keyBuilderFromType$1(luvio, object) {
912
+ const keyParams = {
913
+ id: object.id
914
+ };
915
+ return keyBuilder$5(luvio, keyParams);
916
+ }
917
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
918
+ return input;
919
+ }
920
+ const select$5 = function GisExtlMapObjectConfigOutputRepresentationSelect() {
921
+ return {
922
+ kind: 'Fragment',
923
+ version: VERSION$3,
924
+ private: [],
925
+ selections: [
926
+ {
927
+ name: 'defaultMapId',
928
+ kind: 'Scalar'
929
+ },
930
+ {
931
+ name: 'id',
932
+ kind: 'Scalar'
933
+ },
934
+ {
935
+ name: 'mapIdFieldName',
936
+ kind: 'Scalar'
937
+ },
938
+ {
939
+ name: 'objectName',
940
+ kind: 'Scalar'
941
+ },
942
+ {
943
+ name: 'recordType',
944
+ kind: 'Scalar'
945
+ }
946
+ ]
947
+ };
948
+ };
949
+ function equals$3(existing, incoming) {
950
+ const existing_defaultMapId = existing.defaultMapId;
951
+ const incoming_defaultMapId = incoming.defaultMapId;
952
+ if (!(existing_defaultMapId === incoming_defaultMapId)) {
953
+ return false;
954
+ }
955
+ const existing_id = existing.id;
956
+ const incoming_id = incoming.id;
957
+ if (!(existing_id === incoming_id)) {
958
+ return false;
959
+ }
960
+ const existing_objectName = existing.objectName;
961
+ const incoming_objectName = incoming.objectName;
962
+ if (!(existing_objectName === incoming_objectName)) {
963
+ return false;
964
+ }
965
+ const existing_mapIdFieldName = existing.mapIdFieldName;
966
+ const incoming_mapIdFieldName = incoming.mapIdFieldName;
967
+ if (!(existing_mapIdFieldName === incoming_mapIdFieldName)) {
968
+ return false;
969
+ }
970
+ const existing_recordType = existing.recordType;
971
+ const incoming_recordType = incoming.recordType;
972
+ if (!(existing_recordType === incoming_recordType)) {
973
+ return false;
974
+ }
975
+ return true;
976
+ }
977
+ const ingest$3 = function GisExtlMapObjectConfigOutputRepresentationIngest(input, path, luvio, store, timestamp) {
978
+ if (process.env.NODE_ENV !== 'production') {
979
+ const validateError = validate$3(input);
980
+ if (validateError !== null) {
981
+ throw validateError;
982
+ }
983
+ }
984
+ const key = keyBuilderFromType$1(luvio, input);
985
+ const ttlToUse = TTL$3;
986
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "gis", VERSION$3, RepresentationType$3, equals$3);
987
+ return createLink(key);
988
+ };
989
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
990
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
991
+ const rootKey = keyBuilderFromType$1(luvio, input);
992
+ rootKeySet.set(rootKey, {
993
+ namespace: keyPrefix,
994
+ representationName: RepresentationType$3,
995
+ mergeable: false
996
+ });
997
+ }
998
+
999
+ const TTL$2 = 300;
1000
+ const VERSION$2 = "9cba8584dbb15a650cd322528530d375";
1001
+ function validate$2(obj, path = 'GisExtlMapObjectConfigCollectionRepresentation') {
1002
+ const v_error = (() => {
1003
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1004
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1005
+ }
1006
+ const obj_count = obj.count;
1007
+ const path_count = path + '.count';
1008
+ if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
1009
+ return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
1010
+ }
1011
+ const obj_gisExtlMapObjectConfigs = obj.gisExtlMapObjectConfigs;
1012
+ const path_gisExtlMapObjectConfigs = path + '.gisExtlMapObjectConfigs';
1013
+ if (!ArrayIsArray(obj_gisExtlMapObjectConfigs)) {
1014
+ return new TypeError('Expected "array" but received "' + typeof obj_gisExtlMapObjectConfigs + '" (at "' + path_gisExtlMapObjectConfigs + '")');
1015
+ }
1016
+ for (let i = 0; i < obj_gisExtlMapObjectConfigs.length; i++) {
1017
+ const obj_gisExtlMapObjectConfigs_item = obj_gisExtlMapObjectConfigs[i];
1018
+ const path_gisExtlMapObjectConfigs_item = path_gisExtlMapObjectConfigs + '[' + i + ']';
1019
+ if (typeof obj_gisExtlMapObjectConfigs_item !== 'object' || Array.isArray(obj_gisExtlMapObjectConfigs_item)) {
1020
+ return new TypeError('Expected "object" but received "' + typeof obj_gisExtlMapObjectConfigs_item + '" (at "' + path_gisExtlMapObjectConfigs_item + '")');
1021
+ }
1022
+ }
1023
+ })();
1024
+ return v_error === undefined ? null : v_error;
1025
+ }
1026
+ const RepresentationType$2 = 'GisExtlMapObjectConfigCollectionRepresentation';
1027
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
1028
+ const input_gisExtlMapObjectConfigs = input.gisExtlMapObjectConfigs;
1029
+ const input_gisExtlMapObjectConfigs_id = path.fullPath + '__gisExtlMapObjectConfigs';
1030
+ for (let i = 0; i < input_gisExtlMapObjectConfigs.length; i++) {
1031
+ const input_gisExtlMapObjectConfigs_item = input_gisExtlMapObjectConfigs[i];
1032
+ let input_gisExtlMapObjectConfigs_item_id = input_gisExtlMapObjectConfigs_id + '__' + i;
1033
+ input_gisExtlMapObjectConfigs[i] = ingest$3(input_gisExtlMapObjectConfigs_item, {
1034
+ fullPath: input_gisExtlMapObjectConfigs_item_id,
1035
+ propertyName: i,
1036
+ parent: {
1037
+ data: input,
1038
+ key: path.fullPath,
1039
+ existing: existing,
1040
+ },
1041
+ ttl: path.ttl
1042
+ }, luvio, store, timestamp);
1043
+ }
1044
+ return input;
1045
+ }
1046
+ const select$4 = function GisExtlMapObjectConfigCollectionRepresentationSelect() {
1047
+ return {
1048
+ kind: 'Fragment',
1049
+ version: VERSION$2,
1050
+ private: [],
1051
+ selections: [
1052
+ {
1053
+ name: 'count',
1054
+ kind: 'Scalar'
1055
+ },
1056
+ {
1057
+ name: 'gisExtlMapObjectConfigs',
1058
+ kind: 'Link',
1059
+ plural: true,
1060
+ fragment: select$5()
1061
+ }
1062
+ ]
1063
+ };
1064
+ };
1065
+ function equals$2(existing, incoming) {
1066
+ const existing_count = existing.count;
1067
+ const incoming_count = incoming.count;
1068
+ if (!(existing_count === incoming_count)) {
1069
+ return false;
1070
+ }
1071
+ const existing_gisExtlMapObjectConfigs = existing.gisExtlMapObjectConfigs;
1072
+ const incoming_gisExtlMapObjectConfigs = incoming.gisExtlMapObjectConfigs;
1073
+ const equals_gisExtlMapObjectConfigs_items = equalsArray(existing_gisExtlMapObjectConfigs, incoming_gisExtlMapObjectConfigs, (existing_gisExtlMapObjectConfigs_item, incoming_gisExtlMapObjectConfigs_item) => {
1074
+ if (!(existing_gisExtlMapObjectConfigs_item.__ref === incoming_gisExtlMapObjectConfigs_item.__ref)) {
1075
+ return false;
1076
+ }
1077
+ });
1078
+ if (equals_gisExtlMapObjectConfigs_items === false) {
1079
+ return false;
1080
+ }
1081
+ return true;
1082
+ }
1083
+ const ingest$2 = function GisExtlMapObjectConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1084
+ if (process.env.NODE_ENV !== 'production') {
1085
+ const validateError = validate$2(input);
1086
+ if (validateError !== null) {
1087
+ throw validateError;
1088
+ }
1089
+ }
1090
+ const key = path.fullPath;
1091
+ const ttlToUse = TTL$2;
1092
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "gis", VERSION$2, RepresentationType$2, equals$2);
1093
+ return createLink(key);
1094
+ };
1095
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1096
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1097
+ const rootKey = fullPathFactory();
1098
+ rootKeySet.set(rootKey, {
1099
+ namespace: keyPrefix,
1100
+ representationName: RepresentationType$2,
1101
+ mergeable: false
1102
+ });
1103
+ const input_gisExtlMapObjectConfigs_length = input.gisExtlMapObjectConfigs.length;
1104
+ for (let i = 0; i < input_gisExtlMapObjectConfigs_length; i++) {
1105
+ getTypeCacheKeys$3(rootKeySet, luvio, input.gisExtlMapObjectConfigs[i]);
1106
+ }
1107
+ }
1108
+
1109
+ function select$3(luvio, params) {
1110
+ return select$4();
1111
+ }
1112
+ function keyBuilder$4(luvio, params) {
1113
+ return keyPrefix + '::GisExtlMapObjectConfigCollectionRepresentation:(' + 'id:' + params.queryParams.id + ',' + 'objectName:' + params.queryParams.objectName + ')';
1114
+ }
1115
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1116
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
1117
+ }
1118
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1119
+ const { body } = response;
1120
+ const key = keyBuilder$4(luvio, resourceParams);
1121
+ luvio.storeIngest(key, ingest$2, body);
1122
+ const snapshot = luvio.storeLookup({
1123
+ recordId: key,
1124
+ node: select$3(),
1125
+ variables: {},
1126
+ }, snapshotRefresh);
1127
+ if (process.env.NODE_ENV !== 'production') {
1128
+ if (snapshot.state !== 'Fulfilled') {
1129
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1130
+ }
1131
+ }
1132
+ deepFreeze(snapshot.data);
1133
+ return snapshot;
1134
+ }
1135
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
1136
+ const key = keyBuilder$4(luvio, params);
1137
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1138
+ const storeMetadataParams = {
1139
+ ttl: TTL$2,
1140
+ namespace: keyPrefix,
1141
+ version: VERSION$2,
1142
+ representationName: RepresentationType$2
1143
+ };
1144
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1145
+ return errorSnapshot;
1146
+ }
1147
+ function createResourceRequest$1(config) {
1148
+ const headers = {};
1149
+ return {
1150
+ baseUri: '/services/data/v65.0',
1151
+ basePath: '/gis/config/GisExtlMapObjectConfig',
1152
+ method: 'get',
1153
+ body: null,
1154
+ urlParams: {},
1155
+ queryParams: config.queryParams,
1156
+ headers,
1157
+ priority: 'normal',
1158
+ };
1159
+ }
1160
+
1161
+ const adapterName$1 = 'getGisExtlMapObjectConfig';
1162
+ const getGisExtlMapObjectConfig_ConfigPropertyMetadata = [
1163
+ generateParamConfigMetadata('id', false, 1 /* QueryParameter */, 0 /* String */),
1164
+ generateParamConfigMetadata('objectName', false, 1 /* QueryParameter */, 0 /* String */),
1165
+ ];
1166
+ const getGisExtlMapObjectConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getGisExtlMapObjectConfig_ConfigPropertyMetadata);
1167
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getGisExtlMapObjectConfig_ConfigPropertyMetadata);
1168
+ function keyBuilder$3(luvio, config) {
1169
+ const resourceParams = createResourceParams$1(config);
1170
+ return keyBuilder$4(luvio, resourceParams);
1171
+ }
1172
+ function typeCheckConfig$1(untrustedConfig) {
1173
+ const config = {};
1174
+ typeCheckConfig$5(untrustedConfig, config, getGisExtlMapObjectConfig_ConfigPropertyMetadata);
1175
+ return config;
1176
+ }
1177
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1178
+ if (!untrustedIsObject(untrustedConfig)) {
1179
+ return null;
1180
+ }
1181
+ if (process.env.NODE_ENV !== 'production') {
1182
+ validateConfig(untrustedConfig, configPropertyNames);
1183
+ }
1184
+ const config = typeCheckConfig$1(untrustedConfig);
1185
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1186
+ return null;
1187
+ }
1188
+ return config;
1189
+ }
1190
+ function adapterFragment$1(luvio, config) {
1191
+ createResourceParams$1(config);
1192
+ return select$3();
1193
+ }
1194
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1195
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1196
+ config,
1197
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1198
+ });
1199
+ return luvio.storeBroadcast().then(() => snapshot);
1200
+ }
1201
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
1202
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
1203
+ config,
1204
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1205
+ });
1206
+ return luvio.storeBroadcast().then(() => snapshot);
1207
+ }
1208
+ function buildNetworkSnapshot$1(luvio, config, options) {
1209
+ const resourceParams = createResourceParams$1(config);
1210
+ const request = createResourceRequest$1(resourceParams);
1211
+ return luvio.dispatchResourceRequest(request, options)
1212
+ .then((response) => {
1213
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1214
+ const cache = new StoreKeyMap();
1215
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1216
+ return cache;
1217
+ });
1218
+ }, (response) => {
1219
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1220
+ });
1221
+ }
1222
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1223
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1224
+ }
1225
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1226
+ const { luvio, config } = context;
1227
+ const selector = {
1228
+ recordId: keyBuilder$3(luvio, config),
1229
+ node: adapterFragment$1(luvio, config),
1230
+ variables: {},
1231
+ };
1232
+ const cacheSnapshot = storeLookup(selector, {
1233
+ config,
1234
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1235
+ });
1236
+ return cacheSnapshot;
1237
+ }
1238
+ const getGisExtlMapObjectConfigAdapterFactory = (luvio) => function gis__getGisExtlMapObjectConfig(untrustedConfig, requestContext) {
1239
+ const config = validateAdapterConfig$1(untrustedConfig, getGisExtlMapObjectConfig_ConfigPropertyNames);
1240
+ // Invalid or incomplete config
1241
+ if (config === null) {
1242
+ return null;
1243
+ }
1244
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1245
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1246
+ };
1247
+
1248
+ const TTL$1 = 300;
1249
+ const VERSION$1 = "7313d898b396963c9d42c06b6f84abd7";
1250
+ function validate$1(obj, path = 'GisRelatedObjectConfigOutputRepresentation') {
1251
+ const v_error = (() => {
1252
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1253
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1254
+ }
1255
+ const obj_defaultColor = obj.defaultColor;
1256
+ const path_defaultColor = path + '.defaultColor';
1257
+ if (typeof obj_defaultColor !== 'string') {
1258
+ return new TypeError('Expected "string" but received "' + typeof obj_defaultColor + '" (at "' + path_defaultColor + '")');
1259
+ }
1260
+ const obj_defaultIcon = obj.defaultIcon;
1261
+ const path_defaultIcon = path + '.defaultIcon';
1262
+ if (typeof obj_defaultIcon !== 'string') {
1263
+ return new TypeError('Expected "string" but received "' + typeof obj_defaultIcon + '" (at "' + path_defaultIcon + '")');
1264
+ }
1265
+ const obj_fieldName = obj.fieldName;
1266
+ const path_fieldName = path + '.fieldName';
1267
+ if (typeof obj_fieldName !== 'string') {
1268
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
1269
+ }
1270
+ const obj_fieldType = obj.fieldType;
1271
+ const path_fieldType = path + '.fieldType';
1272
+ if (typeof obj_fieldType !== 'string') {
1273
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
1274
+ }
1275
+ const obj_id = obj.id;
1276
+ const path_id = path + '.id';
1277
+ if (typeof obj_id !== 'string') {
1278
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1279
+ }
1280
+ const obj_objectName = obj.objectName;
1281
+ const path_objectName = path + '.objectName';
1282
+ if (typeof obj_objectName !== 'string') {
1283
+ return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
1284
+ }
1285
+ const obj_recordType = obj.recordType;
1286
+ const path_recordType = path + '.recordType';
1287
+ if (typeof obj_recordType !== 'string') {
1288
+ return new TypeError('Expected "string" but received "' + typeof obj_recordType + '" (at "' + path_recordType + '")');
1289
+ }
1290
+ const obj_referenceObjectName = obj.referenceObjectName;
1291
+ const path_referenceObjectName = path + '.referenceObjectName';
1292
+ if (typeof obj_referenceObjectName !== 'string') {
1293
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceObjectName + '" (at "' + path_referenceObjectName + '")');
1294
+ }
1295
+ })();
1296
+ return v_error === undefined ? null : v_error;
1297
+ }
1298
+ const RepresentationType$1 = 'GisRelatedObjectConfigOutputRepresentation';
1299
+ function keyBuilder$2(luvio, config) {
1300
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
1301
+ }
1302
+ function keyBuilderFromType(luvio, object) {
1303
+ const keyParams = {
1304
+ id: object.id
1305
+ };
1306
+ return keyBuilder$2(luvio, keyParams);
1307
+ }
1308
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1309
+ return input;
1310
+ }
1311
+ const select$2 = function GisRelatedObjectConfigOutputRepresentationSelect() {
1312
+ return {
1313
+ kind: 'Fragment',
1314
+ version: VERSION$1,
1315
+ private: [],
1316
+ selections: [
1317
+ {
1318
+ name: 'defaultColor',
1319
+ kind: 'Scalar'
1320
+ },
1321
+ {
1322
+ name: 'defaultIcon',
1323
+ kind: 'Scalar'
1324
+ },
1325
+ {
1326
+ name: 'fieldName',
1327
+ kind: 'Scalar'
1328
+ },
1329
+ {
1330
+ name: 'fieldType',
1331
+ kind: 'Scalar'
1332
+ },
1333
+ {
1334
+ name: 'id',
1335
+ kind: 'Scalar'
1336
+ },
1337
+ {
1338
+ name: 'objectName',
1339
+ kind: 'Scalar'
1340
+ },
1341
+ {
1342
+ name: 'recordType',
1343
+ kind: 'Scalar'
1344
+ },
1345
+ {
1346
+ name: 'referenceObjectName',
1347
+ kind: 'Scalar'
1348
+ }
1349
+ ]
1350
+ };
1351
+ };
1352
+ function equals$1(existing, incoming) {
1353
+ const existing_defaultColor = existing.defaultColor;
1354
+ const incoming_defaultColor = incoming.defaultColor;
1355
+ if (!(existing_defaultColor === incoming_defaultColor)) {
1356
+ return false;
1357
+ }
1358
+ const existing_defaultIcon = existing.defaultIcon;
1359
+ const incoming_defaultIcon = incoming.defaultIcon;
1360
+ if (!(existing_defaultIcon === incoming_defaultIcon)) {
1361
+ return false;
1362
+ }
1363
+ const existing_fieldName = existing.fieldName;
1364
+ const incoming_fieldName = incoming.fieldName;
1365
+ if (!(existing_fieldName === incoming_fieldName)) {
1366
+ return false;
1367
+ }
1368
+ const existing_fieldType = existing.fieldType;
1369
+ const incoming_fieldType = incoming.fieldType;
1370
+ if (!(existing_fieldType === incoming_fieldType)) {
1371
+ return false;
1372
+ }
1373
+ const existing_id = existing.id;
1374
+ const incoming_id = incoming.id;
1375
+ if (!(existing_id === incoming_id)) {
1376
+ return false;
1377
+ }
1378
+ const existing_objectName = existing.objectName;
1379
+ const incoming_objectName = incoming.objectName;
1380
+ if (!(existing_objectName === incoming_objectName)) {
1381
+ return false;
1382
+ }
1383
+ const existing_recordType = existing.recordType;
1384
+ const incoming_recordType = incoming.recordType;
1385
+ if (!(existing_recordType === incoming_recordType)) {
1386
+ return false;
1387
+ }
1388
+ const existing_referenceObjectName = existing.referenceObjectName;
1389
+ const incoming_referenceObjectName = incoming.referenceObjectName;
1390
+ if (!(existing_referenceObjectName === incoming_referenceObjectName)) {
1391
+ return false;
1392
+ }
1393
+ return true;
1394
+ }
1395
+ const ingest$1 = function GisRelatedObjectConfigOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1396
+ if (process.env.NODE_ENV !== 'production') {
1397
+ const validateError = validate$1(input);
1398
+ if (validateError !== null) {
1399
+ throw validateError;
1400
+ }
1401
+ }
1402
+ const key = keyBuilderFromType(luvio, input);
1403
+ const ttlToUse = TTL$1;
1404
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "gis", VERSION$1, RepresentationType$1, equals$1);
1405
+ return createLink(key);
1406
+ };
1407
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1408
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1409
+ const rootKey = keyBuilderFromType(luvio, input);
1410
+ rootKeySet.set(rootKey, {
1411
+ namespace: keyPrefix,
1412
+ representationName: RepresentationType$1,
1413
+ mergeable: false
1414
+ });
1415
+ }
1416
+
1417
+ const TTL = 300;
1418
+ const VERSION = "a58708a8e997c383af8c127b5e1e55b4";
1419
+ function validate(obj, path = 'GisRelatedObjectConfigCollectionRepresentation') {
1420
+ const v_error = (() => {
1421
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1422
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1423
+ }
1424
+ const obj_count = obj.count;
1425
+ const path_count = path + '.count';
1426
+ if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
1427
+ return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
1428
+ }
1429
+ const obj_gisRelatedObjectConfigOutputRepresentation = obj.gisRelatedObjectConfigOutputRepresentation;
1430
+ const path_gisRelatedObjectConfigOutputRepresentation = path + '.gisRelatedObjectConfigOutputRepresentation';
1431
+ if (!ArrayIsArray(obj_gisRelatedObjectConfigOutputRepresentation)) {
1432
+ return new TypeError('Expected "array" but received "' + typeof obj_gisRelatedObjectConfigOutputRepresentation + '" (at "' + path_gisRelatedObjectConfigOutputRepresentation + '")');
1433
+ }
1434
+ for (let i = 0; i < obj_gisRelatedObjectConfigOutputRepresentation.length; i++) {
1435
+ const obj_gisRelatedObjectConfigOutputRepresentation_item = obj_gisRelatedObjectConfigOutputRepresentation[i];
1436
+ const path_gisRelatedObjectConfigOutputRepresentation_item = path_gisRelatedObjectConfigOutputRepresentation + '[' + i + ']';
1437
+ if (typeof obj_gisRelatedObjectConfigOutputRepresentation_item !== 'object' || Array.isArray(obj_gisRelatedObjectConfigOutputRepresentation_item)) {
1438
+ return new TypeError('Expected "object" but received "' + typeof obj_gisRelatedObjectConfigOutputRepresentation_item + '" (at "' + path_gisRelatedObjectConfigOutputRepresentation_item + '")');
1439
+ }
1440
+ }
1441
+ })();
1442
+ return v_error === undefined ? null : v_error;
1443
+ }
1444
+ const RepresentationType = 'GisRelatedObjectConfigCollectionRepresentation';
1445
+ function normalize(input, existing, path, luvio, store, timestamp) {
1446
+ const input_gisRelatedObjectConfigOutputRepresentation = input.gisRelatedObjectConfigOutputRepresentation;
1447
+ const input_gisRelatedObjectConfigOutputRepresentation_id = path.fullPath + '__gisRelatedObjectConfigOutputRepresentation';
1448
+ for (let i = 0; i < input_gisRelatedObjectConfigOutputRepresentation.length; i++) {
1449
+ const input_gisRelatedObjectConfigOutputRepresentation_item = input_gisRelatedObjectConfigOutputRepresentation[i];
1450
+ let input_gisRelatedObjectConfigOutputRepresentation_item_id = input_gisRelatedObjectConfigOutputRepresentation_id + '__' + i;
1451
+ input_gisRelatedObjectConfigOutputRepresentation[i] = ingest$1(input_gisRelatedObjectConfigOutputRepresentation_item, {
1452
+ fullPath: input_gisRelatedObjectConfigOutputRepresentation_item_id,
1453
+ propertyName: i,
1454
+ parent: {
1455
+ data: input,
1456
+ key: path.fullPath,
1457
+ existing: existing,
1458
+ },
1459
+ ttl: path.ttl
1460
+ }, luvio, store, timestamp);
1461
+ }
1462
+ return input;
1463
+ }
1464
+ const select$1 = function GisRelatedObjectConfigCollectionRepresentationSelect() {
1465
+ return {
1466
+ kind: 'Fragment',
1467
+ version: VERSION,
1468
+ private: [],
1469
+ selections: [
1470
+ {
1471
+ name: 'count',
1472
+ kind: 'Scalar'
1473
+ },
1474
+ {
1475
+ name: 'gisRelatedObjectConfigOutputRepresentation',
1476
+ kind: 'Link',
1477
+ plural: true,
1478
+ fragment: select$2()
1479
+ }
1480
+ ]
1481
+ };
1482
+ };
1483
+ function equals(existing, incoming) {
1484
+ const existing_count = existing.count;
1485
+ const incoming_count = incoming.count;
1486
+ if (!(existing_count === incoming_count)) {
1487
+ return false;
1488
+ }
1489
+ const existing_gisRelatedObjectConfigOutputRepresentation = existing.gisRelatedObjectConfigOutputRepresentation;
1490
+ const incoming_gisRelatedObjectConfigOutputRepresentation = incoming.gisRelatedObjectConfigOutputRepresentation;
1491
+ const equals_gisRelatedObjectConfigOutputRepresentation_items = equalsArray(existing_gisRelatedObjectConfigOutputRepresentation, incoming_gisRelatedObjectConfigOutputRepresentation, (existing_gisRelatedObjectConfigOutputRepresentation_item, incoming_gisRelatedObjectConfigOutputRepresentation_item) => {
1492
+ if (!(existing_gisRelatedObjectConfigOutputRepresentation_item.__ref === incoming_gisRelatedObjectConfigOutputRepresentation_item.__ref)) {
1493
+ return false;
1494
+ }
1495
+ });
1496
+ if (equals_gisRelatedObjectConfigOutputRepresentation_items === false) {
1497
+ return false;
1498
+ }
1499
+ return true;
1500
+ }
1501
+ const ingest = function GisRelatedObjectConfigCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
1502
+ if (process.env.NODE_ENV !== 'production') {
1503
+ const validateError = validate(input);
1504
+ if (validateError !== null) {
1505
+ throw validateError;
1506
+ }
1507
+ }
1508
+ const key = path.fullPath;
1509
+ const ttlToUse = TTL;
1510
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "gis", VERSION, RepresentationType, equals);
1511
+ return createLink(key);
1512
+ };
1513
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1514
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1515
+ const rootKey = fullPathFactory();
1516
+ rootKeySet.set(rootKey, {
1517
+ namespace: keyPrefix,
1518
+ representationName: RepresentationType,
1519
+ mergeable: false
1520
+ });
1521
+ const input_gisRelatedObjectConfigOutputRepresentation_length = input.gisRelatedObjectConfigOutputRepresentation.length;
1522
+ for (let i = 0; i < input_gisRelatedObjectConfigOutputRepresentation_length; i++) {
1523
+ getTypeCacheKeys$1(rootKeySet, luvio, input.gisRelatedObjectConfigOutputRepresentation[i]);
1524
+ }
1525
+ }
1526
+
1527
+ function select(luvio, params) {
1528
+ return select$1();
1529
+ }
1530
+ function keyBuilder$1(luvio, params) {
1531
+ return keyPrefix + '::GisRelatedObjectConfigCollectionRepresentation:(' + 'id:' + params.queryParams.id + ',' + 'objectName:' + params.queryParams.objectName + ')';
1532
+ }
1533
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1534
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
1535
+ }
1536
+ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1537
+ const { body } = response;
1538
+ const key = keyBuilder$1(luvio, resourceParams);
1539
+ luvio.storeIngest(key, ingest, body);
1540
+ const snapshot = luvio.storeLookup({
1541
+ recordId: key,
1542
+ node: select(),
1543
+ variables: {},
1544
+ }, snapshotRefresh);
1545
+ if (process.env.NODE_ENV !== 'production') {
1546
+ if (snapshot.state !== 'Fulfilled') {
1547
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1548
+ }
1549
+ }
1550
+ deepFreeze(snapshot.data);
1551
+ return snapshot;
1552
+ }
1553
+ function ingestError(luvio, params, error, snapshotRefresh) {
1554
+ const key = keyBuilder$1(luvio, params);
1555
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1556
+ const storeMetadataParams = {
1557
+ ttl: TTL,
1558
+ namespace: keyPrefix,
1559
+ version: VERSION,
1560
+ representationName: RepresentationType
1561
+ };
1562
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1563
+ return errorSnapshot;
1564
+ }
1565
+ function createResourceRequest(config) {
1566
+ const headers = {};
1567
+ return {
1568
+ baseUri: '/services/data/v65.0',
1569
+ basePath: '/gis/config/GisRelatedObjectConfig',
1570
+ method: 'get',
1571
+ body: null,
1572
+ urlParams: {},
1573
+ queryParams: config.queryParams,
1574
+ headers,
1575
+ priority: 'normal',
1576
+ };
1577
+ }
1578
+
1579
+ const adapterName = 'getGisRelatedObjectConfig';
1580
+ const getGisRelatedObjectConfig_ConfigPropertyMetadata = [
1581
+ generateParamConfigMetadata('id', false, 1 /* QueryParameter */, 0 /* String */),
1582
+ generateParamConfigMetadata('objectName', false, 1 /* QueryParameter */, 0 /* String */),
1583
+ ];
1584
+ const getGisRelatedObjectConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getGisRelatedObjectConfig_ConfigPropertyMetadata);
1585
+ const createResourceParams = /*#__PURE__*/ createResourceParams$5(getGisRelatedObjectConfig_ConfigPropertyMetadata);
1586
+ function keyBuilder(luvio, config) {
1587
+ const resourceParams = createResourceParams(config);
1588
+ return keyBuilder$1(luvio, resourceParams);
1589
+ }
1590
+ function typeCheckConfig(untrustedConfig) {
1591
+ const config = {};
1592
+ typeCheckConfig$5(untrustedConfig, config, getGisRelatedObjectConfig_ConfigPropertyMetadata);
1593
+ return config;
1594
+ }
1595
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1596
+ if (!untrustedIsObject(untrustedConfig)) {
1597
+ return null;
1598
+ }
1599
+ if (process.env.NODE_ENV !== 'production') {
1600
+ validateConfig(untrustedConfig, configPropertyNames);
1601
+ }
1602
+ const config = typeCheckConfig(untrustedConfig);
1603
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1604
+ return null;
1605
+ }
1606
+ return config;
1607
+ }
1608
+ function adapterFragment(luvio, config) {
1609
+ createResourceParams(config);
1610
+ return select();
1611
+ }
1612
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1613
+ const snapshot = ingestSuccess(luvio, resourceParams, response, {
1614
+ config,
1615
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1616
+ });
1617
+ return luvio.storeBroadcast().then(() => snapshot);
1618
+ }
1619
+ function onFetchResponseError(luvio, config, resourceParams, response) {
1620
+ const snapshot = ingestError(luvio, resourceParams, response, {
1621
+ config,
1622
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1623
+ });
1624
+ return luvio.storeBroadcast().then(() => snapshot);
1625
+ }
1626
+ function buildNetworkSnapshot(luvio, config, options) {
1627
+ const resourceParams = createResourceParams(config);
1628
+ const request = createResourceRequest(resourceParams);
1629
+ return luvio.dispatchResourceRequest(request, options)
1630
+ .then((response) => {
1631
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1632
+ const cache = new StoreKeyMap();
1633
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1634
+ return cache;
1635
+ });
1636
+ }, (response) => {
1637
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1638
+ });
1639
+ }
1640
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1641
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1642
+ }
1643
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1644
+ const { luvio, config } = context;
1645
+ const selector = {
1646
+ recordId: keyBuilder(luvio, config),
1647
+ node: adapterFragment(luvio, config),
1648
+ variables: {},
1649
+ };
1650
+ const cacheSnapshot = storeLookup(selector, {
1651
+ config,
1652
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1653
+ });
1654
+ return cacheSnapshot;
1655
+ }
1656
+ const getGisRelatedObjectConfigAdapterFactory = (luvio) => function gis__getGisRelatedObjectConfig(untrustedConfig, requestContext) {
1657
+ const config = validateAdapterConfig(untrustedConfig, getGisRelatedObjectConfig_ConfigPropertyNames);
1658
+ // Invalid or incomplete config
1659
+ if (config === null) {
1660
+ return null;
1661
+ }
1662
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1663
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1664
+ };
1665
+
1666
+ let createGisExternalAuthIdentityProvider;
1667
+ let getGisExternalAuthAccessToken;
1668
+ let getGisExternalAuthIdentityProviders;
1669
+ let getGisExtlMapObjectConfig;
1670
+ let getGisRelatedObjectConfig;
1671
+ // Imperative GET Adapters
1672
+ let getGisExternalAuthAccessToken_imperative;
1673
+ let getGisExternalAuthIdentityProviders_imperative;
1674
+ let getGisExtlMapObjectConfig_imperative;
1675
+ let getGisRelatedObjectConfig_imperative;
1676
+ const getGisExternalAuthAccessTokenMetadata = {
1677
+ apiFamily: 'gis',
1678
+ name: 'getGisExternalAuthAccessToken',
1679
+ ttl: 300,
1680
+ };
1681
+ const getGisExternalAuthIdentityProvidersMetadata = {
1682
+ apiFamily: 'gis',
1683
+ name: 'getGisExternalAuthIdentityProviders',
1684
+ ttl: 300,
1685
+ };
1686
+ const getGisExtlMapObjectConfigMetadata = {
1687
+ apiFamily: 'gis',
1688
+ name: 'getGisExtlMapObjectConfig',
1689
+ ttl: 300,
1690
+ };
1691
+ const getGisRelatedObjectConfigMetadata = {
1692
+ apiFamily: 'gis',
1693
+ name: 'getGisRelatedObjectConfig',
581
1694
  ttl: 300,
582
1695
  };
583
1696
  // Notify Update Available
584
1697
  function bindExportsTo(luvio) {
585
1698
  // LDS Adapters
1699
+ const getGisExternalAuthAccessToken_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGisExternalAuthAccessToken', getGisExternalAuthAccessTokenAdapterFactory), getGisExternalAuthAccessTokenMetadata);
586
1700
  const getGisExternalAuthIdentityProviders_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGisExternalAuthIdentityProviders', getGisExternalAuthIdentityProvidersAdapterFactory), getGisExternalAuthIdentityProvidersMetadata);
1701
+ const getGisExtlMapObjectConfig_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGisExtlMapObjectConfig', getGisExtlMapObjectConfigAdapterFactory), getGisExtlMapObjectConfigMetadata);
1702
+ const getGisRelatedObjectConfig_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGisRelatedObjectConfig', getGisRelatedObjectConfigAdapterFactory), getGisRelatedObjectConfigMetadata);
587
1703
  function unwrapSnapshotData(factory) {
588
1704
  const adapter = factory(luvio);
589
1705
  return (config) => adapter(config).then((snapshot) => snapshot.data);
590
1706
  }
591
1707
  return {
592
1708
  createGisExternalAuthIdentityProvider: unwrapSnapshotData(createGisExternalAuthIdentityProviderAdapterFactory),
1709
+ getGisExternalAuthAccessToken: createWireAdapterConstructor(luvio, getGisExternalAuthAccessToken_ldsAdapter, getGisExternalAuthAccessTokenMetadata),
593
1710
  getGisExternalAuthIdentityProviders: createWireAdapterConstructor(luvio, getGisExternalAuthIdentityProviders_ldsAdapter, getGisExternalAuthIdentityProvidersMetadata),
1711
+ getGisExtlMapObjectConfig: createWireAdapterConstructor(luvio, getGisExtlMapObjectConfig_ldsAdapter, getGisExtlMapObjectConfigMetadata),
1712
+ getGisRelatedObjectConfig: createWireAdapterConstructor(luvio, getGisRelatedObjectConfig_ldsAdapter, getGisRelatedObjectConfigMetadata),
594
1713
  // Imperative GET Adapters
1714
+ getGisExternalAuthAccessToken_imperative: createImperativeAdapter(luvio, getGisExternalAuthAccessToken_ldsAdapter, getGisExternalAuthAccessTokenMetadata),
595
1715
  getGisExternalAuthIdentityProviders_imperative: createImperativeAdapter(luvio, getGisExternalAuthIdentityProviders_ldsAdapter, getGisExternalAuthIdentityProvidersMetadata),
1716
+ getGisExtlMapObjectConfig_imperative: createImperativeAdapter(luvio, getGisExtlMapObjectConfig_ldsAdapter, getGisExtlMapObjectConfigMetadata),
1717
+ getGisRelatedObjectConfig_imperative: createImperativeAdapter(luvio, getGisRelatedObjectConfig_ldsAdapter, getGisRelatedObjectConfigMetadata),
596
1718
  // Notify Update Availables
597
1719
  };
598
1720
  }
599
1721
  withDefaultLuvio((luvio) => {
600
1722
  ({
601
1723
  createGisExternalAuthIdentityProvider,
1724
+ getGisExternalAuthAccessToken,
602
1725
  getGisExternalAuthIdentityProviders,
1726
+ getGisExtlMapObjectConfig,
1727
+ getGisRelatedObjectConfig,
1728
+ getGisExternalAuthAccessToken_imperative,
603
1729
  getGisExternalAuthIdentityProviders_imperative,
1730
+ getGisExtlMapObjectConfig_imperative,
1731
+ getGisRelatedObjectConfig_imperative,
604
1732
  } = bindExportsTo(luvio));
605
1733
  });
606
1734
 
607
- export { createGisExternalAuthIdentityProvider, getGisExternalAuthIdentityProviders, getGisExternalAuthIdentityProviders_imperative };
608
- // version: 1.369.0-7bf258f54c
1735
+ export { createGisExternalAuthIdentityProvider, getGisExternalAuthAccessToken, getGisExternalAuthAccessToken_imperative, getGisExternalAuthIdentityProviders, getGisExternalAuthIdentityProviders_imperative, getGisExtlMapObjectConfig, getGisExtlMapObjectConfig_imperative, getGisRelatedObjectConfig, getGisRelatedObjectConfig_imperative };
1736
+ // version: 1.371.0-1f3d834ba4