@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev5 → 1.332.0-dev7
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 +1782 -902
- package/dist/es/es2018/types/src/generated/adapters/getSlackSearchConversation.d.ts +28 -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/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 +9 -9
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +1703 -812
- package/src/raml/api.raml +50 -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 = "ed55b392107ffac0017655cf2fd0083e";
|
|
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,55 @@ 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);
|
|
937
1042
|
}
|
|
938
1043
|
const obj_image24 = obj.image24;
|
|
939
1044
|
const path_image24 = path + '.image24';
|
|
940
|
-
|
|
941
|
-
|
|
1045
|
+
let obj_image24_union0 = null;
|
|
1046
|
+
const obj_image24_union0_error = (() => {
|
|
1047
|
+
if (typeof obj_image24 !== 'string') {
|
|
1048
|
+
return new TypeError('Expected "string" but received "' + typeof obj_image24 + '" (at "' + path_image24 + '")');
|
|
1049
|
+
}
|
|
1050
|
+
})();
|
|
1051
|
+
if (obj_image24_union0_error != null) {
|
|
1052
|
+
obj_image24_union0 = obj_image24_union0_error.message;
|
|
1053
|
+
}
|
|
1054
|
+
let obj_image24_union1 = null;
|
|
1055
|
+
const obj_image24_union1_error = (() => {
|
|
1056
|
+
if (obj_image24 !== null) {
|
|
1057
|
+
return new TypeError('Expected "null" but received "' + typeof obj_image24 + '" (at "' + path_image24 + '")');
|
|
1058
|
+
}
|
|
1059
|
+
})();
|
|
1060
|
+
if (obj_image24_union1_error != null) {
|
|
1061
|
+
obj_image24_union1 = obj_image24_union1_error.message;
|
|
1062
|
+
}
|
|
1063
|
+
if (obj_image24_union0 && obj_image24_union1) {
|
|
1064
|
+
let message = 'Object doesn\'t match union (at "' + path_image24 + '")';
|
|
1065
|
+
message += '\n' + obj_image24_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1066
|
+
message += '\n' + obj_image24_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1067
|
+
return new TypeError(message);
|
|
942
1068
|
}
|
|
943
1069
|
const obj_imageOriginal = obj.imageOriginal;
|
|
944
1070
|
const path_imageOriginal = path + '.imageOriginal';
|
|
@@ -1077,8 +1203,29 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1077
1203
|
}
|
|
1078
1204
|
const obj_realName = obj.realName;
|
|
1079
1205
|
const path_realName = path + '.realName';
|
|
1080
|
-
|
|
1081
|
-
|
|
1206
|
+
let obj_realName_union0 = null;
|
|
1207
|
+
const obj_realName_union0_error = (() => {
|
|
1208
|
+
if (typeof obj_realName !== 'string') {
|
|
1209
|
+
return new TypeError('Expected "string" but received "' + typeof obj_realName + '" (at "' + path_realName + '")');
|
|
1210
|
+
}
|
|
1211
|
+
})();
|
|
1212
|
+
if (obj_realName_union0_error != null) {
|
|
1213
|
+
obj_realName_union0 = obj_realName_union0_error.message;
|
|
1214
|
+
}
|
|
1215
|
+
let obj_realName_union1 = null;
|
|
1216
|
+
const obj_realName_union1_error = (() => {
|
|
1217
|
+
if (obj_realName !== null) {
|
|
1218
|
+
return new TypeError('Expected "null" but received "' + typeof obj_realName + '" (at "' + path_realName + '")');
|
|
1219
|
+
}
|
|
1220
|
+
})();
|
|
1221
|
+
if (obj_realName_union1_error != null) {
|
|
1222
|
+
obj_realName_union1 = obj_realName_union1_error.message;
|
|
1223
|
+
}
|
|
1224
|
+
if (obj_realName_union0 && obj_realName_union1) {
|
|
1225
|
+
let message = 'Object doesn\'t match union (at "' + path_realName + '")';
|
|
1226
|
+
message += '\n' + obj_realName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1227
|
+
message += '\n' + obj_realName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1228
|
+
return new TypeError(message);
|
|
1082
1229
|
}
|
|
1083
1230
|
const obj_salesforceUserId = obj.salesforceUserId;
|
|
1084
1231
|
const path_salesforceUserId = path + '.salesforceUserId';
|
|
@@ -1115,7 +1262,7 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1115
1262
|
const path_statusEmoji = path + '.statusEmoji';
|
|
1116
1263
|
let obj_statusEmoji_union0 = null;
|
|
1117
1264
|
const obj_statusEmoji_union0_error = (() => {
|
|
1118
|
-
const referencepath_statusEmojiValidationError = validate$
|
|
1265
|
+
const referencepath_statusEmojiValidationError = validate$g(obj_statusEmoji, path_statusEmoji);
|
|
1119
1266
|
if (referencepath_statusEmojiValidationError !== null) {
|
|
1120
1267
|
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
|
|
1121
1268
|
message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1142,8 +1289,29 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1142
1289
|
}
|
|
1143
1290
|
const obj_statusMessage = obj.statusMessage;
|
|
1144
1291
|
const path_statusMessage = path + '.statusMessage';
|
|
1145
|
-
|
|
1146
|
-
|
|
1292
|
+
let obj_statusMessage_union0 = null;
|
|
1293
|
+
const obj_statusMessage_union0_error = (() => {
|
|
1294
|
+
if (typeof obj_statusMessage !== 'string') {
|
|
1295
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusMessage + '" (at "' + path_statusMessage + '")');
|
|
1296
|
+
}
|
|
1297
|
+
})();
|
|
1298
|
+
if (obj_statusMessage_union0_error != null) {
|
|
1299
|
+
obj_statusMessage_union0 = obj_statusMessage_union0_error.message;
|
|
1300
|
+
}
|
|
1301
|
+
let obj_statusMessage_union1 = null;
|
|
1302
|
+
const obj_statusMessage_union1_error = (() => {
|
|
1303
|
+
if (obj_statusMessage !== null) {
|
|
1304
|
+
return new TypeError('Expected "null" but received "' + typeof obj_statusMessage + '" (at "' + path_statusMessage + '")');
|
|
1305
|
+
}
|
|
1306
|
+
})();
|
|
1307
|
+
if (obj_statusMessage_union1_error != null) {
|
|
1308
|
+
obj_statusMessage_union1 = obj_statusMessage_union1_error.message;
|
|
1309
|
+
}
|
|
1310
|
+
if (obj_statusMessage_union0 && obj_statusMessage_union1) {
|
|
1311
|
+
let message = 'Object doesn\'t match union (at "' + path_statusMessage + '")';
|
|
1312
|
+
message += '\n' + obj_statusMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1313
|
+
message += '\n' + obj_statusMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1314
|
+
return new TypeError(message);
|
|
1147
1315
|
}
|
|
1148
1316
|
const obj_teamId = obj.teamId;
|
|
1149
1317
|
const path_teamId = path + '.teamId';
|
|
@@ -1153,25 +1321,25 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
1153
1321
|
})();
|
|
1154
1322
|
return v_error === undefined ? null : v_error;
|
|
1155
1323
|
}
|
|
1156
|
-
const RepresentationType$
|
|
1157
|
-
function keyBuilder$
|
|
1158
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1324
|
+
const RepresentationType$c = 'SlackBridgeUserInfoOutputRepresentation';
|
|
1325
|
+
function keyBuilder$p(luvio, config) {
|
|
1326
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.teamId + ':' + config.slackUserId;
|
|
1159
1327
|
}
|
|
1160
1328
|
function keyBuilderFromType$5(luvio, object) {
|
|
1161
1329
|
const keyParams = {
|
|
1162
1330
|
teamId: object.teamId,
|
|
1163
1331
|
slackUserId: object.slackUserId
|
|
1164
1332
|
};
|
|
1165
|
-
return keyBuilder$
|
|
1333
|
+
return keyBuilder$p(luvio, keyParams);
|
|
1166
1334
|
}
|
|
1167
|
-
function normalize$
|
|
1335
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
1168
1336
|
return input;
|
|
1169
1337
|
}
|
|
1170
|
-
const select$
|
|
1171
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$
|
|
1338
|
+
const select$v = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
1339
|
+
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$w();
|
|
1172
1340
|
return {
|
|
1173
1341
|
kind: 'Fragment',
|
|
1174
|
-
version: VERSION$
|
|
1342
|
+
version: VERSION$f,
|
|
1175
1343
|
private: [],
|
|
1176
1344
|
selections: [
|
|
1177
1345
|
{
|
|
@@ -1239,49 +1407,39 @@ const select$t = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1239
1407
|
]
|
|
1240
1408
|
};
|
|
1241
1409
|
};
|
|
1242
|
-
function equals$
|
|
1410
|
+
function equals$f(existing, incoming) {
|
|
1243
1411
|
const existing_bot = existing.bot;
|
|
1244
1412
|
const incoming_bot = incoming.bot;
|
|
1245
1413
|
if (!(existing_bot === incoming_bot)) {
|
|
1246
1414
|
return false;
|
|
1247
1415
|
}
|
|
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
1416
|
const existing_name = existing.name;
|
|
1259
1417
|
const incoming_name = incoming.name;
|
|
1260
1418
|
if (!(existing_name === incoming_name)) {
|
|
1261
1419
|
return false;
|
|
1262
1420
|
}
|
|
1263
|
-
const existing_realName = existing.realName;
|
|
1264
|
-
const incoming_realName = incoming.realName;
|
|
1265
|
-
if (!(existing_realName === incoming_realName)) {
|
|
1266
|
-
return false;
|
|
1267
|
-
}
|
|
1268
1421
|
const existing_slackUserId = existing.slackUserId;
|
|
1269
1422
|
const incoming_slackUserId = incoming.slackUserId;
|
|
1270
1423
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
1271
1424
|
return false;
|
|
1272
1425
|
}
|
|
1273
|
-
const existing_statusMessage = existing.statusMessage;
|
|
1274
|
-
const incoming_statusMessage = incoming.statusMessage;
|
|
1275
|
-
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
1276
|
-
return false;
|
|
1277
|
-
}
|
|
1278
1426
|
const existing_teamId = existing.teamId;
|
|
1279
1427
|
const incoming_teamId = incoming.teamId;
|
|
1280
1428
|
if (!(existing_teamId === incoming_teamId)) {
|
|
1281
1429
|
return false;
|
|
1282
1430
|
}
|
|
1283
|
-
const
|
|
1284
|
-
const
|
|
1431
|
+
const existing_displayName = existing.displayName;
|
|
1432
|
+
const incoming_displayName = incoming.displayName;
|
|
1433
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
1434
|
+
return false;
|
|
1435
|
+
}
|
|
1436
|
+
const existing_image24 = existing.image24;
|
|
1437
|
+
const incoming_image24 = incoming.image24;
|
|
1438
|
+
if (!(existing_image24 === incoming_image24)) {
|
|
1439
|
+
return false;
|
|
1440
|
+
}
|
|
1441
|
+
const existing_imageOriginal = existing.imageOriginal;
|
|
1442
|
+
const incoming_imageOriginal = incoming.imageOriginal;
|
|
1285
1443
|
if (!(existing_imageOriginal === incoming_imageOriginal)) {
|
|
1286
1444
|
return false;
|
|
1287
1445
|
}
|
|
@@ -1305,6 +1463,11 @@ function equals$e(existing, incoming) {
|
|
|
1305
1463
|
if (!(existing_profileUrl === incoming_profileUrl)) {
|
|
1306
1464
|
return false;
|
|
1307
1465
|
}
|
|
1466
|
+
const existing_realName = existing.realName;
|
|
1467
|
+
const incoming_realName = incoming.realName;
|
|
1468
|
+
if (!(existing_realName === incoming_realName)) {
|
|
1469
|
+
return false;
|
|
1470
|
+
}
|
|
1308
1471
|
const existing_salesforceUserId = existing.salesforceUserId;
|
|
1309
1472
|
const incoming_salesforceUserId = incoming.salesforceUserId;
|
|
1310
1473
|
if (!(existing_salesforceUserId === incoming_salesforceUserId)) {
|
|
@@ -1315,35 +1478,40 @@ function equals$e(existing, incoming) {
|
|
|
1315
1478
|
if (!(existing_statusEmoji === incoming_statusEmoji
|
|
1316
1479
|
|| (existing_statusEmoji != null &&
|
|
1317
1480
|
incoming_statusEmoji != null &&
|
|
1318
|
-
equals$
|
|
1481
|
+
equals$g(existing_statusEmoji, incoming_statusEmoji)))) {
|
|
1482
|
+
return false;
|
|
1483
|
+
}
|
|
1484
|
+
const existing_statusMessage = existing.statusMessage;
|
|
1485
|
+
const incoming_statusMessage = incoming.statusMessage;
|
|
1486
|
+
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
1319
1487
|
return false;
|
|
1320
1488
|
}
|
|
1321
1489
|
return true;
|
|
1322
1490
|
}
|
|
1323
|
-
const ingest$
|
|
1491
|
+
const ingest$c = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1324
1492
|
if (process.env.NODE_ENV !== 'production') {
|
|
1325
|
-
const validateError = validate$
|
|
1493
|
+
const validateError = validate$f(input);
|
|
1326
1494
|
if (validateError !== null) {
|
|
1327
1495
|
throw validateError;
|
|
1328
1496
|
}
|
|
1329
1497
|
}
|
|
1330
1498
|
const key = keyBuilderFromType$5(luvio, input);
|
|
1331
1499
|
const ttlToUse = TTL;
|
|
1332
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1500
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$f, RepresentationType$c, equals$f);
|
|
1333
1501
|
return createLink(key);
|
|
1334
1502
|
};
|
|
1335
|
-
function getTypeCacheKeys$
|
|
1503
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
1336
1504
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1337
1505
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1338
1506
|
rootKeySet.set(rootKey, {
|
|
1339
1507
|
namespace: keyPrefix,
|
|
1340
|
-
representationName: RepresentationType$
|
|
1508
|
+
representationName: RepresentationType$c,
|
|
1341
1509
|
mergeable: false
|
|
1342
1510
|
});
|
|
1343
1511
|
}
|
|
1344
1512
|
|
|
1345
|
-
const VERSION$
|
|
1346
|
-
function validate$
|
|
1513
|
+
const VERSION$e = "252fe3a6509a770a876e36552ad8dd06";
|
|
1514
|
+
function validate$e(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1347
1515
|
const v_error = (() => {
|
|
1348
1516
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1349
1517
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1355,13 +1523,55 @@ function validate$d(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1355
1523
|
}
|
|
1356
1524
|
const obj_isArchived = obj.isArchived;
|
|
1357
1525
|
const path_isArchived = path + '.isArchived';
|
|
1358
|
-
|
|
1359
|
-
|
|
1526
|
+
let obj_isArchived_union0 = null;
|
|
1527
|
+
const obj_isArchived_union0_error = (() => {
|
|
1528
|
+
if (typeof obj_isArchived !== 'boolean') {
|
|
1529
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isArchived + '" (at "' + path_isArchived + '")');
|
|
1530
|
+
}
|
|
1531
|
+
})();
|
|
1532
|
+
if (obj_isArchived_union0_error != null) {
|
|
1533
|
+
obj_isArchived_union0 = obj_isArchived_union0_error.message;
|
|
1534
|
+
}
|
|
1535
|
+
let obj_isArchived_union1 = null;
|
|
1536
|
+
const obj_isArchived_union1_error = (() => {
|
|
1537
|
+
if (obj_isArchived !== null) {
|
|
1538
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isArchived + '" (at "' + path_isArchived + '")');
|
|
1539
|
+
}
|
|
1540
|
+
})();
|
|
1541
|
+
if (obj_isArchived_union1_error != null) {
|
|
1542
|
+
obj_isArchived_union1 = obj_isArchived_union1_error.message;
|
|
1543
|
+
}
|
|
1544
|
+
if (obj_isArchived_union0 && obj_isArchived_union1) {
|
|
1545
|
+
let message = 'Object doesn\'t match union (at "' + path_isArchived + '")';
|
|
1546
|
+
message += '\n' + obj_isArchived_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1547
|
+
message += '\n' + obj_isArchived_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1548
|
+
return new TypeError(message);
|
|
1360
1549
|
}
|
|
1361
1550
|
const obj_isChannel = obj.isChannel;
|
|
1362
1551
|
const path_isChannel = path + '.isChannel';
|
|
1363
|
-
|
|
1364
|
-
|
|
1552
|
+
let obj_isChannel_union0 = null;
|
|
1553
|
+
const obj_isChannel_union0_error = (() => {
|
|
1554
|
+
if (typeof obj_isChannel !== 'boolean') {
|
|
1555
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isChannel + '" (at "' + path_isChannel + '")');
|
|
1556
|
+
}
|
|
1557
|
+
})();
|
|
1558
|
+
if (obj_isChannel_union0_error != null) {
|
|
1559
|
+
obj_isChannel_union0 = obj_isChannel_union0_error.message;
|
|
1560
|
+
}
|
|
1561
|
+
let obj_isChannel_union1 = null;
|
|
1562
|
+
const obj_isChannel_union1_error = (() => {
|
|
1563
|
+
if (obj_isChannel !== null) {
|
|
1564
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isChannel + '" (at "' + path_isChannel + '")');
|
|
1565
|
+
}
|
|
1566
|
+
})();
|
|
1567
|
+
if (obj_isChannel_union1_error != null) {
|
|
1568
|
+
obj_isChannel_union1 = obj_isChannel_union1_error.message;
|
|
1569
|
+
}
|
|
1570
|
+
if (obj_isChannel_union0 && obj_isChannel_union1) {
|
|
1571
|
+
let message = 'Object doesn\'t match union (at "' + path_isChannel + '")';
|
|
1572
|
+
message += '\n' + obj_isChannel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1573
|
+
message += '\n' + obj_isChannel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1574
|
+
return new TypeError(message);
|
|
1365
1575
|
}
|
|
1366
1576
|
const obj_isCustomEmojiSupported = obj.isCustomEmojiSupported;
|
|
1367
1577
|
const path_isCustomEmojiSupported = path + '.isCustomEmojiSupported';
|
|
@@ -1391,38 +1601,185 @@ function validate$d(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1391
1601
|
}
|
|
1392
1602
|
const obj_isGroup = obj.isGroup;
|
|
1393
1603
|
const path_isGroup = path + '.isGroup';
|
|
1394
|
-
|
|
1395
|
-
|
|
1604
|
+
let obj_isGroup_union0 = null;
|
|
1605
|
+
const obj_isGroup_union0_error = (() => {
|
|
1606
|
+
if (typeof obj_isGroup !== 'boolean') {
|
|
1607
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isGroup + '" (at "' + path_isGroup + '")');
|
|
1608
|
+
}
|
|
1609
|
+
})();
|
|
1610
|
+
if (obj_isGroup_union0_error != null) {
|
|
1611
|
+
obj_isGroup_union0 = obj_isGroup_union0_error.message;
|
|
1612
|
+
}
|
|
1613
|
+
let obj_isGroup_union1 = null;
|
|
1614
|
+
const obj_isGroup_union1_error = (() => {
|
|
1615
|
+
if (obj_isGroup !== null) {
|
|
1616
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isGroup + '" (at "' + path_isGroup + '")');
|
|
1617
|
+
}
|
|
1618
|
+
})();
|
|
1619
|
+
if (obj_isGroup_union1_error != null) {
|
|
1620
|
+
obj_isGroup_union1 = obj_isGroup_union1_error.message;
|
|
1621
|
+
}
|
|
1622
|
+
if (obj_isGroup_union0 && obj_isGroup_union1) {
|
|
1623
|
+
let message = 'Object doesn\'t match union (at "' + path_isGroup + '")';
|
|
1624
|
+
message += '\n' + obj_isGroup_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1625
|
+
message += '\n' + obj_isGroup_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1626
|
+
return new TypeError(message);
|
|
1396
1627
|
}
|
|
1397
1628
|
const obj_isIm = obj.isIm;
|
|
1398
1629
|
const path_isIm = path + '.isIm';
|
|
1399
|
-
|
|
1400
|
-
|
|
1630
|
+
let obj_isIm_union0 = null;
|
|
1631
|
+
const obj_isIm_union0_error = (() => {
|
|
1632
|
+
if (typeof obj_isIm !== 'boolean') {
|
|
1633
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isIm + '" (at "' + path_isIm + '")');
|
|
1634
|
+
}
|
|
1635
|
+
})();
|
|
1636
|
+
if (obj_isIm_union0_error != null) {
|
|
1637
|
+
obj_isIm_union0 = obj_isIm_union0_error.message;
|
|
1638
|
+
}
|
|
1639
|
+
let obj_isIm_union1 = null;
|
|
1640
|
+
const obj_isIm_union1_error = (() => {
|
|
1641
|
+
if (obj_isIm !== null) {
|
|
1642
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isIm + '" (at "' + path_isIm + '")');
|
|
1643
|
+
}
|
|
1644
|
+
})();
|
|
1645
|
+
if (obj_isIm_union1_error != null) {
|
|
1646
|
+
obj_isIm_union1 = obj_isIm_union1_error.message;
|
|
1647
|
+
}
|
|
1648
|
+
if (obj_isIm_union0 && obj_isIm_union1) {
|
|
1649
|
+
let message = 'Object doesn\'t match union (at "' + path_isIm + '")';
|
|
1650
|
+
message += '\n' + obj_isIm_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1651
|
+
message += '\n' + obj_isIm_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1652
|
+
return new TypeError(message);
|
|
1401
1653
|
}
|
|
1402
1654
|
const obj_isMember = obj.isMember;
|
|
1403
1655
|
const path_isMember = path + '.isMember';
|
|
1404
|
-
|
|
1405
|
-
|
|
1656
|
+
let obj_isMember_union0 = null;
|
|
1657
|
+
const obj_isMember_union0_error = (() => {
|
|
1658
|
+
if (typeof obj_isMember !== 'boolean') {
|
|
1659
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMember + '" (at "' + path_isMember + '")');
|
|
1660
|
+
}
|
|
1661
|
+
})();
|
|
1662
|
+
if (obj_isMember_union0_error != null) {
|
|
1663
|
+
obj_isMember_union0 = obj_isMember_union0_error.message;
|
|
1664
|
+
}
|
|
1665
|
+
let obj_isMember_union1 = null;
|
|
1666
|
+
const obj_isMember_union1_error = (() => {
|
|
1667
|
+
if (obj_isMember !== null) {
|
|
1668
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isMember + '" (at "' + path_isMember + '")');
|
|
1669
|
+
}
|
|
1670
|
+
})();
|
|
1671
|
+
if (obj_isMember_union1_error != null) {
|
|
1672
|
+
obj_isMember_union1 = obj_isMember_union1_error.message;
|
|
1673
|
+
}
|
|
1674
|
+
if (obj_isMember_union0 && obj_isMember_union1) {
|
|
1675
|
+
let message = 'Object doesn\'t match union (at "' + path_isMember + '")';
|
|
1676
|
+
message += '\n' + obj_isMember_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1677
|
+
message += '\n' + obj_isMember_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1678
|
+
return new TypeError(message);
|
|
1406
1679
|
}
|
|
1407
1680
|
const obj_isOpen = obj.isOpen;
|
|
1408
1681
|
const path_isOpen = path + '.isOpen';
|
|
1409
|
-
|
|
1410
|
-
|
|
1682
|
+
let obj_isOpen_union0 = null;
|
|
1683
|
+
const obj_isOpen_union0_error = (() => {
|
|
1684
|
+
if (typeof obj_isOpen !== 'boolean') {
|
|
1685
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isOpen + '" (at "' + path_isOpen + '")');
|
|
1686
|
+
}
|
|
1687
|
+
})();
|
|
1688
|
+
if (obj_isOpen_union0_error != null) {
|
|
1689
|
+
obj_isOpen_union0 = obj_isOpen_union0_error.message;
|
|
1690
|
+
}
|
|
1691
|
+
let obj_isOpen_union1 = null;
|
|
1692
|
+
const obj_isOpen_union1_error = (() => {
|
|
1693
|
+
if (obj_isOpen !== null) {
|
|
1694
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isOpen + '" (at "' + path_isOpen + '")');
|
|
1695
|
+
}
|
|
1696
|
+
})();
|
|
1697
|
+
if (obj_isOpen_union1_error != null) {
|
|
1698
|
+
obj_isOpen_union1 = obj_isOpen_union1_error.message;
|
|
1699
|
+
}
|
|
1700
|
+
if (obj_isOpen_union0 && obj_isOpen_union1) {
|
|
1701
|
+
let message = 'Object doesn\'t match union (at "' + path_isOpen + '")';
|
|
1702
|
+
message += '\n' + obj_isOpen_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1703
|
+
message += '\n' + obj_isOpen_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1704
|
+
return new TypeError(message);
|
|
1411
1705
|
}
|
|
1412
1706
|
const obj_isPrivate = obj.isPrivate;
|
|
1413
1707
|
const path_isPrivate = path + '.isPrivate';
|
|
1414
|
-
|
|
1415
|
-
|
|
1708
|
+
let obj_isPrivate_union0 = null;
|
|
1709
|
+
const obj_isPrivate_union0_error = (() => {
|
|
1710
|
+
if (typeof obj_isPrivate !== 'boolean') {
|
|
1711
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrivate + '" (at "' + path_isPrivate + '")');
|
|
1712
|
+
}
|
|
1713
|
+
})();
|
|
1714
|
+
if (obj_isPrivate_union0_error != null) {
|
|
1715
|
+
obj_isPrivate_union0 = obj_isPrivate_union0_error.message;
|
|
1716
|
+
}
|
|
1717
|
+
let obj_isPrivate_union1 = null;
|
|
1718
|
+
const obj_isPrivate_union1_error = (() => {
|
|
1719
|
+
if (obj_isPrivate !== null) {
|
|
1720
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isPrivate + '" (at "' + path_isPrivate + '")');
|
|
1721
|
+
}
|
|
1722
|
+
})();
|
|
1723
|
+
if (obj_isPrivate_union1_error != null) {
|
|
1724
|
+
obj_isPrivate_union1 = obj_isPrivate_union1_error.message;
|
|
1725
|
+
}
|
|
1726
|
+
if (obj_isPrivate_union0 && obj_isPrivate_union1) {
|
|
1727
|
+
let message = 'Object doesn\'t match union (at "' + path_isPrivate + '")';
|
|
1728
|
+
message += '\n' + obj_isPrivate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1729
|
+
message += '\n' + obj_isPrivate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1730
|
+
return new TypeError(message);
|
|
1416
1731
|
}
|
|
1417
1732
|
const obj_isReadOnly = obj.isReadOnly;
|
|
1418
1733
|
const path_isReadOnly = path + '.isReadOnly';
|
|
1419
|
-
|
|
1420
|
-
|
|
1734
|
+
let obj_isReadOnly_union0 = null;
|
|
1735
|
+
const obj_isReadOnly_union0_error = (() => {
|
|
1736
|
+
if (typeof obj_isReadOnly !== 'boolean') {
|
|
1737
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isReadOnly + '" (at "' + path_isReadOnly + '")');
|
|
1738
|
+
}
|
|
1739
|
+
})();
|
|
1740
|
+
if (obj_isReadOnly_union0_error != null) {
|
|
1741
|
+
obj_isReadOnly_union0 = obj_isReadOnly_union0_error.message;
|
|
1742
|
+
}
|
|
1743
|
+
let obj_isReadOnly_union1 = null;
|
|
1744
|
+
const obj_isReadOnly_union1_error = (() => {
|
|
1745
|
+
if (obj_isReadOnly !== null) {
|
|
1746
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isReadOnly + '" (at "' + path_isReadOnly + '")');
|
|
1747
|
+
}
|
|
1748
|
+
})();
|
|
1749
|
+
if (obj_isReadOnly_union1_error != null) {
|
|
1750
|
+
obj_isReadOnly_union1 = obj_isReadOnly_union1_error.message;
|
|
1751
|
+
}
|
|
1752
|
+
if (obj_isReadOnly_union0 && obj_isReadOnly_union1) {
|
|
1753
|
+
let message = 'Object doesn\'t match union (at "' + path_isReadOnly + '")';
|
|
1754
|
+
message += '\n' + obj_isReadOnly_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1755
|
+
message += '\n' + obj_isReadOnly_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1756
|
+
return new TypeError(message);
|
|
1421
1757
|
}
|
|
1422
1758
|
const obj_isThreadOnly = obj.isThreadOnly;
|
|
1423
1759
|
const path_isThreadOnly = path + '.isThreadOnly';
|
|
1424
|
-
|
|
1425
|
-
|
|
1760
|
+
let obj_isThreadOnly_union0 = null;
|
|
1761
|
+
const obj_isThreadOnly_union0_error = (() => {
|
|
1762
|
+
if (typeof obj_isThreadOnly !== 'boolean') {
|
|
1763
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isThreadOnly + '" (at "' + path_isThreadOnly + '")');
|
|
1764
|
+
}
|
|
1765
|
+
})();
|
|
1766
|
+
if (obj_isThreadOnly_union0_error != null) {
|
|
1767
|
+
obj_isThreadOnly_union0 = obj_isThreadOnly_union0_error.message;
|
|
1768
|
+
}
|
|
1769
|
+
let obj_isThreadOnly_union1 = null;
|
|
1770
|
+
const obj_isThreadOnly_union1_error = (() => {
|
|
1771
|
+
if (obj_isThreadOnly !== null) {
|
|
1772
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isThreadOnly + '" (at "' + path_isThreadOnly + '")');
|
|
1773
|
+
}
|
|
1774
|
+
})();
|
|
1775
|
+
if (obj_isThreadOnly_union1_error != null) {
|
|
1776
|
+
obj_isThreadOnly_union1 = obj_isThreadOnly_union1_error.message;
|
|
1777
|
+
}
|
|
1778
|
+
if (obj_isThreadOnly_union0 && obj_isThreadOnly_union1) {
|
|
1779
|
+
let message = 'Object doesn\'t match union (at "' + path_isThreadOnly + '")';
|
|
1780
|
+
message += '\n' + obj_isThreadOnly_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1781
|
+
message += '\n' + obj_isThreadOnly_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1782
|
+
return new TypeError(message);
|
|
1426
1783
|
}
|
|
1427
1784
|
const obj_name = obj.name;
|
|
1428
1785
|
const path_name = path + '.name';
|
|
@@ -1491,23 +1848,23 @@ function validate$d(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1491
1848
|
})();
|
|
1492
1849
|
return v_error === undefined ? null : v_error;
|
|
1493
1850
|
}
|
|
1494
|
-
const RepresentationType$
|
|
1495
|
-
function keyBuilder$
|
|
1496
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1851
|
+
const RepresentationType$b = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1852
|
+
function keyBuilder$o(luvio, config) {
|
|
1853
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.id;
|
|
1497
1854
|
}
|
|
1498
1855
|
function keyBuilderFromType$4(luvio, object) {
|
|
1499
1856
|
const keyParams = {
|
|
1500
1857
|
id: object.id
|
|
1501
1858
|
};
|
|
1502
|
-
return keyBuilder$
|
|
1859
|
+
return keyBuilder$o(luvio, keyParams);
|
|
1503
1860
|
}
|
|
1504
|
-
function normalize$
|
|
1861
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1505
1862
|
return input;
|
|
1506
1863
|
}
|
|
1507
|
-
const select$
|
|
1864
|
+
const select$u = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1508
1865
|
return {
|
|
1509
1866
|
kind: 'Fragment',
|
|
1510
|
-
version: VERSION$
|
|
1867
|
+
version: VERSION$e,
|
|
1511
1868
|
private: [],
|
|
1512
1869
|
selections: [
|
|
1513
1870
|
{
|
|
@@ -1574,7 +1931,30 @@ const select$s = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1574
1931
|
]
|
|
1575
1932
|
};
|
|
1576
1933
|
};
|
|
1577
|
-
function equals$
|
|
1934
|
+
function equals$e(existing, incoming) {
|
|
1935
|
+
const existing_id = existing.id;
|
|
1936
|
+
const incoming_id = incoming.id;
|
|
1937
|
+
if (!(existing_id === incoming_id)) {
|
|
1938
|
+
return false;
|
|
1939
|
+
}
|
|
1940
|
+
const existing_name = existing.name;
|
|
1941
|
+
const incoming_name = incoming.name;
|
|
1942
|
+
if (!(existing_name === incoming_name)) {
|
|
1943
|
+
return false;
|
|
1944
|
+
}
|
|
1945
|
+
const existing_url = existing.url;
|
|
1946
|
+
const incoming_url = incoming.url;
|
|
1947
|
+
// if at least one of these optionals is defined
|
|
1948
|
+
if (existing_url !== undefined || incoming_url !== undefined) {
|
|
1949
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1950
|
+
// not equal
|
|
1951
|
+
if (existing_url === undefined || incoming_url === undefined) {
|
|
1952
|
+
return false;
|
|
1953
|
+
}
|
|
1954
|
+
if (!(existing_url === incoming_url)) {
|
|
1955
|
+
return false;
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1578
1958
|
const existing_isArchived = existing.isArchived;
|
|
1579
1959
|
const incoming_isArchived = incoming.isArchived;
|
|
1580
1960
|
if (!(existing_isArchived === incoming_isArchived)) {
|
|
@@ -1585,6 +1965,11 @@ function equals$d(existing, incoming) {
|
|
|
1585
1965
|
if (!(existing_isChannel === incoming_isChannel)) {
|
|
1586
1966
|
return false;
|
|
1587
1967
|
}
|
|
1968
|
+
const existing_isCustomEmojiSupported = existing.isCustomEmojiSupported;
|
|
1969
|
+
const incoming_isCustomEmojiSupported = incoming.isCustomEmojiSupported;
|
|
1970
|
+
if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
|
|
1971
|
+
return false;
|
|
1972
|
+
}
|
|
1588
1973
|
const existing_isGroup = existing.isGroup;
|
|
1589
1974
|
const incoming_isGroup = incoming.isGroup;
|
|
1590
1975
|
if (!(existing_isGroup === incoming_isGroup)) {
|
|
@@ -1620,34 +2005,6 @@ function equals$d(existing, incoming) {
|
|
|
1620
2005
|
if (!(existing_isThreadOnly === incoming_isThreadOnly)) {
|
|
1621
2006
|
return false;
|
|
1622
2007
|
}
|
|
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
2008
|
const existing_numOfMembers = existing.numOfMembers;
|
|
1652
2009
|
const incoming_numOfMembers = incoming.numOfMembers;
|
|
1653
2010
|
if (!(existing_numOfMembers === incoming_numOfMembers)) {
|
|
@@ -1660,30 +2017,30 @@ function equals$d(existing, incoming) {
|
|
|
1660
2017
|
}
|
|
1661
2018
|
return true;
|
|
1662
2019
|
}
|
|
1663
|
-
const ingest$
|
|
2020
|
+
const ingest$b = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1664
2021
|
if (process.env.NODE_ENV !== 'production') {
|
|
1665
|
-
const validateError = validate$
|
|
2022
|
+
const validateError = validate$e(input);
|
|
1666
2023
|
if (validateError !== null) {
|
|
1667
2024
|
throw validateError;
|
|
1668
2025
|
}
|
|
1669
2026
|
}
|
|
1670
2027
|
const key = keyBuilderFromType$4(luvio, input);
|
|
1671
2028
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1672
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2029
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$e, RepresentationType$b, equals$e);
|
|
1673
2030
|
return createLink(key);
|
|
1674
2031
|
};
|
|
1675
|
-
function getTypeCacheKeys$
|
|
2032
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
1676
2033
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1677
2034
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
1678
2035
|
rootKeySet.set(rootKey, {
|
|
1679
2036
|
namespace: keyPrefix,
|
|
1680
|
-
representationName: RepresentationType$
|
|
2037
|
+
representationName: RepresentationType$b,
|
|
1681
2038
|
mergeable: false
|
|
1682
2039
|
});
|
|
1683
2040
|
}
|
|
1684
2041
|
|
|
1685
|
-
const VERSION$
|
|
1686
|
-
function validate$
|
|
2042
|
+
const VERSION$d = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
2043
|
+
function validate$d(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
1687
2044
|
const v_error = (() => {
|
|
1688
2045
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1689
2046
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1701,10 +2058,10 @@ function validate$c(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1701
2058
|
})();
|
|
1702
2059
|
return v_error === undefined ? null : v_error;
|
|
1703
2060
|
}
|
|
1704
|
-
const select$
|
|
2061
|
+
const select$t = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1705
2062
|
return {
|
|
1706
2063
|
kind: 'Fragment',
|
|
1707
|
-
version: VERSION$
|
|
2064
|
+
version: VERSION$d,
|
|
1708
2065
|
private: [],
|
|
1709
2066
|
selections: [
|
|
1710
2067
|
{
|
|
@@ -1718,7 +2075,7 @@ const select$r = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
|
1718
2075
|
]
|
|
1719
2076
|
};
|
|
1720
2077
|
};
|
|
1721
|
-
function equals$
|
|
2078
|
+
function equals$d(existing, incoming) {
|
|
1722
2079
|
const existing_extension = existing.extension;
|
|
1723
2080
|
const incoming_extension = incoming.extension;
|
|
1724
2081
|
if (!(existing_extension === incoming_extension)) {
|
|
@@ -1732,8 +2089,8 @@ function equals$c(existing, incoming) {
|
|
|
1732
2089
|
return true;
|
|
1733
2090
|
}
|
|
1734
2091
|
|
|
1735
|
-
const VERSION$
|
|
1736
|
-
function validate$
|
|
2092
|
+
const VERSION$c = "3ef7c0314c9cc37a0b6c3b0dbd6a76a5";
|
|
2093
|
+
function validate$c(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
|
|
1737
2094
|
const v_error = (() => {
|
|
1738
2095
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1739
2096
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1745,10 +2102,31 @@ function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1745
2102
|
}
|
|
1746
2103
|
const obj_filetype = obj.filetype;
|
|
1747
2104
|
const path_filetype = path + '.filetype';
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
2105
|
+
let obj_filetype_union0 = null;
|
|
2106
|
+
const obj_filetype_union0_error = (() => {
|
|
2107
|
+
const referencepath_filetypeValidationError = validate$d(obj_filetype, path_filetype);
|
|
2108
|
+
if (referencepath_filetypeValidationError !== null) {
|
|
2109
|
+
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
2110
|
+
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2111
|
+
return new TypeError(message);
|
|
2112
|
+
}
|
|
2113
|
+
})();
|
|
2114
|
+
if (obj_filetype_union0_error != null) {
|
|
2115
|
+
obj_filetype_union0 = obj_filetype_union0_error.message;
|
|
2116
|
+
}
|
|
2117
|
+
let obj_filetype_union1 = null;
|
|
2118
|
+
const obj_filetype_union1_error = (() => {
|
|
2119
|
+
if (obj_filetype !== null) {
|
|
2120
|
+
return new TypeError('Expected "null" but received "' + typeof obj_filetype + '" (at "' + path_filetype + '")');
|
|
2121
|
+
}
|
|
2122
|
+
})();
|
|
2123
|
+
if (obj_filetype_union1_error != null) {
|
|
2124
|
+
obj_filetype_union1 = obj_filetype_union1_error.message;
|
|
2125
|
+
}
|
|
2126
|
+
if (obj_filetype_union0 && obj_filetype_union1) {
|
|
2127
|
+
let message = 'Object doesn\'t match union (at "' + path_filetype + '")';
|
|
2128
|
+
message += '\n' + obj_filetype_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2129
|
+
message += '\n' + obj_filetype_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1752
2130
|
return new TypeError(message);
|
|
1753
2131
|
}
|
|
1754
2132
|
const obj_id = obj.id;
|
|
@@ -1768,17 +2146,38 @@ function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1768
2146
|
}
|
|
1769
2147
|
const obj_versionUrl = obj.versionUrl;
|
|
1770
2148
|
const path_versionUrl = path + '.versionUrl';
|
|
1771
|
-
|
|
1772
|
-
|
|
2149
|
+
let obj_versionUrl_union0 = null;
|
|
2150
|
+
const obj_versionUrl_union0_error = (() => {
|
|
2151
|
+
if (typeof obj_versionUrl !== 'string') {
|
|
2152
|
+
return new TypeError('Expected "string" but received "' + typeof obj_versionUrl + '" (at "' + path_versionUrl + '")');
|
|
2153
|
+
}
|
|
2154
|
+
})();
|
|
2155
|
+
if (obj_versionUrl_union0_error != null) {
|
|
2156
|
+
obj_versionUrl_union0 = obj_versionUrl_union0_error.message;
|
|
2157
|
+
}
|
|
2158
|
+
let obj_versionUrl_union1 = null;
|
|
2159
|
+
const obj_versionUrl_union1_error = (() => {
|
|
2160
|
+
if (obj_versionUrl !== null) {
|
|
2161
|
+
return new TypeError('Expected "null" but received "' + typeof obj_versionUrl + '" (at "' + path_versionUrl + '")');
|
|
2162
|
+
}
|
|
2163
|
+
})();
|
|
2164
|
+
if (obj_versionUrl_union1_error != null) {
|
|
2165
|
+
obj_versionUrl_union1 = obj_versionUrl_union1_error.message;
|
|
2166
|
+
}
|
|
2167
|
+
if (obj_versionUrl_union0 && obj_versionUrl_union1) {
|
|
2168
|
+
let message = 'Object doesn\'t match union (at "' + path_versionUrl + '")';
|
|
2169
|
+
message += '\n' + obj_versionUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2170
|
+
message += '\n' + obj_versionUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2171
|
+
return new TypeError(message);
|
|
1773
2172
|
}
|
|
1774
2173
|
})();
|
|
1775
2174
|
return v_error === undefined ? null : v_error;
|
|
1776
2175
|
}
|
|
1777
|
-
const select$
|
|
1778
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
2176
|
+
const select$s = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
2177
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$t();
|
|
1779
2178
|
return {
|
|
1780
2179
|
kind: 'Fragment',
|
|
1781
|
-
version: VERSION$
|
|
2180
|
+
version: VERSION$c,
|
|
1782
2181
|
private: [],
|
|
1783
2182
|
selections: [
|
|
1784
2183
|
{
|
|
@@ -1788,6 +2187,7 @@ const select$q = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1788
2187
|
{
|
|
1789
2188
|
name: 'filetype',
|
|
1790
2189
|
kind: 'Object',
|
|
2190
|
+
nullable: true,
|
|
1791
2191
|
selections: SlackBridgeFileTypeOutputRepresentation__selections
|
|
1792
2192
|
},
|
|
1793
2193
|
{
|
|
@@ -1809,7 +2209,7 @@ const select$q = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1809
2209
|
]
|
|
1810
2210
|
};
|
|
1811
2211
|
};
|
|
1812
|
-
function equals$
|
|
2212
|
+
function equals$c(existing, incoming) {
|
|
1813
2213
|
const existing_size = existing.size;
|
|
1814
2214
|
const incoming_size = incoming.size;
|
|
1815
2215
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1830,28 +2230,31 @@ function equals$b(existing, incoming) {
|
|
|
1830
2230
|
if (!(existing_title === incoming_title)) {
|
|
1831
2231
|
return false;
|
|
1832
2232
|
}
|
|
2233
|
+
const existing_filetype = existing.filetype;
|
|
2234
|
+
const incoming_filetype = incoming.filetype;
|
|
2235
|
+
if (!(existing_filetype === incoming_filetype
|
|
2236
|
+
|| (existing_filetype != null &&
|
|
2237
|
+
incoming_filetype != null &&
|
|
2238
|
+
equals$d(existing_filetype, incoming_filetype)))) {
|
|
2239
|
+
return false;
|
|
2240
|
+
}
|
|
1833
2241
|
const existing_versionUrl = existing.versionUrl;
|
|
1834
2242
|
const incoming_versionUrl = incoming.versionUrl;
|
|
1835
2243
|
if (!(existing_versionUrl === incoming_versionUrl)) {
|
|
1836
2244
|
return false;
|
|
1837
2245
|
}
|
|
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
2246
|
return true;
|
|
1844
2247
|
}
|
|
1845
2248
|
|
|
1846
|
-
const VERSION$
|
|
1847
|
-
function validate$
|
|
2249
|
+
const VERSION$b = "effdd259bc622bee05493fc2a3ecd276";
|
|
2250
|
+
function validate$b(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
|
|
1848
2251
|
const v_error = (() => {
|
|
1849
2252
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1850
2253
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1851
2254
|
}
|
|
1852
2255
|
const obj_filetype = obj.filetype;
|
|
1853
2256
|
const path_filetype = path + '.filetype';
|
|
1854
|
-
const referencepath_filetypeValidationError = validate$
|
|
2257
|
+
const referencepath_filetypeValidationError = validate$d(obj_filetype, path_filetype);
|
|
1855
2258
|
if (referencepath_filetypeValidationError !== null) {
|
|
1856
2259
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1857
2260
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1864,7 +2267,7 @@ function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1864
2267
|
}
|
|
1865
2268
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
1866
2269
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
1867
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
2270
|
+
const referencepath_latestPublishedVersionValidationError = validate$c(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
1868
2271
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
1869
2272
|
let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
1870
2273
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1883,12 +2286,12 @@ function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1883
2286
|
})();
|
|
1884
2287
|
return v_error === undefined ? null : v_error;
|
|
1885
2288
|
}
|
|
1886
|
-
const select$
|
|
1887
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1888
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
2289
|
+
const select$r = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
2290
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$t();
|
|
2291
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$s();
|
|
1889
2292
|
return {
|
|
1890
2293
|
kind: 'Fragment',
|
|
1891
|
-
version: VERSION$
|
|
2294
|
+
version: VERSION$b,
|
|
1892
2295
|
private: [],
|
|
1893
2296
|
selections: [
|
|
1894
2297
|
{
|
|
@@ -1916,7 +2319,7 @@ const select$p = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
1916
2319
|
]
|
|
1917
2320
|
};
|
|
1918
2321
|
};
|
|
1919
|
-
function equals$
|
|
2322
|
+
function equals$b(existing, incoming) {
|
|
1920
2323
|
const existing_size = existing.size;
|
|
1921
2324
|
const incoming_size = incoming.size;
|
|
1922
2325
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1934,29 +2337,50 @@ function equals$a(existing, incoming) {
|
|
|
1934
2337
|
}
|
|
1935
2338
|
const existing_filetype = existing.filetype;
|
|
1936
2339
|
const incoming_filetype = incoming.filetype;
|
|
1937
|
-
if (!(equals$
|
|
2340
|
+
if (!(equals$d(existing_filetype, incoming_filetype))) {
|
|
1938
2341
|
return false;
|
|
1939
2342
|
}
|
|
1940
2343
|
const existing_latestPublishedVersion = existing.latestPublishedVersion;
|
|
1941
2344
|
const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
|
|
1942
|
-
if (!(equals$
|
|
2345
|
+
if (!(equals$c(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
|
|
1943
2346
|
return false;
|
|
1944
2347
|
}
|
|
1945
2348
|
return true;
|
|
1946
2349
|
}
|
|
1947
2350
|
|
|
1948
|
-
const VERSION$
|
|
1949
|
-
function validate$
|
|
2351
|
+
const VERSION$a = "15fa7211c500ebba9537b3c9921b39cf";
|
|
2352
|
+
function validate$a(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
1950
2353
|
const v_error = (() => {
|
|
1951
2354
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1952
2355
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1953
2356
|
}
|
|
1954
2357
|
const obj_contentDocument = obj.contentDocument;
|
|
1955
2358
|
const path_contentDocument = path + '.contentDocument';
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
2359
|
+
let obj_contentDocument_union0 = null;
|
|
2360
|
+
const obj_contentDocument_union0_error = (() => {
|
|
2361
|
+
const referencepath_contentDocumentValidationError = validate$b(obj_contentDocument, path_contentDocument);
|
|
2362
|
+
if (referencepath_contentDocumentValidationError !== null) {
|
|
2363
|
+
let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
2364
|
+
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2365
|
+
return new TypeError(message);
|
|
2366
|
+
}
|
|
2367
|
+
})();
|
|
2368
|
+
if (obj_contentDocument_union0_error != null) {
|
|
2369
|
+
obj_contentDocument_union0 = obj_contentDocument_union0_error.message;
|
|
2370
|
+
}
|
|
2371
|
+
let obj_contentDocument_union1 = null;
|
|
2372
|
+
const obj_contentDocument_union1_error = (() => {
|
|
2373
|
+
if (obj_contentDocument !== null) {
|
|
2374
|
+
return new TypeError('Expected "null" but received "' + typeof obj_contentDocument + '" (at "' + path_contentDocument + '")');
|
|
2375
|
+
}
|
|
2376
|
+
})();
|
|
2377
|
+
if (obj_contentDocument_union1_error != null) {
|
|
2378
|
+
obj_contentDocument_union1 = obj_contentDocument_union1_error.message;
|
|
2379
|
+
}
|
|
2380
|
+
if (obj_contentDocument_union0 && obj_contentDocument_union1) {
|
|
2381
|
+
let message = 'Object doesn\'t match union (at "' + path_contentDocument + '")';
|
|
2382
|
+
message += '\n' + obj_contentDocument_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2383
|
+
message += '\n' + obj_contentDocument_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1960
2384
|
return new TypeError(message);
|
|
1961
2385
|
}
|
|
1962
2386
|
const obj_filetype = obj.filetype;
|
|
@@ -1981,8 +2405,29 @@ function validate$9(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1981
2405
|
}
|
|
1982
2406
|
const obj_size = obj.size;
|
|
1983
2407
|
const path_size = path + '.size';
|
|
1984
|
-
|
|
1985
|
-
|
|
2408
|
+
let obj_size_union0 = null;
|
|
2409
|
+
const obj_size_union0_error = (() => {
|
|
2410
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
2411
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
2412
|
+
}
|
|
2413
|
+
})();
|
|
2414
|
+
if (obj_size_union0_error != null) {
|
|
2415
|
+
obj_size_union0 = obj_size_union0_error.message;
|
|
2416
|
+
}
|
|
2417
|
+
let obj_size_union1 = null;
|
|
2418
|
+
const obj_size_union1_error = (() => {
|
|
2419
|
+
if (obj_size !== null) {
|
|
2420
|
+
return new TypeError('Expected "null" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
2421
|
+
}
|
|
2422
|
+
})();
|
|
2423
|
+
if (obj_size_union1_error != null) {
|
|
2424
|
+
obj_size_union1 = obj_size_union1_error.message;
|
|
2425
|
+
}
|
|
2426
|
+
if (obj_size_union0 && obj_size_union1) {
|
|
2427
|
+
let message = 'Object doesn\'t match union (at "' + path_size + '")';
|
|
2428
|
+
message += '\n' + obj_size_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2429
|
+
message += '\n' + obj_size_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2430
|
+
return new TypeError(message);
|
|
1986
2431
|
}
|
|
1987
2432
|
const obj_slackPermalink = obj.slackPermalink;
|
|
1988
2433
|
const path_slackPermalink = path + '.slackPermalink';
|
|
@@ -1996,45 +2441,109 @@ function validate$9(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1996
2441
|
}
|
|
1997
2442
|
const obj_token = obj.token;
|
|
1998
2443
|
const path_token = path + '.token';
|
|
1999
|
-
|
|
2000
|
-
|
|
2444
|
+
let obj_token_union0 = null;
|
|
2445
|
+
const obj_token_union0_error = (() => {
|
|
2446
|
+
if (typeof obj_token !== 'string') {
|
|
2447
|
+
return new TypeError('Expected "string" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
2448
|
+
}
|
|
2449
|
+
})();
|
|
2450
|
+
if (obj_token_union0_error != null) {
|
|
2451
|
+
obj_token_union0 = obj_token_union0_error.message;
|
|
2452
|
+
}
|
|
2453
|
+
let obj_token_union1 = null;
|
|
2454
|
+
const obj_token_union1_error = (() => {
|
|
2455
|
+
if (obj_token !== null) {
|
|
2456
|
+
return new TypeError('Expected "null" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
2457
|
+
}
|
|
2458
|
+
})();
|
|
2459
|
+
if (obj_token_union1_error != null) {
|
|
2460
|
+
obj_token_union1 = obj_token_union1_error.message;
|
|
2461
|
+
}
|
|
2462
|
+
if (obj_token_union0 && obj_token_union1) {
|
|
2463
|
+
let message = 'Object doesn\'t match union (at "' + path_token + '")';
|
|
2464
|
+
message += '\n' + obj_token_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2465
|
+
message += '\n' + obj_token_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2466
|
+
return new TypeError(message);
|
|
2001
2467
|
}
|
|
2002
2468
|
const obj_uniqueKey = obj.uniqueKey;
|
|
2003
2469
|
const path_uniqueKey = path + '.uniqueKey';
|
|
2004
|
-
|
|
2005
|
-
|
|
2470
|
+
let obj_uniqueKey_union0 = null;
|
|
2471
|
+
const obj_uniqueKey_union0_error = (() => {
|
|
2472
|
+
if (typeof obj_uniqueKey !== 'string') {
|
|
2473
|
+
return new TypeError('Expected "string" but received "' + typeof obj_uniqueKey + '" (at "' + path_uniqueKey + '")');
|
|
2474
|
+
}
|
|
2475
|
+
})();
|
|
2476
|
+
if (obj_uniqueKey_union0_error != null) {
|
|
2477
|
+
obj_uniqueKey_union0 = obj_uniqueKey_union0_error.message;
|
|
2478
|
+
}
|
|
2479
|
+
let obj_uniqueKey_union1 = null;
|
|
2480
|
+
const obj_uniqueKey_union1_error = (() => {
|
|
2481
|
+
if (obj_uniqueKey !== null) {
|
|
2482
|
+
return new TypeError('Expected "null" but received "' + typeof obj_uniqueKey + '" (at "' + path_uniqueKey + '")');
|
|
2483
|
+
}
|
|
2484
|
+
})();
|
|
2485
|
+
if (obj_uniqueKey_union1_error != null) {
|
|
2486
|
+
obj_uniqueKey_union1 = obj_uniqueKey_union1_error.message;
|
|
2487
|
+
}
|
|
2488
|
+
if (obj_uniqueKey_union0 && obj_uniqueKey_union1) {
|
|
2489
|
+
let message = 'Object doesn\'t match union (at "' + path_uniqueKey + '")';
|
|
2490
|
+
message += '\n' + obj_uniqueKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2491
|
+
message += '\n' + obj_uniqueKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2492
|
+
return new TypeError(message);
|
|
2006
2493
|
}
|
|
2007
2494
|
const obj_url = obj.url;
|
|
2008
2495
|
const path_url = path + '.url';
|
|
2009
|
-
|
|
2010
|
-
|
|
2496
|
+
let obj_url_union0 = null;
|
|
2497
|
+
const obj_url_union0_error = (() => {
|
|
2498
|
+
if (typeof obj_url !== 'string') {
|
|
2499
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
2500
|
+
}
|
|
2501
|
+
})();
|
|
2502
|
+
if (obj_url_union0_error != null) {
|
|
2503
|
+
obj_url_union0 = obj_url_union0_error.message;
|
|
2504
|
+
}
|
|
2505
|
+
let obj_url_union1 = null;
|
|
2506
|
+
const obj_url_union1_error = (() => {
|
|
2507
|
+
if (obj_url !== null) {
|
|
2508
|
+
return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
2509
|
+
}
|
|
2510
|
+
})();
|
|
2511
|
+
if (obj_url_union1_error != null) {
|
|
2512
|
+
obj_url_union1 = obj_url_union1_error.message;
|
|
2513
|
+
}
|
|
2514
|
+
if (obj_url_union0 && obj_url_union1) {
|
|
2515
|
+
let message = 'Object doesn\'t match union (at "' + path_url + '")';
|
|
2516
|
+
message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2517
|
+
message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2518
|
+
return new TypeError(message);
|
|
2011
2519
|
}
|
|
2012
2520
|
})();
|
|
2013
2521
|
return v_error === undefined ? null : v_error;
|
|
2014
2522
|
}
|
|
2015
|
-
const RepresentationType$
|
|
2016
|
-
function keyBuilder$
|
|
2017
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2523
|
+
const RepresentationType$a = 'SlackBridgeFileOutputRepresentation';
|
|
2524
|
+
function keyBuilder$n(luvio, config) {
|
|
2525
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2018
2526
|
}
|
|
2019
2527
|
function keyBuilderFromType$3(luvio, object) {
|
|
2020
2528
|
const keyParams = {
|
|
2021
2529
|
uniqueKey: object.uniqueKey
|
|
2022
2530
|
};
|
|
2023
|
-
return keyBuilder$
|
|
2531
|
+
return keyBuilder$n(luvio, keyParams);
|
|
2024
2532
|
}
|
|
2025
|
-
function normalize$
|
|
2533
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
2026
2534
|
return input;
|
|
2027
2535
|
}
|
|
2028
|
-
const select$
|
|
2029
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2536
|
+
const select$q = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2537
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$r();
|
|
2030
2538
|
return {
|
|
2031
2539
|
kind: 'Fragment',
|
|
2032
|
-
version: VERSION$
|
|
2540
|
+
version: VERSION$a,
|
|
2033
2541
|
private: [],
|
|
2034
2542
|
selections: [
|
|
2035
2543
|
{
|
|
2036
2544
|
name: 'contentDocument',
|
|
2037
2545
|
kind: 'Object',
|
|
2546
|
+
nullable: true,
|
|
2038
2547
|
selections: SlackBridgeContentDocumentOutputRepresentation__selections
|
|
2039
2548
|
},
|
|
2040
2549
|
{
|
|
@@ -2080,12 +2589,7 @@ const select$o = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
2080
2589
|
]
|
|
2081
2590
|
};
|
|
2082
2591
|
};
|
|
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
|
-
}
|
|
2592
|
+
function equals$a(existing, incoming) {
|
|
2089
2593
|
const existing_filetype = existing.filetype;
|
|
2090
2594
|
const incoming_filetype = incoming.filetype;
|
|
2091
2595
|
if (!(existing_filetype === incoming_filetype)) {
|
|
@@ -2116,6 +2620,19 @@ function equals$9(existing, incoming) {
|
|
|
2116
2620
|
if (!(existing_title === incoming_title)) {
|
|
2117
2621
|
return false;
|
|
2118
2622
|
}
|
|
2623
|
+
const existing_contentDocument = existing.contentDocument;
|
|
2624
|
+
const incoming_contentDocument = incoming.contentDocument;
|
|
2625
|
+
if (!(existing_contentDocument === incoming_contentDocument
|
|
2626
|
+
|| (existing_contentDocument != null &&
|
|
2627
|
+
incoming_contentDocument != null &&
|
|
2628
|
+
equals$b(existing_contentDocument, incoming_contentDocument)))) {
|
|
2629
|
+
return false;
|
|
2630
|
+
}
|
|
2631
|
+
const existing_size = existing.size;
|
|
2632
|
+
const incoming_size = incoming.size;
|
|
2633
|
+
if (!(existing_size === incoming_size)) {
|
|
2634
|
+
return false;
|
|
2635
|
+
}
|
|
2119
2636
|
const existing_token = existing.token;
|
|
2120
2637
|
const incoming_token = incoming.token;
|
|
2121
2638
|
if (!(existing_token === incoming_token)) {
|
|
@@ -2131,37 +2648,32 @@ function equals$9(existing, incoming) {
|
|
|
2131
2648
|
if (!(existing_url === incoming_url)) {
|
|
2132
2649
|
return false;
|
|
2133
2650
|
}
|
|
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
2651
|
return true;
|
|
2140
2652
|
}
|
|
2141
|
-
const ingest$
|
|
2653
|
+
const ingest$a = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2142
2654
|
if (process.env.NODE_ENV !== 'production') {
|
|
2143
|
-
const validateError = validate$
|
|
2655
|
+
const validateError = validate$a(input);
|
|
2144
2656
|
if (validateError !== null) {
|
|
2145
2657
|
throw validateError;
|
|
2146
2658
|
}
|
|
2147
2659
|
}
|
|
2148
2660
|
const key = keyBuilderFromType$3(luvio, input);
|
|
2149
2661
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2150
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2662
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
|
|
2151
2663
|
return createLink(key);
|
|
2152
2664
|
};
|
|
2153
|
-
function getTypeCacheKeys$
|
|
2665
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
2154
2666
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2155
2667
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
2156
2668
|
rootKeySet.set(rootKey, {
|
|
2157
2669
|
namespace: keyPrefix,
|
|
2158
|
-
representationName: RepresentationType$
|
|
2670
|
+
representationName: RepresentationType$a,
|
|
2159
2671
|
mergeable: false
|
|
2160
2672
|
});
|
|
2161
2673
|
}
|
|
2162
2674
|
|
|
2163
|
-
const VERSION$
|
|
2164
|
-
function validate$
|
|
2675
|
+
const VERSION$9 = "a8502e4e4bb65313c6fbaa1f89f1e539";
|
|
2676
|
+
function validate$9(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
2165
2677
|
const v_error = (() => {
|
|
2166
2678
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2167
2679
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2248,8 +2760,29 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2248
2760
|
}
|
|
2249
2761
|
const obj_isBroadcast = obj.isBroadcast;
|
|
2250
2762
|
const path_isBroadcast = path + '.isBroadcast';
|
|
2251
|
-
|
|
2252
|
-
|
|
2763
|
+
let obj_isBroadcast_union0 = null;
|
|
2764
|
+
const obj_isBroadcast_union0_error = (() => {
|
|
2765
|
+
if (typeof obj_isBroadcast !== 'boolean') {
|
|
2766
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
|
|
2767
|
+
}
|
|
2768
|
+
})();
|
|
2769
|
+
if (obj_isBroadcast_union0_error != null) {
|
|
2770
|
+
obj_isBroadcast_union0 = obj_isBroadcast_union0_error.message;
|
|
2771
|
+
}
|
|
2772
|
+
let obj_isBroadcast_union1 = null;
|
|
2773
|
+
const obj_isBroadcast_union1_error = (() => {
|
|
2774
|
+
if (obj_isBroadcast !== null) {
|
|
2775
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
|
|
2776
|
+
}
|
|
2777
|
+
})();
|
|
2778
|
+
if (obj_isBroadcast_union1_error != null) {
|
|
2779
|
+
obj_isBroadcast_union1 = obj_isBroadcast_union1_error.message;
|
|
2780
|
+
}
|
|
2781
|
+
if (obj_isBroadcast_union0 && obj_isBroadcast_union1) {
|
|
2782
|
+
let message = 'Object doesn\'t match union (at "' + path_isBroadcast + '")';
|
|
2783
|
+
message += '\n' + obj_isBroadcast_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2784
|
+
message += '\n' + obj_isBroadcast_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2785
|
+
return new TypeError(message);
|
|
2253
2786
|
}
|
|
2254
2787
|
const obj_isEditable = obj.isEditable;
|
|
2255
2788
|
const path_isEditable = path + '.isEditable';
|
|
@@ -2258,8 +2791,29 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2258
2791
|
}
|
|
2259
2792
|
const obj_isEdited = obj.isEdited;
|
|
2260
2793
|
const path_isEdited = path + '.isEdited';
|
|
2261
|
-
|
|
2262
|
-
|
|
2794
|
+
let obj_isEdited_union0 = null;
|
|
2795
|
+
const obj_isEdited_union0_error = (() => {
|
|
2796
|
+
if (typeof obj_isEdited !== 'boolean') {
|
|
2797
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
|
|
2798
|
+
}
|
|
2799
|
+
})();
|
|
2800
|
+
if (obj_isEdited_union0_error != null) {
|
|
2801
|
+
obj_isEdited_union0 = obj_isEdited_union0_error.message;
|
|
2802
|
+
}
|
|
2803
|
+
let obj_isEdited_union1 = null;
|
|
2804
|
+
const obj_isEdited_union1_error = (() => {
|
|
2805
|
+
if (obj_isEdited !== null) {
|
|
2806
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
|
|
2807
|
+
}
|
|
2808
|
+
})();
|
|
2809
|
+
if (obj_isEdited_union1_error != null) {
|
|
2810
|
+
obj_isEdited_union1 = obj_isEdited_union1_error.message;
|
|
2811
|
+
}
|
|
2812
|
+
if (obj_isEdited_union0 && obj_isEdited_union1) {
|
|
2813
|
+
let message = 'Object doesn\'t match union (at "' + path_isEdited + '")';
|
|
2814
|
+
message += '\n' + obj_isEdited_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2815
|
+
message += '\n' + obj_isEdited_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2816
|
+
return new TypeError(message);
|
|
2263
2817
|
}
|
|
2264
2818
|
const obj_latestReplyTimestamp = obj.latestReplyTimestamp;
|
|
2265
2819
|
const path_latestReplyTimestamp = path + '.latestReplyTimestamp';
|
|
@@ -2305,7 +2859,7 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2305
2859
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
2306
2860
|
const obj_reactions_item = obj_reactions[i];
|
|
2307
2861
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
2308
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
2862
|
+
const referencepath_reactions_itemValidationError = validate$i(obj_reactions_item, path_reactions_item);
|
|
2309
2863
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
2310
2864
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
2311
2865
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2435,8 +2989,29 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2435
2989
|
}
|
|
2436
2990
|
const obj_type = obj.type;
|
|
2437
2991
|
const path_type = path + '.type';
|
|
2438
|
-
|
|
2439
|
-
|
|
2992
|
+
let obj_type_union0 = null;
|
|
2993
|
+
const obj_type_union0_error = (() => {
|
|
2994
|
+
if (typeof obj_type !== 'string') {
|
|
2995
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
2996
|
+
}
|
|
2997
|
+
})();
|
|
2998
|
+
if (obj_type_union0_error != null) {
|
|
2999
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
3000
|
+
}
|
|
3001
|
+
let obj_type_union1 = null;
|
|
3002
|
+
const obj_type_union1_error = (() => {
|
|
3003
|
+
if (obj_type !== null) {
|
|
3004
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
3005
|
+
}
|
|
3006
|
+
})();
|
|
3007
|
+
if (obj_type_union1_error != null) {
|
|
3008
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
3009
|
+
}
|
|
3010
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
3011
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
3012
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3013
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3014
|
+
return new TypeError(message);
|
|
2440
3015
|
}
|
|
2441
3016
|
const obj_url = obj.url;
|
|
2442
3017
|
const path_url = path + '.url';
|
|
@@ -2446,14 +3021,14 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2446
3021
|
})();
|
|
2447
3022
|
return v_error === undefined ? null : v_error;
|
|
2448
3023
|
}
|
|
2449
|
-
const RepresentationType$
|
|
2450
|
-
function normalize$
|
|
3024
|
+
const RepresentationType$9 = 'SlackBridgeMessageOutputRepresentation';
|
|
3025
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
2451
3026
|
const input_files = input.files;
|
|
2452
3027
|
const input_files_id = path.fullPath + '__files';
|
|
2453
3028
|
for (let i = 0; i < input_files.length; i++) {
|
|
2454
3029
|
const input_files_item = input_files[i];
|
|
2455
3030
|
let input_files_item_id = input_files_id + '__' + i;
|
|
2456
|
-
input_files[i] = ingest$
|
|
3031
|
+
input_files[i] = ingest$a(input_files_item, {
|
|
2457
3032
|
fullPath: input_files_item_id,
|
|
2458
3033
|
propertyName: i,
|
|
2459
3034
|
parent: {
|
|
@@ -2466,11 +3041,11 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
2466
3041
|
}
|
|
2467
3042
|
return input;
|
|
2468
3043
|
}
|
|
2469
|
-
const select$
|
|
2470
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
3044
|
+
const select$p = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
3045
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$y();
|
|
2471
3046
|
return {
|
|
2472
3047
|
kind: 'Fragment',
|
|
2473
|
-
version: VERSION$
|
|
3048
|
+
version: VERSION$9,
|
|
2474
3049
|
private: [],
|
|
2475
3050
|
selections: [
|
|
2476
3051
|
{
|
|
@@ -2487,7 +3062,7 @@ const select$n = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2487
3062
|
name: 'files',
|
|
2488
3063
|
kind: 'Link',
|
|
2489
3064
|
plural: true,
|
|
2490
|
-
fragment: select$
|
|
3065
|
+
fragment: select$q()
|
|
2491
3066
|
},
|
|
2492
3067
|
{
|
|
2493
3068
|
name: 'includesCustomEmoji',
|
|
@@ -2559,22 +3134,12 @@ const select$n = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2559
3134
|
]
|
|
2560
3135
|
};
|
|
2561
3136
|
};
|
|
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
|
-
}
|
|
3137
|
+
function equals$9(existing, incoming) {
|
|
2568
3138
|
const existing_isEditable = existing.isEditable;
|
|
2569
3139
|
const incoming_isEditable = incoming.isEditable;
|
|
2570
3140
|
if (!(existing_isEditable === incoming_isEditable)) {
|
|
2571
3141
|
return false;
|
|
2572
3142
|
}
|
|
2573
|
-
const existing_isEdited = existing.isEdited;
|
|
2574
|
-
const incoming_isEdited = incoming.isEdited;
|
|
2575
|
-
if (!(existing_isEdited === incoming_isEdited)) {
|
|
2576
|
-
return false;
|
|
2577
|
-
}
|
|
2578
3143
|
const existing_message = existing.message;
|
|
2579
3144
|
const incoming_message = incoming.message;
|
|
2580
3145
|
if (!(existing_message === incoming_message)) {
|
|
@@ -2590,11 +3155,6 @@ function equals$8(existing, incoming) {
|
|
|
2590
3155
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
2591
3156
|
return false;
|
|
2592
3157
|
}
|
|
2593
|
-
const existing_type = existing.type;
|
|
2594
|
-
const incoming_type = incoming.type;
|
|
2595
|
-
if (!(existing_type === incoming_type)) {
|
|
2596
|
-
return false;
|
|
2597
|
-
}
|
|
2598
3158
|
const existing_url = existing.url;
|
|
2599
3159
|
const incoming_url = incoming.url;
|
|
2600
3160
|
if (!(existing_url === incoming_url)) {
|
|
@@ -2645,6 +3205,16 @@ function equals$8(existing, incoming) {
|
|
|
2645
3205
|
if (!(existing_includesCustomEmoji === incoming_includesCustomEmoji)) {
|
|
2646
3206
|
return false;
|
|
2647
3207
|
}
|
|
3208
|
+
const existing_isBroadcast = existing.isBroadcast;
|
|
3209
|
+
const incoming_isBroadcast = incoming.isBroadcast;
|
|
3210
|
+
if (!(existing_isBroadcast === incoming_isBroadcast)) {
|
|
3211
|
+
return false;
|
|
3212
|
+
}
|
|
3213
|
+
const existing_isEdited = existing.isEdited;
|
|
3214
|
+
const incoming_isEdited = incoming.isEdited;
|
|
3215
|
+
if (!(existing_isEdited === incoming_isEdited)) {
|
|
3216
|
+
return false;
|
|
3217
|
+
}
|
|
2648
3218
|
const existing_latestReplyTimestamp = existing.latestReplyTimestamp;
|
|
2649
3219
|
const incoming_latestReplyTimestamp = incoming.latestReplyTimestamp;
|
|
2650
3220
|
if (!(existing_latestReplyTimestamp === incoming_latestReplyTimestamp)) {
|
|
@@ -2653,7 +3223,7 @@ function equals$8(existing, incoming) {
|
|
|
2653
3223
|
const existing_reactions = existing.reactions;
|
|
2654
3224
|
const incoming_reactions = incoming.reactions;
|
|
2655
3225
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
2656
|
-
if (!(equals$
|
|
3226
|
+
if (!(equals$i(existing_reactions_item, incoming_reactions_item))) {
|
|
2657
3227
|
return false;
|
|
2658
3228
|
}
|
|
2659
3229
|
});
|
|
@@ -2690,36 +3260,41 @@ function equals$8(existing, incoming) {
|
|
|
2690
3260
|
if (!(existing_threadTs === incoming_threadTs)) {
|
|
2691
3261
|
return false;
|
|
2692
3262
|
}
|
|
3263
|
+
const existing_type = existing.type;
|
|
3264
|
+
const incoming_type = incoming.type;
|
|
3265
|
+
if (!(existing_type === incoming_type)) {
|
|
3266
|
+
return false;
|
|
3267
|
+
}
|
|
2693
3268
|
return true;
|
|
2694
3269
|
}
|
|
2695
|
-
const ingest$
|
|
3270
|
+
const ingest$9 = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2696
3271
|
if (process.env.NODE_ENV !== 'production') {
|
|
2697
|
-
const validateError = validate$
|
|
3272
|
+
const validateError = validate$9(input);
|
|
2698
3273
|
if (validateError !== null) {
|
|
2699
3274
|
throw validateError;
|
|
2700
3275
|
}
|
|
2701
3276
|
}
|
|
2702
3277
|
const key = path.fullPath;
|
|
2703
3278
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2704
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3279
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
|
|
2705
3280
|
return createLink(key);
|
|
2706
3281
|
};
|
|
2707
|
-
function getTypeCacheKeys$
|
|
3282
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
2708
3283
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2709
3284
|
const rootKey = fullPathFactory();
|
|
2710
3285
|
rootKeySet.set(rootKey, {
|
|
2711
3286
|
namespace: keyPrefix,
|
|
2712
|
-
representationName: RepresentationType$
|
|
3287
|
+
representationName: RepresentationType$9,
|
|
2713
3288
|
mergeable: false
|
|
2714
3289
|
});
|
|
2715
3290
|
const input_files_length = input.files.length;
|
|
2716
3291
|
for (let i = 0; i < input_files_length; i++) {
|
|
2717
|
-
getTypeCacheKeys$
|
|
3292
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.files[i]);
|
|
2718
3293
|
}
|
|
2719
3294
|
}
|
|
2720
3295
|
|
|
2721
|
-
const VERSION$
|
|
2722
|
-
function validate$
|
|
3296
|
+
const VERSION$8 = "5145ac2c241c561e4baa29b3884748dc";
|
|
3297
|
+
function validate$8(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
|
|
2723
3298
|
const v_error = (() => {
|
|
2724
3299
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2725
3300
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2770,14 +3345,14 @@ function validate$7(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
|
|
|
2770
3345
|
})();
|
|
2771
3346
|
return v_error === undefined ? null : v_error;
|
|
2772
3347
|
}
|
|
2773
|
-
const RepresentationType$
|
|
2774
|
-
function normalize$
|
|
3348
|
+
const RepresentationType$8 = 'SlackBridgeConversationHistoryOutputRepresentation';
|
|
3349
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
2775
3350
|
const input_messages = input.messages;
|
|
2776
3351
|
const input_messages_id = path.fullPath + '__messages';
|
|
2777
3352
|
for (let i = 0; i < input_messages.length; i++) {
|
|
2778
3353
|
const input_messages_item = input_messages[i];
|
|
2779
3354
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
2780
|
-
input_messages[i] = ingest$
|
|
3355
|
+
input_messages[i] = ingest$9(input_messages_item, {
|
|
2781
3356
|
fullPath: input_messages_item_id,
|
|
2782
3357
|
propertyName: i,
|
|
2783
3358
|
parent: {
|
|
@@ -2790,10 +3365,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
2790
3365
|
}
|
|
2791
3366
|
return input;
|
|
2792
3367
|
}
|
|
2793
|
-
const select$
|
|
3368
|
+
const select$o = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
2794
3369
|
return {
|
|
2795
3370
|
kind: 'Fragment',
|
|
2796
|
-
version: VERSION$
|
|
3371
|
+
version: VERSION$8,
|
|
2797
3372
|
private: [],
|
|
2798
3373
|
selections: [
|
|
2799
3374
|
{
|
|
@@ -2804,7 +3379,7 @@ const select$m = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
2804
3379
|
name: 'messages',
|
|
2805
3380
|
kind: 'Link',
|
|
2806
3381
|
plural: true,
|
|
2807
|
-
fragment: select$
|
|
3382
|
+
fragment: select$p()
|
|
2808
3383
|
},
|
|
2809
3384
|
{
|
|
2810
3385
|
name: 'nextCursor',
|
|
@@ -2813,7 +3388,7 @@ const select$m = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
2813
3388
|
]
|
|
2814
3389
|
};
|
|
2815
3390
|
};
|
|
2816
|
-
function equals$
|
|
3391
|
+
function equals$8(existing, incoming) {
|
|
2817
3392
|
const existing_hasMore = existing.hasMore;
|
|
2818
3393
|
const incoming_hasMore = incoming.hasMore;
|
|
2819
3394
|
if (!(existing_hasMore === incoming_hasMore)) {
|
|
@@ -2836,34 +3411,34 @@ function equals$7(existing, incoming) {
|
|
|
2836
3411
|
}
|
|
2837
3412
|
return true;
|
|
2838
3413
|
}
|
|
2839
|
-
const ingest$
|
|
3414
|
+
const ingest$8 = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2840
3415
|
if (process.env.NODE_ENV !== 'production') {
|
|
2841
|
-
const validateError = validate$
|
|
3416
|
+
const validateError = validate$8(input);
|
|
2842
3417
|
if (validateError !== null) {
|
|
2843
3418
|
throw validateError;
|
|
2844
3419
|
}
|
|
2845
3420
|
}
|
|
2846
3421
|
const key = path.fullPath;
|
|
2847
3422
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2848
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3423
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
|
|
2849
3424
|
return createLink(key);
|
|
2850
3425
|
};
|
|
2851
|
-
function getTypeCacheKeys$
|
|
3426
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
2852
3427
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2853
3428
|
const rootKey = fullPathFactory();
|
|
2854
3429
|
rootKeySet.set(rootKey, {
|
|
2855
3430
|
namespace: keyPrefix,
|
|
2856
|
-
representationName: RepresentationType$
|
|
3431
|
+
representationName: RepresentationType$8,
|
|
2857
3432
|
mergeable: false
|
|
2858
3433
|
});
|
|
2859
3434
|
const input_messages_length = input.messages.length;
|
|
2860
3435
|
for (let i = 0; i < input_messages_length; i++) {
|
|
2861
|
-
getTypeCacheKeys$
|
|
3436
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.messages[i], () => '');
|
|
2862
3437
|
}
|
|
2863
3438
|
}
|
|
2864
3439
|
|
|
2865
|
-
const VERSION$
|
|
2866
|
-
function validate$
|
|
3440
|
+
const VERSION$7 = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
3441
|
+
function validate$7(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
2867
3442
|
const v_error = (() => {
|
|
2868
3443
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2869
3444
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3007,12 +3582,12 @@ function validate$6(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3007
3582
|
})();
|
|
3008
3583
|
return v_error === undefined ? null : v_error;
|
|
3009
3584
|
}
|
|
3010
|
-
const RepresentationType$
|
|
3011
|
-
function normalize$
|
|
3585
|
+
const RepresentationType$7 = 'SlackBridgeConversationOutputRepresentation';
|
|
3586
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
3012
3587
|
const input_contextUserInfo = input.contextUserInfo;
|
|
3013
3588
|
const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
|
|
3014
3589
|
if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
|
|
3015
|
-
input.contextUserInfo = ingest$
|
|
3590
|
+
input.contextUserInfo = ingest$c(input_contextUserInfo, {
|
|
3016
3591
|
fullPath: input_contextUserInfo_id,
|
|
3017
3592
|
propertyName: 'contextUserInfo',
|
|
3018
3593
|
parent: {
|
|
@@ -3026,7 +3601,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
3026
3601
|
const input_conversationInfo = input.conversationInfo;
|
|
3027
3602
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
3028
3603
|
if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
|
|
3029
|
-
input.conversationInfo = ingest$
|
|
3604
|
+
input.conversationInfo = ingest$b(input_conversationInfo, {
|
|
3030
3605
|
fullPath: input_conversationInfo_id,
|
|
3031
3606
|
propertyName: 'conversationInfo',
|
|
3032
3607
|
parent: {
|
|
@@ -3039,7 +3614,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
3039
3614
|
}
|
|
3040
3615
|
const input_history = input.history;
|
|
3041
3616
|
const input_history_id = path.fullPath + '__history';
|
|
3042
|
-
input.history = ingest$
|
|
3617
|
+
input.history = ingest$8(input_history, {
|
|
3043
3618
|
fullPath: input_history_id,
|
|
3044
3619
|
propertyName: 'history',
|
|
3045
3620
|
parent: {
|
|
@@ -3054,7 +3629,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
3054
3629
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
3055
3630
|
const input_userInfos_item = input_userInfos[i];
|
|
3056
3631
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
3057
|
-
input_userInfos[i] = ingest$
|
|
3632
|
+
input_userInfos[i] = ingest$c(input_userInfos_item, {
|
|
3058
3633
|
fullPath: input_userInfos_item_id,
|
|
3059
3634
|
propertyName: i,
|
|
3060
3635
|
parent: {
|
|
@@ -3067,10 +3642,10 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
3067
3642
|
}
|
|
3068
3643
|
return input;
|
|
3069
3644
|
}
|
|
3070
|
-
const select$
|
|
3645
|
+
const select$n = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3071
3646
|
return {
|
|
3072
3647
|
kind: 'Fragment',
|
|
3073
|
-
version: VERSION$
|
|
3648
|
+
version: VERSION$7,
|
|
3074
3649
|
private: [],
|
|
3075
3650
|
selections: [
|
|
3076
3651
|
{
|
|
@@ -3085,18 +3660,18 @@ const select$l = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3085
3660
|
name: 'contextUserInfo',
|
|
3086
3661
|
kind: 'Link',
|
|
3087
3662
|
nullable: true,
|
|
3088
|
-
fragment: select$
|
|
3663
|
+
fragment: select$v()
|
|
3089
3664
|
},
|
|
3090
3665
|
{
|
|
3091
3666
|
name: 'conversationInfo',
|
|
3092
3667
|
kind: 'Link',
|
|
3093
3668
|
nullable: true,
|
|
3094
|
-
fragment: select$
|
|
3669
|
+
fragment: select$u()
|
|
3095
3670
|
},
|
|
3096
3671
|
{
|
|
3097
3672
|
name: 'history',
|
|
3098
3673
|
kind: 'Link',
|
|
3099
|
-
fragment: select$
|
|
3674
|
+
fragment: select$o()
|
|
3100
3675
|
},
|
|
3101
3676
|
{
|
|
3102
3677
|
name: 'teamId',
|
|
@@ -3110,7 +3685,7 @@ const select$l = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3110
3685
|
name: 'userInfos',
|
|
3111
3686
|
kind: 'Link',
|
|
3112
3687
|
plural: true,
|
|
3113
|
-
fragment: select$
|
|
3688
|
+
fragment: select$v()
|
|
3114
3689
|
},
|
|
3115
3690
|
{
|
|
3116
3691
|
name: 'websocketUrl',
|
|
@@ -3119,7 +3694,7 @@ const select$l = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3119
3694
|
]
|
|
3120
3695
|
};
|
|
3121
3696
|
};
|
|
3122
|
-
function equals$
|
|
3697
|
+
function equals$7(existing, incoming) {
|
|
3123
3698
|
const existing_channelId = existing.channelId;
|
|
3124
3699
|
const incoming_channelId = incoming.channelId;
|
|
3125
3700
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3182,55 +3757,55 @@ function equals$6(existing, incoming) {
|
|
|
3182
3757
|
}
|
|
3183
3758
|
return true;
|
|
3184
3759
|
}
|
|
3185
|
-
const ingest$
|
|
3760
|
+
const ingest$7 = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3186
3761
|
if (process.env.NODE_ENV !== 'production') {
|
|
3187
|
-
const validateError = validate$
|
|
3762
|
+
const validateError = validate$7(input);
|
|
3188
3763
|
if (validateError !== null) {
|
|
3189
3764
|
throw validateError;
|
|
3190
3765
|
}
|
|
3191
3766
|
}
|
|
3192
3767
|
const key = path.fullPath;
|
|
3193
3768
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3194
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3769
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$7, RepresentationType$7, equals$7);
|
|
3195
3770
|
return createLink(key);
|
|
3196
3771
|
};
|
|
3197
|
-
function getTypeCacheKeys$
|
|
3772
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
3198
3773
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3199
3774
|
const rootKey = fullPathFactory();
|
|
3200
3775
|
rootKeySet.set(rootKey, {
|
|
3201
3776
|
namespace: keyPrefix,
|
|
3202
|
-
representationName: RepresentationType$
|
|
3777
|
+
representationName: RepresentationType$7,
|
|
3203
3778
|
mergeable: false
|
|
3204
3779
|
});
|
|
3205
3780
|
if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
|
|
3206
|
-
getTypeCacheKeys$
|
|
3781
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.contextUserInfo);
|
|
3207
3782
|
}
|
|
3208
3783
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3209
|
-
getTypeCacheKeys$
|
|
3784
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.conversationInfo);
|
|
3210
3785
|
}
|
|
3211
|
-
getTypeCacheKeys$
|
|
3786
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3212
3787
|
const input_userInfos_length = input.userInfos.length;
|
|
3213
3788
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
3214
|
-
getTypeCacheKeys$
|
|
3789
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.userInfos[i]);
|
|
3215
3790
|
}
|
|
3216
3791
|
}
|
|
3217
3792
|
|
|
3218
|
-
function select$
|
|
3219
|
-
return select$
|
|
3793
|
+
function select$m(luvio, params) {
|
|
3794
|
+
return select$n();
|
|
3220
3795
|
}
|
|
3221
|
-
function keyBuilder$
|
|
3796
|
+
function keyBuilder$m(luvio, params) {
|
|
3222
3797
|
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
3798
|
}
|
|
3224
|
-
function getResponseCacheKeys$
|
|
3225
|
-
getTypeCacheKeys$
|
|
3799
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
3800
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
|
|
3226
3801
|
}
|
|
3227
|
-
function ingestSuccess$
|
|
3802
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
3228
3803
|
const { body } = response;
|
|
3229
|
-
const key = keyBuilder$
|
|
3230
|
-
luvio.storeIngest(key, ingest$
|
|
3804
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
3805
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
3231
3806
|
const snapshot = luvio.storeLookup({
|
|
3232
3807
|
recordId: key,
|
|
3233
|
-
node: select$
|
|
3808
|
+
node: select$m(),
|
|
3234
3809
|
variables: {},
|
|
3235
3810
|
}, snapshotRefresh);
|
|
3236
3811
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3241,13 +3816,13 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3241
3816
|
deepFreeze(snapshot.data);
|
|
3242
3817
|
return snapshot;
|
|
3243
3818
|
}
|
|
3244
|
-
function ingestError$
|
|
3245
|
-
const key = keyBuilder$
|
|
3819
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
3820
|
+
const key = keyBuilder$m(luvio, params);
|
|
3246
3821
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3247
3822
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3248
3823
|
return errorSnapshot;
|
|
3249
3824
|
}
|
|
3250
|
-
function createResourceRequest$
|
|
3825
|
+
function createResourceRequest$f(config) {
|
|
3251
3826
|
const headers = {};
|
|
3252
3827
|
return {
|
|
3253
3828
|
baseUri: '/services/data/v63.0',
|
|
@@ -3261,7 +3836,7 @@ function createResourceRequest$e(config) {
|
|
|
3261
3836
|
};
|
|
3262
3837
|
}
|
|
3263
3838
|
|
|
3264
|
-
const adapterName$
|
|
3839
|
+
const adapterName$f = 'getSlackConversation';
|
|
3265
3840
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3266
3841
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3267
3842
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3273,106 +3848,106 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3273
3848
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3274
3849
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3275
3850
|
];
|
|
3276
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3277
|
-
const createResourceParams$
|
|
3278
|
-
function keyBuilder$
|
|
3279
|
-
const resourceParams = createResourceParams$
|
|
3280
|
-
return keyBuilder$
|
|
3851
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSlackConversation_ConfigPropertyMetadata);
|
|
3852
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(getSlackConversation_ConfigPropertyMetadata);
|
|
3853
|
+
function keyBuilder$l(luvio, config) {
|
|
3854
|
+
const resourceParams = createResourceParams$f(config);
|
|
3855
|
+
return keyBuilder$m(luvio, resourceParams);
|
|
3281
3856
|
}
|
|
3282
|
-
function typeCheckConfig$
|
|
3857
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
3283
3858
|
const config = {};
|
|
3284
|
-
typeCheckConfig$
|
|
3859
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3285
3860
|
return config;
|
|
3286
3861
|
}
|
|
3287
|
-
function validateAdapterConfig$
|
|
3862
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
3288
3863
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3289
3864
|
return null;
|
|
3290
3865
|
}
|
|
3291
3866
|
if (process.env.NODE_ENV !== 'production') {
|
|
3292
3867
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3293
3868
|
}
|
|
3294
|
-
const config = typeCheckConfig$
|
|
3869
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
3295
3870
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3296
3871
|
return null;
|
|
3297
3872
|
}
|
|
3298
3873
|
return config;
|
|
3299
3874
|
}
|
|
3300
|
-
function adapterFragment$
|
|
3301
|
-
createResourceParams$
|
|
3302
|
-
return select$
|
|
3875
|
+
function adapterFragment$9(luvio, config) {
|
|
3876
|
+
createResourceParams$f(config);
|
|
3877
|
+
return select$m();
|
|
3303
3878
|
}
|
|
3304
|
-
function onFetchResponseSuccess$
|
|
3305
|
-
const snapshot = ingestSuccess$
|
|
3879
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
3880
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
3306
3881
|
config,
|
|
3307
|
-
resolve: () => buildNetworkSnapshot$
|
|
3882
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
3308
3883
|
});
|
|
3309
3884
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3310
3885
|
}
|
|
3311
|
-
function onFetchResponseError$
|
|
3312
|
-
const snapshot = ingestError$
|
|
3886
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
3887
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
3313
3888
|
config,
|
|
3314
|
-
resolve: () => buildNetworkSnapshot$
|
|
3889
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
3315
3890
|
});
|
|
3316
3891
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3317
3892
|
}
|
|
3318
|
-
function buildNetworkSnapshot$
|
|
3319
|
-
const resourceParams = createResourceParams$
|
|
3320
|
-
const request = createResourceRequest$
|
|
3893
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
3894
|
+
const resourceParams = createResourceParams$f(config);
|
|
3895
|
+
const request = createResourceRequest$f(resourceParams);
|
|
3321
3896
|
return luvio.dispatchResourceRequest(request, options)
|
|
3322
3897
|
.then((response) => {
|
|
3323
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3898
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
3324
3899
|
const cache = new StoreKeyMap();
|
|
3325
|
-
getResponseCacheKeys$
|
|
3900
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
3326
3901
|
return cache;
|
|
3327
3902
|
});
|
|
3328
3903
|
}, (response) => {
|
|
3329
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3904
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
3330
3905
|
});
|
|
3331
3906
|
}
|
|
3332
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3333
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3907
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
3908
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
3334
3909
|
}
|
|
3335
|
-
function buildCachedSnapshotCachePolicy$
|
|
3910
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
3336
3911
|
const { luvio, config } = context;
|
|
3337
3912
|
const selector = {
|
|
3338
|
-
recordId: keyBuilder$
|
|
3339
|
-
node: adapterFragment$
|
|
3913
|
+
recordId: keyBuilder$l(luvio, config),
|
|
3914
|
+
node: adapterFragment$9(luvio, config),
|
|
3340
3915
|
variables: {},
|
|
3341
3916
|
};
|
|
3342
3917
|
const cacheSnapshot = storeLookup(selector, {
|
|
3343
3918
|
config,
|
|
3344
|
-
resolve: () => buildNetworkSnapshot$
|
|
3919
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
3345
3920
|
});
|
|
3346
3921
|
return cacheSnapshot;
|
|
3347
3922
|
}
|
|
3348
3923
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3349
|
-
const config = validateAdapterConfig$
|
|
3924
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3350
3925
|
// Invalid or incomplete config
|
|
3351
3926
|
if (config === null) {
|
|
3352
3927
|
return null;
|
|
3353
3928
|
}
|
|
3354
3929
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3355
|
-
buildCachedSnapshotCachePolicy$
|
|
3930
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
3356
3931
|
};
|
|
3357
3932
|
|
|
3358
|
-
function select$
|
|
3359
|
-
return select$
|
|
3933
|
+
function select$l(luvio, params) {
|
|
3934
|
+
return select$A();
|
|
3360
3935
|
}
|
|
3361
|
-
function keyBuilder$
|
|
3362
|
-
return keyBuilder$
|
|
3936
|
+
function keyBuilder$k(luvio, params) {
|
|
3937
|
+
return keyBuilder$v(luvio, {
|
|
3363
3938
|
channelId: params.urlParams.channelId
|
|
3364
3939
|
});
|
|
3365
3940
|
}
|
|
3366
|
-
function getResponseCacheKeys$
|
|
3367
|
-
getTypeCacheKeys$
|
|
3941
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
3942
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
3368
3943
|
}
|
|
3369
|
-
function ingestSuccess$
|
|
3944
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
3370
3945
|
const { body } = response;
|
|
3371
|
-
const key = keyBuilder$
|
|
3372
|
-
luvio.storeIngest(key, ingest$
|
|
3946
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
3947
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
3373
3948
|
const snapshot = luvio.storeLookup({
|
|
3374
3949
|
recordId: key,
|
|
3375
|
-
node: select$
|
|
3950
|
+
node: select$l(),
|
|
3376
3951
|
variables: {},
|
|
3377
3952
|
}, snapshotRefresh);
|
|
3378
3953
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3383,13 +3958,13 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3383
3958
|
deepFreeze(snapshot.data);
|
|
3384
3959
|
return snapshot;
|
|
3385
3960
|
}
|
|
3386
|
-
function ingestError$
|
|
3387
|
-
const key = keyBuilder$
|
|
3961
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
3962
|
+
const key = keyBuilder$k(luvio, params);
|
|
3388
3963
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3389
3964
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3390
3965
|
return errorSnapshot;
|
|
3391
3966
|
}
|
|
3392
|
-
function createResourceRequest$
|
|
3967
|
+
function createResourceRequest$e(config) {
|
|
3393
3968
|
const headers = {};
|
|
3394
3969
|
return {
|
|
3395
3970
|
baseUri: '/services/data/v63.0',
|
|
@@ -3407,99 +3982,99 @@ function createResourceRequestFromRepresentation$4(representation) {
|
|
|
3407
3982
|
urlParams: {},
|
|
3408
3983
|
};
|
|
3409
3984
|
config.urlParams.channelId = representation.channelId;
|
|
3410
|
-
return createResourceRequest$
|
|
3985
|
+
return createResourceRequest$e(config);
|
|
3411
3986
|
}
|
|
3412
3987
|
|
|
3413
|
-
const adapterName$
|
|
3988
|
+
const adapterName$e = 'getSlackConversationMember';
|
|
3414
3989
|
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
3415
3990
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3416
3991
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3417
3992
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3418
3993
|
];
|
|
3419
|
-
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3420
|
-
const createResourceParams$
|
|
3421
|
-
function keyBuilder$
|
|
3422
|
-
const resourceParams = createResourceParams$
|
|
3423
|
-
return keyBuilder$
|
|
3994
|
+
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackConversationMember_ConfigPropertyMetadata);
|
|
3995
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(getSlackConversationMember_ConfigPropertyMetadata);
|
|
3996
|
+
function keyBuilder$j(luvio, config) {
|
|
3997
|
+
const resourceParams = createResourceParams$e(config);
|
|
3998
|
+
return keyBuilder$k(luvio, resourceParams);
|
|
3424
3999
|
}
|
|
3425
|
-
function typeCheckConfig$
|
|
4000
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
3426
4001
|
const config = {};
|
|
3427
|
-
typeCheckConfig$
|
|
4002
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
3428
4003
|
return config;
|
|
3429
4004
|
}
|
|
3430
|
-
function validateAdapterConfig$
|
|
4005
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
3431
4006
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3432
4007
|
return null;
|
|
3433
4008
|
}
|
|
3434
4009
|
if (process.env.NODE_ENV !== 'production') {
|
|
3435
4010
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3436
4011
|
}
|
|
3437
|
-
const config = typeCheckConfig$
|
|
4012
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
3438
4013
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3439
4014
|
return null;
|
|
3440
4015
|
}
|
|
3441
4016
|
return config;
|
|
3442
4017
|
}
|
|
3443
|
-
function adapterFragment$
|
|
3444
|
-
createResourceParams$
|
|
3445
|
-
return select$
|
|
4018
|
+
function adapterFragment$8(luvio, config) {
|
|
4019
|
+
createResourceParams$e(config);
|
|
4020
|
+
return select$l();
|
|
3446
4021
|
}
|
|
3447
|
-
function onFetchResponseSuccess$
|
|
3448
|
-
const snapshot = ingestSuccess$
|
|
4022
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
4023
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
3449
4024
|
config,
|
|
3450
|
-
resolve: () => buildNetworkSnapshot$
|
|
4025
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3451
4026
|
});
|
|
3452
4027
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3453
4028
|
}
|
|
3454
|
-
function onFetchResponseError$
|
|
3455
|
-
const snapshot = ingestError$
|
|
4029
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
4030
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
3456
4031
|
config,
|
|
3457
|
-
resolve: () => buildNetworkSnapshot$
|
|
4032
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3458
4033
|
});
|
|
3459
4034
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3460
4035
|
}
|
|
3461
|
-
function buildNetworkSnapshot$
|
|
3462
|
-
const resourceParams = createResourceParams$
|
|
3463
|
-
const request = createResourceRequest$
|
|
4036
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
4037
|
+
const resourceParams = createResourceParams$e(config);
|
|
4038
|
+
const request = createResourceRequest$e(resourceParams);
|
|
3464
4039
|
return luvio.dispatchResourceRequest(request, options)
|
|
3465
4040
|
.then((response) => {
|
|
3466
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4041
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
3467
4042
|
const cache = new StoreKeyMap();
|
|
3468
|
-
getResponseCacheKeys$
|
|
4043
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
3469
4044
|
return cache;
|
|
3470
4045
|
});
|
|
3471
4046
|
}, (response) => {
|
|
3472
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4047
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
3473
4048
|
});
|
|
3474
4049
|
}
|
|
3475
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3476
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4050
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4051
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
3477
4052
|
}
|
|
3478
|
-
function buildCachedSnapshotCachePolicy$
|
|
4053
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
3479
4054
|
const { luvio, config } = context;
|
|
3480
4055
|
const selector = {
|
|
3481
|
-
recordId: keyBuilder$
|
|
3482
|
-
node: adapterFragment$
|
|
4056
|
+
recordId: keyBuilder$j(luvio, config),
|
|
4057
|
+
node: adapterFragment$8(luvio, config),
|
|
3483
4058
|
variables: {},
|
|
3484
4059
|
};
|
|
3485
4060
|
const cacheSnapshot = storeLookup(selector, {
|
|
3486
4061
|
config,
|
|
3487
|
-
resolve: () => buildNetworkSnapshot$
|
|
4062
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3488
4063
|
});
|
|
3489
4064
|
return cacheSnapshot;
|
|
3490
4065
|
}
|
|
3491
4066
|
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
3492
|
-
const config = validateAdapterConfig$
|
|
4067
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
3493
4068
|
// Invalid or incomplete config
|
|
3494
4069
|
if (config === null) {
|
|
3495
4070
|
return null;
|
|
3496
4071
|
}
|
|
3497
4072
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3498
|
-
buildCachedSnapshotCachePolicy$
|
|
4073
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
3499
4074
|
};
|
|
3500
4075
|
const notifyChangeFactory$4 = (luvio, options) => {
|
|
3501
4076
|
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamIdNotifyChange(configs) {
|
|
3502
|
-
const keys = configs.map(c => keyBuilder$
|
|
4077
|
+
const keys = configs.map(c => keyBuilder$v(luvio, c));
|
|
3503
4078
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
3504
4079
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
3505
4080
|
const { key, record: val } = entries[i];
|
|
@@ -3508,11 +4083,11 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
3508
4083
|
.then((response) => {
|
|
3509
4084
|
return luvio.handleSuccessResponse(() => {
|
|
3510
4085
|
const { body } = response;
|
|
3511
|
-
luvio.storeIngest(key, ingest$
|
|
4086
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
3512
4087
|
return luvio.storeBroadcast();
|
|
3513
4088
|
}, () => {
|
|
3514
4089
|
const cache = new StoreKeyMap();
|
|
3515
|
-
getTypeCacheKeys$
|
|
4090
|
+
getTypeCacheKeys$f(cache, luvio, response.body);
|
|
3516
4091
|
return cache;
|
|
3517
4092
|
});
|
|
3518
4093
|
}, (error) => {
|
|
@@ -3527,8 +4102,8 @@ const notifyChangeFactory$4 = (luvio, options) => {
|
|
|
3527
4102
|
};
|
|
3528
4103
|
};
|
|
3529
4104
|
|
|
3530
|
-
const VERSION$
|
|
3531
|
-
function validate$
|
|
4105
|
+
const VERSION$6 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
4106
|
+
function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
3532
4107
|
const v_error = (() => {
|
|
3533
4108
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3534
4109
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3579,23 +4154,23 @@ function validate$5(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
3579
4154
|
})();
|
|
3580
4155
|
return v_error === undefined ? null : v_error;
|
|
3581
4156
|
}
|
|
3582
|
-
const RepresentationType$
|
|
3583
|
-
function keyBuilder$
|
|
3584
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4157
|
+
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
4158
|
+
function keyBuilder$i(luvio, config) {
|
|
4159
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
3585
4160
|
}
|
|
3586
4161
|
function keyBuilderFromType$2(luvio, object) {
|
|
3587
4162
|
const keyParams = {
|
|
3588
4163
|
channelId: object.channelId
|
|
3589
4164
|
};
|
|
3590
|
-
return keyBuilder$
|
|
4165
|
+
return keyBuilder$i(luvio, keyParams);
|
|
3591
4166
|
}
|
|
3592
|
-
function normalize$
|
|
4167
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
3593
4168
|
return input;
|
|
3594
4169
|
}
|
|
3595
|
-
const select$
|
|
4170
|
+
const select$k = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
3596
4171
|
return {
|
|
3597
4172
|
kind: 'Fragment',
|
|
3598
|
-
version: VERSION$
|
|
4173
|
+
version: VERSION$6,
|
|
3599
4174
|
private: [],
|
|
3600
4175
|
selections: [
|
|
3601
4176
|
{
|
|
@@ -3614,7 +4189,7 @@ const select$i = function SlackBridgeConversationMembersOutputRepresentationSele
|
|
|
3614
4189
|
]
|
|
3615
4190
|
};
|
|
3616
4191
|
};
|
|
3617
|
-
function equals$
|
|
4192
|
+
function equals$6(existing, incoming) {
|
|
3618
4193
|
const existing_channelId = existing.channelId;
|
|
3619
4194
|
const incoming_channelId = incoming.channelId;
|
|
3620
4195
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3637,46 +4212,46 @@ function equals$5(existing, incoming) {
|
|
|
3637
4212
|
}
|
|
3638
4213
|
return true;
|
|
3639
4214
|
}
|
|
3640
|
-
const ingest$
|
|
4215
|
+
const ingest$6 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3641
4216
|
if (process.env.NODE_ENV !== 'production') {
|
|
3642
|
-
const validateError = validate$
|
|
4217
|
+
const validateError = validate$6(input);
|
|
3643
4218
|
if (validateError !== null) {
|
|
3644
4219
|
throw validateError;
|
|
3645
4220
|
}
|
|
3646
4221
|
}
|
|
3647
4222
|
const key = keyBuilderFromType$2(luvio, input);
|
|
3648
4223
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3649
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4224
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
|
|
3650
4225
|
return createLink(key);
|
|
3651
4226
|
};
|
|
3652
|
-
function getTypeCacheKeys$
|
|
4227
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
3653
4228
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3654
4229
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
3655
4230
|
rootKeySet.set(rootKey, {
|
|
3656
4231
|
namespace: keyPrefix,
|
|
3657
|
-
representationName: RepresentationType$
|
|
4232
|
+
representationName: RepresentationType$6,
|
|
3658
4233
|
mergeable: false
|
|
3659
4234
|
});
|
|
3660
4235
|
}
|
|
3661
4236
|
|
|
3662
|
-
function select$
|
|
3663
|
-
return select$
|
|
4237
|
+
function select$j(luvio, params) {
|
|
4238
|
+
return select$k();
|
|
3664
4239
|
}
|
|
3665
|
-
function keyBuilder$
|
|
3666
|
-
return keyBuilder$
|
|
4240
|
+
function keyBuilder$h(luvio, params) {
|
|
4241
|
+
return keyBuilder$i(luvio, {
|
|
3667
4242
|
channelId: params.urlParams.channelId
|
|
3668
4243
|
});
|
|
3669
4244
|
}
|
|
3670
|
-
function getResponseCacheKeys$
|
|
3671
|
-
getTypeCacheKeys$
|
|
4245
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
4246
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
3672
4247
|
}
|
|
3673
|
-
function ingestSuccess$
|
|
4248
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
3674
4249
|
const { body } = response;
|
|
3675
|
-
const key = keyBuilder$
|
|
3676
|
-
luvio.storeIngest(key, ingest$
|
|
4250
|
+
const key = keyBuilder$h(luvio, resourceParams);
|
|
4251
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
3677
4252
|
const snapshot = luvio.storeLookup({
|
|
3678
4253
|
recordId: key,
|
|
3679
|
-
node: select$
|
|
4254
|
+
node: select$j(),
|
|
3680
4255
|
variables: {},
|
|
3681
4256
|
}, snapshotRefresh);
|
|
3682
4257
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3687,13 +4262,13 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3687
4262
|
deepFreeze(snapshot.data);
|
|
3688
4263
|
return snapshot;
|
|
3689
4264
|
}
|
|
3690
|
-
function ingestError$
|
|
3691
|
-
const key = keyBuilder$
|
|
4265
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
4266
|
+
const key = keyBuilder$h(luvio, params);
|
|
3692
4267
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3693
4268
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3694
4269
|
return errorSnapshot;
|
|
3695
4270
|
}
|
|
3696
|
-
function createResourceRequest$
|
|
4271
|
+
function createResourceRequest$d(config) {
|
|
3697
4272
|
const headers = {};
|
|
3698
4273
|
return {
|
|
3699
4274
|
baseUri: '/services/data/v63.0',
|
|
@@ -3711,98 +4286,98 @@ function createResourceRequestFromRepresentation$3(representation) {
|
|
|
3711
4286
|
urlParams: {},
|
|
3712
4287
|
};
|
|
3713
4288
|
config.urlParams.channelId = representation.channelId;
|
|
3714
|
-
return createResourceRequest$
|
|
4289
|
+
return createResourceRequest$d(config);
|
|
3715
4290
|
}
|
|
3716
4291
|
|
|
3717
|
-
const adapterName$
|
|
4292
|
+
const adapterName$d = 'getSlackConversationMembers';
|
|
3718
4293
|
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
3719
4294
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3720
4295
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3721
4296
|
];
|
|
3722
|
-
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3723
|
-
const createResourceParams$
|
|
3724
|
-
function keyBuilder$
|
|
3725
|
-
const resourceParams = createResourceParams$
|
|
3726
|
-
return keyBuilder$
|
|
4297
|
+
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4298
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4299
|
+
function keyBuilder$g(luvio, config) {
|
|
4300
|
+
const resourceParams = createResourceParams$d(config);
|
|
4301
|
+
return keyBuilder$h(luvio, resourceParams);
|
|
3727
4302
|
}
|
|
3728
|
-
function typeCheckConfig$
|
|
4303
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
3729
4304
|
const config = {};
|
|
3730
|
-
typeCheckConfig$
|
|
4305
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
3731
4306
|
return config;
|
|
3732
4307
|
}
|
|
3733
|
-
function validateAdapterConfig$
|
|
4308
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
3734
4309
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3735
4310
|
return null;
|
|
3736
4311
|
}
|
|
3737
4312
|
if (process.env.NODE_ENV !== 'production') {
|
|
3738
4313
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3739
4314
|
}
|
|
3740
|
-
const config = typeCheckConfig$
|
|
4315
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
3741
4316
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3742
4317
|
return null;
|
|
3743
4318
|
}
|
|
3744
4319
|
return config;
|
|
3745
4320
|
}
|
|
3746
|
-
function adapterFragment$
|
|
3747
|
-
createResourceParams$
|
|
3748
|
-
return select$
|
|
4321
|
+
function adapterFragment$7(luvio, config) {
|
|
4322
|
+
createResourceParams$d(config);
|
|
4323
|
+
return select$j();
|
|
3749
4324
|
}
|
|
3750
|
-
function onFetchResponseSuccess$
|
|
3751
|
-
const snapshot = ingestSuccess$
|
|
4325
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
4326
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
3752
4327
|
config,
|
|
3753
|
-
resolve: () => buildNetworkSnapshot$
|
|
4328
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3754
4329
|
});
|
|
3755
4330
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3756
4331
|
}
|
|
3757
|
-
function onFetchResponseError$
|
|
3758
|
-
const snapshot = ingestError$
|
|
4332
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
4333
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
3759
4334
|
config,
|
|
3760
|
-
resolve: () => buildNetworkSnapshot$
|
|
4335
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3761
4336
|
});
|
|
3762
4337
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3763
4338
|
}
|
|
3764
|
-
function buildNetworkSnapshot$
|
|
3765
|
-
const resourceParams = createResourceParams$
|
|
3766
|
-
const request = createResourceRequest$
|
|
4339
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
4340
|
+
const resourceParams = createResourceParams$d(config);
|
|
4341
|
+
const request = createResourceRequest$d(resourceParams);
|
|
3767
4342
|
return luvio.dispatchResourceRequest(request, options)
|
|
3768
4343
|
.then((response) => {
|
|
3769
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4344
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
3770
4345
|
const cache = new StoreKeyMap();
|
|
3771
|
-
getResponseCacheKeys$
|
|
4346
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
3772
4347
|
return cache;
|
|
3773
4348
|
});
|
|
3774
4349
|
}, (response) => {
|
|
3775
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4350
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
3776
4351
|
});
|
|
3777
4352
|
}
|
|
3778
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3779
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4353
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
4354
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
3780
4355
|
}
|
|
3781
|
-
function buildCachedSnapshotCachePolicy$
|
|
4356
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
3782
4357
|
const { luvio, config } = context;
|
|
3783
4358
|
const selector = {
|
|
3784
|
-
recordId: keyBuilder$
|
|
3785
|
-
node: adapterFragment$
|
|
4359
|
+
recordId: keyBuilder$g(luvio, config),
|
|
4360
|
+
node: adapterFragment$7(luvio, config),
|
|
3786
4361
|
variables: {},
|
|
3787
4362
|
};
|
|
3788
4363
|
const cacheSnapshot = storeLookup(selector, {
|
|
3789
4364
|
config,
|
|
3790
|
-
resolve: () => buildNetworkSnapshot$
|
|
4365
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
3791
4366
|
});
|
|
3792
4367
|
return cacheSnapshot;
|
|
3793
4368
|
}
|
|
3794
4369
|
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
3795
|
-
const config = validateAdapterConfig$
|
|
4370
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
3796
4371
|
// Invalid or incomplete config
|
|
3797
4372
|
if (config === null) {
|
|
3798
4373
|
return null;
|
|
3799
4374
|
}
|
|
3800
4375
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3801
|
-
buildCachedSnapshotCachePolicy$
|
|
4376
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
3802
4377
|
};
|
|
3803
4378
|
const notifyChangeFactory$3 = (luvio, options) => {
|
|
3804
4379
|
return function getConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamIdNotifyChange(configs) {
|
|
3805
|
-
const keys = configs.map(c => keyBuilder$
|
|
4380
|
+
const keys = configs.map(c => keyBuilder$i(luvio, c));
|
|
3806
4381
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
3807
4382
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
3808
4383
|
const { key, record: val } = entries[i];
|
|
@@ -3811,11 +4386,11 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
3811
4386
|
.then((response) => {
|
|
3812
4387
|
return luvio.handleSuccessResponse(() => {
|
|
3813
4388
|
const { body } = response;
|
|
3814
|
-
luvio.storeIngest(key, ingest$
|
|
4389
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
3815
4390
|
return luvio.storeBroadcast();
|
|
3816
4391
|
}, () => {
|
|
3817
4392
|
const cache = new StoreKeyMap();
|
|
3818
|
-
getTypeCacheKeys$
|
|
4393
|
+
getTypeCacheKeys$6(cache, luvio, response.body);
|
|
3819
4394
|
return cache;
|
|
3820
4395
|
});
|
|
3821
4396
|
}, (error) => {
|
|
@@ -3830,8 +4405,8 @@ const notifyChangeFactory$3 = (luvio, options) => {
|
|
|
3830
4405
|
};
|
|
3831
4406
|
};
|
|
3832
4407
|
|
|
3833
|
-
const VERSION$
|
|
3834
|
-
function validate$
|
|
4408
|
+
const VERSION$5 = "8eb41a29d901a4cc9611e387d180f0da";
|
|
4409
|
+
function validate$5(obj, path = 'SlackBridgeCustomEmojisOutputRepresentation') {
|
|
3835
4410
|
const v_error = (() => {
|
|
3836
4411
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3837
4412
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3858,14 +4433,14 @@ function validate$4(obj, path = 'SlackBridgeCustomEmojisOutputRepresentation') {
|
|
|
3858
4433
|
})();
|
|
3859
4434
|
return v_error === undefined ? null : v_error;
|
|
3860
4435
|
}
|
|
3861
|
-
const RepresentationType$
|
|
3862
|
-
function normalize$
|
|
4436
|
+
const RepresentationType$5 = 'SlackBridgeCustomEmojisOutputRepresentation';
|
|
4437
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
3863
4438
|
return input;
|
|
3864
4439
|
}
|
|
3865
|
-
const select$
|
|
4440
|
+
const select$i = function SlackBridgeCustomEmojisOutputRepresentationSelect() {
|
|
3866
4441
|
return {
|
|
3867
4442
|
kind: 'Fragment',
|
|
3868
|
-
version: VERSION$
|
|
4443
|
+
version: VERSION$5,
|
|
3869
4444
|
private: [],
|
|
3870
4445
|
selections: [
|
|
3871
4446
|
{
|
|
@@ -3880,7 +4455,7 @@ const select$g = function SlackBridgeCustomEmojisOutputRepresentationSelect() {
|
|
|
3880
4455
|
]
|
|
3881
4456
|
};
|
|
3882
4457
|
};
|
|
3883
|
-
function equals$
|
|
4458
|
+
function equals$5(existing, incoming) {
|
|
3884
4459
|
const existing_teamId = existing.teamId;
|
|
3885
4460
|
const incoming_teamId = incoming.teamId;
|
|
3886
4461
|
if (!(existing_teamId === incoming_teamId)) {
|
|
@@ -3898,44 +4473,178 @@ function equals$4(existing, incoming) {
|
|
|
3898
4473
|
}
|
|
3899
4474
|
return true;
|
|
3900
4475
|
}
|
|
3901
|
-
const ingest$
|
|
4476
|
+
const ingest$5 = function SlackBridgeCustomEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3902
4477
|
if (process.env.NODE_ENV !== 'production') {
|
|
3903
|
-
const validateError = validate$
|
|
4478
|
+
const validateError = validate$5(input);
|
|
3904
4479
|
if (validateError !== null) {
|
|
3905
4480
|
throw validateError;
|
|
3906
4481
|
}
|
|
3907
4482
|
}
|
|
3908
4483
|
const key = path.fullPath;
|
|
3909
4484
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3910
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4485
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SlackBridge", VERSION$5, RepresentationType$5, equals$5);
|
|
3911
4486
|
return createLink(key);
|
|
3912
4487
|
};
|
|
3913
|
-
function getTypeCacheKeys$
|
|
4488
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
3914
4489
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3915
4490
|
const rootKey = fullPathFactory();
|
|
3916
4491
|
rootKeySet.set(rootKey, {
|
|
3917
4492
|
namespace: keyPrefix,
|
|
3918
|
-
representationName: RepresentationType$
|
|
4493
|
+
representationName: RepresentationType$5,
|
|
3919
4494
|
mergeable: false
|
|
3920
4495
|
});
|
|
3921
4496
|
}
|
|
3922
4497
|
|
|
3923
|
-
function select$
|
|
3924
|
-
return select$
|
|
4498
|
+
function select$h(luvio, params) {
|
|
4499
|
+
return select$i();
|
|
3925
4500
|
}
|
|
3926
|
-
function keyBuilder$
|
|
4501
|
+
function keyBuilder$f(luvio, params) {
|
|
3927
4502
|
return keyPrefix + '::SlackBridgeCustomEmojisOutputRepresentation:(' + 'teamId:' + params.urlParams.teamId + ')';
|
|
3928
4503
|
}
|
|
4504
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
4505
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
4506
|
+
}
|
|
4507
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
4508
|
+
const { body } = response;
|
|
4509
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
4510
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
4511
|
+
const snapshot = luvio.storeLookup({
|
|
4512
|
+
recordId: key,
|
|
4513
|
+
node: select$h(),
|
|
4514
|
+
variables: {},
|
|
4515
|
+
}, snapshotRefresh);
|
|
4516
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4517
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4518
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4521
|
+
deepFreeze(snapshot.data);
|
|
4522
|
+
return snapshot;
|
|
4523
|
+
}
|
|
4524
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
4525
|
+
const key = keyBuilder$f(luvio, params);
|
|
4526
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4527
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
4528
|
+
return errorSnapshot;
|
|
4529
|
+
}
|
|
4530
|
+
function createResourceRequest$c(config) {
|
|
4531
|
+
const headers = {};
|
|
4532
|
+
return {
|
|
4533
|
+
baseUri: '/services/data/v63.0',
|
|
4534
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/emojis',
|
|
4535
|
+
method: 'get',
|
|
4536
|
+
body: null,
|
|
4537
|
+
urlParams: config.urlParams,
|
|
4538
|
+
queryParams: {},
|
|
4539
|
+
headers,
|
|
4540
|
+
priority: 'normal',
|
|
4541
|
+
};
|
|
4542
|
+
}
|
|
4543
|
+
|
|
4544
|
+
const adapterName$c = 'getSlackCustomEmoji';
|
|
4545
|
+
const getSlackCustomEmoji_ConfigPropertyMetadata = [
|
|
4546
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4547
|
+
];
|
|
4548
|
+
const getSlackCustomEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
4549
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
4550
|
+
function keyBuilder$e(luvio, config) {
|
|
4551
|
+
const resourceParams = createResourceParams$c(config);
|
|
4552
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
4553
|
+
}
|
|
4554
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
4555
|
+
const config = {};
|
|
4556
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
4557
|
+
return config;
|
|
4558
|
+
}
|
|
4559
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
4560
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4561
|
+
return null;
|
|
4562
|
+
}
|
|
4563
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4564
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4565
|
+
}
|
|
4566
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
4567
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4568
|
+
return null;
|
|
4569
|
+
}
|
|
4570
|
+
return config;
|
|
4571
|
+
}
|
|
4572
|
+
function adapterFragment$6(luvio, config) {
|
|
4573
|
+
createResourceParams$c(config);
|
|
4574
|
+
return select$h();
|
|
4575
|
+
}
|
|
4576
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
4577
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
4578
|
+
config,
|
|
4579
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
4580
|
+
});
|
|
4581
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4582
|
+
}
|
|
4583
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
4584
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
4585
|
+
config,
|
|
4586
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
4587
|
+
});
|
|
4588
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4589
|
+
}
|
|
4590
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
4591
|
+
const resourceParams = createResourceParams$c(config);
|
|
4592
|
+
const request = createResourceRequest$c(resourceParams);
|
|
4593
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4594
|
+
.then((response) => {
|
|
4595
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
4596
|
+
const cache = new StoreKeyMap();
|
|
4597
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
4598
|
+
return cache;
|
|
4599
|
+
});
|
|
4600
|
+
}, (response) => {
|
|
4601
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
4602
|
+
});
|
|
4603
|
+
}
|
|
4604
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
4605
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
4606
|
+
}
|
|
4607
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
4608
|
+
const { luvio, config } = context;
|
|
4609
|
+
const selector = {
|
|
4610
|
+
recordId: keyBuilder$e(luvio, config),
|
|
4611
|
+
node: adapterFragment$6(luvio, config),
|
|
4612
|
+
variables: {},
|
|
4613
|
+
};
|
|
4614
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4615
|
+
config,
|
|
4616
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
4617
|
+
});
|
|
4618
|
+
return cacheSnapshot;
|
|
4619
|
+
}
|
|
4620
|
+
const getSlackCustomEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackCustomEmoji(untrustedConfig, requestContext) {
|
|
4621
|
+
const config = validateAdapterConfig$c(untrustedConfig, getSlackCustomEmoji_ConfigPropertyNames);
|
|
4622
|
+
// Invalid or incomplete config
|
|
4623
|
+
if (config === null) {
|
|
4624
|
+
return null;
|
|
4625
|
+
}
|
|
4626
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4627
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
4628
|
+
};
|
|
4629
|
+
|
|
4630
|
+
function select$g(luvio, params) {
|
|
4631
|
+
return select$z();
|
|
4632
|
+
}
|
|
4633
|
+
function keyBuilder$d(luvio, params) {
|
|
4634
|
+
return keyBuilder$t(luvio, {
|
|
4635
|
+
channelId: params.urlParams.channelId
|
|
4636
|
+
});
|
|
4637
|
+
}
|
|
3929
4638
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
3930
|
-
getTypeCacheKeys$
|
|
4639
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
3931
4640
|
}
|
|
3932
4641
|
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
3933
4642
|
const { body } = response;
|
|
3934
4643
|
const key = keyBuilder$d(luvio, resourceParams);
|
|
3935
|
-
luvio.storeIngest(key, ingest$
|
|
4644
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
3936
4645
|
const snapshot = luvio.storeLookup({
|
|
3937
4646
|
recordId: key,
|
|
3938
|
-
node: select$
|
|
4647
|
+
node: select$g(),
|
|
3939
4648
|
variables: {},
|
|
3940
4649
|
}, snapshotRefresh);
|
|
3941
4650
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3956,7 +4665,7 @@ function createResourceRequest$b(config) {
|
|
|
3956
4665
|
const headers = {};
|
|
3957
4666
|
return {
|
|
3958
4667
|
baseUri: '/services/data/v63.0',
|
|
3959
|
-
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/
|
|
4668
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/messages/' + config.urlParams.messageTs + '',
|
|
3960
4669
|
method: 'get',
|
|
3961
4670
|
body: null,
|
|
3962
4671
|
urlParams: config.urlParams,
|
|
@@ -3965,20 +4674,29 @@ function createResourceRequest$b(config) {
|
|
|
3965
4674
|
priority: 'normal',
|
|
3966
4675
|
};
|
|
3967
4676
|
}
|
|
4677
|
+
function createResourceRequestFromRepresentation$2(representation) {
|
|
4678
|
+
const config = {
|
|
4679
|
+
urlParams: {},
|
|
4680
|
+
};
|
|
4681
|
+
config.urlParams.channelId = representation.channelId;
|
|
4682
|
+
return createResourceRequest$b(config);
|
|
4683
|
+
}
|
|
3968
4684
|
|
|
3969
|
-
const adapterName$b = '
|
|
3970
|
-
const
|
|
4685
|
+
const adapterName$b = 'getSlackMessage';
|
|
4686
|
+
const getSlackMessage_ConfigPropertyMetadata = [
|
|
4687
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4688
|
+
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3971
4689
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3972
4690
|
];
|
|
3973
|
-
const
|
|
3974
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
4691
|
+
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackMessage_ConfigPropertyMetadata);
|
|
4692
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(getSlackMessage_ConfigPropertyMetadata);
|
|
3975
4693
|
function keyBuilder$c(luvio, config) {
|
|
3976
4694
|
const resourceParams = createResourceParams$b(config);
|
|
3977
4695
|
return keyBuilder$d(luvio, resourceParams);
|
|
3978
4696
|
}
|
|
3979
4697
|
function typeCheckConfig$b(untrustedConfig) {
|
|
3980
4698
|
const config = {};
|
|
3981
|
-
typeCheckConfig$
|
|
4699
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
3982
4700
|
return config;
|
|
3983
4701
|
}
|
|
3984
4702
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -3996,7 +4714,7 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
|
3996
4714
|
}
|
|
3997
4715
|
function adapterFragment$5(luvio, config) {
|
|
3998
4716
|
createResourceParams$b(config);
|
|
3999
|
-
return select$
|
|
4717
|
+
return select$g();
|
|
4000
4718
|
}
|
|
4001
4719
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
4002
4720
|
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
@@ -4027,7 +4745,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
4027
4745
|
});
|
|
4028
4746
|
}
|
|
4029
4747
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
4030
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4748
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
4031
4749
|
}
|
|
4032
4750
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
4033
4751
|
const { luvio, config } = context;
|
|
@@ -4036,37 +4754,178 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
4036
4754
|
node: adapterFragment$5(luvio, config),
|
|
4037
4755
|
variables: {},
|
|
4038
4756
|
};
|
|
4039
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
4040
|
-
config,
|
|
4041
|
-
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4042
|
-
});
|
|
4043
|
-
return cacheSnapshot;
|
|
4757
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4758
|
+
config,
|
|
4759
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4760
|
+
});
|
|
4761
|
+
return cacheSnapshot;
|
|
4762
|
+
}
|
|
4763
|
+
const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackMessage(untrustedConfig, requestContext) {
|
|
4764
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSlackMessage_ConfigPropertyNames);
|
|
4765
|
+
// Invalid or incomplete config
|
|
4766
|
+
if (config === null) {
|
|
4767
|
+
return null;
|
|
4768
|
+
}
|
|
4769
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4770
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
4771
|
+
};
|
|
4772
|
+
const notifyChangeFactory$2 = (luvio, options) => {
|
|
4773
|
+
return function getConnectSlackbridgeTeamChannelMessagesByChannelIdAndMessageTsAndTeamIdNotifyChange(configs) {
|
|
4774
|
+
const keys = configs.map(c => keyBuilder$t(luvio, c));
|
|
4775
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4776
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4777
|
+
const { key, record: val } = entries[i];
|
|
4778
|
+
const refreshRequest = createResourceRequestFromRepresentation$2(val);
|
|
4779
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4780
|
+
.then((response) => {
|
|
4781
|
+
return luvio.handleSuccessResponse(() => {
|
|
4782
|
+
const { body } = response;
|
|
4783
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
4784
|
+
return luvio.storeBroadcast();
|
|
4785
|
+
}, () => {
|
|
4786
|
+
const cache = new StoreKeyMap();
|
|
4787
|
+
getTypeCacheKeys$e(cache, luvio, response.body);
|
|
4788
|
+
return cache;
|
|
4789
|
+
});
|
|
4790
|
+
}, (error) => {
|
|
4791
|
+
return luvio.handleErrorResponse(() => {
|
|
4792
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
4793
|
+
luvio.storeIngestError(key, errorSnapshot, undefined);
|
|
4794
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
4795
|
+
});
|
|
4796
|
+
});
|
|
4797
|
+
}
|
|
4798
|
+
});
|
|
4799
|
+
};
|
|
4800
|
+
};
|
|
4801
|
+
|
|
4802
|
+
const VERSION$4 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
4803
|
+
function validate$4(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
4804
|
+
const v_error = (() => {
|
|
4805
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4806
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4807
|
+
}
|
|
4808
|
+
const obj_conversationInfo = obj.conversationInfo;
|
|
4809
|
+
const path_conversationInfo = path + '.conversationInfo';
|
|
4810
|
+
if (typeof obj_conversationInfo !== 'object') {
|
|
4811
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfo + '" (at "' + path_conversationInfo + '")');
|
|
4812
|
+
}
|
|
4813
|
+
const obj_relatedRecordId = obj.relatedRecordId;
|
|
4814
|
+
const path_relatedRecordId = path + '.relatedRecordId';
|
|
4815
|
+
if (typeof obj_relatedRecordId !== 'string') {
|
|
4816
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedRecordId + '" (at "' + path_relatedRecordId + '")');
|
|
4817
|
+
}
|
|
4818
|
+
const obj_teamId = obj.teamId;
|
|
4819
|
+
const path_teamId = path + '.teamId';
|
|
4820
|
+
if (typeof obj_teamId !== 'string') {
|
|
4821
|
+
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
4822
|
+
}
|
|
4823
|
+
})();
|
|
4824
|
+
return v_error === undefined ? null : v_error;
|
|
4825
|
+
}
|
|
4826
|
+
const RepresentationType$4 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
4827
|
+
function keyBuilder$b(luvio, config) {
|
|
4828
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.relatedRecordId;
|
|
4829
|
+
}
|
|
4830
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
4831
|
+
const keyParams = {
|
|
4832
|
+
relatedRecordId: object.relatedRecordId
|
|
4833
|
+
};
|
|
4834
|
+
return keyBuilder$b(luvio, keyParams);
|
|
4835
|
+
}
|
|
4836
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4837
|
+
const input_conversationInfo = input.conversationInfo;
|
|
4838
|
+
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
4839
|
+
input.conversationInfo = ingest$b(input_conversationInfo, {
|
|
4840
|
+
fullPath: input_conversationInfo_id,
|
|
4841
|
+
propertyName: 'conversationInfo',
|
|
4842
|
+
parent: {
|
|
4843
|
+
data: input,
|
|
4844
|
+
key: path.fullPath,
|
|
4845
|
+
existing: existing,
|
|
4846
|
+
},
|
|
4847
|
+
ttl: path.ttl
|
|
4848
|
+
}, luvio, store, timestamp);
|
|
4849
|
+
return input;
|
|
4850
|
+
}
|
|
4851
|
+
const select$f = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
4852
|
+
return {
|
|
4853
|
+
kind: 'Fragment',
|
|
4854
|
+
version: VERSION$4,
|
|
4855
|
+
private: [],
|
|
4856
|
+
selections: [
|
|
4857
|
+
{
|
|
4858
|
+
name: 'conversationInfo',
|
|
4859
|
+
kind: 'Link',
|
|
4860
|
+
fragment: select$u()
|
|
4861
|
+
},
|
|
4862
|
+
{
|
|
4863
|
+
name: 'relatedRecordId',
|
|
4864
|
+
kind: 'Scalar'
|
|
4865
|
+
},
|
|
4866
|
+
{
|
|
4867
|
+
name: 'teamId',
|
|
4868
|
+
kind: 'Scalar'
|
|
4869
|
+
}
|
|
4870
|
+
]
|
|
4871
|
+
};
|
|
4872
|
+
};
|
|
4873
|
+
function equals$4(existing, incoming) {
|
|
4874
|
+
const existing_relatedRecordId = existing.relatedRecordId;
|
|
4875
|
+
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
4876
|
+
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
4877
|
+
return false;
|
|
4878
|
+
}
|
|
4879
|
+
const existing_teamId = existing.teamId;
|
|
4880
|
+
const incoming_teamId = incoming.teamId;
|
|
4881
|
+
if (!(existing_teamId === incoming_teamId)) {
|
|
4882
|
+
return false;
|
|
4883
|
+
}
|
|
4884
|
+
const existing_conversationInfo = existing.conversationInfo;
|
|
4885
|
+
const incoming_conversationInfo = incoming.conversationInfo;
|
|
4886
|
+
if (!(existing_conversationInfo.__ref === incoming_conversationInfo.__ref)) {
|
|
4887
|
+
return false;
|
|
4888
|
+
}
|
|
4889
|
+
return true;
|
|
4044
4890
|
}
|
|
4045
|
-
const
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4891
|
+
const ingest$4 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4892
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4893
|
+
const validateError = validate$4(input);
|
|
4894
|
+
if (validateError !== null) {
|
|
4895
|
+
throw validateError;
|
|
4896
|
+
}
|
|
4050
4897
|
}
|
|
4051
|
-
|
|
4052
|
-
|
|
4898
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
4899
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4900
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SlackBridge", VERSION$4, RepresentationType$4, equals$4);
|
|
4901
|
+
return createLink(key);
|
|
4053
4902
|
};
|
|
4903
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
4904
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4905
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
4906
|
+
rootKeySet.set(rootKey, {
|
|
4907
|
+
namespace: keyPrefix,
|
|
4908
|
+
representationName: RepresentationType$4,
|
|
4909
|
+
mergeable: false
|
|
4910
|
+
});
|
|
4911
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.conversationInfo);
|
|
4912
|
+
}
|
|
4054
4913
|
|
|
4055
4914
|
function select$e(luvio, params) {
|
|
4056
|
-
return select$
|
|
4915
|
+
return select$f();
|
|
4057
4916
|
}
|
|
4058
|
-
function keyBuilder$
|
|
4059
|
-
return keyBuilder$
|
|
4060
|
-
|
|
4917
|
+
function keyBuilder$a(luvio, params) {
|
|
4918
|
+
return keyBuilder$b(luvio, {
|
|
4919
|
+
relatedRecordId: params.urlParams.relatedRecordId
|
|
4061
4920
|
});
|
|
4062
4921
|
}
|
|
4063
4922
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
4064
|
-
getTypeCacheKeys$
|
|
4923
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
4065
4924
|
}
|
|
4066
4925
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
4067
4926
|
const { body } = response;
|
|
4068
|
-
const key = keyBuilder$
|
|
4069
|
-
luvio.storeIngest(key, ingest$
|
|
4927
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
4928
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
4070
4929
|
const snapshot = luvio.storeLookup({
|
|
4071
4930
|
recordId: key,
|
|
4072
4931
|
node: select$e(),
|
|
@@ -4081,7 +4940,7 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4081
4940
|
return snapshot;
|
|
4082
4941
|
}
|
|
4083
4942
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
4084
|
-
const key = keyBuilder$
|
|
4943
|
+
const key = keyBuilder$a(luvio, params);
|
|
4085
4944
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4086
4945
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4087
4946
|
return errorSnapshot;
|
|
@@ -4090,7 +4949,7 @@ function createResourceRequest$a(config) {
|
|
|
4090
4949
|
const headers = {};
|
|
4091
4950
|
return {
|
|
4092
4951
|
baseUri: '/services/data/v63.0',
|
|
4093
|
-
basePath: '/connect/slackbridge/
|
|
4952
|
+
basePath: '/connect/slackbridge/record_channels/' + config.urlParams.relatedRecordId + '',
|
|
4094
4953
|
method: 'get',
|
|
4095
4954
|
body: null,
|
|
4096
4955
|
urlParams: config.urlParams,
|
|
@@ -4099,29 +4958,27 @@ function createResourceRequest$a(config) {
|
|
|
4099
4958
|
priority: 'normal',
|
|
4100
4959
|
};
|
|
4101
4960
|
}
|
|
4102
|
-
function createResourceRequestFromRepresentation$
|
|
4961
|
+
function createResourceRequestFromRepresentation$1(representation) {
|
|
4103
4962
|
const config = {
|
|
4104
4963
|
urlParams: {},
|
|
4105
4964
|
};
|
|
4106
|
-
config.urlParams.
|
|
4965
|
+
config.urlParams.relatedRecordId = representation.relatedRecordId;
|
|
4107
4966
|
return createResourceRequest$a(config);
|
|
4108
4967
|
}
|
|
4109
4968
|
|
|
4110
|
-
const adapterName$a = '
|
|
4111
|
-
const
|
|
4112
|
-
generateParamConfigMetadata('
|
|
4113
|
-
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4114
|
-
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4969
|
+
const adapterName$a = 'getSlackRecordChannelInfo';
|
|
4970
|
+
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
4971
|
+
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4115
4972
|
];
|
|
4116
|
-
const
|
|
4117
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
4118
|
-
function keyBuilder$
|
|
4973
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4974
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4975
|
+
function keyBuilder$9(luvio, config) {
|
|
4119
4976
|
const resourceParams = createResourceParams$a(config);
|
|
4120
|
-
return keyBuilder$
|
|
4977
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
4121
4978
|
}
|
|
4122
4979
|
function typeCheckConfig$a(untrustedConfig) {
|
|
4123
4980
|
const config = {};
|
|
4124
|
-
typeCheckConfig$
|
|
4981
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4125
4982
|
return config;
|
|
4126
4983
|
}
|
|
4127
4984
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -4170,12 +5027,12 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
4170
5027
|
});
|
|
4171
5028
|
}
|
|
4172
5029
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
4173
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5030
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
4174
5031
|
}
|
|
4175
5032
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
4176
5033
|
const { luvio, config } = context;
|
|
4177
5034
|
const selector = {
|
|
4178
|
-
recordId: keyBuilder$
|
|
5035
|
+
recordId: keyBuilder$9(luvio, config),
|
|
4179
5036
|
node: adapterFragment$4(luvio, config),
|
|
4180
5037
|
variables: {},
|
|
4181
5038
|
};
|
|
@@ -4185,8 +5042,8 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
4185
5042
|
});
|
|
4186
5043
|
return cacheSnapshot;
|
|
4187
5044
|
}
|
|
4188
|
-
const
|
|
4189
|
-
const config = validateAdapterConfig$a(untrustedConfig,
|
|
5045
|
+
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
5046
|
+
const config = validateAdapterConfig$a(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
4190
5047
|
// Invalid or incomplete config
|
|
4191
5048
|
if (config === null) {
|
|
4192
5049
|
return null;
|
|
@@ -4194,22 +5051,22 @@ const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackM
|
|
|
4194
5051
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4195
5052
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
4196
5053
|
};
|
|
4197
|
-
const notifyChangeFactory$
|
|
4198
|
-
return function
|
|
4199
|
-
const keys = configs.map(c => keyBuilder$
|
|
5054
|
+
const notifyChangeFactory$1 = (luvio, options) => {
|
|
5055
|
+
return function getConnectSlackbridgeRecord_channelsByRelatedRecordIdNotifyChange(configs) {
|
|
5056
|
+
const keys = configs.map(c => keyBuilder$b(luvio, c));
|
|
4200
5057
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
4201
5058
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
4202
5059
|
const { key, record: val } = entries[i];
|
|
4203
|
-
const refreshRequest = createResourceRequestFromRepresentation$
|
|
5060
|
+
const refreshRequest = createResourceRequestFromRepresentation$1(val);
|
|
4204
5061
|
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
4205
5062
|
.then((response) => {
|
|
4206
5063
|
return luvio.handleSuccessResponse(() => {
|
|
4207
5064
|
const { body } = response;
|
|
4208
|
-
luvio.storeIngest(key, ingest$
|
|
5065
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
4209
5066
|
return luvio.storeBroadcast();
|
|
4210
5067
|
}, () => {
|
|
4211
5068
|
const cache = new StoreKeyMap();
|
|
4212
|
-
getTypeCacheKeys$
|
|
5069
|
+
getTypeCacheKeys$4(cache, luvio, response.body);
|
|
4213
5070
|
return cache;
|
|
4214
5071
|
});
|
|
4215
5072
|
}, (error) => {
|
|
@@ -4224,128 +5081,144 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
4224
5081
|
};
|
|
4225
5082
|
};
|
|
4226
5083
|
|
|
4227
|
-
const VERSION$3 = "
|
|
4228
|
-
function validate$3(obj, path = '
|
|
5084
|
+
const VERSION$3 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
5085
|
+
function validate$3(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
4229
5086
|
const v_error = (() => {
|
|
4230
5087
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4231
5088
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4232
5089
|
}
|
|
4233
|
-
const
|
|
4234
|
-
const
|
|
4235
|
-
if (
|
|
4236
|
-
return new TypeError('Expected "
|
|
5090
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
5091
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
5092
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
5093
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
4237
5094
|
}
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
5095
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
5096
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
5097
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
5098
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
5099
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
5100
|
+
}
|
|
4242
5101
|
}
|
|
4243
|
-
const
|
|
4244
|
-
const
|
|
4245
|
-
|
|
4246
|
-
|
|
5102
|
+
const obj_searchString = obj.searchString;
|
|
5103
|
+
const path_searchString = path + '.searchString';
|
|
5104
|
+
let obj_searchString_union0 = null;
|
|
5105
|
+
const obj_searchString_union0_error = (() => {
|
|
5106
|
+
if (typeof obj_searchString !== 'string') {
|
|
5107
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5108
|
+
}
|
|
5109
|
+
})();
|
|
5110
|
+
if (obj_searchString_union0_error != null) {
|
|
5111
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
5112
|
+
}
|
|
5113
|
+
let obj_searchString_union1 = null;
|
|
5114
|
+
const obj_searchString_union1_error = (() => {
|
|
5115
|
+
if (obj_searchString !== null) {
|
|
5116
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5117
|
+
}
|
|
5118
|
+
})();
|
|
5119
|
+
if (obj_searchString_union1_error != null) {
|
|
5120
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
5121
|
+
}
|
|
5122
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
5123
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
5124
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5125
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5126
|
+
return new TypeError(message);
|
|
4247
5127
|
}
|
|
4248
5128
|
})();
|
|
4249
5129
|
return v_error === undefined ? null : v_error;
|
|
4250
5130
|
}
|
|
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
|
-
}
|
|
5131
|
+
const RepresentationType$3 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
4261
5132
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
4262
|
-
const
|
|
4263
|
-
const
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
5133
|
+
const input_conversationInfos = input.conversationInfos;
|
|
5134
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
5135
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
5136
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
5137
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
5138
|
+
input_conversationInfos[i] = ingest$b(input_conversationInfos_item, {
|
|
5139
|
+
fullPath: input_conversationInfos_item_id,
|
|
5140
|
+
propertyName: i,
|
|
5141
|
+
parent: {
|
|
5142
|
+
data: input,
|
|
5143
|
+
key: path.fullPath,
|
|
5144
|
+
existing: existing,
|
|
5145
|
+
},
|
|
5146
|
+
ttl: path.ttl
|
|
5147
|
+
}, luvio, store, timestamp);
|
|
5148
|
+
}
|
|
4274
5149
|
return input;
|
|
4275
5150
|
}
|
|
4276
|
-
const select$d = function
|
|
5151
|
+
const select$d = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
4277
5152
|
return {
|
|
4278
5153
|
kind: 'Fragment',
|
|
4279
5154
|
version: VERSION$3,
|
|
4280
5155
|
private: [],
|
|
4281
5156
|
selections: [
|
|
4282
5157
|
{
|
|
4283
|
-
name: '
|
|
5158
|
+
name: 'conversationInfos',
|
|
4284
5159
|
kind: 'Link',
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
{
|
|
4288
|
-
name: 'relatedRecordId',
|
|
4289
|
-
kind: 'Scalar'
|
|
5160
|
+
plural: true,
|
|
5161
|
+
fragment: select$u()
|
|
4290
5162
|
},
|
|
4291
5163
|
{
|
|
4292
|
-
name: '
|
|
5164
|
+
name: 'searchString',
|
|
4293
5165
|
kind: 'Scalar'
|
|
4294
5166
|
}
|
|
4295
5167
|
]
|
|
4296
5168
|
};
|
|
4297
5169
|
};
|
|
4298
5170
|
function equals$3(existing, incoming) {
|
|
4299
|
-
const
|
|
4300
|
-
const
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
if (
|
|
5171
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
5172
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
5173
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
5174
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
5175
|
+
return false;
|
|
5176
|
+
}
|
|
5177
|
+
});
|
|
5178
|
+
if (equals_conversationInfos_items === false) {
|
|
4307
5179
|
return false;
|
|
4308
5180
|
}
|
|
4309
|
-
const
|
|
4310
|
-
const
|
|
4311
|
-
if (!(
|
|
5181
|
+
const existing_searchString = existing.searchString;
|
|
5182
|
+
const incoming_searchString = incoming.searchString;
|
|
5183
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
4312
5184
|
return false;
|
|
4313
5185
|
}
|
|
4314
5186
|
return true;
|
|
4315
5187
|
}
|
|
4316
|
-
const ingest$3 = function
|
|
5188
|
+
const ingest$3 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4317
5189
|
if (process.env.NODE_ENV !== 'production') {
|
|
4318
5190
|
const validateError = validate$3(input);
|
|
4319
5191
|
if (validateError !== null) {
|
|
4320
5192
|
throw validateError;
|
|
4321
5193
|
}
|
|
4322
5194
|
}
|
|
4323
|
-
const key =
|
|
5195
|
+
const key = path.fullPath;
|
|
4324
5196
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4325
5197
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "SlackBridge", VERSION$3, RepresentationType$3, equals$3);
|
|
4326
5198
|
return createLink(key);
|
|
4327
5199
|
};
|
|
4328
5200
|
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
4329
5201
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4330
|
-
const rootKey =
|
|
5202
|
+
const rootKey = fullPathFactory();
|
|
4331
5203
|
rootKeySet.set(rootKey, {
|
|
4332
5204
|
namespace: keyPrefix,
|
|
4333
5205
|
representationName: RepresentationType$3,
|
|
4334
5206
|
mergeable: false
|
|
4335
5207
|
});
|
|
4336
|
-
|
|
5208
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
5209
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
5210
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.conversationInfos[i]);
|
|
5211
|
+
}
|
|
4337
5212
|
}
|
|
4338
5213
|
|
|
4339
5214
|
function select$c(luvio, params) {
|
|
4340
5215
|
return select$d();
|
|
4341
5216
|
}
|
|
4342
5217
|
function keyBuilder$8(luvio, params) {
|
|
4343
|
-
return
|
|
4344
|
-
relatedRecordId: params.urlParams.relatedRecordId
|
|
4345
|
-
});
|
|
5218
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
4346
5219
|
}
|
|
4347
5220
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
4348
|
-
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
5221
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
4349
5222
|
}
|
|
4350
5223
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
4351
5224
|
const { body } = response;
|
|
@@ -4374,36 +5247,30 @@ function createResourceRequest$9(config) {
|
|
|
4374
5247
|
const headers = {};
|
|
4375
5248
|
return {
|
|
4376
5249
|
baseUri: '/services/data/v63.0',
|
|
4377
|
-
basePath: '/connect/slackbridge/
|
|
5250
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/search/conversations',
|
|
4378
5251
|
method: 'get',
|
|
4379
5252
|
body: null,
|
|
4380
5253
|
urlParams: config.urlParams,
|
|
4381
|
-
queryParams:
|
|
5254
|
+
queryParams: config.queryParams,
|
|
4382
5255
|
headers,
|
|
4383
5256
|
priority: 'normal',
|
|
4384
5257
|
};
|
|
4385
5258
|
}
|
|
4386
|
-
function createResourceRequestFromRepresentation$1(representation) {
|
|
4387
|
-
const config = {
|
|
4388
|
-
urlParams: {},
|
|
4389
|
-
};
|
|
4390
|
-
config.urlParams.relatedRecordId = representation.relatedRecordId;
|
|
4391
|
-
return createResourceRequest$9(config);
|
|
4392
|
-
}
|
|
4393
5259
|
|
|
4394
|
-
const adapterName$9 = '
|
|
4395
|
-
const
|
|
4396
|
-
generateParamConfigMetadata('
|
|
5260
|
+
const adapterName$9 = 'getSlackSearchConversation';
|
|
5261
|
+
const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
5262
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5263
|
+
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4397
5264
|
];
|
|
4398
|
-
const
|
|
4399
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
5265
|
+
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
5266
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
4400
5267
|
function keyBuilder$7(luvio, config) {
|
|
4401
5268
|
const resourceParams = createResourceParams$9(config);
|
|
4402
5269
|
return keyBuilder$8(luvio, resourceParams);
|
|
4403
5270
|
}
|
|
4404
5271
|
function typeCheckConfig$9(untrustedConfig) {
|
|
4405
5272
|
const config = {};
|
|
4406
|
-
typeCheckConfig$
|
|
5273
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
4407
5274
|
return config;
|
|
4408
5275
|
}
|
|
4409
5276
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -4452,7 +5319,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
4452
5319
|
});
|
|
4453
5320
|
}
|
|
4454
5321
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
4455
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5322
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
4456
5323
|
}
|
|
4457
5324
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
4458
5325
|
const { luvio, config } = context;
|
|
@@ -4467,8 +5334,8 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
4467
5334
|
});
|
|
4468
5335
|
return cacheSnapshot;
|
|
4469
5336
|
}
|
|
4470
|
-
const
|
|
4471
|
-
const config = validateAdapterConfig$9(untrustedConfig,
|
|
5337
|
+
const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge__getSlackSearchConversation(untrustedConfig, requestContext) {
|
|
5338
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSlackSearchConversation_ConfigPropertyNames);
|
|
4472
5339
|
// Invalid or incomplete config
|
|
4473
5340
|
if (config === null) {
|
|
4474
5341
|
return null;
|
|
@@ -4476,37 +5343,8 @@ const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge_
|
|
|
4476
5343
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4477
5344
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
4478
5345
|
};
|
|
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
5346
|
|
|
4509
|
-
const VERSION$2 = "
|
|
5347
|
+
const VERSION$2 = "40ec82af9ce301ce8598d88a6b19174a";
|
|
4510
5348
|
function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
4511
5349
|
const v_error = (() => {
|
|
4512
5350
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4520,7 +5358,7 @@ function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
4520
5358
|
for (let i = 0; i < obj_emojis.length; i++) {
|
|
4521
5359
|
const obj_emojis_item = obj_emojis[i];
|
|
4522
5360
|
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
4523
|
-
const referencepath_emojis_itemValidationError = validate$
|
|
5361
|
+
const referencepath_emojis_itemValidationError = validate$g(obj_emojis_item, path_emojis_item);
|
|
4524
5362
|
if (referencepath_emojis_itemValidationError !== null) {
|
|
4525
5363
|
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_emojis_item + '")\n';
|
|
4526
5364
|
message += referencepath_emojis_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4529,8 +5367,29 @@ function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
4529
5367
|
}
|
|
4530
5368
|
const obj_searchString = obj.searchString;
|
|
4531
5369
|
const path_searchString = path + '.searchString';
|
|
4532
|
-
|
|
4533
|
-
|
|
5370
|
+
let obj_searchString_union0 = null;
|
|
5371
|
+
const obj_searchString_union0_error = (() => {
|
|
5372
|
+
if (typeof obj_searchString !== 'string') {
|
|
5373
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5374
|
+
}
|
|
5375
|
+
})();
|
|
5376
|
+
if (obj_searchString_union0_error != null) {
|
|
5377
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
5378
|
+
}
|
|
5379
|
+
let obj_searchString_union1 = null;
|
|
5380
|
+
const obj_searchString_union1_error = (() => {
|
|
5381
|
+
if (obj_searchString !== null) {
|
|
5382
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5383
|
+
}
|
|
5384
|
+
})();
|
|
5385
|
+
if (obj_searchString_union1_error != null) {
|
|
5386
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
5387
|
+
}
|
|
5388
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
5389
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
5390
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5391
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5392
|
+
return new TypeError(message);
|
|
4534
5393
|
}
|
|
4535
5394
|
})();
|
|
4536
5395
|
return v_error === undefined ? null : v_error;
|
|
@@ -4540,7 +5399,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
4540
5399
|
return input;
|
|
4541
5400
|
}
|
|
4542
5401
|
const select$b = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
4543
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$
|
|
5402
|
+
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$w();
|
|
4544
5403
|
return {
|
|
4545
5404
|
kind: 'Fragment',
|
|
4546
5405
|
version: VERSION$2,
|
|
@@ -4560,21 +5419,21 @@ const select$b = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
4560
5419
|
};
|
|
4561
5420
|
};
|
|
4562
5421
|
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
5422
|
const existing_emojis = existing.emojis;
|
|
4569
5423
|
const incoming_emojis = incoming.emojis;
|
|
4570
5424
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
4571
|
-
if (!(equals$
|
|
5425
|
+
if (!(equals$g(existing_emojis_item, incoming_emojis_item))) {
|
|
4572
5426
|
return false;
|
|
4573
5427
|
}
|
|
4574
5428
|
});
|
|
4575
5429
|
if (equals_emojis_items === false) {
|
|
4576
5430
|
return false;
|
|
4577
5431
|
}
|
|
5432
|
+
const existing_searchString = existing.searchString;
|
|
5433
|
+
const incoming_searchString = incoming.searchString;
|
|
5434
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
5435
|
+
return false;
|
|
5436
|
+
}
|
|
4578
5437
|
return true;
|
|
4579
5438
|
}
|
|
4580
5439
|
const ingest$2 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -4651,14 +5510,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
4651
5510
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4652
5511
|
];
|
|
4653
5512
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
4654
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
5513
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
4655
5514
|
function keyBuilder$5(luvio, config) {
|
|
4656
5515
|
const resourceParams = createResourceParams$8(config);
|
|
4657
5516
|
return keyBuilder$6(luvio, resourceParams);
|
|
4658
5517
|
}
|
|
4659
5518
|
function typeCheckConfig$8(untrustedConfig) {
|
|
4660
5519
|
const config = {};
|
|
4661
|
-
typeCheckConfig$
|
|
5520
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
4662
5521
|
return config;
|
|
4663
5522
|
}
|
|
4664
5523
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -4707,7 +5566,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
4707
5566
|
});
|
|
4708
5567
|
}
|
|
4709
5568
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
4710
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5569
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
4711
5570
|
}
|
|
4712
5571
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
4713
5572
|
const { luvio, config } = context;
|
|
@@ -4732,7 +5591,7 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
4732
5591
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
4733
5592
|
};
|
|
4734
5593
|
|
|
4735
|
-
const VERSION$1 = "
|
|
5594
|
+
const VERSION$1 = "058d708f5533e6123e368a3722311412";
|
|
4736
5595
|
function validate$1(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
4737
5596
|
const v_error = (() => {
|
|
4738
5597
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4740,8 +5599,29 @@ function validate$1(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
|
4740
5599
|
}
|
|
4741
5600
|
const obj_searchString = obj.searchString;
|
|
4742
5601
|
const path_searchString = path + '.searchString';
|
|
4743
|
-
|
|
4744
|
-
|
|
5602
|
+
let obj_searchString_union0 = null;
|
|
5603
|
+
const obj_searchString_union0_error = (() => {
|
|
5604
|
+
if (typeof obj_searchString !== 'string') {
|
|
5605
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5606
|
+
}
|
|
5607
|
+
})();
|
|
5608
|
+
if (obj_searchString_union0_error != null) {
|
|
5609
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
5610
|
+
}
|
|
5611
|
+
let obj_searchString_union1 = null;
|
|
5612
|
+
const obj_searchString_union1_error = (() => {
|
|
5613
|
+
if (obj_searchString !== null) {
|
|
5614
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
5615
|
+
}
|
|
5616
|
+
})();
|
|
5617
|
+
if (obj_searchString_union1_error != null) {
|
|
5618
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
5619
|
+
}
|
|
5620
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
5621
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
5622
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5623
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5624
|
+
return new TypeError(message);
|
|
4745
5625
|
}
|
|
4746
5626
|
const obj_userInfos = obj.userInfos;
|
|
4747
5627
|
const path_userInfos = path + '.userInfos';
|
|
@@ -4765,7 +5645,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
4765
5645
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
4766
5646
|
const input_userInfos_item = input_userInfos[i];
|
|
4767
5647
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
4768
|
-
input_userInfos[i] = ingest$
|
|
5648
|
+
input_userInfos[i] = ingest$c(input_userInfos_item, {
|
|
4769
5649
|
fullPath: input_userInfos_item_id,
|
|
4770
5650
|
propertyName: i,
|
|
4771
5651
|
parent: {
|
|
@@ -4792,7 +5672,7 @@ const select$9 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
4792
5672
|
name: 'userInfos',
|
|
4793
5673
|
kind: 'Link',
|
|
4794
5674
|
plural: true,
|
|
4795
|
-
fragment: select$
|
|
5675
|
+
fragment: select$v()
|
|
4796
5676
|
}
|
|
4797
5677
|
]
|
|
4798
5678
|
};
|
|
@@ -4837,7 +5717,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4837
5717
|
});
|
|
4838
5718
|
const input_userInfos_length = input.userInfos.length;
|
|
4839
5719
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
4840
|
-
getTypeCacheKeys$
|
|
5720
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.userInfos[i]);
|
|
4841
5721
|
}
|
|
4842
5722
|
}
|
|
4843
5723
|
|
|
@@ -4893,14 +5773,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
4893
5773
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4894
5774
|
];
|
|
4895
5775
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackSearchUser_ConfigPropertyMetadata);
|
|
4896
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
5776
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(getSlackSearchUser_ConfigPropertyMetadata);
|
|
4897
5777
|
function keyBuilder$3(luvio, config) {
|
|
4898
5778
|
const resourceParams = createResourceParams$7(config);
|
|
4899
5779
|
return keyBuilder$4(luvio, resourceParams);
|
|
4900
5780
|
}
|
|
4901
5781
|
function typeCheckConfig$7(untrustedConfig) {
|
|
4902
5782
|
const config = {};
|
|
4903
|
-
typeCheckConfig$
|
|
5783
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
4904
5784
|
return config;
|
|
4905
5785
|
}
|
|
4906
5786
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -4949,7 +5829,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
4949
5829
|
});
|
|
4950
5830
|
}
|
|
4951
5831
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
4952
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5832
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
4953
5833
|
}
|
|
4954
5834
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
4955
5835
|
const { luvio, config } = context;
|
|
@@ -4975,21 +5855,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
4975
5855
|
};
|
|
4976
5856
|
|
|
4977
5857
|
function select$7(luvio, params) {
|
|
4978
|
-
return select$
|
|
5858
|
+
return select$v();
|
|
4979
5859
|
}
|
|
4980
5860
|
function keyBuilder$2(luvio, params) {
|
|
4981
|
-
return keyBuilder$
|
|
5861
|
+
return keyBuilder$p(luvio, {
|
|
4982
5862
|
slackUserId: params.urlParams.slackUserId,
|
|
4983
5863
|
teamId: params.urlParams.teamId
|
|
4984
5864
|
});
|
|
4985
5865
|
}
|
|
4986
5866
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
4987
|
-
getTypeCacheKeys$
|
|
5867
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
4988
5868
|
}
|
|
4989
5869
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
4990
5870
|
const { body } = response;
|
|
4991
5871
|
const key = keyBuilder$2(luvio, resourceParams);
|
|
4992
|
-
luvio.storeIngest(key, ingest$
|
|
5872
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
4993
5873
|
const snapshot = luvio.storeLookup({
|
|
4994
5874
|
recordId: key,
|
|
4995
5875
|
node: select$7(),
|
|
@@ -5009,8 +5889,8 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
5009
5889
|
const storeMetadataParams = {
|
|
5010
5890
|
ttl: TTL,
|
|
5011
5891
|
namespace: keyPrefix,
|
|
5012
|
-
version: VERSION$
|
|
5013
|
-
representationName: RepresentationType$
|
|
5892
|
+
version: VERSION$f,
|
|
5893
|
+
representationName: RepresentationType$c
|
|
5014
5894
|
};
|
|
5015
5895
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5016
5896
|
return errorSnapshot;
|
|
@@ -5043,14 +5923,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
5043
5923
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5044
5924
|
];
|
|
5045
5925
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSlackUser_ConfigPropertyMetadata);
|
|
5046
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
5926
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(getSlackUser_ConfigPropertyMetadata);
|
|
5047
5927
|
function keyBuilder$1(luvio, config) {
|
|
5048
5928
|
const resourceParams = createResourceParams$6(config);
|
|
5049
5929
|
return keyBuilder$2(luvio, resourceParams);
|
|
5050
5930
|
}
|
|
5051
5931
|
function typeCheckConfig$6(untrustedConfig) {
|
|
5052
5932
|
const config = {};
|
|
5053
|
-
typeCheckConfig$
|
|
5933
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
5054
5934
|
return config;
|
|
5055
5935
|
}
|
|
5056
5936
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -5099,7 +5979,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
5099
5979
|
});
|
|
5100
5980
|
}
|
|
5101
5981
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
5102
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5982
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
5103
5983
|
}
|
|
5104
5984
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
5105
5985
|
const { luvio, config } = context;
|
|
@@ -5125,7 +6005,7 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
5125
6005
|
};
|
|
5126
6006
|
const notifyChangeFactory = (luvio, options) => {
|
|
5127
6007
|
return function getConnectSlackbridgeTeamUserBySlackUserIdAndTeamIdNotifyChange(configs) {
|
|
5128
|
-
const keys = configs.map(c => keyBuilder$
|
|
6008
|
+
const keys = configs.map(c => keyBuilder$p(luvio, c));
|
|
5129
6009
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
5130
6010
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
5131
6011
|
const { key, record: val } = entries[i];
|
|
@@ -5134,11 +6014,11 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
5134
6014
|
.then((response) => {
|
|
5135
6015
|
return luvio.handleSuccessResponse(() => {
|
|
5136
6016
|
const { body } = response;
|
|
5137
|
-
luvio.storeIngest(key, ingest$
|
|
6017
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
5138
6018
|
return luvio.storeBroadcast();
|
|
5139
6019
|
}, () => {
|
|
5140
6020
|
const cache = new StoreKeyMap();
|
|
5141
|
-
getTypeCacheKeys$
|
|
6021
|
+
getTypeCacheKeys$c(cache, luvio, response.body);
|
|
5142
6022
|
return cache;
|
|
5143
6023
|
});
|
|
5144
6024
|
}, (error) => {
|
|
@@ -5147,8 +6027,8 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
5147
6027
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
5148
6028
|
ttl: TTL,
|
|
5149
6029
|
namespace: keyPrefix,
|
|
5150
|
-
version: VERSION$
|
|
5151
|
-
representationName: RepresentationType$
|
|
6030
|
+
version: VERSION$f,
|
|
6031
|
+
representationName: RepresentationType$c
|
|
5152
6032
|
});
|
|
5153
6033
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
5154
6034
|
});
|
|
@@ -5159,15 +6039,15 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
5159
6039
|
};
|
|
5160
6040
|
|
|
5161
6041
|
function select$6(luvio, params) {
|
|
5162
|
-
return select$
|
|
6042
|
+
return select$z();
|
|
5163
6043
|
}
|
|
5164
6044
|
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
5165
|
-
getTypeCacheKeys$
|
|
6045
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
5166
6046
|
}
|
|
5167
6047
|
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
5168
6048
|
const { body } = response;
|
|
5169
6049
|
const key = keyBuilderFromType$7(luvio, body);
|
|
5170
|
-
luvio.storeIngest(key, ingest$
|
|
6050
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
5171
6051
|
const snapshot = luvio.storeLookup({
|
|
5172
6052
|
recordId: key,
|
|
5173
6053
|
node: select$6(),
|
|
@@ -5203,10 +6083,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
5203
6083
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
5204
6084
|
];
|
|
5205
6085
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, patchSlackMessage_ConfigPropertyMetadata);
|
|
5206
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
6086
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(patchSlackMessage_ConfigPropertyMetadata);
|
|
5207
6087
|
function typeCheckConfig$5(untrustedConfig) {
|
|
5208
6088
|
const config = {};
|
|
5209
|
-
typeCheckConfig$
|
|
6089
|
+
typeCheckConfig$j(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
5210
6090
|
return config;
|
|
5211
6091
|
}
|
|
5212
6092
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -5288,7 +6168,7 @@ function keyBuilderFromType(luvio, object) {
|
|
|
5288
6168
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
5289
6169
|
const input_postedMessage = input.postedMessage;
|
|
5290
6170
|
const input_postedMessage_id = path.fullPath + '__postedMessage';
|
|
5291
|
-
input.postedMessage = ingest$
|
|
6171
|
+
input.postedMessage = ingest$9(input_postedMessage, {
|
|
5292
6172
|
fullPath: input_postedMessage_id,
|
|
5293
6173
|
propertyName: 'postedMessage',
|
|
5294
6174
|
parent: {
|
|
@@ -5313,7 +6193,7 @@ const select$5 = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
5313
6193
|
{
|
|
5314
6194
|
name: 'postedMessage',
|
|
5315
6195
|
kind: 'Link',
|
|
5316
|
-
fragment: select$
|
|
6196
|
+
fragment: select$p()
|
|
5317
6197
|
},
|
|
5318
6198
|
{
|
|
5319
6199
|
name: 'timestamp',
|
|
@@ -5360,7 +6240,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5360
6240
|
representationName: RepresentationType,
|
|
5361
6241
|
mergeable: false
|
|
5362
6242
|
});
|
|
5363
|
-
getTypeCacheKeys$
|
|
6243
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
5364
6244
|
}
|
|
5365
6245
|
|
|
5366
6246
|
function select$4(luvio, params) {
|
|
@@ -5410,10 +6290,10 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
5410
6290
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
5411
6291
|
];
|
|
5412
6292
|
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackConversation_ConfigPropertyMetadata);
|
|
5413
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
6293
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(postSlackConversation_ConfigPropertyMetadata);
|
|
5414
6294
|
function typeCheckConfig$4(untrustedConfig) {
|
|
5415
6295
|
const config = {};
|
|
5416
|
-
typeCheckConfig$
|
|
6296
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
5417
6297
|
return config;
|
|
5418
6298
|
}
|
|
5419
6299
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -5459,15 +6339,15 @@ const postSlackConversationAdapterFactory = (luvio) => {
|
|
|
5459
6339
|
};
|
|
5460
6340
|
|
|
5461
6341
|
function select$3(luvio, params) {
|
|
5462
|
-
return select$
|
|
6342
|
+
return select$k();
|
|
5463
6343
|
}
|
|
5464
6344
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
5465
|
-
getTypeCacheKeys$
|
|
6345
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5466
6346
|
}
|
|
5467
6347
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
5468
6348
|
const { body } = response;
|
|
5469
6349
|
const key = keyBuilderFromType$2(luvio, body);
|
|
5470
|
-
luvio.storeIngest(key, ingest$
|
|
6350
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5471
6351
|
const snapshot = luvio.storeLookup({
|
|
5472
6352
|
recordId: key,
|
|
5473
6353
|
node: select$3(),
|
|
@@ -5502,10 +6382,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
5502
6382
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
5503
6383
|
];
|
|
5504
6384
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5505
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
6385
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5506
6386
|
function typeCheckConfig$3(untrustedConfig) {
|
|
5507
6387
|
const config = {};
|
|
5508
|
-
typeCheckConfig$
|
|
6388
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5509
6389
|
return config;
|
|
5510
6390
|
}
|
|
5511
6391
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -5551,15 +6431,15 @@ const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
|
5551
6431
|
};
|
|
5552
6432
|
|
|
5553
6433
|
function select$2(luvio, params) {
|
|
5554
|
-
return select$
|
|
6434
|
+
return select$q();
|
|
5555
6435
|
}
|
|
5556
6436
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
5557
|
-
getTypeCacheKeys$
|
|
6437
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
5558
6438
|
}
|
|
5559
6439
|
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
5560
6440
|
const { body } = response;
|
|
5561
6441
|
const key = keyBuilderFromType$3(luvio, body);
|
|
5562
|
-
luvio.storeIngest(key, ingest$
|
|
6442
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
5563
6443
|
const snapshot = luvio.storeLookup({
|
|
5564
6444
|
recordId: key,
|
|
5565
6445
|
node: select$2(),
|
|
@@ -5599,10 +6479,10 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
5599
6479
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
5600
6480
|
];
|
|
5601
6481
|
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, postSlackFile_ConfigPropertyMetadata);
|
|
5602
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
6482
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(postSlackFile_ConfigPropertyMetadata);
|
|
5603
6483
|
function typeCheckConfig$2(untrustedConfig) {
|
|
5604
6484
|
const config = {};
|
|
5605
|
-
typeCheckConfig$
|
|
6485
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
5606
6486
|
return config;
|
|
5607
6487
|
}
|
|
5608
6488
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -5648,15 +6528,15 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
5648
6528
|
};
|
|
5649
6529
|
|
|
5650
6530
|
function select$1(luvio, params) {
|
|
5651
|
-
return select$
|
|
6531
|
+
return select$x();
|
|
5652
6532
|
}
|
|
5653
6533
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
5654
|
-
getTypeCacheKeys$
|
|
6534
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
5655
6535
|
}
|
|
5656
6536
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
5657
6537
|
const { body } = response;
|
|
5658
6538
|
const key = keyBuilderFromType$6(luvio, body);
|
|
5659
|
-
luvio.storeIngest(key, ingest$
|
|
6539
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
5660
6540
|
const snapshot = luvio.storeLookup({
|
|
5661
6541
|
recordId: key,
|
|
5662
6542
|
node: select$1(),
|
|
@@ -5692,10 +6572,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
5692
6572
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5693
6573
|
];
|
|
5694
6574
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5695
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
6575
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5696
6576
|
function typeCheckConfig$1(untrustedConfig) {
|
|
5697
6577
|
const config = {};
|
|
5698
|
-
typeCheckConfig$
|
|
6578
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5699
6579
|
return config;
|
|
5700
6580
|
}
|
|
5701
6581
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -5741,15 +6621,15 @@ const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
|
5741
6621
|
};
|
|
5742
6622
|
|
|
5743
6623
|
function select(luvio, params) {
|
|
5744
|
-
return select$
|
|
6624
|
+
return select$f();
|
|
5745
6625
|
}
|
|
5746
6626
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5747
|
-
getTypeCacheKeys$
|
|
6627
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
5748
6628
|
}
|
|
5749
6629
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
5750
6630
|
const { body } = response;
|
|
5751
6631
|
const key = keyBuilderFromType$1(luvio, body);
|
|
5752
|
-
luvio.storeIngest(key, ingest$
|
|
6632
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5753
6633
|
const snapshot = luvio.storeLookup({
|
|
5754
6634
|
recordId: key,
|
|
5755
6635
|
node: select(),
|
|
@@ -5783,10 +6663,10 @@ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
|
5783
6663
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
5784
6664
|
];
|
|
5785
6665
|
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
5786
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
6666
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$j(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
5787
6667
|
function typeCheckConfig(untrustedConfig) {
|
|
5788
6668
|
const config = {};
|
|
5789
|
-
typeCheckConfig$
|
|
6669
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
5790
6670
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
5791
6671
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
5792
6672
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -5855,6 +6735,7 @@ let getSlackMessage;
|
|
|
5855
6735
|
let getSlackMessageNotifyChange;
|
|
5856
6736
|
let getSlackRecordChannelInfo;
|
|
5857
6737
|
let getSlackRecordChannelInfoNotifyChange;
|
|
6738
|
+
let getSlackSearchConversation;
|
|
5858
6739
|
let getSlackSearchEmoji;
|
|
5859
6740
|
let getSlackSearchUser;
|
|
5860
6741
|
let getSlackUser;
|
|
@@ -5872,6 +6753,7 @@ let getSlackConversationMembers_imperative;
|
|
|
5872
6753
|
let getSlackCustomEmoji_imperative;
|
|
5873
6754
|
let getSlackMessage_imperative;
|
|
5874
6755
|
let getSlackRecordChannelInfo_imperative;
|
|
6756
|
+
let getSlackSearchConversation_imperative;
|
|
5875
6757
|
let getSlackSearchEmoji_imperative;
|
|
5876
6758
|
let getSlackSearchUser_imperative;
|
|
5877
6759
|
let getSlackUser_imperative;
|
|
@@ -5890,6 +6772,10 @@ const getSlackRecordChannelInfoMetadata = {
|
|
|
5890
6772
|
apiFamily: 'SlackBridge',
|
|
5891
6773
|
name: 'getSlackRecordChannelInfo',
|
|
5892
6774
|
};
|
|
6775
|
+
const getSlackSearchConversationMetadata = {
|
|
6776
|
+
apiFamily: 'SlackBridge',
|
|
6777
|
+
name: 'getSlackSearchConversation',
|
|
6778
|
+
};
|
|
5893
6779
|
const getSlackSearchEmojiMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchEmoji' };
|
|
5894
6780
|
const getSlackSearchUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackSearchUser' };
|
|
5895
6781
|
const getSlackUserMetadata = { apiFamily: 'SlackBridge', name: 'getSlackUser', ttl: 600000 };
|
|
@@ -5902,6 +6788,7 @@ function bindExportsTo(luvio) {
|
|
|
5902
6788
|
const getSlackCustomEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackCustomEmoji', getSlackCustomEmojiAdapterFactory), getSlackCustomEmojiMetadata);
|
|
5903
6789
|
const getSlackMessage_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackMessage', getSlackMessageAdapterFactory), getSlackMessageMetadata);
|
|
5904
6790
|
const getSlackRecordChannelInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackRecordChannelInfo', getSlackRecordChannelInfoAdapterFactory), getSlackRecordChannelInfoMetadata);
|
|
6791
|
+
const getSlackSearchConversation_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackSearchConversation', getSlackSearchConversationAdapterFactory), getSlackSearchConversationMetadata);
|
|
5905
6792
|
const getSlackSearchEmoji_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackSearchEmoji', getSlackSearchEmojiAdapterFactory), getSlackSearchEmojiMetadata);
|
|
5906
6793
|
const getSlackSearchUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackSearchUser', getSlackSearchUserAdapterFactory), getSlackSearchUserMetadata);
|
|
5907
6794
|
const getSlackUser_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSlackUser', getSlackUserAdapterFactory), getSlackUserMetadata);
|
|
@@ -5910,9 +6797,9 @@ function bindExportsTo(luvio) {
|
|
|
5910
6797
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
5911
6798
|
}
|
|
5912
6799
|
return {
|
|
5913
|
-
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$
|
|
5914
|
-
deleteSlackMessage: createLDSAdapter(luvio, adapterName$
|
|
5915
|
-
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$
|
|
6800
|
+
deleteSlackConversationMember: createLDSAdapter(luvio, adapterName$i, deleteSlackConversationMemberAdapterFactory),
|
|
6801
|
+
deleteSlackMessage: createLDSAdapter(luvio, adapterName$h, deleteSlackMessageAdapterFactory),
|
|
6802
|
+
deleteSlackMessageReactions: createLDSAdapter(luvio, adapterName$g, deleteSlackMessageReactionsAdapterFactory),
|
|
5916
6803
|
getSlackConversation: createWireAdapterConstructor(luvio, getSlackConversation_ldsAdapter, getSlackConversationMetadata),
|
|
5917
6804
|
getSlackConversationMember: createWireAdapterConstructor(luvio, getSlackConversationMember_ldsAdapter, getSlackConversationMemberMetadata),
|
|
5918
6805
|
getSlackConversationMemberNotifyChange: createLDSAdapter(luvio, 'getSlackConversationMemberNotifyChange', notifyChangeFactory$4),
|
|
@@ -5923,6 +6810,7 @@ function bindExportsTo(luvio) {
|
|
|
5923
6810
|
getSlackMessageNotifyChange: createLDSAdapter(luvio, 'getSlackMessageNotifyChange', notifyChangeFactory$2),
|
|
5924
6811
|
getSlackRecordChannelInfo: createWireAdapterConstructor(luvio, getSlackRecordChannelInfo_ldsAdapter, getSlackRecordChannelInfoMetadata),
|
|
5925
6812
|
getSlackRecordChannelInfoNotifyChange: createLDSAdapter(luvio, 'getSlackRecordChannelInfoNotifyChange', notifyChangeFactory$1),
|
|
6813
|
+
getSlackSearchConversation: createWireAdapterConstructor(luvio, getSlackSearchConversation_ldsAdapter, getSlackSearchConversationMetadata),
|
|
5926
6814
|
getSlackSearchEmoji: createWireAdapterConstructor(luvio, getSlackSearchEmoji_ldsAdapter, getSlackSearchEmojiMetadata),
|
|
5927
6815
|
getSlackSearchUser: createWireAdapterConstructor(luvio, getSlackSearchUser_ldsAdapter, getSlackSearchUserMetadata),
|
|
5928
6816
|
getSlackUser: createWireAdapterConstructor(luvio, getSlackUser_ldsAdapter, getSlackUserMetadata),
|
|
@@ -5940,6 +6828,7 @@ function bindExportsTo(luvio) {
|
|
|
5940
6828
|
getSlackCustomEmoji_imperative: createImperativeAdapter(luvio, getSlackCustomEmoji_ldsAdapter, getSlackCustomEmojiMetadata),
|
|
5941
6829
|
getSlackMessage_imperative: createImperativeAdapter(luvio, getSlackMessage_ldsAdapter, getSlackMessageMetadata),
|
|
5942
6830
|
getSlackRecordChannelInfo_imperative: createImperativeAdapter(luvio, getSlackRecordChannelInfo_ldsAdapter, getSlackRecordChannelInfoMetadata),
|
|
6831
|
+
getSlackSearchConversation_imperative: createImperativeAdapter(luvio, getSlackSearchConversation_ldsAdapter, getSlackSearchConversationMetadata),
|
|
5943
6832
|
getSlackSearchEmoji_imperative: createImperativeAdapter(luvio, getSlackSearchEmoji_ldsAdapter, getSlackSearchEmojiMetadata),
|
|
5944
6833
|
getSlackSearchUser_imperative: createImperativeAdapter(luvio, getSlackSearchUser_ldsAdapter, getSlackSearchUserMetadata),
|
|
5945
6834
|
getSlackUser_imperative: createImperativeAdapter(luvio, getSlackUser_ldsAdapter, getSlackUserMetadata),
|
|
@@ -5961,6 +6850,7 @@ withDefaultLuvio((luvio) => {
|
|
|
5961
6850
|
getSlackMessageNotifyChange,
|
|
5962
6851
|
getSlackRecordChannelInfo,
|
|
5963
6852
|
getSlackRecordChannelInfoNotifyChange,
|
|
6853
|
+
getSlackSearchConversation,
|
|
5964
6854
|
getSlackSearchEmoji,
|
|
5965
6855
|
getSlackSearchUser,
|
|
5966
6856
|
getSlackUser,
|
|
@@ -5977,11 +6867,12 @@ withDefaultLuvio((luvio) => {
|
|
|
5977
6867
|
getSlackCustomEmoji_imperative,
|
|
5978
6868
|
getSlackMessage_imperative,
|
|
5979
6869
|
getSlackRecordChannelInfo_imperative,
|
|
6870
|
+
getSlackSearchConversation_imperative,
|
|
5980
6871
|
getSlackSearchEmoji_imperative,
|
|
5981
6872
|
getSlackSearchUser_imperative,
|
|
5982
6873
|
getSlackUser_imperative,
|
|
5983
6874
|
} = bindExportsTo(luvio));
|
|
5984
6875
|
});
|
|
5985
6876
|
|
|
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-
|
|
6877
|
+
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 };
|
|
6878
|
+
// version: 1.332.0-dev7-84af9c7762
|