@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev1 → 1.355.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-slack-bridge.js +466 -760
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +1 -3
- package/package.json +3 -3
- package/sfdc/index.js +639 -945
- package/src/raml/api.raml +0 -37
- package/src/raml/luvio.raml +0 -8
- package/dist/es/es2018/types/src/generated/adapters/getSlackDisplayLogin.d.ts +0 -26
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeSlack_display_login.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/types/SlackBridgeDisplayLoginOutputRepresentation.d.ts +0 -32
- package/dist/es/es2018/types/src/generated/types/SlackBridgeSlackTeamOutputRepresentation.d.ts +0 -38
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$c, typeCheckConfig as typeCheckConfig$m, StoreKeyMap, createResourceParams as createResourceParams$m } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -112,8 +112,8 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$m = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
116
|
+
function validate$m(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -199,10 +199,10 @@ function validate$o(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
199
199
|
})();
|
|
200
200
|
return v_error === undefined ? null : v_error;
|
|
201
201
|
}
|
|
202
|
-
const select$
|
|
202
|
+
const select$F = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
203
203
|
return {
|
|
204
204
|
kind: 'Fragment',
|
|
205
|
-
version: VERSION$
|
|
205
|
+
version: VERSION$m,
|
|
206
206
|
private: [],
|
|
207
207
|
selections: [
|
|
208
208
|
{
|
|
@@ -220,7 +220,7 @@ const select$I = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
|
220
220
|
]
|
|
221
221
|
};
|
|
222
222
|
};
|
|
223
|
-
function equals$
|
|
223
|
+
function equals$m(existing, incoming) {
|
|
224
224
|
const existing_appleUrl = existing.appleUrl;
|
|
225
225
|
const incoming_appleUrl = incoming.appleUrl;
|
|
226
226
|
if (!(existing_appleUrl === incoming_appleUrl)) {
|
|
@@ -239,9 +239,9 @@ function equals$o(existing, incoming) {
|
|
|
239
239
|
return true;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
const TTL$
|
|
243
|
-
const VERSION$
|
|
244
|
-
function validate$
|
|
242
|
+
const TTL$2 = 2592000000;
|
|
243
|
+
const VERSION$l = "a0e1530372a57d61a1264218124bbb5c";
|
|
244
|
+
function validate$l(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
245
245
|
const v_error = (() => {
|
|
246
246
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
247
247
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -359,7 +359,7 @@ function validate$n(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
359
359
|
const path_value = path + '.value';
|
|
360
360
|
let obj_value_union0 = null;
|
|
361
361
|
const obj_value_union0_error = (() => {
|
|
362
|
-
const referencepath_valueValidationError = validate$
|
|
362
|
+
const referencepath_valueValidationError = validate$m(obj_value, path_value);
|
|
363
363
|
if (referencepath_valueValidationError !== null) {
|
|
364
364
|
let message = 'Object doesn\'t match SlackBridgeEmojiValueOutputRepresentation (at "' + path_value + '")\n';
|
|
365
365
|
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -387,24 +387,24 @@ function validate$n(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
387
387
|
})();
|
|
388
388
|
return v_error === undefined ? null : v_error;
|
|
389
389
|
}
|
|
390
|
-
const RepresentationType$
|
|
391
|
-
function keyBuilder$
|
|
392
|
-
return keyPrefix + '::' + RepresentationType$
|
|
390
|
+
const RepresentationType$h = 'SlackBridgeEmojiOutputRepresentation';
|
|
391
|
+
function keyBuilder$B(luvio, config) {
|
|
392
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.name;
|
|
393
393
|
}
|
|
394
394
|
function keyBuilderFromType$a(luvio, object) {
|
|
395
395
|
const keyParams = {
|
|
396
396
|
name: object.name
|
|
397
397
|
};
|
|
398
|
-
return keyBuilder$
|
|
398
|
+
return keyBuilder$B(luvio, keyParams);
|
|
399
399
|
}
|
|
400
|
-
function normalize$
|
|
400
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
401
401
|
return input;
|
|
402
402
|
}
|
|
403
|
-
const select$
|
|
404
|
-
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$
|
|
403
|
+
const select$E = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
404
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$F();
|
|
405
405
|
return {
|
|
406
406
|
kind: 'Fragment',
|
|
407
|
-
version: VERSION$
|
|
407
|
+
version: VERSION$l,
|
|
408
408
|
private: [],
|
|
409
409
|
selections: [
|
|
410
410
|
{
|
|
@@ -436,7 +436,7 @@ const select$H = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
|
436
436
|
]
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
|
-
function equals$
|
|
439
|
+
function equals$l(existing, incoming) {
|
|
440
440
|
const existing_name = existing.name;
|
|
441
441
|
const incoming_name = incoming.name;
|
|
442
442
|
if (!(existing_name === incoming_name)) {
|
|
@@ -467,36 +467,36 @@ function equals$n(existing, incoming) {
|
|
|
467
467
|
if (!(existing_value === incoming_value
|
|
468
468
|
|| (existing_value != null &&
|
|
469
469
|
incoming_value != null &&
|
|
470
|
-
equals$
|
|
470
|
+
equals$m(existing_value, incoming_value)))) {
|
|
471
471
|
return false;
|
|
472
472
|
}
|
|
473
473
|
return true;
|
|
474
474
|
}
|
|
475
|
-
const ingest$
|
|
475
|
+
const ingest$h = function SlackBridgeEmojiOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
476
476
|
if (process.env.NODE_ENV !== 'production') {
|
|
477
|
-
const validateError = validate$
|
|
477
|
+
const validateError = validate$l(input);
|
|
478
478
|
if (validateError !== null) {
|
|
479
479
|
throw validateError;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
const key = keyBuilderFromType$a(luvio, input);
|
|
483
|
-
const ttlToUse = TTL$
|
|
484
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
483
|
+
const ttlToUse = TTL$2;
|
|
484
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$l, RepresentationType$h, equals$l);
|
|
485
485
|
return createLink(key);
|
|
486
486
|
};
|
|
487
|
-
function getTypeCacheKeys$
|
|
487
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
488
488
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
489
489
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
490
490
|
rootKeySet.set(rootKey, {
|
|
491
491
|
namespace: keyPrefix,
|
|
492
|
-
representationName: RepresentationType$
|
|
492
|
+
representationName: RepresentationType$h,
|
|
493
493
|
mergeable: false
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
const TTL$
|
|
498
|
-
const VERSION$
|
|
499
|
-
function validate$
|
|
497
|
+
const TTL$1 = 600000;
|
|
498
|
+
const VERSION$k = "ffc32ae0451b10824fba0c96aa0d2115";
|
|
499
|
+
function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
500
500
|
const v_error = (() => {
|
|
501
501
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
502
502
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -899,22 +899,22 @@ function validate$m(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
899
899
|
})();
|
|
900
900
|
return v_error === undefined ? null : v_error;
|
|
901
901
|
}
|
|
902
|
-
const RepresentationType$
|
|
903
|
-
function keyBuilder$
|
|
904
|
-
return keyPrefix + '::' + RepresentationType$
|
|
902
|
+
const RepresentationType$g = 'SlackBridgeUserInfoOutputRepresentation';
|
|
903
|
+
function keyBuilder$A(luvio, config) {
|
|
904
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.teamId + ':' + config.slackUserId;
|
|
905
905
|
}
|
|
906
906
|
function keyBuilderFromType$9(luvio, object) {
|
|
907
907
|
const keyParams = {
|
|
908
908
|
teamId: object.teamId,
|
|
909
909
|
slackUserId: object.slackUserId
|
|
910
910
|
};
|
|
911
|
-
return keyBuilder$
|
|
911
|
+
return keyBuilder$A(luvio, keyParams);
|
|
912
912
|
}
|
|
913
|
-
function normalize$
|
|
913
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
914
914
|
const input_statusEmoji = input.statusEmoji;
|
|
915
915
|
const input_statusEmoji_id = path.fullPath + '__statusEmoji';
|
|
916
916
|
if (input_statusEmoji !== null && typeof input_statusEmoji === 'object') {
|
|
917
|
-
input.statusEmoji = ingest$
|
|
917
|
+
input.statusEmoji = ingest$h(input_statusEmoji, {
|
|
918
918
|
fullPath: input_statusEmoji_id,
|
|
919
919
|
propertyName: 'statusEmoji',
|
|
920
920
|
parent: {
|
|
@@ -927,10 +927,10 @@ function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
|
927
927
|
}
|
|
928
928
|
return input;
|
|
929
929
|
}
|
|
930
|
-
const select$
|
|
930
|
+
const select$D = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
931
931
|
return {
|
|
932
932
|
kind: 'Fragment',
|
|
933
|
-
version: VERSION$
|
|
933
|
+
version: VERSION$k,
|
|
934
934
|
private: [],
|
|
935
935
|
selections: [
|
|
936
936
|
{
|
|
@@ -1000,7 +1000,7 @@ const select$G = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1000
1000
|
name: 'statusEmoji',
|
|
1001
1001
|
kind: 'Link',
|
|
1002
1002
|
nullable: true,
|
|
1003
|
-
fragment: select$
|
|
1003
|
+
fragment: select$E()
|
|
1004
1004
|
},
|
|
1005
1005
|
{
|
|
1006
1006
|
name: 'statusMessage',
|
|
@@ -1017,7 +1017,7 @@ const select$G = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1017
1017
|
]
|
|
1018
1018
|
};
|
|
1019
1019
|
};
|
|
1020
|
-
function equals$
|
|
1020
|
+
function equals$k(existing, incoming) {
|
|
1021
1021
|
const existing_bot = existing.bot;
|
|
1022
1022
|
const incoming_bot = incoming.bot;
|
|
1023
1023
|
if (!(existing_bot === incoming_bot)) {
|
|
@@ -1144,33 +1144,33 @@ function equals$m(existing, incoming) {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
return true;
|
|
1146
1146
|
}
|
|
1147
|
-
const ingest$
|
|
1147
|
+
const ingest$g = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1148
1148
|
if (process.env.NODE_ENV !== 'production') {
|
|
1149
|
-
const validateError = validate$
|
|
1149
|
+
const validateError = validate$k(input);
|
|
1150
1150
|
if (validateError !== null) {
|
|
1151
1151
|
throw validateError;
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
1154
|
const key = keyBuilderFromType$9(luvio, input);
|
|
1155
|
-
const ttlToUse = TTL$
|
|
1156
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1155
|
+
const ttlToUse = TTL$1;
|
|
1156
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$k, RepresentationType$g, equals$k);
|
|
1157
1157
|
return createLink(key);
|
|
1158
1158
|
};
|
|
1159
|
-
function getTypeCacheKeys$
|
|
1159
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
1160
1160
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1161
1161
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
1162
1162
|
rootKeySet.set(rootKey, {
|
|
1163
1163
|
namespace: keyPrefix,
|
|
1164
|
-
representationName: RepresentationType$
|
|
1164
|
+
representationName: RepresentationType$g,
|
|
1165
1165
|
mergeable: false
|
|
1166
1166
|
});
|
|
1167
1167
|
if (input.statusEmoji !== null && typeof input.statusEmoji === 'object') {
|
|
1168
|
-
getTypeCacheKeys$
|
|
1168
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.statusEmoji);
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
1172
|
-
const VERSION$
|
|
1173
|
-
function validate$
|
|
1172
|
+
const VERSION$j = "252fe3a6509a770a876e36552ad8dd06";
|
|
1173
|
+
function validate$j(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1174
1174
|
const v_error = (() => {
|
|
1175
1175
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1176
1176
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1507,23 +1507,23 @@ function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1507
1507
|
})();
|
|
1508
1508
|
return v_error === undefined ? null : v_error;
|
|
1509
1509
|
}
|
|
1510
|
-
const RepresentationType$
|
|
1511
|
-
function keyBuilder$
|
|
1512
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1510
|
+
const RepresentationType$f = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1511
|
+
function keyBuilder$z(luvio, config) {
|
|
1512
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
1513
1513
|
}
|
|
1514
1514
|
function keyBuilderFromType$8(luvio, object) {
|
|
1515
1515
|
const keyParams = {
|
|
1516
1516
|
id: object.id
|
|
1517
1517
|
};
|
|
1518
|
-
return keyBuilder$
|
|
1518
|
+
return keyBuilder$z(luvio, keyParams);
|
|
1519
1519
|
}
|
|
1520
|
-
function normalize$
|
|
1520
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
1521
1521
|
return input;
|
|
1522
1522
|
}
|
|
1523
|
-
const select$
|
|
1523
|
+
const select$C = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1524
1524
|
return {
|
|
1525
1525
|
kind: 'Fragment',
|
|
1526
|
-
version: VERSION$
|
|
1526
|
+
version: VERSION$j,
|
|
1527
1527
|
private: [],
|
|
1528
1528
|
selections: [
|
|
1529
1529
|
{
|
|
@@ -1590,7 +1590,7 @@ const select$F = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1590
1590
|
]
|
|
1591
1591
|
};
|
|
1592
1592
|
};
|
|
1593
|
-
function equals$
|
|
1593
|
+
function equals$j(existing, incoming) {
|
|
1594
1594
|
const existing_id = existing.id;
|
|
1595
1595
|
const incoming_id = incoming.id;
|
|
1596
1596
|
if (!(existing_id === incoming_id)) {
|
|
@@ -1676,30 +1676,30 @@ function equals$l(existing, incoming) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
return true;
|
|
1678
1678
|
}
|
|
1679
|
-
const ingest$
|
|
1679
|
+
const ingest$f = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1680
1680
|
if (process.env.NODE_ENV !== 'production') {
|
|
1681
|
-
const validateError = validate$
|
|
1681
|
+
const validateError = validate$j(input);
|
|
1682
1682
|
if (validateError !== null) {
|
|
1683
1683
|
throw validateError;
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
1686
|
const key = keyBuilderFromType$8(luvio, input);
|
|
1687
1687
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1688
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1688
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SlackBridge", VERSION$j, RepresentationType$f, equals$j);
|
|
1689
1689
|
return createLink(key);
|
|
1690
1690
|
};
|
|
1691
|
-
function getTypeCacheKeys$
|
|
1691
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
1692
1692
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1693
1693
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
1694
1694
|
rootKeySet.set(rootKey, {
|
|
1695
1695
|
namespace: keyPrefix,
|
|
1696
|
-
representationName: RepresentationType$
|
|
1696
|
+
representationName: RepresentationType$f,
|
|
1697
1697
|
mergeable: false
|
|
1698
1698
|
});
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
|
-
const VERSION$
|
|
1702
|
-
function validate$
|
|
1701
|
+
const VERSION$i = "7820a930852347bb0506c08d8b528281";
|
|
1702
|
+
function validate$i(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
1703
1703
|
const v_error = (() => {
|
|
1704
1704
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1705
1705
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1776,10 +1776,10 @@ function validate$k(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
1776
1776
|
})();
|
|
1777
1777
|
return v_error === undefined ? null : v_error;
|
|
1778
1778
|
}
|
|
1779
|
-
const select$
|
|
1779
|
+
const select$B = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
1780
1780
|
return {
|
|
1781
1781
|
kind: 'Fragment',
|
|
1782
|
-
version: VERSION$
|
|
1782
|
+
version: VERSION$i,
|
|
1783
1783
|
private: [],
|
|
1784
1784
|
selections: [
|
|
1785
1785
|
{
|
|
@@ -1802,7 +1802,7 @@ const select$E = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
1802
1802
|
]
|
|
1803
1803
|
};
|
|
1804
1804
|
};
|
|
1805
|
-
function equals$
|
|
1805
|
+
function equals$i(existing, incoming) {
|
|
1806
1806
|
const existing_name = existing.name;
|
|
1807
1807
|
const incoming_name = incoming.name;
|
|
1808
1808
|
if (!(existing_name === incoming_name)) {
|
|
@@ -1831,8 +1831,8 @@ function equals$k(existing, incoming) {
|
|
|
1831
1831
|
return true;
|
|
1832
1832
|
}
|
|
1833
1833
|
|
|
1834
|
-
const VERSION$
|
|
1835
|
-
function validate$
|
|
1834
|
+
const VERSION$h = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
1835
|
+
function validate$h(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
1836
1836
|
const v_error = (() => {
|
|
1837
1837
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1838
1838
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1850,10 +1850,10 @@ function validate$j(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1850
1850
|
})();
|
|
1851
1851
|
return v_error === undefined ? null : v_error;
|
|
1852
1852
|
}
|
|
1853
|
-
const select$
|
|
1853
|
+
const select$A = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1854
1854
|
return {
|
|
1855
1855
|
kind: 'Fragment',
|
|
1856
|
-
version: VERSION$
|
|
1856
|
+
version: VERSION$h,
|
|
1857
1857
|
private: [],
|
|
1858
1858
|
selections: [
|
|
1859
1859
|
{
|
|
@@ -1867,7 +1867,7 @@ const select$D = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
|
1867
1867
|
]
|
|
1868
1868
|
};
|
|
1869
1869
|
};
|
|
1870
|
-
function equals$
|
|
1870
|
+
function equals$h(existing, incoming) {
|
|
1871
1871
|
const existing_extension = existing.extension;
|
|
1872
1872
|
const incoming_extension = incoming.extension;
|
|
1873
1873
|
if (!(existing_extension === incoming_extension)) {
|
|
@@ -1881,8 +1881,8 @@ function equals$j(existing, incoming) {
|
|
|
1881
1881
|
return true;
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
1884
|
-
const VERSION$
|
|
1885
|
-
function validate$
|
|
1884
|
+
const VERSION$g = "3ef7c0314c9cc37a0b6c3b0dbd6a76a5";
|
|
1885
|
+
function validate$g(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
|
|
1886
1886
|
const v_error = (() => {
|
|
1887
1887
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1888
1888
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1896,7 +1896,7 @@ function validate$i(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1896
1896
|
const path_filetype = path + '.filetype';
|
|
1897
1897
|
let obj_filetype_union0 = null;
|
|
1898
1898
|
const obj_filetype_union0_error = (() => {
|
|
1899
|
-
const referencepath_filetypeValidationError = validate$
|
|
1899
|
+
const referencepath_filetypeValidationError = validate$h(obj_filetype, path_filetype);
|
|
1900
1900
|
if (referencepath_filetypeValidationError !== null) {
|
|
1901
1901
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1902
1902
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1965,11 +1965,11 @@ function validate$i(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1965
1965
|
})();
|
|
1966
1966
|
return v_error === undefined ? null : v_error;
|
|
1967
1967
|
}
|
|
1968
|
-
const select$
|
|
1969
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1968
|
+
const select$z = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1969
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$A();
|
|
1970
1970
|
return {
|
|
1971
1971
|
kind: 'Fragment',
|
|
1972
|
-
version: VERSION$
|
|
1972
|
+
version: VERSION$g,
|
|
1973
1973
|
private: [],
|
|
1974
1974
|
selections: [
|
|
1975
1975
|
{
|
|
@@ -2001,7 +2001,7 @@ const select$C = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
2001
2001
|
]
|
|
2002
2002
|
};
|
|
2003
2003
|
};
|
|
2004
|
-
function equals$
|
|
2004
|
+
function equals$g(existing, incoming) {
|
|
2005
2005
|
const existing_size = existing.size;
|
|
2006
2006
|
const incoming_size = incoming.size;
|
|
2007
2007
|
if (!(existing_size === incoming_size)) {
|
|
@@ -2027,7 +2027,7 @@ function equals$i(existing, incoming) {
|
|
|
2027
2027
|
if (!(existing_filetype === incoming_filetype
|
|
2028
2028
|
|| (existing_filetype != null &&
|
|
2029
2029
|
incoming_filetype != null &&
|
|
2030
|
-
equals$
|
|
2030
|
+
equals$h(existing_filetype, incoming_filetype)))) {
|
|
2031
2031
|
return false;
|
|
2032
2032
|
}
|
|
2033
2033
|
const existing_versionUrl = existing.versionUrl;
|
|
@@ -2038,15 +2038,15 @@ function equals$i(existing, incoming) {
|
|
|
2038
2038
|
return true;
|
|
2039
2039
|
}
|
|
2040
2040
|
|
|
2041
|
-
const VERSION$
|
|
2042
|
-
function validate$
|
|
2041
|
+
const VERSION$f = "effdd259bc622bee05493fc2a3ecd276";
|
|
2042
|
+
function validate$f(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
|
|
2043
2043
|
const v_error = (() => {
|
|
2044
2044
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2045
2045
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2046
2046
|
}
|
|
2047
2047
|
const obj_filetype = obj.filetype;
|
|
2048
2048
|
const path_filetype = path + '.filetype';
|
|
2049
|
-
const referencepath_filetypeValidationError = validate$
|
|
2049
|
+
const referencepath_filetypeValidationError = validate$h(obj_filetype, path_filetype);
|
|
2050
2050
|
if (referencepath_filetypeValidationError !== null) {
|
|
2051
2051
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
2052
2052
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2059,7 +2059,7 @@ function validate$h(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
2059
2059
|
}
|
|
2060
2060
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
2061
2061
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
2062
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
2062
|
+
const referencepath_latestPublishedVersionValidationError = validate$g(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
2063
2063
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
2064
2064
|
let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
2065
2065
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2078,12 +2078,12 @@ function validate$h(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
2078
2078
|
})();
|
|
2079
2079
|
return v_error === undefined ? null : v_error;
|
|
2080
2080
|
}
|
|
2081
|
-
const select$
|
|
2082
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
2083
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
2081
|
+
const select$y = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
2082
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$A();
|
|
2083
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$z();
|
|
2084
2084
|
return {
|
|
2085
2085
|
kind: 'Fragment',
|
|
2086
|
-
version: VERSION$
|
|
2086
|
+
version: VERSION$f,
|
|
2087
2087
|
private: [],
|
|
2088
2088
|
selections: [
|
|
2089
2089
|
{
|
|
@@ -2111,7 +2111,7 @@ const select$B = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
2111
2111
|
]
|
|
2112
2112
|
};
|
|
2113
2113
|
};
|
|
2114
|
-
function equals$
|
|
2114
|
+
function equals$f(existing, incoming) {
|
|
2115
2115
|
const existing_size = existing.size;
|
|
2116
2116
|
const incoming_size = incoming.size;
|
|
2117
2117
|
if (!(existing_size === incoming_size)) {
|
|
@@ -2129,19 +2129,19 @@ function equals$h(existing, incoming) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
const existing_filetype = existing.filetype;
|
|
2131
2131
|
const incoming_filetype = incoming.filetype;
|
|
2132
|
-
if (!(equals$
|
|
2132
|
+
if (!(equals$h(existing_filetype, incoming_filetype))) {
|
|
2133
2133
|
return false;
|
|
2134
2134
|
}
|
|
2135
2135
|
const existing_latestPublishedVersion = existing.latestPublishedVersion;
|
|
2136
2136
|
const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
|
|
2137
|
-
if (!(equals$
|
|
2137
|
+
if (!(equals$g(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
|
|
2138
2138
|
return false;
|
|
2139
2139
|
}
|
|
2140
2140
|
return true;
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
2143
|
-
const VERSION$
|
|
2144
|
-
function validate$
|
|
2143
|
+
const VERSION$e = "15fa7211c500ebba9537b3c9921b39cf";
|
|
2144
|
+
function validate$e(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
2145
2145
|
const v_error = (() => {
|
|
2146
2146
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2147
2147
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2150,7 +2150,7 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2150
2150
|
const path_contentDocument = path + '.contentDocument';
|
|
2151
2151
|
let obj_contentDocument_union0 = null;
|
|
2152
2152
|
const obj_contentDocument_union0_error = (() => {
|
|
2153
|
-
const referencepath_contentDocumentValidationError = validate$
|
|
2153
|
+
const referencepath_contentDocumentValidationError = validate$f(obj_contentDocument, path_contentDocument);
|
|
2154
2154
|
if (referencepath_contentDocumentValidationError !== null) {
|
|
2155
2155
|
let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
2156
2156
|
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2312,24 +2312,24 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2312
2312
|
})();
|
|
2313
2313
|
return v_error === undefined ? null : v_error;
|
|
2314
2314
|
}
|
|
2315
|
-
const RepresentationType$
|
|
2316
|
-
function keyBuilder$
|
|
2317
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2315
|
+
const RepresentationType$e = 'SlackBridgeFileOutputRepresentation';
|
|
2316
|
+
function keyBuilder$y(luvio, config) {
|
|
2317
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2318
2318
|
}
|
|
2319
2319
|
function keyBuilderFromType$7(luvio, object) {
|
|
2320
2320
|
const keyParams = {
|
|
2321
2321
|
uniqueKey: object.uniqueKey
|
|
2322
2322
|
};
|
|
2323
|
-
return keyBuilder$
|
|
2323
|
+
return keyBuilder$y(luvio, keyParams);
|
|
2324
2324
|
}
|
|
2325
|
-
function normalize$
|
|
2325
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
2326
2326
|
return input;
|
|
2327
2327
|
}
|
|
2328
|
-
const select$
|
|
2329
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2328
|
+
const select$x = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2329
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$y();
|
|
2330
2330
|
return {
|
|
2331
2331
|
kind: 'Fragment',
|
|
2332
|
-
version: VERSION$
|
|
2332
|
+
version: VERSION$e,
|
|
2333
2333
|
private: [],
|
|
2334
2334
|
selections: [
|
|
2335
2335
|
{
|
|
@@ -2381,7 +2381,7 @@ const select$A = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
2381
2381
|
]
|
|
2382
2382
|
};
|
|
2383
2383
|
};
|
|
2384
|
-
function equals$
|
|
2384
|
+
function equals$e(existing, incoming) {
|
|
2385
2385
|
const existing_filetype = existing.filetype;
|
|
2386
2386
|
const incoming_filetype = incoming.filetype;
|
|
2387
2387
|
if (!(existing_filetype === incoming_filetype)) {
|
|
@@ -2417,7 +2417,7 @@ function equals$g(existing, incoming) {
|
|
|
2417
2417
|
if (!(existing_contentDocument === incoming_contentDocument
|
|
2418
2418
|
|| (existing_contentDocument != null &&
|
|
2419
2419
|
incoming_contentDocument != null &&
|
|
2420
|
-
equals$
|
|
2420
|
+
equals$f(existing_contentDocument, incoming_contentDocument)))) {
|
|
2421
2421
|
return false;
|
|
2422
2422
|
}
|
|
2423
2423
|
const existing_size = existing.size;
|
|
@@ -2442,30 +2442,30 @@ function equals$g(existing, incoming) {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
return true;
|
|
2444
2444
|
}
|
|
2445
|
-
const ingest$
|
|
2445
|
+
const ingest$e = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2446
2446
|
if (process.env.NODE_ENV !== 'production') {
|
|
2447
|
-
const validateError = validate$
|
|
2447
|
+
const validateError = validate$e(input);
|
|
2448
2448
|
if (validateError !== null) {
|
|
2449
2449
|
throw validateError;
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
2452
|
const key = keyBuilderFromType$7(luvio, input);
|
|
2453
2453
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2454
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2454
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SlackBridge", VERSION$e, RepresentationType$e, equals$e);
|
|
2455
2455
|
return createLink(key);
|
|
2456
2456
|
};
|
|
2457
|
-
function getTypeCacheKeys$
|
|
2457
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
2458
2458
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2459
2459
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
2460
2460
|
rootKeySet.set(rootKey, {
|
|
2461
2461
|
namespace: keyPrefix,
|
|
2462
|
-
representationName: RepresentationType$
|
|
2462
|
+
representationName: RepresentationType$e,
|
|
2463
2463
|
mergeable: false
|
|
2464
2464
|
});
|
|
2465
2465
|
}
|
|
2466
2466
|
|
|
2467
|
-
const VERSION$
|
|
2468
|
-
function validate$
|
|
2467
|
+
const VERSION$d = "e44783fc9e817e6accf3f3d286c3f0fe";
|
|
2468
|
+
function validate$d(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
2469
2469
|
const v_error = (() => {
|
|
2470
2470
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2471
2471
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2677,7 +2677,7 @@ function validate$f(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2677
2677
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
2678
2678
|
const obj_reactions_item = obj_reactions[i];
|
|
2679
2679
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
2680
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
2680
|
+
const referencepath_reactions_itemValidationError = validate$i(obj_reactions_item, path_reactions_item);
|
|
2681
2681
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
2682
2682
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
2683
2683
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2839,14 +2839,14 @@ function validate$f(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2839
2839
|
})();
|
|
2840
2840
|
return v_error === undefined ? null : v_error;
|
|
2841
2841
|
}
|
|
2842
|
-
const RepresentationType$
|
|
2843
|
-
function normalize$
|
|
2842
|
+
const RepresentationType$d = 'SlackBridgeMessageOutputRepresentation';
|
|
2843
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
2844
2844
|
const input_files = input.files;
|
|
2845
2845
|
const input_files_id = path.fullPath + '__files';
|
|
2846
2846
|
for (let i = 0; i < input_files.length; i++) {
|
|
2847
2847
|
const input_files_item = input_files[i];
|
|
2848
2848
|
let input_files_item_id = input_files_id + '__' + i;
|
|
2849
|
-
input_files[i] = ingest$
|
|
2849
|
+
input_files[i] = ingest$e(input_files_item, {
|
|
2850
2850
|
fullPath: input_files_item_id,
|
|
2851
2851
|
propertyName: i,
|
|
2852
2852
|
parent: {
|
|
@@ -2859,11 +2859,11 @@ function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
return input;
|
|
2861
2861
|
}
|
|
2862
|
-
const select$
|
|
2863
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2862
|
+
const select$w = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2863
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$B();
|
|
2864
2864
|
return {
|
|
2865
2865
|
kind: 'Fragment',
|
|
2866
|
-
version: VERSION$
|
|
2866
|
+
version: VERSION$d,
|
|
2867
2867
|
private: [],
|
|
2868
2868
|
selections: [
|
|
2869
2869
|
{
|
|
@@ -2884,7 +2884,7 @@ const select$z = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2884
2884
|
name: 'files',
|
|
2885
2885
|
kind: 'Link',
|
|
2886
2886
|
plural: true,
|
|
2887
|
-
fragment: select$
|
|
2887
|
+
fragment: select$x()
|
|
2888
2888
|
},
|
|
2889
2889
|
{
|
|
2890
2890
|
name: 'includesCustomEmoji',
|
|
@@ -2956,7 +2956,7 @@ const select$z = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2956
2956
|
]
|
|
2957
2957
|
};
|
|
2958
2958
|
};
|
|
2959
|
-
function equals$
|
|
2959
|
+
function equals$d(existing, incoming) {
|
|
2960
2960
|
const existing_isEditable = existing.isEditable;
|
|
2961
2961
|
const incoming_isEditable = incoming.isEditable;
|
|
2962
2962
|
if (!(existing_isEditable === incoming_isEditable)) {
|
|
@@ -3050,7 +3050,7 @@ function equals$f(existing, incoming) {
|
|
|
3050
3050
|
const existing_reactions = existing.reactions;
|
|
3051
3051
|
const incoming_reactions = incoming.reactions;
|
|
3052
3052
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
3053
|
-
if (!(equals$
|
|
3053
|
+
if (!(equals$i(existing_reactions_item, incoming_reactions_item))) {
|
|
3054
3054
|
return false;
|
|
3055
3055
|
}
|
|
3056
3056
|
});
|
|
@@ -3094,34 +3094,34 @@ function equals$f(existing, incoming) {
|
|
|
3094
3094
|
}
|
|
3095
3095
|
return true;
|
|
3096
3096
|
}
|
|
3097
|
-
const ingest$
|
|
3097
|
+
const ingest$d = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3098
3098
|
if (process.env.NODE_ENV !== 'production') {
|
|
3099
|
-
const validateError = validate$
|
|
3099
|
+
const validateError = validate$d(input);
|
|
3100
3100
|
if (validateError !== null) {
|
|
3101
3101
|
throw validateError;
|
|
3102
3102
|
}
|
|
3103
3103
|
}
|
|
3104
3104
|
const key = path.fullPath;
|
|
3105
3105
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3106
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3106
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SlackBridge", VERSION$d, RepresentationType$d, equals$d);
|
|
3107
3107
|
return createLink(key);
|
|
3108
3108
|
};
|
|
3109
|
-
function getTypeCacheKeys$
|
|
3109
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
3110
3110
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3111
3111
|
const rootKey = fullPathFactory();
|
|
3112
3112
|
rootKeySet.set(rootKey, {
|
|
3113
3113
|
namespace: keyPrefix,
|
|
3114
|
-
representationName: RepresentationType$
|
|
3114
|
+
representationName: RepresentationType$d,
|
|
3115
3115
|
mergeable: false
|
|
3116
3116
|
});
|
|
3117
3117
|
const input_files_length = input.files.length;
|
|
3118
3118
|
for (let i = 0; i < input_files_length; i++) {
|
|
3119
|
-
getTypeCacheKeys$
|
|
3119
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.files[i]);
|
|
3120
3120
|
}
|
|
3121
3121
|
}
|
|
3122
3122
|
|
|
3123
|
-
const VERSION$
|
|
3124
|
-
function validate$
|
|
3123
|
+
const VERSION$c = "5145ac2c241c561e4baa29b3884748dc";
|
|
3124
|
+
function validate$c(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
|
|
3125
3125
|
const v_error = (() => {
|
|
3126
3126
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3127
3127
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3172,14 +3172,14 @@ function validate$e(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
|
|
|
3172
3172
|
})();
|
|
3173
3173
|
return v_error === undefined ? null : v_error;
|
|
3174
3174
|
}
|
|
3175
|
-
const RepresentationType$
|
|
3176
|
-
function normalize$
|
|
3175
|
+
const RepresentationType$c = 'SlackBridgeConversationHistoryOutputRepresentation';
|
|
3176
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
3177
3177
|
const input_messages = input.messages;
|
|
3178
3178
|
const input_messages_id = path.fullPath + '__messages';
|
|
3179
3179
|
for (let i = 0; i < input_messages.length; i++) {
|
|
3180
3180
|
const input_messages_item = input_messages[i];
|
|
3181
3181
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
3182
|
-
input_messages[i] = ingest$
|
|
3182
|
+
input_messages[i] = ingest$d(input_messages_item, {
|
|
3183
3183
|
fullPath: input_messages_item_id,
|
|
3184
3184
|
propertyName: i,
|
|
3185
3185
|
parent: {
|
|
@@ -3192,10 +3192,10 @@ function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
|
3192
3192
|
}
|
|
3193
3193
|
return input;
|
|
3194
3194
|
}
|
|
3195
|
-
const select$
|
|
3195
|
+
const select$v = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
3196
3196
|
return {
|
|
3197
3197
|
kind: 'Fragment',
|
|
3198
|
-
version: VERSION$
|
|
3198
|
+
version: VERSION$c,
|
|
3199
3199
|
private: [],
|
|
3200
3200
|
selections: [
|
|
3201
3201
|
{
|
|
@@ -3206,7 +3206,7 @@ const select$y = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
3206
3206
|
name: 'messages',
|
|
3207
3207
|
kind: 'Link',
|
|
3208
3208
|
plural: true,
|
|
3209
|
-
fragment: select$
|
|
3209
|
+
fragment: select$w()
|
|
3210
3210
|
},
|
|
3211
3211
|
{
|
|
3212
3212
|
name: 'nextCursor',
|
|
@@ -3215,7 +3215,7 @@ const select$y = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
3215
3215
|
]
|
|
3216
3216
|
};
|
|
3217
3217
|
};
|
|
3218
|
-
function equals$
|
|
3218
|
+
function equals$c(existing, incoming) {
|
|
3219
3219
|
const existing_hasMore = existing.hasMore;
|
|
3220
3220
|
const incoming_hasMore = incoming.hasMore;
|
|
3221
3221
|
if (!(existing_hasMore === incoming_hasMore)) {
|
|
@@ -3238,34 +3238,34 @@ function equals$e(existing, incoming) {
|
|
|
3238
3238
|
}
|
|
3239
3239
|
return true;
|
|
3240
3240
|
}
|
|
3241
|
-
const ingest$
|
|
3241
|
+
const ingest$c = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3242
3242
|
if (process.env.NODE_ENV !== 'production') {
|
|
3243
|
-
const validateError = validate$
|
|
3243
|
+
const validateError = validate$c(input);
|
|
3244
3244
|
if (validateError !== null) {
|
|
3245
3245
|
throw validateError;
|
|
3246
3246
|
}
|
|
3247
3247
|
}
|
|
3248
3248
|
const key = path.fullPath;
|
|
3249
3249
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3250
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3250
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$c, RepresentationType$c, equals$c);
|
|
3251
3251
|
return createLink(key);
|
|
3252
3252
|
};
|
|
3253
|
-
function getTypeCacheKeys$
|
|
3253
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
3254
3254
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3255
3255
|
const rootKey = fullPathFactory();
|
|
3256
3256
|
rootKeySet.set(rootKey, {
|
|
3257
3257
|
namespace: keyPrefix,
|
|
3258
|
-
representationName: RepresentationType$
|
|
3258
|
+
representationName: RepresentationType$c,
|
|
3259
3259
|
mergeable: false
|
|
3260
3260
|
});
|
|
3261
3261
|
const input_messages_length = input.messages.length;
|
|
3262
3262
|
for (let i = 0; i < input_messages_length; i++) {
|
|
3263
|
-
getTypeCacheKeys$
|
|
3263
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.messages[i], () => '');
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
3266
3266
|
|
|
3267
|
-
const VERSION$
|
|
3268
|
-
function validate$
|
|
3267
|
+
const VERSION$b = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
3268
|
+
function validate$b(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
3269
3269
|
const v_error = (() => {
|
|
3270
3270
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3271
3271
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3409,12 +3409,12 @@ function validate$d(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3409
3409
|
})();
|
|
3410
3410
|
return v_error === undefined ? null : v_error;
|
|
3411
3411
|
}
|
|
3412
|
-
const RepresentationType$
|
|
3413
|
-
function normalize$
|
|
3412
|
+
const RepresentationType$b = 'SlackBridgeConversationOutputRepresentation';
|
|
3413
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
3414
3414
|
const input_contextUserInfo = input.contextUserInfo;
|
|
3415
3415
|
const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
|
|
3416
3416
|
if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
|
|
3417
|
-
input.contextUserInfo = ingest$
|
|
3417
|
+
input.contextUserInfo = ingest$g(input_contextUserInfo, {
|
|
3418
3418
|
fullPath: input_contextUserInfo_id,
|
|
3419
3419
|
propertyName: 'contextUserInfo',
|
|
3420
3420
|
parent: {
|
|
@@ -3428,7 +3428,7 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3428
3428
|
const input_conversationInfo = input.conversationInfo;
|
|
3429
3429
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
3430
3430
|
if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
|
|
3431
|
-
input.conversationInfo = ingest$
|
|
3431
|
+
input.conversationInfo = ingest$f(input_conversationInfo, {
|
|
3432
3432
|
fullPath: input_conversationInfo_id,
|
|
3433
3433
|
propertyName: 'conversationInfo',
|
|
3434
3434
|
parent: {
|
|
@@ -3441,7 +3441,7 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3441
3441
|
}
|
|
3442
3442
|
const input_history = input.history;
|
|
3443
3443
|
const input_history_id = path.fullPath + '__history';
|
|
3444
|
-
input.history = ingest$
|
|
3444
|
+
input.history = ingest$c(input_history, {
|
|
3445
3445
|
fullPath: input_history_id,
|
|
3446
3446
|
propertyName: 'history',
|
|
3447
3447
|
parent: {
|
|
@@ -3456,7 +3456,7 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3456
3456
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
3457
3457
|
const input_userInfos_item = input_userInfos[i];
|
|
3458
3458
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
3459
|
-
input_userInfos[i] = ingest$
|
|
3459
|
+
input_userInfos[i] = ingest$g(input_userInfos_item, {
|
|
3460
3460
|
fullPath: input_userInfos_item_id,
|
|
3461
3461
|
propertyName: i,
|
|
3462
3462
|
parent: {
|
|
@@ -3469,10 +3469,10 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
3469
3469
|
}
|
|
3470
3470
|
return input;
|
|
3471
3471
|
}
|
|
3472
|
-
const select$
|
|
3472
|
+
const select$u = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3473
3473
|
return {
|
|
3474
3474
|
kind: 'Fragment',
|
|
3475
|
-
version: VERSION$
|
|
3475
|
+
version: VERSION$b,
|
|
3476
3476
|
private: [],
|
|
3477
3477
|
selections: [
|
|
3478
3478
|
{
|
|
@@ -3487,18 +3487,18 @@ const select$x = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3487
3487
|
name: 'contextUserInfo',
|
|
3488
3488
|
kind: 'Link',
|
|
3489
3489
|
nullable: true,
|
|
3490
|
-
fragment: select$
|
|
3490
|
+
fragment: select$D()
|
|
3491
3491
|
},
|
|
3492
3492
|
{
|
|
3493
3493
|
name: 'conversationInfo',
|
|
3494
3494
|
kind: 'Link',
|
|
3495
3495
|
nullable: true,
|
|
3496
|
-
fragment: select$
|
|
3496
|
+
fragment: select$C()
|
|
3497
3497
|
},
|
|
3498
3498
|
{
|
|
3499
3499
|
name: 'history',
|
|
3500
3500
|
kind: 'Link',
|
|
3501
|
-
fragment: select$
|
|
3501
|
+
fragment: select$v()
|
|
3502
3502
|
},
|
|
3503
3503
|
{
|
|
3504
3504
|
name: 'teamId',
|
|
@@ -3512,7 +3512,7 @@ const select$x = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3512
3512
|
name: 'userInfos',
|
|
3513
3513
|
kind: 'Link',
|
|
3514
3514
|
plural: true,
|
|
3515
|
-
fragment: select$
|
|
3515
|
+
fragment: select$D()
|
|
3516
3516
|
},
|
|
3517
3517
|
{
|
|
3518
3518
|
name: 'websocketUrl',
|
|
@@ -3521,7 +3521,7 @@ const select$x = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3521
3521
|
]
|
|
3522
3522
|
};
|
|
3523
3523
|
};
|
|
3524
|
-
function equals$
|
|
3524
|
+
function equals$b(existing, incoming) {
|
|
3525
3525
|
const existing_channelId = existing.channelId;
|
|
3526
3526
|
const incoming_channelId = incoming.channelId;
|
|
3527
3527
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3584,55 +3584,55 @@ function equals$d(existing, incoming) {
|
|
|
3584
3584
|
}
|
|
3585
3585
|
return true;
|
|
3586
3586
|
}
|
|
3587
|
-
const ingest$
|
|
3587
|
+
const ingest$b = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3588
3588
|
if (process.env.NODE_ENV !== 'production') {
|
|
3589
|
-
const validateError = validate$
|
|
3589
|
+
const validateError = validate$b(input);
|
|
3590
3590
|
if (validateError !== null) {
|
|
3591
3591
|
throw validateError;
|
|
3592
3592
|
}
|
|
3593
3593
|
}
|
|
3594
3594
|
const key = path.fullPath;
|
|
3595
3595
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3596
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3596
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$b, RepresentationType$b, equals$b);
|
|
3597
3597
|
return createLink(key);
|
|
3598
3598
|
};
|
|
3599
|
-
function getTypeCacheKeys$
|
|
3599
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
3600
3600
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3601
3601
|
const rootKey = fullPathFactory();
|
|
3602
3602
|
rootKeySet.set(rootKey, {
|
|
3603
3603
|
namespace: keyPrefix,
|
|
3604
|
-
representationName: RepresentationType$
|
|
3604
|
+
representationName: RepresentationType$b,
|
|
3605
3605
|
mergeable: false
|
|
3606
3606
|
});
|
|
3607
3607
|
if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
|
|
3608
|
-
getTypeCacheKeys$
|
|
3608
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.contextUserInfo);
|
|
3609
3609
|
}
|
|
3610
3610
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3611
|
-
getTypeCacheKeys$
|
|
3611
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
3612
3612
|
}
|
|
3613
|
-
getTypeCacheKeys$
|
|
3613
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3614
3614
|
const input_userInfos_length = input.userInfos.length;
|
|
3615
3615
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
3616
|
-
getTypeCacheKeys$
|
|
3616
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.userInfos[i]);
|
|
3617
3617
|
}
|
|
3618
3618
|
}
|
|
3619
3619
|
|
|
3620
|
-
function select$
|
|
3621
|
-
return select$
|
|
3620
|
+
function select$t(luvio, params) {
|
|
3621
|
+
return select$u();
|
|
3622
3622
|
}
|
|
3623
|
-
function keyBuilder$
|
|
3623
|
+
function keyBuilder$x(luvio, params) {
|
|
3624
3624
|
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 + ')';
|
|
3625
3625
|
}
|
|
3626
|
-
function getResponseCacheKeys$
|
|
3627
|
-
getTypeCacheKeys$
|
|
3626
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
3627
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
3628
3628
|
}
|
|
3629
|
-
function ingestSuccess$
|
|
3629
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
3630
3630
|
const { body } = response;
|
|
3631
|
-
const key = keyBuilder$
|
|
3632
|
-
luvio.storeIngest(key, ingest$
|
|
3631
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
3632
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
3633
3633
|
const snapshot = luvio.storeLookup({
|
|
3634
3634
|
recordId: key,
|
|
3635
|
-
node: select$
|
|
3635
|
+
node: select$t(),
|
|
3636
3636
|
variables: {},
|
|
3637
3637
|
}, snapshotRefresh);
|
|
3638
3638
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3643,13 +3643,13 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3643
3643
|
deepFreeze(snapshot.data);
|
|
3644
3644
|
return snapshot;
|
|
3645
3645
|
}
|
|
3646
|
-
function ingestError$
|
|
3647
|
-
const key = keyBuilder$
|
|
3646
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
3647
|
+
const key = keyBuilder$x(luvio, params);
|
|
3648
3648
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3649
3649
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3650
3650
|
return errorSnapshot;
|
|
3651
3651
|
}
|
|
3652
|
-
function createResourceRequest$
|
|
3652
|
+
function createResourceRequest$l(config) {
|
|
3653
3653
|
const headers = {};
|
|
3654
3654
|
return {
|
|
3655
3655
|
baseUri: '/services/data/v64.0',
|
|
@@ -3663,7 +3663,7 @@ function createResourceRequest$m(config) {
|
|
|
3663
3663
|
};
|
|
3664
3664
|
}
|
|
3665
3665
|
|
|
3666
|
-
const adapterName$
|
|
3666
|
+
const adapterName$l = 'getSlackConversation';
|
|
3667
3667
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3668
3668
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3669
3669
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3675,90 +3675,90 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3675
3675
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3676
3676
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3677
3677
|
];
|
|
3678
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3679
|
-
const createResourceParams$
|
|
3680
|
-
function keyBuilder$
|
|
3681
|
-
const resourceParams = createResourceParams$
|
|
3682
|
-
return keyBuilder$
|
|
3678
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getSlackConversation_ConfigPropertyMetadata);
|
|
3679
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$m(getSlackConversation_ConfigPropertyMetadata);
|
|
3680
|
+
function keyBuilder$w(luvio, config) {
|
|
3681
|
+
const resourceParams = createResourceParams$l(config);
|
|
3682
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
3683
3683
|
}
|
|
3684
|
-
function typeCheckConfig$
|
|
3684
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
3685
3685
|
const config = {};
|
|
3686
|
-
typeCheckConfig$
|
|
3686
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3687
3687
|
return config;
|
|
3688
3688
|
}
|
|
3689
|
-
function validateAdapterConfig$
|
|
3689
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
3690
3690
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3691
3691
|
return null;
|
|
3692
3692
|
}
|
|
3693
3693
|
if (process.env.NODE_ENV !== 'production') {
|
|
3694
3694
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3695
3695
|
}
|
|
3696
|
-
const config = typeCheckConfig$
|
|
3696
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
3697
3697
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3698
3698
|
return null;
|
|
3699
3699
|
}
|
|
3700
3700
|
return config;
|
|
3701
3701
|
}
|
|
3702
|
-
function adapterFragment$
|
|
3703
|
-
createResourceParams$
|
|
3704
|
-
return select$
|
|
3702
|
+
function adapterFragment$b(luvio, config) {
|
|
3703
|
+
createResourceParams$l(config);
|
|
3704
|
+
return select$t();
|
|
3705
3705
|
}
|
|
3706
|
-
function onFetchResponseSuccess$
|
|
3707
|
-
const snapshot = ingestSuccess$
|
|
3706
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
3707
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
3708
3708
|
config,
|
|
3709
|
-
resolve: () => buildNetworkSnapshot$
|
|
3709
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
3710
3710
|
});
|
|
3711
3711
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3712
3712
|
}
|
|
3713
|
-
function onFetchResponseError$
|
|
3714
|
-
const snapshot = ingestError$
|
|
3713
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
3714
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
3715
3715
|
config,
|
|
3716
|
-
resolve: () => buildNetworkSnapshot$
|
|
3716
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
3717
3717
|
});
|
|
3718
3718
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3719
3719
|
}
|
|
3720
|
-
function buildNetworkSnapshot$
|
|
3721
|
-
const resourceParams = createResourceParams$
|
|
3722
|
-
const request = createResourceRequest$
|
|
3720
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
3721
|
+
const resourceParams = createResourceParams$l(config);
|
|
3722
|
+
const request = createResourceRequest$l(resourceParams);
|
|
3723
3723
|
return luvio.dispatchResourceRequest(request, options)
|
|
3724
3724
|
.then((response) => {
|
|
3725
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3725
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
3726
3726
|
const cache = new StoreKeyMap();
|
|
3727
|
-
getResponseCacheKeys$
|
|
3727
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
3728
3728
|
return cache;
|
|
3729
3729
|
});
|
|
3730
3730
|
}, (response) => {
|
|
3731
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3731
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
3732
3732
|
});
|
|
3733
3733
|
}
|
|
3734
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3735
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3734
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
3735
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
3736
3736
|
}
|
|
3737
|
-
function buildCachedSnapshotCachePolicy$
|
|
3737
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
3738
3738
|
const { luvio, config } = context;
|
|
3739
3739
|
const selector = {
|
|
3740
|
-
recordId: keyBuilder$
|
|
3741
|
-
node: adapterFragment$
|
|
3740
|
+
recordId: keyBuilder$w(luvio, config),
|
|
3741
|
+
node: adapterFragment$b(luvio, config),
|
|
3742
3742
|
variables: {},
|
|
3743
3743
|
};
|
|
3744
3744
|
const cacheSnapshot = storeLookup(selector, {
|
|
3745
3745
|
config,
|
|
3746
|
-
resolve: () => buildNetworkSnapshot$
|
|
3746
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
3747
3747
|
});
|
|
3748
3748
|
return cacheSnapshot;
|
|
3749
3749
|
}
|
|
3750
3750
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3751
|
-
const config = validateAdapterConfig$
|
|
3751
|
+
const config = validateAdapterConfig$l(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3752
3752
|
// Invalid or incomplete config
|
|
3753
3753
|
if (config === null) {
|
|
3754
3754
|
return null;
|
|
3755
3755
|
}
|
|
3756
3756
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3757
|
-
buildCachedSnapshotCachePolicy$
|
|
3757
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
3758
3758
|
};
|
|
3759
3759
|
|
|
3760
|
-
const VERSION$
|
|
3761
|
-
function validate$
|
|
3760
|
+
const VERSION$a = "769b5b0ed94219341e9be74c08e63aed";
|
|
3761
|
+
function validate$a(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
3762
3762
|
const v_error = (() => {
|
|
3763
3763
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3764
3764
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3781,20 +3781,20 @@ function validate$c(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
|
3781
3781
|
})();
|
|
3782
3782
|
return v_error === undefined ? null : v_error;
|
|
3783
3783
|
}
|
|
3784
|
-
const RepresentationType$
|
|
3785
|
-
function keyBuilder$
|
|
3786
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3784
|
+
const RepresentationType$a = 'SlackBridgePostMessageOutputRepresentation';
|
|
3785
|
+
function keyBuilder$v(luvio, config) {
|
|
3786
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.channelId;
|
|
3787
3787
|
}
|
|
3788
3788
|
function keyBuilderFromType$6(luvio, object) {
|
|
3789
3789
|
const keyParams = {
|
|
3790
3790
|
channelId: object.channelId
|
|
3791
3791
|
};
|
|
3792
|
-
return keyBuilder$
|
|
3792
|
+
return keyBuilder$v(luvio, keyParams);
|
|
3793
3793
|
}
|
|
3794
|
-
function normalize$
|
|
3794
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3795
3795
|
const input_postedMessage = input.postedMessage;
|
|
3796
3796
|
const input_postedMessage_id = path.fullPath + '__postedMessage';
|
|
3797
|
-
input.postedMessage = ingest$
|
|
3797
|
+
input.postedMessage = ingest$d(input_postedMessage, {
|
|
3798
3798
|
fullPath: input_postedMessage_id,
|
|
3799
3799
|
propertyName: 'postedMessage',
|
|
3800
3800
|
parent: {
|
|
@@ -3806,10 +3806,10 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
3806
3806
|
}, luvio, store, timestamp);
|
|
3807
3807
|
return input;
|
|
3808
3808
|
}
|
|
3809
|
-
const select$
|
|
3809
|
+
const select$s = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
3810
3810
|
return {
|
|
3811
3811
|
kind: 'Fragment',
|
|
3812
|
-
version: VERSION$
|
|
3812
|
+
version: VERSION$a,
|
|
3813
3813
|
private: [],
|
|
3814
3814
|
selections: [
|
|
3815
3815
|
{
|
|
@@ -3819,7 +3819,7 @@ const select$v = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3819
3819
|
{
|
|
3820
3820
|
name: 'postedMessage',
|
|
3821
3821
|
kind: 'Link',
|
|
3822
|
-
fragment: select$
|
|
3822
|
+
fragment: select$w()
|
|
3823
3823
|
},
|
|
3824
3824
|
{
|
|
3825
3825
|
name: 'timestamp',
|
|
@@ -3828,7 +3828,7 @@ const select$v = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3828
3828
|
]
|
|
3829
3829
|
};
|
|
3830
3830
|
};
|
|
3831
|
-
function equals$
|
|
3831
|
+
function equals$a(existing, incoming) {
|
|
3832
3832
|
const existing_channelId = existing.channelId;
|
|
3833
3833
|
const incoming_channelId = incoming.channelId;
|
|
3834
3834
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3846,42 +3846,42 @@ function equals$c(existing, incoming) {
|
|
|
3846
3846
|
}
|
|
3847
3847
|
return true;
|
|
3848
3848
|
}
|
|
3849
|
-
const ingest$
|
|
3849
|
+
const ingest$a = function SlackBridgePostMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3850
3850
|
if (process.env.NODE_ENV !== 'production') {
|
|
3851
|
-
const validateError = validate$
|
|
3851
|
+
const validateError = validate$a(input);
|
|
3852
3852
|
if (validateError !== null) {
|
|
3853
3853
|
throw validateError;
|
|
3854
3854
|
}
|
|
3855
3855
|
}
|
|
3856
3856
|
const key = keyBuilderFromType$6(luvio, input);
|
|
3857
3857
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3858
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3858
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
|
|
3859
3859
|
return createLink(key);
|
|
3860
3860
|
};
|
|
3861
|
-
function getTypeCacheKeys$
|
|
3861
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
3862
3862
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3863
3863
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
3864
3864
|
rootKeySet.set(rootKey, {
|
|
3865
3865
|
namespace: keyPrefix,
|
|
3866
|
-
representationName: RepresentationType$
|
|
3866
|
+
representationName: RepresentationType$a,
|
|
3867
3867
|
mergeable: false
|
|
3868
3868
|
});
|
|
3869
|
-
getTypeCacheKeys$
|
|
3869
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
3870
3870
|
}
|
|
3871
3871
|
|
|
3872
|
-
function select$
|
|
3873
|
-
return select$
|
|
3872
|
+
function select$r(luvio, params) {
|
|
3873
|
+
return select$s();
|
|
3874
3874
|
}
|
|
3875
|
-
function getResponseCacheKeys$
|
|
3876
|
-
getTypeCacheKeys$
|
|
3875
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
3876
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
3877
3877
|
}
|
|
3878
|
-
function ingestSuccess$
|
|
3878
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
3879
3879
|
const { body } = response;
|
|
3880
3880
|
const key = keyBuilderFromType$6(luvio, body);
|
|
3881
|
-
luvio.storeIngest(key, ingest$
|
|
3881
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
3882
3882
|
const snapshot = luvio.storeLookup({
|
|
3883
3883
|
recordId: key,
|
|
3884
|
-
node: select$
|
|
3884
|
+
node: select$r(),
|
|
3885
3885
|
variables: {},
|
|
3886
3886
|
});
|
|
3887
3887
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3892,7 +3892,7 @@ function ingestSuccess$i(luvio, resourceParams, response) {
|
|
|
3892
3892
|
deepFreeze(snapshot.data);
|
|
3893
3893
|
return snapshot;
|
|
3894
3894
|
}
|
|
3895
|
-
function createResourceRequest$
|
|
3895
|
+
function createResourceRequest$k(config) {
|
|
3896
3896
|
const headers = {};
|
|
3897
3897
|
return {
|
|
3898
3898
|
baseUri: '/services/data/v64.0',
|
|
@@ -3906,7 +3906,7 @@ function createResourceRequest$l(config) {
|
|
|
3906
3906
|
};
|
|
3907
3907
|
}
|
|
3908
3908
|
|
|
3909
|
-
const adapterName$
|
|
3909
|
+
const adapterName$k = 'postSlackConversation';
|
|
3910
3910
|
const postSlackConversation_ConfigPropertyMetadata = [
|
|
3911
3911
|
generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
|
|
3912
3912
|
generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -3915,37 +3915,37 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
3915
3915
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
3916
3916
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
3917
3917
|
];
|
|
3918
|
-
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3919
|
-
const createResourceParams$
|
|
3920
|
-
function typeCheckConfig$
|
|
3918
|
+
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, postSlackConversation_ConfigPropertyMetadata);
|
|
3919
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$m(postSlackConversation_ConfigPropertyMetadata);
|
|
3920
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
3921
3921
|
const config = {};
|
|
3922
|
-
typeCheckConfig$
|
|
3922
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
3923
3923
|
return config;
|
|
3924
3924
|
}
|
|
3925
|
-
function validateAdapterConfig$
|
|
3925
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
3926
3926
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3927
3927
|
return null;
|
|
3928
3928
|
}
|
|
3929
3929
|
if (process.env.NODE_ENV !== 'production') {
|
|
3930
3930
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3931
3931
|
}
|
|
3932
|
-
const config = typeCheckConfig$
|
|
3932
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
3933
3933
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3934
3934
|
return null;
|
|
3935
3935
|
}
|
|
3936
3936
|
return config;
|
|
3937
3937
|
}
|
|
3938
|
-
function buildNetworkSnapshot$
|
|
3939
|
-
const resourceParams = createResourceParams$
|
|
3940
|
-
const request = createResourceRequest$
|
|
3938
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
3939
|
+
const resourceParams = createResourceParams$k(config);
|
|
3940
|
+
const request = createResourceRequest$k(resourceParams);
|
|
3941
3941
|
return luvio.dispatchResourceRequest(request, options)
|
|
3942
3942
|
.then((response) => {
|
|
3943
3943
|
return luvio.handleSuccessResponse(() => {
|
|
3944
|
-
const snapshot = ingestSuccess$
|
|
3944
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
3945
3945
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3946
3946
|
}, () => {
|
|
3947
3947
|
const cache = new StoreKeyMap();
|
|
3948
|
-
getResponseCacheKeys$
|
|
3948
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
3949
3949
|
return cache;
|
|
3950
3950
|
});
|
|
3951
3951
|
}, (response) => {
|
|
@@ -3955,28 +3955,28 @@ function buildNetworkSnapshot$l(luvio, config, options) {
|
|
|
3955
3955
|
}
|
|
3956
3956
|
const postSlackConversationAdapterFactory = (luvio) => {
|
|
3957
3957
|
return function postSlackConversation(untrustedConfig) {
|
|
3958
|
-
const config = validateAdapterConfig$
|
|
3958
|
+
const config = validateAdapterConfig$k(untrustedConfig, postSlackConversation_ConfigPropertyNames);
|
|
3959
3959
|
// Invalid or incomplete config
|
|
3960
3960
|
if (config === null) {
|
|
3961
3961
|
throw new Error('Invalid config for "postSlackConversation"');
|
|
3962
3962
|
}
|
|
3963
|
-
return buildNetworkSnapshot$
|
|
3963
|
+
return buildNetworkSnapshot$k(luvio, config);
|
|
3964
3964
|
};
|
|
3965
3965
|
};
|
|
3966
3966
|
|
|
3967
|
-
function select$
|
|
3968
|
-
return select$
|
|
3967
|
+
function select$q(luvio, params) {
|
|
3968
|
+
return select$x();
|
|
3969
3969
|
}
|
|
3970
|
-
function getResponseCacheKeys$
|
|
3971
|
-
getTypeCacheKeys$
|
|
3970
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
3971
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
3972
3972
|
}
|
|
3973
|
-
function ingestSuccess$
|
|
3973
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
3974
3974
|
const { body } = response;
|
|
3975
3975
|
const key = keyBuilderFromType$7(luvio, body);
|
|
3976
|
-
luvio.storeIngest(key, ingest$
|
|
3976
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
3977
3977
|
const snapshot = luvio.storeLookup({
|
|
3978
3978
|
recordId: key,
|
|
3979
|
-
node: select$
|
|
3979
|
+
node: select$q(),
|
|
3980
3980
|
variables: {},
|
|
3981
3981
|
});
|
|
3982
3982
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3987,7 +3987,7 @@ function ingestSuccess$h(luvio, resourceParams, response) {
|
|
|
3987
3987
|
deepFreeze(snapshot.data);
|
|
3988
3988
|
return snapshot;
|
|
3989
3989
|
}
|
|
3990
|
-
function createResourceRequest$
|
|
3990
|
+
function createResourceRequest$j(config) {
|
|
3991
3991
|
const headers = {};
|
|
3992
3992
|
return {
|
|
3993
3993
|
baseUri: '/services/data/v64.0',
|
|
@@ -4001,7 +4001,7 @@ function createResourceRequest$k(config) {
|
|
|
4001
4001
|
};
|
|
4002
4002
|
}
|
|
4003
4003
|
|
|
4004
|
-
const adapterName$
|
|
4004
|
+
const adapterName$j = 'postSlackFile';
|
|
4005
4005
|
const postSlackFile_ConfigPropertyMetadata = [
|
|
4006
4006
|
generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
|
|
4007
4007
|
generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
|
|
@@ -4012,37 +4012,37 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
4012
4012
|
generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
|
|
4013
4013
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
4014
4014
|
];
|
|
4015
|
-
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4016
|
-
const createResourceParams$
|
|
4017
|
-
function typeCheckConfig$
|
|
4015
|
+
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, postSlackFile_ConfigPropertyMetadata);
|
|
4016
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$m(postSlackFile_ConfigPropertyMetadata);
|
|
4017
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
4018
4018
|
const config = {};
|
|
4019
|
-
typeCheckConfig$
|
|
4019
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
4020
4020
|
return config;
|
|
4021
4021
|
}
|
|
4022
|
-
function validateAdapterConfig$
|
|
4022
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
4023
4023
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4024
4024
|
return null;
|
|
4025
4025
|
}
|
|
4026
4026
|
if (process.env.NODE_ENV !== 'production') {
|
|
4027
4027
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4028
4028
|
}
|
|
4029
|
-
const config = typeCheckConfig$
|
|
4029
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
4030
4030
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4031
4031
|
return null;
|
|
4032
4032
|
}
|
|
4033
4033
|
return config;
|
|
4034
4034
|
}
|
|
4035
|
-
function buildNetworkSnapshot$
|
|
4036
|
-
const resourceParams = createResourceParams$
|
|
4037
|
-
const request = createResourceRequest$
|
|
4035
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4036
|
+
const resourceParams = createResourceParams$j(config);
|
|
4037
|
+
const request = createResourceRequest$j(resourceParams);
|
|
4038
4038
|
return luvio.dispatchResourceRequest(request, options)
|
|
4039
4039
|
.then((response) => {
|
|
4040
4040
|
return luvio.handleSuccessResponse(() => {
|
|
4041
|
-
const snapshot = ingestSuccess$
|
|
4041
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
4042
4042
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4043
4043
|
}, () => {
|
|
4044
4044
|
const cache = new StoreKeyMap();
|
|
4045
|
-
getResponseCacheKeys$
|
|
4045
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
4046
4046
|
return cache;
|
|
4047
4047
|
});
|
|
4048
4048
|
}, (response) => {
|
|
@@ -4052,17 +4052,17 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
const postSlackFileAdapterFactory = (luvio) => {
|
|
4054
4054
|
return function postSlackFile(untrustedConfig) {
|
|
4055
|
-
const config = validateAdapterConfig$
|
|
4055
|
+
const config = validateAdapterConfig$j(untrustedConfig, postSlackFile_ConfigPropertyNames);
|
|
4056
4056
|
// Invalid or incomplete config
|
|
4057
4057
|
if (config === null) {
|
|
4058
4058
|
throw new Error('Invalid config for "postSlackFile"');
|
|
4059
4059
|
}
|
|
4060
|
-
return buildNetworkSnapshot$
|
|
4060
|
+
return buildNetworkSnapshot$j(luvio, config);
|
|
4061
4061
|
};
|
|
4062
4062
|
};
|
|
4063
4063
|
|
|
4064
|
-
const VERSION$
|
|
4065
|
-
function validate$
|
|
4064
|
+
const VERSION$9 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
4065
|
+
function validate$9(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
4066
4066
|
const v_error = (() => {
|
|
4067
4067
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4068
4068
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4085,20 +4085,20 @@ function validate$b(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
4085
4085
|
})();
|
|
4086
4086
|
return v_error === undefined ? null : v_error;
|
|
4087
4087
|
}
|
|
4088
|
-
const RepresentationType$
|
|
4089
|
-
function keyBuilder$
|
|
4090
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4088
|
+
const RepresentationType$9 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
4089
|
+
function keyBuilder$u(luvio, config) {
|
|
4090
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.relatedRecordId;
|
|
4091
4091
|
}
|
|
4092
4092
|
function keyBuilderFromType$5(luvio, object) {
|
|
4093
4093
|
const keyParams = {
|
|
4094
4094
|
relatedRecordId: object.relatedRecordId
|
|
4095
4095
|
};
|
|
4096
|
-
return keyBuilder$
|
|
4096
|
+
return keyBuilder$u(luvio, keyParams);
|
|
4097
4097
|
}
|
|
4098
|
-
function normalize$
|
|
4098
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
4099
4099
|
const input_conversationInfo = input.conversationInfo;
|
|
4100
4100
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
4101
|
-
input.conversationInfo = ingest$
|
|
4101
|
+
input.conversationInfo = ingest$f(input_conversationInfo, {
|
|
4102
4102
|
fullPath: input_conversationInfo_id,
|
|
4103
4103
|
propertyName: 'conversationInfo',
|
|
4104
4104
|
parent: {
|
|
@@ -4110,16 +4110,16 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
4110
4110
|
}, luvio, store, timestamp);
|
|
4111
4111
|
return input;
|
|
4112
4112
|
}
|
|
4113
|
-
const select$
|
|
4113
|
+
const select$p = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
4114
4114
|
return {
|
|
4115
4115
|
kind: 'Fragment',
|
|
4116
|
-
version: VERSION$
|
|
4116
|
+
version: VERSION$9,
|
|
4117
4117
|
private: [],
|
|
4118
4118
|
selections: [
|
|
4119
4119
|
{
|
|
4120
4120
|
name: 'conversationInfo',
|
|
4121
4121
|
kind: 'Link',
|
|
4122
|
-
fragment: select$
|
|
4122
|
+
fragment: select$C()
|
|
4123
4123
|
},
|
|
4124
4124
|
{
|
|
4125
4125
|
name: 'relatedRecordId',
|
|
@@ -4132,7 +4132,7 @@ const select$s = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
4132
4132
|
]
|
|
4133
4133
|
};
|
|
4134
4134
|
};
|
|
4135
|
-
function equals$
|
|
4135
|
+
function equals$9(existing, incoming) {
|
|
4136
4136
|
const existing_relatedRecordId = existing.relatedRecordId;
|
|
4137
4137
|
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
4138
4138
|
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
@@ -4150,42 +4150,42 @@ function equals$b(existing, incoming) {
|
|
|
4150
4150
|
}
|
|
4151
4151
|
return true;
|
|
4152
4152
|
}
|
|
4153
|
-
const ingest$
|
|
4153
|
+
const ingest$9 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4154
4154
|
if (process.env.NODE_ENV !== 'production') {
|
|
4155
|
-
const validateError = validate$
|
|
4155
|
+
const validateError = validate$9(input);
|
|
4156
4156
|
if (validateError !== null) {
|
|
4157
4157
|
throw validateError;
|
|
4158
4158
|
}
|
|
4159
4159
|
}
|
|
4160
4160
|
const key = keyBuilderFromType$5(luvio, input);
|
|
4161
4161
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4162
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4162
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
|
|
4163
4163
|
return createLink(key);
|
|
4164
4164
|
};
|
|
4165
|
-
function getTypeCacheKeys$
|
|
4165
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
4166
4166
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4167
4167
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
4168
4168
|
rootKeySet.set(rootKey, {
|
|
4169
4169
|
namespace: keyPrefix,
|
|
4170
|
-
representationName: RepresentationType$
|
|
4170
|
+
representationName: RepresentationType$9,
|
|
4171
4171
|
mergeable: false
|
|
4172
4172
|
});
|
|
4173
|
-
getTypeCacheKeys$
|
|
4173
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
4174
4174
|
}
|
|
4175
4175
|
|
|
4176
|
-
function select$
|
|
4177
|
-
return select$
|
|
4176
|
+
function select$o(luvio, params) {
|
|
4177
|
+
return select$p();
|
|
4178
4178
|
}
|
|
4179
|
-
function getResponseCacheKeys$
|
|
4180
|
-
getTypeCacheKeys$
|
|
4179
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4180
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4181
4181
|
}
|
|
4182
|
-
function ingestSuccess$
|
|
4182
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
4183
4183
|
const { body } = response;
|
|
4184
4184
|
const key = keyBuilderFromType$5(luvio, body);
|
|
4185
|
-
luvio.storeIngest(key, ingest$
|
|
4185
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
4186
4186
|
const snapshot = luvio.storeLookup({
|
|
4187
4187
|
recordId: key,
|
|
4188
|
-
node: select$
|
|
4188
|
+
node: select$o(),
|
|
4189
4189
|
variables: {},
|
|
4190
4190
|
});
|
|
4191
4191
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4196,7 +4196,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
4196
4196
|
deepFreeze(snapshot.data);
|
|
4197
4197
|
return snapshot;
|
|
4198
4198
|
}
|
|
4199
|
-
function createResourceRequest$
|
|
4199
|
+
function createResourceRequest$i(config) {
|
|
4200
4200
|
const headers = {};
|
|
4201
4201
|
return {
|
|
4202
4202
|
baseUri: '/services/data/v64.0',
|
|
@@ -4210,16 +4210,16 @@ function createResourceRequest$j(config) {
|
|
|
4210
4210
|
};
|
|
4211
4211
|
}
|
|
4212
4212
|
|
|
4213
|
-
const adapterName$
|
|
4213
|
+
const adapterName$i = 'postSlackRecordChannelInfos';
|
|
4214
4214
|
const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
4215
4215
|
generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4216
4216
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
4217
4217
|
];
|
|
4218
|
-
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4219
|
-
const createResourceParams$
|
|
4220
|
-
function typeCheckConfig$
|
|
4218
|
+
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4219
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$m(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4220
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4221
4221
|
const config = {};
|
|
4222
|
-
typeCheckConfig$
|
|
4222
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4223
4223
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
4224
4224
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
4225
4225
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -4233,30 +4233,30 @@ function typeCheckConfig$j(untrustedConfig) {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
return config;
|
|
4235
4235
|
}
|
|
4236
|
-
function validateAdapterConfig$
|
|
4236
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4237
4237
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4238
4238
|
return null;
|
|
4239
4239
|
}
|
|
4240
4240
|
if (process.env.NODE_ENV !== 'production') {
|
|
4241
4241
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4242
4242
|
}
|
|
4243
|
-
const config = typeCheckConfig$
|
|
4243
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
4244
4244
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4245
4245
|
return null;
|
|
4246
4246
|
}
|
|
4247
4247
|
return config;
|
|
4248
4248
|
}
|
|
4249
|
-
function buildNetworkSnapshot$
|
|
4250
|
-
const resourceParams = createResourceParams$
|
|
4251
|
-
const request = createResourceRequest$
|
|
4249
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
4250
|
+
const resourceParams = createResourceParams$i(config);
|
|
4251
|
+
const request = createResourceRequest$i(resourceParams);
|
|
4252
4252
|
return luvio.dispatchResourceRequest(request, options)
|
|
4253
4253
|
.then((response) => {
|
|
4254
4254
|
return luvio.handleSuccessResponse(() => {
|
|
4255
|
-
const snapshot = ingestSuccess$
|
|
4255
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
4256
4256
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4257
4257
|
}, () => {
|
|
4258
4258
|
const cache = new StoreKeyMap();
|
|
4259
|
-
getResponseCacheKeys$
|
|
4259
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
4260
4260
|
return cache;
|
|
4261
4261
|
});
|
|
4262
4262
|
}, (response) => {
|
|
@@ -4266,33 +4266,33 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
|
|
4268
4268
|
return function postSlackRecordChannelInfos(untrustedConfig) {
|
|
4269
|
-
const config = validateAdapterConfig$
|
|
4269
|
+
const config = validateAdapterConfig$i(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
|
|
4270
4270
|
// Invalid or incomplete config
|
|
4271
4271
|
if (config === null) {
|
|
4272
4272
|
throw new Error('Invalid config for "postSlackRecordChannelInfos"');
|
|
4273
4273
|
}
|
|
4274
|
-
return buildNetworkSnapshot$
|
|
4274
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
4275
4275
|
};
|
|
4276
4276
|
};
|
|
4277
4277
|
|
|
4278
|
-
function select$
|
|
4279
|
-
return select$
|
|
4278
|
+
function select$n(luvio, params) {
|
|
4279
|
+
return select$p();
|
|
4280
4280
|
}
|
|
4281
|
-
function keyBuilder$
|
|
4282
|
-
return keyBuilder$
|
|
4281
|
+
function keyBuilder$t(luvio, params) {
|
|
4282
|
+
return keyBuilder$u(luvio, {
|
|
4283
4283
|
relatedRecordId: params.urlParams.relatedRecordId
|
|
4284
4284
|
});
|
|
4285
4285
|
}
|
|
4286
|
-
function getResponseCacheKeys$
|
|
4287
|
-
getTypeCacheKeys$
|
|
4286
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
4287
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4288
4288
|
}
|
|
4289
|
-
function ingestSuccess$
|
|
4289
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
4290
4290
|
const { body } = response;
|
|
4291
|
-
const key = keyBuilder$
|
|
4292
|
-
luvio.storeIngest(key, ingest$
|
|
4291
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
4292
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
4293
4293
|
const snapshot = luvio.storeLookup({
|
|
4294
4294
|
recordId: key,
|
|
4295
|
-
node: select$
|
|
4295
|
+
node: select$n(),
|
|
4296
4296
|
variables: {},
|
|
4297
4297
|
}, snapshotRefresh);
|
|
4298
4298
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4303,13 +4303,13 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4303
4303
|
deepFreeze(snapshot.data);
|
|
4304
4304
|
return snapshot;
|
|
4305
4305
|
}
|
|
4306
|
-
function ingestError$
|
|
4307
|
-
const key = keyBuilder$
|
|
4306
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
4307
|
+
const key = keyBuilder$t(luvio, params);
|
|
4308
4308
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4309
4309
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4310
4310
|
return errorSnapshot;
|
|
4311
4311
|
}
|
|
4312
|
-
function createResourceRequest$
|
|
4312
|
+
function createResourceRequest$h(config) {
|
|
4313
4313
|
const headers = {};
|
|
4314
4314
|
return {
|
|
4315
4315
|
baseUri: '/services/data/v64.0',
|
|
@@ -4323,95 +4323,95 @@ function createResourceRequest$i(config) {
|
|
|
4323
4323
|
};
|
|
4324
4324
|
}
|
|
4325
4325
|
|
|
4326
|
-
const adapterName$
|
|
4326
|
+
const adapterName$h = 'getSlackRecordChannelInfo';
|
|
4327
4327
|
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
4328
4328
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4329
4329
|
];
|
|
4330
|
-
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4331
|
-
const createResourceParams$
|
|
4332
|
-
function keyBuilder$
|
|
4333
|
-
const resourceParams = createResourceParams$
|
|
4334
|
-
return keyBuilder$
|
|
4330
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4331
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$m(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4332
|
+
function keyBuilder$s(luvio, config) {
|
|
4333
|
+
const resourceParams = createResourceParams$h(config);
|
|
4334
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
4335
4335
|
}
|
|
4336
|
-
function typeCheckConfig$
|
|
4336
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
4337
4337
|
const config = {};
|
|
4338
|
-
typeCheckConfig$
|
|
4338
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4339
4339
|
return config;
|
|
4340
4340
|
}
|
|
4341
|
-
function validateAdapterConfig$
|
|
4341
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
4342
4342
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4343
4343
|
return null;
|
|
4344
4344
|
}
|
|
4345
4345
|
if (process.env.NODE_ENV !== 'production') {
|
|
4346
4346
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4347
4347
|
}
|
|
4348
|
-
const config = typeCheckConfig$
|
|
4348
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
4349
4349
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4350
4350
|
return null;
|
|
4351
4351
|
}
|
|
4352
4352
|
return config;
|
|
4353
4353
|
}
|
|
4354
|
-
function adapterFragment$
|
|
4355
|
-
createResourceParams$
|
|
4356
|
-
return select$
|
|
4354
|
+
function adapterFragment$a(luvio, config) {
|
|
4355
|
+
createResourceParams$h(config);
|
|
4356
|
+
return select$n();
|
|
4357
4357
|
}
|
|
4358
|
-
function onFetchResponseSuccess$
|
|
4359
|
-
const snapshot = ingestSuccess$
|
|
4358
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4359
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
4360
4360
|
config,
|
|
4361
|
-
resolve: () => buildNetworkSnapshot$
|
|
4361
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
4362
4362
|
});
|
|
4363
4363
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4364
4364
|
}
|
|
4365
|
-
function onFetchResponseError$
|
|
4366
|
-
const snapshot = ingestError$
|
|
4365
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
4366
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
4367
4367
|
config,
|
|
4368
|
-
resolve: () => buildNetworkSnapshot$
|
|
4368
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
4369
4369
|
});
|
|
4370
4370
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4371
4371
|
}
|
|
4372
|
-
function buildNetworkSnapshot$
|
|
4373
|
-
const resourceParams = createResourceParams$
|
|
4374
|
-
const request = createResourceRequest$
|
|
4372
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
4373
|
+
const resourceParams = createResourceParams$h(config);
|
|
4374
|
+
const request = createResourceRequest$h(resourceParams);
|
|
4375
4375
|
return luvio.dispatchResourceRequest(request, options)
|
|
4376
4376
|
.then((response) => {
|
|
4377
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4377
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
4378
4378
|
const cache = new StoreKeyMap();
|
|
4379
|
-
getResponseCacheKeys$
|
|
4379
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
4380
4380
|
return cache;
|
|
4381
4381
|
});
|
|
4382
4382
|
}, (response) => {
|
|
4383
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4383
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
4384
4384
|
});
|
|
4385
4385
|
}
|
|
4386
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4387
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4386
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4387
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
4388
4388
|
}
|
|
4389
|
-
function buildCachedSnapshotCachePolicy$
|
|
4389
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4390
4390
|
const { luvio, config } = context;
|
|
4391
4391
|
const selector = {
|
|
4392
|
-
recordId: keyBuilder$
|
|
4393
|
-
node: adapterFragment$
|
|
4392
|
+
recordId: keyBuilder$s(luvio, config),
|
|
4393
|
+
node: adapterFragment$a(luvio, config),
|
|
4394
4394
|
variables: {},
|
|
4395
4395
|
};
|
|
4396
4396
|
const cacheSnapshot = storeLookup(selector, {
|
|
4397
4397
|
config,
|
|
4398
|
-
resolve: () => buildNetworkSnapshot$
|
|
4398
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
4399
4399
|
});
|
|
4400
4400
|
return cacheSnapshot;
|
|
4401
4401
|
}
|
|
4402
4402
|
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
4403
|
-
const config = validateAdapterConfig$
|
|
4403
|
+
const config = validateAdapterConfig$h(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
4404
4404
|
// Invalid or incomplete config
|
|
4405
4405
|
if (config === null) {
|
|
4406
4406
|
return null;
|
|
4407
4407
|
}
|
|
4408
4408
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4409
|
-
buildCachedSnapshotCachePolicy$
|
|
4409
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4410
4410
|
};
|
|
4411
4411
|
|
|
4412
|
-
const TTL
|
|
4413
|
-
const VERSION$
|
|
4414
|
-
function validate$
|
|
4412
|
+
const TTL = 500;
|
|
4413
|
+
const VERSION$8 = "fb0fd743f16f2b13d70727c055fbc834";
|
|
4414
|
+
function validate$8(obj, path = 'SlackBridgeRelatedThreadsOutputRepresentation') {
|
|
4415
4415
|
const v_error = (() => {
|
|
4416
4416
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4417
4417
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4448,14 +4448,14 @@ function validate$a(obj, path = 'SlackBridgeRelatedThreadsOutputRepresentation')
|
|
|
4448
4448
|
})();
|
|
4449
4449
|
return v_error === undefined ? null : v_error;
|
|
4450
4450
|
}
|
|
4451
|
-
const RepresentationType$
|
|
4452
|
-
function normalize$
|
|
4451
|
+
const RepresentationType$8 = 'SlackBridgeRelatedThreadsOutputRepresentation';
|
|
4452
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
4453
4453
|
const input_conversations = input.conversations;
|
|
4454
4454
|
const input_conversations_id = path.fullPath + '__conversations';
|
|
4455
4455
|
for (let i = 0; i < input_conversations.length; i++) {
|
|
4456
4456
|
const input_conversations_item = input_conversations[i];
|
|
4457
4457
|
let input_conversations_item_id = input_conversations_id + '__' + i;
|
|
4458
|
-
input_conversations[i] = ingest$
|
|
4458
|
+
input_conversations[i] = ingest$f(input_conversations_item, {
|
|
4459
4459
|
fullPath: input_conversations_item_id,
|
|
4460
4460
|
propertyName: i,
|
|
4461
4461
|
parent: {
|
|
@@ -4471,7 +4471,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
4471
4471
|
for (let i = 0; i < input_messages.length; i++) {
|
|
4472
4472
|
const input_messages_item = input_messages[i];
|
|
4473
4473
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
4474
|
-
input_messages[i] = ingest$
|
|
4474
|
+
input_messages[i] = ingest$d(input_messages_item, {
|
|
4475
4475
|
fullPath: input_messages_item_id,
|
|
4476
4476
|
propertyName: i,
|
|
4477
4477
|
parent: {
|
|
@@ -4484,23 +4484,23 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
4484
4484
|
}
|
|
4485
4485
|
return input;
|
|
4486
4486
|
}
|
|
4487
|
-
const select$
|
|
4487
|
+
const select$m = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
4488
4488
|
return {
|
|
4489
4489
|
kind: 'Fragment',
|
|
4490
|
-
version: VERSION$
|
|
4490
|
+
version: VERSION$8,
|
|
4491
4491
|
private: [],
|
|
4492
4492
|
selections: [
|
|
4493
4493
|
{
|
|
4494
4494
|
name: 'conversations',
|
|
4495
4495
|
kind: 'Link',
|
|
4496
4496
|
plural: true,
|
|
4497
|
-
fragment: select$
|
|
4497
|
+
fragment: select$C()
|
|
4498
4498
|
},
|
|
4499
4499
|
{
|
|
4500
4500
|
name: 'messages',
|
|
4501
4501
|
kind: 'Link',
|
|
4502
4502
|
plural: true,
|
|
4503
|
-
fragment: select$
|
|
4503
|
+
fragment: select$w()
|
|
4504
4504
|
},
|
|
4505
4505
|
{
|
|
4506
4506
|
name: 'teamId',
|
|
@@ -4509,7 +4509,7 @@ const select$p = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
4509
4509
|
]
|
|
4510
4510
|
};
|
|
4511
4511
|
};
|
|
4512
|
-
function equals$
|
|
4512
|
+
function equals$8(existing, incoming) {
|
|
4513
4513
|
const existing_teamId = existing.teamId;
|
|
4514
4514
|
const incoming_teamId = incoming.teamId;
|
|
4515
4515
|
if (!(existing_teamId === incoming_teamId)) {
|
|
@@ -4537,345 +4537,48 @@ function equals$a(existing, incoming) {
|
|
|
4537
4537
|
}
|
|
4538
4538
|
return true;
|
|
4539
4539
|
}
|
|
4540
|
-
const ingest$
|
|
4540
|
+
const ingest$8 = function SlackBridgeRelatedThreadsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4541
4541
|
if (process.env.NODE_ENV !== 'production') {
|
|
4542
|
-
const validateError = validate$
|
|
4542
|
+
const validateError = validate$8(input);
|
|
4543
4543
|
if (validateError !== null) {
|
|
4544
4544
|
throw validateError;
|
|
4545
4545
|
}
|
|
4546
4546
|
}
|
|
4547
4547
|
const key = path.fullPath;
|
|
4548
|
-
const ttlToUse = TTL
|
|
4549
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4548
|
+
const ttlToUse = TTL;
|
|
4549
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
|
|
4550
4550
|
return createLink(key);
|
|
4551
4551
|
};
|
|
4552
|
-
function getTypeCacheKeys$
|
|
4552
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
4553
4553
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4554
4554
|
const rootKey = fullPathFactory();
|
|
4555
4555
|
rootKeySet.set(rootKey, {
|
|
4556
4556
|
namespace: keyPrefix,
|
|
4557
|
-
representationName: RepresentationType$
|
|
4557
|
+
representationName: RepresentationType$8,
|
|
4558
4558
|
mergeable: false
|
|
4559
4559
|
});
|
|
4560
4560
|
const input_conversations_length = input.conversations.length;
|
|
4561
4561
|
for (let i = 0; i < input_conversations_length; i++) {
|
|
4562
|
-
getTypeCacheKeys$
|
|
4562
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversations[i]);
|
|
4563
4563
|
}
|
|
4564
4564
|
const input_messages_length = input.messages.length;
|
|
4565
4565
|
for (let i = 0; i < input_messages_length; i++) {
|
|
4566
|
-
getTypeCacheKeys$
|
|
4567
|
-
}
|
|
4568
|
-
}
|
|
4569
|
-
|
|
4570
|
-
function select$o(luvio, params) {
|
|
4571
|
-
return select$p();
|
|
4572
|
-
}
|
|
4573
|
-
function keyBuilder$t(luvio, params) {
|
|
4574
|
-
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
4575
|
-
}
|
|
4576
|
-
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
4577
|
-
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
|
|
4578
|
-
}
|
|
4579
|
-
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
4580
|
-
const { body } = response;
|
|
4581
|
-
const key = keyBuilder$t(luvio, resourceParams);
|
|
4582
|
-
luvio.storeIngest(key, ingest$9, body);
|
|
4583
|
-
const snapshot = luvio.storeLookup({
|
|
4584
|
-
recordId: key,
|
|
4585
|
-
node: select$o(),
|
|
4586
|
-
variables: {},
|
|
4587
|
-
}, snapshotRefresh);
|
|
4588
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
4589
|
-
if (snapshot.state !== 'Fulfilled') {
|
|
4590
|
-
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4591
|
-
}
|
|
4592
|
-
}
|
|
4593
|
-
deepFreeze(snapshot.data);
|
|
4594
|
-
return snapshot;
|
|
4595
|
-
}
|
|
4596
|
-
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
4597
|
-
const key = keyBuilder$t(luvio, params);
|
|
4598
|
-
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4599
|
-
const storeMetadataParams = {
|
|
4600
|
-
ttl: TTL$1,
|
|
4601
|
-
namespace: keyPrefix,
|
|
4602
|
-
version: VERSION$a,
|
|
4603
|
-
representationName: RepresentationType$9
|
|
4604
|
-
};
|
|
4605
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4606
|
-
return errorSnapshot;
|
|
4607
|
-
}
|
|
4608
|
-
function createResourceRequest$h(config) {
|
|
4609
|
-
const headers = {};
|
|
4610
|
-
return {
|
|
4611
|
-
baseUri: '/services/data/v64.0',
|
|
4612
|
-
basePath: '/connect/slackbridge/related_threads/entity/' + config.urlParams.entityId + '',
|
|
4613
|
-
method: 'get',
|
|
4614
|
-
body: null,
|
|
4615
|
-
urlParams: config.urlParams,
|
|
4616
|
-
queryParams: {},
|
|
4617
|
-
headers,
|
|
4618
|
-
priority: 'normal',
|
|
4619
|
-
};
|
|
4620
|
-
}
|
|
4621
|
-
|
|
4622
|
-
const adapterName$h = 'getRelatedThreads';
|
|
4623
|
-
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
4624
|
-
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4625
|
-
];
|
|
4626
|
-
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getRelatedThreads_ConfigPropertyMetadata);
|
|
4627
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$n(getRelatedThreads_ConfigPropertyMetadata);
|
|
4628
|
-
function keyBuilder$s(luvio, config) {
|
|
4629
|
-
const resourceParams = createResourceParams$h(config);
|
|
4630
|
-
return keyBuilder$t(luvio, resourceParams);
|
|
4631
|
-
}
|
|
4632
|
-
function typeCheckConfig$h(untrustedConfig) {
|
|
4633
|
-
const config = {};
|
|
4634
|
-
typeCheckConfig$n(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
4635
|
-
return config;
|
|
4636
|
-
}
|
|
4637
|
-
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
4638
|
-
if (!untrustedIsObject(untrustedConfig)) {
|
|
4639
|
-
return null;
|
|
4640
|
-
}
|
|
4641
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
4642
|
-
validateConfig(untrustedConfig, configPropertyNames);
|
|
4643
|
-
}
|
|
4644
|
-
const config = typeCheckConfig$h(untrustedConfig);
|
|
4645
|
-
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4646
|
-
return null;
|
|
4647
|
-
}
|
|
4648
|
-
return config;
|
|
4649
|
-
}
|
|
4650
|
-
function adapterFragment$a(luvio, config) {
|
|
4651
|
-
createResourceParams$h(config);
|
|
4652
|
-
return select$o();
|
|
4653
|
-
}
|
|
4654
|
-
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4655
|
-
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
4656
|
-
config,
|
|
4657
|
-
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
4658
|
-
});
|
|
4659
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4660
|
-
}
|
|
4661
|
-
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
4662
|
-
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
4663
|
-
config,
|
|
4664
|
-
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
4665
|
-
});
|
|
4666
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
4667
|
-
}
|
|
4668
|
-
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
4669
|
-
const resourceParams = createResourceParams$h(config);
|
|
4670
|
-
const request = createResourceRequest$h(resourceParams);
|
|
4671
|
-
return luvio.dispatchResourceRequest(request, options)
|
|
4672
|
-
.then((response) => {
|
|
4673
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
4674
|
-
const cache = new StoreKeyMap();
|
|
4675
|
-
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
4676
|
-
return cache;
|
|
4677
|
-
});
|
|
4678
|
-
}, (response) => {
|
|
4679
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
4680
|
-
});
|
|
4681
|
-
}
|
|
4682
|
-
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4683
|
-
return buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
4684
|
-
}
|
|
4685
|
-
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4686
|
-
const { luvio, config } = context;
|
|
4687
|
-
const selector = {
|
|
4688
|
-
recordId: keyBuilder$s(luvio, config),
|
|
4689
|
-
node: adapterFragment$a(luvio, config),
|
|
4690
|
-
variables: {},
|
|
4691
|
-
};
|
|
4692
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
4693
|
-
config,
|
|
4694
|
-
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
4695
|
-
});
|
|
4696
|
-
return cacheSnapshot;
|
|
4697
|
-
}
|
|
4698
|
-
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
4699
|
-
const config = validateAdapterConfig$h(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
4700
|
-
// Invalid or incomplete config
|
|
4701
|
-
if (config === null) {
|
|
4702
|
-
return null;
|
|
4703
|
-
}
|
|
4704
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4705
|
-
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4706
|
-
};
|
|
4707
|
-
|
|
4708
|
-
const VERSION$9 = "d6833ffbee3e599bfdef928466ea65af";
|
|
4709
|
-
function validate$9(obj, path = 'SlackBridgeSlackTeamOutputRepresentation') {
|
|
4710
|
-
const v_error = (() => {
|
|
4711
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4712
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4713
|
-
}
|
|
4714
|
-
const obj_status = obj.status;
|
|
4715
|
-
const path_status = path + '.status';
|
|
4716
|
-
if (typeof obj_status !== 'string') {
|
|
4717
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
4718
|
-
}
|
|
4719
|
-
const obj_teamDomain = obj.teamDomain;
|
|
4720
|
-
const path_teamDomain = path + '.teamDomain';
|
|
4721
|
-
if (typeof obj_teamDomain !== 'string') {
|
|
4722
|
-
return new TypeError('Expected "string" but received "' + typeof obj_teamDomain + '" (at "' + path_teamDomain + '")');
|
|
4723
|
-
}
|
|
4724
|
-
const obj_teamId = obj.teamId;
|
|
4725
|
-
const path_teamId = path + '.teamId';
|
|
4726
|
-
if (typeof obj_teamId !== 'string') {
|
|
4727
|
-
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
4728
|
-
}
|
|
4729
|
-
const obj_teamName = obj.teamName;
|
|
4730
|
-
const path_teamName = path + '.teamName';
|
|
4731
|
-
if (typeof obj_teamName !== 'string') {
|
|
4732
|
-
return new TypeError('Expected "string" but received "' + typeof obj_teamName + '" (at "' + path_teamName + '")');
|
|
4733
|
-
}
|
|
4734
|
-
})();
|
|
4735
|
-
return v_error === undefined ? null : v_error;
|
|
4736
|
-
}
|
|
4737
|
-
const select$n = function SlackBridgeSlackTeamOutputRepresentationSelect() {
|
|
4738
|
-
return {
|
|
4739
|
-
kind: 'Fragment',
|
|
4740
|
-
version: VERSION$9,
|
|
4741
|
-
private: [],
|
|
4742
|
-
selections: [
|
|
4743
|
-
{
|
|
4744
|
-
name: 'status',
|
|
4745
|
-
kind: 'Scalar'
|
|
4746
|
-
},
|
|
4747
|
-
{
|
|
4748
|
-
name: 'teamDomain',
|
|
4749
|
-
kind: 'Scalar'
|
|
4750
|
-
},
|
|
4751
|
-
{
|
|
4752
|
-
name: 'teamId',
|
|
4753
|
-
kind: 'Scalar'
|
|
4754
|
-
},
|
|
4755
|
-
{
|
|
4756
|
-
name: 'teamName',
|
|
4757
|
-
kind: 'Scalar'
|
|
4758
|
-
}
|
|
4759
|
-
]
|
|
4760
|
-
};
|
|
4761
|
-
};
|
|
4762
|
-
function equals$9(existing, incoming) {
|
|
4763
|
-
const existing_status = existing.status;
|
|
4764
|
-
const incoming_status = incoming.status;
|
|
4765
|
-
if (!(existing_status === incoming_status)) {
|
|
4766
|
-
return false;
|
|
4767
|
-
}
|
|
4768
|
-
const existing_teamDomain = existing.teamDomain;
|
|
4769
|
-
const incoming_teamDomain = incoming.teamDomain;
|
|
4770
|
-
if (!(existing_teamDomain === incoming_teamDomain)) {
|
|
4771
|
-
return false;
|
|
4772
|
-
}
|
|
4773
|
-
const existing_teamId = existing.teamId;
|
|
4774
|
-
const incoming_teamId = incoming.teamId;
|
|
4775
|
-
if (!(existing_teamId === incoming_teamId)) {
|
|
4776
|
-
return false;
|
|
4566
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.messages[i], () => '');
|
|
4777
4567
|
}
|
|
4778
|
-
const existing_teamName = existing.teamName;
|
|
4779
|
-
const incoming_teamName = incoming.teamName;
|
|
4780
|
-
if (!(existing_teamName === incoming_teamName)) {
|
|
4781
|
-
return false;
|
|
4782
|
-
}
|
|
4783
|
-
return true;
|
|
4784
|
-
}
|
|
4785
|
-
|
|
4786
|
-
const TTL = 500;
|
|
4787
|
-
const VERSION$8 = "b3c7e0b8bc0a4a3745874264601b9082";
|
|
4788
|
-
function validate$8(obj, path = 'SlackBridgeDisplayLoginOutputRepresentation') {
|
|
4789
|
-
const v_error = (() => {
|
|
4790
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4791
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4792
|
-
}
|
|
4793
|
-
const obj_orgId = obj.orgId;
|
|
4794
|
-
const path_orgId = path + '.orgId';
|
|
4795
|
-
if (typeof obj_orgId !== 'string') {
|
|
4796
|
-
return new TypeError('Expected "string" but received "' + typeof obj_orgId + '" (at "' + path_orgId + '")');
|
|
4797
|
-
}
|
|
4798
|
-
const obj_slackTeam = obj.slackTeam;
|
|
4799
|
-
const path_slackTeam = path + '.slackTeam';
|
|
4800
|
-
const referencepath_slackTeamValidationError = validate$9(obj_slackTeam, path_slackTeam);
|
|
4801
|
-
if (referencepath_slackTeamValidationError !== null) {
|
|
4802
|
-
let message = 'Object doesn\'t match SlackBridgeSlackTeamOutputRepresentation (at "' + path_slackTeam + '")\n';
|
|
4803
|
-
message += referencepath_slackTeamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4804
|
-
return new TypeError(message);
|
|
4805
|
-
}
|
|
4806
|
-
})();
|
|
4807
|
-
return v_error === undefined ? null : v_error;
|
|
4808
|
-
}
|
|
4809
|
-
const RepresentationType$8 = 'SlackBridgeDisplayLoginOutputRepresentation';
|
|
4810
|
-
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
4811
|
-
return input;
|
|
4812
|
-
}
|
|
4813
|
-
const select$m = function SlackBridgeDisplayLoginOutputRepresentationSelect() {
|
|
4814
|
-
const { selections: SlackBridgeSlackTeamOutputRepresentation__selections, opaque: SlackBridgeSlackTeamOutputRepresentation__opaque, } = select$n();
|
|
4815
|
-
return {
|
|
4816
|
-
kind: 'Fragment',
|
|
4817
|
-
version: VERSION$8,
|
|
4818
|
-
private: [],
|
|
4819
|
-
selections: [
|
|
4820
|
-
{
|
|
4821
|
-
name: 'orgId',
|
|
4822
|
-
kind: 'Scalar'
|
|
4823
|
-
},
|
|
4824
|
-
{
|
|
4825
|
-
name: 'slackTeam',
|
|
4826
|
-
kind: 'Object',
|
|
4827
|
-
selections: SlackBridgeSlackTeamOutputRepresentation__selections
|
|
4828
|
-
}
|
|
4829
|
-
]
|
|
4830
|
-
};
|
|
4831
|
-
};
|
|
4832
|
-
function equals$8(existing, incoming) {
|
|
4833
|
-
const existing_orgId = existing.orgId;
|
|
4834
|
-
const incoming_orgId = incoming.orgId;
|
|
4835
|
-
if (!(existing_orgId === incoming_orgId)) {
|
|
4836
|
-
return false;
|
|
4837
|
-
}
|
|
4838
|
-
const existing_slackTeam = existing.slackTeam;
|
|
4839
|
-
const incoming_slackTeam = incoming.slackTeam;
|
|
4840
|
-
if (!(equals$9(existing_slackTeam, incoming_slackTeam))) {
|
|
4841
|
-
return false;
|
|
4842
|
-
}
|
|
4843
|
-
return true;
|
|
4844
|
-
}
|
|
4845
|
-
const ingest$8 = function SlackBridgeDisplayLoginOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4846
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
4847
|
-
const validateError = validate$8(input);
|
|
4848
|
-
if (validateError !== null) {
|
|
4849
|
-
throw validateError;
|
|
4850
|
-
}
|
|
4851
|
-
}
|
|
4852
|
-
const key = path.fullPath;
|
|
4853
|
-
const ttlToUse = TTL;
|
|
4854
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
|
|
4855
|
-
return createLink(key);
|
|
4856
|
-
};
|
|
4857
|
-
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
4858
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4859
|
-
const rootKey = fullPathFactory();
|
|
4860
|
-
rootKeySet.set(rootKey, {
|
|
4861
|
-
namespace: keyPrefix,
|
|
4862
|
-
representationName: RepresentationType$8,
|
|
4863
|
-
mergeable: false
|
|
4864
|
-
});
|
|
4865
4568
|
}
|
|
4866
4569
|
|
|
4867
4570
|
function select$l(luvio, params) {
|
|
4868
4571
|
return select$m();
|
|
4869
4572
|
}
|
|
4870
4573
|
function keyBuilder$r(luvio, params) {
|
|
4871
|
-
return keyPrefix + '::
|
|
4574
|
+
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
4872
4575
|
}
|
|
4873
4576
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
4874
|
-
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$r());
|
|
4577
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$r(luvio, resourceParams));
|
|
4875
4578
|
}
|
|
4876
4579
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
4877
4580
|
const { body } = response;
|
|
4878
|
-
const key = keyBuilder$r();
|
|
4581
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
4879
4582
|
luvio.storeIngest(key, ingest$8, body);
|
|
4880
4583
|
const snapshot = luvio.storeLookup({
|
|
4881
4584
|
recordId: key,
|
|
@@ -4891,7 +4594,7 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4891
4594
|
return snapshot;
|
|
4892
4595
|
}
|
|
4893
4596
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4894
|
-
const key = keyBuilder$r();
|
|
4597
|
+
const key = keyBuilder$r(luvio, params);
|
|
4895
4598
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4896
4599
|
const storeMetadataParams = {
|
|
4897
4600
|
ttl: TTL,
|
|
@@ -4906,26 +4609,29 @@ function createResourceRequest$g(config) {
|
|
|
4906
4609
|
const headers = {};
|
|
4907
4610
|
return {
|
|
4908
4611
|
baseUri: '/services/data/v64.0',
|
|
4909
|
-
basePath: '/connect/slackbridge/
|
|
4612
|
+
basePath: '/connect/slackbridge/related_threads/entity/' + config.urlParams.entityId + '',
|
|
4910
4613
|
method: 'get',
|
|
4911
4614
|
body: null,
|
|
4912
|
-
urlParams:
|
|
4615
|
+
urlParams: config.urlParams,
|
|
4913
4616
|
queryParams: {},
|
|
4914
4617
|
headers,
|
|
4915
4618
|
priority: 'normal',
|
|
4916
4619
|
};
|
|
4917
4620
|
}
|
|
4918
4621
|
|
|
4919
|
-
const adapterName$g = '
|
|
4920
|
-
const
|
|
4921
|
-
|
|
4922
|
-
|
|
4622
|
+
const adapterName$g = 'getRelatedThreads';
|
|
4623
|
+
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
4624
|
+
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4625
|
+
];
|
|
4626
|
+
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getRelatedThreads_ConfigPropertyMetadata);
|
|
4627
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$m(getRelatedThreads_ConfigPropertyMetadata);
|
|
4923
4628
|
function keyBuilder$q(luvio, config) {
|
|
4924
|
-
createResourceParams$g(config);
|
|
4925
|
-
return keyBuilder$r();
|
|
4629
|
+
const resourceParams = createResourceParams$g(config);
|
|
4630
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
4926
4631
|
}
|
|
4927
4632
|
function typeCheckConfig$g(untrustedConfig) {
|
|
4928
4633
|
const config = {};
|
|
4634
|
+
typeCheckConfig$m(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
4929
4635
|
return config;
|
|
4930
4636
|
}
|
|
4931
4637
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -4935,7 +4641,7 @@ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
|
4935
4641
|
if (process.env.NODE_ENV !== 'production') {
|
|
4936
4642
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4937
4643
|
}
|
|
4938
|
-
const config = typeCheckConfig$g();
|
|
4644
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
4939
4645
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4940
4646
|
return null;
|
|
4941
4647
|
}
|
|
@@ -4961,7 +4667,7 @@ function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
|
4961
4667
|
}
|
|
4962
4668
|
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
4963
4669
|
const resourceParams = createResourceParams$g(config);
|
|
4964
|
-
const request = createResourceRequest$g();
|
|
4670
|
+
const request = createResourceRequest$g(resourceParams);
|
|
4965
4671
|
return luvio.dispatchResourceRequest(request, options)
|
|
4966
4672
|
.then((response) => {
|
|
4967
4673
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
@@ -4974,7 +4680,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
4974
4680
|
});
|
|
4975
4681
|
}
|
|
4976
4682
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4977
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4683
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
4978
4684
|
}
|
|
4979
4685
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4980
4686
|
const { luvio, config } = context;
|
|
@@ -4989,8 +4695,8 @@ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
|
4989
4695
|
});
|
|
4990
4696
|
return cacheSnapshot;
|
|
4991
4697
|
}
|
|
4992
|
-
const
|
|
4993
|
-
const config = validateAdapterConfig$g(untrustedConfig,
|
|
4698
|
+
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
4699
|
+
const config = validateAdapterConfig$g(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
4994
4700
|
// Invalid or incomplete config
|
|
4995
4701
|
if (config === null) {
|
|
4996
4702
|
return null;
|
|
@@ -5127,10 +4833,10 @@ const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
|
5127
4833
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
5128
4834
|
];
|
|
5129
4835
|
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postSlackConversationMark_ConfigPropertyMetadata);
|
|
5130
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
4836
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$m(postSlackConversationMark_ConfigPropertyMetadata);
|
|
5131
4837
|
function typeCheckConfig$f(untrustedConfig) {
|
|
5132
4838
|
const config = {};
|
|
5133
|
-
typeCheckConfig$
|
|
4839
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
5134
4840
|
return config;
|
|
5135
4841
|
}
|
|
5136
4842
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -5361,14 +5067,14 @@ const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
5361
5067
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5362
5068
|
];
|
|
5363
5069
|
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5364
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
5070
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$m(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5365
5071
|
function keyBuilder$m(luvio, config) {
|
|
5366
5072
|
const resourceParams = createResourceParams$e(config);
|
|
5367
5073
|
return keyBuilder$n(luvio, resourceParams);
|
|
5368
5074
|
}
|
|
5369
5075
|
function typeCheckConfig$e(untrustedConfig) {
|
|
5370
5076
|
const config = {};
|
|
5371
|
-
typeCheckConfig$
|
|
5077
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
5372
5078
|
return config;
|
|
5373
5079
|
}
|
|
5374
5080
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -5417,7 +5123,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
5417
5123
|
});
|
|
5418
5124
|
}
|
|
5419
5125
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
5420
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5126
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
5421
5127
|
}
|
|
5422
5128
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
5423
5129
|
const { luvio, config } = context;
|
|
@@ -5486,10 +5192,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
5486
5192
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
5487
5193
|
];
|
|
5488
5194
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5489
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
5195
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$m(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5490
5196
|
function typeCheckConfig$d(untrustedConfig) {
|
|
5491
5197
|
const config = {};
|
|
5492
|
-
typeCheckConfig$
|
|
5198
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
5493
5199
|
return config;
|
|
5494
5200
|
}
|
|
5495
5201
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -5656,10 +5362,10 @@ const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
5656
5362
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5657
5363
|
];
|
|
5658
5364
|
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5659
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
5365
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$m(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5660
5366
|
function typeCheckConfig$c(untrustedConfig) {
|
|
5661
5367
|
const config = {};
|
|
5662
|
-
typeCheckConfig$
|
|
5368
|
+
typeCheckConfig$m(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
5663
5369
|
return config;
|
|
5664
5370
|
}
|
|
5665
5371
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5759,14 +5465,14 @@ const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
5759
5465
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5760
5466
|
];
|
|
5761
5467
|
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5762
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
5468
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$m(getSlackConversationMember_ConfigPropertyMetadata);
|
|
5763
5469
|
function keyBuilder$i(luvio, config) {
|
|
5764
5470
|
const resourceParams = createResourceParams$b(config);
|
|
5765
5471
|
return keyBuilder$j(luvio, resourceParams);
|
|
5766
5472
|
}
|
|
5767
5473
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5768
5474
|
const config = {};
|
|
5769
|
-
typeCheckConfig$
|
|
5475
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5770
5476
|
return config;
|
|
5771
5477
|
}
|
|
5772
5478
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5815,7 +5521,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5815
5521
|
});
|
|
5816
5522
|
}
|
|
5817
5523
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5818
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5524
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
5819
5525
|
}
|
|
5820
5526
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5821
5527
|
const { luvio, config } = context;
|
|
@@ -5976,10 +5682,10 @@ const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
|
5976
5682
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5977
5683
|
];
|
|
5978
5684
|
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5979
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
5685
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$m(deleteSlackMessage_ConfigPropertyMetadata);
|
|
5980
5686
|
function typeCheckConfig$a(untrustedConfig) {
|
|
5981
5687
|
const config = {};
|
|
5982
|
-
typeCheckConfig$
|
|
5688
|
+
typeCheckConfig$m(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5983
5689
|
return config;
|
|
5984
5690
|
}
|
|
5985
5691
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -6079,14 +5785,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
6079
5785
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6080
5786
|
];
|
|
6081
5787
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackMessage_ConfigPropertyMetadata);
|
|
6082
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
5788
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$m(getSlackMessage_ConfigPropertyMetadata);
|
|
6083
5789
|
function keyBuilder$e(luvio, config) {
|
|
6084
5790
|
const resourceParams = createResourceParams$9(config);
|
|
6085
5791
|
return keyBuilder$f(luvio, resourceParams);
|
|
6086
5792
|
}
|
|
6087
5793
|
function typeCheckConfig$9(untrustedConfig) {
|
|
6088
5794
|
const config = {};
|
|
6089
|
-
typeCheckConfig$
|
|
5795
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
6090
5796
|
return config;
|
|
6091
5797
|
}
|
|
6092
5798
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -6135,7 +5841,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6135
5841
|
});
|
|
6136
5842
|
}
|
|
6137
5843
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
6138
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5844
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
6139
5845
|
}
|
|
6140
5846
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
6141
5847
|
const { luvio, config } = context;
|
|
@@ -6205,10 +5911,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
6205
5911
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
6206
5912
|
];
|
|
6207
5913
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, patchSlackMessage_ConfigPropertyMetadata);
|
|
6208
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
5914
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$m(patchSlackMessage_ConfigPropertyMetadata);
|
|
6209
5915
|
function typeCheckConfig$8(untrustedConfig) {
|
|
6210
5916
|
const config = {};
|
|
6211
|
-
typeCheckConfig$
|
|
5917
|
+
typeCheckConfig$m(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
6212
5918
|
return config;
|
|
6213
5919
|
}
|
|
6214
5920
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -6277,7 +5983,7 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
6277
5983
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
6278
5984
|
const obj_reactions_item = obj_reactions[i];
|
|
6279
5985
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
6280
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
5986
|
+
const referencepath_reactions_itemValidationError = validate$i(obj_reactions_item, path_reactions_item);
|
|
6281
5987
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
6282
5988
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
6283
5989
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6306,7 +6012,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
6306
6012
|
return input;
|
|
6307
6013
|
}
|
|
6308
6014
|
const select$a = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
6309
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
6015
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$B();
|
|
6310
6016
|
return {
|
|
6311
6017
|
kind: 'Fragment',
|
|
6312
6018
|
version: VERSION$3,
|
|
@@ -6352,7 +6058,7 @@ function equals$3(existing, incoming) {
|
|
|
6352
6058
|
const existing_reactions = existing.reactions;
|
|
6353
6059
|
const incoming_reactions = incoming.reactions;
|
|
6354
6060
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
6355
|
-
if (!(equals$
|
|
6061
|
+
if (!(equals$i(existing_reactions_item, incoming_reactions_item))) {
|
|
6356
6062
|
return false;
|
|
6357
6063
|
}
|
|
6358
6064
|
});
|
|
@@ -6422,10 +6128,10 @@ const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
6422
6128
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6423
6129
|
];
|
|
6424
6130
|
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6425
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
6131
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$m(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6426
6132
|
function typeCheckConfig$7(untrustedConfig) {
|
|
6427
6133
|
const config = {};
|
|
6428
|
-
typeCheckConfig$
|
|
6134
|
+
typeCheckConfig$m(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
6429
6135
|
return config;
|
|
6430
6136
|
}
|
|
6431
6137
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -6515,10 +6221,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
6515
6221
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6516
6222
|
];
|
|
6517
6223
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6518
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6224
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$m(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6519
6225
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6520
6226
|
const config = {};
|
|
6521
|
-
typeCheckConfig$
|
|
6227
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
6522
6228
|
return config;
|
|
6523
6229
|
}
|
|
6524
6230
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -6591,7 +6297,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
6591
6297
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
6592
6298
|
const input_emojis_item = input_emojis[i];
|
|
6593
6299
|
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
6594
|
-
input_emojis[i] = ingest$
|
|
6300
|
+
input_emojis[i] = ingest$h(input_emojis_item, {
|
|
6595
6301
|
fullPath: input_emojis_item_id,
|
|
6596
6302
|
propertyName: i,
|
|
6597
6303
|
parent: {
|
|
@@ -6614,7 +6320,7 @@ const select$8 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
6614
6320
|
name: 'emojis',
|
|
6615
6321
|
kind: 'Link',
|
|
6616
6322
|
plural: true,
|
|
6617
|
-
fragment: select$
|
|
6323
|
+
fragment: select$E()
|
|
6618
6324
|
}
|
|
6619
6325
|
]
|
|
6620
6326
|
};
|
|
@@ -6654,7 +6360,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6654
6360
|
});
|
|
6655
6361
|
const input_emojis_length = input.emojis.length;
|
|
6656
6362
|
for (let i = 0; i < input_emojis_length; i++) {
|
|
6657
|
-
getTypeCacheKeys$
|
|
6363
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.emojis[i]);
|
|
6658
6364
|
}
|
|
6659
6365
|
}
|
|
6660
6366
|
|
|
@@ -6710,14 +6416,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
6710
6416
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6711
6417
|
];
|
|
6712
6418
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSlackEmojis_ConfigPropertyMetadata);
|
|
6713
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
6419
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$m(getSlackEmojis_ConfigPropertyMetadata);
|
|
6714
6420
|
function keyBuilder$a(luvio, config) {
|
|
6715
6421
|
const resourceParams = createResourceParams$5(config);
|
|
6716
6422
|
return keyBuilder$b(luvio, resourceParams);
|
|
6717
6423
|
}
|
|
6718
6424
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6719
6425
|
const config = {};
|
|
6720
|
-
typeCheckConfig$
|
|
6426
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
6721
6427
|
return config;
|
|
6722
6428
|
}
|
|
6723
6429
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6766,7 +6472,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
6766
6472
|
});
|
|
6767
6473
|
}
|
|
6768
6474
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6769
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6475
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
6770
6476
|
}
|
|
6771
6477
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6772
6478
|
const { luvio, config } = context;
|
|
@@ -6792,20 +6498,20 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
6792
6498
|
};
|
|
6793
6499
|
|
|
6794
6500
|
function select$6(luvio, params) {
|
|
6795
|
-
return select$
|
|
6501
|
+
return select$E();
|
|
6796
6502
|
}
|
|
6797
6503
|
function keyBuilder$9(luvio, params) {
|
|
6798
|
-
return keyBuilder$
|
|
6504
|
+
return keyBuilder$B(luvio, {
|
|
6799
6505
|
name: params.urlParams.slackEmojiId
|
|
6800
6506
|
});
|
|
6801
6507
|
}
|
|
6802
6508
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
6803
|
-
getTypeCacheKeys$
|
|
6509
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
6804
6510
|
}
|
|
6805
6511
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
6806
6512
|
const { body } = response;
|
|
6807
6513
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
6808
|
-
luvio.storeIngest(key, ingest$
|
|
6514
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
6809
6515
|
const snapshot = luvio.storeLookup({
|
|
6810
6516
|
recordId: key,
|
|
6811
6517
|
node: select$6(),
|
|
@@ -6823,10 +6529,10 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
6823
6529
|
const key = keyBuilder$9(luvio, params);
|
|
6824
6530
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6825
6531
|
const storeMetadataParams = {
|
|
6826
|
-
ttl: TTL$
|
|
6532
|
+
ttl: TTL$2,
|
|
6827
6533
|
namespace: keyPrefix,
|
|
6828
|
-
version: VERSION$
|
|
6829
|
-
representationName: RepresentationType$
|
|
6534
|
+
version: VERSION$l,
|
|
6535
|
+
representationName: RepresentationType$h
|
|
6830
6536
|
};
|
|
6831
6537
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6832
6538
|
return errorSnapshot;
|
|
@@ -6851,14 +6557,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
6851
6557
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6852
6558
|
];
|
|
6853
6559
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSlackEmoji_ConfigPropertyMetadata);
|
|
6854
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
6560
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$m(getSlackEmoji_ConfigPropertyMetadata);
|
|
6855
6561
|
function keyBuilder$8(luvio, config) {
|
|
6856
6562
|
const resourceParams = createResourceParams$4(config);
|
|
6857
6563
|
return keyBuilder$9(luvio, resourceParams);
|
|
6858
6564
|
}
|
|
6859
6565
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6860
6566
|
const config = {};
|
|
6861
|
-
typeCheckConfig$
|
|
6567
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
6862
6568
|
return config;
|
|
6863
6569
|
}
|
|
6864
6570
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6907,7 +6613,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
6907
6613
|
});
|
|
6908
6614
|
}
|
|
6909
6615
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6910
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6616
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
6911
6617
|
}
|
|
6912
6618
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6913
6619
|
const { luvio, config } = context;
|
|
@@ -6986,7 +6692,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
6986
6692
|
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6987
6693
|
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6988
6694
|
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6989
|
-
input_conversationInfos[i] = ingest$
|
|
6695
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
6990
6696
|
fullPath: input_conversationInfos_item_id,
|
|
6991
6697
|
propertyName: i,
|
|
6992
6698
|
parent: {
|
|
@@ -7009,7 +6715,7 @@ const select$5 = function SlackBridgeConversationInfosOutputRepresentationSelect
|
|
|
7009
6715
|
name: 'conversationInfos',
|
|
7010
6716
|
kind: 'Link',
|
|
7011
6717
|
plural: true,
|
|
7012
|
-
fragment: select$
|
|
6718
|
+
fragment: select$C()
|
|
7013
6719
|
},
|
|
7014
6720
|
{
|
|
7015
6721
|
name: 'searchString',
|
|
@@ -7058,7 +6764,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7058
6764
|
});
|
|
7059
6765
|
const input_conversationInfos_length = input.conversationInfos.length;
|
|
7060
6766
|
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
7061
|
-
getTypeCacheKeys$
|
|
6767
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
7062
6768
|
}
|
|
7063
6769
|
}
|
|
7064
6770
|
|
|
@@ -7114,14 +6820,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
7114
6820
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7115
6821
|
];
|
|
7116
6822
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
7117
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
6823
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$m(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
7118
6824
|
function keyBuilder$6(luvio, config) {
|
|
7119
6825
|
const resourceParams = createResourceParams$3(config);
|
|
7120
6826
|
return keyBuilder$7(luvio, resourceParams);
|
|
7121
6827
|
}
|
|
7122
6828
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7123
6829
|
const config = {};
|
|
7124
|
-
typeCheckConfig$
|
|
6830
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
7125
6831
|
return config;
|
|
7126
6832
|
}
|
|
7127
6833
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7170,7 +6876,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
7170
6876
|
});
|
|
7171
6877
|
}
|
|
7172
6878
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7173
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6879
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
7174
6880
|
}
|
|
7175
6881
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7176
6882
|
const { luvio, config } = context;
|
|
@@ -7247,14 +6953,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
7247
6953
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7248
6954
|
];
|
|
7249
6955
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7250
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
6956
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$m(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7251
6957
|
function keyBuilder$4(luvio, config) {
|
|
7252
6958
|
const resourceParams = createResourceParams$2(config);
|
|
7253
6959
|
return keyBuilder$5(luvio, resourceParams);
|
|
7254
6960
|
}
|
|
7255
6961
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7256
6962
|
const config = {};
|
|
7257
|
-
typeCheckConfig$
|
|
6963
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
7258
6964
|
return config;
|
|
7259
6965
|
}
|
|
7260
6966
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7303,7 +7009,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
7303
7009
|
});
|
|
7304
7010
|
}
|
|
7305
7011
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
7306
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7012
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
7307
7013
|
}
|
|
7308
7014
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
7309
7015
|
const { luvio, config } = context;
|
|
@@ -7382,7 +7088,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
7382
7088
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
7383
7089
|
const input_userInfos_item = input_userInfos[i];
|
|
7384
7090
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
7385
|
-
input_userInfos[i] = ingest$
|
|
7091
|
+
input_userInfos[i] = ingest$g(input_userInfos_item, {
|
|
7386
7092
|
fullPath: input_userInfos_item_id,
|
|
7387
7093
|
propertyName: i,
|
|
7388
7094
|
parent: {
|
|
@@ -7409,7 +7115,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
7409
7115
|
name: 'userInfos',
|
|
7410
7116
|
kind: 'Link',
|
|
7411
7117
|
plural: true,
|
|
7412
|
-
fragment: select$
|
|
7118
|
+
fragment: select$D()
|
|
7413
7119
|
}
|
|
7414
7120
|
]
|
|
7415
7121
|
};
|
|
@@ -7454,7 +7160,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7454
7160
|
});
|
|
7455
7161
|
const input_userInfos_length = input.userInfos.length;
|
|
7456
7162
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
7457
|
-
getTypeCacheKeys$
|
|
7163
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.userInfos[i]);
|
|
7458
7164
|
}
|
|
7459
7165
|
}
|
|
7460
7166
|
|
|
@@ -7513,14 +7219,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
7513
7219
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7514
7220
|
];
|
|
7515
7221
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7516
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7222
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$m(getSlackSearchUser_ConfigPropertyMetadata);
|
|
7517
7223
|
function keyBuilder$2(luvio, config) {
|
|
7518
7224
|
const resourceParams = createResourceParams$1(config);
|
|
7519
7225
|
return keyBuilder$3(luvio, resourceParams);
|
|
7520
7226
|
}
|
|
7521
7227
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7522
7228
|
const config = {};
|
|
7523
|
-
typeCheckConfig$
|
|
7229
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
7524
7230
|
return config;
|
|
7525
7231
|
}
|
|
7526
7232
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -7569,7 +7275,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
7569
7275
|
});
|
|
7570
7276
|
}
|
|
7571
7277
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7572
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7278
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
7573
7279
|
}
|
|
7574
7280
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7575
7281
|
const { luvio, config } = context;
|
|
@@ -7595,21 +7301,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
7595
7301
|
};
|
|
7596
7302
|
|
|
7597
7303
|
function select(luvio, params) {
|
|
7598
|
-
return select$
|
|
7304
|
+
return select$D();
|
|
7599
7305
|
}
|
|
7600
7306
|
function keyBuilder$1(luvio, params) {
|
|
7601
|
-
return keyBuilder$
|
|
7307
|
+
return keyBuilder$A(luvio, {
|
|
7602
7308
|
slackUserId: params.urlParams.slackUserId,
|
|
7603
7309
|
teamId: params.urlParams.teamId
|
|
7604
7310
|
});
|
|
7605
7311
|
}
|
|
7606
7312
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
7607
|
-
getTypeCacheKeys$
|
|
7313
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
7608
7314
|
}
|
|
7609
7315
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
7610
7316
|
const { body } = response;
|
|
7611
7317
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
7612
|
-
luvio.storeIngest(key, ingest$
|
|
7318
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
7613
7319
|
const snapshot = luvio.storeLookup({
|
|
7614
7320
|
recordId: key,
|
|
7615
7321
|
node: select(),
|
|
@@ -7627,10 +7333,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
7627
7333
|
const key = keyBuilder$1(luvio, params);
|
|
7628
7334
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7629
7335
|
const storeMetadataParams = {
|
|
7630
|
-
ttl: TTL$
|
|
7336
|
+
ttl: TTL$1,
|
|
7631
7337
|
namespace: keyPrefix,
|
|
7632
|
-
version: VERSION$
|
|
7633
|
-
representationName: RepresentationType$
|
|
7338
|
+
version: VERSION$k,
|
|
7339
|
+
representationName: RepresentationType$g
|
|
7634
7340
|
};
|
|
7635
7341
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7636
7342
|
return errorSnapshot;
|
|
@@ -7655,14 +7361,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
7655
7361
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7656
7362
|
];
|
|
7657
7363
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
|
|
7658
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7364
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$m(getSlackUser_ConfigPropertyMetadata);
|
|
7659
7365
|
function keyBuilder(luvio, config) {
|
|
7660
7366
|
const resourceParams = createResourceParams(config);
|
|
7661
7367
|
return keyBuilder$1(luvio, resourceParams);
|
|
7662
7368
|
}
|
|
7663
7369
|
function typeCheckConfig(untrustedConfig) {
|
|
7664
7370
|
const config = {};
|
|
7665
|
-
typeCheckConfig$
|
|
7371
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
7666
7372
|
return config;
|
|
7667
7373
|
}
|
|
7668
7374
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -7711,7 +7417,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
7711
7417
|
});
|
|
7712
7418
|
}
|
|
7713
7419
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7714
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7420
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
7715
7421
|
}
|
|
7716
7422
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7717
7423
|
const { luvio, config } = context;
|
|
@@ -7736,4 +7442,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
7736
7442
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
7737
7443
|
};
|
|
7738
7444
|
|
|
7739
|
-
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getRelatedThreadsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory,
|
|
7445
|
+
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getRelatedThreadsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackEmojiAdapterFactory, getSlackEmojisAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|