@salesforce/lds-adapters-platform-slack-bridge 1.356.0 → 1.357.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-slack-bridge.js +1156 -750
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfo.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfos.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByTeamId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +12 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +976 -503
- package/src/raml/api.raml +56 -1
- package/src/raml/luvio.raml +12 -1
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, StoreKeyMap, deepFreeze, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, StoreKeyMap, deepFreeze, createResourceParams as createResourceParams$o, typeCheckConfig as typeCheckConfig$o, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$e } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -142,19 +142,19 @@ function validate$m(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
142
142
|
return v_error === undefined ? null : v_error;
|
|
143
143
|
}
|
|
144
144
|
const RepresentationType$h = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
145
|
-
function keyBuilder$
|
|
145
|
+
function keyBuilder$F(luvio, config) {
|
|
146
146
|
return keyPrefix + '::' + RepresentationType$h + ':' + config.channelId;
|
|
147
147
|
}
|
|
148
148
|
function keyBuilderFromType$a(luvio, object) {
|
|
149
149
|
const keyParams = {
|
|
150
150
|
channelId: object.channelId
|
|
151
151
|
};
|
|
152
|
-
return keyBuilder$
|
|
152
|
+
return keyBuilder$F(luvio, keyParams);
|
|
153
153
|
}
|
|
154
154
|
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
155
155
|
return input;
|
|
156
156
|
}
|
|
157
|
-
const select$
|
|
157
|
+
const select$H = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
158
158
|
return {
|
|
159
159
|
kind: 'Fragment',
|
|
160
160
|
version: VERSION$m,
|
|
@@ -206,13 +206,13 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
function keyBuilder$
|
|
210
|
-
return keyBuilder$
|
|
209
|
+
function keyBuilder$E(luvio, params) {
|
|
210
|
+
return keyBuilder$F(luvio, {
|
|
211
211
|
channelId: params.urlParams.channelId
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function getResponseCacheKeys$
|
|
215
|
-
const key = keyBuilder$
|
|
214
|
+
function getResponseCacheKeys$n(cacheKeyMap, luvio, resourceParams) {
|
|
215
|
+
const key = keyBuilder$E(luvio, resourceParams);
|
|
216
216
|
cacheKeyMap.set(key, {
|
|
217
217
|
namespace: keyPrefix,
|
|
218
218
|
representationName: RepresentationType$h,
|
|
@@ -220,13 +220,13 @@ 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
|
-
baseUri: '/services/data/
|
|
229
|
+
baseUri: '/services/data/v65.0',
|
|
230
230
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
|
|
231
231
|
method: 'delete',
|
|
232
232
|
body: null,
|
|
@@ -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,13 +404,13 @@ 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
|
-
baseUri: '/services/data/
|
|
413
|
+
baseUri: '/services/data/v65.0',
|
|
414
414
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '',
|
|
415
415
|
method: 'delete',
|
|
416
416
|
body: null,
|
|
@@ -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,13 +753,13 @@ 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
|
-
baseUri: '/services/data/
|
|
762
|
+
baseUri: '/services/data/v65.0',
|
|
763
763
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '/reactions',
|
|
764
764
|
method: 'delete',
|
|
765
765
|
body: null,
|
|
@@ -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,10 +2841,10 @@ 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
|
-
baseUri: '/services/data/
|
|
2847
|
+
baseUri: '/services/data/v65.0',
|
|
2847
2848
|
basePath: '/connect/slackbridge/related_threads/entity/' + config.urlParams.entityId + '',
|
|
2848
2849
|
method: 'get',
|
|
2849
2850
|
body: null,
|
|
@@ -2854,90 +2855,90 @@ function createResourceRequest$i(config) {
|
|
|
2854
2855
|
};
|
|
2855
2856
|
}
|
|
2856
2857
|
|
|
2857
|
-
const adapterName$
|
|
2858
|
+
const adapterName$k = 'getRelatedThreads';
|
|
2858
2859
|
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
2859
2860
|
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2860
2861
|
];
|
|
2861
|
-
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2862
|
-
const createResourceParams$
|
|
2863
|
-
function keyBuilder$
|
|
2864
|
-
const resourceParams = createResourceParams$
|
|
2865
|
-
return keyBuilder$
|
|
2862
|
+
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getRelatedThreads_ConfigPropertyMetadata);
|
|
2863
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$o(getRelatedThreads_ConfigPropertyMetadata);
|
|
2864
|
+
function keyBuilder$w(luvio, config) {
|
|
2865
|
+
const resourceParams = createResourceParams$k(config);
|
|
2866
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
2866
2867
|
}
|
|
2867
|
-
function typeCheckConfig$
|
|
2868
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
2868
2869
|
const config = {};
|
|
2869
|
-
typeCheckConfig$
|
|
2870
|
+
typeCheckConfig$o(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
2870
2871
|
return config;
|
|
2871
2872
|
}
|
|
2872
|
-
function validateAdapterConfig$
|
|
2873
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
2873
2874
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2874
2875
|
return null;
|
|
2875
2876
|
}
|
|
2876
2877
|
if (process.env.NODE_ENV !== 'production') {
|
|
2877
2878
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2878
2879
|
}
|
|
2879
|
-
const config = typeCheckConfig$
|
|
2880
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
2880
2881
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2881
2882
|
return null;
|
|
2882
2883
|
}
|
|
2883
2884
|
return config;
|
|
2884
2885
|
}
|
|
2885
|
-
function adapterFragment$
|
|
2886
|
-
createResourceParams$
|
|
2887
|
-
return select$
|
|
2886
|
+
function adapterFragment$d(luvio, config) {
|
|
2887
|
+
createResourceParams$k(config);
|
|
2888
|
+
return select$w();
|
|
2888
2889
|
}
|
|
2889
|
-
function onFetchResponseSuccess$
|
|
2890
|
-
const snapshot = ingestSuccess$
|
|
2890
|
+
function onFetchResponseSuccess$d(luvio, config, resourceParams, response) {
|
|
2891
|
+
const snapshot = ingestSuccess$k(luvio, resourceParams, response, {
|
|
2891
2892
|
config,
|
|
2892
|
-
resolve: () => buildNetworkSnapshot$
|
|
2893
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2893
2894
|
});
|
|
2894
2895
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2895
2896
|
}
|
|
2896
|
-
function onFetchResponseError$
|
|
2897
|
-
const snapshot = ingestError$
|
|
2897
|
+
function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
2898
|
+
const snapshot = ingestError$d(luvio, resourceParams, response, {
|
|
2898
2899
|
config,
|
|
2899
|
-
resolve: () => buildNetworkSnapshot$
|
|
2900
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2900
2901
|
});
|
|
2901
2902
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2902
2903
|
}
|
|
2903
|
-
function buildNetworkSnapshot$
|
|
2904
|
-
const resourceParams = createResourceParams$
|
|
2905
|
-
const request = createResourceRequest$
|
|
2904
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
2905
|
+
const resourceParams = createResourceParams$k(config);
|
|
2906
|
+
const request = createResourceRequest$k(resourceParams);
|
|
2906
2907
|
return luvio.dispatchResourceRequest(request, options)
|
|
2907
2908
|
.then((response) => {
|
|
2908
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2909
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
2909
2910
|
const cache = new StoreKeyMap();
|
|
2910
|
-
getResponseCacheKeys$
|
|
2911
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
2911
2912
|
return cache;
|
|
2912
2913
|
});
|
|
2913
2914
|
}, (response) => {
|
|
2914
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2915
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$d(luvio, config, resourceParams, response));
|
|
2915
2916
|
});
|
|
2916
2917
|
}
|
|
2917
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2918
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2918
|
+
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
2919
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
2919
2920
|
}
|
|
2920
|
-
function buildCachedSnapshotCachePolicy$
|
|
2921
|
+
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
2921
2922
|
const { luvio, config } = context;
|
|
2922
2923
|
const selector = {
|
|
2923
|
-
recordId: keyBuilder$
|
|
2924
|
-
node: adapterFragment$
|
|
2924
|
+
recordId: keyBuilder$w(luvio, config),
|
|
2925
|
+
node: adapterFragment$d(luvio, config),
|
|
2925
2926
|
variables: {},
|
|
2926
2927
|
};
|
|
2927
2928
|
const cacheSnapshot = storeLookup(selector, {
|
|
2928
2929
|
config,
|
|
2929
|
-
resolve: () => buildNetworkSnapshot$
|
|
2930
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2930
2931
|
});
|
|
2931
2932
|
return cacheSnapshot;
|
|
2932
2933
|
}
|
|
2933
2934
|
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
2934
|
-
const config = validateAdapterConfig$
|
|
2935
|
+
const config = validateAdapterConfig$k(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
2935
2936
|
// Invalid or incomplete config
|
|
2936
2937
|
if (config === null) {
|
|
2937
2938
|
return null;
|
|
2938
2939
|
}
|
|
2939
2940
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2940
|
-
buildCachedSnapshotCachePolicy$
|
|
2941
|
+
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
2941
2942
|
};
|
|
2942
2943
|
|
|
2943
2944
|
const VERSION$b = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
@@ -3027,7 +3028,7 @@ function validate$b(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
3027
3028
|
})();
|
|
3028
3029
|
return v_error === undefined ? null : v_error;
|
|
3029
3030
|
}
|
|
3030
|
-
const select$
|
|
3031
|
+
const select$v = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
3031
3032
|
return {
|
|
3032
3033
|
kind: 'Fragment',
|
|
3033
3034
|
version: VERSION$b,
|
|
@@ -3216,20 +3217,20 @@ function validate$a(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
3216
3217
|
return v_error === undefined ? null : v_error;
|
|
3217
3218
|
}
|
|
3218
3219
|
const RepresentationType$a = 'SlackBridgeEmojiOutputRepresentation';
|
|
3219
|
-
function keyBuilder$
|
|
3220
|
+
function keyBuilder$v(luvio, config) {
|
|
3220
3221
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
3221
3222
|
}
|
|
3222
3223
|
function keyBuilderFromType$5(luvio, object) {
|
|
3223
3224
|
const keyParams = {
|
|
3224
3225
|
name: object.name
|
|
3225
3226
|
};
|
|
3226
|
-
return keyBuilder$
|
|
3227
|
+
return keyBuilder$v(luvio, keyParams);
|
|
3227
3228
|
}
|
|
3228
3229
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3229
3230
|
return input;
|
|
3230
3231
|
}
|
|
3231
|
-
const select$
|
|
3232
|
-
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$
|
|
3232
|
+
const select$u = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
3233
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$v();
|
|
3233
3234
|
return {
|
|
3234
3235
|
kind: 'Fragment',
|
|
3235
3236
|
version: VERSION$a,
|
|
@@ -3322,7 +3323,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3322
3323
|
});
|
|
3323
3324
|
}
|
|
3324
3325
|
|
|
3325
|
-
const TTL =
|
|
3326
|
+
const TTL = 900000;
|
|
3326
3327
|
const VERSION$9 = "2871ae193ac5e60b5cc0d6c4111e8615";
|
|
3327
3328
|
function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
3328
3329
|
const v_error = (() => {
|
|
@@ -3749,14 +3750,14 @@ function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
3749
3750
|
return v_error === undefined ? null : v_error;
|
|
3750
3751
|
}
|
|
3751
3752
|
const RepresentationType$9 = 'SlackBridgeUserInfoOutputRepresentation';
|
|
3752
|
-
function keyBuilder$
|
|
3753
|
+
function keyBuilder$u(luvio, config) {
|
|
3753
3754
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.slackUserId;
|
|
3754
3755
|
}
|
|
3755
3756
|
function keyBuilderFromType$4(luvio, object) {
|
|
3756
3757
|
const keyParams = {
|
|
3757
3758
|
slackUserId: object.slackUserId
|
|
3758
3759
|
};
|
|
3759
|
-
return keyBuilder$
|
|
3760
|
+
return keyBuilder$u(luvio, keyParams);
|
|
3760
3761
|
}
|
|
3761
3762
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
3762
3763
|
const input_statusEmoji = input.statusEmoji;
|
|
@@ -3775,7 +3776,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
3775
3776
|
}
|
|
3776
3777
|
return input;
|
|
3777
3778
|
}
|
|
3778
|
-
const select$
|
|
3779
|
+
const select$t = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
3779
3780
|
return {
|
|
3780
3781
|
kind: 'Fragment',
|
|
3781
3782
|
version: VERSION$9,
|
|
@@ -3848,7 +3849,7 @@ const select$r = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
3848
3849
|
name: 'statusEmoji',
|
|
3849
3850
|
kind: 'Link',
|
|
3850
3851
|
nullable: true,
|
|
3851
|
-
fragment: select$
|
|
3852
|
+
fragment: select$u()
|
|
3852
3853
|
},
|
|
3853
3854
|
{
|
|
3854
3855
|
name: 'statusMessage',
|
|
@@ -4089,7 +4090,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4089
4090
|
}
|
|
4090
4091
|
return input;
|
|
4091
4092
|
}
|
|
4092
|
-
const select$
|
|
4093
|
+
const select$s = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
4093
4094
|
return {
|
|
4094
4095
|
kind: 'Fragment',
|
|
4095
4096
|
version: VERSION$8,
|
|
@@ -4103,7 +4104,7 @@ const select$q = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
4103
4104
|
name: 'messages',
|
|
4104
4105
|
kind: 'Link',
|
|
4105
4106
|
plural: true,
|
|
4106
|
-
fragment: select$
|
|
4107
|
+
fragment: select$y()
|
|
4107
4108
|
},
|
|
4108
4109
|
{
|
|
4109
4110
|
name: 'nextCursor',
|
|
@@ -4161,7 +4162,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4161
4162
|
}
|
|
4162
4163
|
}
|
|
4163
4164
|
|
|
4164
|
-
const VERSION$7 = "
|
|
4165
|
+
const VERSION$7 = "1119f2c416d047eefd8303c5a2d590ae";
|
|
4165
4166
|
function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
4166
4167
|
const v_error = (() => {
|
|
4167
4168
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4229,6 +4230,30 @@ function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
4229
4230
|
message += '\n' + obj_conversationInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4230
4231
|
return new TypeError(message);
|
|
4231
4232
|
}
|
|
4233
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
4234
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
4235
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
4236
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
4237
|
+
}
|
|
4238
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
4239
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
4240
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
4241
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
4242
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
const obj_emojis = obj.emojis;
|
|
4246
|
+
const path_emojis = path + '.emojis';
|
|
4247
|
+
if (!ArrayIsArray(obj_emojis)) {
|
|
4248
|
+
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
4249
|
+
}
|
|
4250
|
+
for (let i = 0; i < obj_emojis.length; i++) {
|
|
4251
|
+
const obj_emojis_item = obj_emojis[i];
|
|
4252
|
+
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
4253
|
+
if (typeof obj_emojis_item !== 'object') {
|
|
4254
|
+
return new TypeError('Expected "object" but received "' + typeof obj_emojis_item + '" (at "' + path_emojis_item + '")');
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4232
4257
|
const obj_history = obj.history;
|
|
4233
4258
|
const path_history = path + '.history';
|
|
4234
4259
|
if (typeof obj_history !== 'object') {
|
|
@@ -4336,6 +4361,38 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4336
4361
|
ttl: path.ttl
|
|
4337
4362
|
}, luvio, store, timestamp);
|
|
4338
4363
|
}
|
|
4364
|
+
const input_conversationInfos = input.conversationInfos;
|
|
4365
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
4366
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
4367
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
4368
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
4369
|
+
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
4370
|
+
fullPath: input_conversationInfos_item_id,
|
|
4371
|
+
propertyName: i,
|
|
4372
|
+
parent: {
|
|
4373
|
+
data: input,
|
|
4374
|
+
key: path.fullPath,
|
|
4375
|
+
existing: existing,
|
|
4376
|
+
},
|
|
4377
|
+
ttl: path.ttl
|
|
4378
|
+
}, luvio, store, timestamp);
|
|
4379
|
+
}
|
|
4380
|
+
const input_emojis = input.emojis;
|
|
4381
|
+
const input_emojis_id = path.fullPath + '__emojis';
|
|
4382
|
+
for (let i = 0; i < input_emojis.length; i++) {
|
|
4383
|
+
const input_emojis_item = input_emojis[i];
|
|
4384
|
+
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
4385
|
+
input_emojis[i] = ingest$a(input_emojis_item, {
|
|
4386
|
+
fullPath: input_emojis_item_id,
|
|
4387
|
+
propertyName: i,
|
|
4388
|
+
parent: {
|
|
4389
|
+
data: input,
|
|
4390
|
+
key: path.fullPath,
|
|
4391
|
+
existing: existing,
|
|
4392
|
+
},
|
|
4393
|
+
ttl: path.ttl
|
|
4394
|
+
}, luvio, store, timestamp);
|
|
4395
|
+
}
|
|
4339
4396
|
const input_history = input.history;
|
|
4340
4397
|
const input_history_id = path.fullPath + '__history';
|
|
4341
4398
|
input.history = ingest$8(input_history, {
|
|
@@ -4366,7 +4423,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4366
4423
|
}
|
|
4367
4424
|
return input;
|
|
4368
4425
|
}
|
|
4369
|
-
const select$
|
|
4426
|
+
const select$r = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
4370
4427
|
return {
|
|
4371
4428
|
kind: 'Fragment',
|
|
4372
4429
|
version: VERSION$7,
|
|
@@ -4384,18 +4441,30 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4384
4441
|
name: 'contextUserInfo',
|
|
4385
4442
|
kind: 'Link',
|
|
4386
4443
|
nullable: true,
|
|
4387
|
-
fragment: select$
|
|
4444
|
+
fragment: select$t()
|
|
4388
4445
|
},
|
|
4389
4446
|
{
|
|
4390
4447
|
name: 'conversationInfo',
|
|
4391
4448
|
kind: 'Link',
|
|
4392
4449
|
nullable: true,
|
|
4393
|
-
fragment: select$
|
|
4450
|
+
fragment: select$D()
|
|
4451
|
+
},
|
|
4452
|
+
{
|
|
4453
|
+
name: 'conversationInfos',
|
|
4454
|
+
kind: 'Link',
|
|
4455
|
+
plural: true,
|
|
4456
|
+
fragment: select$D()
|
|
4457
|
+
},
|
|
4458
|
+
{
|
|
4459
|
+
name: 'emojis',
|
|
4460
|
+
kind: 'Link',
|
|
4461
|
+
plural: true,
|
|
4462
|
+
fragment: select$u()
|
|
4394
4463
|
},
|
|
4395
4464
|
{
|
|
4396
4465
|
name: 'history',
|
|
4397
4466
|
kind: 'Link',
|
|
4398
|
-
fragment: select$
|
|
4467
|
+
fragment: select$s()
|
|
4399
4468
|
},
|
|
4400
4469
|
{
|
|
4401
4470
|
name: 'teamId',
|
|
@@ -4409,7 +4478,7 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4409
4478
|
name: 'userInfos',
|
|
4410
4479
|
kind: 'Link',
|
|
4411
4480
|
plural: true,
|
|
4412
|
-
fragment: select$
|
|
4481
|
+
fragment: select$t()
|
|
4413
4482
|
},
|
|
4414
4483
|
{
|
|
4415
4484
|
name: 'websocketUrl',
|
|
@@ -4454,6 +4523,26 @@ function equals$7(existing, incoming) {
|
|
|
4454
4523
|
existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
|
|
4455
4524
|
return false;
|
|
4456
4525
|
}
|
|
4526
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
4527
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
4528
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
4529
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
4530
|
+
return false;
|
|
4531
|
+
}
|
|
4532
|
+
});
|
|
4533
|
+
if (equals_conversationInfos_items === false) {
|
|
4534
|
+
return false;
|
|
4535
|
+
}
|
|
4536
|
+
const existing_emojis = existing.emojis;
|
|
4537
|
+
const incoming_emojis = incoming.emojis;
|
|
4538
|
+
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
4539
|
+
if (!(existing_emojis_item.__ref === incoming_emojis_item.__ref)) {
|
|
4540
|
+
return false;
|
|
4541
|
+
}
|
|
4542
|
+
});
|
|
4543
|
+
if (equals_emojis_items === false) {
|
|
4544
|
+
return false;
|
|
4545
|
+
}
|
|
4457
4546
|
const existing_history = existing.history;
|
|
4458
4547
|
const incoming_history = incoming.history;
|
|
4459
4548
|
if (!(existing_history.__ref === incoming_history.__ref)) {
|
|
@@ -4507,6 +4596,14 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4507
4596
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
4508
4597
|
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
4509
4598
|
}
|
|
4599
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
4600
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
4601
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
4602
|
+
}
|
|
4603
|
+
const input_emojis_length = input.emojis.length;
|
|
4604
|
+
for (let i = 0; i < input_emojis_length; i++) {
|
|
4605
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.emojis[i]);
|
|
4606
|
+
}
|
|
4510
4607
|
getTypeCacheKeys$8(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
4511
4608
|
const input_userInfos_length = input.userInfos.length;
|
|
4512
4609
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
@@ -4514,22 +4611,22 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4514
4611
|
}
|
|
4515
4612
|
}
|
|
4516
4613
|
|
|
4517
|
-
function select$
|
|
4518
|
-
return select$
|
|
4614
|
+
function select$q(luvio, params) {
|
|
4615
|
+
return select$r();
|
|
4519
4616
|
}
|
|
4520
|
-
function keyBuilder$
|
|
4617
|
+
function keyBuilder$t(luvio, params) {
|
|
4521
4618
|
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
4522
4619
|
}
|
|
4523
|
-
function getResponseCacheKeys$
|
|
4524
|
-
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$
|
|
4620
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
4621
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
4525
4622
|
}
|
|
4526
|
-
function ingestSuccess$
|
|
4623
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
4527
4624
|
const { body } = response;
|
|
4528
|
-
const key = keyBuilder$
|
|
4625
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
4529
4626
|
luvio.storeIngest(key, ingest$7, body);
|
|
4530
4627
|
const snapshot = luvio.storeLookup({
|
|
4531
4628
|
recordId: key,
|
|
4532
|
-
node: select$
|
|
4629
|
+
node: select$q(),
|
|
4533
4630
|
variables: {},
|
|
4534
4631
|
}, snapshotRefresh);
|
|
4535
4632
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4540,16 +4637,16 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4540
4637
|
deepFreeze(snapshot.data);
|
|
4541
4638
|
return snapshot;
|
|
4542
4639
|
}
|
|
4543
|
-
function ingestError$
|
|
4544
|
-
const key = keyBuilder$
|
|
4640
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4641
|
+
const key = keyBuilder$t(luvio, params);
|
|
4545
4642
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4546
4643
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4547
4644
|
return errorSnapshot;
|
|
4548
4645
|
}
|
|
4549
|
-
function createResourceRequest$
|
|
4646
|
+
function createResourceRequest$j(config) {
|
|
4550
4647
|
const headers = {};
|
|
4551
4648
|
return {
|
|
4552
|
-
baseUri: '/services/data/
|
|
4649
|
+
baseUri: '/services/data/v65.0',
|
|
4553
4650
|
basePath: '/connect/slackbridge/conversation/messages',
|
|
4554
4651
|
method: 'get',
|
|
4555
4652
|
body: null,
|
|
@@ -4560,7 +4657,7 @@ function createResourceRequest$h(config) {
|
|
|
4560
4657
|
};
|
|
4561
4658
|
}
|
|
4562
4659
|
|
|
4563
|
-
const adapterName$
|
|
4660
|
+
const adapterName$j = 'getSlackConversation';
|
|
4564
4661
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
4565
4662
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4566
4663
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -4572,94 +4669,539 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
4572
4669
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4573
4670
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4574
4671
|
];
|
|
4575
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4576
|
-
const createResourceParams$
|
|
4577
|
-
function keyBuilder$
|
|
4578
|
-
const resourceParams = createResourceParams$
|
|
4579
|
-
return keyBuilder$
|
|
4672
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getSlackConversation_ConfigPropertyMetadata);
|
|
4673
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$o(getSlackConversation_ConfigPropertyMetadata);
|
|
4674
|
+
function keyBuilder$s(luvio, config) {
|
|
4675
|
+
const resourceParams = createResourceParams$j(config);
|
|
4676
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
4580
4677
|
}
|
|
4581
|
-
function typeCheckConfig$
|
|
4678
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4582
4679
|
const config = {};
|
|
4583
|
-
typeCheckConfig$
|
|
4680
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
4584
4681
|
return config;
|
|
4585
4682
|
}
|
|
4586
|
-
function validateAdapterConfig$
|
|
4683
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4587
4684
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4588
4685
|
return null;
|
|
4589
4686
|
}
|
|
4590
4687
|
if (process.env.NODE_ENV !== 'production') {
|
|
4591
4688
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4592
4689
|
}
|
|
4593
|
-
const config = typeCheckConfig$
|
|
4690
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4594
4691
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4595
4692
|
return null;
|
|
4596
4693
|
}
|
|
4597
4694
|
return config;
|
|
4598
4695
|
}
|
|
4599
|
-
function adapterFragment$
|
|
4600
|
-
createResourceParams$
|
|
4601
|
-
return select$
|
|
4696
|
+
function adapterFragment$c(luvio, config) {
|
|
4697
|
+
createResourceParams$j(config);
|
|
4698
|
+
return select$q();
|
|
4602
4699
|
}
|
|
4603
|
-
function onFetchResponseSuccess$
|
|
4604
|
-
const snapshot = ingestSuccess$
|
|
4700
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
4701
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
4605
4702
|
config,
|
|
4606
|
-
resolve: () => buildNetworkSnapshot$
|
|
4703
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4607
4704
|
});
|
|
4608
4705
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4609
4706
|
}
|
|
4610
|
-
function onFetchResponseError$
|
|
4611
|
-
const snapshot = ingestError$
|
|
4707
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
4708
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
4612
4709
|
config,
|
|
4613
|
-
resolve: () => buildNetworkSnapshot$
|
|
4710
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4614
4711
|
});
|
|
4615
4712
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4616
4713
|
}
|
|
4617
|
-
function buildNetworkSnapshot$
|
|
4618
|
-
const resourceParams = createResourceParams$
|
|
4619
|
-
const request = createResourceRequest$
|
|
4714
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4715
|
+
const resourceParams = createResourceParams$j(config);
|
|
4716
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4620
4717
|
return luvio.dispatchResourceRequest(request, options)
|
|
4621
4718
|
.then((response) => {
|
|
4622
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4719
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
4623
4720
|
const cache = new StoreKeyMap();
|
|
4624
|
-
getResponseCacheKeys$
|
|
4721
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4625
4722
|
return cache;
|
|
4626
4723
|
});
|
|
4627
4724
|
}, (response) => {
|
|
4628
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4725
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
4629
4726
|
});
|
|
4630
4727
|
}
|
|
4631
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4632
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4728
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
4729
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
4633
4730
|
}
|
|
4634
|
-
function buildCachedSnapshotCachePolicy$
|
|
4731
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
4635
4732
|
const { luvio, config } = context;
|
|
4636
4733
|
const selector = {
|
|
4637
|
-
recordId: keyBuilder$
|
|
4638
|
-
node: adapterFragment$
|
|
4734
|
+
recordId: keyBuilder$s(luvio, config),
|
|
4735
|
+
node: adapterFragment$c(luvio, config),
|
|
4639
4736
|
variables: {},
|
|
4640
4737
|
};
|
|
4641
4738
|
const cacheSnapshot = storeLookup(selector, {
|
|
4642
4739
|
config,
|
|
4643
|
-
resolve: () => buildNetworkSnapshot$
|
|
4740
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
4644
4741
|
});
|
|
4645
4742
|
return cacheSnapshot;
|
|
4646
4743
|
}
|
|
4647
4744
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
4648
|
-
const config = validateAdapterConfig$
|
|
4745
|
+
const config = validateAdapterConfig$j(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
4649
4746
|
// Invalid or incomplete config
|
|
4650
4747
|
if (config === null) {
|
|
4651
4748
|
return null;
|
|
4652
4749
|
}
|
|
4653
4750
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4654
|
-
buildCachedSnapshotCachePolicy$
|
|
4751
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
4655
4752
|
};
|
|
4656
4753
|
|
|
4657
|
-
function select$
|
|
4658
|
-
return select$
|
|
4754
|
+
function select$p(luvio, params) {
|
|
4755
|
+
return select$D();
|
|
4659
4756
|
}
|
|
4660
|
-
function keyBuilder$
|
|
4661
|
-
return keyBuilder$
|
|
4662
|
-
|
|
4757
|
+
function keyBuilder$r(luvio, params) {
|
|
4758
|
+
return keyBuilder$z(luvio, {
|
|
4759
|
+
id: params.urlParams.channelId
|
|
4760
|
+
});
|
|
4761
|
+
}
|
|
4762
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4763
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
4764
|
+
}
|
|
4765
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
4766
|
+
const { body } = response;
|
|
4767
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
4768
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
4769
|
+
const snapshot = luvio.storeLookup({
|
|
4770
|
+
recordId: key,
|
|
4771
|
+
node: select$p(),
|
|
4772
|
+
variables: {},
|
|
4773
|
+
}, snapshotRefresh);
|
|
4774
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4775
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4776
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
deepFreeze(snapshot.data);
|
|
4780
|
+
return snapshot;
|
|
4781
|
+
}
|
|
4782
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
4783
|
+
const key = keyBuilder$r(luvio, params);
|
|
4784
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4785
|
+
const storeMetadataParams = {
|
|
4786
|
+
ttl: TTL$3,
|
|
4787
|
+
namespace: keyPrefix,
|
|
4788
|
+
version: VERSION$i,
|
|
4789
|
+
representationName: RepresentationType$e
|
|
4790
|
+
};
|
|
4791
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4792
|
+
return errorSnapshot;
|
|
4793
|
+
}
|
|
4794
|
+
function createResourceRequest$i(config) {
|
|
4795
|
+
const headers = {};
|
|
4796
|
+
return {
|
|
4797
|
+
baseUri: '/services/data/v65.0',
|
|
4798
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels/' + config.urlParams.channelId + '',
|
|
4799
|
+
method: 'get',
|
|
4800
|
+
body: null,
|
|
4801
|
+
urlParams: config.urlParams,
|
|
4802
|
+
queryParams: {},
|
|
4803
|
+
headers,
|
|
4804
|
+
priority: 'normal',
|
|
4805
|
+
};
|
|
4806
|
+
}
|
|
4807
|
+
function createResourceRequestFromRepresentation$6(representation) {
|
|
4808
|
+
const config = {
|
|
4809
|
+
urlParams: {},
|
|
4810
|
+
};
|
|
4811
|
+
config.urlParams.channelId = representation.id;
|
|
4812
|
+
return createResourceRequest$i(config);
|
|
4813
|
+
}
|
|
4814
|
+
|
|
4815
|
+
const adapterName$i = 'getSlackConversationInfo';
|
|
4816
|
+
const getSlackConversationInfo_ConfigPropertyMetadata = [
|
|
4817
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4818
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4819
|
+
];
|
|
4820
|
+
const getSlackConversationInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4821
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4822
|
+
function keyBuilder$q(luvio, config) {
|
|
4823
|
+
const resourceParams = createResourceParams$i(config);
|
|
4824
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
4825
|
+
}
|
|
4826
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4827
|
+
const config = {};
|
|
4828
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfo_ConfigPropertyMetadata);
|
|
4829
|
+
return config;
|
|
4830
|
+
}
|
|
4831
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4832
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4833
|
+
return null;
|
|
4834
|
+
}
|
|
4835
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4836
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4837
|
+
}
|
|
4838
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
4839
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4840
|
+
return null;
|
|
4841
|
+
}
|
|
4842
|
+
return config;
|
|
4843
|
+
}
|
|
4844
|
+
function adapterFragment$b(luvio, config) {
|
|
4845
|
+
createResourceParams$i(config);
|
|
4846
|
+
return select$p();
|
|
4847
|
+
}
|
|
4848
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
4849
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
4850
|
+
config,
|
|
4851
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4852
|
+
});
|
|
4853
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4854
|
+
}
|
|
4855
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
4856
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4857
|
+
config,
|
|
4858
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4859
|
+
});
|
|
4860
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4861
|
+
}
|
|
4862
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
4863
|
+
const resourceParams = createResourceParams$i(config);
|
|
4864
|
+
const request = createResourceRequest$i(resourceParams);
|
|
4865
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4866
|
+
.then((response) => {
|
|
4867
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
4868
|
+
const cache = new StoreKeyMap();
|
|
4869
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
4870
|
+
return cache;
|
|
4871
|
+
});
|
|
4872
|
+
}, (response) => {
|
|
4873
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
4874
|
+
});
|
|
4875
|
+
}
|
|
4876
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
4877
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
4878
|
+
}
|
|
4879
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
4880
|
+
const { luvio, config } = context;
|
|
4881
|
+
const selector = {
|
|
4882
|
+
recordId: keyBuilder$q(luvio, config),
|
|
4883
|
+
node: adapterFragment$b(luvio, config),
|
|
4884
|
+
variables: {},
|
|
4885
|
+
};
|
|
4886
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4887
|
+
config,
|
|
4888
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4889
|
+
});
|
|
4890
|
+
return cacheSnapshot;
|
|
4891
|
+
}
|
|
4892
|
+
const getSlackConversationInfoAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfo(untrustedConfig, requestContext) {
|
|
4893
|
+
const config = validateAdapterConfig$i(untrustedConfig, getSlackConversationInfo_ConfigPropertyNames);
|
|
4894
|
+
// Invalid or incomplete config
|
|
4895
|
+
if (config === null) {
|
|
4896
|
+
return null;
|
|
4897
|
+
}
|
|
4898
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4899
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
4900
|
+
};
|
|
4901
|
+
const notifyChangeFactory$6 = (luvio, options) => {
|
|
4902
|
+
return function getConnectSlackbridgeTeamChannelsByChannelIdAndTeamIdNotifyChange(configs) {
|
|
4903
|
+
const keys = configs.map(c => keyBuilder$z(luvio, c));
|
|
4904
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4905
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4906
|
+
const { key, record: val } = entries[i];
|
|
4907
|
+
const refreshRequest = createResourceRequestFromRepresentation$6(val);
|
|
4908
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4909
|
+
.then((response) => {
|
|
4910
|
+
return luvio.handleSuccessResponse(() => {
|
|
4911
|
+
const { body } = response;
|
|
4912
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
4913
|
+
return luvio.storeBroadcast();
|
|
4914
|
+
}, () => {
|
|
4915
|
+
const cache = new StoreKeyMap();
|
|
4916
|
+
getTypeCacheKeys$e(cache, luvio, response.body);
|
|
4917
|
+
return cache;
|
|
4918
|
+
});
|
|
4919
|
+
}, (error) => {
|
|
4920
|
+
return luvio.handleErrorResponse(() => {
|
|
4921
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4922
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
4923
|
+
ttl: TTL$3,
|
|
4924
|
+
namespace: keyPrefix,
|
|
4925
|
+
version: VERSION$i,
|
|
4926
|
+
representationName: RepresentationType$e
|
|
4927
|
+
});
|
|
4928
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4929
|
+
});
|
|
4930
|
+
});
|
|
4931
|
+
}
|
|
4932
|
+
});
|
|
4933
|
+
};
|
|
4934
|
+
};
|
|
4935
|
+
|
|
4936
|
+
const VERSION$6 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
4937
|
+
function validate$6(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
4938
|
+
const v_error = (() => {
|
|
4939
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4940
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4941
|
+
}
|
|
4942
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
4943
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
4944
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
4945
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
4946
|
+
}
|
|
4947
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
4948
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
4949
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
4950
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
4951
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
4952
|
+
}
|
|
4953
|
+
}
|
|
4954
|
+
const obj_searchString = obj.searchString;
|
|
4955
|
+
const path_searchString = path + '.searchString';
|
|
4956
|
+
let obj_searchString_union0 = null;
|
|
4957
|
+
const obj_searchString_union0_error = (() => {
|
|
4958
|
+
if (typeof obj_searchString !== 'string') {
|
|
4959
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
4960
|
+
}
|
|
4961
|
+
})();
|
|
4962
|
+
if (obj_searchString_union0_error != null) {
|
|
4963
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
4964
|
+
}
|
|
4965
|
+
let obj_searchString_union1 = null;
|
|
4966
|
+
const obj_searchString_union1_error = (() => {
|
|
4967
|
+
if (obj_searchString !== null) {
|
|
4968
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
4969
|
+
}
|
|
4970
|
+
})();
|
|
4971
|
+
if (obj_searchString_union1_error != null) {
|
|
4972
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
4973
|
+
}
|
|
4974
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
4975
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
4976
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4977
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4978
|
+
return new TypeError(message);
|
|
4979
|
+
}
|
|
4980
|
+
})();
|
|
4981
|
+
return v_error === undefined ? null : v_error;
|
|
4982
|
+
}
|
|
4983
|
+
const RepresentationType$6 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
4984
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
4985
|
+
const input_conversationInfos = input.conversationInfos;
|
|
4986
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
4987
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
4988
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
4989
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
4990
|
+
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
4991
|
+
fullPath: input_conversationInfos_item_id,
|
|
4992
|
+
propertyName: i,
|
|
4993
|
+
parent: {
|
|
4994
|
+
data: input,
|
|
4995
|
+
key: path.fullPath,
|
|
4996
|
+
existing: existing,
|
|
4997
|
+
},
|
|
4998
|
+
ttl: path.ttl
|
|
4999
|
+
}, luvio, store, timestamp);
|
|
5000
|
+
}
|
|
5001
|
+
return input;
|
|
5002
|
+
}
|
|
5003
|
+
const select$o = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
5004
|
+
return {
|
|
5005
|
+
kind: 'Fragment',
|
|
5006
|
+
version: VERSION$6,
|
|
5007
|
+
private: [],
|
|
5008
|
+
selections: [
|
|
5009
|
+
{
|
|
5010
|
+
name: 'conversationInfos',
|
|
5011
|
+
kind: 'Link',
|
|
5012
|
+
plural: true,
|
|
5013
|
+
fragment: select$D()
|
|
5014
|
+
},
|
|
5015
|
+
{
|
|
5016
|
+
name: 'searchString',
|
|
5017
|
+
kind: 'Scalar'
|
|
5018
|
+
}
|
|
5019
|
+
]
|
|
5020
|
+
};
|
|
5021
|
+
};
|
|
5022
|
+
function equals$6(existing, incoming) {
|
|
5023
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
5024
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
5025
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
5026
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
5027
|
+
return false;
|
|
5028
|
+
}
|
|
5029
|
+
});
|
|
5030
|
+
if (equals_conversationInfos_items === false) {
|
|
5031
|
+
return false;
|
|
5032
|
+
}
|
|
5033
|
+
const existing_searchString = existing.searchString;
|
|
5034
|
+
const incoming_searchString = incoming.searchString;
|
|
5035
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
5036
|
+
return false;
|
|
5037
|
+
}
|
|
5038
|
+
return true;
|
|
5039
|
+
}
|
|
5040
|
+
const ingest$6 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5041
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5042
|
+
const validateError = validate$6(input);
|
|
5043
|
+
if (validateError !== null) {
|
|
5044
|
+
throw validateError;
|
|
5045
|
+
}
|
|
5046
|
+
}
|
|
5047
|
+
const key = path.fullPath;
|
|
5048
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5049
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
|
|
5050
|
+
return createLink(key);
|
|
5051
|
+
};
|
|
5052
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
5053
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5054
|
+
const rootKey = fullPathFactory();
|
|
5055
|
+
rootKeySet.set(rootKey, {
|
|
5056
|
+
namespace: keyPrefix,
|
|
5057
|
+
representationName: RepresentationType$6,
|
|
5058
|
+
mergeable: false
|
|
5059
|
+
});
|
|
5060
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
5061
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
5062
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
5063
|
+
}
|
|
5064
|
+
}
|
|
5065
|
+
|
|
5066
|
+
function select$n(luvio, params) {
|
|
5067
|
+
return select$o();
|
|
5068
|
+
}
|
|
5069
|
+
function keyBuilder$p(luvio, params) {
|
|
5070
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'channelIds:' + params.queryParams.channelIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5071
|
+
}
|
|
5072
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
5073
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
|
|
5074
|
+
}
|
|
5075
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
5076
|
+
const { body } = response;
|
|
5077
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
5078
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5079
|
+
const snapshot = luvio.storeLookup({
|
|
5080
|
+
recordId: key,
|
|
5081
|
+
node: select$n(),
|
|
5082
|
+
variables: {},
|
|
5083
|
+
}, snapshotRefresh);
|
|
5084
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5085
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
5086
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5087
|
+
}
|
|
5088
|
+
}
|
|
5089
|
+
deepFreeze(snapshot.data);
|
|
5090
|
+
return snapshot;
|
|
5091
|
+
}
|
|
5092
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
5093
|
+
const key = keyBuilder$p(luvio, params);
|
|
5094
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5095
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
5096
|
+
return errorSnapshot;
|
|
5097
|
+
}
|
|
5098
|
+
function createResourceRequest$h(config) {
|
|
5099
|
+
const headers = {};
|
|
5100
|
+
return {
|
|
5101
|
+
baseUri: '/services/data/v65.0',
|
|
5102
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channels',
|
|
5103
|
+
method: 'get',
|
|
5104
|
+
body: null,
|
|
5105
|
+
urlParams: config.urlParams,
|
|
5106
|
+
queryParams: config.queryParams,
|
|
5107
|
+
headers,
|
|
5108
|
+
priority: 'normal',
|
|
5109
|
+
};
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
const adapterName$h = 'getSlackConversationInfos';
|
|
5113
|
+
const getSlackConversationInfos_ConfigPropertyMetadata = [
|
|
5114
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5115
|
+
generateParamConfigMetadata('channelIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5116
|
+
];
|
|
5117
|
+
const getSlackConversationInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5118
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$o(getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5119
|
+
function keyBuilder$o(luvio, config) {
|
|
5120
|
+
const resourceParams = createResourceParams$h(config);
|
|
5121
|
+
return keyBuilder$p(luvio, resourceParams);
|
|
5122
|
+
}
|
|
5123
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
5124
|
+
const config = {};
|
|
5125
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationInfos_ConfigPropertyMetadata);
|
|
5126
|
+
return config;
|
|
5127
|
+
}
|
|
5128
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
5129
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
5130
|
+
return null;
|
|
5131
|
+
}
|
|
5132
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
5133
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
5134
|
+
}
|
|
5135
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
5136
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5137
|
+
return null;
|
|
5138
|
+
}
|
|
5139
|
+
return config;
|
|
5140
|
+
}
|
|
5141
|
+
function adapterFragment$a(luvio, config) {
|
|
5142
|
+
createResourceParams$h(config);
|
|
5143
|
+
return select$n();
|
|
5144
|
+
}
|
|
5145
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
5146
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
5147
|
+
config,
|
|
5148
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
5149
|
+
});
|
|
5150
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5151
|
+
}
|
|
5152
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
5153
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
5154
|
+
config,
|
|
5155
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
5156
|
+
});
|
|
5157
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
5158
|
+
}
|
|
5159
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
5160
|
+
const resourceParams = createResourceParams$h(config);
|
|
5161
|
+
const request = createResourceRequest$h(resourceParams);
|
|
5162
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
5163
|
+
.then((response) => {
|
|
5164
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
5165
|
+
const cache = new StoreKeyMap();
|
|
5166
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
5167
|
+
return cache;
|
|
5168
|
+
});
|
|
5169
|
+
}, (response) => {
|
|
5170
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
5171
|
+
});
|
|
5172
|
+
}
|
|
5173
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
5174
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
5175
|
+
}
|
|
5176
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
5177
|
+
const { luvio, config } = context;
|
|
5178
|
+
const selector = {
|
|
5179
|
+
recordId: keyBuilder$o(luvio, config),
|
|
5180
|
+
node: adapterFragment$a(luvio, config),
|
|
5181
|
+
variables: {},
|
|
5182
|
+
};
|
|
5183
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
5184
|
+
config,
|
|
5185
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
5186
|
+
});
|
|
5187
|
+
return cacheSnapshot;
|
|
5188
|
+
}
|
|
5189
|
+
const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge__getSlackConversationInfos(untrustedConfig, requestContext) {
|
|
5190
|
+
const config = validateAdapterConfig$h(untrustedConfig, getSlackConversationInfos_ConfigPropertyNames);
|
|
5191
|
+
// Invalid or incomplete config
|
|
5192
|
+
if (config === null) {
|
|
5193
|
+
return null;
|
|
5194
|
+
}
|
|
5195
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5196
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
5197
|
+
};
|
|
5198
|
+
|
|
5199
|
+
function select$m(luvio, params) {
|
|
5200
|
+
return select$H();
|
|
5201
|
+
}
|
|
5202
|
+
function keyBuilder$n(luvio, params) {
|
|
5203
|
+
return keyBuilder$F(luvio, {
|
|
5204
|
+
channelId: params.urlParams.channelId
|
|
4663
5205
|
});
|
|
4664
5206
|
}
|
|
4665
5207
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -4671,7 +5213,7 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4671
5213
|
luvio.storeIngest(key, ingest$h, body);
|
|
4672
5214
|
const snapshot = luvio.storeLookup({
|
|
4673
5215
|
recordId: key,
|
|
4674
|
-
node: select$
|
|
5216
|
+
node: select$m(),
|
|
4675
5217
|
variables: {},
|
|
4676
5218
|
}, snapshotRefresh);
|
|
4677
5219
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4691,7 +5233,7 @@ function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
|
4691
5233
|
function createResourceRequest$g(config) {
|
|
4692
5234
|
const headers = {};
|
|
4693
5235
|
return {
|
|
4694
|
-
baseUri: '/services/data/
|
|
5236
|
+
baseUri: '/services/data/v65.0',
|
|
4695
5237
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
|
|
4696
5238
|
method: 'get',
|
|
4697
5239
|
body: null,
|
|
@@ -4716,14 +5258,14 @@ const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
4716
5258
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4717
5259
|
];
|
|
4718
5260
|
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4719
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
5261
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$o(getSlackConversationMember_ConfigPropertyMetadata);
|
|
4720
5262
|
function keyBuilder$m(luvio, config) {
|
|
4721
5263
|
const resourceParams = createResourceParams$g(config);
|
|
4722
5264
|
return keyBuilder$n(luvio, resourceParams);
|
|
4723
5265
|
}
|
|
4724
5266
|
function typeCheckConfig$g(untrustedConfig) {
|
|
4725
5267
|
const config = {};
|
|
4726
|
-
typeCheckConfig$
|
|
5268
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4727
5269
|
return config;
|
|
4728
5270
|
}
|
|
4729
5271
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -4741,7 +5283,7 @@ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
|
4741
5283
|
}
|
|
4742
5284
|
function adapterFragment$9(luvio, config) {
|
|
4743
5285
|
createResourceParams$g(config);
|
|
4744
|
-
return select$
|
|
5286
|
+
return select$m();
|
|
4745
5287
|
}
|
|
4746
5288
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4747
5289
|
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
@@ -4772,7 +5314,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
4772
5314
|
});
|
|
4773
5315
|
}
|
|
4774
5316
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4775
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5317
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
4776
5318
|
}
|
|
4777
5319
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4778
5320
|
const { luvio, config } = context;
|
|
@@ -4798,7 +5340,7 @@ const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge
|
|
|
4798
5340
|
};
|
|
4799
5341
|
const notifyChangeFactory$5 = (luvio, options) => {
|
|
4800
5342
|
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamIdNotifyChange(configs) {
|
|
4801
|
-
const keys = configs.map(c => keyBuilder$
|
|
5343
|
+
const keys = configs.map(c => keyBuilder$F(luvio, c));
|
|
4802
5344
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4803
5345
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4804
5346
|
const { key, record: val } = entries[i];
|
|
@@ -4826,8 +5368,8 @@ const notifyChangeFactory$5 = (luvio, options) => {
|
|
|
4826
5368
|
};
|
|
4827
5369
|
};
|
|
4828
5370
|
|
|
4829
|
-
const VERSION$
|
|
4830
|
-
function validate$
|
|
5371
|
+
const VERSION$5 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
5372
|
+
function validate$5(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
4831
5373
|
const v_error = (() => {
|
|
4832
5374
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4833
5375
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4878,9 +5420,9 @@ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
4878
5420
|
})();
|
|
4879
5421
|
return v_error === undefined ? null : v_error;
|
|
4880
5422
|
}
|
|
4881
|
-
const RepresentationType$
|
|
5423
|
+
const RepresentationType$5 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
4882
5424
|
function keyBuilder$l(luvio, config) {
|
|
4883
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5425
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
|
|
4884
5426
|
}
|
|
4885
5427
|
function keyBuilderFromType$3(luvio, object) {
|
|
4886
5428
|
const keyParams = {
|
|
@@ -4888,13 +5430,13 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
4888
5430
|
};
|
|
4889
5431
|
return keyBuilder$l(luvio, keyParams);
|
|
4890
5432
|
}
|
|
4891
|
-
function normalize$
|
|
5433
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
4892
5434
|
return input;
|
|
4893
5435
|
}
|
|
4894
|
-
const select$
|
|
5436
|
+
const select$l = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
4895
5437
|
return {
|
|
4896
5438
|
kind: 'Fragment',
|
|
4897
|
-
version: VERSION$
|
|
5439
|
+
version: VERSION$5,
|
|
4898
5440
|
private: [],
|
|
4899
5441
|
selections: [
|
|
4900
5442
|
{
|
|
@@ -4913,7 +5455,7 @@ const select$m = function SlackBridgeConversationMembersOutputRepresentationSele
|
|
|
4913
5455
|
]
|
|
4914
5456
|
};
|
|
4915
5457
|
};
|
|
4916
|
-
function equals$
|
|
5458
|
+
function equals$5(existing, incoming) {
|
|
4917
5459
|
const existing_channelId = existing.channelId;
|
|
4918
5460
|
const incoming_channelId = incoming.channelId;
|
|
4919
5461
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -4936,30 +5478,30 @@ function equals$6(existing, incoming) {
|
|
|
4936
5478
|
}
|
|
4937
5479
|
return true;
|
|
4938
5480
|
}
|
|
4939
|
-
const ingest$
|
|
5481
|
+
const ingest$5 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4940
5482
|
if (process.env.NODE_ENV !== 'production') {
|
|
4941
|
-
const validateError = validate$
|
|
5483
|
+
const validateError = validate$5(input);
|
|
4942
5484
|
if (validateError !== null) {
|
|
4943
5485
|
throw validateError;
|
|
4944
5486
|
}
|
|
4945
5487
|
}
|
|
4946
5488
|
const key = keyBuilderFromType$3(luvio, input);
|
|
4947
5489
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4948
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5490
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SlackBridge", VERSION$5, RepresentationType$5, equals$5);
|
|
4949
5491
|
return createLink(key);
|
|
4950
5492
|
};
|
|
4951
|
-
function getTypeCacheKeys$
|
|
5493
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
4952
5494
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4953
5495
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
4954
5496
|
rootKeySet.set(rootKey, {
|
|
4955
5497
|
namespace: keyPrefix,
|
|
4956
|
-
representationName: RepresentationType$
|
|
5498
|
+
representationName: RepresentationType$5,
|
|
4957
5499
|
mergeable: false
|
|
4958
5500
|
});
|
|
4959
5501
|
}
|
|
4960
5502
|
|
|
4961
|
-
function select$
|
|
4962
|
-
return select$
|
|
5503
|
+
function select$k(luvio, params) {
|
|
5504
|
+
return select$l();
|
|
4963
5505
|
}
|
|
4964
5506
|
function keyBuilder$k(luvio, params) {
|
|
4965
5507
|
return keyBuilder$l(luvio, {
|
|
@@ -4967,15 +5509,15 @@ function keyBuilder$k(luvio, params) {
|
|
|
4967
5509
|
});
|
|
4968
5510
|
}
|
|
4969
5511
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
4970
|
-
getTypeCacheKeys$
|
|
5512
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
4971
5513
|
}
|
|
4972
5514
|
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
4973
5515
|
const { body } = response;
|
|
4974
5516
|
const key = keyBuilder$k(luvio, resourceParams);
|
|
4975
|
-
luvio.storeIngest(key, ingest$
|
|
5517
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
4976
5518
|
const snapshot = luvio.storeLookup({
|
|
4977
5519
|
recordId: key,
|
|
4978
|
-
node: select$
|
|
5520
|
+
node: select$k(),
|
|
4979
5521
|
variables: {},
|
|
4980
5522
|
}, snapshotRefresh);
|
|
4981
5523
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4995,7 +5537,7 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
4995
5537
|
function createResourceRequest$f(config) {
|
|
4996
5538
|
const headers = {};
|
|
4997
5539
|
return {
|
|
4998
|
-
baseUri: '/services/data/
|
|
5540
|
+
baseUri: '/services/data/v65.0',
|
|
4999
5541
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
|
|
5000
5542
|
method: 'get',
|
|
5001
5543
|
body: null,
|
|
@@ -5019,14 +5561,14 @@ const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
5019
5561
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5020
5562
|
];
|
|
5021
5563
|
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5022
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
5564
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$o(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5023
5565
|
function keyBuilder$j(luvio, config) {
|
|
5024
5566
|
const resourceParams = createResourceParams$f(config);
|
|
5025
5567
|
return keyBuilder$k(luvio, resourceParams);
|
|
5026
5568
|
}
|
|
5027
5569
|
function typeCheckConfig$f(untrustedConfig) {
|
|
5028
5570
|
const config = {};
|
|
5029
|
-
typeCheckConfig$
|
|
5571
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5030
5572
|
return config;
|
|
5031
5573
|
}
|
|
5032
5574
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -5044,7 +5586,7 @@ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
|
5044
5586
|
}
|
|
5045
5587
|
function adapterFragment$8(luvio, config) {
|
|
5046
5588
|
createResourceParams$f(config);
|
|
5047
|
-
return select$
|
|
5589
|
+
return select$k();
|
|
5048
5590
|
}
|
|
5049
5591
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
5050
5592
|
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
@@ -5075,7 +5617,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5075
5617
|
});
|
|
5076
5618
|
}
|
|
5077
5619
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5078
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5620
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
5079
5621
|
}
|
|
5080
5622
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5081
5623
|
const { luvio, config } = context;
|
|
@@ -5110,11 +5652,11 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
5110
5652
|
.then((response) => {
|
|
5111
5653
|
return luvio.handleSuccessResponse(() => {
|
|
5112
5654
|
const { body } = response;
|
|
5113
|
-
luvio.storeIngest(key, ingest$
|
|
5655
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
5114
5656
|
return luvio.storeBroadcast();
|
|
5115
5657
|
}, () => {
|
|
5116
5658
|
const cache = new StoreKeyMap();
|
|
5117
|
-
getTypeCacheKeys$
|
|
5659
|
+
getTypeCacheKeys$5(cache, luvio, response.body);
|
|
5118
5660
|
return cache;
|
|
5119
5661
|
});
|
|
5120
5662
|
}, (error) => {
|
|
@@ -5129,11 +5671,11 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
5129
5671
|
};
|
|
5130
5672
|
};
|
|
5131
5673
|
|
|
5132
|
-
function select$
|
|
5133
|
-
return select$
|
|
5674
|
+
function select$j(luvio, params) {
|
|
5675
|
+
return select$u();
|
|
5134
5676
|
}
|
|
5135
5677
|
function keyBuilder$i(luvio, params) {
|
|
5136
|
-
return keyBuilder$
|
|
5678
|
+
return keyBuilder$v(luvio, {
|
|
5137
5679
|
name: params.urlParams.slackEmojiId
|
|
5138
5680
|
});
|
|
5139
5681
|
}
|
|
@@ -5146,7 +5688,7 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5146
5688
|
luvio.storeIngest(key, ingest$a, body);
|
|
5147
5689
|
const snapshot = luvio.storeLookup({
|
|
5148
5690
|
recordId: key,
|
|
5149
|
-
node: select$
|
|
5691
|
+
node: select$j(),
|
|
5150
5692
|
variables: {},
|
|
5151
5693
|
}, snapshotRefresh);
|
|
5152
5694
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5172,7 +5714,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
5172
5714
|
function createResourceRequest$e(config) {
|
|
5173
5715
|
const headers = {};
|
|
5174
5716
|
return {
|
|
5175
|
-
baseUri: '/services/data/
|
|
5717
|
+
baseUri: '/services/data/v65.0',
|
|
5176
5718
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/emojis/' + config.urlParams.slackEmojiId + '',
|
|
5177
5719
|
method: 'get',
|
|
5178
5720
|
body: null,
|
|
@@ -5196,14 +5738,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
5196
5738
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5197
5739
|
];
|
|
5198
5740
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackEmoji_ConfigPropertyMetadata);
|
|
5199
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
5741
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$o(getSlackEmoji_ConfigPropertyMetadata);
|
|
5200
5742
|
function keyBuilder$h(luvio, config) {
|
|
5201
5743
|
const resourceParams = createResourceParams$e(config);
|
|
5202
5744
|
return keyBuilder$i(luvio, resourceParams);
|
|
5203
5745
|
}
|
|
5204
5746
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5205
5747
|
const config = {};
|
|
5206
|
-
typeCheckConfig$
|
|
5748
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
5207
5749
|
return config;
|
|
5208
5750
|
}
|
|
5209
5751
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -5221,7 +5763,7 @@ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
|
5221
5763
|
}
|
|
5222
5764
|
function adapterFragment$7(luvio, config) {
|
|
5223
5765
|
createResourceParams$e(config);
|
|
5224
|
-
return select$
|
|
5766
|
+
return select$j();
|
|
5225
5767
|
}
|
|
5226
5768
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
5227
5769
|
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
@@ -5252,7 +5794,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
5252
5794
|
});
|
|
5253
5795
|
}
|
|
5254
5796
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5255
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5797
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
5256
5798
|
}
|
|
5257
5799
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5258
5800
|
const { luvio, config } = context;
|
|
@@ -5278,7 +5820,7 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
5278
5820
|
};
|
|
5279
5821
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
5280
5822
|
return function getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamIdNotifyChange(configs) {
|
|
5281
|
-
const keys = configs.map(c => keyBuilder$
|
|
5823
|
+
const keys = configs.map(c => keyBuilder$v(luvio, c));
|
|
5282
5824
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5283
5825
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5284
5826
|
const { key, record: val } = entries[i];
|
|
@@ -5311,8 +5853,8 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
5311
5853
|
};
|
|
5312
5854
|
};
|
|
5313
5855
|
|
|
5314
|
-
const VERSION$
|
|
5315
|
-
function validate$
|
|
5856
|
+
const VERSION$4 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
5857
|
+
function validate$4(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
5316
5858
|
const v_error = (() => {
|
|
5317
5859
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5318
5860
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5332,8 +5874,8 @@ function validate$5(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
5332
5874
|
})();
|
|
5333
5875
|
return v_error === undefined ? null : v_error;
|
|
5334
5876
|
}
|
|
5335
|
-
const RepresentationType$
|
|
5336
|
-
function normalize$
|
|
5877
|
+
const RepresentationType$4 = 'SlackBridgeEmojisOutputRepresentation';
|
|
5878
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5337
5879
|
const input_emojis = input.emojis;
|
|
5338
5880
|
const input_emojis_id = path.fullPath + '__emojis';
|
|
5339
5881
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
@@ -5352,22 +5894,22 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
5352
5894
|
}
|
|
5353
5895
|
return input;
|
|
5354
5896
|
}
|
|
5355
|
-
const select$
|
|
5897
|
+
const select$i = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
5356
5898
|
return {
|
|
5357
5899
|
kind: 'Fragment',
|
|
5358
|
-
version: VERSION$
|
|
5900
|
+
version: VERSION$4,
|
|
5359
5901
|
private: [],
|
|
5360
5902
|
selections: [
|
|
5361
5903
|
{
|
|
5362
5904
|
name: 'emojis',
|
|
5363
5905
|
kind: 'Link',
|
|
5364
5906
|
plural: true,
|
|
5365
|
-
fragment: select$
|
|
5907
|
+
fragment: select$u()
|
|
5366
5908
|
}
|
|
5367
5909
|
]
|
|
5368
5910
|
};
|
|
5369
5911
|
};
|
|
5370
|
-
function equals$
|
|
5912
|
+
function equals$4(existing, incoming) {
|
|
5371
5913
|
const existing_emojis = existing.emojis;
|
|
5372
5914
|
const incoming_emojis = incoming.emojis;
|
|
5373
5915
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
@@ -5380,24 +5922,24 @@ function equals$5(existing, incoming) {
|
|
|
5380
5922
|
}
|
|
5381
5923
|
return true;
|
|
5382
5924
|
}
|
|
5383
|
-
const ingest$
|
|
5925
|
+
const ingest$4 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5384
5926
|
if (process.env.NODE_ENV !== 'production') {
|
|
5385
|
-
const validateError = validate$
|
|
5927
|
+
const validateError = validate$4(input);
|
|
5386
5928
|
if (validateError !== null) {
|
|
5387
5929
|
throw validateError;
|
|
5388
5930
|
}
|
|
5389
5931
|
}
|
|
5390
5932
|
const key = path.fullPath;
|
|
5391
5933
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5392
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5934
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SlackBridge", VERSION$4, RepresentationType$4, equals$4);
|
|
5393
5935
|
return createLink(key);
|
|
5394
5936
|
};
|
|
5395
|
-
function getTypeCacheKeys$
|
|
5937
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
5396
5938
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5397
5939
|
const rootKey = fullPathFactory();
|
|
5398
5940
|
rootKeySet.set(rootKey, {
|
|
5399
5941
|
namespace: keyPrefix,
|
|
5400
|
-
representationName: RepresentationType$
|
|
5942
|
+
representationName: RepresentationType$4,
|
|
5401
5943
|
mergeable: false
|
|
5402
5944
|
});
|
|
5403
5945
|
const input_emojis_length = input.emojis.length;
|
|
@@ -5406,22 +5948,22 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5406
5948
|
}
|
|
5407
5949
|
}
|
|
5408
5950
|
|
|
5409
|
-
function select$
|
|
5410
|
-
return select$
|
|
5951
|
+
function select$h(luvio, params) {
|
|
5952
|
+
return select$i();
|
|
5411
5953
|
}
|
|
5412
5954
|
function keyBuilder$g(luvio, params) {
|
|
5413
5955
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5414
5956
|
}
|
|
5415
5957
|
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
5416
|
-
getTypeCacheKeys$
|
|
5958
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
5417
5959
|
}
|
|
5418
5960
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
5419
5961
|
const { body } = response;
|
|
5420
5962
|
const key = keyBuilder$g(luvio, resourceParams);
|
|
5421
|
-
luvio.storeIngest(key, ingest$
|
|
5963
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5422
5964
|
const snapshot = luvio.storeLookup({
|
|
5423
5965
|
recordId: key,
|
|
5424
|
-
node: select$
|
|
5966
|
+
node: select$h(),
|
|
5425
5967
|
variables: {},
|
|
5426
5968
|
}, snapshotRefresh);
|
|
5427
5969
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5441,7 +5983,7 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
5441
5983
|
function createResourceRequest$d(config) {
|
|
5442
5984
|
const headers = {};
|
|
5443
5985
|
return {
|
|
5444
|
-
baseUri: '/services/data/
|
|
5986
|
+
baseUri: '/services/data/v65.0',
|
|
5445
5987
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/emojis',
|
|
5446
5988
|
method: 'get',
|
|
5447
5989
|
body: null,
|
|
@@ -5458,14 +6000,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
5458
6000
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5459
6001
|
];
|
|
5460
6002
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackEmojis_ConfigPropertyMetadata);
|
|
5461
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
6003
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$o(getSlackEmojis_ConfigPropertyMetadata);
|
|
5462
6004
|
function keyBuilder$f(luvio, config) {
|
|
5463
6005
|
const resourceParams = createResourceParams$d(config);
|
|
5464
6006
|
return keyBuilder$g(luvio, resourceParams);
|
|
5465
6007
|
}
|
|
5466
6008
|
function typeCheckConfig$d(untrustedConfig) {
|
|
5467
6009
|
const config = {};
|
|
5468
|
-
typeCheckConfig$
|
|
6010
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
5469
6011
|
return config;
|
|
5470
6012
|
}
|
|
5471
6013
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -5483,7 +6025,7 @@ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
|
5483
6025
|
}
|
|
5484
6026
|
function adapterFragment$6(luvio, config) {
|
|
5485
6027
|
createResourceParams$d(config);
|
|
5486
|
-
return select$
|
|
6028
|
+
return select$h();
|
|
5487
6029
|
}
|
|
5488
6030
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
5489
6031
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
@@ -5514,7 +6056,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5514
6056
|
});
|
|
5515
6057
|
}
|
|
5516
6058
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5517
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6059
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5518
6060
|
}
|
|
5519
6061
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5520
6062
|
const { luvio, config } = context;
|
|
@@ -5539,11 +6081,11 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
5539
6081
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
5540
6082
|
};
|
|
5541
6083
|
|
|
5542
|
-
function select$
|
|
5543
|
-
return select$
|
|
6084
|
+
function select$g(luvio, params) {
|
|
6085
|
+
return select$G();
|
|
5544
6086
|
}
|
|
5545
6087
|
function keyBuilder$e(luvio, params) {
|
|
5546
|
-
return keyBuilder$
|
|
6088
|
+
return keyBuilder$D(luvio, {
|
|
5547
6089
|
channelId: params.urlParams.channelId
|
|
5548
6090
|
});
|
|
5549
6091
|
}
|
|
@@ -5556,7 +6098,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5556
6098
|
luvio.storeIngest(key, ingest$g, body);
|
|
5557
6099
|
const snapshot = luvio.storeLookup({
|
|
5558
6100
|
recordId: key,
|
|
5559
|
-
node: select$
|
|
6101
|
+
node: select$g(),
|
|
5560
6102
|
variables: {},
|
|
5561
6103
|
}, snapshotRefresh);
|
|
5562
6104
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5576,7 +6118,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
5576
6118
|
function createResourceRequest$c(config) {
|
|
5577
6119
|
const headers = {};
|
|
5578
6120
|
return {
|
|
5579
|
-
baseUri: '/services/data/
|
|
6121
|
+
baseUri: '/services/data/v65.0',
|
|
5580
6122
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '',
|
|
5581
6123
|
method: 'get',
|
|
5582
6124
|
body: null,
|
|
@@ -5601,14 +6143,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
5601
6143
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5602
6144
|
];
|
|
5603
6145
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackMessage_ConfigPropertyMetadata);
|
|
5604
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
6146
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$o(getSlackMessage_ConfigPropertyMetadata);
|
|
5605
6147
|
function keyBuilder$d(luvio, config) {
|
|
5606
6148
|
const resourceParams = createResourceParams$c(config);
|
|
5607
6149
|
return keyBuilder$e(luvio, resourceParams);
|
|
5608
6150
|
}
|
|
5609
6151
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5610
6152
|
const config = {};
|
|
5611
|
-
typeCheckConfig$
|
|
6153
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
5612
6154
|
return config;
|
|
5613
6155
|
}
|
|
5614
6156
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5626,7 +6168,7 @@ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
|
5626
6168
|
}
|
|
5627
6169
|
function adapterFragment$5(luvio, config) {
|
|
5628
6170
|
createResourceParams$c(config);
|
|
5629
|
-
return select$
|
|
6171
|
+
return select$g();
|
|
5630
6172
|
}
|
|
5631
6173
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
5632
6174
|
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
@@ -5657,7 +6199,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5657
6199
|
});
|
|
5658
6200
|
}
|
|
5659
6201
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
5660
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6202
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
5661
6203
|
}
|
|
5662
6204
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
5663
6205
|
const { luvio, config } = context;
|
|
@@ -5683,7 +6225,7 @@ const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackM
|
|
|
5683
6225
|
};
|
|
5684
6226
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
5685
6227
|
return function getConnectSlackbridgeTeamChannelMessagesByChannelIdAndMessageTsAndTeamIdNotifyChange(configs) {
|
|
5686
|
-
const keys = configs.map(c => keyBuilder$
|
|
6228
|
+
const keys = configs.map(c => keyBuilder$D(luvio, c));
|
|
5687
6229
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5688
6230
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5689
6231
|
const { key, record: val } = entries[i];
|
|
@@ -5711,8 +6253,8 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
5711
6253
|
};
|
|
5712
6254
|
};
|
|
5713
6255
|
|
|
5714
|
-
const VERSION$
|
|
5715
|
-
function validate$
|
|
6256
|
+
const VERSION$3 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
6257
|
+
function validate$3(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
5716
6258
|
const v_error = (() => {
|
|
5717
6259
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5718
6260
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5735,9 +6277,9 @@ function validate$4(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
5735
6277
|
})();
|
|
5736
6278
|
return v_error === undefined ? null : v_error;
|
|
5737
6279
|
}
|
|
5738
|
-
const RepresentationType$
|
|
6280
|
+
const RepresentationType$3 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
5739
6281
|
function keyBuilder$c(luvio, config) {
|
|
5740
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6282
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.relatedRecordId;
|
|
5741
6283
|
}
|
|
5742
6284
|
function keyBuilderFromType$2(luvio, object) {
|
|
5743
6285
|
const keyParams = {
|
|
@@ -5745,7 +6287,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
5745
6287
|
};
|
|
5746
6288
|
return keyBuilder$c(luvio, keyParams);
|
|
5747
6289
|
}
|
|
5748
|
-
function normalize$
|
|
6290
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
5749
6291
|
const input_conversationInfo = input.conversationInfo;
|
|
5750
6292
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
5751
6293
|
input.conversationInfo = ingest$e(input_conversationInfo, {
|
|
@@ -5760,16 +6302,16 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
5760
6302
|
}, luvio, store, timestamp);
|
|
5761
6303
|
return input;
|
|
5762
6304
|
}
|
|
5763
|
-
const select$
|
|
6305
|
+
const select$f = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
5764
6306
|
return {
|
|
5765
6307
|
kind: 'Fragment',
|
|
5766
|
-
version: VERSION$
|
|
6308
|
+
version: VERSION$3,
|
|
5767
6309
|
private: [],
|
|
5768
6310
|
selections: [
|
|
5769
6311
|
{
|
|
5770
6312
|
name: 'conversationInfo',
|
|
5771
6313
|
kind: 'Link',
|
|
5772
|
-
fragment: select$
|
|
6314
|
+
fragment: select$D()
|
|
5773
6315
|
},
|
|
5774
6316
|
{
|
|
5775
6317
|
name: 'relatedRecordId',
|
|
@@ -5782,7 +6324,7 @@ const select$g = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
5782
6324
|
]
|
|
5783
6325
|
};
|
|
5784
6326
|
};
|
|
5785
|
-
function equals$
|
|
6327
|
+
function equals$3(existing, incoming) {
|
|
5786
6328
|
const existing_relatedRecordId = existing.relatedRecordId;
|
|
5787
6329
|
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
5788
6330
|
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
@@ -5800,31 +6342,31 @@ function equals$4(existing, incoming) {
|
|
|
5800
6342
|
}
|
|
5801
6343
|
return true;
|
|
5802
6344
|
}
|
|
5803
|
-
const ingest$
|
|
6345
|
+
const ingest$3 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5804
6346
|
if (process.env.NODE_ENV !== 'production') {
|
|
5805
|
-
const validateError = validate$
|
|
6347
|
+
const validateError = validate$3(input);
|
|
5806
6348
|
if (validateError !== null) {
|
|
5807
6349
|
throw validateError;
|
|
5808
6350
|
}
|
|
5809
6351
|
}
|
|
5810
6352
|
const key = keyBuilderFromType$2(luvio, input);
|
|
5811
6353
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5812
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6354
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
5813
6355
|
return createLink(key);
|
|
5814
6356
|
};
|
|
5815
|
-
function getTypeCacheKeys$
|
|
6357
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
5816
6358
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5817
6359
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
5818
6360
|
rootKeySet.set(rootKey, {
|
|
5819
6361
|
namespace: keyPrefix,
|
|
5820
|
-
representationName: RepresentationType$
|
|
6362
|
+
representationName: RepresentationType$3,
|
|
5821
6363
|
mergeable: false
|
|
5822
6364
|
});
|
|
5823
6365
|
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
5824
6366
|
}
|
|
5825
6367
|
|
|
5826
|
-
function select$
|
|
5827
|
-
return select$
|
|
6368
|
+
function select$e(luvio, params) {
|
|
6369
|
+
return select$f();
|
|
5828
6370
|
}
|
|
5829
6371
|
function keyBuilder$b(luvio, params) {
|
|
5830
6372
|
return keyBuilder$c(luvio, {
|
|
@@ -5832,15 +6374,15 @@ function keyBuilder$b(luvio, params) {
|
|
|
5832
6374
|
});
|
|
5833
6375
|
}
|
|
5834
6376
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
5835
|
-
getTypeCacheKeys$
|
|
6377
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
5836
6378
|
}
|
|
5837
6379
|
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
5838
6380
|
const { body } = response;
|
|
5839
6381
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
5840
|
-
luvio.storeIngest(key, ingest$
|
|
6382
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5841
6383
|
const snapshot = luvio.storeLookup({
|
|
5842
6384
|
recordId: key,
|
|
5843
|
-
node: select$
|
|
6385
|
+
node: select$e(),
|
|
5844
6386
|
variables: {},
|
|
5845
6387
|
}, snapshotRefresh);
|
|
5846
6388
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5860,7 +6402,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
5860
6402
|
function createResourceRequest$b(config) {
|
|
5861
6403
|
const headers = {};
|
|
5862
6404
|
return {
|
|
5863
|
-
baseUri: '/services/data/
|
|
6405
|
+
baseUri: '/services/data/v65.0',
|
|
5864
6406
|
basePath: '/connect/slackbridge/record_channels/' + config.urlParams.relatedRecordId + '',
|
|
5865
6407
|
method: 'get',
|
|
5866
6408
|
body: null,
|
|
@@ -5883,14 +6425,14 @@ const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
|
5883
6425
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5884
6426
|
];
|
|
5885
6427
|
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5886
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
6428
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$o(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5887
6429
|
function keyBuilder$a(luvio, config) {
|
|
5888
6430
|
const resourceParams = createResourceParams$b(config);
|
|
5889
6431
|
return keyBuilder$b(luvio, resourceParams);
|
|
5890
6432
|
}
|
|
5891
6433
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5892
6434
|
const config = {};
|
|
5893
|
-
typeCheckConfig$
|
|
6435
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5894
6436
|
return config;
|
|
5895
6437
|
}
|
|
5896
6438
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5908,7 +6450,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
|
5908
6450
|
}
|
|
5909
6451
|
function adapterFragment$4(luvio, config) {
|
|
5910
6452
|
createResourceParams$b(config);
|
|
5911
|
-
return select$
|
|
6453
|
+
return select$e();
|
|
5912
6454
|
}
|
|
5913
6455
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
5914
6456
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
@@ -5939,7 +6481,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5939
6481
|
});
|
|
5940
6482
|
}
|
|
5941
6483
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
5942
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6484
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
5943
6485
|
}
|
|
5944
6486
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
5945
6487
|
const { luvio, config } = context;
|
|
@@ -5974,11 +6516,11 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
5974
6516
|
.then((response) => {
|
|
5975
6517
|
return luvio.handleSuccessResponse(() => {
|
|
5976
6518
|
const { body } = response;
|
|
5977
|
-
luvio.storeIngest(key, ingest$
|
|
6519
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5978
6520
|
return luvio.storeBroadcast();
|
|
5979
6521
|
}, () => {
|
|
5980
6522
|
const cache = new StoreKeyMap();
|
|
5981
|
-
getTypeCacheKeys$
|
|
6523
|
+
getTypeCacheKeys$3(cache, luvio, response.body);
|
|
5982
6524
|
return cache;
|
|
5983
6525
|
});
|
|
5984
6526
|
}, (error) => {
|
|
@@ -5993,149 +6535,19 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
5993
6535
|
};
|
|
5994
6536
|
};
|
|
5995
6537
|
|
|
5996
|
-
const VERSION$3 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
5997
|
-
function validate$3(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
5998
|
-
const v_error = (() => {
|
|
5999
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6000
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6001
|
-
}
|
|
6002
|
-
const obj_conversationInfos = obj.conversationInfos;
|
|
6003
|
-
const path_conversationInfos = path + '.conversationInfos';
|
|
6004
|
-
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6005
|
-
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
6006
|
-
}
|
|
6007
|
-
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6008
|
-
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6009
|
-
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6010
|
-
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6011
|
-
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
6012
|
-
}
|
|
6013
|
-
}
|
|
6014
|
-
const obj_searchString = obj.searchString;
|
|
6015
|
-
const path_searchString = path + '.searchString';
|
|
6016
|
-
let obj_searchString_union0 = null;
|
|
6017
|
-
const obj_searchString_union0_error = (() => {
|
|
6018
|
-
if (typeof obj_searchString !== 'string') {
|
|
6019
|
-
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6020
|
-
}
|
|
6021
|
-
})();
|
|
6022
|
-
if (obj_searchString_union0_error != null) {
|
|
6023
|
-
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6024
|
-
}
|
|
6025
|
-
let obj_searchString_union1 = null;
|
|
6026
|
-
const obj_searchString_union1_error = (() => {
|
|
6027
|
-
if (obj_searchString !== null) {
|
|
6028
|
-
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6029
|
-
}
|
|
6030
|
-
})();
|
|
6031
|
-
if (obj_searchString_union1_error != null) {
|
|
6032
|
-
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6033
|
-
}
|
|
6034
|
-
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6035
|
-
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6036
|
-
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6037
|
-
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6038
|
-
return new TypeError(message);
|
|
6039
|
-
}
|
|
6040
|
-
})();
|
|
6041
|
-
return v_error === undefined ? null : v_error;
|
|
6042
|
-
}
|
|
6043
|
-
const RepresentationType$3 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
6044
|
-
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6045
|
-
const input_conversationInfos = input.conversationInfos;
|
|
6046
|
-
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6047
|
-
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6048
|
-
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6049
|
-
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6050
|
-
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
6051
|
-
fullPath: input_conversationInfos_item_id,
|
|
6052
|
-
propertyName: i,
|
|
6053
|
-
parent: {
|
|
6054
|
-
data: input,
|
|
6055
|
-
key: path.fullPath,
|
|
6056
|
-
existing: existing,
|
|
6057
|
-
},
|
|
6058
|
-
ttl: path.ttl
|
|
6059
|
-
}, luvio, store, timestamp);
|
|
6060
|
-
}
|
|
6061
|
-
return input;
|
|
6062
|
-
}
|
|
6063
|
-
const select$e = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
6064
|
-
return {
|
|
6065
|
-
kind: 'Fragment',
|
|
6066
|
-
version: VERSION$3,
|
|
6067
|
-
private: [],
|
|
6068
|
-
selections: [
|
|
6069
|
-
{
|
|
6070
|
-
name: 'conversationInfos',
|
|
6071
|
-
kind: 'Link',
|
|
6072
|
-
plural: true,
|
|
6073
|
-
fragment: select$B()
|
|
6074
|
-
},
|
|
6075
|
-
{
|
|
6076
|
-
name: 'searchString',
|
|
6077
|
-
kind: 'Scalar'
|
|
6078
|
-
}
|
|
6079
|
-
]
|
|
6080
|
-
};
|
|
6081
|
-
};
|
|
6082
|
-
function equals$3(existing, incoming) {
|
|
6083
|
-
const existing_conversationInfos = existing.conversationInfos;
|
|
6084
|
-
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6085
|
-
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6086
|
-
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
6087
|
-
return false;
|
|
6088
|
-
}
|
|
6089
|
-
});
|
|
6090
|
-
if (equals_conversationInfos_items === false) {
|
|
6091
|
-
return false;
|
|
6092
|
-
}
|
|
6093
|
-
const existing_searchString = existing.searchString;
|
|
6094
|
-
const incoming_searchString = incoming.searchString;
|
|
6095
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
6096
|
-
return false;
|
|
6097
|
-
}
|
|
6098
|
-
return true;
|
|
6099
|
-
}
|
|
6100
|
-
const ingest$3 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6101
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6102
|
-
const validateError = validate$3(input);
|
|
6103
|
-
if (validateError !== null) {
|
|
6104
|
-
throw validateError;
|
|
6105
|
-
}
|
|
6106
|
-
}
|
|
6107
|
-
const key = path.fullPath;
|
|
6108
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
6109
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
6110
|
-
return createLink(key);
|
|
6111
|
-
};
|
|
6112
|
-
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
6113
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6114
|
-
const rootKey = fullPathFactory();
|
|
6115
|
-
rootKeySet.set(rootKey, {
|
|
6116
|
-
namespace: keyPrefix,
|
|
6117
|
-
representationName: RepresentationType$3,
|
|
6118
|
-
mergeable: false
|
|
6119
|
-
});
|
|
6120
|
-
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6121
|
-
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6122
|
-
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6123
|
-
}
|
|
6124
|
-
}
|
|
6125
|
-
|
|
6126
6538
|
function select$d(luvio, params) {
|
|
6127
|
-
return select$
|
|
6539
|
+
return select$o();
|
|
6128
6540
|
}
|
|
6129
6541
|
function keyBuilder$9(luvio, params) {
|
|
6130
6542
|
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6131
6543
|
}
|
|
6132
6544
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
6133
|
-
getTypeCacheKeys$
|
|
6545
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
|
|
6134
6546
|
}
|
|
6135
6547
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
6136
6548
|
const { body } = response;
|
|
6137
6549
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
6138
|
-
luvio.storeIngest(key, ingest$
|
|
6550
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
6139
6551
|
const snapshot = luvio.storeLookup({
|
|
6140
6552
|
recordId: key,
|
|
6141
6553
|
node: select$d(),
|
|
@@ -6158,7 +6570,7 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
6158
6570
|
function createResourceRequest$a(config) {
|
|
6159
6571
|
const headers = {};
|
|
6160
6572
|
return {
|
|
6161
|
-
baseUri: '/services/data/
|
|
6573
|
+
baseUri: '/services/data/v65.0',
|
|
6162
6574
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/search/conversations',
|
|
6163
6575
|
method: 'get',
|
|
6164
6576
|
body: null,
|
|
@@ -6175,14 +6587,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
6175
6587
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6176
6588
|
];
|
|
6177
6589
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6178
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
6590
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$o(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6179
6591
|
function keyBuilder$8(luvio, config) {
|
|
6180
6592
|
const resourceParams = createResourceParams$a(config);
|
|
6181
6593
|
return keyBuilder$9(luvio, resourceParams);
|
|
6182
6594
|
}
|
|
6183
6595
|
function typeCheckConfig$a(untrustedConfig) {
|
|
6184
6596
|
const config = {};
|
|
6185
|
-
typeCheckConfig$
|
|
6597
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6186
6598
|
return config;
|
|
6187
6599
|
}
|
|
6188
6600
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6231,7 +6643,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6231
6643
|
});
|
|
6232
6644
|
}
|
|
6233
6645
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6234
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6646
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
6235
6647
|
}
|
|
6236
6648
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6237
6649
|
const { luvio, config } = context;
|
|
@@ -6257,18 +6669,18 @@ const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge
|
|
|
6257
6669
|
};
|
|
6258
6670
|
|
|
6259
6671
|
function select$c(luvio, params) {
|
|
6260
|
-
return select$
|
|
6672
|
+
return select$i();
|
|
6261
6673
|
}
|
|
6262
6674
|
function keyBuilder$7(luvio, params) {
|
|
6263
6675
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6264
6676
|
}
|
|
6265
6677
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
6266
|
-
getTypeCacheKeys$
|
|
6678
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
6267
6679
|
}
|
|
6268
6680
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
6269
6681
|
const { body } = response;
|
|
6270
6682
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
6271
|
-
luvio.storeIngest(key, ingest$
|
|
6683
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
6272
6684
|
const snapshot = luvio.storeLookup({
|
|
6273
6685
|
recordId: key,
|
|
6274
6686
|
node: select$c(),
|
|
@@ -6291,7 +6703,7 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
6291
6703
|
function createResourceRequest$9(config) {
|
|
6292
6704
|
const headers = {};
|
|
6293
6705
|
return {
|
|
6294
|
-
baseUri: '/services/data/
|
|
6706
|
+
baseUri: '/services/data/v65.0',
|
|
6295
6707
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/search/emojis',
|
|
6296
6708
|
method: 'get',
|
|
6297
6709
|
body: null,
|
|
@@ -6308,14 +6720,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
6308
6720
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6309
6721
|
];
|
|
6310
6722
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6311
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
6723
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$o(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6312
6724
|
function keyBuilder$6(luvio, config) {
|
|
6313
6725
|
const resourceParams = createResourceParams$9(config);
|
|
6314
6726
|
return keyBuilder$7(luvio, resourceParams);
|
|
6315
6727
|
}
|
|
6316
6728
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6317
6729
|
const config = {};
|
|
6318
|
-
typeCheckConfig$
|
|
6730
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6319
6731
|
return config;
|
|
6320
6732
|
}
|
|
6321
6733
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6364,7 +6776,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6364
6776
|
});
|
|
6365
6777
|
}
|
|
6366
6778
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6367
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6779
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6368
6780
|
}
|
|
6369
6781
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6370
6782
|
const { luvio, config } = context;
|
|
@@ -6389,12 +6801,38 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
6389
6801
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
6390
6802
|
};
|
|
6391
6803
|
|
|
6392
|
-
const VERSION$2 = "
|
|
6804
|
+
const VERSION$2 = "16b915c502b8a0609446d7ed3907a794";
|
|
6393
6805
|
function validate$2(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
6394
6806
|
const v_error = (() => {
|
|
6395
6807
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6396
6808
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6397
6809
|
}
|
|
6810
|
+
const obj_nextMarker = obj.nextMarker;
|
|
6811
|
+
const path_nextMarker = path + '.nextMarker';
|
|
6812
|
+
let obj_nextMarker_union0 = null;
|
|
6813
|
+
const obj_nextMarker_union0_error = (() => {
|
|
6814
|
+
if (typeof obj_nextMarker !== 'string') {
|
|
6815
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
6816
|
+
}
|
|
6817
|
+
})();
|
|
6818
|
+
if (obj_nextMarker_union0_error != null) {
|
|
6819
|
+
obj_nextMarker_union0 = obj_nextMarker_union0_error.message;
|
|
6820
|
+
}
|
|
6821
|
+
let obj_nextMarker_union1 = null;
|
|
6822
|
+
const obj_nextMarker_union1_error = (() => {
|
|
6823
|
+
if (obj_nextMarker !== null) {
|
|
6824
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextMarker + '" (at "' + path_nextMarker + '")');
|
|
6825
|
+
}
|
|
6826
|
+
})();
|
|
6827
|
+
if (obj_nextMarker_union1_error != null) {
|
|
6828
|
+
obj_nextMarker_union1 = obj_nextMarker_union1_error.message;
|
|
6829
|
+
}
|
|
6830
|
+
if (obj_nextMarker_union0 && obj_nextMarker_union1) {
|
|
6831
|
+
let message = 'Object doesn\'t match union (at "' + path_nextMarker + '")';
|
|
6832
|
+
message += '\n' + obj_nextMarker_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6833
|
+
message += '\n' + obj_nextMarker_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6834
|
+
return new TypeError(message);
|
|
6835
|
+
}
|
|
6398
6836
|
const obj_searchString = obj.searchString;
|
|
6399
6837
|
const path_searchString = path + '.searchString';
|
|
6400
6838
|
let obj_searchString_union0 = null;
|
|
@@ -6462,6 +6900,10 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6462
6900
|
version: VERSION$2,
|
|
6463
6901
|
private: [],
|
|
6464
6902
|
selections: [
|
|
6903
|
+
{
|
|
6904
|
+
name: 'nextMarker',
|
|
6905
|
+
kind: 'Scalar'
|
|
6906
|
+
},
|
|
6465
6907
|
{
|
|
6466
6908
|
name: 'searchString',
|
|
6467
6909
|
kind: 'Scalar'
|
|
@@ -6470,12 +6912,17 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6470
6912
|
name: 'userInfos',
|
|
6471
6913
|
kind: 'Link',
|
|
6472
6914
|
plural: true,
|
|
6473
|
-
fragment: select$
|
|
6915
|
+
fragment: select$t()
|
|
6474
6916
|
}
|
|
6475
6917
|
]
|
|
6476
6918
|
};
|
|
6477
6919
|
};
|
|
6478
6920
|
function equals$2(existing, incoming) {
|
|
6921
|
+
const existing_nextMarker = existing.nextMarker;
|
|
6922
|
+
const incoming_nextMarker = incoming.nextMarker;
|
|
6923
|
+
if (!(existing_nextMarker === incoming_nextMarker)) {
|
|
6924
|
+
return false;
|
|
6925
|
+
}
|
|
6479
6926
|
const existing_searchString = existing.searchString;
|
|
6480
6927
|
const incoming_searchString = incoming.searchString;
|
|
6481
6928
|
if (!(existing_searchString === incoming_searchString)) {
|
|
@@ -6554,7 +7001,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
6554
7001
|
function createResourceRequest$8(config) {
|
|
6555
7002
|
const headers = {};
|
|
6556
7003
|
return {
|
|
6557
|
-
baseUri: '/services/data/
|
|
7004
|
+
baseUri: '/services/data/v65.0',
|
|
6558
7005
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/search/users',
|
|
6559
7006
|
method: 'get',
|
|
6560
7007
|
body: null,
|
|
@@ -6574,14 +7021,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
6574
7021
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6575
7022
|
];
|
|
6576
7023
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6577
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
7024
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$o(getSlackSearchUser_ConfigPropertyMetadata);
|
|
6578
7025
|
function keyBuilder$4(luvio, config) {
|
|
6579
7026
|
const resourceParams = createResourceParams$8(config);
|
|
6580
7027
|
return keyBuilder$5(luvio, resourceParams);
|
|
6581
7028
|
}
|
|
6582
7029
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6583
7030
|
const config = {};
|
|
6584
|
-
typeCheckConfig$
|
|
7031
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6585
7032
|
return config;
|
|
6586
7033
|
}
|
|
6587
7034
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -6630,7 +7077,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6630
7077
|
});
|
|
6631
7078
|
}
|
|
6632
7079
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6633
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7080
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
6634
7081
|
}
|
|
6635
7082
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6636
7083
|
const { luvio, config } = context;
|
|
@@ -6656,10 +7103,10 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
6656
7103
|
};
|
|
6657
7104
|
|
|
6658
7105
|
function select$9(luvio, params) {
|
|
6659
|
-
return select$
|
|
7106
|
+
return select$t();
|
|
6660
7107
|
}
|
|
6661
7108
|
function keyBuilder$3(luvio, params) {
|
|
6662
|
-
return keyBuilder$
|
|
7109
|
+
return keyBuilder$u(luvio, {
|
|
6663
7110
|
slackUserId: params.urlParams.slackUserId
|
|
6664
7111
|
});
|
|
6665
7112
|
}
|
|
@@ -6698,7 +7145,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
6698
7145
|
function createResourceRequest$7(config) {
|
|
6699
7146
|
const headers = {};
|
|
6700
7147
|
return {
|
|
6701
|
-
baseUri: '/services/data/
|
|
7148
|
+
baseUri: '/services/data/v65.0',
|
|
6702
7149
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/user/' + config.urlParams.slackUserId + '',
|
|
6703
7150
|
method: 'get',
|
|
6704
7151
|
body: null,
|
|
@@ -6722,14 +7169,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
6722
7169
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6723
7170
|
];
|
|
6724
7171
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackUser_ConfigPropertyMetadata);
|
|
6725
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7172
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$o(getSlackUser_ConfigPropertyMetadata);
|
|
6726
7173
|
function keyBuilder$2(luvio, config) {
|
|
6727
7174
|
const resourceParams = createResourceParams$7(config);
|
|
6728
7175
|
return keyBuilder$3(luvio, resourceParams);
|
|
6729
7176
|
}
|
|
6730
7177
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6731
7178
|
const config = {};
|
|
6732
|
-
typeCheckConfig$
|
|
7179
|
+
typeCheckConfig$o(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
6733
7180
|
return config;
|
|
6734
7181
|
}
|
|
6735
7182
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6778,7 +7225,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6778
7225
|
});
|
|
6779
7226
|
}
|
|
6780
7227
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6781
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7228
|
+
return buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6782
7229
|
}
|
|
6783
7230
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6784
7231
|
const { luvio, config } = context;
|
|
@@ -6804,7 +7251,7 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
6804
7251
|
};
|
|
6805
7252
|
const notifyChangeFactory = (luvio, options) => {
|
|
6806
7253
|
return function getConnectSlackbridgeTeamUserBySlackUserIdAndTeamIdNotifyChange(configs) {
|
|
6807
|
-
const keys = configs.map(c => keyBuilder$
|
|
7254
|
+
const keys = configs.map(c => keyBuilder$u(luvio, c));
|
|
6808
7255
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
6809
7256
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
6810
7257
|
const { key, record: val } = entries[i];
|
|
@@ -6838,7 +7285,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
6838
7285
|
};
|
|
6839
7286
|
|
|
6840
7287
|
function select$8(luvio, params) {
|
|
6841
|
-
return select$
|
|
7288
|
+
return select$G();
|
|
6842
7289
|
}
|
|
6843
7290
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6844
7291
|
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
@@ -6863,7 +7310,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
6863
7310
|
function createResourceRequest$6(config) {
|
|
6864
7311
|
const headers = {};
|
|
6865
7312
|
return {
|
|
6866
|
-
baseUri: '/services/data/
|
|
7313
|
+
baseUri: '/services/data/v65.0',
|
|
6867
7314
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '',
|
|
6868
7315
|
method: 'patch',
|
|
6869
7316
|
body: config.body,
|
|
@@ -6882,10 +7329,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
6882
7329
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
6883
7330
|
];
|
|
6884
7331
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
|
|
6885
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7332
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$o(patchSlackMessage_ConfigPropertyMetadata);
|
|
6886
7333
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6887
7334
|
const config = {};
|
|
6888
|
-
typeCheckConfig$
|
|
7335
|
+
typeCheckConfig$o(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
6889
7336
|
return config;
|
|
6890
7337
|
}
|
|
6891
7338
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6992,7 +7439,7 @@ const select$7 = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
6992
7439
|
{
|
|
6993
7440
|
name: 'postedMessage',
|
|
6994
7441
|
kind: 'Link',
|
|
6995
|
-
fragment: select$
|
|
7442
|
+
fragment: select$y()
|
|
6996
7443
|
},
|
|
6997
7444
|
{
|
|
6998
7445
|
name: 'timestamp',
|
|
@@ -7068,7 +7515,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
7068
7515
|
function createResourceRequest$5(config) {
|
|
7069
7516
|
const headers = {};
|
|
7070
7517
|
return {
|
|
7071
|
-
baseUri: '/services/data/
|
|
7518
|
+
baseUri: '/services/data/v65.0',
|
|
7072
7519
|
basePath: '/connect/slackbridge/conversation/messages',
|
|
7073
7520
|
method: 'post',
|
|
7074
7521
|
body: config.body,
|
|
@@ -7089,10 +7536,10 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
7089
7536
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
7090
7537
|
];
|
|
7091
7538
|
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, postSlackConversation_ConfigPropertyMetadata);
|
|
7092
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7539
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$o(postSlackConversation_ConfigPropertyMetadata);
|
|
7093
7540
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7094
7541
|
const config = {};
|
|
7095
|
-
typeCheckConfig$
|
|
7542
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
7096
7543
|
return config;
|
|
7097
7544
|
}
|
|
7098
7545
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7247,7 +7694,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
7247
7694
|
function createResourceRequest$4(config) {
|
|
7248
7695
|
const headers = {};
|
|
7249
7696
|
return {
|
|
7250
|
-
baseUri: '/services/data/
|
|
7697
|
+
baseUri: '/services/data/v65.0',
|
|
7251
7698
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/mark',
|
|
7252
7699
|
method: 'post',
|
|
7253
7700
|
body: null,
|
|
@@ -7265,10 +7712,10 @@ const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
|
7265
7712
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
7266
7713
|
];
|
|
7267
7714
|
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7268
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7715
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$o(postSlackConversationMark_ConfigPropertyMetadata);
|
|
7269
7716
|
function typeCheckConfig$4(untrustedConfig) {
|
|
7270
7717
|
const config = {};
|
|
7271
|
-
typeCheckConfig$
|
|
7718
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7272
7719
|
return config;
|
|
7273
7720
|
}
|
|
7274
7721
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -7314,15 +7761,15 @@ const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
|
7314
7761
|
};
|
|
7315
7762
|
|
|
7316
7763
|
function select$3(luvio, params) {
|
|
7317
|
-
return select$
|
|
7764
|
+
return select$l();
|
|
7318
7765
|
}
|
|
7319
7766
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7320
|
-
getTypeCacheKeys$
|
|
7767
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
7321
7768
|
}
|
|
7322
7769
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
7323
7770
|
const { body } = response;
|
|
7324
7771
|
const key = keyBuilderFromType$3(luvio, body);
|
|
7325
|
-
luvio.storeIngest(key, ingest$
|
|
7772
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
7326
7773
|
const snapshot = luvio.storeLookup({
|
|
7327
7774
|
recordId: key,
|
|
7328
7775
|
node: select$3(),
|
|
@@ -7339,7 +7786,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
7339
7786
|
function createResourceRequest$3(config) {
|
|
7340
7787
|
const headers = {};
|
|
7341
7788
|
return {
|
|
7342
|
-
baseUri: '/services/data/
|
|
7789
|
+
baseUri: '/services/data/v65.0',
|
|
7343
7790
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
|
|
7344
7791
|
method: 'post',
|
|
7345
7792
|
body: config.body,
|
|
@@ -7357,10 +7804,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
7357
7804
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
7358
7805
|
];
|
|
7359
7806
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7360
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7807
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$o(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7361
7808
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7362
7809
|
const config = {};
|
|
7363
|
-
typeCheckConfig$
|
|
7810
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7364
7811
|
return config;
|
|
7365
7812
|
}
|
|
7366
7813
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7406,7 +7853,7 @@ const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
|
7406
7853
|
};
|
|
7407
7854
|
|
|
7408
7855
|
function select$2(luvio, params) {
|
|
7409
|
-
return select$
|
|
7856
|
+
return select$z();
|
|
7410
7857
|
}
|
|
7411
7858
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
7412
7859
|
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
@@ -7431,7 +7878,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
7431
7878
|
function createResourceRequest$2(config) {
|
|
7432
7879
|
const headers = {};
|
|
7433
7880
|
return {
|
|
7434
|
-
baseUri: '/services/data/
|
|
7881
|
+
baseUri: '/services/data/v65.0',
|
|
7435
7882
|
basePath: '/connect/slackbridge/files',
|
|
7436
7883
|
method: 'post',
|
|
7437
7884
|
body: config.body,
|
|
@@ -7454,10 +7901,10 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
7454
7901
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
7455
7902
|
];
|
|
7456
7903
|
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postSlackFile_ConfigPropertyMetadata);
|
|
7457
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7904
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$o(postSlackFile_ConfigPropertyMetadata);
|
|
7458
7905
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7459
7906
|
const config = {};
|
|
7460
|
-
typeCheckConfig$
|
|
7907
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
7461
7908
|
return config;
|
|
7462
7909
|
}
|
|
7463
7910
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7503,7 +7950,7 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
7503
7950
|
};
|
|
7504
7951
|
|
|
7505
7952
|
function select$1(luvio, params) {
|
|
7506
|
-
return select$
|
|
7953
|
+
return select$E();
|
|
7507
7954
|
}
|
|
7508
7955
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7509
7956
|
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
@@ -7528,7 +7975,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
7528
7975
|
function createResourceRequest$1(config) {
|
|
7529
7976
|
const headers = {};
|
|
7530
7977
|
return {
|
|
7531
|
-
baseUri: '/services/data/
|
|
7978
|
+
baseUri: '/services/data/v65.0',
|
|
7532
7979
|
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '/reactions',
|
|
7533
7980
|
method: 'post',
|
|
7534
7981
|
body: null,
|
|
@@ -7547,10 +7994,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
7547
7994
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7548
7995
|
];
|
|
7549
7996
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7550
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7997
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$o(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7551
7998
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7552
7999
|
const config = {};
|
|
7553
|
-
typeCheckConfig$
|
|
8000
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7554
8001
|
return config;
|
|
7555
8002
|
}
|
|
7556
8003
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7596,15 +8043,15 @@ const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
|
7596
8043
|
};
|
|
7597
8044
|
|
|
7598
8045
|
function select(luvio, params) {
|
|
7599
|
-
return select$
|
|
8046
|
+
return select$f();
|
|
7600
8047
|
}
|
|
7601
8048
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
7602
|
-
getTypeCacheKeys$
|
|
8049
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
7603
8050
|
}
|
|
7604
8051
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
7605
8052
|
const { body } = response;
|
|
7606
8053
|
const key = keyBuilderFromType$2(luvio, body);
|
|
7607
|
-
luvio.storeIngest(key, ingest$
|
|
8054
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
7608
8055
|
const snapshot = luvio.storeLookup({
|
|
7609
8056
|
recordId: key,
|
|
7610
8057
|
node: select(),
|
|
@@ -7621,7 +8068,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
7621
8068
|
function createResourceRequest(config) {
|
|
7622
8069
|
const headers = {};
|
|
7623
8070
|
return {
|
|
7624
|
-
baseUri: '/services/data/
|
|
8071
|
+
baseUri: '/services/data/v65.0',
|
|
7625
8072
|
basePath: '/connect/slackbridge/record_channels',
|
|
7626
8073
|
method: 'post',
|
|
7627
8074
|
body: config.body,
|
|
@@ -7638,10 +8085,10 @@ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
|
7638
8085
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
7639
8086
|
];
|
|
7640
8087
|
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7641
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8088
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$o(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7642
8089
|
function typeCheckConfig(untrustedConfig) {
|
|
7643
8090
|
const config = {};
|
|
7644
|
-
typeCheckConfig$
|
|
8091
|
+
typeCheckConfig$o(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7645
8092
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
7646
8093
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
7647
8094
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -7702,6 +8149,9 @@ let deleteSlackMessage;
|
|
|
7702
8149
|
let deleteSlackMessageReactions;
|
|
7703
8150
|
let getRelatedThreads;
|
|
7704
8151
|
let getSlackConversation;
|
|
8152
|
+
let getSlackConversationInfo;
|
|
8153
|
+
let getSlackConversationInfoNotifyChange;
|
|
8154
|
+
let getSlackConversationInfos;
|
|
7705
8155
|
let getSlackConversationMember;
|
|
7706
8156
|
let getSlackConversationMemberNotifyChange;
|
|
7707
8157
|
let getSlackConversationMembers;
|
|
@@ -7728,6 +8178,8 @@ let postSlackRecordChannelInfos;
|
|
|
7728
8178
|
// Imperative GET Adapters
|
|
7729
8179
|
let getRelatedThreads_imperative;
|
|
7730
8180
|
let getSlackConversation_imperative;
|
|
8181
|
+
let getSlackConversationInfo_imperative;
|
|
8182
|
+
let getSlackConversationInfos_imperative;
|
|
7731
8183
|
let getSlackConversationMember_imperative;
|
|
7732
8184
|
let getSlackConversationMembers_imperative;
|
|
7733
8185
|
let getSlackEmoji_imperative;
|
|
@@ -7740,6 +8192,15 @@ let getSlackSearchUser_imperative;
|
|
|
7740
8192
|
let getSlackUser_imperative;
|
|
7741
8193
|
const getRelatedThreadsMetadata = { apiFamily: 'SlackBridge', name: 'getRelatedThreads', ttl: 500 };
|
|
7742
8194
|
const getSlackConversationMetadata = { apiFamily: 'SlackBridge', name: 'getSlackConversation' };
|
|
8195
|
+
const getSlackConversationInfoMetadata = {
|
|
8196
|
+
apiFamily: 'SlackBridge',
|
|
8197
|
+
name: 'getSlackConversationInfo',
|
|
8198
|
+
ttl: 900000,
|
|
8199
|
+
};
|
|
8200
|
+
const getSlackConversationInfosMetadata = {
|
|
8201
|
+
apiFamily: 'SlackBridge',
|
|
8202
|
+
name: 'getSlackConversationInfos',
|
|
8203
|
+
};
|
|
7743
8204
|
const getSlackConversationMemberMetadata = {
|
|
7744
8205
|
apiFamily: 'SlackBridge',
|
|
7745
8206
|
name: 'getSlackConversationMember',
|
|
@@ -7761,12 +8222,14 @@ const getSlackSearchConversationMetadata = {
|
|
|
7761
8222
|
};
|
|
7762
8223
|
const getSlackSearchEmojiMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchEmoji' };
|
|
7763
8224
|
const getSlackSearchUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchUser' };
|
|
7764
|
-
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl:
|
|
8225
|
+
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl: 900000 };
|
|
7765
8226
|
// Notify Update Available
|
|
7766
8227
|
function bindExportsTo(luvio) {
|
|
7767
8228
|
// LDS Adapters
|
|
7768
8229
|
const getRelatedThreads_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedThreads', getRelatedThreadsAdapterFactory), getRelatedThreadsMetadata);
|
|
7769
8230
|
const getSlackConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversation', getSlackConversationAdapterFactory), getSlackConversationMetadata);
|
|
8231
|
+
const getSlackConversationInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationInfo', getSlackConversationInfoAdapterFactory), getSlackConversationInfoMetadata);
|
|
8232
|
+
const getSlackConversationInfos_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationInfos', getSlackConversationInfosAdapterFactory), getSlackConversationInfosMetadata);
|
|
7770
8233
|
const getSlackConversationMember_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMember', getSlackConversationMemberAdapterFactory), getSlackConversationMemberMetadata);
|
|
7771
8234
|
const getSlackConversationMembers_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMembers', getSlackConversationMembersAdapterFactory), getSlackConversationMembersMetadata);
|
|
7772
8235
|
const getSlackEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackEmoji', getSlackEmojiAdapterFactory), getSlackEmojiMetadata);
|
|
@@ -7782,11 +8245,14 @@ function bindExportsTo(luvio) {
|
|
|
7782
8245
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
7783
8246
|
}
|
|
7784
8247
|
return {
|
|
7785
|
-
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$
|
|
7786
|
-
deleteSlackMessage: createLDSAdapter(luvio, adapterName$
|
|
7787
|
-
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$
|
|
8248
|
+
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$n, deleteSlackConversationMemberAdapterFactory),
|
|
8249
|
+
deleteSlackMessage: createLDSAdapter(luvio, adapterName$m, deleteSlackMessageAdapterFactory),
|
|
8250
|
+
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$l, deleteSlackMessageReactionsAdapterFactory),
|
|
7788
8251
|
getRelatedThreads: createWireAdapterConstructor(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
7789
8252
|
getSlackConversation: createWireAdapterConstructor(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8253
|
+
getSlackConversationInfo: createWireAdapterConstructor(luvio, getSlackConversationInfo_ldsAdapter, getSlackConversationInfoMetadata),
|
|
8254
|
+
getSlackConversationInfoNotifyChange: createLDSAdapter(luvio, 'getSlackConversationInfoNotifyChange', notifyChangeFactory$6),
|
|
8255
|
+
getSlackConversationInfos: createWireAdapterConstructor(luvio, getSlackConversationInfos_ldsAdapter, getSlackConversationInfosMetadata),
|
|
7790
8256
|
getSlackConversationMember: createWireAdapterConstructor(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7791
8257
|
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$5),
|
|
7792
8258
|
getSlackConversationMembers: createWireAdapterConstructor(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
@@ -7813,6 +8279,8 @@ function bindExportsTo(luvio) {
|
|
|
7813
8279
|
// Imperative GET Adapters
|
|
7814
8280
|
getRelatedThreads_imperative: createImperativeAdapter(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
7815
8281
|
getSlackConversation_imperative: createImperativeAdapter(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8282
|
+
getSlackConversationInfo_imperative: createImperativeAdapter(luvio, getSlackConversationInfo_ldsAdapter, getSlackConversationInfoMetadata),
|
|
8283
|
+
getSlackConversationInfos_imperative: createImperativeAdapter(luvio, getSlackConversationInfos_ldsAdapter, getSlackConversationInfosMetadata),
|
|
7816
8284
|
getSlackConversationMember_imperative: createImperativeAdapter(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7817
8285
|
getSlackConversationMembers_imperative: createImperativeAdapter(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
7818
8286
|
getSlackEmoji_imperative: createImperativeAdapter(luvio, getSlackEmoji_ldsAdapter, getSlackEmojiMetadata),
|
|
@@ -7833,6 +8301,9 @@ withDefaultLuvio((luvio) => {
|
|
|
7833
8301
|
deleteSlackMessageReactions,
|
|
7834
8302
|
getRelatedThreads,
|
|
7835
8303
|
getSlackConversation,
|
|
8304
|
+
getSlackConversationInfo,
|
|
8305
|
+
getSlackConversationInfoNotifyChange,
|
|
8306
|
+
getSlackConversationInfos,
|
|
7836
8307
|
getSlackConversationMember,
|
|
7837
8308
|
getSlackConversationMemberNotifyChange,
|
|
7838
8309
|
getSlackConversationMembers,
|
|
@@ -7858,6 +8329,8 @@ withDefaultLuvio((luvio) => {
|
|
|
7858
8329
|
postSlackRecordChannelInfos,
|
|
7859
8330
|
getRelatedThreads_imperative,
|
|
7860
8331
|
getSlackConversation_imperative,
|
|
8332
|
+
getSlackConversationInfo_imperative,
|
|
8333
|
+
getSlackConversationInfos_imperative,
|
|
7861
8334
|
getSlackConversationMember_imperative,
|
|
7862
8335
|
getSlackConversationMembers_imperative,
|
|
7863
8336
|
getSlackEmoji_imperative,
|
|
@@ -7871,5 +8344,5 @@ withDefaultLuvio((luvio) => {
|
|
|
7871
8344
|
} = bindExportsTo(luvio));
|
|
7872
8345
|
});
|
|
7873
8346
|
|
|
7874
|
-
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 };
|
|
7875
|
-
// version: 1.
|
|
8347
|
+
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 };
|
|
8348
|
+
// version: 1.357.0-5a2425b0d8
|