@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev24 → 1.332.0-dev26
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 +1166 -741
- 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 +973 -482
- 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$o, typeCheckConfig as typeCheckConfig$o, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$e } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -142,19 +142,19 @@ function validate$m(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
142
142
|
return v_error === undefined ? null : v_error;
|
|
143
143
|
}
|
|
144
144
|
const RepresentationType$h = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
145
|
-
function keyBuilder$
|
|
145
|
+
function keyBuilder$F(luvio, config) {
|
|
146
146
|
return keyPrefix + '::' + RepresentationType$h + ':' + config.channelId;
|
|
147
147
|
}
|
|
148
148
|
function keyBuilderFromType$a(luvio, object) {
|
|
149
149
|
const keyParams = {
|
|
150
150
|
channelId: object.channelId
|
|
151
151
|
};
|
|
152
|
-
return keyBuilder$
|
|
152
|
+
return keyBuilder$F(luvio, keyParams);
|
|
153
153
|
}
|
|
154
154
|
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
155
155
|
return input;
|
|
156
156
|
}
|
|
157
|
-
const select$
|
|
157
|
+
const select$H = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
158
158
|
return {
|
|
159
159
|
kind: 'Fragment',
|
|
160
160
|
version: VERSION$m,
|
|
@@ -206,13 +206,13 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
function keyBuilder$
|
|
210
|
-
return keyBuilder$
|
|
209
|
+
function keyBuilder$E(luvio, params) {
|
|
210
|
+
return keyBuilder$F(luvio, {
|
|
211
211
|
channelId: params.urlParams.channelId
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function getResponseCacheKeys$
|
|
215
|
-
const key = keyBuilder$
|
|
214
|
+
function getResponseCacheKeys$n(cacheKeyMap, luvio, resourceParams) {
|
|
215
|
+
const key = keyBuilder$E(luvio, resourceParams);
|
|
216
216
|
cacheKeyMap.set(key, {
|
|
217
217
|
namespace: keyPrefix,
|
|
218
218
|
representationName: RepresentationType$h,
|
|
@@ -220,10 +220,10 @@ function getResponseCacheKeys$l(cacheKeyMap, luvio, resourceParams) {
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
function evictSuccess$2(luvio, resourceParams) {
|
|
223
|
-
const key = keyBuilder$
|
|
223
|
+
const key = keyBuilder$E(luvio, resourceParams);
|
|
224
224
|
luvio.storeEvict(key);
|
|
225
225
|
}
|
|
226
|
-
function createResourceRequest$
|
|
226
|
+
function createResourceRequest$n(config) {
|
|
227
227
|
const headers = {};
|
|
228
228
|
return {
|
|
229
229
|
baseUri: '/services/data/v63.0',
|
|
@@ -237,35 +237,35 @@ function createResourceRequest$l(config) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
const adapterName$
|
|
240
|
+
const adapterName$n = 'deleteSlackConversationMember';
|
|
241
241
|
const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
242
242
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
243
243
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
244
244
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
245
245
|
];
|
|
246
|
-
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
247
|
-
const createResourceParams$
|
|
248
|
-
function typeCheckConfig$
|
|
246
|
+
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
247
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$o(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
248
|
+
function typeCheckConfig$n(untrustedConfig) {
|
|
249
249
|
const config = {};
|
|
250
|
-
typeCheckConfig$
|
|
250
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
251
251
|
return config;
|
|
252
252
|
}
|
|
253
|
-
function validateAdapterConfig$
|
|
253
|
+
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
254
254
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
255
255
|
return null;
|
|
256
256
|
}
|
|
257
257
|
if (process.env.NODE_ENV !== 'production') {
|
|
258
258
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
259
259
|
}
|
|
260
|
-
const config = typeCheckConfig$
|
|
260
|
+
const config = typeCheckConfig$n(untrustedConfig);
|
|
261
261
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
262
262
|
return null;
|
|
263
263
|
}
|
|
264
264
|
return config;
|
|
265
265
|
}
|
|
266
|
-
function buildNetworkSnapshot$
|
|
267
|
-
const resourceParams = createResourceParams$
|
|
268
|
-
const request = createResourceRequest$
|
|
266
|
+
function buildNetworkSnapshot$n(luvio, config, options) {
|
|
267
|
+
const resourceParams = createResourceParams$n(config);
|
|
268
|
+
const request = createResourceRequest$n(resourceParams);
|
|
269
269
|
return luvio.dispatchResourceRequest(request, options)
|
|
270
270
|
.then(() => {
|
|
271
271
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -273,7 +273,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
273
273
|
return luvio.storeBroadcast();
|
|
274
274
|
}, () => {
|
|
275
275
|
const cache = new StoreKeyMap();
|
|
276
|
-
getResponseCacheKeys$
|
|
276
|
+
getResponseCacheKeys$n(cache, luvio, resourceParams);
|
|
277
277
|
return cache;
|
|
278
278
|
});
|
|
279
279
|
}, (response) => {
|
|
@@ -283,12 +283,12 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
283
283
|
}
|
|
284
284
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
285
285
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
286
|
-
const config = validateAdapterConfig$
|
|
286
|
+
const config = validateAdapterConfig$n(untrustedConfig, deleteSlackConversationMember_ConfigPropertyNames);
|
|
287
287
|
// Invalid or incomplete config
|
|
288
288
|
if (config === null) {
|
|
289
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
289
|
+
throw new Error(`Invalid config for "${adapterName$n}"`);
|
|
290
290
|
}
|
|
291
|
-
return buildNetworkSnapshot$
|
|
291
|
+
return buildNetworkSnapshot$n(luvio, config);
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
|
|
@@ -317,19 +317,19 @@ function validate$l(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
const RepresentationType$g = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
320
|
-
function keyBuilder$
|
|
320
|
+
function keyBuilder$D(luvio, config) {
|
|
321
321
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.channelId;
|
|
322
322
|
}
|
|
323
323
|
function keyBuilderFromType$9(luvio, object) {
|
|
324
324
|
const keyParams = {
|
|
325
325
|
channelId: object.channelId
|
|
326
326
|
};
|
|
327
|
-
return keyBuilder$
|
|
327
|
+
return keyBuilder$D(luvio, keyParams);
|
|
328
328
|
}
|
|
329
329
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
330
330
|
return input;
|
|
331
331
|
}
|
|
332
|
-
const select$
|
|
332
|
+
const select$G = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
333
333
|
return {
|
|
334
334
|
kind: 'Fragment',
|
|
335
335
|
version: VERSION$l,
|
|
@@ -390,13 +390,13 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
function keyBuilder$
|
|
394
|
-
return keyBuilder$
|
|
393
|
+
function keyBuilder$C(luvio, params) {
|
|
394
|
+
return keyBuilder$D(luvio, {
|
|
395
395
|
channelId: params.urlParams.channelId
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
function getResponseCacheKeys$
|
|
399
|
-
const key = keyBuilder$
|
|
398
|
+
function getResponseCacheKeys$m(cacheKeyMap, luvio, resourceParams) {
|
|
399
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
400
400
|
cacheKeyMap.set(key, {
|
|
401
401
|
namespace: keyPrefix,
|
|
402
402
|
representationName: RepresentationType$g,
|
|
@@ -404,10 +404,10 @@ function getResponseCacheKeys$k(cacheKeyMap, luvio, resourceParams) {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
function evictSuccess$1(luvio, resourceParams) {
|
|
407
|
-
const key = keyBuilder$
|
|
407
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
408
408
|
luvio.storeEvict(key);
|
|
409
409
|
}
|
|
410
|
-
function createResourceRequest$
|
|
410
|
+
function createResourceRequest$m(config) {
|
|
411
411
|
const headers = {};
|
|
412
412
|
return {
|
|
413
413
|
baseUri: '/services/data/v63.0',
|
|
@@ -421,35 +421,35 @@ function createResourceRequest$k(config) {
|
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
const adapterName$
|
|
424
|
+
const adapterName$m = 'deleteSlackMessage';
|
|
425
425
|
const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
426
426
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
427
427
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
428
428
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
429
429
|
];
|
|
430
|
-
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
431
|
-
const createResourceParams$
|
|
432
|
-
function typeCheckConfig$
|
|
430
|
+
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, deleteSlackMessage_ConfigPropertyMetadata);
|
|
431
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$o(deleteSlackMessage_ConfigPropertyMetadata);
|
|
432
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
433
433
|
const config = {};
|
|
434
|
-
typeCheckConfig$
|
|
434
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
435
435
|
return config;
|
|
436
436
|
}
|
|
437
|
-
function validateAdapterConfig$
|
|
437
|
+
function validateAdapterConfig$m(untrustedConfig, configPropertyNames) {
|
|
438
438
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
439
439
|
return null;
|
|
440
440
|
}
|
|
441
441
|
if (process.env.NODE_ENV !== 'production') {
|
|
442
442
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
443
443
|
}
|
|
444
|
-
const config = typeCheckConfig$
|
|
444
|
+
const config = typeCheckConfig$m(untrustedConfig);
|
|
445
445
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
446
446
|
return null;
|
|
447
447
|
}
|
|
448
448
|
return config;
|
|
449
449
|
}
|
|
450
|
-
function buildNetworkSnapshot$
|
|
451
|
-
const resourceParams = createResourceParams$
|
|
452
|
-
const request = createResourceRequest$
|
|
450
|
+
function buildNetworkSnapshot$m(luvio, config, options) {
|
|
451
|
+
const resourceParams = createResourceParams$m(config);
|
|
452
|
+
const request = createResourceRequest$m(resourceParams);
|
|
453
453
|
return luvio.dispatchResourceRequest(request, options)
|
|
454
454
|
.then(() => {
|
|
455
455
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -457,7 +457,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
457
457
|
return luvio.storeBroadcast();
|
|
458
458
|
}, () => {
|
|
459
459
|
const cache = new StoreKeyMap();
|
|
460
|
-
getResponseCacheKeys$
|
|
460
|
+
getResponseCacheKeys$m(cache, luvio, resourceParams);
|
|
461
461
|
return cache;
|
|
462
462
|
});
|
|
463
463
|
}, (response) => {
|
|
@@ -467,12 +467,12 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
467
467
|
}
|
|
468
468
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
469
469
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
470
|
-
const config = validateAdapterConfig$
|
|
470
|
+
const config = validateAdapterConfig$m(untrustedConfig, deleteSlackMessage_ConfigPropertyNames);
|
|
471
471
|
// Invalid or incomplete config
|
|
472
472
|
if (config === null) {
|
|
473
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
473
|
+
throw new Error(`Invalid config for "${adapterName$m}"`);
|
|
474
474
|
}
|
|
475
|
-
return buildNetworkSnapshot$
|
|
475
|
+
return buildNetworkSnapshot$m(luvio, config);
|
|
476
476
|
};
|
|
477
477
|
};
|
|
478
478
|
|
|
@@ -554,7 +554,7 @@ function validate$k(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
554
554
|
})();
|
|
555
555
|
return v_error === undefined ? null : v_error;
|
|
556
556
|
}
|
|
557
|
-
const select$
|
|
557
|
+
const select$F = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
558
558
|
return {
|
|
559
559
|
kind: 'Fragment',
|
|
560
560
|
version: VERSION$k,
|
|
@@ -649,20 +649,20 @@ function validate$j(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
649
649
|
return v_error === undefined ? null : v_error;
|
|
650
650
|
}
|
|
651
651
|
const RepresentationType$f = 'SlackBridgeReactionsOutputRepresentation';
|
|
652
|
-
function keyBuilder$
|
|
652
|
+
function keyBuilder$B(luvio, config) {
|
|
653
653
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.channelId;
|
|
654
654
|
}
|
|
655
655
|
function keyBuilderFromType$8(luvio, object) {
|
|
656
656
|
const keyParams = {
|
|
657
657
|
channelId: object.channelId
|
|
658
658
|
};
|
|
659
|
-
return keyBuilder$
|
|
659
|
+
return keyBuilder$B(luvio, keyParams);
|
|
660
660
|
}
|
|
661
661
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
662
662
|
return input;
|
|
663
663
|
}
|
|
664
|
-
const select$
|
|
665
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
664
|
+
const select$E = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
665
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$F();
|
|
666
666
|
return {
|
|
667
667
|
kind: 'Fragment',
|
|
668
668
|
version: VERSION$j,
|
|
@@ -739,13 +739,13 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
-
function keyBuilder$
|
|
743
|
-
return keyBuilder$
|
|
742
|
+
function keyBuilder$A(luvio, params) {
|
|
743
|
+
return keyBuilder$B(luvio, {
|
|
744
744
|
channelId: params.urlParams.channelId
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
function getResponseCacheKeys$
|
|
748
|
-
const key = keyBuilder$
|
|
747
|
+
function getResponseCacheKeys$l(cacheKeyMap, luvio, resourceParams) {
|
|
748
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
749
749
|
cacheKeyMap.set(key, {
|
|
750
750
|
namespace: keyPrefix,
|
|
751
751
|
representationName: RepresentationType$f,
|
|
@@ -753,10 +753,10 @@ function getResponseCacheKeys$j(cacheKeyMap, luvio, resourceParams) {
|
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
function evictSuccess(luvio, resourceParams) {
|
|
756
|
-
const key = keyBuilder$
|
|
756
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
757
757
|
luvio.storeEvict(key);
|
|
758
758
|
}
|
|
759
|
-
function createResourceRequest$
|
|
759
|
+
function createResourceRequest$l(config) {
|
|
760
760
|
const headers = {};
|
|
761
761
|
return {
|
|
762
762
|
baseUri: '/services/data/v63.0',
|
|
@@ -770,36 +770,36 @@ function createResourceRequest$j(config) {
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
const adapterName$
|
|
773
|
+
const adapterName$l = 'deleteSlackMessageReactions';
|
|
774
774
|
const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
775
775
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
776
776
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
777
777
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
778
778
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
779
779
|
];
|
|
780
|
-
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
781
|
-
const createResourceParams$
|
|
782
|
-
function typeCheckConfig$
|
|
780
|
+
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
781
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$o(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
782
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
783
783
|
const config = {};
|
|
784
|
-
typeCheckConfig$
|
|
784
|
+
typeCheckConfig$o(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
785
785
|
return config;
|
|
786
786
|
}
|
|
787
|
-
function validateAdapterConfig$
|
|
787
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
788
788
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
789
789
|
return null;
|
|
790
790
|
}
|
|
791
791
|
if (process.env.NODE_ENV !== 'production') {
|
|
792
792
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
793
793
|
}
|
|
794
|
-
const config = typeCheckConfig$
|
|
794
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
795
795
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
796
796
|
return null;
|
|
797
797
|
}
|
|
798
798
|
return config;
|
|
799
799
|
}
|
|
800
|
-
function buildNetworkSnapshot$
|
|
801
|
-
const resourceParams = createResourceParams$
|
|
802
|
-
const request = createResourceRequest$
|
|
800
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
801
|
+
const resourceParams = createResourceParams$l(config);
|
|
802
|
+
const request = createResourceRequest$l(resourceParams);
|
|
803
803
|
return luvio.dispatchResourceRequest(request, options)
|
|
804
804
|
.then(() => {
|
|
805
805
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -807,7 +807,7 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
807
807
|
return luvio.storeBroadcast();
|
|
808
808
|
}, () => {
|
|
809
809
|
const cache = new StoreKeyMap();
|
|
810
|
-
getResponseCacheKeys$
|
|
810
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams);
|
|
811
811
|
return cache;
|
|
812
812
|
});
|
|
813
813
|
}, (response) => {
|
|
@@ -817,15 +817,16 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
817
817
|
}
|
|
818
818
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
819
819
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
820
|
-
const config = validateAdapterConfig$
|
|
820
|
+
const config = validateAdapterConfig$l(untrustedConfig, deleteSlackMessageReactions_ConfigPropertyNames);
|
|
821
821
|
// Invalid or incomplete config
|
|
822
822
|
if (config === null) {
|
|
823
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
823
|
+
throw new Error(`Invalid config for "${adapterName$l}"`);
|
|
824
824
|
}
|
|
825
|
-
return buildNetworkSnapshot$
|
|
825
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
828
|
|
|
829
|
+
const TTL$3 = 900000;
|
|
829
830
|
const VERSION$i = "252fe3a6509a770a876e36552ad8dd06";
|
|
830
831
|
function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
831
832
|
const v_error = (() => {
|
|
@@ -1165,19 +1166,19 @@ function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1165
1166
|
return v_error === undefined ? null : v_error;
|
|
1166
1167
|
}
|
|
1167
1168
|
const RepresentationType$e = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1168
|
-
function keyBuilder$
|
|
1169
|
+
function keyBuilder$z(luvio, config) {
|
|
1169
1170
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.id;
|
|
1170
1171
|
}
|
|
1171
1172
|
function keyBuilderFromType$7(luvio, object) {
|
|
1172
1173
|
const keyParams = {
|
|
1173
1174
|
id: object.id
|
|
1174
1175
|
};
|
|
1175
|
-
return keyBuilder$
|
|
1176
|
+
return keyBuilder$z(luvio, keyParams);
|
|
1176
1177
|
}
|
|
1177
1178
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
1178
1179
|
return input;
|
|
1179
1180
|
}
|
|
1180
|
-
const select$
|
|
1181
|
+
const select$D = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1181
1182
|
return {
|
|
1182
1183
|
kind: 'Fragment',
|
|
1183
1184
|
version: VERSION$i,
|
|
@@ -1341,7 +1342,7 @@ const ingest$e = function SlackBridgeConversationInfoOutputRepresentationIngest(
|
|
|
1341
1342
|
}
|
|
1342
1343
|
}
|
|
1343
1344
|
const key = keyBuilderFromType$7(luvio, input);
|
|
1344
|
-
const ttlToUse =
|
|
1345
|
+
const ttlToUse = TTL$3;
|
|
1345
1346
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SlackBridge", VERSION$i, RepresentationType$e, equals$i);
|
|
1346
1347
|
return createLink(key);
|
|
1347
1348
|
};
|
|
@@ -1374,7 +1375,7 @@ function validate$h(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1374
1375
|
})();
|
|
1375
1376
|
return v_error === undefined ? null : v_error;
|
|
1376
1377
|
}
|
|
1377
|
-
const select$
|
|
1378
|
+
const select$C = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1378
1379
|
return {
|
|
1379
1380
|
kind: 'Fragment',
|
|
1380
1381
|
version: VERSION$h,
|
|
@@ -1489,8 +1490,8 @@ function validate$g(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1489
1490
|
})();
|
|
1490
1491
|
return v_error === undefined ? null : v_error;
|
|
1491
1492
|
}
|
|
1492
|
-
const select$
|
|
1493
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1493
|
+
const select$B = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1494
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$C();
|
|
1494
1495
|
return {
|
|
1495
1496
|
kind: 'Fragment',
|
|
1496
1497
|
version: VERSION$g,
|
|
@@ -1602,9 +1603,9 @@ function validate$f(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1602
1603
|
})();
|
|
1603
1604
|
return v_error === undefined ? null : v_error;
|
|
1604
1605
|
}
|
|
1605
|
-
const select$
|
|
1606
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1607
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
1606
|
+
const select$A = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
1607
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$C();
|
|
1608
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$B();
|
|
1608
1609
|
return {
|
|
1609
1610
|
kind: 'Fragment',
|
|
1610
1611
|
version: VERSION$f,
|
|
@@ -1837,20 +1838,20 @@ function validate$e(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1837
1838
|
return v_error === undefined ? null : v_error;
|
|
1838
1839
|
}
|
|
1839
1840
|
const RepresentationType$d = 'SlackBridgeFileOutputRepresentation';
|
|
1840
|
-
function keyBuilder$
|
|
1841
|
+
function keyBuilder$y(luvio, config) {
|
|
1841
1842
|
return keyPrefix + '::' + RepresentationType$d + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
1842
1843
|
}
|
|
1843
1844
|
function keyBuilderFromType$6(luvio, object) {
|
|
1844
1845
|
const keyParams = {
|
|
1845
1846
|
uniqueKey: object.uniqueKey
|
|
1846
1847
|
};
|
|
1847
|
-
return keyBuilder$
|
|
1848
|
+
return keyBuilder$y(luvio, keyParams);
|
|
1848
1849
|
}
|
|
1849
1850
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1850
1851
|
return input;
|
|
1851
1852
|
}
|
|
1852
|
-
const select$
|
|
1853
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
1853
|
+
const select$z = function SlackBridgeFileOutputRepresentationSelect() {
|
|
1854
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$A();
|
|
1854
1855
|
return {
|
|
1855
1856
|
kind: 'Fragment',
|
|
1856
1857
|
version: VERSION$e,
|
|
@@ -2383,8 +2384,8 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
2383
2384
|
}
|
|
2384
2385
|
return input;
|
|
2385
2386
|
}
|
|
2386
|
-
const select$
|
|
2387
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2387
|
+
const select$y = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2388
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$F();
|
|
2388
2389
|
return {
|
|
2389
2390
|
kind: 'Fragment',
|
|
2390
2391
|
version: VERSION$d,
|
|
@@ -2408,7 +2409,7 @@ const select$w = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2408
2409
|
name: 'files',
|
|
2409
2410
|
kind: 'Link',
|
|
2410
2411
|
plural: true,
|
|
2411
|
-
fragment: select$
|
|
2412
|
+
fragment: select$z()
|
|
2412
2413
|
},
|
|
2413
2414
|
{
|
|
2414
2415
|
name: 'includesCustomEmoji',
|
|
@@ -2719,7 +2720,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
2719
2720
|
}
|
|
2720
2721
|
return input;
|
|
2721
2722
|
}
|
|
2722
|
-
const select$
|
|
2723
|
+
const select$x = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
2723
2724
|
return {
|
|
2724
2725
|
kind: 'Fragment',
|
|
2725
2726
|
version: VERSION$c,
|
|
@@ -2729,13 +2730,13 @@ const select$v = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
2729
2730
|
name: 'conversations',
|
|
2730
2731
|
kind: 'Link',
|
|
2731
2732
|
plural: true,
|
|
2732
|
-
fragment: select$
|
|
2733
|
+
fragment: select$D()
|
|
2733
2734
|
},
|
|
2734
2735
|
{
|
|
2735
2736
|
name: 'messages',
|
|
2736
2737
|
kind: 'Link',
|
|
2737
2738
|
plural: true,
|
|
2738
|
-
fragment: select$
|
|
2739
|
+
fragment: select$y()
|
|
2739
2740
|
},
|
|
2740
2741
|
{
|
|
2741
2742
|
name: 'teamId',
|
|
@@ -2802,22 +2803,22 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2802
2803
|
}
|
|
2803
2804
|
}
|
|
2804
2805
|
|
|
2805
|
-
function select$
|
|
2806
|
-
return select$
|
|
2806
|
+
function select$w(luvio, params) {
|
|
2807
|
+
return select$x();
|
|
2807
2808
|
}
|
|
2808
|
-
function keyBuilder$
|
|
2809
|
+
function keyBuilder$x(luvio, params) {
|
|
2809
2810
|
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
2810
2811
|
}
|
|
2811
|
-
function getResponseCacheKeys$
|
|
2812
|
-
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2812
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
2813
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
2813
2814
|
}
|
|
2814
|
-
function ingestSuccess$
|
|
2815
|
+
function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
|
|
2815
2816
|
const { body } = response;
|
|
2816
|
-
const key = keyBuilder$
|
|
2817
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
2817
2818
|
luvio.storeIngest(key, ingest$b, body);
|
|
2818
2819
|
const snapshot = luvio.storeLookup({
|
|
2819
2820
|
recordId: key,
|
|
2820
|
-
node: select$
|
|
2821
|
+
node: select$w(),
|
|
2821
2822
|
variables: {},
|
|
2822
2823
|
}, snapshotRefresh);
|
|
2823
2824
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2828,8 +2829,8 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2828
2829
|
deepFreeze(snapshot.data);
|
|
2829
2830
|
return snapshot;
|
|
2830
2831
|
}
|
|
2831
|
-
function ingestError$
|
|
2832
|
-
const key = keyBuilder$
|
|
2832
|
+
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
2833
|
+
const key = keyBuilder$x(luvio, params);
|
|
2833
2834
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2834
2835
|
const storeMetadataParams = {
|
|
2835
2836
|
ttl: TTL$2,
|
|
@@ -2840,7 +2841,7 @@ function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
|
2840
2841
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2841
2842
|
return errorSnapshot;
|
|
2842
2843
|
}
|
|
2843
|
-
function createResourceRequest$
|
|
2844
|
+
function createResourceRequest$k(config) {
|
|
2844
2845
|
const headers = {};
|
|
2845
2846
|
return {
|
|
2846
2847
|
baseUri: '/services/data/v63.0',
|
|
@@ -2854,90 +2855,90 @@ function createResourceRequest$i(config) {
|
|
|
2854
2855
|
};
|
|
2855
2856
|
}
|
|
2856
2857
|
|
|
2857
|
-
const adapterName$
|
|
2858
|
+
const adapterName$k = 'getRelatedThreads';
|
|
2858
2859
|
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
2859
2860
|
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2860
2861
|
];
|
|
2861
|
-
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2862
|
-
const createResourceParams$
|
|
2863
|
-
function keyBuilder$
|
|
2864
|
-
const resourceParams = createResourceParams$
|
|
2865
|
-
return keyBuilder$
|
|
2862
|
+
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getRelatedThreads_ConfigPropertyMetadata);
|
|
2863
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$o(getRelatedThreads_ConfigPropertyMetadata);
|
|
2864
|
+
function keyBuilder$w(luvio, config) {
|
|
2865
|
+
const resourceParams = createResourceParams$k(config);
|
|
2866
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
2866
2867
|
}
|
|
2867
|
-
function typeCheckConfig$
|
|
2868
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
2868
2869
|
const config = {};
|
|
2869
|
-
typeCheckConfig$
|
|
2870
|
+
typeCheckConfig$o(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
2870
2871
|
return config;
|
|
2871
2872
|
}
|
|
2872
|
-
function validateAdapterConfig$
|
|
2873
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
2873
2874
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2874
2875
|
return null;
|
|
2875
2876
|
}
|
|
2876
2877
|
if (process.env.NODE_ENV !== 'production') {
|
|
2877
2878
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2878
2879
|
}
|
|
2879
|
-
const config = typeCheckConfig$
|
|
2880
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
2880
2881
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2881
2882
|
return null;
|
|
2882
2883
|
}
|
|
2883
2884
|
return config;
|
|
2884
2885
|
}
|
|
2885
|
-
function adapterFragment$
|
|
2886
|
-
createResourceParams$
|
|
2887
|
-
return select$
|
|
2886
|
+
function adapterFragment$d(luvio, config) {
|
|
2887
|
+
createResourceParams$k(config);
|
|
2888
|
+
return select$w();
|
|
2888
2889
|
}
|
|
2889
|
-
function onFetchResponseSuccess$
|
|
2890
|
-
const snapshot = ingestSuccess$
|
|
2890
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
2891
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
2891
2892
|
config,
|
|
2892
|
-
resolve: () => buildNetworkSnapshot$
|
|
2893
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2893
2894
|
});
|
|
2894
2895
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2895
2896
|
}
|
|
2896
|
-
function onFetchResponseError$
|
|
2897
|
-
const snapshot = ingestError$
|
|
2897
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
2898
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
2898
2899
|
config,
|
|
2899
|
-
resolve: () => buildNetworkSnapshot$
|
|
2900
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2900
2901
|
});
|
|
2901
2902
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2902
2903
|
}
|
|
2903
|
-
function buildNetworkSnapshot$
|
|
2904
|
-
const resourceParams = createResourceParams$
|
|
2905
|
-
const request = createResourceRequest$
|
|
2904
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
2905
|
+
const resourceParams = createResourceParams$k(config);
|
|
2906
|
+
const request = createResourceRequest$k(resourceParams);
|
|
2906
2907
|
return luvio.dispatchResourceRequest(request, options)
|
|
2907
2908
|
.then((response) => {
|
|
2908
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2909
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
2909
2910
|
const cache = new StoreKeyMap();
|
|
2910
|
-
getResponseCacheKeys$
|
|
2911
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
2911
2912
|
return cache;
|
|
2912
2913
|
});
|
|
2913
2914
|
}, (response) => {
|
|
2914
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2915
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
2915
2916
|
});
|
|
2916
2917
|
}
|
|
2917
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2918
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2918
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
2919
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
2919
2920
|
}
|
|
2920
|
-
function buildCachedSnapshotCachePolicy$
|
|
2921
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
2921
2922
|
const { luvio, config } = context;
|
|
2922
2923
|
const selector = {
|
|
2923
|
-
recordId: keyBuilder$
|
|
2924
|
-
node: adapterFragment$
|
|
2924
|
+
recordId: keyBuilder$w(luvio, config),
|
|
2925
|
+
node: adapterFragment$d(luvio, config),
|
|
2925
2926
|
variables: {},
|
|
2926
2927
|
};
|
|
2927
2928
|
const cacheSnapshot = storeLookup(selector, {
|
|
2928
2929
|
config,
|
|
2929
|
-
resolve: () => buildNetworkSnapshot$
|
|
2930
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2930
2931
|
});
|
|
2931
2932
|
return cacheSnapshot;
|
|
2932
2933
|
}
|
|
2933
2934
|
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
2934
|
-
const config = validateAdapterConfig$
|
|
2935
|
+
const config = validateAdapterConfig$k(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
2935
2936
|
// Invalid or incomplete config
|
|
2936
2937
|
if (config === null) {
|
|
2937
2938
|
return null;
|
|
2938
2939
|
}
|
|
2939
2940
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2940
|
-
buildCachedSnapshotCachePolicy$
|
|
2941
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
2941
2942
|
};
|
|
2942
2943
|
|
|
2943
2944
|
const VERSION$b = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
@@ -3027,7 +3028,7 @@ function validate$b(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
3027
3028
|
})();
|
|
3028
3029
|
return v_error === undefined ? null : v_error;
|
|
3029
3030
|
}
|
|
3030
|
-
const select$
|
|
3031
|
+
const select$v = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
3031
3032
|
return {
|
|
3032
3033
|
kind: 'Fragment',
|
|
3033
3034
|
version: VERSION$b,
|
|
@@ -3216,20 +3217,20 @@ function validate$a(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
3216
3217
|
return v_error === undefined ? null : v_error;
|
|
3217
3218
|
}
|
|
3218
3219
|
const RepresentationType$a = 'SlackBridgeEmojiOutputRepresentation';
|
|
3219
|
-
function keyBuilder$
|
|
3220
|
+
function keyBuilder$v(luvio, config) {
|
|
3220
3221
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
3221
3222
|
}
|
|
3222
3223
|
function keyBuilderFromType$5(luvio, object) {
|
|
3223
3224
|
const keyParams = {
|
|
3224
3225
|
name: object.name
|
|
3225
3226
|
};
|
|
3226
|
-
return keyBuilder$
|
|
3227
|
+
return keyBuilder$v(luvio, keyParams);
|
|
3227
3228
|
}
|
|
3228
3229
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3229
3230
|
return input;
|
|
3230
3231
|
}
|
|
3231
|
-
const select$
|
|
3232
|
-
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$
|
|
3232
|
+
const select$u = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
3233
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$v();
|
|
3233
3234
|
return {
|
|
3234
3235
|
kind: 'Fragment',
|
|
3235
3236
|
version: VERSION$a,
|
|
@@ -3322,8 +3323,8 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3322
3323
|
});
|
|
3323
3324
|
}
|
|
3324
3325
|
|
|
3325
|
-
const TTL =
|
|
3326
|
-
const VERSION$9 = "
|
|
3326
|
+
const TTL = 900000;
|
|
3327
|
+
const VERSION$9 = "90811622b2f6ba9d9a4525dd179a478a";
|
|
3327
3328
|
function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
3328
3329
|
const v_error = (() => {
|
|
3329
3330
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3695,8 +3696,29 @@ function validate$9(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';
|
|
@@ -3812,15 +3834,14 @@ function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
3812
3834
|
return v_error === undefined ? null : v_error;
|
|
3813
3835
|
}
|
|
3814
3836
|
const RepresentationType$9 = 'SlackBridgeUserInfoOutputRepresentation';
|
|
3815
|
-
function keyBuilder$
|
|
3816
|
-
return keyPrefix + '::' + RepresentationType$9 + ':' + config.
|
|
3837
|
+
function keyBuilder$u(luvio, config) {
|
|
3838
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.slackUserId;
|
|
3817
3839
|
}
|
|
3818
3840
|
function keyBuilderFromType$4(luvio, object) {
|
|
3819
3841
|
const keyParams = {
|
|
3820
|
-
teamId: object.teamId,
|
|
3821
3842
|
slackUserId: object.slackUserId
|
|
3822
3843
|
};
|
|
3823
|
-
return keyBuilder$
|
|
3844
|
+
return keyBuilder$u(luvio, keyParams);
|
|
3824
3845
|
}
|
|
3825
3846
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
3826
3847
|
const input_statusEmoji = input.statusEmoji;
|
|
@@ -3839,7 +3860,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
3839
3860
|
}
|
|
3840
3861
|
return input;
|
|
3841
3862
|
}
|
|
3842
|
-
const select$
|
|
3863
|
+
const select$t = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
3843
3864
|
return {
|
|
3844
3865
|
kind: 'Fragment',
|
|
3845
3866
|
version: VERSION$9,
|
|
@@ -3912,7 +3933,7 @@ const select$r = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
3912
3933
|
name: 'statusEmoji',
|
|
3913
3934
|
kind: 'Link',
|
|
3914
3935
|
nullable: true,
|
|
3915
|
-
fragment: select$
|
|
3936
|
+
fragment: select$u()
|
|
3916
3937
|
},
|
|
3917
3938
|
{
|
|
3918
3939
|
name: 'statusMessage',
|
|
@@ -3973,11 +3994,6 @@ function equals$9(existing, incoming) {
|
|
|
3973
3994
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
3974
3995
|
return false;
|
|
3975
3996
|
}
|
|
3976
|
-
const existing_teamId = existing.teamId;
|
|
3977
|
-
const incoming_teamId = incoming.teamId;
|
|
3978
|
-
if (!(existing_teamId === incoming_teamId)) {
|
|
3979
|
-
return false;
|
|
3980
|
-
}
|
|
3981
3997
|
const existing_displayName = existing.displayName;
|
|
3982
3998
|
const incoming_displayName = incoming.displayName;
|
|
3983
3999
|
if (!(existing_displayName === incoming_displayName)) {
|
|
@@ -4064,6 +4080,11 @@ function equals$9(existing, incoming) {
|
|
|
4064
4080
|
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
4065
4081
|
return false;
|
|
4066
4082
|
}
|
|
4083
|
+
const existing_teamId = existing.teamId;
|
|
4084
|
+
const incoming_teamId = incoming.teamId;
|
|
4085
|
+
if (!(existing_teamId === incoming_teamId)) {
|
|
4086
|
+
return false;
|
|
4087
|
+
}
|
|
4067
4088
|
const existing_title = existing.title;
|
|
4068
4089
|
const incoming_title = incoming.title;
|
|
4069
4090
|
if (!(existing_title === incoming_title)) {
|
|
@@ -4207,7 +4228,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4207
4228
|
}
|
|
4208
4229
|
return input;
|
|
4209
4230
|
}
|
|
4210
|
-
const select$
|
|
4231
|
+
const select$s = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
4211
4232
|
return {
|
|
4212
4233
|
kind: 'Fragment',
|
|
4213
4234
|
version: VERSION$8,
|
|
@@ -4221,7 +4242,7 @@ const select$q = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
4221
4242
|
name: 'messages',
|
|
4222
4243
|
kind: 'Link',
|
|
4223
4244
|
plural: true,
|
|
4224
|
-
fragment: select$
|
|
4245
|
+
fragment: select$y()
|
|
4225
4246
|
},
|
|
4226
4247
|
{
|
|
4227
4248
|
name: 'nextCursor',
|
|
@@ -4279,7 +4300,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4279
4300
|
}
|
|
4280
4301
|
}
|
|
4281
4302
|
|
|
4282
|
-
const VERSION$7 = "
|
|
4303
|
+
const VERSION$7 = "1119f2c416d047eefd8303c5a2d590ae";
|
|
4283
4304
|
function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
4284
4305
|
const v_error = (() => {
|
|
4285
4306
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4347,6 +4368,30 @@ function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
4347
4368
|
message += '\n' + obj_conversationInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4348
4369
|
return new TypeError(message);
|
|
4349
4370
|
}
|
|
4371
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
4372
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
4373
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
4374
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
4375
|
+
}
|
|
4376
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
4377
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
4378
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
4379
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
4380
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
4381
|
+
}
|
|
4382
|
+
}
|
|
4383
|
+
const obj_emojis = obj.emojis;
|
|
4384
|
+
const path_emojis = path + '.emojis';
|
|
4385
|
+
if (!ArrayIsArray(obj_emojis)) {
|
|
4386
|
+
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
4387
|
+
}
|
|
4388
|
+
for (let i = 0; i < obj_emojis.length; i++) {
|
|
4389
|
+
const obj_emojis_item = obj_emojis[i];
|
|
4390
|
+
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
4391
|
+
if (typeof obj_emojis_item !== 'object') {
|
|
4392
|
+
return new TypeError('Expected "object" but received "' + typeof obj_emojis_item + '" (at "' + path_emojis_item + '")');
|
|
4393
|
+
}
|
|
4394
|
+
}
|
|
4350
4395
|
const obj_history = obj.history;
|
|
4351
4396
|
const path_history = path + '.history';
|
|
4352
4397
|
if (typeof obj_history !== 'object') {
|
|
@@ -4454,6 +4499,38 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4454
4499
|
ttl: path.ttl
|
|
4455
4500
|
}, luvio, store, timestamp);
|
|
4456
4501
|
}
|
|
4502
|
+
const input_conversationInfos = input.conversationInfos;
|
|
4503
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
4504
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
4505
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
4506
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
4507
|
+
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
4508
|
+
fullPath: input_conversationInfos_item_id,
|
|
4509
|
+
propertyName: i,
|
|
4510
|
+
parent: {
|
|
4511
|
+
data: input,
|
|
4512
|
+
key: path.fullPath,
|
|
4513
|
+
existing: existing,
|
|
4514
|
+
},
|
|
4515
|
+
ttl: path.ttl
|
|
4516
|
+
}, luvio, store, timestamp);
|
|
4517
|
+
}
|
|
4518
|
+
const input_emojis = input.emojis;
|
|
4519
|
+
const input_emojis_id = path.fullPath + '__emojis';
|
|
4520
|
+
for (let i = 0; i < input_emojis.length; i++) {
|
|
4521
|
+
const input_emojis_item = input_emojis[i];
|
|
4522
|
+
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
4523
|
+
input_emojis[i] = ingest$a(input_emojis_item, {
|
|
4524
|
+
fullPath: input_emojis_item_id,
|
|
4525
|
+
propertyName: i,
|
|
4526
|
+
parent: {
|
|
4527
|
+
data: input,
|
|
4528
|
+
key: path.fullPath,
|
|
4529
|
+
existing: existing,
|
|
4530
|
+
},
|
|
4531
|
+
ttl: path.ttl
|
|
4532
|
+
}, luvio, store, timestamp);
|
|
4533
|
+
}
|
|
4457
4534
|
const input_history = input.history;
|
|
4458
4535
|
const input_history_id = path.fullPath + '__history';
|
|
4459
4536
|
input.history = ingest$8(input_history, {
|
|
@@ -4484,7 +4561,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4484
4561
|
}
|
|
4485
4562
|
return input;
|
|
4486
4563
|
}
|
|
4487
|
-
const select$
|
|
4564
|
+
const select$r = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
4488
4565
|
return {
|
|
4489
4566
|
kind: 'Fragment',
|
|
4490
4567
|
version: VERSION$7,
|
|
@@ -4502,18 +4579,30 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4502
4579
|
name: 'contextUserInfo',
|
|
4503
4580
|
kind: 'Link',
|
|
4504
4581
|
nullable: true,
|
|
4505
|
-
fragment: select$
|
|
4582
|
+
fragment: select$t()
|
|
4506
4583
|
},
|
|
4507
4584
|
{
|
|
4508
4585
|
name: 'conversationInfo',
|
|
4509
4586
|
kind: 'Link',
|
|
4510
4587
|
nullable: true,
|
|
4511
|
-
fragment: select$
|
|
4588
|
+
fragment: select$D()
|
|
4589
|
+
},
|
|
4590
|
+
{
|
|
4591
|
+
name: 'conversationInfos',
|
|
4592
|
+
kind: 'Link',
|
|
4593
|
+
plural: true,
|
|
4594
|
+
fragment: select$D()
|
|
4595
|
+
},
|
|
4596
|
+
{
|
|
4597
|
+
name: 'emojis',
|
|
4598
|
+
kind: 'Link',
|
|
4599
|
+
plural: true,
|
|
4600
|
+
fragment: select$u()
|
|
4512
4601
|
},
|
|
4513
4602
|
{
|
|
4514
4603
|
name: 'history',
|
|
4515
4604
|
kind: 'Link',
|
|
4516
|
-
fragment: select$
|
|
4605
|
+
fragment: select$s()
|
|
4517
4606
|
},
|
|
4518
4607
|
{
|
|
4519
4608
|
name: 'teamId',
|
|
@@ -4527,7 +4616,7 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4527
4616
|
name: 'userInfos',
|
|
4528
4617
|
kind: 'Link',
|
|
4529
4618
|
plural: true,
|
|
4530
|
-
fragment: select$
|
|
4619
|
+
fragment: select$t()
|
|
4531
4620
|
},
|
|
4532
4621
|
{
|
|
4533
4622
|
name: 'websocketUrl',
|
|
@@ -4572,6 +4661,26 @@ function equals$7(existing, incoming) {
|
|
|
4572
4661
|
existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
|
|
4573
4662
|
return false;
|
|
4574
4663
|
}
|
|
4664
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
4665
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
4666
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
4667
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
4668
|
+
return false;
|
|
4669
|
+
}
|
|
4670
|
+
});
|
|
4671
|
+
if (equals_conversationInfos_items === false) {
|
|
4672
|
+
return false;
|
|
4673
|
+
}
|
|
4674
|
+
const existing_emojis = existing.emojis;
|
|
4675
|
+
const incoming_emojis = incoming.emojis;
|
|
4676
|
+
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
4677
|
+
if (!(existing_emojis_item.__ref === incoming_emojis_item.__ref)) {
|
|
4678
|
+
return false;
|
|
4679
|
+
}
|
|
4680
|
+
});
|
|
4681
|
+
if (equals_emojis_items === false) {
|
|
4682
|
+
return false;
|
|
4683
|
+
}
|
|
4575
4684
|
const existing_history = existing.history;
|
|
4576
4685
|
const incoming_history = incoming.history;
|
|
4577
4686
|
if (!(existing_history.__ref === incoming_history.__ref)) {
|
|
@@ -4625,6 +4734,14 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4625
4734
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
4626
4735
|
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
4627
4736
|
}
|
|
4737
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
4738
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
4739
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
4740
|
+
}
|
|
4741
|
+
const input_emojis_length = input.emojis.length;
|
|
4742
|
+
for (let i = 0; i < input_emojis_length; i++) {
|
|
4743
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.emojis[i]);
|
|
4744
|
+
}
|
|
4628
4745
|
getTypeCacheKeys$8(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
4629
4746
|
const input_userInfos_length = input.userInfos.length;
|
|
4630
4747
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
@@ -4632,22 +4749,22 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4632
4749
|
}
|
|
4633
4750
|
}
|
|
4634
4751
|
|
|
4635
|
-
function select$
|
|
4636
|
-
return select$
|
|
4752
|
+
function select$q(luvio, params) {
|
|
4753
|
+
return select$r();
|
|
4637
4754
|
}
|
|
4638
|
-
function keyBuilder$
|
|
4755
|
+
function keyBuilder$t(luvio, params) {
|
|
4639
4756
|
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
4640
4757
|
}
|
|
4641
|
-
function getResponseCacheKeys$
|
|
4642
|
-
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4758
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4759
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
4643
4760
|
}
|
|
4644
|
-
function ingestSuccess$
|
|
4761
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
4645
4762
|
const { body } = response;
|
|
4646
|
-
const key = keyBuilder$
|
|
4763
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
4647
4764
|
luvio.storeIngest(key, ingest$7, body);
|
|
4648
4765
|
const snapshot = luvio.storeLookup({
|
|
4649
4766
|
recordId: key,
|
|
4650
|
-
node: select$
|
|
4767
|
+
node: select$q(),
|
|
4651
4768
|
variables: {},
|
|
4652
4769
|
}, snapshotRefresh);
|
|
4653
4770
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4658,13 +4775,13 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4658
4775
|
deepFreeze(snapshot.data);
|
|
4659
4776
|
return snapshot;
|
|
4660
4777
|
}
|
|
4661
|
-
function ingestError$
|
|
4662
|
-
const key = keyBuilder$
|
|
4778
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4779
|
+
const key = keyBuilder$t(luvio, params);
|
|
4663
4780
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4664
4781
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4665
4782
|
return errorSnapshot;
|
|
4666
4783
|
}
|
|
4667
|
-
function createResourceRequest$
|
|
4784
|
+
function createResourceRequest$j(config) {
|
|
4668
4785
|
const headers = {};
|
|
4669
4786
|
return {
|
|
4670
4787
|
baseUri: '/services/data/v63.0',
|
|
@@ -4678,7 +4795,7 @@ function createResourceRequest$h(config) {
|
|
|
4678
4795
|
};
|
|
4679
4796
|
}
|
|
4680
4797
|
|
|
4681
|
-
const adapterName$
|
|
4798
|
+
const adapterName$j = 'getSlackConversation';
|
|
4682
4799
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
4683
4800
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4684
4801
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -4690,49 +4807,494 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
4690
4807
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4691
4808
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4692
4809
|
];
|
|
4693
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4694
|
-
const createResourceParams$
|
|
4695
|
-
function keyBuilder$
|
|
4696
|
-
const resourceParams = createResourceParams$
|
|
4697
|
-
return keyBuilder$
|
|
4810
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getSlackConversation_ConfigPropertyMetadata);
|
|
4811
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$o(getSlackConversation_ConfigPropertyMetadata);
|
|
4812
|
+
function keyBuilder$s(luvio, config) {
|
|
4813
|
+
const resourceParams = createResourceParams$j(config);
|
|
4814
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
4698
4815
|
}
|
|
4699
|
-
function typeCheckConfig$
|
|
4816
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4700
4817
|
const config = {};
|
|
4701
|
-
typeCheckConfig$
|
|
4818
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
4702
4819
|
return config;
|
|
4703
4820
|
}
|
|
4704
|
-
function validateAdapterConfig$
|
|
4821
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4705
4822
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4706
4823
|
return null;
|
|
4707
4824
|
}
|
|
4708
4825
|
if (process.env.NODE_ENV !== 'production') {
|
|
4709
4826
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4710
4827
|
}
|
|
4711
|
-
const config = typeCheckConfig$
|
|
4828
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4712
4829
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4713
4830
|
return null;
|
|
4714
4831
|
}
|
|
4715
4832
|
return config;
|
|
4716
4833
|
}
|
|
4717
|
-
function adapterFragment$
|
|
4718
|
-
createResourceParams$
|
|
4719
|
-
return select$
|
|
4834
|
+
function adapterFragment$c(luvio, config) {
|
|
4835
|
+
createResourceParams$j(config);
|
|
4836
|
+
return select$q();
|
|
4720
4837
|
}
|
|
4721
|
-
function onFetchResponseSuccess$
|
|
4722
|
-
const snapshot = ingestSuccess$
|
|
4838
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4839
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
4723
4840
|
config,
|
|
4724
|
-
resolve: () => buildNetworkSnapshot$
|
|
4841
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4725
4842
|
});
|
|
4726
4843
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4727
4844
|
}
|
|
4728
|
-
function onFetchResponseError$
|
|
4729
|
-
const snapshot = ingestError$
|
|
4845
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4846
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4730
4847
|
config,
|
|
4731
|
-
resolve: () => buildNetworkSnapshot$
|
|
4848
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4732
4849
|
});
|
|
4733
4850
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4734
4851
|
}
|
|
4735
|
-
function buildNetworkSnapshot$
|
|
4852
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4853
|
+
const resourceParams = createResourceParams$j(config);
|
|
4854
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4855
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4856
|
+
.then((response) => {
|
|
4857
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4858
|
+
const cache = new StoreKeyMap();
|
|
4859
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4860
|
+
return cache;
|
|
4861
|
+
});
|
|
4862
|
+
}, (response) => {
|
|
4863
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4864
|
+
});
|
|
4865
|
+
}
|
|
4866
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4867
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
4868
|
+
}
|
|
4869
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4870
|
+
const { luvio, config } = context;
|
|
4871
|
+
const selector = {
|
|
4872
|
+
recordId: keyBuilder$s(luvio, config),
|
|
4873
|
+
node: adapterFragment$c(luvio, config),
|
|
4874
|
+
variables: {},
|
|
4875
|
+
};
|
|
4876
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4877
|
+
config,
|
|
4878
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4879
|
+
});
|
|
4880
|
+
return cacheSnapshot;
|
|
4881
|
+
}
|
|
4882
|
+
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
4883
|
+
const config = validateAdapterConfig$j(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
4884
|
+
// Invalid or incomplete config
|
|
4885
|
+
if (config === null) {
|
|
4886
|
+
return null;
|
|
4887
|
+
}
|
|
4888
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4889
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4890
|
+
};
|
|
4891
|
+
|
|
4892
|
+
function select$p(luvio, params) {
|
|
4893
|
+
return select$D();
|
|
4894
|
+
}
|
|
4895
|
+
function keyBuilder$r(luvio, params) {
|
|
4896
|
+
return keyBuilder$z(luvio, {
|
|
4897
|
+
id: params.urlParams.channelId
|
|
4898
|
+
});
|
|
4899
|
+
}
|
|
4900
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4901
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
4902
|
+
}
|
|
4903
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
4904
|
+
const { body } = response;
|
|
4905
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
4906
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
4907
|
+
const snapshot = luvio.storeLookup({
|
|
4908
|
+
recordId: key,
|
|
4909
|
+
node: select$p(),
|
|
4910
|
+
variables: {},
|
|
4911
|
+
}, snapshotRefresh);
|
|
4912
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4913
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4914
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4915
|
+
}
|
|
4916
|
+
}
|
|
4917
|
+
deepFreeze(snapshot.data);
|
|
4918
|
+
return snapshot;
|
|
4919
|
+
}
|
|
4920
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
4921
|
+
const key = keyBuilder$r(luvio, params);
|
|
4922
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4923
|
+
const storeMetadataParams = {
|
|
4924
|
+
ttl: TTL$3,
|
|
4925
|
+
namespace: keyPrefix,
|
|
4926
|
+
version: VERSION$i,
|
|
4927
|
+
representationName: RepresentationType$e
|
|
4928
|
+
};
|
|
4929
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4930
|
+
return errorSnapshot;
|
|
4931
|
+
}
|
|
4932
|
+
function createResourceRequest$i(config) {
|
|
4933
|
+
const headers = {};
|
|
4934
|
+
return {
|
|
4935
|
+
baseUri: '/services/data/v63.0',
|
|
4936
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels/' + config.urlParams.channelId + '',
|
|
4937
|
+
method: 'get',
|
|
4938
|
+
body: null,
|
|
4939
|
+
urlParams: config.urlParams,
|
|
4940
|
+
queryParams: {},
|
|
4941
|
+
headers,
|
|
4942
|
+
priority: 'normal',
|
|
4943
|
+
};
|
|
4944
|
+
}
|
|
4945
|
+
function createResourceRequestFromRepresentation$6(representation) {
|
|
4946
|
+
const config = {
|
|
4947
|
+
urlParams: {},
|
|
4948
|
+
};
|
|
4949
|
+
config.urlParams.channelId = representation.id;
|
|
4950
|
+
return createResourceRequest$i(config);
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
const adapterName$i = 'getSlackConversationInfo';
|
|
4954
|
+
const getSlackConversationInfo_ConfigPropertyMetadata = [
|
|
4955
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4956
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4957
|
+
];
|
|
4958
|
+
const getSlackConversationInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4959
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4960
|
+
function keyBuilder$q(luvio, config) {
|
|
4961
|
+
const resourceParams = createResourceParams$i(config);
|
|
4962
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
4963
|
+
}
|
|
4964
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4965
|
+
const config = {};
|
|
4966
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4967
|
+
return config;
|
|
4968
|
+
}
|
|
4969
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4970
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4971
|
+
return null;
|
|
4972
|
+
}
|
|
4973
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4974
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4975
|
+
}
|
|
4976
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
4977
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4978
|
+
return null;
|
|
4979
|
+
}
|
|
4980
|
+
return config;
|
|
4981
|
+
}
|
|
4982
|
+
function adapterFragment$b(luvio, config) {
|
|
4983
|
+
createResourceParams$i(config);
|
|
4984
|
+
return select$p();
|
|
4985
|
+
}
|
|
4986
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
4987
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
4988
|
+
config,
|
|
4989
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4990
|
+
});
|
|
4991
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4992
|
+
}
|
|
4993
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
4994
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4995
|
+
config,
|
|
4996
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4997
|
+
});
|
|
4998
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4999
|
+
}
|
|
5000
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
5001
|
+
const resourceParams = createResourceParams$i(config);
|
|
5002
|
+
const request = createResourceRequest$i(resourceParams);
|
|
5003
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5004
|
+
.then((response) => {
|
|
5005
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
5006
|
+
const cache = new StoreKeyMap();
|
|
5007
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
5008
|
+
return cache;
|
|
5009
|
+
});
|
|
5010
|
+
}, (response) => {
|
|
5011
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
5012
|
+
});
|
|
5013
|
+
}
|
|
5014
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
5015
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
5016
|
+
}
|
|
5017
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
5018
|
+
const { luvio, config } = context;
|
|
5019
|
+
const selector = {
|
|
5020
|
+
recordId: keyBuilder$q(luvio, config),
|
|
5021
|
+
node: adapterFragment$b(luvio, config),
|
|
5022
|
+
variables: {},
|
|
5023
|
+
};
|
|
5024
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5025
|
+
config,
|
|
5026
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
5027
|
+
});
|
|
5028
|
+
return cacheSnapshot;
|
|
5029
|
+
}
|
|
5030
|
+
const getSlackConversationInfoAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfo(untrustedConfig, requestContext) {
|
|
5031
|
+
const config = validateAdapterConfig$i(untrustedConfig, getSlackConversationInfo_ConfigPropertyNames);
|
|
5032
|
+
// Invalid or incomplete config
|
|
5033
|
+
if (config === null) {
|
|
5034
|
+
return null;
|
|
5035
|
+
}
|
|
5036
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5037
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
5038
|
+
};
|
|
5039
|
+
const notifyChangeFactory$6 = (luvio, options) => {
|
|
5040
|
+
return function getConnectSlackbridgeTeamChannelsByChannelIdAndTeamIdNotifyChange(configs) {
|
|
5041
|
+
const keys = configs.map(c => keyBuilder$z(luvio, c));
|
|
5042
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5043
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5044
|
+
const { key, record: val } = entries[i];
|
|
5045
|
+
const refreshRequest = createResourceRequestFromRepresentation$6(val);
|
|
5046
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
5047
|
+
.then((response) => {
|
|
5048
|
+
return luvio.handleSuccessResponse(() => {
|
|
5049
|
+
const { body } = response;
|
|
5050
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
5051
|
+
return luvio.storeBroadcast();
|
|
5052
|
+
}, () => {
|
|
5053
|
+
const cache = new StoreKeyMap();
|
|
5054
|
+
getTypeCacheKeys$e(cache, luvio, response.body);
|
|
5055
|
+
return cache;
|
|
5056
|
+
});
|
|
5057
|
+
}, (error) => {
|
|
5058
|
+
return luvio.handleErrorResponse(() => {
|
|
5059
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
5060
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
5061
|
+
ttl: TTL$3,
|
|
5062
|
+
namespace: keyPrefix,
|
|
5063
|
+
version: VERSION$i,
|
|
5064
|
+
representationName: RepresentationType$e
|
|
5065
|
+
});
|
|
5066
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
5067
|
+
});
|
|
5068
|
+
});
|
|
5069
|
+
}
|
|
5070
|
+
});
|
|
5071
|
+
};
|
|
5072
|
+
};
|
|
5073
|
+
|
|
5074
|
+
const VERSION$6 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
5075
|
+
function validate$6(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
5076
|
+
const v_error = (() => {
|
|
5077
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5078
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5079
|
+
}
|
|
5080
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
5081
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
5082
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
5083
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
5084
|
+
}
|
|
5085
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
5086
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
5087
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
5088
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
5089
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
5090
|
+
}
|
|
5091
|
+
}
|
|
5092
|
+
const obj_searchString = obj.searchString;
|
|
5093
|
+
const path_searchString = path + '.searchString';
|
|
5094
|
+
let obj_searchString_union0 = null;
|
|
5095
|
+
const obj_searchString_union0_error = (() => {
|
|
5096
|
+
if (typeof obj_searchString !== 'string') {
|
|
5097
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5098
|
+
}
|
|
5099
|
+
})();
|
|
5100
|
+
if (obj_searchString_union0_error != null) {
|
|
5101
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
5102
|
+
}
|
|
5103
|
+
let obj_searchString_union1 = null;
|
|
5104
|
+
const obj_searchString_union1_error = (() => {
|
|
5105
|
+
if (obj_searchString !== null) {
|
|
5106
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5107
|
+
}
|
|
5108
|
+
})();
|
|
5109
|
+
if (obj_searchString_union1_error != null) {
|
|
5110
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
5111
|
+
}
|
|
5112
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
5113
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
5114
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5115
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5116
|
+
return new TypeError(message);
|
|
5117
|
+
}
|
|
5118
|
+
})();
|
|
5119
|
+
return v_error === undefined ? null : v_error;
|
|
5120
|
+
}
|
|
5121
|
+
const RepresentationType$6 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
5122
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
5123
|
+
const input_conversationInfos = input.conversationInfos;
|
|
5124
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
5125
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
5126
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
5127
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
5128
|
+
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
5129
|
+
fullPath: input_conversationInfos_item_id,
|
|
5130
|
+
propertyName: i,
|
|
5131
|
+
parent: {
|
|
5132
|
+
data: input,
|
|
5133
|
+
key: path.fullPath,
|
|
5134
|
+
existing: existing,
|
|
5135
|
+
},
|
|
5136
|
+
ttl: path.ttl
|
|
5137
|
+
}, luvio, store, timestamp);
|
|
5138
|
+
}
|
|
5139
|
+
return input;
|
|
5140
|
+
}
|
|
5141
|
+
const select$o = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
5142
|
+
return {
|
|
5143
|
+
kind: 'Fragment',
|
|
5144
|
+
version: VERSION$6,
|
|
5145
|
+
private: [],
|
|
5146
|
+
selections: [
|
|
5147
|
+
{
|
|
5148
|
+
name: 'conversationInfos',
|
|
5149
|
+
kind: 'Link',
|
|
5150
|
+
plural: true,
|
|
5151
|
+
fragment: select$D()
|
|
5152
|
+
},
|
|
5153
|
+
{
|
|
5154
|
+
name: 'searchString',
|
|
5155
|
+
kind: 'Scalar'
|
|
5156
|
+
}
|
|
5157
|
+
]
|
|
5158
|
+
};
|
|
5159
|
+
};
|
|
5160
|
+
function equals$6(existing, incoming) {
|
|
5161
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
5162
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
5163
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
5164
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
5165
|
+
return false;
|
|
5166
|
+
}
|
|
5167
|
+
});
|
|
5168
|
+
if (equals_conversationInfos_items === false) {
|
|
5169
|
+
return false;
|
|
5170
|
+
}
|
|
5171
|
+
const existing_searchString = existing.searchString;
|
|
5172
|
+
const incoming_searchString = incoming.searchString;
|
|
5173
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
5174
|
+
return false;
|
|
5175
|
+
}
|
|
5176
|
+
return true;
|
|
5177
|
+
}
|
|
5178
|
+
const ingest$6 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5179
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5180
|
+
const validateError = validate$6(input);
|
|
5181
|
+
if (validateError !== null) {
|
|
5182
|
+
throw validateError;
|
|
5183
|
+
}
|
|
5184
|
+
}
|
|
5185
|
+
const key = path.fullPath;
|
|
5186
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5187
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
|
|
5188
|
+
return createLink(key);
|
|
5189
|
+
};
|
|
5190
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
5191
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5192
|
+
const rootKey = fullPathFactory();
|
|
5193
|
+
rootKeySet.set(rootKey, {
|
|
5194
|
+
namespace: keyPrefix,
|
|
5195
|
+
representationName: RepresentationType$6,
|
|
5196
|
+
mergeable: false
|
|
5197
|
+
});
|
|
5198
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
5199
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
5200
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
5201
|
+
}
|
|
5202
|
+
}
|
|
5203
|
+
|
|
5204
|
+
function select$n(luvio, params) {
|
|
5205
|
+
return select$o();
|
|
5206
|
+
}
|
|
5207
|
+
function keyBuilder$p(luvio, params) {
|
|
5208
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'channelIds:' + params.queryParams.channelIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5209
|
+
}
|
|
5210
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
5211
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
|
|
5212
|
+
}
|
|
5213
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
5214
|
+
const { body } = response;
|
|
5215
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
5216
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5217
|
+
const snapshot = luvio.storeLookup({
|
|
5218
|
+
recordId: key,
|
|
5219
|
+
node: select$n(),
|
|
5220
|
+
variables: {},
|
|
5221
|
+
}, snapshotRefresh);
|
|
5222
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5223
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5224
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5225
|
+
}
|
|
5226
|
+
}
|
|
5227
|
+
deepFreeze(snapshot.data);
|
|
5228
|
+
return snapshot;
|
|
5229
|
+
}
|
|
5230
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
5231
|
+
const key = keyBuilder$p(luvio, params);
|
|
5232
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5233
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
5234
|
+
return errorSnapshot;
|
|
5235
|
+
}
|
|
5236
|
+
function createResourceRequest$h(config) {
|
|
5237
|
+
const headers = {};
|
|
5238
|
+
return {
|
|
5239
|
+
baseUri: '/services/data/v63.0',
|
|
5240
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels',
|
|
5241
|
+
method: 'get',
|
|
5242
|
+
body: null,
|
|
5243
|
+
urlParams: config.urlParams,
|
|
5244
|
+
queryParams: config.queryParams,
|
|
5245
|
+
headers,
|
|
5246
|
+
priority: 'normal',
|
|
5247
|
+
};
|
|
5248
|
+
}
|
|
5249
|
+
|
|
5250
|
+
const adapterName$h = 'getSlackConversationInfos';
|
|
5251
|
+
const getSlackConversationInfos_ConfigPropertyMetadata = [
|
|
5252
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5253
|
+
generateParamConfigMetadata('channelIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5254
|
+
];
|
|
5255
|
+
const getSlackConversationInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5256
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5257
|
+
function keyBuilder$o(luvio, config) {
|
|
5258
|
+
const resourceParams = createResourceParams$h(config);
|
|
5259
|
+
return keyBuilder$p(luvio, resourceParams);
|
|
5260
|
+
}
|
|
5261
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
5262
|
+
const config = {};
|
|
5263
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5264
|
+
return config;
|
|
5265
|
+
}
|
|
5266
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
5267
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5268
|
+
return null;
|
|
5269
|
+
}
|
|
5270
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5271
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5272
|
+
}
|
|
5273
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
5274
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5275
|
+
return null;
|
|
5276
|
+
}
|
|
5277
|
+
return config;
|
|
5278
|
+
}
|
|
5279
|
+
function adapterFragment$a(luvio, config) {
|
|
5280
|
+
createResourceParams$h(config);
|
|
5281
|
+
return select$n();
|
|
5282
|
+
}
|
|
5283
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
5284
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
5285
|
+
config,
|
|
5286
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
5287
|
+
});
|
|
5288
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5289
|
+
}
|
|
5290
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
5291
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
5292
|
+
config,
|
|
5293
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
5294
|
+
});
|
|
5295
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5296
|
+
}
|
|
5297
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
4736
5298
|
const resourceParams = createResourceParams$h(config);
|
|
4737
5299
|
const request = createResourceRequest$h(resourceParams);
|
|
4738
5300
|
return luvio.dispatchResourceRequest(request, options)
|
|
@@ -4747,7 +5309,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
4747
5309
|
});
|
|
4748
5310
|
}
|
|
4749
5311
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4750
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5312
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
4751
5313
|
}
|
|
4752
5314
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4753
5315
|
const { luvio, config } = context;
|
|
@@ -4762,8 +5324,8 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
4762
5324
|
});
|
|
4763
5325
|
return cacheSnapshot;
|
|
4764
5326
|
}
|
|
4765
|
-
const
|
|
4766
|
-
const config = validateAdapterConfig$h(untrustedConfig,
|
|
5327
|
+
const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfos(untrustedConfig, requestContext) {
|
|
5328
|
+
const config = validateAdapterConfig$h(untrustedConfig, getSlackConversationInfos_ConfigPropertyNames);
|
|
4767
5329
|
// Invalid or incomplete config
|
|
4768
5330
|
if (config === null) {
|
|
4769
5331
|
return null;
|
|
@@ -4772,11 +5334,11 @@ const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getS
|
|
|
4772
5334
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4773
5335
|
};
|
|
4774
5336
|
|
|
4775
|
-
function select$
|
|
4776
|
-
return select$
|
|
5337
|
+
function select$m(luvio, params) {
|
|
5338
|
+
return select$H();
|
|
4777
5339
|
}
|
|
4778
5340
|
function keyBuilder$n(luvio, params) {
|
|
4779
|
-
return keyBuilder$
|
|
5341
|
+
return keyBuilder$F(luvio, {
|
|
4780
5342
|
channelId: params.urlParams.channelId
|
|
4781
5343
|
});
|
|
4782
5344
|
}
|
|
@@ -4789,7 +5351,7 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4789
5351
|
luvio.storeIngest(key, ingest$h, body);
|
|
4790
5352
|
const snapshot = luvio.storeLookup({
|
|
4791
5353
|
recordId: key,
|
|
4792
|
-
node: select$
|
|
5354
|
+
node: select$m(),
|
|
4793
5355
|
variables: {},
|
|
4794
5356
|
}, snapshotRefresh);
|
|
4795
5357
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4834,14 +5396,14 @@ const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
4834
5396
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4835
5397
|
];
|
|
4836
5398
|
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4837
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
5399
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$o(getSlackConversationMember_ConfigPropertyMetadata);
|
|
4838
5400
|
function keyBuilder$m(luvio, config) {
|
|
4839
5401
|
const resourceParams = createResourceParams$g(config);
|
|
4840
5402
|
return keyBuilder$n(luvio, resourceParams);
|
|
4841
5403
|
}
|
|
4842
5404
|
function typeCheckConfig$g(untrustedConfig) {
|
|
4843
5405
|
const config = {};
|
|
4844
|
-
typeCheckConfig$
|
|
5406
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4845
5407
|
return config;
|
|
4846
5408
|
}
|
|
4847
5409
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -4859,7 +5421,7 @@ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
|
4859
5421
|
}
|
|
4860
5422
|
function adapterFragment$9(luvio, config) {
|
|
4861
5423
|
createResourceParams$g(config);
|
|
4862
|
-
return select$
|
|
5424
|
+
return select$m();
|
|
4863
5425
|
}
|
|
4864
5426
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4865
5427
|
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
@@ -4890,7 +5452,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
4890
5452
|
});
|
|
4891
5453
|
}
|
|
4892
5454
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4893
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5455
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
4894
5456
|
}
|
|
4895
5457
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4896
5458
|
const { luvio, config } = context;
|
|
@@ -4916,7 +5478,7 @@ const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge
|
|
|
4916
5478
|
};
|
|
4917
5479
|
const notifyChangeFactory$5 = (luvio, options) => {
|
|
4918
5480
|
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamIdNotifyChange(configs) {
|
|
4919
|
-
const keys = configs.map(c => keyBuilder$
|
|
5481
|
+
const keys = configs.map(c => keyBuilder$F(luvio, c));
|
|
4920
5482
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4921
5483
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4922
5484
|
const { key, record: val } = entries[i];
|
|
@@ -4944,8 +5506,8 @@ const notifyChangeFactory$5 = (luvio, options) => {
|
|
|
4944
5506
|
};
|
|
4945
5507
|
};
|
|
4946
5508
|
|
|
4947
|
-
const VERSION$
|
|
4948
|
-
function validate$
|
|
5509
|
+
const VERSION$5 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
5510
|
+
function validate$5(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
4949
5511
|
const v_error = (() => {
|
|
4950
5512
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4951
5513
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4996,9 +5558,9 @@ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
4996
5558
|
})();
|
|
4997
5559
|
return v_error === undefined ? null : v_error;
|
|
4998
5560
|
}
|
|
4999
|
-
const RepresentationType$
|
|
5561
|
+
const RepresentationType$5 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
5000
5562
|
function keyBuilder$l(luvio, config) {
|
|
5001
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5563
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
|
|
5002
5564
|
}
|
|
5003
5565
|
function keyBuilderFromType$3(luvio, object) {
|
|
5004
5566
|
const keyParams = {
|
|
@@ -5006,13 +5568,13 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
5006
5568
|
};
|
|
5007
5569
|
return keyBuilder$l(luvio, keyParams);
|
|
5008
5570
|
}
|
|
5009
|
-
function normalize$
|
|
5571
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
5010
5572
|
return input;
|
|
5011
5573
|
}
|
|
5012
|
-
const select$
|
|
5574
|
+
const select$l = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
5013
5575
|
return {
|
|
5014
5576
|
kind: 'Fragment',
|
|
5015
|
-
version: VERSION$
|
|
5577
|
+
version: VERSION$5,
|
|
5016
5578
|
private: [],
|
|
5017
5579
|
selections: [
|
|
5018
5580
|
{
|
|
@@ -5031,7 +5593,7 @@ const select$m = function SlackBridgeConversationMembersOutputRepresentationSele
|
|
|
5031
5593
|
]
|
|
5032
5594
|
};
|
|
5033
5595
|
};
|
|
5034
|
-
function equals$
|
|
5596
|
+
function equals$5(existing, incoming) {
|
|
5035
5597
|
const existing_channelId = existing.channelId;
|
|
5036
5598
|
const incoming_channelId = incoming.channelId;
|
|
5037
5599
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -5054,30 +5616,30 @@ function equals$6(existing, incoming) {
|
|
|
5054
5616
|
}
|
|
5055
5617
|
return true;
|
|
5056
5618
|
}
|
|
5057
|
-
const ingest$
|
|
5619
|
+
const ingest$5 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5058
5620
|
if (process.env.NODE_ENV !== 'production') {
|
|
5059
|
-
const validateError = validate$
|
|
5621
|
+
const validateError = validate$5(input);
|
|
5060
5622
|
if (validateError !== null) {
|
|
5061
5623
|
throw validateError;
|
|
5062
5624
|
}
|
|
5063
5625
|
}
|
|
5064
5626
|
const key = keyBuilderFromType$3(luvio, input);
|
|
5065
5627
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5066
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5628
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SlackBridge", VERSION$5, RepresentationType$5, equals$5);
|
|
5067
5629
|
return createLink(key);
|
|
5068
5630
|
};
|
|
5069
|
-
function getTypeCacheKeys$
|
|
5631
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
5070
5632
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5071
5633
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
5072
5634
|
rootKeySet.set(rootKey, {
|
|
5073
5635
|
namespace: keyPrefix,
|
|
5074
|
-
representationName: RepresentationType$
|
|
5636
|
+
representationName: RepresentationType$5,
|
|
5075
5637
|
mergeable: false
|
|
5076
5638
|
});
|
|
5077
5639
|
}
|
|
5078
5640
|
|
|
5079
|
-
function select$
|
|
5080
|
-
return select$
|
|
5641
|
+
function select$k(luvio, params) {
|
|
5642
|
+
return select$l();
|
|
5081
5643
|
}
|
|
5082
5644
|
function keyBuilder$k(luvio, params) {
|
|
5083
5645
|
return keyBuilder$l(luvio, {
|
|
@@ -5085,15 +5647,15 @@ function keyBuilder$k(luvio, params) {
|
|
|
5085
5647
|
});
|
|
5086
5648
|
}
|
|
5087
5649
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
5088
|
-
getTypeCacheKeys$
|
|
5650
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
5089
5651
|
}
|
|
5090
5652
|
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
5091
5653
|
const { body } = response;
|
|
5092
5654
|
const key = keyBuilder$k(luvio, resourceParams);
|
|
5093
|
-
luvio.storeIngest(key, ingest$
|
|
5655
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
5094
5656
|
const snapshot = luvio.storeLookup({
|
|
5095
5657
|
recordId: key,
|
|
5096
|
-
node: select$
|
|
5658
|
+
node: select$k(),
|
|
5097
5659
|
variables: {},
|
|
5098
5660
|
}, snapshotRefresh);
|
|
5099
5661
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5137,14 +5699,14 @@ const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
5137
5699
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5138
5700
|
];
|
|
5139
5701
|
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5140
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
5702
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$o(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5141
5703
|
function keyBuilder$j(luvio, config) {
|
|
5142
5704
|
const resourceParams = createResourceParams$f(config);
|
|
5143
5705
|
return keyBuilder$k(luvio, resourceParams);
|
|
5144
5706
|
}
|
|
5145
5707
|
function typeCheckConfig$f(untrustedConfig) {
|
|
5146
5708
|
const config = {};
|
|
5147
|
-
typeCheckConfig$
|
|
5709
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5148
5710
|
return config;
|
|
5149
5711
|
}
|
|
5150
5712
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -5162,7 +5724,7 @@ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
|
5162
5724
|
}
|
|
5163
5725
|
function adapterFragment$8(luvio, config) {
|
|
5164
5726
|
createResourceParams$f(config);
|
|
5165
|
-
return select$
|
|
5727
|
+
return select$k();
|
|
5166
5728
|
}
|
|
5167
5729
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
5168
5730
|
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
@@ -5193,7 +5755,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5193
5755
|
});
|
|
5194
5756
|
}
|
|
5195
5757
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5196
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5758
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
5197
5759
|
}
|
|
5198
5760
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5199
5761
|
const { luvio, config } = context;
|
|
@@ -5228,11 +5790,11 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
5228
5790
|
.then((response) => {
|
|
5229
5791
|
return luvio.handleSuccessResponse(() => {
|
|
5230
5792
|
const { body } = response;
|
|
5231
|
-
luvio.storeIngest(key, ingest$
|
|
5793
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
5232
5794
|
return luvio.storeBroadcast();
|
|
5233
5795
|
}, () => {
|
|
5234
5796
|
const cache = new StoreKeyMap();
|
|
5235
|
-
getTypeCacheKeys$
|
|
5797
|
+
getTypeCacheKeys$5(cache, luvio, response.body);
|
|
5236
5798
|
return cache;
|
|
5237
5799
|
});
|
|
5238
5800
|
}, (error) => {
|
|
@@ -5247,11 +5809,11 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
5247
5809
|
};
|
|
5248
5810
|
};
|
|
5249
5811
|
|
|
5250
|
-
function select$
|
|
5251
|
-
return select$
|
|
5812
|
+
function select$j(luvio, params) {
|
|
5813
|
+
return select$u();
|
|
5252
5814
|
}
|
|
5253
5815
|
function keyBuilder$i(luvio, params) {
|
|
5254
|
-
return keyBuilder$
|
|
5816
|
+
return keyBuilder$v(luvio, {
|
|
5255
5817
|
name: params.urlParams.slackEmojiId
|
|
5256
5818
|
});
|
|
5257
5819
|
}
|
|
@@ -5264,7 +5826,7 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5264
5826
|
luvio.storeIngest(key, ingest$a, body);
|
|
5265
5827
|
const snapshot = luvio.storeLookup({
|
|
5266
5828
|
recordId: key,
|
|
5267
|
-
node: select$
|
|
5829
|
+
node: select$j(),
|
|
5268
5830
|
variables: {},
|
|
5269
5831
|
}, snapshotRefresh);
|
|
5270
5832
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5314,14 +5876,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
5314
5876
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5315
5877
|
];
|
|
5316
5878
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackEmoji_ConfigPropertyMetadata);
|
|
5317
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
5879
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$o(getSlackEmoji_ConfigPropertyMetadata);
|
|
5318
5880
|
function keyBuilder$h(luvio, config) {
|
|
5319
5881
|
const resourceParams = createResourceParams$e(config);
|
|
5320
5882
|
return keyBuilder$i(luvio, resourceParams);
|
|
5321
5883
|
}
|
|
5322
5884
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5323
5885
|
const config = {};
|
|
5324
|
-
typeCheckConfig$
|
|
5886
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
5325
5887
|
return config;
|
|
5326
5888
|
}
|
|
5327
5889
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -5339,7 +5901,7 @@ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
|
5339
5901
|
}
|
|
5340
5902
|
function adapterFragment$7(luvio, config) {
|
|
5341
5903
|
createResourceParams$e(config);
|
|
5342
|
-
return select$
|
|
5904
|
+
return select$j();
|
|
5343
5905
|
}
|
|
5344
5906
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
5345
5907
|
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
@@ -5370,7 +5932,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
5370
5932
|
});
|
|
5371
5933
|
}
|
|
5372
5934
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5373
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5935
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
5374
5936
|
}
|
|
5375
5937
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5376
5938
|
const { luvio, config } = context;
|
|
@@ -5396,7 +5958,7 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
5396
5958
|
};
|
|
5397
5959
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
5398
5960
|
return function getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamIdNotifyChange(configs) {
|
|
5399
|
-
const keys = configs.map(c => keyBuilder$
|
|
5961
|
+
const keys = configs.map(c => keyBuilder$v(luvio, c));
|
|
5400
5962
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5401
5963
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5402
5964
|
const { key, record: val } = entries[i];
|
|
@@ -5429,8 +5991,8 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
5429
5991
|
};
|
|
5430
5992
|
};
|
|
5431
5993
|
|
|
5432
|
-
const VERSION$
|
|
5433
|
-
function validate$
|
|
5994
|
+
const VERSION$4 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
5995
|
+
function validate$4(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
5434
5996
|
const v_error = (() => {
|
|
5435
5997
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5436
5998
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5450,8 +6012,8 @@ function validate$5(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
5450
6012
|
})();
|
|
5451
6013
|
return v_error === undefined ? null : v_error;
|
|
5452
6014
|
}
|
|
5453
|
-
const RepresentationType$
|
|
5454
|
-
function normalize$
|
|
6015
|
+
const RepresentationType$4 = 'SlackBridgeEmojisOutputRepresentation';
|
|
6016
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5455
6017
|
const input_emojis = input.emojis;
|
|
5456
6018
|
const input_emojis_id = path.fullPath + '__emojis';
|
|
5457
6019
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
@@ -5470,22 +6032,22 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
5470
6032
|
}
|
|
5471
6033
|
return input;
|
|
5472
6034
|
}
|
|
5473
|
-
const select$
|
|
6035
|
+
const select$i = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
5474
6036
|
return {
|
|
5475
6037
|
kind: 'Fragment',
|
|
5476
|
-
version: VERSION$
|
|
6038
|
+
version: VERSION$4,
|
|
5477
6039
|
private: [],
|
|
5478
6040
|
selections: [
|
|
5479
6041
|
{
|
|
5480
6042
|
name: 'emojis',
|
|
5481
6043
|
kind: 'Link',
|
|
5482
6044
|
plural: true,
|
|
5483
|
-
fragment: select$
|
|
6045
|
+
fragment: select$u()
|
|
5484
6046
|
}
|
|
5485
6047
|
]
|
|
5486
6048
|
};
|
|
5487
6049
|
};
|
|
5488
|
-
function equals$
|
|
6050
|
+
function equals$4(existing, incoming) {
|
|
5489
6051
|
const existing_emojis = existing.emojis;
|
|
5490
6052
|
const incoming_emojis = incoming.emojis;
|
|
5491
6053
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
@@ -5498,24 +6060,24 @@ function equals$5(existing, incoming) {
|
|
|
5498
6060
|
}
|
|
5499
6061
|
return true;
|
|
5500
6062
|
}
|
|
5501
|
-
const ingest$
|
|
6063
|
+
const ingest$4 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5502
6064
|
if (process.env.NODE_ENV !== 'production') {
|
|
5503
|
-
const validateError = validate$
|
|
6065
|
+
const validateError = validate$4(input);
|
|
5504
6066
|
if (validateError !== null) {
|
|
5505
6067
|
throw validateError;
|
|
5506
6068
|
}
|
|
5507
6069
|
}
|
|
5508
6070
|
const key = path.fullPath;
|
|
5509
6071
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5510
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6072
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SlackBridge", VERSION$4, RepresentationType$4, equals$4);
|
|
5511
6073
|
return createLink(key);
|
|
5512
6074
|
};
|
|
5513
|
-
function getTypeCacheKeys$
|
|
6075
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
5514
6076
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5515
6077
|
const rootKey = fullPathFactory();
|
|
5516
6078
|
rootKeySet.set(rootKey, {
|
|
5517
6079
|
namespace: keyPrefix,
|
|
5518
|
-
representationName: RepresentationType$
|
|
6080
|
+
representationName: RepresentationType$4,
|
|
5519
6081
|
mergeable: false
|
|
5520
6082
|
});
|
|
5521
6083
|
const input_emojis_length = input.emojis.length;
|
|
@@ -5524,22 +6086,22 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5524
6086
|
}
|
|
5525
6087
|
}
|
|
5526
6088
|
|
|
5527
|
-
function select$
|
|
5528
|
-
return select$
|
|
6089
|
+
function select$h(luvio, params) {
|
|
6090
|
+
return select$i();
|
|
5529
6091
|
}
|
|
5530
6092
|
function keyBuilder$g(luvio, params) {
|
|
5531
6093
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5532
6094
|
}
|
|
5533
6095
|
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5534
|
-
getTypeCacheKeys$
|
|
6096
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
5535
6097
|
}
|
|
5536
6098
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
5537
6099
|
const { body } = response;
|
|
5538
6100
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
5539
|
-
luvio.storeIngest(key, ingest$
|
|
6101
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5540
6102
|
const snapshot = luvio.storeLookup({
|
|
5541
6103
|
recordId: key,
|
|
5542
|
-
node: select$
|
|
6104
|
+
node: select$h(),
|
|
5543
6105
|
variables: {},
|
|
5544
6106
|
}, snapshotRefresh);
|
|
5545
6107
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5576,14 +6138,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
5576
6138
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5577
6139
|
];
|
|
5578
6140
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackEmojis_ConfigPropertyMetadata);
|
|
5579
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
6141
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$o(getSlackEmojis_ConfigPropertyMetadata);
|
|
5580
6142
|
function keyBuilder$f(luvio, config) {
|
|
5581
6143
|
const resourceParams = createResourceParams$d(config);
|
|
5582
6144
|
return keyBuilder$g(luvio, resourceParams);
|
|
5583
6145
|
}
|
|
5584
6146
|
function typeCheckConfig$d(untrustedConfig) {
|
|
5585
6147
|
const config = {};
|
|
5586
|
-
typeCheckConfig$
|
|
6148
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
5587
6149
|
return config;
|
|
5588
6150
|
}
|
|
5589
6151
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -5601,7 +6163,7 @@ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
|
5601
6163
|
}
|
|
5602
6164
|
function adapterFragment$6(luvio, config) {
|
|
5603
6165
|
createResourceParams$d(config);
|
|
5604
|
-
return select$
|
|
6166
|
+
return select$h();
|
|
5605
6167
|
}
|
|
5606
6168
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
5607
6169
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
@@ -5632,7 +6194,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5632
6194
|
});
|
|
5633
6195
|
}
|
|
5634
6196
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5635
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6197
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5636
6198
|
}
|
|
5637
6199
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5638
6200
|
const { luvio, config } = context;
|
|
@@ -5657,11 +6219,11 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
5657
6219
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
5658
6220
|
};
|
|
5659
6221
|
|
|
5660
|
-
function select$
|
|
5661
|
-
return select$
|
|
6222
|
+
function select$g(luvio, params) {
|
|
6223
|
+
return select$G();
|
|
5662
6224
|
}
|
|
5663
6225
|
function keyBuilder$e(luvio, params) {
|
|
5664
|
-
return keyBuilder$
|
|
6226
|
+
return keyBuilder$D(luvio, {
|
|
5665
6227
|
channelId: params.urlParams.channelId
|
|
5666
6228
|
});
|
|
5667
6229
|
}
|
|
@@ -5674,7 +6236,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5674
6236
|
luvio.storeIngest(key, ingest$g, body);
|
|
5675
6237
|
const snapshot = luvio.storeLookup({
|
|
5676
6238
|
recordId: key,
|
|
5677
|
-
node: select$
|
|
6239
|
+
node: select$g(),
|
|
5678
6240
|
variables: {},
|
|
5679
6241
|
}, snapshotRefresh);
|
|
5680
6242
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5719,14 +6281,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
5719
6281
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5720
6282
|
];
|
|
5721
6283
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackMessage_ConfigPropertyMetadata);
|
|
5722
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
6284
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$o(getSlackMessage_ConfigPropertyMetadata);
|
|
5723
6285
|
function keyBuilder$d(luvio, config) {
|
|
5724
6286
|
const resourceParams = createResourceParams$c(config);
|
|
5725
6287
|
return keyBuilder$e(luvio, resourceParams);
|
|
5726
6288
|
}
|
|
5727
6289
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5728
6290
|
const config = {};
|
|
5729
|
-
typeCheckConfig$
|
|
6291
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
5730
6292
|
return config;
|
|
5731
6293
|
}
|
|
5732
6294
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5744,7 +6306,7 @@ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
|
5744
6306
|
}
|
|
5745
6307
|
function adapterFragment$5(luvio, config) {
|
|
5746
6308
|
createResourceParams$c(config);
|
|
5747
|
-
return select$
|
|
6309
|
+
return select$g();
|
|
5748
6310
|
}
|
|
5749
6311
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
5750
6312
|
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
@@ -5775,7 +6337,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5775
6337
|
});
|
|
5776
6338
|
}
|
|
5777
6339
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
5778
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6340
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
5779
6341
|
}
|
|
5780
6342
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
5781
6343
|
const { luvio, config } = context;
|
|
@@ -5801,7 +6363,7 @@ const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackM
|
|
|
5801
6363
|
};
|
|
5802
6364
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
5803
6365
|
return function getConnectSlackbridgeTeamChannelMessagesByChannelIdAndMessageTsAndTeamIdNotifyChange(configs) {
|
|
5804
|
-
const keys = configs.map(c => keyBuilder$
|
|
6366
|
+
const keys = configs.map(c => keyBuilder$D(luvio, c));
|
|
5805
6367
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5806
6368
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5807
6369
|
const { key, record: val } = entries[i];
|
|
@@ -5829,8 +6391,8 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
5829
6391
|
};
|
|
5830
6392
|
};
|
|
5831
6393
|
|
|
5832
|
-
const VERSION$
|
|
5833
|
-
function validate$
|
|
6394
|
+
const VERSION$3 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
6395
|
+
function validate$3(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
5834
6396
|
const v_error = (() => {
|
|
5835
6397
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5836
6398
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5853,9 +6415,9 @@ function validate$4(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
5853
6415
|
})();
|
|
5854
6416
|
return v_error === undefined ? null : v_error;
|
|
5855
6417
|
}
|
|
5856
|
-
const RepresentationType$
|
|
6418
|
+
const RepresentationType$3 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
5857
6419
|
function keyBuilder$c(luvio, config) {
|
|
5858
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6420
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.relatedRecordId;
|
|
5859
6421
|
}
|
|
5860
6422
|
function keyBuilderFromType$2(luvio, object) {
|
|
5861
6423
|
const keyParams = {
|
|
@@ -5863,7 +6425,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
5863
6425
|
};
|
|
5864
6426
|
return keyBuilder$c(luvio, keyParams);
|
|
5865
6427
|
}
|
|
5866
|
-
function normalize$
|
|
6428
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
5867
6429
|
const input_conversationInfo = input.conversationInfo;
|
|
5868
6430
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
5869
6431
|
input.conversationInfo = ingest$e(input_conversationInfo, {
|
|
@@ -5878,16 +6440,16 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
5878
6440
|
}, luvio, store, timestamp);
|
|
5879
6441
|
return input;
|
|
5880
6442
|
}
|
|
5881
|
-
const select$
|
|
6443
|
+
const select$f = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
5882
6444
|
return {
|
|
5883
6445
|
kind: 'Fragment',
|
|
5884
|
-
version: VERSION$
|
|
6446
|
+
version: VERSION$3,
|
|
5885
6447
|
private: [],
|
|
5886
6448
|
selections: [
|
|
5887
6449
|
{
|
|
5888
6450
|
name: 'conversationInfo',
|
|
5889
6451
|
kind: 'Link',
|
|
5890
|
-
fragment: select$
|
|
6452
|
+
fragment: select$D()
|
|
5891
6453
|
},
|
|
5892
6454
|
{
|
|
5893
6455
|
name: 'relatedRecordId',
|
|
@@ -5900,7 +6462,7 @@ const select$g = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
5900
6462
|
]
|
|
5901
6463
|
};
|
|
5902
6464
|
};
|
|
5903
|
-
function equals$
|
|
6465
|
+
function equals$3(existing, incoming) {
|
|
5904
6466
|
const existing_relatedRecordId = existing.relatedRecordId;
|
|
5905
6467
|
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
5906
6468
|
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
@@ -5918,31 +6480,31 @@ function equals$4(existing, incoming) {
|
|
|
5918
6480
|
}
|
|
5919
6481
|
return true;
|
|
5920
6482
|
}
|
|
5921
|
-
const ingest$
|
|
6483
|
+
const ingest$3 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5922
6484
|
if (process.env.NODE_ENV !== 'production') {
|
|
5923
|
-
const validateError = validate$
|
|
6485
|
+
const validateError = validate$3(input);
|
|
5924
6486
|
if (validateError !== null) {
|
|
5925
6487
|
throw validateError;
|
|
5926
6488
|
}
|
|
5927
6489
|
}
|
|
5928
6490
|
const key = keyBuilderFromType$2(luvio, input);
|
|
5929
6491
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5930
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6492
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
5931
6493
|
return createLink(key);
|
|
5932
6494
|
};
|
|
5933
|
-
function getTypeCacheKeys$
|
|
6495
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
5934
6496
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5935
6497
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
5936
6498
|
rootKeySet.set(rootKey, {
|
|
5937
6499
|
namespace: keyPrefix,
|
|
5938
|
-
representationName: RepresentationType$
|
|
6500
|
+
representationName: RepresentationType$3,
|
|
5939
6501
|
mergeable: false
|
|
5940
6502
|
});
|
|
5941
6503
|
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
5942
6504
|
}
|
|
5943
6505
|
|
|
5944
|
-
function select$
|
|
5945
|
-
return select$
|
|
6506
|
+
function select$e(luvio, params) {
|
|
6507
|
+
return select$f();
|
|
5946
6508
|
}
|
|
5947
6509
|
function keyBuilder$b(luvio, params) {
|
|
5948
6510
|
return keyBuilder$c(luvio, {
|
|
@@ -5950,15 +6512,15 @@ function keyBuilder$b(luvio, params) {
|
|
|
5950
6512
|
});
|
|
5951
6513
|
}
|
|
5952
6514
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
5953
|
-
getTypeCacheKeys$
|
|
6515
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
5954
6516
|
}
|
|
5955
6517
|
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
5956
6518
|
const { body } = response;
|
|
5957
6519
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
5958
|
-
luvio.storeIngest(key, ingest$
|
|
6520
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5959
6521
|
const snapshot = luvio.storeLookup({
|
|
5960
6522
|
recordId: key,
|
|
5961
|
-
node: select$
|
|
6523
|
+
node: select$e(),
|
|
5962
6524
|
variables: {},
|
|
5963
6525
|
}, snapshotRefresh);
|
|
5964
6526
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6001,14 +6563,14 @@ const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
|
6001
6563
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6002
6564
|
];
|
|
6003
6565
|
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6004
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
6566
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$o(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6005
6567
|
function keyBuilder$a(luvio, config) {
|
|
6006
6568
|
const resourceParams = createResourceParams$b(config);
|
|
6007
6569
|
return keyBuilder$b(luvio, resourceParams);
|
|
6008
6570
|
}
|
|
6009
6571
|
function typeCheckConfig$b(untrustedConfig) {
|
|
6010
6572
|
const config = {};
|
|
6011
|
-
typeCheckConfig$
|
|
6573
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6012
6574
|
return config;
|
|
6013
6575
|
}
|
|
6014
6576
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -6026,7 +6588,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
|
6026
6588
|
}
|
|
6027
6589
|
function adapterFragment$4(luvio, config) {
|
|
6028
6590
|
createResourceParams$b(config);
|
|
6029
|
-
return select$
|
|
6591
|
+
return select$e();
|
|
6030
6592
|
}
|
|
6031
6593
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6032
6594
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
@@ -6057,7 +6619,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
6057
6619
|
});
|
|
6058
6620
|
}
|
|
6059
6621
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6060
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6622
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
6061
6623
|
}
|
|
6062
6624
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6063
6625
|
const { luvio, config } = context;
|
|
@@ -6092,11 +6654,11 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
6092
6654
|
.then((response) => {
|
|
6093
6655
|
return luvio.handleSuccessResponse(() => {
|
|
6094
6656
|
const { body } = response;
|
|
6095
|
-
luvio.storeIngest(key, ingest$
|
|
6657
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
6096
6658
|
return luvio.storeBroadcast();
|
|
6097
6659
|
}, () => {
|
|
6098
6660
|
const cache = new StoreKeyMap();
|
|
6099
|
-
getTypeCacheKeys$
|
|
6661
|
+
getTypeCacheKeys$3(cache, luvio, response.body);
|
|
6100
6662
|
return cache;
|
|
6101
6663
|
});
|
|
6102
6664
|
}, (error) => {
|
|
@@ -6111,149 +6673,19 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
6111
6673
|
};
|
|
6112
6674
|
};
|
|
6113
6675
|
|
|
6114
|
-
const VERSION$3 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6115
|
-
function validate$3(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
6116
|
-
const v_error = (() => {
|
|
6117
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6118
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6119
|
-
}
|
|
6120
|
-
const obj_conversationInfos = obj.conversationInfos;
|
|
6121
|
-
const path_conversationInfos = path + '.conversationInfos';
|
|
6122
|
-
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6123
|
-
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6124
|
-
}
|
|
6125
|
-
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6126
|
-
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6127
|
-
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6128
|
-
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6129
|
-
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6130
|
-
}
|
|
6131
|
-
}
|
|
6132
|
-
const obj_searchString = obj.searchString;
|
|
6133
|
-
const path_searchString = path + '.searchString';
|
|
6134
|
-
let obj_searchString_union0 = null;
|
|
6135
|
-
const obj_searchString_union0_error = (() => {
|
|
6136
|
-
if (typeof obj_searchString !== 'string') {
|
|
6137
|
-
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6138
|
-
}
|
|
6139
|
-
})();
|
|
6140
|
-
if (obj_searchString_union0_error != null) {
|
|
6141
|
-
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6142
|
-
}
|
|
6143
|
-
let obj_searchString_union1 = null;
|
|
6144
|
-
const obj_searchString_union1_error = (() => {
|
|
6145
|
-
if (obj_searchString !== null) {
|
|
6146
|
-
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6147
|
-
}
|
|
6148
|
-
})();
|
|
6149
|
-
if (obj_searchString_union1_error != null) {
|
|
6150
|
-
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6151
|
-
}
|
|
6152
|
-
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6153
|
-
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6154
|
-
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6155
|
-
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6156
|
-
return new TypeError(message);
|
|
6157
|
-
}
|
|
6158
|
-
})();
|
|
6159
|
-
return v_error === undefined ? null : v_error;
|
|
6160
|
-
}
|
|
6161
|
-
const RepresentationType$3 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6162
|
-
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6163
|
-
const input_conversationInfos = input.conversationInfos;
|
|
6164
|
-
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6165
|
-
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6166
|
-
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6167
|
-
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6168
|
-
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
6169
|
-
fullPath: input_conversationInfos_item_id,
|
|
6170
|
-
propertyName: i,
|
|
6171
|
-
parent: {
|
|
6172
|
-
data: input,
|
|
6173
|
-
key: path.fullPath,
|
|
6174
|
-
existing: existing,
|
|
6175
|
-
},
|
|
6176
|
-
ttl: path.ttl
|
|
6177
|
-
}, luvio, store, timestamp);
|
|
6178
|
-
}
|
|
6179
|
-
return input;
|
|
6180
|
-
}
|
|
6181
|
-
const select$e = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
6182
|
-
return {
|
|
6183
|
-
kind: 'Fragment',
|
|
6184
|
-
version: VERSION$3,
|
|
6185
|
-
private: [],
|
|
6186
|
-
selections: [
|
|
6187
|
-
{
|
|
6188
|
-
name: 'conversationInfos',
|
|
6189
|
-
kind: 'Link',
|
|
6190
|
-
plural: true,
|
|
6191
|
-
fragment: select$B()
|
|
6192
|
-
},
|
|
6193
|
-
{
|
|
6194
|
-
name: 'searchString',
|
|
6195
|
-
kind: 'Scalar'
|
|
6196
|
-
}
|
|
6197
|
-
]
|
|
6198
|
-
};
|
|
6199
|
-
};
|
|
6200
|
-
function equals$3(existing, incoming) {
|
|
6201
|
-
const existing_conversationInfos = existing.conversationInfos;
|
|
6202
|
-
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6203
|
-
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6204
|
-
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
6205
|
-
return false;
|
|
6206
|
-
}
|
|
6207
|
-
});
|
|
6208
|
-
if (equals_conversationInfos_items === false) {
|
|
6209
|
-
return false;
|
|
6210
|
-
}
|
|
6211
|
-
const existing_searchString = existing.searchString;
|
|
6212
|
-
const incoming_searchString = incoming.searchString;
|
|
6213
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
6214
|
-
return false;
|
|
6215
|
-
}
|
|
6216
|
-
return true;
|
|
6217
|
-
}
|
|
6218
|
-
const ingest$3 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6219
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6220
|
-
const validateError = validate$3(input);
|
|
6221
|
-
if (validateError !== null) {
|
|
6222
|
-
throw validateError;
|
|
6223
|
-
}
|
|
6224
|
-
}
|
|
6225
|
-
const key = path.fullPath;
|
|
6226
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6227
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
6228
|
-
return createLink(key);
|
|
6229
|
-
};
|
|
6230
|
-
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
6231
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6232
|
-
const rootKey = fullPathFactory();
|
|
6233
|
-
rootKeySet.set(rootKey, {
|
|
6234
|
-
namespace: keyPrefix,
|
|
6235
|
-
representationName: RepresentationType$3,
|
|
6236
|
-
mergeable: false
|
|
6237
|
-
});
|
|
6238
|
-
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6239
|
-
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6240
|
-
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6241
|
-
}
|
|
6242
|
-
}
|
|
6243
|
-
|
|
6244
6676
|
function select$d(luvio, params) {
|
|
6245
|
-
return select$
|
|
6677
|
+
return select$o();
|
|
6246
6678
|
}
|
|
6247
6679
|
function keyBuilder$9(luvio, params) {
|
|
6248
6680
|
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6249
6681
|
}
|
|
6250
6682
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
6251
|
-
getTypeCacheKeys$
|
|
6683
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
6252
6684
|
}
|
|
6253
6685
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
6254
6686
|
const { body } = response;
|
|
6255
6687
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
6256
|
-
luvio.storeIngest(key, ingest$
|
|
6688
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
6257
6689
|
const snapshot = luvio.storeLookup({
|
|
6258
6690
|
recordId: key,
|
|
6259
6691
|
node: select$d(),
|
|
@@ -6293,14 +6725,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
6293
6725
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6294
6726
|
];
|
|
6295
6727
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6296
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
6728
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$o(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6297
6729
|
function keyBuilder$8(luvio, config) {
|
|
6298
6730
|
const resourceParams = createResourceParams$a(config);
|
|
6299
6731
|
return keyBuilder$9(luvio, resourceParams);
|
|
6300
6732
|
}
|
|
6301
6733
|
function typeCheckConfig$a(untrustedConfig) {
|
|
6302
6734
|
const config = {};
|
|
6303
|
-
typeCheckConfig$
|
|
6735
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6304
6736
|
return config;
|
|
6305
6737
|
}
|
|
6306
6738
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6349,7 +6781,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6349
6781
|
});
|
|
6350
6782
|
}
|
|
6351
6783
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6352
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6784
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
6353
6785
|
}
|
|
6354
6786
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6355
6787
|
const { luvio, config } = context;
|
|
@@ -6375,18 +6807,18 @@ const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge
|
|
|
6375
6807
|
};
|
|
6376
6808
|
|
|
6377
6809
|
function select$c(luvio, params) {
|
|
6378
|
-
return select$
|
|
6810
|
+
return select$i();
|
|
6379
6811
|
}
|
|
6380
6812
|
function keyBuilder$7(luvio, params) {
|
|
6381
6813
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6382
6814
|
}
|
|
6383
6815
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
6384
|
-
getTypeCacheKeys$
|
|
6816
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
6385
6817
|
}
|
|
6386
6818
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
6387
6819
|
const { body } = response;
|
|
6388
6820
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
6389
|
-
luvio.storeIngest(key, ingest$
|
|
6821
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
6390
6822
|
const snapshot = luvio.storeLookup({
|
|
6391
6823
|
recordId: key,
|
|
6392
6824
|
node: select$c(),
|
|
@@ -6426,14 +6858,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
6426
6858
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6427
6859
|
];
|
|
6428
6860
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6429
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
6861
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$o(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6430
6862
|
function keyBuilder$6(luvio, config) {
|
|
6431
6863
|
const resourceParams = createResourceParams$9(config);
|
|
6432
6864
|
return keyBuilder$7(luvio, resourceParams);
|
|
6433
6865
|
}
|
|
6434
6866
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6435
6867
|
const config = {};
|
|
6436
|
-
typeCheckConfig$
|
|
6868
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6437
6869
|
return config;
|
|
6438
6870
|
}
|
|
6439
6871
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6482,7 +6914,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6482
6914
|
});
|
|
6483
6915
|
}
|
|
6484
6916
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6485
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6917
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6486
6918
|
}
|
|
6487
6919
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6488
6920
|
const { luvio, config } = context;
|
|
@@ -6507,12 +6939,38 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
6507
6939
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
6508
6940
|
};
|
|
6509
6941
|
|
|
6510
|
-
const VERSION$2 = "
|
|
6942
|
+
const VERSION$2 = "16b915c502b8a0609446d7ed3907a794";
|
|
6511
6943
|
function validate$2(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
6512
6944
|
const v_error = (() => {
|
|
6513
6945
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6514
6946
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6515
6947
|
}
|
|
6948
|
+
const obj_nextMarker = obj.nextMarker;
|
|
6949
|
+
const path_nextMarker = path + '.nextMarker';
|
|
6950
|
+
let obj_nextMarker_union0 = null;
|
|
6951
|
+
const obj_nextMarker_union0_error = (() => {
|
|
6952
|
+
if (typeof obj_nextMarker !== 'string') {
|
|
6953
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
6954
|
+
}
|
|
6955
|
+
})();
|
|
6956
|
+
if (obj_nextMarker_union0_error != null) {
|
|
6957
|
+
obj_nextMarker_union0 = obj_nextMarker_union0_error.message;
|
|
6958
|
+
}
|
|
6959
|
+
let obj_nextMarker_union1 = null;
|
|
6960
|
+
const obj_nextMarker_union1_error = (() => {
|
|
6961
|
+
if (obj_nextMarker !== null) {
|
|
6962
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
6963
|
+
}
|
|
6964
|
+
})();
|
|
6965
|
+
if (obj_nextMarker_union1_error != null) {
|
|
6966
|
+
obj_nextMarker_union1 = obj_nextMarker_union1_error.message;
|
|
6967
|
+
}
|
|
6968
|
+
if (obj_nextMarker_union0 && obj_nextMarker_union1) {
|
|
6969
|
+
let message = 'Object doesn\'t match union (at "' + path_nextMarker + '")';
|
|
6970
|
+
message += '\n' + obj_nextMarker_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6971
|
+
message += '\n' + obj_nextMarker_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6972
|
+
return new TypeError(message);
|
|
6973
|
+
}
|
|
6516
6974
|
const obj_searchString = obj.searchString;
|
|
6517
6975
|
const path_searchString = path + '.searchString';
|
|
6518
6976
|
let obj_searchString_union0 = null;
|
|
@@ -6580,6 +7038,10 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6580
7038
|
version: VERSION$2,
|
|
6581
7039
|
private: [],
|
|
6582
7040
|
selections: [
|
|
7041
|
+
{
|
|
7042
|
+
name: 'nextMarker',
|
|
7043
|
+
kind: 'Scalar'
|
|
7044
|
+
},
|
|
6583
7045
|
{
|
|
6584
7046
|
name: 'searchString',
|
|
6585
7047
|
kind: 'Scalar'
|
|
@@ -6588,12 +7050,17 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6588
7050
|
name: 'userInfos',
|
|
6589
7051
|
kind: 'Link',
|
|
6590
7052
|
plural: true,
|
|
6591
|
-
fragment: select$
|
|
7053
|
+
fragment: select$t()
|
|
6592
7054
|
}
|
|
6593
7055
|
]
|
|
6594
7056
|
};
|
|
6595
7057
|
};
|
|
6596
7058
|
function equals$2(existing, incoming) {
|
|
7059
|
+
const existing_nextMarker = existing.nextMarker;
|
|
7060
|
+
const incoming_nextMarker = incoming.nextMarker;
|
|
7061
|
+
if (!(existing_nextMarker === incoming_nextMarker)) {
|
|
7062
|
+
return false;
|
|
7063
|
+
}
|
|
6597
7064
|
const existing_searchString = existing.searchString;
|
|
6598
7065
|
const incoming_searchString = incoming.searchString;
|
|
6599
7066
|
if (!(existing_searchString === incoming_searchString)) {
|
|
@@ -6692,14 +7159,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
6692
7159
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6693
7160
|
];
|
|
6694
7161
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6695
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
7162
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$o(getSlackSearchUser_ConfigPropertyMetadata);
|
|
6696
7163
|
function keyBuilder$4(luvio, config) {
|
|
6697
7164
|
const resourceParams = createResourceParams$8(config);
|
|
6698
7165
|
return keyBuilder$5(luvio, resourceParams);
|
|
6699
7166
|
}
|
|
6700
7167
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6701
7168
|
const config = {};
|
|
6702
|
-
typeCheckConfig$
|
|
7169
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6703
7170
|
return config;
|
|
6704
7171
|
}
|
|
6705
7172
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -6748,7 +7215,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6748
7215
|
});
|
|
6749
7216
|
}
|
|
6750
7217
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6751
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7218
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
6752
7219
|
}
|
|
6753
7220
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6754
7221
|
const { luvio, config } = context;
|
|
@@ -6774,12 +7241,11 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
6774
7241
|
};
|
|
6775
7242
|
|
|
6776
7243
|
function select$9(luvio, params) {
|
|
6777
|
-
return select$
|
|
7244
|
+
return select$t();
|
|
6778
7245
|
}
|
|
6779
7246
|
function keyBuilder$3(luvio, params) {
|
|
6780
|
-
return keyBuilder$
|
|
6781
|
-
slackUserId: params.urlParams.slackUserId
|
|
6782
|
-
teamId: params.urlParams.teamId
|
|
7247
|
+
return keyBuilder$u(luvio, {
|
|
7248
|
+
slackUserId: params.urlParams.slackUserId
|
|
6783
7249
|
});
|
|
6784
7250
|
}
|
|
6785
7251
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -6832,7 +7298,6 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
6832
7298
|
urlParams: {},
|
|
6833
7299
|
};
|
|
6834
7300
|
config.urlParams.slackUserId = representation.slackUserId;
|
|
6835
|
-
config.urlParams.teamId = representation.teamId;
|
|
6836
7301
|
return createResourceRequest$7(config);
|
|
6837
7302
|
}
|
|
6838
7303
|
|
|
@@ -6842,14 +7307,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
6842
7307
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6843
7308
|
];
|
|
6844
7309
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackUser_ConfigPropertyMetadata);
|
|
6845
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7310
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$o(getSlackUser_ConfigPropertyMetadata);
|
|
6846
7311
|
function keyBuilder$2(luvio, config) {
|
|
6847
7312
|
const resourceParams = createResourceParams$7(config);
|
|
6848
7313
|
return keyBuilder$3(luvio, resourceParams);
|
|
6849
7314
|
}
|
|
6850
7315
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6851
7316
|
const config = {};
|
|
6852
|
-
typeCheckConfig$
|
|
7317
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
6853
7318
|
return config;
|
|
6854
7319
|
}
|
|
6855
7320
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6898,7 +7363,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6898
7363
|
});
|
|
6899
7364
|
}
|
|
6900
7365
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6901
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7366
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6902
7367
|
}
|
|
6903
7368
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6904
7369
|
const { luvio, config } = context;
|
|
@@ -6924,7 +7389,7 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
6924
7389
|
};
|
|
6925
7390
|
const notifyChangeFactory = (luvio, options) => {
|
|
6926
7391
|
return function getConnectSlackbridgeTeamUserBySlackUserIdAndTeamIdNotifyChange(configs) {
|
|
6927
|
-
const keys = configs.map(c => keyBuilder$
|
|
7392
|
+
const keys = configs.map(c => keyBuilder$u(luvio, c));
|
|
6928
7393
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
6929
7394
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
6930
7395
|
const { key, record: val } = entries[i];
|
|
@@ -6958,7 +7423,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
6958
7423
|
};
|
|
6959
7424
|
|
|
6960
7425
|
function select$8(luvio, params) {
|
|
6961
|
-
return select$
|
|
7426
|
+
return select$G();
|
|
6962
7427
|
}
|
|
6963
7428
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6964
7429
|
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
@@ -7002,10 +7467,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
7002
7467
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
7003
7468
|
];
|
|
7004
7469
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
|
|
7005
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7470
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$o(patchSlackMessage_ConfigPropertyMetadata);
|
|
7006
7471
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7007
7472
|
const config = {};
|
|
7008
|
-
typeCheckConfig$
|
|
7473
|
+
typeCheckConfig$o(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
7009
7474
|
return config;
|
|
7010
7475
|
}
|
|
7011
7476
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7112,7 +7577,7 @@ const select$7 = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
7112
7577
|
{
|
|
7113
7578
|
name: 'postedMessage',
|
|
7114
7579
|
kind: 'Link',
|
|
7115
|
-
fragment: select$
|
|
7580
|
+
fragment: select$y()
|
|
7116
7581
|
},
|
|
7117
7582
|
{
|
|
7118
7583
|
name: 'timestamp',
|
|
@@ -7209,10 +7674,10 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
7209
7674
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
7210
7675
|
];
|
|
7211
7676
|
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, postSlackConversation_ConfigPropertyMetadata);
|
|
7212
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7677
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$o(postSlackConversation_ConfigPropertyMetadata);
|
|
7213
7678
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7214
7679
|
const config = {};
|
|
7215
|
-
typeCheckConfig$
|
|
7680
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
7216
7681
|
return config;
|
|
7217
7682
|
}
|
|
7218
7683
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7385,10 +7850,10 @@ const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
|
7385
7850
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
7386
7851
|
];
|
|
7387
7852
|
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7388
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7853
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$o(postSlackConversationMark_ConfigPropertyMetadata);
|
|
7389
7854
|
function typeCheckConfig$4(untrustedConfig) {
|
|
7390
7855
|
const config = {};
|
|
7391
|
-
typeCheckConfig$
|
|
7856
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7392
7857
|
return config;
|
|
7393
7858
|
}
|
|
7394
7859
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -7434,15 +7899,15 @@ const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
|
7434
7899
|
};
|
|
7435
7900
|
|
|
7436
7901
|
function select$3(luvio, params) {
|
|
7437
|
-
return select$
|
|
7902
|
+
return select$l();
|
|
7438
7903
|
}
|
|
7439
7904
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7440
|
-
getTypeCacheKeys$
|
|
7905
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
7441
7906
|
}
|
|
7442
7907
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
7443
7908
|
const { body } = response;
|
|
7444
7909
|
const key = keyBuilderFromType$3(luvio, body);
|
|
7445
|
-
luvio.storeIngest(key, ingest$
|
|
7910
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
7446
7911
|
const snapshot = luvio.storeLookup({
|
|
7447
7912
|
recordId: key,
|
|
7448
7913
|
node: select$3(),
|
|
@@ -7477,10 +7942,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
7477
7942
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
7478
7943
|
];
|
|
7479
7944
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7480
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7945
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$o(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7481
7946
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7482
7947
|
const config = {};
|
|
7483
|
-
typeCheckConfig$
|
|
7948
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7484
7949
|
return config;
|
|
7485
7950
|
}
|
|
7486
7951
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7526,7 +7991,7 @@ const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
|
7526
7991
|
};
|
|
7527
7992
|
|
|
7528
7993
|
function select$2(luvio, params) {
|
|
7529
|
-
return select$
|
|
7994
|
+
return select$z();
|
|
7530
7995
|
}
|
|
7531
7996
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
7532
7997
|
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
@@ -7574,10 +8039,10 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
7574
8039
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
7575
8040
|
];
|
|
7576
8041
|
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postSlackFile_ConfigPropertyMetadata);
|
|
7577
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8042
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$o(postSlackFile_ConfigPropertyMetadata);
|
|
7578
8043
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7579
8044
|
const config = {};
|
|
7580
|
-
typeCheckConfig$
|
|
8045
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
7581
8046
|
return config;
|
|
7582
8047
|
}
|
|
7583
8048
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7623,7 +8088,7 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
7623
8088
|
};
|
|
7624
8089
|
|
|
7625
8090
|
function select$1(luvio, params) {
|
|
7626
|
-
return select$
|
|
8091
|
+
return select$E();
|
|
7627
8092
|
}
|
|
7628
8093
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7629
8094
|
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
@@ -7667,10 +8132,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
7667
8132
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7668
8133
|
];
|
|
7669
8134
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7670
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8135
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$o(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7671
8136
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7672
8137
|
const config = {};
|
|
7673
|
-
typeCheckConfig$
|
|
8138
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7674
8139
|
return config;
|
|
7675
8140
|
}
|
|
7676
8141
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7716,15 +8181,15 @@ const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
|
7716
8181
|
};
|
|
7717
8182
|
|
|
7718
8183
|
function select(luvio, params) {
|
|
7719
|
-
return select$
|
|
8184
|
+
return select$f();
|
|
7720
8185
|
}
|
|
7721
8186
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
7722
|
-
getTypeCacheKeys$
|
|
8187
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
7723
8188
|
}
|
|
7724
8189
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
7725
8190
|
const { body } = response;
|
|
7726
8191
|
const key = keyBuilderFromType$2(luvio, body);
|
|
7727
|
-
luvio.storeIngest(key, ingest$
|
|
8192
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
7728
8193
|
const snapshot = luvio.storeLookup({
|
|
7729
8194
|
recordId: key,
|
|
7730
8195
|
node: select(),
|
|
@@ -7758,10 +8223,10 @@ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
|
7758
8223
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
7759
8224
|
];
|
|
7760
8225
|
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7761
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8226
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$o(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7762
8227
|
function typeCheckConfig(untrustedConfig) {
|
|
7763
8228
|
const config = {};
|
|
7764
|
-
typeCheckConfig$
|
|
8229
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7765
8230
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
7766
8231
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
7767
8232
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -7822,6 +8287,9 @@ let deleteSlackMessage;
|
|
|
7822
8287
|
let deleteSlackMessageReactions;
|
|
7823
8288
|
let getRelatedThreads;
|
|
7824
8289
|
let getSlackConversation;
|
|
8290
|
+
let getSlackConversationInfo;
|
|
8291
|
+
let getSlackConversationInfoNotifyChange;
|
|
8292
|
+
let getSlackConversationInfos;
|
|
7825
8293
|
let getSlackConversationMember;
|
|
7826
8294
|
let getSlackConversationMemberNotifyChange;
|
|
7827
8295
|
let getSlackConversationMembers;
|
|
@@ -7848,6 +8316,8 @@ let postSlackRecordChannelInfos;
|
|
|
7848
8316
|
// Imperative GET Adapters
|
|
7849
8317
|
let getRelatedThreads_imperative;
|
|
7850
8318
|
let getSlackConversation_imperative;
|
|
8319
|
+
let getSlackConversationInfo_imperative;
|
|
8320
|
+
let getSlackConversationInfos_imperative;
|
|
7851
8321
|
let getSlackConversationMember_imperative;
|
|
7852
8322
|
let getSlackConversationMembers_imperative;
|
|
7853
8323
|
let getSlackEmoji_imperative;
|
|
@@ -7860,6 +8330,15 @@ let getSlackSearchUser_imperative;
|
|
|
7860
8330
|
let getSlackUser_imperative;
|
|
7861
8331
|
const getRelatedThreadsMetadata = { apiFamily: 'SlackBridge', name: 'getRelatedThreads', ttl: 500 };
|
|
7862
8332
|
const getSlackConversationMetadata = { apiFamily: 'SlackBridge', name: 'getSlackConversation' };
|
|
8333
|
+
const getSlackConversationInfoMetadata = {
|
|
8334
|
+
apiFamily: 'SlackBridge',
|
|
8335
|
+
name: 'getSlackConversationInfo',
|
|
8336
|
+
ttl: 900000,
|
|
8337
|
+
};
|
|
8338
|
+
const getSlackConversationInfosMetadata = {
|
|
8339
|
+
apiFamily: 'SlackBridge',
|
|
8340
|
+
name: 'getSlackConversationInfos',
|
|
8341
|
+
};
|
|
7863
8342
|
const getSlackConversationMemberMetadata = {
|
|
7864
8343
|
apiFamily: 'SlackBridge',
|
|
7865
8344
|
name: 'getSlackConversationMember',
|
|
@@ -7881,12 +8360,14 @@ const getSlackSearchConversationMetadata = {
|
|
|
7881
8360
|
};
|
|
7882
8361
|
const getSlackSearchEmojiMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchEmoji' };
|
|
7883
8362
|
const getSlackSearchUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchUser' };
|
|
7884
|
-
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl:
|
|
8363
|
+
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl: 900000 };
|
|
7885
8364
|
// Notify Update Available
|
|
7886
8365
|
function bindExportsTo(luvio) {
|
|
7887
8366
|
// LDS Adapters
|
|
7888
8367
|
const getRelatedThreads_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedThreads', getRelatedThreadsAdapterFactory), getRelatedThreadsMetadata);
|
|
7889
8368
|
const getSlackConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversation', getSlackConversationAdapterFactory), getSlackConversationMetadata);
|
|
8369
|
+
const getSlackConversationInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationInfo', getSlackConversationInfoAdapterFactory), getSlackConversationInfoMetadata);
|
|
8370
|
+
const getSlackConversationInfos_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationInfos', getSlackConversationInfosAdapterFactory), getSlackConversationInfosMetadata);
|
|
7890
8371
|
const getSlackConversationMember_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMember', getSlackConversationMemberAdapterFactory), getSlackConversationMemberMetadata);
|
|
7891
8372
|
const getSlackConversationMembers_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMembers', getSlackConversationMembersAdapterFactory), getSlackConversationMembersMetadata);
|
|
7892
8373
|
const getSlackEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackEmoji', getSlackEmojiAdapterFactory), getSlackEmojiMetadata);
|
|
@@ -7902,11 +8383,14 @@ function bindExportsTo(luvio) {
|
|
|
7902
8383
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
7903
8384
|
}
|
|
7904
8385
|
return {
|
|
7905
|
-
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$
|
|
7906
|
-
deleteSlackMessage: createLDSAdapter(luvio, adapterName$
|
|
7907
|
-
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$
|
|
8386
|
+
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$n, deleteSlackConversationMemberAdapterFactory),
|
|
8387
|
+
deleteSlackMessage: createLDSAdapter(luvio, adapterName$m, deleteSlackMessageAdapterFactory),
|
|
8388
|
+
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$l, deleteSlackMessageReactionsAdapterFactory),
|
|
7908
8389
|
getRelatedThreads: createWireAdapterConstructor(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
7909
8390
|
getSlackConversation: createWireAdapterConstructor(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8391
|
+
getSlackConversationInfo: createWireAdapterConstructor(luvio, getSlackConversationInfo_ldsAdapter, getSlackConversationInfoMetadata),
|
|
8392
|
+
getSlackConversationInfoNotifyChange: createLDSAdapter(luvio, 'getSlackConversationInfoNotifyChange', notifyChangeFactory$6),
|
|
8393
|
+
getSlackConversationInfos: createWireAdapterConstructor(luvio, getSlackConversationInfos_ldsAdapter, getSlackConversationInfosMetadata),
|
|
7910
8394
|
getSlackConversationMember: createWireAdapterConstructor(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7911
8395
|
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$5),
|
|
7912
8396
|
getSlackConversationMembers: createWireAdapterConstructor(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
@@ -7933,6 +8417,8 @@ function bindExportsTo(luvio) {
|
|
|
7933
8417
|
// Imperative GET Adapters
|
|
7934
8418
|
getRelatedThreads_imperative: createImperativeAdapter(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
7935
8419
|
getSlackConversation_imperative: createImperativeAdapter(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8420
|
+
getSlackConversationInfo_imperative: createImperativeAdapter(luvio, getSlackConversationInfo_ldsAdapter, getSlackConversationInfoMetadata),
|
|
8421
|
+
getSlackConversationInfos_imperative: createImperativeAdapter(luvio, getSlackConversationInfos_ldsAdapter, getSlackConversationInfosMetadata),
|
|
7936
8422
|
getSlackConversationMember_imperative: createImperativeAdapter(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7937
8423
|
getSlackConversationMembers_imperative: createImperativeAdapter(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
7938
8424
|
getSlackEmoji_imperative: createImperativeAdapter(luvio, getSlackEmoji_ldsAdapter, getSlackEmojiMetadata),
|
|
@@ -7953,6 +8439,9 @@ withDefaultLuvio((luvio) => {
|
|
|
7953
8439
|
deleteSlackMessageReactions,
|
|
7954
8440
|
getRelatedThreads,
|
|
7955
8441
|
getSlackConversation,
|
|
8442
|
+
getSlackConversationInfo,
|
|
8443
|
+
getSlackConversationInfoNotifyChange,
|
|
8444
|
+
getSlackConversationInfos,
|
|
7956
8445
|
getSlackConversationMember,
|
|
7957
8446
|
getSlackConversationMemberNotifyChange,
|
|
7958
8447
|
getSlackConversationMembers,
|
|
@@ -7978,6 +8467,8 @@ withDefaultLuvio((luvio) => {
|
|
|
7978
8467
|
postSlackRecordChannelInfos,
|
|
7979
8468
|
getRelatedThreads_imperative,
|
|
7980
8469
|
getSlackConversation_imperative,
|
|
8470
|
+
getSlackConversationInfo_imperative,
|
|
8471
|
+
getSlackConversationInfos_imperative,
|
|
7981
8472
|
getSlackConversationMember_imperative,
|
|
7982
8473
|
getSlackConversationMembers_imperative,
|
|
7983
8474
|
getSlackEmoji_imperative,
|
|
@@ -7991,5 +8482,5 @@ withDefaultLuvio((luvio) => {
|
|
|
7991
8482
|
} = bindExportsTo(luvio));
|
|
7992
8483
|
});
|
|
7993
8484
|
|
|
7994
|
-
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
7995
|
-
// version: 1.332.0-
|
|
8485
|
+
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationInfo, getSlackConversationInfoNotifyChange, getSlackConversationInfo_imperative, getSlackConversationInfos, getSlackConversationInfos_imperative, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
8486
|
+
// version: 1.332.0-dev26-f3960c3b25
|