@salesforce/lds-adapters-platform-slack-bridge 1.353.0 → 1.354.0-dev1
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 +760 -466
- package/dist/es/es2018/types/src/generated/adapters/getSlackDisplayLogin.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeSlack_display_login.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeDisplayLoginOutputRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeSlackTeamOutputRepresentation.d.ts +38 -0
- package/package.json +3 -3
- package/sfdc/index.js +941 -635
- package/src/raml/api.raml +37 -0
- package/src/raml/luvio.raml +8 -0
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$n, typeCheckConfig as typeCheckConfig$n, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$d } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -122,8 +122,8 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const VERSION$
|
|
126
|
-
function validate$
|
|
125
|
+
const VERSION$o = "5ea9ee9da9dcb5309c4f35bb4bf5def2";
|
|
126
|
+
function validate$o(obj, path = 'SlackBridgeConversationMemberOutputRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -141,23 +141,23 @@ function validate$m(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
141
141
|
})();
|
|
142
142
|
return v_error === undefined ? null : v_error;
|
|
143
143
|
}
|
|
144
|
-
const RepresentationType$
|
|
145
|
-
function keyBuilder$
|
|
146
|
-
return keyPrefix + '::' + RepresentationType$
|
|
144
|
+
const RepresentationType$i = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
145
|
+
function keyBuilder$D(luvio, config) {
|
|
146
|
+
return keyPrefix + '::' + RepresentationType$i + ':' + config.channelId;
|
|
147
147
|
}
|
|
148
148
|
function keyBuilderFromType$a(luvio, object) {
|
|
149
149
|
const keyParams = {
|
|
150
150
|
channelId: object.channelId
|
|
151
151
|
};
|
|
152
|
-
return keyBuilder$
|
|
152
|
+
return keyBuilder$D(luvio, keyParams);
|
|
153
153
|
}
|
|
154
|
-
function normalize$
|
|
154
|
+
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
155
155
|
return input;
|
|
156
156
|
}
|
|
157
|
-
const select$
|
|
157
|
+
const select$I = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
158
158
|
return {
|
|
159
159
|
kind: 'Fragment',
|
|
160
|
-
version: VERSION$
|
|
160
|
+
version: VERSION$o,
|
|
161
161
|
private: [],
|
|
162
162
|
selections: [
|
|
163
163
|
{
|
|
@@ -171,7 +171,7 @@ const select$F = function SlackBridgeConversationMemberOutputRepresentationSelec
|
|
|
171
171
|
]
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
function equals$
|
|
174
|
+
function equals$o(existing, incoming) {
|
|
175
175
|
const existing_channelId = existing.channelId;
|
|
176
176
|
const incoming_channelId = incoming.channelId;
|
|
177
177
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -184,46 +184,46 @@ function equals$m(existing, incoming) {
|
|
|
184
184
|
}
|
|
185
185
|
return true;
|
|
186
186
|
}
|
|
187
|
-
const ingest$
|
|
187
|
+
const ingest$i = function SlackBridgeConversationMemberOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
188
188
|
if (process.env.NODE_ENV !== 'production') {
|
|
189
|
-
const validateError = validate$
|
|
189
|
+
const validateError = validate$o(input);
|
|
190
190
|
if (validateError !== null) {
|
|
191
191
|
throw validateError;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
const key = keyBuilderFromType$a(luvio, input);
|
|
195
195
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
196
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
196
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$o, RepresentationType$i, equals$o);
|
|
197
197
|
return createLink(key);
|
|
198
198
|
};
|
|
199
|
-
function getTypeCacheKeys$
|
|
199
|
+
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
200
200
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
201
201
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
202
202
|
rootKeySet.set(rootKey, {
|
|
203
203
|
namespace: keyPrefix,
|
|
204
|
-
representationName: RepresentationType$
|
|
204
|
+
representationName: RepresentationType$i,
|
|
205
205
|
mergeable: false
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
function keyBuilder$
|
|
210
|
-
return keyBuilder$
|
|
209
|
+
function keyBuilder$C(luvio, params) {
|
|
210
|
+
return keyBuilder$D(luvio, {
|
|
211
211
|
channelId: params.urlParams.channelId
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function getResponseCacheKeys$
|
|
215
|
-
const key = keyBuilder$
|
|
214
|
+
function getResponseCacheKeys$m(cacheKeyMap, luvio, resourceParams) {
|
|
215
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
216
216
|
cacheKeyMap.set(key, {
|
|
217
217
|
namespace: keyPrefix,
|
|
218
|
-
representationName: RepresentationType$
|
|
218
|
+
representationName: RepresentationType$i,
|
|
219
219
|
mergeable: false
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
function evictSuccess$2(luvio, resourceParams) {
|
|
223
|
-
const key = keyBuilder$
|
|
223
|
+
const key = keyBuilder$C(luvio, resourceParams);
|
|
224
224
|
luvio.storeEvict(key);
|
|
225
225
|
}
|
|
226
|
-
function createResourceRequest$
|
|
226
|
+
function createResourceRequest$m(config) {
|
|
227
227
|
const headers = {};
|
|
228
228
|
return {
|
|
229
229
|
baseUri: '/services/data/v64.0',
|
|
@@ -237,35 +237,35 @@ function createResourceRequest$l(config) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
const adapterName$
|
|
240
|
+
const adapterName$m = '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$m, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
247
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$n(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
248
|
+
function typeCheckConfig$m(untrustedConfig) {
|
|
249
249
|
const config = {};
|
|
250
|
-
typeCheckConfig$
|
|
250
|
+
typeCheckConfig$n(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
251
251
|
return config;
|
|
252
252
|
}
|
|
253
|
-
function validateAdapterConfig$
|
|
253
|
+
function validateAdapterConfig$m(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$m(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$m(luvio, config, options) {
|
|
267
|
+
const resourceParams = createResourceParams$m(config);
|
|
268
|
+
const request = createResourceRequest$m(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$m(cache, luvio, resourceParams);
|
|
277
277
|
return cache;
|
|
278
278
|
});
|
|
279
279
|
}, (response) => {
|
|
@@ -283,17 +283,17 @@ 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$m(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$m}"`);
|
|
290
290
|
}
|
|
291
|
-
return buildNetworkSnapshot$
|
|
291
|
+
return buildNetworkSnapshot$m(luvio, config);
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
-
const VERSION$
|
|
296
|
-
function validate$
|
|
295
|
+
const VERSION$n = "605674abcbc0dad7e2707e4e00e8d4cd";
|
|
296
|
+
function validate$n(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation') {
|
|
297
297
|
const v_error = (() => {
|
|
298
298
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
299
299
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -316,23 +316,23 @@ function validate$l(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
316
316
|
})();
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
|
-
const RepresentationType$
|
|
320
|
-
function keyBuilder$
|
|
321
|
-
return keyPrefix + '::' + RepresentationType$
|
|
319
|
+
const RepresentationType$h = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
320
|
+
function keyBuilder$B(luvio, config) {
|
|
321
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.channelId;
|
|
322
322
|
}
|
|
323
323
|
function keyBuilderFromType$9(luvio, object) {
|
|
324
324
|
const keyParams = {
|
|
325
325
|
channelId: object.channelId
|
|
326
326
|
};
|
|
327
|
-
return keyBuilder$
|
|
327
|
+
return keyBuilder$B(luvio, keyParams);
|
|
328
328
|
}
|
|
329
|
-
function normalize$
|
|
329
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
330
330
|
return input;
|
|
331
331
|
}
|
|
332
|
-
const select$
|
|
332
|
+
const select$H = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
333
333
|
return {
|
|
334
334
|
kind: 'Fragment',
|
|
335
|
-
version: VERSION$
|
|
335
|
+
version: VERSION$n,
|
|
336
336
|
private: [],
|
|
337
337
|
selections: [
|
|
338
338
|
{
|
|
@@ -350,7 +350,7 @@ const select$E = function SlackBridgeMessageFragmentOutputRepresentationSelect()
|
|
|
350
350
|
]
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
|
-
function equals$
|
|
353
|
+
function equals$n(existing, incoming) {
|
|
354
354
|
const existing_channelId = existing.channelId;
|
|
355
355
|
const incoming_channelId = incoming.channelId;
|
|
356
356
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -368,46 +368,46 @@ function equals$l(existing, incoming) {
|
|
|
368
368
|
}
|
|
369
369
|
return true;
|
|
370
370
|
}
|
|
371
|
-
const ingest$
|
|
371
|
+
const ingest$h = function SlackBridgeMessageFragmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
372
372
|
if (process.env.NODE_ENV !== 'production') {
|
|
373
|
-
const validateError = validate$
|
|
373
|
+
const validateError = validate$n(input);
|
|
374
374
|
if (validateError !== null) {
|
|
375
375
|
throw validateError;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
const key = keyBuilderFromType$9(luvio, input);
|
|
379
379
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
380
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
380
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$n, RepresentationType$h, equals$n);
|
|
381
381
|
return createLink(key);
|
|
382
382
|
};
|
|
383
|
-
function getTypeCacheKeys$
|
|
383
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
384
384
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
385
385
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
386
386
|
rootKeySet.set(rootKey, {
|
|
387
387
|
namespace: keyPrefix,
|
|
388
|
-
representationName: RepresentationType$
|
|
388
|
+
representationName: RepresentationType$h,
|
|
389
389
|
mergeable: false
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
function keyBuilder$
|
|
394
|
-
return keyBuilder$
|
|
393
|
+
function keyBuilder$A(luvio, params) {
|
|
394
|
+
return keyBuilder$B(luvio, {
|
|
395
395
|
channelId: params.urlParams.channelId
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
function getResponseCacheKeys$
|
|
399
|
-
const key = keyBuilder$
|
|
398
|
+
function getResponseCacheKeys$l(cacheKeyMap, luvio, resourceParams) {
|
|
399
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
400
400
|
cacheKeyMap.set(key, {
|
|
401
401
|
namespace: keyPrefix,
|
|
402
|
-
representationName: RepresentationType$
|
|
402
|
+
representationName: RepresentationType$h,
|
|
403
403
|
mergeable: false
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
function evictSuccess$1(luvio, resourceParams) {
|
|
407
|
-
const key = keyBuilder$
|
|
407
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
408
408
|
luvio.storeEvict(key);
|
|
409
409
|
}
|
|
410
|
-
function createResourceRequest$
|
|
410
|
+
function createResourceRequest$l(config) {
|
|
411
411
|
const headers = {};
|
|
412
412
|
return {
|
|
413
413
|
baseUri: '/services/data/v64.0',
|
|
@@ -421,35 +421,35 @@ function createResourceRequest$k(config) {
|
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
const adapterName$
|
|
424
|
+
const adapterName$l = '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$l, deleteSlackMessage_ConfigPropertyMetadata);
|
|
431
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$n(deleteSlackMessage_ConfigPropertyMetadata);
|
|
432
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
433
433
|
const config = {};
|
|
434
|
-
typeCheckConfig$
|
|
434
|
+
typeCheckConfig$n(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
435
435
|
return config;
|
|
436
436
|
}
|
|
437
|
-
function validateAdapterConfig$
|
|
437
|
+
function validateAdapterConfig$l(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$l(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$l(luvio, config, options) {
|
|
451
|
+
const resourceParams = createResourceParams$l(config);
|
|
452
|
+
const request = createResourceRequest$l(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$l(cache, luvio, resourceParams);
|
|
461
461
|
return cache;
|
|
462
462
|
});
|
|
463
463
|
}, (response) => {
|
|
@@ -467,17 +467,17 @@ 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$l(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$l}"`);
|
|
474
474
|
}
|
|
475
|
-
return buildNetworkSnapshot$
|
|
475
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
476
476
|
};
|
|
477
477
|
};
|
|
478
478
|
|
|
479
|
-
const VERSION$
|
|
480
|
-
function validate$
|
|
479
|
+
const VERSION$m = "7820a930852347bb0506c08d8b528281";
|
|
480
|
+
function validate$m(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
481
481
|
const v_error = (() => {
|
|
482
482
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
483
483
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -554,10 +554,10 @@ 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$G = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
558
558
|
return {
|
|
559
559
|
kind: 'Fragment',
|
|
560
|
-
version: VERSION$
|
|
560
|
+
version: VERSION$m,
|
|
561
561
|
private: [],
|
|
562
562
|
selections: [
|
|
563
563
|
{
|
|
@@ -580,7 +580,7 @@ const select$D = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
580
580
|
]
|
|
581
581
|
};
|
|
582
582
|
};
|
|
583
|
-
function equals$
|
|
583
|
+
function equals$m(existing, incoming) {
|
|
584
584
|
const existing_name = existing.name;
|
|
585
585
|
const incoming_name = incoming.name;
|
|
586
586
|
if (!(existing_name === incoming_name)) {
|
|
@@ -609,8 +609,8 @@ function equals$k(existing, incoming) {
|
|
|
609
609
|
return true;
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
-
const VERSION$
|
|
613
|
-
function validate$
|
|
612
|
+
const VERSION$l = "804aa6216a7579adeeae856f76b688db";
|
|
613
|
+
function validate$l(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
614
614
|
const v_error = (() => {
|
|
615
615
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
616
616
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -633,7 +633,7 @@ function validate$j(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
633
633
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
634
634
|
const obj_reactions_item = obj_reactions[i];
|
|
635
635
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
636
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
636
|
+
const referencepath_reactions_itemValidationError = validate$m(obj_reactions_item, path_reactions_item);
|
|
637
637
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
638
638
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
639
639
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -648,24 +648,24 @@ function validate$j(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
648
648
|
})();
|
|
649
649
|
return v_error === undefined ? null : v_error;
|
|
650
650
|
}
|
|
651
|
-
const RepresentationType$
|
|
652
|
-
function keyBuilder$
|
|
653
|
-
return keyPrefix + '::' + RepresentationType$
|
|
651
|
+
const RepresentationType$g = 'SlackBridgeReactionsOutputRepresentation';
|
|
652
|
+
function keyBuilder$z(luvio, config) {
|
|
653
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.channelId;
|
|
654
654
|
}
|
|
655
655
|
function keyBuilderFromType$8(luvio, object) {
|
|
656
656
|
const keyParams = {
|
|
657
657
|
channelId: object.channelId
|
|
658
658
|
};
|
|
659
|
-
return keyBuilder$
|
|
659
|
+
return keyBuilder$z(luvio, keyParams);
|
|
660
660
|
}
|
|
661
|
-
function normalize$
|
|
661
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
662
662
|
return input;
|
|
663
663
|
}
|
|
664
|
-
const select$
|
|
665
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
664
|
+
const select$F = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
665
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$G();
|
|
666
666
|
return {
|
|
667
667
|
kind: 'Fragment',
|
|
668
|
-
version: VERSION$
|
|
668
|
+
version: VERSION$l,
|
|
669
669
|
private: [],
|
|
670
670
|
selections: [
|
|
671
671
|
{
|
|
@@ -689,7 +689,7 @@ const select$C = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
|
689
689
|
]
|
|
690
690
|
};
|
|
691
691
|
};
|
|
692
|
-
function equals$
|
|
692
|
+
function equals$l(existing, incoming) {
|
|
693
693
|
const existing_channelId = existing.channelId;
|
|
694
694
|
const incoming_channelId = incoming.channelId;
|
|
695
695
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -708,7 +708,7 @@ function equals$j(existing, incoming) {
|
|
|
708
708
|
const existing_reactions = existing.reactions;
|
|
709
709
|
const incoming_reactions = incoming.reactions;
|
|
710
710
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
711
|
-
if (!(equals$
|
|
711
|
+
if (!(equals$m(existing_reactions_item, incoming_reactions_item))) {
|
|
712
712
|
return false;
|
|
713
713
|
}
|
|
714
714
|
});
|
|
@@ -717,46 +717,46 @@ function equals$j(existing, incoming) {
|
|
|
717
717
|
}
|
|
718
718
|
return true;
|
|
719
719
|
}
|
|
720
|
-
const ingest$
|
|
720
|
+
const ingest$g = function SlackBridgeReactionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
721
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
722
|
-
const validateError = validate$
|
|
722
|
+
const validateError = validate$l(input);
|
|
723
723
|
if (validateError !== null) {
|
|
724
724
|
throw validateError;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
const key = keyBuilderFromType$8(luvio, input);
|
|
728
728
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
729
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
729
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$l, RepresentationType$g, equals$l);
|
|
730
730
|
return createLink(key);
|
|
731
731
|
};
|
|
732
|
-
function getTypeCacheKeys$
|
|
732
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
733
733
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
734
734
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
735
735
|
rootKeySet.set(rootKey, {
|
|
736
736
|
namespace: keyPrefix,
|
|
737
|
-
representationName: RepresentationType$
|
|
737
|
+
representationName: RepresentationType$g,
|
|
738
738
|
mergeable: false
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
-
function keyBuilder$
|
|
743
|
-
return keyBuilder$
|
|
742
|
+
function keyBuilder$y(luvio, params) {
|
|
743
|
+
return keyBuilder$z(luvio, {
|
|
744
744
|
channelId: params.urlParams.channelId
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
function getResponseCacheKeys$
|
|
748
|
-
const key = keyBuilder$
|
|
747
|
+
function getResponseCacheKeys$k(cacheKeyMap, luvio, resourceParams) {
|
|
748
|
+
const key = keyBuilder$y(luvio, resourceParams);
|
|
749
749
|
cacheKeyMap.set(key, {
|
|
750
750
|
namespace: keyPrefix,
|
|
751
|
-
representationName: RepresentationType$
|
|
751
|
+
representationName: RepresentationType$g,
|
|
752
752
|
mergeable: false
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
function evictSuccess(luvio, resourceParams) {
|
|
756
|
-
const key = keyBuilder$
|
|
756
|
+
const key = keyBuilder$y(luvio, resourceParams);
|
|
757
757
|
luvio.storeEvict(key);
|
|
758
758
|
}
|
|
759
|
-
function createResourceRequest$
|
|
759
|
+
function createResourceRequest$k(config) {
|
|
760
760
|
const headers = {};
|
|
761
761
|
return {
|
|
762
762
|
baseUri: '/services/data/v64.0',
|
|
@@ -770,36 +770,36 @@ function createResourceRequest$j(config) {
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
const adapterName$
|
|
773
|
+
const adapterName$k = '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$k, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
781
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$n(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
782
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
783
783
|
const config = {};
|
|
784
|
-
typeCheckConfig$
|
|
784
|
+
typeCheckConfig$n(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
785
785
|
return config;
|
|
786
786
|
}
|
|
787
|
-
function validateAdapterConfig$
|
|
787
|
+
function validateAdapterConfig$k(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$k(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$k(luvio, config, options) {
|
|
801
|
+
const resourceParams = createResourceParams$k(config);
|
|
802
|
+
const request = createResourceRequest$k(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$k(cache, luvio, resourceParams);
|
|
811
811
|
return cache;
|
|
812
812
|
});
|
|
813
813
|
}, (response) => {
|
|
@@ -817,17 +817,17 @@ 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$k(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$k}"`);
|
|
824
824
|
}
|
|
825
|
-
return buildNetworkSnapshot$
|
|
825
|
+
return buildNetworkSnapshot$k(luvio, config);
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
828
|
|
|
829
|
-
const VERSION$
|
|
830
|
-
function validate$
|
|
829
|
+
const VERSION$k = "252fe3a6509a770a876e36552ad8dd06";
|
|
830
|
+
function validate$k(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
831
831
|
const v_error = (() => {
|
|
832
832
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
833
833
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1164,23 +1164,23 @@ function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1164
1164
|
})();
|
|
1165
1165
|
return v_error === undefined ? null : v_error;
|
|
1166
1166
|
}
|
|
1167
|
-
const RepresentationType$
|
|
1168
|
-
function keyBuilder$
|
|
1169
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1167
|
+
const RepresentationType$f = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1168
|
+
function keyBuilder$x(luvio, config) {
|
|
1169
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
1170
1170
|
}
|
|
1171
1171
|
function keyBuilderFromType$7(luvio, object) {
|
|
1172
1172
|
const keyParams = {
|
|
1173
1173
|
id: object.id
|
|
1174
1174
|
};
|
|
1175
|
-
return keyBuilder$
|
|
1175
|
+
return keyBuilder$x(luvio, keyParams);
|
|
1176
1176
|
}
|
|
1177
|
-
function normalize$
|
|
1177
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
1178
1178
|
return input;
|
|
1179
1179
|
}
|
|
1180
|
-
const select$
|
|
1180
|
+
const select$E = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1181
1181
|
return {
|
|
1182
1182
|
kind: 'Fragment',
|
|
1183
|
-
version: VERSION$
|
|
1183
|
+
version: VERSION$k,
|
|
1184
1184
|
private: [],
|
|
1185
1185
|
selections: [
|
|
1186
1186
|
{
|
|
@@ -1247,7 +1247,7 @@ const select$B = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1247
1247
|
]
|
|
1248
1248
|
};
|
|
1249
1249
|
};
|
|
1250
|
-
function equals$
|
|
1250
|
+
function equals$k(existing, incoming) {
|
|
1251
1251
|
const existing_id = existing.id;
|
|
1252
1252
|
const incoming_id = incoming.id;
|
|
1253
1253
|
if (!(existing_id === incoming_id)) {
|
|
@@ -1333,30 +1333,30 @@ function equals$i(existing, incoming) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
return true;
|
|
1335
1335
|
}
|
|
1336
|
-
const ingest$
|
|
1336
|
+
const ingest$f = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1337
1337
|
if (process.env.NODE_ENV !== 'production') {
|
|
1338
|
-
const validateError = validate$
|
|
1338
|
+
const validateError = validate$k(input);
|
|
1339
1339
|
if (validateError !== null) {
|
|
1340
1340
|
throw validateError;
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
1343
|
const key = keyBuilderFromType$7(luvio, input);
|
|
1344
1344
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1345
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1345
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SlackBridge", VERSION$k, RepresentationType$f, equals$k);
|
|
1346
1346
|
return createLink(key);
|
|
1347
1347
|
};
|
|
1348
|
-
function getTypeCacheKeys$
|
|
1348
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
1349
1349
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1350
1350
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
1351
1351
|
rootKeySet.set(rootKey, {
|
|
1352
1352
|
namespace: keyPrefix,
|
|
1353
|
-
representationName: RepresentationType$
|
|
1353
|
+
representationName: RepresentationType$f,
|
|
1354
1354
|
mergeable: false
|
|
1355
1355
|
});
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
|
-
const VERSION$
|
|
1359
|
-
function validate$
|
|
1358
|
+
const VERSION$j = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
1359
|
+
function validate$j(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
1360
1360
|
const v_error = (() => {
|
|
1361
1361
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1362
1362
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1374,10 +1374,10 @@ function validate$h(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1374
1374
|
})();
|
|
1375
1375
|
return v_error === undefined ? null : v_error;
|
|
1376
1376
|
}
|
|
1377
|
-
const select$
|
|
1377
|
+
const select$D = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1378
1378
|
return {
|
|
1379
1379
|
kind: 'Fragment',
|
|
1380
|
-
version: VERSION$
|
|
1380
|
+
version: VERSION$j,
|
|
1381
1381
|
private: [],
|
|
1382
1382
|
selections: [
|
|
1383
1383
|
{
|
|
@@ -1391,7 +1391,7 @@ const select$A = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
|
1391
1391
|
]
|
|
1392
1392
|
};
|
|
1393
1393
|
};
|
|
1394
|
-
function equals$
|
|
1394
|
+
function equals$j(existing, incoming) {
|
|
1395
1395
|
const existing_extension = existing.extension;
|
|
1396
1396
|
const incoming_extension = incoming.extension;
|
|
1397
1397
|
if (!(existing_extension === incoming_extension)) {
|
|
@@ -1405,8 +1405,8 @@ function equals$h(existing, incoming) {
|
|
|
1405
1405
|
return true;
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
|
-
const VERSION$
|
|
1409
|
-
function validate$
|
|
1408
|
+
const VERSION$i = "3ef7c0314c9cc37a0b6c3b0dbd6a76a5";
|
|
1409
|
+
function validate$i(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
|
|
1410
1410
|
const v_error = (() => {
|
|
1411
1411
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1412
1412
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1420,7 +1420,7 @@ function validate$g(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1420
1420
|
const path_filetype = path + '.filetype';
|
|
1421
1421
|
let obj_filetype_union0 = null;
|
|
1422
1422
|
const obj_filetype_union0_error = (() => {
|
|
1423
|
-
const referencepath_filetypeValidationError = validate$
|
|
1423
|
+
const referencepath_filetypeValidationError = validate$j(obj_filetype, path_filetype);
|
|
1424
1424
|
if (referencepath_filetypeValidationError !== null) {
|
|
1425
1425
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1426
1426
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1489,11 +1489,11 @@ function validate$g(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1489
1489
|
})();
|
|
1490
1490
|
return v_error === undefined ? null : v_error;
|
|
1491
1491
|
}
|
|
1492
|
-
const select$
|
|
1493
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1492
|
+
const select$C = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1493
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$D();
|
|
1494
1494
|
return {
|
|
1495
1495
|
kind: 'Fragment',
|
|
1496
|
-
version: VERSION$
|
|
1496
|
+
version: VERSION$i,
|
|
1497
1497
|
private: [],
|
|
1498
1498
|
selections: [
|
|
1499
1499
|
{
|
|
@@ -1525,7 +1525,7 @@ const select$z = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1525
1525
|
]
|
|
1526
1526
|
};
|
|
1527
1527
|
};
|
|
1528
|
-
function equals$
|
|
1528
|
+
function equals$i(existing, incoming) {
|
|
1529
1529
|
const existing_size = existing.size;
|
|
1530
1530
|
const incoming_size = incoming.size;
|
|
1531
1531
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1551,7 +1551,7 @@ function equals$g(existing, incoming) {
|
|
|
1551
1551
|
if (!(existing_filetype === incoming_filetype
|
|
1552
1552
|
|| (existing_filetype != null &&
|
|
1553
1553
|
incoming_filetype != null &&
|
|
1554
|
-
equals$
|
|
1554
|
+
equals$j(existing_filetype, incoming_filetype)))) {
|
|
1555
1555
|
return false;
|
|
1556
1556
|
}
|
|
1557
1557
|
const existing_versionUrl = existing.versionUrl;
|
|
@@ -1562,15 +1562,15 @@ function equals$g(existing, incoming) {
|
|
|
1562
1562
|
return true;
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
-
const VERSION$
|
|
1566
|
-
function validate$
|
|
1565
|
+
const VERSION$h = "effdd259bc622bee05493fc2a3ecd276";
|
|
1566
|
+
function validate$h(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
|
|
1567
1567
|
const v_error = (() => {
|
|
1568
1568
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1569
1569
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1570
1570
|
}
|
|
1571
1571
|
const obj_filetype = obj.filetype;
|
|
1572
1572
|
const path_filetype = path + '.filetype';
|
|
1573
|
-
const referencepath_filetypeValidationError = validate$
|
|
1573
|
+
const referencepath_filetypeValidationError = validate$j(obj_filetype, path_filetype);
|
|
1574
1574
|
if (referencepath_filetypeValidationError !== null) {
|
|
1575
1575
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1576
1576
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1583,7 +1583,7 @@ function validate$f(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1583
1583
|
}
|
|
1584
1584
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
1585
1585
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
1586
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
1586
|
+
const referencepath_latestPublishedVersionValidationError = validate$i(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
1587
1587
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
1588
1588
|
let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
1589
1589
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1602,12 +1602,12 @@ function validate$f(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1602
1602
|
})();
|
|
1603
1603
|
return v_error === undefined ? null : v_error;
|
|
1604
1604
|
}
|
|
1605
|
-
const select$
|
|
1606
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1607
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
1605
|
+
const select$B = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
1606
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$D();
|
|
1607
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$C();
|
|
1608
1608
|
return {
|
|
1609
1609
|
kind: 'Fragment',
|
|
1610
|
-
version: VERSION$
|
|
1610
|
+
version: VERSION$h,
|
|
1611
1611
|
private: [],
|
|
1612
1612
|
selections: [
|
|
1613
1613
|
{
|
|
@@ -1635,7 +1635,7 @@ const select$y = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
1635
1635
|
]
|
|
1636
1636
|
};
|
|
1637
1637
|
};
|
|
1638
|
-
function equals$
|
|
1638
|
+
function equals$h(existing, incoming) {
|
|
1639
1639
|
const existing_size = existing.size;
|
|
1640
1640
|
const incoming_size = incoming.size;
|
|
1641
1641
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1653,19 +1653,19 @@ function equals$f(existing, incoming) {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
const existing_filetype = existing.filetype;
|
|
1655
1655
|
const incoming_filetype = incoming.filetype;
|
|
1656
|
-
if (!(equals$
|
|
1656
|
+
if (!(equals$j(existing_filetype, incoming_filetype))) {
|
|
1657
1657
|
return false;
|
|
1658
1658
|
}
|
|
1659
1659
|
const existing_latestPublishedVersion = existing.latestPublishedVersion;
|
|
1660
1660
|
const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
|
|
1661
|
-
if (!(equals$
|
|
1661
|
+
if (!(equals$i(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
|
|
1662
1662
|
return false;
|
|
1663
1663
|
}
|
|
1664
1664
|
return true;
|
|
1665
1665
|
}
|
|
1666
1666
|
|
|
1667
|
-
const VERSION$
|
|
1668
|
-
function validate$
|
|
1667
|
+
const VERSION$g = "15fa7211c500ebba9537b3c9921b39cf";
|
|
1668
|
+
function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
1669
1669
|
const v_error = (() => {
|
|
1670
1670
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1671
1671
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1674,7 +1674,7 @@ function validate$e(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1674
1674
|
const path_contentDocument = path + '.contentDocument';
|
|
1675
1675
|
let obj_contentDocument_union0 = null;
|
|
1676
1676
|
const obj_contentDocument_union0_error = (() => {
|
|
1677
|
-
const referencepath_contentDocumentValidationError = validate$
|
|
1677
|
+
const referencepath_contentDocumentValidationError = validate$h(obj_contentDocument, path_contentDocument);
|
|
1678
1678
|
if (referencepath_contentDocumentValidationError !== null) {
|
|
1679
1679
|
let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
1680
1680
|
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1836,24 +1836,24 @@ function validate$e(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1836
1836
|
})();
|
|
1837
1837
|
return v_error === undefined ? null : v_error;
|
|
1838
1838
|
}
|
|
1839
|
-
const RepresentationType$
|
|
1840
|
-
function keyBuilder$
|
|
1841
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1839
|
+
const RepresentationType$e = 'SlackBridgeFileOutputRepresentation';
|
|
1840
|
+
function keyBuilder$w(luvio, config) {
|
|
1841
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
1842
1842
|
}
|
|
1843
1843
|
function keyBuilderFromType$6(luvio, object) {
|
|
1844
1844
|
const keyParams = {
|
|
1845
1845
|
uniqueKey: object.uniqueKey
|
|
1846
1846
|
};
|
|
1847
|
-
return keyBuilder$
|
|
1847
|
+
return keyBuilder$w(luvio, keyParams);
|
|
1848
1848
|
}
|
|
1849
|
-
function normalize$
|
|
1849
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
1850
1850
|
return input;
|
|
1851
1851
|
}
|
|
1852
|
-
const select$
|
|
1853
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
1852
|
+
const select$A = function SlackBridgeFileOutputRepresentationSelect() {
|
|
1853
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$B();
|
|
1854
1854
|
return {
|
|
1855
1855
|
kind: 'Fragment',
|
|
1856
|
-
version: VERSION$
|
|
1856
|
+
version: VERSION$g,
|
|
1857
1857
|
private: [],
|
|
1858
1858
|
selections: [
|
|
1859
1859
|
{
|
|
@@ -1905,7 +1905,7 @@ const select$x = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
1905
1905
|
]
|
|
1906
1906
|
};
|
|
1907
1907
|
};
|
|
1908
|
-
function equals$
|
|
1908
|
+
function equals$g(existing, incoming) {
|
|
1909
1909
|
const existing_filetype = existing.filetype;
|
|
1910
1910
|
const incoming_filetype = incoming.filetype;
|
|
1911
1911
|
if (!(existing_filetype === incoming_filetype)) {
|
|
@@ -1941,7 +1941,7 @@ function equals$e(existing, incoming) {
|
|
|
1941
1941
|
if (!(existing_contentDocument === incoming_contentDocument
|
|
1942
1942
|
|| (existing_contentDocument != null &&
|
|
1943
1943
|
incoming_contentDocument != null &&
|
|
1944
|
-
equals$
|
|
1944
|
+
equals$h(existing_contentDocument, incoming_contentDocument)))) {
|
|
1945
1945
|
return false;
|
|
1946
1946
|
}
|
|
1947
1947
|
const existing_size = existing.size;
|
|
@@ -1966,30 +1966,30 @@ function equals$e(existing, incoming) {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
return true;
|
|
1968
1968
|
}
|
|
1969
|
-
const ingest$
|
|
1969
|
+
const ingest$e = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1970
1970
|
if (process.env.NODE_ENV !== 'production') {
|
|
1971
|
-
const validateError = validate$
|
|
1971
|
+
const validateError = validate$g(input);
|
|
1972
1972
|
if (validateError !== null) {
|
|
1973
1973
|
throw validateError;
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
1976
|
const key = keyBuilderFromType$6(luvio, input);
|
|
1977
1977
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1978
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1978
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SlackBridge", VERSION$g, RepresentationType$e, equals$g);
|
|
1979
1979
|
return createLink(key);
|
|
1980
1980
|
};
|
|
1981
|
-
function getTypeCacheKeys$
|
|
1981
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
1982
1982
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1983
1983
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
1984
1984
|
rootKeySet.set(rootKey, {
|
|
1985
1985
|
namespace: keyPrefix,
|
|
1986
|
-
representationName: RepresentationType$
|
|
1986
|
+
representationName: RepresentationType$e,
|
|
1987
1987
|
mergeable: false
|
|
1988
1988
|
});
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
|
-
const VERSION$
|
|
1992
|
-
function validate$
|
|
1991
|
+
const VERSION$f = "e44783fc9e817e6accf3f3d286c3f0fe";
|
|
1992
|
+
function validate$f(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
1993
1993
|
const v_error = (() => {
|
|
1994
1994
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1995
1995
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2201,7 +2201,7 @@ function validate$d(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2201
2201
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
2202
2202
|
const obj_reactions_item = obj_reactions[i];
|
|
2203
2203
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
2204
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
2204
|
+
const referencepath_reactions_itemValidationError = validate$m(obj_reactions_item, path_reactions_item);
|
|
2205
2205
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
2206
2206
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
2207
2207
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2363,14 +2363,14 @@ function validate$d(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2363
2363
|
})();
|
|
2364
2364
|
return v_error === undefined ? null : v_error;
|
|
2365
2365
|
}
|
|
2366
|
-
const RepresentationType$
|
|
2367
|
-
function normalize$
|
|
2366
|
+
const RepresentationType$d = 'SlackBridgeMessageOutputRepresentation';
|
|
2367
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
2368
2368
|
const input_files = input.files;
|
|
2369
2369
|
const input_files_id = path.fullPath + '__files';
|
|
2370
2370
|
for (let i = 0; i < input_files.length; i++) {
|
|
2371
2371
|
const input_files_item = input_files[i];
|
|
2372
2372
|
let input_files_item_id = input_files_id + '__' + i;
|
|
2373
|
-
input_files[i] = ingest$
|
|
2373
|
+
input_files[i] = ingest$e(input_files_item, {
|
|
2374
2374
|
fullPath: input_files_item_id,
|
|
2375
2375
|
propertyName: i,
|
|
2376
2376
|
parent: {
|
|
@@ -2383,11 +2383,11 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
return input;
|
|
2385
2385
|
}
|
|
2386
|
-
const select$
|
|
2387
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2386
|
+
const select$z = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2387
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$G();
|
|
2388
2388
|
return {
|
|
2389
2389
|
kind: 'Fragment',
|
|
2390
|
-
version: VERSION$
|
|
2390
|
+
version: VERSION$f,
|
|
2391
2391
|
private: [],
|
|
2392
2392
|
selections: [
|
|
2393
2393
|
{
|
|
@@ -2408,7 +2408,7 @@ const select$w = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2408
2408
|
name: 'files',
|
|
2409
2409
|
kind: 'Link',
|
|
2410
2410
|
plural: true,
|
|
2411
|
-
fragment: select$
|
|
2411
|
+
fragment: select$A()
|
|
2412
2412
|
},
|
|
2413
2413
|
{
|
|
2414
2414
|
name: 'includesCustomEmoji',
|
|
@@ -2480,7 +2480,7 @@ const select$w = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2480
2480
|
]
|
|
2481
2481
|
};
|
|
2482
2482
|
};
|
|
2483
|
-
function equals$
|
|
2483
|
+
function equals$f(existing, incoming) {
|
|
2484
2484
|
const existing_isEditable = existing.isEditable;
|
|
2485
2485
|
const incoming_isEditable = incoming.isEditable;
|
|
2486
2486
|
if (!(existing_isEditable === incoming_isEditable)) {
|
|
@@ -2574,7 +2574,7 @@ function equals$d(existing, incoming) {
|
|
|
2574
2574
|
const existing_reactions = existing.reactions;
|
|
2575
2575
|
const incoming_reactions = incoming.reactions;
|
|
2576
2576
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
2577
|
-
if (!(equals$
|
|
2577
|
+
if (!(equals$m(existing_reactions_item, incoming_reactions_item))) {
|
|
2578
2578
|
return false;
|
|
2579
2579
|
}
|
|
2580
2580
|
});
|
|
@@ -2618,35 +2618,35 @@ function equals$d(existing, incoming) {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
return true;
|
|
2620
2620
|
}
|
|
2621
|
-
const ingest$
|
|
2621
|
+
const ingest$d = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2622
2622
|
if (process.env.NODE_ENV !== 'production') {
|
|
2623
|
-
const validateError = validate$
|
|
2623
|
+
const validateError = validate$f(input);
|
|
2624
2624
|
if (validateError !== null) {
|
|
2625
2625
|
throw validateError;
|
|
2626
2626
|
}
|
|
2627
2627
|
}
|
|
2628
2628
|
const key = path.fullPath;
|
|
2629
2629
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2630
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2630
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SlackBridge", VERSION$f, RepresentationType$d, equals$f);
|
|
2631
2631
|
return createLink(key);
|
|
2632
2632
|
};
|
|
2633
|
-
function getTypeCacheKeys$
|
|
2633
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
2634
2634
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2635
2635
|
const rootKey = fullPathFactory();
|
|
2636
2636
|
rootKeySet.set(rootKey, {
|
|
2637
2637
|
namespace: keyPrefix,
|
|
2638
|
-
representationName: RepresentationType$
|
|
2638
|
+
representationName: RepresentationType$d,
|
|
2639
2639
|
mergeable: false
|
|
2640
2640
|
});
|
|
2641
2641
|
const input_files_length = input.files.length;
|
|
2642
2642
|
for (let i = 0; i < input_files_length; i++) {
|
|
2643
|
-
getTypeCacheKeys$
|
|
2643
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.files[i]);
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
2646
|
|
|
2647
|
-
const TTL$
|
|
2648
|
-
const VERSION$
|
|
2649
|
-
function validate$
|
|
2647
|
+
const TTL$3 = 500;
|
|
2648
|
+
const VERSION$e = "fb0fd743f16f2b13d70727c055fbc834";
|
|
2649
|
+
function validate$e(obj, path = 'SlackBridgeRelatedThreadsOutputRepresentation') {
|
|
2650
2650
|
const v_error = (() => {
|
|
2651
2651
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2652
2652
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2683,14 +2683,14 @@ function validate$c(obj, path = 'SlackBridgeRelatedThreadsOutputRepresentation')
|
|
|
2683
2683
|
})();
|
|
2684
2684
|
return v_error === undefined ? null : v_error;
|
|
2685
2685
|
}
|
|
2686
|
-
const RepresentationType$
|
|
2687
|
-
function normalize$
|
|
2686
|
+
const RepresentationType$c = 'SlackBridgeRelatedThreadsOutputRepresentation';
|
|
2687
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
2688
2688
|
const input_conversations = input.conversations;
|
|
2689
2689
|
const input_conversations_id = path.fullPath + '__conversations';
|
|
2690
2690
|
for (let i = 0; i < input_conversations.length; i++) {
|
|
2691
2691
|
const input_conversations_item = input_conversations[i];
|
|
2692
2692
|
let input_conversations_item_id = input_conversations_id + '__' + i;
|
|
2693
|
-
input_conversations[i] = ingest$
|
|
2693
|
+
input_conversations[i] = ingest$f(input_conversations_item, {
|
|
2694
2694
|
fullPath: input_conversations_item_id,
|
|
2695
2695
|
propertyName: i,
|
|
2696
2696
|
parent: {
|
|
@@ -2706,7 +2706,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
2706
2706
|
for (let i = 0; i < input_messages.length; i++) {
|
|
2707
2707
|
const input_messages_item = input_messages[i];
|
|
2708
2708
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
2709
|
-
input_messages[i] = ingest$
|
|
2709
|
+
input_messages[i] = ingest$d(input_messages_item, {
|
|
2710
2710
|
fullPath: input_messages_item_id,
|
|
2711
2711
|
propertyName: i,
|
|
2712
2712
|
parent: {
|
|
@@ -2719,23 +2719,23 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
2719
2719
|
}
|
|
2720
2720
|
return input;
|
|
2721
2721
|
}
|
|
2722
|
-
const select$
|
|
2722
|
+
const select$y = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
2723
2723
|
return {
|
|
2724
2724
|
kind: 'Fragment',
|
|
2725
|
-
version: VERSION$
|
|
2725
|
+
version: VERSION$e,
|
|
2726
2726
|
private: [],
|
|
2727
2727
|
selections: [
|
|
2728
2728
|
{
|
|
2729
2729
|
name: 'conversations',
|
|
2730
2730
|
kind: 'Link',
|
|
2731
2731
|
plural: true,
|
|
2732
|
-
fragment: select$
|
|
2732
|
+
fragment: select$E()
|
|
2733
2733
|
},
|
|
2734
2734
|
{
|
|
2735
2735
|
name: 'messages',
|
|
2736
2736
|
kind: 'Link',
|
|
2737
2737
|
plural: true,
|
|
2738
|
-
fragment: select$
|
|
2738
|
+
fragment: select$z()
|
|
2739
2739
|
},
|
|
2740
2740
|
{
|
|
2741
2741
|
name: 'teamId',
|
|
@@ -2744,7 +2744,7 @@ const select$v = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
2744
2744
|
]
|
|
2745
2745
|
};
|
|
2746
2746
|
};
|
|
2747
|
-
function equals$
|
|
2747
|
+
function equals$e(existing, incoming) {
|
|
2748
2748
|
const existing_teamId = existing.teamId;
|
|
2749
2749
|
const incoming_teamId = incoming.teamId;
|
|
2750
2750
|
if (!(existing_teamId === incoming_teamId)) {
|
|
@@ -2772,52 +2772,52 @@ function equals$c(existing, incoming) {
|
|
|
2772
2772
|
}
|
|
2773
2773
|
return true;
|
|
2774
2774
|
}
|
|
2775
|
-
const ingest$
|
|
2775
|
+
const ingest$c = function SlackBridgeRelatedThreadsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2776
2776
|
if (process.env.NODE_ENV !== 'production') {
|
|
2777
|
-
const validateError = validate$
|
|
2777
|
+
const validateError = validate$e(input);
|
|
2778
2778
|
if (validateError !== null) {
|
|
2779
2779
|
throw validateError;
|
|
2780
2780
|
}
|
|
2781
2781
|
}
|
|
2782
2782
|
const key = path.fullPath;
|
|
2783
|
-
const ttlToUse = TTL$
|
|
2784
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2783
|
+
const ttlToUse = TTL$3;
|
|
2784
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$e, RepresentationType$c, equals$e);
|
|
2785
2785
|
return createLink(key);
|
|
2786
2786
|
};
|
|
2787
|
-
function getTypeCacheKeys$
|
|
2787
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
2788
2788
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2789
2789
|
const rootKey = fullPathFactory();
|
|
2790
2790
|
rootKeySet.set(rootKey, {
|
|
2791
2791
|
namespace: keyPrefix,
|
|
2792
|
-
representationName: RepresentationType$
|
|
2792
|
+
representationName: RepresentationType$c,
|
|
2793
2793
|
mergeable: false
|
|
2794
2794
|
});
|
|
2795
2795
|
const input_conversations_length = input.conversations.length;
|
|
2796
2796
|
for (let i = 0; i < input_conversations_length; i++) {
|
|
2797
|
-
getTypeCacheKeys$
|
|
2797
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversations[i]);
|
|
2798
2798
|
}
|
|
2799
2799
|
const input_messages_length = input.messages.length;
|
|
2800
2800
|
for (let i = 0; i < input_messages_length; i++) {
|
|
2801
|
-
getTypeCacheKeys$
|
|
2801
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.messages[i], () => '');
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
2804
|
|
|
2805
|
-
function select$
|
|
2806
|
-
return select$
|
|
2805
|
+
function select$x(luvio, params) {
|
|
2806
|
+
return select$y();
|
|
2807
2807
|
}
|
|
2808
|
-
function keyBuilder$
|
|
2808
|
+
function keyBuilder$v(luvio, params) {
|
|
2809
2809
|
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
2810
2810
|
}
|
|
2811
|
-
function getResponseCacheKeys$
|
|
2812
|
-
getTypeCacheKeys$
|
|
2811
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
2812
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$v(luvio, resourceParams));
|
|
2813
2813
|
}
|
|
2814
|
-
function ingestSuccess$
|
|
2814
|
+
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
2815
2815
|
const { body } = response;
|
|
2816
|
-
const key = keyBuilder$
|
|
2817
|
-
luvio.storeIngest(key, ingest$
|
|
2816
|
+
const key = keyBuilder$v(luvio, resourceParams);
|
|
2817
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
2818
2818
|
const snapshot = luvio.storeLookup({
|
|
2819
2819
|
recordId: key,
|
|
2820
|
-
node: select$
|
|
2820
|
+
node: select$x(),
|
|
2821
2821
|
variables: {},
|
|
2822
2822
|
}, snapshotRefresh);
|
|
2823
2823
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2828,19 +2828,19 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2828
2828
|
deepFreeze(snapshot.data);
|
|
2829
2829
|
return snapshot;
|
|
2830
2830
|
}
|
|
2831
|
-
function ingestError$
|
|
2832
|
-
const key = keyBuilder$
|
|
2831
|
+
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
2832
|
+
const key = keyBuilder$v(luvio, params);
|
|
2833
2833
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2834
2834
|
const storeMetadataParams = {
|
|
2835
|
-
ttl: TTL$
|
|
2835
|
+
ttl: TTL$3,
|
|
2836
2836
|
namespace: keyPrefix,
|
|
2837
|
-
version: VERSION$
|
|
2838
|
-
representationName: RepresentationType$
|
|
2837
|
+
version: VERSION$e,
|
|
2838
|
+
representationName: RepresentationType$c
|
|
2839
2839
|
};
|
|
2840
2840
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2841
2841
|
return errorSnapshot;
|
|
2842
2842
|
}
|
|
2843
|
-
function createResourceRequest$
|
|
2843
|
+
function createResourceRequest$j(config) {
|
|
2844
2844
|
const headers = {};
|
|
2845
2845
|
return {
|
|
2846
2846
|
baseUri: '/services/data/v64.0',
|
|
@@ -2854,94 +2854,94 @@ function createResourceRequest$i(config) {
|
|
|
2854
2854
|
};
|
|
2855
2855
|
}
|
|
2856
2856
|
|
|
2857
|
-
const adapterName$
|
|
2857
|
+
const adapterName$j = 'getRelatedThreads';
|
|
2858
2858
|
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
2859
2859
|
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
2860
2860
|
];
|
|
2861
|
-
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2862
|
-
const createResourceParams$
|
|
2863
|
-
function keyBuilder$
|
|
2864
|
-
const resourceParams = createResourceParams$
|
|
2865
|
-
return keyBuilder$
|
|
2861
|
+
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getRelatedThreads_ConfigPropertyMetadata);
|
|
2862
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$n(getRelatedThreads_ConfigPropertyMetadata);
|
|
2863
|
+
function keyBuilder$u(luvio, config) {
|
|
2864
|
+
const resourceParams = createResourceParams$j(config);
|
|
2865
|
+
return keyBuilder$v(luvio, resourceParams);
|
|
2866
2866
|
}
|
|
2867
|
-
function typeCheckConfig$
|
|
2867
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
2868
2868
|
const config = {};
|
|
2869
|
-
typeCheckConfig$
|
|
2869
|
+
typeCheckConfig$n(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
2870
2870
|
return config;
|
|
2871
2871
|
}
|
|
2872
|
-
function validateAdapterConfig$
|
|
2872
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
2873
2873
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2874
2874
|
return null;
|
|
2875
2875
|
}
|
|
2876
2876
|
if (process.env.NODE_ENV !== 'production') {
|
|
2877
2877
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2878
2878
|
}
|
|
2879
|
-
const config = typeCheckConfig$
|
|
2879
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
2880
2880
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2881
2881
|
return null;
|
|
2882
2882
|
}
|
|
2883
2883
|
return config;
|
|
2884
2884
|
}
|
|
2885
|
-
function adapterFragment$
|
|
2886
|
-
createResourceParams$
|
|
2887
|
-
return select$
|
|
2885
|
+
function adapterFragment$c(luvio, config) {
|
|
2886
|
+
createResourceParams$j(config);
|
|
2887
|
+
return select$x();
|
|
2888
2888
|
}
|
|
2889
|
-
function onFetchResponseSuccess$
|
|
2890
|
-
const snapshot = ingestSuccess$
|
|
2889
|
+
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
2890
|
+
const snapshot = ingestSuccess$j(luvio, resourceParams, response, {
|
|
2891
2891
|
config,
|
|
2892
|
-
resolve: () => buildNetworkSnapshot$
|
|
2892
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
2893
2893
|
});
|
|
2894
2894
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2895
2895
|
}
|
|
2896
|
-
function onFetchResponseError$
|
|
2897
|
-
const snapshot = ingestError$
|
|
2896
|
+
function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
2897
|
+
const snapshot = ingestError$c(luvio, resourceParams, response, {
|
|
2898
2898
|
config,
|
|
2899
|
-
resolve: () => buildNetworkSnapshot$
|
|
2899
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
2900
2900
|
});
|
|
2901
2901
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2902
2902
|
}
|
|
2903
|
-
function buildNetworkSnapshot$
|
|
2904
|
-
const resourceParams = createResourceParams$
|
|
2905
|
-
const request = createResourceRequest$
|
|
2903
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
2904
|
+
const resourceParams = createResourceParams$j(config);
|
|
2905
|
+
const request = createResourceRequest$j(resourceParams);
|
|
2906
2906
|
return luvio.dispatchResourceRequest(request, options)
|
|
2907
2907
|
.then((response) => {
|
|
2908
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2908
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
2909
2909
|
const cache = new StoreKeyMap();
|
|
2910
|
-
getResponseCacheKeys$
|
|
2910
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
2911
2911
|
return cache;
|
|
2912
2912
|
});
|
|
2913
2913
|
}, (response) => {
|
|
2914
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2914
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$c(luvio, config, resourceParams, response));
|
|
2915
2915
|
});
|
|
2916
2916
|
}
|
|
2917
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2918
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2917
|
+
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
2918
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$j, undefined, false);
|
|
2919
2919
|
}
|
|
2920
|
-
function buildCachedSnapshotCachePolicy$
|
|
2920
|
+
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
2921
2921
|
const { luvio, config } = context;
|
|
2922
2922
|
const selector = {
|
|
2923
|
-
recordId: keyBuilder$
|
|
2924
|
-
node: adapterFragment$
|
|
2923
|
+
recordId: keyBuilder$u(luvio, config),
|
|
2924
|
+
node: adapterFragment$c(luvio, config),
|
|
2925
2925
|
variables: {},
|
|
2926
2926
|
};
|
|
2927
2927
|
const cacheSnapshot = storeLookup(selector, {
|
|
2928
2928
|
config,
|
|
2929
|
-
resolve: () => buildNetworkSnapshot$
|
|
2929
|
+
resolve: () => buildNetworkSnapshot$j(luvio, config, snapshotRefreshOptions)
|
|
2930
2930
|
});
|
|
2931
2931
|
return cacheSnapshot;
|
|
2932
2932
|
}
|
|
2933
2933
|
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
2934
|
-
const config = validateAdapterConfig$
|
|
2934
|
+
const config = validateAdapterConfig$j(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
2935
2935
|
// Invalid or incomplete config
|
|
2936
2936
|
if (config === null) {
|
|
2937
2937
|
return null;
|
|
2938
2938
|
}
|
|
2939
2939
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2940
|
-
buildCachedSnapshotCachePolicy$
|
|
2940
|
+
buildCachedSnapshotCachePolicy$c, buildNetworkSnapshotCachePolicy$c);
|
|
2941
2941
|
};
|
|
2942
2942
|
|
|
2943
|
-
const VERSION$
|
|
2944
|
-
function validate$
|
|
2943
|
+
const VERSION$d = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
2944
|
+
function validate$d(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
2945
2945
|
const v_error = (() => {
|
|
2946
2946
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2947
2947
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3027,10 +3027,10 @@ function validate$b(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
3027
3027
|
})();
|
|
3028
3028
|
return v_error === undefined ? null : v_error;
|
|
3029
3029
|
}
|
|
3030
|
-
const select$
|
|
3030
|
+
const select$w = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
3031
3031
|
return {
|
|
3032
3032
|
kind: 'Fragment',
|
|
3033
|
-
version: VERSION$
|
|
3033
|
+
version: VERSION$d,
|
|
3034
3034
|
private: [],
|
|
3035
3035
|
selections: [
|
|
3036
3036
|
{
|
|
@@ -3048,7 +3048,7 @@ const select$t = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
|
3048
3048
|
]
|
|
3049
3049
|
};
|
|
3050
3050
|
};
|
|
3051
|
-
function equals$
|
|
3051
|
+
function equals$d(existing, incoming) {
|
|
3052
3052
|
const existing_appleUrl = existing.appleUrl;
|
|
3053
3053
|
const incoming_appleUrl = incoming.appleUrl;
|
|
3054
3054
|
if (!(existing_appleUrl === incoming_appleUrl)) {
|
|
@@ -3067,9 +3067,9 @@ function equals$b(existing, incoming) {
|
|
|
3067
3067
|
return true;
|
|
3068
3068
|
}
|
|
3069
3069
|
|
|
3070
|
-
const TTL$
|
|
3071
|
-
const VERSION$
|
|
3072
|
-
function validate$
|
|
3070
|
+
const TTL$2 = 2592000000;
|
|
3071
|
+
const VERSION$c = "a0e1530372a57d61a1264218124bbb5c";
|
|
3072
|
+
function validate$c(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
3073
3073
|
const v_error = (() => {
|
|
3074
3074
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3075
3075
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3187,7 +3187,7 @@ function validate$a(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
3187
3187
|
const path_value = path + '.value';
|
|
3188
3188
|
let obj_value_union0 = null;
|
|
3189
3189
|
const obj_value_union0_error = (() => {
|
|
3190
|
-
const referencepath_valueValidationError = validate$
|
|
3190
|
+
const referencepath_valueValidationError = validate$d(obj_value, path_value);
|
|
3191
3191
|
if (referencepath_valueValidationError !== null) {
|
|
3192
3192
|
let message = 'Object doesn\'t match SlackBridgeEmojiValueOutputRepresentation (at "' + path_value + '")\n';
|
|
3193
3193
|
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3215,24 +3215,24 @@ function validate$a(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
3215
3215
|
})();
|
|
3216
3216
|
return v_error === undefined ? null : v_error;
|
|
3217
3217
|
}
|
|
3218
|
-
const RepresentationType$
|
|
3219
|
-
function keyBuilder$
|
|
3220
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3218
|
+
const RepresentationType$b = 'SlackBridgeEmojiOutputRepresentation';
|
|
3219
|
+
function keyBuilder$t(luvio, config) {
|
|
3220
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
3221
3221
|
}
|
|
3222
3222
|
function keyBuilderFromType$5(luvio, object) {
|
|
3223
3223
|
const keyParams = {
|
|
3224
3224
|
name: object.name
|
|
3225
3225
|
};
|
|
3226
|
-
return keyBuilder$
|
|
3226
|
+
return keyBuilder$t(luvio, keyParams);
|
|
3227
3227
|
}
|
|
3228
|
-
function normalize$
|
|
3228
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
3229
3229
|
return input;
|
|
3230
3230
|
}
|
|
3231
|
-
const select$
|
|
3232
|
-
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$
|
|
3231
|
+
const select$v = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
3232
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$w();
|
|
3233
3233
|
return {
|
|
3234
3234
|
kind: 'Fragment',
|
|
3235
|
-
version: VERSION$
|
|
3235
|
+
version: VERSION$c,
|
|
3236
3236
|
private: [],
|
|
3237
3237
|
selections: [
|
|
3238
3238
|
{
|
|
@@ -3264,7 +3264,7 @@ const select$s = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
|
3264
3264
|
]
|
|
3265
3265
|
};
|
|
3266
3266
|
};
|
|
3267
|
-
function equals$
|
|
3267
|
+
function equals$c(existing, incoming) {
|
|
3268
3268
|
const existing_name = existing.name;
|
|
3269
3269
|
const incoming_name = incoming.name;
|
|
3270
3270
|
if (!(existing_name === incoming_name)) {
|
|
@@ -3295,36 +3295,36 @@ function equals$a(existing, incoming) {
|
|
|
3295
3295
|
if (!(existing_value === incoming_value
|
|
3296
3296
|
|| (existing_value != null &&
|
|
3297
3297
|
incoming_value != null &&
|
|
3298
|
-
equals$
|
|
3298
|
+
equals$d(existing_value, incoming_value)))) {
|
|
3299
3299
|
return false;
|
|
3300
3300
|
}
|
|
3301
3301
|
return true;
|
|
3302
3302
|
}
|
|
3303
|
-
const ingest$
|
|
3303
|
+
const ingest$b = function SlackBridgeEmojiOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3304
3304
|
if (process.env.NODE_ENV !== 'production') {
|
|
3305
|
-
const validateError = validate$
|
|
3305
|
+
const validateError = validate$c(input);
|
|
3306
3306
|
if (validateError !== null) {
|
|
3307
3307
|
throw validateError;
|
|
3308
3308
|
}
|
|
3309
3309
|
}
|
|
3310
3310
|
const key = keyBuilderFromType$5(luvio, input);
|
|
3311
|
-
const ttlToUse = TTL$
|
|
3312
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3311
|
+
const ttlToUse = TTL$2;
|
|
3312
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$c, RepresentationType$b, equals$c);
|
|
3313
3313
|
return createLink(key);
|
|
3314
3314
|
};
|
|
3315
|
-
function getTypeCacheKeys$
|
|
3315
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
3316
3316
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3317
3317
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
3318
3318
|
rootKeySet.set(rootKey, {
|
|
3319
3319
|
namespace: keyPrefix,
|
|
3320
|
-
representationName: RepresentationType$
|
|
3320
|
+
representationName: RepresentationType$b,
|
|
3321
3321
|
mergeable: false
|
|
3322
3322
|
});
|
|
3323
3323
|
}
|
|
3324
3324
|
|
|
3325
|
-
const TTL = 600000;
|
|
3326
|
-
const VERSION$
|
|
3327
|
-
function validate$
|
|
3325
|
+
const TTL$1 = 600000;
|
|
3326
|
+
const VERSION$b = "ffc32ae0451b10824fba0c96aa0d2115";
|
|
3327
|
+
function validate$b(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
3328
3328
|
const v_error = (() => {
|
|
3329
3329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3330
3330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3727,22 +3727,22 @@ function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
3727
3727
|
})();
|
|
3728
3728
|
return v_error === undefined ? null : v_error;
|
|
3729
3729
|
}
|
|
3730
|
-
const RepresentationType$
|
|
3731
|
-
function keyBuilder$
|
|
3732
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3730
|
+
const RepresentationType$a = 'SlackBridgeUserInfoOutputRepresentation';
|
|
3731
|
+
function keyBuilder$s(luvio, config) {
|
|
3732
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.teamId + ':' + config.slackUserId;
|
|
3733
3733
|
}
|
|
3734
3734
|
function keyBuilderFromType$4(luvio, object) {
|
|
3735
3735
|
const keyParams = {
|
|
3736
3736
|
teamId: object.teamId,
|
|
3737
3737
|
slackUserId: object.slackUserId
|
|
3738
3738
|
};
|
|
3739
|
-
return keyBuilder$
|
|
3739
|
+
return keyBuilder$s(luvio, keyParams);
|
|
3740
3740
|
}
|
|
3741
|
-
function normalize$
|
|
3741
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3742
3742
|
const input_statusEmoji = input.statusEmoji;
|
|
3743
3743
|
const input_statusEmoji_id = path.fullPath + '__statusEmoji';
|
|
3744
3744
|
if (input_statusEmoji !== null && typeof input_statusEmoji === 'object') {
|
|
3745
|
-
input.statusEmoji = ingest$
|
|
3745
|
+
input.statusEmoji = ingest$b(input_statusEmoji, {
|
|
3746
3746
|
fullPath: input_statusEmoji_id,
|
|
3747
3747
|
propertyName: 'statusEmoji',
|
|
3748
3748
|
parent: {
|
|
@@ -3755,10 +3755,10 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
3755
3755
|
}
|
|
3756
3756
|
return input;
|
|
3757
3757
|
}
|
|
3758
|
-
const select$
|
|
3758
|
+
const select$u = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
3759
3759
|
return {
|
|
3760
3760
|
kind: 'Fragment',
|
|
3761
|
-
version: VERSION$
|
|
3761
|
+
version: VERSION$b,
|
|
3762
3762
|
private: [],
|
|
3763
3763
|
selections: [
|
|
3764
3764
|
{
|
|
@@ -3828,7 +3828,7 @@ const select$r = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
3828
3828
|
name: 'statusEmoji',
|
|
3829
3829
|
kind: 'Link',
|
|
3830
3830
|
nullable: true,
|
|
3831
|
-
fragment: select$
|
|
3831
|
+
fragment: select$v()
|
|
3832
3832
|
},
|
|
3833
3833
|
{
|
|
3834
3834
|
name: 'statusMessage',
|
|
@@ -3845,7 +3845,7 @@ const select$r = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
3845
3845
|
]
|
|
3846
3846
|
};
|
|
3847
3847
|
};
|
|
3848
|
-
function equals$
|
|
3848
|
+
function equals$b(existing, incoming) {
|
|
3849
3849
|
const existing_bot = existing.bot;
|
|
3850
3850
|
const incoming_bot = incoming.bot;
|
|
3851
3851
|
if (!(existing_bot === incoming_bot)) {
|
|
@@ -3972,33 +3972,33 @@ function equals$9(existing, incoming) {
|
|
|
3972
3972
|
}
|
|
3973
3973
|
return true;
|
|
3974
3974
|
}
|
|
3975
|
-
const ingest$
|
|
3975
|
+
const ingest$a = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3976
3976
|
if (process.env.NODE_ENV !== 'production') {
|
|
3977
|
-
const validateError = validate$
|
|
3977
|
+
const validateError = validate$b(input);
|
|
3978
3978
|
if (validateError !== null) {
|
|
3979
3979
|
throw validateError;
|
|
3980
3980
|
}
|
|
3981
3981
|
}
|
|
3982
3982
|
const key = keyBuilderFromType$4(luvio, input);
|
|
3983
|
-
const ttlToUse = TTL;
|
|
3984
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3983
|
+
const ttlToUse = TTL$1;
|
|
3984
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$b, RepresentationType$a, equals$b);
|
|
3985
3985
|
return createLink(key);
|
|
3986
3986
|
};
|
|
3987
|
-
function getTypeCacheKeys$
|
|
3987
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
3988
3988
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3989
3989
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
3990
3990
|
rootKeySet.set(rootKey, {
|
|
3991
3991
|
namespace: keyPrefix,
|
|
3992
|
-
representationName: RepresentationType$
|
|
3992
|
+
representationName: RepresentationType$a,
|
|
3993
3993
|
mergeable: false
|
|
3994
3994
|
});
|
|
3995
3995
|
if (input.statusEmoji !== null && typeof input.statusEmoji === 'object') {
|
|
3996
|
-
getTypeCacheKeys$
|
|
3996
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.statusEmoji);
|
|
3997
3997
|
}
|
|
3998
3998
|
}
|
|
3999
3999
|
|
|
4000
|
-
const VERSION$
|
|
4001
|
-
function validate$
|
|
4000
|
+
const VERSION$a = "5145ac2c241c561e4baa29b3884748dc";
|
|
4001
|
+
function validate$a(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
|
|
4002
4002
|
const v_error = (() => {
|
|
4003
4003
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4004
4004
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4049,14 +4049,14 @@ function validate$8(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
|
|
|
4049
4049
|
})();
|
|
4050
4050
|
return v_error === undefined ? null : v_error;
|
|
4051
4051
|
}
|
|
4052
|
-
const RepresentationType$
|
|
4053
|
-
function normalize$
|
|
4052
|
+
const RepresentationType$9 = 'SlackBridgeConversationHistoryOutputRepresentation';
|
|
4053
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
4054
4054
|
const input_messages = input.messages;
|
|
4055
4055
|
const input_messages_id = path.fullPath + '__messages';
|
|
4056
4056
|
for (let i = 0; i < input_messages.length; i++) {
|
|
4057
4057
|
const input_messages_item = input_messages[i];
|
|
4058
4058
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
4059
|
-
input_messages[i] = ingest$
|
|
4059
|
+
input_messages[i] = ingest$d(input_messages_item, {
|
|
4060
4060
|
fullPath: input_messages_item_id,
|
|
4061
4061
|
propertyName: i,
|
|
4062
4062
|
parent: {
|
|
@@ -4069,10 +4069,10 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4069
4069
|
}
|
|
4070
4070
|
return input;
|
|
4071
4071
|
}
|
|
4072
|
-
const select$
|
|
4072
|
+
const select$t = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
4073
4073
|
return {
|
|
4074
4074
|
kind: 'Fragment',
|
|
4075
|
-
version: VERSION$
|
|
4075
|
+
version: VERSION$a,
|
|
4076
4076
|
private: [],
|
|
4077
4077
|
selections: [
|
|
4078
4078
|
{
|
|
@@ -4083,7 +4083,7 @@ const select$q = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
4083
4083
|
name: 'messages',
|
|
4084
4084
|
kind: 'Link',
|
|
4085
4085
|
plural: true,
|
|
4086
|
-
fragment: select$
|
|
4086
|
+
fragment: select$z()
|
|
4087
4087
|
},
|
|
4088
4088
|
{
|
|
4089
4089
|
name: 'nextCursor',
|
|
@@ -4092,7 +4092,7 @@ const select$q = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
4092
4092
|
]
|
|
4093
4093
|
};
|
|
4094
4094
|
};
|
|
4095
|
-
function equals$
|
|
4095
|
+
function equals$a(existing, incoming) {
|
|
4096
4096
|
const existing_hasMore = existing.hasMore;
|
|
4097
4097
|
const incoming_hasMore = incoming.hasMore;
|
|
4098
4098
|
if (!(existing_hasMore === incoming_hasMore)) {
|
|
@@ -4115,34 +4115,34 @@ function equals$8(existing, incoming) {
|
|
|
4115
4115
|
}
|
|
4116
4116
|
return true;
|
|
4117
4117
|
}
|
|
4118
|
-
const ingest$
|
|
4118
|
+
const ingest$9 = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4119
4119
|
if (process.env.NODE_ENV !== 'production') {
|
|
4120
|
-
const validateError = validate$
|
|
4120
|
+
const validateError = validate$a(input);
|
|
4121
4121
|
if (validateError !== null) {
|
|
4122
4122
|
throw validateError;
|
|
4123
4123
|
}
|
|
4124
4124
|
}
|
|
4125
4125
|
const key = path.fullPath;
|
|
4126
4126
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4127
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4127
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$a, RepresentationType$9, equals$a);
|
|
4128
4128
|
return createLink(key);
|
|
4129
4129
|
};
|
|
4130
|
-
function getTypeCacheKeys$
|
|
4130
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
4131
4131
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4132
4132
|
const rootKey = fullPathFactory();
|
|
4133
4133
|
rootKeySet.set(rootKey, {
|
|
4134
4134
|
namespace: keyPrefix,
|
|
4135
|
-
representationName: RepresentationType$
|
|
4135
|
+
representationName: RepresentationType$9,
|
|
4136
4136
|
mergeable: false
|
|
4137
4137
|
});
|
|
4138
4138
|
const input_messages_length = input.messages.length;
|
|
4139
4139
|
for (let i = 0; i < input_messages_length; i++) {
|
|
4140
|
-
getTypeCacheKeys$
|
|
4140
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.messages[i], () => '');
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
|
|
4144
|
-
const VERSION$
|
|
4145
|
-
function validate$
|
|
4144
|
+
const VERSION$9 = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
4145
|
+
function validate$9(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
4146
4146
|
const v_error = (() => {
|
|
4147
4147
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4148
4148
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4286,12 +4286,12 @@ function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
4286
4286
|
})();
|
|
4287
4287
|
return v_error === undefined ? null : v_error;
|
|
4288
4288
|
}
|
|
4289
|
-
const RepresentationType$
|
|
4290
|
-
function normalize$
|
|
4289
|
+
const RepresentationType$8 = 'SlackBridgeConversationOutputRepresentation';
|
|
4290
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
4291
4291
|
const input_contextUserInfo = input.contextUserInfo;
|
|
4292
4292
|
const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
|
|
4293
4293
|
if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
|
|
4294
|
-
input.contextUserInfo = ingest$
|
|
4294
|
+
input.contextUserInfo = ingest$a(input_contextUserInfo, {
|
|
4295
4295
|
fullPath: input_contextUserInfo_id,
|
|
4296
4296
|
propertyName: 'contextUserInfo',
|
|
4297
4297
|
parent: {
|
|
@@ -4305,7 +4305,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4305
4305
|
const input_conversationInfo = input.conversationInfo;
|
|
4306
4306
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
4307
4307
|
if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
|
|
4308
|
-
input.conversationInfo = ingest$
|
|
4308
|
+
input.conversationInfo = ingest$f(input_conversationInfo, {
|
|
4309
4309
|
fullPath: input_conversationInfo_id,
|
|
4310
4310
|
propertyName: 'conversationInfo',
|
|
4311
4311
|
parent: {
|
|
@@ -4318,7 +4318,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4318
4318
|
}
|
|
4319
4319
|
const input_history = input.history;
|
|
4320
4320
|
const input_history_id = path.fullPath + '__history';
|
|
4321
|
-
input.history = ingest$
|
|
4321
|
+
input.history = ingest$9(input_history, {
|
|
4322
4322
|
fullPath: input_history_id,
|
|
4323
4323
|
propertyName: 'history',
|
|
4324
4324
|
parent: {
|
|
@@ -4333,7 +4333,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4333
4333
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
4334
4334
|
const input_userInfos_item = input_userInfos[i];
|
|
4335
4335
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
4336
|
-
input_userInfos[i] = ingest$
|
|
4336
|
+
input_userInfos[i] = ingest$a(input_userInfos_item, {
|
|
4337
4337
|
fullPath: input_userInfos_item_id,
|
|
4338
4338
|
propertyName: i,
|
|
4339
4339
|
parent: {
|
|
@@ -4346,10 +4346,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
4346
4346
|
}
|
|
4347
4347
|
return input;
|
|
4348
4348
|
}
|
|
4349
|
-
const select$
|
|
4349
|
+
const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
4350
4350
|
return {
|
|
4351
4351
|
kind: 'Fragment',
|
|
4352
|
-
version: VERSION$
|
|
4352
|
+
version: VERSION$9,
|
|
4353
4353
|
private: [],
|
|
4354
4354
|
selections: [
|
|
4355
4355
|
{
|
|
@@ -4364,18 +4364,18 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4364
4364
|
name: 'contextUserInfo',
|
|
4365
4365
|
kind: 'Link',
|
|
4366
4366
|
nullable: true,
|
|
4367
|
-
fragment: select$
|
|
4367
|
+
fragment: select$u()
|
|
4368
4368
|
},
|
|
4369
4369
|
{
|
|
4370
4370
|
name: 'conversationInfo',
|
|
4371
4371
|
kind: 'Link',
|
|
4372
4372
|
nullable: true,
|
|
4373
|
-
fragment: select$
|
|
4373
|
+
fragment: select$E()
|
|
4374
4374
|
},
|
|
4375
4375
|
{
|
|
4376
4376
|
name: 'history',
|
|
4377
4377
|
kind: 'Link',
|
|
4378
|
-
fragment: select$
|
|
4378
|
+
fragment: select$t()
|
|
4379
4379
|
},
|
|
4380
4380
|
{
|
|
4381
4381
|
name: 'teamId',
|
|
@@ -4389,7 +4389,7 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4389
4389
|
name: 'userInfos',
|
|
4390
4390
|
kind: 'Link',
|
|
4391
4391
|
plural: true,
|
|
4392
|
-
fragment: select$
|
|
4392
|
+
fragment: select$u()
|
|
4393
4393
|
},
|
|
4394
4394
|
{
|
|
4395
4395
|
name: 'websocketUrl',
|
|
@@ -4398,7 +4398,7 @@ const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4398
4398
|
]
|
|
4399
4399
|
};
|
|
4400
4400
|
};
|
|
4401
|
-
function equals$
|
|
4401
|
+
function equals$9(existing, incoming) {
|
|
4402
4402
|
const existing_channelId = existing.channelId;
|
|
4403
4403
|
const incoming_channelId = incoming.channelId;
|
|
4404
4404
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -4461,55 +4461,55 @@ function equals$7(existing, incoming) {
|
|
|
4461
4461
|
}
|
|
4462
4462
|
return true;
|
|
4463
4463
|
}
|
|
4464
|
-
const ingest$
|
|
4464
|
+
const ingest$8 = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4465
4465
|
if (process.env.NODE_ENV !== 'production') {
|
|
4466
|
-
const validateError = validate$
|
|
4466
|
+
const validateError = validate$9(input);
|
|
4467
4467
|
if (validateError !== null) {
|
|
4468
4468
|
throw validateError;
|
|
4469
4469
|
}
|
|
4470
4470
|
}
|
|
4471
4471
|
const key = path.fullPath;
|
|
4472
4472
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4473
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4473
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$9, RepresentationType$8, equals$9);
|
|
4474
4474
|
return createLink(key);
|
|
4475
4475
|
};
|
|
4476
|
-
function getTypeCacheKeys$
|
|
4476
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
4477
4477
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4478
4478
|
const rootKey = fullPathFactory();
|
|
4479
4479
|
rootKeySet.set(rootKey, {
|
|
4480
4480
|
namespace: keyPrefix,
|
|
4481
|
-
representationName: RepresentationType$
|
|
4481
|
+
representationName: RepresentationType$8,
|
|
4482
4482
|
mergeable: false
|
|
4483
4483
|
});
|
|
4484
4484
|
if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
|
|
4485
|
-
getTypeCacheKeys$
|
|
4485
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.contextUserInfo);
|
|
4486
4486
|
}
|
|
4487
4487
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
4488
|
-
getTypeCacheKeys$
|
|
4488
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
4489
4489
|
}
|
|
4490
|
-
getTypeCacheKeys$
|
|
4490
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
4491
4491
|
const input_userInfos_length = input.userInfos.length;
|
|
4492
4492
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
4493
|
-
getTypeCacheKeys$
|
|
4493
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.userInfos[i]);
|
|
4494
4494
|
}
|
|
4495
4495
|
}
|
|
4496
4496
|
|
|
4497
|
-
function select$
|
|
4498
|
-
return select$
|
|
4497
|
+
function select$r(luvio, params) {
|
|
4498
|
+
return select$s();
|
|
4499
4499
|
}
|
|
4500
|
-
function keyBuilder$
|
|
4500
|
+
function keyBuilder$r(luvio, params) {
|
|
4501
4501
|
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
4502
4502
|
}
|
|
4503
|
-
function getResponseCacheKeys$
|
|
4504
|
-
getTypeCacheKeys$
|
|
4503
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4504
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$r(luvio, resourceParams));
|
|
4505
4505
|
}
|
|
4506
|
-
function ingestSuccess$
|
|
4506
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
4507
4507
|
const { body } = response;
|
|
4508
|
-
const key = keyBuilder$
|
|
4509
|
-
luvio.storeIngest(key, ingest$
|
|
4508
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
4509
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
4510
4510
|
const snapshot = luvio.storeLookup({
|
|
4511
4511
|
recordId: key,
|
|
4512
|
-
node: select$
|
|
4512
|
+
node: select$r(),
|
|
4513
4513
|
variables: {},
|
|
4514
4514
|
}, snapshotRefresh);
|
|
4515
4515
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4520,13 +4520,13 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4520
4520
|
deepFreeze(snapshot.data);
|
|
4521
4521
|
return snapshot;
|
|
4522
4522
|
}
|
|
4523
|
-
function ingestError$
|
|
4524
|
-
const key = keyBuilder$
|
|
4523
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
4524
|
+
const key = keyBuilder$r(luvio, params);
|
|
4525
4525
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4526
4526
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4527
4527
|
return errorSnapshot;
|
|
4528
4528
|
}
|
|
4529
|
-
function createResourceRequest$
|
|
4529
|
+
function createResourceRequest$i(config) {
|
|
4530
4530
|
const headers = {};
|
|
4531
4531
|
return {
|
|
4532
4532
|
baseUri: '/services/data/v64.0',
|
|
@@ -4540,7 +4540,7 @@ function createResourceRequest$h(config) {
|
|
|
4540
4540
|
};
|
|
4541
4541
|
}
|
|
4542
4542
|
|
|
4543
|
-
const adapterName$
|
|
4543
|
+
const adapterName$i = 'getSlackConversation';
|
|
4544
4544
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
4545
4545
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4546
4546
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -4552,15 +4552,158 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
4552
4552
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4553
4553
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4554
4554
|
];
|
|
4555
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4556
|
-
const createResourceParams$
|
|
4555
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getSlackConversation_ConfigPropertyMetadata);
|
|
4556
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$n(getSlackConversation_ConfigPropertyMetadata);
|
|
4557
|
+
function keyBuilder$q(luvio, config) {
|
|
4558
|
+
const resourceParams = createResourceParams$i(config);
|
|
4559
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
4560
|
+
}
|
|
4561
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4562
|
+
const config = {};
|
|
4563
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
4564
|
+
return config;
|
|
4565
|
+
}
|
|
4566
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4567
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4568
|
+
return null;
|
|
4569
|
+
}
|
|
4570
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4571
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4572
|
+
}
|
|
4573
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
4574
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4575
|
+
return null;
|
|
4576
|
+
}
|
|
4577
|
+
return config;
|
|
4578
|
+
}
|
|
4579
|
+
function adapterFragment$b(luvio, config) {
|
|
4580
|
+
createResourceParams$i(config);
|
|
4581
|
+
return select$r();
|
|
4582
|
+
}
|
|
4583
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
4584
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
4585
|
+
config,
|
|
4586
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4587
|
+
});
|
|
4588
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4589
|
+
}
|
|
4590
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
4591
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
4592
|
+
config,
|
|
4593
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4594
|
+
});
|
|
4595
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4596
|
+
}
|
|
4597
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
4598
|
+
const resourceParams = createResourceParams$i(config);
|
|
4599
|
+
const request = createResourceRequest$i(resourceParams);
|
|
4600
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4601
|
+
.then((response) => {
|
|
4602
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
4603
|
+
const cache = new StoreKeyMap();
|
|
4604
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
4605
|
+
return cache;
|
|
4606
|
+
});
|
|
4607
|
+
}, (response) => {
|
|
4608
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
4609
|
+
});
|
|
4610
|
+
}
|
|
4611
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
4612
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
4613
|
+
}
|
|
4614
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
4615
|
+
const { luvio, config } = context;
|
|
4616
|
+
const selector = {
|
|
4617
|
+
recordId: keyBuilder$q(luvio, config),
|
|
4618
|
+
node: adapterFragment$b(luvio, config),
|
|
4619
|
+
variables: {},
|
|
4620
|
+
};
|
|
4621
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4622
|
+
config,
|
|
4623
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
4624
|
+
});
|
|
4625
|
+
return cacheSnapshot;
|
|
4626
|
+
}
|
|
4627
|
+
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
4628
|
+
const config = validateAdapterConfig$i(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
4629
|
+
// Invalid or incomplete config
|
|
4630
|
+
if (config === null) {
|
|
4631
|
+
return null;
|
|
4632
|
+
}
|
|
4633
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4634
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
4635
|
+
};
|
|
4636
|
+
|
|
4637
|
+
function select$q(luvio, params) {
|
|
4638
|
+
return select$I();
|
|
4639
|
+
}
|
|
4640
|
+
function keyBuilder$p(luvio, params) {
|
|
4641
|
+
return keyBuilder$D(luvio, {
|
|
4642
|
+
channelId: params.urlParams.channelId
|
|
4643
|
+
});
|
|
4644
|
+
}
|
|
4645
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
4646
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
4647
|
+
}
|
|
4648
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
4649
|
+
const { body } = response;
|
|
4650
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
4651
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
4652
|
+
const snapshot = luvio.storeLookup({
|
|
4653
|
+
recordId: key,
|
|
4654
|
+
node: select$q(),
|
|
4655
|
+
variables: {},
|
|
4656
|
+
}, snapshotRefresh);
|
|
4657
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4658
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4659
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4660
|
+
}
|
|
4661
|
+
}
|
|
4662
|
+
deepFreeze(snapshot.data);
|
|
4663
|
+
return snapshot;
|
|
4664
|
+
}
|
|
4665
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
4666
|
+
const key = keyBuilder$p(luvio, params);
|
|
4667
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4668
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
4669
|
+
return errorSnapshot;
|
|
4670
|
+
}
|
|
4671
|
+
function createResourceRequest$h(config) {
|
|
4672
|
+
const headers = {};
|
|
4673
|
+
return {
|
|
4674
|
+
baseUri: '/services/data/v64.0',
|
|
4675
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
|
|
4676
|
+
method: 'get',
|
|
4677
|
+
body: null,
|
|
4678
|
+
urlParams: config.urlParams,
|
|
4679
|
+
queryParams: {},
|
|
4680
|
+
headers,
|
|
4681
|
+
priority: 'normal',
|
|
4682
|
+
};
|
|
4683
|
+
}
|
|
4684
|
+
function createResourceRequestFromRepresentation$5(representation) {
|
|
4685
|
+
const config = {
|
|
4686
|
+
urlParams: {},
|
|
4687
|
+
};
|
|
4688
|
+
config.urlParams.channelId = representation.channelId;
|
|
4689
|
+
return createResourceRequest$h(config);
|
|
4690
|
+
}
|
|
4691
|
+
|
|
4692
|
+
const adapterName$h = 'getSlackConversationMember';
|
|
4693
|
+
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
4694
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4695
|
+
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4696
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4697
|
+
];
|
|
4698
|
+
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4699
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$n(getSlackConversationMember_ConfigPropertyMetadata);
|
|
4557
4700
|
function keyBuilder$o(luvio, config) {
|
|
4558
4701
|
const resourceParams = createResourceParams$h(config);
|
|
4559
4702
|
return keyBuilder$p(luvio, resourceParams);
|
|
4560
4703
|
}
|
|
4561
4704
|
function typeCheckConfig$h(untrustedConfig) {
|
|
4562
4705
|
const config = {};
|
|
4563
|
-
typeCheckConfig$
|
|
4706
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4564
4707
|
return config;
|
|
4565
4708
|
}
|
|
4566
4709
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -4578,7 +4721,7 @@ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
|
4578
4721
|
}
|
|
4579
4722
|
function adapterFragment$a(luvio, config) {
|
|
4580
4723
|
createResourceParams$h(config);
|
|
4581
|
-
return select$
|
|
4724
|
+
return select$q();
|
|
4582
4725
|
}
|
|
4583
4726
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4584
4727
|
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
@@ -4609,7 +4752,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
4609
4752
|
});
|
|
4610
4753
|
}
|
|
4611
4754
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4612
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4755
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
4613
4756
|
}
|
|
4614
4757
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4615
4758
|
const { luvio, config } = context;
|
|
@@ -4624,8 +4767,8 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
4624
4767
|
});
|
|
4625
4768
|
return cacheSnapshot;
|
|
4626
4769
|
}
|
|
4627
|
-
const
|
|
4628
|
-
const config = validateAdapterConfig$h(untrustedConfig,
|
|
4770
|
+
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
4771
|
+
const config = validateAdapterConfig$h(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
4629
4772
|
// Invalid or incomplete config
|
|
4630
4773
|
if (config === null) {
|
|
4631
4774
|
return null;
|
|
@@ -4633,25 +4776,186 @@ const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getS
|
|
|
4633
4776
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4634
4777
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4635
4778
|
};
|
|
4779
|
+
const notifyChangeFactory$5 = (luvio, options) => {
|
|
4780
|
+
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamIdNotifyChange(configs) {
|
|
4781
|
+
const keys = configs.map(c => keyBuilder$D(luvio, c));
|
|
4782
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4783
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4784
|
+
const { key, record: val } = entries[i];
|
|
4785
|
+
const refreshRequest = createResourceRequestFromRepresentation$5(val);
|
|
4786
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4787
|
+
.then((response) => {
|
|
4788
|
+
return luvio.handleSuccessResponse(() => {
|
|
4789
|
+
const { body } = response;
|
|
4790
|
+
luvio.storeIngest(key, ingest$i, body);
|
|
4791
|
+
return luvio.storeBroadcast();
|
|
4792
|
+
}, () => {
|
|
4793
|
+
const cache = new StoreKeyMap();
|
|
4794
|
+
getTypeCacheKeys$i(cache, luvio, response.body);
|
|
4795
|
+
return cache;
|
|
4796
|
+
});
|
|
4797
|
+
}, (error) => {
|
|
4798
|
+
return luvio.handleErrorResponse(() => {
|
|
4799
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4800
|
+
luvio.storeIngestError(key, errorSnapshot, undefined);
|
|
4801
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4802
|
+
});
|
|
4803
|
+
});
|
|
4804
|
+
}
|
|
4805
|
+
});
|
|
4806
|
+
};
|
|
4807
|
+
};
|
|
4808
|
+
|
|
4809
|
+
const VERSION$8 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
4810
|
+
function validate$8(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
4811
|
+
const v_error = (() => {
|
|
4812
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4813
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4814
|
+
}
|
|
4815
|
+
const obj_channelId = obj.channelId;
|
|
4816
|
+
const path_channelId = path + '.channelId';
|
|
4817
|
+
if (typeof obj_channelId !== 'string') {
|
|
4818
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
|
|
4819
|
+
}
|
|
4820
|
+
const obj_nextCursor = obj.nextCursor;
|
|
4821
|
+
const path_nextCursor = path + '.nextCursor';
|
|
4822
|
+
let obj_nextCursor_union0 = null;
|
|
4823
|
+
const obj_nextCursor_union0_error = (() => {
|
|
4824
|
+
if (typeof obj_nextCursor !== 'string') {
|
|
4825
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextCursor + '" (at "' + path_nextCursor + '")');
|
|
4826
|
+
}
|
|
4827
|
+
})();
|
|
4828
|
+
if (obj_nextCursor_union0_error != null) {
|
|
4829
|
+
obj_nextCursor_union0 = obj_nextCursor_union0_error.message;
|
|
4830
|
+
}
|
|
4831
|
+
let obj_nextCursor_union1 = null;
|
|
4832
|
+
const obj_nextCursor_union1_error = (() => {
|
|
4833
|
+
if (obj_nextCursor !== null) {
|
|
4834
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextCursor + '" (at "' + path_nextCursor + '")');
|
|
4835
|
+
}
|
|
4836
|
+
})();
|
|
4837
|
+
if (obj_nextCursor_union1_error != null) {
|
|
4838
|
+
obj_nextCursor_union1 = obj_nextCursor_union1_error.message;
|
|
4839
|
+
}
|
|
4840
|
+
if (obj_nextCursor_union0 && obj_nextCursor_union1) {
|
|
4841
|
+
let message = 'Object doesn\'t match union (at "' + path_nextCursor + '")';
|
|
4842
|
+
message += '\n' + obj_nextCursor_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4843
|
+
message += '\n' + obj_nextCursor_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4844
|
+
return new TypeError(message);
|
|
4845
|
+
}
|
|
4846
|
+
const obj_slackUserIds = obj.slackUserIds;
|
|
4847
|
+
const path_slackUserIds = path + '.slackUserIds';
|
|
4848
|
+
if (!ArrayIsArray(obj_slackUserIds)) {
|
|
4849
|
+
return new TypeError('Expected "array" but received "' + typeof obj_slackUserIds + '" (at "' + path_slackUserIds + '")');
|
|
4850
|
+
}
|
|
4851
|
+
for (let i = 0; i < obj_slackUserIds.length; i++) {
|
|
4852
|
+
const obj_slackUserIds_item = obj_slackUserIds[i];
|
|
4853
|
+
const path_slackUserIds_item = path_slackUserIds + '[' + i + ']';
|
|
4854
|
+
if (typeof obj_slackUserIds_item !== 'string') {
|
|
4855
|
+
return new TypeError('Expected "string" but received "' + typeof obj_slackUserIds_item + '" (at "' + path_slackUserIds_item + '")');
|
|
4856
|
+
}
|
|
4857
|
+
}
|
|
4858
|
+
})();
|
|
4859
|
+
return v_error === undefined ? null : v_error;
|
|
4860
|
+
}
|
|
4861
|
+
const RepresentationType$7 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
4862
|
+
function keyBuilder$n(luvio, config) {
|
|
4863
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.channelId;
|
|
4864
|
+
}
|
|
4865
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
4866
|
+
const keyParams = {
|
|
4867
|
+
channelId: object.channelId
|
|
4868
|
+
};
|
|
4869
|
+
return keyBuilder$n(luvio, keyParams);
|
|
4870
|
+
}
|
|
4871
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
4872
|
+
return input;
|
|
4873
|
+
}
|
|
4874
|
+
const select$p = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
4875
|
+
return {
|
|
4876
|
+
kind: 'Fragment',
|
|
4877
|
+
version: VERSION$8,
|
|
4878
|
+
private: [],
|
|
4879
|
+
selections: [
|
|
4880
|
+
{
|
|
4881
|
+
name: 'channelId',
|
|
4882
|
+
kind: 'Scalar'
|
|
4883
|
+
},
|
|
4884
|
+
{
|
|
4885
|
+
name: 'nextCursor',
|
|
4886
|
+
kind: 'Scalar'
|
|
4887
|
+
},
|
|
4888
|
+
{
|
|
4889
|
+
name: 'slackUserIds',
|
|
4890
|
+
kind: 'Scalar',
|
|
4891
|
+
plural: true
|
|
4892
|
+
}
|
|
4893
|
+
]
|
|
4894
|
+
};
|
|
4895
|
+
};
|
|
4896
|
+
function equals$8(existing, incoming) {
|
|
4897
|
+
const existing_channelId = existing.channelId;
|
|
4898
|
+
const incoming_channelId = incoming.channelId;
|
|
4899
|
+
if (!(existing_channelId === incoming_channelId)) {
|
|
4900
|
+
return false;
|
|
4901
|
+
}
|
|
4902
|
+
const existing_nextCursor = existing.nextCursor;
|
|
4903
|
+
const incoming_nextCursor = incoming.nextCursor;
|
|
4904
|
+
if (!(existing_nextCursor === incoming_nextCursor)) {
|
|
4905
|
+
return false;
|
|
4906
|
+
}
|
|
4907
|
+
const existing_slackUserIds = existing.slackUserIds;
|
|
4908
|
+
const incoming_slackUserIds = incoming.slackUserIds;
|
|
4909
|
+
const equals_slackUserIds_items = equalsArray(existing_slackUserIds, incoming_slackUserIds, (existing_slackUserIds_item, incoming_slackUserIds_item) => {
|
|
4910
|
+
if (!(existing_slackUserIds_item === incoming_slackUserIds_item)) {
|
|
4911
|
+
return false;
|
|
4912
|
+
}
|
|
4913
|
+
});
|
|
4914
|
+
if (equals_slackUserIds_items === false) {
|
|
4915
|
+
return false;
|
|
4916
|
+
}
|
|
4917
|
+
return true;
|
|
4918
|
+
}
|
|
4919
|
+
const ingest$7 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4920
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4921
|
+
const validateError = validate$8(input);
|
|
4922
|
+
if (validateError !== null) {
|
|
4923
|
+
throw validateError;
|
|
4924
|
+
}
|
|
4925
|
+
}
|
|
4926
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
4927
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4928
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$8, RepresentationType$7, equals$8);
|
|
4929
|
+
return createLink(key);
|
|
4930
|
+
};
|
|
4931
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
4932
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4933
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
4934
|
+
rootKeySet.set(rootKey, {
|
|
4935
|
+
namespace: keyPrefix,
|
|
4936
|
+
representationName: RepresentationType$7,
|
|
4937
|
+
mergeable: false
|
|
4938
|
+
});
|
|
4939
|
+
}
|
|
4636
4940
|
|
|
4637
|
-
function select$
|
|
4638
|
-
return select$
|
|
4941
|
+
function select$o(luvio, params) {
|
|
4942
|
+
return select$p();
|
|
4639
4943
|
}
|
|
4640
|
-
function keyBuilder$
|
|
4641
|
-
return keyBuilder$
|
|
4944
|
+
function keyBuilder$m(luvio, params) {
|
|
4945
|
+
return keyBuilder$n(luvio, {
|
|
4642
4946
|
channelId: params.urlParams.channelId
|
|
4643
4947
|
});
|
|
4644
4948
|
}
|
|
4645
4949
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
4646
|
-
getTypeCacheKeys$
|
|
4950
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
4647
4951
|
}
|
|
4648
4952
|
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
4649
4953
|
const { body } = response;
|
|
4650
|
-
const key = keyBuilder$
|
|
4651
|
-
luvio.storeIngest(key, ingest$
|
|
4954
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
4955
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
4652
4956
|
const snapshot = luvio.storeLookup({
|
|
4653
4957
|
recordId: key,
|
|
4654
|
-
node: select$
|
|
4958
|
+
node: select$o(),
|
|
4655
4959
|
variables: {},
|
|
4656
4960
|
}, snapshotRefresh);
|
|
4657
4961
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4663,7 +4967,7 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4663
4967
|
return snapshot;
|
|
4664
4968
|
}
|
|
4665
4969
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4666
|
-
const key = keyBuilder$
|
|
4970
|
+
const key = keyBuilder$m(luvio, params);
|
|
4667
4971
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4668
4972
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4669
4973
|
return errorSnapshot;
|
|
@@ -4672,7 +4976,7 @@ function createResourceRequest$g(config) {
|
|
|
4672
4976
|
const headers = {};
|
|
4673
4977
|
return {
|
|
4674
4978
|
baseUri: '/services/data/v64.0',
|
|
4675
|
-
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members
|
|
4979
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
|
|
4676
4980
|
method: 'get',
|
|
4677
4981
|
body: null,
|
|
4678
4982
|
urlParams: config.urlParams,
|
|
@@ -4681,7 +4985,7 @@ function createResourceRequest$g(config) {
|
|
|
4681
4985
|
priority: 'normal',
|
|
4682
4986
|
};
|
|
4683
4987
|
}
|
|
4684
|
-
function createResourceRequestFromRepresentation$
|
|
4988
|
+
function createResourceRequestFromRepresentation$4(representation) {
|
|
4685
4989
|
const config = {
|
|
4686
4990
|
urlParams: {},
|
|
4687
4991
|
};
|
|
@@ -4689,21 +4993,20 @@ function createResourceRequestFromRepresentation$5(representation) {
|
|
|
4689
4993
|
return createResourceRequest$g(config);
|
|
4690
4994
|
}
|
|
4691
4995
|
|
|
4692
|
-
const adapterName$g = '
|
|
4693
|
-
const
|
|
4996
|
+
const adapterName$g = 'getSlackConversationMembers';
|
|
4997
|
+
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
4694
4998
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4695
|
-
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4696
4999
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4697
5000
|
];
|
|
4698
|
-
const
|
|
4699
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
4700
|
-
function keyBuilder$
|
|
5001
|
+
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5002
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$n(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5003
|
+
function keyBuilder$l(luvio, config) {
|
|
4701
5004
|
const resourceParams = createResourceParams$g(config);
|
|
4702
|
-
return keyBuilder$
|
|
5005
|
+
return keyBuilder$m(luvio, resourceParams);
|
|
4703
5006
|
}
|
|
4704
5007
|
function typeCheckConfig$g(untrustedConfig) {
|
|
4705
5008
|
const config = {};
|
|
4706
|
-
typeCheckConfig$
|
|
5009
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4707
5010
|
return config;
|
|
4708
5011
|
}
|
|
4709
5012
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -4721,7 +5024,7 @@ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
|
4721
5024
|
}
|
|
4722
5025
|
function adapterFragment$9(luvio, config) {
|
|
4723
5026
|
createResourceParams$g(config);
|
|
4724
|
-
return select$
|
|
5027
|
+
return select$o();
|
|
4725
5028
|
}
|
|
4726
5029
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4727
5030
|
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
@@ -4752,12 +5055,12 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
4752
5055
|
});
|
|
4753
5056
|
}
|
|
4754
5057
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4755
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5058
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
4756
5059
|
}
|
|
4757
5060
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4758
5061
|
const { luvio, config } = context;
|
|
4759
5062
|
const selector = {
|
|
4760
|
-
recordId: keyBuilder$
|
|
5063
|
+
recordId: keyBuilder$l(luvio, config),
|
|
4761
5064
|
node: adapterFragment$9(luvio, config),
|
|
4762
5065
|
variables: {},
|
|
4763
5066
|
};
|
|
@@ -4767,8 +5070,8 @@ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
|
4767
5070
|
});
|
|
4768
5071
|
return cacheSnapshot;
|
|
4769
5072
|
}
|
|
4770
|
-
const
|
|
4771
|
-
const config = validateAdapterConfig$g(untrustedConfig,
|
|
5073
|
+
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
5074
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
4772
5075
|
// Invalid or incomplete config
|
|
4773
5076
|
if (config === null) {
|
|
4774
5077
|
return null;
|
|
@@ -4776,22 +5079,22 @@ const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge
|
|
|
4776
5079
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4777
5080
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
4778
5081
|
};
|
|
4779
|
-
const notifyChangeFactory$
|
|
4780
|
-
return function
|
|
4781
|
-
const keys = configs.map(c => keyBuilder$
|
|
5082
|
+
const notifyChangeFactory$4 = (luvio, options) => {
|
|
5083
|
+
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamIdNotifyChange(configs) {
|
|
5084
|
+
const keys = configs.map(c => keyBuilder$n(luvio, c));
|
|
4782
5085
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4783
5086
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4784
5087
|
const { key, record: val } = entries[i];
|
|
4785
|
-
const refreshRequest = createResourceRequestFromRepresentation$
|
|
5088
|
+
const refreshRequest = createResourceRequestFromRepresentation$4(val);
|
|
4786
5089
|
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4787
5090
|
.then((response) => {
|
|
4788
5091
|
return luvio.handleSuccessResponse(() => {
|
|
4789
5092
|
const { body } = response;
|
|
4790
|
-
luvio.storeIngest(key, ingest$
|
|
5093
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
4791
5094
|
return luvio.storeBroadcast();
|
|
4792
5095
|
}, () => {
|
|
4793
5096
|
const cache = new StoreKeyMap();
|
|
4794
|
-
getTypeCacheKeys$
|
|
5097
|
+
getTypeCacheKeys$7(cache, luvio, response.body);
|
|
4795
5098
|
return cache;
|
|
4796
5099
|
});
|
|
4797
5100
|
}, (error) => {
|
|
@@ -4806,131 +5109,158 @@ const notifyChangeFactory$5 = (luvio, options) => {
|
|
|
4806
5109
|
};
|
|
4807
5110
|
};
|
|
4808
5111
|
|
|
4809
|
-
const VERSION$
|
|
4810
|
-
function validate$
|
|
5112
|
+
const VERSION$7 = "d6833ffbee3e599bfdef928466ea65af";
|
|
5113
|
+
function validate$7(obj, path = 'SlackBridgeSlackTeamOutputRepresentation') {
|
|
4811
5114
|
const v_error = (() => {
|
|
4812
5115
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4813
5116
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4814
5117
|
}
|
|
4815
|
-
const
|
|
4816
|
-
const
|
|
4817
|
-
if (typeof
|
|
4818
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
4819
|
-
}
|
|
4820
|
-
const obj_nextCursor = obj.nextCursor;
|
|
4821
|
-
const path_nextCursor = path + '.nextCursor';
|
|
4822
|
-
let obj_nextCursor_union0 = null;
|
|
4823
|
-
const obj_nextCursor_union0_error = (() => {
|
|
4824
|
-
if (typeof obj_nextCursor !== 'string') {
|
|
4825
|
-
return new TypeError('Expected "string" but received "' + typeof obj_nextCursor + '" (at "' + path_nextCursor + '")');
|
|
4826
|
-
}
|
|
4827
|
-
})();
|
|
4828
|
-
if (obj_nextCursor_union0_error != null) {
|
|
4829
|
-
obj_nextCursor_union0 = obj_nextCursor_union0_error.message;
|
|
4830
|
-
}
|
|
4831
|
-
let obj_nextCursor_union1 = null;
|
|
4832
|
-
const obj_nextCursor_union1_error = (() => {
|
|
4833
|
-
if (obj_nextCursor !== null) {
|
|
4834
|
-
return new TypeError('Expected "null" but received "' + typeof obj_nextCursor + '" (at "' + path_nextCursor + '")');
|
|
4835
|
-
}
|
|
4836
|
-
})();
|
|
4837
|
-
if (obj_nextCursor_union1_error != null) {
|
|
4838
|
-
obj_nextCursor_union1 = obj_nextCursor_union1_error.message;
|
|
5118
|
+
const obj_status = obj.status;
|
|
5119
|
+
const path_status = path + '.status';
|
|
5120
|
+
if (typeof obj_status !== 'string') {
|
|
5121
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
4839
5122
|
}
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
return new TypeError(message);
|
|
5123
|
+
const obj_teamDomain = obj.teamDomain;
|
|
5124
|
+
const path_teamDomain = path + '.teamDomain';
|
|
5125
|
+
if (typeof obj_teamDomain !== 'string') {
|
|
5126
|
+
return new TypeError('Expected "string" but received "' + typeof obj_teamDomain + '" (at "' + path_teamDomain + '")');
|
|
4845
5127
|
}
|
|
4846
|
-
const
|
|
4847
|
-
const
|
|
4848
|
-
if (
|
|
4849
|
-
return new TypeError('Expected "
|
|
5128
|
+
const obj_teamId = obj.teamId;
|
|
5129
|
+
const path_teamId = path + '.teamId';
|
|
5130
|
+
if (typeof obj_teamId !== 'string') {
|
|
5131
|
+
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
4850
5132
|
}
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
return new TypeError('Expected "string" but received "' + typeof obj_slackUserIds_item + '" (at "' + path_slackUserIds_item + '")');
|
|
4856
|
-
}
|
|
5133
|
+
const obj_teamName = obj.teamName;
|
|
5134
|
+
const path_teamName = path + '.teamName';
|
|
5135
|
+
if (typeof obj_teamName !== 'string') {
|
|
5136
|
+
return new TypeError('Expected "string" but received "' + typeof obj_teamName + '" (at "' + path_teamName + '")');
|
|
4857
5137
|
}
|
|
4858
5138
|
})();
|
|
4859
5139
|
return v_error === undefined ? null : v_error;
|
|
4860
5140
|
}
|
|
4861
|
-
const
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
5141
|
+
const select$n = function SlackBridgeSlackTeamOutputRepresentationSelect() {
|
|
5142
|
+
return {
|
|
5143
|
+
kind: 'Fragment',
|
|
5144
|
+
version: VERSION$7,
|
|
5145
|
+
private: [],
|
|
5146
|
+
selections: [
|
|
5147
|
+
{
|
|
5148
|
+
name: 'status',
|
|
5149
|
+
kind: 'Scalar'
|
|
5150
|
+
},
|
|
5151
|
+
{
|
|
5152
|
+
name: 'teamDomain',
|
|
5153
|
+
kind: 'Scalar'
|
|
5154
|
+
},
|
|
5155
|
+
{
|
|
5156
|
+
name: 'teamId',
|
|
5157
|
+
kind: 'Scalar'
|
|
5158
|
+
},
|
|
5159
|
+
{
|
|
5160
|
+
name: 'teamName',
|
|
5161
|
+
kind: 'Scalar'
|
|
5162
|
+
}
|
|
5163
|
+
]
|
|
4868
5164
|
};
|
|
4869
|
-
|
|
5165
|
+
};
|
|
5166
|
+
function equals$7(existing, incoming) {
|
|
5167
|
+
const existing_status = existing.status;
|
|
5168
|
+
const incoming_status = incoming.status;
|
|
5169
|
+
if (!(existing_status === incoming_status)) {
|
|
5170
|
+
return false;
|
|
5171
|
+
}
|
|
5172
|
+
const existing_teamDomain = existing.teamDomain;
|
|
5173
|
+
const incoming_teamDomain = incoming.teamDomain;
|
|
5174
|
+
if (!(existing_teamDomain === incoming_teamDomain)) {
|
|
5175
|
+
return false;
|
|
5176
|
+
}
|
|
5177
|
+
const existing_teamId = existing.teamId;
|
|
5178
|
+
const incoming_teamId = incoming.teamId;
|
|
5179
|
+
if (!(existing_teamId === incoming_teamId)) {
|
|
5180
|
+
return false;
|
|
5181
|
+
}
|
|
5182
|
+
const existing_teamName = existing.teamName;
|
|
5183
|
+
const incoming_teamName = incoming.teamName;
|
|
5184
|
+
if (!(existing_teamName === incoming_teamName)) {
|
|
5185
|
+
return false;
|
|
5186
|
+
}
|
|
5187
|
+
return true;
|
|
5188
|
+
}
|
|
5189
|
+
|
|
5190
|
+
const TTL = 500;
|
|
5191
|
+
const VERSION$6 = "b3c7e0b8bc0a4a3745874264601b9082";
|
|
5192
|
+
function validate$6(obj, path = 'SlackBridgeDisplayLoginOutputRepresentation') {
|
|
5193
|
+
const v_error = (() => {
|
|
5194
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5195
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5196
|
+
}
|
|
5197
|
+
const obj_orgId = obj.orgId;
|
|
5198
|
+
const path_orgId = path + '.orgId';
|
|
5199
|
+
if (typeof obj_orgId !== 'string') {
|
|
5200
|
+
return new TypeError('Expected "string" but received "' + typeof obj_orgId + '" (at "' + path_orgId + '")');
|
|
5201
|
+
}
|
|
5202
|
+
const obj_slackTeam = obj.slackTeam;
|
|
5203
|
+
const path_slackTeam = path + '.slackTeam';
|
|
5204
|
+
const referencepath_slackTeamValidationError = validate$7(obj_slackTeam, path_slackTeam);
|
|
5205
|
+
if (referencepath_slackTeamValidationError !== null) {
|
|
5206
|
+
let message = 'Object doesn\'t match SlackBridgeSlackTeamOutputRepresentation (at "' + path_slackTeam + '")\n';
|
|
5207
|
+
message += referencepath_slackTeamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5208
|
+
return new TypeError(message);
|
|
5209
|
+
}
|
|
5210
|
+
})();
|
|
5211
|
+
return v_error === undefined ? null : v_error;
|
|
4870
5212
|
}
|
|
5213
|
+
const RepresentationType$6 = 'SlackBridgeDisplayLoginOutputRepresentation';
|
|
4871
5214
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
4872
5215
|
return input;
|
|
4873
5216
|
}
|
|
4874
|
-
const select$m = function
|
|
5217
|
+
const select$m = function SlackBridgeDisplayLoginOutputRepresentationSelect() {
|
|
5218
|
+
const { selections: SlackBridgeSlackTeamOutputRepresentation__selections, opaque: SlackBridgeSlackTeamOutputRepresentation__opaque, } = select$n();
|
|
4875
5219
|
return {
|
|
4876
5220
|
kind: 'Fragment',
|
|
4877
5221
|
version: VERSION$6,
|
|
4878
5222
|
private: [],
|
|
4879
5223
|
selections: [
|
|
4880
5224
|
{
|
|
4881
|
-
name: '
|
|
4882
|
-
kind: 'Scalar'
|
|
4883
|
-
},
|
|
4884
|
-
{
|
|
4885
|
-
name: 'nextCursor',
|
|
5225
|
+
name: 'orgId',
|
|
4886
5226
|
kind: 'Scalar'
|
|
4887
5227
|
},
|
|
4888
5228
|
{
|
|
4889
|
-
name: '
|
|
4890
|
-
kind: '
|
|
4891
|
-
|
|
5229
|
+
name: 'slackTeam',
|
|
5230
|
+
kind: 'Object',
|
|
5231
|
+
selections: SlackBridgeSlackTeamOutputRepresentation__selections
|
|
4892
5232
|
}
|
|
4893
5233
|
]
|
|
4894
5234
|
};
|
|
4895
5235
|
};
|
|
4896
5236
|
function equals$6(existing, incoming) {
|
|
4897
|
-
const
|
|
4898
|
-
const
|
|
4899
|
-
if (!(
|
|
4900
|
-
return false;
|
|
4901
|
-
}
|
|
4902
|
-
const existing_nextCursor = existing.nextCursor;
|
|
4903
|
-
const incoming_nextCursor = incoming.nextCursor;
|
|
4904
|
-
if (!(existing_nextCursor === incoming_nextCursor)) {
|
|
5237
|
+
const existing_orgId = existing.orgId;
|
|
5238
|
+
const incoming_orgId = incoming.orgId;
|
|
5239
|
+
if (!(existing_orgId === incoming_orgId)) {
|
|
4905
5240
|
return false;
|
|
4906
5241
|
}
|
|
4907
|
-
const
|
|
4908
|
-
const
|
|
4909
|
-
|
|
4910
|
-
if (!(existing_slackUserIds_item === incoming_slackUserIds_item)) {
|
|
4911
|
-
return false;
|
|
4912
|
-
}
|
|
4913
|
-
});
|
|
4914
|
-
if (equals_slackUserIds_items === false) {
|
|
5242
|
+
const existing_slackTeam = existing.slackTeam;
|
|
5243
|
+
const incoming_slackTeam = incoming.slackTeam;
|
|
5244
|
+
if (!(equals$7(existing_slackTeam, incoming_slackTeam))) {
|
|
4915
5245
|
return false;
|
|
4916
5246
|
}
|
|
4917
5247
|
return true;
|
|
4918
5248
|
}
|
|
4919
|
-
const ingest$6 = function
|
|
5249
|
+
const ingest$6 = function SlackBridgeDisplayLoginOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4920
5250
|
if (process.env.NODE_ENV !== 'production') {
|
|
4921
5251
|
const validateError = validate$6(input);
|
|
4922
5252
|
if (validateError !== null) {
|
|
4923
5253
|
throw validateError;
|
|
4924
5254
|
}
|
|
4925
5255
|
}
|
|
4926
|
-
const key =
|
|
4927
|
-
const ttlToUse =
|
|
5256
|
+
const key = path.fullPath;
|
|
5257
|
+
const ttlToUse = TTL;
|
|
4928
5258
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
|
|
4929
5259
|
return createLink(key);
|
|
4930
5260
|
};
|
|
4931
5261
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
4932
5262
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4933
|
-
const rootKey =
|
|
5263
|
+
const rootKey = fullPathFactory();
|
|
4934
5264
|
rootKeySet.set(rootKey, {
|
|
4935
5265
|
namespace: keyPrefix,
|
|
4936
5266
|
representationName: RepresentationType$6,
|
|
@@ -4942,16 +5272,14 @@ function select$l(luvio, params) {
|
|
|
4942
5272
|
return select$m();
|
|
4943
5273
|
}
|
|
4944
5274
|
function keyBuilder$k(luvio, params) {
|
|
4945
|
-
return
|
|
4946
|
-
channelId: params.urlParams.channelId
|
|
4947
|
-
});
|
|
5275
|
+
return keyPrefix + '::SlackBridgeDisplayLoginOutputRepresentation:(' + ')';
|
|
4948
5276
|
}
|
|
4949
5277
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
4950
|
-
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5278
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$k());
|
|
4951
5279
|
}
|
|
4952
5280
|
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
4953
5281
|
const { body } = response;
|
|
4954
|
-
const key = keyBuilder$k(
|
|
5282
|
+
const key = keyBuilder$k();
|
|
4955
5283
|
luvio.storeIngest(key, ingest$6, body);
|
|
4956
5284
|
const snapshot = luvio.storeLookup({
|
|
4957
5285
|
recordId: key,
|
|
@@ -4967,46 +5295,41 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4967
5295
|
return snapshot;
|
|
4968
5296
|
}
|
|
4969
5297
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
4970
|
-
const key = keyBuilder$k(
|
|
5298
|
+
const key = keyBuilder$k();
|
|
4971
5299
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4972
|
-
|
|
5300
|
+
const storeMetadataParams = {
|
|
5301
|
+
ttl: TTL,
|
|
5302
|
+
namespace: keyPrefix,
|
|
5303
|
+
version: VERSION$6,
|
|
5304
|
+
representationName: RepresentationType$6
|
|
5305
|
+
};
|
|
5306
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4973
5307
|
return errorSnapshot;
|
|
4974
5308
|
}
|
|
4975
5309
|
function createResourceRequest$f(config) {
|
|
4976
5310
|
const headers = {};
|
|
4977
5311
|
return {
|
|
4978
5312
|
baseUri: '/services/data/v64.0',
|
|
4979
|
-
basePath: '/connect/slackbridge/
|
|
5313
|
+
basePath: '/connect/slackbridge/slack_display_login',
|
|
4980
5314
|
method: 'get',
|
|
4981
5315
|
body: null,
|
|
4982
|
-
urlParams:
|
|
5316
|
+
urlParams: {},
|
|
4983
5317
|
queryParams: {},
|
|
4984
5318
|
headers,
|
|
4985
5319
|
priority: 'normal',
|
|
4986
5320
|
};
|
|
4987
5321
|
}
|
|
4988
|
-
function createResourceRequestFromRepresentation$4(representation) {
|
|
4989
|
-
const config = {
|
|
4990
|
-
urlParams: {},
|
|
4991
|
-
};
|
|
4992
|
-
config.urlParams.channelId = representation.channelId;
|
|
4993
|
-
return createResourceRequest$f(config);
|
|
4994
|
-
}
|
|
4995
5322
|
|
|
4996
|
-
const adapterName$f = '
|
|
4997
|
-
const
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
];
|
|
5001
|
-
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5002
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$m(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5323
|
+
const adapterName$f = 'getSlackDisplayLogin';
|
|
5324
|
+
const getSlackDisplayLogin_ConfigPropertyMetadata = [];
|
|
5325
|
+
const getSlackDisplayLogin_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackDisplayLogin_ConfigPropertyMetadata);
|
|
5326
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$n(getSlackDisplayLogin_ConfigPropertyMetadata);
|
|
5003
5327
|
function keyBuilder$j(luvio, config) {
|
|
5004
|
-
|
|
5005
|
-
return keyBuilder$k(
|
|
5328
|
+
createResourceParams$f(config);
|
|
5329
|
+
return keyBuilder$k();
|
|
5006
5330
|
}
|
|
5007
5331
|
function typeCheckConfig$f(untrustedConfig) {
|
|
5008
5332
|
const config = {};
|
|
5009
|
-
typeCheckConfig$m(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5010
5333
|
return config;
|
|
5011
5334
|
}
|
|
5012
5335
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -5016,7 +5339,7 @@ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
|
5016
5339
|
if (process.env.NODE_ENV !== 'production') {
|
|
5017
5340
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5018
5341
|
}
|
|
5019
|
-
const config = typeCheckConfig$f(
|
|
5342
|
+
const config = typeCheckConfig$f();
|
|
5020
5343
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5021
5344
|
return null;
|
|
5022
5345
|
}
|
|
@@ -5042,7 +5365,7 @@ function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
|
5042
5365
|
}
|
|
5043
5366
|
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
5044
5367
|
const resourceParams = createResourceParams$f(config);
|
|
5045
|
-
const request = createResourceRequest$f(
|
|
5368
|
+
const request = createResourceRequest$f();
|
|
5046
5369
|
return luvio.dispatchResourceRequest(request, options)
|
|
5047
5370
|
.then((response) => {
|
|
5048
5371
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
@@ -5055,7 +5378,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5055
5378
|
});
|
|
5056
5379
|
}
|
|
5057
5380
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5058
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5381
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
5059
5382
|
}
|
|
5060
5383
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5061
5384
|
const { luvio, config } = context;
|
|
@@ -5070,8 +5393,8 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
5070
5393
|
});
|
|
5071
5394
|
return cacheSnapshot;
|
|
5072
5395
|
}
|
|
5073
|
-
const
|
|
5074
|
-
const config = validateAdapterConfig$f(untrustedConfig,
|
|
5396
|
+
const getSlackDisplayLoginAdapterFactory = (luvio) => function SlackBridge__getSlackDisplayLogin(untrustedConfig, requestContext) {
|
|
5397
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSlackDisplayLogin_ConfigPropertyNames);
|
|
5075
5398
|
// Invalid or incomplete config
|
|
5076
5399
|
if (config === null) {
|
|
5077
5400
|
return null;
|
|
@@ -5079,51 +5402,22 @@ const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridg
|
|
|
5079
5402
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5080
5403
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
5081
5404
|
};
|
|
5082
|
-
const notifyChangeFactory$4 = (luvio, options) => {
|
|
5083
|
-
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamIdNotifyChange(configs) {
|
|
5084
|
-
const keys = configs.map(c => keyBuilder$l(luvio, c));
|
|
5085
|
-
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5086
|
-
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5087
|
-
const { key, record: val } = entries[i];
|
|
5088
|
-
const refreshRequest = createResourceRequestFromRepresentation$4(val);
|
|
5089
|
-
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
5090
|
-
.then((response) => {
|
|
5091
|
-
return luvio.handleSuccessResponse(() => {
|
|
5092
|
-
const { body } = response;
|
|
5093
|
-
luvio.storeIngest(key, ingest$6, body);
|
|
5094
|
-
return luvio.storeBroadcast();
|
|
5095
|
-
}, () => {
|
|
5096
|
-
const cache = new StoreKeyMap();
|
|
5097
|
-
getTypeCacheKeys$6(cache, luvio, response.body);
|
|
5098
|
-
return cache;
|
|
5099
|
-
});
|
|
5100
|
-
}, (error) => {
|
|
5101
|
-
return luvio.handleErrorResponse(() => {
|
|
5102
|
-
const errorSnapshot = luvio.errorSnapshot(error);
|
|
5103
|
-
luvio.storeIngestError(key, errorSnapshot, undefined);
|
|
5104
|
-
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
5105
|
-
});
|
|
5106
|
-
});
|
|
5107
|
-
}
|
|
5108
|
-
});
|
|
5109
|
-
};
|
|
5110
|
-
};
|
|
5111
5405
|
|
|
5112
5406
|
function select$k(luvio, params) {
|
|
5113
|
-
return select$
|
|
5407
|
+
return select$v();
|
|
5114
5408
|
}
|
|
5115
5409
|
function keyBuilder$i(luvio, params) {
|
|
5116
|
-
return keyBuilder$
|
|
5410
|
+
return keyBuilder$t(luvio, {
|
|
5117
5411
|
name: params.urlParams.slackEmojiId
|
|
5118
5412
|
});
|
|
5119
5413
|
}
|
|
5120
5414
|
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
5121
|
-
getTypeCacheKeys$
|
|
5415
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
5122
5416
|
}
|
|
5123
5417
|
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
5124
5418
|
const { body } = response;
|
|
5125
5419
|
const key = keyBuilder$i(luvio, resourceParams);
|
|
5126
|
-
luvio.storeIngest(key, ingest$
|
|
5420
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
5127
5421
|
const snapshot = luvio.storeLookup({
|
|
5128
5422
|
recordId: key,
|
|
5129
5423
|
node: select$k(),
|
|
@@ -5141,10 +5435,10 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
5141
5435
|
const key = keyBuilder$i(luvio, params);
|
|
5142
5436
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5143
5437
|
const storeMetadataParams = {
|
|
5144
|
-
ttl: TTL$
|
|
5438
|
+
ttl: TTL$2,
|
|
5145
5439
|
namespace: keyPrefix,
|
|
5146
|
-
version: VERSION$
|
|
5147
|
-
representationName: RepresentationType$
|
|
5440
|
+
version: VERSION$c,
|
|
5441
|
+
representationName: RepresentationType$b
|
|
5148
5442
|
};
|
|
5149
5443
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5150
5444
|
return errorSnapshot;
|
|
@@ -5176,14 +5470,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
5176
5470
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5177
5471
|
];
|
|
5178
5472
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackEmoji_ConfigPropertyMetadata);
|
|
5179
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
5473
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$n(getSlackEmoji_ConfigPropertyMetadata);
|
|
5180
5474
|
function keyBuilder$h(luvio, config) {
|
|
5181
5475
|
const resourceParams = createResourceParams$e(config);
|
|
5182
5476
|
return keyBuilder$i(luvio, resourceParams);
|
|
5183
5477
|
}
|
|
5184
5478
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5185
5479
|
const config = {};
|
|
5186
|
-
typeCheckConfig$
|
|
5480
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
5187
5481
|
return config;
|
|
5188
5482
|
}
|
|
5189
5483
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -5232,7 +5526,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
5232
5526
|
});
|
|
5233
5527
|
}
|
|
5234
5528
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5235
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5529
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
5236
5530
|
}
|
|
5237
5531
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5238
5532
|
const { luvio, config } = context;
|
|
@@ -5258,7 +5552,7 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
5258
5552
|
};
|
|
5259
5553
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
5260
5554
|
return function getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamIdNotifyChange(configs) {
|
|
5261
|
-
const keys = configs.map(c => keyBuilder$
|
|
5555
|
+
const keys = configs.map(c => keyBuilder$t(luvio, c));
|
|
5262
5556
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5263
5557
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5264
5558
|
const { key, record: val } = entries[i];
|
|
@@ -5267,21 +5561,21 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
5267
5561
|
.then((response) => {
|
|
5268
5562
|
return luvio.handleSuccessResponse(() => {
|
|
5269
5563
|
const { body } = response;
|
|
5270
|
-
luvio.storeIngest(key, ingest$
|
|
5564
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
5271
5565
|
return luvio.storeBroadcast();
|
|
5272
5566
|
}, () => {
|
|
5273
5567
|
const cache = new StoreKeyMap();
|
|
5274
|
-
getTypeCacheKeys$
|
|
5568
|
+
getTypeCacheKeys$b(cache, luvio, response.body);
|
|
5275
5569
|
return cache;
|
|
5276
5570
|
});
|
|
5277
5571
|
}, (error) => {
|
|
5278
5572
|
return luvio.handleErrorResponse(() => {
|
|
5279
5573
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
5280
5574
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
5281
|
-
ttl: TTL$
|
|
5575
|
+
ttl: TTL$2,
|
|
5282
5576
|
namespace: keyPrefix,
|
|
5283
|
-
version: VERSION$
|
|
5284
|
-
representationName: RepresentationType$
|
|
5577
|
+
version: VERSION$c,
|
|
5578
|
+
representationName: RepresentationType$b
|
|
5285
5579
|
});
|
|
5286
5580
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
5287
5581
|
});
|
|
@@ -5319,7 +5613,7 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
5319
5613
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
5320
5614
|
const input_emojis_item = input_emojis[i];
|
|
5321
5615
|
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
5322
|
-
input_emojis[i] = ingest$
|
|
5616
|
+
input_emojis[i] = ingest$b(input_emojis_item, {
|
|
5323
5617
|
fullPath: input_emojis_item_id,
|
|
5324
5618
|
propertyName: i,
|
|
5325
5619
|
parent: {
|
|
@@ -5342,7 +5636,7 @@ const select$j = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
5342
5636
|
name: 'emojis',
|
|
5343
5637
|
kind: 'Link',
|
|
5344
5638
|
plural: true,
|
|
5345
|
-
fragment: select$
|
|
5639
|
+
fragment: select$v()
|
|
5346
5640
|
}
|
|
5347
5641
|
]
|
|
5348
5642
|
};
|
|
@@ -5382,7 +5676,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5382
5676
|
});
|
|
5383
5677
|
const input_emojis_length = input.emojis.length;
|
|
5384
5678
|
for (let i = 0; i < input_emojis_length; i++) {
|
|
5385
|
-
getTypeCacheKeys$
|
|
5679
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.emojis[i]);
|
|
5386
5680
|
}
|
|
5387
5681
|
}
|
|
5388
5682
|
|
|
@@ -5438,14 +5732,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
5438
5732
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5439
5733
|
];
|
|
5440
5734
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackEmojis_ConfigPropertyMetadata);
|
|
5441
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
5735
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$n(getSlackEmojis_ConfigPropertyMetadata);
|
|
5442
5736
|
function keyBuilder$f(luvio, config) {
|
|
5443
5737
|
const resourceParams = createResourceParams$d(config);
|
|
5444
5738
|
return keyBuilder$g(luvio, resourceParams);
|
|
5445
5739
|
}
|
|
5446
5740
|
function typeCheckConfig$d(untrustedConfig) {
|
|
5447
5741
|
const config = {};
|
|
5448
|
-
typeCheckConfig$
|
|
5742
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
5449
5743
|
return config;
|
|
5450
5744
|
}
|
|
5451
5745
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -5494,7 +5788,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5494
5788
|
});
|
|
5495
5789
|
}
|
|
5496
5790
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5497
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5791
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5498
5792
|
}
|
|
5499
5793
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5500
5794
|
const { luvio, config } = context;
|
|
@@ -5520,20 +5814,20 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
5520
5814
|
};
|
|
5521
5815
|
|
|
5522
5816
|
function select$h(luvio, params) {
|
|
5523
|
-
return select$
|
|
5817
|
+
return select$H();
|
|
5524
5818
|
}
|
|
5525
5819
|
function keyBuilder$e(luvio, params) {
|
|
5526
|
-
return keyBuilder$
|
|
5820
|
+
return keyBuilder$B(luvio, {
|
|
5527
5821
|
channelId: params.urlParams.channelId
|
|
5528
5822
|
});
|
|
5529
5823
|
}
|
|
5530
5824
|
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
5531
|
-
getTypeCacheKeys$
|
|
5825
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
5532
5826
|
}
|
|
5533
5827
|
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
5534
5828
|
const { body } = response;
|
|
5535
5829
|
const key = keyBuilder$e(luvio, resourceParams);
|
|
5536
|
-
luvio.storeIngest(key, ingest$
|
|
5830
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
5537
5831
|
const snapshot = luvio.storeLookup({
|
|
5538
5832
|
recordId: key,
|
|
5539
5833
|
node: select$h(),
|
|
@@ -5581,14 +5875,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
5581
5875
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5582
5876
|
];
|
|
5583
5877
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackMessage_ConfigPropertyMetadata);
|
|
5584
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
5878
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$n(getSlackMessage_ConfigPropertyMetadata);
|
|
5585
5879
|
function keyBuilder$d(luvio, config) {
|
|
5586
5880
|
const resourceParams = createResourceParams$c(config);
|
|
5587
5881
|
return keyBuilder$e(luvio, resourceParams);
|
|
5588
5882
|
}
|
|
5589
5883
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5590
5884
|
const config = {};
|
|
5591
|
-
typeCheckConfig$
|
|
5885
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
5592
5886
|
return config;
|
|
5593
5887
|
}
|
|
5594
5888
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5637,7 +5931,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5637
5931
|
});
|
|
5638
5932
|
}
|
|
5639
5933
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
5640
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5934
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
5641
5935
|
}
|
|
5642
5936
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
5643
5937
|
const { luvio, config } = context;
|
|
@@ -5663,7 +5957,7 @@ const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackM
|
|
|
5663
5957
|
};
|
|
5664
5958
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
5665
5959
|
return function getConnectSlackbridgeTeamChannelMessagesByChannelIdAndMessageTsAndTeamIdNotifyChange(configs) {
|
|
5666
|
-
const keys = configs.map(c => keyBuilder$
|
|
5960
|
+
const keys = configs.map(c => keyBuilder$B(luvio, c));
|
|
5667
5961
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5668
5962
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5669
5963
|
const { key, record: val } = entries[i];
|
|
@@ -5672,11 +5966,11 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
5672
5966
|
.then((response) => {
|
|
5673
5967
|
return luvio.handleSuccessResponse(() => {
|
|
5674
5968
|
const { body } = response;
|
|
5675
|
-
luvio.storeIngest(key, ingest$
|
|
5969
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
5676
5970
|
return luvio.storeBroadcast();
|
|
5677
5971
|
}, () => {
|
|
5678
5972
|
const cache = new StoreKeyMap();
|
|
5679
|
-
getTypeCacheKeys$
|
|
5973
|
+
getTypeCacheKeys$h(cache, luvio, response.body);
|
|
5680
5974
|
return cache;
|
|
5681
5975
|
});
|
|
5682
5976
|
}, (error) => {
|
|
@@ -5728,7 +6022,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
5728
6022
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
5729
6023
|
const input_conversationInfo = input.conversationInfo;
|
|
5730
6024
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
5731
|
-
input.conversationInfo = ingest$
|
|
6025
|
+
input.conversationInfo = ingest$f(input_conversationInfo, {
|
|
5732
6026
|
fullPath: input_conversationInfo_id,
|
|
5733
6027
|
propertyName: 'conversationInfo',
|
|
5734
6028
|
parent: {
|
|
@@ -5749,7 +6043,7 @@ const select$g = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
5749
6043
|
{
|
|
5750
6044
|
name: 'conversationInfo',
|
|
5751
6045
|
kind: 'Link',
|
|
5752
|
-
fragment: select$
|
|
6046
|
+
fragment: select$E()
|
|
5753
6047
|
},
|
|
5754
6048
|
{
|
|
5755
6049
|
name: 'relatedRecordId',
|
|
@@ -5800,7 +6094,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5800
6094
|
representationName: RepresentationType$4,
|
|
5801
6095
|
mergeable: false
|
|
5802
6096
|
});
|
|
5803
|
-
getTypeCacheKeys$
|
|
6097
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
5804
6098
|
}
|
|
5805
6099
|
|
|
5806
6100
|
function select$f(luvio, params) {
|
|
@@ -5863,14 +6157,14 @@ const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
|
5863
6157
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5864
6158
|
];
|
|
5865
6159
|
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5866
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
6160
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$n(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5867
6161
|
function keyBuilder$a(luvio, config) {
|
|
5868
6162
|
const resourceParams = createResourceParams$b(config);
|
|
5869
6163
|
return keyBuilder$b(luvio, resourceParams);
|
|
5870
6164
|
}
|
|
5871
6165
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5872
6166
|
const config = {};
|
|
5873
|
-
typeCheckConfig$
|
|
6167
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5874
6168
|
return config;
|
|
5875
6169
|
}
|
|
5876
6170
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5919,7 +6213,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5919
6213
|
});
|
|
5920
6214
|
}
|
|
5921
6215
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
5922
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6216
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
5923
6217
|
}
|
|
5924
6218
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
5925
6219
|
const { luvio, config } = context;
|
|
@@ -6027,7 +6321,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
6027
6321
|
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6028
6322
|
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6029
6323
|
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6030
|
-
input_conversationInfos[i] = ingest$
|
|
6324
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
6031
6325
|
fullPath: input_conversationInfos_item_id,
|
|
6032
6326
|
propertyName: i,
|
|
6033
6327
|
parent: {
|
|
@@ -6050,7 +6344,7 @@ const select$e = function SlackBridgeConversationInfosOutputRepresentationSelect
|
|
|
6050
6344
|
name: 'conversationInfos',
|
|
6051
6345
|
kind: 'Link',
|
|
6052
6346
|
plural: true,
|
|
6053
|
-
fragment: select$
|
|
6347
|
+
fragment: select$E()
|
|
6054
6348
|
},
|
|
6055
6349
|
{
|
|
6056
6350
|
name: 'searchString',
|
|
@@ -6099,7 +6393,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6099
6393
|
});
|
|
6100
6394
|
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6101
6395
|
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6102
|
-
getTypeCacheKeys$
|
|
6396
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6103
6397
|
}
|
|
6104
6398
|
}
|
|
6105
6399
|
|
|
@@ -6155,14 +6449,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
6155
6449
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6156
6450
|
];
|
|
6157
6451
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6158
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
6452
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$n(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6159
6453
|
function keyBuilder$8(luvio, config) {
|
|
6160
6454
|
const resourceParams = createResourceParams$a(config);
|
|
6161
6455
|
return keyBuilder$9(luvio, resourceParams);
|
|
6162
6456
|
}
|
|
6163
6457
|
function typeCheckConfig$a(untrustedConfig) {
|
|
6164
6458
|
const config = {};
|
|
6165
|
-
typeCheckConfig$
|
|
6459
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6166
6460
|
return config;
|
|
6167
6461
|
}
|
|
6168
6462
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6211,7 +6505,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6211
6505
|
});
|
|
6212
6506
|
}
|
|
6213
6507
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6214
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6508
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
6215
6509
|
}
|
|
6216
6510
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6217
6511
|
const { luvio, config } = context;
|
|
@@ -6288,14 +6582,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
6288
6582
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6289
6583
|
];
|
|
6290
6584
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6291
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
6585
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$n(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6292
6586
|
function keyBuilder$6(luvio, config) {
|
|
6293
6587
|
const resourceParams = createResourceParams$9(config);
|
|
6294
6588
|
return keyBuilder$7(luvio, resourceParams);
|
|
6295
6589
|
}
|
|
6296
6590
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6297
6591
|
const config = {};
|
|
6298
|
-
typeCheckConfig$
|
|
6592
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6299
6593
|
return config;
|
|
6300
6594
|
}
|
|
6301
6595
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6344,7 +6638,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6344
6638
|
});
|
|
6345
6639
|
}
|
|
6346
6640
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6347
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6641
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6348
6642
|
}
|
|
6349
6643
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6350
6644
|
const { luvio, config } = context;
|
|
@@ -6423,7 +6717,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
6423
6717
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
6424
6718
|
const input_userInfos_item = input_userInfos[i];
|
|
6425
6719
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
6426
|
-
input_userInfos[i] = ingest$
|
|
6720
|
+
input_userInfos[i] = ingest$a(input_userInfos_item, {
|
|
6427
6721
|
fullPath: input_userInfos_item_id,
|
|
6428
6722
|
propertyName: i,
|
|
6429
6723
|
parent: {
|
|
@@ -6450,7 +6744,7 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6450
6744
|
name: 'userInfos',
|
|
6451
6745
|
kind: 'Link',
|
|
6452
6746
|
plural: true,
|
|
6453
|
-
fragment: select$
|
|
6747
|
+
fragment: select$u()
|
|
6454
6748
|
}
|
|
6455
6749
|
]
|
|
6456
6750
|
};
|
|
@@ -6495,7 +6789,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6495
6789
|
});
|
|
6496
6790
|
const input_userInfos_length = input.userInfos.length;
|
|
6497
6791
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
6498
|
-
getTypeCacheKeys$
|
|
6792
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.userInfos[i]);
|
|
6499
6793
|
}
|
|
6500
6794
|
}
|
|
6501
6795
|
|
|
@@ -6554,14 +6848,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
6554
6848
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6555
6849
|
];
|
|
6556
6850
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6557
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
6851
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$n(getSlackSearchUser_ConfigPropertyMetadata);
|
|
6558
6852
|
function keyBuilder$4(luvio, config) {
|
|
6559
6853
|
const resourceParams = createResourceParams$8(config);
|
|
6560
6854
|
return keyBuilder$5(luvio, resourceParams);
|
|
6561
6855
|
}
|
|
6562
6856
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6563
6857
|
const config = {};
|
|
6564
|
-
typeCheckConfig$
|
|
6858
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6565
6859
|
return config;
|
|
6566
6860
|
}
|
|
6567
6861
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -6610,7 +6904,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6610
6904
|
});
|
|
6611
6905
|
}
|
|
6612
6906
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6613
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6907
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
6614
6908
|
}
|
|
6615
6909
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6616
6910
|
const { luvio, config } = context;
|
|
@@ -6636,21 +6930,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
6636
6930
|
};
|
|
6637
6931
|
|
|
6638
6932
|
function select$9(luvio, params) {
|
|
6639
|
-
return select$
|
|
6933
|
+
return select$u();
|
|
6640
6934
|
}
|
|
6641
6935
|
function keyBuilder$3(luvio, params) {
|
|
6642
|
-
return keyBuilder$
|
|
6936
|
+
return keyBuilder$s(luvio, {
|
|
6643
6937
|
slackUserId: params.urlParams.slackUserId,
|
|
6644
6938
|
teamId: params.urlParams.teamId
|
|
6645
6939
|
});
|
|
6646
6940
|
}
|
|
6647
6941
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
6648
|
-
getTypeCacheKeys$
|
|
6942
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
6649
6943
|
}
|
|
6650
6944
|
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
6651
6945
|
const { body } = response;
|
|
6652
6946
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
6653
|
-
luvio.storeIngest(key, ingest$
|
|
6947
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
6654
6948
|
const snapshot = luvio.storeLookup({
|
|
6655
6949
|
recordId: key,
|
|
6656
6950
|
node: select$9(),
|
|
@@ -6668,10 +6962,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
6668
6962
|
const key = keyBuilder$3(luvio, params);
|
|
6669
6963
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6670
6964
|
const storeMetadataParams = {
|
|
6671
|
-
ttl: TTL,
|
|
6965
|
+
ttl: TTL$1,
|
|
6672
6966
|
namespace: keyPrefix,
|
|
6673
|
-
version: VERSION$
|
|
6674
|
-
representationName: RepresentationType$
|
|
6967
|
+
version: VERSION$b,
|
|
6968
|
+
representationName: RepresentationType$a
|
|
6675
6969
|
};
|
|
6676
6970
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6677
6971
|
return errorSnapshot;
|
|
@@ -6704,14 +6998,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
6704
6998
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6705
6999
|
];
|
|
6706
7000
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackUser_ConfigPropertyMetadata);
|
|
6707
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
7001
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$n(getSlackUser_ConfigPropertyMetadata);
|
|
6708
7002
|
function keyBuilder$2(luvio, config) {
|
|
6709
7003
|
const resourceParams = createResourceParams$7(config);
|
|
6710
7004
|
return keyBuilder$3(luvio, resourceParams);
|
|
6711
7005
|
}
|
|
6712
7006
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6713
7007
|
const config = {};
|
|
6714
|
-
typeCheckConfig$
|
|
7008
|
+
typeCheckConfig$n(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
6715
7009
|
return config;
|
|
6716
7010
|
}
|
|
6717
7011
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6760,7 +7054,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6760
7054
|
});
|
|
6761
7055
|
}
|
|
6762
7056
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6763
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7057
|
+
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
6764
7058
|
}
|
|
6765
7059
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6766
7060
|
const { luvio, config } = context;
|
|
@@ -6786,7 +7080,7 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
6786
7080
|
};
|
|
6787
7081
|
const notifyChangeFactory = (luvio, options) => {
|
|
6788
7082
|
return function getConnectSlackbridgeTeamUserBySlackUserIdAndTeamIdNotifyChange(configs) {
|
|
6789
|
-
const keys = configs.map(c => keyBuilder$
|
|
7083
|
+
const keys = configs.map(c => keyBuilder$s(luvio, c));
|
|
6790
7084
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
6791
7085
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
6792
7086
|
const { key, record: val } = entries[i];
|
|
@@ -6795,21 +7089,21 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
6795
7089
|
.then((response) => {
|
|
6796
7090
|
return luvio.handleSuccessResponse(() => {
|
|
6797
7091
|
const { body } = response;
|
|
6798
|
-
luvio.storeIngest(key, ingest$
|
|
7092
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
6799
7093
|
return luvio.storeBroadcast();
|
|
6800
7094
|
}, () => {
|
|
6801
7095
|
const cache = new StoreKeyMap();
|
|
6802
|
-
getTypeCacheKeys$
|
|
7096
|
+
getTypeCacheKeys$a(cache, luvio, response.body);
|
|
6803
7097
|
return cache;
|
|
6804
7098
|
});
|
|
6805
7099
|
}, (error) => {
|
|
6806
7100
|
return luvio.handleErrorResponse(() => {
|
|
6807
7101
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
6808
7102
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
6809
|
-
ttl: TTL,
|
|
7103
|
+
ttl: TTL$1,
|
|
6810
7104
|
namespace: keyPrefix,
|
|
6811
|
-
version: VERSION$
|
|
6812
|
-
representationName: RepresentationType$
|
|
7105
|
+
version: VERSION$b,
|
|
7106
|
+
representationName: RepresentationType$a
|
|
6813
7107
|
});
|
|
6814
7108
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
6815
7109
|
});
|
|
@@ -6820,15 +7114,15 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
6820
7114
|
};
|
|
6821
7115
|
|
|
6822
7116
|
function select$8(luvio, params) {
|
|
6823
|
-
return select$
|
|
7117
|
+
return select$H();
|
|
6824
7118
|
}
|
|
6825
7119
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6826
|
-
getTypeCacheKeys$
|
|
7120
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
6827
7121
|
}
|
|
6828
7122
|
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
6829
7123
|
const { body } = response;
|
|
6830
7124
|
const key = keyBuilderFromType$9(luvio, body);
|
|
6831
|
-
luvio.storeIngest(key, ingest$
|
|
7125
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
6832
7126
|
const snapshot = luvio.storeLookup({
|
|
6833
7127
|
recordId: key,
|
|
6834
7128
|
node: select$8(),
|
|
@@ -6864,10 +7158,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
6864
7158
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
6865
7159
|
];
|
|
6866
7160
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
|
|
6867
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
7161
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$n(patchSlackMessage_ConfigPropertyMetadata);
|
|
6868
7162
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6869
7163
|
const config = {};
|
|
6870
|
-
typeCheckConfig$
|
|
7164
|
+
typeCheckConfig$n(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
6871
7165
|
return config;
|
|
6872
7166
|
}
|
|
6873
7167
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6949,7 +7243,7 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
6949
7243
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6950
7244
|
const input_postedMessage = input.postedMessage;
|
|
6951
7245
|
const input_postedMessage_id = path.fullPath + '__postedMessage';
|
|
6952
|
-
input.postedMessage = ingest$
|
|
7246
|
+
input.postedMessage = ingest$d(input_postedMessage, {
|
|
6953
7247
|
fullPath: input_postedMessage_id,
|
|
6954
7248
|
propertyName: 'postedMessage',
|
|
6955
7249
|
parent: {
|
|
@@ -6974,7 +7268,7 @@ const select$7 = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
6974
7268
|
{
|
|
6975
7269
|
name: 'postedMessage',
|
|
6976
7270
|
kind: 'Link',
|
|
6977
|
-
fragment: select$
|
|
7271
|
+
fragment: select$z()
|
|
6978
7272
|
},
|
|
6979
7273
|
{
|
|
6980
7274
|
name: 'timestamp',
|
|
@@ -7021,7 +7315,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7021
7315
|
representationName: RepresentationType$1,
|
|
7022
7316
|
mergeable: false
|
|
7023
7317
|
});
|
|
7024
|
-
getTypeCacheKeys$
|
|
7318
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
7025
7319
|
}
|
|
7026
7320
|
|
|
7027
7321
|
function select$6(luvio, params) {
|
|
@@ -7071,10 +7365,10 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
7071
7365
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
7072
7366
|
];
|
|
7073
7367
|
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, postSlackConversation_ConfigPropertyMetadata);
|
|
7074
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7368
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$n(postSlackConversation_ConfigPropertyMetadata);
|
|
7075
7369
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7076
7370
|
const config = {};
|
|
7077
|
-
typeCheckConfig$
|
|
7371
|
+
typeCheckConfig$n(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
7078
7372
|
return config;
|
|
7079
7373
|
}
|
|
7080
7374
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7247,10 +7541,10 @@ const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
|
7247
7541
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
7248
7542
|
];
|
|
7249
7543
|
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7250
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7544
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$n(postSlackConversationMark_ConfigPropertyMetadata);
|
|
7251
7545
|
function typeCheckConfig$4(untrustedConfig) {
|
|
7252
7546
|
const config = {};
|
|
7253
|
-
typeCheckConfig$
|
|
7547
|
+
typeCheckConfig$n(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7254
7548
|
return config;
|
|
7255
7549
|
}
|
|
7256
7550
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -7296,15 +7590,15 @@ const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
|
7296
7590
|
};
|
|
7297
7591
|
|
|
7298
7592
|
function select$3(luvio, params) {
|
|
7299
|
-
return select$
|
|
7593
|
+
return select$p();
|
|
7300
7594
|
}
|
|
7301
7595
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7302
|
-
getTypeCacheKeys$
|
|
7596
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
7303
7597
|
}
|
|
7304
7598
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
7305
7599
|
const { body } = response;
|
|
7306
7600
|
const key = keyBuilderFromType$3(luvio, body);
|
|
7307
|
-
luvio.storeIngest(key, ingest$
|
|
7601
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
7308
7602
|
const snapshot = luvio.storeLookup({
|
|
7309
7603
|
recordId: key,
|
|
7310
7604
|
node: select$3(),
|
|
@@ -7339,10 +7633,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
7339
7633
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
7340
7634
|
];
|
|
7341
7635
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7342
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7636
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$n(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7343
7637
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7344
7638
|
const config = {};
|
|
7345
|
-
typeCheckConfig$
|
|
7639
|
+
typeCheckConfig$n(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7346
7640
|
return config;
|
|
7347
7641
|
}
|
|
7348
7642
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7388,15 +7682,15 @@ const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
|
7388
7682
|
};
|
|
7389
7683
|
|
|
7390
7684
|
function select$2(luvio, params) {
|
|
7391
|
-
return select$
|
|
7685
|
+
return select$A();
|
|
7392
7686
|
}
|
|
7393
7687
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
7394
|
-
getTypeCacheKeys$
|
|
7688
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
7395
7689
|
}
|
|
7396
7690
|
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
7397
7691
|
const { body } = response;
|
|
7398
7692
|
const key = keyBuilderFromType$6(luvio, body);
|
|
7399
|
-
luvio.storeIngest(key, ingest$
|
|
7693
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
7400
7694
|
const snapshot = luvio.storeLookup({
|
|
7401
7695
|
recordId: key,
|
|
7402
7696
|
node: select$2(),
|
|
@@ -7436,10 +7730,10 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
7436
7730
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
7437
7731
|
];
|
|
7438
7732
|
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postSlackFile_ConfigPropertyMetadata);
|
|
7439
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7733
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$n(postSlackFile_ConfigPropertyMetadata);
|
|
7440
7734
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7441
7735
|
const config = {};
|
|
7442
|
-
typeCheckConfig$
|
|
7736
|
+
typeCheckConfig$n(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
7443
7737
|
return config;
|
|
7444
7738
|
}
|
|
7445
7739
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7485,15 +7779,15 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
7485
7779
|
};
|
|
7486
7780
|
|
|
7487
7781
|
function select$1(luvio, params) {
|
|
7488
|
-
return select$
|
|
7782
|
+
return select$F();
|
|
7489
7783
|
}
|
|
7490
7784
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7491
|
-
getTypeCacheKeys$
|
|
7785
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
7492
7786
|
}
|
|
7493
7787
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
7494
7788
|
const { body } = response;
|
|
7495
7789
|
const key = keyBuilderFromType$8(luvio, body);
|
|
7496
|
-
luvio.storeIngest(key, ingest$
|
|
7790
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
7497
7791
|
const snapshot = luvio.storeLookup({
|
|
7498
7792
|
recordId: key,
|
|
7499
7793
|
node: select$1(),
|
|
@@ -7529,10 +7823,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
7529
7823
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7530
7824
|
];
|
|
7531
7825
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7532
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7826
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$n(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7533
7827
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7534
7828
|
const config = {};
|
|
7535
|
-
typeCheckConfig$
|
|
7829
|
+
typeCheckConfig$n(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7536
7830
|
return config;
|
|
7537
7831
|
}
|
|
7538
7832
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7620,10 +7914,10 @@ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
|
7620
7914
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
7621
7915
|
];
|
|
7622
7916
|
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7623
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7917
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$n(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7624
7918
|
function typeCheckConfig(untrustedConfig) {
|
|
7625
7919
|
const config = {};
|
|
7626
|
-
typeCheckConfig$
|
|
7920
|
+
typeCheckConfig$n(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7627
7921
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
7628
7922
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
7629
7923
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -7688,6 +7982,7 @@ let getSlackConversationMember;
|
|
|
7688
7982
|
let getSlackConversationMemberNotifyChange;
|
|
7689
7983
|
let getSlackConversationMembers;
|
|
7690
7984
|
let getSlackConversationMembersNotifyChange;
|
|
7985
|
+
let getSlackDisplayLogin;
|
|
7691
7986
|
let getSlackEmoji;
|
|
7692
7987
|
let getSlackEmojiNotifyChange;
|
|
7693
7988
|
let getSlackEmojis;
|
|
@@ -7712,6 +8007,7 @@ let getRelatedThreads_imperative;
|
|
|
7712
8007
|
let getSlackConversation_imperative;
|
|
7713
8008
|
let getSlackConversationMember_imperative;
|
|
7714
8009
|
let getSlackConversationMembers_imperative;
|
|
8010
|
+
let getSlackDisplayLogin_imperative;
|
|
7715
8011
|
let getSlackEmoji_imperative;
|
|
7716
8012
|
let getSlackEmojis_imperative;
|
|
7717
8013
|
let getSlackMessage_imperative;
|
|
@@ -7730,6 +8026,11 @@ const getSlackConversationMembersMetadata = {
|
|
|
7730
8026
|
apiFamily: 'SlackBridge',
|
|
7731
8027
|
name: 'getSlackConversationMembers',
|
|
7732
8028
|
};
|
|
8029
|
+
const getSlackDisplayLoginMetadata = {
|
|
8030
|
+
apiFamily: 'SlackBridge',
|
|
8031
|
+
name: 'getSlackDisplayLogin',
|
|
8032
|
+
ttl: 500,
|
|
8033
|
+
};
|
|
7733
8034
|
const getSlackEmojiMetadata = { apiFamily: 'SlackBridge', name: 'getSlackEmoji', ttl: 2592000000 };
|
|
7734
8035
|
const getSlackEmojisMetadata = { apiFamily: 'SlackBridge', name: 'getSlackEmojis' };
|
|
7735
8036
|
const getSlackMessageMetadata = { apiFamily: 'SlackBridge', name: 'getSlackMessage' };
|
|
@@ -7751,6 +8052,7 @@ function bindExportsTo(luvio) {
|
|
|
7751
8052
|
const getSlackConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversation', getSlackConversationAdapterFactory), getSlackConversationMetadata);
|
|
7752
8053
|
const getSlackConversationMember_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMember', getSlackConversationMemberAdapterFactory), getSlackConversationMemberMetadata);
|
|
7753
8054
|
const getSlackConversationMembers_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMembers', getSlackConversationMembersAdapterFactory), getSlackConversationMembersMetadata);
|
|
8055
|
+
const getSlackDisplayLogin_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackDisplayLogin', getSlackDisplayLoginAdapterFactory), getSlackDisplayLoginMetadata);
|
|
7754
8056
|
const getSlackEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackEmoji', getSlackEmojiAdapterFactory), getSlackEmojiMetadata);
|
|
7755
8057
|
const getSlackEmojis_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackEmojis', getSlackEmojisAdapterFactory), getSlackEmojisMetadata);
|
|
7756
8058
|
const getSlackMessage_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackMessage', getSlackMessageAdapterFactory), getSlackMessageMetadata);
|
|
@@ -7764,15 +8066,16 @@ function bindExportsTo(luvio) {
|
|
|
7764
8066
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
7765
8067
|
}
|
|
7766
8068
|
return {
|
|
7767
|
-
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$
|
|
7768
|
-
deleteSlackMessage: createLDSAdapter(luvio, adapterName$
|
|
7769
|
-
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$
|
|
8069
|
+
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$m, deleteSlackConversationMemberAdapterFactory),
|
|
8070
|
+
deleteSlackMessage: createLDSAdapter(luvio, adapterName$l, deleteSlackMessageAdapterFactory),
|
|
8071
|
+
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$k, deleteSlackMessageReactionsAdapterFactory),
|
|
7770
8072
|
getRelatedThreads: createWireAdapterConstructor(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
7771
8073
|
getSlackConversation: createWireAdapterConstructor(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
7772
8074
|
getSlackConversationMember: createWireAdapterConstructor(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7773
8075
|
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$5),
|
|
7774
8076
|
getSlackConversationMembers: createWireAdapterConstructor(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
7775
8077
|
getSlackConversationMembersNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMembersNotifyChange', notifyChangeFactory$4),
|
|
8078
|
+
getSlackDisplayLogin: createWireAdapterConstructor(luvio, getSlackDisplayLogin_ldsAdapter, getSlackDisplayLoginMetadata),
|
|
7776
8079
|
getSlackEmoji: createWireAdapterConstructor(luvio, getSlackEmoji_ldsAdapter, getSlackEmojiMetadata),
|
|
7777
8080
|
getSlackEmojiNotifyChange: createLDSAdapter(luvio, 'getSlackEmojiNotifyChange', notifyChangeFactory$3),
|
|
7778
8081
|
getSlackEmojis: createWireAdapterConstructor(luvio, getSlackEmojis_ldsAdapter, getSlackEmojisMetadata),
|
|
@@ -7797,6 +8100,7 @@ function bindExportsTo(luvio) {
|
|
|
7797
8100
|
getSlackConversation_imperative: createImperativeAdapter(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
7798
8101
|
getSlackConversationMember_imperative: createImperativeAdapter(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
7799
8102
|
getSlackConversationMembers_imperative: createImperativeAdapter(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
8103
|
+
getSlackDisplayLogin_imperative: createImperativeAdapter(luvio, getSlackDisplayLogin_ldsAdapter, getSlackDisplayLoginMetadata),
|
|
7800
8104
|
getSlackEmoji_imperative: createImperativeAdapter(luvio, getSlackEmoji_ldsAdapter, getSlackEmojiMetadata),
|
|
7801
8105
|
getSlackEmojis_imperative: createImperativeAdapter(luvio, getSlackEmojis_ldsAdapter, getSlackEmojisMetadata),
|
|
7802
8106
|
getSlackMessage_imperative: createImperativeAdapter(luvio, getSlackMessage_ldsAdapter, getSlackMessageMetadata),
|
|
@@ -7819,6 +8123,7 @@ withDefaultLuvio((luvio) => {
|
|
|
7819
8123
|
getSlackConversationMemberNotifyChange,
|
|
7820
8124
|
getSlackConversationMembers,
|
|
7821
8125
|
getSlackConversationMembersNotifyChange,
|
|
8126
|
+
getSlackDisplayLogin,
|
|
7822
8127
|
getSlackEmoji,
|
|
7823
8128
|
getSlackEmojiNotifyChange,
|
|
7824
8129
|
getSlackEmojis,
|
|
@@ -7842,6 +8147,7 @@ withDefaultLuvio((luvio) => {
|
|
|
7842
8147
|
getSlackConversation_imperative,
|
|
7843
8148
|
getSlackConversationMember_imperative,
|
|
7844
8149
|
getSlackConversationMembers_imperative,
|
|
8150
|
+
getSlackDisplayLogin_imperative,
|
|
7845
8151
|
getSlackEmoji_imperative,
|
|
7846
8152
|
getSlackEmojis_imperative,
|
|
7847
8153
|
getSlackMessage_imperative,
|
|
@@ -7853,5 +8159,5 @@ withDefaultLuvio((luvio) => {
|
|
|
7853
8159
|
} = bindExportsTo(luvio));
|
|
7854
8160
|
});
|
|
7855
8161
|
|
|
7856
|
-
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 };
|
|
7857
|
-
// version: 1.
|
|
8162
|
+
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackDisplayLogin, getSlackDisplayLogin_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
8163
|
+
// version: 1.354.0-dev1-3890a35d35
|