@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev25 → 1.332.0-dev27
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 +1134 -728
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfo.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfos.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByTeamId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +12 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +954 -481
- package/src/raml/api.raml +55 -0
- package/src/raml/luvio.raml +12 -1
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$o, typeCheckConfig as typeCheckConfig$o, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$e } 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$m(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
142
142
|
return v_error === undefined ? null : v_error;
|
|
143
143
|
}
|
|
144
144
|
const RepresentationType$h = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
145
|
-
function keyBuilder$
|
|
145
|
+
function keyBuilder$F(luvio, config) {
|
|
146
146
|
return keyPrefix + '::' + RepresentationType$h + ':' + config.channelId;
|
|
147
147
|
}
|
|
148
148
|
function keyBuilderFromType$a(luvio, object) {
|
|
149
149
|
const keyParams = {
|
|
150
150
|
channelId: object.channelId
|
|
151
151
|
};
|
|
152
|
-
return keyBuilder$
|
|
152
|
+
return keyBuilder$F(luvio, keyParams);
|
|
153
153
|
}
|
|
154
154
|
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
155
155
|
return input;
|
|
156
156
|
}
|
|
157
|
-
const select$
|
|
157
|
+
const select$H = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
158
158
|
return {
|
|
159
159
|
kind: 'Fragment',
|
|
160
160
|
version: VERSION$m,
|
|
@@ -206,13 +206,13 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
function keyBuilder$
|
|
210
|
-
return keyBuilder$
|
|
209
|
+
function keyBuilder$E(luvio, params) {
|
|
210
|
+
return keyBuilder$F(luvio, {
|
|
211
211
|
channelId: params.urlParams.channelId
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function getResponseCacheKeys$
|
|
215
|
-
const key = keyBuilder$
|
|
214
|
+
function getResponseCacheKeys$n(cacheKeyMap, luvio, resourceParams) {
|
|
215
|
+
const key = keyBuilder$E(luvio, resourceParams);
|
|
216
216
|
cacheKeyMap.set(key, {
|
|
217
217
|
namespace: keyPrefix,
|
|
218
218
|
representationName: RepresentationType$h,
|
|
@@ -220,10 +220,10 @@ function getResponseCacheKeys$l(cacheKeyMap, luvio, resourceParams) {
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
function evictSuccess$2(luvio, resourceParams) {
|
|
223
|
-
const key = keyBuilder$
|
|
223
|
+
const key = keyBuilder$E(luvio, resourceParams);
|
|
224
224
|
luvio.storeEvict(key);
|
|
225
225
|
}
|
|
226
|
-
function createResourceRequest$
|
|
226
|
+
function createResourceRequest$n(config) {
|
|
227
227
|
const headers = {};
|
|
228
228
|
return {
|
|
229
229
|
baseUri: '/services/data/v63.0',
|
|
@@ -237,35 +237,35 @@ function createResourceRequest$l(config) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
const adapterName$
|
|
240
|
+
const adapterName$n = '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$n, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
247
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$o(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
248
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
249
249
|
const config = {};
|
|
250
|
-
typeCheckConfig$
|
|
250
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
251
251
|
return config;
|
|
252
252
|
}
|
|
253
|
-
function validateAdapterConfig$
|
|
253
|
+
function validateAdapterConfig$n(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$n(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$n(luvio, config, options) {
|
|
267
|
+
const resourceParams = createResourceParams$n(config);
|
|
268
|
+
const request = createResourceRequest$n(resourceParams);
|
|
269
269
|
return luvio.dispatchResourceRequest(request, options)
|
|
270
270
|
.then(() => {
|
|
271
271
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -273,7 +273,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
273
273
|
return luvio.storeBroadcast();
|
|
274
274
|
}, () => {
|
|
275
275
|
const cache = new StoreKeyMap();
|
|
276
|
-
getResponseCacheKeys$
|
|
276
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams);
|
|
277
277
|
return cache;
|
|
278
278
|
});
|
|
279
279
|
}, (response) => {
|
|
@@ -283,12 +283,12 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
283
283
|
}
|
|
284
284
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
285
285
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
286
|
-
const config = validateAdapterConfig$
|
|
286
|
+
const config = validateAdapterConfig$n(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$n}"`);
|
|
290
290
|
}
|
|
291
|
-
return buildNetworkSnapshot$
|
|
291
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
|
|
@@ -317,19 +317,19 @@ function validate$l(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
const RepresentationType$g = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
320
|
-
function keyBuilder$
|
|
320
|
+
function keyBuilder$D(luvio, config) {
|
|
321
321
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.channelId;
|
|
322
322
|
}
|
|
323
323
|
function keyBuilderFromType$9(luvio, object) {
|
|
324
324
|
const keyParams = {
|
|
325
325
|
channelId: object.channelId
|
|
326
326
|
};
|
|
327
|
-
return keyBuilder$
|
|
327
|
+
return keyBuilder$D(luvio, keyParams);
|
|
328
328
|
}
|
|
329
329
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
330
330
|
return input;
|
|
331
331
|
}
|
|
332
|
-
const select$
|
|
332
|
+
const select$G = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
333
333
|
return {
|
|
334
334
|
kind: 'Fragment',
|
|
335
335
|
version: VERSION$l,
|
|
@@ -390,13 +390,13 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
function keyBuilder$
|
|
394
|
-
return keyBuilder$
|
|
393
|
+
function keyBuilder$C(luvio, params) {
|
|
394
|
+
return keyBuilder$D(luvio, {
|
|
395
395
|
channelId: params.urlParams.channelId
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
function getResponseCacheKeys$
|
|
399
|
-
const key = keyBuilder$
|
|
398
|
+
function getResponseCacheKeys$m(cacheKeyMap, luvio, resourceParams) {
|
|
399
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
400
400
|
cacheKeyMap.set(key, {
|
|
401
401
|
namespace: keyPrefix,
|
|
402
402
|
representationName: RepresentationType$g,
|
|
@@ -404,10 +404,10 @@ function getResponseCacheKeys$k(cacheKeyMap, luvio, resourceParams) {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
function evictSuccess$1(luvio, resourceParams) {
|
|
407
|
-
const key = keyBuilder$
|
|
407
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
408
408
|
luvio.storeEvict(key);
|
|
409
409
|
}
|
|
410
|
-
function createResourceRequest$
|
|
410
|
+
function createResourceRequest$m(config) {
|
|
411
411
|
const headers = {};
|
|
412
412
|
return {
|
|
413
413
|
baseUri: '/services/data/v63.0',
|
|
@@ -421,35 +421,35 @@ function createResourceRequest$k(config) {
|
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
const adapterName$
|
|
424
|
+
const adapterName$m = '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$m, deleteSlackMessage_ConfigPropertyMetadata);
|
|
431
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$o(deleteSlackMessage_ConfigPropertyMetadata);
|
|
432
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
433
433
|
const config = {};
|
|
434
|
-
typeCheckConfig$
|
|
434
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
435
435
|
return config;
|
|
436
436
|
}
|
|
437
|
-
function validateAdapterConfig$
|
|
437
|
+
function validateAdapterConfig$m(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$m(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$m(luvio, config, options) {
|
|
451
|
+
const resourceParams = createResourceParams$m(config);
|
|
452
|
+
const request = createResourceRequest$m(resourceParams);
|
|
453
453
|
return luvio.dispatchResourceRequest(request, options)
|
|
454
454
|
.then(() => {
|
|
455
455
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -457,7 +457,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
457
457
|
return luvio.storeBroadcast();
|
|
458
458
|
}, () => {
|
|
459
459
|
const cache = new StoreKeyMap();
|
|
460
|
-
getResponseCacheKeys$
|
|
460
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams);
|
|
461
461
|
return cache;
|
|
462
462
|
});
|
|
463
463
|
}, (response) => {
|
|
@@ -467,12 +467,12 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
467
467
|
}
|
|
468
468
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
469
469
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
470
|
-
const config = validateAdapterConfig$
|
|
470
|
+
const config = validateAdapterConfig$m(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$m}"`);
|
|
474
474
|
}
|
|
475
|
-
return buildNetworkSnapshot$
|
|
475
|
+
return buildNetworkSnapshot$m(luvio, config);
|
|
476
476
|
};
|
|
477
477
|
};
|
|
478
478
|
|
|
@@ -554,7 +554,7 @@ function validate$k(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
554
554
|
})();
|
|
555
555
|
return v_error === undefined ? null : v_error;
|
|
556
556
|
}
|
|
557
|
-
const select$
|
|
557
|
+
const select$F = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
558
558
|
return {
|
|
559
559
|
kind: 'Fragment',
|
|
560
560
|
version: VERSION$k,
|
|
@@ -649,20 +649,20 @@ function validate$j(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
649
649
|
return v_error === undefined ? null : v_error;
|
|
650
650
|
}
|
|
651
651
|
const RepresentationType$f = 'SlackBridgeReactionsOutputRepresentation';
|
|
652
|
-
function keyBuilder$
|
|
652
|
+
function keyBuilder$B(luvio, config) {
|
|
653
653
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.channelId;
|
|
654
654
|
}
|
|
655
655
|
function keyBuilderFromType$8(luvio, object) {
|
|
656
656
|
const keyParams = {
|
|
657
657
|
channelId: object.channelId
|
|
658
658
|
};
|
|
659
|
-
return keyBuilder$
|
|
659
|
+
return keyBuilder$B(luvio, keyParams);
|
|
660
660
|
}
|
|
661
661
|
function normalize$f(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$E = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
665
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$F();
|
|
666
666
|
return {
|
|
667
667
|
kind: 'Fragment',
|
|
668
668
|
version: VERSION$j,
|
|
@@ -739,13 +739,13 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
-
function keyBuilder$
|
|
743
|
-
return keyBuilder$
|
|
742
|
+
function keyBuilder$A(luvio, params) {
|
|
743
|
+
return keyBuilder$B(luvio, {
|
|
744
744
|
channelId: params.urlParams.channelId
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
function getResponseCacheKeys$
|
|
748
|
-
const key = keyBuilder$
|
|
747
|
+
function getResponseCacheKeys$l(cacheKeyMap, luvio, resourceParams) {
|
|
748
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
749
749
|
cacheKeyMap.set(key, {
|
|
750
750
|
namespace: keyPrefix,
|
|
751
751
|
representationName: RepresentationType$f,
|
|
@@ -753,10 +753,10 @@ function getResponseCacheKeys$j(cacheKeyMap, luvio, resourceParams) {
|
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
function evictSuccess(luvio, resourceParams) {
|
|
756
|
-
const key = keyBuilder$
|
|
756
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
757
757
|
luvio.storeEvict(key);
|
|
758
758
|
}
|
|
759
|
-
function createResourceRequest$
|
|
759
|
+
function createResourceRequest$l(config) {
|
|
760
760
|
const headers = {};
|
|
761
761
|
return {
|
|
762
762
|
baseUri: '/services/data/v63.0',
|
|
@@ -770,36 +770,36 @@ function createResourceRequest$j(config) {
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
const adapterName$
|
|
773
|
+
const adapterName$l = '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$l, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
781
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$o(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
782
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
783
783
|
const config = {};
|
|
784
|
-
typeCheckConfig$
|
|
784
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
785
785
|
return config;
|
|
786
786
|
}
|
|
787
|
-
function validateAdapterConfig$
|
|
787
|
+
function validateAdapterConfig$l(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$l(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$l(luvio, config, options) {
|
|
801
|
+
const resourceParams = createResourceParams$l(config);
|
|
802
|
+
const request = createResourceRequest$l(resourceParams);
|
|
803
803
|
return luvio.dispatchResourceRequest(request, options)
|
|
804
804
|
.then(() => {
|
|
805
805
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -807,7 +807,7 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
807
807
|
return luvio.storeBroadcast();
|
|
808
808
|
}, () => {
|
|
809
809
|
const cache = new StoreKeyMap();
|
|
810
|
-
getResponseCacheKeys$
|
|
810
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams);
|
|
811
811
|
return cache;
|
|
812
812
|
});
|
|
813
813
|
}, (response) => {
|
|
@@ -817,15 +817,16 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
817
817
|
}
|
|
818
818
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
819
819
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
820
|
-
const config = validateAdapterConfig$
|
|
820
|
+
const config = validateAdapterConfig$l(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$l}"`);
|
|
824
824
|
}
|
|
825
|
-
return buildNetworkSnapshot$
|
|
825
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
828
|
|
|
829
|
+
const TTL$3 = 900000;
|
|
829
830
|
const VERSION$i = "252fe3a6509a770a876e36552ad8dd06";
|
|
830
831
|
function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
831
832
|
const v_error = (() => {
|
|
@@ -1165,19 +1166,19 @@ function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1165
1166
|
return v_error === undefined ? null : v_error;
|
|
1166
1167
|
}
|
|
1167
1168
|
const RepresentationType$e = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1168
|
-
function keyBuilder$
|
|
1169
|
+
function keyBuilder$z(luvio, config) {
|
|
1169
1170
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.id;
|
|
1170
1171
|
}
|
|
1171
1172
|
function keyBuilderFromType$7(luvio, object) {
|
|
1172
1173
|
const keyParams = {
|
|
1173
1174
|
id: object.id
|
|
1174
1175
|
};
|
|
1175
|
-
return keyBuilder$
|
|
1176
|
+
return keyBuilder$z(luvio, keyParams);
|
|
1176
1177
|
}
|
|
1177
1178
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
1178
1179
|
return input;
|
|
1179
1180
|
}
|
|
1180
|
-
const select$
|
|
1181
|
+
const select$D = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1181
1182
|
return {
|
|
1182
1183
|
kind: 'Fragment',
|
|
1183
1184
|
version: VERSION$i,
|
|
@@ -1341,7 +1342,7 @@ const ingest$e = function SlackBridgeConversationInfoOutputRepresentationIngest(
|
|
|
1341
1342
|
}
|
|
1342
1343
|
}
|
|
1343
1344
|
const key = keyBuilderFromType$7(luvio, input);
|
|
1344
|
-
const ttlToUse =
|
|
1345
|
+
const ttlToUse = TTL$3;
|
|
1345
1346
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SlackBridge", VERSION$i, RepresentationType$e, equals$i);
|
|
1346
1347
|
return createLink(key);
|
|
1347
1348
|
};
|
|
@@ -1374,7 +1375,7 @@ function validate$h(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1374
1375
|
})();
|
|
1375
1376
|
return v_error === undefined ? null : v_error;
|
|
1376
1377
|
}
|
|
1377
|
-
const select$
|
|
1378
|
+
const select$C = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1378
1379
|
return {
|
|
1379
1380
|
kind: 'Fragment',
|
|
1380
1381
|
version: VERSION$h,
|
|
@@ -1489,8 +1490,8 @@ function validate$g(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1489
1490
|
})();
|
|
1490
1491
|
return v_error === undefined ? null : v_error;
|
|
1491
1492
|
}
|
|
1492
|
-
const select$
|
|
1493
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1493
|
+
const select$B = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1494
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$C();
|
|
1494
1495
|
return {
|
|
1495
1496
|
kind: 'Fragment',
|
|
1496
1497
|
version: VERSION$g,
|
|
@@ -1602,9 +1603,9 @@ function validate$f(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1602
1603
|
})();
|
|
1603
1604
|
return v_error === undefined ? null : v_error;
|
|
1604
1605
|
}
|
|
1605
|
-
const select$
|
|
1606
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1607
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
1606
|
+
const select$A = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
1607
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$C();
|
|
1608
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$B();
|
|
1608
1609
|
return {
|
|
1609
1610
|
kind: 'Fragment',
|
|
1610
1611
|
version: VERSION$f,
|
|
@@ -1837,20 +1838,20 @@ function validate$e(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1837
1838
|
return v_error === undefined ? null : v_error;
|
|
1838
1839
|
}
|
|
1839
1840
|
const RepresentationType$d = 'SlackBridgeFileOutputRepresentation';
|
|
1840
|
-
function keyBuilder$
|
|
1841
|
+
function keyBuilder$y(luvio, config) {
|
|
1841
1842
|
return keyPrefix + '::' + RepresentationType$d + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
1842
1843
|
}
|
|
1843
1844
|
function keyBuilderFromType$6(luvio, object) {
|
|
1844
1845
|
const keyParams = {
|
|
1845
1846
|
uniqueKey: object.uniqueKey
|
|
1846
1847
|
};
|
|
1847
|
-
return keyBuilder$
|
|
1848
|
+
return keyBuilder$y(luvio, keyParams);
|
|
1848
1849
|
}
|
|
1849
1850
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1850
1851
|
return input;
|
|
1851
1852
|
}
|
|
1852
|
-
const select$
|
|
1853
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
1853
|
+
const select$z = function SlackBridgeFileOutputRepresentationSelect() {
|
|
1854
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$A();
|
|
1854
1855
|
return {
|
|
1855
1856
|
kind: 'Fragment',
|
|
1856
1857
|
version: VERSION$e,
|
|
@@ -2383,8 +2384,8 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
2383
2384
|
}
|
|
2384
2385
|
return input;
|
|
2385
2386
|
}
|
|
2386
|
-
const select$
|
|
2387
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2387
|
+
const select$y = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2388
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$F();
|
|
2388
2389
|
return {
|
|
2389
2390
|
kind: 'Fragment',
|
|
2390
2391
|
version: VERSION$d,
|
|
@@ -2408,7 +2409,7 @@ const select$w = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2408
2409
|
name: 'files',
|
|
2409
2410
|
kind: 'Link',
|
|
2410
2411
|
plural: true,
|
|
2411
|
-
fragment: select$
|
|
2412
|
+
fragment: select$z()
|
|
2412
2413
|
},
|
|
2413
2414
|
{
|
|
2414
2415
|
name: 'includesCustomEmoji',
|
|
@@ -2719,7 +2720,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
2719
2720
|
}
|
|
2720
2721
|
return input;
|
|
2721
2722
|
}
|
|
2722
|
-
const select$
|
|
2723
|
+
const select$x = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
2723
2724
|
return {
|
|
2724
2725
|
kind: 'Fragment',
|
|
2725
2726
|
version: VERSION$c,
|
|
@@ -2729,13 +2730,13 @@ const select$v = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
2729
2730
|
name: 'conversations',
|
|
2730
2731
|
kind: 'Link',
|
|
2731
2732
|
plural: true,
|
|
2732
|
-
fragment: select$
|
|
2733
|
+
fragment: select$D()
|
|
2733
2734
|
},
|
|
2734
2735
|
{
|
|
2735
2736
|
name: 'messages',
|
|
2736
2737
|
kind: 'Link',
|
|
2737
2738
|
plural: true,
|
|
2738
|
-
fragment: select$
|
|
2739
|
+
fragment: select$y()
|
|
2739
2740
|
},
|
|
2740
2741
|
{
|
|
2741
2742
|
name: 'teamId',
|
|
@@ -2802,22 +2803,22 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2802
2803
|
}
|
|
2803
2804
|
}
|
|
2804
2805
|
|
|
2805
|
-
function select$
|
|
2806
|
-
return select$
|
|
2806
|
+
function select$w(luvio, params) {
|
|
2807
|
+
return select$x();
|
|
2807
2808
|
}
|
|
2808
|
-
function keyBuilder$
|
|
2809
|
+
function keyBuilder$x(luvio, params) {
|
|
2809
2810
|
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
2810
2811
|
}
|
|
2811
|
-
function getResponseCacheKeys$
|
|
2812
|
-
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2812
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
2813
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
2813
2814
|
}
|
|
2814
|
-
function ingestSuccess$
|
|
2815
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
2815
2816
|
const { body } = response;
|
|
2816
|
-
const key = keyBuilder$
|
|
2817
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
2817
2818
|
luvio.storeIngest(key, ingest$b, body);
|
|
2818
2819
|
const snapshot = luvio.storeLookup({
|
|
2819
2820
|
recordId: key,
|
|
2820
|
-
node: select$
|
|
2821
|
+
node: select$w(),
|
|
2821
2822
|
variables: {},
|
|
2822
2823
|
}, snapshotRefresh);
|
|
2823
2824
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2828,8 +2829,8 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2828
2829
|
deepFreeze(snapshot.data);
|
|
2829
2830
|
return snapshot;
|
|
2830
2831
|
}
|
|
2831
|
-
function ingestError$
|
|
2832
|
-
const key = keyBuilder$
|
|
2832
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
2833
|
+
const key = keyBuilder$x(luvio, params);
|
|
2833
2834
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2834
2835
|
const storeMetadataParams = {
|
|
2835
2836
|
ttl: TTL$2,
|
|
@@ -2840,7 +2841,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
|
2840
2841
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2841
2842
|
return errorSnapshot;
|
|
2842
2843
|
}
|
|
2843
|
-
function createResourceRequest$
|
|
2844
|
+
function createResourceRequest$k(config) {
|
|
2844
2845
|
const headers = {};
|
|
2845
2846
|
return {
|
|
2846
2847
|
baseUri: '/services/data/v63.0',
|
|
@@ -2854,90 +2855,90 @@ function createResourceRequest$i(config) {
|
|
|
2854
2855
|
};
|
|
2855
2856
|
}
|
|
2856
2857
|
|
|
2857
|
-
const adapterName$
|
|
2858
|
+
const adapterName$k = 'getRelatedThreads';
|
|
2858
2859
|
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
2859
2860
|
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2860
2861
|
];
|
|
2861
|
-
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2862
|
-
const createResourceParams$
|
|
2863
|
-
function keyBuilder$
|
|
2864
|
-
const resourceParams = createResourceParams$
|
|
2865
|
-
return keyBuilder$
|
|
2862
|
+
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getRelatedThreads_ConfigPropertyMetadata);
|
|
2863
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$o(getRelatedThreads_ConfigPropertyMetadata);
|
|
2864
|
+
function keyBuilder$w(luvio, config) {
|
|
2865
|
+
const resourceParams = createResourceParams$k(config);
|
|
2866
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
2866
2867
|
}
|
|
2867
|
-
function typeCheckConfig$
|
|
2868
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
2868
2869
|
const config = {};
|
|
2869
|
-
typeCheckConfig$
|
|
2870
|
+
typeCheckConfig$o(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
2870
2871
|
return config;
|
|
2871
2872
|
}
|
|
2872
|
-
function validateAdapterConfig$
|
|
2873
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
2873
2874
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2874
2875
|
return null;
|
|
2875
2876
|
}
|
|
2876
2877
|
if (process.env.NODE_ENV !== 'production') {
|
|
2877
2878
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2878
2879
|
}
|
|
2879
|
-
const config = typeCheckConfig$
|
|
2880
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
2880
2881
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2881
2882
|
return null;
|
|
2882
2883
|
}
|
|
2883
2884
|
return config;
|
|
2884
2885
|
}
|
|
2885
|
-
function adapterFragment$
|
|
2886
|
-
createResourceParams$
|
|
2887
|
-
return select$
|
|
2886
|
+
function adapterFragment$d(luvio, config) {
|
|
2887
|
+
createResourceParams$k(config);
|
|
2888
|
+
return select$w();
|
|
2888
2889
|
}
|
|
2889
|
-
function onFetchResponseSuccess$
|
|
2890
|
-
const snapshot = ingestSuccess$
|
|
2890
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
2891
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
2891
2892
|
config,
|
|
2892
|
-
resolve: () => buildNetworkSnapshot$
|
|
2893
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2893
2894
|
});
|
|
2894
2895
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2895
2896
|
}
|
|
2896
|
-
function onFetchResponseError$
|
|
2897
|
-
const snapshot = ingestError$
|
|
2897
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
2898
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
2898
2899
|
config,
|
|
2899
|
-
resolve: () => buildNetworkSnapshot$
|
|
2900
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2900
2901
|
});
|
|
2901
2902
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2902
2903
|
}
|
|
2903
|
-
function buildNetworkSnapshot$
|
|
2904
|
-
const resourceParams = createResourceParams$
|
|
2905
|
-
const request = createResourceRequest$
|
|
2904
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
2905
|
+
const resourceParams = createResourceParams$k(config);
|
|
2906
|
+
const request = createResourceRequest$k(resourceParams);
|
|
2906
2907
|
return luvio.dispatchResourceRequest(request, options)
|
|
2907
2908
|
.then((response) => {
|
|
2908
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2909
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
2909
2910
|
const cache = new StoreKeyMap();
|
|
2910
|
-
getResponseCacheKeys$
|
|
2911
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
2911
2912
|
return cache;
|
|
2912
2913
|
});
|
|
2913
2914
|
}, (response) => {
|
|
2914
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2915
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
2915
2916
|
});
|
|
2916
2917
|
}
|
|
2917
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2918
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2918
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
2919
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
2919
2920
|
}
|
|
2920
|
-
function buildCachedSnapshotCachePolicy$
|
|
2921
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
2921
2922
|
const { luvio, config } = context;
|
|
2922
2923
|
const selector = {
|
|
2923
|
-
recordId: keyBuilder$
|
|
2924
|
-
node: adapterFragment$
|
|
2924
|
+
recordId: keyBuilder$w(luvio, config),
|
|
2925
|
+
node: adapterFragment$d(luvio, config),
|
|
2925
2926
|
variables: {},
|
|
2926
2927
|
};
|
|
2927
2928
|
const cacheSnapshot = storeLookup(selector, {
|
|
2928
2929
|
config,
|
|
2929
|
-
resolve: () => buildNetworkSnapshot$
|
|
2930
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2930
2931
|
});
|
|
2931
2932
|
return cacheSnapshot;
|
|
2932
2933
|
}
|
|
2933
2934
|
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
2934
|
-
const config = validateAdapterConfig$
|
|
2935
|
+
const config = validateAdapterConfig$k(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
2935
2936
|
// Invalid or incomplete config
|
|
2936
2937
|
if (config === null) {
|
|
2937
2938
|
return null;
|
|
2938
2939
|
}
|
|
2939
2940
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2940
|
-
buildCachedSnapshotCachePolicy$
|
|
2941
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
2941
2942
|
};
|
|
2942
2943
|
|
|
2943
2944
|
const VERSION$b = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
@@ -3027,7 +3028,7 @@ function validate$b(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
3027
3028
|
})();
|
|
3028
3029
|
return v_error === undefined ? null : v_error;
|
|
3029
3030
|
}
|
|
3030
|
-
const select$
|
|
3031
|
+
const select$v = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
3031
3032
|
return {
|
|
3032
3033
|
kind: 'Fragment',
|
|
3033
3034
|
version: VERSION$b,
|
|
@@ -3216,20 +3217,20 @@ function validate$a(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
3216
3217
|
return v_error === undefined ? null : v_error;
|
|
3217
3218
|
}
|
|
3218
3219
|
const RepresentationType$a = 'SlackBridgeEmojiOutputRepresentation';
|
|
3219
|
-
function keyBuilder$
|
|
3220
|
+
function keyBuilder$v(luvio, config) {
|
|
3220
3221
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
3221
3222
|
}
|
|
3222
3223
|
function keyBuilderFromType$5(luvio, object) {
|
|
3223
3224
|
const keyParams = {
|
|
3224
3225
|
name: object.name
|
|
3225
3226
|
};
|
|
3226
|
-
return keyBuilder$
|
|
3227
|
+
return keyBuilder$v(luvio, keyParams);
|
|
3227
3228
|
}
|
|
3228
3229
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3229
3230
|
return input;
|
|
3230
3231
|
}
|
|
3231
|
-
const select$
|
|
3232
|
-
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$
|
|
3232
|
+
const select$u = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
3233
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$v();
|
|
3233
3234
|
return {
|
|
3234
3235
|
kind: 'Fragment',
|
|
3235
3236
|
version: VERSION$a,
|
|
@@ -3322,7 +3323,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3322
3323
|
});
|
|
3323
3324
|
}
|
|
3324
3325
|
|
|
3325
|
-
const TTL =
|
|
3326
|
+
const TTL = 900000;
|
|
3326
3327
|
const VERSION$9 = "90811622b2f6ba9d9a4525dd179a478a";
|
|
3327
3328
|
function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
3328
3329
|
const v_error = (() => {
|
|
@@ -3833,14 +3834,14 @@ function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
3833
3834
|
return v_error === undefined ? null : v_error;
|
|
3834
3835
|
}
|
|
3835
3836
|
const RepresentationType$9 = 'SlackBridgeUserInfoOutputRepresentation';
|
|
3836
|
-
function keyBuilder$
|
|
3837
|
+
function keyBuilder$u(luvio, config) {
|
|
3837
3838
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.slackUserId;
|
|
3838
3839
|
}
|
|
3839
3840
|
function keyBuilderFromType$4(luvio, object) {
|
|
3840
3841
|
const keyParams = {
|
|
3841
3842
|
slackUserId: object.slackUserId
|
|
3842
3843
|
};
|
|
3843
|
-
return keyBuilder$
|
|
3844
|
+
return keyBuilder$u(luvio, keyParams);
|
|
3844
3845
|
}
|
|
3845
3846
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
3846
3847
|
const input_statusEmoji = input.statusEmoji;
|
|
@@ -3859,7 +3860,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
3859
3860
|
}
|
|
3860
3861
|
return input;
|
|
3861
3862
|
}
|
|
3862
|
-
const select$
|
|
3863
|
+
const select$t = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
3863
3864
|
return {
|
|
3864
3865
|
kind: 'Fragment',
|
|
3865
3866
|
version: VERSION$9,
|
|
@@ -3932,7 +3933,7 @@ const select$r = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
3932
3933
|
name: 'statusEmoji',
|
|
3933
3934
|
kind: 'Link',
|
|
3934
3935
|
nullable: true,
|
|
3935
|
-
fragment: select$
|
|
3936
|
+
fragment: select$u()
|
|
3936
3937
|
},
|
|
3937
3938
|
{
|
|
3938
3939
|
name: 'statusMessage',
|
|
@@ -4227,7 +4228,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4227
4228
|
}
|
|
4228
4229
|
return input;
|
|
4229
4230
|
}
|
|
4230
|
-
const select$
|
|
4231
|
+
const select$s = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
4231
4232
|
return {
|
|
4232
4233
|
kind: 'Fragment',
|
|
4233
4234
|
version: VERSION$8,
|
|
@@ -4241,7 +4242,7 @@ const select$q = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
4241
4242
|
name: 'messages',
|
|
4242
4243
|
kind: 'Link',
|
|
4243
4244
|
plural: true,
|
|
4244
|
-
fragment: select$
|
|
4245
|
+
fragment: select$y()
|
|
4245
4246
|
},
|
|
4246
4247
|
{
|
|
4247
4248
|
name: 'nextCursor',
|
|
@@ -4299,7 +4300,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4299
4300
|
}
|
|
4300
4301
|
}
|
|
4301
4302
|
|
|
4302
|
-
const VERSION$7 = "
|
|
4303
|
+
const VERSION$7 = "1119f2c416d047eefd8303c5a2d590ae";
|
|
4303
4304
|
function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
4304
4305
|
const v_error = (() => {
|
|
4305
4306
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4367,6 +4368,30 @@ function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
4367
4368
|
message += '\n' + obj_conversationInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4368
4369
|
return new TypeError(message);
|
|
4369
4370
|
}
|
|
4371
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
4372
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
4373
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
4374
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
4375
|
+
}
|
|
4376
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
4377
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
4378
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
4379
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
4380
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
4381
|
+
}
|
|
4382
|
+
}
|
|
4383
|
+
const obj_emojis = obj.emojis;
|
|
4384
|
+
const path_emojis = path + '.emojis';
|
|
4385
|
+
if (!ArrayIsArray(obj_emojis)) {
|
|
4386
|
+
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
4387
|
+
}
|
|
4388
|
+
for (let i = 0; i < obj_emojis.length; i++) {
|
|
4389
|
+
const obj_emojis_item = obj_emojis[i];
|
|
4390
|
+
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
4391
|
+
if (typeof obj_emojis_item !== 'object') {
|
|
4392
|
+
return new TypeError('Expected "object" but received "' + typeof obj_emojis_item + '" (at "' + path_emojis_item + '")');
|
|
4393
|
+
}
|
|
4394
|
+
}
|
|
4370
4395
|
const obj_history = obj.history;
|
|
4371
4396
|
const path_history = path + '.history';
|
|
4372
4397
|
if (typeof obj_history !== 'object') {
|
|
@@ -4474,6 +4499,38 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4474
4499
|
ttl: path.ttl
|
|
4475
4500
|
}, luvio, store, timestamp);
|
|
4476
4501
|
}
|
|
4502
|
+
const input_conversationInfos = input.conversationInfos;
|
|
4503
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
4504
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
4505
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
4506
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
4507
|
+
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
4508
|
+
fullPath: input_conversationInfos_item_id,
|
|
4509
|
+
propertyName: i,
|
|
4510
|
+
parent: {
|
|
4511
|
+
data: input,
|
|
4512
|
+
key: path.fullPath,
|
|
4513
|
+
existing: existing,
|
|
4514
|
+
},
|
|
4515
|
+
ttl: path.ttl
|
|
4516
|
+
}, luvio, store, timestamp);
|
|
4517
|
+
}
|
|
4518
|
+
const input_emojis = input.emojis;
|
|
4519
|
+
const input_emojis_id = path.fullPath + '__emojis';
|
|
4520
|
+
for (let i = 0; i < input_emojis.length; i++) {
|
|
4521
|
+
const input_emojis_item = input_emojis[i];
|
|
4522
|
+
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
4523
|
+
input_emojis[i] = ingest$a(input_emojis_item, {
|
|
4524
|
+
fullPath: input_emojis_item_id,
|
|
4525
|
+
propertyName: i,
|
|
4526
|
+
parent: {
|
|
4527
|
+
data: input,
|
|
4528
|
+
key: path.fullPath,
|
|
4529
|
+
existing: existing,
|
|
4530
|
+
},
|
|
4531
|
+
ttl: path.ttl
|
|
4532
|
+
}, luvio, store, timestamp);
|
|
4533
|
+
}
|
|
4477
4534
|
const input_history = input.history;
|
|
4478
4535
|
const input_history_id = path.fullPath + '__history';
|
|
4479
4536
|
input.history = ingest$8(input_history, {
|
|
@@ -4504,7 +4561,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4504
4561
|
}
|
|
4505
4562
|
return input;
|
|
4506
4563
|
}
|
|
4507
|
-
const select$
|
|
4564
|
+
const select$r = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
4508
4565
|
return {
|
|
4509
4566
|
kind: 'Fragment',
|
|
4510
4567
|
version: VERSION$7,
|
|
@@ -4522,18 +4579,30 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4522
4579
|
name: 'contextUserInfo',
|
|
4523
4580
|
kind: 'Link',
|
|
4524
4581
|
nullable: true,
|
|
4525
|
-
fragment: select$
|
|
4582
|
+
fragment: select$t()
|
|
4526
4583
|
},
|
|
4527
4584
|
{
|
|
4528
4585
|
name: 'conversationInfo',
|
|
4529
4586
|
kind: 'Link',
|
|
4530
4587
|
nullable: true,
|
|
4531
|
-
fragment: select$
|
|
4588
|
+
fragment: select$D()
|
|
4589
|
+
},
|
|
4590
|
+
{
|
|
4591
|
+
name: 'conversationInfos',
|
|
4592
|
+
kind: 'Link',
|
|
4593
|
+
plural: true,
|
|
4594
|
+
fragment: select$D()
|
|
4595
|
+
},
|
|
4596
|
+
{
|
|
4597
|
+
name: 'emojis',
|
|
4598
|
+
kind: 'Link',
|
|
4599
|
+
plural: true,
|
|
4600
|
+
fragment: select$u()
|
|
4532
4601
|
},
|
|
4533
4602
|
{
|
|
4534
4603
|
name: 'history',
|
|
4535
4604
|
kind: 'Link',
|
|
4536
|
-
fragment: select$
|
|
4605
|
+
fragment: select$s()
|
|
4537
4606
|
},
|
|
4538
4607
|
{
|
|
4539
4608
|
name: 'teamId',
|
|
@@ -4547,7 +4616,7 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4547
4616
|
name: 'userInfos',
|
|
4548
4617
|
kind: 'Link',
|
|
4549
4618
|
plural: true,
|
|
4550
|
-
fragment: select$
|
|
4619
|
+
fragment: select$t()
|
|
4551
4620
|
},
|
|
4552
4621
|
{
|
|
4553
4622
|
name: 'websocketUrl',
|
|
@@ -4592,6 +4661,26 @@ function equals$7(existing, incoming) {
|
|
|
4592
4661
|
existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
|
|
4593
4662
|
return false;
|
|
4594
4663
|
}
|
|
4664
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
4665
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
4666
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
4667
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
4668
|
+
return false;
|
|
4669
|
+
}
|
|
4670
|
+
});
|
|
4671
|
+
if (equals_conversationInfos_items === false) {
|
|
4672
|
+
return false;
|
|
4673
|
+
}
|
|
4674
|
+
const existing_emojis = existing.emojis;
|
|
4675
|
+
const incoming_emojis = incoming.emojis;
|
|
4676
|
+
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
4677
|
+
if (!(existing_emojis_item.__ref === incoming_emojis_item.__ref)) {
|
|
4678
|
+
return false;
|
|
4679
|
+
}
|
|
4680
|
+
});
|
|
4681
|
+
if (equals_emojis_items === false) {
|
|
4682
|
+
return false;
|
|
4683
|
+
}
|
|
4595
4684
|
const existing_history = existing.history;
|
|
4596
4685
|
const incoming_history = incoming.history;
|
|
4597
4686
|
if (!(existing_history.__ref === incoming_history.__ref)) {
|
|
@@ -4645,6 +4734,14 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4645
4734
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
4646
4735
|
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
4647
4736
|
}
|
|
4737
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
4738
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
4739
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
4740
|
+
}
|
|
4741
|
+
const input_emojis_length = input.emojis.length;
|
|
4742
|
+
for (let i = 0; i < input_emojis_length; i++) {
|
|
4743
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.emojis[i]);
|
|
4744
|
+
}
|
|
4648
4745
|
getTypeCacheKeys$8(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
4649
4746
|
const input_userInfos_length = input.userInfos.length;
|
|
4650
4747
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
@@ -4652,22 +4749,22 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4652
4749
|
}
|
|
4653
4750
|
}
|
|
4654
4751
|
|
|
4655
|
-
function select$
|
|
4656
|
-
return select$
|
|
4752
|
+
function select$q(luvio, params) {
|
|
4753
|
+
return select$r();
|
|
4657
4754
|
}
|
|
4658
|
-
function keyBuilder$
|
|
4755
|
+
function keyBuilder$t(luvio, params) {
|
|
4659
4756
|
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 + ')';
|
|
4660
4757
|
}
|
|
4661
|
-
function getResponseCacheKeys$
|
|
4662
|
-
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4758
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4759
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
4663
4760
|
}
|
|
4664
|
-
function ingestSuccess$
|
|
4761
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
4665
4762
|
const { body } = response;
|
|
4666
|
-
const key = keyBuilder$
|
|
4763
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
4667
4764
|
luvio.storeIngest(key, ingest$7, body);
|
|
4668
4765
|
const snapshot = luvio.storeLookup({
|
|
4669
4766
|
recordId: key,
|
|
4670
|
-
node: select$
|
|
4767
|
+
node: select$q(),
|
|
4671
4768
|
variables: {},
|
|
4672
4769
|
}, snapshotRefresh);
|
|
4673
4770
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4678,13 +4775,13 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4678
4775
|
deepFreeze(snapshot.data);
|
|
4679
4776
|
return snapshot;
|
|
4680
4777
|
}
|
|
4681
|
-
function ingestError$
|
|
4682
|
-
const key = keyBuilder$
|
|
4778
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4779
|
+
const key = keyBuilder$t(luvio, params);
|
|
4683
4780
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4684
4781
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4685
4782
|
return errorSnapshot;
|
|
4686
4783
|
}
|
|
4687
|
-
function createResourceRequest$
|
|
4784
|
+
function createResourceRequest$j(config) {
|
|
4688
4785
|
const headers = {};
|
|
4689
4786
|
return {
|
|
4690
4787
|
baseUri: '/services/data/v63.0',
|
|
@@ -4698,7 +4795,7 @@ function createResourceRequest$h(config) {
|
|
|
4698
4795
|
};
|
|
4699
4796
|
}
|
|
4700
4797
|
|
|
4701
|
-
const adapterName$
|
|
4798
|
+
const adapterName$j = 'getSlackConversation';
|
|
4702
4799
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
4703
4800
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4704
4801
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -4710,94 +4807,539 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
4710
4807
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4711
4808
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4712
4809
|
];
|
|
4713
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4714
|
-
const createResourceParams$
|
|
4715
|
-
function keyBuilder$
|
|
4716
|
-
const resourceParams = createResourceParams$
|
|
4717
|
-
return keyBuilder$
|
|
4810
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getSlackConversation_ConfigPropertyMetadata);
|
|
4811
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$o(getSlackConversation_ConfigPropertyMetadata);
|
|
4812
|
+
function keyBuilder$s(luvio, config) {
|
|
4813
|
+
const resourceParams = createResourceParams$j(config);
|
|
4814
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
4718
4815
|
}
|
|
4719
|
-
function typeCheckConfig$
|
|
4816
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4720
4817
|
const config = {};
|
|
4721
|
-
typeCheckConfig$
|
|
4818
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
4722
4819
|
return config;
|
|
4723
4820
|
}
|
|
4724
|
-
function validateAdapterConfig$
|
|
4821
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4725
4822
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4726
4823
|
return null;
|
|
4727
4824
|
}
|
|
4728
4825
|
if (process.env.NODE_ENV !== 'production') {
|
|
4729
4826
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4730
4827
|
}
|
|
4731
|
-
const config = typeCheckConfig$
|
|
4828
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4732
4829
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4733
4830
|
return null;
|
|
4734
4831
|
}
|
|
4735
4832
|
return config;
|
|
4736
4833
|
}
|
|
4737
|
-
function adapterFragment$
|
|
4738
|
-
createResourceParams$
|
|
4739
|
-
return select$
|
|
4834
|
+
function adapterFragment$c(luvio, config) {
|
|
4835
|
+
createResourceParams$j(config);
|
|
4836
|
+
return select$q();
|
|
4740
4837
|
}
|
|
4741
|
-
function onFetchResponseSuccess$
|
|
4742
|
-
const snapshot = ingestSuccess$
|
|
4838
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4839
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
4743
4840
|
config,
|
|
4744
|
-
resolve: () => buildNetworkSnapshot$
|
|
4841
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4745
4842
|
});
|
|
4746
4843
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4747
4844
|
}
|
|
4748
|
-
function onFetchResponseError$
|
|
4749
|
-
const snapshot = ingestError$
|
|
4845
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4846
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4750
4847
|
config,
|
|
4751
|
-
resolve: () => buildNetworkSnapshot$
|
|
4848
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4752
4849
|
});
|
|
4753
4850
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4754
4851
|
}
|
|
4755
|
-
function buildNetworkSnapshot$
|
|
4756
|
-
const resourceParams = createResourceParams$
|
|
4757
|
-
const request = createResourceRequest$
|
|
4852
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4853
|
+
const resourceParams = createResourceParams$j(config);
|
|
4854
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4758
4855
|
return luvio.dispatchResourceRequest(request, options)
|
|
4759
4856
|
.then((response) => {
|
|
4760
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4857
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4761
4858
|
const cache = new StoreKeyMap();
|
|
4762
|
-
getResponseCacheKeys$
|
|
4859
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4763
4860
|
return cache;
|
|
4764
4861
|
});
|
|
4765
4862
|
}, (response) => {
|
|
4766
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4863
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4767
4864
|
});
|
|
4768
4865
|
}
|
|
4769
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4770
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4866
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4867
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
4771
4868
|
}
|
|
4772
|
-
function buildCachedSnapshotCachePolicy$
|
|
4869
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4773
4870
|
const { luvio, config } = context;
|
|
4774
4871
|
const selector = {
|
|
4775
|
-
recordId: keyBuilder$
|
|
4776
|
-
node: adapterFragment$
|
|
4872
|
+
recordId: keyBuilder$s(luvio, config),
|
|
4873
|
+
node: adapterFragment$c(luvio, config),
|
|
4777
4874
|
variables: {},
|
|
4778
4875
|
};
|
|
4779
4876
|
const cacheSnapshot = storeLookup(selector, {
|
|
4780
4877
|
config,
|
|
4781
|
-
resolve: () => buildNetworkSnapshot$
|
|
4878
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4782
4879
|
});
|
|
4783
4880
|
return cacheSnapshot;
|
|
4784
4881
|
}
|
|
4785
4882
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
4786
|
-
const config = validateAdapterConfig$
|
|
4883
|
+
const config = validateAdapterConfig$j(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
4787
4884
|
// Invalid or incomplete config
|
|
4788
4885
|
if (config === null) {
|
|
4789
4886
|
return null;
|
|
4790
4887
|
}
|
|
4791
4888
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4792
|
-
buildCachedSnapshotCachePolicy$
|
|
4889
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4793
4890
|
};
|
|
4794
4891
|
|
|
4795
|
-
function select$
|
|
4796
|
-
return select$
|
|
4892
|
+
function select$p(luvio, params) {
|
|
4893
|
+
return select$D();
|
|
4797
4894
|
}
|
|
4798
|
-
function keyBuilder$
|
|
4799
|
-
return keyBuilder$
|
|
4800
|
-
|
|
4895
|
+
function keyBuilder$r(luvio, params) {
|
|
4896
|
+
return keyBuilder$z(luvio, {
|
|
4897
|
+
id: params.urlParams.channelId
|
|
4898
|
+
});
|
|
4899
|
+
}
|
|
4900
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4901
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
4902
|
+
}
|
|
4903
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
4904
|
+
const { body } = response;
|
|
4905
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
4906
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
4907
|
+
const snapshot = luvio.storeLookup({
|
|
4908
|
+
recordId: key,
|
|
4909
|
+
node: select$p(),
|
|
4910
|
+
variables: {},
|
|
4911
|
+
}, snapshotRefresh);
|
|
4912
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4913
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4914
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4915
|
+
}
|
|
4916
|
+
}
|
|
4917
|
+
deepFreeze(snapshot.data);
|
|
4918
|
+
return snapshot;
|
|
4919
|
+
}
|
|
4920
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
4921
|
+
const key = keyBuilder$r(luvio, params);
|
|
4922
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4923
|
+
const storeMetadataParams = {
|
|
4924
|
+
ttl: TTL$3,
|
|
4925
|
+
namespace: keyPrefix,
|
|
4926
|
+
version: VERSION$i,
|
|
4927
|
+
representationName: RepresentationType$e
|
|
4928
|
+
};
|
|
4929
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4930
|
+
return errorSnapshot;
|
|
4931
|
+
}
|
|
4932
|
+
function createResourceRequest$i(config) {
|
|
4933
|
+
const headers = {};
|
|
4934
|
+
return {
|
|
4935
|
+
baseUri: '/services/data/v63.0',
|
|
4936
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels/' + config.urlParams.channelId + '',
|
|
4937
|
+
method: 'get',
|
|
4938
|
+
body: null,
|
|
4939
|
+
urlParams: config.urlParams,
|
|
4940
|
+
queryParams: {},
|
|
4941
|
+
headers,
|
|
4942
|
+
priority: 'normal',
|
|
4943
|
+
};
|
|
4944
|
+
}
|
|
4945
|
+
function createResourceRequestFromRepresentation$6(representation) {
|
|
4946
|
+
const config = {
|
|
4947
|
+
urlParams: {},
|
|
4948
|
+
};
|
|
4949
|
+
config.urlParams.channelId = representation.id;
|
|
4950
|
+
return createResourceRequest$i(config);
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
const adapterName$i = 'getSlackConversationInfo';
|
|
4954
|
+
const getSlackConversationInfo_ConfigPropertyMetadata = [
|
|
4955
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4956
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4957
|
+
];
|
|
4958
|
+
const getSlackConversationInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4959
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4960
|
+
function keyBuilder$q(luvio, config) {
|
|
4961
|
+
const resourceParams = createResourceParams$i(config);
|
|
4962
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
4963
|
+
}
|
|
4964
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4965
|
+
const config = {};
|
|
4966
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4967
|
+
return config;
|
|
4968
|
+
}
|
|
4969
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4970
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4971
|
+
return null;
|
|
4972
|
+
}
|
|
4973
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4974
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4975
|
+
}
|
|
4976
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
4977
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4978
|
+
return null;
|
|
4979
|
+
}
|
|
4980
|
+
return config;
|
|
4981
|
+
}
|
|
4982
|
+
function adapterFragment$b(luvio, config) {
|
|
4983
|
+
createResourceParams$i(config);
|
|
4984
|
+
return select$p();
|
|
4985
|
+
}
|
|
4986
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
4987
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
4988
|
+
config,
|
|
4989
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4990
|
+
});
|
|
4991
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4992
|
+
}
|
|
4993
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
4994
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4995
|
+
config,
|
|
4996
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4997
|
+
});
|
|
4998
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4999
|
+
}
|
|
5000
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
5001
|
+
const resourceParams = createResourceParams$i(config);
|
|
5002
|
+
const request = createResourceRequest$i(resourceParams);
|
|
5003
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5004
|
+
.then((response) => {
|
|
5005
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
5006
|
+
const cache = new StoreKeyMap();
|
|
5007
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
5008
|
+
return cache;
|
|
5009
|
+
});
|
|
5010
|
+
}, (response) => {
|
|
5011
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
5012
|
+
});
|
|
5013
|
+
}
|
|
5014
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
5015
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
5016
|
+
}
|
|
5017
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
5018
|
+
const { luvio, config } = context;
|
|
5019
|
+
const selector = {
|
|
5020
|
+
recordId: keyBuilder$q(luvio, config),
|
|
5021
|
+
node: adapterFragment$b(luvio, config),
|
|
5022
|
+
variables: {},
|
|
5023
|
+
};
|
|
5024
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5025
|
+
config,
|
|
5026
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
5027
|
+
});
|
|
5028
|
+
return cacheSnapshot;
|
|
5029
|
+
}
|
|
5030
|
+
const getSlackConversationInfoAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfo(untrustedConfig, requestContext) {
|
|
5031
|
+
const config = validateAdapterConfig$i(untrustedConfig, getSlackConversationInfo_ConfigPropertyNames);
|
|
5032
|
+
// Invalid or incomplete config
|
|
5033
|
+
if (config === null) {
|
|
5034
|
+
return null;
|
|
5035
|
+
}
|
|
5036
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5037
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
5038
|
+
};
|
|
5039
|
+
const notifyChangeFactory$6 = (luvio, options) => {
|
|
5040
|
+
return function getConnectSlackbridgeTeamChannelsByChannelIdAndTeamIdNotifyChange(configs) {
|
|
5041
|
+
const keys = configs.map(c => keyBuilder$z(luvio, c));
|
|
5042
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5043
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5044
|
+
const { key, record: val } = entries[i];
|
|
5045
|
+
const refreshRequest = createResourceRequestFromRepresentation$6(val);
|
|
5046
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
5047
|
+
.then((response) => {
|
|
5048
|
+
return luvio.handleSuccessResponse(() => {
|
|
5049
|
+
const { body } = response;
|
|
5050
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
5051
|
+
return luvio.storeBroadcast();
|
|
5052
|
+
}, () => {
|
|
5053
|
+
const cache = new StoreKeyMap();
|
|
5054
|
+
getTypeCacheKeys$e(cache, luvio, response.body);
|
|
5055
|
+
return cache;
|
|
5056
|
+
});
|
|
5057
|
+
}, (error) => {
|
|
5058
|
+
return luvio.handleErrorResponse(() => {
|
|
5059
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
5060
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
5061
|
+
ttl: TTL$3,
|
|
5062
|
+
namespace: keyPrefix,
|
|
5063
|
+
version: VERSION$i,
|
|
5064
|
+
representationName: RepresentationType$e
|
|
5065
|
+
});
|
|
5066
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
5067
|
+
});
|
|
5068
|
+
});
|
|
5069
|
+
}
|
|
5070
|
+
});
|
|
5071
|
+
};
|
|
5072
|
+
};
|
|
5073
|
+
|
|
5074
|
+
const VERSION$6 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
5075
|
+
function validate$6(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
5076
|
+
const v_error = (() => {
|
|
5077
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5078
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5079
|
+
}
|
|
5080
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
5081
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
5082
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
5083
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
5084
|
+
}
|
|
5085
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
5086
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
5087
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
5088
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
5089
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
5090
|
+
}
|
|
5091
|
+
}
|
|
5092
|
+
const obj_searchString = obj.searchString;
|
|
5093
|
+
const path_searchString = path + '.searchString';
|
|
5094
|
+
let obj_searchString_union0 = null;
|
|
5095
|
+
const obj_searchString_union0_error = (() => {
|
|
5096
|
+
if (typeof obj_searchString !== 'string') {
|
|
5097
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5098
|
+
}
|
|
5099
|
+
})();
|
|
5100
|
+
if (obj_searchString_union0_error != null) {
|
|
5101
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
5102
|
+
}
|
|
5103
|
+
let obj_searchString_union1 = null;
|
|
5104
|
+
const obj_searchString_union1_error = (() => {
|
|
5105
|
+
if (obj_searchString !== null) {
|
|
5106
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5107
|
+
}
|
|
5108
|
+
})();
|
|
5109
|
+
if (obj_searchString_union1_error != null) {
|
|
5110
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
5111
|
+
}
|
|
5112
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
5113
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
5114
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5115
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5116
|
+
return new TypeError(message);
|
|
5117
|
+
}
|
|
5118
|
+
})();
|
|
5119
|
+
return v_error === undefined ? null : v_error;
|
|
5120
|
+
}
|
|
5121
|
+
const RepresentationType$6 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
5122
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
5123
|
+
const input_conversationInfos = input.conversationInfos;
|
|
5124
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
5125
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
5126
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
5127
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
5128
|
+
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
5129
|
+
fullPath: input_conversationInfos_item_id,
|
|
5130
|
+
propertyName: i,
|
|
5131
|
+
parent: {
|
|
5132
|
+
data: input,
|
|
5133
|
+
key: path.fullPath,
|
|
5134
|
+
existing: existing,
|
|
5135
|
+
},
|
|
5136
|
+
ttl: path.ttl
|
|
5137
|
+
}, luvio, store, timestamp);
|
|
5138
|
+
}
|
|
5139
|
+
return input;
|
|
5140
|
+
}
|
|
5141
|
+
const select$o = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
5142
|
+
return {
|
|
5143
|
+
kind: 'Fragment',
|
|
5144
|
+
version: VERSION$6,
|
|
5145
|
+
private: [],
|
|
5146
|
+
selections: [
|
|
5147
|
+
{
|
|
5148
|
+
name: 'conversationInfos',
|
|
5149
|
+
kind: 'Link',
|
|
5150
|
+
plural: true,
|
|
5151
|
+
fragment: select$D()
|
|
5152
|
+
},
|
|
5153
|
+
{
|
|
5154
|
+
name: 'searchString',
|
|
5155
|
+
kind: 'Scalar'
|
|
5156
|
+
}
|
|
5157
|
+
]
|
|
5158
|
+
};
|
|
5159
|
+
};
|
|
5160
|
+
function equals$6(existing, incoming) {
|
|
5161
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
5162
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
5163
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
5164
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
5165
|
+
return false;
|
|
5166
|
+
}
|
|
5167
|
+
});
|
|
5168
|
+
if (equals_conversationInfos_items === false) {
|
|
5169
|
+
return false;
|
|
5170
|
+
}
|
|
5171
|
+
const existing_searchString = existing.searchString;
|
|
5172
|
+
const incoming_searchString = incoming.searchString;
|
|
5173
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
5174
|
+
return false;
|
|
5175
|
+
}
|
|
5176
|
+
return true;
|
|
5177
|
+
}
|
|
5178
|
+
const ingest$6 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5179
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5180
|
+
const validateError = validate$6(input);
|
|
5181
|
+
if (validateError !== null) {
|
|
5182
|
+
throw validateError;
|
|
5183
|
+
}
|
|
5184
|
+
}
|
|
5185
|
+
const key = path.fullPath;
|
|
5186
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5187
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
|
|
5188
|
+
return createLink(key);
|
|
5189
|
+
};
|
|
5190
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
5191
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5192
|
+
const rootKey = fullPathFactory();
|
|
5193
|
+
rootKeySet.set(rootKey, {
|
|
5194
|
+
namespace: keyPrefix,
|
|
5195
|
+
representationName: RepresentationType$6,
|
|
5196
|
+
mergeable: false
|
|
5197
|
+
});
|
|
5198
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
5199
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
5200
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5203
|
+
|
|
5204
|
+
function select$n(luvio, params) {
|
|
5205
|
+
return select$o();
|
|
5206
|
+
}
|
|
5207
|
+
function keyBuilder$p(luvio, params) {
|
|
5208
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'channelIds:' + params.queryParams.channelIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5209
|
+
}
|
|
5210
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
5211
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
|
|
5212
|
+
}
|
|
5213
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
5214
|
+
const { body } = response;
|
|
5215
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
5216
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5217
|
+
const snapshot = luvio.storeLookup({
|
|
5218
|
+
recordId: key,
|
|
5219
|
+
node: select$n(),
|
|
5220
|
+
variables: {},
|
|
5221
|
+
}, snapshotRefresh);
|
|
5222
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5223
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5224
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5225
|
+
}
|
|
5226
|
+
}
|
|
5227
|
+
deepFreeze(snapshot.data);
|
|
5228
|
+
return snapshot;
|
|
5229
|
+
}
|
|
5230
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
5231
|
+
const key = keyBuilder$p(luvio, params);
|
|
5232
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5233
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
5234
|
+
return errorSnapshot;
|
|
5235
|
+
}
|
|
5236
|
+
function createResourceRequest$h(config) {
|
|
5237
|
+
const headers = {};
|
|
5238
|
+
return {
|
|
5239
|
+
baseUri: '/services/data/v63.0',
|
|
5240
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels',
|
|
5241
|
+
method: 'get',
|
|
5242
|
+
body: null,
|
|
5243
|
+
urlParams: config.urlParams,
|
|
5244
|
+
queryParams: config.queryParams,
|
|
5245
|
+
headers,
|
|
5246
|
+
priority: 'normal',
|
|
5247
|
+
};
|
|
5248
|
+
}
|
|
5249
|
+
|
|
5250
|
+
const adapterName$h = 'getSlackConversationInfos';
|
|
5251
|
+
const getSlackConversationInfos_ConfigPropertyMetadata = [
|
|
5252
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5253
|
+
generateParamConfigMetadata('channelIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5254
|
+
];
|
|
5255
|
+
const getSlackConversationInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5256
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5257
|
+
function keyBuilder$o(luvio, config) {
|
|
5258
|
+
const resourceParams = createResourceParams$h(config);
|
|
5259
|
+
return keyBuilder$p(luvio, resourceParams);
|
|
5260
|
+
}
|
|
5261
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
5262
|
+
const config = {};
|
|
5263
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5264
|
+
return config;
|
|
5265
|
+
}
|
|
5266
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
5267
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5268
|
+
return null;
|
|
5269
|
+
}
|
|
5270
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5271
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5272
|
+
}
|
|
5273
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
5274
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5275
|
+
return null;
|
|
5276
|
+
}
|
|
5277
|
+
return config;
|
|
5278
|
+
}
|
|
5279
|
+
function adapterFragment$a(luvio, config) {
|
|
5280
|
+
createResourceParams$h(config);
|
|
5281
|
+
return select$n();
|
|
5282
|
+
}
|
|
5283
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
5284
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
5285
|
+
config,
|
|
5286
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
5287
|
+
});
|
|
5288
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5289
|
+
}
|
|
5290
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
5291
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
5292
|
+
config,
|
|
5293
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
5294
|
+
});
|
|
5295
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5296
|
+
}
|
|
5297
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
5298
|
+
const resourceParams = createResourceParams$h(config);
|
|
5299
|
+
const request = createResourceRequest$h(resourceParams);
|
|
5300
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5301
|
+
.then((response) => {
|
|
5302
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
5303
|
+
const cache = new StoreKeyMap();
|
|
5304
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
5305
|
+
return cache;
|
|
5306
|
+
});
|
|
5307
|
+
}, (response) => {
|
|
5308
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
5309
|
+
});
|
|
5310
|
+
}
|
|
5311
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
5312
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
5313
|
+
}
|
|
5314
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
5315
|
+
const { luvio, config } = context;
|
|
5316
|
+
const selector = {
|
|
5317
|
+
recordId: keyBuilder$o(luvio, config),
|
|
5318
|
+
node: adapterFragment$a(luvio, config),
|
|
5319
|
+
variables: {},
|
|
5320
|
+
};
|
|
5321
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5322
|
+
config,
|
|
5323
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
5324
|
+
});
|
|
5325
|
+
return cacheSnapshot;
|
|
5326
|
+
}
|
|
5327
|
+
const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfos(untrustedConfig, requestContext) {
|
|
5328
|
+
const config = validateAdapterConfig$h(untrustedConfig, getSlackConversationInfos_ConfigPropertyNames);
|
|
5329
|
+
// Invalid or incomplete config
|
|
5330
|
+
if (config === null) {
|
|
5331
|
+
return null;
|
|
5332
|
+
}
|
|
5333
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5334
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
5335
|
+
};
|
|
5336
|
+
|
|
5337
|
+
function select$m(luvio, params) {
|
|
5338
|
+
return select$H();
|
|
5339
|
+
}
|
|
5340
|
+
function keyBuilder$n(luvio, params) {
|
|
5341
|
+
return keyBuilder$F(luvio, {
|
|
5342
|
+
channelId: params.urlParams.channelId
|
|
4801
5343
|
});
|
|
4802
5344
|
}
|
|
4803
5345
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -4809,7 +5351,7 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4809
5351
|
luvio.storeIngest(key, ingest$h, body);
|
|
4810
5352
|
const snapshot = luvio.storeLookup({
|
|
4811
5353
|
recordId: key,
|
|
4812
|
-
node: select$
|
|
5354
|
+
node: select$m(),
|
|
4813
5355
|
variables: {},
|
|
4814
5356
|
}, snapshotRefresh);
|
|
4815
5357
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4854,14 +5396,14 @@ const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
4854
5396
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4855
5397
|
];
|
|
4856
5398
|
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4857
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
5399
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$o(getSlackConversationMember_ConfigPropertyMetadata);
|
|
4858
5400
|
function keyBuilder$m(luvio, config) {
|
|
4859
5401
|
const resourceParams = createResourceParams$g(config);
|
|
4860
5402
|
return keyBuilder$n(luvio, resourceParams);
|
|
4861
5403
|
}
|
|
4862
5404
|
function typeCheckConfig$g(untrustedConfig) {
|
|
4863
5405
|
const config = {};
|
|
4864
|
-
typeCheckConfig$
|
|
5406
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4865
5407
|
return config;
|
|
4866
5408
|
}
|
|
4867
5409
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -4879,7 +5421,7 @@ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
|
4879
5421
|
}
|
|
4880
5422
|
function adapterFragment$9(luvio, config) {
|
|
4881
5423
|
createResourceParams$g(config);
|
|
4882
|
-
return select$
|
|
5424
|
+
return select$m();
|
|
4883
5425
|
}
|
|
4884
5426
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4885
5427
|
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
@@ -4910,7 +5452,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
4910
5452
|
});
|
|
4911
5453
|
}
|
|
4912
5454
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4913
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5455
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
4914
5456
|
}
|
|
4915
5457
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4916
5458
|
const { luvio, config } = context;
|
|
@@ -4936,7 +5478,7 @@ const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge
|
|
|
4936
5478
|
};
|
|
4937
5479
|
const notifyChangeFactory$5 = (luvio, options) => {
|
|
4938
5480
|
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamIdNotifyChange(configs) {
|
|
4939
|
-
const keys = configs.map(c => keyBuilder$
|
|
5481
|
+
const keys = configs.map(c => keyBuilder$F(luvio, c));
|
|
4940
5482
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4941
5483
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4942
5484
|
const { key, record: val } = entries[i];
|
|
@@ -4964,8 +5506,8 @@ const notifyChangeFactory$5 = (luvio, options) => {
|
|
|
4964
5506
|
};
|
|
4965
5507
|
};
|
|
4966
5508
|
|
|
4967
|
-
const VERSION$
|
|
4968
|
-
function validate$
|
|
5509
|
+
const VERSION$5 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
5510
|
+
function validate$5(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
4969
5511
|
const v_error = (() => {
|
|
4970
5512
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4971
5513
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5016,9 +5558,9 @@ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
5016
5558
|
})();
|
|
5017
5559
|
return v_error === undefined ? null : v_error;
|
|
5018
5560
|
}
|
|
5019
|
-
const RepresentationType$
|
|
5561
|
+
const RepresentationType$5 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
5020
5562
|
function keyBuilder$l(luvio, config) {
|
|
5021
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5563
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
|
|
5022
5564
|
}
|
|
5023
5565
|
function keyBuilderFromType$3(luvio, object) {
|
|
5024
5566
|
const keyParams = {
|
|
@@ -5026,13 +5568,13 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
5026
5568
|
};
|
|
5027
5569
|
return keyBuilder$l(luvio, keyParams);
|
|
5028
5570
|
}
|
|
5029
|
-
function normalize$
|
|
5571
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
5030
5572
|
return input;
|
|
5031
5573
|
}
|
|
5032
|
-
const select$
|
|
5574
|
+
const select$l = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
5033
5575
|
return {
|
|
5034
5576
|
kind: 'Fragment',
|
|
5035
|
-
version: VERSION$
|
|
5577
|
+
version: VERSION$5,
|
|
5036
5578
|
private: [],
|
|
5037
5579
|
selections: [
|
|
5038
5580
|
{
|
|
@@ -5051,7 +5593,7 @@ const select$m = function SlackBridgeConversationMembersOutputRepresentationSele
|
|
|
5051
5593
|
]
|
|
5052
5594
|
};
|
|
5053
5595
|
};
|
|
5054
|
-
function equals$
|
|
5596
|
+
function equals$5(existing, incoming) {
|
|
5055
5597
|
const existing_channelId = existing.channelId;
|
|
5056
5598
|
const incoming_channelId = incoming.channelId;
|
|
5057
5599
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -5074,30 +5616,30 @@ function equals$6(existing, incoming) {
|
|
|
5074
5616
|
}
|
|
5075
5617
|
return true;
|
|
5076
5618
|
}
|
|
5077
|
-
const ingest$
|
|
5619
|
+
const ingest$5 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5078
5620
|
if (process.env.NODE_ENV !== 'production') {
|
|
5079
|
-
const validateError = validate$
|
|
5621
|
+
const validateError = validate$5(input);
|
|
5080
5622
|
if (validateError !== null) {
|
|
5081
5623
|
throw validateError;
|
|
5082
5624
|
}
|
|
5083
5625
|
}
|
|
5084
5626
|
const key = keyBuilderFromType$3(luvio, input);
|
|
5085
5627
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5086
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5628
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SlackBridge", VERSION$5, RepresentationType$5, equals$5);
|
|
5087
5629
|
return createLink(key);
|
|
5088
5630
|
};
|
|
5089
|
-
function getTypeCacheKeys$
|
|
5631
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
5090
5632
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5091
5633
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
5092
5634
|
rootKeySet.set(rootKey, {
|
|
5093
5635
|
namespace: keyPrefix,
|
|
5094
|
-
representationName: RepresentationType$
|
|
5636
|
+
representationName: RepresentationType$5,
|
|
5095
5637
|
mergeable: false
|
|
5096
5638
|
});
|
|
5097
5639
|
}
|
|
5098
5640
|
|
|
5099
|
-
function select$
|
|
5100
|
-
return select$
|
|
5641
|
+
function select$k(luvio, params) {
|
|
5642
|
+
return select$l();
|
|
5101
5643
|
}
|
|
5102
5644
|
function keyBuilder$k(luvio, params) {
|
|
5103
5645
|
return keyBuilder$l(luvio, {
|
|
@@ -5105,15 +5647,15 @@ function keyBuilder$k(luvio, params) {
|
|
|
5105
5647
|
});
|
|
5106
5648
|
}
|
|
5107
5649
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
5108
|
-
getTypeCacheKeys$
|
|
5650
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
5109
5651
|
}
|
|
5110
5652
|
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
5111
5653
|
const { body } = response;
|
|
5112
5654
|
const key = keyBuilder$k(luvio, resourceParams);
|
|
5113
|
-
luvio.storeIngest(key, ingest$
|
|
5655
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
5114
5656
|
const snapshot = luvio.storeLookup({
|
|
5115
5657
|
recordId: key,
|
|
5116
|
-
node: select$
|
|
5658
|
+
node: select$k(),
|
|
5117
5659
|
variables: {},
|
|
5118
5660
|
}, snapshotRefresh);
|
|
5119
5661
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5157,14 +5699,14 @@ const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
5157
5699
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5158
5700
|
];
|
|
5159
5701
|
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5160
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
5702
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$o(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5161
5703
|
function keyBuilder$j(luvio, config) {
|
|
5162
5704
|
const resourceParams = createResourceParams$f(config);
|
|
5163
5705
|
return keyBuilder$k(luvio, resourceParams);
|
|
5164
5706
|
}
|
|
5165
5707
|
function typeCheckConfig$f(untrustedConfig) {
|
|
5166
5708
|
const config = {};
|
|
5167
|
-
typeCheckConfig$
|
|
5709
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5168
5710
|
return config;
|
|
5169
5711
|
}
|
|
5170
5712
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -5182,7 +5724,7 @@ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
|
5182
5724
|
}
|
|
5183
5725
|
function adapterFragment$8(luvio, config) {
|
|
5184
5726
|
createResourceParams$f(config);
|
|
5185
|
-
return select$
|
|
5727
|
+
return select$k();
|
|
5186
5728
|
}
|
|
5187
5729
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
5188
5730
|
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
@@ -5213,7 +5755,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5213
5755
|
});
|
|
5214
5756
|
}
|
|
5215
5757
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5216
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5758
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
5217
5759
|
}
|
|
5218
5760
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5219
5761
|
const { luvio, config } = context;
|
|
@@ -5248,11 +5790,11 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
5248
5790
|
.then((response) => {
|
|
5249
5791
|
return luvio.handleSuccessResponse(() => {
|
|
5250
5792
|
const { body } = response;
|
|
5251
|
-
luvio.storeIngest(key, ingest$
|
|
5793
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
5252
5794
|
return luvio.storeBroadcast();
|
|
5253
5795
|
}, () => {
|
|
5254
5796
|
const cache = new StoreKeyMap();
|
|
5255
|
-
getTypeCacheKeys$
|
|
5797
|
+
getTypeCacheKeys$5(cache, luvio, response.body);
|
|
5256
5798
|
return cache;
|
|
5257
5799
|
});
|
|
5258
5800
|
}, (error) => {
|
|
@@ -5267,11 +5809,11 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
5267
5809
|
};
|
|
5268
5810
|
};
|
|
5269
5811
|
|
|
5270
|
-
function select$
|
|
5271
|
-
return select$
|
|
5812
|
+
function select$j(luvio, params) {
|
|
5813
|
+
return select$u();
|
|
5272
5814
|
}
|
|
5273
5815
|
function keyBuilder$i(luvio, params) {
|
|
5274
|
-
return keyBuilder$
|
|
5816
|
+
return keyBuilder$v(luvio, {
|
|
5275
5817
|
name: params.urlParams.slackEmojiId
|
|
5276
5818
|
});
|
|
5277
5819
|
}
|
|
@@ -5284,7 +5826,7 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5284
5826
|
luvio.storeIngest(key, ingest$a, body);
|
|
5285
5827
|
const snapshot = luvio.storeLookup({
|
|
5286
5828
|
recordId: key,
|
|
5287
|
-
node: select$
|
|
5829
|
+
node: select$j(),
|
|
5288
5830
|
variables: {},
|
|
5289
5831
|
}, snapshotRefresh);
|
|
5290
5832
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5334,14 +5876,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
5334
5876
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5335
5877
|
];
|
|
5336
5878
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackEmoji_ConfigPropertyMetadata);
|
|
5337
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
5879
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$o(getSlackEmoji_ConfigPropertyMetadata);
|
|
5338
5880
|
function keyBuilder$h(luvio, config) {
|
|
5339
5881
|
const resourceParams = createResourceParams$e(config);
|
|
5340
5882
|
return keyBuilder$i(luvio, resourceParams);
|
|
5341
5883
|
}
|
|
5342
5884
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5343
5885
|
const config = {};
|
|
5344
|
-
typeCheckConfig$
|
|
5886
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
5345
5887
|
return config;
|
|
5346
5888
|
}
|
|
5347
5889
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -5359,7 +5901,7 @@ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
|
5359
5901
|
}
|
|
5360
5902
|
function adapterFragment$7(luvio, config) {
|
|
5361
5903
|
createResourceParams$e(config);
|
|
5362
|
-
return select$
|
|
5904
|
+
return select$j();
|
|
5363
5905
|
}
|
|
5364
5906
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
5365
5907
|
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
@@ -5390,7 +5932,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
5390
5932
|
});
|
|
5391
5933
|
}
|
|
5392
5934
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5393
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5935
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
5394
5936
|
}
|
|
5395
5937
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5396
5938
|
const { luvio, config } = context;
|
|
@@ -5416,7 +5958,7 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
5416
5958
|
};
|
|
5417
5959
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
5418
5960
|
return function getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamIdNotifyChange(configs) {
|
|
5419
|
-
const keys = configs.map(c => keyBuilder$
|
|
5961
|
+
const keys = configs.map(c => keyBuilder$v(luvio, c));
|
|
5420
5962
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5421
5963
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5422
5964
|
const { key, record: val } = entries[i];
|
|
@@ -5449,8 +5991,8 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
5449
5991
|
};
|
|
5450
5992
|
};
|
|
5451
5993
|
|
|
5452
|
-
const VERSION$
|
|
5453
|
-
function validate$
|
|
5994
|
+
const VERSION$4 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
5995
|
+
function validate$4(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
5454
5996
|
const v_error = (() => {
|
|
5455
5997
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5456
5998
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5470,8 +6012,8 @@ function validate$5(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
5470
6012
|
})();
|
|
5471
6013
|
return v_error === undefined ? null : v_error;
|
|
5472
6014
|
}
|
|
5473
|
-
const RepresentationType$
|
|
5474
|
-
function normalize$
|
|
6015
|
+
const RepresentationType$4 = 'SlackBridgeEmojisOutputRepresentation';
|
|
6016
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5475
6017
|
const input_emojis = input.emojis;
|
|
5476
6018
|
const input_emojis_id = path.fullPath + '__emojis';
|
|
5477
6019
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
@@ -5490,22 +6032,22 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
5490
6032
|
}
|
|
5491
6033
|
return input;
|
|
5492
6034
|
}
|
|
5493
|
-
const select$
|
|
6035
|
+
const select$i = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
5494
6036
|
return {
|
|
5495
6037
|
kind: 'Fragment',
|
|
5496
|
-
version: VERSION$
|
|
6038
|
+
version: VERSION$4,
|
|
5497
6039
|
private: [],
|
|
5498
6040
|
selections: [
|
|
5499
6041
|
{
|
|
5500
6042
|
name: 'emojis',
|
|
5501
6043
|
kind: 'Link',
|
|
5502
6044
|
plural: true,
|
|
5503
|
-
fragment: select$
|
|
6045
|
+
fragment: select$u()
|
|
5504
6046
|
}
|
|
5505
6047
|
]
|
|
5506
6048
|
};
|
|
5507
6049
|
};
|
|
5508
|
-
function equals$
|
|
6050
|
+
function equals$4(existing, incoming) {
|
|
5509
6051
|
const existing_emojis = existing.emojis;
|
|
5510
6052
|
const incoming_emojis = incoming.emojis;
|
|
5511
6053
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
@@ -5518,24 +6060,24 @@ function equals$5(existing, incoming) {
|
|
|
5518
6060
|
}
|
|
5519
6061
|
return true;
|
|
5520
6062
|
}
|
|
5521
|
-
const ingest$
|
|
6063
|
+
const ingest$4 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5522
6064
|
if (process.env.NODE_ENV !== 'production') {
|
|
5523
|
-
const validateError = validate$
|
|
6065
|
+
const validateError = validate$4(input);
|
|
5524
6066
|
if (validateError !== null) {
|
|
5525
6067
|
throw validateError;
|
|
5526
6068
|
}
|
|
5527
6069
|
}
|
|
5528
6070
|
const key = path.fullPath;
|
|
5529
6071
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5530
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6072
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SlackBridge", VERSION$4, RepresentationType$4, equals$4);
|
|
5531
6073
|
return createLink(key);
|
|
5532
6074
|
};
|
|
5533
|
-
function getTypeCacheKeys$
|
|
6075
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
5534
6076
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5535
6077
|
const rootKey = fullPathFactory();
|
|
5536
6078
|
rootKeySet.set(rootKey, {
|
|
5537
6079
|
namespace: keyPrefix,
|
|
5538
|
-
representationName: RepresentationType$
|
|
6080
|
+
representationName: RepresentationType$4,
|
|
5539
6081
|
mergeable: false
|
|
5540
6082
|
});
|
|
5541
6083
|
const input_emojis_length = input.emojis.length;
|
|
@@ -5544,22 +6086,22 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5544
6086
|
}
|
|
5545
6087
|
}
|
|
5546
6088
|
|
|
5547
|
-
function select$
|
|
5548
|
-
return select$
|
|
6089
|
+
function select$h(luvio, params) {
|
|
6090
|
+
return select$i();
|
|
5549
6091
|
}
|
|
5550
6092
|
function keyBuilder$g(luvio, params) {
|
|
5551
6093
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5552
6094
|
}
|
|
5553
6095
|
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5554
|
-
getTypeCacheKeys$
|
|
6096
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
5555
6097
|
}
|
|
5556
6098
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
5557
6099
|
const { body } = response;
|
|
5558
6100
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
5559
|
-
luvio.storeIngest(key, ingest$
|
|
6101
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5560
6102
|
const snapshot = luvio.storeLookup({
|
|
5561
6103
|
recordId: key,
|
|
5562
|
-
node: select$
|
|
6104
|
+
node: select$h(),
|
|
5563
6105
|
variables: {},
|
|
5564
6106
|
}, snapshotRefresh);
|
|
5565
6107
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5596,14 +6138,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
5596
6138
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5597
6139
|
];
|
|
5598
6140
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackEmojis_ConfigPropertyMetadata);
|
|
5599
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
6141
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$o(getSlackEmojis_ConfigPropertyMetadata);
|
|
5600
6142
|
function keyBuilder$f(luvio, config) {
|
|
5601
6143
|
const resourceParams = createResourceParams$d(config);
|
|
5602
6144
|
return keyBuilder$g(luvio, resourceParams);
|
|
5603
6145
|
}
|
|
5604
6146
|
function typeCheckConfig$d(untrustedConfig) {
|
|
5605
6147
|
const config = {};
|
|
5606
|
-
typeCheckConfig$
|
|
6148
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
5607
6149
|
return config;
|
|
5608
6150
|
}
|
|
5609
6151
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -5621,7 +6163,7 @@ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
|
5621
6163
|
}
|
|
5622
6164
|
function adapterFragment$6(luvio, config) {
|
|
5623
6165
|
createResourceParams$d(config);
|
|
5624
|
-
return select$
|
|
6166
|
+
return select$h();
|
|
5625
6167
|
}
|
|
5626
6168
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
5627
6169
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
@@ -5652,7 +6194,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5652
6194
|
});
|
|
5653
6195
|
}
|
|
5654
6196
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5655
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6197
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5656
6198
|
}
|
|
5657
6199
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5658
6200
|
const { luvio, config } = context;
|
|
@@ -5677,11 +6219,11 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
5677
6219
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
5678
6220
|
};
|
|
5679
6221
|
|
|
5680
|
-
function select$
|
|
5681
|
-
return select$
|
|
6222
|
+
function select$g(luvio, params) {
|
|
6223
|
+
return select$G();
|
|
5682
6224
|
}
|
|
5683
6225
|
function keyBuilder$e(luvio, params) {
|
|
5684
|
-
return keyBuilder$
|
|
6226
|
+
return keyBuilder$D(luvio, {
|
|
5685
6227
|
channelId: params.urlParams.channelId
|
|
5686
6228
|
});
|
|
5687
6229
|
}
|
|
@@ -5694,7 +6236,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5694
6236
|
luvio.storeIngest(key, ingest$g, body);
|
|
5695
6237
|
const snapshot = luvio.storeLookup({
|
|
5696
6238
|
recordId: key,
|
|
5697
|
-
node: select$
|
|
6239
|
+
node: select$g(),
|
|
5698
6240
|
variables: {},
|
|
5699
6241
|
}, snapshotRefresh);
|
|
5700
6242
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5739,14 +6281,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
5739
6281
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5740
6282
|
];
|
|
5741
6283
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackMessage_ConfigPropertyMetadata);
|
|
5742
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
6284
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$o(getSlackMessage_ConfigPropertyMetadata);
|
|
5743
6285
|
function keyBuilder$d(luvio, config) {
|
|
5744
6286
|
const resourceParams = createResourceParams$c(config);
|
|
5745
6287
|
return keyBuilder$e(luvio, resourceParams);
|
|
5746
6288
|
}
|
|
5747
6289
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5748
6290
|
const config = {};
|
|
5749
|
-
typeCheckConfig$
|
|
6291
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
5750
6292
|
return config;
|
|
5751
6293
|
}
|
|
5752
6294
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5764,7 +6306,7 @@ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
|
5764
6306
|
}
|
|
5765
6307
|
function adapterFragment$5(luvio, config) {
|
|
5766
6308
|
createResourceParams$c(config);
|
|
5767
|
-
return select$
|
|
6309
|
+
return select$g();
|
|
5768
6310
|
}
|
|
5769
6311
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
5770
6312
|
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
@@ -5795,7 +6337,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5795
6337
|
});
|
|
5796
6338
|
}
|
|
5797
6339
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
5798
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6340
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
5799
6341
|
}
|
|
5800
6342
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
5801
6343
|
const { luvio, config } = context;
|
|
@@ -5821,7 +6363,7 @@ const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackM
|
|
|
5821
6363
|
};
|
|
5822
6364
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
5823
6365
|
return function getConnectSlackbridgeTeamChannelMessagesByChannelIdAndMessageTsAndTeamIdNotifyChange(configs) {
|
|
5824
|
-
const keys = configs.map(c => keyBuilder$
|
|
6366
|
+
const keys = configs.map(c => keyBuilder$D(luvio, c));
|
|
5825
6367
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5826
6368
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5827
6369
|
const { key, record: val } = entries[i];
|
|
@@ -5849,8 +6391,8 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
5849
6391
|
};
|
|
5850
6392
|
};
|
|
5851
6393
|
|
|
5852
|
-
const VERSION$
|
|
5853
|
-
function validate$
|
|
6394
|
+
const VERSION$3 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
6395
|
+
function validate$3(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
5854
6396
|
const v_error = (() => {
|
|
5855
6397
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5856
6398
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5873,9 +6415,9 @@ function validate$4(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
5873
6415
|
})();
|
|
5874
6416
|
return v_error === undefined ? null : v_error;
|
|
5875
6417
|
}
|
|
5876
|
-
const RepresentationType$
|
|
6418
|
+
const RepresentationType$3 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
5877
6419
|
function keyBuilder$c(luvio, config) {
|
|
5878
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6420
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.relatedRecordId;
|
|
5879
6421
|
}
|
|
5880
6422
|
function keyBuilderFromType$2(luvio, object) {
|
|
5881
6423
|
const keyParams = {
|
|
@@ -5883,7 +6425,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
5883
6425
|
};
|
|
5884
6426
|
return keyBuilder$c(luvio, keyParams);
|
|
5885
6427
|
}
|
|
5886
|
-
function normalize$
|
|
6428
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
5887
6429
|
const input_conversationInfo = input.conversationInfo;
|
|
5888
6430
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
5889
6431
|
input.conversationInfo = ingest$e(input_conversationInfo, {
|
|
@@ -5898,16 +6440,16 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
5898
6440
|
}, luvio, store, timestamp);
|
|
5899
6441
|
return input;
|
|
5900
6442
|
}
|
|
5901
|
-
const select$
|
|
6443
|
+
const select$f = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
5902
6444
|
return {
|
|
5903
6445
|
kind: 'Fragment',
|
|
5904
|
-
version: VERSION$
|
|
6446
|
+
version: VERSION$3,
|
|
5905
6447
|
private: [],
|
|
5906
6448
|
selections: [
|
|
5907
6449
|
{
|
|
5908
6450
|
name: 'conversationInfo',
|
|
5909
6451
|
kind: 'Link',
|
|
5910
|
-
fragment: select$
|
|
6452
|
+
fragment: select$D()
|
|
5911
6453
|
},
|
|
5912
6454
|
{
|
|
5913
6455
|
name: 'relatedRecordId',
|
|
@@ -5920,7 +6462,7 @@ const select$g = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
5920
6462
|
]
|
|
5921
6463
|
};
|
|
5922
6464
|
};
|
|
5923
|
-
function equals$
|
|
6465
|
+
function equals$3(existing, incoming) {
|
|
5924
6466
|
const existing_relatedRecordId = existing.relatedRecordId;
|
|
5925
6467
|
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
5926
6468
|
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
@@ -5938,31 +6480,31 @@ function equals$4(existing, incoming) {
|
|
|
5938
6480
|
}
|
|
5939
6481
|
return true;
|
|
5940
6482
|
}
|
|
5941
|
-
const ingest$
|
|
6483
|
+
const ingest$3 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5942
6484
|
if (process.env.NODE_ENV !== 'production') {
|
|
5943
|
-
const validateError = validate$
|
|
6485
|
+
const validateError = validate$3(input);
|
|
5944
6486
|
if (validateError !== null) {
|
|
5945
6487
|
throw validateError;
|
|
5946
6488
|
}
|
|
5947
6489
|
}
|
|
5948
6490
|
const key = keyBuilderFromType$2(luvio, input);
|
|
5949
6491
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5950
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6492
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
5951
6493
|
return createLink(key);
|
|
5952
6494
|
};
|
|
5953
|
-
function getTypeCacheKeys$
|
|
6495
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
5954
6496
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5955
6497
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
5956
6498
|
rootKeySet.set(rootKey, {
|
|
5957
6499
|
namespace: keyPrefix,
|
|
5958
|
-
representationName: RepresentationType$
|
|
6500
|
+
representationName: RepresentationType$3,
|
|
5959
6501
|
mergeable: false
|
|
5960
6502
|
});
|
|
5961
6503
|
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
5962
6504
|
}
|
|
5963
6505
|
|
|
5964
|
-
function select$
|
|
5965
|
-
return select$
|
|
6506
|
+
function select$e(luvio, params) {
|
|
6507
|
+
return select$f();
|
|
5966
6508
|
}
|
|
5967
6509
|
function keyBuilder$b(luvio, params) {
|
|
5968
6510
|
return keyBuilder$c(luvio, {
|
|
@@ -5970,15 +6512,15 @@ function keyBuilder$b(luvio, params) {
|
|
|
5970
6512
|
});
|
|
5971
6513
|
}
|
|
5972
6514
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
5973
|
-
getTypeCacheKeys$
|
|
6515
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
5974
6516
|
}
|
|
5975
6517
|
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
5976
6518
|
const { body } = response;
|
|
5977
6519
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
5978
|
-
luvio.storeIngest(key, ingest$
|
|
6520
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5979
6521
|
const snapshot = luvio.storeLookup({
|
|
5980
6522
|
recordId: key,
|
|
5981
|
-
node: select$
|
|
6523
|
+
node: select$e(),
|
|
5982
6524
|
variables: {},
|
|
5983
6525
|
}, snapshotRefresh);
|
|
5984
6526
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6021,14 +6563,14 @@ const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
|
6021
6563
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6022
6564
|
];
|
|
6023
6565
|
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6024
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
6566
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$o(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6025
6567
|
function keyBuilder$a(luvio, config) {
|
|
6026
6568
|
const resourceParams = createResourceParams$b(config);
|
|
6027
6569
|
return keyBuilder$b(luvio, resourceParams);
|
|
6028
6570
|
}
|
|
6029
6571
|
function typeCheckConfig$b(untrustedConfig) {
|
|
6030
6572
|
const config = {};
|
|
6031
|
-
typeCheckConfig$
|
|
6573
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6032
6574
|
return config;
|
|
6033
6575
|
}
|
|
6034
6576
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -6046,7 +6588,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
|
6046
6588
|
}
|
|
6047
6589
|
function adapterFragment$4(luvio, config) {
|
|
6048
6590
|
createResourceParams$b(config);
|
|
6049
|
-
return select$
|
|
6591
|
+
return select$e();
|
|
6050
6592
|
}
|
|
6051
6593
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6052
6594
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
@@ -6077,7 +6619,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
6077
6619
|
});
|
|
6078
6620
|
}
|
|
6079
6621
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6080
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6622
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
6081
6623
|
}
|
|
6082
6624
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6083
6625
|
const { luvio, config } = context;
|
|
@@ -6112,11 +6654,11 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
6112
6654
|
.then((response) => {
|
|
6113
6655
|
return luvio.handleSuccessResponse(() => {
|
|
6114
6656
|
const { body } = response;
|
|
6115
|
-
luvio.storeIngest(key, ingest$
|
|
6657
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
6116
6658
|
return luvio.storeBroadcast();
|
|
6117
6659
|
}, () => {
|
|
6118
6660
|
const cache = new StoreKeyMap();
|
|
6119
|
-
getTypeCacheKeys$
|
|
6661
|
+
getTypeCacheKeys$3(cache, luvio, response.body);
|
|
6120
6662
|
return cache;
|
|
6121
6663
|
});
|
|
6122
6664
|
}, (error) => {
|
|
@@ -6131,149 +6673,19 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
6131
6673
|
};
|
|
6132
6674
|
};
|
|
6133
6675
|
|
|
6134
|
-
const VERSION$3 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6135
|
-
function validate$3(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6136
|
-
const v_error = (() => {
|
|
6137
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6138
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6139
|
-
}
|
|
6140
|
-
const obj_conversationInfos = obj.conversationInfos;
|
|
6141
|
-
const path_conversationInfos = path + '.conversationInfos';
|
|
6142
|
-
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6143
|
-
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6144
|
-
}
|
|
6145
|
-
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6146
|
-
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6147
|
-
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6148
|
-
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6149
|
-
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6150
|
-
}
|
|
6151
|
-
}
|
|
6152
|
-
const obj_searchString = obj.searchString;
|
|
6153
|
-
const path_searchString = path + '.searchString';
|
|
6154
|
-
let obj_searchString_union0 = null;
|
|
6155
|
-
const obj_searchString_union0_error = (() => {
|
|
6156
|
-
if (typeof obj_searchString !== 'string') {
|
|
6157
|
-
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6158
|
-
}
|
|
6159
|
-
})();
|
|
6160
|
-
if (obj_searchString_union0_error != null) {
|
|
6161
|
-
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6162
|
-
}
|
|
6163
|
-
let obj_searchString_union1 = null;
|
|
6164
|
-
const obj_searchString_union1_error = (() => {
|
|
6165
|
-
if (obj_searchString !== null) {
|
|
6166
|
-
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6167
|
-
}
|
|
6168
|
-
})();
|
|
6169
|
-
if (obj_searchString_union1_error != null) {
|
|
6170
|
-
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6171
|
-
}
|
|
6172
|
-
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6173
|
-
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6174
|
-
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6175
|
-
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6176
|
-
return new TypeError(message);
|
|
6177
|
-
}
|
|
6178
|
-
})();
|
|
6179
|
-
return v_error === undefined ? null : v_error;
|
|
6180
|
-
}
|
|
6181
|
-
const RepresentationType$3 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6182
|
-
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6183
|
-
const input_conversationInfos = input.conversationInfos;
|
|
6184
|
-
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6185
|
-
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6186
|
-
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6187
|
-
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6188
|
-
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
6189
|
-
fullPath: input_conversationInfos_item_id,
|
|
6190
|
-
propertyName: i,
|
|
6191
|
-
parent: {
|
|
6192
|
-
data: input,
|
|
6193
|
-
key: path.fullPath,
|
|
6194
|
-
existing: existing,
|
|
6195
|
-
},
|
|
6196
|
-
ttl: path.ttl
|
|
6197
|
-
}, luvio, store, timestamp);
|
|
6198
|
-
}
|
|
6199
|
-
return input;
|
|
6200
|
-
}
|
|
6201
|
-
const select$e = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
6202
|
-
return {
|
|
6203
|
-
kind: 'Fragment',
|
|
6204
|
-
version: VERSION$3,
|
|
6205
|
-
private: [],
|
|
6206
|
-
selections: [
|
|
6207
|
-
{
|
|
6208
|
-
name: 'conversationInfos',
|
|
6209
|
-
kind: 'Link',
|
|
6210
|
-
plural: true,
|
|
6211
|
-
fragment: select$B()
|
|
6212
|
-
},
|
|
6213
|
-
{
|
|
6214
|
-
name: 'searchString',
|
|
6215
|
-
kind: 'Scalar'
|
|
6216
|
-
}
|
|
6217
|
-
]
|
|
6218
|
-
};
|
|
6219
|
-
};
|
|
6220
|
-
function equals$3(existing, incoming) {
|
|
6221
|
-
const existing_conversationInfos = existing.conversationInfos;
|
|
6222
|
-
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6223
|
-
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6224
|
-
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
6225
|
-
return false;
|
|
6226
|
-
}
|
|
6227
|
-
});
|
|
6228
|
-
if (equals_conversationInfos_items === false) {
|
|
6229
|
-
return false;
|
|
6230
|
-
}
|
|
6231
|
-
const existing_searchString = existing.searchString;
|
|
6232
|
-
const incoming_searchString = incoming.searchString;
|
|
6233
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
6234
|
-
return false;
|
|
6235
|
-
}
|
|
6236
|
-
return true;
|
|
6237
|
-
}
|
|
6238
|
-
const ingest$3 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6239
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6240
|
-
const validateError = validate$3(input);
|
|
6241
|
-
if (validateError !== null) {
|
|
6242
|
-
throw validateError;
|
|
6243
|
-
}
|
|
6244
|
-
}
|
|
6245
|
-
const key = path.fullPath;
|
|
6246
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6247
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
6248
|
-
return createLink(key);
|
|
6249
|
-
};
|
|
6250
|
-
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
6251
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6252
|
-
const rootKey = fullPathFactory();
|
|
6253
|
-
rootKeySet.set(rootKey, {
|
|
6254
|
-
namespace: keyPrefix,
|
|
6255
|
-
representationName: RepresentationType$3,
|
|
6256
|
-
mergeable: false
|
|
6257
|
-
});
|
|
6258
|
-
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6259
|
-
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6260
|
-
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6261
|
-
}
|
|
6262
|
-
}
|
|
6263
|
-
|
|
6264
6676
|
function select$d(luvio, params) {
|
|
6265
|
-
return select$
|
|
6677
|
+
return select$o();
|
|
6266
6678
|
}
|
|
6267
6679
|
function keyBuilder$9(luvio, params) {
|
|
6268
6680
|
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6269
6681
|
}
|
|
6270
6682
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
6271
|
-
getTypeCacheKeys$
|
|
6683
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
6272
6684
|
}
|
|
6273
6685
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
6274
6686
|
const { body } = response;
|
|
6275
6687
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
6276
|
-
luvio.storeIngest(key, ingest$
|
|
6688
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
6277
6689
|
const snapshot = luvio.storeLookup({
|
|
6278
6690
|
recordId: key,
|
|
6279
6691
|
node: select$d(),
|
|
@@ -6313,14 +6725,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
6313
6725
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6314
6726
|
];
|
|
6315
6727
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6316
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
6728
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$o(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6317
6729
|
function keyBuilder$8(luvio, config) {
|
|
6318
6730
|
const resourceParams = createResourceParams$a(config);
|
|
6319
6731
|
return keyBuilder$9(luvio, resourceParams);
|
|
6320
6732
|
}
|
|
6321
6733
|
function typeCheckConfig$a(untrustedConfig) {
|
|
6322
6734
|
const config = {};
|
|
6323
|
-
typeCheckConfig$
|
|
6735
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6324
6736
|
return config;
|
|
6325
6737
|
}
|
|
6326
6738
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6369,7 +6781,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6369
6781
|
});
|
|
6370
6782
|
}
|
|
6371
6783
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6372
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6784
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
6373
6785
|
}
|
|
6374
6786
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6375
6787
|
const { luvio, config } = context;
|
|
@@ -6395,18 +6807,18 @@ const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge
|
|
|
6395
6807
|
};
|
|
6396
6808
|
|
|
6397
6809
|
function select$c(luvio, params) {
|
|
6398
|
-
return select$
|
|
6810
|
+
return select$i();
|
|
6399
6811
|
}
|
|
6400
6812
|
function keyBuilder$7(luvio, params) {
|
|
6401
6813
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6402
6814
|
}
|
|
6403
6815
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
6404
|
-
getTypeCacheKeys$
|
|
6816
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
6405
6817
|
}
|
|
6406
6818
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
6407
6819
|
const { body } = response;
|
|
6408
6820
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
6409
|
-
luvio.storeIngest(key, ingest$
|
|
6821
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
6410
6822
|
const snapshot = luvio.storeLookup({
|
|
6411
6823
|
recordId: key,
|
|
6412
6824
|
node: select$c(),
|
|
@@ -6446,14 +6858,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
6446
6858
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6447
6859
|
];
|
|
6448
6860
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6449
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
6861
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$o(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6450
6862
|
function keyBuilder$6(luvio, config) {
|
|
6451
6863
|
const resourceParams = createResourceParams$9(config);
|
|
6452
6864
|
return keyBuilder$7(luvio, resourceParams);
|
|
6453
6865
|
}
|
|
6454
6866
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6455
6867
|
const config = {};
|
|
6456
|
-
typeCheckConfig$
|
|
6868
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6457
6869
|
return config;
|
|
6458
6870
|
}
|
|
6459
6871
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6502,7 +6914,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6502
6914
|
});
|
|
6503
6915
|
}
|
|
6504
6916
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6505
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6917
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6506
6918
|
}
|
|
6507
6919
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6508
6920
|
const { luvio, config } = context;
|
|
@@ -6527,12 +6939,38 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
6527
6939
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
6528
6940
|
};
|
|
6529
6941
|
|
|
6530
|
-
const VERSION$2 = "
|
|
6942
|
+
const VERSION$2 = "16b915c502b8a0609446d7ed3907a794";
|
|
6531
6943
|
function validate$2(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
6532
6944
|
const v_error = (() => {
|
|
6533
6945
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6534
6946
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6535
6947
|
}
|
|
6948
|
+
const obj_nextMarker = obj.nextMarker;
|
|
6949
|
+
const path_nextMarker = path + '.nextMarker';
|
|
6950
|
+
let obj_nextMarker_union0 = null;
|
|
6951
|
+
const obj_nextMarker_union0_error = (() => {
|
|
6952
|
+
if (typeof obj_nextMarker !== 'string') {
|
|
6953
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
6954
|
+
}
|
|
6955
|
+
})();
|
|
6956
|
+
if (obj_nextMarker_union0_error != null) {
|
|
6957
|
+
obj_nextMarker_union0 = obj_nextMarker_union0_error.message;
|
|
6958
|
+
}
|
|
6959
|
+
let obj_nextMarker_union1 = null;
|
|
6960
|
+
const obj_nextMarker_union1_error = (() => {
|
|
6961
|
+
if (obj_nextMarker !== null) {
|
|
6962
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
6963
|
+
}
|
|
6964
|
+
})();
|
|
6965
|
+
if (obj_nextMarker_union1_error != null) {
|
|
6966
|
+
obj_nextMarker_union1 = obj_nextMarker_union1_error.message;
|
|
6967
|
+
}
|
|
6968
|
+
if (obj_nextMarker_union0 && obj_nextMarker_union1) {
|
|
6969
|
+
let message = 'Object doesn\'t match union (at "' + path_nextMarker + '")';
|
|
6970
|
+
message += '\n' + obj_nextMarker_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6971
|
+
message += '\n' + obj_nextMarker_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6972
|
+
return new TypeError(message);
|
|
6973
|
+
}
|
|
6536
6974
|
const obj_searchString = obj.searchString;
|
|
6537
6975
|
const path_searchString = path + '.searchString';
|
|
6538
6976
|
let obj_searchString_union0 = null;
|
|
@@ -6600,6 +7038,10 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6600
7038
|
version: VERSION$2,
|
|
6601
7039
|
private: [],
|
|
6602
7040
|
selections: [
|
|
7041
|
+
{
|
|
7042
|
+
name: 'nextMarker',
|
|
7043
|
+
kind: 'Scalar'
|
|
7044
|
+
},
|
|
6603
7045
|
{
|
|
6604
7046
|
name: 'searchString',
|
|
6605
7047
|
kind: 'Scalar'
|
|
@@ -6608,12 +7050,17 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6608
7050
|
name: 'userInfos',
|
|
6609
7051
|
kind: 'Link',
|
|
6610
7052
|
plural: true,
|
|
6611
|
-
fragment: select$
|
|
7053
|
+
fragment: select$t()
|
|
6612
7054
|
}
|
|
6613
7055
|
]
|
|
6614
7056
|
};
|
|
6615
7057
|
};
|
|
6616
7058
|
function equals$2(existing, incoming) {
|
|
7059
|
+
const existing_nextMarker = existing.nextMarker;
|
|
7060
|
+
const incoming_nextMarker = incoming.nextMarker;
|
|
7061
|
+
if (!(existing_nextMarker === incoming_nextMarker)) {
|
|
7062
|
+
return false;
|
|
7063
|
+
}
|
|
6617
7064
|
const existing_searchString = existing.searchString;
|
|
6618
7065
|
const incoming_searchString = incoming.searchString;
|
|
6619
7066
|
if (!(existing_searchString === incoming_searchString)) {
|
|
@@ -6712,14 +7159,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
6712
7159
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6713
7160
|
];
|
|
6714
7161
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6715
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
7162
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$o(getSlackSearchUser_ConfigPropertyMetadata);
|
|
6716
7163
|
function keyBuilder$4(luvio, config) {
|
|
6717
7164
|
const resourceParams = createResourceParams$8(config);
|
|
6718
7165
|
return keyBuilder$5(luvio, resourceParams);
|
|
6719
7166
|
}
|
|
6720
7167
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6721
7168
|
const config = {};
|
|
6722
|
-
typeCheckConfig$
|
|
7169
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6723
7170
|
return config;
|
|
6724
7171
|
}
|
|
6725
7172
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -6768,7 +7215,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6768
7215
|
});
|
|
6769
7216
|
}
|
|
6770
7217
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6771
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7218
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
6772
7219
|
}
|
|
6773
7220
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6774
7221
|
const { luvio, config } = context;
|
|
@@ -6794,10 +7241,10 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
6794
7241
|
};
|
|
6795
7242
|
|
|
6796
7243
|
function select$9(luvio, params) {
|
|
6797
|
-
return select$
|
|
7244
|
+
return select$t();
|
|
6798
7245
|
}
|
|
6799
7246
|
function keyBuilder$3(luvio, params) {
|
|
6800
|
-
return keyBuilder$
|
|
7247
|
+
return keyBuilder$u(luvio, {
|
|
6801
7248
|
slackUserId: params.urlParams.slackUserId
|
|
6802
7249
|
});
|
|
6803
7250
|
}
|
|
@@ -6860,14 +7307,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
6860
7307
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6861
7308
|
];
|
|
6862
7309
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackUser_ConfigPropertyMetadata);
|
|
6863
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7310
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$o(getSlackUser_ConfigPropertyMetadata);
|
|
6864
7311
|
function keyBuilder$2(luvio, config) {
|
|
6865
7312
|
const resourceParams = createResourceParams$7(config);
|
|
6866
7313
|
return keyBuilder$3(luvio, resourceParams);
|
|
6867
7314
|
}
|
|
6868
7315
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6869
7316
|
const config = {};
|
|
6870
|
-
typeCheckConfig$
|
|
7317
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
6871
7318
|
return config;
|
|
6872
7319
|
}
|
|
6873
7320
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6916,7 +7363,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6916
7363
|
});
|
|
6917
7364
|
}
|
|
6918
7365
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6919
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7366
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6920
7367
|
}
|
|
6921
7368
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6922
7369
|
const { luvio, config } = context;
|
|
@@ -6942,7 +7389,7 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
6942
7389
|
};
|
|
6943
7390
|
const notifyChangeFactory = (luvio, options) => {
|
|
6944
7391
|
return function getConnectSlackbridgeTeamUserBySlackUserIdAndTeamIdNotifyChange(configs) {
|
|
6945
|
-
const keys = configs.map(c => keyBuilder$
|
|
7392
|
+
const keys = configs.map(c => keyBuilder$u(luvio, c));
|
|
6946
7393
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
6947
7394
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
6948
7395
|
const { key, record: val } = entries[i];
|
|
@@ -6976,7 +7423,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
6976
7423
|
};
|
|
6977
7424
|
|
|
6978
7425
|
function select$8(luvio, params) {
|
|
6979
|
-
return select$
|
|
7426
|
+
return select$G();
|
|
6980
7427
|
}
|
|
6981
7428
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6982
7429
|
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
@@ -7020,10 +7467,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
7020
7467
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
7021
7468
|
];
|
|
7022
7469
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
|
|
7023
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7470
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$o(patchSlackMessage_ConfigPropertyMetadata);
|
|
7024
7471
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7025
7472
|
const config = {};
|
|
7026
|
-
typeCheckConfig$
|
|
7473
|
+
typeCheckConfig$o(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
7027
7474
|
return config;
|
|
7028
7475
|
}
|
|
7029
7476
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7130,7 +7577,7 @@ const select$7 = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
7130
7577
|
{
|
|
7131
7578
|
name: 'postedMessage',
|
|
7132
7579
|
kind: 'Link',
|
|
7133
|
-
fragment: select$
|
|
7580
|
+
fragment: select$y()
|
|
7134
7581
|
},
|
|
7135
7582
|
{
|
|
7136
7583
|
name: 'timestamp',
|
|
@@ -7227,10 +7674,10 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
7227
7674
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
7228
7675
|
];
|
|
7229
7676
|
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, postSlackConversation_ConfigPropertyMetadata);
|
|
7230
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7677
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$o(postSlackConversation_ConfigPropertyMetadata);
|
|
7231
7678
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7232
7679
|
const config = {};
|
|
7233
|
-
typeCheckConfig$
|
|
7680
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
7234
7681
|
return config;
|
|
7235
7682
|
}
|
|
7236
7683
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7403,10 +7850,10 @@ const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
|
7403
7850
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
7404
7851
|
];
|
|
7405
7852
|
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7406
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7853
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$o(postSlackConversationMark_ConfigPropertyMetadata);
|
|
7407
7854
|
function typeCheckConfig$4(untrustedConfig) {
|
|
7408
7855
|
const config = {};
|
|
7409
|
-
typeCheckConfig$
|
|
7856
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7410
7857
|
return config;
|
|
7411
7858
|
}
|
|
7412
7859
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -7452,15 +7899,15 @@ const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
|
7452
7899
|
};
|
|
7453
7900
|
|
|
7454
7901
|
function select$3(luvio, params) {
|
|
7455
|
-
return select$
|
|
7902
|
+
return select$l();
|
|
7456
7903
|
}
|
|
7457
7904
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7458
|
-
getTypeCacheKeys$
|
|
7905
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
7459
7906
|
}
|
|
7460
7907
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
7461
7908
|
const { body } = response;
|
|
7462
7909
|
const key = keyBuilderFromType$3(luvio, body);
|
|
7463
|
-
luvio.storeIngest(key, ingest$
|
|
7910
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
7464
7911
|
const snapshot = luvio.storeLookup({
|
|
7465
7912
|
recordId: key,
|
|
7466
7913
|
node: select$3(),
|
|
@@ -7495,10 +7942,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
7495
7942
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
7496
7943
|
];
|
|
7497
7944
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7498
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7945
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$o(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7499
7946
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7500
7947
|
const config = {};
|
|
7501
|
-
typeCheckConfig$
|
|
7948
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7502
7949
|
return config;
|
|
7503
7950
|
}
|
|
7504
7951
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7544,7 +7991,7 @@ const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
|
7544
7991
|
};
|
|
7545
7992
|
|
|
7546
7993
|
function select$2(luvio, params) {
|
|
7547
|
-
return select$
|
|
7994
|
+
return select$z();
|
|
7548
7995
|
}
|
|
7549
7996
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
7550
7997
|
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
@@ -7592,10 +8039,10 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
7592
8039
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
7593
8040
|
];
|
|
7594
8041
|
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postSlackFile_ConfigPropertyMetadata);
|
|
7595
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8042
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$o(postSlackFile_ConfigPropertyMetadata);
|
|
7596
8043
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7597
8044
|
const config = {};
|
|
7598
|
-
typeCheckConfig$
|
|
8045
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
7599
8046
|
return config;
|
|
7600
8047
|
}
|
|
7601
8048
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7641,7 +8088,7 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
7641
8088
|
};
|
|
7642
8089
|
|
|
7643
8090
|
function select$1(luvio, params) {
|
|
7644
|
-
return select$
|
|
8091
|
+
return select$E();
|
|
7645
8092
|
}
|
|
7646
8093
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7647
8094
|
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
@@ -7685,10 +8132,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
7685
8132
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7686
8133
|
];
|
|
7687
8134
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7688
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8135
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$o(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7689
8136
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7690
8137
|
const config = {};
|
|
7691
|
-
typeCheckConfig$
|
|
8138
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7692
8139
|
return config;
|
|
7693
8140
|
}
|
|
7694
8141
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7734,15 +8181,15 @@ const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
|
7734
8181
|
};
|
|
7735
8182
|
|
|
7736
8183
|
function select(luvio, params) {
|
|
7737
|
-
return select$
|
|
8184
|
+
return select$f();
|
|
7738
8185
|
}
|
|
7739
8186
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
7740
|
-
getTypeCacheKeys$
|
|
8187
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
7741
8188
|
}
|
|
7742
8189
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
7743
8190
|
const { body } = response;
|
|
7744
8191
|
const key = keyBuilderFromType$2(luvio, body);
|
|
7745
|
-
luvio.storeIngest(key, ingest$
|
|
8192
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
7746
8193
|
const snapshot = luvio.storeLookup({
|
|
7747
8194
|
recordId: key,
|
|
7748
8195
|
node: select(),
|
|
@@ -7776,10 +8223,10 @@ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
|
7776
8223
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
7777
8224
|
];
|
|
7778
8225
|
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7779
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8226
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$o(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7780
8227
|
function typeCheckConfig(untrustedConfig) {
|
|
7781
8228
|
const config = {};
|
|
7782
|
-
typeCheckConfig$
|
|
8229
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7783
8230
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
7784
8231
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
7785
8232
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -7840,6 +8287,9 @@ let deleteSlackMessage;
|
|
|
7840
8287
|
let deleteSlackMessageReactions;
|
|
7841
8288
|
let getRelatedThreads;
|
|
7842
8289
|
let getSlackConversation;
|
|
8290
|
+
let getSlackConversationInfo;
|
|
8291
|
+
let getSlackConversationInfoNotifyChange;
|
|
8292
|
+
let getSlackConversationInfos;
|
|
7843
8293
|
let getSlackConversationMember;
|
|
7844
8294
|
let getSlackConversationMemberNotifyChange;
|
|
7845
8295
|
let getSlackConversationMembers;
|
|
@@ -7866,6 +8316,8 @@ let postSlackRecordChannelInfos;
|
|
|
7866
8316
|
// Imperative GET Adapters
|
|
7867
8317
|
let getRelatedThreads_imperative;
|
|
7868
8318
|
let getSlackConversation_imperative;
|
|
8319
|
+
let getSlackConversationInfo_imperative;
|
|
8320
|
+
let getSlackConversationInfos_imperative;
|
|
7869
8321
|
let getSlackConversationMember_imperative;
|
|
7870
8322
|
let getSlackConversationMembers_imperative;
|
|
7871
8323
|
let getSlackEmoji_imperative;
|
|
@@ -7878,6 +8330,15 @@ let getSlackSearchUser_imperative;
|
|
|
7878
8330
|
let getSlackUser_imperative;
|
|
7879
8331
|
const getRelatedThreadsMetadata = { apiFamily: 'SlackBridge', name: 'getRelatedThreads', ttl: 500 };
|
|
7880
8332
|
const getSlackConversationMetadata = { apiFamily: 'SlackBridge', name: 'getSlackConversation' };
|
|
8333
|
+
const getSlackConversationInfoMetadata = {
|
|
8334
|
+
apiFamily: 'SlackBridge',
|
|
8335
|
+
name: 'getSlackConversationInfo',
|
|
8336
|
+
ttl: 900000,
|
|
8337
|
+
};
|
|
8338
|
+
const getSlackConversationInfosMetadata = {
|
|
8339
|
+
apiFamily: 'SlackBridge',
|
|
8340
|
+
name: 'getSlackConversationInfos',
|
|
8341
|
+
};
|
|
7881
8342
|
const getSlackConversationMemberMetadata = {
|
|
7882
8343
|
apiFamily: 'SlackBridge',
|
|
7883
8344
|
name: 'getSlackConversationMember',
|
|
@@ -7899,12 +8360,14 @@ const getSlackSearchConversationMetadata = {
|
|
|
7899
8360
|
};
|
|
7900
8361
|
const getSlackSearchEmojiMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchEmoji' };
|
|
7901
8362
|
const getSlackSearchUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchUser' };
|
|
7902
|
-
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl:
|
|
8363
|
+
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl: 900000 };
|
|
7903
8364
|
// Notify Update Available
|
|
7904
8365
|
function bindExportsTo(luvio) {
|
|
7905
8366
|
// LDS Adapters
|
|
7906
8367
|
const getRelatedThreads_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedThreads', getRelatedThreadsAdapterFactory), getRelatedThreadsMetadata);
|
|
7907
8368
|
const getSlackConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversation', getSlackConversationAdapterFactory), getSlackConversationMetadata);
|
|
8369
|
+
const getSlackConversationInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationInfo', getSlackConversationInfoAdapterFactory), getSlackConversationInfoMetadata);
|
|
8370
|
+
const getSlackConversationInfos_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationInfos', getSlackConversationInfosAdapterFactory), getSlackConversationInfosMetadata);
|
|
7908
8371
|
const getSlackConversationMember_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMember', getSlackConversationMemberAdapterFactory), getSlackConversationMemberMetadata);
|
|
7909
8372
|
const getSlackConversationMembers_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMembers', getSlackConversationMembersAdapterFactory), getSlackConversationMembersMetadata);
|
|
7910
8373
|
const getSlackEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackEmoji', getSlackEmojiAdapterFactory), getSlackEmojiMetadata);
|
|
@@ -7920,11 +8383,14 @@ function bindExportsTo(luvio) {
|
|
|
7920
8383
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
7921
8384
|
}
|
|
7922
8385
|
return {
|
|
7923
|
-
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$
|
|
7924
|
-
deleteSlackMessage: createLDSAdapter(luvio, adapterName$
|
|
7925
|
-
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$
|
|
8386
|
+
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$n, deleteSlackConversationMemberAdapterFactory),
|
|
8387
|
+
deleteSlackMessage: createLDSAdapter(luvio, adapterName$m, deleteSlackMessageAdapterFactory),
|
|
8388
|
+
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$l, deleteSlackMessageReactionsAdapterFactory),
|
|
7926
8389
|
getRelatedThreads: createWireAdapterConstructor(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
7927
8390
|
getSlackConversation: createWireAdapterConstructor(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8391
|
+
getSlackConversationInfo: createWireAdapterConstructor(luvio, getSlackConversationInfo_ldsAdapter, getSlackConversationInfoMetadata),
|
|
8392
|
+
getSlackConversationInfoNotifyChange: createLDSAdapter(luvio, 'getSlackConversationInfoNotifyChange', notifyChangeFactory$6),
|
|
8393
|
+
getSlackConversationInfos: createWireAdapterConstructor(luvio, getSlackConversationInfos_ldsAdapter, getSlackConversationInfosMetadata),
|
|
7928
8394
|
getSlackConversationMember: createWireAdapterConstructor(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7929
8395
|
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$5),
|
|
7930
8396
|
getSlackConversationMembers: createWireAdapterConstructor(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
@@ -7951,6 +8417,8 @@ function bindExportsTo(luvio) {
|
|
|
7951
8417
|
// Imperative GET Adapters
|
|
7952
8418
|
getRelatedThreads_imperative: createImperativeAdapter(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
7953
8419
|
getSlackConversation_imperative: createImperativeAdapter(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8420
|
+
getSlackConversationInfo_imperative: createImperativeAdapter(luvio, getSlackConversationInfo_ldsAdapter, getSlackConversationInfoMetadata),
|
|
8421
|
+
getSlackConversationInfos_imperative: createImperativeAdapter(luvio, getSlackConversationInfos_ldsAdapter, getSlackConversationInfosMetadata),
|
|
7954
8422
|
getSlackConversationMember_imperative: createImperativeAdapter(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7955
8423
|
getSlackConversationMembers_imperative: createImperativeAdapter(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
7956
8424
|
getSlackEmoji_imperative: createImperativeAdapter(luvio, getSlackEmoji_ldsAdapter, getSlackEmojiMetadata),
|
|
@@ -7971,6 +8439,9 @@ withDefaultLuvio((luvio) => {
|
|
|
7971
8439
|
deleteSlackMessageReactions,
|
|
7972
8440
|
getRelatedThreads,
|
|
7973
8441
|
getSlackConversation,
|
|
8442
|
+
getSlackConversationInfo,
|
|
8443
|
+
getSlackConversationInfoNotifyChange,
|
|
8444
|
+
getSlackConversationInfos,
|
|
7974
8445
|
getSlackConversationMember,
|
|
7975
8446
|
getSlackConversationMemberNotifyChange,
|
|
7976
8447
|
getSlackConversationMembers,
|
|
@@ -7996,6 +8467,8 @@ withDefaultLuvio((luvio) => {
|
|
|
7996
8467
|
postSlackRecordChannelInfos,
|
|
7997
8468
|
getRelatedThreads_imperative,
|
|
7998
8469
|
getSlackConversation_imperative,
|
|
8470
|
+
getSlackConversationInfo_imperative,
|
|
8471
|
+
getSlackConversationInfos_imperative,
|
|
7999
8472
|
getSlackConversationMember_imperative,
|
|
8000
8473
|
getSlackConversationMembers_imperative,
|
|
8001
8474
|
getSlackEmoji_imperative,
|
|
@@ -8009,5 +8482,5 @@ withDefaultLuvio((luvio) => {
|
|
|
8009
8482
|
} = bindExportsTo(luvio));
|
|
8010
8483
|
});
|
|
8011
8484
|
|
|
8012
|
-
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, 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 };
|
|
8013
|
-
// version: 1.332.0-
|
|
8485
|
+
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationInfo, getSlackConversationInfoNotifyChange, getSlackConversationInfo_imperative, getSlackConversationInfos, getSlackConversationInfos_imperative, 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 };
|
|
8486
|
+
// version: 1.332.0-dev27-60d5a53495
|