@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev13 → 1.332.0-dev14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-slack-bridge.js +1196 -942
- package/dist/es/es2018/types/src/generated/adapters/getSlackEmoji.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackEmojis.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -3
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamEmojisByTeamId.d.ts +7 -4
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojiOutputRepresentation.d.ts +33 -19
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojiValueOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojisOutputRepresentation.d.ts +14 -8
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +12 -3
- package/package.json +3 -3
- package/sfdc/index.js +1020 -714
- package/src/raml/api.raml +59 -30
- package/src/raml/luvio.raml +12 -1
- package/dist/es/es2018/types/src/generated/adapters/getSlackCustomEmoji.d.ts +0 -27
- package/dist/es/es2018/types/src/generated/types/SlackBridgeCustomEmojisOutputRepresentation.d.ts +0 -35
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, StoreKeyMap, deepFreeze, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, StoreKeyMap, deepFreeze, createResourceParams as createResourceParams$l, typeCheckConfig as typeCheckConfig$l, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$b } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -142,19 +142,19 @@ function validate$l(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
142
142
|
return v_error === undefined ? null : v_error;
|
|
143
143
|
}
|
|
144
144
|
const RepresentationType$g = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
145
|
-
function keyBuilder$
|
|
145
|
+
function keyBuilder$z(luvio, config) {
|
|
146
146
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.channelId;
|
|
147
147
|
}
|
|
148
|
-
function keyBuilderFromType$
|
|
148
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
149
149
|
const keyParams = {
|
|
150
150
|
channelId: object.channelId
|
|
151
151
|
};
|
|
152
|
-
return keyBuilder$
|
|
152
|
+
return keyBuilder$z(luvio, keyParams);
|
|
153
153
|
}
|
|
154
154
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
155
155
|
return input;
|
|
156
156
|
}
|
|
157
|
-
const select$
|
|
157
|
+
const select$D = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
158
158
|
return {
|
|
159
159
|
kind: 'Fragment',
|
|
160
160
|
version: VERSION$l,
|
|
@@ -191,14 +191,14 @@ const ingest$g = function SlackBridgeConversationMemberOutputRepresentationInges
|
|
|
191
191
|
throw validateError;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
const key = keyBuilderFromType$
|
|
194
|
+
const key = keyBuilderFromType$a(luvio, input);
|
|
195
195
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
196
196
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$l, RepresentationType$g, equals$l);
|
|
197
197
|
return createLink(key);
|
|
198
198
|
};
|
|
199
199
|
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
200
200
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
201
|
-
const rootKey = keyBuilderFromType$
|
|
201
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
202
202
|
rootKeySet.set(rootKey, {
|
|
203
203
|
namespace: keyPrefix,
|
|
204
204
|
representationName: RepresentationType$g,
|
|
@@ -206,13 +206,13 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
function keyBuilder$
|
|
210
|
-
return keyBuilder$
|
|
209
|
+
function keyBuilder$y(luvio, params) {
|
|
210
|
+
return keyBuilder$z(luvio, {
|
|
211
211
|
channelId: params.urlParams.channelId
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function getResponseCacheKeys$
|
|
215
|
-
const key = keyBuilder$
|
|
214
|
+
function getResponseCacheKeys$k(cacheKeyMap, luvio, resourceParams) {
|
|
215
|
+
const key = keyBuilder$y(luvio, resourceParams);
|
|
216
216
|
cacheKeyMap.set(key, {
|
|
217
217
|
namespace: keyPrefix,
|
|
218
218
|
representationName: RepresentationType$g,
|
|
@@ -220,10 +220,10 @@ function getResponseCacheKeys$j(cacheKeyMap, luvio, resourceParams) {
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
function evictSuccess$2(luvio, resourceParams) {
|
|
223
|
-
const key = keyBuilder$
|
|
223
|
+
const key = keyBuilder$y(luvio, resourceParams);
|
|
224
224
|
luvio.storeEvict(key);
|
|
225
225
|
}
|
|
226
|
-
function createResourceRequest$
|
|
226
|
+
function createResourceRequest$k(config) {
|
|
227
227
|
const headers = {};
|
|
228
228
|
return {
|
|
229
229
|
baseUri: '/services/data/v63.0',
|
|
@@ -237,35 +237,35 @@ function createResourceRequest$j(config) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
const adapterName$
|
|
240
|
+
const adapterName$k = 'deleteSlackConversationMember';
|
|
241
241
|
const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
242
242
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
243
243
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
244
244
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
245
245
|
];
|
|
246
|
-
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
247
|
-
const createResourceParams$
|
|
248
|
-
function typeCheckConfig$
|
|
246
|
+
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
247
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$l(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
248
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
249
249
|
const config = {};
|
|
250
|
-
typeCheckConfig$
|
|
250
|
+
typeCheckConfig$l(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
251
251
|
return config;
|
|
252
252
|
}
|
|
253
|
-
function validateAdapterConfig$
|
|
253
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
254
254
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
255
255
|
return null;
|
|
256
256
|
}
|
|
257
257
|
if (process.env.NODE_ENV !== 'production') {
|
|
258
258
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
259
259
|
}
|
|
260
|
-
const config = typeCheckConfig$
|
|
260
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
261
261
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
262
262
|
return null;
|
|
263
263
|
}
|
|
264
264
|
return config;
|
|
265
265
|
}
|
|
266
|
-
function buildNetworkSnapshot$
|
|
267
|
-
const resourceParams = createResourceParams$
|
|
268
|
-
const request = createResourceRequest$
|
|
266
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
267
|
+
const resourceParams = createResourceParams$k(config);
|
|
268
|
+
const request = createResourceRequest$k(resourceParams);
|
|
269
269
|
return luvio.dispatchResourceRequest(request, options)
|
|
270
270
|
.then(() => {
|
|
271
271
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -273,7 +273,7 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
273
273
|
return luvio.storeBroadcast();
|
|
274
274
|
}, () => {
|
|
275
275
|
const cache = new StoreKeyMap();
|
|
276
|
-
getResponseCacheKeys$
|
|
276
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams);
|
|
277
277
|
return cache;
|
|
278
278
|
});
|
|
279
279
|
}, (response) => {
|
|
@@ -283,12 +283,12 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
283
283
|
}
|
|
284
284
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
285
285
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
286
|
-
const config = validateAdapterConfig$
|
|
286
|
+
const config = validateAdapterConfig$k(untrustedConfig, deleteSlackConversationMember_ConfigPropertyNames);
|
|
287
287
|
// Invalid or incomplete config
|
|
288
288
|
if (config === null) {
|
|
289
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
289
|
+
throw new Error(`Invalid config for "${adapterName$k}"`);
|
|
290
290
|
}
|
|
291
|
-
return buildNetworkSnapshot$
|
|
291
|
+
return buildNetworkSnapshot$k(luvio, config);
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
|
|
@@ -317,19 +317,19 @@ function validate$k(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
const RepresentationType$f = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
320
|
-
function keyBuilder$
|
|
320
|
+
function keyBuilder$x(luvio, config) {
|
|
321
321
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.channelId;
|
|
322
322
|
}
|
|
323
|
-
function keyBuilderFromType$
|
|
323
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
324
324
|
const keyParams = {
|
|
325
325
|
channelId: object.channelId
|
|
326
326
|
};
|
|
327
|
-
return keyBuilder$
|
|
327
|
+
return keyBuilder$x(luvio, keyParams);
|
|
328
328
|
}
|
|
329
329
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
330
330
|
return input;
|
|
331
331
|
}
|
|
332
|
-
const select$
|
|
332
|
+
const select$C = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
333
333
|
return {
|
|
334
334
|
kind: 'Fragment',
|
|
335
335
|
version: VERSION$k,
|
|
@@ -375,14 +375,14 @@ const ingest$f = function SlackBridgeMessageFragmentOutputRepresentationIngest(i
|
|
|
375
375
|
throw validateError;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
const key = keyBuilderFromType$
|
|
378
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
379
379
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
380
380
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SlackBridge", VERSION$k, RepresentationType$f, equals$k);
|
|
381
381
|
return createLink(key);
|
|
382
382
|
};
|
|
383
383
|
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
384
384
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
385
|
-
const rootKey = keyBuilderFromType$
|
|
385
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
386
386
|
rootKeySet.set(rootKey, {
|
|
387
387
|
namespace: keyPrefix,
|
|
388
388
|
representationName: RepresentationType$f,
|
|
@@ -390,13 +390,13 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
function keyBuilder$
|
|
394
|
-
return keyBuilder$
|
|
393
|
+
function keyBuilder$w(luvio, params) {
|
|
394
|
+
return keyBuilder$x(luvio, {
|
|
395
395
|
channelId: params.urlParams.channelId
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
function getResponseCacheKeys$
|
|
399
|
-
const key = keyBuilder$
|
|
398
|
+
function getResponseCacheKeys$j(cacheKeyMap, luvio, resourceParams) {
|
|
399
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
400
400
|
cacheKeyMap.set(key, {
|
|
401
401
|
namespace: keyPrefix,
|
|
402
402
|
representationName: RepresentationType$f,
|
|
@@ -404,10 +404,10 @@ function getResponseCacheKeys$i(cacheKeyMap, luvio, resourceParams) {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
function evictSuccess$1(luvio, resourceParams) {
|
|
407
|
-
const key = keyBuilder$
|
|
407
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
408
408
|
luvio.storeEvict(key);
|
|
409
409
|
}
|
|
410
|
-
function createResourceRequest$
|
|
410
|
+
function createResourceRequest$j(config) {
|
|
411
411
|
const headers = {};
|
|
412
412
|
return {
|
|
413
413
|
baseUri: '/services/data/v63.0',
|
|
@@ -421,35 +421,35 @@ function createResourceRequest$i(config) {
|
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
const adapterName$
|
|
424
|
+
const adapterName$j = 'deleteSlackMessage';
|
|
425
425
|
const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
426
426
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
427
427
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
428
428
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
429
429
|
];
|
|
430
|
-
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
431
|
-
const createResourceParams$
|
|
432
|
-
function typeCheckConfig$
|
|
430
|
+
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, deleteSlackMessage_ConfigPropertyMetadata);
|
|
431
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$l(deleteSlackMessage_ConfigPropertyMetadata);
|
|
432
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
433
433
|
const config = {};
|
|
434
|
-
typeCheckConfig$
|
|
434
|
+
typeCheckConfig$l(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
435
435
|
return config;
|
|
436
436
|
}
|
|
437
|
-
function validateAdapterConfig$
|
|
437
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
438
438
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
439
439
|
return null;
|
|
440
440
|
}
|
|
441
441
|
if (process.env.NODE_ENV !== 'production') {
|
|
442
442
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
443
443
|
}
|
|
444
|
-
const config = typeCheckConfig$
|
|
444
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
445
445
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
446
446
|
return null;
|
|
447
447
|
}
|
|
448
448
|
return config;
|
|
449
449
|
}
|
|
450
|
-
function buildNetworkSnapshot$
|
|
451
|
-
const resourceParams = createResourceParams$
|
|
452
|
-
const request = createResourceRequest$
|
|
450
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
451
|
+
const resourceParams = createResourceParams$j(config);
|
|
452
|
+
const request = createResourceRequest$j(resourceParams);
|
|
453
453
|
return luvio.dispatchResourceRequest(request, options)
|
|
454
454
|
.then(() => {
|
|
455
455
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -457,7 +457,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
457
457
|
return luvio.storeBroadcast();
|
|
458
458
|
}, () => {
|
|
459
459
|
const cache = new StoreKeyMap();
|
|
460
|
-
getResponseCacheKeys$
|
|
460
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams);
|
|
461
461
|
return cache;
|
|
462
462
|
});
|
|
463
463
|
}, (response) => {
|
|
@@ -467,12 +467,12 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
467
467
|
}
|
|
468
468
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
469
469
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
470
|
-
const config = validateAdapterConfig$
|
|
470
|
+
const config = validateAdapterConfig$j(untrustedConfig, deleteSlackMessage_ConfigPropertyNames);
|
|
471
471
|
// Invalid or incomplete config
|
|
472
472
|
if (config === null) {
|
|
473
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
473
|
+
throw new Error(`Invalid config for "${adapterName$j}"`);
|
|
474
474
|
}
|
|
475
|
-
return buildNetworkSnapshot$
|
|
475
|
+
return buildNetworkSnapshot$j(luvio, config);
|
|
476
476
|
};
|
|
477
477
|
};
|
|
478
478
|
|
|
@@ -554,7 +554,7 @@ function validate$j(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
554
554
|
})();
|
|
555
555
|
return v_error === undefined ? null : v_error;
|
|
556
556
|
}
|
|
557
|
-
const select$
|
|
557
|
+
const select$B = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
558
558
|
return {
|
|
559
559
|
kind: 'Fragment',
|
|
560
560
|
version: VERSION$j,
|
|
@@ -649,20 +649,20 @@ function validate$i(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
649
649
|
return v_error === undefined ? null : v_error;
|
|
650
650
|
}
|
|
651
651
|
const RepresentationType$e = 'SlackBridgeReactionsOutputRepresentation';
|
|
652
|
-
function keyBuilder$
|
|
652
|
+
function keyBuilder$v(luvio, config) {
|
|
653
653
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.channelId;
|
|
654
654
|
}
|
|
655
|
-
function keyBuilderFromType$
|
|
655
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
656
656
|
const keyParams = {
|
|
657
657
|
channelId: object.channelId
|
|
658
658
|
};
|
|
659
|
-
return keyBuilder$
|
|
659
|
+
return keyBuilder$v(luvio, keyParams);
|
|
660
660
|
}
|
|
661
661
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
662
662
|
return input;
|
|
663
663
|
}
|
|
664
|
-
const select$
|
|
665
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
664
|
+
const select$A = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
665
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$B();
|
|
666
666
|
return {
|
|
667
667
|
kind: 'Fragment',
|
|
668
668
|
version: VERSION$i,
|
|
@@ -724,14 +724,14 @@ const ingest$e = function SlackBridgeReactionsOutputRepresentationIngest(input,
|
|
|
724
724
|
throw validateError;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
const key = keyBuilderFromType$
|
|
727
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
728
728
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
729
729
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SlackBridge", VERSION$i, RepresentationType$e, equals$i);
|
|
730
730
|
return createLink(key);
|
|
731
731
|
};
|
|
732
732
|
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
733
733
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
734
|
-
const rootKey = keyBuilderFromType$
|
|
734
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
735
735
|
rootKeySet.set(rootKey, {
|
|
736
736
|
namespace: keyPrefix,
|
|
737
737
|
representationName: RepresentationType$e,
|
|
@@ -739,13 +739,13 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
-
function keyBuilder$
|
|
743
|
-
return keyBuilder$
|
|
742
|
+
function keyBuilder$u(luvio, params) {
|
|
743
|
+
return keyBuilder$v(luvio, {
|
|
744
744
|
channelId: params.urlParams.channelId
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
function getResponseCacheKeys$
|
|
748
|
-
const key = keyBuilder$
|
|
747
|
+
function getResponseCacheKeys$i(cacheKeyMap, luvio, resourceParams) {
|
|
748
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
749
749
|
cacheKeyMap.set(key, {
|
|
750
750
|
namespace: keyPrefix,
|
|
751
751
|
representationName: RepresentationType$e,
|
|
@@ -753,10 +753,10 @@ function getResponseCacheKeys$h(cacheKeyMap, luvio, resourceParams) {
|
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
function evictSuccess(luvio, resourceParams) {
|
|
756
|
-
const key = keyBuilder$
|
|
756
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
757
757
|
luvio.storeEvict(key);
|
|
758
758
|
}
|
|
759
|
-
function createResourceRequest$
|
|
759
|
+
function createResourceRequest$i(config) {
|
|
760
760
|
const headers = {};
|
|
761
761
|
return {
|
|
762
762
|
baseUri: '/services/data/v63.0',
|
|
@@ -770,36 +770,36 @@ function createResourceRequest$h(config) {
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
const adapterName$
|
|
773
|
+
const adapterName$i = 'deleteSlackMessageReactions';
|
|
774
774
|
const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
775
775
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
776
776
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
777
777
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
778
778
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
779
779
|
];
|
|
780
|
-
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
781
|
-
const createResourceParams$
|
|
782
|
-
function typeCheckConfig$
|
|
780
|
+
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
781
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$l(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
782
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
783
783
|
const config = {};
|
|
784
|
-
typeCheckConfig$
|
|
784
|
+
typeCheckConfig$l(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
785
785
|
return config;
|
|
786
786
|
}
|
|
787
|
-
function validateAdapterConfig$
|
|
787
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
788
788
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
789
789
|
return null;
|
|
790
790
|
}
|
|
791
791
|
if (process.env.NODE_ENV !== 'production') {
|
|
792
792
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
793
793
|
}
|
|
794
|
-
const config = typeCheckConfig$
|
|
794
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
795
795
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
796
796
|
return null;
|
|
797
797
|
}
|
|
798
798
|
return config;
|
|
799
799
|
}
|
|
800
|
-
function buildNetworkSnapshot$
|
|
801
|
-
const resourceParams = createResourceParams$
|
|
802
|
-
const request = createResourceRequest$
|
|
800
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
801
|
+
const resourceParams = createResourceParams$i(config);
|
|
802
|
+
const request = createResourceRequest$i(resourceParams);
|
|
803
803
|
return luvio.dispatchResourceRequest(request, options)
|
|
804
804
|
.then(() => {
|
|
805
805
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -807,7 +807,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
807
807
|
return luvio.storeBroadcast();
|
|
808
808
|
}, () => {
|
|
809
809
|
const cache = new StoreKeyMap();
|
|
810
|
-
getResponseCacheKeys$
|
|
810
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams);
|
|
811
811
|
return cache;
|
|
812
812
|
});
|
|
813
813
|
}, (response) => {
|
|
@@ -817,71 +817,225 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
817
817
|
}
|
|
818
818
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
819
819
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
820
|
-
const config = validateAdapterConfig$
|
|
820
|
+
const config = validateAdapterConfig$i(untrustedConfig, deleteSlackMessageReactions_ConfigPropertyNames);
|
|
821
821
|
// Invalid or incomplete config
|
|
822
822
|
if (config === null) {
|
|
823
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
823
|
+
throw new Error(`Invalid config for "${adapterName$i}"`);
|
|
824
|
+
}
|
|
825
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
const VERSION$h = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
830
|
+
function validate$h(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
831
|
+
const v_error = (() => {
|
|
832
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
833
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
834
|
+
}
|
|
835
|
+
const obj_appleUrl = obj.appleUrl;
|
|
836
|
+
const path_appleUrl = path + '.appleUrl';
|
|
837
|
+
let obj_appleUrl_union0 = null;
|
|
838
|
+
const obj_appleUrl_union0_error = (() => {
|
|
839
|
+
if (typeof obj_appleUrl !== 'string') {
|
|
840
|
+
return new TypeError('Expected "string" but received "' + typeof obj_appleUrl + '" (at "' + path_appleUrl + '")');
|
|
841
|
+
}
|
|
842
|
+
})();
|
|
843
|
+
if (obj_appleUrl_union0_error != null) {
|
|
844
|
+
obj_appleUrl_union0 = obj_appleUrl_union0_error.message;
|
|
845
|
+
}
|
|
846
|
+
let obj_appleUrl_union1 = null;
|
|
847
|
+
const obj_appleUrl_union1_error = (() => {
|
|
848
|
+
if (obj_appleUrl !== null) {
|
|
849
|
+
return new TypeError('Expected "null" but received "' + typeof obj_appleUrl + '" (at "' + path_appleUrl + '")');
|
|
850
|
+
}
|
|
851
|
+
})();
|
|
852
|
+
if (obj_appleUrl_union1_error != null) {
|
|
853
|
+
obj_appleUrl_union1 = obj_appleUrl_union1_error.message;
|
|
854
|
+
}
|
|
855
|
+
if (obj_appleUrl_union0 && obj_appleUrl_union1) {
|
|
856
|
+
let message = 'Object doesn\'t match union (at "' + path_appleUrl + '")';
|
|
857
|
+
message += '\n' + obj_appleUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
858
|
+
message += '\n' + obj_appleUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
859
|
+
return new TypeError(message);
|
|
860
|
+
}
|
|
861
|
+
const obj_defaultValue = obj.defaultValue;
|
|
862
|
+
const path_defaultValue = path + '.defaultValue';
|
|
863
|
+
let obj_defaultValue_union0 = null;
|
|
864
|
+
const obj_defaultValue_union0_error = (() => {
|
|
865
|
+
if (typeof obj_defaultValue !== 'string') {
|
|
866
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
|
|
867
|
+
}
|
|
868
|
+
})();
|
|
869
|
+
if (obj_defaultValue_union0_error != null) {
|
|
870
|
+
obj_defaultValue_union0 = obj_defaultValue_union0_error.message;
|
|
871
|
+
}
|
|
872
|
+
let obj_defaultValue_union1 = null;
|
|
873
|
+
const obj_defaultValue_union1_error = (() => {
|
|
874
|
+
if (obj_defaultValue !== null) {
|
|
875
|
+
return new TypeError('Expected "null" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
|
|
876
|
+
}
|
|
877
|
+
})();
|
|
878
|
+
if (obj_defaultValue_union1_error != null) {
|
|
879
|
+
obj_defaultValue_union1 = obj_defaultValue_union1_error.message;
|
|
880
|
+
}
|
|
881
|
+
if (obj_defaultValue_union0 && obj_defaultValue_union1) {
|
|
882
|
+
let message = 'Object doesn\'t match union (at "' + path_defaultValue + '")';
|
|
883
|
+
message += '\n' + obj_defaultValue_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
884
|
+
message += '\n' + obj_defaultValue_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
885
|
+
return new TypeError(message);
|
|
886
|
+
}
|
|
887
|
+
const obj_googleUrl = obj.googleUrl;
|
|
888
|
+
const path_googleUrl = path + '.googleUrl';
|
|
889
|
+
let obj_googleUrl_union0 = null;
|
|
890
|
+
const obj_googleUrl_union0_error = (() => {
|
|
891
|
+
if (typeof obj_googleUrl !== 'string') {
|
|
892
|
+
return new TypeError('Expected "string" but received "' + typeof obj_googleUrl + '" (at "' + path_googleUrl + '")');
|
|
893
|
+
}
|
|
894
|
+
})();
|
|
895
|
+
if (obj_googleUrl_union0_error != null) {
|
|
896
|
+
obj_googleUrl_union0 = obj_googleUrl_union0_error.message;
|
|
897
|
+
}
|
|
898
|
+
let obj_googleUrl_union1 = null;
|
|
899
|
+
const obj_googleUrl_union1_error = (() => {
|
|
900
|
+
if (obj_googleUrl !== null) {
|
|
901
|
+
return new TypeError('Expected "null" but received "' + typeof obj_googleUrl + '" (at "' + path_googleUrl + '")');
|
|
902
|
+
}
|
|
903
|
+
})();
|
|
904
|
+
if (obj_googleUrl_union1_error != null) {
|
|
905
|
+
obj_googleUrl_union1 = obj_googleUrl_union1_error.message;
|
|
906
|
+
}
|
|
907
|
+
if (obj_googleUrl_union0 && obj_googleUrl_union1) {
|
|
908
|
+
let message = 'Object doesn\'t match union (at "' + path_googleUrl + '")';
|
|
909
|
+
message += '\n' + obj_googleUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
910
|
+
message += '\n' + obj_googleUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
911
|
+
return new TypeError(message);
|
|
824
912
|
}
|
|
825
|
-
|
|
913
|
+
})();
|
|
914
|
+
return v_error === undefined ? null : v_error;
|
|
915
|
+
}
|
|
916
|
+
const select$z = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
917
|
+
return {
|
|
918
|
+
kind: 'Fragment',
|
|
919
|
+
version: VERSION$h,
|
|
920
|
+
private: [],
|
|
921
|
+
selections: [
|
|
922
|
+
{
|
|
923
|
+
name: 'appleUrl',
|
|
924
|
+
kind: 'Scalar'
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
name: 'defaultValue',
|
|
928
|
+
kind: 'Scalar'
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
name: 'googleUrl',
|
|
932
|
+
kind: 'Scalar'
|
|
933
|
+
}
|
|
934
|
+
]
|
|
826
935
|
};
|
|
827
936
|
};
|
|
937
|
+
function equals$h(existing, incoming) {
|
|
938
|
+
const existing_appleUrl = existing.appleUrl;
|
|
939
|
+
const incoming_appleUrl = incoming.appleUrl;
|
|
940
|
+
if (!(existing_appleUrl === incoming_appleUrl)) {
|
|
941
|
+
return false;
|
|
942
|
+
}
|
|
943
|
+
const existing_defaultValue = existing.defaultValue;
|
|
944
|
+
const incoming_defaultValue = incoming.defaultValue;
|
|
945
|
+
if (!(existing_defaultValue === incoming_defaultValue)) {
|
|
946
|
+
return false;
|
|
947
|
+
}
|
|
948
|
+
const existing_googleUrl = existing.googleUrl;
|
|
949
|
+
const incoming_googleUrl = incoming.googleUrl;
|
|
950
|
+
if (!(existing_googleUrl === incoming_googleUrl)) {
|
|
951
|
+
return false;
|
|
952
|
+
}
|
|
953
|
+
return true;
|
|
954
|
+
}
|
|
828
955
|
|
|
829
|
-
const
|
|
830
|
-
|
|
956
|
+
const TTL$1 = 2592000000;
|
|
957
|
+
const VERSION$g = "a0e1530372a57d61a1264218124bbb5c";
|
|
958
|
+
function validate$g(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
831
959
|
const v_error = (() => {
|
|
832
960
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
833
961
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
834
962
|
}
|
|
835
|
-
const
|
|
836
|
-
const
|
|
837
|
-
let
|
|
838
|
-
const
|
|
839
|
-
if (typeof
|
|
840
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
963
|
+
const obj_alias = obj.alias;
|
|
964
|
+
const path_alias = path + '.alias';
|
|
965
|
+
let obj_alias_union0 = null;
|
|
966
|
+
const obj_alias_union0_error = (() => {
|
|
967
|
+
if (typeof obj_alias !== 'string') {
|
|
968
|
+
return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
969
|
+
}
|
|
970
|
+
})();
|
|
971
|
+
if (obj_alias_union0_error != null) {
|
|
972
|
+
obj_alias_union0 = obj_alias_union0_error.message;
|
|
973
|
+
}
|
|
974
|
+
let obj_alias_union1 = null;
|
|
975
|
+
const obj_alias_union1_error = (() => {
|
|
976
|
+
if (obj_alias !== null) {
|
|
977
|
+
return new TypeError('Expected "null" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
978
|
+
}
|
|
979
|
+
})();
|
|
980
|
+
if (obj_alias_union1_error != null) {
|
|
981
|
+
obj_alias_union1 = obj_alias_union1_error.message;
|
|
982
|
+
}
|
|
983
|
+
if (obj_alias_union0 && obj_alias_union1) {
|
|
984
|
+
let message = 'Object doesn\'t match union (at "' + path_alias + '")';
|
|
985
|
+
message += '\n' + obj_alias_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
986
|
+
message += '\n' + obj_alias_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
987
|
+
return new TypeError(message);
|
|
988
|
+
}
|
|
989
|
+
const obj_collectionId = obj.collectionId;
|
|
990
|
+
const path_collectionId = path + '.collectionId';
|
|
991
|
+
let obj_collectionId_union0 = null;
|
|
992
|
+
const obj_collectionId_union0_error = (() => {
|
|
993
|
+
if (typeof obj_collectionId !== 'string') {
|
|
994
|
+
return new TypeError('Expected "string" but received "' + typeof obj_collectionId + '" (at "' + path_collectionId + '")');
|
|
841
995
|
}
|
|
842
996
|
})();
|
|
843
|
-
if (
|
|
844
|
-
|
|
997
|
+
if (obj_collectionId_union0_error != null) {
|
|
998
|
+
obj_collectionId_union0 = obj_collectionId_union0_error.message;
|
|
845
999
|
}
|
|
846
|
-
let
|
|
847
|
-
const
|
|
848
|
-
if (
|
|
849
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1000
|
+
let obj_collectionId_union1 = null;
|
|
1001
|
+
const obj_collectionId_union1_error = (() => {
|
|
1002
|
+
if (obj_collectionId !== null) {
|
|
1003
|
+
return new TypeError('Expected "null" but received "' + typeof obj_collectionId + '" (at "' + path_collectionId + '")');
|
|
850
1004
|
}
|
|
851
1005
|
})();
|
|
852
|
-
if (
|
|
853
|
-
|
|
1006
|
+
if (obj_collectionId_union1_error != null) {
|
|
1007
|
+
obj_collectionId_union1 = obj_collectionId_union1_error.message;
|
|
854
1008
|
}
|
|
855
|
-
if (
|
|
856
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
857
|
-
message += '\n' +
|
|
858
|
-
message += '\n' +
|
|
1009
|
+
if (obj_collectionId_union0 && obj_collectionId_union1) {
|
|
1010
|
+
let message = 'Object doesn\'t match union (at "' + path_collectionId + '")';
|
|
1011
|
+
message += '\n' + obj_collectionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1012
|
+
message += '\n' + obj_collectionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
859
1013
|
return new TypeError(message);
|
|
860
1014
|
}
|
|
861
|
-
const
|
|
862
|
-
const
|
|
863
|
-
let
|
|
864
|
-
const
|
|
865
|
-
if (typeof
|
|
866
|
-
return new TypeError('Expected "boolean" but received "' + typeof
|
|
1015
|
+
const obj_isAlias = obj.isAlias;
|
|
1016
|
+
const path_isAlias = path + '.isAlias';
|
|
1017
|
+
let obj_isAlias_union0 = null;
|
|
1018
|
+
const obj_isAlias_union0_error = (() => {
|
|
1019
|
+
if (typeof obj_isAlias !== 'boolean') {
|
|
1020
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAlias + '" (at "' + path_isAlias + '")');
|
|
867
1021
|
}
|
|
868
1022
|
})();
|
|
869
|
-
if (
|
|
870
|
-
|
|
1023
|
+
if (obj_isAlias_union0_error != null) {
|
|
1024
|
+
obj_isAlias_union0 = obj_isAlias_union0_error.message;
|
|
871
1025
|
}
|
|
872
|
-
let
|
|
873
|
-
const
|
|
874
|
-
if (
|
|
875
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1026
|
+
let obj_isAlias_union1 = null;
|
|
1027
|
+
const obj_isAlias_union1_error = (() => {
|
|
1028
|
+
if (obj_isAlias !== null) {
|
|
1029
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isAlias + '" (at "' + path_isAlias + '")');
|
|
876
1030
|
}
|
|
877
1031
|
})();
|
|
878
|
-
if (
|
|
879
|
-
|
|
1032
|
+
if (obj_isAlias_union1_error != null) {
|
|
1033
|
+
obj_isAlias_union1 = obj_isAlias_union1_error.message;
|
|
880
1034
|
}
|
|
881
|
-
if (
|
|
882
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
883
|
-
message += '\n' +
|
|
884
|
-
message += '\n' +
|
|
1035
|
+
if (obj_isAlias_union0 && obj_isAlias_union1) {
|
|
1036
|
+
let message = 'Object doesn\'t match union (at "' + path_isAlias + '")';
|
|
1037
|
+
message += '\n' + obj_isAlias_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1038
|
+
message += '\n' + obj_isAlias_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
885
1039
|
return new TypeError(message);
|
|
886
1040
|
}
|
|
887
1041
|
const obj_name = obj.name;
|
|
@@ -889,122 +1043,174 @@ function validate$h(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
889
1043
|
if (typeof obj_name !== 'string') {
|
|
890
1044
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
891
1045
|
}
|
|
892
|
-
const
|
|
893
|
-
const
|
|
894
|
-
let
|
|
895
|
-
const
|
|
896
|
-
if (typeof
|
|
897
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1046
|
+
const obj_updated = obj.updated;
|
|
1047
|
+
const path_updated = path + '.updated';
|
|
1048
|
+
let obj_updated_union0 = null;
|
|
1049
|
+
const obj_updated_union0_error = (() => {
|
|
1050
|
+
if (typeof obj_updated !== 'string') {
|
|
1051
|
+
return new TypeError('Expected "string" but received "' + typeof obj_updated + '" (at "' + path_updated + '")');
|
|
898
1052
|
}
|
|
899
1053
|
})();
|
|
900
|
-
if (
|
|
901
|
-
|
|
1054
|
+
if (obj_updated_union0_error != null) {
|
|
1055
|
+
obj_updated_union0 = obj_updated_union0_error.message;
|
|
902
1056
|
}
|
|
903
|
-
let
|
|
904
|
-
const
|
|
905
|
-
if (
|
|
906
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1057
|
+
let obj_updated_union1 = null;
|
|
1058
|
+
const obj_updated_union1_error = (() => {
|
|
1059
|
+
if (obj_updated !== null) {
|
|
1060
|
+
return new TypeError('Expected "null" but received "' + typeof obj_updated + '" (at "' + path_updated + '")');
|
|
907
1061
|
}
|
|
908
1062
|
})();
|
|
909
|
-
if (
|
|
910
|
-
|
|
1063
|
+
if (obj_updated_union1_error != null) {
|
|
1064
|
+
obj_updated_union1 = obj_updated_union1_error.message;
|
|
911
1065
|
}
|
|
912
|
-
if (
|
|
913
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
914
|
-
message += '\n' +
|
|
915
|
-
message += '\n' +
|
|
1066
|
+
if (obj_updated_union0 && obj_updated_union1) {
|
|
1067
|
+
let message = 'Object doesn\'t match union (at "' + path_updated + '")';
|
|
1068
|
+
message += '\n' + obj_updated_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1069
|
+
message += '\n' + obj_updated_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
916
1070
|
return new TypeError(message);
|
|
917
1071
|
}
|
|
918
|
-
const
|
|
919
|
-
const
|
|
920
|
-
let
|
|
921
|
-
const
|
|
922
|
-
|
|
923
|
-
|
|
1072
|
+
const obj_value = obj.value;
|
|
1073
|
+
const path_value = path + '.value';
|
|
1074
|
+
let obj_value_union0 = null;
|
|
1075
|
+
const obj_value_union0_error = (() => {
|
|
1076
|
+
const referencepath_valueValidationError = validate$h(obj_value, path_value);
|
|
1077
|
+
if (referencepath_valueValidationError !== null) {
|
|
1078
|
+
let message = 'Object doesn\'t match SlackBridgeEmojiValueOutputRepresentation (at "' + path_value + '")\n';
|
|
1079
|
+
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1080
|
+
return new TypeError(message);
|
|
924
1081
|
}
|
|
925
1082
|
})();
|
|
926
|
-
if (
|
|
927
|
-
|
|
1083
|
+
if (obj_value_union0_error != null) {
|
|
1084
|
+
obj_value_union0 = obj_value_union0_error.message;
|
|
928
1085
|
}
|
|
929
|
-
let
|
|
930
|
-
const
|
|
931
|
-
if (
|
|
932
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1086
|
+
let obj_value_union1 = null;
|
|
1087
|
+
const obj_value_union1_error = (() => {
|
|
1088
|
+
if (obj_value !== null) {
|
|
1089
|
+
return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
933
1090
|
}
|
|
934
1091
|
})();
|
|
935
|
-
if (
|
|
936
|
-
|
|
1092
|
+
if (obj_value_union1_error != null) {
|
|
1093
|
+
obj_value_union1 = obj_value_union1_error.message;
|
|
937
1094
|
}
|
|
938
|
-
if (
|
|
939
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
940
|
-
message += '\n' +
|
|
941
|
-
message += '\n' +
|
|
1095
|
+
if (obj_value_union0 && obj_value_union1) {
|
|
1096
|
+
let message = 'Object doesn\'t match union (at "' + path_value + '")';
|
|
1097
|
+
message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1098
|
+
message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
942
1099
|
return new TypeError(message);
|
|
943
1100
|
}
|
|
944
1101
|
})();
|
|
945
1102
|
return v_error === undefined ? null : v_error;
|
|
946
1103
|
}
|
|
1104
|
+
const RepresentationType$d = 'SlackBridgeEmojiOutputRepresentation';
|
|
1105
|
+
function keyBuilder$t(luvio, config) {
|
|
1106
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
1107
|
+
}
|
|
1108
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
1109
|
+
const keyParams = {
|
|
1110
|
+
name: object.name
|
|
1111
|
+
};
|
|
1112
|
+
return keyBuilder$t(luvio, keyParams);
|
|
1113
|
+
}
|
|
1114
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1115
|
+
return input;
|
|
1116
|
+
}
|
|
947
1117
|
const select$y = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
1118
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$z();
|
|
948
1119
|
return {
|
|
949
1120
|
kind: 'Fragment',
|
|
950
|
-
version: VERSION$
|
|
1121
|
+
version: VERSION$g,
|
|
951
1122
|
private: [],
|
|
952
1123
|
selections: [
|
|
953
1124
|
{
|
|
954
|
-
name: '
|
|
1125
|
+
name: 'alias',
|
|
955
1126
|
kind: 'Scalar'
|
|
956
1127
|
},
|
|
957
1128
|
{
|
|
958
|
-
name: '
|
|
1129
|
+
name: 'collectionId',
|
|
959
1130
|
kind: 'Scalar'
|
|
960
1131
|
},
|
|
961
1132
|
{
|
|
962
|
-
name: '
|
|
1133
|
+
name: 'isAlias',
|
|
963
1134
|
kind: 'Scalar'
|
|
964
1135
|
},
|
|
965
1136
|
{
|
|
966
|
-
name: '
|
|
1137
|
+
name: 'name',
|
|
967
1138
|
kind: 'Scalar'
|
|
968
1139
|
},
|
|
969
1140
|
{
|
|
970
|
-
name: '
|
|
1141
|
+
name: 'updated',
|
|
971
1142
|
kind: 'Scalar'
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
name: 'value',
|
|
1146
|
+
kind: 'Object',
|
|
1147
|
+
nullable: true,
|
|
1148
|
+
selections: SlackBridgeEmojiValueOutputRepresentation__selections
|
|
972
1149
|
}
|
|
973
1150
|
]
|
|
974
1151
|
};
|
|
975
1152
|
};
|
|
976
|
-
function equals$
|
|
1153
|
+
function equals$g(existing, incoming) {
|
|
977
1154
|
const existing_name = existing.name;
|
|
978
1155
|
const incoming_name = incoming.name;
|
|
979
1156
|
if (!(existing_name === incoming_name)) {
|
|
980
1157
|
return false;
|
|
981
1158
|
}
|
|
982
|
-
const
|
|
983
|
-
const
|
|
984
|
-
if (!(
|
|
1159
|
+
const existing_alias = existing.alias;
|
|
1160
|
+
const incoming_alias = incoming.alias;
|
|
1161
|
+
if (!(existing_alias === incoming_alias)) {
|
|
985
1162
|
return false;
|
|
986
1163
|
}
|
|
987
|
-
const
|
|
988
|
-
const
|
|
989
|
-
if (!(
|
|
1164
|
+
const existing_collectionId = existing.collectionId;
|
|
1165
|
+
const incoming_collectionId = incoming.collectionId;
|
|
1166
|
+
if (!(existing_collectionId === incoming_collectionId)) {
|
|
990
1167
|
return false;
|
|
991
1168
|
}
|
|
992
|
-
const
|
|
993
|
-
const
|
|
994
|
-
if (!(
|
|
1169
|
+
const existing_isAlias = existing.isAlias;
|
|
1170
|
+
const incoming_isAlias = incoming.isAlias;
|
|
1171
|
+
if (!(existing_isAlias === incoming_isAlias)) {
|
|
995
1172
|
return false;
|
|
996
1173
|
}
|
|
997
|
-
const
|
|
998
|
-
const
|
|
999
|
-
if (!(
|
|
1174
|
+
const existing_updated = existing.updated;
|
|
1175
|
+
const incoming_updated = incoming.updated;
|
|
1176
|
+
if (!(existing_updated === incoming_updated)) {
|
|
1177
|
+
return false;
|
|
1178
|
+
}
|
|
1179
|
+
const existing_value = existing.value;
|
|
1180
|
+
const incoming_value = incoming.value;
|
|
1181
|
+
if (!(existing_value === incoming_value
|
|
1182
|
+
|| (existing_value != null &&
|
|
1183
|
+
incoming_value != null &&
|
|
1184
|
+
equals$h(existing_value, incoming_value)))) {
|
|
1000
1185
|
return false;
|
|
1001
1186
|
}
|
|
1002
1187
|
return true;
|
|
1003
1188
|
}
|
|
1189
|
+
const ingest$d = function SlackBridgeEmojiOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1190
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1191
|
+
const validateError = validate$g(input);
|
|
1192
|
+
if (validateError !== null) {
|
|
1193
|
+
throw validateError;
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
1197
|
+
const ttlToUse = TTL$1;
|
|
1198
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SlackBridge", VERSION$g, RepresentationType$d, equals$g);
|
|
1199
|
+
return createLink(key);
|
|
1200
|
+
};
|
|
1201
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
1202
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1203
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
1204
|
+
rootKeySet.set(rootKey, {
|
|
1205
|
+
namespace: keyPrefix,
|
|
1206
|
+
representationName: RepresentationType$d,
|
|
1207
|
+
mergeable: false
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1004
1210
|
|
|
1005
1211
|
const TTL = 600000;
|
|
1006
|
-
const VERSION$
|
|
1007
|
-
function validate$
|
|
1212
|
+
const VERSION$f = "53030123e17824e401cd635bf346e728";
|
|
1213
|
+
function validate$f(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
1008
1214
|
const v_error = (() => {
|
|
1009
1215
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1010
1216
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1288,11 +1494,8 @@ function validate$g(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1288
1494
|
const path_statusEmoji = path + '.statusEmoji';
|
|
1289
1495
|
let obj_statusEmoji_union0 = null;
|
|
1290
1496
|
const obj_statusEmoji_union0_error = (() => {
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
|
|
1294
|
-
message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1295
|
-
return new TypeError(message);
|
|
1497
|
+
if (typeof obj_statusEmoji !== 'object') {
|
|
1498
|
+
return new TypeError('Expected "object" but received "' + typeof obj_statusEmoji + '" (at "' + path_statusEmoji + '")');
|
|
1296
1499
|
}
|
|
1297
1500
|
})();
|
|
1298
1501
|
if (obj_statusEmoji_union0_error != null) {
|
|
@@ -1373,25 +1576,38 @@ function validate$g(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1373
1576
|
})();
|
|
1374
1577
|
return v_error === undefined ? null : v_error;
|
|
1375
1578
|
}
|
|
1376
|
-
const RepresentationType$
|
|
1377
|
-
function keyBuilder$
|
|
1378
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1579
|
+
const RepresentationType$c = 'SlackBridgeUserInfoOutputRepresentation';
|
|
1580
|
+
function keyBuilder$s(luvio, config) {
|
|
1581
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.teamId + ':' + config.slackUserId;
|
|
1379
1582
|
}
|
|
1380
1583
|
function keyBuilderFromType$6(luvio, object) {
|
|
1381
1584
|
const keyParams = {
|
|
1382
1585
|
teamId: object.teamId,
|
|
1383
1586
|
slackUserId: object.slackUserId
|
|
1384
1587
|
};
|
|
1385
|
-
return keyBuilder$
|
|
1588
|
+
return keyBuilder$s(luvio, keyParams);
|
|
1386
1589
|
}
|
|
1387
|
-
function normalize$
|
|
1590
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
1591
|
+
const input_statusEmoji = input.statusEmoji;
|
|
1592
|
+
const input_statusEmoji_id = path.fullPath + '__statusEmoji';
|
|
1593
|
+
if (input_statusEmoji !== null && typeof input_statusEmoji === 'object') {
|
|
1594
|
+
input.statusEmoji = ingest$d(input_statusEmoji, {
|
|
1595
|
+
fullPath: input_statusEmoji_id,
|
|
1596
|
+
propertyName: 'statusEmoji',
|
|
1597
|
+
parent: {
|
|
1598
|
+
data: input,
|
|
1599
|
+
key: path.fullPath,
|
|
1600
|
+
existing: existing,
|
|
1601
|
+
},
|
|
1602
|
+
ttl: path.ttl
|
|
1603
|
+
}, luvio, store, timestamp);
|
|
1604
|
+
}
|
|
1388
1605
|
return input;
|
|
1389
1606
|
}
|
|
1390
1607
|
const select$x = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
1391
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$y();
|
|
1392
1608
|
return {
|
|
1393
1609
|
kind: 'Fragment',
|
|
1394
|
-
version: VERSION$
|
|
1610
|
+
version: VERSION$f,
|
|
1395
1611
|
private: [],
|
|
1396
1612
|
selections: [
|
|
1397
1613
|
{
|
|
@@ -1448,9 +1664,9 @@ const select$x = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1448
1664
|
},
|
|
1449
1665
|
{
|
|
1450
1666
|
name: 'statusEmoji',
|
|
1451
|
-
kind: '
|
|
1667
|
+
kind: 'Link',
|
|
1452
1668
|
nullable: true,
|
|
1453
|
-
|
|
1669
|
+
fragment: select$y()
|
|
1454
1670
|
},
|
|
1455
1671
|
{
|
|
1456
1672
|
name: 'statusMessage',
|
|
@@ -1467,7 +1683,7 @@ const select$x = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1467
1683
|
]
|
|
1468
1684
|
};
|
|
1469
1685
|
};
|
|
1470
|
-
function equals$
|
|
1686
|
+
function equals$f(existing, incoming) {
|
|
1471
1687
|
const existing_bot = existing.bot;
|
|
1472
1688
|
const incoming_bot = incoming.bot;
|
|
1473
1689
|
if (!(existing_bot === incoming_bot)) {
|
|
@@ -1543,7 +1759,9 @@ function equals$g(existing, incoming) {
|
|
|
1543
1759
|
if (!(existing_statusEmoji === incoming_statusEmoji
|
|
1544
1760
|
|| (existing_statusEmoji != null &&
|
|
1545
1761
|
incoming_statusEmoji != null &&
|
|
1546
|
-
|
|
1762
|
+
existing_statusEmoji.__ref != null &&
|
|
1763
|
+
incoming_statusEmoji.__ref != null &&
|
|
1764
|
+
existing_statusEmoji.__ref === incoming_statusEmoji.__ref))) {
|
|
1547
1765
|
return false;
|
|
1548
1766
|
}
|
|
1549
1767
|
const existing_statusMessage = existing.statusMessage;
|
|
@@ -1558,30 +1776,33 @@ function equals$g(existing, incoming) {
|
|
|
1558
1776
|
}
|
|
1559
1777
|
return true;
|
|
1560
1778
|
}
|
|
1561
|
-
const ingest$
|
|
1779
|
+
const ingest$c = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1562
1780
|
if (process.env.NODE_ENV !== 'production') {
|
|
1563
|
-
const validateError = validate$
|
|
1781
|
+
const validateError = validate$f(input);
|
|
1564
1782
|
if (validateError !== null) {
|
|
1565
1783
|
throw validateError;
|
|
1566
1784
|
}
|
|
1567
1785
|
}
|
|
1568
1786
|
const key = keyBuilderFromType$6(luvio, input);
|
|
1569
1787
|
const ttlToUse = TTL;
|
|
1570
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1788
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$f, RepresentationType$c, equals$f);
|
|
1571
1789
|
return createLink(key);
|
|
1572
1790
|
};
|
|
1573
|
-
function getTypeCacheKeys$
|
|
1791
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
1574
1792
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1575
1793
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
1576
1794
|
rootKeySet.set(rootKey, {
|
|
1577
1795
|
namespace: keyPrefix,
|
|
1578
|
-
representationName: RepresentationType$
|
|
1796
|
+
representationName: RepresentationType$c,
|
|
1579
1797
|
mergeable: false
|
|
1580
1798
|
});
|
|
1799
|
+
if (input.statusEmoji !== null && typeof input.statusEmoji === 'object') {
|
|
1800
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.statusEmoji);
|
|
1801
|
+
}
|
|
1581
1802
|
}
|
|
1582
1803
|
|
|
1583
|
-
const VERSION$
|
|
1584
|
-
function validate$
|
|
1804
|
+
const VERSION$e = "252fe3a6509a770a876e36552ad8dd06";
|
|
1805
|
+
function validate$e(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1585
1806
|
const v_error = (() => {
|
|
1586
1807
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1587
1808
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1918,23 +2139,23 @@ function validate$f(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1918
2139
|
})();
|
|
1919
2140
|
return v_error === undefined ? null : v_error;
|
|
1920
2141
|
}
|
|
1921
|
-
const RepresentationType$
|
|
1922
|
-
function keyBuilder$
|
|
1923
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2142
|
+
const RepresentationType$b = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
2143
|
+
function keyBuilder$r(luvio, config) {
|
|
2144
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.id;
|
|
1924
2145
|
}
|
|
1925
2146
|
function keyBuilderFromType$5(luvio, object) {
|
|
1926
2147
|
const keyParams = {
|
|
1927
2148
|
id: object.id
|
|
1928
2149
|
};
|
|
1929
|
-
return keyBuilder$
|
|
2150
|
+
return keyBuilder$r(luvio, keyParams);
|
|
1930
2151
|
}
|
|
1931
|
-
function normalize$
|
|
2152
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1932
2153
|
return input;
|
|
1933
2154
|
}
|
|
1934
2155
|
const select$w = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1935
2156
|
return {
|
|
1936
2157
|
kind: 'Fragment',
|
|
1937
|
-
version: VERSION$
|
|
2158
|
+
version: VERSION$e,
|
|
1938
2159
|
private: [],
|
|
1939
2160
|
selections: [
|
|
1940
2161
|
{
|
|
@@ -2001,7 +2222,7 @@ const select$w = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
2001
2222
|
]
|
|
2002
2223
|
};
|
|
2003
2224
|
};
|
|
2004
|
-
function equals$
|
|
2225
|
+
function equals$e(existing, incoming) {
|
|
2005
2226
|
const existing_id = existing.id;
|
|
2006
2227
|
const incoming_id = incoming.id;
|
|
2007
2228
|
if (!(existing_id === incoming_id)) {
|
|
@@ -2087,30 +2308,30 @@ function equals$f(existing, incoming) {
|
|
|
2087
2308
|
}
|
|
2088
2309
|
return true;
|
|
2089
2310
|
}
|
|
2090
|
-
const ingest$
|
|
2311
|
+
const ingest$b = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2091
2312
|
if (process.env.NODE_ENV !== 'production') {
|
|
2092
|
-
const validateError = validate$
|
|
2313
|
+
const validateError = validate$e(input);
|
|
2093
2314
|
if (validateError !== null) {
|
|
2094
2315
|
throw validateError;
|
|
2095
2316
|
}
|
|
2096
2317
|
}
|
|
2097
2318
|
const key = keyBuilderFromType$5(luvio, input);
|
|
2098
2319
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2099
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2320
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$e, RepresentationType$b, equals$e);
|
|
2100
2321
|
return createLink(key);
|
|
2101
2322
|
};
|
|
2102
|
-
function getTypeCacheKeys$
|
|
2323
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
2103
2324
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2104
2325
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
2105
2326
|
rootKeySet.set(rootKey, {
|
|
2106
2327
|
namespace: keyPrefix,
|
|
2107
|
-
representationName: RepresentationType$
|
|
2328
|
+
representationName: RepresentationType$b,
|
|
2108
2329
|
mergeable: false
|
|
2109
2330
|
});
|
|
2110
2331
|
}
|
|
2111
2332
|
|
|
2112
|
-
const VERSION$
|
|
2113
|
-
function validate$
|
|
2333
|
+
const VERSION$d = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
2334
|
+
function validate$d(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
2114
2335
|
const v_error = (() => {
|
|
2115
2336
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2116
2337
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2131,7 +2352,7 @@ function validate$e(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
2131
2352
|
const select$v = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
2132
2353
|
return {
|
|
2133
2354
|
kind: 'Fragment',
|
|
2134
|
-
version: VERSION$
|
|
2355
|
+
version: VERSION$d,
|
|
2135
2356
|
private: [],
|
|
2136
2357
|
selections: [
|
|
2137
2358
|
{
|
|
@@ -2145,7 +2366,7 @@ const select$v = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
|
2145
2366
|
]
|
|
2146
2367
|
};
|
|
2147
2368
|
};
|
|
2148
|
-
function equals$
|
|
2369
|
+
function equals$d(existing, incoming) {
|
|
2149
2370
|
const existing_extension = existing.extension;
|
|
2150
2371
|
const incoming_extension = incoming.extension;
|
|
2151
2372
|
if (!(existing_extension === incoming_extension)) {
|
|
@@ -2159,8 +2380,8 @@ function equals$e(existing, incoming) {
|
|
|
2159
2380
|
return true;
|
|
2160
2381
|
}
|
|
2161
2382
|
|
|
2162
|
-
const VERSION$
|
|
2163
|
-
function validate$
|
|
2383
|
+
const VERSION$c = "3ef7c0314c9cc37a0b6c3b0dbd6a76a5";
|
|
2384
|
+
function validate$c(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
|
|
2164
2385
|
const v_error = (() => {
|
|
2165
2386
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2166
2387
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2174,7 +2395,7 @@ function validate$d(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
2174
2395
|
const path_filetype = path + '.filetype';
|
|
2175
2396
|
let obj_filetype_union0 = null;
|
|
2176
2397
|
const obj_filetype_union0_error = (() => {
|
|
2177
|
-
const referencepath_filetypeValidationError = validate$
|
|
2398
|
+
const referencepath_filetypeValidationError = validate$d(obj_filetype, path_filetype);
|
|
2178
2399
|
if (referencepath_filetypeValidationError !== null) {
|
|
2179
2400
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
2180
2401
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2247,7 +2468,7 @@ const select$u = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
2247
2468
|
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$v();
|
|
2248
2469
|
return {
|
|
2249
2470
|
kind: 'Fragment',
|
|
2250
|
-
version: VERSION$
|
|
2471
|
+
version: VERSION$c,
|
|
2251
2472
|
private: [],
|
|
2252
2473
|
selections: [
|
|
2253
2474
|
{
|
|
@@ -2279,7 +2500,7 @@ const select$u = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
2279
2500
|
]
|
|
2280
2501
|
};
|
|
2281
2502
|
};
|
|
2282
|
-
function equals$
|
|
2503
|
+
function equals$c(existing, incoming) {
|
|
2283
2504
|
const existing_size = existing.size;
|
|
2284
2505
|
const incoming_size = incoming.size;
|
|
2285
2506
|
if (!(existing_size === incoming_size)) {
|
|
@@ -2305,7 +2526,7 @@ function equals$d(existing, incoming) {
|
|
|
2305
2526
|
if (!(existing_filetype === incoming_filetype
|
|
2306
2527
|
|| (existing_filetype != null &&
|
|
2307
2528
|
incoming_filetype != null &&
|
|
2308
|
-
equals$
|
|
2529
|
+
equals$d(existing_filetype, incoming_filetype)))) {
|
|
2309
2530
|
return false;
|
|
2310
2531
|
}
|
|
2311
2532
|
const existing_versionUrl = existing.versionUrl;
|
|
@@ -2316,15 +2537,15 @@ function equals$d(existing, incoming) {
|
|
|
2316
2537
|
return true;
|
|
2317
2538
|
}
|
|
2318
2539
|
|
|
2319
|
-
const VERSION$
|
|
2320
|
-
function validate$
|
|
2540
|
+
const VERSION$b = "effdd259bc622bee05493fc2a3ecd276";
|
|
2541
|
+
function validate$b(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
|
|
2321
2542
|
const v_error = (() => {
|
|
2322
2543
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2323
2544
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2324
2545
|
}
|
|
2325
2546
|
const obj_filetype = obj.filetype;
|
|
2326
2547
|
const path_filetype = path + '.filetype';
|
|
2327
|
-
const referencepath_filetypeValidationError = validate$
|
|
2548
|
+
const referencepath_filetypeValidationError = validate$d(obj_filetype, path_filetype);
|
|
2328
2549
|
if (referencepath_filetypeValidationError !== null) {
|
|
2329
2550
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
2330
2551
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2337,7 +2558,7 @@ function validate$c(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
2337
2558
|
}
|
|
2338
2559
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
2339
2560
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
2340
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
2561
|
+
const referencepath_latestPublishedVersionValidationError = validate$c(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
2341
2562
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
2342
2563
|
let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
2343
2564
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2361,7 +2582,7 @@ const select$t = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
2361
2582
|
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$u();
|
|
2362
2583
|
return {
|
|
2363
2584
|
kind: 'Fragment',
|
|
2364
|
-
version: VERSION$
|
|
2585
|
+
version: VERSION$b,
|
|
2365
2586
|
private: [],
|
|
2366
2587
|
selections: [
|
|
2367
2588
|
{
|
|
@@ -2389,7 +2610,7 @@ const select$t = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
2389
2610
|
]
|
|
2390
2611
|
};
|
|
2391
2612
|
};
|
|
2392
|
-
function equals$
|
|
2613
|
+
function equals$b(existing, incoming) {
|
|
2393
2614
|
const existing_size = existing.size;
|
|
2394
2615
|
const incoming_size = incoming.size;
|
|
2395
2616
|
if (!(existing_size === incoming_size)) {
|
|
@@ -2407,19 +2628,19 @@ function equals$c(existing, incoming) {
|
|
|
2407
2628
|
}
|
|
2408
2629
|
const existing_filetype = existing.filetype;
|
|
2409
2630
|
const incoming_filetype = incoming.filetype;
|
|
2410
|
-
if (!(equals$
|
|
2631
|
+
if (!(equals$d(existing_filetype, incoming_filetype))) {
|
|
2411
2632
|
return false;
|
|
2412
2633
|
}
|
|
2413
2634
|
const existing_latestPublishedVersion = existing.latestPublishedVersion;
|
|
2414
2635
|
const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
|
|
2415
|
-
if (!(equals$
|
|
2636
|
+
if (!(equals$c(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
|
|
2416
2637
|
return false;
|
|
2417
2638
|
}
|
|
2418
2639
|
return true;
|
|
2419
2640
|
}
|
|
2420
2641
|
|
|
2421
|
-
const VERSION$
|
|
2422
|
-
function validate$
|
|
2642
|
+
const VERSION$a = "15fa7211c500ebba9537b3c9921b39cf";
|
|
2643
|
+
function validate$a(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
2423
2644
|
const v_error = (() => {
|
|
2424
2645
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2425
2646
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2428,7 +2649,7 @@ function validate$b(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2428
2649
|
const path_contentDocument = path + '.contentDocument';
|
|
2429
2650
|
let obj_contentDocument_union0 = null;
|
|
2430
2651
|
const obj_contentDocument_union0_error = (() => {
|
|
2431
|
-
const referencepath_contentDocumentValidationError = validate$
|
|
2652
|
+
const referencepath_contentDocumentValidationError = validate$b(obj_contentDocument, path_contentDocument);
|
|
2432
2653
|
if (referencepath_contentDocumentValidationError !== null) {
|
|
2433
2654
|
let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
2434
2655
|
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2590,24 +2811,24 @@ function validate$b(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2590
2811
|
})();
|
|
2591
2812
|
return v_error === undefined ? null : v_error;
|
|
2592
2813
|
}
|
|
2593
|
-
const RepresentationType$
|
|
2594
|
-
function keyBuilder$
|
|
2595
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2814
|
+
const RepresentationType$a = 'SlackBridgeFileOutputRepresentation';
|
|
2815
|
+
function keyBuilder$q(luvio, config) {
|
|
2816
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2596
2817
|
}
|
|
2597
2818
|
function keyBuilderFromType$4(luvio, object) {
|
|
2598
2819
|
const keyParams = {
|
|
2599
2820
|
uniqueKey: object.uniqueKey
|
|
2600
2821
|
};
|
|
2601
|
-
return keyBuilder$
|
|
2822
|
+
return keyBuilder$q(luvio, keyParams);
|
|
2602
2823
|
}
|
|
2603
|
-
function normalize$
|
|
2824
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
2604
2825
|
return input;
|
|
2605
2826
|
}
|
|
2606
2827
|
const select$s = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2607
2828
|
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$t();
|
|
2608
2829
|
return {
|
|
2609
2830
|
kind: 'Fragment',
|
|
2610
|
-
version: VERSION$
|
|
2831
|
+
version: VERSION$a,
|
|
2611
2832
|
private: [],
|
|
2612
2833
|
selections: [
|
|
2613
2834
|
{
|
|
@@ -2659,7 +2880,7 @@ const select$s = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
2659
2880
|
]
|
|
2660
2881
|
};
|
|
2661
2882
|
};
|
|
2662
|
-
function equals$
|
|
2883
|
+
function equals$a(existing, incoming) {
|
|
2663
2884
|
const existing_filetype = existing.filetype;
|
|
2664
2885
|
const incoming_filetype = incoming.filetype;
|
|
2665
2886
|
if (!(existing_filetype === incoming_filetype)) {
|
|
@@ -2695,7 +2916,7 @@ function equals$b(existing, incoming) {
|
|
|
2695
2916
|
if (!(existing_contentDocument === incoming_contentDocument
|
|
2696
2917
|
|| (existing_contentDocument != null &&
|
|
2697
2918
|
incoming_contentDocument != null &&
|
|
2698
|
-
equals$
|
|
2919
|
+
equals$b(existing_contentDocument, incoming_contentDocument)))) {
|
|
2699
2920
|
return false;
|
|
2700
2921
|
}
|
|
2701
2922
|
const existing_size = existing.size;
|
|
@@ -2720,30 +2941,30 @@ function equals$b(existing, incoming) {
|
|
|
2720
2941
|
}
|
|
2721
2942
|
return true;
|
|
2722
2943
|
}
|
|
2723
|
-
const ingest$
|
|
2944
|
+
const ingest$a = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2724
2945
|
if (process.env.NODE_ENV !== 'production') {
|
|
2725
|
-
const validateError = validate$
|
|
2946
|
+
const validateError = validate$a(input);
|
|
2726
2947
|
if (validateError !== null) {
|
|
2727
2948
|
throw validateError;
|
|
2728
2949
|
}
|
|
2729
2950
|
}
|
|
2730
2951
|
const key = keyBuilderFromType$4(luvio, input);
|
|
2731
2952
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2732
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2953
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
|
|
2733
2954
|
return createLink(key);
|
|
2734
2955
|
};
|
|
2735
|
-
function getTypeCacheKeys$
|
|
2956
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
2736
2957
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2737
2958
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
2738
2959
|
rootKeySet.set(rootKey, {
|
|
2739
2960
|
namespace: keyPrefix,
|
|
2740
|
-
representationName: RepresentationType$
|
|
2961
|
+
representationName: RepresentationType$a,
|
|
2741
2962
|
mergeable: false
|
|
2742
2963
|
});
|
|
2743
2964
|
}
|
|
2744
2965
|
|
|
2745
|
-
const VERSION$
|
|
2746
|
-
function validate$
|
|
2966
|
+
const VERSION$9 = "a8502e4e4bb65313c6fbaa1f89f1e539";
|
|
2967
|
+
function validate$9(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
2747
2968
|
const v_error = (() => {
|
|
2748
2969
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2749
2970
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3091,14 +3312,14 @@ function validate$a(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
3091
3312
|
})();
|
|
3092
3313
|
return v_error === undefined ? null : v_error;
|
|
3093
3314
|
}
|
|
3094
|
-
const RepresentationType$
|
|
3095
|
-
function normalize$
|
|
3315
|
+
const RepresentationType$9 = 'SlackBridgeMessageOutputRepresentation';
|
|
3316
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
3096
3317
|
const input_files = input.files;
|
|
3097
3318
|
const input_files_id = path.fullPath + '__files';
|
|
3098
3319
|
for (let i = 0; i < input_files.length; i++) {
|
|
3099
3320
|
const input_files_item = input_files[i];
|
|
3100
3321
|
let input_files_item_id = input_files_id + '__' + i;
|
|
3101
|
-
input_files[i] = ingest$
|
|
3322
|
+
input_files[i] = ingest$a(input_files_item, {
|
|
3102
3323
|
fullPath: input_files_item_id,
|
|
3103
3324
|
propertyName: i,
|
|
3104
3325
|
parent: {
|
|
@@ -3112,10 +3333,10 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3112
3333
|
return input;
|
|
3113
3334
|
}
|
|
3114
3335
|
const select$r = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
3115
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
3336
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$B();
|
|
3116
3337
|
return {
|
|
3117
3338
|
kind: 'Fragment',
|
|
3118
|
-
version: VERSION$
|
|
3339
|
+
version: VERSION$9,
|
|
3119
3340
|
private: [],
|
|
3120
3341
|
selections: [
|
|
3121
3342
|
{
|
|
@@ -3204,7 +3425,7 @@ const select$r = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
3204
3425
|
]
|
|
3205
3426
|
};
|
|
3206
3427
|
};
|
|
3207
|
-
function equals$
|
|
3428
|
+
function equals$9(existing, incoming) {
|
|
3208
3429
|
const existing_isEditable = existing.isEditable;
|
|
3209
3430
|
const incoming_isEditable = incoming.isEditable;
|
|
3210
3431
|
if (!(existing_isEditable === incoming_isEditable)) {
|
|
@@ -3337,34 +3558,34 @@ function equals$a(existing, incoming) {
|
|
|
3337
3558
|
}
|
|
3338
3559
|
return true;
|
|
3339
3560
|
}
|
|
3340
|
-
const ingest$
|
|
3561
|
+
const ingest$9 = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3341
3562
|
if (process.env.NODE_ENV !== 'production') {
|
|
3342
|
-
const validateError = validate$
|
|
3563
|
+
const validateError = validate$9(input);
|
|
3343
3564
|
if (validateError !== null) {
|
|
3344
3565
|
throw validateError;
|
|
3345
3566
|
}
|
|
3346
3567
|
}
|
|
3347
3568
|
const key = path.fullPath;
|
|
3348
3569
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3349
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3570
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
|
|
3350
3571
|
return createLink(key);
|
|
3351
3572
|
};
|
|
3352
|
-
function getTypeCacheKeys$
|
|
3573
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
3353
3574
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3354
3575
|
const rootKey = fullPathFactory();
|
|
3355
3576
|
rootKeySet.set(rootKey, {
|
|
3356
3577
|
namespace: keyPrefix,
|
|
3357
|
-
representationName: RepresentationType$
|
|
3578
|
+
representationName: RepresentationType$9,
|
|
3358
3579
|
mergeable: false
|
|
3359
3580
|
});
|
|
3360
3581
|
const input_files_length = input.files.length;
|
|
3361
3582
|
for (let i = 0; i < input_files_length; i++) {
|
|
3362
|
-
getTypeCacheKeys$
|
|
3583
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.files[i]);
|
|
3363
3584
|
}
|
|
3364
3585
|
}
|
|
3365
3586
|
|
|
3366
|
-
const VERSION$
|
|
3367
|
-
function validate$
|
|
3587
|
+
const VERSION$8 = "5145ac2c241c561e4baa29b3884748dc";
|
|
3588
|
+
function validate$8(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
|
|
3368
3589
|
const v_error = (() => {
|
|
3369
3590
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3370
3591
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3415,14 +3636,14 @@ function validate$9(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
|
|
|
3415
3636
|
})();
|
|
3416
3637
|
return v_error === undefined ? null : v_error;
|
|
3417
3638
|
}
|
|
3418
|
-
const RepresentationType$
|
|
3419
|
-
function normalize$
|
|
3639
|
+
const RepresentationType$8 = 'SlackBridgeConversationHistoryOutputRepresentation';
|
|
3640
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
3420
3641
|
const input_messages = input.messages;
|
|
3421
3642
|
const input_messages_id = path.fullPath + '__messages';
|
|
3422
3643
|
for (let i = 0; i < input_messages.length; i++) {
|
|
3423
3644
|
const input_messages_item = input_messages[i];
|
|
3424
3645
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
3425
|
-
input_messages[i] = ingest$
|
|
3646
|
+
input_messages[i] = ingest$9(input_messages_item, {
|
|
3426
3647
|
fullPath: input_messages_item_id,
|
|
3427
3648
|
propertyName: i,
|
|
3428
3649
|
parent: {
|
|
@@ -3438,7 +3659,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
3438
3659
|
const select$q = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
3439
3660
|
return {
|
|
3440
3661
|
kind: 'Fragment',
|
|
3441
|
-
version: VERSION$
|
|
3662
|
+
version: VERSION$8,
|
|
3442
3663
|
private: [],
|
|
3443
3664
|
selections: [
|
|
3444
3665
|
{
|
|
@@ -3458,7 +3679,7 @@ const select$q = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
3458
3679
|
]
|
|
3459
3680
|
};
|
|
3460
3681
|
};
|
|
3461
|
-
function equals$
|
|
3682
|
+
function equals$8(existing, incoming) {
|
|
3462
3683
|
const existing_hasMore = existing.hasMore;
|
|
3463
3684
|
const incoming_hasMore = incoming.hasMore;
|
|
3464
3685
|
if (!(existing_hasMore === incoming_hasMore)) {
|
|
@@ -3481,34 +3702,34 @@ function equals$9(existing, incoming) {
|
|
|
3481
3702
|
}
|
|
3482
3703
|
return true;
|
|
3483
3704
|
}
|
|
3484
|
-
const ingest$
|
|
3705
|
+
const ingest$8 = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3485
3706
|
if (process.env.NODE_ENV !== 'production') {
|
|
3486
|
-
const validateError = validate$
|
|
3707
|
+
const validateError = validate$8(input);
|
|
3487
3708
|
if (validateError !== null) {
|
|
3488
3709
|
throw validateError;
|
|
3489
3710
|
}
|
|
3490
3711
|
}
|
|
3491
3712
|
const key = path.fullPath;
|
|
3492
3713
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3493
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3714
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
|
|
3494
3715
|
return createLink(key);
|
|
3495
3716
|
};
|
|
3496
|
-
function getTypeCacheKeys$
|
|
3717
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
3497
3718
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3498
3719
|
const rootKey = fullPathFactory();
|
|
3499
3720
|
rootKeySet.set(rootKey, {
|
|
3500
3721
|
namespace: keyPrefix,
|
|
3501
|
-
representationName: RepresentationType$
|
|
3722
|
+
representationName: RepresentationType$8,
|
|
3502
3723
|
mergeable: false
|
|
3503
3724
|
});
|
|
3504
3725
|
const input_messages_length = input.messages.length;
|
|
3505
3726
|
for (let i = 0; i < input_messages_length; i++) {
|
|
3506
|
-
getTypeCacheKeys$
|
|
3727
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.messages[i], () => '');
|
|
3507
3728
|
}
|
|
3508
3729
|
}
|
|
3509
3730
|
|
|
3510
|
-
const VERSION$
|
|
3511
|
-
function validate$
|
|
3731
|
+
const VERSION$7 = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
3732
|
+
function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
3512
3733
|
const v_error = (() => {
|
|
3513
3734
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3514
3735
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3652,12 +3873,12 @@ function validate$8(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3652
3873
|
})();
|
|
3653
3874
|
return v_error === undefined ? null : v_error;
|
|
3654
3875
|
}
|
|
3655
|
-
const RepresentationType$
|
|
3656
|
-
function normalize$
|
|
3876
|
+
const RepresentationType$7 = 'SlackBridgeConversationOutputRepresentation';
|
|
3877
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
3657
3878
|
const input_contextUserInfo = input.contextUserInfo;
|
|
3658
3879
|
const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
|
|
3659
3880
|
if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
|
|
3660
|
-
input.contextUserInfo = ingest$
|
|
3881
|
+
input.contextUserInfo = ingest$c(input_contextUserInfo, {
|
|
3661
3882
|
fullPath: input_contextUserInfo_id,
|
|
3662
3883
|
propertyName: 'contextUserInfo',
|
|
3663
3884
|
parent: {
|
|
@@ -3671,7 +3892,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
3671
3892
|
const input_conversationInfo = input.conversationInfo;
|
|
3672
3893
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
3673
3894
|
if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
|
|
3674
|
-
input.conversationInfo = ingest$
|
|
3895
|
+
input.conversationInfo = ingest$b(input_conversationInfo, {
|
|
3675
3896
|
fullPath: input_conversationInfo_id,
|
|
3676
3897
|
propertyName: 'conversationInfo',
|
|
3677
3898
|
parent: {
|
|
@@ -3684,7 +3905,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
3684
3905
|
}
|
|
3685
3906
|
const input_history = input.history;
|
|
3686
3907
|
const input_history_id = path.fullPath + '__history';
|
|
3687
|
-
input.history = ingest$
|
|
3908
|
+
input.history = ingest$8(input_history, {
|
|
3688
3909
|
fullPath: input_history_id,
|
|
3689
3910
|
propertyName: 'history',
|
|
3690
3911
|
parent: {
|
|
@@ -3699,7 +3920,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
3699
3920
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
3700
3921
|
const input_userInfos_item = input_userInfos[i];
|
|
3701
3922
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
3702
|
-
input_userInfos[i] = ingest$
|
|
3923
|
+
input_userInfos[i] = ingest$c(input_userInfos_item, {
|
|
3703
3924
|
fullPath: input_userInfos_item_id,
|
|
3704
3925
|
propertyName: i,
|
|
3705
3926
|
parent: {
|
|
@@ -3715,7 +3936,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
3715
3936
|
const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3716
3937
|
return {
|
|
3717
3938
|
kind: 'Fragment',
|
|
3718
|
-
version: VERSION$
|
|
3939
|
+
version: VERSION$7,
|
|
3719
3940
|
private: [],
|
|
3720
3941
|
selections: [
|
|
3721
3942
|
{
|
|
@@ -3764,7 +3985,7 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3764
3985
|
]
|
|
3765
3986
|
};
|
|
3766
3987
|
};
|
|
3767
|
-
function equals$
|
|
3988
|
+
function equals$7(existing, incoming) {
|
|
3768
3989
|
const existing_channelId = existing.channelId;
|
|
3769
3990
|
const incoming_channelId = incoming.channelId;
|
|
3770
3991
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3827,52 +4048,52 @@ function equals$8(existing, incoming) {
|
|
|
3827
4048
|
}
|
|
3828
4049
|
return true;
|
|
3829
4050
|
}
|
|
3830
|
-
const ingest$
|
|
4051
|
+
const ingest$7 = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3831
4052
|
if (process.env.NODE_ENV !== 'production') {
|
|
3832
|
-
const validateError = validate$
|
|
4053
|
+
const validateError = validate$7(input);
|
|
3833
4054
|
if (validateError !== null) {
|
|
3834
4055
|
throw validateError;
|
|
3835
4056
|
}
|
|
3836
4057
|
}
|
|
3837
4058
|
const key = path.fullPath;
|
|
3838
4059
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3839
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4060
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$7, RepresentationType$7, equals$7);
|
|
3840
4061
|
return createLink(key);
|
|
3841
4062
|
};
|
|
3842
|
-
function getTypeCacheKeys$
|
|
4063
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
3843
4064
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3844
4065
|
const rootKey = fullPathFactory();
|
|
3845
4066
|
rootKeySet.set(rootKey, {
|
|
3846
4067
|
namespace: keyPrefix,
|
|
3847
|
-
representationName: RepresentationType$
|
|
4068
|
+
representationName: RepresentationType$7,
|
|
3848
4069
|
mergeable: false
|
|
3849
4070
|
});
|
|
3850
4071
|
if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
|
|
3851
|
-
getTypeCacheKeys$
|
|
4072
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.contextUserInfo);
|
|
3852
4073
|
}
|
|
3853
4074
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3854
|
-
getTypeCacheKeys$
|
|
4075
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.conversationInfo);
|
|
3855
4076
|
}
|
|
3856
|
-
getTypeCacheKeys$
|
|
4077
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3857
4078
|
const input_userInfos_length = input.userInfos.length;
|
|
3858
4079
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
3859
|
-
getTypeCacheKeys$
|
|
4080
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.userInfos[i]);
|
|
3860
4081
|
}
|
|
3861
4082
|
}
|
|
3862
4083
|
|
|
3863
4084
|
function select$o(luvio, params) {
|
|
3864
4085
|
return select$p();
|
|
3865
4086
|
}
|
|
3866
|
-
function keyBuilder$
|
|
4087
|
+
function keyBuilder$p(luvio, params) {
|
|
3867
4088
|
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
3868
4089
|
}
|
|
3869
|
-
function getResponseCacheKeys$
|
|
3870
|
-
getTypeCacheKeys$
|
|
4090
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
4091
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
|
|
3871
4092
|
}
|
|
3872
|
-
function ingestSuccess$
|
|
4093
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
3873
4094
|
const { body } = response;
|
|
3874
|
-
const key = keyBuilder$
|
|
3875
|
-
luvio.storeIngest(key, ingest$
|
|
4095
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
4096
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
3876
4097
|
const snapshot = luvio.storeLookup({
|
|
3877
4098
|
recordId: key,
|
|
3878
4099
|
node: select$o(),
|
|
@@ -3886,13 +4107,13 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3886
4107
|
deepFreeze(snapshot.data);
|
|
3887
4108
|
return snapshot;
|
|
3888
4109
|
}
|
|
3889
|
-
function ingestError$
|
|
3890
|
-
const key = keyBuilder$
|
|
4110
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
4111
|
+
const key = keyBuilder$p(luvio, params);
|
|
3891
4112
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3892
4113
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3893
4114
|
return errorSnapshot;
|
|
3894
4115
|
}
|
|
3895
|
-
function createResourceRequest$
|
|
4116
|
+
function createResourceRequest$h(config) {
|
|
3896
4117
|
const headers = {};
|
|
3897
4118
|
return {
|
|
3898
4119
|
baseUri: '/services/data/v63.0',
|
|
@@ -3906,7 +4127,7 @@ function createResourceRequest$g(config) {
|
|
|
3906
4127
|
};
|
|
3907
4128
|
}
|
|
3908
4129
|
|
|
3909
|
-
const adapterName$
|
|
4130
|
+
const adapterName$h = 'getSlackConversation';
|
|
3910
4131
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3911
4132
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3912
4133
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3918,102 +4139,102 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3918
4139
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3919
4140
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3920
4141
|
];
|
|
3921
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3922
|
-
const createResourceParams$
|
|
3923
|
-
function keyBuilder$
|
|
3924
|
-
const resourceParams = createResourceParams$
|
|
3925
|
-
return keyBuilder$
|
|
4142
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackConversation_ConfigPropertyMetadata);
|
|
4143
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$l(getSlackConversation_ConfigPropertyMetadata);
|
|
4144
|
+
function keyBuilder$o(luvio, config) {
|
|
4145
|
+
const resourceParams = createResourceParams$h(config);
|
|
4146
|
+
return keyBuilder$p(luvio, resourceParams);
|
|
3926
4147
|
}
|
|
3927
|
-
function typeCheckConfig$
|
|
4148
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
3928
4149
|
const config = {};
|
|
3929
|
-
typeCheckConfig$
|
|
4150
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3930
4151
|
return config;
|
|
3931
4152
|
}
|
|
3932
|
-
function validateAdapterConfig$
|
|
4153
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
3933
4154
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3934
4155
|
return null;
|
|
3935
4156
|
}
|
|
3936
4157
|
if (process.env.NODE_ENV !== 'production') {
|
|
3937
4158
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3938
4159
|
}
|
|
3939
|
-
const config = typeCheckConfig$
|
|
4160
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
3940
4161
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3941
4162
|
return null;
|
|
3942
4163
|
}
|
|
3943
4164
|
return config;
|
|
3944
4165
|
}
|
|
3945
|
-
function adapterFragment$
|
|
3946
|
-
createResourceParams$
|
|
4166
|
+
function adapterFragment$a(luvio, config) {
|
|
4167
|
+
createResourceParams$h(config);
|
|
3947
4168
|
return select$o();
|
|
3948
4169
|
}
|
|
3949
|
-
function onFetchResponseSuccess$
|
|
3950
|
-
const snapshot = ingestSuccess$
|
|
4170
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4171
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
3951
4172
|
config,
|
|
3952
|
-
resolve: () => buildNetworkSnapshot$
|
|
4173
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
3953
4174
|
});
|
|
3954
4175
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3955
4176
|
}
|
|
3956
|
-
function onFetchResponseError$
|
|
3957
|
-
const snapshot = ingestError$
|
|
4177
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
4178
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
3958
4179
|
config,
|
|
3959
|
-
resolve: () => buildNetworkSnapshot$
|
|
4180
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
3960
4181
|
});
|
|
3961
4182
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3962
4183
|
}
|
|
3963
|
-
function buildNetworkSnapshot$
|
|
3964
|
-
const resourceParams = createResourceParams$
|
|
3965
|
-
const request = createResourceRequest$
|
|
4184
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
4185
|
+
const resourceParams = createResourceParams$h(config);
|
|
4186
|
+
const request = createResourceRequest$h(resourceParams);
|
|
3966
4187
|
return luvio.dispatchResourceRequest(request, options)
|
|
3967
4188
|
.then((response) => {
|
|
3968
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4189
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
3969
4190
|
const cache = new StoreKeyMap();
|
|
3970
|
-
getResponseCacheKeys$
|
|
4191
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
3971
4192
|
return cache;
|
|
3972
4193
|
});
|
|
3973
4194
|
}, (response) => {
|
|
3974
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4195
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
3975
4196
|
});
|
|
3976
4197
|
}
|
|
3977
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3978
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4198
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4199
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
3979
4200
|
}
|
|
3980
|
-
function buildCachedSnapshotCachePolicy$
|
|
4201
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
3981
4202
|
const { luvio, config } = context;
|
|
3982
4203
|
const selector = {
|
|
3983
|
-
recordId: keyBuilder$
|
|
3984
|
-
node: adapterFragment$
|
|
4204
|
+
recordId: keyBuilder$o(luvio, config),
|
|
4205
|
+
node: adapterFragment$a(luvio, config),
|
|
3985
4206
|
variables: {},
|
|
3986
4207
|
};
|
|
3987
4208
|
const cacheSnapshot = storeLookup(selector, {
|
|
3988
4209
|
config,
|
|
3989
|
-
resolve: () => buildNetworkSnapshot$
|
|
4210
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
3990
4211
|
});
|
|
3991
4212
|
return cacheSnapshot;
|
|
3992
4213
|
}
|
|
3993
4214
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3994
|
-
const config = validateAdapterConfig$
|
|
4215
|
+
const config = validateAdapterConfig$h(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3995
4216
|
// Invalid or incomplete config
|
|
3996
4217
|
if (config === null) {
|
|
3997
4218
|
return null;
|
|
3998
4219
|
}
|
|
3999
4220
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4000
|
-
buildCachedSnapshotCachePolicy$
|
|
4221
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4001
4222
|
};
|
|
4002
4223
|
|
|
4003
4224
|
function select$n(luvio, params) {
|
|
4004
|
-
return select$
|
|
4225
|
+
return select$D();
|
|
4005
4226
|
}
|
|
4006
|
-
function keyBuilder$
|
|
4007
|
-
return keyBuilder$
|
|
4227
|
+
function keyBuilder$n(luvio, params) {
|
|
4228
|
+
return keyBuilder$z(luvio, {
|
|
4008
4229
|
channelId: params.urlParams.channelId
|
|
4009
4230
|
});
|
|
4010
4231
|
}
|
|
4011
|
-
function getResponseCacheKeys$
|
|
4232
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
4012
4233
|
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
4013
4234
|
}
|
|
4014
|
-
function ingestSuccess$
|
|
4235
|
+
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
4015
4236
|
const { body } = response;
|
|
4016
|
-
const key = keyBuilder$
|
|
4237
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
4017
4238
|
luvio.storeIngest(key, ingest$g, body);
|
|
4018
4239
|
const snapshot = luvio.storeLookup({
|
|
4019
4240
|
recordId: key,
|
|
@@ -4028,13 +4249,13 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4028
4249
|
deepFreeze(snapshot.data);
|
|
4029
4250
|
return snapshot;
|
|
4030
4251
|
}
|
|
4031
|
-
function ingestError$
|
|
4032
|
-
const key = keyBuilder$
|
|
4252
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4253
|
+
const key = keyBuilder$n(luvio, params);
|
|
4033
4254
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4034
4255
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4035
4256
|
return errorSnapshot;
|
|
4036
4257
|
}
|
|
4037
|
-
function createResourceRequest$
|
|
4258
|
+
function createResourceRequest$g(config) {
|
|
4038
4259
|
const headers = {};
|
|
4039
4260
|
return {
|
|
4040
4261
|
baseUri: '/services/data/v63.0',
|
|
@@ -4047,108 +4268,108 @@ function createResourceRequest$f(config) {
|
|
|
4047
4268
|
priority: 'normal',
|
|
4048
4269
|
};
|
|
4049
4270
|
}
|
|
4050
|
-
function createResourceRequestFromRepresentation$
|
|
4271
|
+
function createResourceRequestFromRepresentation$5(representation) {
|
|
4051
4272
|
const config = {
|
|
4052
4273
|
urlParams: {},
|
|
4053
4274
|
};
|
|
4054
4275
|
config.urlParams.channelId = representation.channelId;
|
|
4055
|
-
return createResourceRequest$
|
|
4276
|
+
return createResourceRequest$g(config);
|
|
4056
4277
|
}
|
|
4057
4278
|
|
|
4058
|
-
const adapterName$
|
|
4279
|
+
const adapterName$g = 'getSlackConversationMember';
|
|
4059
4280
|
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
4060
4281
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4061
4282
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4062
4283
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4063
4284
|
];
|
|
4064
|
-
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4065
|
-
const createResourceParams$
|
|
4066
|
-
function keyBuilder$
|
|
4067
|
-
const resourceParams = createResourceParams$
|
|
4068
|
-
return keyBuilder$
|
|
4285
|
+
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4286
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$l(getSlackConversationMember_ConfigPropertyMetadata);
|
|
4287
|
+
function keyBuilder$m(luvio, config) {
|
|
4288
|
+
const resourceParams = createResourceParams$g(config);
|
|
4289
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
4069
4290
|
}
|
|
4070
|
-
function typeCheckConfig$
|
|
4291
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
4071
4292
|
const config = {};
|
|
4072
|
-
typeCheckConfig$
|
|
4293
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4073
4294
|
return config;
|
|
4074
4295
|
}
|
|
4075
|
-
function validateAdapterConfig$
|
|
4296
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
4076
4297
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4077
4298
|
return null;
|
|
4078
4299
|
}
|
|
4079
4300
|
if (process.env.NODE_ENV !== 'production') {
|
|
4080
4301
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4081
4302
|
}
|
|
4082
|
-
const config = typeCheckConfig$
|
|
4303
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
4083
4304
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4084
4305
|
return null;
|
|
4085
4306
|
}
|
|
4086
4307
|
return config;
|
|
4087
4308
|
}
|
|
4088
|
-
function adapterFragment$
|
|
4089
|
-
createResourceParams$
|
|
4309
|
+
function adapterFragment$9(luvio, config) {
|
|
4310
|
+
createResourceParams$g(config);
|
|
4090
4311
|
return select$n();
|
|
4091
4312
|
}
|
|
4092
|
-
function onFetchResponseSuccess$
|
|
4093
|
-
const snapshot = ingestSuccess$
|
|
4313
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4314
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
4094
4315
|
config,
|
|
4095
|
-
resolve: () => buildNetworkSnapshot$
|
|
4316
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
4096
4317
|
});
|
|
4097
4318
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4098
4319
|
}
|
|
4099
|
-
function onFetchResponseError$
|
|
4100
|
-
const snapshot = ingestError$
|
|
4320
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4321
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
4101
4322
|
config,
|
|
4102
|
-
resolve: () => buildNetworkSnapshot$
|
|
4323
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
4103
4324
|
});
|
|
4104
4325
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4105
4326
|
}
|
|
4106
|
-
function buildNetworkSnapshot$
|
|
4107
|
-
const resourceParams = createResourceParams$
|
|
4108
|
-
const request = createResourceRequest$
|
|
4327
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
4328
|
+
const resourceParams = createResourceParams$g(config);
|
|
4329
|
+
const request = createResourceRequest$g(resourceParams);
|
|
4109
4330
|
return luvio.dispatchResourceRequest(request, options)
|
|
4110
4331
|
.then((response) => {
|
|
4111
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4332
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
4112
4333
|
const cache = new StoreKeyMap();
|
|
4113
|
-
getResponseCacheKeys$
|
|
4334
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
4114
4335
|
return cache;
|
|
4115
4336
|
});
|
|
4116
4337
|
}, (response) => {
|
|
4117
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4338
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
4118
4339
|
});
|
|
4119
4340
|
}
|
|
4120
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4121
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4341
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4342
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
4122
4343
|
}
|
|
4123
|
-
function buildCachedSnapshotCachePolicy$
|
|
4344
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4124
4345
|
const { luvio, config } = context;
|
|
4125
4346
|
const selector = {
|
|
4126
|
-
recordId: keyBuilder$
|
|
4127
|
-
node: adapterFragment$
|
|
4347
|
+
recordId: keyBuilder$m(luvio, config),
|
|
4348
|
+
node: adapterFragment$9(luvio, config),
|
|
4128
4349
|
variables: {},
|
|
4129
4350
|
};
|
|
4130
4351
|
const cacheSnapshot = storeLookup(selector, {
|
|
4131
4352
|
config,
|
|
4132
|
-
resolve: () => buildNetworkSnapshot$
|
|
4353
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
4133
4354
|
});
|
|
4134
4355
|
return cacheSnapshot;
|
|
4135
4356
|
}
|
|
4136
4357
|
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
4137
|
-
const config = validateAdapterConfig$
|
|
4358
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
4138
4359
|
// Invalid or incomplete config
|
|
4139
4360
|
if (config === null) {
|
|
4140
4361
|
return null;
|
|
4141
4362
|
}
|
|
4142
4363
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4143
|
-
buildCachedSnapshotCachePolicy$
|
|
4364
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4144
4365
|
};
|
|
4145
|
-
const notifyChangeFactory$
|
|
4366
|
+
const notifyChangeFactory$5 = (luvio, options) => {
|
|
4146
4367
|
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamIdNotifyChange(configs) {
|
|
4147
|
-
const keys = configs.map(c => keyBuilder$
|
|
4368
|
+
const keys = configs.map(c => keyBuilder$z(luvio, c));
|
|
4148
4369
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4149
4370
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4150
4371
|
const { key, record: val } = entries[i];
|
|
4151
|
-
const refreshRequest = createResourceRequestFromRepresentation$
|
|
4372
|
+
const refreshRequest = createResourceRequestFromRepresentation$5(val);
|
|
4152
4373
|
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4153
4374
|
.then((response) => {
|
|
4154
4375
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -4172,8 +4393,8 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
4172
4393
|
};
|
|
4173
4394
|
};
|
|
4174
4395
|
|
|
4175
|
-
const VERSION$
|
|
4176
|
-
function validate$
|
|
4396
|
+
const VERSION$6 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
4397
|
+
function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
4177
4398
|
const v_error = (() => {
|
|
4178
4399
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4179
4400
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4224,23 +4445,23 @@ function validate$7(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
4224
4445
|
})();
|
|
4225
4446
|
return v_error === undefined ? null : v_error;
|
|
4226
4447
|
}
|
|
4227
|
-
const RepresentationType$
|
|
4228
|
-
function keyBuilder$
|
|
4229
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4448
|
+
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
4449
|
+
function keyBuilder$l(luvio, config) {
|
|
4450
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
4230
4451
|
}
|
|
4231
4452
|
function keyBuilderFromType$3(luvio, object) {
|
|
4232
4453
|
const keyParams = {
|
|
4233
4454
|
channelId: object.channelId
|
|
4234
4455
|
};
|
|
4235
|
-
return keyBuilder$
|
|
4456
|
+
return keyBuilder$l(luvio, keyParams);
|
|
4236
4457
|
}
|
|
4237
|
-
function normalize$
|
|
4458
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
4238
4459
|
return input;
|
|
4239
4460
|
}
|
|
4240
4461
|
const select$m = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
4241
4462
|
return {
|
|
4242
4463
|
kind: 'Fragment',
|
|
4243
|
-
version: VERSION$
|
|
4464
|
+
version: VERSION$6,
|
|
4244
4465
|
private: [],
|
|
4245
4466
|
selections: [
|
|
4246
4467
|
{
|
|
@@ -4259,7 +4480,7 @@ const select$m = function SlackBridgeConversationMembersOutputRepresentationSele
|
|
|
4259
4480
|
]
|
|
4260
4481
|
};
|
|
4261
4482
|
};
|
|
4262
|
-
function equals$
|
|
4483
|
+
function equals$6(existing, incoming) {
|
|
4263
4484
|
const existing_channelId = existing.channelId;
|
|
4264
4485
|
const incoming_channelId = incoming.channelId;
|
|
4265
4486
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -4282,24 +4503,24 @@ function equals$7(existing, incoming) {
|
|
|
4282
4503
|
}
|
|
4283
4504
|
return true;
|
|
4284
4505
|
}
|
|
4285
|
-
const ingest$
|
|
4506
|
+
const ingest$6 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4286
4507
|
if (process.env.NODE_ENV !== 'production') {
|
|
4287
|
-
const validateError = validate$
|
|
4508
|
+
const validateError = validate$6(input);
|
|
4288
4509
|
if (validateError !== null) {
|
|
4289
4510
|
throw validateError;
|
|
4290
4511
|
}
|
|
4291
4512
|
}
|
|
4292
4513
|
const key = keyBuilderFromType$3(luvio, input);
|
|
4293
4514
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4294
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4515
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
|
|
4295
4516
|
return createLink(key);
|
|
4296
4517
|
};
|
|
4297
|
-
function getTypeCacheKeys$
|
|
4518
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
4298
4519
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4299
4520
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
4300
4521
|
rootKeySet.set(rootKey, {
|
|
4301
4522
|
namespace: keyPrefix,
|
|
4302
|
-
representationName: RepresentationType$
|
|
4523
|
+
representationName: RepresentationType$6,
|
|
4303
4524
|
mergeable: false
|
|
4304
4525
|
});
|
|
4305
4526
|
}
|
|
@@ -4307,21 +4528,192 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4307
4528
|
function select$l(luvio, params) {
|
|
4308
4529
|
return select$m();
|
|
4309
4530
|
}
|
|
4310
|
-
function keyBuilder$
|
|
4311
|
-
return keyBuilder$
|
|
4531
|
+
function keyBuilder$k(luvio, params) {
|
|
4532
|
+
return keyBuilder$l(luvio, {
|
|
4312
4533
|
channelId: params.urlParams.channelId
|
|
4313
4534
|
});
|
|
4314
4535
|
}
|
|
4536
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
4537
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
4538
|
+
}
|
|
4539
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
4540
|
+
const { body } = response;
|
|
4541
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
4542
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
4543
|
+
const snapshot = luvio.storeLookup({
|
|
4544
|
+
recordId: key,
|
|
4545
|
+
node: select$l(),
|
|
4546
|
+
variables: {},
|
|
4547
|
+
}, snapshotRefresh);
|
|
4548
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4549
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4550
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4551
|
+
}
|
|
4552
|
+
}
|
|
4553
|
+
deepFreeze(snapshot.data);
|
|
4554
|
+
return snapshot;
|
|
4555
|
+
}
|
|
4556
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
4557
|
+
const key = keyBuilder$k(luvio, params);
|
|
4558
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4559
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
4560
|
+
return errorSnapshot;
|
|
4561
|
+
}
|
|
4562
|
+
function createResourceRequest$f(config) {
|
|
4563
|
+
const headers = {};
|
|
4564
|
+
return {
|
|
4565
|
+
baseUri: '/services/data/v63.0',
|
|
4566
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
|
|
4567
|
+
method: 'get',
|
|
4568
|
+
body: null,
|
|
4569
|
+
urlParams: config.urlParams,
|
|
4570
|
+
queryParams: {},
|
|
4571
|
+
headers,
|
|
4572
|
+
priority: 'normal',
|
|
4573
|
+
};
|
|
4574
|
+
}
|
|
4575
|
+
function createResourceRequestFromRepresentation$4(representation) {
|
|
4576
|
+
const config = {
|
|
4577
|
+
urlParams: {},
|
|
4578
|
+
};
|
|
4579
|
+
config.urlParams.channelId = representation.channelId;
|
|
4580
|
+
return createResourceRequest$f(config);
|
|
4581
|
+
}
|
|
4582
|
+
|
|
4583
|
+
const adapterName$f = 'getSlackConversationMembers';
|
|
4584
|
+
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
4585
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4586
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4587
|
+
];
|
|
4588
|
+
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4589
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$l(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4590
|
+
function keyBuilder$j(luvio, config) {
|
|
4591
|
+
const resourceParams = createResourceParams$f(config);
|
|
4592
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
4593
|
+
}
|
|
4594
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
4595
|
+
const config = {};
|
|
4596
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4597
|
+
return config;
|
|
4598
|
+
}
|
|
4599
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
4600
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4601
|
+
return null;
|
|
4602
|
+
}
|
|
4603
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4604
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4605
|
+
}
|
|
4606
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
4607
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4608
|
+
return null;
|
|
4609
|
+
}
|
|
4610
|
+
return config;
|
|
4611
|
+
}
|
|
4612
|
+
function adapterFragment$8(luvio, config) {
|
|
4613
|
+
createResourceParams$f(config);
|
|
4614
|
+
return select$l();
|
|
4615
|
+
}
|
|
4616
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
4617
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
4618
|
+
config,
|
|
4619
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4620
|
+
});
|
|
4621
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4622
|
+
}
|
|
4623
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
4624
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
4625
|
+
config,
|
|
4626
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4627
|
+
});
|
|
4628
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4629
|
+
}
|
|
4630
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
4631
|
+
const resourceParams = createResourceParams$f(config);
|
|
4632
|
+
const request = createResourceRequest$f(resourceParams);
|
|
4633
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4634
|
+
.then((response) => {
|
|
4635
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
4636
|
+
const cache = new StoreKeyMap();
|
|
4637
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
4638
|
+
return cache;
|
|
4639
|
+
});
|
|
4640
|
+
}, (response) => {
|
|
4641
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
4642
|
+
});
|
|
4643
|
+
}
|
|
4644
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4645
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
4646
|
+
}
|
|
4647
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
4648
|
+
const { luvio, config } = context;
|
|
4649
|
+
const selector = {
|
|
4650
|
+
recordId: keyBuilder$j(luvio, config),
|
|
4651
|
+
node: adapterFragment$8(luvio, config),
|
|
4652
|
+
variables: {},
|
|
4653
|
+
};
|
|
4654
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4655
|
+
config,
|
|
4656
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
4657
|
+
});
|
|
4658
|
+
return cacheSnapshot;
|
|
4659
|
+
}
|
|
4660
|
+
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
4661
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
4662
|
+
// Invalid or incomplete config
|
|
4663
|
+
if (config === null) {
|
|
4664
|
+
return null;
|
|
4665
|
+
}
|
|
4666
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4667
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
4668
|
+
};
|
|
4669
|
+
const notifyChangeFactory$4 = (luvio, options) => {
|
|
4670
|
+
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamIdNotifyChange(configs) {
|
|
4671
|
+
const keys = configs.map(c => keyBuilder$l(luvio, c));
|
|
4672
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4673
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4674
|
+
const { key, record: val } = entries[i];
|
|
4675
|
+
const refreshRequest = createResourceRequestFromRepresentation$4(val);
|
|
4676
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4677
|
+
.then((response) => {
|
|
4678
|
+
return luvio.handleSuccessResponse(() => {
|
|
4679
|
+
const { body } = response;
|
|
4680
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
4681
|
+
return luvio.storeBroadcast();
|
|
4682
|
+
}, () => {
|
|
4683
|
+
const cache = new StoreKeyMap();
|
|
4684
|
+
getTypeCacheKeys$6(cache, luvio, response.body);
|
|
4685
|
+
return cache;
|
|
4686
|
+
});
|
|
4687
|
+
}, (error) => {
|
|
4688
|
+
return luvio.handleErrorResponse(() => {
|
|
4689
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4690
|
+
luvio.storeIngestError(key, errorSnapshot, undefined);
|
|
4691
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4692
|
+
});
|
|
4693
|
+
});
|
|
4694
|
+
}
|
|
4695
|
+
});
|
|
4696
|
+
};
|
|
4697
|
+
};
|
|
4698
|
+
|
|
4699
|
+
function select$k(luvio, params) {
|
|
4700
|
+
return select$y();
|
|
4701
|
+
}
|
|
4702
|
+
function keyBuilder$i(luvio, params) {
|
|
4703
|
+
return keyBuilder$t(luvio, {
|
|
4704
|
+
name: params.urlParams.slackEmojiId
|
|
4705
|
+
});
|
|
4706
|
+
}
|
|
4315
4707
|
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
4316
|
-
getTypeCacheKeys$
|
|
4708
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
4317
4709
|
}
|
|
4318
4710
|
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
4319
4711
|
const { body } = response;
|
|
4320
4712
|
const key = keyBuilder$i(luvio, resourceParams);
|
|
4321
|
-
luvio.storeIngest(key, ingest$
|
|
4713
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
4322
4714
|
const snapshot = luvio.storeLookup({
|
|
4323
4715
|
recordId: key,
|
|
4324
|
-
node: select$
|
|
4716
|
+
node: select$k(),
|
|
4325
4717
|
variables: {},
|
|
4326
4718
|
}, snapshotRefresh);
|
|
4327
4719
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4335,14 +4727,20 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4335
4727
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
4336
4728
|
const key = keyBuilder$i(luvio, params);
|
|
4337
4729
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4338
|
-
|
|
4730
|
+
const storeMetadataParams = {
|
|
4731
|
+
ttl: TTL$1,
|
|
4732
|
+
namespace: keyPrefix,
|
|
4733
|
+
version: VERSION$g,
|
|
4734
|
+
representationName: RepresentationType$d
|
|
4735
|
+
};
|
|
4736
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4339
4737
|
return errorSnapshot;
|
|
4340
4738
|
}
|
|
4341
4739
|
function createResourceRequest$e(config) {
|
|
4342
4740
|
const headers = {};
|
|
4343
4741
|
return {
|
|
4344
4742
|
baseUri: '/services/data/v63.0',
|
|
4345
|
-
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/
|
|
4743
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/emojis/' + config.urlParams.slackEmojiId + '',
|
|
4346
4744
|
method: 'get',
|
|
4347
4745
|
body: null,
|
|
4348
4746
|
urlParams: config.urlParams,
|
|
@@ -4355,24 +4753,24 @@ function createResourceRequestFromRepresentation$3(representation) {
|
|
|
4355
4753
|
const config = {
|
|
4356
4754
|
urlParams: {},
|
|
4357
4755
|
};
|
|
4358
|
-
config.urlParams.
|
|
4756
|
+
config.urlParams.slackEmojiId = representation.name;
|
|
4359
4757
|
return createResourceRequest$e(config);
|
|
4360
4758
|
}
|
|
4361
4759
|
|
|
4362
|
-
const adapterName$e = '
|
|
4363
|
-
const
|
|
4364
|
-
generateParamConfigMetadata('
|
|
4760
|
+
const adapterName$e = 'getSlackEmoji';
|
|
4761
|
+
const getSlackEmoji_ConfigPropertyMetadata = [
|
|
4762
|
+
generateParamConfigMetadata('slackEmojiId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4365
4763
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4366
4764
|
];
|
|
4367
|
-
const
|
|
4368
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
4765
|
+
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackEmoji_ConfigPropertyMetadata);
|
|
4766
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$l(getSlackEmoji_ConfigPropertyMetadata);
|
|
4369
4767
|
function keyBuilder$h(luvio, config) {
|
|
4370
4768
|
const resourceParams = createResourceParams$e(config);
|
|
4371
4769
|
return keyBuilder$i(luvio, resourceParams);
|
|
4372
4770
|
}
|
|
4373
4771
|
function typeCheckConfig$e(untrustedConfig) {
|
|
4374
4772
|
const config = {};
|
|
4375
|
-
typeCheckConfig$
|
|
4773
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
4376
4774
|
return config;
|
|
4377
4775
|
}
|
|
4378
4776
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -4390,7 +4788,7 @@ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
|
4390
4788
|
}
|
|
4391
4789
|
function adapterFragment$7(luvio, config) {
|
|
4392
4790
|
createResourceParams$e(config);
|
|
4393
|
-
return select$
|
|
4791
|
+
return select$k();
|
|
4394
4792
|
}
|
|
4395
4793
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
4396
4794
|
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
@@ -4421,7 +4819,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
4421
4819
|
});
|
|
4422
4820
|
}
|
|
4423
4821
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
4424
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4822
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
4425
4823
|
}
|
|
4426
4824
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
4427
4825
|
const { luvio, config } = context;
|
|
@@ -4436,8 +4834,8 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
4436
4834
|
});
|
|
4437
4835
|
return cacheSnapshot;
|
|
4438
4836
|
}
|
|
4439
|
-
const
|
|
4440
|
-
const config = validateAdapterConfig$e(untrustedConfig,
|
|
4837
|
+
const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmoji(untrustedConfig, requestContext) {
|
|
4838
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSlackEmoji_ConfigPropertyNames);
|
|
4441
4839
|
// Invalid or incomplete config
|
|
4442
4840
|
if (config === null) {
|
|
4443
4841
|
return null;
|
|
@@ -4446,8 +4844,8 @@ const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridg
|
|
|
4446
4844
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
4447
4845
|
};
|
|
4448
4846
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
4449
|
-
return function
|
|
4450
|
-
const keys = configs.map(c => keyBuilder$
|
|
4847
|
+
return function getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamIdNotifyChange(configs) {
|
|
4848
|
+
const keys = configs.map(c => keyBuilder$t(luvio, c));
|
|
4451
4849
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4452
4850
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4453
4851
|
const { key, record: val } = entries[i];
|
|
@@ -4456,17 +4854,22 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
4456
4854
|
.then((response) => {
|
|
4457
4855
|
return luvio.handleSuccessResponse(() => {
|
|
4458
4856
|
const { body } = response;
|
|
4459
|
-
luvio.storeIngest(key, ingest$
|
|
4857
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
4460
4858
|
return luvio.storeBroadcast();
|
|
4461
4859
|
}, () => {
|
|
4462
4860
|
const cache = new StoreKeyMap();
|
|
4463
|
-
getTypeCacheKeys$
|
|
4861
|
+
getTypeCacheKeys$d(cache, luvio, response.body);
|
|
4464
4862
|
return cache;
|
|
4465
4863
|
});
|
|
4466
4864
|
}, (error) => {
|
|
4467
4865
|
return luvio.handleErrorResponse(() => {
|
|
4468
4866
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4469
|
-
luvio.storeIngestError(key, errorSnapshot,
|
|
4867
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
4868
|
+
ttl: TTL$1,
|
|
4869
|
+
namespace: keyPrefix,
|
|
4870
|
+
version: VERSION$g,
|
|
4871
|
+
representationName: RepresentationType$d
|
|
4872
|
+
});
|
|
4470
4873
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4471
4874
|
});
|
|
4472
4875
|
});
|
|
@@ -4475,112 +4878,117 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
4475
4878
|
};
|
|
4476
4879
|
};
|
|
4477
4880
|
|
|
4478
|
-
const VERSION$
|
|
4479
|
-
function validate$
|
|
4881
|
+
const VERSION$5 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
4882
|
+
function validate$5(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
4480
4883
|
const v_error = (() => {
|
|
4481
4884
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4482
4885
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4483
4886
|
}
|
|
4484
|
-
const
|
|
4485
|
-
const
|
|
4486
|
-
if (
|
|
4487
|
-
return new TypeError('Expected "
|
|
4887
|
+
const obj_emojis = obj.emojis;
|
|
4888
|
+
const path_emojis = path + '.emojis';
|
|
4889
|
+
if (!ArrayIsArray(obj_emojis)) {
|
|
4890
|
+
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
4488
4891
|
}
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
const
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
if (typeof obj_customEmojis_prop !== 'string') {
|
|
4495
|
-
return new TypeError('Expected "string" but received "' + typeof obj_customEmojis_prop + '" (at "' + path_customEmojis_prop + '")');
|
|
4892
|
+
for (let i = 0; i < obj_emojis.length; i++) {
|
|
4893
|
+
const obj_emojis_item = obj_emojis[i];
|
|
4894
|
+
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
4895
|
+
if (typeof obj_emojis_item !== 'object') {
|
|
4896
|
+
return new TypeError('Expected "object" but received "' + typeof obj_emojis_item + '" (at "' + path_emojis_item + '")');
|
|
4496
4897
|
}
|
|
4497
4898
|
}
|
|
4498
|
-
const obj_teamId = obj.teamId;
|
|
4499
|
-
const path_teamId = path + '.teamId';
|
|
4500
|
-
if (typeof obj_teamId !== 'string') {
|
|
4501
|
-
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
4502
|
-
}
|
|
4503
4899
|
})();
|
|
4504
4900
|
return v_error === undefined ? null : v_error;
|
|
4505
4901
|
}
|
|
4506
|
-
const RepresentationType$
|
|
4507
|
-
function normalize$
|
|
4902
|
+
const RepresentationType$5 = 'SlackBridgeEmojisOutputRepresentation';
|
|
4903
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
4904
|
+
const input_emojis = input.emojis;
|
|
4905
|
+
const input_emojis_id = path.fullPath + '__emojis';
|
|
4906
|
+
for (let i = 0; i < input_emojis.length; i++) {
|
|
4907
|
+
const input_emojis_item = input_emojis[i];
|
|
4908
|
+
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
4909
|
+
input_emojis[i] = ingest$d(input_emojis_item, {
|
|
4910
|
+
fullPath: input_emojis_item_id,
|
|
4911
|
+
propertyName: i,
|
|
4912
|
+
parent: {
|
|
4913
|
+
data: input,
|
|
4914
|
+
key: path.fullPath,
|
|
4915
|
+
existing: existing,
|
|
4916
|
+
},
|
|
4917
|
+
ttl: path.ttl
|
|
4918
|
+
}, luvio, store, timestamp);
|
|
4919
|
+
}
|
|
4508
4920
|
return input;
|
|
4509
4921
|
}
|
|
4510
|
-
const select$
|
|
4922
|
+
const select$j = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
4511
4923
|
return {
|
|
4512
4924
|
kind: 'Fragment',
|
|
4513
|
-
version: VERSION$
|
|
4925
|
+
version: VERSION$5,
|
|
4514
4926
|
private: [],
|
|
4515
4927
|
selections: [
|
|
4516
4928
|
{
|
|
4517
|
-
name: '
|
|
4518
|
-
kind: '
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
{
|
|
4522
|
-
name: 'teamId',
|
|
4523
|
-
kind: 'Scalar'
|
|
4929
|
+
name: 'emojis',
|
|
4930
|
+
kind: 'Link',
|
|
4931
|
+
plural: true,
|
|
4932
|
+
fragment: select$y()
|
|
4524
4933
|
}
|
|
4525
4934
|
]
|
|
4526
4935
|
};
|
|
4527
4936
|
};
|
|
4528
|
-
function equals$
|
|
4529
|
-
const
|
|
4530
|
-
const
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
}
|
|
4534
|
-
const existing_customEmojis = existing.customEmojis;
|
|
4535
|
-
const incoming_customEmojis = incoming.customEmojis;
|
|
4536
|
-
const equals_customEmojis_props = equalsObject(existing_customEmojis, incoming_customEmojis, (existing_customEmojis_prop, incoming_customEmojis_prop) => {
|
|
4537
|
-
if (!(existing_customEmojis_prop === incoming_customEmojis_prop)) {
|
|
4937
|
+
function equals$5(existing, incoming) {
|
|
4938
|
+
const existing_emojis = existing.emojis;
|
|
4939
|
+
const incoming_emojis = incoming.emojis;
|
|
4940
|
+
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
4941
|
+
if (!(existing_emojis_item.__ref === incoming_emojis_item.__ref)) {
|
|
4538
4942
|
return false;
|
|
4539
4943
|
}
|
|
4540
4944
|
});
|
|
4541
|
-
if (
|
|
4945
|
+
if (equals_emojis_items === false) {
|
|
4542
4946
|
return false;
|
|
4543
4947
|
}
|
|
4544
4948
|
return true;
|
|
4545
4949
|
}
|
|
4546
|
-
const ingest$
|
|
4950
|
+
const ingest$5 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4547
4951
|
if (process.env.NODE_ENV !== 'production') {
|
|
4548
|
-
const validateError = validate$
|
|
4952
|
+
const validateError = validate$5(input);
|
|
4549
4953
|
if (validateError !== null) {
|
|
4550
4954
|
throw validateError;
|
|
4551
4955
|
}
|
|
4552
4956
|
}
|
|
4553
4957
|
const key = path.fullPath;
|
|
4554
4958
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4555
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4959
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SlackBridge", VERSION$5, RepresentationType$5, equals$5);
|
|
4556
4960
|
return createLink(key);
|
|
4557
4961
|
};
|
|
4558
|
-
function getTypeCacheKeys$
|
|
4962
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
4559
4963
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4560
4964
|
const rootKey = fullPathFactory();
|
|
4561
4965
|
rootKeySet.set(rootKey, {
|
|
4562
4966
|
namespace: keyPrefix,
|
|
4563
|
-
representationName: RepresentationType$
|
|
4967
|
+
representationName: RepresentationType$5,
|
|
4564
4968
|
mergeable: false
|
|
4565
4969
|
});
|
|
4970
|
+
const input_emojis_length = input.emojis.length;
|
|
4971
|
+
for (let i = 0; i < input_emojis_length; i++) {
|
|
4972
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.emojis[i]);
|
|
4973
|
+
}
|
|
4566
4974
|
}
|
|
4567
4975
|
|
|
4568
|
-
function select$
|
|
4569
|
-
return select$
|
|
4976
|
+
function select$i(luvio, params) {
|
|
4977
|
+
return select$j();
|
|
4570
4978
|
}
|
|
4571
4979
|
function keyBuilder$g(luvio, params) {
|
|
4572
|
-
return keyPrefix + '::
|
|
4980
|
+
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
4573
4981
|
}
|
|
4574
4982
|
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
4575
|
-
getTypeCacheKeys$
|
|
4983
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
4576
4984
|
}
|
|
4577
4985
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
4578
4986
|
const { body } = response;
|
|
4579
4987
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
4580
|
-
luvio.storeIngest(key, ingest$
|
|
4988
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
4581
4989
|
const snapshot = luvio.storeLookup({
|
|
4582
4990
|
recordId: key,
|
|
4583
|
-
node: select$
|
|
4991
|
+
node: select$i(),
|
|
4584
4992
|
variables: {},
|
|
4585
4993
|
}, snapshotRefresh);
|
|
4586
4994
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4605,25 +5013,26 @@ function createResourceRequest$d(config) {
|
|
|
4605
5013
|
method: 'get',
|
|
4606
5014
|
body: null,
|
|
4607
5015
|
urlParams: config.urlParams,
|
|
4608
|
-
queryParams:
|
|
5016
|
+
queryParams: config.queryParams,
|
|
4609
5017
|
headers,
|
|
4610
5018
|
priority: 'normal',
|
|
4611
5019
|
};
|
|
4612
5020
|
}
|
|
4613
5021
|
|
|
4614
|
-
const adapterName$d = '
|
|
4615
|
-
const
|
|
5022
|
+
const adapterName$d = 'getSlackEmojis';
|
|
5023
|
+
const getSlackEmojis_ConfigPropertyMetadata = [
|
|
4616
5024
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5025
|
+
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
4617
5026
|
];
|
|
4618
|
-
const
|
|
4619
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
5027
|
+
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackEmojis_ConfigPropertyMetadata);
|
|
5028
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$l(getSlackEmojis_ConfigPropertyMetadata);
|
|
4620
5029
|
function keyBuilder$f(luvio, config) {
|
|
4621
5030
|
const resourceParams = createResourceParams$d(config);
|
|
4622
5031
|
return keyBuilder$g(luvio, resourceParams);
|
|
4623
5032
|
}
|
|
4624
5033
|
function typeCheckConfig$d(untrustedConfig) {
|
|
4625
5034
|
const config = {};
|
|
4626
|
-
typeCheckConfig$
|
|
5035
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
4627
5036
|
return config;
|
|
4628
5037
|
}
|
|
4629
5038
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -4641,7 +5050,7 @@ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
|
4641
5050
|
}
|
|
4642
5051
|
function adapterFragment$6(luvio, config) {
|
|
4643
5052
|
createResourceParams$d(config);
|
|
4644
|
-
return select$
|
|
5053
|
+
return select$i();
|
|
4645
5054
|
}
|
|
4646
5055
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
4647
5056
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
@@ -4672,7 +5081,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
4672
5081
|
});
|
|
4673
5082
|
}
|
|
4674
5083
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
4675
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5084
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
4676
5085
|
}
|
|
4677
5086
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
4678
5087
|
const { luvio, config } = context;
|
|
@@ -4687,8 +5096,8 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
4687
5096
|
});
|
|
4688
5097
|
return cacheSnapshot;
|
|
4689
5098
|
}
|
|
4690
|
-
const
|
|
4691
|
-
const config = validateAdapterConfig$d(untrustedConfig,
|
|
5099
|
+
const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEmojis(untrustedConfig, requestContext) {
|
|
5100
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSlackEmojis_ConfigPropertyNames);
|
|
4692
5101
|
// Invalid or incomplete config
|
|
4693
5102
|
if (config === null) {
|
|
4694
5103
|
return null;
|
|
@@ -4697,11 +5106,11 @@ const getSlackCustomEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
4697
5106
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
4698
5107
|
};
|
|
4699
5108
|
|
|
4700
|
-
function select$
|
|
4701
|
-
return select$
|
|
5109
|
+
function select$h(luvio, params) {
|
|
5110
|
+
return select$C();
|
|
4702
5111
|
}
|
|
4703
5112
|
function keyBuilder$e(luvio, params) {
|
|
4704
|
-
return keyBuilder$
|
|
5113
|
+
return keyBuilder$x(luvio, {
|
|
4705
5114
|
channelId: params.urlParams.channelId
|
|
4706
5115
|
});
|
|
4707
5116
|
}
|
|
@@ -4714,7 +5123,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4714
5123
|
luvio.storeIngest(key, ingest$f, body);
|
|
4715
5124
|
const snapshot = luvio.storeLookup({
|
|
4716
5125
|
recordId: key,
|
|
4717
|
-
node: select$
|
|
5126
|
+
node: select$h(),
|
|
4718
5127
|
variables: {},
|
|
4719
5128
|
}, snapshotRefresh);
|
|
4720
5129
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4759,14 +5168,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
4759
5168
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4760
5169
|
];
|
|
4761
5170
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackMessage_ConfigPropertyMetadata);
|
|
4762
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
5171
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$l(getSlackMessage_ConfigPropertyMetadata);
|
|
4763
5172
|
function keyBuilder$d(luvio, config) {
|
|
4764
5173
|
const resourceParams = createResourceParams$c(config);
|
|
4765
5174
|
return keyBuilder$e(luvio, resourceParams);
|
|
4766
5175
|
}
|
|
4767
5176
|
function typeCheckConfig$c(untrustedConfig) {
|
|
4768
5177
|
const config = {};
|
|
4769
|
-
typeCheckConfig$
|
|
5178
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
4770
5179
|
return config;
|
|
4771
5180
|
}
|
|
4772
5181
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -4784,7 +5193,7 @@ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
|
4784
5193
|
}
|
|
4785
5194
|
function adapterFragment$5(luvio, config) {
|
|
4786
5195
|
createResourceParams$c(config);
|
|
4787
|
-
return select$
|
|
5196
|
+
return select$h();
|
|
4788
5197
|
}
|
|
4789
5198
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
4790
5199
|
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
@@ -4815,7 +5224,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
4815
5224
|
});
|
|
4816
5225
|
}
|
|
4817
5226
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
4818
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5227
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
4819
5228
|
}
|
|
4820
5229
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
4821
5230
|
const { luvio, config } = context;
|
|
@@ -4841,7 +5250,7 @@ const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackM
|
|
|
4841
5250
|
};
|
|
4842
5251
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
4843
5252
|
return function getConnectSlackbridgeTeamChannelMessagesByChannelIdAndMessageTsAndTeamIdNotifyChange(configs) {
|
|
4844
|
-
const keys = configs.map(c => keyBuilder$
|
|
5253
|
+
const keys = configs.map(c => keyBuilder$x(luvio, c));
|
|
4845
5254
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4846
5255
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4847
5256
|
const { key, record: val } = entries[i];
|
|
@@ -4869,8 +5278,8 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
4869
5278
|
};
|
|
4870
5279
|
};
|
|
4871
5280
|
|
|
4872
|
-
const VERSION$
|
|
4873
|
-
function validate$
|
|
5281
|
+
const VERSION$4 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
5282
|
+
function validate$4(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
4874
5283
|
const v_error = (() => {
|
|
4875
5284
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4876
5285
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4893,9 +5302,9 @@ function validate$5(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
4893
5302
|
})();
|
|
4894
5303
|
return v_error === undefined ? null : v_error;
|
|
4895
5304
|
}
|
|
4896
|
-
const RepresentationType$
|
|
5305
|
+
const RepresentationType$4 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
4897
5306
|
function keyBuilder$c(luvio, config) {
|
|
4898
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5307
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.relatedRecordId;
|
|
4899
5308
|
}
|
|
4900
5309
|
function keyBuilderFromType$2(luvio, object) {
|
|
4901
5310
|
const keyParams = {
|
|
@@ -4903,10 +5312,10 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
4903
5312
|
};
|
|
4904
5313
|
return keyBuilder$c(luvio, keyParams);
|
|
4905
5314
|
}
|
|
4906
|
-
function normalize$
|
|
5315
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4907
5316
|
const input_conversationInfo = input.conversationInfo;
|
|
4908
5317
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
4909
|
-
input.conversationInfo = ingest$
|
|
5318
|
+
input.conversationInfo = ingest$b(input_conversationInfo, {
|
|
4910
5319
|
fullPath: input_conversationInfo_id,
|
|
4911
5320
|
propertyName: 'conversationInfo',
|
|
4912
5321
|
parent: {
|
|
@@ -4918,10 +5327,10 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
4918
5327
|
}, luvio, store, timestamp);
|
|
4919
5328
|
return input;
|
|
4920
5329
|
}
|
|
4921
|
-
const select$
|
|
5330
|
+
const select$g = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
4922
5331
|
return {
|
|
4923
5332
|
kind: 'Fragment',
|
|
4924
|
-
version: VERSION$
|
|
5333
|
+
version: VERSION$4,
|
|
4925
5334
|
private: [],
|
|
4926
5335
|
selections: [
|
|
4927
5336
|
{
|
|
@@ -4940,7 +5349,7 @@ const select$h = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
4940
5349
|
]
|
|
4941
5350
|
};
|
|
4942
5351
|
};
|
|
4943
|
-
function equals$
|
|
5352
|
+
function equals$4(existing, incoming) {
|
|
4944
5353
|
const existing_relatedRecordId = existing.relatedRecordId;
|
|
4945
5354
|
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
4946
5355
|
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
@@ -4958,31 +5367,31 @@ function equals$5(existing, incoming) {
|
|
|
4958
5367
|
}
|
|
4959
5368
|
return true;
|
|
4960
5369
|
}
|
|
4961
|
-
const ingest$
|
|
5370
|
+
const ingest$4 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4962
5371
|
if (process.env.NODE_ENV !== 'production') {
|
|
4963
|
-
const validateError = validate$
|
|
5372
|
+
const validateError = validate$4(input);
|
|
4964
5373
|
if (validateError !== null) {
|
|
4965
5374
|
throw validateError;
|
|
4966
5375
|
}
|
|
4967
5376
|
}
|
|
4968
5377
|
const key = keyBuilderFromType$2(luvio, input);
|
|
4969
5378
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4970
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5379
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SlackBridge", VERSION$4, RepresentationType$4, equals$4);
|
|
4971
5380
|
return createLink(key);
|
|
4972
5381
|
};
|
|
4973
|
-
function getTypeCacheKeys$
|
|
5382
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
4974
5383
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4975
5384
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
4976
5385
|
rootKeySet.set(rootKey, {
|
|
4977
5386
|
namespace: keyPrefix,
|
|
4978
|
-
representationName: RepresentationType$
|
|
5387
|
+
representationName: RepresentationType$4,
|
|
4979
5388
|
mergeable: false
|
|
4980
5389
|
});
|
|
4981
|
-
getTypeCacheKeys$
|
|
5390
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.conversationInfo);
|
|
4982
5391
|
}
|
|
4983
5392
|
|
|
4984
|
-
function select$
|
|
4985
|
-
return select$
|
|
5393
|
+
function select$f(luvio, params) {
|
|
5394
|
+
return select$g();
|
|
4986
5395
|
}
|
|
4987
5396
|
function keyBuilder$b(luvio, params) {
|
|
4988
5397
|
return keyBuilder$c(luvio, {
|
|
@@ -4990,15 +5399,15 @@ function keyBuilder$b(luvio, params) {
|
|
|
4990
5399
|
});
|
|
4991
5400
|
}
|
|
4992
5401
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
4993
|
-
getTypeCacheKeys$
|
|
5402
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
4994
5403
|
}
|
|
4995
5404
|
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
4996
5405
|
const { body } = response;
|
|
4997
5406
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
4998
|
-
luvio.storeIngest(key, ingest$
|
|
5407
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
4999
5408
|
const snapshot = luvio.storeLookup({
|
|
5000
5409
|
recordId: key,
|
|
5001
|
-
node: select$
|
|
5410
|
+
node: select$f(),
|
|
5002
5411
|
variables: {},
|
|
5003
5412
|
}, snapshotRefresh);
|
|
5004
5413
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5041,14 +5450,14 @@ const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
|
5041
5450
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5042
5451
|
];
|
|
5043
5452
|
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5044
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
5453
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$l(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5045
5454
|
function keyBuilder$a(luvio, config) {
|
|
5046
5455
|
const resourceParams = createResourceParams$b(config);
|
|
5047
5456
|
return keyBuilder$b(luvio, resourceParams);
|
|
5048
5457
|
}
|
|
5049
5458
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5050
5459
|
const config = {};
|
|
5051
|
-
typeCheckConfig$
|
|
5460
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5052
5461
|
return config;
|
|
5053
5462
|
}
|
|
5054
5463
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5066,7 +5475,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
|
5066
5475
|
}
|
|
5067
5476
|
function adapterFragment$4(luvio, config) {
|
|
5068
5477
|
createResourceParams$b(config);
|
|
5069
|
-
return select$
|
|
5478
|
+
return select$f();
|
|
5070
5479
|
}
|
|
5071
5480
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
5072
5481
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
@@ -5097,7 +5506,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5097
5506
|
});
|
|
5098
5507
|
}
|
|
5099
5508
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
5100
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5509
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
5101
5510
|
}
|
|
5102
5511
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
5103
5512
|
const { luvio, config } = context;
|
|
@@ -5132,11 +5541,11 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
5132
5541
|
.then((response) => {
|
|
5133
5542
|
return luvio.handleSuccessResponse(() => {
|
|
5134
5543
|
const { body } = response;
|
|
5135
|
-
luvio.storeIngest(key, ingest$
|
|
5544
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5136
5545
|
return luvio.storeBroadcast();
|
|
5137
5546
|
}, () => {
|
|
5138
5547
|
const cache = new StoreKeyMap();
|
|
5139
|
-
getTypeCacheKeys$
|
|
5548
|
+
getTypeCacheKeys$4(cache, luvio, response.body);
|
|
5140
5549
|
return cache;
|
|
5141
5550
|
});
|
|
5142
5551
|
}, (error) => {
|
|
@@ -5151,8 +5560,8 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
5151
5560
|
};
|
|
5152
5561
|
};
|
|
5153
5562
|
|
|
5154
|
-
const VERSION$
|
|
5155
|
-
function validate$
|
|
5563
|
+
const VERSION$3 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
5564
|
+
function validate$3(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
5156
5565
|
const v_error = (() => {
|
|
5157
5566
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5158
5567
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5198,14 +5607,14 @@ function validate$4(obj, path = 'SlackBridgeConversationInfosOutputRepresentatio
|
|
|
5198
5607
|
})();
|
|
5199
5608
|
return v_error === undefined ? null : v_error;
|
|
5200
5609
|
}
|
|
5201
|
-
const RepresentationType$
|
|
5202
|
-
function normalize$
|
|
5610
|
+
const RepresentationType$3 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
5611
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
5203
5612
|
const input_conversationInfos = input.conversationInfos;
|
|
5204
5613
|
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
5205
5614
|
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
5206
5615
|
const input_conversationInfos_item = input_conversationInfos[i];
|
|
5207
5616
|
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
5208
|
-
input_conversationInfos[i] = ingest$
|
|
5617
|
+
input_conversationInfos[i] = ingest$b(input_conversationInfos_item, {
|
|
5209
5618
|
fullPath: input_conversationInfos_item_id,
|
|
5210
5619
|
propertyName: i,
|
|
5211
5620
|
parent: {
|
|
@@ -5218,10 +5627,10 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
5218
5627
|
}
|
|
5219
5628
|
return input;
|
|
5220
5629
|
}
|
|
5221
|
-
const select$
|
|
5630
|
+
const select$e = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
5222
5631
|
return {
|
|
5223
5632
|
kind: 'Fragment',
|
|
5224
|
-
version: VERSION$
|
|
5633
|
+
version: VERSION$3,
|
|
5225
5634
|
private: [],
|
|
5226
5635
|
selections: [
|
|
5227
5636
|
{
|
|
@@ -5237,7 +5646,7 @@ const select$f = function SlackBridgeConversationInfosOutputRepresentationSelect
|
|
|
5237
5646
|
]
|
|
5238
5647
|
};
|
|
5239
5648
|
};
|
|
5240
|
-
function equals$
|
|
5649
|
+
function equals$3(existing, incoming) {
|
|
5241
5650
|
const existing_conversationInfos = existing.conversationInfos;
|
|
5242
5651
|
const incoming_conversationInfos = incoming.conversationInfos;
|
|
5243
5652
|
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
@@ -5255,48 +5664,48 @@ function equals$4(existing, incoming) {
|
|
|
5255
5664
|
}
|
|
5256
5665
|
return true;
|
|
5257
5666
|
}
|
|
5258
|
-
const ingest$
|
|
5667
|
+
const ingest$3 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5259
5668
|
if (process.env.NODE_ENV !== 'production') {
|
|
5260
|
-
const validateError = validate$
|
|
5669
|
+
const validateError = validate$3(input);
|
|
5261
5670
|
if (validateError !== null) {
|
|
5262
5671
|
throw validateError;
|
|
5263
5672
|
}
|
|
5264
5673
|
}
|
|
5265
5674
|
const key = path.fullPath;
|
|
5266
5675
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5267
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5676
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
5268
5677
|
return createLink(key);
|
|
5269
5678
|
};
|
|
5270
|
-
function getTypeCacheKeys$
|
|
5679
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
5271
5680
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5272
5681
|
const rootKey = fullPathFactory();
|
|
5273
5682
|
rootKeySet.set(rootKey, {
|
|
5274
5683
|
namespace: keyPrefix,
|
|
5275
|
-
representationName: RepresentationType$
|
|
5684
|
+
representationName: RepresentationType$3,
|
|
5276
5685
|
mergeable: false
|
|
5277
5686
|
});
|
|
5278
5687
|
const input_conversationInfos_length = input.conversationInfos.length;
|
|
5279
5688
|
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
5280
|
-
getTypeCacheKeys$
|
|
5689
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.conversationInfos[i]);
|
|
5281
5690
|
}
|
|
5282
5691
|
}
|
|
5283
5692
|
|
|
5284
|
-
function select$
|
|
5285
|
-
return select$
|
|
5693
|
+
function select$d(luvio, params) {
|
|
5694
|
+
return select$e();
|
|
5286
5695
|
}
|
|
5287
5696
|
function keyBuilder$9(luvio, params) {
|
|
5288
5697
|
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5289
5698
|
}
|
|
5290
5699
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
5291
|
-
getTypeCacheKeys$
|
|
5700
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
5292
5701
|
}
|
|
5293
5702
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
5294
5703
|
const { body } = response;
|
|
5295
5704
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
5296
|
-
luvio.storeIngest(key, ingest$
|
|
5705
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5297
5706
|
const snapshot = luvio.storeLookup({
|
|
5298
5707
|
recordId: key,
|
|
5299
|
-
node: select$
|
|
5708
|
+
node: select$d(),
|
|
5300
5709
|
variables: {},
|
|
5301
5710
|
}, snapshotRefresh);
|
|
5302
5711
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5333,14 +5742,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
5333
5742
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5334
5743
|
];
|
|
5335
5744
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
5336
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
5745
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$l(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
5337
5746
|
function keyBuilder$8(luvio, config) {
|
|
5338
5747
|
const resourceParams = createResourceParams$a(config);
|
|
5339
5748
|
return keyBuilder$9(luvio, resourceParams);
|
|
5340
5749
|
}
|
|
5341
5750
|
function typeCheckConfig$a(untrustedConfig) {
|
|
5342
5751
|
const config = {};
|
|
5343
|
-
typeCheckConfig$
|
|
5752
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
5344
5753
|
return config;
|
|
5345
5754
|
}
|
|
5346
5755
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -5358,7 +5767,7 @@ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
|
5358
5767
|
}
|
|
5359
5768
|
function adapterFragment$3(luvio, config) {
|
|
5360
5769
|
createResourceParams$a(config);
|
|
5361
|
-
return select$
|
|
5770
|
+
return select$d();
|
|
5362
5771
|
}
|
|
5363
5772
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
5364
5773
|
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
@@ -5389,7 +5798,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
5389
5798
|
});
|
|
5390
5799
|
}
|
|
5391
5800
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
5392
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5801
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
5393
5802
|
}
|
|
5394
5803
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
5395
5804
|
const { luvio, config } = context;
|
|
@@ -5414,133 +5823,19 @@ const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge
|
|
|
5414
5823
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
5415
5824
|
};
|
|
5416
5825
|
|
|
5417
|
-
const VERSION$3 = "40ec82af9ce301ce8598d88a6b19174a";
|
|
5418
|
-
function validate$3(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
5419
|
-
const v_error = (() => {
|
|
5420
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5421
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5422
|
-
}
|
|
5423
|
-
const obj_emojis = obj.emojis;
|
|
5424
|
-
const path_emojis = path + '.emojis';
|
|
5425
|
-
if (!ArrayIsArray(obj_emojis)) {
|
|
5426
|
-
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
5427
|
-
}
|
|
5428
|
-
for (let i = 0; i < obj_emojis.length; i++) {
|
|
5429
|
-
const obj_emojis_item = obj_emojis[i];
|
|
5430
|
-
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
5431
|
-
const referencepath_emojis_itemValidationError = validate$h(obj_emojis_item, path_emojis_item);
|
|
5432
|
-
if (referencepath_emojis_itemValidationError !== null) {
|
|
5433
|
-
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_emojis_item + '")\n';
|
|
5434
|
-
message += referencepath_emojis_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5435
|
-
return new TypeError(message);
|
|
5436
|
-
}
|
|
5437
|
-
}
|
|
5438
|
-
const obj_searchString = obj.searchString;
|
|
5439
|
-
const path_searchString = path + '.searchString';
|
|
5440
|
-
let obj_searchString_union0 = null;
|
|
5441
|
-
const obj_searchString_union0_error = (() => {
|
|
5442
|
-
if (typeof obj_searchString !== 'string') {
|
|
5443
|
-
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5444
|
-
}
|
|
5445
|
-
})();
|
|
5446
|
-
if (obj_searchString_union0_error != null) {
|
|
5447
|
-
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
5448
|
-
}
|
|
5449
|
-
let obj_searchString_union1 = null;
|
|
5450
|
-
const obj_searchString_union1_error = (() => {
|
|
5451
|
-
if (obj_searchString !== null) {
|
|
5452
|
-
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5453
|
-
}
|
|
5454
|
-
})();
|
|
5455
|
-
if (obj_searchString_union1_error != null) {
|
|
5456
|
-
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
5457
|
-
}
|
|
5458
|
-
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
5459
|
-
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
5460
|
-
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5461
|
-
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5462
|
-
return new TypeError(message);
|
|
5463
|
-
}
|
|
5464
|
-
})();
|
|
5465
|
-
return v_error === undefined ? null : v_error;
|
|
5466
|
-
}
|
|
5467
|
-
const RepresentationType$3 = 'SlackBridgeEmojisOutputRepresentation';
|
|
5468
|
-
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
5469
|
-
return input;
|
|
5470
|
-
}
|
|
5471
|
-
const select$d = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
5472
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$y();
|
|
5473
|
-
return {
|
|
5474
|
-
kind: 'Fragment',
|
|
5475
|
-
version: VERSION$3,
|
|
5476
|
-
private: [],
|
|
5477
|
-
selections: [
|
|
5478
|
-
{
|
|
5479
|
-
name: 'emojis',
|
|
5480
|
-
kind: 'Object',
|
|
5481
|
-
plural: true,
|
|
5482
|
-
selections: SlackBridgeEmojiOutputRepresentation__selections
|
|
5483
|
-
},
|
|
5484
|
-
{
|
|
5485
|
-
name: 'searchString',
|
|
5486
|
-
kind: 'Scalar'
|
|
5487
|
-
}
|
|
5488
|
-
]
|
|
5489
|
-
};
|
|
5490
|
-
};
|
|
5491
|
-
function equals$3(existing, incoming) {
|
|
5492
|
-
const existing_emojis = existing.emojis;
|
|
5493
|
-
const incoming_emojis = incoming.emojis;
|
|
5494
|
-
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
5495
|
-
if (!(equals$h(existing_emojis_item, incoming_emojis_item))) {
|
|
5496
|
-
return false;
|
|
5497
|
-
}
|
|
5498
|
-
});
|
|
5499
|
-
if (equals_emojis_items === false) {
|
|
5500
|
-
return false;
|
|
5501
|
-
}
|
|
5502
|
-
const existing_searchString = existing.searchString;
|
|
5503
|
-
const incoming_searchString = incoming.searchString;
|
|
5504
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
5505
|
-
return false;
|
|
5506
|
-
}
|
|
5507
|
-
return true;
|
|
5508
|
-
}
|
|
5509
|
-
const ingest$3 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5510
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5511
|
-
const validateError = validate$3(input);
|
|
5512
|
-
if (validateError !== null) {
|
|
5513
|
-
throw validateError;
|
|
5514
|
-
}
|
|
5515
|
-
}
|
|
5516
|
-
const key = path.fullPath;
|
|
5517
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5518
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
5519
|
-
return createLink(key);
|
|
5520
|
-
};
|
|
5521
|
-
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
5522
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5523
|
-
const rootKey = fullPathFactory();
|
|
5524
|
-
rootKeySet.set(rootKey, {
|
|
5525
|
-
namespace: keyPrefix,
|
|
5526
|
-
representationName: RepresentationType$3,
|
|
5527
|
-
mergeable: false
|
|
5528
|
-
});
|
|
5529
|
-
}
|
|
5530
|
-
|
|
5531
5826
|
function select$c(luvio, params) {
|
|
5532
|
-
return select$
|
|
5827
|
+
return select$j();
|
|
5533
5828
|
}
|
|
5534
5829
|
function keyBuilder$7(luvio, params) {
|
|
5535
5830
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5536
5831
|
}
|
|
5537
5832
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
5538
|
-
getTypeCacheKeys$
|
|
5833
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
5539
5834
|
}
|
|
5540
5835
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
5541
5836
|
const { body } = response;
|
|
5542
5837
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
5543
|
-
luvio.storeIngest(key, ingest$
|
|
5838
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
5544
5839
|
const snapshot = luvio.storeLookup({
|
|
5545
5840
|
recordId: key,
|
|
5546
5841
|
node: select$c(),
|
|
@@ -5580,14 +5875,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
5580
5875
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5581
5876
|
];
|
|
5582
5877
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
5583
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
5878
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$l(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
5584
5879
|
function keyBuilder$6(luvio, config) {
|
|
5585
5880
|
const resourceParams = createResourceParams$9(config);
|
|
5586
5881
|
return keyBuilder$7(luvio, resourceParams);
|
|
5587
5882
|
}
|
|
5588
5883
|
function typeCheckConfig$9(untrustedConfig) {
|
|
5589
5884
|
const config = {};
|
|
5590
|
-
typeCheckConfig$
|
|
5885
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
5591
5886
|
return config;
|
|
5592
5887
|
}
|
|
5593
5888
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -5636,7 +5931,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
5636
5931
|
});
|
|
5637
5932
|
}
|
|
5638
5933
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
5639
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5934
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
5640
5935
|
}
|
|
5641
5936
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
5642
5937
|
const { luvio, config } = context;
|
|
@@ -5715,7 +6010,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
5715
6010
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
5716
6011
|
const input_userInfos_item = input_userInfos[i];
|
|
5717
6012
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
5718
|
-
input_userInfos[i] = ingest$
|
|
6013
|
+
input_userInfos[i] = ingest$c(input_userInfos_item, {
|
|
5719
6014
|
fullPath: input_userInfos_item_id,
|
|
5720
6015
|
propertyName: i,
|
|
5721
6016
|
parent: {
|
|
@@ -5787,7 +6082,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5787
6082
|
});
|
|
5788
6083
|
const input_userInfos_length = input.userInfos.length;
|
|
5789
6084
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
5790
|
-
getTypeCacheKeys$
|
|
6085
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.userInfos[i]);
|
|
5791
6086
|
}
|
|
5792
6087
|
}
|
|
5793
6088
|
|
|
@@ -5846,14 +6141,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
5846
6141
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5847
6142
|
];
|
|
5848
6143
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackSearchUser_ConfigPropertyMetadata);
|
|
5849
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
6144
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$l(getSlackSearchUser_ConfigPropertyMetadata);
|
|
5850
6145
|
function keyBuilder$4(luvio, config) {
|
|
5851
6146
|
const resourceParams = createResourceParams$8(config);
|
|
5852
6147
|
return keyBuilder$5(luvio, resourceParams);
|
|
5853
6148
|
}
|
|
5854
6149
|
function typeCheckConfig$8(untrustedConfig) {
|
|
5855
6150
|
const config = {};
|
|
5856
|
-
typeCheckConfig$
|
|
6151
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
5857
6152
|
return config;
|
|
5858
6153
|
}
|
|
5859
6154
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -5902,7 +6197,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
5902
6197
|
});
|
|
5903
6198
|
}
|
|
5904
6199
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
5905
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6200
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
5906
6201
|
}
|
|
5907
6202
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
5908
6203
|
const { luvio, config } = context;
|
|
@@ -5931,18 +6226,18 @@ function select$9(luvio, params) {
|
|
|
5931
6226
|
return select$x();
|
|
5932
6227
|
}
|
|
5933
6228
|
function keyBuilder$3(luvio, params) {
|
|
5934
|
-
return keyBuilder$
|
|
6229
|
+
return keyBuilder$s(luvio, {
|
|
5935
6230
|
slackUserId: params.urlParams.slackUserId,
|
|
5936
6231
|
teamId: params.urlParams.teamId
|
|
5937
6232
|
});
|
|
5938
6233
|
}
|
|
5939
6234
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
5940
|
-
getTypeCacheKeys$
|
|
6235
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
5941
6236
|
}
|
|
5942
6237
|
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
5943
6238
|
const { body } = response;
|
|
5944
6239
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
5945
|
-
luvio.storeIngest(key, ingest$
|
|
6240
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
5946
6241
|
const snapshot = luvio.storeLookup({
|
|
5947
6242
|
recordId: key,
|
|
5948
6243
|
node: select$9(),
|
|
@@ -5962,8 +6257,8 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
5962
6257
|
const storeMetadataParams = {
|
|
5963
6258
|
ttl: TTL,
|
|
5964
6259
|
namespace: keyPrefix,
|
|
5965
|
-
version: VERSION$
|
|
5966
|
-
representationName: RepresentationType$
|
|
6260
|
+
version: VERSION$f,
|
|
6261
|
+
representationName: RepresentationType$c
|
|
5967
6262
|
};
|
|
5968
6263
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5969
6264
|
return errorSnapshot;
|
|
@@ -5996,14 +6291,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
5996
6291
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5997
6292
|
];
|
|
5998
6293
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackUser_ConfigPropertyMetadata);
|
|
5999
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
6294
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$l(getSlackUser_ConfigPropertyMetadata);
|
|
6000
6295
|
function keyBuilder$2(luvio, config) {
|
|
6001
6296
|
const resourceParams = createResourceParams$7(config);
|
|
6002
6297
|
return keyBuilder$3(luvio, resourceParams);
|
|
6003
6298
|
}
|
|
6004
6299
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6005
6300
|
const config = {};
|
|
6006
|
-
typeCheckConfig$
|
|
6301
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
6007
6302
|
return config;
|
|
6008
6303
|
}
|
|
6009
6304
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6052,7 +6347,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6052
6347
|
});
|
|
6053
6348
|
}
|
|
6054
6349
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6055
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6350
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6056
6351
|
}
|
|
6057
6352
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6058
6353
|
const { luvio, config } = context;
|
|
@@ -6078,7 +6373,7 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
6078
6373
|
};
|
|
6079
6374
|
const notifyChangeFactory = (luvio, options) => {
|
|
6080
6375
|
return function getConnectSlackbridgeTeamUserBySlackUserIdAndTeamIdNotifyChange(configs) {
|
|
6081
|
-
const keys = configs.map(c => keyBuilder$
|
|
6376
|
+
const keys = configs.map(c => keyBuilder$s(luvio, c));
|
|
6082
6377
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
6083
6378
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
6084
6379
|
const { key, record: val } = entries[i];
|
|
@@ -6087,11 +6382,11 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
6087
6382
|
.then((response) => {
|
|
6088
6383
|
return luvio.handleSuccessResponse(() => {
|
|
6089
6384
|
const { body } = response;
|
|
6090
|
-
luvio.storeIngest(key, ingest$
|
|
6385
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
6091
6386
|
return luvio.storeBroadcast();
|
|
6092
6387
|
}, () => {
|
|
6093
6388
|
const cache = new StoreKeyMap();
|
|
6094
|
-
getTypeCacheKeys$
|
|
6389
|
+
getTypeCacheKeys$c(cache, luvio, response.body);
|
|
6095
6390
|
return cache;
|
|
6096
6391
|
});
|
|
6097
6392
|
}, (error) => {
|
|
@@ -6100,8 +6395,8 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
6100
6395
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
6101
6396
|
ttl: TTL,
|
|
6102
6397
|
namespace: keyPrefix,
|
|
6103
|
-
version: VERSION$
|
|
6104
|
-
representationName: RepresentationType$
|
|
6398
|
+
version: VERSION$f,
|
|
6399
|
+
representationName: RepresentationType$c
|
|
6105
6400
|
});
|
|
6106
6401
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
6107
6402
|
});
|
|
@@ -6112,14 +6407,14 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
6112
6407
|
};
|
|
6113
6408
|
|
|
6114
6409
|
function select$8(luvio, params) {
|
|
6115
|
-
return select$
|
|
6410
|
+
return select$C();
|
|
6116
6411
|
}
|
|
6117
6412
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6118
6413
|
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
6119
6414
|
}
|
|
6120
6415
|
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
6121
6416
|
const { body } = response;
|
|
6122
|
-
const key = keyBuilderFromType$
|
|
6417
|
+
const key = keyBuilderFromType$9(luvio, body);
|
|
6123
6418
|
luvio.storeIngest(key, ingest$f, body);
|
|
6124
6419
|
const snapshot = luvio.storeLookup({
|
|
6125
6420
|
recordId: key,
|
|
@@ -6156,10 +6451,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
6156
6451
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
6157
6452
|
];
|
|
6158
6453
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
|
|
6159
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6454
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$l(patchSlackMessage_ConfigPropertyMetadata);
|
|
6160
6455
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6161
6456
|
const config = {};
|
|
6162
|
-
typeCheckConfig$
|
|
6457
|
+
typeCheckConfig$l(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
6163
6458
|
return config;
|
|
6164
6459
|
}
|
|
6165
6460
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6241,7 +6536,7 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
6241
6536
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6242
6537
|
const input_postedMessage = input.postedMessage;
|
|
6243
6538
|
const input_postedMessage_id = path.fullPath + '__postedMessage';
|
|
6244
|
-
input.postedMessage = ingest$
|
|
6539
|
+
input.postedMessage = ingest$9(input_postedMessage, {
|
|
6245
6540
|
fullPath: input_postedMessage_id,
|
|
6246
6541
|
propertyName: 'postedMessage',
|
|
6247
6542
|
parent: {
|
|
@@ -6313,7 +6608,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6313
6608
|
representationName: RepresentationType$1,
|
|
6314
6609
|
mergeable: false
|
|
6315
6610
|
});
|
|
6316
|
-
getTypeCacheKeys$
|
|
6611
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
6317
6612
|
}
|
|
6318
6613
|
|
|
6319
6614
|
function select$6(luvio, params) {
|
|
@@ -6363,10 +6658,10 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
6363
6658
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
6364
6659
|
];
|
|
6365
6660
|
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, postSlackConversation_ConfigPropertyMetadata);
|
|
6366
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
6661
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$l(postSlackConversation_ConfigPropertyMetadata);
|
|
6367
6662
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6368
6663
|
const config = {};
|
|
6369
|
-
typeCheckConfig$
|
|
6664
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
6370
6665
|
return config;
|
|
6371
6666
|
}
|
|
6372
6667
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6539,10 +6834,10 @@ const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
|
6539
6834
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
6540
6835
|
];
|
|
6541
6836
|
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackConversationMark_ConfigPropertyMetadata);
|
|
6542
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
6837
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$l(postSlackConversationMark_ConfigPropertyMetadata);
|
|
6543
6838
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6544
6839
|
const config = {};
|
|
6545
|
-
typeCheckConfig$
|
|
6840
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
6546
6841
|
return config;
|
|
6547
6842
|
}
|
|
6548
6843
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6591,12 +6886,12 @@ function select$3(luvio, params) {
|
|
|
6591
6886
|
return select$m();
|
|
6592
6887
|
}
|
|
6593
6888
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
6594
|
-
getTypeCacheKeys$
|
|
6889
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
6595
6890
|
}
|
|
6596
6891
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
6597
6892
|
const { body } = response;
|
|
6598
6893
|
const key = keyBuilderFromType$3(luvio, body);
|
|
6599
|
-
luvio.storeIngest(key, ingest$
|
|
6894
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
6600
6895
|
const snapshot = luvio.storeLookup({
|
|
6601
6896
|
recordId: key,
|
|
6602
6897
|
node: select$3(),
|
|
@@ -6631,10 +6926,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
6631
6926
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
6632
6927
|
];
|
|
6633
6928
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
6634
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
6929
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$l(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
6635
6930
|
function typeCheckConfig$3(untrustedConfig) {
|
|
6636
6931
|
const config = {};
|
|
6637
|
-
typeCheckConfig$
|
|
6932
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
6638
6933
|
return config;
|
|
6639
6934
|
}
|
|
6640
6935
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -6683,12 +6978,12 @@ function select$2(luvio, params) {
|
|
|
6683
6978
|
return select$s();
|
|
6684
6979
|
}
|
|
6685
6980
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
6686
|
-
getTypeCacheKeys$
|
|
6981
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
6687
6982
|
}
|
|
6688
6983
|
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
6689
6984
|
const { body } = response;
|
|
6690
6985
|
const key = keyBuilderFromType$4(luvio, body);
|
|
6691
|
-
luvio.storeIngest(key, ingest$
|
|
6986
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
6692
6987
|
const snapshot = luvio.storeLookup({
|
|
6693
6988
|
recordId: key,
|
|
6694
6989
|
node: select$2(),
|
|
@@ -6728,10 +7023,10 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
6728
7023
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
6729
7024
|
];
|
|
6730
7025
|
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postSlackFile_ConfigPropertyMetadata);
|
|
6731
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7026
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$l(postSlackFile_ConfigPropertyMetadata);
|
|
6732
7027
|
function typeCheckConfig$2(untrustedConfig) {
|
|
6733
7028
|
const config = {};
|
|
6734
|
-
typeCheckConfig$
|
|
7029
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
6735
7030
|
return config;
|
|
6736
7031
|
}
|
|
6737
7032
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -6777,14 +7072,14 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
6777
7072
|
};
|
|
6778
7073
|
|
|
6779
7074
|
function select$1(luvio, params) {
|
|
6780
|
-
return select$
|
|
7075
|
+
return select$A();
|
|
6781
7076
|
}
|
|
6782
7077
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
6783
7078
|
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
6784
7079
|
}
|
|
6785
7080
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
6786
7081
|
const { body } = response;
|
|
6787
|
-
const key = keyBuilderFromType$
|
|
7082
|
+
const key = keyBuilderFromType$8(luvio, body);
|
|
6788
7083
|
luvio.storeIngest(key, ingest$e, body);
|
|
6789
7084
|
const snapshot = luvio.storeLookup({
|
|
6790
7085
|
recordId: key,
|
|
@@ -6821,10 +7116,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
6821
7116
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6822
7117
|
];
|
|
6823
7118
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6824
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7119
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$l(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6825
7120
|
function typeCheckConfig$1(untrustedConfig) {
|
|
6826
7121
|
const config = {};
|
|
6827
|
-
typeCheckConfig$
|
|
7122
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6828
7123
|
return config;
|
|
6829
7124
|
}
|
|
6830
7125
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -6870,15 +7165,15 @@ const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
|
6870
7165
|
};
|
|
6871
7166
|
|
|
6872
7167
|
function select(luvio, params) {
|
|
6873
|
-
return select$
|
|
7168
|
+
return select$g();
|
|
6874
7169
|
}
|
|
6875
7170
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
6876
|
-
getTypeCacheKeys$
|
|
7171
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
6877
7172
|
}
|
|
6878
7173
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
6879
7174
|
const { body } = response;
|
|
6880
7175
|
const key = keyBuilderFromType$2(luvio, body);
|
|
6881
|
-
luvio.storeIngest(key, ingest$
|
|
7176
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
6882
7177
|
const snapshot = luvio.storeLookup({
|
|
6883
7178
|
recordId: key,
|
|
6884
7179
|
node: select(),
|
|
@@ -6912,10 +7207,10 @@ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
|
6912
7207
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
6913
7208
|
];
|
|
6914
7209
|
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
6915
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7210
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$l(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
6916
7211
|
function typeCheckConfig(untrustedConfig) {
|
|
6917
7212
|
const config = {};
|
|
6918
|
-
typeCheckConfig$
|
|
7213
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
6919
7214
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
6920
7215
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
6921
7216
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -6979,7 +7274,9 @@ let getSlackConversationMember;
|
|
|
6979
7274
|
let getSlackConversationMemberNotifyChange;
|
|
6980
7275
|
let getSlackConversationMembers;
|
|
6981
7276
|
let getSlackConversationMembersNotifyChange;
|
|
6982
|
-
let
|
|
7277
|
+
let getSlackEmoji;
|
|
7278
|
+
let getSlackEmojiNotifyChange;
|
|
7279
|
+
let getSlackEmojis;
|
|
6983
7280
|
let getSlackMessage;
|
|
6984
7281
|
let getSlackMessageNotifyChange;
|
|
6985
7282
|
let getSlackRecordChannelInfo;
|
|
@@ -7000,7 +7297,8 @@ let postSlackRecordChannelInfos;
|
|
|
7000
7297
|
let getSlackConversation_imperative;
|
|
7001
7298
|
let getSlackConversationMember_imperative;
|
|
7002
7299
|
let getSlackConversationMembers_imperative;
|
|
7003
|
-
let
|
|
7300
|
+
let getSlackEmoji_imperative;
|
|
7301
|
+
let getSlackEmojis_imperative;
|
|
7004
7302
|
let getSlackMessage_imperative;
|
|
7005
7303
|
let getSlackRecordChannelInfo_imperative;
|
|
7006
7304
|
let getSlackSearchConversation_imperative;
|
|
@@ -7016,7 +7314,8 @@ const getSlackConversationMembersMetadata = {
|
|
|
7016
7314
|
apiFamily: 'SlackBridge',
|
|
7017
7315
|
name: 'getSlackConversationMembers',
|
|
7018
7316
|
};
|
|
7019
|
-
const
|
|
7317
|
+
const getSlackEmojiMetadata = { apiFamily: 'SlackBridge', name: 'getSlackEmoji', ttl: 2592000000 };
|
|
7318
|
+
const getSlackEmojisMetadata = { apiFamily: 'SlackBridge', name: 'getSlackEmojis' };
|
|
7020
7319
|
const getSlackMessageMetadata = { apiFamily: 'SlackBridge', name: 'getSlackMessage' };
|
|
7021
7320
|
const getSlackRecordChannelInfoMetadata = {
|
|
7022
7321
|
apiFamily: 'SlackBridge',
|
|
@@ -7035,7 +7334,8 @@ function bindExportsTo(luvio) {
|
|
|
7035
7334
|
const getSlackConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversation', getSlackConversationAdapterFactory), getSlackConversationMetadata);
|
|
7036
7335
|
const getSlackConversationMember_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMember', getSlackConversationMemberAdapterFactory), getSlackConversationMemberMetadata);
|
|
7037
7336
|
const getSlackConversationMembers_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMembers', getSlackConversationMembersAdapterFactory), getSlackConversationMembersMetadata);
|
|
7038
|
-
const
|
|
7337
|
+
const getSlackEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackEmoji', getSlackEmojiAdapterFactory), getSlackEmojiMetadata);
|
|
7338
|
+
const getSlackEmojis_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackEmojis', getSlackEmojisAdapterFactory), getSlackEmojisMetadata);
|
|
7039
7339
|
const getSlackMessage_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackMessage', getSlackMessageAdapterFactory), getSlackMessageMetadata);
|
|
7040
7340
|
const getSlackRecordChannelInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackRecordChannelInfo', getSlackRecordChannelInfoAdapterFactory), getSlackRecordChannelInfoMetadata);
|
|
7041
7341
|
const getSlackSearchConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackSearchConversation', getSlackSearchConversationAdapterFactory), getSlackSearchConversationMetadata);
|
|
@@ -7047,15 +7347,17 @@ function bindExportsTo(luvio) {
|
|
|
7047
7347
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
7048
7348
|
}
|
|
7049
7349
|
return {
|
|
7050
|
-
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$
|
|
7051
|
-
deleteSlackMessage: createLDSAdapter(luvio, adapterName$
|
|
7052
|
-
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$
|
|
7350
|
+
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$k, deleteSlackConversationMemberAdapterFactory),
|
|
7351
|
+
deleteSlackMessage: createLDSAdapter(luvio, adapterName$j, deleteSlackMessageAdapterFactory),
|
|
7352
|
+
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$i, deleteSlackMessageReactionsAdapterFactory),
|
|
7053
7353
|
getSlackConversation: createWireAdapterConstructor(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
7054
7354
|
getSlackConversationMember: createWireAdapterConstructor(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7055
|
-
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$
|
|
7355
|
+
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$5),
|
|
7056
7356
|
getSlackConversationMembers: createWireAdapterConstructor(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
7057
|
-
getSlackConversationMembersNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMembersNotifyChange', notifyChangeFactory$
|
|
7058
|
-
|
|
7357
|
+
getSlackConversationMembersNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMembersNotifyChange', notifyChangeFactory$4),
|
|
7358
|
+
getSlackEmoji: createWireAdapterConstructor(luvio, getSlackEmoji_ldsAdapter, getSlackEmojiMetadata),
|
|
7359
|
+
getSlackEmojiNotifyChange: createLDSAdapter(luvio, 'getSlackEmojiNotifyChange', notifyChangeFactory$3),
|
|
7360
|
+
getSlackEmojis: createWireAdapterConstructor(luvio, getSlackEmojis_ldsAdapter, getSlackEmojisMetadata),
|
|
7059
7361
|
getSlackMessage: createWireAdapterConstructor(luvio, getSlackMessage_ldsAdapter, getSlackMessageMetadata),
|
|
7060
7362
|
getSlackMessageNotifyChange: createLDSAdapter(luvio, 'getSlackMessageNotifyChange', notifyChangeFactory$2),
|
|
7061
7363
|
getSlackRecordChannelInfo: createWireAdapterConstructor(luvio, getSlackRecordChannelInfo_ldsAdapter, getSlackRecordChannelInfoMetadata),
|
|
@@ -7076,7 +7378,8 @@ function bindExportsTo(luvio) {
|
|
|
7076
7378
|
getSlackConversation_imperative: createImperativeAdapter(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
7077
7379
|
getSlackConversationMember_imperative: createImperativeAdapter(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7078
7380
|
getSlackConversationMembers_imperative: createImperativeAdapter(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
7079
|
-
|
|
7381
|
+
getSlackEmoji_imperative: createImperativeAdapter(luvio, getSlackEmoji_ldsAdapter, getSlackEmojiMetadata),
|
|
7382
|
+
getSlackEmojis_imperative: createImperativeAdapter(luvio, getSlackEmojis_ldsAdapter, getSlackEmojisMetadata),
|
|
7080
7383
|
getSlackMessage_imperative: createImperativeAdapter(luvio, getSlackMessage_ldsAdapter, getSlackMessageMetadata),
|
|
7081
7384
|
getSlackRecordChannelInfo_imperative: createImperativeAdapter(luvio, getSlackRecordChannelInfo_ldsAdapter, getSlackRecordChannelInfoMetadata),
|
|
7082
7385
|
getSlackSearchConversation_imperative: createImperativeAdapter(luvio, getSlackSearchConversation_ldsAdapter, getSlackSearchConversationMetadata),
|
|
@@ -7096,7 +7399,9 @@ withDefaultLuvio((luvio) => {
|
|
|
7096
7399
|
getSlackConversationMemberNotifyChange,
|
|
7097
7400
|
getSlackConversationMembers,
|
|
7098
7401
|
getSlackConversationMembersNotifyChange,
|
|
7099
|
-
|
|
7402
|
+
getSlackEmoji,
|
|
7403
|
+
getSlackEmojiNotifyChange,
|
|
7404
|
+
getSlackEmojis,
|
|
7100
7405
|
getSlackMessage,
|
|
7101
7406
|
getSlackMessageNotifyChange,
|
|
7102
7407
|
getSlackRecordChannelInfo,
|
|
@@ -7116,7 +7421,8 @@ withDefaultLuvio((luvio) => {
|
|
|
7116
7421
|
getSlackConversation_imperative,
|
|
7117
7422
|
getSlackConversationMember_imperative,
|
|
7118
7423
|
getSlackConversationMembers_imperative,
|
|
7119
|
-
|
|
7424
|
+
getSlackEmoji_imperative,
|
|
7425
|
+
getSlackEmojis_imperative,
|
|
7120
7426
|
getSlackMessage_imperative,
|
|
7121
7427
|
getSlackRecordChannelInfo_imperative,
|
|
7122
7428
|
getSlackSearchConversation_imperative,
|
|
@@ -7126,5 +7432,5 @@ withDefaultLuvio((luvio) => {
|
|
|
7126
7432
|
} = bindExportsTo(luvio));
|
|
7127
7433
|
});
|
|
7128
7434
|
|
|
7129
|
-
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative,
|
|
7130
|
-
// version: 1.332.0-
|
|
7435
|
+
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
7436
|
+
// version: 1.332.0-dev14-759af80034
|