@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev1 → 1.354.0-dev3
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 +1211 -786
- 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 +4 -7
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +1003 -512
- package/src/raml/api.raml +56 -1
- package/src/raml/luvio.raml +12 -3
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$p, typeCheckConfig as typeCheckConfig$p, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$f } 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$o(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
142
142
|
return v_error === undefined ? null : v_error;
|
|
143
143
|
}
|
|
144
144
|
const RepresentationType$i = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
145
|
-
function keyBuilder$
|
|
145
|
+
function keyBuilder$H(luvio, config) {
|
|
146
146
|
return keyPrefix + '::' + RepresentationType$i + ':' + 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$H(luvio, keyParams);
|
|
153
153
|
}
|
|
154
154
|
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
155
155
|
return input;
|
|
156
156
|
}
|
|
157
|
-
const select$
|
|
157
|
+
const select$K = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
158
158
|
return {
|
|
159
159
|
kind: 'Fragment',
|
|
160
160
|
version: VERSION$o,
|
|
@@ -206,13 +206,13 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
function keyBuilder$
|
|
210
|
-
return keyBuilder$
|
|
209
|
+
function keyBuilder$G(luvio, params) {
|
|
210
|
+
return keyBuilder$H(luvio, {
|
|
211
211
|
channelId: params.urlParams.channelId
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function getResponseCacheKeys$
|
|
215
|
-
const key = keyBuilder$
|
|
214
|
+
function getResponseCacheKeys$o(cacheKeyMap, luvio, resourceParams) {
|
|
215
|
+
const key = keyBuilder$G(luvio, resourceParams);
|
|
216
216
|
cacheKeyMap.set(key, {
|
|
217
217
|
namespace: keyPrefix,
|
|
218
218
|
representationName: RepresentationType$i,
|
|
@@ -220,10 +220,10 @@ function getResponseCacheKeys$m(cacheKeyMap, luvio, resourceParams) {
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
function evictSuccess$2(luvio, resourceParams) {
|
|
223
|
-
const key = keyBuilder$
|
|
223
|
+
const key = keyBuilder$G(luvio, resourceParams);
|
|
224
224
|
luvio.storeEvict(key);
|
|
225
225
|
}
|
|
226
|
-
function createResourceRequest$
|
|
226
|
+
function createResourceRequest$o(config) {
|
|
227
227
|
const headers = {};
|
|
228
228
|
return {
|
|
229
229
|
baseUri: '/services/data/v64.0',
|
|
@@ -237,35 +237,35 @@ function createResourceRequest$m(config) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
const adapterName$
|
|
240
|
+
const adapterName$o = '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$o, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
247
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$p(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
248
|
+
function typeCheckConfig$o(untrustedConfig) {
|
|
249
249
|
const config = {};
|
|
250
|
-
typeCheckConfig$
|
|
250
|
+
typeCheckConfig$p(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
251
251
|
return config;
|
|
252
252
|
}
|
|
253
|
-
function validateAdapterConfig$
|
|
253
|
+
function validateAdapterConfig$o(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$o(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$o(luvio, config, options) {
|
|
267
|
+
const resourceParams = createResourceParams$o(config);
|
|
268
|
+
const request = createResourceRequest$o(resourceParams);
|
|
269
269
|
return luvio.dispatchResourceRequest(request, options)
|
|
270
270
|
.then(() => {
|
|
271
271
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -273,7 +273,7 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
273
273
|
return luvio.storeBroadcast();
|
|
274
274
|
}, () => {
|
|
275
275
|
const cache = new StoreKeyMap();
|
|
276
|
-
getResponseCacheKeys$
|
|
276
|
+
getResponseCacheKeys$o(cache, luvio, resourceParams);
|
|
277
277
|
return cache;
|
|
278
278
|
});
|
|
279
279
|
}, (response) => {
|
|
@@ -283,12 +283,12 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
283
283
|
}
|
|
284
284
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
285
285
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
286
|
-
const config = validateAdapterConfig$
|
|
286
|
+
const config = validateAdapterConfig$o(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$o}"`);
|
|
290
290
|
}
|
|
291
|
-
return buildNetworkSnapshot$
|
|
291
|
+
return buildNetworkSnapshot$o(luvio, config);
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
|
|
@@ -317,19 +317,19 @@ function validate$n(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
const RepresentationType$h = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
320
|
-
function keyBuilder$
|
|
320
|
+
function keyBuilder$F(luvio, config) {
|
|
321
321
|
return keyPrefix + '::' + RepresentationType$h + ':' + 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$F(luvio, keyParams);
|
|
328
328
|
}
|
|
329
329
|
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
330
330
|
return input;
|
|
331
331
|
}
|
|
332
|
-
const select$
|
|
332
|
+
const select$J = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
333
333
|
return {
|
|
334
334
|
kind: 'Fragment',
|
|
335
335
|
version: VERSION$n,
|
|
@@ -390,13 +390,13 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
function keyBuilder$
|
|
394
|
-
return keyBuilder$
|
|
393
|
+
function keyBuilder$E(luvio, params) {
|
|
394
|
+
return keyBuilder$F(luvio, {
|
|
395
395
|
channelId: params.urlParams.channelId
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
function getResponseCacheKeys$
|
|
399
|
-
const key = keyBuilder$
|
|
398
|
+
function getResponseCacheKeys$n(cacheKeyMap, luvio, resourceParams) {
|
|
399
|
+
const key = keyBuilder$E(luvio, resourceParams);
|
|
400
400
|
cacheKeyMap.set(key, {
|
|
401
401
|
namespace: keyPrefix,
|
|
402
402
|
representationName: RepresentationType$h,
|
|
@@ -404,10 +404,10 @@ function getResponseCacheKeys$l(cacheKeyMap, luvio, resourceParams) {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
function evictSuccess$1(luvio, resourceParams) {
|
|
407
|
-
const key = keyBuilder$
|
|
407
|
+
const key = keyBuilder$E(luvio, resourceParams);
|
|
408
408
|
luvio.storeEvict(key);
|
|
409
409
|
}
|
|
410
|
-
function createResourceRequest$
|
|
410
|
+
function createResourceRequest$n(config) {
|
|
411
411
|
const headers = {};
|
|
412
412
|
return {
|
|
413
413
|
baseUri: '/services/data/v64.0',
|
|
@@ -421,35 +421,35 @@ function createResourceRequest$l(config) {
|
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
const adapterName$
|
|
424
|
+
const adapterName$n = '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$n, deleteSlackMessage_ConfigPropertyMetadata);
|
|
431
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$p(deleteSlackMessage_ConfigPropertyMetadata);
|
|
432
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
433
433
|
const config = {};
|
|
434
|
-
typeCheckConfig$
|
|
434
|
+
typeCheckConfig$p(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
435
435
|
return config;
|
|
436
436
|
}
|
|
437
|
-
function validateAdapterConfig$
|
|
437
|
+
function validateAdapterConfig$n(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$n(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$n(luvio, config, options) {
|
|
451
|
+
const resourceParams = createResourceParams$n(config);
|
|
452
|
+
const request = createResourceRequest$n(resourceParams);
|
|
453
453
|
return luvio.dispatchResourceRequest(request, options)
|
|
454
454
|
.then(() => {
|
|
455
455
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -457,7 +457,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
457
457
|
return luvio.storeBroadcast();
|
|
458
458
|
}, () => {
|
|
459
459
|
const cache = new StoreKeyMap();
|
|
460
|
-
getResponseCacheKeys$
|
|
460
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams);
|
|
461
461
|
return cache;
|
|
462
462
|
});
|
|
463
463
|
}, (response) => {
|
|
@@ -467,12 +467,12 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
467
467
|
}
|
|
468
468
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
469
469
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
470
|
-
const config = validateAdapterConfig$
|
|
470
|
+
const config = validateAdapterConfig$n(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$n}"`);
|
|
474
474
|
}
|
|
475
|
-
return buildNetworkSnapshot$
|
|
475
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
476
476
|
};
|
|
477
477
|
};
|
|
478
478
|
|
|
@@ -554,7 +554,7 @@ function validate$m(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
554
554
|
})();
|
|
555
555
|
return v_error === undefined ? null : v_error;
|
|
556
556
|
}
|
|
557
|
-
const select$
|
|
557
|
+
const select$I = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
558
558
|
return {
|
|
559
559
|
kind: 'Fragment',
|
|
560
560
|
version: VERSION$m,
|
|
@@ -649,20 +649,20 @@ function validate$l(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
649
649
|
return v_error === undefined ? null : v_error;
|
|
650
650
|
}
|
|
651
651
|
const RepresentationType$g = 'SlackBridgeReactionsOutputRepresentation';
|
|
652
|
-
function keyBuilder$
|
|
652
|
+
function keyBuilder$D(luvio, config) {
|
|
653
653
|
return keyPrefix + '::' + RepresentationType$g + ':' + 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$D(luvio, keyParams);
|
|
660
660
|
}
|
|
661
661
|
function normalize$g(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$H = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
665
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$I();
|
|
666
666
|
return {
|
|
667
667
|
kind: 'Fragment',
|
|
668
668
|
version: VERSION$l,
|
|
@@ -739,13 +739,13 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
-
function keyBuilder$
|
|
743
|
-
return keyBuilder$
|
|
742
|
+
function keyBuilder$C(luvio, params) {
|
|
743
|
+
return keyBuilder$D(luvio, {
|
|
744
744
|
channelId: params.urlParams.channelId
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
function getResponseCacheKeys$
|
|
748
|
-
const key = keyBuilder$
|
|
747
|
+
function getResponseCacheKeys$m(cacheKeyMap, luvio, resourceParams) {
|
|
748
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
749
749
|
cacheKeyMap.set(key, {
|
|
750
750
|
namespace: keyPrefix,
|
|
751
751
|
representationName: RepresentationType$g,
|
|
@@ -753,10 +753,10 @@ function getResponseCacheKeys$k(cacheKeyMap, luvio, resourceParams) {
|
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
function evictSuccess(luvio, resourceParams) {
|
|
756
|
-
const key = keyBuilder$
|
|
756
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
757
757
|
luvio.storeEvict(key);
|
|
758
758
|
}
|
|
759
|
-
function createResourceRequest$
|
|
759
|
+
function createResourceRequest$m(config) {
|
|
760
760
|
const headers = {};
|
|
761
761
|
return {
|
|
762
762
|
baseUri: '/services/data/v64.0',
|
|
@@ -770,36 +770,36 @@ function createResourceRequest$k(config) {
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
const adapterName$
|
|
773
|
+
const adapterName$m = '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$m, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
781
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$p(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
782
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
783
783
|
const config = {};
|
|
784
|
-
typeCheckConfig$
|
|
784
|
+
typeCheckConfig$p(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
785
785
|
return config;
|
|
786
786
|
}
|
|
787
|
-
function validateAdapterConfig$
|
|
787
|
+
function validateAdapterConfig$m(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$m(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$m(luvio, config, options) {
|
|
801
|
+
const resourceParams = createResourceParams$m(config);
|
|
802
|
+
const request = createResourceRequest$m(resourceParams);
|
|
803
803
|
return luvio.dispatchResourceRequest(request, options)
|
|
804
804
|
.then(() => {
|
|
805
805
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -807,7 +807,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
807
807
|
return luvio.storeBroadcast();
|
|
808
808
|
}, () => {
|
|
809
809
|
const cache = new StoreKeyMap();
|
|
810
|
-
getResponseCacheKeys$
|
|
810
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams);
|
|
811
811
|
return cache;
|
|
812
812
|
});
|
|
813
813
|
}, (response) => {
|
|
@@ -817,15 +817,16 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
817
817
|
}
|
|
818
818
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
819
819
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
820
|
-
const config = validateAdapterConfig$
|
|
820
|
+
const config = validateAdapterConfig$m(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$m}"`);
|
|
824
824
|
}
|
|
825
|
-
return buildNetworkSnapshot$
|
|
825
|
+
return buildNetworkSnapshot$m(luvio, config);
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
828
|
|
|
829
|
+
const TTL$4 = 900000;
|
|
829
830
|
const VERSION$k = "252fe3a6509a770a876e36552ad8dd06";
|
|
830
831
|
function validate$k(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
831
832
|
const v_error = (() => {
|
|
@@ -1165,19 +1166,19 @@ function validate$k(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1165
1166
|
return v_error === undefined ? null : v_error;
|
|
1166
1167
|
}
|
|
1167
1168
|
const RepresentationType$f = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1168
|
-
function keyBuilder$
|
|
1169
|
+
function keyBuilder$B(luvio, config) {
|
|
1169
1170
|
return keyPrefix + '::' + RepresentationType$f + ':' + 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$B(luvio, keyParams);
|
|
1176
1177
|
}
|
|
1177
1178
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
1178
1179
|
return input;
|
|
1179
1180
|
}
|
|
1180
|
-
const select$
|
|
1181
|
+
const select$G = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1181
1182
|
return {
|
|
1182
1183
|
kind: 'Fragment',
|
|
1183
1184
|
version: VERSION$k,
|
|
@@ -1341,7 +1342,7 @@ const ingest$f = function SlackBridgeConversationInfoOutputRepresentationIngest(
|
|
|
1341
1342
|
}
|
|
1342
1343
|
}
|
|
1343
1344
|
const key = keyBuilderFromType$7(luvio, input);
|
|
1344
|
-
const ttlToUse =
|
|
1345
|
+
const ttlToUse = TTL$4;
|
|
1345
1346
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SlackBridge", VERSION$k, RepresentationType$f, equals$k);
|
|
1346
1347
|
return createLink(key);
|
|
1347
1348
|
};
|
|
@@ -1374,7 +1375,7 @@ function validate$j(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1374
1375
|
})();
|
|
1375
1376
|
return v_error === undefined ? null : v_error;
|
|
1376
1377
|
}
|
|
1377
|
-
const select$
|
|
1378
|
+
const select$F = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1378
1379
|
return {
|
|
1379
1380
|
kind: 'Fragment',
|
|
1380
1381
|
version: VERSION$j,
|
|
@@ -1489,8 +1490,8 @@ function validate$i(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$E = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1494
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$F();
|
|
1494
1495
|
return {
|
|
1495
1496
|
kind: 'Fragment',
|
|
1496
1497
|
version: VERSION$i,
|
|
@@ -1602,9 +1603,9 @@ function validate$h(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$D = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
1607
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$F();
|
|
1608
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$E();
|
|
1608
1609
|
return {
|
|
1609
1610
|
kind: 'Fragment',
|
|
1610
1611
|
version: VERSION$h,
|
|
@@ -1837,20 +1838,20 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1837
1838
|
return v_error === undefined ? null : v_error;
|
|
1838
1839
|
}
|
|
1839
1840
|
const RepresentationType$e = 'SlackBridgeFileOutputRepresentation';
|
|
1840
|
-
function keyBuilder$
|
|
1841
|
+
function keyBuilder$A(luvio, config) {
|
|
1841
1842
|
return keyPrefix + '::' + RepresentationType$e + ':' + (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$A(luvio, keyParams);
|
|
1848
1849
|
}
|
|
1849
1850
|
function normalize$e(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$C = function SlackBridgeFileOutputRepresentationSelect() {
|
|
1854
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$D();
|
|
1854
1855
|
return {
|
|
1855
1856
|
kind: 'Fragment',
|
|
1856
1857
|
version: VERSION$g,
|
|
@@ -2383,8 +2384,8 @@ function normalize$d(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$B = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2388
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$I();
|
|
2388
2389
|
return {
|
|
2389
2390
|
kind: 'Fragment',
|
|
2390
2391
|
version: VERSION$f,
|
|
@@ -2408,7 +2409,7 @@ const select$z = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2408
2409
|
name: 'files',
|
|
2409
2410
|
kind: 'Link',
|
|
2410
2411
|
plural: true,
|
|
2411
|
-
fragment: select$
|
|
2412
|
+
fragment: select$C()
|
|
2412
2413
|
},
|
|
2413
2414
|
{
|
|
2414
2415
|
name: 'includesCustomEmoji',
|
|
@@ -2719,7 +2720,7 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
2719
2720
|
}
|
|
2720
2721
|
return input;
|
|
2721
2722
|
}
|
|
2722
|
-
const select$
|
|
2723
|
+
const select$A = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
2723
2724
|
return {
|
|
2724
2725
|
kind: 'Fragment',
|
|
2725
2726
|
version: VERSION$e,
|
|
@@ -2729,13 +2730,13 @@ const select$y = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
2729
2730
|
name: 'conversations',
|
|
2730
2731
|
kind: 'Link',
|
|
2731
2732
|
plural: true,
|
|
2732
|
-
fragment: select$
|
|
2733
|
+
fragment: select$G()
|
|
2733
2734
|
},
|
|
2734
2735
|
{
|
|
2735
2736
|
name: 'messages',
|
|
2736
2737
|
kind: 'Link',
|
|
2737
2738
|
plural: true,
|
|
2738
|
-
fragment: select$
|
|
2739
|
+
fragment: select$B()
|
|
2739
2740
|
},
|
|
2740
2741
|
{
|
|
2741
2742
|
name: 'teamId',
|
|
@@ -2802,22 +2803,22 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2802
2803
|
}
|
|
2803
2804
|
}
|
|
2804
2805
|
|
|
2805
|
-
function select$
|
|
2806
|
-
return select$
|
|
2806
|
+
function select$z(luvio, params) {
|
|
2807
|
+
return select$A();
|
|
2807
2808
|
}
|
|
2808
|
-
function keyBuilder$
|
|
2809
|
+
function keyBuilder$z(luvio, params) {
|
|
2809
2810
|
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
2810
2811
|
}
|
|
2811
|
-
function getResponseCacheKeys$
|
|
2812
|
-
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2812
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
2813
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$z(luvio, resourceParams));
|
|
2813
2814
|
}
|
|
2814
|
-
function ingestSuccess$
|
|
2815
|
+
function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
2815
2816
|
const { body } = response;
|
|
2816
|
-
const key = keyBuilder$
|
|
2817
|
+
const key = keyBuilder$z(luvio, resourceParams);
|
|
2817
2818
|
luvio.storeIngest(key, ingest$c, body);
|
|
2818
2819
|
const snapshot = luvio.storeLookup({
|
|
2819
2820
|
recordId: key,
|
|
2820
|
-
node: select$
|
|
2821
|
+
node: select$z(),
|
|
2821
2822
|
variables: {},
|
|
2822
2823
|
}, snapshotRefresh);
|
|
2823
2824
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2828,8 +2829,8 @@ function ingestSuccess$j(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$e(luvio, params, error, snapshotRefresh) {
|
|
2833
|
+
const key = keyBuilder$z(luvio, params);
|
|
2833
2834
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2834
2835
|
const storeMetadataParams = {
|
|
2835
2836
|
ttl: TTL$3,
|
|
@@ -2840,7 +2841,7 @@ function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
|
2840
2841
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2841
2842
|
return errorSnapshot;
|
|
2842
2843
|
}
|
|
2843
|
-
function createResourceRequest$
|
|
2844
|
+
function createResourceRequest$l(config) {
|
|
2844
2845
|
const headers = {};
|
|
2845
2846
|
return {
|
|
2846
2847
|
baseUri: '/services/data/v64.0',
|
|
@@ -2854,90 +2855,90 @@ function createResourceRequest$j(config) {
|
|
|
2854
2855
|
};
|
|
2855
2856
|
}
|
|
2856
2857
|
|
|
2857
|
-
const adapterName$
|
|
2858
|
+
const adapterName$l = '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$l, getRelatedThreads_ConfigPropertyMetadata);
|
|
2863
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$p(getRelatedThreads_ConfigPropertyMetadata);
|
|
2864
|
+
function keyBuilder$y(luvio, config) {
|
|
2865
|
+
const resourceParams = createResourceParams$l(config);
|
|
2866
|
+
return keyBuilder$z(luvio, resourceParams);
|
|
2866
2867
|
}
|
|
2867
|
-
function typeCheckConfig$
|
|
2868
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
2868
2869
|
const config = {};
|
|
2869
|
-
typeCheckConfig$
|
|
2870
|
+
typeCheckConfig$p(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
2870
2871
|
return config;
|
|
2871
2872
|
}
|
|
2872
|
-
function validateAdapterConfig$
|
|
2873
|
+
function validateAdapterConfig$l(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$l(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$e(luvio, config) {
|
|
2887
|
+
createResourceParams$l(config);
|
|
2888
|
+
return select$z();
|
|
2888
2889
|
}
|
|
2889
|
-
function onFetchResponseSuccess$
|
|
2890
|
-
const snapshot = ingestSuccess$
|
|
2890
|
+
function onFetchResponseSuccess$e(luvio, config, resourceParams, response) {
|
|
2891
|
+
const snapshot = ingestSuccess$l(luvio, resourceParams, response, {
|
|
2891
2892
|
config,
|
|
2892
|
-
resolve: () => buildNetworkSnapshot$
|
|
2893
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
2893
2894
|
});
|
|
2894
2895
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2895
2896
|
}
|
|
2896
|
-
function onFetchResponseError$
|
|
2897
|
-
const snapshot = ingestError$
|
|
2897
|
+
function onFetchResponseError$e(luvio, config, resourceParams, response) {
|
|
2898
|
+
const snapshot = ingestError$e(luvio, resourceParams, response, {
|
|
2898
2899
|
config,
|
|
2899
|
-
resolve: () => buildNetworkSnapshot$
|
|
2900
|
+
resolve: () => buildNetworkSnapshot$l(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$l(luvio, config, options) {
|
|
2905
|
+
const resourceParams = createResourceParams$l(config);
|
|
2906
|
+
const request = createResourceRequest$l(resourceParams);
|
|
2906
2907
|
return luvio.dispatchResourceRequest(request, options)
|
|
2907
2908
|
.then((response) => {
|
|
2908
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2909
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$e(luvio, config, resourceParams, response), () => {
|
|
2909
2910
|
const cache = new StoreKeyMap();
|
|
2910
|
-
getResponseCacheKeys$
|
|
2911
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
2911
2912
|
return cache;
|
|
2912
2913
|
});
|
|
2913
2914
|
}, (response) => {
|
|
2914
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2915
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$e(luvio, config, resourceParams, response));
|
|
2915
2916
|
});
|
|
2916
2917
|
}
|
|
2917
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2918
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2918
|
+
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
2919
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
2919
2920
|
}
|
|
2920
|
-
function buildCachedSnapshotCachePolicy$
|
|
2921
|
+
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
2921
2922
|
const { luvio, config } = context;
|
|
2922
2923
|
const selector = {
|
|
2923
|
-
recordId: keyBuilder$
|
|
2924
|
-
node: adapterFragment$
|
|
2924
|
+
recordId: keyBuilder$y(luvio, config),
|
|
2925
|
+
node: adapterFragment$e(luvio, config),
|
|
2925
2926
|
variables: {},
|
|
2926
2927
|
};
|
|
2927
2928
|
const cacheSnapshot = storeLookup(selector, {
|
|
2928
2929
|
config,
|
|
2929
|
-
resolve: () => buildNetworkSnapshot$
|
|
2930
|
+
resolve: () => buildNetworkSnapshot$l(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$l(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$e, buildNetworkSnapshotCachePolicy$e);
|
|
2941
2942
|
};
|
|
2942
2943
|
|
|
2943
2944
|
const VERSION$d = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
@@ -3027,7 +3028,7 @@ function validate$d(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
3027
3028
|
})();
|
|
3028
3029
|
return v_error === undefined ? null : v_error;
|
|
3029
3030
|
}
|
|
3030
|
-
const select$
|
|
3031
|
+
const select$y = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
3031
3032
|
return {
|
|
3032
3033
|
kind: 'Fragment',
|
|
3033
3034
|
version: VERSION$d,
|
|
@@ -3216,20 +3217,20 @@ function validate$c(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
3216
3217
|
return v_error === undefined ? null : v_error;
|
|
3217
3218
|
}
|
|
3218
3219
|
const RepresentationType$b = 'SlackBridgeEmojiOutputRepresentation';
|
|
3219
|
-
function keyBuilder$
|
|
3220
|
+
function keyBuilder$x(luvio, config) {
|
|
3220
3221
|
return keyPrefix + '::' + RepresentationType$b + ':' + 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$x(luvio, keyParams);
|
|
3227
3228
|
}
|
|
3228
3229
|
function normalize$b(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$x = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
3233
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$y();
|
|
3233
3234
|
return {
|
|
3234
3235
|
kind: 'Fragment',
|
|
3235
3236
|
version: VERSION$c,
|
|
@@ -3322,8 +3323,8 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3322
3323
|
});
|
|
3323
3324
|
}
|
|
3324
3325
|
|
|
3325
|
-
const TTL$1 =
|
|
3326
|
-
const VERSION$b = "
|
|
3326
|
+
const TTL$1 = 900000;
|
|
3327
|
+
const VERSION$b = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
3327
3328
|
function validate$b(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
3328
3329
|
const v_error = (() => {
|
|
3329
3330
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3695,8 +3696,29 @@ function validate$b(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
3695
3696
|
}
|
|
3696
3697
|
const obj_teamId = obj.teamId;
|
|
3697
3698
|
const path_teamId = path + '.teamId';
|
|
3698
|
-
|
|
3699
|
-
|
|
3699
|
+
let obj_teamId_union0 = null;
|
|
3700
|
+
const obj_teamId_union0_error = (() => {
|
|
3701
|
+
if (typeof obj_teamId !== 'string') {
|
|
3702
|
+
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
3703
|
+
}
|
|
3704
|
+
})();
|
|
3705
|
+
if (obj_teamId_union0_error != null) {
|
|
3706
|
+
obj_teamId_union0 = obj_teamId_union0_error.message;
|
|
3707
|
+
}
|
|
3708
|
+
let obj_teamId_union1 = null;
|
|
3709
|
+
const obj_teamId_union1_error = (() => {
|
|
3710
|
+
if (obj_teamId !== null) {
|
|
3711
|
+
return new TypeError('Expected "null" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
3712
|
+
}
|
|
3713
|
+
})();
|
|
3714
|
+
if (obj_teamId_union1_error != null) {
|
|
3715
|
+
obj_teamId_union1 = obj_teamId_union1_error.message;
|
|
3716
|
+
}
|
|
3717
|
+
if (obj_teamId_union0 && obj_teamId_union1) {
|
|
3718
|
+
let message = 'Object doesn\'t match union (at "' + path_teamId + '")';
|
|
3719
|
+
message += '\n' + obj_teamId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3720
|
+
message += '\n' + obj_teamId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3721
|
+
return new TypeError(message);
|
|
3700
3722
|
}
|
|
3701
3723
|
const obj_title = obj.title;
|
|
3702
3724
|
const path_title = path + '.title';
|
|
@@ -3728,15 +3750,14 @@ function validate$b(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
3728
3750
|
return v_error === undefined ? null : v_error;
|
|
3729
3751
|
}
|
|
3730
3752
|
const RepresentationType$a = 'SlackBridgeUserInfoOutputRepresentation';
|
|
3731
|
-
function keyBuilder$
|
|
3732
|
-
return keyPrefix + '::' + RepresentationType$a + ':' + config.
|
|
3753
|
+
function keyBuilder$w(luvio, config) {
|
|
3754
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.slackUserId;
|
|
3733
3755
|
}
|
|
3734
3756
|
function keyBuilderFromType$4(luvio, object) {
|
|
3735
3757
|
const keyParams = {
|
|
3736
|
-
teamId: object.teamId,
|
|
3737
3758
|
slackUserId: object.slackUserId
|
|
3738
3759
|
};
|
|
3739
|
-
return keyBuilder$
|
|
3760
|
+
return keyBuilder$w(luvio, keyParams);
|
|
3740
3761
|
}
|
|
3741
3762
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3742
3763
|
const input_statusEmoji = input.statusEmoji;
|
|
@@ -3755,7 +3776,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3755
3776
|
}
|
|
3756
3777
|
return input;
|
|
3757
3778
|
}
|
|
3758
|
-
const select$
|
|
3779
|
+
const select$w = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
3759
3780
|
return {
|
|
3760
3781
|
kind: 'Fragment',
|
|
3761
3782
|
version: VERSION$b,
|
|
@@ -3828,7 +3849,7 @@ const select$u = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
3828
3849
|
name: 'statusEmoji',
|
|
3829
3850
|
kind: 'Link',
|
|
3830
3851
|
nullable: true,
|
|
3831
|
-
fragment: select$
|
|
3852
|
+
fragment: select$x()
|
|
3832
3853
|
},
|
|
3833
3854
|
{
|
|
3834
3855
|
name: 'statusMessage',
|
|
@@ -3874,11 +3895,6 @@ function equals$b(existing, incoming) {
|
|
|
3874
3895
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
3875
3896
|
return false;
|
|
3876
3897
|
}
|
|
3877
|
-
const existing_teamId = existing.teamId;
|
|
3878
|
-
const incoming_teamId = incoming.teamId;
|
|
3879
|
-
if (!(existing_teamId === incoming_teamId)) {
|
|
3880
|
-
return false;
|
|
3881
|
-
}
|
|
3882
3898
|
const existing_displayName = existing.displayName;
|
|
3883
3899
|
const incoming_displayName = incoming.displayName;
|
|
3884
3900
|
if (!(existing_displayName === incoming_displayName)) {
|
|
@@ -3965,6 +3981,11 @@ function equals$b(existing, incoming) {
|
|
|
3965
3981
|
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
3966
3982
|
return false;
|
|
3967
3983
|
}
|
|
3984
|
+
const existing_teamId = existing.teamId;
|
|
3985
|
+
const incoming_teamId = incoming.teamId;
|
|
3986
|
+
if (!(existing_teamId === incoming_teamId)) {
|
|
3987
|
+
return false;
|
|
3988
|
+
}
|
|
3968
3989
|
const existing_title = existing.title;
|
|
3969
3990
|
const incoming_title = incoming.title;
|
|
3970
3991
|
if (!(existing_title === incoming_title)) {
|
|
@@ -4069,7 +4090,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
4069
4090
|
}
|
|
4070
4091
|
return input;
|
|
4071
4092
|
}
|
|
4072
|
-
const select$
|
|
4093
|
+
const select$v = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
4073
4094
|
return {
|
|
4074
4095
|
kind: 'Fragment',
|
|
4075
4096
|
version: VERSION$a,
|
|
@@ -4083,7 +4104,7 @@ const select$t = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
4083
4104
|
name: 'messages',
|
|
4084
4105
|
kind: 'Link',
|
|
4085
4106
|
plural: true,
|
|
4086
|
-
fragment: select$
|
|
4107
|
+
fragment: select$B()
|
|
4087
4108
|
},
|
|
4088
4109
|
{
|
|
4089
4110
|
name: 'nextCursor',
|
|
@@ -4141,7 +4162,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4141
4162
|
}
|
|
4142
4163
|
}
|
|
4143
4164
|
|
|
4144
|
-
const VERSION$9 = "
|
|
4165
|
+
const VERSION$9 = "1119f2c416d047eefd8303c5a2d590ae";
|
|
4145
4166
|
function validate$9(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
4146
4167
|
const v_error = (() => {
|
|
4147
4168
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4209,6 +4230,30 @@ function validate$9(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
4209
4230
|
message += '\n' + obj_conversationInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4210
4231
|
return new TypeError(message);
|
|
4211
4232
|
}
|
|
4233
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
4234
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
4235
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
4236
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
4237
|
+
}
|
|
4238
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
4239
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
4240
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
4241
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
4242
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
const obj_emojis = obj.emojis;
|
|
4246
|
+
const path_emojis = path + '.emojis';
|
|
4247
|
+
if (!ArrayIsArray(obj_emojis)) {
|
|
4248
|
+
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
4249
|
+
}
|
|
4250
|
+
for (let i = 0; i < obj_emojis.length; i++) {
|
|
4251
|
+
const obj_emojis_item = obj_emojis[i];
|
|
4252
|
+
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
4253
|
+
if (typeof obj_emojis_item !== 'object') {
|
|
4254
|
+
return new TypeError('Expected "object" but received "' + typeof obj_emojis_item + '" (at "' + path_emojis_item + '")');
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4212
4257
|
const obj_history = obj.history;
|
|
4213
4258
|
const path_history = path + '.history';
|
|
4214
4259
|
if (typeof obj_history !== 'object') {
|
|
@@ -4316,6 +4361,38 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4316
4361
|
ttl: path.ttl
|
|
4317
4362
|
}, luvio, store, timestamp);
|
|
4318
4363
|
}
|
|
4364
|
+
const input_conversationInfos = input.conversationInfos;
|
|
4365
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
4366
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
4367
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
4368
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
4369
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
4370
|
+
fullPath: input_conversationInfos_item_id,
|
|
4371
|
+
propertyName: i,
|
|
4372
|
+
parent: {
|
|
4373
|
+
data: input,
|
|
4374
|
+
key: path.fullPath,
|
|
4375
|
+
existing: existing,
|
|
4376
|
+
},
|
|
4377
|
+
ttl: path.ttl
|
|
4378
|
+
}, luvio, store, timestamp);
|
|
4379
|
+
}
|
|
4380
|
+
const input_emojis = input.emojis;
|
|
4381
|
+
const input_emojis_id = path.fullPath + '__emojis';
|
|
4382
|
+
for (let i = 0; i < input_emojis.length; i++) {
|
|
4383
|
+
const input_emojis_item = input_emojis[i];
|
|
4384
|
+
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
4385
|
+
input_emojis[i] = ingest$b(input_emojis_item, {
|
|
4386
|
+
fullPath: input_emojis_item_id,
|
|
4387
|
+
propertyName: i,
|
|
4388
|
+
parent: {
|
|
4389
|
+
data: input,
|
|
4390
|
+
key: path.fullPath,
|
|
4391
|
+
existing: existing,
|
|
4392
|
+
},
|
|
4393
|
+
ttl: path.ttl
|
|
4394
|
+
}, luvio, store, timestamp);
|
|
4395
|
+
}
|
|
4319
4396
|
const input_history = input.history;
|
|
4320
4397
|
const input_history_id = path.fullPath + '__history';
|
|
4321
4398
|
input.history = ingest$9(input_history, {
|
|
@@ -4346,7 +4423,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4346
4423
|
}
|
|
4347
4424
|
return input;
|
|
4348
4425
|
}
|
|
4349
|
-
const select$
|
|
4426
|
+
const select$u = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
4350
4427
|
return {
|
|
4351
4428
|
kind: 'Fragment',
|
|
4352
4429
|
version: VERSION$9,
|
|
@@ -4364,18 +4441,30 @@ const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4364
4441
|
name: 'contextUserInfo',
|
|
4365
4442
|
kind: 'Link',
|
|
4366
4443
|
nullable: true,
|
|
4367
|
-
fragment: select$
|
|
4444
|
+
fragment: select$w()
|
|
4368
4445
|
},
|
|
4369
4446
|
{
|
|
4370
4447
|
name: 'conversationInfo',
|
|
4371
4448
|
kind: 'Link',
|
|
4372
4449
|
nullable: true,
|
|
4373
|
-
fragment: select$
|
|
4450
|
+
fragment: select$G()
|
|
4451
|
+
},
|
|
4452
|
+
{
|
|
4453
|
+
name: 'conversationInfos',
|
|
4454
|
+
kind: 'Link',
|
|
4455
|
+
plural: true,
|
|
4456
|
+
fragment: select$G()
|
|
4457
|
+
},
|
|
4458
|
+
{
|
|
4459
|
+
name: 'emojis',
|
|
4460
|
+
kind: 'Link',
|
|
4461
|
+
plural: true,
|
|
4462
|
+
fragment: select$x()
|
|
4374
4463
|
},
|
|
4375
4464
|
{
|
|
4376
4465
|
name: 'history',
|
|
4377
4466
|
kind: 'Link',
|
|
4378
|
-
fragment: select$
|
|
4467
|
+
fragment: select$v()
|
|
4379
4468
|
},
|
|
4380
4469
|
{
|
|
4381
4470
|
name: 'teamId',
|
|
@@ -4389,7 +4478,7 @@ const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4389
4478
|
name: 'userInfos',
|
|
4390
4479
|
kind: 'Link',
|
|
4391
4480
|
plural: true,
|
|
4392
|
-
fragment: select$
|
|
4481
|
+
fragment: select$w()
|
|
4393
4482
|
},
|
|
4394
4483
|
{
|
|
4395
4484
|
name: 'websocketUrl',
|
|
@@ -4434,6 +4523,26 @@ function equals$9(existing, incoming) {
|
|
|
4434
4523
|
existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
|
|
4435
4524
|
return false;
|
|
4436
4525
|
}
|
|
4526
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
4527
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
4528
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
4529
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
4530
|
+
return false;
|
|
4531
|
+
}
|
|
4532
|
+
});
|
|
4533
|
+
if (equals_conversationInfos_items === false) {
|
|
4534
|
+
return false;
|
|
4535
|
+
}
|
|
4536
|
+
const existing_emojis = existing.emojis;
|
|
4537
|
+
const incoming_emojis = incoming.emojis;
|
|
4538
|
+
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
4539
|
+
if (!(existing_emojis_item.__ref === incoming_emojis_item.__ref)) {
|
|
4540
|
+
return false;
|
|
4541
|
+
}
|
|
4542
|
+
});
|
|
4543
|
+
if (equals_emojis_items === false) {
|
|
4544
|
+
return false;
|
|
4545
|
+
}
|
|
4437
4546
|
const existing_history = existing.history;
|
|
4438
4547
|
const incoming_history = incoming.history;
|
|
4439
4548
|
if (!(existing_history.__ref === incoming_history.__ref)) {
|
|
@@ -4487,6 +4596,14 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4487
4596
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
4488
4597
|
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
4489
4598
|
}
|
|
4599
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
4600
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
4601
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
4602
|
+
}
|
|
4603
|
+
const input_emojis_length = input.emojis.length;
|
|
4604
|
+
for (let i = 0; i < input_emojis_length; i++) {
|
|
4605
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.emojis[i]);
|
|
4606
|
+
}
|
|
4490
4607
|
getTypeCacheKeys$9(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
4491
4608
|
const input_userInfos_length = input.userInfos.length;
|
|
4492
4609
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
@@ -4494,22 +4611,22 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4494
4611
|
}
|
|
4495
4612
|
}
|
|
4496
4613
|
|
|
4497
|
-
function select$
|
|
4498
|
-
return select$
|
|
4614
|
+
function select$t(luvio, params) {
|
|
4615
|
+
return select$u();
|
|
4499
4616
|
}
|
|
4500
|
-
function keyBuilder$
|
|
4617
|
+
function keyBuilder$v(luvio, params) {
|
|
4501
4618
|
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 + ')';
|
|
4502
4619
|
}
|
|
4503
|
-
function getResponseCacheKeys$
|
|
4504
|
-
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4620
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
4621
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$v(luvio, resourceParams));
|
|
4505
4622
|
}
|
|
4506
|
-
function ingestSuccess$
|
|
4623
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
4507
4624
|
const { body } = response;
|
|
4508
|
-
const key = keyBuilder$
|
|
4625
|
+
const key = keyBuilder$v(luvio, resourceParams);
|
|
4509
4626
|
luvio.storeIngest(key, ingest$8, body);
|
|
4510
4627
|
const snapshot = luvio.storeLookup({
|
|
4511
4628
|
recordId: key,
|
|
4512
|
-
node: select$
|
|
4629
|
+
node: select$t(),
|
|
4513
4630
|
variables: {},
|
|
4514
4631
|
}, snapshotRefresh);
|
|
4515
4632
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4520,13 +4637,13 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4520
4637
|
deepFreeze(snapshot.data);
|
|
4521
4638
|
return snapshot;
|
|
4522
4639
|
}
|
|
4523
|
-
function ingestError$
|
|
4524
|
-
const key = keyBuilder$
|
|
4640
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
4641
|
+
const key = keyBuilder$v(luvio, params);
|
|
4525
4642
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4526
4643
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4527
4644
|
return errorSnapshot;
|
|
4528
4645
|
}
|
|
4529
|
-
function createResourceRequest$
|
|
4646
|
+
function createResourceRequest$k(config) {
|
|
4530
4647
|
const headers = {};
|
|
4531
4648
|
return {
|
|
4532
4649
|
baseUri: '/services/data/v64.0',
|
|
@@ -4540,7 +4657,7 @@ function createResourceRequest$i(config) {
|
|
|
4540
4657
|
};
|
|
4541
4658
|
}
|
|
4542
4659
|
|
|
4543
|
-
const adapterName$
|
|
4660
|
+
const adapterName$k = 'getSlackConversation';
|
|
4544
4661
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
4545
4662
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4546
4663
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -4552,49 +4669,494 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
4552
4669
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4553
4670
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4554
4671
|
];
|
|
4555
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4556
|
-
const createResourceParams$
|
|
4557
|
-
function keyBuilder$
|
|
4558
|
-
const resourceParams = createResourceParams$
|
|
4559
|
-
return keyBuilder$
|
|
4672
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getSlackConversation_ConfigPropertyMetadata);
|
|
4673
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$p(getSlackConversation_ConfigPropertyMetadata);
|
|
4674
|
+
function keyBuilder$u(luvio, config) {
|
|
4675
|
+
const resourceParams = createResourceParams$k(config);
|
|
4676
|
+
return keyBuilder$v(luvio, resourceParams);
|
|
4560
4677
|
}
|
|
4561
|
-
function typeCheckConfig$
|
|
4678
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
4562
4679
|
const config = {};
|
|
4563
|
-
typeCheckConfig$
|
|
4680
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
4564
4681
|
return config;
|
|
4565
4682
|
}
|
|
4566
|
-
function validateAdapterConfig$
|
|
4683
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
4567
4684
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4568
4685
|
return null;
|
|
4569
4686
|
}
|
|
4570
4687
|
if (process.env.NODE_ENV !== 'production') {
|
|
4571
4688
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4572
4689
|
}
|
|
4573
|
-
const config = typeCheckConfig$
|
|
4690
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
4574
4691
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4575
4692
|
return null;
|
|
4576
4693
|
}
|
|
4577
4694
|
return config;
|
|
4578
4695
|
}
|
|
4579
|
-
function adapterFragment$
|
|
4580
|
-
createResourceParams$
|
|
4581
|
-
return select$
|
|
4696
|
+
function adapterFragment$d(luvio, config) {
|
|
4697
|
+
createResourceParams$k(config);
|
|
4698
|
+
return select$t();
|
|
4582
4699
|
}
|
|
4583
|
-
function onFetchResponseSuccess$
|
|
4584
|
-
const snapshot = ingestSuccess$
|
|
4700
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
4701
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
4585
4702
|
config,
|
|
4586
|
-
resolve: () => buildNetworkSnapshot$
|
|
4703
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
4587
4704
|
});
|
|
4588
4705
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4589
4706
|
}
|
|
4590
|
-
function onFetchResponseError$
|
|
4591
|
-
const snapshot = ingestError$
|
|
4707
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
4708
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
4592
4709
|
config,
|
|
4593
|
-
resolve: () => buildNetworkSnapshot$
|
|
4710
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
4594
4711
|
});
|
|
4595
4712
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4596
4713
|
}
|
|
4597
|
-
function buildNetworkSnapshot$
|
|
4714
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
4715
|
+
const resourceParams = createResourceParams$k(config);
|
|
4716
|
+
const request = createResourceRequest$k(resourceParams);
|
|
4717
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4718
|
+
.then((response) => {
|
|
4719
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
4720
|
+
const cache = new StoreKeyMap();
|
|
4721
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
4722
|
+
return cache;
|
|
4723
|
+
});
|
|
4724
|
+
}, (response) => {
|
|
4725
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
4726
|
+
});
|
|
4727
|
+
}
|
|
4728
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
4729
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
4730
|
+
}
|
|
4731
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
4732
|
+
const { luvio, config } = context;
|
|
4733
|
+
const selector = {
|
|
4734
|
+
recordId: keyBuilder$u(luvio, config),
|
|
4735
|
+
node: adapterFragment$d(luvio, config),
|
|
4736
|
+
variables: {},
|
|
4737
|
+
};
|
|
4738
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4739
|
+
config,
|
|
4740
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
4741
|
+
});
|
|
4742
|
+
return cacheSnapshot;
|
|
4743
|
+
}
|
|
4744
|
+
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
4745
|
+
const config = validateAdapterConfig$k(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
4746
|
+
// Invalid or incomplete config
|
|
4747
|
+
if (config === null) {
|
|
4748
|
+
return null;
|
|
4749
|
+
}
|
|
4750
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4751
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
4752
|
+
};
|
|
4753
|
+
|
|
4754
|
+
function select$s(luvio, params) {
|
|
4755
|
+
return select$G();
|
|
4756
|
+
}
|
|
4757
|
+
function keyBuilder$t(luvio, params) {
|
|
4758
|
+
return keyBuilder$B(luvio, {
|
|
4759
|
+
id: params.urlParams.channelId
|
|
4760
|
+
});
|
|
4761
|
+
}
|
|
4762
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4763
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
4764
|
+
}
|
|
4765
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
4766
|
+
const { body } = response;
|
|
4767
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
4768
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
4769
|
+
const snapshot = luvio.storeLookup({
|
|
4770
|
+
recordId: key,
|
|
4771
|
+
node: select$s(),
|
|
4772
|
+
variables: {},
|
|
4773
|
+
}, snapshotRefresh);
|
|
4774
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4775
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4776
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
deepFreeze(snapshot.data);
|
|
4780
|
+
return snapshot;
|
|
4781
|
+
}
|
|
4782
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4783
|
+
const key = keyBuilder$t(luvio, params);
|
|
4784
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4785
|
+
const storeMetadataParams = {
|
|
4786
|
+
ttl: TTL$4,
|
|
4787
|
+
namespace: keyPrefix,
|
|
4788
|
+
version: VERSION$k,
|
|
4789
|
+
representationName: RepresentationType$f
|
|
4790
|
+
};
|
|
4791
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4792
|
+
return errorSnapshot;
|
|
4793
|
+
}
|
|
4794
|
+
function createResourceRequest$j(config) {
|
|
4795
|
+
const headers = {};
|
|
4796
|
+
return {
|
|
4797
|
+
baseUri: '/services/data/v64.0',
|
|
4798
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels/' + config.urlParams.channelId + '',
|
|
4799
|
+
method: 'get',
|
|
4800
|
+
body: null,
|
|
4801
|
+
urlParams: config.urlParams,
|
|
4802
|
+
queryParams: {},
|
|
4803
|
+
headers,
|
|
4804
|
+
priority: 'normal',
|
|
4805
|
+
};
|
|
4806
|
+
}
|
|
4807
|
+
function createResourceRequestFromRepresentation$6(representation) {
|
|
4808
|
+
const config = {
|
|
4809
|
+
urlParams: {},
|
|
4810
|
+
};
|
|
4811
|
+
config.urlParams.channelId = representation.id;
|
|
4812
|
+
return createResourceRequest$j(config);
|
|
4813
|
+
}
|
|
4814
|
+
|
|
4815
|
+
const adapterName$j = 'getSlackConversationInfo';
|
|
4816
|
+
const getSlackConversationInfo_ConfigPropertyMetadata = [
|
|
4817
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4818
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4819
|
+
];
|
|
4820
|
+
const getSlackConversationInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4821
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$p(getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4822
|
+
function keyBuilder$s(luvio, config) {
|
|
4823
|
+
const resourceParams = createResourceParams$j(config);
|
|
4824
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
4825
|
+
}
|
|
4826
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4827
|
+
const config = {};
|
|
4828
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4829
|
+
return config;
|
|
4830
|
+
}
|
|
4831
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4832
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4833
|
+
return null;
|
|
4834
|
+
}
|
|
4835
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4836
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4837
|
+
}
|
|
4838
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4839
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4840
|
+
return null;
|
|
4841
|
+
}
|
|
4842
|
+
return config;
|
|
4843
|
+
}
|
|
4844
|
+
function adapterFragment$c(luvio, config) {
|
|
4845
|
+
createResourceParams$j(config);
|
|
4846
|
+
return select$s();
|
|
4847
|
+
}
|
|
4848
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4849
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
4850
|
+
config,
|
|
4851
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4852
|
+
});
|
|
4853
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4854
|
+
}
|
|
4855
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4856
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4857
|
+
config,
|
|
4858
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4859
|
+
});
|
|
4860
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4861
|
+
}
|
|
4862
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4863
|
+
const resourceParams = createResourceParams$j(config);
|
|
4864
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4865
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4866
|
+
.then((response) => {
|
|
4867
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4868
|
+
const cache = new StoreKeyMap();
|
|
4869
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4870
|
+
return cache;
|
|
4871
|
+
});
|
|
4872
|
+
}, (response) => {
|
|
4873
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4874
|
+
});
|
|
4875
|
+
}
|
|
4876
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4877
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
4878
|
+
}
|
|
4879
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4880
|
+
const { luvio, config } = context;
|
|
4881
|
+
const selector = {
|
|
4882
|
+
recordId: keyBuilder$s(luvio, config),
|
|
4883
|
+
node: adapterFragment$c(luvio, config),
|
|
4884
|
+
variables: {},
|
|
4885
|
+
};
|
|
4886
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4887
|
+
config,
|
|
4888
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4889
|
+
});
|
|
4890
|
+
return cacheSnapshot;
|
|
4891
|
+
}
|
|
4892
|
+
const getSlackConversationInfoAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfo(untrustedConfig, requestContext) {
|
|
4893
|
+
const config = validateAdapterConfig$j(untrustedConfig, getSlackConversationInfo_ConfigPropertyNames);
|
|
4894
|
+
// Invalid or incomplete config
|
|
4895
|
+
if (config === null) {
|
|
4896
|
+
return null;
|
|
4897
|
+
}
|
|
4898
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4899
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4900
|
+
};
|
|
4901
|
+
const notifyChangeFactory$6 = (luvio, options) => {
|
|
4902
|
+
return function getConnectSlackbridgeTeamChannelsByChannelIdAndTeamIdNotifyChange(configs) {
|
|
4903
|
+
const keys = configs.map(c => keyBuilder$B(luvio, c));
|
|
4904
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4905
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4906
|
+
const { key, record: val } = entries[i];
|
|
4907
|
+
const refreshRequest = createResourceRequestFromRepresentation$6(val);
|
|
4908
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4909
|
+
.then((response) => {
|
|
4910
|
+
return luvio.handleSuccessResponse(() => {
|
|
4911
|
+
const { body } = response;
|
|
4912
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
4913
|
+
return luvio.storeBroadcast();
|
|
4914
|
+
}, () => {
|
|
4915
|
+
const cache = new StoreKeyMap();
|
|
4916
|
+
getTypeCacheKeys$f(cache, luvio, response.body);
|
|
4917
|
+
return cache;
|
|
4918
|
+
});
|
|
4919
|
+
}, (error) => {
|
|
4920
|
+
return luvio.handleErrorResponse(() => {
|
|
4921
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4922
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
4923
|
+
ttl: TTL$4,
|
|
4924
|
+
namespace: keyPrefix,
|
|
4925
|
+
version: VERSION$k,
|
|
4926
|
+
representationName: RepresentationType$f
|
|
4927
|
+
});
|
|
4928
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4929
|
+
});
|
|
4930
|
+
});
|
|
4931
|
+
}
|
|
4932
|
+
});
|
|
4933
|
+
};
|
|
4934
|
+
};
|
|
4935
|
+
|
|
4936
|
+
const VERSION$8 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
4937
|
+
function validate$8(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
4938
|
+
const v_error = (() => {
|
|
4939
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4940
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4941
|
+
}
|
|
4942
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
4943
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
4944
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
4945
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
4946
|
+
}
|
|
4947
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
4948
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
4949
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
4950
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
4951
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
4952
|
+
}
|
|
4953
|
+
}
|
|
4954
|
+
const obj_searchString = obj.searchString;
|
|
4955
|
+
const path_searchString = path + '.searchString';
|
|
4956
|
+
let obj_searchString_union0 = null;
|
|
4957
|
+
const obj_searchString_union0_error = (() => {
|
|
4958
|
+
if (typeof obj_searchString !== 'string') {
|
|
4959
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
4960
|
+
}
|
|
4961
|
+
})();
|
|
4962
|
+
if (obj_searchString_union0_error != null) {
|
|
4963
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
4964
|
+
}
|
|
4965
|
+
let obj_searchString_union1 = null;
|
|
4966
|
+
const obj_searchString_union1_error = (() => {
|
|
4967
|
+
if (obj_searchString !== null) {
|
|
4968
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
4969
|
+
}
|
|
4970
|
+
})();
|
|
4971
|
+
if (obj_searchString_union1_error != null) {
|
|
4972
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
4973
|
+
}
|
|
4974
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
4975
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
4976
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4977
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4978
|
+
return new TypeError(message);
|
|
4979
|
+
}
|
|
4980
|
+
})();
|
|
4981
|
+
return v_error === undefined ? null : v_error;
|
|
4982
|
+
}
|
|
4983
|
+
const RepresentationType$7 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
4984
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
4985
|
+
const input_conversationInfos = input.conversationInfos;
|
|
4986
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
4987
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
4988
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
4989
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
4990
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
4991
|
+
fullPath: input_conversationInfos_item_id,
|
|
4992
|
+
propertyName: i,
|
|
4993
|
+
parent: {
|
|
4994
|
+
data: input,
|
|
4995
|
+
key: path.fullPath,
|
|
4996
|
+
existing: existing,
|
|
4997
|
+
},
|
|
4998
|
+
ttl: path.ttl
|
|
4999
|
+
}, luvio, store, timestamp);
|
|
5000
|
+
}
|
|
5001
|
+
return input;
|
|
5002
|
+
}
|
|
5003
|
+
const select$r = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
5004
|
+
return {
|
|
5005
|
+
kind: 'Fragment',
|
|
5006
|
+
version: VERSION$8,
|
|
5007
|
+
private: [],
|
|
5008
|
+
selections: [
|
|
5009
|
+
{
|
|
5010
|
+
name: 'conversationInfos',
|
|
5011
|
+
kind: 'Link',
|
|
5012
|
+
plural: true,
|
|
5013
|
+
fragment: select$G()
|
|
5014
|
+
},
|
|
5015
|
+
{
|
|
5016
|
+
name: 'searchString',
|
|
5017
|
+
kind: 'Scalar'
|
|
5018
|
+
}
|
|
5019
|
+
]
|
|
5020
|
+
};
|
|
5021
|
+
};
|
|
5022
|
+
function equals$8(existing, incoming) {
|
|
5023
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
5024
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
5025
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
5026
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
5027
|
+
return false;
|
|
5028
|
+
}
|
|
5029
|
+
});
|
|
5030
|
+
if (equals_conversationInfos_items === false) {
|
|
5031
|
+
return false;
|
|
5032
|
+
}
|
|
5033
|
+
const existing_searchString = existing.searchString;
|
|
5034
|
+
const incoming_searchString = incoming.searchString;
|
|
5035
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
5036
|
+
return false;
|
|
5037
|
+
}
|
|
5038
|
+
return true;
|
|
5039
|
+
}
|
|
5040
|
+
const ingest$7 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5041
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5042
|
+
const validateError = validate$8(input);
|
|
5043
|
+
if (validateError !== null) {
|
|
5044
|
+
throw validateError;
|
|
5045
|
+
}
|
|
5046
|
+
}
|
|
5047
|
+
const key = path.fullPath;
|
|
5048
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5049
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$8, RepresentationType$7, equals$8);
|
|
5050
|
+
return createLink(key);
|
|
5051
|
+
};
|
|
5052
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
5053
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5054
|
+
const rootKey = fullPathFactory();
|
|
5055
|
+
rootKeySet.set(rootKey, {
|
|
5056
|
+
namespace: keyPrefix,
|
|
5057
|
+
representationName: RepresentationType$7,
|
|
5058
|
+
mergeable: false
|
|
5059
|
+
});
|
|
5060
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
5061
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
5062
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
5063
|
+
}
|
|
5064
|
+
}
|
|
5065
|
+
|
|
5066
|
+
function select$q(luvio, params) {
|
|
5067
|
+
return select$r();
|
|
5068
|
+
}
|
|
5069
|
+
function keyBuilder$r(luvio, params) {
|
|
5070
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'channelIds:' + params.queryParams.channelIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5071
|
+
}
|
|
5072
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
5073
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$r(luvio, resourceParams));
|
|
5074
|
+
}
|
|
5075
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
5076
|
+
const { body } = response;
|
|
5077
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
5078
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
5079
|
+
const snapshot = luvio.storeLookup({
|
|
5080
|
+
recordId: key,
|
|
5081
|
+
node: select$q(),
|
|
5082
|
+
variables: {},
|
|
5083
|
+
}, snapshotRefresh);
|
|
5084
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5085
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5086
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5087
|
+
}
|
|
5088
|
+
}
|
|
5089
|
+
deepFreeze(snapshot.data);
|
|
5090
|
+
return snapshot;
|
|
5091
|
+
}
|
|
5092
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
5093
|
+
const key = keyBuilder$r(luvio, params);
|
|
5094
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5095
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
5096
|
+
return errorSnapshot;
|
|
5097
|
+
}
|
|
5098
|
+
function createResourceRequest$i(config) {
|
|
5099
|
+
const headers = {};
|
|
5100
|
+
return {
|
|
5101
|
+
baseUri: '/services/data/v64.0',
|
|
5102
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels',
|
|
5103
|
+
method: 'get',
|
|
5104
|
+
body: null,
|
|
5105
|
+
urlParams: config.urlParams,
|
|
5106
|
+
queryParams: config.queryParams,
|
|
5107
|
+
headers,
|
|
5108
|
+
priority: 'normal',
|
|
5109
|
+
};
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
const adapterName$i = 'getSlackConversationInfos';
|
|
5113
|
+
const getSlackConversationInfos_ConfigPropertyMetadata = [
|
|
5114
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5115
|
+
generateParamConfigMetadata('channelIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5116
|
+
];
|
|
5117
|
+
const getSlackConversationInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5118
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$p(getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5119
|
+
function keyBuilder$q(luvio, config) {
|
|
5120
|
+
const resourceParams = createResourceParams$i(config);
|
|
5121
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
5122
|
+
}
|
|
5123
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
5124
|
+
const config = {};
|
|
5125
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5126
|
+
return config;
|
|
5127
|
+
}
|
|
5128
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
5129
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5130
|
+
return null;
|
|
5131
|
+
}
|
|
5132
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5133
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5134
|
+
}
|
|
5135
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
5136
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5137
|
+
return null;
|
|
5138
|
+
}
|
|
5139
|
+
return config;
|
|
5140
|
+
}
|
|
5141
|
+
function adapterFragment$b(luvio, config) {
|
|
5142
|
+
createResourceParams$i(config);
|
|
5143
|
+
return select$q();
|
|
5144
|
+
}
|
|
5145
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
5146
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
5147
|
+
config,
|
|
5148
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
5149
|
+
});
|
|
5150
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5151
|
+
}
|
|
5152
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
5153
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
5154
|
+
config,
|
|
5155
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
5156
|
+
});
|
|
5157
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5158
|
+
}
|
|
5159
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
4598
5160
|
const resourceParams = createResourceParams$i(config);
|
|
4599
5161
|
const request = createResourceRequest$i(resourceParams);
|
|
4600
5162
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -4609,7 +5171,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
4609
5171
|
});
|
|
4610
5172
|
}
|
|
4611
5173
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
4612
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5174
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
4613
5175
|
}
|
|
4614
5176
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
4615
5177
|
const { luvio, config } = context;
|
|
@@ -4624,8 +5186,8 @@ function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
|
4624
5186
|
});
|
|
4625
5187
|
return cacheSnapshot;
|
|
4626
5188
|
}
|
|
4627
|
-
const
|
|
4628
|
-
const config = validateAdapterConfig$i(untrustedConfig,
|
|
5189
|
+
const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfos(untrustedConfig, requestContext) {
|
|
5190
|
+
const config = validateAdapterConfig$i(untrustedConfig, getSlackConversationInfos_ConfigPropertyNames);
|
|
4629
5191
|
// Invalid or incomplete config
|
|
4630
5192
|
if (config === null) {
|
|
4631
5193
|
return null;
|
|
@@ -4634,11 +5196,11 @@ const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getS
|
|
|
4634
5196
|
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
4635
5197
|
};
|
|
4636
5198
|
|
|
4637
|
-
function select$
|
|
4638
|
-
return select$
|
|
5199
|
+
function select$p(luvio, params) {
|
|
5200
|
+
return select$K();
|
|
4639
5201
|
}
|
|
4640
5202
|
function keyBuilder$p(luvio, params) {
|
|
4641
|
-
return keyBuilder$
|
|
5203
|
+
return keyBuilder$H(luvio, {
|
|
4642
5204
|
channelId: params.urlParams.channelId
|
|
4643
5205
|
});
|
|
4644
5206
|
}
|
|
@@ -4651,7 +5213,7 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4651
5213
|
luvio.storeIngest(key, ingest$i, body);
|
|
4652
5214
|
const snapshot = luvio.storeLookup({
|
|
4653
5215
|
recordId: key,
|
|
4654
|
-
node: select$
|
|
5216
|
+
node: select$p(),
|
|
4655
5217
|
variables: {},
|
|
4656
5218
|
}, snapshotRefresh);
|
|
4657
5219
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4696,14 +5258,14 @@ const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
4696
5258
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4697
5259
|
];
|
|
4698
5260
|
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4699
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
5261
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$p(getSlackConversationMember_ConfigPropertyMetadata);
|
|
4700
5262
|
function keyBuilder$o(luvio, config) {
|
|
4701
5263
|
const resourceParams = createResourceParams$h(config);
|
|
4702
5264
|
return keyBuilder$p(luvio, resourceParams);
|
|
4703
5265
|
}
|
|
4704
5266
|
function typeCheckConfig$h(untrustedConfig) {
|
|
4705
5267
|
const config = {};
|
|
4706
|
-
typeCheckConfig$
|
|
5268
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4707
5269
|
return config;
|
|
4708
5270
|
}
|
|
4709
5271
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -4721,7 +5283,7 @@ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
|
4721
5283
|
}
|
|
4722
5284
|
function adapterFragment$a(luvio, config) {
|
|
4723
5285
|
createResourceParams$h(config);
|
|
4724
|
-
return select$
|
|
5286
|
+
return select$p();
|
|
4725
5287
|
}
|
|
4726
5288
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4727
5289
|
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
@@ -4752,7 +5314,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
4752
5314
|
});
|
|
4753
5315
|
}
|
|
4754
5316
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4755
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5317
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
4756
5318
|
}
|
|
4757
5319
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4758
5320
|
const { luvio, config } = context;
|
|
@@ -4778,7 +5340,7 @@ const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge
|
|
|
4778
5340
|
};
|
|
4779
5341
|
const notifyChangeFactory$5 = (luvio, options) => {
|
|
4780
5342
|
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamIdNotifyChange(configs) {
|
|
4781
|
-
const keys = configs.map(c => keyBuilder$
|
|
5343
|
+
const keys = configs.map(c => keyBuilder$H(luvio, c));
|
|
4782
5344
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4783
5345
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4784
5346
|
const { key, record: val } = entries[i];
|
|
@@ -4806,8 +5368,8 @@ const notifyChangeFactory$5 = (luvio, options) => {
|
|
|
4806
5368
|
};
|
|
4807
5369
|
};
|
|
4808
5370
|
|
|
4809
|
-
const VERSION$
|
|
4810
|
-
function validate$
|
|
5371
|
+
const VERSION$7 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
5372
|
+
function validate$7(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
4811
5373
|
const v_error = (() => {
|
|
4812
5374
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4813
5375
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4858,9 +5420,9 @@ function validate$8(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
4858
5420
|
})();
|
|
4859
5421
|
return v_error === undefined ? null : v_error;
|
|
4860
5422
|
}
|
|
4861
|
-
const RepresentationType$
|
|
5423
|
+
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
4862
5424
|
function keyBuilder$n(luvio, config) {
|
|
4863
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5425
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
4864
5426
|
}
|
|
4865
5427
|
function keyBuilderFromType$3(luvio, object) {
|
|
4866
5428
|
const keyParams = {
|
|
@@ -4868,13 +5430,13 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
4868
5430
|
};
|
|
4869
5431
|
return keyBuilder$n(luvio, keyParams);
|
|
4870
5432
|
}
|
|
4871
|
-
function normalize$
|
|
5433
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
4872
5434
|
return input;
|
|
4873
5435
|
}
|
|
4874
|
-
const select$
|
|
5436
|
+
const select$o = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
4875
5437
|
return {
|
|
4876
5438
|
kind: 'Fragment',
|
|
4877
|
-
version: VERSION$
|
|
5439
|
+
version: VERSION$7,
|
|
4878
5440
|
private: [],
|
|
4879
5441
|
selections: [
|
|
4880
5442
|
{
|
|
@@ -4893,7 +5455,7 @@ const select$p = function SlackBridgeConversationMembersOutputRepresentationSele
|
|
|
4893
5455
|
]
|
|
4894
5456
|
};
|
|
4895
5457
|
};
|
|
4896
|
-
function equals$
|
|
5458
|
+
function equals$7(existing, incoming) {
|
|
4897
5459
|
const existing_channelId = existing.channelId;
|
|
4898
5460
|
const incoming_channelId = incoming.channelId;
|
|
4899
5461
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -4916,30 +5478,30 @@ function equals$8(existing, incoming) {
|
|
|
4916
5478
|
}
|
|
4917
5479
|
return true;
|
|
4918
5480
|
}
|
|
4919
|
-
const ingest$
|
|
5481
|
+
const ingest$6 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4920
5482
|
if (process.env.NODE_ENV !== 'production') {
|
|
4921
|
-
const validateError = validate$
|
|
5483
|
+
const validateError = validate$7(input);
|
|
4922
5484
|
if (validateError !== null) {
|
|
4923
5485
|
throw validateError;
|
|
4924
5486
|
}
|
|
4925
5487
|
}
|
|
4926
5488
|
const key = keyBuilderFromType$3(luvio, input);
|
|
4927
5489
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4928
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5490
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$7, RepresentationType$6, equals$7);
|
|
4929
5491
|
return createLink(key);
|
|
4930
5492
|
};
|
|
4931
|
-
function getTypeCacheKeys$
|
|
5493
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
4932
5494
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4933
5495
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
4934
5496
|
rootKeySet.set(rootKey, {
|
|
4935
5497
|
namespace: keyPrefix,
|
|
4936
|
-
representationName: RepresentationType$
|
|
5498
|
+
representationName: RepresentationType$6,
|
|
4937
5499
|
mergeable: false
|
|
4938
5500
|
});
|
|
4939
5501
|
}
|
|
4940
5502
|
|
|
4941
|
-
function select$
|
|
4942
|
-
return select$
|
|
5503
|
+
function select$n(luvio, params) {
|
|
5504
|
+
return select$o();
|
|
4943
5505
|
}
|
|
4944
5506
|
function keyBuilder$m(luvio, params) {
|
|
4945
5507
|
return keyBuilder$n(luvio, {
|
|
@@ -4947,15 +5509,15 @@ function keyBuilder$m(luvio, params) {
|
|
|
4947
5509
|
});
|
|
4948
5510
|
}
|
|
4949
5511
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
4950
|
-
getTypeCacheKeys$
|
|
5512
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
4951
5513
|
}
|
|
4952
5514
|
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
4953
5515
|
const { body } = response;
|
|
4954
5516
|
const key = keyBuilder$m(luvio, resourceParams);
|
|
4955
|
-
luvio.storeIngest(key, ingest$
|
|
5517
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
4956
5518
|
const snapshot = luvio.storeLookup({
|
|
4957
5519
|
recordId: key,
|
|
4958
|
-
node: select$
|
|
5520
|
+
node: select$n(),
|
|
4959
5521
|
variables: {},
|
|
4960
5522
|
}, snapshotRefresh);
|
|
4961
5523
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4999,14 +5561,14 @@ const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
4999
5561
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5000
5562
|
];
|
|
5001
5563
|
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5002
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
5564
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$p(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5003
5565
|
function keyBuilder$l(luvio, config) {
|
|
5004
5566
|
const resourceParams = createResourceParams$g(config);
|
|
5005
5567
|
return keyBuilder$m(luvio, resourceParams);
|
|
5006
5568
|
}
|
|
5007
5569
|
function typeCheckConfig$g(untrustedConfig) {
|
|
5008
5570
|
const config = {};
|
|
5009
|
-
typeCheckConfig$
|
|
5571
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5010
5572
|
return config;
|
|
5011
5573
|
}
|
|
5012
5574
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -5024,7 +5586,7 @@ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
|
5024
5586
|
}
|
|
5025
5587
|
function adapterFragment$9(luvio, config) {
|
|
5026
5588
|
createResourceParams$g(config);
|
|
5027
|
-
return select$
|
|
5589
|
+
return select$n();
|
|
5028
5590
|
}
|
|
5029
5591
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5030
5592
|
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
@@ -5055,7 +5617,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
5055
5617
|
});
|
|
5056
5618
|
}
|
|
5057
5619
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5058
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5620
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
5059
5621
|
}
|
|
5060
5622
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5061
5623
|
const { luvio, config } = context;
|
|
@@ -5090,11 +5652,11 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
5090
5652
|
.then((response) => {
|
|
5091
5653
|
return luvio.handleSuccessResponse(() => {
|
|
5092
5654
|
const { body } = response;
|
|
5093
|
-
luvio.storeIngest(key, ingest$
|
|
5655
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5094
5656
|
return luvio.storeBroadcast();
|
|
5095
5657
|
}, () => {
|
|
5096
5658
|
const cache = new StoreKeyMap();
|
|
5097
|
-
getTypeCacheKeys$
|
|
5659
|
+
getTypeCacheKeys$6(cache, luvio, response.body);
|
|
5098
5660
|
return cache;
|
|
5099
5661
|
});
|
|
5100
5662
|
}, (error) => {
|
|
@@ -5109,8 +5671,8 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
5109
5671
|
};
|
|
5110
5672
|
};
|
|
5111
5673
|
|
|
5112
|
-
const VERSION$
|
|
5113
|
-
function validate$
|
|
5674
|
+
const VERSION$6 = "d6833ffbee3e599bfdef928466ea65af";
|
|
5675
|
+
function validate$6(obj, path = 'SlackBridgeSlackTeamOutputRepresentation') {
|
|
5114
5676
|
const v_error = (() => {
|
|
5115
5677
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5116
5678
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5138,10 +5700,10 @@ function validate$7(obj, path = 'SlackBridgeSlackTeamOutputRepresentation') {
|
|
|
5138
5700
|
})();
|
|
5139
5701
|
return v_error === undefined ? null : v_error;
|
|
5140
5702
|
}
|
|
5141
|
-
const select$
|
|
5703
|
+
const select$m = function SlackBridgeSlackTeamOutputRepresentationSelect() {
|
|
5142
5704
|
return {
|
|
5143
5705
|
kind: 'Fragment',
|
|
5144
|
-
version: VERSION$
|
|
5706
|
+
version: VERSION$6,
|
|
5145
5707
|
private: [],
|
|
5146
5708
|
selections: [
|
|
5147
5709
|
{
|
|
@@ -5163,7 +5725,7 @@ const select$n = function SlackBridgeSlackTeamOutputRepresentationSelect() {
|
|
|
5163
5725
|
]
|
|
5164
5726
|
};
|
|
5165
5727
|
};
|
|
5166
|
-
function equals$
|
|
5728
|
+
function equals$6(existing, incoming) {
|
|
5167
5729
|
const existing_status = existing.status;
|
|
5168
5730
|
const incoming_status = incoming.status;
|
|
5169
5731
|
if (!(existing_status === incoming_status)) {
|
|
@@ -5188,8 +5750,8 @@ function equals$7(existing, incoming) {
|
|
|
5188
5750
|
}
|
|
5189
5751
|
|
|
5190
5752
|
const TTL = 500;
|
|
5191
|
-
const VERSION$
|
|
5192
|
-
function validate$
|
|
5753
|
+
const VERSION$5 = "b3c7e0b8bc0a4a3745874264601b9082";
|
|
5754
|
+
function validate$5(obj, path = 'SlackBridgeDisplayLoginOutputRepresentation') {
|
|
5193
5755
|
const v_error = (() => {
|
|
5194
5756
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5195
5757
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5201,7 +5763,7 @@ function validate$6(obj, path = 'SlackBridgeDisplayLoginOutputRepresentation') {
|
|
|
5201
5763
|
}
|
|
5202
5764
|
const obj_slackTeam = obj.slackTeam;
|
|
5203
5765
|
const path_slackTeam = path + '.slackTeam';
|
|
5204
|
-
const referencepath_slackTeamValidationError = validate$
|
|
5766
|
+
const referencepath_slackTeamValidationError = validate$6(obj_slackTeam, path_slackTeam);
|
|
5205
5767
|
if (referencepath_slackTeamValidationError !== null) {
|
|
5206
5768
|
let message = 'Object doesn\'t match SlackBridgeSlackTeamOutputRepresentation (at "' + path_slackTeam + '")\n';
|
|
5207
5769
|
message += referencepath_slackTeamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5210,15 +5772,15 @@ function validate$6(obj, path = 'SlackBridgeDisplayLoginOutputRepresentation') {
|
|
|
5210
5772
|
})();
|
|
5211
5773
|
return v_error === undefined ? null : v_error;
|
|
5212
5774
|
}
|
|
5213
|
-
const RepresentationType$
|
|
5214
|
-
function normalize$
|
|
5775
|
+
const RepresentationType$5 = 'SlackBridgeDisplayLoginOutputRepresentation';
|
|
5776
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
5215
5777
|
return input;
|
|
5216
5778
|
}
|
|
5217
|
-
const select$
|
|
5218
|
-
const { selections: SlackBridgeSlackTeamOutputRepresentation__selections, opaque: SlackBridgeSlackTeamOutputRepresentation__opaque, } = select$
|
|
5779
|
+
const select$l = function SlackBridgeDisplayLoginOutputRepresentationSelect() {
|
|
5780
|
+
const { selections: SlackBridgeSlackTeamOutputRepresentation__selections, opaque: SlackBridgeSlackTeamOutputRepresentation__opaque, } = select$m();
|
|
5219
5781
|
return {
|
|
5220
5782
|
kind: 'Fragment',
|
|
5221
|
-
version: VERSION$
|
|
5783
|
+
version: VERSION$5,
|
|
5222
5784
|
private: [],
|
|
5223
5785
|
selections: [
|
|
5224
5786
|
{
|
|
@@ -5233,7 +5795,7 @@ const select$m = function SlackBridgeDisplayLoginOutputRepresentationSelect() {
|
|
|
5233
5795
|
]
|
|
5234
5796
|
};
|
|
5235
5797
|
};
|
|
5236
|
-
function equals$
|
|
5798
|
+
function equals$5(existing, incoming) {
|
|
5237
5799
|
const existing_orgId = existing.orgId;
|
|
5238
5800
|
const incoming_orgId = incoming.orgId;
|
|
5239
5801
|
if (!(existing_orgId === incoming_orgId)) {
|
|
@@ -5241,49 +5803,49 @@ function equals$6(existing, incoming) {
|
|
|
5241
5803
|
}
|
|
5242
5804
|
const existing_slackTeam = existing.slackTeam;
|
|
5243
5805
|
const incoming_slackTeam = incoming.slackTeam;
|
|
5244
|
-
if (!(equals$
|
|
5806
|
+
if (!(equals$6(existing_slackTeam, incoming_slackTeam))) {
|
|
5245
5807
|
return false;
|
|
5246
5808
|
}
|
|
5247
5809
|
return true;
|
|
5248
5810
|
}
|
|
5249
|
-
const ingest$
|
|
5811
|
+
const ingest$5 = function SlackBridgeDisplayLoginOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5250
5812
|
if (process.env.NODE_ENV !== 'production') {
|
|
5251
|
-
const validateError = validate$
|
|
5813
|
+
const validateError = validate$5(input);
|
|
5252
5814
|
if (validateError !== null) {
|
|
5253
5815
|
throw validateError;
|
|
5254
5816
|
}
|
|
5255
5817
|
}
|
|
5256
5818
|
const key = path.fullPath;
|
|
5257
5819
|
const ttlToUse = TTL;
|
|
5258
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5820
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SlackBridge", VERSION$5, RepresentationType$5, equals$5);
|
|
5259
5821
|
return createLink(key);
|
|
5260
5822
|
};
|
|
5261
|
-
function getTypeCacheKeys$
|
|
5823
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
5262
5824
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5263
5825
|
const rootKey = fullPathFactory();
|
|
5264
5826
|
rootKeySet.set(rootKey, {
|
|
5265
5827
|
namespace: keyPrefix,
|
|
5266
|
-
representationName: RepresentationType$
|
|
5828
|
+
representationName: RepresentationType$5,
|
|
5267
5829
|
mergeable: false
|
|
5268
5830
|
});
|
|
5269
5831
|
}
|
|
5270
5832
|
|
|
5271
|
-
function select$
|
|
5272
|
-
return select$
|
|
5833
|
+
function select$k(luvio, params) {
|
|
5834
|
+
return select$l();
|
|
5273
5835
|
}
|
|
5274
5836
|
function keyBuilder$k(luvio, params) {
|
|
5275
5837
|
return keyPrefix + '::SlackBridgeDisplayLoginOutputRepresentation:(' + ')';
|
|
5276
5838
|
}
|
|
5277
5839
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
5278
|
-
getTypeCacheKeys$
|
|
5840
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$k());
|
|
5279
5841
|
}
|
|
5280
5842
|
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
5281
5843
|
const { body } = response;
|
|
5282
5844
|
const key = keyBuilder$k();
|
|
5283
|
-
luvio.storeIngest(key, ingest$
|
|
5845
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
5284
5846
|
const snapshot = luvio.storeLookup({
|
|
5285
5847
|
recordId: key,
|
|
5286
|
-
node: select$
|
|
5848
|
+
node: select$k(),
|
|
5287
5849
|
variables: {},
|
|
5288
5850
|
}, snapshotRefresh);
|
|
5289
5851
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5300,8 +5862,8 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
5300
5862
|
const storeMetadataParams = {
|
|
5301
5863
|
ttl: TTL,
|
|
5302
5864
|
namespace: keyPrefix,
|
|
5303
|
-
version: VERSION$
|
|
5304
|
-
representationName: RepresentationType$
|
|
5865
|
+
version: VERSION$5,
|
|
5866
|
+
representationName: RepresentationType$5
|
|
5305
5867
|
};
|
|
5306
5868
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5307
5869
|
return errorSnapshot;
|
|
@@ -5323,7 +5885,7 @@ function createResourceRequest$f(config) {
|
|
|
5323
5885
|
const adapterName$f = 'getSlackDisplayLogin';
|
|
5324
5886
|
const getSlackDisplayLogin_ConfigPropertyMetadata = [];
|
|
5325
5887
|
const getSlackDisplayLogin_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackDisplayLogin_ConfigPropertyMetadata);
|
|
5326
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
5888
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$p(getSlackDisplayLogin_ConfigPropertyMetadata);
|
|
5327
5889
|
function keyBuilder$j(luvio, config) {
|
|
5328
5890
|
createResourceParams$f(config);
|
|
5329
5891
|
return keyBuilder$k();
|
|
@@ -5347,7 +5909,7 @@ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
|
5347
5909
|
}
|
|
5348
5910
|
function adapterFragment$8(luvio, config) {
|
|
5349
5911
|
createResourceParams$f(config);
|
|
5350
|
-
return select$
|
|
5912
|
+
return select$k();
|
|
5351
5913
|
}
|
|
5352
5914
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
5353
5915
|
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
@@ -5378,7 +5940,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5378
5940
|
});
|
|
5379
5941
|
}
|
|
5380
5942
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5381
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5943
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
5382
5944
|
}
|
|
5383
5945
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5384
5946
|
const { luvio, config } = context;
|
|
@@ -5403,11 +5965,11 @@ const getSlackDisplayLoginAdapterFactory = (luvio) => function SlackBridge__getS
|
|
|
5403
5965
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
5404
5966
|
};
|
|
5405
5967
|
|
|
5406
|
-
function select$
|
|
5407
|
-
return select$
|
|
5968
|
+
function select$j(luvio, params) {
|
|
5969
|
+
return select$x();
|
|
5408
5970
|
}
|
|
5409
5971
|
function keyBuilder$i(luvio, params) {
|
|
5410
|
-
return keyBuilder$
|
|
5972
|
+
return keyBuilder$x(luvio, {
|
|
5411
5973
|
name: params.urlParams.slackEmojiId
|
|
5412
5974
|
});
|
|
5413
5975
|
}
|
|
@@ -5420,7 +5982,7 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5420
5982
|
luvio.storeIngest(key, ingest$b, body);
|
|
5421
5983
|
const snapshot = luvio.storeLookup({
|
|
5422
5984
|
recordId: key,
|
|
5423
|
-
node: select$
|
|
5985
|
+
node: select$j(),
|
|
5424
5986
|
variables: {},
|
|
5425
5987
|
}, snapshotRefresh);
|
|
5426
5988
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5470,14 +6032,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
5470
6032
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5471
6033
|
];
|
|
5472
6034
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackEmoji_ConfigPropertyMetadata);
|
|
5473
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
6035
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$p(getSlackEmoji_ConfigPropertyMetadata);
|
|
5474
6036
|
function keyBuilder$h(luvio, config) {
|
|
5475
6037
|
const resourceParams = createResourceParams$e(config);
|
|
5476
6038
|
return keyBuilder$i(luvio, resourceParams);
|
|
5477
6039
|
}
|
|
5478
6040
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5479
6041
|
const config = {};
|
|
5480
|
-
typeCheckConfig$
|
|
6042
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
5481
6043
|
return config;
|
|
5482
6044
|
}
|
|
5483
6045
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -5495,7 +6057,7 @@ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
|
5495
6057
|
}
|
|
5496
6058
|
function adapterFragment$7(luvio, config) {
|
|
5497
6059
|
createResourceParams$e(config);
|
|
5498
|
-
return select$
|
|
6060
|
+
return select$j();
|
|
5499
6061
|
}
|
|
5500
6062
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
5501
6063
|
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
@@ -5526,7 +6088,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
5526
6088
|
});
|
|
5527
6089
|
}
|
|
5528
6090
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5529
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6091
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
5530
6092
|
}
|
|
5531
6093
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5532
6094
|
const { luvio, config } = context;
|
|
@@ -5552,7 +6114,7 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
5552
6114
|
};
|
|
5553
6115
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
5554
6116
|
return function getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamIdNotifyChange(configs) {
|
|
5555
|
-
const keys = configs.map(c => keyBuilder$
|
|
6117
|
+
const keys = configs.map(c => keyBuilder$x(luvio, c));
|
|
5556
6118
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5557
6119
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5558
6120
|
const { key, record: val } = entries[i];
|
|
@@ -5585,8 +6147,8 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
5585
6147
|
};
|
|
5586
6148
|
};
|
|
5587
6149
|
|
|
5588
|
-
const VERSION$
|
|
5589
|
-
function validate$
|
|
6150
|
+
const VERSION$4 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
6151
|
+
function validate$4(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
5590
6152
|
const v_error = (() => {
|
|
5591
6153
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5592
6154
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5606,8 +6168,8 @@ function validate$5(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
5606
6168
|
})();
|
|
5607
6169
|
return v_error === undefined ? null : v_error;
|
|
5608
6170
|
}
|
|
5609
|
-
const RepresentationType$
|
|
5610
|
-
function normalize$
|
|
6171
|
+
const RepresentationType$4 = 'SlackBridgeEmojisOutputRepresentation';
|
|
6172
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5611
6173
|
const input_emojis = input.emojis;
|
|
5612
6174
|
const input_emojis_id = path.fullPath + '__emojis';
|
|
5613
6175
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
@@ -5626,22 +6188,22 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
5626
6188
|
}
|
|
5627
6189
|
return input;
|
|
5628
6190
|
}
|
|
5629
|
-
const select$
|
|
6191
|
+
const select$i = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
5630
6192
|
return {
|
|
5631
6193
|
kind: 'Fragment',
|
|
5632
|
-
version: VERSION$
|
|
6194
|
+
version: VERSION$4,
|
|
5633
6195
|
private: [],
|
|
5634
6196
|
selections: [
|
|
5635
6197
|
{
|
|
5636
6198
|
name: 'emojis',
|
|
5637
6199
|
kind: 'Link',
|
|
5638
6200
|
plural: true,
|
|
5639
|
-
fragment: select$
|
|
6201
|
+
fragment: select$x()
|
|
5640
6202
|
}
|
|
5641
6203
|
]
|
|
5642
6204
|
};
|
|
5643
6205
|
};
|
|
5644
|
-
function equals$
|
|
6206
|
+
function equals$4(existing, incoming) {
|
|
5645
6207
|
const existing_emojis = existing.emojis;
|
|
5646
6208
|
const incoming_emojis = incoming.emojis;
|
|
5647
6209
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
@@ -5654,24 +6216,24 @@ function equals$5(existing, incoming) {
|
|
|
5654
6216
|
}
|
|
5655
6217
|
return true;
|
|
5656
6218
|
}
|
|
5657
|
-
const ingest$
|
|
6219
|
+
const ingest$4 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5658
6220
|
if (process.env.NODE_ENV !== 'production') {
|
|
5659
|
-
const validateError = validate$
|
|
6221
|
+
const validateError = validate$4(input);
|
|
5660
6222
|
if (validateError !== null) {
|
|
5661
6223
|
throw validateError;
|
|
5662
6224
|
}
|
|
5663
6225
|
}
|
|
5664
6226
|
const key = path.fullPath;
|
|
5665
6227
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5666
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6228
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SlackBridge", VERSION$4, RepresentationType$4, equals$4);
|
|
5667
6229
|
return createLink(key);
|
|
5668
6230
|
};
|
|
5669
|
-
function getTypeCacheKeys$
|
|
6231
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
5670
6232
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5671
6233
|
const rootKey = fullPathFactory();
|
|
5672
6234
|
rootKeySet.set(rootKey, {
|
|
5673
6235
|
namespace: keyPrefix,
|
|
5674
|
-
representationName: RepresentationType$
|
|
6236
|
+
representationName: RepresentationType$4,
|
|
5675
6237
|
mergeable: false
|
|
5676
6238
|
});
|
|
5677
6239
|
const input_emojis_length = input.emojis.length;
|
|
@@ -5680,22 +6242,22 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5680
6242
|
}
|
|
5681
6243
|
}
|
|
5682
6244
|
|
|
5683
|
-
function select$
|
|
5684
|
-
return select$
|
|
6245
|
+
function select$h(luvio, params) {
|
|
6246
|
+
return select$i();
|
|
5685
6247
|
}
|
|
5686
6248
|
function keyBuilder$g(luvio, params) {
|
|
5687
6249
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5688
6250
|
}
|
|
5689
6251
|
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5690
|
-
getTypeCacheKeys$
|
|
6252
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
5691
6253
|
}
|
|
5692
6254
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
5693
6255
|
const { body } = response;
|
|
5694
6256
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
5695
|
-
luvio.storeIngest(key, ingest$
|
|
6257
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5696
6258
|
const snapshot = luvio.storeLookup({
|
|
5697
6259
|
recordId: key,
|
|
5698
|
-
node: select$
|
|
6260
|
+
node: select$h(),
|
|
5699
6261
|
variables: {},
|
|
5700
6262
|
}, snapshotRefresh);
|
|
5701
6263
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5732,14 +6294,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
5732
6294
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5733
6295
|
];
|
|
5734
6296
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackEmojis_ConfigPropertyMetadata);
|
|
5735
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
6297
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$p(getSlackEmojis_ConfigPropertyMetadata);
|
|
5736
6298
|
function keyBuilder$f(luvio, config) {
|
|
5737
6299
|
const resourceParams = createResourceParams$d(config);
|
|
5738
6300
|
return keyBuilder$g(luvio, resourceParams);
|
|
5739
6301
|
}
|
|
5740
6302
|
function typeCheckConfig$d(untrustedConfig) {
|
|
5741
6303
|
const config = {};
|
|
5742
|
-
typeCheckConfig$
|
|
6304
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
5743
6305
|
return config;
|
|
5744
6306
|
}
|
|
5745
6307
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -5757,7 +6319,7 @@ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
|
5757
6319
|
}
|
|
5758
6320
|
function adapterFragment$6(luvio, config) {
|
|
5759
6321
|
createResourceParams$d(config);
|
|
5760
|
-
return select$
|
|
6322
|
+
return select$h();
|
|
5761
6323
|
}
|
|
5762
6324
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
5763
6325
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
@@ -5788,7 +6350,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5788
6350
|
});
|
|
5789
6351
|
}
|
|
5790
6352
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5791
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6353
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5792
6354
|
}
|
|
5793
6355
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5794
6356
|
const { luvio, config } = context;
|
|
@@ -5813,11 +6375,11 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
5813
6375
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
5814
6376
|
};
|
|
5815
6377
|
|
|
5816
|
-
function select$
|
|
5817
|
-
return select$
|
|
6378
|
+
function select$g(luvio, params) {
|
|
6379
|
+
return select$J();
|
|
5818
6380
|
}
|
|
5819
6381
|
function keyBuilder$e(luvio, params) {
|
|
5820
|
-
return keyBuilder$
|
|
6382
|
+
return keyBuilder$F(luvio, {
|
|
5821
6383
|
channelId: params.urlParams.channelId
|
|
5822
6384
|
});
|
|
5823
6385
|
}
|
|
@@ -5830,7 +6392,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5830
6392
|
luvio.storeIngest(key, ingest$h, body);
|
|
5831
6393
|
const snapshot = luvio.storeLookup({
|
|
5832
6394
|
recordId: key,
|
|
5833
|
-
node: select$
|
|
6395
|
+
node: select$g(),
|
|
5834
6396
|
variables: {},
|
|
5835
6397
|
}, snapshotRefresh);
|
|
5836
6398
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5875,14 +6437,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
5875
6437
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5876
6438
|
];
|
|
5877
6439
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackMessage_ConfigPropertyMetadata);
|
|
5878
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
6440
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$p(getSlackMessage_ConfigPropertyMetadata);
|
|
5879
6441
|
function keyBuilder$d(luvio, config) {
|
|
5880
6442
|
const resourceParams = createResourceParams$c(config);
|
|
5881
6443
|
return keyBuilder$e(luvio, resourceParams);
|
|
5882
6444
|
}
|
|
5883
6445
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5884
6446
|
const config = {};
|
|
5885
|
-
typeCheckConfig$
|
|
6447
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
5886
6448
|
return config;
|
|
5887
6449
|
}
|
|
5888
6450
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5900,7 +6462,7 @@ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
|
5900
6462
|
}
|
|
5901
6463
|
function adapterFragment$5(luvio, config) {
|
|
5902
6464
|
createResourceParams$c(config);
|
|
5903
|
-
return select$
|
|
6465
|
+
return select$g();
|
|
5904
6466
|
}
|
|
5905
6467
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
5906
6468
|
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
@@ -5931,7 +6493,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5931
6493
|
});
|
|
5932
6494
|
}
|
|
5933
6495
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
5934
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6496
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
5935
6497
|
}
|
|
5936
6498
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
5937
6499
|
const { luvio, config } = context;
|
|
@@ -5957,7 +6519,7 @@ const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackM
|
|
|
5957
6519
|
};
|
|
5958
6520
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
5959
6521
|
return function getConnectSlackbridgeTeamChannelMessagesByChannelIdAndMessageTsAndTeamIdNotifyChange(configs) {
|
|
5960
|
-
const keys = configs.map(c => keyBuilder$
|
|
6522
|
+
const keys = configs.map(c => keyBuilder$F(luvio, c));
|
|
5961
6523
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5962
6524
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5963
6525
|
const { key, record: val } = entries[i];
|
|
@@ -5985,8 +6547,8 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
5985
6547
|
};
|
|
5986
6548
|
};
|
|
5987
6549
|
|
|
5988
|
-
const VERSION$
|
|
5989
|
-
function validate$
|
|
6550
|
+
const VERSION$3 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
6551
|
+
function validate$3(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
5990
6552
|
const v_error = (() => {
|
|
5991
6553
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5992
6554
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6009,9 +6571,9 @@ function validate$4(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
6009
6571
|
})();
|
|
6010
6572
|
return v_error === undefined ? null : v_error;
|
|
6011
6573
|
}
|
|
6012
|
-
const RepresentationType$
|
|
6574
|
+
const RepresentationType$3 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
6013
6575
|
function keyBuilder$c(luvio, config) {
|
|
6014
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6576
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.relatedRecordId;
|
|
6015
6577
|
}
|
|
6016
6578
|
function keyBuilderFromType$2(luvio, object) {
|
|
6017
6579
|
const keyParams = {
|
|
@@ -6019,7 +6581,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
6019
6581
|
};
|
|
6020
6582
|
return keyBuilder$c(luvio, keyParams);
|
|
6021
6583
|
}
|
|
6022
|
-
function normalize$
|
|
6584
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6023
6585
|
const input_conversationInfo = input.conversationInfo;
|
|
6024
6586
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
6025
6587
|
input.conversationInfo = ingest$f(input_conversationInfo, {
|
|
@@ -6034,16 +6596,16 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
6034
6596
|
}, luvio, store, timestamp);
|
|
6035
6597
|
return input;
|
|
6036
6598
|
}
|
|
6037
|
-
const select$
|
|
6599
|
+
const select$f = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
6038
6600
|
return {
|
|
6039
6601
|
kind: 'Fragment',
|
|
6040
|
-
version: VERSION$
|
|
6602
|
+
version: VERSION$3,
|
|
6041
6603
|
private: [],
|
|
6042
6604
|
selections: [
|
|
6043
6605
|
{
|
|
6044
6606
|
name: 'conversationInfo',
|
|
6045
6607
|
kind: 'Link',
|
|
6046
|
-
fragment: select$
|
|
6608
|
+
fragment: select$G()
|
|
6047
6609
|
},
|
|
6048
6610
|
{
|
|
6049
6611
|
name: 'relatedRecordId',
|
|
@@ -6056,7 +6618,7 @@ const select$g = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
6056
6618
|
]
|
|
6057
6619
|
};
|
|
6058
6620
|
};
|
|
6059
|
-
function equals$
|
|
6621
|
+
function equals$3(existing, incoming) {
|
|
6060
6622
|
const existing_relatedRecordId = existing.relatedRecordId;
|
|
6061
6623
|
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
6062
6624
|
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
@@ -6074,31 +6636,31 @@ function equals$4(existing, incoming) {
|
|
|
6074
6636
|
}
|
|
6075
6637
|
return true;
|
|
6076
6638
|
}
|
|
6077
|
-
const ingest$
|
|
6639
|
+
const ingest$3 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6078
6640
|
if (process.env.NODE_ENV !== 'production') {
|
|
6079
|
-
const validateError = validate$
|
|
6641
|
+
const validateError = validate$3(input);
|
|
6080
6642
|
if (validateError !== null) {
|
|
6081
6643
|
throw validateError;
|
|
6082
6644
|
}
|
|
6083
6645
|
}
|
|
6084
6646
|
const key = keyBuilderFromType$2(luvio, input);
|
|
6085
6647
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6086
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6648
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
6087
6649
|
return createLink(key);
|
|
6088
6650
|
};
|
|
6089
|
-
function getTypeCacheKeys$
|
|
6651
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
6090
6652
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6091
6653
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
6092
6654
|
rootKeySet.set(rootKey, {
|
|
6093
6655
|
namespace: keyPrefix,
|
|
6094
|
-
representationName: RepresentationType$
|
|
6656
|
+
representationName: RepresentationType$3,
|
|
6095
6657
|
mergeable: false
|
|
6096
6658
|
});
|
|
6097
6659
|
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
6098
6660
|
}
|
|
6099
6661
|
|
|
6100
|
-
function select$
|
|
6101
|
-
return select$
|
|
6662
|
+
function select$e(luvio, params) {
|
|
6663
|
+
return select$f();
|
|
6102
6664
|
}
|
|
6103
6665
|
function keyBuilder$b(luvio, params) {
|
|
6104
6666
|
return keyBuilder$c(luvio, {
|
|
@@ -6106,15 +6668,15 @@ function keyBuilder$b(luvio, params) {
|
|
|
6106
6668
|
});
|
|
6107
6669
|
}
|
|
6108
6670
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
6109
|
-
getTypeCacheKeys$
|
|
6671
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
6110
6672
|
}
|
|
6111
6673
|
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
6112
6674
|
const { body } = response;
|
|
6113
6675
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
6114
|
-
luvio.storeIngest(key, ingest$
|
|
6676
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
6115
6677
|
const snapshot = luvio.storeLookup({
|
|
6116
6678
|
recordId: key,
|
|
6117
|
-
node: select$
|
|
6679
|
+
node: select$e(),
|
|
6118
6680
|
variables: {},
|
|
6119
6681
|
}, snapshotRefresh);
|
|
6120
6682
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6157,14 +6719,14 @@ const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
|
6157
6719
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6158
6720
|
];
|
|
6159
6721
|
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6160
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
6722
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$p(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6161
6723
|
function keyBuilder$a(luvio, config) {
|
|
6162
6724
|
const resourceParams = createResourceParams$b(config);
|
|
6163
6725
|
return keyBuilder$b(luvio, resourceParams);
|
|
6164
6726
|
}
|
|
6165
6727
|
function typeCheckConfig$b(untrustedConfig) {
|
|
6166
6728
|
const config = {};
|
|
6167
|
-
typeCheckConfig$
|
|
6729
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6168
6730
|
return config;
|
|
6169
6731
|
}
|
|
6170
6732
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -6182,7 +6744,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
|
6182
6744
|
}
|
|
6183
6745
|
function adapterFragment$4(luvio, config) {
|
|
6184
6746
|
createResourceParams$b(config);
|
|
6185
|
-
return select$
|
|
6747
|
+
return select$e();
|
|
6186
6748
|
}
|
|
6187
6749
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6188
6750
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
@@ -6213,7 +6775,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
6213
6775
|
});
|
|
6214
6776
|
}
|
|
6215
6777
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6216
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6778
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
6217
6779
|
}
|
|
6218
6780
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6219
6781
|
const { luvio, config } = context;
|
|
@@ -6248,11 +6810,11 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
6248
6810
|
.then((response) => {
|
|
6249
6811
|
return luvio.handleSuccessResponse(() => {
|
|
6250
6812
|
const { body } = response;
|
|
6251
|
-
luvio.storeIngest(key, ingest$
|
|
6813
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
6252
6814
|
return luvio.storeBroadcast();
|
|
6253
6815
|
}, () => {
|
|
6254
6816
|
const cache = new StoreKeyMap();
|
|
6255
|
-
getTypeCacheKeys$
|
|
6817
|
+
getTypeCacheKeys$3(cache, luvio, response.body);
|
|
6256
6818
|
return cache;
|
|
6257
6819
|
});
|
|
6258
6820
|
}, (error) => {
|
|
@@ -6267,149 +6829,19 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
6267
6829
|
};
|
|
6268
6830
|
};
|
|
6269
6831
|
|
|
6270
|
-
const VERSION$3 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6271
|
-
function validate$3(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6272
|
-
const v_error = (() => {
|
|
6273
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6274
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6275
|
-
}
|
|
6276
|
-
const obj_conversationInfos = obj.conversationInfos;
|
|
6277
|
-
const path_conversationInfos = path + '.conversationInfos';
|
|
6278
|
-
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6279
|
-
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6280
|
-
}
|
|
6281
|
-
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6282
|
-
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6283
|
-
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6284
|
-
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6285
|
-
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6286
|
-
}
|
|
6287
|
-
}
|
|
6288
|
-
const obj_searchString = obj.searchString;
|
|
6289
|
-
const path_searchString = path + '.searchString';
|
|
6290
|
-
let obj_searchString_union0 = null;
|
|
6291
|
-
const obj_searchString_union0_error = (() => {
|
|
6292
|
-
if (typeof obj_searchString !== 'string') {
|
|
6293
|
-
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6294
|
-
}
|
|
6295
|
-
})();
|
|
6296
|
-
if (obj_searchString_union0_error != null) {
|
|
6297
|
-
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6298
|
-
}
|
|
6299
|
-
let obj_searchString_union1 = null;
|
|
6300
|
-
const obj_searchString_union1_error = (() => {
|
|
6301
|
-
if (obj_searchString !== null) {
|
|
6302
|
-
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6303
|
-
}
|
|
6304
|
-
})();
|
|
6305
|
-
if (obj_searchString_union1_error != null) {
|
|
6306
|
-
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6307
|
-
}
|
|
6308
|
-
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6309
|
-
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6310
|
-
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6311
|
-
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6312
|
-
return new TypeError(message);
|
|
6313
|
-
}
|
|
6314
|
-
})();
|
|
6315
|
-
return v_error === undefined ? null : v_error;
|
|
6316
|
-
}
|
|
6317
|
-
const RepresentationType$3 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6318
|
-
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6319
|
-
const input_conversationInfos = input.conversationInfos;
|
|
6320
|
-
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6321
|
-
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6322
|
-
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6323
|
-
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6324
|
-
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
6325
|
-
fullPath: input_conversationInfos_item_id,
|
|
6326
|
-
propertyName: i,
|
|
6327
|
-
parent: {
|
|
6328
|
-
data: input,
|
|
6329
|
-
key: path.fullPath,
|
|
6330
|
-
existing: existing,
|
|
6331
|
-
},
|
|
6332
|
-
ttl: path.ttl
|
|
6333
|
-
}, luvio, store, timestamp);
|
|
6334
|
-
}
|
|
6335
|
-
return input;
|
|
6336
|
-
}
|
|
6337
|
-
const select$e = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
6338
|
-
return {
|
|
6339
|
-
kind: 'Fragment',
|
|
6340
|
-
version: VERSION$3,
|
|
6341
|
-
private: [],
|
|
6342
|
-
selections: [
|
|
6343
|
-
{
|
|
6344
|
-
name: 'conversationInfos',
|
|
6345
|
-
kind: 'Link',
|
|
6346
|
-
plural: true,
|
|
6347
|
-
fragment: select$E()
|
|
6348
|
-
},
|
|
6349
|
-
{
|
|
6350
|
-
name: 'searchString',
|
|
6351
|
-
kind: 'Scalar'
|
|
6352
|
-
}
|
|
6353
|
-
]
|
|
6354
|
-
};
|
|
6355
|
-
};
|
|
6356
|
-
function equals$3(existing, incoming) {
|
|
6357
|
-
const existing_conversationInfos = existing.conversationInfos;
|
|
6358
|
-
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6359
|
-
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6360
|
-
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
6361
|
-
return false;
|
|
6362
|
-
}
|
|
6363
|
-
});
|
|
6364
|
-
if (equals_conversationInfos_items === false) {
|
|
6365
|
-
return false;
|
|
6366
|
-
}
|
|
6367
|
-
const existing_searchString = existing.searchString;
|
|
6368
|
-
const incoming_searchString = incoming.searchString;
|
|
6369
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
6370
|
-
return false;
|
|
6371
|
-
}
|
|
6372
|
-
return true;
|
|
6373
|
-
}
|
|
6374
|
-
const ingest$3 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6375
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6376
|
-
const validateError = validate$3(input);
|
|
6377
|
-
if (validateError !== null) {
|
|
6378
|
-
throw validateError;
|
|
6379
|
-
}
|
|
6380
|
-
}
|
|
6381
|
-
const key = path.fullPath;
|
|
6382
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6383
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
6384
|
-
return createLink(key);
|
|
6385
|
-
};
|
|
6386
|
-
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
6387
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6388
|
-
const rootKey = fullPathFactory();
|
|
6389
|
-
rootKeySet.set(rootKey, {
|
|
6390
|
-
namespace: keyPrefix,
|
|
6391
|
-
representationName: RepresentationType$3,
|
|
6392
|
-
mergeable: false
|
|
6393
|
-
});
|
|
6394
|
-
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6395
|
-
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6396
|
-
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6397
|
-
}
|
|
6398
|
-
}
|
|
6399
|
-
|
|
6400
6832
|
function select$d(luvio, params) {
|
|
6401
|
-
return select$
|
|
6833
|
+
return select$r();
|
|
6402
6834
|
}
|
|
6403
6835
|
function keyBuilder$9(luvio, params) {
|
|
6404
6836
|
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6405
6837
|
}
|
|
6406
6838
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
6407
|
-
getTypeCacheKeys$
|
|
6839
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
6408
6840
|
}
|
|
6409
6841
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
6410
6842
|
const { body } = response;
|
|
6411
6843
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
6412
|
-
luvio.storeIngest(key, ingest$
|
|
6844
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
6413
6845
|
const snapshot = luvio.storeLookup({
|
|
6414
6846
|
recordId: key,
|
|
6415
6847
|
node: select$d(),
|
|
@@ -6449,14 +6881,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
6449
6881
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6450
6882
|
];
|
|
6451
6883
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6452
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
6884
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$p(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6453
6885
|
function keyBuilder$8(luvio, config) {
|
|
6454
6886
|
const resourceParams = createResourceParams$a(config);
|
|
6455
6887
|
return keyBuilder$9(luvio, resourceParams);
|
|
6456
6888
|
}
|
|
6457
6889
|
function typeCheckConfig$a(untrustedConfig) {
|
|
6458
6890
|
const config = {};
|
|
6459
|
-
typeCheckConfig$
|
|
6891
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6460
6892
|
return config;
|
|
6461
6893
|
}
|
|
6462
6894
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6505,7 +6937,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6505
6937
|
});
|
|
6506
6938
|
}
|
|
6507
6939
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6508
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6940
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
6509
6941
|
}
|
|
6510
6942
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6511
6943
|
const { luvio, config } = context;
|
|
@@ -6531,18 +6963,18 @@ const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge
|
|
|
6531
6963
|
};
|
|
6532
6964
|
|
|
6533
6965
|
function select$c(luvio, params) {
|
|
6534
|
-
return select$
|
|
6966
|
+
return select$i();
|
|
6535
6967
|
}
|
|
6536
6968
|
function keyBuilder$7(luvio, params) {
|
|
6537
6969
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6538
6970
|
}
|
|
6539
6971
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
6540
|
-
getTypeCacheKeys$
|
|
6972
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
6541
6973
|
}
|
|
6542
6974
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
6543
6975
|
const { body } = response;
|
|
6544
6976
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
6545
|
-
luvio.storeIngest(key, ingest$
|
|
6977
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
6546
6978
|
const snapshot = luvio.storeLookup({
|
|
6547
6979
|
recordId: key,
|
|
6548
6980
|
node: select$c(),
|
|
@@ -6582,14 +7014,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
6582
7014
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6583
7015
|
];
|
|
6584
7016
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6585
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
7017
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$p(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6586
7018
|
function keyBuilder$6(luvio, config) {
|
|
6587
7019
|
const resourceParams = createResourceParams$9(config);
|
|
6588
7020
|
return keyBuilder$7(luvio, resourceParams);
|
|
6589
7021
|
}
|
|
6590
7022
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6591
7023
|
const config = {};
|
|
6592
|
-
typeCheckConfig$
|
|
7024
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6593
7025
|
return config;
|
|
6594
7026
|
}
|
|
6595
7027
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6638,7 +7070,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6638
7070
|
});
|
|
6639
7071
|
}
|
|
6640
7072
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6641
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7073
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6642
7074
|
}
|
|
6643
7075
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6644
7076
|
const { luvio, config } = context;
|
|
@@ -6663,12 +7095,38 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
6663
7095
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
6664
7096
|
};
|
|
6665
7097
|
|
|
6666
|
-
const VERSION$2 = "
|
|
7098
|
+
const VERSION$2 = "16b915c502b8a0609446d7ed3907a794";
|
|
6667
7099
|
function validate$2(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
6668
7100
|
const v_error = (() => {
|
|
6669
7101
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6670
7102
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6671
7103
|
}
|
|
7104
|
+
const obj_nextMarker = obj.nextMarker;
|
|
7105
|
+
const path_nextMarker = path + '.nextMarker';
|
|
7106
|
+
let obj_nextMarker_union0 = null;
|
|
7107
|
+
const obj_nextMarker_union0_error = (() => {
|
|
7108
|
+
if (typeof obj_nextMarker !== 'string') {
|
|
7109
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
7110
|
+
}
|
|
7111
|
+
})();
|
|
7112
|
+
if (obj_nextMarker_union0_error != null) {
|
|
7113
|
+
obj_nextMarker_union0 = obj_nextMarker_union0_error.message;
|
|
7114
|
+
}
|
|
7115
|
+
let obj_nextMarker_union1 = null;
|
|
7116
|
+
const obj_nextMarker_union1_error = (() => {
|
|
7117
|
+
if (obj_nextMarker !== null) {
|
|
7118
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
7119
|
+
}
|
|
7120
|
+
})();
|
|
7121
|
+
if (obj_nextMarker_union1_error != null) {
|
|
7122
|
+
obj_nextMarker_union1 = obj_nextMarker_union1_error.message;
|
|
7123
|
+
}
|
|
7124
|
+
if (obj_nextMarker_union0 && obj_nextMarker_union1) {
|
|
7125
|
+
let message = 'Object doesn\'t match union (at "' + path_nextMarker + '")';
|
|
7126
|
+
message += '\n' + obj_nextMarker_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7127
|
+
message += '\n' + obj_nextMarker_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7128
|
+
return new TypeError(message);
|
|
7129
|
+
}
|
|
6672
7130
|
const obj_searchString = obj.searchString;
|
|
6673
7131
|
const path_searchString = path + '.searchString';
|
|
6674
7132
|
let obj_searchString_union0 = null;
|
|
@@ -6736,6 +7194,10 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6736
7194
|
version: VERSION$2,
|
|
6737
7195
|
private: [],
|
|
6738
7196
|
selections: [
|
|
7197
|
+
{
|
|
7198
|
+
name: 'nextMarker',
|
|
7199
|
+
kind: 'Scalar'
|
|
7200
|
+
},
|
|
6739
7201
|
{
|
|
6740
7202
|
name: 'searchString',
|
|
6741
7203
|
kind: 'Scalar'
|
|
@@ -6744,12 +7206,17 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6744
7206
|
name: 'userInfos',
|
|
6745
7207
|
kind: 'Link',
|
|
6746
7208
|
plural: true,
|
|
6747
|
-
fragment: select$
|
|
7209
|
+
fragment: select$w()
|
|
6748
7210
|
}
|
|
6749
7211
|
]
|
|
6750
7212
|
};
|
|
6751
7213
|
};
|
|
6752
7214
|
function equals$2(existing, incoming) {
|
|
7215
|
+
const existing_nextMarker = existing.nextMarker;
|
|
7216
|
+
const incoming_nextMarker = incoming.nextMarker;
|
|
7217
|
+
if (!(existing_nextMarker === incoming_nextMarker)) {
|
|
7218
|
+
return false;
|
|
7219
|
+
}
|
|
6753
7220
|
const existing_searchString = existing.searchString;
|
|
6754
7221
|
const incoming_searchString = incoming.searchString;
|
|
6755
7222
|
if (!(existing_searchString === incoming_searchString)) {
|
|
@@ -6848,14 +7315,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
6848
7315
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6849
7316
|
];
|
|
6850
7317
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6851
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
7318
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$p(getSlackSearchUser_ConfigPropertyMetadata);
|
|
6852
7319
|
function keyBuilder$4(luvio, config) {
|
|
6853
7320
|
const resourceParams = createResourceParams$8(config);
|
|
6854
7321
|
return keyBuilder$5(luvio, resourceParams);
|
|
6855
7322
|
}
|
|
6856
7323
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6857
7324
|
const config = {};
|
|
6858
|
-
typeCheckConfig$
|
|
7325
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6859
7326
|
return config;
|
|
6860
7327
|
}
|
|
6861
7328
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -6904,7 +7371,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6904
7371
|
});
|
|
6905
7372
|
}
|
|
6906
7373
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6907
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7374
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
6908
7375
|
}
|
|
6909
7376
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6910
7377
|
const { luvio, config } = context;
|
|
@@ -6930,12 +7397,11 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
6930
7397
|
};
|
|
6931
7398
|
|
|
6932
7399
|
function select$9(luvio, params) {
|
|
6933
|
-
return select$
|
|
7400
|
+
return select$w();
|
|
6934
7401
|
}
|
|
6935
7402
|
function keyBuilder$3(luvio, params) {
|
|
6936
|
-
return keyBuilder$
|
|
6937
|
-
slackUserId: params.urlParams.slackUserId
|
|
6938
|
-
teamId: params.urlParams.teamId
|
|
7403
|
+
return keyBuilder$w(luvio, {
|
|
7404
|
+
slackUserId: params.urlParams.slackUserId
|
|
6939
7405
|
});
|
|
6940
7406
|
}
|
|
6941
7407
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -6988,7 +7454,6 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
6988
7454
|
urlParams: {},
|
|
6989
7455
|
};
|
|
6990
7456
|
config.urlParams.slackUserId = representation.slackUserId;
|
|
6991
|
-
config.urlParams.teamId = representation.teamId;
|
|
6992
7457
|
return createResourceRequest$7(config);
|
|
6993
7458
|
}
|
|
6994
7459
|
|
|
@@ -6998,14 +7463,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
6998
7463
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6999
7464
|
];
|
|
7000
7465
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackUser_ConfigPropertyMetadata);
|
|
7001
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7466
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$p(getSlackUser_ConfigPropertyMetadata);
|
|
7002
7467
|
function keyBuilder$2(luvio, config) {
|
|
7003
7468
|
const resourceParams = createResourceParams$7(config);
|
|
7004
7469
|
return keyBuilder$3(luvio, resourceParams);
|
|
7005
7470
|
}
|
|
7006
7471
|
function typeCheckConfig$7(untrustedConfig) {
|
|
7007
7472
|
const config = {};
|
|
7008
|
-
typeCheckConfig$
|
|
7473
|
+
typeCheckConfig$p(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
7009
7474
|
return config;
|
|
7010
7475
|
}
|
|
7011
7476
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -7054,7 +7519,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
7054
7519
|
});
|
|
7055
7520
|
}
|
|
7056
7521
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7057
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7522
|
+
return buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
7058
7523
|
}
|
|
7059
7524
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7060
7525
|
const { luvio, config } = context;
|
|
@@ -7080,7 +7545,7 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
7080
7545
|
};
|
|
7081
7546
|
const notifyChangeFactory = (luvio, options) => {
|
|
7082
7547
|
return function getConnectSlackbridgeTeamUserBySlackUserIdAndTeamIdNotifyChange(configs) {
|
|
7083
|
-
const keys = configs.map(c => keyBuilder$
|
|
7548
|
+
const keys = configs.map(c => keyBuilder$w(luvio, c));
|
|
7084
7549
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
7085
7550
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
7086
7551
|
const { key, record: val } = entries[i];
|
|
@@ -7114,7 +7579,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
7114
7579
|
};
|
|
7115
7580
|
|
|
7116
7581
|
function select$8(luvio, params) {
|
|
7117
|
-
return select$
|
|
7582
|
+
return select$J();
|
|
7118
7583
|
}
|
|
7119
7584
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
7120
7585
|
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
@@ -7158,10 +7623,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
7158
7623
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
7159
7624
|
];
|
|
7160
7625
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
|
|
7161
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7626
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$p(patchSlackMessage_ConfigPropertyMetadata);
|
|
7162
7627
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7163
7628
|
const config = {};
|
|
7164
|
-
typeCheckConfig$
|
|
7629
|
+
typeCheckConfig$p(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
7165
7630
|
return config;
|
|
7166
7631
|
}
|
|
7167
7632
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7268,7 +7733,7 @@ const select$7 = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
7268
7733
|
{
|
|
7269
7734
|
name: 'postedMessage',
|
|
7270
7735
|
kind: 'Link',
|
|
7271
|
-
fragment: select$
|
|
7736
|
+
fragment: select$B()
|
|
7272
7737
|
},
|
|
7273
7738
|
{
|
|
7274
7739
|
name: 'timestamp',
|
|
@@ -7365,10 +7830,10 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
7365
7830
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
7366
7831
|
];
|
|
7367
7832
|
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, postSlackConversation_ConfigPropertyMetadata);
|
|
7368
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7833
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$p(postSlackConversation_ConfigPropertyMetadata);
|
|
7369
7834
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7370
7835
|
const config = {};
|
|
7371
|
-
typeCheckConfig$
|
|
7836
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
7372
7837
|
return config;
|
|
7373
7838
|
}
|
|
7374
7839
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7541,10 +8006,10 @@ const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
|
7541
8006
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
7542
8007
|
];
|
|
7543
8008
|
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7544
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
8009
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$p(postSlackConversationMark_ConfigPropertyMetadata);
|
|
7545
8010
|
function typeCheckConfig$4(untrustedConfig) {
|
|
7546
8011
|
const config = {};
|
|
7547
|
-
typeCheckConfig$
|
|
8012
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7548
8013
|
return config;
|
|
7549
8014
|
}
|
|
7550
8015
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -7590,15 +8055,15 @@ const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
|
7590
8055
|
};
|
|
7591
8056
|
|
|
7592
8057
|
function select$3(luvio, params) {
|
|
7593
|
-
return select$
|
|
8058
|
+
return select$o();
|
|
7594
8059
|
}
|
|
7595
8060
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7596
|
-
getTypeCacheKeys$
|
|
8061
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
7597
8062
|
}
|
|
7598
8063
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
7599
8064
|
const { body } = response;
|
|
7600
8065
|
const key = keyBuilderFromType$3(luvio, body);
|
|
7601
|
-
luvio.storeIngest(key, ingest$
|
|
8066
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
7602
8067
|
const snapshot = luvio.storeLookup({
|
|
7603
8068
|
recordId: key,
|
|
7604
8069
|
node: select$3(),
|
|
@@ -7633,10 +8098,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
7633
8098
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
7634
8099
|
];
|
|
7635
8100
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7636
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8101
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$p(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7637
8102
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7638
8103
|
const config = {};
|
|
7639
|
-
typeCheckConfig$
|
|
8104
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7640
8105
|
return config;
|
|
7641
8106
|
}
|
|
7642
8107
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7682,7 +8147,7 @@ const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
|
7682
8147
|
};
|
|
7683
8148
|
|
|
7684
8149
|
function select$2(luvio, params) {
|
|
7685
|
-
return select$
|
|
8150
|
+
return select$C();
|
|
7686
8151
|
}
|
|
7687
8152
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
7688
8153
|
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
@@ -7730,10 +8195,10 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
7730
8195
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
7731
8196
|
];
|
|
7732
8197
|
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postSlackFile_ConfigPropertyMetadata);
|
|
7733
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8198
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$p(postSlackFile_ConfigPropertyMetadata);
|
|
7734
8199
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7735
8200
|
const config = {};
|
|
7736
|
-
typeCheckConfig$
|
|
8201
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
7737
8202
|
return config;
|
|
7738
8203
|
}
|
|
7739
8204
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7779,7 +8244,7 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
7779
8244
|
};
|
|
7780
8245
|
|
|
7781
8246
|
function select$1(luvio, params) {
|
|
7782
|
-
return select$
|
|
8247
|
+
return select$H();
|
|
7783
8248
|
}
|
|
7784
8249
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7785
8250
|
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
@@ -7823,10 +8288,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
7823
8288
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7824
8289
|
];
|
|
7825
8290
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7826
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8291
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$p(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7827
8292
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7828
8293
|
const config = {};
|
|
7829
|
-
typeCheckConfig$
|
|
8294
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7830
8295
|
return config;
|
|
7831
8296
|
}
|
|
7832
8297
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7872,15 +8337,15 @@ const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
|
7872
8337
|
};
|
|
7873
8338
|
|
|
7874
8339
|
function select(luvio, params) {
|
|
7875
|
-
return select$
|
|
8340
|
+
return select$f();
|
|
7876
8341
|
}
|
|
7877
8342
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
7878
|
-
getTypeCacheKeys$
|
|
8343
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
7879
8344
|
}
|
|
7880
8345
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
7881
8346
|
const { body } = response;
|
|
7882
8347
|
const key = keyBuilderFromType$2(luvio, body);
|
|
7883
|
-
luvio.storeIngest(key, ingest$
|
|
8348
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
7884
8349
|
const snapshot = luvio.storeLookup({
|
|
7885
8350
|
recordId: key,
|
|
7886
8351
|
node: select(),
|
|
@@ -7914,10 +8379,10 @@ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
|
7914
8379
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
7915
8380
|
];
|
|
7916
8381
|
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7917
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8382
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$p(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7918
8383
|
function typeCheckConfig(untrustedConfig) {
|
|
7919
8384
|
const config = {};
|
|
7920
|
-
typeCheckConfig$
|
|
8385
|
+
typeCheckConfig$p(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7921
8386
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
7922
8387
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
7923
8388
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -7978,6 +8443,9 @@ let deleteSlackMessage;
|
|
|
7978
8443
|
let deleteSlackMessageReactions;
|
|
7979
8444
|
let getRelatedThreads;
|
|
7980
8445
|
let getSlackConversation;
|
|
8446
|
+
let getSlackConversationInfo;
|
|
8447
|
+
let getSlackConversationInfoNotifyChange;
|
|
8448
|
+
let getSlackConversationInfos;
|
|
7981
8449
|
let getSlackConversationMember;
|
|
7982
8450
|
let getSlackConversationMemberNotifyChange;
|
|
7983
8451
|
let getSlackConversationMembers;
|
|
@@ -8005,6 +8473,8 @@ let postSlackRecordChannelInfos;
|
|
|
8005
8473
|
// Imperative GET Adapters
|
|
8006
8474
|
let getRelatedThreads_imperative;
|
|
8007
8475
|
let getSlackConversation_imperative;
|
|
8476
|
+
let getSlackConversationInfo_imperative;
|
|
8477
|
+
let getSlackConversationInfos_imperative;
|
|
8008
8478
|
let getSlackConversationMember_imperative;
|
|
8009
8479
|
let getSlackConversationMembers_imperative;
|
|
8010
8480
|
let getSlackDisplayLogin_imperative;
|
|
@@ -8018,6 +8488,15 @@ let getSlackSearchUser_imperative;
|
|
|
8018
8488
|
let getSlackUser_imperative;
|
|
8019
8489
|
const getRelatedThreadsMetadata = { apiFamily: 'SlackBridge', name: 'getRelatedThreads', ttl: 500 };
|
|
8020
8490
|
const getSlackConversationMetadata = { apiFamily: 'SlackBridge', name: 'getSlackConversation' };
|
|
8491
|
+
const getSlackConversationInfoMetadata = {
|
|
8492
|
+
apiFamily: 'SlackBridge',
|
|
8493
|
+
name: 'getSlackConversationInfo',
|
|
8494
|
+
ttl: 900000,
|
|
8495
|
+
};
|
|
8496
|
+
const getSlackConversationInfosMetadata = {
|
|
8497
|
+
apiFamily: 'SlackBridge',
|
|
8498
|
+
name: 'getSlackConversationInfos',
|
|
8499
|
+
};
|
|
8021
8500
|
const getSlackConversationMemberMetadata = {
|
|
8022
8501
|
apiFamily: 'SlackBridge',
|
|
8023
8502
|
name: 'getSlackConversationMember',
|
|
@@ -8044,12 +8523,14 @@ const getSlackSearchConversationMetadata = {
|
|
|
8044
8523
|
};
|
|
8045
8524
|
const getSlackSearchEmojiMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchEmoji' };
|
|
8046
8525
|
const getSlackSearchUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchUser' };
|
|
8047
|
-
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl:
|
|
8526
|
+
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl: 900000 };
|
|
8048
8527
|
// Notify Update Available
|
|
8049
8528
|
function bindExportsTo(luvio) {
|
|
8050
8529
|
// LDS Adapters
|
|
8051
8530
|
const getRelatedThreads_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedThreads', getRelatedThreadsAdapterFactory), getRelatedThreadsMetadata);
|
|
8052
8531
|
const getSlackConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversation', getSlackConversationAdapterFactory), getSlackConversationMetadata);
|
|
8532
|
+
const getSlackConversationInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationInfo', getSlackConversationInfoAdapterFactory), getSlackConversationInfoMetadata);
|
|
8533
|
+
const getSlackConversationInfos_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationInfos', getSlackConversationInfosAdapterFactory), getSlackConversationInfosMetadata);
|
|
8053
8534
|
const getSlackConversationMember_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMember', getSlackConversationMemberAdapterFactory), getSlackConversationMemberMetadata);
|
|
8054
8535
|
const getSlackConversationMembers_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMembers', getSlackConversationMembersAdapterFactory), getSlackConversationMembersMetadata);
|
|
8055
8536
|
const getSlackDisplayLogin_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackDisplayLogin', getSlackDisplayLoginAdapterFactory), getSlackDisplayLoginMetadata);
|
|
@@ -8066,11 +8547,14 @@ function bindExportsTo(luvio) {
|
|
|
8066
8547
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
8067
8548
|
}
|
|
8068
8549
|
return {
|
|
8069
|
-
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$
|
|
8070
|
-
deleteSlackMessage: createLDSAdapter(luvio, adapterName$
|
|
8071
|
-
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$
|
|
8550
|
+
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$o, deleteSlackConversationMemberAdapterFactory),
|
|
8551
|
+
deleteSlackMessage: createLDSAdapter(luvio, adapterName$n, deleteSlackMessageAdapterFactory),
|
|
8552
|
+
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$m, deleteSlackMessageReactionsAdapterFactory),
|
|
8072
8553
|
getRelatedThreads: createWireAdapterConstructor(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
8073
8554
|
getSlackConversation: createWireAdapterConstructor(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8555
|
+
getSlackConversationInfo: createWireAdapterConstructor(luvio, getSlackConversationInfo_ldsAdapter, getSlackConversationInfoMetadata),
|
|
8556
|
+
getSlackConversationInfoNotifyChange: createLDSAdapter(luvio, 'getSlackConversationInfoNotifyChange', notifyChangeFactory$6),
|
|
8557
|
+
getSlackConversationInfos: createWireAdapterConstructor(luvio, getSlackConversationInfos_ldsAdapter, getSlackConversationInfosMetadata),
|
|
8074
8558
|
getSlackConversationMember: createWireAdapterConstructor(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
8075
8559
|
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$5),
|
|
8076
8560
|
getSlackConversationMembers: createWireAdapterConstructor(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
@@ -8098,6 +8582,8 @@ function bindExportsTo(luvio) {
|
|
|
8098
8582
|
// Imperative GET Adapters
|
|
8099
8583
|
getRelatedThreads_imperative: createImperativeAdapter(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
8100
8584
|
getSlackConversation_imperative: createImperativeAdapter(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8585
|
+
getSlackConversationInfo_imperative: createImperativeAdapter(luvio, getSlackConversationInfo_ldsAdapter, getSlackConversationInfoMetadata),
|
|
8586
|
+
getSlackConversationInfos_imperative: createImperativeAdapter(luvio, getSlackConversationInfos_ldsAdapter, getSlackConversationInfosMetadata),
|
|
8101
8587
|
getSlackConversationMember_imperative: createImperativeAdapter(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
8102
8588
|
getSlackConversationMembers_imperative: createImperativeAdapter(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
8103
8589
|
getSlackDisplayLogin_imperative: createImperativeAdapter(luvio, getSlackDisplayLogin_ldsAdapter, getSlackDisplayLoginMetadata),
|
|
@@ -8119,6 +8605,9 @@ withDefaultLuvio((luvio) => {
|
|
|
8119
8605
|
deleteSlackMessageReactions,
|
|
8120
8606
|
getRelatedThreads,
|
|
8121
8607
|
getSlackConversation,
|
|
8608
|
+
getSlackConversationInfo,
|
|
8609
|
+
getSlackConversationInfoNotifyChange,
|
|
8610
|
+
getSlackConversationInfos,
|
|
8122
8611
|
getSlackConversationMember,
|
|
8123
8612
|
getSlackConversationMemberNotifyChange,
|
|
8124
8613
|
getSlackConversationMembers,
|
|
@@ -8145,6 +8634,8 @@ withDefaultLuvio((luvio) => {
|
|
|
8145
8634
|
postSlackRecordChannelInfos,
|
|
8146
8635
|
getRelatedThreads_imperative,
|
|
8147
8636
|
getSlackConversation_imperative,
|
|
8637
|
+
getSlackConversationInfo_imperative,
|
|
8638
|
+
getSlackConversationInfos_imperative,
|
|
8148
8639
|
getSlackConversationMember_imperative,
|
|
8149
8640
|
getSlackConversationMembers_imperative,
|
|
8150
8641
|
getSlackDisplayLogin_imperative,
|
|
@@ -8159,5 +8650,5 @@ withDefaultLuvio((luvio) => {
|
|
|
8159
8650
|
} = bindExportsTo(luvio));
|
|
8160
8651
|
});
|
|
8161
8652
|
|
|
8162
|
-
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackDisplayLogin, getSlackDisplayLogin_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 };
|
|
8163
|
-
// version: 1.354.0-
|
|
8653
|
+
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, getSlackDisplayLogin, getSlackDisplayLogin_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 };
|
|
8654
|
+
// version: 1.354.0-dev3-009407b55f
|