@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev1 → 1.355.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-slack-bridge.js +466 -760
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +1 -3
- package/package.json +3 -3
- package/sfdc/index.js +639 -945
- package/src/raml/api.raml +0 -37
- package/src/raml/luvio.raml +0 -8
- package/dist/es/es2018/types/src/generated/adapters/getSlackDisplayLogin.d.ts +0 -26
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeSlack_display_login.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/types/SlackBridgeDisplayLoginOutputRepresentation.d.ts +0 -32
- package/dist/es/es2018/types/src/generated/types/SlackBridgeSlackTeamOutputRepresentation.d.ts +0 -38
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$m, typeCheckConfig as typeCheckConfig$m, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$c } 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$m = "5ea9ee9da9dcb5309c4f35bb4bf5def2";
|
|
126
|
+
function validate$m(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$o(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$h = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
145
|
+
function keyBuilder$B(luvio, config) {
|
|
146
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.channelId;
|
|
147
147
|
}
|
|
148
148
|
function keyBuilderFromType$a(luvio, object) {
|
|
149
149
|
const keyParams = {
|
|
150
150
|
channelId: object.channelId
|
|
151
151
|
};
|
|
152
|
-
return keyBuilder$
|
|
152
|
+
return keyBuilder$B(luvio, keyParams);
|
|
153
153
|
}
|
|
154
|
-
function normalize$
|
|
154
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
155
155
|
return input;
|
|
156
156
|
}
|
|
157
|
-
const select$
|
|
157
|
+
const select$F = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
158
158
|
return {
|
|
159
159
|
kind: 'Fragment',
|
|
160
|
-
version: VERSION$
|
|
160
|
+
version: VERSION$m,
|
|
161
161
|
private: [],
|
|
162
162
|
selections: [
|
|
163
163
|
{
|
|
@@ -171,7 +171,7 @@ const select$I = function SlackBridgeConversationMemberOutputRepresentationSelec
|
|
|
171
171
|
]
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
function equals$
|
|
174
|
+
function equals$m(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$o(existing, incoming) {
|
|
|
184
184
|
}
|
|
185
185
|
return true;
|
|
186
186
|
}
|
|
187
|
-
const ingest$
|
|
187
|
+
const ingest$h = function SlackBridgeConversationMemberOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
188
188
|
if (process.env.NODE_ENV !== 'production') {
|
|
189
|
-
const validateError = validate$
|
|
189
|
+
const validateError = validate$m(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$h, "SlackBridge", VERSION$m, RepresentationType$h, equals$m);
|
|
197
197
|
return createLink(key);
|
|
198
198
|
};
|
|
199
|
-
function getTypeCacheKeys$
|
|
199
|
+
function getTypeCacheKeys$h(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$h,
|
|
205
205
|
mergeable: false
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
function keyBuilder$
|
|
210
|
-
return keyBuilder$
|
|
209
|
+
function keyBuilder$A(luvio, params) {
|
|
210
|
+
return keyBuilder$B(luvio, {
|
|
211
211
|
channelId: params.urlParams.channelId
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function getResponseCacheKeys$
|
|
215
|
-
const key = keyBuilder$
|
|
214
|
+
function getResponseCacheKeys$l(cacheKeyMap, luvio, resourceParams) {
|
|
215
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
216
216
|
cacheKeyMap.set(key, {
|
|
217
217
|
namespace: keyPrefix,
|
|
218
|
-
representationName: RepresentationType$
|
|
218
|
+
representationName: RepresentationType$h,
|
|
219
219
|
mergeable: false
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
function evictSuccess$2(luvio, resourceParams) {
|
|
223
|
-
const key = keyBuilder$
|
|
223
|
+
const key = keyBuilder$A(luvio, resourceParams);
|
|
224
224
|
luvio.storeEvict(key);
|
|
225
225
|
}
|
|
226
|
-
function createResourceRequest$
|
|
226
|
+
function createResourceRequest$l(config) {
|
|
227
227
|
const headers = {};
|
|
228
228
|
return {
|
|
229
229
|
baseUri: '/services/data/v64.0',
|
|
@@ -237,35 +237,35 @@ function createResourceRequest$m(config) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
const adapterName$
|
|
240
|
+
const adapterName$l = '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$l, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
247
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$m(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
248
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
249
249
|
const config = {};
|
|
250
|
-
typeCheckConfig$
|
|
250
|
+
typeCheckConfig$m(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
251
251
|
return config;
|
|
252
252
|
}
|
|
253
|
-
function validateAdapterConfig$
|
|
253
|
+
function validateAdapterConfig$l(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$l(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$l(luvio, config, options) {
|
|
267
|
+
const resourceParams = createResourceParams$l(config);
|
|
268
|
+
const request = createResourceRequest$l(resourceParams);
|
|
269
269
|
return luvio.dispatchResourceRequest(request, options)
|
|
270
270
|
.then(() => {
|
|
271
271
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -273,7 +273,7 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
273
273
|
return luvio.storeBroadcast();
|
|
274
274
|
}, () => {
|
|
275
275
|
const cache = new StoreKeyMap();
|
|
276
|
-
getResponseCacheKeys$
|
|
276
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams);
|
|
277
277
|
return cache;
|
|
278
278
|
});
|
|
279
279
|
}, (response) => {
|
|
@@ -283,17 +283,17 @@ function buildNetworkSnapshot$m(luvio, config, options) {
|
|
|
283
283
|
}
|
|
284
284
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
285
285
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
286
|
-
const config = validateAdapterConfig$
|
|
286
|
+
const config = validateAdapterConfig$l(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$l}"`);
|
|
290
290
|
}
|
|
291
|
-
return buildNetworkSnapshot$
|
|
291
|
+
return buildNetworkSnapshot$l(luvio, config);
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
-
const VERSION$
|
|
296
|
-
function validate$
|
|
295
|
+
const VERSION$l = "605674abcbc0dad7e2707e4e00e8d4cd";
|
|
296
|
+
function validate$l(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$n(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$g = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
320
|
+
function keyBuilder$z(luvio, config) {
|
|
321
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.channelId;
|
|
322
322
|
}
|
|
323
323
|
function keyBuilderFromType$9(luvio, object) {
|
|
324
324
|
const keyParams = {
|
|
325
325
|
channelId: object.channelId
|
|
326
326
|
};
|
|
327
|
-
return keyBuilder$
|
|
327
|
+
return keyBuilder$z(luvio, keyParams);
|
|
328
328
|
}
|
|
329
|
-
function normalize$
|
|
329
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
330
330
|
return input;
|
|
331
331
|
}
|
|
332
|
-
const select$
|
|
332
|
+
const select$E = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
333
333
|
return {
|
|
334
334
|
kind: 'Fragment',
|
|
335
|
-
version: VERSION$
|
|
335
|
+
version: VERSION$l,
|
|
336
336
|
private: [],
|
|
337
337
|
selections: [
|
|
338
338
|
{
|
|
@@ -350,7 +350,7 @@ const select$H = function SlackBridgeMessageFragmentOutputRepresentationSelect()
|
|
|
350
350
|
]
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
|
-
function equals$
|
|
353
|
+
function equals$l(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$n(existing, incoming) {
|
|
|
368
368
|
}
|
|
369
369
|
return true;
|
|
370
370
|
}
|
|
371
|
-
const ingest$
|
|
371
|
+
const ingest$g = function SlackBridgeMessageFragmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
372
372
|
if (process.env.NODE_ENV !== 'production') {
|
|
373
|
-
const validateError = validate$
|
|
373
|
+
const validateError = validate$l(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$g, "SlackBridge", VERSION$l, RepresentationType$g, equals$l);
|
|
381
381
|
return createLink(key);
|
|
382
382
|
};
|
|
383
|
-
function getTypeCacheKeys$
|
|
383
|
+
function getTypeCacheKeys$g(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$g,
|
|
389
389
|
mergeable: false
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
function keyBuilder$
|
|
394
|
-
return keyBuilder$
|
|
393
|
+
function keyBuilder$y(luvio, params) {
|
|
394
|
+
return keyBuilder$z(luvio, {
|
|
395
395
|
channelId: params.urlParams.channelId
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
function getResponseCacheKeys$
|
|
399
|
-
const key = keyBuilder$
|
|
398
|
+
function getResponseCacheKeys$k(cacheKeyMap, luvio, resourceParams) {
|
|
399
|
+
const key = keyBuilder$y(luvio, resourceParams);
|
|
400
400
|
cacheKeyMap.set(key, {
|
|
401
401
|
namespace: keyPrefix,
|
|
402
|
-
representationName: RepresentationType$
|
|
402
|
+
representationName: RepresentationType$g,
|
|
403
403
|
mergeable: false
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
function evictSuccess$1(luvio, resourceParams) {
|
|
407
|
-
const key = keyBuilder$
|
|
407
|
+
const key = keyBuilder$y(luvio, resourceParams);
|
|
408
408
|
luvio.storeEvict(key);
|
|
409
409
|
}
|
|
410
|
-
function createResourceRequest$
|
|
410
|
+
function createResourceRequest$k(config) {
|
|
411
411
|
const headers = {};
|
|
412
412
|
return {
|
|
413
413
|
baseUri: '/services/data/v64.0',
|
|
@@ -421,35 +421,35 @@ function createResourceRequest$l(config) {
|
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
const adapterName$
|
|
424
|
+
const adapterName$k = '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$k, deleteSlackMessage_ConfigPropertyMetadata);
|
|
431
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$m(deleteSlackMessage_ConfigPropertyMetadata);
|
|
432
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
433
433
|
const config = {};
|
|
434
|
-
typeCheckConfig$
|
|
434
|
+
typeCheckConfig$m(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
435
435
|
return config;
|
|
436
436
|
}
|
|
437
|
-
function validateAdapterConfig$
|
|
437
|
+
function validateAdapterConfig$k(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$k(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$k(luvio, config, options) {
|
|
451
|
+
const resourceParams = createResourceParams$k(config);
|
|
452
|
+
const request = createResourceRequest$k(resourceParams);
|
|
453
453
|
return luvio.dispatchResourceRequest(request, options)
|
|
454
454
|
.then(() => {
|
|
455
455
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -457,7 +457,7 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
457
457
|
return luvio.storeBroadcast();
|
|
458
458
|
}, () => {
|
|
459
459
|
const cache = new StoreKeyMap();
|
|
460
|
-
getResponseCacheKeys$
|
|
460
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams);
|
|
461
461
|
return cache;
|
|
462
462
|
});
|
|
463
463
|
}, (response) => {
|
|
@@ -467,17 +467,17 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
467
467
|
}
|
|
468
468
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
469
469
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
470
|
-
const config = validateAdapterConfig$
|
|
470
|
+
const config = validateAdapterConfig$k(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$k}"`);
|
|
474
474
|
}
|
|
475
|
-
return buildNetworkSnapshot$
|
|
475
|
+
return buildNetworkSnapshot$k(luvio, config);
|
|
476
476
|
};
|
|
477
477
|
};
|
|
478
478
|
|
|
479
|
-
const VERSION$
|
|
480
|
-
function validate$
|
|
479
|
+
const VERSION$k = "7820a930852347bb0506c08d8b528281";
|
|
480
|
+
function validate$k(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$m(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
554
554
|
})();
|
|
555
555
|
return v_error === undefined ? null : v_error;
|
|
556
556
|
}
|
|
557
|
-
const select$
|
|
557
|
+
const select$D = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
558
558
|
return {
|
|
559
559
|
kind: 'Fragment',
|
|
560
|
-
version: VERSION$
|
|
560
|
+
version: VERSION$k,
|
|
561
561
|
private: [],
|
|
562
562
|
selections: [
|
|
563
563
|
{
|
|
@@ -580,7 +580,7 @@ const select$G = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
580
580
|
]
|
|
581
581
|
};
|
|
582
582
|
};
|
|
583
|
-
function equals$
|
|
583
|
+
function equals$k(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$m(existing, incoming) {
|
|
|
609
609
|
return true;
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
-
const VERSION$
|
|
613
|
-
function validate$
|
|
612
|
+
const VERSION$j = "804aa6216a7579adeeae856f76b688db";
|
|
613
|
+
function validate$j(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$l(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$k(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$l(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$f = 'SlackBridgeReactionsOutputRepresentation';
|
|
652
|
+
function keyBuilder$x(luvio, config) {
|
|
653
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.channelId;
|
|
654
654
|
}
|
|
655
655
|
function keyBuilderFromType$8(luvio, object) {
|
|
656
656
|
const keyParams = {
|
|
657
657
|
channelId: object.channelId
|
|
658
658
|
};
|
|
659
|
-
return keyBuilder$
|
|
659
|
+
return keyBuilder$x(luvio, keyParams);
|
|
660
660
|
}
|
|
661
|
-
function normalize$
|
|
661
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
662
662
|
return input;
|
|
663
663
|
}
|
|
664
|
-
const select$
|
|
665
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
664
|
+
const select$C = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
665
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$D();
|
|
666
666
|
return {
|
|
667
667
|
kind: 'Fragment',
|
|
668
|
-
version: VERSION$
|
|
668
|
+
version: VERSION$j,
|
|
669
669
|
private: [],
|
|
670
670
|
selections: [
|
|
671
671
|
{
|
|
@@ -689,7 +689,7 @@ const select$F = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
|
689
689
|
]
|
|
690
690
|
};
|
|
691
691
|
};
|
|
692
|
-
function equals$
|
|
692
|
+
function equals$j(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$l(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$k(existing_reactions_item, incoming_reactions_item))) {
|
|
712
712
|
return false;
|
|
713
713
|
}
|
|
714
714
|
});
|
|
@@ -717,46 +717,46 @@ function equals$l(existing, incoming) {
|
|
|
717
717
|
}
|
|
718
718
|
return true;
|
|
719
719
|
}
|
|
720
|
-
const ingest$
|
|
720
|
+
const ingest$f = function SlackBridgeReactionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
721
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
722
|
-
const validateError = validate$
|
|
722
|
+
const validateError = validate$j(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$f, "SlackBridge", VERSION$j, RepresentationType$f, equals$j);
|
|
730
730
|
return createLink(key);
|
|
731
731
|
};
|
|
732
|
-
function getTypeCacheKeys$
|
|
732
|
+
function getTypeCacheKeys$f(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$f,
|
|
738
738
|
mergeable: false
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
-
function keyBuilder$
|
|
743
|
-
return keyBuilder$
|
|
742
|
+
function keyBuilder$w(luvio, params) {
|
|
743
|
+
return keyBuilder$x(luvio, {
|
|
744
744
|
channelId: params.urlParams.channelId
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
|
-
function getResponseCacheKeys$
|
|
748
|
-
const key = keyBuilder$
|
|
747
|
+
function getResponseCacheKeys$j(cacheKeyMap, luvio, resourceParams) {
|
|
748
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
749
749
|
cacheKeyMap.set(key, {
|
|
750
750
|
namespace: keyPrefix,
|
|
751
|
-
representationName: RepresentationType$
|
|
751
|
+
representationName: RepresentationType$f,
|
|
752
752
|
mergeable: false
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
function evictSuccess(luvio, resourceParams) {
|
|
756
|
-
const key = keyBuilder$
|
|
756
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
757
757
|
luvio.storeEvict(key);
|
|
758
758
|
}
|
|
759
|
-
function createResourceRequest$
|
|
759
|
+
function createResourceRequest$j(config) {
|
|
760
760
|
const headers = {};
|
|
761
761
|
return {
|
|
762
762
|
baseUri: '/services/data/v64.0',
|
|
@@ -770,36 +770,36 @@ function createResourceRequest$k(config) {
|
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
|
|
773
|
-
const adapterName$
|
|
773
|
+
const adapterName$j = '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$j, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
781
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$m(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
782
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
783
783
|
const config = {};
|
|
784
|
-
typeCheckConfig$
|
|
784
|
+
typeCheckConfig$m(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
785
785
|
return config;
|
|
786
786
|
}
|
|
787
|
-
function validateAdapterConfig$
|
|
787
|
+
function validateAdapterConfig$j(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$j(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$j(luvio, config, options) {
|
|
801
|
+
const resourceParams = createResourceParams$j(config);
|
|
802
|
+
const request = createResourceRequest$j(resourceParams);
|
|
803
803
|
return luvio.dispatchResourceRequest(request, options)
|
|
804
804
|
.then(() => {
|
|
805
805
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -807,7 +807,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
807
807
|
return luvio.storeBroadcast();
|
|
808
808
|
}, () => {
|
|
809
809
|
const cache = new StoreKeyMap();
|
|
810
|
-
getResponseCacheKeys$
|
|
810
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams);
|
|
811
811
|
return cache;
|
|
812
812
|
});
|
|
813
813
|
}, (response) => {
|
|
@@ -817,17 +817,17 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
817
817
|
}
|
|
818
818
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
819
819
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
820
|
-
const config = validateAdapterConfig$
|
|
820
|
+
const config = validateAdapterConfig$j(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$j}"`);
|
|
824
824
|
}
|
|
825
|
-
return buildNetworkSnapshot$
|
|
825
|
+
return buildNetworkSnapshot$j(luvio, config);
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
828
|
|
|
829
|
-
const VERSION$
|
|
830
|
-
function validate$
|
|
829
|
+
const VERSION$i = "252fe3a6509a770a876e36552ad8dd06";
|
|
830
|
+
function validate$i(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$k(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$e = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1168
|
+
function keyBuilder$v(luvio, config) {
|
|
1169
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + 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$v(luvio, keyParams);
|
|
1176
1176
|
}
|
|
1177
|
-
function normalize$
|
|
1177
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
1178
1178
|
return input;
|
|
1179
1179
|
}
|
|
1180
|
-
const select$
|
|
1180
|
+
const select$B = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1181
1181
|
return {
|
|
1182
1182
|
kind: 'Fragment',
|
|
1183
|
-
version: VERSION$
|
|
1183
|
+
version: VERSION$i,
|
|
1184
1184
|
private: [],
|
|
1185
1185
|
selections: [
|
|
1186
1186
|
{
|
|
@@ -1247,7 +1247,7 @@ const select$E = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1247
1247
|
]
|
|
1248
1248
|
};
|
|
1249
1249
|
};
|
|
1250
|
-
function equals$
|
|
1250
|
+
function equals$i(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$k(existing, incoming) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
return true;
|
|
1335
1335
|
}
|
|
1336
|
-
const ingest$
|
|
1336
|
+
const ingest$e = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1337
1337
|
if (process.env.NODE_ENV !== 'production') {
|
|
1338
|
-
const validateError = validate$
|
|
1338
|
+
const validateError = validate$i(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$e, "SlackBridge", VERSION$i, RepresentationType$e, equals$i);
|
|
1346
1346
|
return createLink(key);
|
|
1347
1347
|
};
|
|
1348
|
-
function getTypeCacheKeys$
|
|
1348
|
+
function getTypeCacheKeys$e(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$e,
|
|
1354
1354
|
mergeable: false
|
|
1355
1355
|
});
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
1358
|
-
const VERSION$
|
|
1359
|
-
function validate$
|
|
1358
|
+
const VERSION$h = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
1359
|
+
function validate$h(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$j(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1374
1374
|
})();
|
|
1375
1375
|
return v_error === undefined ? null : v_error;
|
|
1376
1376
|
}
|
|
1377
|
-
const select$
|
|
1377
|
+
const select$A = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1378
1378
|
return {
|
|
1379
1379
|
kind: 'Fragment',
|
|
1380
|
-
version: VERSION$
|
|
1380
|
+
version: VERSION$h,
|
|
1381
1381
|
private: [],
|
|
1382
1382
|
selections: [
|
|
1383
1383
|
{
|
|
@@ -1391,7 +1391,7 @@ const select$D = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
|
1391
1391
|
]
|
|
1392
1392
|
};
|
|
1393
1393
|
};
|
|
1394
|
-
function equals$
|
|
1394
|
+
function equals$h(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$j(existing, incoming) {
|
|
|
1405
1405
|
return true;
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
|
-
const VERSION$
|
|
1409
|
-
function validate$
|
|
1408
|
+
const VERSION$g = "3ef7c0314c9cc37a0b6c3b0dbd6a76a5";
|
|
1409
|
+
function validate$g(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$i(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$h(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$i(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$z = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1493
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$A();
|
|
1494
1494
|
return {
|
|
1495
1495
|
kind: 'Fragment',
|
|
1496
|
-
version: VERSION$
|
|
1496
|
+
version: VERSION$g,
|
|
1497
1497
|
private: [],
|
|
1498
1498
|
selections: [
|
|
1499
1499
|
{
|
|
@@ -1525,7 +1525,7 @@ const select$C = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1525
1525
|
]
|
|
1526
1526
|
};
|
|
1527
1527
|
};
|
|
1528
|
-
function equals$
|
|
1528
|
+
function equals$g(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$i(existing, incoming) {
|
|
|
1551
1551
|
if (!(existing_filetype === incoming_filetype
|
|
1552
1552
|
|| (existing_filetype != null &&
|
|
1553
1553
|
incoming_filetype != null &&
|
|
1554
|
-
equals$
|
|
1554
|
+
equals$h(existing_filetype, incoming_filetype)))) {
|
|
1555
1555
|
return false;
|
|
1556
1556
|
}
|
|
1557
1557
|
const existing_versionUrl = existing.versionUrl;
|
|
@@ -1562,15 +1562,15 @@ function equals$i(existing, incoming) {
|
|
|
1562
1562
|
return true;
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
-
const VERSION$
|
|
1566
|
-
function validate$
|
|
1565
|
+
const VERSION$f = "effdd259bc622bee05493fc2a3ecd276";
|
|
1566
|
+
function validate$f(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$h(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$h(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$g(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$h(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$y = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
1606
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$A();
|
|
1607
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$z();
|
|
1608
1608
|
return {
|
|
1609
1609
|
kind: 'Fragment',
|
|
1610
|
-
version: VERSION$
|
|
1610
|
+
version: VERSION$f,
|
|
1611
1611
|
private: [],
|
|
1612
1612
|
selections: [
|
|
1613
1613
|
{
|
|
@@ -1635,7 +1635,7 @@ const select$B = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
1635
1635
|
]
|
|
1636
1636
|
};
|
|
1637
1637
|
};
|
|
1638
|
-
function equals$
|
|
1638
|
+
function equals$f(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$h(existing, incoming) {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
const existing_filetype = existing.filetype;
|
|
1655
1655
|
const incoming_filetype = incoming.filetype;
|
|
1656
|
-
if (!(equals$
|
|
1656
|
+
if (!(equals$h(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$g(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$e = "15fa7211c500ebba9537b3c9921b39cf";
|
|
1668
|
+
function validate$e(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$g(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$f(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$g(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$d = 'SlackBridgeFileOutputRepresentation';
|
|
1840
|
+
function keyBuilder$u(luvio, config) {
|
|
1841
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + (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$u(luvio, keyParams);
|
|
1848
1848
|
}
|
|
1849
|
-
function normalize$
|
|
1849
|
+
function normalize$d(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$x = function SlackBridgeFileOutputRepresentationSelect() {
|
|
1853
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$y();
|
|
1854
1854
|
return {
|
|
1855
1855
|
kind: 'Fragment',
|
|
1856
|
-
version: VERSION$
|
|
1856
|
+
version: VERSION$e,
|
|
1857
1857
|
private: [],
|
|
1858
1858
|
selections: [
|
|
1859
1859
|
{
|
|
@@ -1905,7 +1905,7 @@ const select$A = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
1905
1905
|
]
|
|
1906
1906
|
};
|
|
1907
1907
|
};
|
|
1908
|
-
function equals$
|
|
1908
|
+
function equals$e(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$g(existing, incoming) {
|
|
|
1941
1941
|
if (!(existing_contentDocument === incoming_contentDocument
|
|
1942
1942
|
|| (existing_contentDocument != null &&
|
|
1943
1943
|
incoming_contentDocument != null &&
|
|
1944
|
-
equals$
|
|
1944
|
+
equals$f(existing_contentDocument, incoming_contentDocument)))) {
|
|
1945
1945
|
return false;
|
|
1946
1946
|
}
|
|
1947
1947
|
const existing_size = existing.size;
|
|
@@ -1966,30 +1966,30 @@ function equals$g(existing, incoming) {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
return true;
|
|
1968
1968
|
}
|
|
1969
|
-
const ingest$
|
|
1969
|
+
const ingest$d = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1970
1970
|
if (process.env.NODE_ENV !== 'production') {
|
|
1971
|
-
const validateError = validate$
|
|
1971
|
+
const validateError = validate$e(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$d, "SlackBridge", VERSION$e, RepresentationType$d, equals$e);
|
|
1979
1979
|
return createLink(key);
|
|
1980
1980
|
};
|
|
1981
|
-
function getTypeCacheKeys$
|
|
1981
|
+
function getTypeCacheKeys$d(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$d,
|
|
1987
1987
|
mergeable: false
|
|
1988
1988
|
});
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
|
-
const VERSION$
|
|
1992
|
-
function validate$
|
|
1991
|
+
const VERSION$d = "e44783fc9e817e6accf3f3d286c3f0fe";
|
|
1992
|
+
function validate$d(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$f(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$k(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$f(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$c = 'SlackBridgeMessageOutputRepresentation';
|
|
2367
|
+
function normalize$c(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$d(input_files_item, {
|
|
2374
2374
|
fullPath: input_files_item_id,
|
|
2375
2375
|
propertyName: i,
|
|
2376
2376
|
parent: {
|
|
@@ -2383,11 +2383,11 @@ function normalize$d(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$w = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2387
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$D();
|
|
2388
2388
|
return {
|
|
2389
2389
|
kind: 'Fragment',
|
|
2390
|
-
version: VERSION$
|
|
2390
|
+
version: VERSION$d,
|
|
2391
2391
|
private: [],
|
|
2392
2392
|
selections: [
|
|
2393
2393
|
{
|
|
@@ -2408,7 +2408,7 @@ const select$z = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2408
2408
|
name: 'files',
|
|
2409
2409
|
kind: 'Link',
|
|
2410
2410
|
plural: true,
|
|
2411
|
-
fragment: select$
|
|
2411
|
+
fragment: select$x()
|
|
2412
2412
|
},
|
|
2413
2413
|
{
|
|
2414
2414
|
name: 'includesCustomEmoji',
|
|
@@ -2480,7 +2480,7 @@ const select$z = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2480
2480
|
]
|
|
2481
2481
|
};
|
|
2482
2482
|
};
|
|
2483
|
-
function equals$
|
|
2483
|
+
function equals$d(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$f(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$k(existing_reactions_item, incoming_reactions_item))) {
|
|
2578
2578
|
return false;
|
|
2579
2579
|
}
|
|
2580
2580
|
});
|
|
@@ -2618,35 +2618,35 @@ function equals$f(existing, incoming) {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
return true;
|
|
2620
2620
|
}
|
|
2621
|
-
const ingest$
|
|
2621
|
+
const ingest$c = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2622
2622
|
if (process.env.NODE_ENV !== 'production') {
|
|
2623
|
-
const validateError = validate$
|
|
2623
|
+
const validateError = validate$d(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$c, "SlackBridge", VERSION$d, RepresentationType$c, equals$d);
|
|
2631
2631
|
return createLink(key);
|
|
2632
2632
|
};
|
|
2633
|
-
function getTypeCacheKeys$
|
|
2633
|
+
function getTypeCacheKeys$c(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$c,
|
|
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$d(rootKeySet, luvio, input.files[i]);
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
2646
|
|
|
2647
|
-
const TTL$
|
|
2648
|
-
const VERSION$
|
|
2649
|
-
function validate$
|
|
2647
|
+
const TTL$2 = 500;
|
|
2648
|
+
const VERSION$c = "fb0fd743f16f2b13d70727c055fbc834";
|
|
2649
|
+
function validate$c(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$e(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$b = 'SlackBridgeRelatedThreadsOutputRepresentation';
|
|
2687
|
+
function normalize$b(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$e(input_conversations_item, {
|
|
2694
2694
|
fullPath: input_conversations_item_id,
|
|
2695
2695
|
propertyName: i,
|
|
2696
2696
|
parent: {
|
|
@@ -2706,7 +2706,7 @@ function normalize$c(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$c(input_messages_item, {
|
|
2710
2710
|
fullPath: input_messages_item_id,
|
|
2711
2711
|
propertyName: i,
|
|
2712
2712
|
parent: {
|
|
@@ -2719,23 +2719,23 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
2719
2719
|
}
|
|
2720
2720
|
return input;
|
|
2721
2721
|
}
|
|
2722
|
-
const select$
|
|
2722
|
+
const select$v = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
2723
2723
|
return {
|
|
2724
2724
|
kind: 'Fragment',
|
|
2725
|
-
version: VERSION$
|
|
2725
|
+
version: VERSION$c,
|
|
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$B()
|
|
2733
2733
|
},
|
|
2734
2734
|
{
|
|
2735
2735
|
name: 'messages',
|
|
2736
2736
|
kind: 'Link',
|
|
2737
2737
|
plural: true,
|
|
2738
|
-
fragment: select$
|
|
2738
|
+
fragment: select$w()
|
|
2739
2739
|
},
|
|
2740
2740
|
{
|
|
2741
2741
|
name: 'teamId',
|
|
@@ -2744,7 +2744,7 @@ const select$y = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
2744
2744
|
]
|
|
2745
2745
|
};
|
|
2746
2746
|
};
|
|
2747
|
-
function equals$
|
|
2747
|
+
function equals$c(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$e(existing, incoming) {
|
|
|
2772
2772
|
}
|
|
2773
2773
|
return true;
|
|
2774
2774
|
}
|
|
2775
|
-
const ingest$
|
|
2775
|
+
const ingest$b = function SlackBridgeRelatedThreadsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2776
2776
|
if (process.env.NODE_ENV !== 'production') {
|
|
2777
|
-
const validateError = validate$
|
|
2777
|
+
const validateError = validate$c(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$2;
|
|
2784
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$c, RepresentationType$b, equals$c);
|
|
2785
2785
|
return createLink(key);
|
|
2786
2786
|
};
|
|
2787
|
-
function getTypeCacheKeys$
|
|
2787
|
+
function getTypeCacheKeys$b(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$b,
|
|
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$e(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$c(rootKeySet, luvio, input.messages[i], () => '');
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
2804
|
|
|
2805
|
-
function select$
|
|
2806
|
-
return select$
|
|
2805
|
+
function select$u(luvio, params) {
|
|
2806
|
+
return select$v();
|
|
2807
2807
|
}
|
|
2808
|
-
function keyBuilder$
|
|
2808
|
+
function keyBuilder$t(luvio, params) {
|
|
2809
2809
|
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
2810
2810
|
}
|
|
2811
|
-
function getResponseCacheKeys$
|
|
2812
|
-
getTypeCacheKeys$
|
|
2811
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
2812
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
2813
2813
|
}
|
|
2814
|
-
function ingestSuccess$
|
|
2814
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
2815
2815
|
const { body } = response;
|
|
2816
|
-
const key = keyBuilder$
|
|
2817
|
-
luvio.storeIngest(key, ingest$
|
|
2816
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
2817
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
2818
2818
|
const snapshot = luvio.storeLookup({
|
|
2819
2819
|
recordId: key,
|
|
2820
|
-
node: select$
|
|
2820
|
+
node: select$u(),
|
|
2821
2821
|
variables: {},
|
|
2822
2822
|
}, snapshotRefresh);
|
|
2823
2823
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2828,19 +2828,19 @@ function ingestSuccess$j(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$b(luvio, params, error, snapshotRefresh) {
|
|
2832
|
+
const key = keyBuilder$t(luvio, params);
|
|
2833
2833
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2834
2834
|
const storeMetadataParams = {
|
|
2835
|
-
ttl: TTL$
|
|
2835
|
+
ttl: TTL$2,
|
|
2836
2836
|
namespace: keyPrefix,
|
|
2837
|
-
version: VERSION$
|
|
2838
|
-
representationName: RepresentationType$
|
|
2837
|
+
version: VERSION$c,
|
|
2838
|
+
representationName: RepresentationType$b
|
|
2839
2839
|
};
|
|
2840
2840
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2841
2841
|
return errorSnapshot;
|
|
2842
2842
|
}
|
|
2843
|
-
function createResourceRequest$
|
|
2843
|
+
function createResourceRequest$i(config) {
|
|
2844
2844
|
const headers = {};
|
|
2845
2845
|
return {
|
|
2846
2846
|
baseUri: '/services/data/v64.0',
|
|
@@ -2854,94 +2854,94 @@ function createResourceRequest$j(config) {
|
|
|
2854
2854
|
};
|
|
2855
2855
|
}
|
|
2856
2856
|
|
|
2857
|
-
const adapterName$
|
|
2857
|
+
const adapterName$i = '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$i, getRelatedThreads_ConfigPropertyMetadata);
|
|
2862
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$m(getRelatedThreads_ConfigPropertyMetadata);
|
|
2863
|
+
function keyBuilder$s(luvio, config) {
|
|
2864
|
+
const resourceParams = createResourceParams$i(config);
|
|
2865
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
2866
2866
|
}
|
|
2867
|
-
function typeCheckConfig$
|
|
2867
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
2868
2868
|
const config = {};
|
|
2869
|
-
typeCheckConfig$
|
|
2869
|
+
typeCheckConfig$m(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
2870
2870
|
return config;
|
|
2871
2871
|
}
|
|
2872
|
-
function validateAdapterConfig$
|
|
2872
|
+
function validateAdapterConfig$i(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$i(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$b(luvio, config) {
|
|
2886
|
+
createResourceParams$i(config);
|
|
2887
|
+
return select$u();
|
|
2888
2888
|
}
|
|
2889
|
-
function onFetchResponseSuccess$
|
|
2890
|
-
const snapshot = ingestSuccess$
|
|
2889
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
2890
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
2891
2891
|
config,
|
|
2892
|
-
resolve: () => buildNetworkSnapshot$
|
|
2892
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
2893
2893
|
});
|
|
2894
2894
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2895
2895
|
}
|
|
2896
|
-
function onFetchResponseError$
|
|
2897
|
-
const snapshot = ingestError$
|
|
2896
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
2897
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
2898
2898
|
config,
|
|
2899
|
-
resolve: () => buildNetworkSnapshot$
|
|
2899
|
+
resolve: () => buildNetworkSnapshot$i(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$i(luvio, config, options) {
|
|
2904
|
+
const resourceParams = createResourceParams$i(config);
|
|
2905
|
+
const request = createResourceRequest$i(resourceParams);
|
|
2906
2906
|
return luvio.dispatchResourceRequest(request, options)
|
|
2907
2907
|
.then((response) => {
|
|
2908
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2908
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
2909
2909
|
const cache = new StoreKeyMap();
|
|
2910
|
-
getResponseCacheKeys$
|
|
2910
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
2911
2911
|
return cache;
|
|
2912
2912
|
});
|
|
2913
2913
|
}, (response) => {
|
|
2914
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2914
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
2915
2915
|
});
|
|
2916
2916
|
}
|
|
2917
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2918
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2917
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
2918
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
2919
2919
|
}
|
|
2920
|
-
function buildCachedSnapshotCachePolicy$
|
|
2920
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
2921
2921
|
const { luvio, config } = context;
|
|
2922
2922
|
const selector = {
|
|
2923
|
-
recordId: keyBuilder$
|
|
2924
|
-
node: adapterFragment$
|
|
2923
|
+
recordId: keyBuilder$s(luvio, config),
|
|
2924
|
+
node: adapterFragment$b(luvio, config),
|
|
2925
2925
|
variables: {},
|
|
2926
2926
|
};
|
|
2927
2927
|
const cacheSnapshot = storeLookup(selector, {
|
|
2928
2928
|
config,
|
|
2929
|
-
resolve: () => buildNetworkSnapshot$
|
|
2929
|
+
resolve: () => buildNetworkSnapshot$i(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$i(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$b, buildNetworkSnapshotCachePolicy$b);
|
|
2941
2941
|
};
|
|
2942
2942
|
|
|
2943
|
-
const VERSION$
|
|
2944
|
-
function validate$
|
|
2943
|
+
const VERSION$b = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
2944
|
+
function validate$b(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$d(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
3027
3027
|
})();
|
|
3028
3028
|
return v_error === undefined ? null : v_error;
|
|
3029
3029
|
}
|
|
3030
|
-
const select$
|
|
3030
|
+
const select$t = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
3031
3031
|
return {
|
|
3032
3032
|
kind: 'Fragment',
|
|
3033
|
-
version: VERSION$
|
|
3033
|
+
version: VERSION$b,
|
|
3034
3034
|
private: [],
|
|
3035
3035
|
selections: [
|
|
3036
3036
|
{
|
|
@@ -3048,7 +3048,7 @@ const select$w = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
|
3048
3048
|
]
|
|
3049
3049
|
};
|
|
3050
3050
|
};
|
|
3051
|
-
function equals$
|
|
3051
|
+
function equals$b(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$d(existing, incoming) {
|
|
|
3067
3067
|
return true;
|
|
3068
3068
|
}
|
|
3069
3069
|
|
|
3070
|
-
const TTL$
|
|
3071
|
-
const VERSION$
|
|
3072
|
-
function validate$
|
|
3070
|
+
const TTL$1 = 2592000000;
|
|
3071
|
+
const VERSION$a = "a0e1530372a57d61a1264218124bbb5c";
|
|
3072
|
+
function validate$a(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$c(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$b(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$c(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$a = 'SlackBridgeEmojiOutputRepresentation';
|
|
3219
|
+
function keyBuilder$r(luvio, config) {
|
|
3220
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + 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$r(luvio, keyParams);
|
|
3227
3227
|
}
|
|
3228
|
-
function normalize$
|
|
3228
|
+
function normalize$a(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$s = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
3232
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$t();
|
|
3233
3233
|
return {
|
|
3234
3234
|
kind: 'Fragment',
|
|
3235
|
-
version: VERSION$
|
|
3235
|
+
version: VERSION$a,
|
|
3236
3236
|
private: [],
|
|
3237
3237
|
selections: [
|
|
3238
3238
|
{
|
|
@@ -3264,7 +3264,7 @@ const select$v = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
|
3264
3264
|
]
|
|
3265
3265
|
};
|
|
3266
3266
|
};
|
|
3267
|
-
function equals$
|
|
3267
|
+
function equals$a(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$c(existing, incoming) {
|
|
|
3295
3295
|
if (!(existing_value === incoming_value
|
|
3296
3296
|
|| (existing_value != null &&
|
|
3297
3297
|
incoming_value != null &&
|
|
3298
|
-
equals$
|
|
3298
|
+
equals$b(existing_value, incoming_value)))) {
|
|
3299
3299
|
return false;
|
|
3300
3300
|
}
|
|
3301
3301
|
return true;
|
|
3302
3302
|
}
|
|
3303
|
-
const ingest$
|
|
3303
|
+
const ingest$a = function SlackBridgeEmojiOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3304
3304
|
if (process.env.NODE_ENV !== 'production') {
|
|
3305
|
-
const validateError = validate$
|
|
3305
|
+
const validateError = validate$a(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$1;
|
|
3312
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
|
|
3313
3313
|
return createLink(key);
|
|
3314
3314
|
};
|
|
3315
|
-
function getTypeCacheKeys$
|
|
3315
|
+
function getTypeCacheKeys$a(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$a,
|
|
3321
3321
|
mergeable: false
|
|
3322
3322
|
});
|
|
3323
3323
|
}
|
|
3324
3324
|
|
|
3325
|
-
const TTL
|
|
3326
|
-
const VERSION$
|
|
3327
|
-
function validate$
|
|
3325
|
+
const TTL = 600000;
|
|
3326
|
+
const VERSION$9 = "ffc32ae0451b10824fba0c96aa0d2115";
|
|
3327
|
+
function validate$9(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$b(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$9 = 'SlackBridgeUserInfoOutputRepresentation';
|
|
3731
|
+
function keyBuilder$q(luvio, config) {
|
|
3732
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + 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$q(luvio, keyParams);
|
|
3740
3740
|
}
|
|
3741
|
-
function normalize$
|
|
3741
|
+
function normalize$9(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$a(input_statusEmoji, {
|
|
3746
3746
|
fullPath: input_statusEmoji_id,
|
|
3747
3747
|
propertyName: 'statusEmoji',
|
|
3748
3748
|
parent: {
|
|
@@ -3755,10 +3755,10 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3755
3755
|
}
|
|
3756
3756
|
return input;
|
|
3757
3757
|
}
|
|
3758
|
-
const select$
|
|
3758
|
+
const select$r = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
3759
3759
|
return {
|
|
3760
3760
|
kind: 'Fragment',
|
|
3761
|
-
version: VERSION$
|
|
3761
|
+
version: VERSION$9,
|
|
3762
3762
|
private: [],
|
|
3763
3763
|
selections: [
|
|
3764
3764
|
{
|
|
@@ -3828,7 +3828,7 @@ const select$u = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
3828
3828
|
name: 'statusEmoji',
|
|
3829
3829
|
kind: 'Link',
|
|
3830
3830
|
nullable: true,
|
|
3831
|
-
fragment: select$
|
|
3831
|
+
fragment: select$s()
|
|
3832
3832
|
},
|
|
3833
3833
|
{
|
|
3834
3834
|
name: 'statusMessage',
|
|
@@ -3845,7 +3845,7 @@ const select$u = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
3845
3845
|
]
|
|
3846
3846
|
};
|
|
3847
3847
|
};
|
|
3848
|
-
function equals$
|
|
3848
|
+
function equals$9(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$b(existing, incoming) {
|
|
|
3972
3972
|
}
|
|
3973
3973
|
return true;
|
|
3974
3974
|
}
|
|
3975
|
-
const ingest$
|
|
3975
|
+
const ingest$9 = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3976
3976
|
if (process.env.NODE_ENV !== 'production') {
|
|
3977
|
-
const validateError = validate$
|
|
3977
|
+
const validateError = validate$9(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;
|
|
3984
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
|
|
3985
3985
|
return createLink(key);
|
|
3986
3986
|
};
|
|
3987
|
-
function getTypeCacheKeys$
|
|
3987
|
+
function getTypeCacheKeys$9(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$9,
|
|
3993
3993
|
mergeable: false
|
|
3994
3994
|
});
|
|
3995
3995
|
if (input.statusEmoji !== null && typeof input.statusEmoji === 'object') {
|
|
3996
|
-
getTypeCacheKeys$
|
|
3996
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.statusEmoji);
|
|
3997
3997
|
}
|
|
3998
3998
|
}
|
|
3999
3999
|
|
|
4000
|
-
const VERSION$
|
|
4001
|
-
function validate$
|
|
4000
|
+
const VERSION$8 = "5145ac2c241c561e4baa29b3884748dc";
|
|
4001
|
+
function validate$8(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$a(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$8 = 'SlackBridgeConversationHistoryOutputRepresentation';
|
|
4053
|
+
function normalize$8(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$c(input_messages_item, {
|
|
4060
4060
|
fullPath: input_messages_item_id,
|
|
4061
4061
|
propertyName: i,
|
|
4062
4062
|
parent: {
|
|
@@ -4069,10 +4069,10 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
4069
4069
|
}
|
|
4070
4070
|
return input;
|
|
4071
4071
|
}
|
|
4072
|
-
const select$
|
|
4072
|
+
const select$q = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
4073
4073
|
return {
|
|
4074
4074
|
kind: 'Fragment',
|
|
4075
|
-
version: VERSION$
|
|
4075
|
+
version: VERSION$8,
|
|
4076
4076
|
private: [],
|
|
4077
4077
|
selections: [
|
|
4078
4078
|
{
|
|
@@ -4083,7 +4083,7 @@ const select$t = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
4083
4083
|
name: 'messages',
|
|
4084
4084
|
kind: 'Link',
|
|
4085
4085
|
plural: true,
|
|
4086
|
-
fragment: select$
|
|
4086
|
+
fragment: select$w()
|
|
4087
4087
|
},
|
|
4088
4088
|
{
|
|
4089
4089
|
name: 'nextCursor',
|
|
@@ -4092,7 +4092,7 @@ const select$t = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
4092
4092
|
]
|
|
4093
4093
|
};
|
|
4094
4094
|
};
|
|
4095
|
-
function equals$
|
|
4095
|
+
function equals$8(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$a(existing, incoming) {
|
|
|
4115
4115
|
}
|
|
4116
4116
|
return true;
|
|
4117
4117
|
}
|
|
4118
|
-
const ingest$
|
|
4118
|
+
const ingest$8 = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4119
4119
|
if (process.env.NODE_ENV !== 'production') {
|
|
4120
|
-
const validateError = validate$
|
|
4120
|
+
const validateError = validate$8(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$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
|
|
4128
4128
|
return createLink(key);
|
|
4129
4129
|
};
|
|
4130
|
-
function getTypeCacheKeys$
|
|
4130
|
+
function getTypeCacheKeys$8(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$8,
|
|
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$c(rootKeySet, luvio, input.messages[i], () => '');
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
|
|
4144
|
-
const VERSION$
|
|
4145
|
-
function validate$
|
|
4144
|
+
const VERSION$7 = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
4145
|
+
function validate$7(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$9(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$7 = 'SlackBridgeConversationOutputRepresentation';
|
|
4290
|
+
function normalize$7(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$9(input_contextUserInfo, {
|
|
4295
4295
|
fullPath: input_contextUserInfo_id,
|
|
4296
4296
|
propertyName: 'contextUserInfo',
|
|
4297
4297
|
parent: {
|
|
@@ -4305,7 +4305,7 @@ function normalize$8(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$e(input_conversationInfo, {
|
|
4309
4309
|
fullPath: input_conversationInfo_id,
|
|
4310
4310
|
propertyName: 'conversationInfo',
|
|
4311
4311
|
parent: {
|
|
@@ -4318,7 +4318,7 @@ function normalize$8(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$8(input_history, {
|
|
4322
4322
|
fullPath: input_history_id,
|
|
4323
4323
|
propertyName: 'history',
|
|
4324
4324
|
parent: {
|
|
@@ -4333,7 +4333,7 @@ function normalize$8(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$9(input_userInfos_item, {
|
|
4337
4337
|
fullPath: input_userInfos_item_id,
|
|
4338
4338
|
propertyName: i,
|
|
4339
4339
|
parent: {
|
|
@@ -4346,10 +4346,10 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
4346
4346
|
}
|
|
4347
4347
|
return input;
|
|
4348
4348
|
}
|
|
4349
|
-
const select$
|
|
4349
|
+
const select$p = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
4350
4350
|
return {
|
|
4351
4351
|
kind: 'Fragment',
|
|
4352
|
-
version: VERSION$
|
|
4352
|
+
version: VERSION$7,
|
|
4353
4353
|
private: [],
|
|
4354
4354
|
selections: [
|
|
4355
4355
|
{
|
|
@@ -4364,18 +4364,18 @@ const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4364
4364
|
name: 'contextUserInfo',
|
|
4365
4365
|
kind: 'Link',
|
|
4366
4366
|
nullable: true,
|
|
4367
|
-
fragment: select$
|
|
4367
|
+
fragment: select$r()
|
|
4368
4368
|
},
|
|
4369
4369
|
{
|
|
4370
4370
|
name: 'conversationInfo',
|
|
4371
4371
|
kind: 'Link',
|
|
4372
4372
|
nullable: true,
|
|
4373
|
-
fragment: select$
|
|
4373
|
+
fragment: select$B()
|
|
4374
4374
|
},
|
|
4375
4375
|
{
|
|
4376
4376
|
name: 'history',
|
|
4377
4377
|
kind: 'Link',
|
|
4378
|
-
fragment: select$
|
|
4378
|
+
fragment: select$q()
|
|
4379
4379
|
},
|
|
4380
4380
|
{
|
|
4381
4381
|
name: 'teamId',
|
|
@@ -4389,7 +4389,7 @@ const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4389
4389
|
name: 'userInfos',
|
|
4390
4390
|
kind: 'Link',
|
|
4391
4391
|
plural: true,
|
|
4392
|
-
fragment: select$
|
|
4392
|
+
fragment: select$r()
|
|
4393
4393
|
},
|
|
4394
4394
|
{
|
|
4395
4395
|
name: 'websocketUrl',
|
|
@@ -4398,7 +4398,7 @@ const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
4398
4398
|
]
|
|
4399
4399
|
};
|
|
4400
4400
|
};
|
|
4401
|
-
function equals$
|
|
4401
|
+
function equals$7(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$9(existing, incoming) {
|
|
|
4461
4461
|
}
|
|
4462
4462
|
return true;
|
|
4463
4463
|
}
|
|
4464
|
-
const ingest$
|
|
4464
|
+
const ingest$7 = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4465
4465
|
if (process.env.NODE_ENV !== 'production') {
|
|
4466
|
-
const validateError = validate$
|
|
4466
|
+
const validateError = validate$7(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$7, "SlackBridge", VERSION$7, RepresentationType$7, equals$7);
|
|
4474
4474
|
return createLink(key);
|
|
4475
4475
|
};
|
|
4476
|
-
function getTypeCacheKeys$
|
|
4476
|
+
function getTypeCacheKeys$7(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$7,
|
|
4482
4482
|
mergeable: false
|
|
4483
4483
|
});
|
|
4484
4484
|
if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
|
|
4485
|
-
getTypeCacheKeys$
|
|
4485
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.contextUserInfo);
|
|
4486
4486
|
}
|
|
4487
4487
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
4488
|
-
getTypeCacheKeys$
|
|
4488
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
4489
4489
|
}
|
|
4490
|
-
getTypeCacheKeys$
|
|
4490
|
+
getTypeCacheKeys$8(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$9(rootKeySet, luvio, input.userInfos[i]);
|
|
4494
4494
|
}
|
|
4495
4495
|
}
|
|
4496
4496
|
|
|
4497
|
-
function select$
|
|
4498
|
-
return select$
|
|
4497
|
+
function select$o(luvio, params) {
|
|
4498
|
+
return select$p();
|
|
4499
4499
|
}
|
|
4500
|
-
function keyBuilder$
|
|
4500
|
+
function keyBuilder$p(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$h(storeKeyMap, luvio, resourceParams, response) {
|
|
4504
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$p(luvio, resourceParams));
|
|
4505
4505
|
}
|
|
4506
|
-
function ingestSuccess$
|
|
4506
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
4507
4507
|
const { body } = response;
|
|
4508
|
-
const key = keyBuilder$
|
|
4509
|
-
luvio.storeIngest(key, ingest$
|
|
4508
|
+
const key = keyBuilder$p(luvio, resourceParams);
|
|
4509
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
4510
4510
|
const snapshot = luvio.storeLookup({
|
|
4511
4511
|
recordId: key,
|
|
4512
|
-
node: select$
|
|
4512
|
+
node: select$o(),
|
|
4513
4513
|
variables: {},
|
|
4514
4514
|
}, snapshotRefresh);
|
|
4515
4515
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4520,13 +4520,13 @@ function ingestSuccess$i(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$a(luvio, params, error, snapshotRefresh) {
|
|
4524
|
+
const key = keyBuilder$p(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$h(config) {
|
|
4530
4530
|
const headers = {};
|
|
4531
4531
|
return {
|
|
4532
4532
|
baseUri: '/services/data/v64.0',
|
|
@@ -4540,7 +4540,7 @@ function createResourceRequest$i(config) {
|
|
|
4540
4540
|
};
|
|
4541
4541
|
}
|
|
4542
4542
|
|
|
4543
|
-
const adapterName$
|
|
4543
|
+
const adapterName$h = '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,158 +4552,15 @@ 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$
|
|
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);
|
|
4555
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackConversation_ConfigPropertyMetadata);
|
|
4556
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$m(getSlackConversation_ConfigPropertyMetadata);
|
|
4700
4557
|
function keyBuilder$o(luvio, config) {
|
|
4701
4558
|
const resourceParams = createResourceParams$h(config);
|
|
4702
4559
|
return keyBuilder$p(luvio, resourceParams);
|
|
4703
4560
|
}
|
|
4704
4561
|
function typeCheckConfig$h(untrustedConfig) {
|
|
4705
4562
|
const config = {};
|
|
4706
|
-
typeCheckConfig$
|
|
4563
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
4707
4564
|
return config;
|
|
4708
4565
|
}
|
|
4709
4566
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -4721,7 +4578,7 @@ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
|
4721
4578
|
}
|
|
4722
4579
|
function adapterFragment$a(luvio, config) {
|
|
4723
4580
|
createResourceParams$h(config);
|
|
4724
|
-
return select$
|
|
4581
|
+
return select$o();
|
|
4725
4582
|
}
|
|
4726
4583
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4727
4584
|
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
@@ -4752,7 +4609,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
4752
4609
|
});
|
|
4753
4610
|
}
|
|
4754
4611
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4755
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4612
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
4756
4613
|
}
|
|
4757
4614
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4758
4615
|
const { luvio, config } = context;
|
|
@@ -4767,195 +4624,34 @@ function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
|
4767
4624
|
});
|
|
4768
4625
|
return cacheSnapshot;
|
|
4769
4626
|
}
|
|
4770
|
-
const
|
|
4771
|
-
const config = validateAdapterConfig$h(untrustedConfig,
|
|
4627
|
+
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
4628
|
+
const config = validateAdapterConfig$h(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
4772
4629
|
// Invalid or incomplete config
|
|
4773
4630
|
if (config === null) {
|
|
4774
4631
|
return null;
|
|
4775
|
-
}
|
|
4776
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4777
|
-
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
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
|
-
}
|
|
4632
|
+
}
|
|
4633
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4634
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4635
|
+
};
|
|
4940
4636
|
|
|
4941
|
-
function select$
|
|
4942
|
-
return select$
|
|
4637
|
+
function select$n(luvio, params) {
|
|
4638
|
+
return select$F();
|
|
4943
4639
|
}
|
|
4944
|
-
function keyBuilder$
|
|
4945
|
-
return keyBuilder$
|
|
4640
|
+
function keyBuilder$n(luvio, params) {
|
|
4641
|
+
return keyBuilder$B(luvio, {
|
|
4946
4642
|
channelId: params.urlParams.channelId
|
|
4947
4643
|
});
|
|
4948
4644
|
}
|
|
4949
4645
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
4950
|
-
getTypeCacheKeys$
|
|
4646
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
4951
4647
|
}
|
|
4952
4648
|
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
4953
4649
|
const { body } = response;
|
|
4954
|
-
const key = keyBuilder$
|
|
4955
|
-
luvio.storeIngest(key, ingest$
|
|
4650
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
4651
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
4956
4652
|
const snapshot = luvio.storeLookup({
|
|
4957
4653
|
recordId: key,
|
|
4958
|
-
node: select$
|
|
4654
|
+
node: select$n(),
|
|
4959
4655
|
variables: {},
|
|
4960
4656
|
}, snapshotRefresh);
|
|
4961
4657
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4967,7 +4663,7 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4967
4663
|
return snapshot;
|
|
4968
4664
|
}
|
|
4969
4665
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4970
|
-
const key = keyBuilder$
|
|
4666
|
+
const key = keyBuilder$n(luvio, params);
|
|
4971
4667
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4972
4668
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4973
4669
|
return errorSnapshot;
|
|
@@ -4976,7 +4672,7 @@ function createResourceRequest$g(config) {
|
|
|
4976
4672
|
const headers = {};
|
|
4977
4673
|
return {
|
|
4978
4674
|
baseUri: '/services/data/v64.0',
|
|
4979
|
-
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
|
|
4675
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
|
|
4980
4676
|
method: 'get',
|
|
4981
4677
|
body: null,
|
|
4982
4678
|
urlParams: config.urlParams,
|
|
@@ -4985,7 +4681,7 @@ function createResourceRequest$g(config) {
|
|
|
4985
4681
|
priority: 'normal',
|
|
4986
4682
|
};
|
|
4987
4683
|
}
|
|
4988
|
-
function createResourceRequestFromRepresentation$
|
|
4684
|
+
function createResourceRequestFromRepresentation$5(representation) {
|
|
4989
4685
|
const config = {
|
|
4990
4686
|
urlParams: {},
|
|
4991
4687
|
};
|
|
@@ -4993,20 +4689,21 @@ function createResourceRequestFromRepresentation$4(representation) {
|
|
|
4993
4689
|
return createResourceRequest$g(config);
|
|
4994
4690
|
}
|
|
4995
4691
|
|
|
4996
|
-
const adapterName$g = '
|
|
4997
|
-
const
|
|
4692
|
+
const adapterName$g = 'getSlackConversationMember';
|
|
4693
|
+
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
4998
4694
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4695
|
+
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4999
4696
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5000
4697
|
];
|
|
5001
|
-
const
|
|
5002
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
5003
|
-
function keyBuilder$
|
|
4698
|
+
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4699
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$m(getSlackConversationMember_ConfigPropertyMetadata);
|
|
4700
|
+
function keyBuilder$m(luvio, config) {
|
|
5004
4701
|
const resourceParams = createResourceParams$g(config);
|
|
5005
|
-
return keyBuilder$
|
|
4702
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
5006
4703
|
}
|
|
5007
4704
|
function typeCheckConfig$g(untrustedConfig) {
|
|
5008
4705
|
const config = {};
|
|
5009
|
-
typeCheckConfig$
|
|
4706
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5010
4707
|
return config;
|
|
5011
4708
|
}
|
|
5012
4709
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -5024,7 +4721,7 @@ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
|
5024
4721
|
}
|
|
5025
4722
|
function adapterFragment$9(luvio, config) {
|
|
5026
4723
|
createResourceParams$g(config);
|
|
5027
|
-
return select$
|
|
4724
|
+
return select$n();
|
|
5028
4725
|
}
|
|
5029
4726
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
5030
4727
|
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
@@ -5055,12 +4752,12 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
5055
4752
|
});
|
|
5056
4753
|
}
|
|
5057
4754
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
5058
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4755
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
5059
4756
|
}
|
|
5060
4757
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
5061
4758
|
const { luvio, config } = context;
|
|
5062
4759
|
const selector = {
|
|
5063
|
-
recordId: keyBuilder$
|
|
4760
|
+
recordId: keyBuilder$m(luvio, config),
|
|
5064
4761
|
node: adapterFragment$9(luvio, config),
|
|
5065
4762
|
variables: {},
|
|
5066
4763
|
};
|
|
@@ -5070,8 +4767,8 @@ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
|
5070
4767
|
});
|
|
5071
4768
|
return cacheSnapshot;
|
|
5072
4769
|
}
|
|
5073
|
-
const
|
|
5074
|
-
const config = validateAdapterConfig$g(untrustedConfig,
|
|
4770
|
+
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
4771
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
5075
4772
|
// Invalid or incomplete config
|
|
5076
4773
|
if (config === null) {
|
|
5077
4774
|
return null;
|
|
@@ -5079,22 +4776,22 @@ const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridg
|
|
|
5079
4776
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5080
4777
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
5081
4778
|
};
|
|
5082
|
-
const notifyChangeFactory$
|
|
5083
|
-
return function
|
|
5084
|
-
const keys = configs.map(c => keyBuilder$
|
|
4779
|
+
const notifyChangeFactory$5 = (luvio, options) => {
|
|
4780
|
+
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamIdNotifyChange(configs) {
|
|
4781
|
+
const keys = configs.map(c => keyBuilder$B(luvio, c));
|
|
5085
4782
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5086
4783
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5087
4784
|
const { key, record: val } = entries[i];
|
|
5088
|
-
const refreshRequest = createResourceRequestFromRepresentation$
|
|
4785
|
+
const refreshRequest = createResourceRequestFromRepresentation$5(val);
|
|
5089
4786
|
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
5090
4787
|
.then((response) => {
|
|
5091
4788
|
return luvio.handleSuccessResponse(() => {
|
|
5092
4789
|
const { body } = response;
|
|
5093
|
-
luvio.storeIngest(key, ingest$
|
|
4790
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
5094
4791
|
return luvio.storeBroadcast();
|
|
5095
4792
|
}, () => {
|
|
5096
4793
|
const cache = new StoreKeyMap();
|
|
5097
|
-
getTypeCacheKeys$
|
|
4794
|
+
getTypeCacheKeys$h(cache, luvio, response.body);
|
|
5098
4795
|
return cache;
|
|
5099
4796
|
});
|
|
5100
4797
|
}, (error) => {
|
|
@@ -5109,158 +4806,131 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
5109
4806
|
};
|
|
5110
4807
|
};
|
|
5111
4808
|
|
|
5112
|
-
const VERSION$
|
|
5113
|
-
function validate$
|
|
4809
|
+
const VERSION$6 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
4810
|
+
function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
5114
4811
|
const v_error = (() => {
|
|
5115
4812
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5116
4813
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5117
4814
|
}
|
|
5118
|
-
const
|
|
5119
|
-
const
|
|
5120
|
-
if (typeof
|
|
5121
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
5122
|
-
}
|
|
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 + '")');
|
|
5127
|
-
}
|
|
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 + '")');
|
|
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 + '")');
|
|
5132
4819
|
}
|
|
5133
|
-
const
|
|
5134
|
-
const
|
|
5135
|
-
|
|
5136
|
-
|
|
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;
|
|
5137
4830
|
}
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
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'
|
|
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 + '")');
|
|
5162
4835
|
}
|
|
5163
|
-
|
|
5164
|
-
|
|
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 + '")');
|
|
4836
|
+
})();
|
|
4837
|
+
if (obj_nextCursor_union1_error != null) {
|
|
4838
|
+
obj_nextCursor_union1 = obj_nextCursor_union1_error.message;
|
|
5196
4839
|
}
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
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');
|
|
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');
|
|
5208
4844
|
return new TypeError(message);
|
|
5209
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
|
+
}
|
|
5210
4858
|
})();
|
|
5211
4859
|
return v_error === undefined ? null : v_error;
|
|
5212
4860
|
}
|
|
5213
|
-
const RepresentationType$6 = '
|
|
4861
|
+
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
4862
|
+
function keyBuilder$l(luvio, config) {
|
|
4863
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
4864
|
+
}
|
|
4865
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
4866
|
+
const keyParams = {
|
|
4867
|
+
channelId: object.channelId
|
|
4868
|
+
};
|
|
4869
|
+
return keyBuilder$l(luvio, keyParams);
|
|
4870
|
+
}
|
|
5214
4871
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
5215
4872
|
return input;
|
|
5216
4873
|
}
|
|
5217
|
-
const select$m = function
|
|
5218
|
-
const { selections: SlackBridgeSlackTeamOutputRepresentation__selections, opaque: SlackBridgeSlackTeamOutputRepresentation__opaque, } = select$n();
|
|
4874
|
+
const select$m = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
5219
4875
|
return {
|
|
5220
4876
|
kind: 'Fragment',
|
|
5221
4877
|
version: VERSION$6,
|
|
5222
4878
|
private: [],
|
|
5223
4879
|
selections: [
|
|
5224
4880
|
{
|
|
5225
|
-
name: '
|
|
4881
|
+
name: 'channelId',
|
|
5226
4882
|
kind: 'Scalar'
|
|
5227
4883
|
},
|
|
5228
4884
|
{
|
|
5229
|
-
name: '
|
|
5230
|
-
kind: '
|
|
5231
|
-
|
|
4885
|
+
name: 'nextCursor',
|
|
4886
|
+
kind: 'Scalar'
|
|
4887
|
+
},
|
|
4888
|
+
{
|
|
4889
|
+
name: 'slackUserIds',
|
|
4890
|
+
kind: 'Scalar',
|
|
4891
|
+
plural: true
|
|
5232
4892
|
}
|
|
5233
4893
|
]
|
|
5234
4894
|
};
|
|
5235
4895
|
};
|
|
5236
4896
|
function equals$6(existing, incoming) {
|
|
5237
|
-
const
|
|
5238
|
-
const
|
|
5239
|
-
if (!(
|
|
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)) {
|
|
5240
4905
|
return false;
|
|
5241
4906
|
}
|
|
5242
|
-
const
|
|
5243
|
-
const
|
|
5244
|
-
|
|
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) {
|
|
5245
4915
|
return false;
|
|
5246
4916
|
}
|
|
5247
4917
|
return true;
|
|
5248
4918
|
}
|
|
5249
|
-
const ingest$6 = function
|
|
4919
|
+
const ingest$6 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5250
4920
|
if (process.env.NODE_ENV !== 'production') {
|
|
5251
4921
|
const validateError = validate$6(input);
|
|
5252
4922
|
if (validateError !== null) {
|
|
5253
4923
|
throw validateError;
|
|
5254
4924
|
}
|
|
5255
4925
|
}
|
|
5256
|
-
const key =
|
|
5257
|
-
const ttlToUse =
|
|
4926
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
4927
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
5258
4928
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
|
|
5259
4929
|
return createLink(key);
|
|
5260
4930
|
};
|
|
5261
4931
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
5262
4932
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5263
|
-
const rootKey =
|
|
4933
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
5264
4934
|
rootKeySet.set(rootKey, {
|
|
5265
4935
|
namespace: keyPrefix,
|
|
5266
4936
|
representationName: RepresentationType$6,
|
|
@@ -5272,14 +4942,16 @@ function select$l(luvio, params) {
|
|
|
5272
4942
|
return select$m();
|
|
5273
4943
|
}
|
|
5274
4944
|
function keyBuilder$k(luvio, params) {
|
|
5275
|
-
return
|
|
4945
|
+
return keyBuilder$l(luvio, {
|
|
4946
|
+
channelId: params.urlParams.channelId
|
|
4947
|
+
});
|
|
5276
4948
|
}
|
|
5277
4949
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
5278
|
-
getTypeCacheKeys$6(storeKeyMap, luvio, response
|
|
4950
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5279
4951
|
}
|
|
5280
4952
|
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
5281
4953
|
const { body } = response;
|
|
5282
|
-
const key = keyBuilder$k();
|
|
4954
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
5283
4955
|
luvio.storeIngest(key, ingest$6, body);
|
|
5284
4956
|
const snapshot = luvio.storeLookup({
|
|
5285
4957
|
recordId: key,
|
|
@@ -5295,41 +4967,46 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5295
4967
|
return snapshot;
|
|
5296
4968
|
}
|
|
5297
4969
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
5298
|
-
const key = keyBuilder$k();
|
|
4970
|
+
const key = keyBuilder$k(luvio, params);
|
|
5299
4971
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5300
|
-
|
|
5301
|
-
ttl: TTL,
|
|
5302
|
-
namespace: keyPrefix,
|
|
5303
|
-
version: VERSION$6,
|
|
5304
|
-
representationName: RepresentationType$6
|
|
5305
|
-
};
|
|
5306
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4972
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
5307
4973
|
return errorSnapshot;
|
|
5308
4974
|
}
|
|
5309
4975
|
function createResourceRequest$f(config) {
|
|
5310
4976
|
const headers = {};
|
|
5311
4977
|
return {
|
|
5312
4978
|
baseUri: '/services/data/v64.0',
|
|
5313
|
-
basePath: '/connect/slackbridge/
|
|
4979
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
|
|
5314
4980
|
method: 'get',
|
|
5315
4981
|
body: null,
|
|
5316
|
-
urlParams:
|
|
4982
|
+
urlParams: config.urlParams,
|
|
5317
4983
|
queryParams: {},
|
|
5318
4984
|
headers,
|
|
5319
4985
|
priority: 'normal',
|
|
5320
4986
|
};
|
|
5321
4987
|
}
|
|
4988
|
+
function createResourceRequestFromRepresentation$4(representation) {
|
|
4989
|
+
const config = {
|
|
4990
|
+
urlParams: {},
|
|
4991
|
+
};
|
|
4992
|
+
config.urlParams.channelId = representation.channelId;
|
|
4993
|
+
return createResourceRequest$f(config);
|
|
4994
|
+
}
|
|
5322
4995
|
|
|
5323
|
-
const adapterName$f = '
|
|
5324
|
-
const
|
|
5325
|
-
|
|
5326
|
-
|
|
4996
|
+
const adapterName$f = 'getSlackConversationMembers';
|
|
4997
|
+
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
4998
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4999
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5000
|
+
];
|
|
5001
|
+
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5002
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$m(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5327
5003
|
function keyBuilder$j(luvio, config) {
|
|
5328
|
-
createResourceParams$f(config);
|
|
5329
|
-
return keyBuilder$k();
|
|
5004
|
+
const resourceParams = createResourceParams$f(config);
|
|
5005
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
5330
5006
|
}
|
|
5331
5007
|
function typeCheckConfig$f(untrustedConfig) {
|
|
5332
5008
|
const config = {};
|
|
5009
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5333
5010
|
return config;
|
|
5334
5011
|
}
|
|
5335
5012
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -5339,7 +5016,7 @@ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
|
5339
5016
|
if (process.env.NODE_ENV !== 'production') {
|
|
5340
5017
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5341
5018
|
}
|
|
5342
|
-
const config = typeCheckConfig$f();
|
|
5019
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
5343
5020
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5344
5021
|
return null;
|
|
5345
5022
|
}
|
|
@@ -5365,7 +5042,7 @@ function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
|
5365
5042
|
}
|
|
5366
5043
|
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
5367
5044
|
const resourceParams = createResourceParams$f(config);
|
|
5368
|
-
const request = createResourceRequest$f();
|
|
5045
|
+
const request = createResourceRequest$f(resourceParams);
|
|
5369
5046
|
return luvio.dispatchResourceRequest(request, options)
|
|
5370
5047
|
.then((response) => {
|
|
5371
5048
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
@@ -5378,7 +5055,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
5378
5055
|
});
|
|
5379
5056
|
}
|
|
5380
5057
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5381
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5058
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
5382
5059
|
}
|
|
5383
5060
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5384
5061
|
const { luvio, config } = context;
|
|
@@ -5393,8 +5070,8 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
5393
5070
|
});
|
|
5394
5071
|
return cacheSnapshot;
|
|
5395
5072
|
}
|
|
5396
|
-
const
|
|
5397
|
-
const config = validateAdapterConfig$f(untrustedConfig,
|
|
5073
|
+
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
5074
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
5398
5075
|
// Invalid or incomplete config
|
|
5399
5076
|
if (config === null) {
|
|
5400
5077
|
return null;
|
|
@@ -5402,22 +5079,51 @@ const getSlackDisplayLoginAdapterFactory = (luvio) => function SlackBridge__getS
|
|
|
5402
5079
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5403
5080
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
5404
5081
|
};
|
|
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
|
+
};
|
|
5405
5111
|
|
|
5406
5112
|
function select$k(luvio, params) {
|
|
5407
|
-
return select$
|
|
5113
|
+
return select$s();
|
|
5408
5114
|
}
|
|
5409
5115
|
function keyBuilder$i(luvio, params) {
|
|
5410
|
-
return keyBuilder$
|
|
5116
|
+
return keyBuilder$r(luvio, {
|
|
5411
5117
|
name: params.urlParams.slackEmojiId
|
|
5412
5118
|
});
|
|
5413
5119
|
}
|
|
5414
5120
|
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
5415
|
-
getTypeCacheKeys$
|
|
5121
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
5416
5122
|
}
|
|
5417
5123
|
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
5418
5124
|
const { body } = response;
|
|
5419
5125
|
const key = keyBuilder$i(luvio, resourceParams);
|
|
5420
|
-
luvio.storeIngest(key, ingest$
|
|
5126
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
5421
5127
|
const snapshot = luvio.storeLookup({
|
|
5422
5128
|
recordId: key,
|
|
5423
5129
|
node: select$k(),
|
|
@@ -5435,10 +5141,10 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
5435
5141
|
const key = keyBuilder$i(luvio, params);
|
|
5436
5142
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5437
5143
|
const storeMetadataParams = {
|
|
5438
|
-
ttl: TTL$
|
|
5144
|
+
ttl: TTL$1,
|
|
5439
5145
|
namespace: keyPrefix,
|
|
5440
|
-
version: VERSION$
|
|
5441
|
-
representationName: RepresentationType$
|
|
5146
|
+
version: VERSION$a,
|
|
5147
|
+
representationName: RepresentationType$a
|
|
5442
5148
|
};
|
|
5443
5149
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5444
5150
|
return errorSnapshot;
|
|
@@ -5470,14 +5176,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
5470
5176
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5471
5177
|
];
|
|
5472
5178
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackEmoji_ConfigPropertyMetadata);
|
|
5473
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
5179
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$m(getSlackEmoji_ConfigPropertyMetadata);
|
|
5474
5180
|
function keyBuilder$h(luvio, config) {
|
|
5475
5181
|
const resourceParams = createResourceParams$e(config);
|
|
5476
5182
|
return keyBuilder$i(luvio, resourceParams);
|
|
5477
5183
|
}
|
|
5478
5184
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5479
5185
|
const config = {};
|
|
5480
|
-
typeCheckConfig$
|
|
5186
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
5481
5187
|
return config;
|
|
5482
5188
|
}
|
|
5483
5189
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -5526,7 +5232,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
5526
5232
|
});
|
|
5527
5233
|
}
|
|
5528
5234
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5529
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5235
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
5530
5236
|
}
|
|
5531
5237
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5532
5238
|
const { luvio, config } = context;
|
|
@@ -5552,7 +5258,7 @@ const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmo
|
|
|
5552
5258
|
};
|
|
5553
5259
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
5554
5260
|
return function getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamIdNotifyChange(configs) {
|
|
5555
|
-
const keys = configs.map(c => keyBuilder$
|
|
5261
|
+
const keys = configs.map(c => keyBuilder$r(luvio, c));
|
|
5556
5262
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5557
5263
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5558
5264
|
const { key, record: val } = entries[i];
|
|
@@ -5561,21 +5267,21 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
5561
5267
|
.then((response) => {
|
|
5562
5268
|
return luvio.handleSuccessResponse(() => {
|
|
5563
5269
|
const { body } = response;
|
|
5564
|
-
luvio.storeIngest(key, ingest$
|
|
5270
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
5565
5271
|
return luvio.storeBroadcast();
|
|
5566
5272
|
}, () => {
|
|
5567
5273
|
const cache = new StoreKeyMap();
|
|
5568
|
-
getTypeCacheKeys$
|
|
5274
|
+
getTypeCacheKeys$a(cache, luvio, response.body);
|
|
5569
5275
|
return cache;
|
|
5570
5276
|
});
|
|
5571
5277
|
}, (error) => {
|
|
5572
5278
|
return luvio.handleErrorResponse(() => {
|
|
5573
5279
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
5574
5280
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
5575
|
-
ttl: TTL$
|
|
5281
|
+
ttl: TTL$1,
|
|
5576
5282
|
namespace: keyPrefix,
|
|
5577
|
-
version: VERSION$
|
|
5578
|
-
representationName: RepresentationType$
|
|
5283
|
+
version: VERSION$a,
|
|
5284
|
+
representationName: RepresentationType$a
|
|
5579
5285
|
});
|
|
5580
5286
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
5581
5287
|
});
|
|
@@ -5613,7 +5319,7 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
5613
5319
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
5614
5320
|
const input_emojis_item = input_emojis[i];
|
|
5615
5321
|
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
5616
|
-
input_emojis[i] = ingest$
|
|
5322
|
+
input_emojis[i] = ingest$a(input_emojis_item, {
|
|
5617
5323
|
fullPath: input_emojis_item_id,
|
|
5618
5324
|
propertyName: i,
|
|
5619
5325
|
parent: {
|
|
@@ -5636,7 +5342,7 @@ const select$j = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
5636
5342
|
name: 'emojis',
|
|
5637
5343
|
kind: 'Link',
|
|
5638
5344
|
plural: true,
|
|
5639
|
-
fragment: select$
|
|
5345
|
+
fragment: select$s()
|
|
5640
5346
|
}
|
|
5641
5347
|
]
|
|
5642
5348
|
};
|
|
@@ -5676,7 +5382,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5676
5382
|
});
|
|
5677
5383
|
const input_emojis_length = input.emojis.length;
|
|
5678
5384
|
for (let i = 0; i < input_emojis_length; i++) {
|
|
5679
|
-
getTypeCacheKeys$
|
|
5385
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.emojis[i]);
|
|
5680
5386
|
}
|
|
5681
5387
|
}
|
|
5682
5388
|
|
|
@@ -5732,14 +5438,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
5732
5438
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5733
5439
|
];
|
|
5734
5440
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackEmojis_ConfigPropertyMetadata);
|
|
5735
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
5441
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$m(getSlackEmojis_ConfigPropertyMetadata);
|
|
5736
5442
|
function keyBuilder$f(luvio, config) {
|
|
5737
5443
|
const resourceParams = createResourceParams$d(config);
|
|
5738
5444
|
return keyBuilder$g(luvio, resourceParams);
|
|
5739
5445
|
}
|
|
5740
5446
|
function typeCheckConfig$d(untrustedConfig) {
|
|
5741
5447
|
const config = {};
|
|
5742
|
-
typeCheckConfig$
|
|
5448
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
5743
5449
|
return config;
|
|
5744
5450
|
}
|
|
5745
5451
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -5788,7 +5494,7 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
5788
5494
|
});
|
|
5789
5495
|
}
|
|
5790
5496
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5791
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5497
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
5792
5498
|
}
|
|
5793
5499
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5794
5500
|
const { luvio, config } = context;
|
|
@@ -5814,20 +5520,20 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
5814
5520
|
};
|
|
5815
5521
|
|
|
5816
5522
|
function select$h(luvio, params) {
|
|
5817
|
-
return select$
|
|
5523
|
+
return select$E();
|
|
5818
5524
|
}
|
|
5819
5525
|
function keyBuilder$e(luvio, params) {
|
|
5820
|
-
return keyBuilder$
|
|
5526
|
+
return keyBuilder$z(luvio, {
|
|
5821
5527
|
channelId: params.urlParams.channelId
|
|
5822
5528
|
});
|
|
5823
5529
|
}
|
|
5824
5530
|
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
5825
|
-
getTypeCacheKeys$
|
|
5531
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
5826
5532
|
}
|
|
5827
5533
|
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
5828
5534
|
const { body } = response;
|
|
5829
5535
|
const key = keyBuilder$e(luvio, resourceParams);
|
|
5830
|
-
luvio.storeIngest(key, ingest$
|
|
5536
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
5831
5537
|
const snapshot = luvio.storeLookup({
|
|
5832
5538
|
recordId: key,
|
|
5833
5539
|
node: select$h(),
|
|
@@ -5875,14 +5581,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
5875
5581
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5876
5582
|
];
|
|
5877
5583
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackMessage_ConfigPropertyMetadata);
|
|
5878
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
5584
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$m(getSlackMessage_ConfigPropertyMetadata);
|
|
5879
5585
|
function keyBuilder$d(luvio, config) {
|
|
5880
5586
|
const resourceParams = createResourceParams$c(config);
|
|
5881
5587
|
return keyBuilder$e(luvio, resourceParams);
|
|
5882
5588
|
}
|
|
5883
5589
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5884
5590
|
const config = {};
|
|
5885
|
-
typeCheckConfig$
|
|
5591
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
5886
5592
|
return config;
|
|
5887
5593
|
}
|
|
5888
5594
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5931,7 +5637,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
5931
5637
|
});
|
|
5932
5638
|
}
|
|
5933
5639
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
5934
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5640
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
5935
5641
|
}
|
|
5936
5642
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
5937
5643
|
const { luvio, config } = context;
|
|
@@ -5957,7 +5663,7 @@ const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackM
|
|
|
5957
5663
|
};
|
|
5958
5664
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
5959
5665
|
return function getConnectSlackbridgeTeamChannelMessagesByChannelIdAndMessageTsAndTeamIdNotifyChange(configs) {
|
|
5960
|
-
const keys = configs.map(c => keyBuilder$
|
|
5666
|
+
const keys = configs.map(c => keyBuilder$z(luvio, c));
|
|
5961
5667
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5962
5668
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5963
5669
|
const { key, record: val } = entries[i];
|
|
@@ -5966,11 +5672,11 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
5966
5672
|
.then((response) => {
|
|
5967
5673
|
return luvio.handleSuccessResponse(() => {
|
|
5968
5674
|
const { body } = response;
|
|
5969
|
-
luvio.storeIngest(key, ingest$
|
|
5675
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
5970
5676
|
return luvio.storeBroadcast();
|
|
5971
5677
|
}, () => {
|
|
5972
5678
|
const cache = new StoreKeyMap();
|
|
5973
|
-
getTypeCacheKeys$
|
|
5679
|
+
getTypeCacheKeys$g(cache, luvio, response.body);
|
|
5974
5680
|
return cache;
|
|
5975
5681
|
});
|
|
5976
5682
|
}, (error) => {
|
|
@@ -6022,7 +5728,7 @@ function keyBuilderFromType$2(luvio, object) {
|
|
|
6022
5728
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
6023
5729
|
const input_conversationInfo = input.conversationInfo;
|
|
6024
5730
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
6025
|
-
input.conversationInfo = ingest$
|
|
5731
|
+
input.conversationInfo = ingest$e(input_conversationInfo, {
|
|
6026
5732
|
fullPath: input_conversationInfo_id,
|
|
6027
5733
|
propertyName: 'conversationInfo',
|
|
6028
5734
|
parent: {
|
|
@@ -6043,7 +5749,7 @@ const select$g = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
6043
5749
|
{
|
|
6044
5750
|
name: 'conversationInfo',
|
|
6045
5751
|
kind: 'Link',
|
|
6046
|
-
fragment: select$
|
|
5752
|
+
fragment: select$B()
|
|
6047
5753
|
},
|
|
6048
5754
|
{
|
|
6049
5755
|
name: 'relatedRecordId',
|
|
@@ -6094,7 +5800,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6094
5800
|
representationName: RepresentationType$4,
|
|
6095
5801
|
mergeable: false
|
|
6096
5802
|
});
|
|
6097
|
-
getTypeCacheKeys$
|
|
5803
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
6098
5804
|
}
|
|
6099
5805
|
|
|
6100
5806
|
function select$f(luvio, params) {
|
|
@@ -6157,14 +5863,14 @@ const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
|
6157
5863
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6158
5864
|
];
|
|
6159
5865
|
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6160
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
5866
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$m(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6161
5867
|
function keyBuilder$a(luvio, config) {
|
|
6162
5868
|
const resourceParams = createResourceParams$b(config);
|
|
6163
5869
|
return keyBuilder$b(luvio, resourceParams);
|
|
6164
5870
|
}
|
|
6165
5871
|
function typeCheckConfig$b(untrustedConfig) {
|
|
6166
5872
|
const config = {};
|
|
6167
|
-
typeCheckConfig$
|
|
5873
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
6168
5874
|
return config;
|
|
6169
5875
|
}
|
|
6170
5876
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -6213,7 +5919,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
6213
5919
|
});
|
|
6214
5920
|
}
|
|
6215
5921
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6216
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5922
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
6217
5923
|
}
|
|
6218
5924
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6219
5925
|
const { luvio, config } = context;
|
|
@@ -6321,7 +6027,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
6321
6027
|
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6322
6028
|
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6323
6029
|
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6324
|
-
input_conversationInfos[i] = ingest$
|
|
6030
|
+
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
6325
6031
|
fullPath: input_conversationInfos_item_id,
|
|
6326
6032
|
propertyName: i,
|
|
6327
6033
|
parent: {
|
|
@@ -6344,7 +6050,7 @@ const select$e = function SlackBridgeConversationInfosOutputRepresentationSelect
|
|
|
6344
6050
|
name: 'conversationInfos',
|
|
6345
6051
|
kind: 'Link',
|
|
6346
6052
|
plural: true,
|
|
6347
|
-
fragment: select$
|
|
6053
|
+
fragment: select$B()
|
|
6348
6054
|
},
|
|
6349
6055
|
{
|
|
6350
6056
|
name: 'searchString',
|
|
@@ -6393,7 +6099,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6393
6099
|
});
|
|
6394
6100
|
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6395
6101
|
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6396
|
-
getTypeCacheKeys$
|
|
6102
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6397
6103
|
}
|
|
6398
6104
|
}
|
|
6399
6105
|
|
|
@@ -6449,14 +6155,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
6449
6155
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6450
6156
|
];
|
|
6451
6157
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6452
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
6158
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$m(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6453
6159
|
function keyBuilder$8(luvio, config) {
|
|
6454
6160
|
const resourceParams = createResourceParams$a(config);
|
|
6455
6161
|
return keyBuilder$9(luvio, resourceParams);
|
|
6456
6162
|
}
|
|
6457
6163
|
function typeCheckConfig$a(untrustedConfig) {
|
|
6458
6164
|
const config = {};
|
|
6459
|
-
typeCheckConfig$
|
|
6165
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6460
6166
|
return config;
|
|
6461
6167
|
}
|
|
6462
6168
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6505,7 +6211,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6505
6211
|
});
|
|
6506
6212
|
}
|
|
6507
6213
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6508
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6214
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
6509
6215
|
}
|
|
6510
6216
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6511
6217
|
const { luvio, config } = context;
|
|
@@ -6582,14 +6288,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
6582
6288
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6583
6289
|
];
|
|
6584
6290
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6585
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
6291
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$m(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6586
6292
|
function keyBuilder$6(luvio, config) {
|
|
6587
6293
|
const resourceParams = createResourceParams$9(config);
|
|
6588
6294
|
return keyBuilder$7(luvio, resourceParams);
|
|
6589
6295
|
}
|
|
6590
6296
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6591
6297
|
const config = {};
|
|
6592
|
-
typeCheckConfig$
|
|
6298
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6593
6299
|
return config;
|
|
6594
6300
|
}
|
|
6595
6301
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6638,7 +6344,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6638
6344
|
});
|
|
6639
6345
|
}
|
|
6640
6346
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6641
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6347
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6642
6348
|
}
|
|
6643
6349
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6644
6350
|
const { luvio, config } = context;
|
|
@@ -6717,7 +6423,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
6717
6423
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
6718
6424
|
const input_userInfos_item = input_userInfos[i];
|
|
6719
6425
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
6720
|
-
input_userInfos[i] = ingest$
|
|
6426
|
+
input_userInfos[i] = ingest$9(input_userInfos_item, {
|
|
6721
6427
|
fullPath: input_userInfos_item_id,
|
|
6722
6428
|
propertyName: i,
|
|
6723
6429
|
parent: {
|
|
@@ -6744,7 +6450,7 @@ const select$b = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6744
6450
|
name: 'userInfos',
|
|
6745
6451
|
kind: 'Link',
|
|
6746
6452
|
plural: true,
|
|
6747
|
-
fragment: select$
|
|
6453
|
+
fragment: select$r()
|
|
6748
6454
|
}
|
|
6749
6455
|
]
|
|
6750
6456
|
};
|
|
@@ -6789,7 +6495,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6789
6495
|
});
|
|
6790
6496
|
const input_userInfos_length = input.userInfos.length;
|
|
6791
6497
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
6792
|
-
getTypeCacheKeys$
|
|
6498
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.userInfos[i]);
|
|
6793
6499
|
}
|
|
6794
6500
|
}
|
|
6795
6501
|
|
|
@@ -6848,14 +6554,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
6848
6554
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6849
6555
|
];
|
|
6850
6556
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6851
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
6557
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$m(getSlackSearchUser_ConfigPropertyMetadata);
|
|
6852
6558
|
function keyBuilder$4(luvio, config) {
|
|
6853
6559
|
const resourceParams = createResourceParams$8(config);
|
|
6854
6560
|
return keyBuilder$5(luvio, resourceParams);
|
|
6855
6561
|
}
|
|
6856
6562
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6857
6563
|
const config = {};
|
|
6858
|
-
typeCheckConfig$
|
|
6564
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6859
6565
|
return config;
|
|
6860
6566
|
}
|
|
6861
6567
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -6904,7 +6610,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6904
6610
|
});
|
|
6905
6611
|
}
|
|
6906
6612
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6907
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6613
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
6908
6614
|
}
|
|
6909
6615
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6910
6616
|
const { luvio, config } = context;
|
|
@@ -6930,21 +6636,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
6930
6636
|
};
|
|
6931
6637
|
|
|
6932
6638
|
function select$9(luvio, params) {
|
|
6933
|
-
return select$
|
|
6639
|
+
return select$r();
|
|
6934
6640
|
}
|
|
6935
6641
|
function keyBuilder$3(luvio, params) {
|
|
6936
|
-
return keyBuilder$
|
|
6642
|
+
return keyBuilder$q(luvio, {
|
|
6937
6643
|
slackUserId: params.urlParams.slackUserId,
|
|
6938
6644
|
teamId: params.urlParams.teamId
|
|
6939
6645
|
});
|
|
6940
6646
|
}
|
|
6941
6647
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
6942
|
-
getTypeCacheKeys$
|
|
6648
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
6943
6649
|
}
|
|
6944
6650
|
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
6945
6651
|
const { body } = response;
|
|
6946
6652
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
6947
|
-
luvio.storeIngest(key, ingest$
|
|
6653
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
6948
6654
|
const snapshot = luvio.storeLookup({
|
|
6949
6655
|
recordId: key,
|
|
6950
6656
|
node: select$9(),
|
|
@@ -6962,10 +6668,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
6962
6668
|
const key = keyBuilder$3(luvio, params);
|
|
6963
6669
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6964
6670
|
const storeMetadataParams = {
|
|
6965
|
-
ttl: TTL
|
|
6671
|
+
ttl: TTL,
|
|
6966
6672
|
namespace: keyPrefix,
|
|
6967
|
-
version: VERSION$
|
|
6968
|
-
representationName: RepresentationType$
|
|
6673
|
+
version: VERSION$9,
|
|
6674
|
+
representationName: RepresentationType$9
|
|
6969
6675
|
};
|
|
6970
6676
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6971
6677
|
return errorSnapshot;
|
|
@@ -6998,14 +6704,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
6998
6704
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6999
6705
|
];
|
|
7000
6706
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackUser_ConfigPropertyMetadata);
|
|
7001
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
6707
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$m(getSlackUser_ConfigPropertyMetadata);
|
|
7002
6708
|
function keyBuilder$2(luvio, config) {
|
|
7003
6709
|
const resourceParams = createResourceParams$7(config);
|
|
7004
6710
|
return keyBuilder$3(luvio, resourceParams);
|
|
7005
6711
|
}
|
|
7006
6712
|
function typeCheckConfig$7(untrustedConfig) {
|
|
7007
6713
|
const config = {};
|
|
7008
|
-
typeCheckConfig$
|
|
6714
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
7009
6715
|
return config;
|
|
7010
6716
|
}
|
|
7011
6717
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -7054,7 +6760,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
7054
6760
|
});
|
|
7055
6761
|
}
|
|
7056
6762
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7057
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6763
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
7058
6764
|
}
|
|
7059
6765
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7060
6766
|
const { luvio, config } = context;
|
|
@@ -7080,7 +6786,7 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
7080
6786
|
};
|
|
7081
6787
|
const notifyChangeFactory = (luvio, options) => {
|
|
7082
6788
|
return function getConnectSlackbridgeTeamUserBySlackUserIdAndTeamIdNotifyChange(configs) {
|
|
7083
|
-
const keys = configs.map(c => keyBuilder$
|
|
6789
|
+
const keys = configs.map(c => keyBuilder$q(luvio, c));
|
|
7084
6790
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
7085
6791
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
7086
6792
|
const { key, record: val } = entries[i];
|
|
@@ -7089,21 +6795,21 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
7089
6795
|
.then((response) => {
|
|
7090
6796
|
return luvio.handleSuccessResponse(() => {
|
|
7091
6797
|
const { body } = response;
|
|
7092
|
-
luvio.storeIngest(key, ingest$
|
|
6798
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
7093
6799
|
return luvio.storeBroadcast();
|
|
7094
6800
|
}, () => {
|
|
7095
6801
|
const cache = new StoreKeyMap();
|
|
7096
|
-
getTypeCacheKeys$
|
|
6802
|
+
getTypeCacheKeys$9(cache, luvio, response.body);
|
|
7097
6803
|
return cache;
|
|
7098
6804
|
});
|
|
7099
6805
|
}, (error) => {
|
|
7100
6806
|
return luvio.handleErrorResponse(() => {
|
|
7101
6807
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
7102
6808
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
7103
|
-
ttl: TTL
|
|
6809
|
+
ttl: TTL,
|
|
7104
6810
|
namespace: keyPrefix,
|
|
7105
|
-
version: VERSION$
|
|
7106
|
-
representationName: RepresentationType$
|
|
6811
|
+
version: VERSION$9,
|
|
6812
|
+
representationName: RepresentationType$9
|
|
7107
6813
|
});
|
|
7108
6814
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
7109
6815
|
});
|
|
@@ -7114,15 +6820,15 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
7114
6820
|
};
|
|
7115
6821
|
|
|
7116
6822
|
function select$8(luvio, params) {
|
|
7117
|
-
return select$
|
|
6823
|
+
return select$E();
|
|
7118
6824
|
}
|
|
7119
6825
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
7120
|
-
getTypeCacheKeys$
|
|
6826
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
7121
6827
|
}
|
|
7122
6828
|
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
7123
6829
|
const { body } = response;
|
|
7124
6830
|
const key = keyBuilderFromType$9(luvio, body);
|
|
7125
|
-
luvio.storeIngest(key, ingest$
|
|
6831
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
7126
6832
|
const snapshot = luvio.storeLookup({
|
|
7127
6833
|
recordId: key,
|
|
7128
6834
|
node: select$8(),
|
|
@@ -7158,10 +6864,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
7158
6864
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
7159
6865
|
];
|
|
7160
6866
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
|
|
7161
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6867
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$m(patchSlackMessage_ConfigPropertyMetadata);
|
|
7162
6868
|
function typeCheckConfig$6(untrustedConfig) {
|
|
7163
6869
|
const config = {};
|
|
7164
|
-
typeCheckConfig$
|
|
6870
|
+
typeCheckConfig$m(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
7165
6871
|
return config;
|
|
7166
6872
|
}
|
|
7167
6873
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7243,7 +6949,7 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
7243
6949
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
7244
6950
|
const input_postedMessage = input.postedMessage;
|
|
7245
6951
|
const input_postedMessage_id = path.fullPath + '__postedMessage';
|
|
7246
|
-
input.postedMessage = ingest$
|
|
6952
|
+
input.postedMessage = ingest$c(input_postedMessage, {
|
|
7247
6953
|
fullPath: input_postedMessage_id,
|
|
7248
6954
|
propertyName: 'postedMessage',
|
|
7249
6955
|
parent: {
|
|
@@ -7268,7 +6974,7 @@ const select$7 = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
7268
6974
|
{
|
|
7269
6975
|
name: 'postedMessage',
|
|
7270
6976
|
kind: 'Link',
|
|
7271
|
-
fragment: select$
|
|
6977
|
+
fragment: select$w()
|
|
7272
6978
|
},
|
|
7273
6979
|
{
|
|
7274
6980
|
name: 'timestamp',
|
|
@@ -7315,7 +7021,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7315
7021
|
representationName: RepresentationType$1,
|
|
7316
7022
|
mergeable: false
|
|
7317
7023
|
});
|
|
7318
|
-
getTypeCacheKeys$
|
|
7024
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
7319
7025
|
}
|
|
7320
7026
|
|
|
7321
7027
|
function select$6(luvio, params) {
|
|
@@ -7365,10 +7071,10 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
7365
7071
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
7366
7072
|
];
|
|
7367
7073
|
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, postSlackConversation_ConfigPropertyMetadata);
|
|
7368
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7074
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$m(postSlackConversation_ConfigPropertyMetadata);
|
|
7369
7075
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7370
7076
|
const config = {};
|
|
7371
|
-
typeCheckConfig$
|
|
7077
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
7372
7078
|
return config;
|
|
7373
7079
|
}
|
|
7374
7080
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7541,10 +7247,10 @@ const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
|
7541
7247
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
7542
7248
|
];
|
|
7543
7249
|
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7544
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7250
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$m(postSlackConversationMark_ConfigPropertyMetadata);
|
|
7545
7251
|
function typeCheckConfig$4(untrustedConfig) {
|
|
7546
7252
|
const config = {};
|
|
7547
|
-
typeCheckConfig$
|
|
7253
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
7548
7254
|
return config;
|
|
7549
7255
|
}
|
|
7550
7256
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -7590,15 +7296,15 @@ const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
|
7590
7296
|
};
|
|
7591
7297
|
|
|
7592
7298
|
function select$3(luvio, params) {
|
|
7593
|
-
return select$
|
|
7299
|
+
return select$m();
|
|
7594
7300
|
}
|
|
7595
7301
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7596
|
-
getTypeCacheKeys$
|
|
7302
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
7597
7303
|
}
|
|
7598
7304
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
7599
7305
|
const { body } = response;
|
|
7600
7306
|
const key = keyBuilderFromType$3(luvio, body);
|
|
7601
|
-
luvio.storeIngest(key, ingest$
|
|
7307
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
7602
7308
|
const snapshot = luvio.storeLookup({
|
|
7603
7309
|
recordId: key,
|
|
7604
7310
|
node: select$3(),
|
|
@@ -7633,10 +7339,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
7633
7339
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
7634
7340
|
];
|
|
7635
7341
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7636
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7342
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$m(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7637
7343
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7638
7344
|
const config = {};
|
|
7639
|
-
typeCheckConfig$
|
|
7345
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
7640
7346
|
return config;
|
|
7641
7347
|
}
|
|
7642
7348
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7682,15 +7388,15 @@ const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
|
7682
7388
|
};
|
|
7683
7389
|
|
|
7684
7390
|
function select$2(luvio, params) {
|
|
7685
|
-
return select$
|
|
7391
|
+
return select$x();
|
|
7686
7392
|
}
|
|
7687
7393
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
7688
|
-
getTypeCacheKeys$
|
|
7394
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
7689
7395
|
}
|
|
7690
7396
|
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
7691
7397
|
const { body } = response;
|
|
7692
7398
|
const key = keyBuilderFromType$6(luvio, body);
|
|
7693
|
-
luvio.storeIngest(key, ingest$
|
|
7399
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
7694
7400
|
const snapshot = luvio.storeLookup({
|
|
7695
7401
|
recordId: key,
|
|
7696
7402
|
node: select$2(),
|
|
@@ -7730,10 +7436,10 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
7730
7436
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
7731
7437
|
];
|
|
7732
7438
|
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postSlackFile_ConfigPropertyMetadata);
|
|
7733
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7439
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$m(postSlackFile_ConfigPropertyMetadata);
|
|
7734
7440
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7735
7441
|
const config = {};
|
|
7736
|
-
typeCheckConfig$
|
|
7442
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
7737
7443
|
return config;
|
|
7738
7444
|
}
|
|
7739
7445
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7779,15 +7485,15 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
7779
7485
|
};
|
|
7780
7486
|
|
|
7781
7487
|
function select$1(luvio, params) {
|
|
7782
|
-
return select$
|
|
7488
|
+
return select$C();
|
|
7783
7489
|
}
|
|
7784
7490
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7785
|
-
getTypeCacheKeys$
|
|
7491
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
7786
7492
|
}
|
|
7787
7493
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
7788
7494
|
const { body } = response;
|
|
7789
7495
|
const key = keyBuilderFromType$8(luvio, body);
|
|
7790
|
-
luvio.storeIngest(key, ingest$
|
|
7496
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
7791
7497
|
const snapshot = luvio.storeLookup({
|
|
7792
7498
|
recordId: key,
|
|
7793
7499
|
node: select$1(),
|
|
@@ -7823,10 +7529,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
7823
7529
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7824
7530
|
];
|
|
7825
7531
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7826
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7532
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$m(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7827
7533
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7828
7534
|
const config = {};
|
|
7829
|
-
typeCheckConfig$
|
|
7535
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
7830
7536
|
return config;
|
|
7831
7537
|
}
|
|
7832
7538
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7914,10 +7620,10 @@ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
|
7914
7620
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
7915
7621
|
];
|
|
7916
7622
|
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7917
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7623
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$m(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7918
7624
|
function typeCheckConfig(untrustedConfig) {
|
|
7919
7625
|
const config = {};
|
|
7920
|
-
typeCheckConfig$
|
|
7626
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
7921
7627
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
7922
7628
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
7923
7629
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -7982,7 +7688,6 @@ let getSlackConversationMember;
|
|
|
7982
7688
|
let getSlackConversationMemberNotifyChange;
|
|
7983
7689
|
let getSlackConversationMembers;
|
|
7984
7690
|
let getSlackConversationMembersNotifyChange;
|
|
7985
|
-
let getSlackDisplayLogin;
|
|
7986
7691
|
let getSlackEmoji;
|
|
7987
7692
|
let getSlackEmojiNotifyChange;
|
|
7988
7693
|
let getSlackEmojis;
|
|
@@ -8007,7 +7712,6 @@ let getRelatedThreads_imperative;
|
|
|
8007
7712
|
let getSlackConversation_imperative;
|
|
8008
7713
|
let getSlackConversationMember_imperative;
|
|
8009
7714
|
let getSlackConversationMembers_imperative;
|
|
8010
|
-
let getSlackDisplayLogin_imperative;
|
|
8011
7715
|
let getSlackEmoji_imperative;
|
|
8012
7716
|
let getSlackEmojis_imperative;
|
|
8013
7717
|
let getSlackMessage_imperative;
|
|
@@ -8026,11 +7730,6 @@ const getSlackConversationMembersMetadata = {
|
|
|
8026
7730
|
apiFamily: 'SlackBridge',
|
|
8027
7731
|
name: 'getSlackConversationMembers',
|
|
8028
7732
|
};
|
|
8029
|
-
const getSlackDisplayLoginMetadata = {
|
|
8030
|
-
apiFamily: 'SlackBridge',
|
|
8031
|
-
name: 'getSlackDisplayLogin',
|
|
8032
|
-
ttl: 500,
|
|
8033
|
-
};
|
|
8034
7733
|
const getSlackEmojiMetadata = { apiFamily: 'SlackBridge', name: 'getSlackEmoji', ttl: 2592000000 };
|
|
8035
7734
|
const getSlackEmojisMetadata = { apiFamily: 'SlackBridge', name: 'getSlackEmojis' };
|
|
8036
7735
|
const getSlackMessageMetadata = { apiFamily: 'SlackBridge', name: 'getSlackMessage' };
|
|
@@ -8052,7 +7751,6 @@ function bindExportsTo(luvio) {
|
|
|
8052
7751
|
const getSlackConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversation', getSlackConversationAdapterFactory), getSlackConversationMetadata);
|
|
8053
7752
|
const getSlackConversationMember_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMember', getSlackConversationMemberAdapterFactory), getSlackConversationMemberMetadata);
|
|
8054
7753
|
const getSlackConversationMembers_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackConversationMembers', getSlackConversationMembersAdapterFactory), getSlackConversationMembersMetadata);
|
|
8055
|
-
const getSlackDisplayLogin_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackDisplayLogin', getSlackDisplayLoginAdapterFactory), getSlackDisplayLoginMetadata);
|
|
8056
7754
|
const getSlackEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackEmoji', getSlackEmojiAdapterFactory), getSlackEmojiMetadata);
|
|
8057
7755
|
const getSlackEmojis_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackEmojis', getSlackEmojisAdapterFactory), getSlackEmojisMetadata);
|
|
8058
7756
|
const getSlackMessage_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackMessage', getSlackMessageAdapterFactory), getSlackMessageMetadata);
|
|
@@ -8066,16 +7764,15 @@ function bindExportsTo(luvio) {
|
|
|
8066
7764
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
8067
7765
|
}
|
|
8068
7766
|
return {
|
|
8069
|
-
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$
|
|
8070
|
-
deleteSlackMessage: createLDSAdapter(luvio, adapterName$
|
|
8071
|
-
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$
|
|
7767
|
+
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$l, deleteSlackConversationMemberAdapterFactory),
|
|
7768
|
+
deleteSlackMessage: createLDSAdapter(luvio, adapterName$k, deleteSlackMessageAdapterFactory),
|
|
7769
|
+
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$j, deleteSlackMessageReactionsAdapterFactory),
|
|
8072
7770
|
getRelatedThreads: createWireAdapterConstructor(luvio, getRelatedThreads_ldsAdapter, getRelatedThreadsMetadata),
|
|
8073
7771
|
getSlackConversation: createWireAdapterConstructor(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8074
7772
|
getSlackConversationMember: createWireAdapterConstructor(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
8075
7773
|
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$5),
|
|
8076
7774
|
getSlackConversationMembers: createWireAdapterConstructor(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
8077
7775
|
getSlackConversationMembersNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMembersNotifyChange', notifyChangeFactory$4),
|
|
8078
|
-
getSlackDisplayLogin: createWireAdapterConstructor(luvio, getSlackDisplayLogin_ldsAdapter, getSlackDisplayLoginMetadata),
|
|
8079
7776
|
getSlackEmoji: createWireAdapterConstructor(luvio, getSlackEmoji_ldsAdapter, getSlackEmojiMetadata),
|
|
8080
7777
|
getSlackEmojiNotifyChange: createLDSAdapter(luvio, 'getSlackEmojiNotifyChange', notifyChangeFactory$3),
|
|
8081
7778
|
getSlackEmojis: createWireAdapterConstructor(luvio, getSlackEmojis_ldsAdapter, getSlackEmojisMetadata),
|
|
@@ -8100,7 +7797,6 @@ function bindExportsTo(luvio) {
|
|
|
8100
7797
|
getSlackConversation_imperative: createImperativeAdapter(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
8101
7798
|
getSlackConversationMember_imperative: createImperativeAdapter(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
8102
7799
|
getSlackConversationMembers_imperative: createImperativeAdapter(luvio, getSlackConversationMembers_ldsAdapter, getSlackConversationMembersMetadata),
|
|
8103
|
-
getSlackDisplayLogin_imperative: createImperativeAdapter(luvio, getSlackDisplayLogin_ldsAdapter, getSlackDisplayLoginMetadata),
|
|
8104
7800
|
getSlackEmoji_imperative: createImperativeAdapter(luvio, getSlackEmoji_ldsAdapter, getSlackEmojiMetadata),
|
|
8105
7801
|
getSlackEmojis_imperative: createImperativeAdapter(luvio, getSlackEmojis_ldsAdapter, getSlackEmojisMetadata),
|
|
8106
7802
|
getSlackMessage_imperative: createImperativeAdapter(luvio, getSlackMessage_ldsAdapter, getSlackMessageMetadata),
|
|
@@ -8123,7 +7819,6 @@ withDefaultLuvio((luvio) => {
|
|
|
8123
7819
|
getSlackConversationMemberNotifyChange,
|
|
8124
7820
|
getSlackConversationMembers,
|
|
8125
7821
|
getSlackConversationMembersNotifyChange,
|
|
8126
|
-
getSlackDisplayLogin,
|
|
8127
7822
|
getSlackEmoji,
|
|
8128
7823
|
getSlackEmojiNotifyChange,
|
|
8129
7824
|
getSlackEmojis,
|
|
@@ -8147,7 +7842,6 @@ withDefaultLuvio((luvio) => {
|
|
|
8147
7842
|
getSlackConversation_imperative,
|
|
8148
7843
|
getSlackConversationMember_imperative,
|
|
8149
7844
|
getSlackConversationMembers_imperative,
|
|
8150
|
-
getSlackDisplayLogin_imperative,
|
|
8151
7845
|
getSlackEmoji_imperative,
|
|
8152
7846
|
getSlackEmojis_imperative,
|
|
8153
7847
|
getSlackMessage_imperative,
|
|
@@ -8159,5 +7853,5 @@ withDefaultLuvio((luvio) => {
|
|
|
8159
7853
|
} = bindExportsTo(luvio));
|
|
8160
7854
|
});
|
|
8161
7855
|
|
|
8162
|
-
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative,
|
|
8163
|
-
// version: 1.
|
|
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.355.0-df8576becd
|