@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev6 → 1.332.0-dev8
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 +1862 -909
- package/dist/es/es2018/types/src/generated/adapters/getSlackSearchConversation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackSearchUser.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamSearchConversationsByTeamId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamSearchUsersByTeamId.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeContentVersionOutputRepresentation.d.ts +6 -5
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +19 -19
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfosOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojiOutputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojisOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeFileOutputRepresentation.d.ts +14 -14
- package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/SlackBridgeReactionOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +15 -9
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +1778 -814
- package/src/raml/api.raml +71 -30
- package/src/raml/luvio.raml +4 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, StoreKeyMap, deepFreeze, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, StoreKeyMap, deepFreeze, createResourceParams as createResourceParams$j, typeCheckConfig as typeCheckConfig$j, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$a } 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$k = "5ea9ee9da9dcb5309c4f35bb4bf5def2";
|
|
126
|
+
function validate$k(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$j(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$f = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
145
|
+
function keyBuilder$v(luvio, config) {
|
|
146
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.channelId;
|
|
147
147
|
}
|
|
148
148
|
function keyBuilderFromType$8(luvio, object) {
|
|
149
149
|
const keyParams = {
|
|
150
150
|
channelId: object.channelId
|
|
151
151
|
};
|
|
152
|
-
return keyBuilder$
|
|
152
|
+
return keyBuilder$v(luvio, keyParams);
|
|
153
153
|
}
|
|
154
|
-
function normalize$
|
|
154
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
155
155
|
return input;
|
|
156
156
|
}
|
|
157
|
-
const select$
|
|
157
|
+
const select$A = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
158
158
|
return {
|
|
159
159
|
kind: 'Fragment',
|
|
160
|
-
version: VERSION$
|
|
160
|
+
version: VERSION$k,
|
|
161
161
|
private: [],
|
|
162
162
|
selections: [
|
|
163
163
|
{
|
|
@@ -171,7 +171,7 @@ const select$y = function SlackBridgeConversationMemberOutputRepresentationSelec
|
|
|
171
171
|
]
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
function equals$
|
|
174
|
+
function equals$k(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$j(existing, incoming) {
|
|
|
184
184
|
}
|
|
185
185
|
return true;
|
|
186
186
|
}
|
|
187
|
-
const ingest$
|
|
187
|
+
const ingest$f = function SlackBridgeConversationMemberOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
188
188
|
if (process.env.NODE_ENV !== 'production') {
|
|
189
|
-
const validateError = validate$
|
|
189
|
+
const validateError = validate$k(input);
|
|
190
190
|
if (validateError !== null) {
|
|
191
191
|
throw validateError;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
const key = keyBuilderFromType$8(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$f, "SlackBridge", VERSION$k, RepresentationType$f, equals$k);
|
|
197
197
|
return createLink(key);
|
|
198
198
|
};
|
|
199
|
-
function getTypeCacheKeys$
|
|
199
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
200
200
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
201
201
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
202
202
|
rootKeySet.set(rootKey, {
|
|
203
203
|
namespace: keyPrefix,
|
|
204
|
-
representationName: RepresentationType$
|
|
204
|
+
representationName: RepresentationType$f,
|
|
205
205
|
mergeable: false
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
function keyBuilder$
|
|
210
|
-
return keyBuilder$
|
|
209
|
+
function keyBuilder$u(luvio, params) {
|
|
210
|
+
return keyBuilder$v(luvio, {
|
|
211
211
|
channelId: params.urlParams.channelId
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function getResponseCacheKeys$
|
|
215
|
-
const key = keyBuilder$
|
|
214
|
+
function getResponseCacheKeys$i(cacheKeyMap, luvio, resourceParams) {
|
|
215
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
216
216
|
cacheKeyMap.set(key, {
|
|
217
217
|
namespace: keyPrefix,
|
|
218
|
-
representationName: RepresentationType$
|
|
218
|
+
representationName: RepresentationType$f,
|
|
219
219
|
mergeable: false
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
function evictSuccess$2(luvio, resourceParams) {
|
|
223
|
-
const key = keyBuilder$
|
|
223
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
224
224
|
luvio.storeEvict(key);
|
|
225
225
|
}
|
|
226
|
-
function createResourceRequest$
|
|
226
|
+
function createResourceRequest$i(config) {
|
|
227
227
|
const headers = {};
|
|
228
228
|
return {
|
|
229
229
|
baseUri: '/services/data/v63.0',
|
|
@@ -237,35 +237,35 @@ function createResourceRequest$h(config) {
|
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
const adapterName$
|
|
240
|
+
const adapterName$i = '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$i, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
247
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
248
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
249
249
|
const config = {};
|
|
250
|
-
typeCheckConfig$
|
|
250
|
+
typeCheckConfig$j(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
251
251
|
return config;
|
|
252
252
|
}
|
|
253
|
-
function validateAdapterConfig$
|
|
253
|
+
function validateAdapterConfig$i(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$i(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$i(luvio, config, options) {
|
|
267
|
+
const resourceParams = createResourceParams$i(config);
|
|
268
|
+
const request = createResourceRequest$i(resourceParams);
|
|
269
269
|
return luvio.dispatchResourceRequest(request, options)
|
|
270
270
|
.then(() => {
|
|
271
271
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -273,7 +273,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
273
273
|
return luvio.storeBroadcast();
|
|
274
274
|
}, () => {
|
|
275
275
|
const cache = new StoreKeyMap();
|
|
276
|
-
getResponseCacheKeys$
|
|
276
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams);
|
|
277
277
|
return cache;
|
|
278
278
|
});
|
|
279
279
|
}, (response) => {
|
|
@@ -283,17 +283,17 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
283
283
|
}
|
|
284
284
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
285
285
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
286
|
-
const config = validateAdapterConfig$
|
|
286
|
+
const config = validateAdapterConfig$i(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$i}"`);
|
|
290
290
|
}
|
|
291
|
-
return buildNetworkSnapshot$
|
|
291
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
-
const VERSION$
|
|
296
|
-
function validate$
|
|
295
|
+
const VERSION$j = "605674abcbc0dad7e2707e4e00e8d4cd";
|
|
296
|
+
function validate$j(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$i(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$e = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
320
|
+
function keyBuilder$t(luvio, config) {
|
|
321
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.channelId;
|
|
322
322
|
}
|
|
323
323
|
function keyBuilderFromType$7(luvio, object) {
|
|
324
324
|
const keyParams = {
|
|
325
325
|
channelId: object.channelId
|
|
326
326
|
};
|
|
327
|
-
return keyBuilder$
|
|
327
|
+
return keyBuilder$t(luvio, keyParams);
|
|
328
328
|
}
|
|
329
|
-
function normalize$
|
|
329
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
330
330
|
return input;
|
|
331
331
|
}
|
|
332
|
-
const select$
|
|
332
|
+
const select$z = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
333
333
|
return {
|
|
334
334
|
kind: 'Fragment',
|
|
335
|
-
version: VERSION$
|
|
335
|
+
version: VERSION$j,
|
|
336
336
|
private: [],
|
|
337
337
|
selections: [
|
|
338
338
|
{
|
|
@@ -350,7 +350,7 @@ const select$x = function SlackBridgeMessageFragmentOutputRepresentationSelect()
|
|
|
350
350
|
]
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
|
-
function equals$
|
|
353
|
+
function equals$j(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$i(existing, incoming) {
|
|
|
368
368
|
}
|
|
369
369
|
return true;
|
|
370
370
|
}
|
|
371
|
-
const ingest$
|
|
371
|
+
const ingest$e = function SlackBridgeMessageFragmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
372
372
|
if (process.env.NODE_ENV !== 'production') {
|
|
373
|
-
const validateError = validate$
|
|
373
|
+
const validateError = validate$j(input);
|
|
374
374
|
if (validateError !== null) {
|
|
375
375
|
throw validateError;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
const key = keyBuilderFromType$7(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$e, "SlackBridge", VERSION$j, RepresentationType$e, equals$j);
|
|
381
381
|
return createLink(key);
|
|
382
382
|
};
|
|
383
|
-
function getTypeCacheKeys$
|
|
383
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
384
384
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
385
385
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
386
386
|
rootKeySet.set(rootKey, {
|
|
387
387
|
namespace: keyPrefix,
|
|
388
|
-
representationName: RepresentationType$
|
|
388
|
+
representationName: RepresentationType$e,
|
|
389
389
|
mergeable: false
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
function keyBuilder$
|
|
394
|
-
return keyBuilder$
|
|
393
|
+
function keyBuilder$s(luvio, params) {
|
|
394
|
+
return keyBuilder$t(luvio, {
|
|
395
395
|
channelId: params.urlParams.channelId
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
function getResponseCacheKeys$
|
|
399
|
-
const key = keyBuilder$
|
|
398
|
+
function getResponseCacheKeys$h(cacheKeyMap, luvio, resourceParams) {
|
|
399
|
+
const key = keyBuilder$s(luvio, resourceParams);
|
|
400
400
|
cacheKeyMap.set(key, {
|
|
401
401
|
namespace: keyPrefix,
|
|
402
|
-
representationName: RepresentationType$
|
|
402
|
+
representationName: RepresentationType$e,
|
|
403
403
|
mergeable: false
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
function evictSuccess$1(luvio, resourceParams) {
|
|
407
|
-
const key = keyBuilder$
|
|
407
|
+
const key = keyBuilder$s(luvio, resourceParams);
|
|
408
408
|
luvio.storeEvict(key);
|
|
409
409
|
}
|
|
410
|
-
function createResourceRequest$
|
|
410
|
+
function createResourceRequest$h(config) {
|
|
411
411
|
const headers = {};
|
|
412
412
|
return {
|
|
413
413
|
baseUri: '/services/data/v63.0',
|
|
@@ -421,35 +421,35 @@ function createResourceRequest$g(config) {
|
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
const adapterName$
|
|
424
|
+
const adapterName$h = '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$h, deleteSlackMessage_ConfigPropertyMetadata);
|
|
431
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(deleteSlackMessage_ConfigPropertyMetadata);
|
|
432
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
433
433
|
const config = {};
|
|
434
|
-
typeCheckConfig$
|
|
434
|
+
typeCheckConfig$j(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
435
435
|
return config;
|
|
436
436
|
}
|
|
437
|
-
function validateAdapterConfig$
|
|
437
|
+
function validateAdapterConfig$h(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$h(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$h(luvio, config, options) {
|
|
451
|
+
const resourceParams = createResourceParams$h(config);
|
|
452
|
+
const request = createResourceRequest$h(resourceParams);
|
|
453
453
|
return luvio.dispatchResourceRequest(request, options)
|
|
454
454
|
.then(() => {
|
|
455
455
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -457,7 +457,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
457
457
|
return luvio.storeBroadcast();
|
|
458
458
|
}, () => {
|
|
459
459
|
const cache = new StoreKeyMap();
|
|
460
|
-
getResponseCacheKeys$
|
|
460
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams);
|
|
461
461
|
return cache;
|
|
462
462
|
});
|
|
463
463
|
}, (response) => {
|
|
@@ -467,25 +467,46 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
467
467
|
}
|
|
468
468
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
469
469
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
470
|
-
const config = validateAdapterConfig$
|
|
470
|
+
const config = validateAdapterConfig$h(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$h}"`);
|
|
474
474
|
}
|
|
475
|
-
return buildNetworkSnapshot$
|
|
475
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
476
476
|
};
|
|
477
477
|
};
|
|
478
478
|
|
|
479
|
-
const VERSION$
|
|
480
|
-
function validate$
|
|
479
|
+
const VERSION$i = "7820a930852347bb0506c08d8b528281";
|
|
480
|
+
function validate$i(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 + '")');
|
|
484
484
|
}
|
|
485
485
|
const obj_count = obj.count;
|
|
486
486
|
const path_count = path + '.count';
|
|
487
|
-
|
|
488
|
-
|
|
487
|
+
let obj_count_union0 = null;
|
|
488
|
+
const obj_count_union0_error = (() => {
|
|
489
|
+
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
490
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
491
|
+
}
|
|
492
|
+
})();
|
|
493
|
+
if (obj_count_union0_error != null) {
|
|
494
|
+
obj_count_union0 = obj_count_union0_error.message;
|
|
495
|
+
}
|
|
496
|
+
let obj_count_union1 = null;
|
|
497
|
+
const obj_count_union1_error = (() => {
|
|
498
|
+
if (obj_count !== null) {
|
|
499
|
+
return new TypeError('Expected "null" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
500
|
+
}
|
|
501
|
+
})();
|
|
502
|
+
if (obj_count_union1_error != null) {
|
|
503
|
+
obj_count_union1 = obj_count_union1_error.message;
|
|
504
|
+
}
|
|
505
|
+
if (obj_count_union0 && obj_count_union1) {
|
|
506
|
+
let message = 'Object doesn\'t match union (at "' + path_count + '")';
|
|
507
|
+
message += '\n' + obj_count_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
508
|
+
message += '\n' + obj_count_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
509
|
+
return new TypeError(message);
|
|
489
510
|
}
|
|
490
511
|
const obj_name = obj.name;
|
|
491
512
|
const path_name = path + '.name';
|
|
@@ -533,10 +554,10 @@ function validate$h(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
533
554
|
})();
|
|
534
555
|
return v_error === undefined ? null : v_error;
|
|
535
556
|
}
|
|
536
|
-
const select$
|
|
557
|
+
const select$y = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
537
558
|
return {
|
|
538
559
|
kind: 'Fragment',
|
|
539
|
-
version: VERSION$
|
|
560
|
+
version: VERSION$i,
|
|
540
561
|
private: [],
|
|
541
562
|
selections: [
|
|
542
563
|
{
|
|
@@ -559,17 +580,17 @@ const select$w = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
559
580
|
]
|
|
560
581
|
};
|
|
561
582
|
};
|
|
562
|
-
function equals$
|
|
563
|
-
const existing_count = existing.count;
|
|
564
|
-
const incoming_count = incoming.count;
|
|
565
|
-
if (!(existing_count === incoming_count)) {
|
|
566
|
-
return false;
|
|
567
|
-
}
|
|
583
|
+
function equals$i(existing, incoming) {
|
|
568
584
|
const existing_name = existing.name;
|
|
569
585
|
const incoming_name = incoming.name;
|
|
570
586
|
if (!(existing_name === incoming_name)) {
|
|
571
587
|
return false;
|
|
572
588
|
}
|
|
589
|
+
const existing_count = existing.count;
|
|
590
|
+
const incoming_count = incoming.count;
|
|
591
|
+
if (!(existing_count === incoming_count)) {
|
|
592
|
+
return false;
|
|
593
|
+
}
|
|
573
594
|
const existing_reactedUsers = existing.reactedUsers;
|
|
574
595
|
const incoming_reactedUsers = incoming.reactedUsers;
|
|
575
596
|
const equals_reactedUsers_items = equalsArray(existing_reactedUsers, incoming_reactedUsers, (existing_reactedUsers_item, incoming_reactedUsers_item) => {
|
|
@@ -588,8 +609,8 @@ function equals$h(existing, incoming) {
|
|
|
588
609
|
return true;
|
|
589
610
|
}
|
|
590
611
|
|
|
591
|
-
const VERSION$
|
|
592
|
-
function validate$
|
|
612
|
+
const VERSION$h = "804aa6216a7579adeeae856f76b688db";
|
|
613
|
+
function validate$h(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
593
614
|
const v_error = (() => {
|
|
594
615
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
595
616
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -612,7 +633,7 @@ function validate$g(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
612
633
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
613
634
|
const obj_reactions_item = obj_reactions[i];
|
|
614
635
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
615
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
636
|
+
const referencepath_reactions_itemValidationError = validate$i(obj_reactions_item, path_reactions_item);
|
|
616
637
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
617
638
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
618
639
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -627,24 +648,24 @@ function validate$g(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
627
648
|
})();
|
|
628
649
|
return v_error === undefined ? null : v_error;
|
|
629
650
|
}
|
|
630
|
-
const RepresentationType$
|
|
631
|
-
function keyBuilder$
|
|
632
|
-
return keyPrefix + '::' + RepresentationType$
|
|
651
|
+
const RepresentationType$d = 'SlackBridgeReactionsOutputRepresentation';
|
|
652
|
+
function keyBuilder$r(luvio, config) {
|
|
653
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.channelId;
|
|
633
654
|
}
|
|
634
655
|
function keyBuilderFromType$6(luvio, object) {
|
|
635
656
|
const keyParams = {
|
|
636
657
|
channelId: object.channelId
|
|
637
658
|
};
|
|
638
|
-
return keyBuilder$
|
|
659
|
+
return keyBuilder$r(luvio, keyParams);
|
|
639
660
|
}
|
|
640
|
-
function normalize$
|
|
661
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
641
662
|
return input;
|
|
642
663
|
}
|
|
643
|
-
const select$
|
|
644
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
664
|
+
const select$x = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
665
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$y();
|
|
645
666
|
return {
|
|
646
667
|
kind: 'Fragment',
|
|
647
|
-
version: VERSION$
|
|
668
|
+
version: VERSION$h,
|
|
648
669
|
private: [],
|
|
649
670
|
selections: [
|
|
650
671
|
{
|
|
@@ -668,7 +689,7 @@ const select$v = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
|
668
689
|
]
|
|
669
690
|
};
|
|
670
691
|
};
|
|
671
|
-
function equals$
|
|
692
|
+
function equals$h(existing, incoming) {
|
|
672
693
|
const existing_channelId = existing.channelId;
|
|
673
694
|
const incoming_channelId = incoming.channelId;
|
|
674
695
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -687,7 +708,7 @@ function equals$g(existing, incoming) {
|
|
|
687
708
|
const existing_reactions = existing.reactions;
|
|
688
709
|
const incoming_reactions = incoming.reactions;
|
|
689
710
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
690
|
-
if (!(equals$
|
|
711
|
+
if (!(equals$i(existing_reactions_item, incoming_reactions_item))) {
|
|
691
712
|
return false;
|
|
692
713
|
}
|
|
693
714
|
});
|
|
@@ -696,46 +717,46 @@ function equals$g(existing, incoming) {
|
|
|
696
717
|
}
|
|
697
718
|
return true;
|
|
698
719
|
}
|
|
699
|
-
const ingest$
|
|
720
|
+
const ingest$d = function SlackBridgeReactionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
700
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
701
|
-
const validateError = validate$
|
|
722
|
+
const validateError = validate$h(input);
|
|
702
723
|
if (validateError !== null) {
|
|
703
724
|
throw validateError;
|
|
704
725
|
}
|
|
705
726
|
}
|
|
706
727
|
const key = keyBuilderFromType$6(luvio, input);
|
|
707
728
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
708
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
729
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SlackBridge", VERSION$h, RepresentationType$d, equals$h);
|
|
709
730
|
return createLink(key);
|
|
710
731
|
};
|
|
711
|
-
function getTypeCacheKeys$
|
|
732
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
712
733
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
713
734
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
714
735
|
rootKeySet.set(rootKey, {
|
|
715
736
|
namespace: keyPrefix,
|
|
716
|
-
representationName: RepresentationType$
|
|
737
|
+
representationName: RepresentationType$d,
|
|
717
738
|
mergeable: false
|
|
718
739
|
});
|
|
719
740
|
}
|
|
720
741
|
|
|
721
|
-
function keyBuilder$
|
|
722
|
-
return keyBuilder$
|
|
742
|
+
function keyBuilder$q(luvio, params) {
|
|
743
|
+
return keyBuilder$r(luvio, {
|
|
723
744
|
channelId: params.urlParams.channelId
|
|
724
745
|
});
|
|
725
746
|
}
|
|
726
|
-
function getResponseCacheKeys$
|
|
727
|
-
const key = keyBuilder$
|
|
747
|
+
function getResponseCacheKeys$g(cacheKeyMap, luvio, resourceParams) {
|
|
748
|
+
const key = keyBuilder$q(luvio, resourceParams);
|
|
728
749
|
cacheKeyMap.set(key, {
|
|
729
750
|
namespace: keyPrefix,
|
|
730
|
-
representationName: RepresentationType$
|
|
751
|
+
representationName: RepresentationType$d,
|
|
731
752
|
mergeable: false
|
|
732
753
|
});
|
|
733
754
|
}
|
|
734
755
|
function evictSuccess(luvio, resourceParams) {
|
|
735
|
-
const key = keyBuilder$
|
|
756
|
+
const key = keyBuilder$q(luvio, resourceParams);
|
|
736
757
|
luvio.storeEvict(key);
|
|
737
758
|
}
|
|
738
|
-
function createResourceRequest$
|
|
759
|
+
function createResourceRequest$g(config) {
|
|
739
760
|
const headers = {};
|
|
740
761
|
return {
|
|
741
762
|
baseUri: '/services/data/v63.0',
|
|
@@ -749,36 +770,36 @@ function createResourceRequest$f(config) {
|
|
|
749
770
|
};
|
|
750
771
|
}
|
|
751
772
|
|
|
752
|
-
const adapterName$
|
|
773
|
+
const adapterName$g = 'deleteSlackMessageReactions';
|
|
753
774
|
const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
754
775
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
755
776
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
756
777
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
757
778
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
758
779
|
];
|
|
759
|
-
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
760
|
-
const createResourceParams$
|
|
761
|
-
function typeCheckConfig$
|
|
780
|
+
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
781
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
782
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
762
783
|
const config = {};
|
|
763
|
-
typeCheckConfig$
|
|
784
|
+
typeCheckConfig$j(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
764
785
|
return config;
|
|
765
786
|
}
|
|
766
|
-
function validateAdapterConfig$
|
|
787
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
767
788
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
768
789
|
return null;
|
|
769
790
|
}
|
|
770
791
|
if (process.env.NODE_ENV !== 'production') {
|
|
771
792
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
772
793
|
}
|
|
773
|
-
const config = typeCheckConfig$
|
|
794
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
774
795
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
775
796
|
return null;
|
|
776
797
|
}
|
|
777
798
|
return config;
|
|
778
799
|
}
|
|
779
|
-
function buildNetworkSnapshot$
|
|
780
|
-
const resourceParams = createResourceParams$
|
|
781
|
-
const request = createResourceRequest$
|
|
800
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
801
|
+
const resourceParams = createResourceParams$g(config);
|
|
802
|
+
const request = createResourceRequest$g(resourceParams);
|
|
782
803
|
return luvio.dispatchResourceRequest(request, options)
|
|
783
804
|
.then(() => {
|
|
784
805
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -786,7 +807,7 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
786
807
|
return luvio.storeBroadcast();
|
|
787
808
|
}, () => {
|
|
788
809
|
const cache = new StoreKeyMap();
|
|
789
|
-
getResponseCacheKeys$
|
|
810
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams);
|
|
790
811
|
return cache;
|
|
791
812
|
});
|
|
792
813
|
}, (response) => {
|
|
@@ -796,25 +817,46 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
796
817
|
}
|
|
797
818
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
798
819
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
799
|
-
const config = validateAdapterConfig$
|
|
820
|
+
const config = validateAdapterConfig$g(untrustedConfig, deleteSlackMessageReactions_ConfigPropertyNames);
|
|
800
821
|
// Invalid or incomplete config
|
|
801
822
|
if (config === null) {
|
|
802
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
823
|
+
throw new Error(`Invalid config for "${adapterName$g}"`);
|
|
803
824
|
}
|
|
804
|
-
return buildNetworkSnapshot$
|
|
825
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
805
826
|
};
|
|
806
827
|
};
|
|
807
828
|
|
|
808
|
-
const VERSION$
|
|
809
|
-
function validate$
|
|
829
|
+
const VERSION$g = "20bf7311db81b4fc5559874e8f8c7502";
|
|
830
|
+
function validate$g(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
810
831
|
const v_error = (() => {
|
|
811
832
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
812
833
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
813
834
|
}
|
|
814
835
|
const obj_altText = obj.altText;
|
|
815
836
|
const path_altText = path + '.altText';
|
|
816
|
-
|
|
817
|
-
|
|
837
|
+
let obj_altText_union0 = null;
|
|
838
|
+
const obj_altText_union0_error = (() => {
|
|
839
|
+
if (typeof obj_altText !== 'string') {
|
|
840
|
+
return new TypeError('Expected "string" but received "' + typeof obj_altText + '" (at "' + path_altText + '")');
|
|
841
|
+
}
|
|
842
|
+
})();
|
|
843
|
+
if (obj_altText_union0_error != null) {
|
|
844
|
+
obj_altText_union0 = obj_altText_union0_error.message;
|
|
845
|
+
}
|
|
846
|
+
let obj_altText_union1 = null;
|
|
847
|
+
const obj_altText_union1_error = (() => {
|
|
848
|
+
if (obj_altText !== null) {
|
|
849
|
+
return new TypeError('Expected "null" but received "' + typeof obj_altText + '" (at "' + path_altText + '")');
|
|
850
|
+
}
|
|
851
|
+
})();
|
|
852
|
+
if (obj_altText_union1_error != null) {
|
|
853
|
+
obj_altText_union1 = obj_altText_union1_error.message;
|
|
854
|
+
}
|
|
855
|
+
if (obj_altText_union0 && obj_altText_union1) {
|
|
856
|
+
let message = 'Object doesn\'t match union (at "' + path_altText + '")';
|
|
857
|
+
message += '\n' + obj_altText_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
858
|
+
message += '\n' + obj_altText_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
859
|
+
return new TypeError(message);
|
|
818
860
|
}
|
|
819
861
|
const obj_isCustom = obj.isCustom;
|
|
820
862
|
const path_isCustom = path + '.isCustom';
|
|
@@ -849,21 +891,63 @@ function validate$f(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
849
891
|
}
|
|
850
892
|
const obj_unicode = obj.unicode;
|
|
851
893
|
const path_unicode = path + '.unicode';
|
|
852
|
-
|
|
853
|
-
|
|
894
|
+
let obj_unicode_union0 = null;
|
|
895
|
+
const obj_unicode_union0_error = (() => {
|
|
896
|
+
if (typeof obj_unicode !== 'string') {
|
|
897
|
+
return new TypeError('Expected "string" but received "' + typeof obj_unicode + '" (at "' + path_unicode + '")');
|
|
898
|
+
}
|
|
899
|
+
})();
|
|
900
|
+
if (obj_unicode_union0_error != null) {
|
|
901
|
+
obj_unicode_union0 = obj_unicode_union0_error.message;
|
|
902
|
+
}
|
|
903
|
+
let obj_unicode_union1 = null;
|
|
904
|
+
const obj_unicode_union1_error = (() => {
|
|
905
|
+
if (obj_unicode !== null) {
|
|
906
|
+
return new TypeError('Expected "null" but received "' + typeof obj_unicode + '" (at "' + path_unicode + '")');
|
|
907
|
+
}
|
|
908
|
+
})();
|
|
909
|
+
if (obj_unicode_union1_error != null) {
|
|
910
|
+
obj_unicode_union1 = obj_unicode_union1_error.message;
|
|
911
|
+
}
|
|
912
|
+
if (obj_unicode_union0 && obj_unicode_union1) {
|
|
913
|
+
let message = 'Object doesn\'t match union (at "' + path_unicode + '")';
|
|
914
|
+
message += '\n' + obj_unicode_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
915
|
+
message += '\n' + obj_unicode_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
916
|
+
return new TypeError(message);
|
|
854
917
|
}
|
|
855
918
|
const obj_url = obj.url;
|
|
856
919
|
const path_url = path + '.url';
|
|
857
|
-
|
|
858
|
-
|
|
920
|
+
let obj_url_union0 = null;
|
|
921
|
+
const obj_url_union0_error = (() => {
|
|
922
|
+
if (typeof obj_url !== 'string') {
|
|
923
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
924
|
+
}
|
|
925
|
+
})();
|
|
926
|
+
if (obj_url_union0_error != null) {
|
|
927
|
+
obj_url_union0 = obj_url_union0_error.message;
|
|
928
|
+
}
|
|
929
|
+
let obj_url_union1 = null;
|
|
930
|
+
const obj_url_union1_error = (() => {
|
|
931
|
+
if (obj_url !== null) {
|
|
932
|
+
return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
933
|
+
}
|
|
934
|
+
})();
|
|
935
|
+
if (obj_url_union1_error != null) {
|
|
936
|
+
obj_url_union1 = obj_url_union1_error.message;
|
|
937
|
+
}
|
|
938
|
+
if (obj_url_union0 && obj_url_union1) {
|
|
939
|
+
let message = 'Object doesn\'t match union (at "' + path_url + '")';
|
|
940
|
+
message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
941
|
+
message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
942
|
+
return new TypeError(message);
|
|
859
943
|
}
|
|
860
944
|
})();
|
|
861
945
|
return v_error === undefined ? null : v_error;
|
|
862
946
|
}
|
|
863
|
-
const select$
|
|
947
|
+
const select$w = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
864
948
|
return {
|
|
865
949
|
kind: 'Fragment',
|
|
866
|
-
version: VERSION$
|
|
950
|
+
version: VERSION$g,
|
|
867
951
|
private: [],
|
|
868
952
|
selections: [
|
|
869
953
|
{
|
|
@@ -889,15 +973,20 @@ const select$u = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
|
889
973
|
]
|
|
890
974
|
};
|
|
891
975
|
};
|
|
892
|
-
function equals$
|
|
976
|
+
function equals$g(existing, incoming) {
|
|
977
|
+
const existing_name = existing.name;
|
|
978
|
+
const incoming_name = incoming.name;
|
|
979
|
+
if (!(existing_name === incoming_name)) {
|
|
980
|
+
return false;
|
|
981
|
+
}
|
|
893
982
|
const existing_altText = existing.altText;
|
|
894
983
|
const incoming_altText = incoming.altText;
|
|
895
984
|
if (!(existing_altText === incoming_altText)) {
|
|
896
985
|
return false;
|
|
897
986
|
}
|
|
898
|
-
const
|
|
899
|
-
const
|
|
900
|
-
if (!(
|
|
987
|
+
const existing_isCustom = existing.isCustom;
|
|
988
|
+
const incoming_isCustom = incoming.isCustom;
|
|
989
|
+
if (!(existing_isCustom === incoming_isCustom)) {
|
|
901
990
|
return false;
|
|
902
991
|
}
|
|
903
992
|
const existing_unicode = existing.unicode;
|
|
@@ -910,17 +999,12 @@ function equals$f(existing, incoming) {
|
|
|
910
999
|
if (!(existing_url === incoming_url)) {
|
|
911
1000
|
return false;
|
|
912
1001
|
}
|
|
913
|
-
const existing_isCustom = existing.isCustom;
|
|
914
|
-
const incoming_isCustom = incoming.isCustom;
|
|
915
|
-
if (!(existing_isCustom === incoming_isCustom)) {
|
|
916
|
-
return false;
|
|
917
|
-
}
|
|
918
1002
|
return true;
|
|
919
1003
|
}
|
|
920
1004
|
|
|
921
1005
|
const TTL = 600000;
|
|
922
|
-
const VERSION$
|
|
923
|
-
function validate$
|
|
1006
|
+
const VERSION$f = "c15d4769a77b0ce9f7c5d06c3210c0d8";
|
|
1007
|
+
function validate$f(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
924
1008
|
const v_error = (() => {
|
|
925
1009
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
926
1010
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -932,13 +1016,81 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
932
1016
|
}
|
|
933
1017
|
const obj_displayName = obj.displayName;
|
|
934
1018
|
const path_displayName = path + '.displayName';
|
|
935
|
-
|
|
936
|
-
|
|
1019
|
+
let obj_displayName_union0 = null;
|
|
1020
|
+
const obj_displayName_union0_error = (() => {
|
|
1021
|
+
if (typeof obj_displayName !== 'string') {
|
|
1022
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
1023
|
+
}
|
|
1024
|
+
})();
|
|
1025
|
+
if (obj_displayName_union0_error != null) {
|
|
1026
|
+
obj_displayName_union0 = obj_displayName_union0_error.message;
|
|
1027
|
+
}
|
|
1028
|
+
let obj_displayName_union1 = null;
|
|
1029
|
+
const obj_displayName_union1_error = (() => {
|
|
1030
|
+
if (obj_displayName !== null) {
|
|
1031
|
+
return new TypeError('Expected "null" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
1032
|
+
}
|
|
1033
|
+
})();
|
|
1034
|
+
if (obj_displayName_union1_error != null) {
|
|
1035
|
+
obj_displayName_union1 = obj_displayName_union1_error.message;
|
|
1036
|
+
}
|
|
1037
|
+
if (obj_displayName_union0 && obj_displayName_union1) {
|
|
1038
|
+
let message = 'Object doesn\'t match union (at "' + path_displayName + '")';
|
|
1039
|
+
message += '\n' + obj_displayName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1040
|
+
message += '\n' + obj_displayName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1041
|
+
return new TypeError(message);
|
|
1042
|
+
}
|
|
1043
|
+
const obj_email = obj.email;
|
|
1044
|
+
const path_email = path + '.email';
|
|
1045
|
+
let obj_email_union0 = null;
|
|
1046
|
+
const obj_email_union0_error = (() => {
|
|
1047
|
+
if (typeof obj_email !== 'string') {
|
|
1048
|
+
return new TypeError('Expected "string" but received "' + typeof obj_email + '" (at "' + path_email + '")');
|
|
1049
|
+
}
|
|
1050
|
+
})();
|
|
1051
|
+
if (obj_email_union0_error != null) {
|
|
1052
|
+
obj_email_union0 = obj_email_union0_error.message;
|
|
1053
|
+
}
|
|
1054
|
+
let obj_email_union1 = null;
|
|
1055
|
+
const obj_email_union1_error = (() => {
|
|
1056
|
+
if (obj_email !== null) {
|
|
1057
|
+
return new TypeError('Expected "null" but received "' + typeof obj_email + '" (at "' + path_email + '")');
|
|
1058
|
+
}
|
|
1059
|
+
})();
|
|
1060
|
+
if (obj_email_union1_error != null) {
|
|
1061
|
+
obj_email_union1 = obj_email_union1_error.message;
|
|
1062
|
+
}
|
|
1063
|
+
if (obj_email_union0 && obj_email_union1) {
|
|
1064
|
+
let message = 'Object doesn\'t match union (at "' + path_email + '")';
|
|
1065
|
+
message += '\n' + obj_email_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1066
|
+
message += '\n' + obj_email_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1067
|
+
return new TypeError(message);
|
|
937
1068
|
}
|
|
938
1069
|
const obj_image24 = obj.image24;
|
|
939
1070
|
const path_image24 = path + '.image24';
|
|
940
|
-
|
|
941
|
-
|
|
1071
|
+
let obj_image24_union0 = null;
|
|
1072
|
+
const obj_image24_union0_error = (() => {
|
|
1073
|
+
if (typeof obj_image24 !== 'string') {
|
|
1074
|
+
return new TypeError('Expected "string" but received "' + typeof obj_image24 + '" (at "' + path_image24 + '")');
|
|
1075
|
+
}
|
|
1076
|
+
})();
|
|
1077
|
+
if (obj_image24_union0_error != null) {
|
|
1078
|
+
obj_image24_union0 = obj_image24_union0_error.message;
|
|
1079
|
+
}
|
|
1080
|
+
let obj_image24_union1 = null;
|
|
1081
|
+
const obj_image24_union1_error = (() => {
|
|
1082
|
+
if (obj_image24 !== null) {
|
|
1083
|
+
return new TypeError('Expected "null" but received "' + typeof obj_image24 + '" (at "' + path_image24 + '")');
|
|
1084
|
+
}
|
|
1085
|
+
})();
|
|
1086
|
+
if (obj_image24_union1_error != null) {
|
|
1087
|
+
obj_image24_union1 = obj_image24_union1_error.message;
|
|
1088
|
+
}
|
|
1089
|
+
if (obj_image24_union0 && obj_image24_union1) {
|
|
1090
|
+
let message = 'Object doesn\'t match union (at "' + path_image24 + '")';
|
|
1091
|
+
message += '\n' + obj_image24_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1092
|
+
message += '\n' + obj_image24_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1093
|
+
return new TypeError(message);
|
|
942
1094
|
}
|
|
943
1095
|
const obj_imageOriginal = obj.imageOriginal;
|
|
944
1096
|
const path_imageOriginal = path + '.imageOriginal';
|
|
@@ -1077,8 +1229,29 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1077
1229
|
}
|
|
1078
1230
|
const obj_realName = obj.realName;
|
|
1079
1231
|
const path_realName = path + '.realName';
|
|
1080
|
-
|
|
1081
|
-
|
|
1232
|
+
let obj_realName_union0 = null;
|
|
1233
|
+
const obj_realName_union0_error = (() => {
|
|
1234
|
+
if (typeof obj_realName !== 'string') {
|
|
1235
|
+
return new TypeError('Expected "string" but received "' + typeof obj_realName + '" (at "' + path_realName + '")');
|
|
1236
|
+
}
|
|
1237
|
+
})();
|
|
1238
|
+
if (obj_realName_union0_error != null) {
|
|
1239
|
+
obj_realName_union0 = obj_realName_union0_error.message;
|
|
1240
|
+
}
|
|
1241
|
+
let obj_realName_union1 = null;
|
|
1242
|
+
const obj_realName_union1_error = (() => {
|
|
1243
|
+
if (obj_realName !== null) {
|
|
1244
|
+
return new TypeError('Expected "null" but received "' + typeof obj_realName + '" (at "' + path_realName + '")');
|
|
1245
|
+
}
|
|
1246
|
+
})();
|
|
1247
|
+
if (obj_realName_union1_error != null) {
|
|
1248
|
+
obj_realName_union1 = obj_realName_union1_error.message;
|
|
1249
|
+
}
|
|
1250
|
+
if (obj_realName_union0 && obj_realName_union1) {
|
|
1251
|
+
let message = 'Object doesn\'t match union (at "' + path_realName + '")';
|
|
1252
|
+
message += '\n' + obj_realName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1253
|
+
message += '\n' + obj_realName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1254
|
+
return new TypeError(message);
|
|
1082
1255
|
}
|
|
1083
1256
|
const obj_salesforceUserId = obj.salesforceUserId;
|
|
1084
1257
|
const path_salesforceUserId = path + '.salesforceUserId';
|
|
@@ -1115,7 +1288,7 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1115
1288
|
const path_statusEmoji = path + '.statusEmoji';
|
|
1116
1289
|
let obj_statusEmoji_union0 = null;
|
|
1117
1290
|
const obj_statusEmoji_union0_error = (() => {
|
|
1118
|
-
const referencepath_statusEmojiValidationError = validate$
|
|
1291
|
+
const referencepath_statusEmojiValidationError = validate$g(obj_statusEmoji, path_statusEmoji);
|
|
1119
1292
|
if (referencepath_statusEmojiValidationError !== null) {
|
|
1120
1293
|
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
|
|
1121
1294
|
message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1142,36 +1315,83 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1142
1315
|
}
|
|
1143
1316
|
const obj_statusMessage = obj.statusMessage;
|
|
1144
1317
|
const path_statusMessage = path + '.statusMessage';
|
|
1145
|
-
|
|
1146
|
-
|
|
1318
|
+
let obj_statusMessage_union0 = null;
|
|
1319
|
+
const obj_statusMessage_union0_error = (() => {
|
|
1320
|
+
if (typeof obj_statusMessage !== 'string') {
|
|
1321
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusMessage + '" (at "' + path_statusMessage + '")');
|
|
1322
|
+
}
|
|
1323
|
+
})();
|
|
1324
|
+
if (obj_statusMessage_union0_error != null) {
|
|
1325
|
+
obj_statusMessage_union0 = obj_statusMessage_union0_error.message;
|
|
1326
|
+
}
|
|
1327
|
+
let obj_statusMessage_union1 = null;
|
|
1328
|
+
const obj_statusMessage_union1_error = (() => {
|
|
1329
|
+
if (obj_statusMessage !== null) {
|
|
1330
|
+
return new TypeError('Expected "null" but received "' + typeof obj_statusMessage + '" (at "' + path_statusMessage + '")');
|
|
1331
|
+
}
|
|
1332
|
+
})();
|
|
1333
|
+
if (obj_statusMessage_union1_error != null) {
|
|
1334
|
+
obj_statusMessage_union1 = obj_statusMessage_union1_error.message;
|
|
1335
|
+
}
|
|
1336
|
+
if (obj_statusMessage_union0 && obj_statusMessage_union1) {
|
|
1337
|
+
let message = 'Object doesn\'t match union (at "' + path_statusMessage + '")';
|
|
1338
|
+
message += '\n' + obj_statusMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1339
|
+
message += '\n' + obj_statusMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1340
|
+
return new TypeError(message);
|
|
1147
1341
|
}
|
|
1148
1342
|
const obj_teamId = obj.teamId;
|
|
1149
1343
|
const path_teamId = path + '.teamId';
|
|
1150
1344
|
if (typeof obj_teamId !== 'string') {
|
|
1151
1345
|
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
1152
1346
|
}
|
|
1347
|
+
const obj_title = obj.title;
|
|
1348
|
+
const path_title = path + '.title';
|
|
1349
|
+
let obj_title_union0 = null;
|
|
1350
|
+
const obj_title_union0_error = (() => {
|
|
1351
|
+
if (typeof obj_title !== 'string') {
|
|
1352
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
1353
|
+
}
|
|
1354
|
+
})();
|
|
1355
|
+
if (obj_title_union0_error != null) {
|
|
1356
|
+
obj_title_union0 = obj_title_union0_error.message;
|
|
1357
|
+
}
|
|
1358
|
+
let obj_title_union1 = null;
|
|
1359
|
+
const obj_title_union1_error = (() => {
|
|
1360
|
+
if (obj_title !== null) {
|
|
1361
|
+
return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
1362
|
+
}
|
|
1363
|
+
})();
|
|
1364
|
+
if (obj_title_union1_error != null) {
|
|
1365
|
+
obj_title_union1 = obj_title_union1_error.message;
|
|
1366
|
+
}
|
|
1367
|
+
if (obj_title_union0 && obj_title_union1) {
|
|
1368
|
+
let message = 'Object doesn\'t match union (at "' + path_title + '")';
|
|
1369
|
+
message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1370
|
+
message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1371
|
+
return new TypeError(message);
|
|
1372
|
+
}
|
|
1153
1373
|
})();
|
|
1154
1374
|
return v_error === undefined ? null : v_error;
|
|
1155
1375
|
}
|
|
1156
|
-
const RepresentationType$
|
|
1157
|
-
function keyBuilder$
|
|
1158
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1376
|
+
const RepresentationType$c = 'SlackBridgeUserInfoOutputRepresentation';
|
|
1377
|
+
function keyBuilder$p(luvio, config) {
|
|
1378
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.teamId + ':' + config.slackUserId;
|
|
1159
1379
|
}
|
|
1160
1380
|
function keyBuilderFromType$5(luvio, object) {
|
|
1161
1381
|
const keyParams = {
|
|
1162
1382
|
teamId: object.teamId,
|
|
1163
1383
|
slackUserId: object.slackUserId
|
|
1164
1384
|
};
|
|
1165
|
-
return keyBuilder$
|
|
1385
|
+
return keyBuilder$p(luvio, keyParams);
|
|
1166
1386
|
}
|
|
1167
|
-
function normalize$
|
|
1387
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
1168
1388
|
return input;
|
|
1169
1389
|
}
|
|
1170
|
-
const select$
|
|
1171
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$
|
|
1390
|
+
const select$v = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
1391
|
+
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$w();
|
|
1172
1392
|
return {
|
|
1173
1393
|
kind: 'Fragment',
|
|
1174
|
-
version: VERSION$
|
|
1394
|
+
version: VERSION$f,
|
|
1175
1395
|
private: [],
|
|
1176
1396
|
selections: [
|
|
1177
1397
|
{
|
|
@@ -1182,6 +1402,10 @@ const select$t = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1182
1402
|
name: 'displayName',
|
|
1183
1403
|
kind: 'Scalar'
|
|
1184
1404
|
},
|
|
1405
|
+
{
|
|
1406
|
+
name: 'email',
|
|
1407
|
+
kind: 'Scalar'
|
|
1408
|
+
},
|
|
1185
1409
|
{
|
|
1186
1410
|
name: 'image24',
|
|
1187
1411
|
kind: 'Scalar'
|
|
@@ -1235,51 +1459,50 @@ const select$t = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1235
1459
|
{
|
|
1236
1460
|
name: 'teamId',
|
|
1237
1461
|
kind: 'Scalar'
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
name: 'title',
|
|
1465
|
+
kind: 'Scalar'
|
|
1466
|
+
}
|
|
1467
|
+
]
|
|
1468
|
+
};
|
|
1241
1469
|
};
|
|
1242
|
-
function equals$
|
|
1470
|
+
function equals$f(existing, incoming) {
|
|
1243
1471
|
const existing_bot = existing.bot;
|
|
1244
1472
|
const incoming_bot = incoming.bot;
|
|
1245
1473
|
if (!(existing_bot === incoming_bot)) {
|
|
1246
1474
|
return false;
|
|
1247
1475
|
}
|
|
1248
|
-
const existing_displayName = existing.displayName;
|
|
1249
|
-
const incoming_displayName = incoming.displayName;
|
|
1250
|
-
if (!(existing_displayName === incoming_displayName)) {
|
|
1251
|
-
return false;
|
|
1252
|
-
}
|
|
1253
|
-
const existing_image24 = existing.image24;
|
|
1254
|
-
const incoming_image24 = incoming.image24;
|
|
1255
|
-
if (!(existing_image24 === incoming_image24)) {
|
|
1256
|
-
return false;
|
|
1257
|
-
}
|
|
1258
1476
|
const existing_name = existing.name;
|
|
1259
1477
|
const incoming_name = incoming.name;
|
|
1260
1478
|
if (!(existing_name === incoming_name)) {
|
|
1261
1479
|
return false;
|
|
1262
1480
|
}
|
|
1263
|
-
const existing_realName = existing.realName;
|
|
1264
|
-
const incoming_realName = incoming.realName;
|
|
1265
|
-
if (!(existing_realName === incoming_realName)) {
|
|
1266
|
-
return false;
|
|
1267
|
-
}
|
|
1268
1481
|
const existing_slackUserId = existing.slackUserId;
|
|
1269
1482
|
const incoming_slackUserId = incoming.slackUserId;
|
|
1270
1483
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
1271
1484
|
return false;
|
|
1272
1485
|
}
|
|
1273
|
-
const existing_statusMessage = existing.statusMessage;
|
|
1274
|
-
const incoming_statusMessage = incoming.statusMessage;
|
|
1275
|
-
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
1276
|
-
return false;
|
|
1277
|
-
}
|
|
1278
1486
|
const existing_teamId = existing.teamId;
|
|
1279
1487
|
const incoming_teamId = incoming.teamId;
|
|
1280
1488
|
if (!(existing_teamId === incoming_teamId)) {
|
|
1281
1489
|
return false;
|
|
1282
1490
|
}
|
|
1491
|
+
const existing_displayName = existing.displayName;
|
|
1492
|
+
const incoming_displayName = incoming.displayName;
|
|
1493
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
1494
|
+
return false;
|
|
1495
|
+
}
|
|
1496
|
+
const existing_email = existing.email;
|
|
1497
|
+
const incoming_email = incoming.email;
|
|
1498
|
+
if (!(existing_email === incoming_email)) {
|
|
1499
|
+
return false;
|
|
1500
|
+
}
|
|
1501
|
+
const existing_image24 = existing.image24;
|
|
1502
|
+
const incoming_image24 = incoming.image24;
|
|
1503
|
+
if (!(existing_image24 === incoming_image24)) {
|
|
1504
|
+
return false;
|
|
1505
|
+
}
|
|
1283
1506
|
const existing_imageOriginal = existing.imageOriginal;
|
|
1284
1507
|
const incoming_imageOriginal = incoming.imageOriginal;
|
|
1285
1508
|
if (!(existing_imageOriginal === incoming_imageOriginal)) {
|
|
@@ -1305,6 +1528,11 @@ function equals$e(existing, incoming) {
|
|
|
1305
1528
|
if (!(existing_profileUrl === incoming_profileUrl)) {
|
|
1306
1529
|
return false;
|
|
1307
1530
|
}
|
|
1531
|
+
const existing_realName = existing.realName;
|
|
1532
|
+
const incoming_realName = incoming.realName;
|
|
1533
|
+
if (!(existing_realName === incoming_realName)) {
|
|
1534
|
+
return false;
|
|
1535
|
+
}
|
|
1308
1536
|
const existing_salesforceUserId = existing.salesforceUserId;
|
|
1309
1537
|
const incoming_salesforceUserId = incoming.salesforceUserId;
|
|
1310
1538
|
if (!(existing_salesforceUserId === incoming_salesforceUserId)) {
|
|
@@ -1315,35 +1543,45 @@ function equals$e(existing, incoming) {
|
|
|
1315
1543
|
if (!(existing_statusEmoji === incoming_statusEmoji
|
|
1316
1544
|
|| (existing_statusEmoji != null &&
|
|
1317
1545
|
incoming_statusEmoji != null &&
|
|
1318
|
-
equals$
|
|
1546
|
+
equals$g(existing_statusEmoji, incoming_statusEmoji)))) {
|
|
1547
|
+
return false;
|
|
1548
|
+
}
|
|
1549
|
+
const existing_statusMessage = existing.statusMessage;
|
|
1550
|
+
const incoming_statusMessage = incoming.statusMessage;
|
|
1551
|
+
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
1552
|
+
return false;
|
|
1553
|
+
}
|
|
1554
|
+
const existing_title = existing.title;
|
|
1555
|
+
const incoming_title = incoming.title;
|
|
1556
|
+
if (!(existing_title === incoming_title)) {
|
|
1319
1557
|
return false;
|
|
1320
1558
|
}
|
|
1321
1559
|
return true;
|
|
1322
1560
|
}
|
|
1323
|
-
const ingest$
|
|
1561
|
+
const ingest$c = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1324
1562
|
if (process.env.NODE_ENV !== 'production') {
|
|
1325
|
-
const validateError = validate$
|
|
1563
|
+
const validateError = validate$f(input);
|
|
1326
1564
|
if (validateError !== null) {
|
|
1327
1565
|
throw validateError;
|
|
1328
1566
|
}
|
|
1329
1567
|
}
|
|
1330
1568
|
const key = keyBuilderFromType$5(luvio, input);
|
|
1331
1569
|
const ttlToUse = TTL;
|
|
1332
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1570
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$f, RepresentationType$c, equals$f);
|
|
1333
1571
|
return createLink(key);
|
|
1334
1572
|
};
|
|
1335
|
-
function getTypeCacheKeys$
|
|
1573
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
1336
1574
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1337
1575
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1338
1576
|
rootKeySet.set(rootKey, {
|
|
1339
1577
|
namespace: keyPrefix,
|
|
1340
|
-
representationName: RepresentationType$
|
|
1578
|
+
representationName: RepresentationType$c,
|
|
1341
1579
|
mergeable: false
|
|
1342
1580
|
});
|
|
1343
1581
|
}
|
|
1344
1582
|
|
|
1345
|
-
const VERSION$
|
|
1346
|
-
function validate$
|
|
1583
|
+
const VERSION$e = "252fe3a6509a770a876e36552ad8dd06";
|
|
1584
|
+
function validate$e(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1347
1585
|
const v_error = (() => {
|
|
1348
1586
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1349
1587
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1355,13 +1593,55 @@ function validate$d(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1355
1593
|
}
|
|
1356
1594
|
const obj_isArchived = obj.isArchived;
|
|
1357
1595
|
const path_isArchived = path + '.isArchived';
|
|
1358
|
-
|
|
1359
|
-
|
|
1596
|
+
let obj_isArchived_union0 = null;
|
|
1597
|
+
const obj_isArchived_union0_error = (() => {
|
|
1598
|
+
if (typeof obj_isArchived !== 'boolean') {
|
|
1599
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isArchived + '" (at "' + path_isArchived + '")');
|
|
1600
|
+
}
|
|
1601
|
+
})();
|
|
1602
|
+
if (obj_isArchived_union0_error != null) {
|
|
1603
|
+
obj_isArchived_union0 = obj_isArchived_union0_error.message;
|
|
1604
|
+
}
|
|
1605
|
+
let obj_isArchived_union1 = null;
|
|
1606
|
+
const obj_isArchived_union1_error = (() => {
|
|
1607
|
+
if (obj_isArchived !== null) {
|
|
1608
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isArchived + '" (at "' + path_isArchived + '")');
|
|
1609
|
+
}
|
|
1610
|
+
})();
|
|
1611
|
+
if (obj_isArchived_union1_error != null) {
|
|
1612
|
+
obj_isArchived_union1 = obj_isArchived_union1_error.message;
|
|
1613
|
+
}
|
|
1614
|
+
if (obj_isArchived_union0 && obj_isArchived_union1) {
|
|
1615
|
+
let message = 'Object doesn\'t match union (at "' + path_isArchived + '")';
|
|
1616
|
+
message += '\n' + obj_isArchived_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1617
|
+
message += '\n' + obj_isArchived_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1618
|
+
return new TypeError(message);
|
|
1360
1619
|
}
|
|
1361
1620
|
const obj_isChannel = obj.isChannel;
|
|
1362
1621
|
const path_isChannel = path + '.isChannel';
|
|
1363
|
-
|
|
1364
|
-
|
|
1622
|
+
let obj_isChannel_union0 = null;
|
|
1623
|
+
const obj_isChannel_union0_error = (() => {
|
|
1624
|
+
if (typeof obj_isChannel !== 'boolean') {
|
|
1625
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isChannel + '" (at "' + path_isChannel + '")');
|
|
1626
|
+
}
|
|
1627
|
+
})();
|
|
1628
|
+
if (obj_isChannel_union0_error != null) {
|
|
1629
|
+
obj_isChannel_union0 = obj_isChannel_union0_error.message;
|
|
1630
|
+
}
|
|
1631
|
+
let obj_isChannel_union1 = null;
|
|
1632
|
+
const obj_isChannel_union1_error = (() => {
|
|
1633
|
+
if (obj_isChannel !== null) {
|
|
1634
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isChannel + '" (at "' + path_isChannel + '")');
|
|
1635
|
+
}
|
|
1636
|
+
})();
|
|
1637
|
+
if (obj_isChannel_union1_error != null) {
|
|
1638
|
+
obj_isChannel_union1 = obj_isChannel_union1_error.message;
|
|
1639
|
+
}
|
|
1640
|
+
if (obj_isChannel_union0 && obj_isChannel_union1) {
|
|
1641
|
+
let message = 'Object doesn\'t match union (at "' + path_isChannel + '")';
|
|
1642
|
+
message += '\n' + obj_isChannel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1643
|
+
message += '\n' + obj_isChannel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1644
|
+
return new TypeError(message);
|
|
1365
1645
|
}
|
|
1366
1646
|
const obj_isCustomEmojiSupported = obj.isCustomEmojiSupported;
|
|
1367
1647
|
const path_isCustomEmojiSupported = path + '.isCustomEmojiSupported';
|
|
@@ -1391,38 +1671,185 @@ function validate$d(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1391
1671
|
}
|
|
1392
1672
|
const obj_isGroup = obj.isGroup;
|
|
1393
1673
|
const path_isGroup = path + '.isGroup';
|
|
1394
|
-
|
|
1395
|
-
|
|
1674
|
+
let obj_isGroup_union0 = null;
|
|
1675
|
+
const obj_isGroup_union0_error = (() => {
|
|
1676
|
+
if (typeof obj_isGroup !== 'boolean') {
|
|
1677
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isGroup + '" (at "' + path_isGroup + '")');
|
|
1678
|
+
}
|
|
1679
|
+
})();
|
|
1680
|
+
if (obj_isGroup_union0_error != null) {
|
|
1681
|
+
obj_isGroup_union0 = obj_isGroup_union0_error.message;
|
|
1682
|
+
}
|
|
1683
|
+
let obj_isGroup_union1 = null;
|
|
1684
|
+
const obj_isGroup_union1_error = (() => {
|
|
1685
|
+
if (obj_isGroup !== null) {
|
|
1686
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isGroup + '" (at "' + path_isGroup + '")');
|
|
1687
|
+
}
|
|
1688
|
+
})();
|
|
1689
|
+
if (obj_isGroup_union1_error != null) {
|
|
1690
|
+
obj_isGroup_union1 = obj_isGroup_union1_error.message;
|
|
1691
|
+
}
|
|
1692
|
+
if (obj_isGroup_union0 && obj_isGroup_union1) {
|
|
1693
|
+
let message = 'Object doesn\'t match union (at "' + path_isGroup + '")';
|
|
1694
|
+
message += '\n' + obj_isGroup_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1695
|
+
message += '\n' + obj_isGroup_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1696
|
+
return new TypeError(message);
|
|
1396
1697
|
}
|
|
1397
1698
|
const obj_isIm = obj.isIm;
|
|
1398
1699
|
const path_isIm = path + '.isIm';
|
|
1399
|
-
|
|
1400
|
-
|
|
1700
|
+
let obj_isIm_union0 = null;
|
|
1701
|
+
const obj_isIm_union0_error = (() => {
|
|
1702
|
+
if (typeof obj_isIm !== 'boolean') {
|
|
1703
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isIm + '" (at "' + path_isIm + '")');
|
|
1704
|
+
}
|
|
1705
|
+
})();
|
|
1706
|
+
if (obj_isIm_union0_error != null) {
|
|
1707
|
+
obj_isIm_union0 = obj_isIm_union0_error.message;
|
|
1708
|
+
}
|
|
1709
|
+
let obj_isIm_union1 = null;
|
|
1710
|
+
const obj_isIm_union1_error = (() => {
|
|
1711
|
+
if (obj_isIm !== null) {
|
|
1712
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isIm + '" (at "' + path_isIm + '")');
|
|
1713
|
+
}
|
|
1714
|
+
})();
|
|
1715
|
+
if (obj_isIm_union1_error != null) {
|
|
1716
|
+
obj_isIm_union1 = obj_isIm_union1_error.message;
|
|
1717
|
+
}
|
|
1718
|
+
if (obj_isIm_union0 && obj_isIm_union1) {
|
|
1719
|
+
let message = 'Object doesn\'t match union (at "' + path_isIm + '")';
|
|
1720
|
+
message += '\n' + obj_isIm_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1721
|
+
message += '\n' + obj_isIm_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1722
|
+
return new TypeError(message);
|
|
1401
1723
|
}
|
|
1402
1724
|
const obj_isMember = obj.isMember;
|
|
1403
1725
|
const path_isMember = path + '.isMember';
|
|
1404
|
-
|
|
1405
|
-
|
|
1726
|
+
let obj_isMember_union0 = null;
|
|
1727
|
+
const obj_isMember_union0_error = (() => {
|
|
1728
|
+
if (typeof obj_isMember !== 'boolean') {
|
|
1729
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMember + '" (at "' + path_isMember + '")');
|
|
1730
|
+
}
|
|
1731
|
+
})();
|
|
1732
|
+
if (obj_isMember_union0_error != null) {
|
|
1733
|
+
obj_isMember_union0 = obj_isMember_union0_error.message;
|
|
1734
|
+
}
|
|
1735
|
+
let obj_isMember_union1 = null;
|
|
1736
|
+
const obj_isMember_union1_error = (() => {
|
|
1737
|
+
if (obj_isMember !== null) {
|
|
1738
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isMember + '" (at "' + path_isMember + '")');
|
|
1739
|
+
}
|
|
1740
|
+
})();
|
|
1741
|
+
if (obj_isMember_union1_error != null) {
|
|
1742
|
+
obj_isMember_union1 = obj_isMember_union1_error.message;
|
|
1743
|
+
}
|
|
1744
|
+
if (obj_isMember_union0 && obj_isMember_union1) {
|
|
1745
|
+
let message = 'Object doesn\'t match union (at "' + path_isMember + '")';
|
|
1746
|
+
message += '\n' + obj_isMember_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1747
|
+
message += '\n' + obj_isMember_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1748
|
+
return new TypeError(message);
|
|
1406
1749
|
}
|
|
1407
1750
|
const obj_isOpen = obj.isOpen;
|
|
1408
1751
|
const path_isOpen = path + '.isOpen';
|
|
1409
|
-
|
|
1410
|
-
|
|
1752
|
+
let obj_isOpen_union0 = null;
|
|
1753
|
+
const obj_isOpen_union0_error = (() => {
|
|
1754
|
+
if (typeof obj_isOpen !== 'boolean') {
|
|
1755
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isOpen + '" (at "' + path_isOpen + '")');
|
|
1756
|
+
}
|
|
1757
|
+
})();
|
|
1758
|
+
if (obj_isOpen_union0_error != null) {
|
|
1759
|
+
obj_isOpen_union0 = obj_isOpen_union0_error.message;
|
|
1760
|
+
}
|
|
1761
|
+
let obj_isOpen_union1 = null;
|
|
1762
|
+
const obj_isOpen_union1_error = (() => {
|
|
1763
|
+
if (obj_isOpen !== null) {
|
|
1764
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isOpen + '" (at "' + path_isOpen + '")');
|
|
1765
|
+
}
|
|
1766
|
+
})();
|
|
1767
|
+
if (obj_isOpen_union1_error != null) {
|
|
1768
|
+
obj_isOpen_union1 = obj_isOpen_union1_error.message;
|
|
1769
|
+
}
|
|
1770
|
+
if (obj_isOpen_union0 && obj_isOpen_union1) {
|
|
1771
|
+
let message = 'Object doesn\'t match union (at "' + path_isOpen + '")';
|
|
1772
|
+
message += '\n' + obj_isOpen_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1773
|
+
message += '\n' + obj_isOpen_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1774
|
+
return new TypeError(message);
|
|
1411
1775
|
}
|
|
1412
1776
|
const obj_isPrivate = obj.isPrivate;
|
|
1413
1777
|
const path_isPrivate = path + '.isPrivate';
|
|
1414
|
-
|
|
1415
|
-
|
|
1778
|
+
let obj_isPrivate_union0 = null;
|
|
1779
|
+
const obj_isPrivate_union0_error = (() => {
|
|
1780
|
+
if (typeof obj_isPrivate !== 'boolean') {
|
|
1781
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrivate + '" (at "' + path_isPrivate + '")');
|
|
1782
|
+
}
|
|
1783
|
+
})();
|
|
1784
|
+
if (obj_isPrivate_union0_error != null) {
|
|
1785
|
+
obj_isPrivate_union0 = obj_isPrivate_union0_error.message;
|
|
1786
|
+
}
|
|
1787
|
+
let obj_isPrivate_union1 = null;
|
|
1788
|
+
const obj_isPrivate_union1_error = (() => {
|
|
1789
|
+
if (obj_isPrivate !== null) {
|
|
1790
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isPrivate + '" (at "' + path_isPrivate + '")');
|
|
1791
|
+
}
|
|
1792
|
+
})();
|
|
1793
|
+
if (obj_isPrivate_union1_error != null) {
|
|
1794
|
+
obj_isPrivate_union1 = obj_isPrivate_union1_error.message;
|
|
1795
|
+
}
|
|
1796
|
+
if (obj_isPrivate_union0 && obj_isPrivate_union1) {
|
|
1797
|
+
let message = 'Object doesn\'t match union (at "' + path_isPrivate + '")';
|
|
1798
|
+
message += '\n' + obj_isPrivate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1799
|
+
message += '\n' + obj_isPrivate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1800
|
+
return new TypeError(message);
|
|
1416
1801
|
}
|
|
1417
1802
|
const obj_isReadOnly = obj.isReadOnly;
|
|
1418
1803
|
const path_isReadOnly = path + '.isReadOnly';
|
|
1419
|
-
|
|
1420
|
-
|
|
1804
|
+
let obj_isReadOnly_union0 = null;
|
|
1805
|
+
const obj_isReadOnly_union0_error = (() => {
|
|
1806
|
+
if (typeof obj_isReadOnly !== 'boolean') {
|
|
1807
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isReadOnly + '" (at "' + path_isReadOnly + '")');
|
|
1808
|
+
}
|
|
1809
|
+
})();
|
|
1810
|
+
if (obj_isReadOnly_union0_error != null) {
|
|
1811
|
+
obj_isReadOnly_union0 = obj_isReadOnly_union0_error.message;
|
|
1812
|
+
}
|
|
1813
|
+
let obj_isReadOnly_union1 = null;
|
|
1814
|
+
const obj_isReadOnly_union1_error = (() => {
|
|
1815
|
+
if (obj_isReadOnly !== null) {
|
|
1816
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isReadOnly + '" (at "' + path_isReadOnly + '")');
|
|
1817
|
+
}
|
|
1818
|
+
})();
|
|
1819
|
+
if (obj_isReadOnly_union1_error != null) {
|
|
1820
|
+
obj_isReadOnly_union1 = obj_isReadOnly_union1_error.message;
|
|
1821
|
+
}
|
|
1822
|
+
if (obj_isReadOnly_union0 && obj_isReadOnly_union1) {
|
|
1823
|
+
let message = 'Object doesn\'t match union (at "' + path_isReadOnly + '")';
|
|
1824
|
+
message += '\n' + obj_isReadOnly_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1825
|
+
message += '\n' + obj_isReadOnly_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1826
|
+
return new TypeError(message);
|
|
1421
1827
|
}
|
|
1422
1828
|
const obj_isThreadOnly = obj.isThreadOnly;
|
|
1423
1829
|
const path_isThreadOnly = path + '.isThreadOnly';
|
|
1424
|
-
|
|
1425
|
-
|
|
1830
|
+
let obj_isThreadOnly_union0 = null;
|
|
1831
|
+
const obj_isThreadOnly_union0_error = (() => {
|
|
1832
|
+
if (typeof obj_isThreadOnly !== 'boolean') {
|
|
1833
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isThreadOnly + '" (at "' + path_isThreadOnly + '")');
|
|
1834
|
+
}
|
|
1835
|
+
})();
|
|
1836
|
+
if (obj_isThreadOnly_union0_error != null) {
|
|
1837
|
+
obj_isThreadOnly_union0 = obj_isThreadOnly_union0_error.message;
|
|
1838
|
+
}
|
|
1839
|
+
let obj_isThreadOnly_union1 = null;
|
|
1840
|
+
const obj_isThreadOnly_union1_error = (() => {
|
|
1841
|
+
if (obj_isThreadOnly !== null) {
|
|
1842
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isThreadOnly + '" (at "' + path_isThreadOnly + '")');
|
|
1843
|
+
}
|
|
1844
|
+
})();
|
|
1845
|
+
if (obj_isThreadOnly_union1_error != null) {
|
|
1846
|
+
obj_isThreadOnly_union1 = obj_isThreadOnly_union1_error.message;
|
|
1847
|
+
}
|
|
1848
|
+
if (obj_isThreadOnly_union0 && obj_isThreadOnly_union1) {
|
|
1849
|
+
let message = 'Object doesn\'t match union (at "' + path_isThreadOnly + '")';
|
|
1850
|
+
message += '\n' + obj_isThreadOnly_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1851
|
+
message += '\n' + obj_isThreadOnly_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1852
|
+
return new TypeError(message);
|
|
1426
1853
|
}
|
|
1427
1854
|
const obj_name = obj.name;
|
|
1428
1855
|
const path_name = path + '.name';
|
|
@@ -1491,23 +1918,23 @@ function validate$d(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1491
1918
|
})();
|
|
1492
1919
|
return v_error === undefined ? null : v_error;
|
|
1493
1920
|
}
|
|
1494
|
-
const RepresentationType$
|
|
1495
|
-
function keyBuilder$
|
|
1496
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1921
|
+
const RepresentationType$b = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1922
|
+
function keyBuilder$o(luvio, config) {
|
|
1923
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.id;
|
|
1497
1924
|
}
|
|
1498
1925
|
function keyBuilderFromType$4(luvio, object) {
|
|
1499
1926
|
const keyParams = {
|
|
1500
1927
|
id: object.id
|
|
1501
1928
|
};
|
|
1502
|
-
return keyBuilder$
|
|
1929
|
+
return keyBuilder$o(luvio, keyParams);
|
|
1503
1930
|
}
|
|
1504
|
-
function normalize$
|
|
1931
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1505
1932
|
return input;
|
|
1506
1933
|
}
|
|
1507
|
-
const select$
|
|
1934
|
+
const select$u = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1508
1935
|
return {
|
|
1509
1936
|
kind: 'Fragment',
|
|
1510
|
-
version: VERSION$
|
|
1937
|
+
version: VERSION$e,
|
|
1511
1938
|
private: [],
|
|
1512
1939
|
selections: [
|
|
1513
1940
|
{
|
|
@@ -1574,7 +2001,30 @@ const select$s = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1574
2001
|
]
|
|
1575
2002
|
};
|
|
1576
2003
|
};
|
|
1577
|
-
function equals$
|
|
2004
|
+
function equals$e(existing, incoming) {
|
|
2005
|
+
const existing_id = existing.id;
|
|
2006
|
+
const incoming_id = incoming.id;
|
|
2007
|
+
if (!(existing_id === incoming_id)) {
|
|
2008
|
+
return false;
|
|
2009
|
+
}
|
|
2010
|
+
const existing_name = existing.name;
|
|
2011
|
+
const incoming_name = incoming.name;
|
|
2012
|
+
if (!(existing_name === incoming_name)) {
|
|
2013
|
+
return false;
|
|
2014
|
+
}
|
|
2015
|
+
const existing_url = existing.url;
|
|
2016
|
+
const incoming_url = incoming.url;
|
|
2017
|
+
// if at least one of these optionals is defined
|
|
2018
|
+
if (existing_url !== undefined || incoming_url !== undefined) {
|
|
2019
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2020
|
+
// not equal
|
|
2021
|
+
if (existing_url === undefined || incoming_url === undefined) {
|
|
2022
|
+
return false;
|
|
2023
|
+
}
|
|
2024
|
+
if (!(existing_url === incoming_url)) {
|
|
2025
|
+
return false;
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
1578
2028
|
const existing_isArchived = existing.isArchived;
|
|
1579
2029
|
const incoming_isArchived = incoming.isArchived;
|
|
1580
2030
|
if (!(existing_isArchived === incoming_isArchived)) {
|
|
@@ -1585,6 +2035,11 @@ function equals$d(existing, incoming) {
|
|
|
1585
2035
|
if (!(existing_isChannel === incoming_isChannel)) {
|
|
1586
2036
|
return false;
|
|
1587
2037
|
}
|
|
2038
|
+
const existing_isCustomEmojiSupported = existing.isCustomEmojiSupported;
|
|
2039
|
+
const incoming_isCustomEmojiSupported = incoming.isCustomEmojiSupported;
|
|
2040
|
+
if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
|
|
2041
|
+
return false;
|
|
2042
|
+
}
|
|
1588
2043
|
const existing_isGroup = existing.isGroup;
|
|
1589
2044
|
const incoming_isGroup = incoming.isGroup;
|
|
1590
2045
|
if (!(existing_isGroup === incoming_isGroup)) {
|
|
@@ -1620,34 +2075,6 @@ function equals$d(existing, incoming) {
|
|
|
1620
2075
|
if (!(existing_isThreadOnly === incoming_isThreadOnly)) {
|
|
1621
2076
|
return false;
|
|
1622
2077
|
}
|
|
1623
|
-
const existing_id = existing.id;
|
|
1624
|
-
const incoming_id = incoming.id;
|
|
1625
|
-
if (!(existing_id === incoming_id)) {
|
|
1626
|
-
return false;
|
|
1627
|
-
}
|
|
1628
|
-
const existing_name = existing.name;
|
|
1629
|
-
const incoming_name = incoming.name;
|
|
1630
|
-
if (!(existing_name === incoming_name)) {
|
|
1631
|
-
return false;
|
|
1632
|
-
}
|
|
1633
|
-
const existing_url = existing.url;
|
|
1634
|
-
const incoming_url = incoming.url;
|
|
1635
|
-
// if at least one of these optionals is defined
|
|
1636
|
-
if (existing_url !== undefined || incoming_url !== undefined) {
|
|
1637
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
1638
|
-
// not equal
|
|
1639
|
-
if (existing_url === undefined || incoming_url === undefined) {
|
|
1640
|
-
return false;
|
|
1641
|
-
}
|
|
1642
|
-
if (!(existing_url === incoming_url)) {
|
|
1643
|
-
return false;
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
const existing_isCustomEmojiSupported = existing.isCustomEmojiSupported;
|
|
1647
|
-
const incoming_isCustomEmojiSupported = incoming.isCustomEmojiSupported;
|
|
1648
|
-
if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
|
|
1649
|
-
return false;
|
|
1650
|
-
}
|
|
1651
2078
|
const existing_numOfMembers = existing.numOfMembers;
|
|
1652
2079
|
const incoming_numOfMembers = incoming.numOfMembers;
|
|
1653
2080
|
if (!(existing_numOfMembers === incoming_numOfMembers)) {
|
|
@@ -1660,30 +2087,30 @@ function equals$d(existing, incoming) {
|
|
|
1660
2087
|
}
|
|
1661
2088
|
return true;
|
|
1662
2089
|
}
|
|
1663
|
-
const ingest$
|
|
2090
|
+
const ingest$b = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1664
2091
|
if (process.env.NODE_ENV !== 'production') {
|
|
1665
|
-
const validateError = validate$
|
|
2092
|
+
const validateError = validate$e(input);
|
|
1666
2093
|
if (validateError !== null) {
|
|
1667
2094
|
throw validateError;
|
|
1668
2095
|
}
|
|
1669
2096
|
}
|
|
1670
2097
|
const key = keyBuilderFromType$4(luvio, input);
|
|
1671
2098
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1672
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2099
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$e, RepresentationType$b, equals$e);
|
|
1673
2100
|
return createLink(key);
|
|
1674
2101
|
};
|
|
1675
|
-
function getTypeCacheKeys$
|
|
2102
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
1676
2103
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1677
2104
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
1678
2105
|
rootKeySet.set(rootKey, {
|
|
1679
2106
|
namespace: keyPrefix,
|
|
1680
|
-
representationName: RepresentationType$
|
|
2107
|
+
representationName: RepresentationType$b,
|
|
1681
2108
|
mergeable: false
|
|
1682
2109
|
});
|
|
1683
2110
|
}
|
|
1684
2111
|
|
|
1685
|
-
const VERSION$
|
|
1686
|
-
function validate$
|
|
2112
|
+
const VERSION$d = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
2113
|
+
function validate$d(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
1687
2114
|
const v_error = (() => {
|
|
1688
2115
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1689
2116
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1701,10 +2128,10 @@ function validate$c(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1701
2128
|
})();
|
|
1702
2129
|
return v_error === undefined ? null : v_error;
|
|
1703
2130
|
}
|
|
1704
|
-
const select$
|
|
2131
|
+
const select$t = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1705
2132
|
return {
|
|
1706
2133
|
kind: 'Fragment',
|
|
1707
|
-
version: VERSION$
|
|
2134
|
+
version: VERSION$d,
|
|
1708
2135
|
private: [],
|
|
1709
2136
|
selections: [
|
|
1710
2137
|
{
|
|
@@ -1718,7 +2145,7 @@ const select$r = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
|
1718
2145
|
]
|
|
1719
2146
|
};
|
|
1720
2147
|
};
|
|
1721
|
-
function equals$
|
|
2148
|
+
function equals$d(existing, incoming) {
|
|
1722
2149
|
const existing_extension = existing.extension;
|
|
1723
2150
|
const incoming_extension = incoming.extension;
|
|
1724
2151
|
if (!(existing_extension === incoming_extension)) {
|
|
@@ -1732,8 +2159,8 @@ function equals$c(existing, incoming) {
|
|
|
1732
2159
|
return true;
|
|
1733
2160
|
}
|
|
1734
2161
|
|
|
1735
|
-
const VERSION$
|
|
1736
|
-
function validate$
|
|
2162
|
+
const VERSION$c = "3ef7c0314c9cc37a0b6c3b0dbd6a76a5";
|
|
2163
|
+
function validate$c(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
|
|
1737
2164
|
const v_error = (() => {
|
|
1738
2165
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1739
2166
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1745,10 +2172,31 @@ function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1745
2172
|
}
|
|
1746
2173
|
const obj_filetype = obj.filetype;
|
|
1747
2174
|
const path_filetype = path + '.filetype';
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
2175
|
+
let obj_filetype_union0 = null;
|
|
2176
|
+
const obj_filetype_union0_error = (() => {
|
|
2177
|
+
const referencepath_filetypeValidationError = validate$d(obj_filetype, path_filetype);
|
|
2178
|
+
if (referencepath_filetypeValidationError !== null) {
|
|
2179
|
+
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
2180
|
+
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2181
|
+
return new TypeError(message);
|
|
2182
|
+
}
|
|
2183
|
+
})();
|
|
2184
|
+
if (obj_filetype_union0_error != null) {
|
|
2185
|
+
obj_filetype_union0 = obj_filetype_union0_error.message;
|
|
2186
|
+
}
|
|
2187
|
+
let obj_filetype_union1 = null;
|
|
2188
|
+
const obj_filetype_union1_error = (() => {
|
|
2189
|
+
if (obj_filetype !== null) {
|
|
2190
|
+
return new TypeError('Expected "null" but received "' + typeof obj_filetype + '" (at "' + path_filetype + '")');
|
|
2191
|
+
}
|
|
2192
|
+
})();
|
|
2193
|
+
if (obj_filetype_union1_error != null) {
|
|
2194
|
+
obj_filetype_union1 = obj_filetype_union1_error.message;
|
|
2195
|
+
}
|
|
2196
|
+
if (obj_filetype_union0 && obj_filetype_union1) {
|
|
2197
|
+
let message = 'Object doesn\'t match union (at "' + path_filetype + '")';
|
|
2198
|
+
message += '\n' + obj_filetype_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2199
|
+
message += '\n' + obj_filetype_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1752
2200
|
return new TypeError(message);
|
|
1753
2201
|
}
|
|
1754
2202
|
const obj_id = obj.id;
|
|
@@ -1768,17 +2216,38 @@ function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1768
2216
|
}
|
|
1769
2217
|
const obj_versionUrl = obj.versionUrl;
|
|
1770
2218
|
const path_versionUrl = path + '.versionUrl';
|
|
1771
|
-
|
|
1772
|
-
|
|
2219
|
+
let obj_versionUrl_union0 = null;
|
|
2220
|
+
const obj_versionUrl_union0_error = (() => {
|
|
2221
|
+
if (typeof obj_versionUrl !== 'string') {
|
|
2222
|
+
return new TypeError('Expected "string" but received "' + typeof obj_versionUrl + '" (at "' + path_versionUrl + '")');
|
|
2223
|
+
}
|
|
2224
|
+
})();
|
|
2225
|
+
if (obj_versionUrl_union0_error != null) {
|
|
2226
|
+
obj_versionUrl_union0 = obj_versionUrl_union0_error.message;
|
|
2227
|
+
}
|
|
2228
|
+
let obj_versionUrl_union1 = null;
|
|
2229
|
+
const obj_versionUrl_union1_error = (() => {
|
|
2230
|
+
if (obj_versionUrl !== null) {
|
|
2231
|
+
return new TypeError('Expected "null" but received "' + typeof obj_versionUrl + '" (at "' + path_versionUrl + '")');
|
|
2232
|
+
}
|
|
2233
|
+
})();
|
|
2234
|
+
if (obj_versionUrl_union1_error != null) {
|
|
2235
|
+
obj_versionUrl_union1 = obj_versionUrl_union1_error.message;
|
|
2236
|
+
}
|
|
2237
|
+
if (obj_versionUrl_union0 && obj_versionUrl_union1) {
|
|
2238
|
+
let message = 'Object doesn\'t match union (at "' + path_versionUrl + '")';
|
|
2239
|
+
message += '\n' + obj_versionUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2240
|
+
message += '\n' + obj_versionUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2241
|
+
return new TypeError(message);
|
|
1773
2242
|
}
|
|
1774
2243
|
})();
|
|
1775
2244
|
return v_error === undefined ? null : v_error;
|
|
1776
2245
|
}
|
|
1777
|
-
const select$
|
|
1778
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
2246
|
+
const select$s = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
2247
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$t();
|
|
1779
2248
|
return {
|
|
1780
2249
|
kind: 'Fragment',
|
|
1781
|
-
version: VERSION$
|
|
2250
|
+
version: VERSION$c,
|
|
1782
2251
|
private: [],
|
|
1783
2252
|
selections: [
|
|
1784
2253
|
{
|
|
@@ -1788,6 +2257,7 @@ const select$q = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1788
2257
|
{
|
|
1789
2258
|
name: 'filetype',
|
|
1790
2259
|
kind: 'Object',
|
|
2260
|
+
nullable: true,
|
|
1791
2261
|
selections: SlackBridgeFileTypeOutputRepresentation__selections
|
|
1792
2262
|
},
|
|
1793
2263
|
{
|
|
@@ -1809,7 +2279,7 @@ const select$q = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1809
2279
|
]
|
|
1810
2280
|
};
|
|
1811
2281
|
};
|
|
1812
|
-
function equals$
|
|
2282
|
+
function equals$c(existing, incoming) {
|
|
1813
2283
|
const existing_size = existing.size;
|
|
1814
2284
|
const incoming_size = incoming.size;
|
|
1815
2285
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1830,28 +2300,31 @@ function equals$b(existing, incoming) {
|
|
|
1830
2300
|
if (!(existing_title === incoming_title)) {
|
|
1831
2301
|
return false;
|
|
1832
2302
|
}
|
|
2303
|
+
const existing_filetype = existing.filetype;
|
|
2304
|
+
const incoming_filetype = incoming.filetype;
|
|
2305
|
+
if (!(existing_filetype === incoming_filetype
|
|
2306
|
+
|| (existing_filetype != null &&
|
|
2307
|
+
incoming_filetype != null &&
|
|
2308
|
+
equals$d(existing_filetype, incoming_filetype)))) {
|
|
2309
|
+
return false;
|
|
2310
|
+
}
|
|
1833
2311
|
const existing_versionUrl = existing.versionUrl;
|
|
1834
2312
|
const incoming_versionUrl = incoming.versionUrl;
|
|
1835
2313
|
if (!(existing_versionUrl === incoming_versionUrl)) {
|
|
1836
2314
|
return false;
|
|
1837
2315
|
}
|
|
1838
|
-
const existing_filetype = existing.filetype;
|
|
1839
|
-
const incoming_filetype = incoming.filetype;
|
|
1840
|
-
if (!(equals$c(existing_filetype, incoming_filetype))) {
|
|
1841
|
-
return false;
|
|
1842
|
-
}
|
|
1843
2316
|
return true;
|
|
1844
2317
|
}
|
|
1845
2318
|
|
|
1846
|
-
const VERSION$
|
|
1847
|
-
function validate$
|
|
2319
|
+
const VERSION$b = "effdd259bc622bee05493fc2a3ecd276";
|
|
2320
|
+
function validate$b(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
|
|
1848
2321
|
const v_error = (() => {
|
|
1849
2322
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1850
2323
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1851
2324
|
}
|
|
1852
2325
|
const obj_filetype = obj.filetype;
|
|
1853
2326
|
const path_filetype = path + '.filetype';
|
|
1854
|
-
const referencepath_filetypeValidationError = validate$
|
|
2327
|
+
const referencepath_filetypeValidationError = validate$d(obj_filetype, path_filetype);
|
|
1855
2328
|
if (referencepath_filetypeValidationError !== null) {
|
|
1856
2329
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1857
2330
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1864,7 +2337,7 @@ function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1864
2337
|
}
|
|
1865
2338
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
1866
2339
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
1867
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
2340
|
+
const referencepath_latestPublishedVersionValidationError = validate$c(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
1868
2341
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
1869
2342
|
let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
1870
2343
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1883,12 +2356,12 @@ function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1883
2356
|
})();
|
|
1884
2357
|
return v_error === undefined ? null : v_error;
|
|
1885
2358
|
}
|
|
1886
|
-
const select$
|
|
1887
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1888
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
2359
|
+
const select$r = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
2360
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$t();
|
|
2361
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$s();
|
|
1889
2362
|
return {
|
|
1890
2363
|
kind: 'Fragment',
|
|
1891
|
-
version: VERSION$
|
|
2364
|
+
version: VERSION$b,
|
|
1892
2365
|
private: [],
|
|
1893
2366
|
selections: [
|
|
1894
2367
|
{
|
|
@@ -1916,7 +2389,7 @@ const select$p = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
1916
2389
|
]
|
|
1917
2390
|
};
|
|
1918
2391
|
};
|
|
1919
|
-
function equals$
|
|
2392
|
+
function equals$b(existing, incoming) {
|
|
1920
2393
|
const existing_size = existing.size;
|
|
1921
2394
|
const incoming_size = incoming.size;
|
|
1922
2395
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1934,29 +2407,50 @@ function equals$a(existing, incoming) {
|
|
|
1934
2407
|
}
|
|
1935
2408
|
const existing_filetype = existing.filetype;
|
|
1936
2409
|
const incoming_filetype = incoming.filetype;
|
|
1937
|
-
if (!(equals$
|
|
2410
|
+
if (!(equals$d(existing_filetype, incoming_filetype))) {
|
|
1938
2411
|
return false;
|
|
1939
2412
|
}
|
|
1940
2413
|
const existing_latestPublishedVersion = existing.latestPublishedVersion;
|
|
1941
2414
|
const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
|
|
1942
|
-
if (!(equals$
|
|
2415
|
+
if (!(equals$c(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
|
|
1943
2416
|
return false;
|
|
1944
2417
|
}
|
|
1945
2418
|
return true;
|
|
1946
2419
|
}
|
|
1947
2420
|
|
|
1948
|
-
const VERSION$
|
|
1949
|
-
function validate$
|
|
2421
|
+
const VERSION$a = "15fa7211c500ebba9537b3c9921b39cf";
|
|
2422
|
+
function validate$a(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
1950
2423
|
const v_error = (() => {
|
|
1951
2424
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1952
2425
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1953
2426
|
}
|
|
1954
2427
|
const obj_contentDocument = obj.contentDocument;
|
|
1955
2428
|
const path_contentDocument = path + '.contentDocument';
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
2429
|
+
let obj_contentDocument_union0 = null;
|
|
2430
|
+
const obj_contentDocument_union0_error = (() => {
|
|
2431
|
+
const referencepath_contentDocumentValidationError = validate$b(obj_contentDocument, path_contentDocument);
|
|
2432
|
+
if (referencepath_contentDocumentValidationError !== null) {
|
|
2433
|
+
let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
2434
|
+
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2435
|
+
return new TypeError(message);
|
|
2436
|
+
}
|
|
2437
|
+
})();
|
|
2438
|
+
if (obj_contentDocument_union0_error != null) {
|
|
2439
|
+
obj_contentDocument_union0 = obj_contentDocument_union0_error.message;
|
|
2440
|
+
}
|
|
2441
|
+
let obj_contentDocument_union1 = null;
|
|
2442
|
+
const obj_contentDocument_union1_error = (() => {
|
|
2443
|
+
if (obj_contentDocument !== null) {
|
|
2444
|
+
return new TypeError('Expected "null" but received "' + typeof obj_contentDocument + '" (at "' + path_contentDocument + '")');
|
|
2445
|
+
}
|
|
2446
|
+
})();
|
|
2447
|
+
if (obj_contentDocument_union1_error != null) {
|
|
2448
|
+
obj_contentDocument_union1 = obj_contentDocument_union1_error.message;
|
|
2449
|
+
}
|
|
2450
|
+
if (obj_contentDocument_union0 && obj_contentDocument_union1) {
|
|
2451
|
+
let message = 'Object doesn\'t match union (at "' + path_contentDocument + '")';
|
|
2452
|
+
message += '\n' + obj_contentDocument_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2453
|
+
message += '\n' + obj_contentDocument_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1960
2454
|
return new TypeError(message);
|
|
1961
2455
|
}
|
|
1962
2456
|
const obj_filetype = obj.filetype;
|
|
@@ -1981,8 +2475,29 @@ function validate$9(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1981
2475
|
}
|
|
1982
2476
|
const obj_size = obj.size;
|
|
1983
2477
|
const path_size = path + '.size';
|
|
1984
|
-
|
|
1985
|
-
|
|
2478
|
+
let obj_size_union0 = null;
|
|
2479
|
+
const obj_size_union0_error = (() => {
|
|
2480
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
2481
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
2482
|
+
}
|
|
2483
|
+
})();
|
|
2484
|
+
if (obj_size_union0_error != null) {
|
|
2485
|
+
obj_size_union0 = obj_size_union0_error.message;
|
|
2486
|
+
}
|
|
2487
|
+
let obj_size_union1 = null;
|
|
2488
|
+
const obj_size_union1_error = (() => {
|
|
2489
|
+
if (obj_size !== null) {
|
|
2490
|
+
return new TypeError('Expected "null" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
2491
|
+
}
|
|
2492
|
+
})();
|
|
2493
|
+
if (obj_size_union1_error != null) {
|
|
2494
|
+
obj_size_union1 = obj_size_union1_error.message;
|
|
2495
|
+
}
|
|
2496
|
+
if (obj_size_union0 && obj_size_union1) {
|
|
2497
|
+
let message = 'Object doesn\'t match union (at "' + path_size + '")';
|
|
2498
|
+
message += '\n' + obj_size_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2499
|
+
message += '\n' + obj_size_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2500
|
+
return new TypeError(message);
|
|
1986
2501
|
}
|
|
1987
2502
|
const obj_slackPermalink = obj.slackPermalink;
|
|
1988
2503
|
const path_slackPermalink = path + '.slackPermalink';
|
|
@@ -1996,45 +2511,109 @@ function validate$9(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1996
2511
|
}
|
|
1997
2512
|
const obj_token = obj.token;
|
|
1998
2513
|
const path_token = path + '.token';
|
|
1999
|
-
|
|
2000
|
-
|
|
2514
|
+
let obj_token_union0 = null;
|
|
2515
|
+
const obj_token_union0_error = (() => {
|
|
2516
|
+
if (typeof obj_token !== 'string') {
|
|
2517
|
+
return new TypeError('Expected "string" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
2518
|
+
}
|
|
2519
|
+
})();
|
|
2520
|
+
if (obj_token_union0_error != null) {
|
|
2521
|
+
obj_token_union0 = obj_token_union0_error.message;
|
|
2522
|
+
}
|
|
2523
|
+
let obj_token_union1 = null;
|
|
2524
|
+
const obj_token_union1_error = (() => {
|
|
2525
|
+
if (obj_token !== null) {
|
|
2526
|
+
return new TypeError('Expected "null" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
2527
|
+
}
|
|
2528
|
+
})();
|
|
2529
|
+
if (obj_token_union1_error != null) {
|
|
2530
|
+
obj_token_union1 = obj_token_union1_error.message;
|
|
2531
|
+
}
|
|
2532
|
+
if (obj_token_union0 && obj_token_union1) {
|
|
2533
|
+
let message = 'Object doesn\'t match union (at "' + path_token + '")';
|
|
2534
|
+
message += '\n' + obj_token_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2535
|
+
message += '\n' + obj_token_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2536
|
+
return new TypeError(message);
|
|
2001
2537
|
}
|
|
2002
2538
|
const obj_uniqueKey = obj.uniqueKey;
|
|
2003
2539
|
const path_uniqueKey = path + '.uniqueKey';
|
|
2004
|
-
|
|
2005
|
-
|
|
2540
|
+
let obj_uniqueKey_union0 = null;
|
|
2541
|
+
const obj_uniqueKey_union0_error = (() => {
|
|
2542
|
+
if (typeof obj_uniqueKey !== 'string') {
|
|
2543
|
+
return new TypeError('Expected "string" but received "' + typeof obj_uniqueKey + '" (at "' + path_uniqueKey + '")');
|
|
2544
|
+
}
|
|
2545
|
+
})();
|
|
2546
|
+
if (obj_uniqueKey_union0_error != null) {
|
|
2547
|
+
obj_uniqueKey_union0 = obj_uniqueKey_union0_error.message;
|
|
2548
|
+
}
|
|
2549
|
+
let obj_uniqueKey_union1 = null;
|
|
2550
|
+
const obj_uniqueKey_union1_error = (() => {
|
|
2551
|
+
if (obj_uniqueKey !== null) {
|
|
2552
|
+
return new TypeError('Expected "null" but received "' + typeof obj_uniqueKey + '" (at "' + path_uniqueKey + '")');
|
|
2553
|
+
}
|
|
2554
|
+
})();
|
|
2555
|
+
if (obj_uniqueKey_union1_error != null) {
|
|
2556
|
+
obj_uniqueKey_union1 = obj_uniqueKey_union1_error.message;
|
|
2557
|
+
}
|
|
2558
|
+
if (obj_uniqueKey_union0 && obj_uniqueKey_union1) {
|
|
2559
|
+
let message = 'Object doesn\'t match union (at "' + path_uniqueKey + '")';
|
|
2560
|
+
message += '\n' + obj_uniqueKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2561
|
+
message += '\n' + obj_uniqueKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2562
|
+
return new TypeError(message);
|
|
2006
2563
|
}
|
|
2007
2564
|
const obj_url = obj.url;
|
|
2008
2565
|
const path_url = path + '.url';
|
|
2009
|
-
|
|
2010
|
-
|
|
2566
|
+
let obj_url_union0 = null;
|
|
2567
|
+
const obj_url_union0_error = (() => {
|
|
2568
|
+
if (typeof obj_url !== 'string') {
|
|
2569
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
2570
|
+
}
|
|
2571
|
+
})();
|
|
2572
|
+
if (obj_url_union0_error != null) {
|
|
2573
|
+
obj_url_union0 = obj_url_union0_error.message;
|
|
2574
|
+
}
|
|
2575
|
+
let obj_url_union1 = null;
|
|
2576
|
+
const obj_url_union1_error = (() => {
|
|
2577
|
+
if (obj_url !== null) {
|
|
2578
|
+
return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
2579
|
+
}
|
|
2580
|
+
})();
|
|
2581
|
+
if (obj_url_union1_error != null) {
|
|
2582
|
+
obj_url_union1 = obj_url_union1_error.message;
|
|
2583
|
+
}
|
|
2584
|
+
if (obj_url_union0 && obj_url_union1) {
|
|
2585
|
+
let message = 'Object doesn\'t match union (at "' + path_url + '")';
|
|
2586
|
+
message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2587
|
+
message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2588
|
+
return new TypeError(message);
|
|
2011
2589
|
}
|
|
2012
2590
|
})();
|
|
2013
2591
|
return v_error === undefined ? null : v_error;
|
|
2014
2592
|
}
|
|
2015
|
-
const RepresentationType$
|
|
2016
|
-
function keyBuilder$
|
|
2017
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2593
|
+
const RepresentationType$a = 'SlackBridgeFileOutputRepresentation';
|
|
2594
|
+
function keyBuilder$n(luvio, config) {
|
|
2595
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2018
2596
|
}
|
|
2019
2597
|
function keyBuilderFromType$3(luvio, object) {
|
|
2020
2598
|
const keyParams = {
|
|
2021
2599
|
uniqueKey: object.uniqueKey
|
|
2022
2600
|
};
|
|
2023
|
-
return keyBuilder$
|
|
2601
|
+
return keyBuilder$n(luvio, keyParams);
|
|
2024
2602
|
}
|
|
2025
|
-
function normalize$
|
|
2603
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
2026
2604
|
return input;
|
|
2027
2605
|
}
|
|
2028
|
-
const select$
|
|
2029
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2606
|
+
const select$q = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2607
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$r();
|
|
2030
2608
|
return {
|
|
2031
2609
|
kind: 'Fragment',
|
|
2032
|
-
version: VERSION$
|
|
2610
|
+
version: VERSION$a,
|
|
2033
2611
|
private: [],
|
|
2034
2612
|
selections: [
|
|
2035
2613
|
{
|
|
2036
2614
|
name: 'contentDocument',
|
|
2037
2615
|
kind: 'Object',
|
|
2616
|
+
nullable: true,
|
|
2038
2617
|
selections: SlackBridgeContentDocumentOutputRepresentation__selections
|
|
2039
2618
|
},
|
|
2040
2619
|
{
|
|
@@ -2080,12 +2659,7 @@ const select$o = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
2080
2659
|
]
|
|
2081
2660
|
};
|
|
2082
2661
|
};
|
|
2083
|
-
function equals$
|
|
2084
|
-
const existing_size = existing.size;
|
|
2085
|
-
const incoming_size = incoming.size;
|
|
2086
|
-
if (!(existing_size === incoming_size)) {
|
|
2087
|
-
return false;
|
|
2088
|
-
}
|
|
2662
|
+
function equals$a(existing, incoming) {
|
|
2089
2663
|
const existing_filetype = existing.filetype;
|
|
2090
2664
|
const incoming_filetype = incoming.filetype;
|
|
2091
2665
|
if (!(existing_filetype === incoming_filetype)) {
|
|
@@ -2116,6 +2690,19 @@ function equals$9(existing, incoming) {
|
|
|
2116
2690
|
if (!(existing_title === incoming_title)) {
|
|
2117
2691
|
return false;
|
|
2118
2692
|
}
|
|
2693
|
+
const existing_contentDocument = existing.contentDocument;
|
|
2694
|
+
const incoming_contentDocument = incoming.contentDocument;
|
|
2695
|
+
if (!(existing_contentDocument === incoming_contentDocument
|
|
2696
|
+
|| (existing_contentDocument != null &&
|
|
2697
|
+
incoming_contentDocument != null &&
|
|
2698
|
+
equals$b(existing_contentDocument, incoming_contentDocument)))) {
|
|
2699
|
+
return false;
|
|
2700
|
+
}
|
|
2701
|
+
const existing_size = existing.size;
|
|
2702
|
+
const incoming_size = incoming.size;
|
|
2703
|
+
if (!(existing_size === incoming_size)) {
|
|
2704
|
+
return false;
|
|
2705
|
+
}
|
|
2119
2706
|
const existing_token = existing.token;
|
|
2120
2707
|
const incoming_token = incoming.token;
|
|
2121
2708
|
if (!(existing_token === incoming_token)) {
|
|
@@ -2131,37 +2718,32 @@ function equals$9(existing, incoming) {
|
|
|
2131
2718
|
if (!(existing_url === incoming_url)) {
|
|
2132
2719
|
return false;
|
|
2133
2720
|
}
|
|
2134
|
-
const existing_contentDocument = existing.contentDocument;
|
|
2135
|
-
const incoming_contentDocument = incoming.contentDocument;
|
|
2136
|
-
if (!(equals$a(existing_contentDocument, incoming_contentDocument))) {
|
|
2137
|
-
return false;
|
|
2138
|
-
}
|
|
2139
2721
|
return true;
|
|
2140
2722
|
}
|
|
2141
|
-
const ingest$
|
|
2723
|
+
const ingest$a = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2142
2724
|
if (process.env.NODE_ENV !== 'production') {
|
|
2143
|
-
const validateError = validate$
|
|
2725
|
+
const validateError = validate$a(input);
|
|
2144
2726
|
if (validateError !== null) {
|
|
2145
2727
|
throw validateError;
|
|
2146
2728
|
}
|
|
2147
2729
|
}
|
|
2148
2730
|
const key = keyBuilderFromType$3(luvio, input);
|
|
2149
2731
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2150
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2732
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
|
|
2151
2733
|
return createLink(key);
|
|
2152
2734
|
};
|
|
2153
|
-
function getTypeCacheKeys$
|
|
2735
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
2154
2736
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2155
2737
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
2156
2738
|
rootKeySet.set(rootKey, {
|
|
2157
2739
|
namespace: keyPrefix,
|
|
2158
|
-
representationName: RepresentationType$
|
|
2740
|
+
representationName: RepresentationType$a,
|
|
2159
2741
|
mergeable: false
|
|
2160
2742
|
});
|
|
2161
2743
|
}
|
|
2162
2744
|
|
|
2163
|
-
const VERSION$
|
|
2164
|
-
function validate$
|
|
2745
|
+
const VERSION$9 = "a8502e4e4bb65313c6fbaa1f89f1e539";
|
|
2746
|
+
function validate$9(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
2165
2747
|
const v_error = (() => {
|
|
2166
2748
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2167
2749
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2248,8 +2830,29 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2248
2830
|
}
|
|
2249
2831
|
const obj_isBroadcast = obj.isBroadcast;
|
|
2250
2832
|
const path_isBroadcast = path + '.isBroadcast';
|
|
2251
|
-
|
|
2252
|
-
|
|
2833
|
+
let obj_isBroadcast_union0 = null;
|
|
2834
|
+
const obj_isBroadcast_union0_error = (() => {
|
|
2835
|
+
if (typeof obj_isBroadcast !== 'boolean') {
|
|
2836
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
|
|
2837
|
+
}
|
|
2838
|
+
})();
|
|
2839
|
+
if (obj_isBroadcast_union0_error != null) {
|
|
2840
|
+
obj_isBroadcast_union0 = obj_isBroadcast_union0_error.message;
|
|
2841
|
+
}
|
|
2842
|
+
let obj_isBroadcast_union1 = null;
|
|
2843
|
+
const obj_isBroadcast_union1_error = (() => {
|
|
2844
|
+
if (obj_isBroadcast !== null) {
|
|
2845
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
|
|
2846
|
+
}
|
|
2847
|
+
})();
|
|
2848
|
+
if (obj_isBroadcast_union1_error != null) {
|
|
2849
|
+
obj_isBroadcast_union1 = obj_isBroadcast_union1_error.message;
|
|
2850
|
+
}
|
|
2851
|
+
if (obj_isBroadcast_union0 && obj_isBroadcast_union1) {
|
|
2852
|
+
let message = 'Object doesn\'t match union (at "' + path_isBroadcast + '")';
|
|
2853
|
+
message += '\n' + obj_isBroadcast_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2854
|
+
message += '\n' + obj_isBroadcast_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2855
|
+
return new TypeError(message);
|
|
2253
2856
|
}
|
|
2254
2857
|
const obj_isEditable = obj.isEditable;
|
|
2255
2858
|
const path_isEditable = path + '.isEditable';
|
|
@@ -2258,8 +2861,29 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2258
2861
|
}
|
|
2259
2862
|
const obj_isEdited = obj.isEdited;
|
|
2260
2863
|
const path_isEdited = path + '.isEdited';
|
|
2261
|
-
|
|
2262
|
-
|
|
2864
|
+
let obj_isEdited_union0 = null;
|
|
2865
|
+
const obj_isEdited_union0_error = (() => {
|
|
2866
|
+
if (typeof obj_isEdited !== 'boolean') {
|
|
2867
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
|
|
2868
|
+
}
|
|
2869
|
+
})();
|
|
2870
|
+
if (obj_isEdited_union0_error != null) {
|
|
2871
|
+
obj_isEdited_union0 = obj_isEdited_union0_error.message;
|
|
2872
|
+
}
|
|
2873
|
+
let obj_isEdited_union1 = null;
|
|
2874
|
+
const obj_isEdited_union1_error = (() => {
|
|
2875
|
+
if (obj_isEdited !== null) {
|
|
2876
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
|
|
2877
|
+
}
|
|
2878
|
+
})();
|
|
2879
|
+
if (obj_isEdited_union1_error != null) {
|
|
2880
|
+
obj_isEdited_union1 = obj_isEdited_union1_error.message;
|
|
2881
|
+
}
|
|
2882
|
+
if (obj_isEdited_union0 && obj_isEdited_union1) {
|
|
2883
|
+
let message = 'Object doesn\'t match union (at "' + path_isEdited + '")';
|
|
2884
|
+
message += '\n' + obj_isEdited_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2885
|
+
message += '\n' + obj_isEdited_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2886
|
+
return new TypeError(message);
|
|
2263
2887
|
}
|
|
2264
2888
|
const obj_latestReplyTimestamp = obj.latestReplyTimestamp;
|
|
2265
2889
|
const path_latestReplyTimestamp = path + '.latestReplyTimestamp';
|
|
@@ -2305,7 +2929,7 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2305
2929
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
2306
2930
|
const obj_reactions_item = obj_reactions[i];
|
|
2307
2931
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
2308
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
2932
|
+
const referencepath_reactions_itemValidationError = validate$i(obj_reactions_item, path_reactions_item);
|
|
2309
2933
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
2310
2934
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
2311
2935
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2435,8 +3059,29 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2435
3059
|
}
|
|
2436
3060
|
const obj_type = obj.type;
|
|
2437
3061
|
const path_type = path + '.type';
|
|
2438
|
-
|
|
2439
|
-
|
|
3062
|
+
let obj_type_union0 = null;
|
|
3063
|
+
const obj_type_union0_error = (() => {
|
|
3064
|
+
if (typeof obj_type !== 'string') {
|
|
3065
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3066
|
+
}
|
|
3067
|
+
})();
|
|
3068
|
+
if (obj_type_union0_error != null) {
|
|
3069
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
3070
|
+
}
|
|
3071
|
+
let obj_type_union1 = null;
|
|
3072
|
+
const obj_type_union1_error = (() => {
|
|
3073
|
+
if (obj_type !== null) {
|
|
3074
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3075
|
+
}
|
|
3076
|
+
})();
|
|
3077
|
+
if (obj_type_union1_error != null) {
|
|
3078
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
3079
|
+
}
|
|
3080
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
3081
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
3082
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3083
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3084
|
+
return new TypeError(message);
|
|
2440
3085
|
}
|
|
2441
3086
|
const obj_url = obj.url;
|
|
2442
3087
|
const path_url = path + '.url';
|
|
@@ -2446,14 +3091,14 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2446
3091
|
})();
|
|
2447
3092
|
return v_error === undefined ? null : v_error;
|
|
2448
3093
|
}
|
|
2449
|
-
const RepresentationType$
|
|
2450
|
-
function normalize$
|
|
3094
|
+
const RepresentationType$9 = 'SlackBridgeMessageOutputRepresentation';
|
|
3095
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
2451
3096
|
const input_files = input.files;
|
|
2452
3097
|
const input_files_id = path.fullPath + '__files';
|
|
2453
3098
|
for (let i = 0; i < input_files.length; i++) {
|
|
2454
3099
|
const input_files_item = input_files[i];
|
|
2455
3100
|
let input_files_item_id = input_files_id + '__' + i;
|
|
2456
|
-
input_files[i] = ingest$
|
|
3101
|
+
input_files[i] = ingest$a(input_files_item, {
|
|
2457
3102
|
fullPath: input_files_item_id,
|
|
2458
3103
|
propertyName: i,
|
|
2459
3104
|
parent: {
|
|
@@ -2466,11 +3111,11 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
2466
3111
|
}
|
|
2467
3112
|
return input;
|
|
2468
3113
|
}
|
|
2469
|
-
const select$
|
|
2470
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
3114
|
+
const select$p = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
3115
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$y();
|
|
2471
3116
|
return {
|
|
2472
3117
|
kind: 'Fragment',
|
|
2473
|
-
version: VERSION$
|
|
3118
|
+
version: VERSION$9,
|
|
2474
3119
|
private: [],
|
|
2475
3120
|
selections: [
|
|
2476
3121
|
{
|
|
@@ -2487,7 +3132,7 @@ const select$n = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2487
3132
|
name: 'files',
|
|
2488
3133
|
kind: 'Link',
|
|
2489
3134
|
plural: true,
|
|
2490
|
-
fragment: select$
|
|
3135
|
+
fragment: select$q()
|
|
2491
3136
|
},
|
|
2492
3137
|
{
|
|
2493
3138
|
name: 'includesCustomEmoji',
|
|
@@ -2559,22 +3204,12 @@ const select$n = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2559
3204
|
]
|
|
2560
3205
|
};
|
|
2561
3206
|
};
|
|
2562
|
-
function equals$
|
|
2563
|
-
const existing_isBroadcast = existing.isBroadcast;
|
|
2564
|
-
const incoming_isBroadcast = incoming.isBroadcast;
|
|
2565
|
-
if (!(existing_isBroadcast === incoming_isBroadcast)) {
|
|
2566
|
-
return false;
|
|
2567
|
-
}
|
|
3207
|
+
function equals$9(existing, incoming) {
|
|
2568
3208
|
const existing_isEditable = existing.isEditable;
|
|
2569
3209
|
const incoming_isEditable = incoming.isEditable;
|
|
2570
3210
|
if (!(existing_isEditable === incoming_isEditable)) {
|
|
2571
3211
|
return false;
|
|
2572
3212
|
}
|
|
2573
|
-
const existing_isEdited = existing.isEdited;
|
|
2574
|
-
const incoming_isEdited = incoming.isEdited;
|
|
2575
|
-
if (!(existing_isEdited === incoming_isEdited)) {
|
|
2576
|
-
return false;
|
|
2577
|
-
}
|
|
2578
3213
|
const existing_message = existing.message;
|
|
2579
3214
|
const incoming_message = incoming.message;
|
|
2580
3215
|
if (!(existing_message === incoming_message)) {
|
|
@@ -2590,11 +3225,6 @@ function equals$8(existing, incoming) {
|
|
|
2590
3225
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
2591
3226
|
return false;
|
|
2592
3227
|
}
|
|
2593
|
-
const existing_type = existing.type;
|
|
2594
|
-
const incoming_type = incoming.type;
|
|
2595
|
-
if (!(existing_type === incoming_type)) {
|
|
2596
|
-
return false;
|
|
2597
|
-
}
|
|
2598
3228
|
const existing_url = existing.url;
|
|
2599
3229
|
const incoming_url = incoming.url;
|
|
2600
3230
|
if (!(existing_url === incoming_url)) {
|
|
@@ -2645,6 +3275,16 @@ function equals$8(existing, incoming) {
|
|
|
2645
3275
|
if (!(existing_includesCustomEmoji === incoming_includesCustomEmoji)) {
|
|
2646
3276
|
return false;
|
|
2647
3277
|
}
|
|
3278
|
+
const existing_isBroadcast = existing.isBroadcast;
|
|
3279
|
+
const incoming_isBroadcast = incoming.isBroadcast;
|
|
3280
|
+
if (!(existing_isBroadcast === incoming_isBroadcast)) {
|
|
3281
|
+
return false;
|
|
3282
|
+
}
|
|
3283
|
+
const existing_isEdited = existing.isEdited;
|
|
3284
|
+
const incoming_isEdited = incoming.isEdited;
|
|
3285
|
+
if (!(existing_isEdited === incoming_isEdited)) {
|
|
3286
|
+
return false;
|
|
3287
|
+
}
|
|
2648
3288
|
const existing_latestReplyTimestamp = existing.latestReplyTimestamp;
|
|
2649
3289
|
const incoming_latestReplyTimestamp = incoming.latestReplyTimestamp;
|
|
2650
3290
|
if (!(existing_latestReplyTimestamp === incoming_latestReplyTimestamp)) {
|
|
@@ -2653,7 +3293,7 @@ function equals$8(existing, incoming) {
|
|
|
2653
3293
|
const existing_reactions = existing.reactions;
|
|
2654
3294
|
const incoming_reactions = incoming.reactions;
|
|
2655
3295
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
2656
|
-
if (!(equals$
|
|
3296
|
+
if (!(equals$i(existing_reactions_item, incoming_reactions_item))) {
|
|
2657
3297
|
return false;
|
|
2658
3298
|
}
|
|
2659
3299
|
});
|
|
@@ -2690,36 +3330,41 @@ function equals$8(existing, incoming) {
|
|
|
2690
3330
|
if (!(existing_threadTs === incoming_threadTs)) {
|
|
2691
3331
|
return false;
|
|
2692
3332
|
}
|
|
3333
|
+
const existing_type = existing.type;
|
|
3334
|
+
const incoming_type = incoming.type;
|
|
3335
|
+
if (!(existing_type === incoming_type)) {
|
|
3336
|
+
return false;
|
|
3337
|
+
}
|
|
2693
3338
|
return true;
|
|
2694
3339
|
}
|
|
2695
|
-
const ingest$
|
|
3340
|
+
const ingest$9 = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2696
3341
|
if (process.env.NODE_ENV !== 'production') {
|
|
2697
|
-
const validateError = validate$
|
|
3342
|
+
const validateError = validate$9(input);
|
|
2698
3343
|
if (validateError !== null) {
|
|
2699
3344
|
throw validateError;
|
|
2700
3345
|
}
|
|
2701
3346
|
}
|
|
2702
3347
|
const key = path.fullPath;
|
|
2703
3348
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2704
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3349
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
|
|
2705
3350
|
return createLink(key);
|
|
2706
3351
|
};
|
|
2707
|
-
function getTypeCacheKeys$
|
|
3352
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
2708
3353
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2709
3354
|
const rootKey = fullPathFactory();
|
|
2710
3355
|
rootKeySet.set(rootKey, {
|
|
2711
3356
|
namespace: keyPrefix,
|
|
2712
|
-
representationName: RepresentationType$
|
|
3357
|
+
representationName: RepresentationType$9,
|
|
2713
3358
|
mergeable: false
|
|
2714
3359
|
});
|
|
2715
3360
|
const input_files_length = input.files.length;
|
|
2716
3361
|
for (let i = 0; i < input_files_length; i++) {
|
|
2717
|
-
getTypeCacheKeys$
|
|
3362
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.files[i]);
|
|
2718
3363
|
}
|
|
2719
3364
|
}
|
|
2720
3365
|
|
|
2721
|
-
const VERSION$
|
|
2722
|
-
function validate$
|
|
3366
|
+
const VERSION$8 = "5145ac2c241c561e4baa29b3884748dc";
|
|
3367
|
+
function validate$8(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
|
|
2723
3368
|
const v_error = (() => {
|
|
2724
3369
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2725
3370
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2770,14 +3415,14 @@ function validate$7(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
|
|
|
2770
3415
|
})();
|
|
2771
3416
|
return v_error === undefined ? null : v_error;
|
|
2772
3417
|
}
|
|
2773
|
-
const RepresentationType$
|
|
2774
|
-
function normalize$
|
|
3418
|
+
const RepresentationType$8 = 'SlackBridgeConversationHistoryOutputRepresentation';
|
|
3419
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
2775
3420
|
const input_messages = input.messages;
|
|
2776
3421
|
const input_messages_id = path.fullPath + '__messages';
|
|
2777
3422
|
for (let i = 0; i < input_messages.length; i++) {
|
|
2778
3423
|
const input_messages_item = input_messages[i];
|
|
2779
3424
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
2780
|
-
input_messages[i] = ingest$
|
|
3425
|
+
input_messages[i] = ingest$9(input_messages_item, {
|
|
2781
3426
|
fullPath: input_messages_item_id,
|
|
2782
3427
|
propertyName: i,
|
|
2783
3428
|
parent: {
|
|
@@ -2790,10 +3435,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
2790
3435
|
}
|
|
2791
3436
|
return input;
|
|
2792
3437
|
}
|
|
2793
|
-
const select$
|
|
3438
|
+
const select$o = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
2794
3439
|
return {
|
|
2795
3440
|
kind: 'Fragment',
|
|
2796
|
-
version: VERSION$
|
|
3441
|
+
version: VERSION$8,
|
|
2797
3442
|
private: [],
|
|
2798
3443
|
selections: [
|
|
2799
3444
|
{
|
|
@@ -2804,7 +3449,7 @@ const select$m = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
2804
3449
|
name: 'messages',
|
|
2805
3450
|
kind: 'Link',
|
|
2806
3451
|
plural: true,
|
|
2807
|
-
fragment: select$
|
|
3452
|
+
fragment: select$p()
|
|
2808
3453
|
},
|
|
2809
3454
|
{
|
|
2810
3455
|
name: 'nextCursor',
|
|
@@ -2813,7 +3458,7 @@ const select$m = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
2813
3458
|
]
|
|
2814
3459
|
};
|
|
2815
3460
|
};
|
|
2816
|
-
function equals$
|
|
3461
|
+
function equals$8(existing, incoming) {
|
|
2817
3462
|
const existing_hasMore = existing.hasMore;
|
|
2818
3463
|
const incoming_hasMore = incoming.hasMore;
|
|
2819
3464
|
if (!(existing_hasMore === incoming_hasMore)) {
|
|
@@ -2836,34 +3481,34 @@ function equals$7(existing, incoming) {
|
|
|
2836
3481
|
}
|
|
2837
3482
|
return true;
|
|
2838
3483
|
}
|
|
2839
|
-
const ingest$
|
|
3484
|
+
const ingest$8 = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2840
3485
|
if (process.env.NODE_ENV !== 'production') {
|
|
2841
|
-
const validateError = validate$
|
|
3486
|
+
const validateError = validate$8(input);
|
|
2842
3487
|
if (validateError !== null) {
|
|
2843
3488
|
throw validateError;
|
|
2844
3489
|
}
|
|
2845
3490
|
}
|
|
2846
3491
|
const key = path.fullPath;
|
|
2847
3492
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2848
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3493
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
|
|
2849
3494
|
return createLink(key);
|
|
2850
3495
|
};
|
|
2851
|
-
function getTypeCacheKeys$
|
|
3496
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
2852
3497
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2853
3498
|
const rootKey = fullPathFactory();
|
|
2854
3499
|
rootKeySet.set(rootKey, {
|
|
2855
3500
|
namespace: keyPrefix,
|
|
2856
|
-
representationName: RepresentationType$
|
|
3501
|
+
representationName: RepresentationType$8,
|
|
2857
3502
|
mergeable: false
|
|
2858
3503
|
});
|
|
2859
3504
|
const input_messages_length = input.messages.length;
|
|
2860
3505
|
for (let i = 0; i < input_messages_length; i++) {
|
|
2861
|
-
getTypeCacheKeys$
|
|
3506
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.messages[i], () => '');
|
|
2862
3507
|
}
|
|
2863
3508
|
}
|
|
2864
3509
|
|
|
2865
|
-
const VERSION$
|
|
2866
|
-
function validate$
|
|
3510
|
+
const VERSION$7 = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
3511
|
+
function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
2867
3512
|
const v_error = (() => {
|
|
2868
3513
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2869
3514
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3007,12 +3652,12 @@ function validate$6(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3007
3652
|
})();
|
|
3008
3653
|
return v_error === undefined ? null : v_error;
|
|
3009
3654
|
}
|
|
3010
|
-
const RepresentationType$
|
|
3011
|
-
function normalize$
|
|
3655
|
+
const RepresentationType$7 = 'SlackBridgeConversationOutputRepresentation';
|
|
3656
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
3012
3657
|
const input_contextUserInfo = input.contextUserInfo;
|
|
3013
3658
|
const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
|
|
3014
3659
|
if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
|
|
3015
|
-
input.contextUserInfo = ingest$
|
|
3660
|
+
input.contextUserInfo = ingest$c(input_contextUserInfo, {
|
|
3016
3661
|
fullPath: input_contextUserInfo_id,
|
|
3017
3662
|
propertyName: 'contextUserInfo',
|
|
3018
3663
|
parent: {
|
|
@@ -3026,7 +3671,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
3026
3671
|
const input_conversationInfo = input.conversationInfo;
|
|
3027
3672
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
3028
3673
|
if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
|
|
3029
|
-
input.conversationInfo = ingest$
|
|
3674
|
+
input.conversationInfo = ingest$b(input_conversationInfo, {
|
|
3030
3675
|
fullPath: input_conversationInfo_id,
|
|
3031
3676
|
propertyName: 'conversationInfo',
|
|
3032
3677
|
parent: {
|
|
@@ -3039,7 +3684,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
3039
3684
|
}
|
|
3040
3685
|
const input_history = input.history;
|
|
3041
3686
|
const input_history_id = path.fullPath + '__history';
|
|
3042
|
-
input.history = ingest$
|
|
3687
|
+
input.history = ingest$8(input_history, {
|
|
3043
3688
|
fullPath: input_history_id,
|
|
3044
3689
|
propertyName: 'history',
|
|
3045
3690
|
parent: {
|
|
@@ -3054,7 +3699,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
3054
3699
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
3055
3700
|
const input_userInfos_item = input_userInfos[i];
|
|
3056
3701
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
3057
|
-
input_userInfos[i] = ingest$
|
|
3702
|
+
input_userInfos[i] = ingest$c(input_userInfos_item, {
|
|
3058
3703
|
fullPath: input_userInfos_item_id,
|
|
3059
3704
|
propertyName: i,
|
|
3060
3705
|
parent: {
|
|
@@ -3067,10 +3712,10 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
3067
3712
|
}
|
|
3068
3713
|
return input;
|
|
3069
3714
|
}
|
|
3070
|
-
const select$
|
|
3715
|
+
const select$n = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3071
3716
|
return {
|
|
3072
3717
|
kind: 'Fragment',
|
|
3073
|
-
version: VERSION$
|
|
3718
|
+
version: VERSION$7,
|
|
3074
3719
|
private: [],
|
|
3075
3720
|
selections: [
|
|
3076
3721
|
{
|
|
@@ -3085,18 +3730,18 @@ const select$l = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3085
3730
|
name: 'contextUserInfo',
|
|
3086
3731
|
kind: 'Link',
|
|
3087
3732
|
nullable: true,
|
|
3088
|
-
fragment: select$
|
|
3733
|
+
fragment: select$v()
|
|
3089
3734
|
},
|
|
3090
3735
|
{
|
|
3091
3736
|
name: 'conversationInfo',
|
|
3092
3737
|
kind: 'Link',
|
|
3093
3738
|
nullable: true,
|
|
3094
|
-
fragment: select$
|
|
3739
|
+
fragment: select$u()
|
|
3095
3740
|
},
|
|
3096
3741
|
{
|
|
3097
3742
|
name: 'history',
|
|
3098
3743
|
kind: 'Link',
|
|
3099
|
-
fragment: select$
|
|
3744
|
+
fragment: select$o()
|
|
3100
3745
|
},
|
|
3101
3746
|
{
|
|
3102
3747
|
name: 'teamId',
|
|
@@ -3110,7 +3755,7 @@ const select$l = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3110
3755
|
name: 'userInfos',
|
|
3111
3756
|
kind: 'Link',
|
|
3112
3757
|
plural: true,
|
|
3113
|
-
fragment: select$
|
|
3758
|
+
fragment: select$v()
|
|
3114
3759
|
},
|
|
3115
3760
|
{
|
|
3116
3761
|
name: 'websocketUrl',
|
|
@@ -3119,7 +3764,7 @@ const select$l = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3119
3764
|
]
|
|
3120
3765
|
};
|
|
3121
3766
|
};
|
|
3122
|
-
function equals$
|
|
3767
|
+
function equals$7(existing, incoming) {
|
|
3123
3768
|
const existing_channelId = existing.channelId;
|
|
3124
3769
|
const incoming_channelId = incoming.channelId;
|
|
3125
3770
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3182,55 +3827,55 @@ function equals$6(existing, incoming) {
|
|
|
3182
3827
|
}
|
|
3183
3828
|
return true;
|
|
3184
3829
|
}
|
|
3185
|
-
const ingest$
|
|
3830
|
+
const ingest$7 = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3186
3831
|
if (process.env.NODE_ENV !== 'production') {
|
|
3187
|
-
const validateError = validate$
|
|
3832
|
+
const validateError = validate$7(input);
|
|
3188
3833
|
if (validateError !== null) {
|
|
3189
3834
|
throw validateError;
|
|
3190
3835
|
}
|
|
3191
3836
|
}
|
|
3192
3837
|
const key = path.fullPath;
|
|
3193
3838
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3194
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3839
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$7, RepresentationType$7, equals$7);
|
|
3195
3840
|
return createLink(key);
|
|
3196
3841
|
};
|
|
3197
|
-
function getTypeCacheKeys$
|
|
3842
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
3198
3843
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3199
3844
|
const rootKey = fullPathFactory();
|
|
3200
3845
|
rootKeySet.set(rootKey, {
|
|
3201
3846
|
namespace: keyPrefix,
|
|
3202
|
-
representationName: RepresentationType$
|
|
3847
|
+
representationName: RepresentationType$7,
|
|
3203
3848
|
mergeable: false
|
|
3204
3849
|
});
|
|
3205
3850
|
if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
|
|
3206
|
-
getTypeCacheKeys$
|
|
3851
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.contextUserInfo);
|
|
3207
3852
|
}
|
|
3208
3853
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3209
|
-
getTypeCacheKeys$
|
|
3854
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.conversationInfo);
|
|
3210
3855
|
}
|
|
3211
|
-
getTypeCacheKeys$
|
|
3856
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3212
3857
|
const input_userInfos_length = input.userInfos.length;
|
|
3213
3858
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
3214
|
-
getTypeCacheKeys$
|
|
3859
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.userInfos[i]);
|
|
3215
3860
|
}
|
|
3216
3861
|
}
|
|
3217
3862
|
|
|
3218
|
-
function select$
|
|
3219
|
-
return select$
|
|
3863
|
+
function select$m(luvio, params) {
|
|
3864
|
+
return select$n();
|
|
3220
3865
|
}
|
|
3221
|
-
function keyBuilder$
|
|
3866
|
+
function keyBuilder$m(luvio, params) {
|
|
3222
3867
|
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 + ')';
|
|
3223
3868
|
}
|
|
3224
|
-
function getResponseCacheKeys$
|
|
3225
|
-
getTypeCacheKeys$
|
|
3869
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
3870
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
|
|
3226
3871
|
}
|
|
3227
|
-
function ingestSuccess$
|
|
3872
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
3228
3873
|
const { body } = response;
|
|
3229
|
-
const key = keyBuilder$
|
|
3230
|
-
luvio.storeIngest(key, ingest$
|
|
3874
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
3875
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
3231
3876
|
const snapshot = luvio.storeLookup({
|
|
3232
3877
|
recordId: key,
|
|
3233
|
-
node: select$
|
|
3878
|
+
node: select$m(),
|
|
3234
3879
|
variables: {},
|
|
3235
3880
|
}, snapshotRefresh);
|
|
3236
3881
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3241,13 +3886,13 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3241
3886
|
deepFreeze(snapshot.data);
|
|
3242
3887
|
return snapshot;
|
|
3243
3888
|
}
|
|
3244
|
-
function ingestError$
|
|
3245
|
-
const key = keyBuilder$
|
|
3889
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
3890
|
+
const key = keyBuilder$m(luvio, params);
|
|
3246
3891
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3247
3892
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3248
3893
|
return errorSnapshot;
|
|
3249
3894
|
}
|
|
3250
|
-
function createResourceRequest$
|
|
3895
|
+
function createResourceRequest$f(config) {
|
|
3251
3896
|
const headers = {};
|
|
3252
3897
|
return {
|
|
3253
3898
|
baseUri: '/services/data/v63.0',
|
|
@@ -3261,7 +3906,7 @@ function createResourceRequest$e(config) {
|
|
|
3261
3906
|
};
|
|
3262
3907
|
}
|
|
3263
3908
|
|
|
3264
|
-
const adapterName$
|
|
3909
|
+
const adapterName$f = 'getSlackConversation';
|
|
3265
3910
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3266
3911
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3267
3912
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3273,106 +3918,106 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3273
3918
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3274
3919
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3275
3920
|
];
|
|
3276
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3277
|
-
const createResourceParams$
|
|
3278
|
-
function keyBuilder$
|
|
3279
|
-
const resourceParams = createResourceParams$
|
|
3280
|
-
return keyBuilder$
|
|
3921
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackConversation_ConfigPropertyMetadata);
|
|
3922
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(getSlackConversation_ConfigPropertyMetadata);
|
|
3923
|
+
function keyBuilder$l(luvio, config) {
|
|
3924
|
+
const resourceParams = createResourceParams$f(config);
|
|
3925
|
+
return keyBuilder$m(luvio, resourceParams);
|
|
3281
3926
|
}
|
|
3282
|
-
function typeCheckConfig$
|
|
3927
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
3283
3928
|
const config = {};
|
|
3284
|
-
typeCheckConfig$
|
|
3929
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3285
3930
|
return config;
|
|
3286
3931
|
}
|
|
3287
|
-
function validateAdapterConfig$
|
|
3932
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
3288
3933
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3289
3934
|
return null;
|
|
3290
3935
|
}
|
|
3291
3936
|
if (process.env.NODE_ENV !== 'production') {
|
|
3292
3937
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3293
3938
|
}
|
|
3294
|
-
const config = typeCheckConfig$
|
|
3939
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
3295
3940
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3296
3941
|
return null;
|
|
3297
3942
|
}
|
|
3298
3943
|
return config;
|
|
3299
3944
|
}
|
|
3300
|
-
function adapterFragment$
|
|
3301
|
-
createResourceParams$
|
|
3302
|
-
return select$
|
|
3945
|
+
function adapterFragment$9(luvio, config) {
|
|
3946
|
+
createResourceParams$f(config);
|
|
3947
|
+
return select$m();
|
|
3303
3948
|
}
|
|
3304
|
-
function onFetchResponseSuccess$
|
|
3305
|
-
const snapshot = ingestSuccess$
|
|
3949
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
3950
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
3306
3951
|
config,
|
|
3307
|
-
resolve: () => buildNetworkSnapshot$
|
|
3952
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
3308
3953
|
});
|
|
3309
3954
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3310
3955
|
}
|
|
3311
|
-
function onFetchResponseError$
|
|
3312
|
-
const snapshot = ingestError$
|
|
3956
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
3957
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
3313
3958
|
config,
|
|
3314
|
-
resolve: () => buildNetworkSnapshot$
|
|
3959
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
3315
3960
|
});
|
|
3316
3961
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3317
3962
|
}
|
|
3318
|
-
function buildNetworkSnapshot$
|
|
3319
|
-
const resourceParams = createResourceParams$
|
|
3320
|
-
const request = createResourceRequest$
|
|
3963
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
3964
|
+
const resourceParams = createResourceParams$f(config);
|
|
3965
|
+
const request = createResourceRequest$f(resourceParams);
|
|
3321
3966
|
return luvio.dispatchResourceRequest(request, options)
|
|
3322
3967
|
.then((response) => {
|
|
3323
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3968
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
3324
3969
|
const cache = new StoreKeyMap();
|
|
3325
|
-
getResponseCacheKeys$
|
|
3970
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
3326
3971
|
return cache;
|
|
3327
3972
|
});
|
|
3328
3973
|
}, (response) => {
|
|
3329
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3974
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
3330
3975
|
});
|
|
3331
3976
|
}
|
|
3332
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3333
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3977
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
3978
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
3334
3979
|
}
|
|
3335
|
-
function buildCachedSnapshotCachePolicy$
|
|
3980
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
3336
3981
|
const { luvio, config } = context;
|
|
3337
3982
|
const selector = {
|
|
3338
|
-
recordId: keyBuilder$
|
|
3339
|
-
node: adapterFragment$
|
|
3983
|
+
recordId: keyBuilder$l(luvio, config),
|
|
3984
|
+
node: adapterFragment$9(luvio, config),
|
|
3340
3985
|
variables: {},
|
|
3341
3986
|
};
|
|
3342
3987
|
const cacheSnapshot = storeLookup(selector, {
|
|
3343
3988
|
config,
|
|
3344
|
-
resolve: () => buildNetworkSnapshot$
|
|
3989
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
3345
3990
|
});
|
|
3346
3991
|
return cacheSnapshot;
|
|
3347
3992
|
}
|
|
3348
3993
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3349
|
-
const config = validateAdapterConfig$
|
|
3994
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3350
3995
|
// Invalid or incomplete config
|
|
3351
3996
|
if (config === null) {
|
|
3352
3997
|
return null;
|
|
3353
3998
|
}
|
|
3354
3999
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3355
|
-
buildCachedSnapshotCachePolicy$
|
|
4000
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
3356
4001
|
};
|
|
3357
4002
|
|
|
3358
|
-
function select$
|
|
3359
|
-
return select$
|
|
4003
|
+
function select$l(luvio, params) {
|
|
4004
|
+
return select$A();
|
|
3360
4005
|
}
|
|
3361
|
-
function keyBuilder$
|
|
3362
|
-
return keyBuilder$
|
|
4006
|
+
function keyBuilder$k(luvio, params) {
|
|
4007
|
+
return keyBuilder$v(luvio, {
|
|
3363
4008
|
channelId: params.urlParams.channelId
|
|
3364
4009
|
});
|
|
3365
4010
|
}
|
|
3366
|
-
function getResponseCacheKeys$
|
|
3367
|
-
getTypeCacheKeys$
|
|
4011
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
4012
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
3368
4013
|
}
|
|
3369
|
-
function ingestSuccess$
|
|
4014
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
3370
4015
|
const { body } = response;
|
|
3371
|
-
const key = keyBuilder$
|
|
3372
|
-
luvio.storeIngest(key, ingest$
|
|
4016
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
4017
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
3373
4018
|
const snapshot = luvio.storeLookup({
|
|
3374
4019
|
recordId: key,
|
|
3375
|
-
node: select$
|
|
4020
|
+
node: select$l(),
|
|
3376
4021
|
variables: {},
|
|
3377
4022
|
}, snapshotRefresh);
|
|
3378
4023
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3383,13 +4028,13 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3383
4028
|
deepFreeze(snapshot.data);
|
|
3384
4029
|
return snapshot;
|
|
3385
4030
|
}
|
|
3386
|
-
function ingestError$
|
|
3387
|
-
const key = keyBuilder$
|
|
4031
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
4032
|
+
const key = keyBuilder$k(luvio, params);
|
|
3388
4033
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3389
4034
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3390
4035
|
return errorSnapshot;
|
|
3391
4036
|
}
|
|
3392
|
-
function createResourceRequest$
|
|
4037
|
+
function createResourceRequest$e(config) {
|
|
3393
4038
|
const headers = {};
|
|
3394
4039
|
return {
|
|
3395
4040
|
baseUri: '/services/data/v63.0',
|
|
@@ -3407,99 +4052,99 @@ function createResourceRequestFromRepresentation$4(representation) {
|
|
|
3407
4052
|
urlParams: {},
|
|
3408
4053
|
};
|
|
3409
4054
|
config.urlParams.channelId = representation.channelId;
|
|
3410
|
-
return createResourceRequest$
|
|
4055
|
+
return createResourceRequest$e(config);
|
|
3411
4056
|
}
|
|
3412
4057
|
|
|
3413
|
-
const adapterName$
|
|
4058
|
+
const adapterName$e = 'getSlackConversationMember';
|
|
3414
4059
|
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
3415
4060
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3416
4061
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3417
4062
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3418
4063
|
];
|
|
3419
|
-
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3420
|
-
const createResourceParams$
|
|
3421
|
-
function keyBuilder$
|
|
3422
|
-
const resourceParams = createResourceParams$
|
|
3423
|
-
return keyBuilder$
|
|
4064
|
+
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4065
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(getSlackConversationMember_ConfigPropertyMetadata);
|
|
4066
|
+
function keyBuilder$j(luvio, config) {
|
|
4067
|
+
const resourceParams = createResourceParams$e(config);
|
|
4068
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
3424
4069
|
}
|
|
3425
|
-
function typeCheckConfig$
|
|
4070
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
3426
4071
|
const config = {};
|
|
3427
|
-
typeCheckConfig$
|
|
4072
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
3428
4073
|
return config;
|
|
3429
4074
|
}
|
|
3430
|
-
function validateAdapterConfig$
|
|
4075
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
3431
4076
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3432
4077
|
return null;
|
|
3433
4078
|
}
|
|
3434
4079
|
if (process.env.NODE_ENV !== 'production') {
|
|
3435
4080
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3436
4081
|
}
|
|
3437
|
-
const config = typeCheckConfig$
|
|
4082
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
3438
4083
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3439
4084
|
return null;
|
|
3440
4085
|
}
|
|
3441
4086
|
return config;
|
|
3442
4087
|
}
|
|
3443
|
-
function adapterFragment$
|
|
3444
|
-
createResourceParams$
|
|
3445
|
-
return select$
|
|
4088
|
+
function adapterFragment$8(luvio, config) {
|
|
4089
|
+
createResourceParams$e(config);
|
|
4090
|
+
return select$l();
|
|
3446
4091
|
}
|
|
3447
|
-
function onFetchResponseSuccess$
|
|
3448
|
-
const snapshot = ingestSuccess$
|
|
4092
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
4093
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
3449
4094
|
config,
|
|
3450
|
-
resolve: () => buildNetworkSnapshot$
|
|
4095
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3451
4096
|
});
|
|
3452
4097
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3453
4098
|
}
|
|
3454
|
-
function onFetchResponseError$
|
|
3455
|
-
const snapshot = ingestError$
|
|
4099
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
4100
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
3456
4101
|
config,
|
|
3457
|
-
resolve: () => buildNetworkSnapshot$
|
|
4102
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3458
4103
|
});
|
|
3459
4104
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3460
4105
|
}
|
|
3461
|
-
function buildNetworkSnapshot$
|
|
3462
|
-
const resourceParams = createResourceParams$
|
|
3463
|
-
const request = createResourceRequest$
|
|
4106
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
4107
|
+
const resourceParams = createResourceParams$e(config);
|
|
4108
|
+
const request = createResourceRequest$e(resourceParams);
|
|
3464
4109
|
return luvio.dispatchResourceRequest(request, options)
|
|
3465
4110
|
.then((response) => {
|
|
3466
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4111
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
3467
4112
|
const cache = new StoreKeyMap();
|
|
3468
|
-
getResponseCacheKeys$
|
|
4113
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
3469
4114
|
return cache;
|
|
3470
4115
|
});
|
|
3471
4116
|
}, (response) => {
|
|
3472
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4117
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
3473
4118
|
});
|
|
3474
4119
|
}
|
|
3475
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3476
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4120
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4121
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
3477
4122
|
}
|
|
3478
|
-
function buildCachedSnapshotCachePolicy$
|
|
4123
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
3479
4124
|
const { luvio, config } = context;
|
|
3480
4125
|
const selector = {
|
|
3481
|
-
recordId: keyBuilder$
|
|
3482
|
-
node: adapterFragment$
|
|
4126
|
+
recordId: keyBuilder$j(luvio, config),
|
|
4127
|
+
node: adapterFragment$8(luvio, config),
|
|
3483
4128
|
variables: {},
|
|
3484
4129
|
};
|
|
3485
4130
|
const cacheSnapshot = storeLookup(selector, {
|
|
3486
4131
|
config,
|
|
3487
|
-
resolve: () => buildNetworkSnapshot$
|
|
4132
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3488
4133
|
});
|
|
3489
4134
|
return cacheSnapshot;
|
|
3490
4135
|
}
|
|
3491
4136
|
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
3492
|
-
const config = validateAdapterConfig$
|
|
4137
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
3493
4138
|
// Invalid or incomplete config
|
|
3494
4139
|
if (config === null) {
|
|
3495
4140
|
return null;
|
|
3496
4141
|
}
|
|
3497
4142
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3498
|
-
buildCachedSnapshotCachePolicy$
|
|
4143
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
3499
4144
|
};
|
|
3500
4145
|
const notifyChangeFactory$4 = (luvio, options) => {
|
|
3501
4146
|
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamIdNotifyChange(configs) {
|
|
3502
|
-
const keys = configs.map(c => keyBuilder$
|
|
4147
|
+
const keys = configs.map(c => keyBuilder$v(luvio, c));
|
|
3503
4148
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
3504
4149
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
3505
4150
|
const { key, record: val } = entries[i];
|
|
@@ -3508,11 +4153,11 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
3508
4153
|
.then((response) => {
|
|
3509
4154
|
return luvio.handleSuccessResponse(() => {
|
|
3510
4155
|
const { body } = response;
|
|
3511
|
-
luvio.storeIngest(key, ingest$
|
|
4156
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
3512
4157
|
return luvio.storeBroadcast();
|
|
3513
4158
|
}, () => {
|
|
3514
4159
|
const cache = new StoreKeyMap();
|
|
3515
|
-
getTypeCacheKeys$
|
|
4160
|
+
getTypeCacheKeys$f(cache, luvio, response.body);
|
|
3516
4161
|
return cache;
|
|
3517
4162
|
});
|
|
3518
4163
|
}, (error) => {
|
|
@@ -3527,8 +4172,8 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
3527
4172
|
};
|
|
3528
4173
|
};
|
|
3529
4174
|
|
|
3530
|
-
const VERSION$
|
|
3531
|
-
function validate$
|
|
4175
|
+
const VERSION$6 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
4176
|
+
function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
3532
4177
|
const v_error = (() => {
|
|
3533
4178
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3534
4179
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3579,23 +4224,23 @@ function validate$5(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
3579
4224
|
})();
|
|
3580
4225
|
return v_error === undefined ? null : v_error;
|
|
3581
4226
|
}
|
|
3582
|
-
const RepresentationType$
|
|
3583
|
-
function keyBuilder$
|
|
3584
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4227
|
+
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
4228
|
+
function keyBuilder$i(luvio, config) {
|
|
4229
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
3585
4230
|
}
|
|
3586
4231
|
function keyBuilderFromType$2(luvio, object) {
|
|
3587
4232
|
const keyParams = {
|
|
3588
4233
|
channelId: object.channelId
|
|
3589
4234
|
};
|
|
3590
|
-
return keyBuilder$
|
|
4235
|
+
return keyBuilder$i(luvio, keyParams);
|
|
3591
4236
|
}
|
|
3592
|
-
function normalize$
|
|
4237
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
3593
4238
|
return input;
|
|
3594
4239
|
}
|
|
3595
|
-
const select$
|
|
4240
|
+
const select$k = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
3596
4241
|
return {
|
|
3597
4242
|
kind: 'Fragment',
|
|
3598
|
-
version: VERSION$
|
|
4243
|
+
version: VERSION$6,
|
|
3599
4244
|
private: [],
|
|
3600
4245
|
selections: [
|
|
3601
4246
|
{
|
|
@@ -3614,7 +4259,7 @@ const select$i = function SlackBridgeConversationMembersOutputRepresentationSele
|
|
|
3614
4259
|
]
|
|
3615
4260
|
};
|
|
3616
4261
|
};
|
|
3617
|
-
function equals$
|
|
4262
|
+
function equals$6(existing, incoming) {
|
|
3618
4263
|
const existing_channelId = existing.channelId;
|
|
3619
4264
|
const incoming_channelId = incoming.channelId;
|
|
3620
4265
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3637,46 +4282,46 @@ function equals$5(existing, incoming) {
|
|
|
3637
4282
|
}
|
|
3638
4283
|
return true;
|
|
3639
4284
|
}
|
|
3640
|
-
const ingest$
|
|
4285
|
+
const ingest$6 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3641
4286
|
if (process.env.NODE_ENV !== 'production') {
|
|
3642
|
-
const validateError = validate$
|
|
4287
|
+
const validateError = validate$6(input);
|
|
3643
4288
|
if (validateError !== null) {
|
|
3644
4289
|
throw validateError;
|
|
3645
4290
|
}
|
|
3646
4291
|
}
|
|
3647
4292
|
const key = keyBuilderFromType$2(luvio, input);
|
|
3648
4293
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3649
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4294
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
|
|
3650
4295
|
return createLink(key);
|
|
3651
4296
|
};
|
|
3652
|
-
function getTypeCacheKeys$
|
|
4297
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
3653
4298
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3654
4299
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
3655
4300
|
rootKeySet.set(rootKey, {
|
|
3656
4301
|
namespace: keyPrefix,
|
|
3657
|
-
representationName: RepresentationType$
|
|
4302
|
+
representationName: RepresentationType$6,
|
|
3658
4303
|
mergeable: false
|
|
3659
4304
|
});
|
|
3660
4305
|
}
|
|
3661
4306
|
|
|
3662
|
-
function select$
|
|
3663
|
-
return select$
|
|
4307
|
+
function select$j(luvio, params) {
|
|
4308
|
+
return select$k();
|
|
3664
4309
|
}
|
|
3665
|
-
function keyBuilder$
|
|
3666
|
-
return keyBuilder$
|
|
4310
|
+
function keyBuilder$h(luvio, params) {
|
|
4311
|
+
return keyBuilder$i(luvio, {
|
|
3667
4312
|
channelId: params.urlParams.channelId
|
|
3668
4313
|
});
|
|
3669
4314
|
}
|
|
3670
|
-
function getResponseCacheKeys$
|
|
3671
|
-
getTypeCacheKeys$
|
|
4315
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
4316
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
3672
4317
|
}
|
|
3673
|
-
function ingestSuccess$
|
|
4318
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
3674
4319
|
const { body } = response;
|
|
3675
|
-
const key = keyBuilder$
|
|
3676
|
-
luvio.storeIngest(key, ingest$
|
|
4320
|
+
const key = keyBuilder$h(luvio, resourceParams);
|
|
4321
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
3677
4322
|
const snapshot = luvio.storeLookup({
|
|
3678
4323
|
recordId: key,
|
|
3679
|
-
node: select$
|
|
4324
|
+
node: select$j(),
|
|
3680
4325
|
variables: {},
|
|
3681
4326
|
}, snapshotRefresh);
|
|
3682
4327
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3687,13 +4332,13 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3687
4332
|
deepFreeze(snapshot.data);
|
|
3688
4333
|
return snapshot;
|
|
3689
4334
|
}
|
|
3690
|
-
function ingestError$
|
|
3691
|
-
const key = keyBuilder$
|
|
4335
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
4336
|
+
const key = keyBuilder$h(luvio, params);
|
|
3692
4337
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3693
4338
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3694
4339
|
return errorSnapshot;
|
|
3695
4340
|
}
|
|
3696
|
-
function createResourceRequest$
|
|
4341
|
+
function createResourceRequest$d(config) {
|
|
3697
4342
|
const headers = {};
|
|
3698
4343
|
return {
|
|
3699
4344
|
baseUri: '/services/data/v63.0',
|
|
@@ -3711,98 +4356,98 @@ function createResourceRequestFromRepresentation$3(representation) {
|
|
|
3711
4356
|
urlParams: {},
|
|
3712
4357
|
};
|
|
3713
4358
|
config.urlParams.channelId = representation.channelId;
|
|
3714
|
-
return createResourceRequest$
|
|
4359
|
+
return createResourceRequest$d(config);
|
|
3715
4360
|
}
|
|
3716
4361
|
|
|
3717
|
-
const adapterName$
|
|
4362
|
+
const adapterName$d = 'getSlackConversationMembers';
|
|
3718
4363
|
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
3719
4364
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3720
4365
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3721
4366
|
];
|
|
3722
|
-
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3723
|
-
const createResourceParams$
|
|
3724
|
-
function keyBuilder$
|
|
3725
|
-
const resourceParams = createResourceParams$
|
|
3726
|
-
return keyBuilder$
|
|
4367
|
+
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4368
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4369
|
+
function keyBuilder$g(luvio, config) {
|
|
4370
|
+
const resourceParams = createResourceParams$d(config);
|
|
4371
|
+
return keyBuilder$h(luvio, resourceParams);
|
|
3727
4372
|
}
|
|
3728
|
-
function typeCheckConfig$
|
|
4373
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
3729
4374
|
const config = {};
|
|
3730
|
-
typeCheckConfig$
|
|
4375
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
3731
4376
|
return config;
|
|
3732
4377
|
}
|
|
3733
|
-
function validateAdapterConfig$
|
|
4378
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
3734
4379
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3735
4380
|
return null;
|
|
3736
4381
|
}
|
|
3737
4382
|
if (process.env.NODE_ENV !== 'production') {
|
|
3738
4383
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3739
4384
|
}
|
|
3740
|
-
const config = typeCheckConfig$
|
|
4385
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
3741
4386
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3742
4387
|
return null;
|
|
3743
4388
|
}
|
|
3744
4389
|
return config;
|
|
3745
4390
|
}
|
|
3746
|
-
function adapterFragment$
|
|
3747
|
-
createResourceParams$
|
|
3748
|
-
return select$
|
|
4391
|
+
function adapterFragment$7(luvio, config) {
|
|
4392
|
+
createResourceParams$d(config);
|
|
4393
|
+
return select$j();
|
|
3749
4394
|
}
|
|
3750
|
-
function onFetchResponseSuccess$
|
|
3751
|
-
const snapshot = ingestSuccess$
|
|
4395
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
4396
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
3752
4397
|
config,
|
|
3753
|
-
resolve: () => buildNetworkSnapshot$
|
|
4398
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3754
4399
|
});
|
|
3755
4400
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3756
4401
|
}
|
|
3757
|
-
function onFetchResponseError$
|
|
3758
|
-
const snapshot = ingestError$
|
|
4402
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
4403
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
3759
4404
|
config,
|
|
3760
|
-
resolve: () => buildNetworkSnapshot$
|
|
4405
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3761
4406
|
});
|
|
3762
4407
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3763
4408
|
}
|
|
3764
|
-
function buildNetworkSnapshot$
|
|
3765
|
-
const resourceParams = createResourceParams$
|
|
3766
|
-
const request = createResourceRequest$
|
|
4409
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
4410
|
+
const resourceParams = createResourceParams$d(config);
|
|
4411
|
+
const request = createResourceRequest$d(resourceParams);
|
|
3767
4412
|
return luvio.dispatchResourceRequest(request, options)
|
|
3768
4413
|
.then((response) => {
|
|
3769
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4414
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
3770
4415
|
const cache = new StoreKeyMap();
|
|
3771
|
-
getResponseCacheKeys$
|
|
4416
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
3772
4417
|
return cache;
|
|
3773
4418
|
});
|
|
3774
4419
|
}, (response) => {
|
|
3775
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4420
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
3776
4421
|
});
|
|
3777
4422
|
}
|
|
3778
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3779
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4423
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
4424
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
3780
4425
|
}
|
|
3781
|
-
function buildCachedSnapshotCachePolicy$
|
|
4426
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
3782
4427
|
const { luvio, config } = context;
|
|
3783
4428
|
const selector = {
|
|
3784
|
-
recordId: keyBuilder$
|
|
3785
|
-
node: adapterFragment$
|
|
4429
|
+
recordId: keyBuilder$g(luvio, config),
|
|
4430
|
+
node: adapterFragment$7(luvio, config),
|
|
3786
4431
|
variables: {},
|
|
3787
4432
|
};
|
|
3788
4433
|
const cacheSnapshot = storeLookup(selector, {
|
|
3789
4434
|
config,
|
|
3790
|
-
resolve: () => buildNetworkSnapshot$
|
|
4435
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3791
4436
|
});
|
|
3792
4437
|
return cacheSnapshot;
|
|
3793
4438
|
}
|
|
3794
4439
|
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
3795
|
-
const config = validateAdapterConfig$
|
|
4440
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
3796
4441
|
// Invalid or incomplete config
|
|
3797
4442
|
if (config === null) {
|
|
3798
4443
|
return null;
|
|
3799
4444
|
}
|
|
3800
4445
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3801
|
-
buildCachedSnapshotCachePolicy$
|
|
4446
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
3802
4447
|
};
|
|
3803
4448
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
3804
4449
|
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamIdNotifyChange(configs) {
|
|
3805
|
-
const keys = configs.map(c => keyBuilder$
|
|
4450
|
+
const keys = configs.map(c => keyBuilder$i(luvio, c));
|
|
3806
4451
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
3807
4452
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
3808
4453
|
const { key, record: val } = entries[i];
|
|
@@ -3811,11 +4456,11 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
3811
4456
|
.then((response) => {
|
|
3812
4457
|
return luvio.handleSuccessResponse(() => {
|
|
3813
4458
|
const { body } = response;
|
|
3814
|
-
luvio.storeIngest(key, ingest$
|
|
4459
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
3815
4460
|
return luvio.storeBroadcast();
|
|
3816
4461
|
}, () => {
|
|
3817
4462
|
const cache = new StoreKeyMap();
|
|
3818
|
-
getTypeCacheKeys$
|
|
4463
|
+
getTypeCacheKeys$6(cache, luvio, response.body);
|
|
3819
4464
|
return cache;
|
|
3820
4465
|
});
|
|
3821
4466
|
}, (error) => {
|
|
@@ -3830,8 +4475,8 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
3830
4475
|
};
|
|
3831
4476
|
};
|
|
3832
4477
|
|
|
3833
|
-
const VERSION$
|
|
3834
|
-
function validate$
|
|
4478
|
+
const VERSION$5 = "8eb41a29d901a4cc9611e387d180f0da";
|
|
4479
|
+
function validate$5(obj, path = 'SlackBridgeCustomEmojisOutputRepresentation') {
|
|
3835
4480
|
const v_error = (() => {
|
|
3836
4481
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3837
4482
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3858,14 +4503,14 @@ function validate$4(obj, path = 'SlackBridgeCustomEmojisOutputRepresentation') {
|
|
|
3858
4503
|
})();
|
|
3859
4504
|
return v_error === undefined ? null : v_error;
|
|
3860
4505
|
}
|
|
3861
|
-
const RepresentationType$
|
|
3862
|
-
function normalize$
|
|
4506
|
+
const RepresentationType$5 = 'SlackBridgeCustomEmojisOutputRepresentation';
|
|
4507
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
3863
4508
|
return input;
|
|
3864
4509
|
}
|
|
3865
|
-
const select$
|
|
4510
|
+
const select$i = function SlackBridgeCustomEmojisOutputRepresentationSelect() {
|
|
3866
4511
|
return {
|
|
3867
4512
|
kind: 'Fragment',
|
|
3868
|
-
version: VERSION$
|
|
4513
|
+
version: VERSION$5,
|
|
3869
4514
|
private: [],
|
|
3870
4515
|
selections: [
|
|
3871
4516
|
{
|
|
@@ -3880,7 +4525,7 @@ const select$g = function SlackBridgeCustomEmojisOutputRepresentationSelect() {
|
|
|
3880
4525
|
]
|
|
3881
4526
|
};
|
|
3882
4527
|
};
|
|
3883
|
-
function equals$
|
|
4528
|
+
function equals$5(existing, incoming) {
|
|
3884
4529
|
const existing_teamId = existing.teamId;
|
|
3885
4530
|
const incoming_teamId = incoming.teamId;
|
|
3886
4531
|
if (!(existing_teamId === incoming_teamId)) {
|
|
@@ -3898,44 +4543,178 @@ function equals$4(existing, incoming) {
|
|
|
3898
4543
|
}
|
|
3899
4544
|
return true;
|
|
3900
4545
|
}
|
|
3901
|
-
const ingest$
|
|
4546
|
+
const ingest$5 = function SlackBridgeCustomEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3902
4547
|
if (process.env.NODE_ENV !== 'production') {
|
|
3903
|
-
const validateError = validate$
|
|
4548
|
+
const validateError = validate$5(input);
|
|
3904
4549
|
if (validateError !== null) {
|
|
3905
4550
|
throw validateError;
|
|
3906
4551
|
}
|
|
3907
4552
|
}
|
|
3908
4553
|
const key = path.fullPath;
|
|
3909
4554
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3910
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4555
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SlackBridge", VERSION$5, RepresentationType$5, equals$5);
|
|
3911
4556
|
return createLink(key);
|
|
3912
4557
|
};
|
|
3913
|
-
function getTypeCacheKeys$
|
|
4558
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
3914
4559
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3915
4560
|
const rootKey = fullPathFactory();
|
|
3916
4561
|
rootKeySet.set(rootKey, {
|
|
3917
4562
|
namespace: keyPrefix,
|
|
3918
|
-
representationName: RepresentationType$
|
|
4563
|
+
representationName: RepresentationType$5,
|
|
3919
4564
|
mergeable: false
|
|
3920
4565
|
});
|
|
3921
4566
|
}
|
|
3922
4567
|
|
|
3923
|
-
function select$
|
|
3924
|
-
return select$
|
|
4568
|
+
function select$h(luvio, params) {
|
|
4569
|
+
return select$i();
|
|
3925
4570
|
}
|
|
3926
|
-
function keyBuilder$
|
|
4571
|
+
function keyBuilder$f(luvio, params) {
|
|
3927
4572
|
return keyPrefix + '::SlackBridgeCustomEmojisOutputRepresentation:(' + 'teamId:' + params.urlParams.teamId + ')';
|
|
3928
4573
|
}
|
|
4574
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
4575
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
4576
|
+
}
|
|
4577
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
4578
|
+
const { body } = response;
|
|
4579
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
4580
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
4581
|
+
const snapshot = luvio.storeLookup({
|
|
4582
|
+
recordId: key,
|
|
4583
|
+
node: select$h(),
|
|
4584
|
+
variables: {},
|
|
4585
|
+
}, snapshotRefresh);
|
|
4586
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4587
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4588
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4589
|
+
}
|
|
4590
|
+
}
|
|
4591
|
+
deepFreeze(snapshot.data);
|
|
4592
|
+
return snapshot;
|
|
4593
|
+
}
|
|
4594
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
4595
|
+
const key = keyBuilder$f(luvio, params);
|
|
4596
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4597
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
4598
|
+
return errorSnapshot;
|
|
4599
|
+
}
|
|
4600
|
+
function createResourceRequest$c(config) {
|
|
4601
|
+
const headers = {};
|
|
4602
|
+
return {
|
|
4603
|
+
baseUri: '/services/data/v63.0',
|
|
4604
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/emojis',
|
|
4605
|
+
method: 'get',
|
|
4606
|
+
body: null,
|
|
4607
|
+
urlParams: config.urlParams,
|
|
4608
|
+
queryParams: {},
|
|
4609
|
+
headers,
|
|
4610
|
+
priority: 'normal',
|
|
4611
|
+
};
|
|
4612
|
+
}
|
|
4613
|
+
|
|
4614
|
+
const adapterName$c = 'getSlackCustomEmoji';
|
|
4615
|
+
const getSlackCustomEmoji_ConfigPropertyMetadata = [
|
|
4616
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4617
|
+
];
|
|
4618
|
+
const getSlackCustomEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
4619
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
4620
|
+
function keyBuilder$e(luvio, config) {
|
|
4621
|
+
const resourceParams = createResourceParams$c(config);
|
|
4622
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
4623
|
+
}
|
|
4624
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
4625
|
+
const config = {};
|
|
4626
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
4627
|
+
return config;
|
|
4628
|
+
}
|
|
4629
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
4630
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4631
|
+
return null;
|
|
4632
|
+
}
|
|
4633
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4634
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4635
|
+
}
|
|
4636
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
4637
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4638
|
+
return null;
|
|
4639
|
+
}
|
|
4640
|
+
return config;
|
|
4641
|
+
}
|
|
4642
|
+
function adapterFragment$6(luvio, config) {
|
|
4643
|
+
createResourceParams$c(config);
|
|
4644
|
+
return select$h();
|
|
4645
|
+
}
|
|
4646
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
4647
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
4648
|
+
config,
|
|
4649
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
4650
|
+
});
|
|
4651
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4652
|
+
}
|
|
4653
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
4654
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
4655
|
+
config,
|
|
4656
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
4657
|
+
});
|
|
4658
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4659
|
+
}
|
|
4660
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
4661
|
+
const resourceParams = createResourceParams$c(config);
|
|
4662
|
+
const request = createResourceRequest$c(resourceParams);
|
|
4663
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4664
|
+
.then((response) => {
|
|
4665
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
4666
|
+
const cache = new StoreKeyMap();
|
|
4667
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
4668
|
+
return cache;
|
|
4669
|
+
});
|
|
4670
|
+
}, (response) => {
|
|
4671
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
4672
|
+
});
|
|
4673
|
+
}
|
|
4674
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
4675
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
4676
|
+
}
|
|
4677
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
4678
|
+
const { luvio, config } = context;
|
|
4679
|
+
const selector = {
|
|
4680
|
+
recordId: keyBuilder$e(luvio, config),
|
|
4681
|
+
node: adapterFragment$6(luvio, config),
|
|
4682
|
+
variables: {},
|
|
4683
|
+
};
|
|
4684
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4685
|
+
config,
|
|
4686
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
4687
|
+
});
|
|
4688
|
+
return cacheSnapshot;
|
|
4689
|
+
}
|
|
4690
|
+
const getSlackCustomEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackCustomEmoji(untrustedConfig, requestContext) {
|
|
4691
|
+
const config = validateAdapterConfig$c(untrustedConfig, getSlackCustomEmoji_ConfigPropertyNames);
|
|
4692
|
+
// Invalid or incomplete config
|
|
4693
|
+
if (config === null) {
|
|
4694
|
+
return null;
|
|
4695
|
+
}
|
|
4696
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4697
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
4698
|
+
};
|
|
4699
|
+
|
|
4700
|
+
function select$g(luvio, params) {
|
|
4701
|
+
return select$z();
|
|
4702
|
+
}
|
|
4703
|
+
function keyBuilder$d(luvio, params) {
|
|
4704
|
+
return keyBuilder$t(luvio, {
|
|
4705
|
+
channelId: params.urlParams.channelId
|
|
4706
|
+
});
|
|
4707
|
+
}
|
|
3929
4708
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
3930
|
-
getTypeCacheKeys$
|
|
4709
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
3931
4710
|
}
|
|
3932
4711
|
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
3933
4712
|
const { body } = response;
|
|
3934
4713
|
const key = keyBuilder$d(luvio, resourceParams);
|
|
3935
|
-
luvio.storeIngest(key, ingest$
|
|
4714
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
3936
4715
|
const snapshot = luvio.storeLookup({
|
|
3937
4716
|
recordId: key,
|
|
3938
|
-
node: select$
|
|
4717
|
+
node: select$g(),
|
|
3939
4718
|
variables: {},
|
|
3940
4719
|
}, snapshotRefresh);
|
|
3941
4720
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3956,7 +4735,7 @@ function createResourceRequest$b(config) {
|
|
|
3956
4735
|
const headers = {};
|
|
3957
4736
|
return {
|
|
3958
4737
|
baseUri: '/services/data/v63.0',
|
|
3959
|
-
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/
|
|
4738
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '',
|
|
3960
4739
|
method: 'get',
|
|
3961
4740
|
body: null,
|
|
3962
4741
|
urlParams: config.urlParams,
|
|
@@ -3965,20 +4744,29 @@ function createResourceRequest$b(config) {
|
|
|
3965
4744
|
priority: 'normal',
|
|
3966
4745
|
};
|
|
3967
4746
|
}
|
|
4747
|
+
function createResourceRequestFromRepresentation$2(representation) {
|
|
4748
|
+
const config = {
|
|
4749
|
+
urlParams: {},
|
|
4750
|
+
};
|
|
4751
|
+
config.urlParams.channelId = representation.channelId;
|
|
4752
|
+
return createResourceRequest$b(config);
|
|
4753
|
+
}
|
|
3968
4754
|
|
|
3969
|
-
const adapterName$b = '
|
|
3970
|
-
const
|
|
4755
|
+
const adapterName$b = 'getSlackMessage';
|
|
4756
|
+
const getSlackMessage_ConfigPropertyMetadata = [
|
|
4757
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4758
|
+
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3971
4759
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3972
4760
|
];
|
|
3973
|
-
const
|
|
3974
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
4761
|
+
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackMessage_ConfigPropertyMetadata);
|
|
4762
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(getSlackMessage_ConfigPropertyMetadata);
|
|
3975
4763
|
function keyBuilder$c(luvio, config) {
|
|
3976
4764
|
const resourceParams = createResourceParams$b(config);
|
|
3977
4765
|
return keyBuilder$d(luvio, resourceParams);
|
|
3978
4766
|
}
|
|
3979
4767
|
function typeCheckConfig$b(untrustedConfig) {
|
|
3980
4768
|
const config = {};
|
|
3981
|
-
typeCheckConfig$
|
|
4769
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
3982
4770
|
return config;
|
|
3983
4771
|
}
|
|
3984
4772
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -3996,7 +4784,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
|
3996
4784
|
}
|
|
3997
4785
|
function adapterFragment$5(luvio, config) {
|
|
3998
4786
|
createResourceParams$b(config);
|
|
3999
|
-
return select$
|
|
4787
|
+
return select$g();
|
|
4000
4788
|
}
|
|
4001
4789
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
4002
4790
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
@@ -4027,7 +4815,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
4027
4815
|
});
|
|
4028
4816
|
}
|
|
4029
4817
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
4030
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4818
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
4031
4819
|
}
|
|
4032
4820
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
4033
4821
|
const { luvio, config } = context;
|
|
@@ -4036,37 +4824,178 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
4036
4824
|
node: adapterFragment$5(luvio, config),
|
|
4037
4825
|
variables: {},
|
|
4038
4826
|
};
|
|
4039
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
4040
|
-
config,
|
|
4041
|
-
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4042
|
-
});
|
|
4043
|
-
return cacheSnapshot;
|
|
4827
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4828
|
+
config,
|
|
4829
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4830
|
+
});
|
|
4831
|
+
return cacheSnapshot;
|
|
4832
|
+
}
|
|
4833
|
+
const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackMessage(untrustedConfig, requestContext) {
|
|
4834
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSlackMessage_ConfigPropertyNames);
|
|
4835
|
+
// Invalid or incomplete config
|
|
4836
|
+
if (config === null) {
|
|
4837
|
+
return null;
|
|
4838
|
+
}
|
|
4839
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4840
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
4841
|
+
};
|
|
4842
|
+
const notifyChangeFactory$2 = (luvio, options) => {
|
|
4843
|
+
return function getConnectSlackbridgeTeamChannelMessagesByChannelIdAndMessageTsAndTeamIdNotifyChange(configs) {
|
|
4844
|
+
const keys = configs.map(c => keyBuilder$t(luvio, c));
|
|
4845
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4846
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4847
|
+
const { key, record: val } = entries[i];
|
|
4848
|
+
const refreshRequest = createResourceRequestFromRepresentation$2(val);
|
|
4849
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4850
|
+
.then((response) => {
|
|
4851
|
+
return luvio.handleSuccessResponse(() => {
|
|
4852
|
+
const { body } = response;
|
|
4853
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
4854
|
+
return luvio.storeBroadcast();
|
|
4855
|
+
}, () => {
|
|
4856
|
+
const cache = new StoreKeyMap();
|
|
4857
|
+
getTypeCacheKeys$e(cache, luvio, response.body);
|
|
4858
|
+
return cache;
|
|
4859
|
+
});
|
|
4860
|
+
}, (error) => {
|
|
4861
|
+
return luvio.handleErrorResponse(() => {
|
|
4862
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4863
|
+
luvio.storeIngestError(key, errorSnapshot, undefined);
|
|
4864
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4865
|
+
});
|
|
4866
|
+
});
|
|
4867
|
+
}
|
|
4868
|
+
});
|
|
4869
|
+
};
|
|
4870
|
+
};
|
|
4871
|
+
|
|
4872
|
+
const VERSION$4 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
4873
|
+
function validate$4(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
4874
|
+
const v_error = (() => {
|
|
4875
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4876
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4877
|
+
}
|
|
4878
|
+
const obj_conversationInfo = obj.conversationInfo;
|
|
4879
|
+
const path_conversationInfo = path + '.conversationInfo';
|
|
4880
|
+
if (typeof obj_conversationInfo !== 'object') {
|
|
4881
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfo + '" (at "' + path_conversationInfo + '")');
|
|
4882
|
+
}
|
|
4883
|
+
const obj_relatedRecordId = obj.relatedRecordId;
|
|
4884
|
+
const path_relatedRecordId = path + '.relatedRecordId';
|
|
4885
|
+
if (typeof obj_relatedRecordId !== 'string') {
|
|
4886
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedRecordId + '" (at "' + path_relatedRecordId + '")');
|
|
4887
|
+
}
|
|
4888
|
+
const obj_teamId = obj.teamId;
|
|
4889
|
+
const path_teamId = path + '.teamId';
|
|
4890
|
+
if (typeof obj_teamId !== 'string') {
|
|
4891
|
+
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
4892
|
+
}
|
|
4893
|
+
})();
|
|
4894
|
+
return v_error === undefined ? null : v_error;
|
|
4895
|
+
}
|
|
4896
|
+
const RepresentationType$4 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
4897
|
+
function keyBuilder$b(luvio, config) {
|
|
4898
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.relatedRecordId;
|
|
4899
|
+
}
|
|
4900
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
4901
|
+
const keyParams = {
|
|
4902
|
+
relatedRecordId: object.relatedRecordId
|
|
4903
|
+
};
|
|
4904
|
+
return keyBuilder$b(luvio, keyParams);
|
|
4905
|
+
}
|
|
4906
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4907
|
+
const input_conversationInfo = input.conversationInfo;
|
|
4908
|
+
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
4909
|
+
input.conversationInfo = ingest$b(input_conversationInfo, {
|
|
4910
|
+
fullPath: input_conversationInfo_id,
|
|
4911
|
+
propertyName: 'conversationInfo',
|
|
4912
|
+
parent: {
|
|
4913
|
+
data: input,
|
|
4914
|
+
key: path.fullPath,
|
|
4915
|
+
existing: existing,
|
|
4916
|
+
},
|
|
4917
|
+
ttl: path.ttl
|
|
4918
|
+
}, luvio, store, timestamp);
|
|
4919
|
+
return input;
|
|
4920
|
+
}
|
|
4921
|
+
const select$f = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
4922
|
+
return {
|
|
4923
|
+
kind: 'Fragment',
|
|
4924
|
+
version: VERSION$4,
|
|
4925
|
+
private: [],
|
|
4926
|
+
selections: [
|
|
4927
|
+
{
|
|
4928
|
+
name: 'conversationInfo',
|
|
4929
|
+
kind: 'Link',
|
|
4930
|
+
fragment: select$u()
|
|
4931
|
+
},
|
|
4932
|
+
{
|
|
4933
|
+
name: 'relatedRecordId',
|
|
4934
|
+
kind: 'Scalar'
|
|
4935
|
+
},
|
|
4936
|
+
{
|
|
4937
|
+
name: 'teamId',
|
|
4938
|
+
kind: 'Scalar'
|
|
4939
|
+
}
|
|
4940
|
+
]
|
|
4941
|
+
};
|
|
4942
|
+
};
|
|
4943
|
+
function equals$4(existing, incoming) {
|
|
4944
|
+
const existing_relatedRecordId = existing.relatedRecordId;
|
|
4945
|
+
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
4946
|
+
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
4947
|
+
return false;
|
|
4948
|
+
}
|
|
4949
|
+
const existing_teamId = existing.teamId;
|
|
4950
|
+
const incoming_teamId = incoming.teamId;
|
|
4951
|
+
if (!(existing_teamId === incoming_teamId)) {
|
|
4952
|
+
return false;
|
|
4953
|
+
}
|
|
4954
|
+
const existing_conversationInfo = existing.conversationInfo;
|
|
4955
|
+
const incoming_conversationInfo = incoming.conversationInfo;
|
|
4956
|
+
if (!(existing_conversationInfo.__ref === incoming_conversationInfo.__ref)) {
|
|
4957
|
+
return false;
|
|
4958
|
+
}
|
|
4959
|
+
return true;
|
|
4044
4960
|
}
|
|
4045
|
-
const
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4961
|
+
const ingest$4 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4962
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4963
|
+
const validateError = validate$4(input);
|
|
4964
|
+
if (validateError !== null) {
|
|
4965
|
+
throw validateError;
|
|
4966
|
+
}
|
|
4050
4967
|
}
|
|
4051
|
-
|
|
4052
|
-
|
|
4968
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
4969
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4970
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SlackBridge", VERSION$4, RepresentationType$4, equals$4);
|
|
4971
|
+
return createLink(key);
|
|
4053
4972
|
};
|
|
4973
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
4974
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4975
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
4976
|
+
rootKeySet.set(rootKey, {
|
|
4977
|
+
namespace: keyPrefix,
|
|
4978
|
+
representationName: RepresentationType$4,
|
|
4979
|
+
mergeable: false
|
|
4980
|
+
});
|
|
4981
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.conversationInfo);
|
|
4982
|
+
}
|
|
4054
4983
|
|
|
4055
4984
|
function select$e(luvio, params) {
|
|
4056
|
-
return select$
|
|
4985
|
+
return select$f();
|
|
4057
4986
|
}
|
|
4058
|
-
function keyBuilder$
|
|
4059
|
-
return keyBuilder$
|
|
4060
|
-
|
|
4987
|
+
function keyBuilder$a(luvio, params) {
|
|
4988
|
+
return keyBuilder$b(luvio, {
|
|
4989
|
+
relatedRecordId: params.urlParams.relatedRecordId
|
|
4061
4990
|
});
|
|
4062
4991
|
}
|
|
4063
4992
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
4064
|
-
getTypeCacheKeys$
|
|
4993
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
4065
4994
|
}
|
|
4066
4995
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
4067
4996
|
const { body } = response;
|
|
4068
|
-
const key = keyBuilder$
|
|
4069
|
-
luvio.storeIngest(key, ingest$
|
|
4997
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
4998
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
4070
4999
|
const snapshot = luvio.storeLookup({
|
|
4071
5000
|
recordId: key,
|
|
4072
5001
|
node: select$e(),
|
|
@@ -4081,7 +5010,7 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4081
5010
|
return snapshot;
|
|
4082
5011
|
}
|
|
4083
5012
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
4084
|
-
const key = keyBuilder$
|
|
5013
|
+
const key = keyBuilder$a(luvio, params);
|
|
4085
5014
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4086
5015
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4087
5016
|
return errorSnapshot;
|
|
@@ -4090,7 +5019,7 @@ function createResourceRequest$a(config) {
|
|
|
4090
5019
|
const headers = {};
|
|
4091
5020
|
return {
|
|
4092
5021
|
baseUri: '/services/data/v63.0',
|
|
4093
|
-
basePath: '/connect/slackbridge/
|
|
5022
|
+
basePath: '/connect/slackbridge/record_channels/' + config.urlParams.relatedRecordId + '',
|
|
4094
5023
|
method: 'get',
|
|
4095
5024
|
body: null,
|
|
4096
5025
|
urlParams: config.urlParams,
|
|
@@ -4099,29 +5028,27 @@ function createResourceRequest$a(config) {
|
|
|
4099
5028
|
priority: 'normal',
|
|
4100
5029
|
};
|
|
4101
5030
|
}
|
|
4102
|
-
function createResourceRequestFromRepresentation$
|
|
5031
|
+
function createResourceRequestFromRepresentation$1(representation) {
|
|
4103
5032
|
const config = {
|
|
4104
5033
|
urlParams: {},
|
|
4105
5034
|
};
|
|
4106
|
-
config.urlParams.
|
|
5035
|
+
config.urlParams.relatedRecordId = representation.relatedRecordId;
|
|
4107
5036
|
return createResourceRequest$a(config);
|
|
4108
5037
|
}
|
|
4109
5038
|
|
|
4110
|
-
const adapterName$a = '
|
|
4111
|
-
const
|
|
4112
|
-
generateParamConfigMetadata('
|
|
4113
|
-
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4114
|
-
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5039
|
+
const adapterName$a = 'getSlackRecordChannelInfo';
|
|
5040
|
+
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
5041
|
+
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4115
5042
|
];
|
|
4116
|
-
const
|
|
4117
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
4118
|
-
function keyBuilder$
|
|
5043
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5044
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
5045
|
+
function keyBuilder$9(luvio, config) {
|
|
4119
5046
|
const resourceParams = createResourceParams$a(config);
|
|
4120
|
-
return keyBuilder$
|
|
5047
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
4121
5048
|
}
|
|
4122
5049
|
function typeCheckConfig$a(untrustedConfig) {
|
|
4123
5050
|
const config = {};
|
|
4124
|
-
typeCheckConfig$
|
|
5051
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4125
5052
|
return config;
|
|
4126
5053
|
}
|
|
4127
5054
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -4170,12 +5097,12 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
4170
5097
|
});
|
|
4171
5098
|
}
|
|
4172
5099
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
4173
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5100
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
4174
5101
|
}
|
|
4175
5102
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
4176
5103
|
const { luvio, config } = context;
|
|
4177
5104
|
const selector = {
|
|
4178
|
-
recordId: keyBuilder$
|
|
5105
|
+
recordId: keyBuilder$9(luvio, config),
|
|
4179
5106
|
node: adapterFragment$4(luvio, config),
|
|
4180
5107
|
variables: {},
|
|
4181
5108
|
};
|
|
@@ -4185,8 +5112,8 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
4185
5112
|
});
|
|
4186
5113
|
return cacheSnapshot;
|
|
4187
5114
|
}
|
|
4188
|
-
const
|
|
4189
|
-
const config = validateAdapterConfig$a(untrustedConfig,
|
|
5115
|
+
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
5116
|
+
const config = validateAdapterConfig$a(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
4190
5117
|
// Invalid or incomplete config
|
|
4191
5118
|
if (config === null) {
|
|
4192
5119
|
return null;
|
|
@@ -4194,22 +5121,22 @@ const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackM
|
|
|
4194
5121
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4195
5122
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
4196
5123
|
};
|
|
4197
|
-
const notifyChangeFactory$
|
|
4198
|
-
return function
|
|
4199
|
-
const keys = configs.map(c => keyBuilder$
|
|
5124
|
+
const notifyChangeFactory$1 = (luvio, options) => {
|
|
5125
|
+
return function getConnectSlackbridgeRecord_channelsByRelatedRecordIdNotifyChange(configs) {
|
|
5126
|
+
const keys = configs.map(c => keyBuilder$b(luvio, c));
|
|
4200
5127
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4201
5128
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4202
5129
|
const { key, record: val } = entries[i];
|
|
4203
|
-
const refreshRequest = createResourceRequestFromRepresentation$
|
|
5130
|
+
const refreshRequest = createResourceRequestFromRepresentation$1(val);
|
|
4204
5131
|
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4205
5132
|
.then((response) => {
|
|
4206
5133
|
return luvio.handleSuccessResponse(() => {
|
|
4207
5134
|
const { body } = response;
|
|
4208
|
-
luvio.storeIngest(key, ingest$
|
|
5135
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
4209
5136
|
return luvio.storeBroadcast();
|
|
4210
5137
|
}, () => {
|
|
4211
5138
|
const cache = new StoreKeyMap();
|
|
4212
|
-
getTypeCacheKeys$
|
|
5139
|
+
getTypeCacheKeys$4(cache, luvio, response.body);
|
|
4213
5140
|
return cache;
|
|
4214
5141
|
});
|
|
4215
5142
|
}, (error) => {
|
|
@@ -4224,128 +5151,144 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
4224
5151
|
};
|
|
4225
5152
|
};
|
|
4226
5153
|
|
|
4227
|
-
const VERSION$3 = "
|
|
4228
|
-
function validate$3(obj, path = '
|
|
5154
|
+
const VERSION$3 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
5155
|
+
function validate$3(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
4229
5156
|
const v_error = (() => {
|
|
4230
5157
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4231
5158
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4232
5159
|
}
|
|
4233
|
-
const
|
|
4234
|
-
const
|
|
4235
|
-
if (
|
|
4236
|
-
return new TypeError('Expected "
|
|
5160
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
5161
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
5162
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
5163
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
4237
5164
|
}
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
5165
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
5166
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
5167
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
5168
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
5169
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
5170
|
+
}
|
|
4242
5171
|
}
|
|
4243
|
-
const
|
|
4244
|
-
const
|
|
4245
|
-
|
|
4246
|
-
|
|
5172
|
+
const obj_searchString = obj.searchString;
|
|
5173
|
+
const path_searchString = path + '.searchString';
|
|
5174
|
+
let obj_searchString_union0 = null;
|
|
5175
|
+
const obj_searchString_union0_error = (() => {
|
|
5176
|
+
if (typeof obj_searchString !== 'string') {
|
|
5177
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5178
|
+
}
|
|
5179
|
+
})();
|
|
5180
|
+
if (obj_searchString_union0_error != null) {
|
|
5181
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
5182
|
+
}
|
|
5183
|
+
let obj_searchString_union1 = null;
|
|
5184
|
+
const obj_searchString_union1_error = (() => {
|
|
5185
|
+
if (obj_searchString !== null) {
|
|
5186
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5187
|
+
}
|
|
5188
|
+
})();
|
|
5189
|
+
if (obj_searchString_union1_error != null) {
|
|
5190
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
5191
|
+
}
|
|
5192
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
5193
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
5194
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5195
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5196
|
+
return new TypeError(message);
|
|
4247
5197
|
}
|
|
4248
5198
|
})();
|
|
4249
5199
|
return v_error === undefined ? null : v_error;
|
|
4250
5200
|
}
|
|
4251
|
-
const RepresentationType$3 = '
|
|
4252
|
-
function keyBuilder$9(luvio, config) {
|
|
4253
|
-
return keyPrefix + '::' + RepresentationType$3 + ':' + config.relatedRecordId;
|
|
4254
|
-
}
|
|
4255
|
-
function keyBuilderFromType$1(luvio, object) {
|
|
4256
|
-
const keyParams = {
|
|
4257
|
-
relatedRecordId: object.relatedRecordId
|
|
4258
|
-
};
|
|
4259
|
-
return keyBuilder$9(luvio, keyParams);
|
|
4260
|
-
}
|
|
5201
|
+
const RepresentationType$3 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
4261
5202
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
4262
|
-
const
|
|
4263
|
-
const
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
5203
|
+
const input_conversationInfos = input.conversationInfos;
|
|
5204
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
5205
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
5206
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
5207
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
5208
|
+
input_conversationInfos[i] = ingest$b(input_conversationInfos_item, {
|
|
5209
|
+
fullPath: input_conversationInfos_item_id,
|
|
5210
|
+
propertyName: i,
|
|
5211
|
+
parent: {
|
|
5212
|
+
data: input,
|
|
5213
|
+
key: path.fullPath,
|
|
5214
|
+
existing: existing,
|
|
5215
|
+
},
|
|
5216
|
+
ttl: path.ttl
|
|
5217
|
+
}, luvio, store, timestamp);
|
|
5218
|
+
}
|
|
4274
5219
|
return input;
|
|
4275
5220
|
}
|
|
4276
|
-
const select$d = function
|
|
5221
|
+
const select$d = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
4277
5222
|
return {
|
|
4278
5223
|
kind: 'Fragment',
|
|
4279
5224
|
version: VERSION$3,
|
|
4280
5225
|
private: [],
|
|
4281
5226
|
selections: [
|
|
4282
5227
|
{
|
|
4283
|
-
name: '
|
|
5228
|
+
name: 'conversationInfos',
|
|
4284
5229
|
kind: 'Link',
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
{
|
|
4288
|
-
name: 'relatedRecordId',
|
|
4289
|
-
kind: 'Scalar'
|
|
5230
|
+
plural: true,
|
|
5231
|
+
fragment: select$u()
|
|
4290
5232
|
},
|
|
4291
5233
|
{
|
|
4292
|
-
name: '
|
|
5234
|
+
name: 'searchString',
|
|
4293
5235
|
kind: 'Scalar'
|
|
4294
5236
|
}
|
|
4295
5237
|
]
|
|
4296
5238
|
};
|
|
4297
5239
|
};
|
|
4298
5240
|
function equals$3(existing, incoming) {
|
|
4299
|
-
const
|
|
4300
|
-
const
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
if (
|
|
5241
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
5242
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
5243
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
5244
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
5245
|
+
return false;
|
|
5246
|
+
}
|
|
5247
|
+
});
|
|
5248
|
+
if (equals_conversationInfos_items === false) {
|
|
4307
5249
|
return false;
|
|
4308
5250
|
}
|
|
4309
|
-
const
|
|
4310
|
-
const
|
|
4311
|
-
if (!(
|
|
5251
|
+
const existing_searchString = existing.searchString;
|
|
5252
|
+
const incoming_searchString = incoming.searchString;
|
|
5253
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
4312
5254
|
return false;
|
|
4313
5255
|
}
|
|
4314
5256
|
return true;
|
|
4315
5257
|
}
|
|
4316
|
-
const ingest$3 = function
|
|
5258
|
+
const ingest$3 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4317
5259
|
if (process.env.NODE_ENV !== 'production') {
|
|
4318
5260
|
const validateError = validate$3(input);
|
|
4319
5261
|
if (validateError !== null) {
|
|
4320
5262
|
throw validateError;
|
|
4321
5263
|
}
|
|
4322
5264
|
}
|
|
4323
|
-
const key =
|
|
5265
|
+
const key = path.fullPath;
|
|
4324
5266
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4325
5267
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
4326
5268
|
return createLink(key);
|
|
4327
5269
|
};
|
|
4328
5270
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
4329
5271
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4330
|
-
const rootKey =
|
|
5272
|
+
const rootKey = fullPathFactory();
|
|
4331
5273
|
rootKeySet.set(rootKey, {
|
|
4332
5274
|
namespace: keyPrefix,
|
|
4333
5275
|
representationName: RepresentationType$3,
|
|
4334
5276
|
mergeable: false
|
|
4335
5277
|
});
|
|
4336
|
-
|
|
5278
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
5279
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
5280
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.conversationInfos[i]);
|
|
5281
|
+
}
|
|
4337
5282
|
}
|
|
4338
5283
|
|
|
4339
5284
|
function select$c(luvio, params) {
|
|
4340
5285
|
return select$d();
|
|
4341
5286
|
}
|
|
4342
5287
|
function keyBuilder$8(luvio, params) {
|
|
4343
|
-
return
|
|
4344
|
-
relatedRecordId: params.urlParams.relatedRecordId
|
|
4345
|
-
});
|
|
5288
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
4346
5289
|
}
|
|
4347
5290
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
4348
|
-
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
5291
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
4349
5292
|
}
|
|
4350
5293
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
4351
5294
|
const { body } = response;
|
|
@@ -4374,36 +5317,30 @@ function createResourceRequest$9(config) {
|
|
|
4374
5317
|
const headers = {};
|
|
4375
5318
|
return {
|
|
4376
5319
|
baseUri: '/services/data/v63.0',
|
|
4377
|
-
basePath: '/connect/slackbridge/
|
|
5320
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/search/conversations',
|
|
4378
5321
|
method: 'get',
|
|
4379
5322
|
body: null,
|
|
4380
5323
|
urlParams: config.urlParams,
|
|
4381
|
-
queryParams:
|
|
5324
|
+
queryParams: config.queryParams,
|
|
4382
5325
|
headers,
|
|
4383
5326
|
priority: 'normal',
|
|
4384
5327
|
};
|
|
4385
5328
|
}
|
|
4386
|
-
function createResourceRequestFromRepresentation$1(representation) {
|
|
4387
|
-
const config = {
|
|
4388
|
-
urlParams: {},
|
|
4389
|
-
};
|
|
4390
|
-
config.urlParams.relatedRecordId = representation.relatedRecordId;
|
|
4391
|
-
return createResourceRequest$9(config);
|
|
4392
|
-
}
|
|
4393
5329
|
|
|
4394
|
-
const adapterName$9 = '
|
|
4395
|
-
const
|
|
4396
|
-
generateParamConfigMetadata('
|
|
5330
|
+
const adapterName$9 = 'getSlackSearchConversation';
|
|
5331
|
+
const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
5332
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5333
|
+
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4397
5334
|
];
|
|
4398
|
-
const
|
|
4399
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
5335
|
+
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
5336
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
4400
5337
|
function keyBuilder$7(luvio, config) {
|
|
4401
5338
|
const resourceParams = createResourceParams$9(config);
|
|
4402
5339
|
return keyBuilder$8(luvio, resourceParams);
|
|
4403
5340
|
}
|
|
4404
5341
|
function typeCheckConfig$9(untrustedConfig) {
|
|
4405
5342
|
const config = {};
|
|
4406
|
-
typeCheckConfig$
|
|
5343
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
4407
5344
|
return config;
|
|
4408
5345
|
}
|
|
4409
5346
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -4452,7 +5389,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
4452
5389
|
});
|
|
4453
5390
|
}
|
|
4454
5391
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
4455
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5392
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
4456
5393
|
}
|
|
4457
5394
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
4458
5395
|
const { luvio, config } = context;
|
|
@@ -4467,8 +5404,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
4467
5404
|
});
|
|
4468
5405
|
return cacheSnapshot;
|
|
4469
5406
|
}
|
|
4470
|
-
const
|
|
4471
|
-
const config = validateAdapterConfig$9(untrustedConfig,
|
|
5407
|
+
const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge__getSlackSearchConversation(untrustedConfig, requestContext) {
|
|
5408
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSlackSearchConversation_ConfigPropertyNames);
|
|
4472
5409
|
// Invalid or incomplete config
|
|
4473
5410
|
if (config === null) {
|
|
4474
5411
|
return null;
|
|
@@ -4476,37 +5413,8 @@ const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge_
|
|
|
4476
5413
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4477
5414
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
4478
5415
|
};
|
|
4479
|
-
const notifyChangeFactory$1 = (luvio, options) => {
|
|
4480
|
-
return function getConnectSlackbridgeRecord_channelsByRelatedRecordIdNotifyChange(configs) {
|
|
4481
|
-
const keys = configs.map(c => keyBuilder$9(luvio, c));
|
|
4482
|
-
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4483
|
-
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4484
|
-
const { key, record: val } = entries[i];
|
|
4485
|
-
const refreshRequest = createResourceRequestFromRepresentation$1(val);
|
|
4486
|
-
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4487
|
-
.then((response) => {
|
|
4488
|
-
return luvio.handleSuccessResponse(() => {
|
|
4489
|
-
const { body } = response;
|
|
4490
|
-
luvio.storeIngest(key, ingest$3, body);
|
|
4491
|
-
return luvio.storeBroadcast();
|
|
4492
|
-
}, () => {
|
|
4493
|
-
const cache = new StoreKeyMap();
|
|
4494
|
-
getTypeCacheKeys$3(cache, luvio, response.body);
|
|
4495
|
-
return cache;
|
|
4496
|
-
});
|
|
4497
|
-
}, (error) => {
|
|
4498
|
-
return luvio.handleErrorResponse(() => {
|
|
4499
|
-
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4500
|
-
luvio.storeIngestError(key, errorSnapshot, undefined);
|
|
4501
|
-
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4502
|
-
});
|
|
4503
|
-
});
|
|
4504
|
-
}
|
|
4505
|
-
});
|
|
4506
|
-
};
|
|
4507
|
-
};
|
|
4508
5416
|
|
|
4509
|
-
const VERSION$2 = "
|
|
5417
|
+
const VERSION$2 = "40ec82af9ce301ce8598d88a6b19174a";
|
|
4510
5418
|
function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
4511
5419
|
const v_error = (() => {
|
|
4512
5420
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4520,7 +5428,7 @@ function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
4520
5428
|
for (let i = 0; i < obj_emojis.length; i++) {
|
|
4521
5429
|
const obj_emojis_item = obj_emojis[i];
|
|
4522
5430
|
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
4523
|
-
const referencepath_emojis_itemValidationError = validate$
|
|
5431
|
+
const referencepath_emojis_itemValidationError = validate$g(obj_emojis_item, path_emojis_item);
|
|
4524
5432
|
if (referencepath_emojis_itemValidationError !== null) {
|
|
4525
5433
|
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_emojis_item + '")\n';
|
|
4526
5434
|
message += referencepath_emojis_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4529,8 +5437,29 @@ function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
4529
5437
|
}
|
|
4530
5438
|
const obj_searchString = obj.searchString;
|
|
4531
5439
|
const path_searchString = path + '.searchString';
|
|
4532
|
-
|
|
4533
|
-
|
|
5440
|
+
let obj_searchString_union0 = null;
|
|
5441
|
+
const obj_searchString_union0_error = (() => {
|
|
5442
|
+
if (typeof obj_searchString !== 'string') {
|
|
5443
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5444
|
+
}
|
|
5445
|
+
})();
|
|
5446
|
+
if (obj_searchString_union0_error != null) {
|
|
5447
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
5448
|
+
}
|
|
5449
|
+
let obj_searchString_union1 = null;
|
|
5450
|
+
const obj_searchString_union1_error = (() => {
|
|
5451
|
+
if (obj_searchString !== null) {
|
|
5452
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5453
|
+
}
|
|
5454
|
+
})();
|
|
5455
|
+
if (obj_searchString_union1_error != null) {
|
|
5456
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
5457
|
+
}
|
|
5458
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
5459
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
5460
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5461
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5462
|
+
return new TypeError(message);
|
|
4534
5463
|
}
|
|
4535
5464
|
})();
|
|
4536
5465
|
return v_error === undefined ? null : v_error;
|
|
@@ -4540,7 +5469,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
4540
5469
|
return input;
|
|
4541
5470
|
}
|
|
4542
5471
|
const select$b = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
4543
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$
|
|
5472
|
+
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$w();
|
|
4544
5473
|
return {
|
|
4545
5474
|
kind: 'Fragment',
|
|
4546
5475
|
version: VERSION$2,
|
|
@@ -4560,21 +5489,21 @@ const select$b = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
4560
5489
|
};
|
|
4561
5490
|
};
|
|
4562
5491
|
function equals$2(existing, incoming) {
|
|
4563
|
-
const existing_searchString = existing.searchString;
|
|
4564
|
-
const incoming_searchString = incoming.searchString;
|
|
4565
|
-
if (!(existing_searchString === incoming_searchString)) {
|
|
4566
|
-
return false;
|
|
4567
|
-
}
|
|
4568
5492
|
const existing_emojis = existing.emojis;
|
|
4569
5493
|
const incoming_emojis = incoming.emojis;
|
|
4570
5494
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
4571
|
-
if (!(equals$
|
|
5495
|
+
if (!(equals$g(existing_emojis_item, incoming_emojis_item))) {
|
|
4572
5496
|
return false;
|
|
4573
5497
|
}
|
|
4574
5498
|
});
|
|
4575
5499
|
if (equals_emojis_items === false) {
|
|
4576
5500
|
return false;
|
|
4577
5501
|
}
|
|
5502
|
+
const existing_searchString = existing.searchString;
|
|
5503
|
+
const incoming_searchString = incoming.searchString;
|
|
5504
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
5505
|
+
return false;
|
|
5506
|
+
}
|
|
4578
5507
|
return true;
|
|
4579
5508
|
}
|
|
4580
5509
|
const ingest$2 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -4651,14 +5580,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
4651
5580
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4652
5581
|
];
|
|
4653
5582
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
4654
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
5583
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
4655
5584
|
function keyBuilder$5(luvio, config) {
|
|
4656
5585
|
const resourceParams = createResourceParams$8(config);
|
|
4657
5586
|
return keyBuilder$6(luvio, resourceParams);
|
|
4658
5587
|
}
|
|
4659
5588
|
function typeCheckConfig$8(untrustedConfig) {
|
|
4660
5589
|
const config = {};
|
|
4661
|
-
typeCheckConfig$
|
|
5590
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
4662
5591
|
return config;
|
|
4663
5592
|
}
|
|
4664
5593
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -4707,7 +5636,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
4707
5636
|
});
|
|
4708
5637
|
}
|
|
4709
5638
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
4710
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5639
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
4711
5640
|
}
|
|
4712
5641
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
4713
5642
|
const { luvio, config } = context;
|
|
@@ -4732,7 +5661,7 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
4732
5661
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
4733
5662
|
};
|
|
4734
5663
|
|
|
4735
|
-
const VERSION$1 = "
|
|
5664
|
+
const VERSION$1 = "058d708f5533e6123e368a3722311412";
|
|
4736
5665
|
function validate$1(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
4737
5666
|
const v_error = (() => {
|
|
4738
5667
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4740,8 +5669,29 @@ function validate$1(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
|
4740
5669
|
}
|
|
4741
5670
|
const obj_searchString = obj.searchString;
|
|
4742
5671
|
const path_searchString = path + '.searchString';
|
|
4743
|
-
|
|
4744
|
-
|
|
5672
|
+
let obj_searchString_union0 = null;
|
|
5673
|
+
const obj_searchString_union0_error = (() => {
|
|
5674
|
+
if (typeof obj_searchString !== 'string') {
|
|
5675
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5676
|
+
}
|
|
5677
|
+
})();
|
|
5678
|
+
if (obj_searchString_union0_error != null) {
|
|
5679
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
5680
|
+
}
|
|
5681
|
+
let obj_searchString_union1 = null;
|
|
5682
|
+
const obj_searchString_union1_error = (() => {
|
|
5683
|
+
if (obj_searchString !== null) {
|
|
5684
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5685
|
+
}
|
|
5686
|
+
})();
|
|
5687
|
+
if (obj_searchString_union1_error != null) {
|
|
5688
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
5689
|
+
}
|
|
5690
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
5691
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
5692
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5693
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5694
|
+
return new TypeError(message);
|
|
4745
5695
|
}
|
|
4746
5696
|
const obj_userInfos = obj.userInfos;
|
|
4747
5697
|
const path_userInfos = path + '.userInfos';
|
|
@@ -4765,7 +5715,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
4765
5715
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
4766
5716
|
const input_userInfos_item = input_userInfos[i];
|
|
4767
5717
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
4768
|
-
input_userInfos[i] = ingest$
|
|
5718
|
+
input_userInfos[i] = ingest$c(input_userInfos_item, {
|
|
4769
5719
|
fullPath: input_userInfos_item_id,
|
|
4770
5720
|
propertyName: i,
|
|
4771
5721
|
parent: {
|
|
@@ -4792,7 +5742,7 @@ const select$9 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
4792
5742
|
name: 'userInfos',
|
|
4793
5743
|
kind: 'Link',
|
|
4794
5744
|
plural: true,
|
|
4795
|
-
fragment: select$
|
|
5745
|
+
fragment: select$v()
|
|
4796
5746
|
}
|
|
4797
5747
|
]
|
|
4798
5748
|
};
|
|
@@ -4837,7 +5787,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4837
5787
|
});
|
|
4838
5788
|
const input_userInfos_length = input.userInfos.length;
|
|
4839
5789
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
4840
|
-
getTypeCacheKeys$
|
|
5790
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.userInfos[i]);
|
|
4841
5791
|
}
|
|
4842
5792
|
}
|
|
4843
5793
|
|
|
@@ -4845,7 +5795,7 @@ function select$8(luvio, params) {
|
|
|
4845
5795
|
return select$9();
|
|
4846
5796
|
}
|
|
4847
5797
|
function keyBuilder$4(luvio, params) {
|
|
4848
|
-
return keyPrefix + '::SlackBridgeUserInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5798
|
+
return keyPrefix + '::SlackBridgeUserInfosOutputRepresentation:(' + 'channels:' + params.queryParams.channels + ',' + 'filter:' + params.queryParams.filter + ',' + 'not_in_channels:' + params.queryParams.not_in_channels + ',' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
4849
5799
|
}
|
|
4850
5800
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
4851
5801
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
|
|
@@ -4890,17 +5840,20 @@ function createResourceRequest$7(config) {
|
|
|
4890
5840
|
const adapterName$7 = 'getSlackSearchUser';
|
|
4891
5841
|
const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
4892
5842
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5843
|
+
generateParamConfigMetadata('channels', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5844
|
+
generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5845
|
+
generateParamConfigMetadata('not_in_channels', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
4893
5846
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4894
5847
|
];
|
|
4895
5848
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackSearchUser_ConfigPropertyMetadata);
|
|
4896
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
5849
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(getSlackSearchUser_ConfigPropertyMetadata);
|
|
4897
5850
|
function keyBuilder$3(luvio, config) {
|
|
4898
5851
|
const resourceParams = createResourceParams$7(config);
|
|
4899
5852
|
return keyBuilder$4(luvio, resourceParams);
|
|
4900
5853
|
}
|
|
4901
5854
|
function typeCheckConfig$7(untrustedConfig) {
|
|
4902
5855
|
const config = {};
|
|
4903
|
-
typeCheckConfig$
|
|
5856
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
4904
5857
|
return config;
|
|
4905
5858
|
}
|
|
4906
5859
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -4949,7 +5902,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
4949
5902
|
});
|
|
4950
5903
|
}
|
|
4951
5904
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
4952
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5905
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
4953
5906
|
}
|
|
4954
5907
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
4955
5908
|
const { luvio, config } = context;
|
|
@@ -4975,21 +5928,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
4975
5928
|
};
|
|
4976
5929
|
|
|
4977
5930
|
function select$7(luvio, params) {
|
|
4978
|
-
return select$
|
|
5931
|
+
return select$v();
|
|
4979
5932
|
}
|
|
4980
5933
|
function keyBuilder$2(luvio, params) {
|
|
4981
|
-
return keyBuilder$
|
|
5934
|
+
return keyBuilder$p(luvio, {
|
|
4982
5935
|
slackUserId: params.urlParams.slackUserId,
|
|
4983
5936
|
teamId: params.urlParams.teamId
|
|
4984
5937
|
});
|
|
4985
5938
|
}
|
|
4986
5939
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
4987
|
-
getTypeCacheKeys$
|
|
5940
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
4988
5941
|
}
|
|
4989
5942
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
4990
5943
|
const { body } = response;
|
|
4991
5944
|
const key = keyBuilder$2(luvio, resourceParams);
|
|
4992
|
-
luvio.storeIngest(key, ingest$
|
|
5945
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
4993
5946
|
const snapshot = luvio.storeLookup({
|
|
4994
5947
|
recordId: key,
|
|
4995
5948
|
node: select$7(),
|
|
@@ -5009,8 +5962,8 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
5009
5962
|
const storeMetadataParams = {
|
|
5010
5963
|
ttl: TTL,
|
|
5011
5964
|
namespace: keyPrefix,
|
|
5012
|
-
version: VERSION$
|
|
5013
|
-
representationName: RepresentationType$
|
|
5965
|
+
version: VERSION$f,
|
|
5966
|
+
representationName: RepresentationType$c
|
|
5014
5967
|
};
|
|
5015
5968
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5016
5969
|
return errorSnapshot;
|
|
@@ -5043,14 +5996,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
5043
5996
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5044
5997
|
];
|
|
5045
5998
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSlackUser_ConfigPropertyMetadata);
|
|
5046
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
5999
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(getSlackUser_ConfigPropertyMetadata);
|
|
5047
6000
|
function keyBuilder$1(luvio, config) {
|
|
5048
6001
|
const resourceParams = createResourceParams$6(config);
|
|
5049
6002
|
return keyBuilder$2(luvio, resourceParams);
|
|
5050
6003
|
}
|
|
5051
6004
|
function typeCheckConfig$6(untrustedConfig) {
|
|
5052
6005
|
const config = {};
|
|
5053
|
-
typeCheckConfig$
|
|
6006
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
5054
6007
|
return config;
|
|
5055
6008
|
}
|
|
5056
6009
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -5099,7 +6052,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
5099
6052
|
});
|
|
5100
6053
|
}
|
|
5101
6054
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
5102
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6055
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
5103
6056
|
}
|
|
5104
6057
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
5105
6058
|
const { luvio, config } = context;
|
|
@@ -5125,7 +6078,7 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
5125
6078
|
};
|
|
5126
6079
|
const notifyChangeFactory = (luvio, options) => {
|
|
5127
6080
|
return function getConnectSlackbridgeTeamUserBySlackUserIdAndTeamIdNotifyChange(configs) {
|
|
5128
|
-
const keys = configs.map(c => keyBuilder$
|
|
6081
|
+
const keys = configs.map(c => keyBuilder$p(luvio, c));
|
|
5129
6082
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5130
6083
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5131
6084
|
const { key, record: val } = entries[i];
|
|
@@ -5134,11 +6087,11 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
5134
6087
|
.then((response) => {
|
|
5135
6088
|
return luvio.handleSuccessResponse(() => {
|
|
5136
6089
|
const { body } = response;
|
|
5137
|
-
luvio.storeIngest(key, ingest$
|
|
6090
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
5138
6091
|
return luvio.storeBroadcast();
|
|
5139
6092
|
}, () => {
|
|
5140
6093
|
const cache = new StoreKeyMap();
|
|
5141
|
-
getTypeCacheKeys$
|
|
6094
|
+
getTypeCacheKeys$c(cache, luvio, response.body);
|
|
5142
6095
|
return cache;
|
|
5143
6096
|
});
|
|
5144
6097
|
}, (error) => {
|
|
@@ -5147,8 +6100,8 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
5147
6100
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
5148
6101
|
ttl: TTL,
|
|
5149
6102
|
namespace: keyPrefix,
|
|
5150
|
-
version: VERSION$
|
|
5151
|
-
representationName: RepresentationType$
|
|
6103
|
+
version: VERSION$f,
|
|
6104
|
+
representationName: RepresentationType$c
|
|
5152
6105
|
});
|
|
5153
6106
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
5154
6107
|
});
|
|
@@ -5159,15 +6112,15 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
5159
6112
|
};
|
|
5160
6113
|
|
|
5161
6114
|
function select$6(luvio, params) {
|
|
5162
|
-
return select$
|
|
6115
|
+
return select$z();
|
|
5163
6116
|
}
|
|
5164
6117
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
5165
|
-
getTypeCacheKeys$
|
|
6118
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
5166
6119
|
}
|
|
5167
6120
|
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
5168
6121
|
const { body } = response;
|
|
5169
6122
|
const key = keyBuilderFromType$7(luvio, body);
|
|
5170
|
-
luvio.storeIngest(key, ingest$
|
|
6123
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
5171
6124
|
const snapshot = luvio.storeLookup({
|
|
5172
6125
|
recordId: key,
|
|
5173
6126
|
node: select$6(),
|
|
@@ -5203,10 +6156,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
5203
6156
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
5204
6157
|
];
|
|
5205
6158
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, patchSlackMessage_ConfigPropertyMetadata);
|
|
5206
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
6159
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(patchSlackMessage_ConfigPropertyMetadata);
|
|
5207
6160
|
function typeCheckConfig$5(untrustedConfig) {
|
|
5208
6161
|
const config = {};
|
|
5209
|
-
typeCheckConfig$
|
|
6162
|
+
typeCheckConfig$j(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
5210
6163
|
return config;
|
|
5211
6164
|
}
|
|
5212
6165
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -5288,7 +6241,7 @@ function keyBuilderFromType(luvio, object) {
|
|
|
5288
6241
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
5289
6242
|
const input_postedMessage = input.postedMessage;
|
|
5290
6243
|
const input_postedMessage_id = path.fullPath + '__postedMessage';
|
|
5291
|
-
input.postedMessage = ingest$
|
|
6244
|
+
input.postedMessage = ingest$9(input_postedMessage, {
|
|
5292
6245
|
fullPath: input_postedMessage_id,
|
|
5293
6246
|
propertyName: 'postedMessage',
|
|
5294
6247
|
parent: {
|
|
@@ -5313,7 +6266,7 @@ const select$5 = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
5313
6266
|
{
|
|
5314
6267
|
name: 'postedMessage',
|
|
5315
6268
|
kind: 'Link',
|
|
5316
|
-
fragment: select$
|
|
6269
|
+
fragment: select$p()
|
|
5317
6270
|
},
|
|
5318
6271
|
{
|
|
5319
6272
|
name: 'timestamp',
|
|
@@ -5360,7 +6313,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5360
6313
|
representationName: RepresentationType,
|
|
5361
6314
|
mergeable: false
|
|
5362
6315
|
});
|
|
5363
|
-
getTypeCacheKeys$
|
|
6316
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
5364
6317
|
}
|
|
5365
6318
|
|
|
5366
6319
|
function select$4(luvio, params) {
|
|
@@ -5410,10 +6363,10 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
5410
6363
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
5411
6364
|
];
|
|
5412
6365
|
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackConversation_ConfigPropertyMetadata);
|
|
5413
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
6366
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(postSlackConversation_ConfigPropertyMetadata);
|
|
5414
6367
|
function typeCheckConfig$4(untrustedConfig) {
|
|
5415
6368
|
const config = {};
|
|
5416
|
-
typeCheckConfig$
|
|
6369
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
5417
6370
|
return config;
|
|
5418
6371
|
}
|
|
5419
6372
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -5459,15 +6412,15 @@ const postSlackConversationAdapterFactory = (luvio) => {
|
|
|
5459
6412
|
};
|
|
5460
6413
|
|
|
5461
6414
|
function select$3(luvio, params) {
|
|
5462
|
-
return select$
|
|
6415
|
+
return select$k();
|
|
5463
6416
|
}
|
|
5464
6417
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
5465
|
-
getTypeCacheKeys$
|
|
6418
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5466
6419
|
}
|
|
5467
6420
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
5468
6421
|
const { body } = response;
|
|
5469
6422
|
const key = keyBuilderFromType$2(luvio, body);
|
|
5470
|
-
luvio.storeIngest(key, ingest$
|
|
6423
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5471
6424
|
const snapshot = luvio.storeLookup({
|
|
5472
6425
|
recordId: key,
|
|
5473
6426
|
node: select$3(),
|
|
@@ -5502,10 +6455,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
5502
6455
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
5503
6456
|
];
|
|
5504
6457
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5505
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
6458
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5506
6459
|
function typeCheckConfig$3(untrustedConfig) {
|
|
5507
6460
|
const config = {};
|
|
5508
|
-
typeCheckConfig$
|
|
6461
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5509
6462
|
return config;
|
|
5510
6463
|
}
|
|
5511
6464
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -5551,15 +6504,15 @@ const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
|
5551
6504
|
};
|
|
5552
6505
|
|
|
5553
6506
|
function select$2(luvio, params) {
|
|
5554
|
-
return select$
|
|
6507
|
+
return select$q();
|
|
5555
6508
|
}
|
|
5556
6509
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
5557
|
-
getTypeCacheKeys$
|
|
6510
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
5558
6511
|
}
|
|
5559
6512
|
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
5560
6513
|
const { body } = response;
|
|
5561
6514
|
const key = keyBuilderFromType$3(luvio, body);
|
|
5562
|
-
luvio.storeIngest(key, ingest$
|
|
6515
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
5563
6516
|
const snapshot = luvio.storeLookup({
|
|
5564
6517
|
recordId: key,
|
|
5565
6518
|
node: select$2(),
|
|
@@ -5599,10 +6552,10 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
5599
6552
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
5600
6553
|
];
|
|
5601
6554
|
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postSlackFile_ConfigPropertyMetadata);
|
|
5602
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
6555
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(postSlackFile_ConfigPropertyMetadata);
|
|
5603
6556
|
function typeCheckConfig$2(untrustedConfig) {
|
|
5604
6557
|
const config = {};
|
|
5605
|
-
typeCheckConfig$
|
|
6558
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
5606
6559
|
return config;
|
|
5607
6560
|
}
|
|
5608
6561
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -5648,15 +6601,15 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
5648
6601
|
};
|
|
5649
6602
|
|
|
5650
6603
|
function select$1(luvio, params) {
|
|
5651
|
-
return select$
|
|
6604
|
+
return select$x();
|
|
5652
6605
|
}
|
|
5653
6606
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
5654
|
-
getTypeCacheKeys$
|
|
6607
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
5655
6608
|
}
|
|
5656
6609
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
5657
6610
|
const { body } = response;
|
|
5658
6611
|
const key = keyBuilderFromType$6(luvio, body);
|
|
5659
|
-
luvio.storeIngest(key, ingest$
|
|
6612
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
5660
6613
|
const snapshot = luvio.storeLookup({
|
|
5661
6614
|
recordId: key,
|
|
5662
6615
|
node: select$1(),
|
|
@@ -5692,10 +6645,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
5692
6645
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5693
6646
|
];
|
|
5694
6647
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5695
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
6648
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5696
6649
|
function typeCheckConfig$1(untrustedConfig) {
|
|
5697
6650
|
const config = {};
|
|
5698
|
-
typeCheckConfig$
|
|
6651
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5699
6652
|
return config;
|
|
5700
6653
|
}
|
|
5701
6654
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -5741,15 +6694,15 @@ const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
|
5741
6694
|
};
|
|
5742
6695
|
|
|
5743
6696
|
function select(luvio, params) {
|
|
5744
|
-
return select$
|
|
6697
|
+
return select$f();
|
|
5745
6698
|
}
|
|
5746
6699
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5747
|
-
getTypeCacheKeys$
|
|
6700
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
5748
6701
|
}
|
|
5749
6702
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
5750
6703
|
const { body } = response;
|
|
5751
6704
|
const key = keyBuilderFromType$1(luvio, body);
|
|
5752
|
-
luvio.storeIngest(key, ingest$
|
|
6705
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5753
6706
|
const snapshot = luvio.storeLookup({
|
|
5754
6707
|
recordId: key,
|
|
5755
6708
|
node: select(),
|
|
@@ -5783,10 +6736,10 @@ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
|
5783
6736
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
5784
6737
|
];
|
|
5785
6738
|
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
5786
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
6739
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$j(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
5787
6740
|
function typeCheckConfig(untrustedConfig) {
|
|
5788
6741
|
const config = {};
|
|
5789
|
-
typeCheckConfig$
|
|
6742
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
5790
6743
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
5791
6744
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
5792
6745
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -5855,6 +6808,7 @@ let getSlackMessage;
|
|
|
5855
6808
|
let getSlackMessageNotifyChange;
|
|
5856
6809
|
let getSlackRecordChannelInfo;
|
|
5857
6810
|
let getSlackRecordChannelInfoNotifyChange;
|
|
6811
|
+
let getSlackSearchConversation;
|
|
5858
6812
|
let getSlackSearchEmoji;
|
|
5859
6813
|
let getSlackSearchUser;
|
|
5860
6814
|
let getSlackUser;
|
|
@@ -5872,6 +6826,7 @@ let getSlackConversationMembers_imperative;
|
|
|
5872
6826
|
let getSlackCustomEmoji_imperative;
|
|
5873
6827
|
let getSlackMessage_imperative;
|
|
5874
6828
|
let getSlackRecordChannelInfo_imperative;
|
|
6829
|
+
let getSlackSearchConversation_imperative;
|
|
5875
6830
|
let getSlackSearchEmoji_imperative;
|
|
5876
6831
|
let getSlackSearchUser_imperative;
|
|
5877
6832
|
let getSlackUser_imperative;
|
|
@@ -5890,6 +6845,10 @@ const getSlackRecordChannelInfoMetadata = {
|
|
|
5890
6845
|
apiFamily: 'SlackBridge',
|
|
5891
6846
|
name: 'getSlackRecordChannelInfo',
|
|
5892
6847
|
};
|
|
6848
|
+
const getSlackSearchConversationMetadata = {
|
|
6849
|
+
apiFamily: 'SlackBridge',
|
|
6850
|
+
name: 'getSlackSearchConversation',
|
|
6851
|
+
};
|
|
5893
6852
|
const getSlackSearchEmojiMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchEmoji' };
|
|
5894
6853
|
const getSlackSearchUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchUser' };
|
|
5895
6854
|
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl: 600000 };
|
|
@@ -5902,6 +6861,7 @@ function bindExportsTo(luvio) {
|
|
|
5902
6861
|
const getSlackCustomEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackCustomEmoji', getSlackCustomEmojiAdapterFactory), getSlackCustomEmojiMetadata);
|
|
5903
6862
|
const getSlackMessage_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackMessage', getSlackMessageAdapterFactory), getSlackMessageMetadata);
|
|
5904
6863
|
const getSlackRecordChannelInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackRecordChannelInfo', getSlackRecordChannelInfoAdapterFactory), getSlackRecordChannelInfoMetadata);
|
|
6864
|
+
const getSlackSearchConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackSearchConversation', getSlackSearchConversationAdapterFactory), getSlackSearchConversationMetadata);
|
|
5905
6865
|
const getSlackSearchEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackSearchEmoji', getSlackSearchEmojiAdapterFactory), getSlackSearchEmojiMetadata);
|
|
5906
6866
|
const getSlackSearchUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackSearchUser', getSlackSearchUserAdapterFactory), getSlackSearchUserMetadata);
|
|
5907
6867
|
const getSlackUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackUser', getSlackUserAdapterFactory), getSlackUserMetadata);
|
|
@@ -5910,9 +6870,9 @@ function bindExportsTo(luvio) {
|
|
|
5910
6870
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
5911
6871
|
}
|
|
5912
6872
|
return {
|
|
5913
|
-
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$
|
|
5914
|
-
deleteSlackMessage: createLDSAdapter(luvio, adapterName$
|
|
5915
|
-
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$
|
|
6873
|
+
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$i, deleteSlackConversationMemberAdapterFactory),
|
|
6874
|
+
deleteSlackMessage: createLDSAdapter(luvio, adapterName$h, deleteSlackMessageAdapterFactory),
|
|
6875
|
+
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$g, deleteSlackMessageReactionsAdapterFactory),
|
|
5916
6876
|
getSlackConversation: createWireAdapterConstructor(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
5917
6877
|
getSlackConversationMember: createWireAdapterConstructor(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
5918
6878
|
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$4),
|
|
@@ -5923,6 +6883,7 @@ function bindExportsTo(luvio) {
|
|
|
5923
6883
|
getSlackMessageNotifyChange: createLDSAdapter(luvio, 'getSlackMessageNotifyChange', notifyChangeFactory$2),
|
|
5924
6884
|
getSlackRecordChannelInfo: createWireAdapterConstructor(luvio, getSlackRecordChannelInfo_ldsAdapter, getSlackRecordChannelInfoMetadata),
|
|
5925
6885
|
getSlackRecordChannelInfoNotifyChange: createLDSAdapter(luvio, 'getSlackRecordChannelInfoNotifyChange', notifyChangeFactory$1),
|
|
6886
|
+
getSlackSearchConversation: createWireAdapterConstructor(luvio, getSlackSearchConversation_ldsAdapter, getSlackSearchConversationMetadata),
|
|
5926
6887
|
getSlackSearchEmoji: createWireAdapterConstructor(luvio, getSlackSearchEmoji_ldsAdapter, getSlackSearchEmojiMetadata),
|
|
5927
6888
|
getSlackSearchUser: createWireAdapterConstructor(luvio, getSlackSearchUser_ldsAdapter, getSlackSearchUserMetadata),
|
|
5928
6889
|
getSlackUser: createWireAdapterConstructor(luvio, getSlackUser_ldsAdapter, getSlackUserMetadata),
|
|
@@ -5940,6 +6901,7 @@ function bindExportsTo(luvio) {
|
|
|
5940
6901
|
getSlackCustomEmoji_imperative: createImperativeAdapter(luvio, getSlackCustomEmoji_ldsAdapter, getSlackCustomEmojiMetadata),
|
|
5941
6902
|
getSlackMessage_imperative: createImperativeAdapter(luvio, getSlackMessage_ldsAdapter, getSlackMessageMetadata),
|
|
5942
6903
|
getSlackRecordChannelInfo_imperative: createImperativeAdapter(luvio, getSlackRecordChannelInfo_ldsAdapter, getSlackRecordChannelInfoMetadata),
|
|
6904
|
+
getSlackSearchConversation_imperative: createImperativeAdapter(luvio, getSlackSearchConversation_ldsAdapter, getSlackSearchConversationMetadata),
|
|
5943
6905
|
getSlackSearchEmoji_imperative: createImperativeAdapter(luvio, getSlackSearchEmoji_ldsAdapter, getSlackSearchEmojiMetadata),
|
|
5944
6906
|
getSlackSearchUser_imperative: createImperativeAdapter(luvio, getSlackSearchUser_ldsAdapter, getSlackSearchUserMetadata),
|
|
5945
6907
|
getSlackUser_imperative: createImperativeAdapter(luvio, getSlackUser_ldsAdapter, getSlackUserMetadata),
|
|
@@ -5961,6 +6923,7 @@ withDefaultLuvio((luvio) => {
|
|
|
5961
6923
|
getSlackMessageNotifyChange,
|
|
5962
6924
|
getSlackRecordChannelInfo,
|
|
5963
6925
|
getSlackRecordChannelInfoNotifyChange,
|
|
6926
|
+
getSlackSearchConversation,
|
|
5964
6927
|
getSlackSearchEmoji,
|
|
5965
6928
|
getSlackSearchUser,
|
|
5966
6929
|
getSlackUser,
|
|
@@ -5977,11 +6940,12 @@ withDefaultLuvio((luvio) => {
|
|
|
5977
6940
|
getSlackCustomEmoji_imperative,
|
|
5978
6941
|
getSlackMessage_imperative,
|
|
5979
6942
|
getSlackRecordChannelInfo_imperative,
|
|
6943
|
+
getSlackSearchConversation_imperative,
|
|
5980
6944
|
getSlackSearchEmoji_imperative,
|
|
5981
6945
|
getSlackSearchUser_imperative,
|
|
5982
6946
|
getSlackUser_imperative,
|
|
5983
6947
|
} = bindExportsTo(luvio));
|
|
5984
6948
|
});
|
|
5985
6949
|
|
|
5986
|
-
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackCustomEmoji, getSlackCustomEmoji_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
5987
|
-
// version: 1.332.0-
|
|
6950
|
+
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackCustomEmoji, getSlackCustomEmoji_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
6951
|
+
// version: 1.332.0-dev8-41f1196a17
|