@salesforce/lds-adapters-platform-slack-bridge 1.342.0 → 1.343.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 +550 -374
- package/dist/es/es2018/types/src/generated/adapters/postSlackConversationMark.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeTeamChannelMarkByChannelIdAndTeamId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMarkOutputRepresentation.d.ts +40 -0
- package/package.json +3 -3
- package/sfdc/index.js +953 -774
- package/src/raml/api.raml +36 -0
- package/src/raml/luvio.raml +7 -0
|
@@ -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$9, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$j, StoreKeyMap, createResourceParams as createResourceParams$j } 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$k = "a398e130daf23612644f70d0705347e8";
|
|
116
|
+
function validate$k(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
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 + '")');
|
|
@@ -167,10 +167,10 @@ function validate$j(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
167
167
|
})();
|
|
168
168
|
return v_error === undefined ? null : v_error;
|
|
169
169
|
}
|
|
170
|
-
const select$
|
|
170
|
+
const select$A = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
171
171
|
return {
|
|
172
172
|
kind: 'Fragment',
|
|
173
|
-
version: VERSION$
|
|
173
|
+
version: VERSION$k,
|
|
174
174
|
private: [],
|
|
175
175
|
selections: [
|
|
176
176
|
{
|
|
@@ -196,7 +196,7 @@ const select$y = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
|
196
196
|
]
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
|
-
function equals$
|
|
199
|
+
function equals$k(existing, incoming) {
|
|
200
200
|
const existing_altText = existing.altText;
|
|
201
201
|
const incoming_altText = incoming.altText;
|
|
202
202
|
if (!(existing_altText === incoming_altText)) {
|
|
@@ -226,8 +226,8 @@ function equals$j(existing, incoming) {
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
const TTL = 600000;
|
|
229
|
-
const VERSION$
|
|
230
|
-
function validate$
|
|
229
|
+
const VERSION$j = "1c89c1c8379c0e55b8f94fecd03d8775";
|
|
230
|
+
function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
231
231
|
const v_error = (() => {
|
|
232
232
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
233
233
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -422,7 +422,7 @@ function validate$i(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
422
422
|
const path_statusEmoji = path + '.statusEmoji';
|
|
423
423
|
let obj_statusEmoji_union0 = null;
|
|
424
424
|
const obj_statusEmoji_union0_error = (() => {
|
|
425
|
-
const referencepath_statusEmojiValidationError = validate$
|
|
425
|
+
const referencepath_statusEmojiValidationError = validate$k(obj_statusEmoji, path_statusEmoji);
|
|
426
426
|
if (referencepath_statusEmojiValidationError !== null) {
|
|
427
427
|
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
|
|
428
428
|
message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -460,25 +460,25 @@ function validate$i(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
460
460
|
})();
|
|
461
461
|
return v_error === undefined ? null : v_error;
|
|
462
462
|
}
|
|
463
|
-
const RepresentationType$
|
|
464
|
-
function keyBuilder$
|
|
465
|
-
return keyPrefix + '::' + RepresentationType$
|
|
463
|
+
const RepresentationType$f = 'SlackBridgeUserInfoOutputRepresentation';
|
|
464
|
+
function keyBuilder$u(luvio, config) {
|
|
465
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.teamId + ':' + config.slackUserId;
|
|
466
466
|
}
|
|
467
|
-
function keyBuilderFromType$
|
|
467
|
+
function keyBuilderFromType$9(luvio, object) {
|
|
468
468
|
const keyParams = {
|
|
469
469
|
teamId: object.teamId,
|
|
470
470
|
slackUserId: object.slackUserId
|
|
471
471
|
};
|
|
472
|
-
return keyBuilder$
|
|
472
|
+
return keyBuilder$u(luvio, keyParams);
|
|
473
473
|
}
|
|
474
|
-
function normalize$
|
|
474
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
475
475
|
return input;
|
|
476
476
|
}
|
|
477
|
-
const select$
|
|
478
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$
|
|
477
|
+
const select$z = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
478
|
+
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$A();
|
|
479
479
|
return {
|
|
480
480
|
kind: 'Fragment',
|
|
481
|
-
version: VERSION$
|
|
481
|
+
version: VERSION$j,
|
|
482
482
|
private: [],
|
|
483
483
|
selections: [
|
|
484
484
|
{
|
|
@@ -546,7 +546,7 @@ const select$x = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
546
546
|
]
|
|
547
547
|
};
|
|
548
548
|
};
|
|
549
|
-
function equals$
|
|
549
|
+
function equals$j(existing, incoming) {
|
|
550
550
|
const existing_bot = existing.bot;
|
|
551
551
|
const incoming_bot = incoming.bot;
|
|
552
552
|
if (!(existing_bot === incoming_bot)) {
|
|
@@ -622,35 +622,35 @@ function equals$i(existing, incoming) {
|
|
|
622
622
|
if (!(existing_statusEmoji === incoming_statusEmoji
|
|
623
623
|
|| (existing_statusEmoji != null &&
|
|
624
624
|
incoming_statusEmoji != null &&
|
|
625
|
-
equals$
|
|
625
|
+
equals$k(existing_statusEmoji, incoming_statusEmoji)))) {
|
|
626
626
|
return false;
|
|
627
627
|
}
|
|
628
628
|
return true;
|
|
629
629
|
}
|
|
630
|
-
const ingest$
|
|
630
|
+
const ingest$f = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
631
631
|
if (process.env.NODE_ENV !== 'production') {
|
|
632
|
-
const validateError = validate$
|
|
632
|
+
const validateError = validate$j(input);
|
|
633
633
|
if (validateError !== null) {
|
|
634
634
|
throw validateError;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
const key = keyBuilderFromType$
|
|
637
|
+
const key = keyBuilderFromType$9(luvio, input);
|
|
638
638
|
const ttlToUse = TTL;
|
|
639
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
639
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SlackBridge", VERSION$j, RepresentationType$f, equals$j);
|
|
640
640
|
return createLink(key);
|
|
641
641
|
};
|
|
642
|
-
function getTypeCacheKeys$
|
|
642
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
643
643
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
644
|
-
const rootKey = keyBuilderFromType$
|
|
644
|
+
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
645
645
|
rootKeySet.set(rootKey, {
|
|
646
646
|
namespace: keyPrefix,
|
|
647
|
-
representationName: RepresentationType$
|
|
647
|
+
representationName: RepresentationType$f,
|
|
648
648
|
mergeable: false
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
|
|
652
|
-
const VERSION$
|
|
653
|
-
function validate$
|
|
652
|
+
const VERSION$i = "77e079f223fc937e8ca5847158ca51a5";
|
|
653
|
+
function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
654
654
|
const v_error = (() => {
|
|
655
655
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
656
656
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -791,23 +791,23 @@ function validate$h(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
791
791
|
})();
|
|
792
792
|
return v_error === undefined ? null : v_error;
|
|
793
793
|
}
|
|
794
|
-
const RepresentationType$
|
|
795
|
-
function keyBuilder$
|
|
796
|
-
return keyPrefix + '::' + RepresentationType$
|
|
794
|
+
const RepresentationType$e = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
795
|
+
function keyBuilder$t(luvio, config) {
|
|
796
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.id;
|
|
797
797
|
}
|
|
798
|
-
function keyBuilderFromType$
|
|
798
|
+
function keyBuilderFromType$8(luvio, object) {
|
|
799
799
|
const keyParams = {
|
|
800
800
|
id: object.id
|
|
801
801
|
};
|
|
802
|
-
return keyBuilder$
|
|
802
|
+
return keyBuilder$t(luvio, keyParams);
|
|
803
803
|
}
|
|
804
|
-
function normalize$
|
|
804
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
805
805
|
return input;
|
|
806
806
|
}
|
|
807
|
-
const select$
|
|
807
|
+
const select$y = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
808
808
|
return {
|
|
809
809
|
kind: 'Fragment',
|
|
810
|
-
version: VERSION$
|
|
810
|
+
version: VERSION$i,
|
|
811
811
|
private: [],
|
|
812
812
|
selections: [
|
|
813
813
|
{
|
|
@@ -869,7 +869,7 @@ const select$w = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
869
869
|
]
|
|
870
870
|
};
|
|
871
871
|
};
|
|
872
|
-
function equals$
|
|
872
|
+
function equals$i(existing, incoming) {
|
|
873
873
|
const existing_isArchived = existing.isArchived;
|
|
874
874
|
const incoming_isArchived = incoming.isArchived;
|
|
875
875
|
if (!(existing_isArchived === incoming_isArchived)) {
|
|
@@ -942,30 +942,30 @@ function equals$h(existing, incoming) {
|
|
|
942
942
|
}
|
|
943
943
|
return true;
|
|
944
944
|
}
|
|
945
|
-
const ingest$
|
|
945
|
+
const ingest$e = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
946
946
|
if (process.env.NODE_ENV !== 'production') {
|
|
947
|
-
const validateError = validate$
|
|
947
|
+
const validateError = validate$i(input);
|
|
948
948
|
if (validateError !== null) {
|
|
949
949
|
throw validateError;
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
const key = keyBuilderFromType$
|
|
952
|
+
const key = keyBuilderFromType$8(luvio, input);
|
|
953
953
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
954
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
954
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SlackBridge", VERSION$i, RepresentationType$e, equals$i);
|
|
955
955
|
return createLink(key);
|
|
956
956
|
};
|
|
957
|
-
function getTypeCacheKeys$
|
|
957
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
958
958
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
959
|
-
const rootKey = keyBuilderFromType$
|
|
959
|
+
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
960
960
|
rootKeySet.set(rootKey, {
|
|
961
961
|
namespace: keyPrefix,
|
|
962
|
-
representationName: RepresentationType$
|
|
962
|
+
representationName: RepresentationType$e,
|
|
963
963
|
mergeable: false
|
|
964
964
|
});
|
|
965
965
|
}
|
|
966
966
|
|
|
967
|
-
const VERSION$
|
|
968
|
-
function validate$
|
|
967
|
+
const VERSION$h = "c7dec6b60c7d567a7835fbdd84d3e67e";
|
|
968
|
+
function validate$h(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
969
969
|
const v_error = (() => {
|
|
970
970
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
971
971
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1021,10 +1021,10 @@ function validate$g(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
1021
1021
|
})();
|
|
1022
1022
|
return v_error === undefined ? null : v_error;
|
|
1023
1023
|
}
|
|
1024
|
-
const select$
|
|
1024
|
+
const select$x = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
1025
1025
|
return {
|
|
1026
1026
|
kind: 'Fragment',
|
|
1027
|
-
version: VERSION$
|
|
1027
|
+
version: VERSION$h,
|
|
1028
1028
|
private: [],
|
|
1029
1029
|
selections: [
|
|
1030
1030
|
{
|
|
@@ -1047,7 +1047,7 @@ const select$v = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
1047
1047
|
]
|
|
1048
1048
|
};
|
|
1049
1049
|
};
|
|
1050
|
-
function equals$
|
|
1050
|
+
function equals$h(existing, incoming) {
|
|
1051
1051
|
const existing_count = existing.count;
|
|
1052
1052
|
const incoming_count = incoming.count;
|
|
1053
1053
|
if (!(existing_count === incoming_count)) {
|
|
@@ -1076,8 +1076,8 @@ function equals$g(existing, incoming) {
|
|
|
1076
1076
|
return true;
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
|
-
const VERSION$
|
|
1080
|
-
function validate$
|
|
1079
|
+
const VERSION$g = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
1080
|
+
function validate$g(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
1081
1081
|
const v_error = (() => {
|
|
1082
1082
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1083
1083
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1095,10 +1095,10 @@ function validate$f(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1095
1095
|
})();
|
|
1096
1096
|
return v_error === undefined ? null : v_error;
|
|
1097
1097
|
}
|
|
1098
|
-
const select$
|
|
1098
|
+
const select$w = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1099
1099
|
return {
|
|
1100
1100
|
kind: 'Fragment',
|
|
1101
|
-
version: VERSION$
|
|
1101
|
+
version: VERSION$g,
|
|
1102
1102
|
private: [],
|
|
1103
1103
|
selections: [
|
|
1104
1104
|
{
|
|
@@ -1112,7 +1112,7 @@ const select$u = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
|
1112
1112
|
]
|
|
1113
1113
|
};
|
|
1114
1114
|
};
|
|
1115
|
-
function equals$
|
|
1115
|
+
function equals$g(existing, incoming) {
|
|
1116
1116
|
const existing_extension = existing.extension;
|
|
1117
1117
|
const incoming_extension = incoming.extension;
|
|
1118
1118
|
if (!(existing_extension === incoming_extension)) {
|
|
@@ -1126,8 +1126,8 @@ function equals$f(existing, incoming) {
|
|
|
1126
1126
|
return true;
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
|
-
const VERSION$
|
|
1130
|
-
function validate$
|
|
1129
|
+
const VERSION$f = "929dbada9eaca4bca26deee89f9d11b2";
|
|
1130
|
+
function validate$f(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
|
|
1131
1131
|
const v_error = (() => {
|
|
1132
1132
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1133
1133
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1139,7 +1139,7 @@ function validate$e(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1139
1139
|
}
|
|
1140
1140
|
const obj_filetype = obj.filetype;
|
|
1141
1141
|
const path_filetype = path + '.filetype';
|
|
1142
|
-
const referencepath_filetypeValidationError = validate$
|
|
1142
|
+
const referencepath_filetypeValidationError = validate$g(obj_filetype, path_filetype);
|
|
1143
1143
|
if (referencepath_filetypeValidationError !== null) {
|
|
1144
1144
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1145
1145
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1168,11 +1168,11 @@ function validate$e(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1168
1168
|
})();
|
|
1169
1169
|
return v_error === undefined ? null : v_error;
|
|
1170
1170
|
}
|
|
1171
|
-
const select$
|
|
1172
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1171
|
+
const select$v = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1172
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$w();
|
|
1173
1173
|
return {
|
|
1174
1174
|
kind: 'Fragment',
|
|
1175
|
-
version: VERSION$
|
|
1175
|
+
version: VERSION$f,
|
|
1176
1176
|
private: [],
|
|
1177
1177
|
selections: [
|
|
1178
1178
|
{
|
|
@@ -1203,7 +1203,7 @@ const select$t = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1203
1203
|
]
|
|
1204
1204
|
};
|
|
1205
1205
|
};
|
|
1206
|
-
function equals$
|
|
1206
|
+
function equals$f(existing, incoming) {
|
|
1207
1207
|
const existing_size = existing.size;
|
|
1208
1208
|
const incoming_size = incoming.size;
|
|
1209
1209
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1231,21 +1231,21 @@ function equals$e(existing, incoming) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
const existing_filetype = existing.filetype;
|
|
1233
1233
|
const incoming_filetype = incoming.filetype;
|
|
1234
|
-
if (!(equals$
|
|
1234
|
+
if (!(equals$g(existing_filetype, incoming_filetype))) {
|
|
1235
1235
|
return false;
|
|
1236
1236
|
}
|
|
1237
1237
|
return true;
|
|
1238
1238
|
}
|
|
1239
1239
|
|
|
1240
|
-
const VERSION$
|
|
1241
|
-
function validate$
|
|
1240
|
+
const VERSION$e = "effdd259bc622bee05493fc2a3ecd276";
|
|
1241
|
+
function validate$e(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
|
|
1242
1242
|
const v_error = (() => {
|
|
1243
1243
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1244
1244
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1245
1245
|
}
|
|
1246
1246
|
const obj_filetype = obj.filetype;
|
|
1247
1247
|
const path_filetype = path + '.filetype';
|
|
1248
|
-
const referencepath_filetypeValidationError = validate$
|
|
1248
|
+
const referencepath_filetypeValidationError = validate$g(obj_filetype, path_filetype);
|
|
1249
1249
|
if (referencepath_filetypeValidationError !== null) {
|
|
1250
1250
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1251
1251
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1258,7 +1258,7 @@ function validate$d(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1258
1258
|
}
|
|
1259
1259
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
1260
1260
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
1261
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
1261
|
+
const referencepath_latestPublishedVersionValidationError = validate$f(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
1262
1262
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
1263
1263
|
let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
1264
1264
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1277,12 +1277,12 @@ function validate$d(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1277
1277
|
})();
|
|
1278
1278
|
return v_error === undefined ? null : v_error;
|
|
1279
1279
|
}
|
|
1280
|
-
const select$
|
|
1281
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1282
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
1280
|
+
const select$u = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
1281
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$w();
|
|
1282
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$v();
|
|
1283
1283
|
return {
|
|
1284
1284
|
kind: 'Fragment',
|
|
1285
|
-
version: VERSION$
|
|
1285
|
+
version: VERSION$e,
|
|
1286
1286
|
private: [],
|
|
1287
1287
|
selections: [
|
|
1288
1288
|
{
|
|
@@ -1310,7 +1310,7 @@ const select$s = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
1310
1310
|
]
|
|
1311
1311
|
};
|
|
1312
1312
|
};
|
|
1313
|
-
function equals$
|
|
1313
|
+
function equals$e(existing, incoming) {
|
|
1314
1314
|
const existing_size = existing.size;
|
|
1315
1315
|
const incoming_size = incoming.size;
|
|
1316
1316
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1328,26 +1328,26 @@ function equals$d(existing, incoming) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
const existing_filetype = existing.filetype;
|
|
1330
1330
|
const incoming_filetype = incoming.filetype;
|
|
1331
|
-
if (!(equals$
|
|
1331
|
+
if (!(equals$g(existing_filetype, incoming_filetype))) {
|
|
1332
1332
|
return false;
|
|
1333
1333
|
}
|
|
1334
1334
|
const existing_latestPublishedVersion = existing.latestPublishedVersion;
|
|
1335
1335
|
const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
|
|
1336
|
-
if (!(equals$
|
|
1336
|
+
if (!(equals$f(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
|
|
1337
1337
|
return false;
|
|
1338
1338
|
}
|
|
1339
1339
|
return true;
|
|
1340
1340
|
}
|
|
1341
1341
|
|
|
1342
|
-
const VERSION$
|
|
1343
|
-
function validate$
|
|
1342
|
+
const VERSION$d = "3f1a7f34ee73f6a8d9677314d88bad78";
|
|
1343
|
+
function validate$d(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
1344
1344
|
const v_error = (() => {
|
|
1345
1345
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1346
1346
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1347
1347
|
}
|
|
1348
1348
|
const obj_contentDocument = obj.contentDocument;
|
|
1349
1349
|
const path_contentDocument = path + '.contentDocument';
|
|
1350
|
-
const referencepath_contentDocumentValidationError = validate$
|
|
1350
|
+
const referencepath_contentDocumentValidationError = validate$e(obj_contentDocument, path_contentDocument);
|
|
1351
1351
|
if (referencepath_contentDocumentValidationError !== null) {
|
|
1352
1352
|
let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
1353
1353
|
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1406,24 +1406,24 @@ function validate$c(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1406
1406
|
})();
|
|
1407
1407
|
return v_error === undefined ? null : v_error;
|
|
1408
1408
|
}
|
|
1409
|
-
const RepresentationType$
|
|
1410
|
-
function keyBuilder$
|
|
1411
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1409
|
+
const RepresentationType$d = 'SlackBridgeFileOutputRepresentation';
|
|
1410
|
+
function keyBuilder$s(luvio, config) {
|
|
1411
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.uniqueKey;
|
|
1412
1412
|
}
|
|
1413
|
-
function keyBuilderFromType$
|
|
1413
|
+
function keyBuilderFromType$7(luvio, object) {
|
|
1414
1414
|
const keyParams = {
|
|
1415
1415
|
uniqueKey: object.uniqueKey
|
|
1416
1416
|
};
|
|
1417
|
-
return keyBuilder$
|
|
1417
|
+
return keyBuilder$s(luvio, keyParams);
|
|
1418
1418
|
}
|
|
1419
|
-
function normalize$
|
|
1419
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1420
1420
|
return input;
|
|
1421
1421
|
}
|
|
1422
|
-
const select$
|
|
1423
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
1422
|
+
const select$t = function SlackBridgeFileOutputRepresentationSelect() {
|
|
1423
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$u();
|
|
1424
1424
|
return {
|
|
1425
1425
|
kind: 'Fragment',
|
|
1426
|
-
version: VERSION$
|
|
1426
|
+
version: VERSION$d,
|
|
1427
1427
|
private: [],
|
|
1428
1428
|
selections: [
|
|
1429
1429
|
{
|
|
@@ -1474,7 +1474,7 @@ const select$r = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
1474
1474
|
]
|
|
1475
1475
|
};
|
|
1476
1476
|
};
|
|
1477
|
-
function equals$
|
|
1477
|
+
function equals$d(existing, incoming) {
|
|
1478
1478
|
const existing_size = existing.size;
|
|
1479
1479
|
const incoming_size = incoming.size;
|
|
1480
1480
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1527,35 +1527,35 @@ function equals$c(existing, incoming) {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
const existing_contentDocument = existing.contentDocument;
|
|
1529
1529
|
const incoming_contentDocument = incoming.contentDocument;
|
|
1530
|
-
if (!(equals$
|
|
1530
|
+
if (!(equals$e(existing_contentDocument, incoming_contentDocument))) {
|
|
1531
1531
|
return false;
|
|
1532
1532
|
}
|
|
1533
1533
|
return true;
|
|
1534
1534
|
}
|
|
1535
|
-
const ingest$
|
|
1535
|
+
const ingest$d = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1536
1536
|
if (process.env.NODE_ENV !== 'production') {
|
|
1537
|
-
const validateError = validate$
|
|
1537
|
+
const validateError = validate$d(input);
|
|
1538
1538
|
if (validateError !== null) {
|
|
1539
1539
|
throw validateError;
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
|
-
const key = keyBuilderFromType$
|
|
1542
|
+
const key = keyBuilderFromType$7(luvio, input);
|
|
1543
1543
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1544
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1544
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SlackBridge", VERSION$d, RepresentationType$d, equals$d);
|
|
1545
1545
|
return createLink(key);
|
|
1546
1546
|
};
|
|
1547
|
-
function getTypeCacheKeys$
|
|
1547
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
1548
1548
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1549
|
-
const rootKey = keyBuilderFromType$
|
|
1549
|
+
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
1550
1550
|
rootKeySet.set(rootKey, {
|
|
1551
1551
|
namespace: keyPrefix,
|
|
1552
|
-
representationName: RepresentationType$
|
|
1552
|
+
representationName: RepresentationType$d,
|
|
1553
1553
|
mergeable: false
|
|
1554
1554
|
});
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
|
-
const VERSION$
|
|
1558
|
-
function validate$
|
|
1557
|
+
const VERSION$c = "d4fb2fb522a777fd831f500fea806ebe";
|
|
1558
|
+
function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
1559
1559
|
const v_error = (() => {
|
|
1560
1560
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1561
1561
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1699,7 +1699,7 @@ function validate$b(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
1699
1699
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
1700
1700
|
const obj_reactions_item = obj_reactions[i];
|
|
1701
1701
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
1702
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
1702
|
+
const referencepath_reactions_itemValidationError = validate$h(obj_reactions_item, path_reactions_item);
|
|
1703
1703
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
1704
1704
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
1705
1705
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1840,14 +1840,14 @@ function validate$b(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
1840
1840
|
})();
|
|
1841
1841
|
return v_error === undefined ? null : v_error;
|
|
1842
1842
|
}
|
|
1843
|
-
const RepresentationType$
|
|
1844
|
-
function normalize$
|
|
1843
|
+
const RepresentationType$c = 'SlackBridgeMessageOutputRepresentation';
|
|
1844
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
1845
1845
|
const input_files = input.files;
|
|
1846
1846
|
const input_files_id = path.fullPath + '__files';
|
|
1847
1847
|
for (let i = 0; i < input_files.length; i++) {
|
|
1848
1848
|
const input_files_item = input_files[i];
|
|
1849
1849
|
let input_files_item_id = input_files_id + '__' + i;
|
|
1850
|
-
input_files[i] = ingest$
|
|
1850
|
+
input_files[i] = ingest$d(input_files_item, {
|
|
1851
1851
|
fullPath: input_files_item_id,
|
|
1852
1852
|
propertyName: i,
|
|
1853
1853
|
parent: {
|
|
@@ -1860,11 +1860,11 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
1860
1860
|
}
|
|
1861
1861
|
return input;
|
|
1862
1862
|
}
|
|
1863
|
-
const select$
|
|
1864
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
1863
|
+
const select$s = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
1864
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$x();
|
|
1865
1865
|
return {
|
|
1866
1866
|
kind: 'Fragment',
|
|
1867
|
-
version: VERSION$
|
|
1867
|
+
version: VERSION$c,
|
|
1868
1868
|
private: [],
|
|
1869
1869
|
selections: [
|
|
1870
1870
|
{
|
|
@@ -1881,7 +1881,7 @@ const select$q = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
1881
1881
|
name: 'files',
|
|
1882
1882
|
kind: 'Link',
|
|
1883
1883
|
plural: true,
|
|
1884
|
-
fragment: select$
|
|
1884
|
+
fragment: select$t()
|
|
1885
1885
|
},
|
|
1886
1886
|
{
|
|
1887
1887
|
name: 'includesCustomEmoji',
|
|
@@ -1953,7 +1953,7 @@ const select$q = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
1953
1953
|
]
|
|
1954
1954
|
};
|
|
1955
1955
|
};
|
|
1956
|
-
function equals$
|
|
1956
|
+
function equals$c(existing, incoming) {
|
|
1957
1957
|
const existing_isBroadcast = existing.isBroadcast;
|
|
1958
1958
|
const incoming_isBroadcast = incoming.isBroadcast;
|
|
1959
1959
|
if (!(existing_isBroadcast === incoming_isBroadcast)) {
|
|
@@ -2047,7 +2047,7 @@ function equals$b(existing, incoming) {
|
|
|
2047
2047
|
const existing_reactions = existing.reactions;
|
|
2048
2048
|
const incoming_reactions = incoming.reactions;
|
|
2049
2049
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
2050
|
-
if (!(equals$
|
|
2050
|
+
if (!(equals$h(existing_reactions_item, incoming_reactions_item))) {
|
|
2051
2051
|
return false;
|
|
2052
2052
|
}
|
|
2053
2053
|
});
|
|
@@ -2086,34 +2086,34 @@ function equals$b(existing, incoming) {
|
|
|
2086
2086
|
}
|
|
2087
2087
|
return true;
|
|
2088
2088
|
}
|
|
2089
|
-
const ingest$
|
|
2089
|
+
const ingest$c = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2090
2090
|
if (process.env.NODE_ENV !== 'production') {
|
|
2091
|
-
const validateError = validate$
|
|
2091
|
+
const validateError = validate$c(input);
|
|
2092
2092
|
if (validateError !== null) {
|
|
2093
2093
|
throw validateError;
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
2096
|
const key = path.fullPath;
|
|
2097
2097
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2098
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2098
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$c, RepresentationType$c, equals$c);
|
|
2099
2099
|
return createLink(key);
|
|
2100
2100
|
};
|
|
2101
|
-
function getTypeCacheKeys$
|
|
2101
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
2102
2102
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2103
2103
|
const rootKey = fullPathFactory();
|
|
2104
2104
|
rootKeySet.set(rootKey, {
|
|
2105
2105
|
namespace: keyPrefix,
|
|
2106
|
-
representationName: RepresentationType$
|
|
2106
|
+
representationName: RepresentationType$c,
|
|
2107
2107
|
mergeable: false
|
|
2108
2108
|
});
|
|
2109
2109
|
const input_files_length = input.files.length;
|
|
2110
2110
|
for (let i = 0; i < input_files_length; i++) {
|
|
2111
|
-
getTypeCacheKeys$
|
|
2111
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.files[i]);
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
2114
|
|
|
2115
|
-
const VERSION$
|
|
2116
|
-
function validate$
|
|
2115
|
+
const VERSION$b = "5145ac2c241c561e4baa29b3884748dc";
|
|
2116
|
+
function validate$b(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
|
|
2117
2117
|
const v_error = (() => {
|
|
2118
2118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2119
2119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2164,14 +2164,14 @@ function validate$a(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
|
|
|
2164
2164
|
})();
|
|
2165
2165
|
return v_error === undefined ? null : v_error;
|
|
2166
2166
|
}
|
|
2167
|
-
const RepresentationType$
|
|
2168
|
-
function normalize$
|
|
2167
|
+
const RepresentationType$b = 'SlackBridgeConversationHistoryOutputRepresentation';
|
|
2168
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
2169
2169
|
const input_messages = input.messages;
|
|
2170
2170
|
const input_messages_id = path.fullPath + '__messages';
|
|
2171
2171
|
for (let i = 0; i < input_messages.length; i++) {
|
|
2172
2172
|
const input_messages_item = input_messages[i];
|
|
2173
2173
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
2174
|
-
input_messages[i] = ingest$
|
|
2174
|
+
input_messages[i] = ingest$c(input_messages_item, {
|
|
2175
2175
|
fullPath: input_messages_item_id,
|
|
2176
2176
|
propertyName: i,
|
|
2177
2177
|
parent: {
|
|
@@ -2184,10 +2184,10 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
return input;
|
|
2186
2186
|
}
|
|
2187
|
-
const select$
|
|
2187
|
+
const select$r = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
2188
2188
|
return {
|
|
2189
2189
|
kind: 'Fragment',
|
|
2190
|
-
version: VERSION$
|
|
2190
|
+
version: VERSION$b,
|
|
2191
2191
|
private: [],
|
|
2192
2192
|
selections: [
|
|
2193
2193
|
{
|
|
@@ -2198,7 +2198,7 @@ const select$p = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
2198
2198
|
name: 'messages',
|
|
2199
2199
|
kind: 'Link',
|
|
2200
2200
|
plural: true,
|
|
2201
|
-
fragment: select$
|
|
2201
|
+
fragment: select$s()
|
|
2202
2202
|
},
|
|
2203
2203
|
{
|
|
2204
2204
|
name: 'nextCursor',
|
|
@@ -2207,7 +2207,7 @@ const select$p = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
2207
2207
|
]
|
|
2208
2208
|
};
|
|
2209
2209
|
};
|
|
2210
|
-
function equals$
|
|
2210
|
+
function equals$b(existing, incoming) {
|
|
2211
2211
|
const existing_hasMore = existing.hasMore;
|
|
2212
2212
|
const incoming_hasMore = incoming.hasMore;
|
|
2213
2213
|
if (!(existing_hasMore === incoming_hasMore)) {
|
|
@@ -2230,34 +2230,34 @@ function equals$a(existing, incoming) {
|
|
|
2230
2230
|
}
|
|
2231
2231
|
return true;
|
|
2232
2232
|
}
|
|
2233
|
-
const ingest$
|
|
2233
|
+
const ingest$b = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2234
2234
|
if (process.env.NODE_ENV !== 'production') {
|
|
2235
|
-
const validateError = validate$
|
|
2235
|
+
const validateError = validate$b(input);
|
|
2236
2236
|
if (validateError !== null) {
|
|
2237
2237
|
throw validateError;
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
2240
2240
|
const key = path.fullPath;
|
|
2241
2241
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2242
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2242
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$b, RepresentationType$b, equals$b);
|
|
2243
2243
|
return createLink(key);
|
|
2244
2244
|
};
|
|
2245
|
-
function getTypeCacheKeys$
|
|
2245
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
2246
2246
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2247
2247
|
const rootKey = fullPathFactory();
|
|
2248
2248
|
rootKeySet.set(rootKey, {
|
|
2249
2249
|
namespace: keyPrefix,
|
|
2250
|
-
representationName: RepresentationType$
|
|
2250
|
+
representationName: RepresentationType$b,
|
|
2251
2251
|
mergeable: false
|
|
2252
2252
|
});
|
|
2253
2253
|
const input_messages_length = input.messages.length;
|
|
2254
2254
|
for (let i = 0; i < input_messages_length; i++) {
|
|
2255
|
-
getTypeCacheKeys$
|
|
2255
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.messages[i], () => '');
|
|
2256
2256
|
}
|
|
2257
2257
|
}
|
|
2258
2258
|
|
|
2259
|
-
const VERSION$
|
|
2260
|
-
function validate$
|
|
2259
|
+
const VERSION$a = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
2260
|
+
function validate$a(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
2261
2261
|
const v_error = (() => {
|
|
2262
2262
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2263
2263
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2401,12 +2401,12 @@ function validate$9(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
2401
2401
|
})();
|
|
2402
2402
|
return v_error === undefined ? null : v_error;
|
|
2403
2403
|
}
|
|
2404
|
-
const RepresentationType$
|
|
2405
|
-
function normalize$
|
|
2404
|
+
const RepresentationType$a = 'SlackBridgeConversationOutputRepresentation';
|
|
2405
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
2406
2406
|
const input_contextUserInfo = input.contextUserInfo;
|
|
2407
2407
|
const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
|
|
2408
2408
|
if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
|
|
2409
|
-
input.contextUserInfo = ingest$
|
|
2409
|
+
input.contextUserInfo = ingest$f(input_contextUserInfo, {
|
|
2410
2410
|
fullPath: input_contextUserInfo_id,
|
|
2411
2411
|
propertyName: 'contextUserInfo',
|
|
2412
2412
|
parent: {
|
|
@@ -2420,7 +2420,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
2420
2420
|
const input_conversationInfo = input.conversationInfo;
|
|
2421
2421
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
2422
2422
|
if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
|
|
2423
|
-
input.conversationInfo = ingest$
|
|
2423
|
+
input.conversationInfo = ingest$e(input_conversationInfo, {
|
|
2424
2424
|
fullPath: input_conversationInfo_id,
|
|
2425
2425
|
propertyName: 'conversationInfo',
|
|
2426
2426
|
parent: {
|
|
@@ -2433,7 +2433,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
2433
2433
|
}
|
|
2434
2434
|
const input_history = input.history;
|
|
2435
2435
|
const input_history_id = path.fullPath + '__history';
|
|
2436
|
-
input.history = ingest$
|
|
2436
|
+
input.history = ingest$b(input_history, {
|
|
2437
2437
|
fullPath: input_history_id,
|
|
2438
2438
|
propertyName: 'history',
|
|
2439
2439
|
parent: {
|
|
@@ -2448,7 +2448,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
2448
2448
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
2449
2449
|
const input_userInfos_item = input_userInfos[i];
|
|
2450
2450
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
2451
|
-
input_userInfos[i] = ingest$
|
|
2451
|
+
input_userInfos[i] = ingest$f(input_userInfos_item, {
|
|
2452
2452
|
fullPath: input_userInfos_item_id,
|
|
2453
2453
|
propertyName: i,
|
|
2454
2454
|
parent: {
|
|
@@ -2461,10 +2461,10 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
return input;
|
|
2463
2463
|
}
|
|
2464
|
-
const select$
|
|
2464
|
+
const select$q = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
2465
2465
|
return {
|
|
2466
2466
|
kind: 'Fragment',
|
|
2467
|
-
version: VERSION$
|
|
2467
|
+
version: VERSION$a,
|
|
2468
2468
|
private: [],
|
|
2469
2469
|
selections: [
|
|
2470
2470
|
{
|
|
@@ -2479,18 +2479,18 @@ const select$o = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
2479
2479
|
name: 'contextUserInfo',
|
|
2480
2480
|
kind: 'Link',
|
|
2481
2481
|
nullable: true,
|
|
2482
|
-
fragment: select$
|
|
2482
|
+
fragment: select$z()
|
|
2483
2483
|
},
|
|
2484
2484
|
{
|
|
2485
2485
|
name: 'conversationInfo',
|
|
2486
2486
|
kind: 'Link',
|
|
2487
2487
|
nullable: true,
|
|
2488
|
-
fragment: select$
|
|
2488
|
+
fragment: select$y()
|
|
2489
2489
|
},
|
|
2490
2490
|
{
|
|
2491
2491
|
name: 'history',
|
|
2492
2492
|
kind: 'Link',
|
|
2493
|
-
fragment: select$
|
|
2493
|
+
fragment: select$r()
|
|
2494
2494
|
},
|
|
2495
2495
|
{
|
|
2496
2496
|
name: 'teamId',
|
|
@@ -2504,7 +2504,7 @@ const select$o = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
2504
2504
|
name: 'userInfos',
|
|
2505
2505
|
kind: 'Link',
|
|
2506
2506
|
plural: true,
|
|
2507
|
-
fragment: select$
|
|
2507
|
+
fragment: select$z()
|
|
2508
2508
|
},
|
|
2509
2509
|
{
|
|
2510
2510
|
name: 'websocketUrl',
|
|
@@ -2513,7 +2513,7 @@ const select$o = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
2513
2513
|
]
|
|
2514
2514
|
};
|
|
2515
2515
|
};
|
|
2516
|
-
function equals$
|
|
2516
|
+
function equals$a(existing, incoming) {
|
|
2517
2517
|
const existing_channelId = existing.channelId;
|
|
2518
2518
|
const incoming_channelId = incoming.channelId;
|
|
2519
2519
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -2576,55 +2576,55 @@ function equals$9(existing, incoming) {
|
|
|
2576
2576
|
}
|
|
2577
2577
|
return true;
|
|
2578
2578
|
}
|
|
2579
|
-
const ingest$
|
|
2579
|
+
const ingest$a = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2580
2580
|
if (process.env.NODE_ENV !== 'production') {
|
|
2581
|
-
const validateError = validate$
|
|
2581
|
+
const validateError = validate$a(input);
|
|
2582
2582
|
if (validateError !== null) {
|
|
2583
2583
|
throw validateError;
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
2586
2586
|
const key = path.fullPath;
|
|
2587
2587
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2588
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2588
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
|
|
2589
2589
|
return createLink(key);
|
|
2590
2590
|
};
|
|
2591
|
-
function getTypeCacheKeys$
|
|
2591
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
2592
2592
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2593
2593
|
const rootKey = fullPathFactory();
|
|
2594
2594
|
rootKeySet.set(rootKey, {
|
|
2595
2595
|
namespace: keyPrefix,
|
|
2596
|
-
representationName: RepresentationType$
|
|
2596
|
+
representationName: RepresentationType$a,
|
|
2597
2597
|
mergeable: false
|
|
2598
2598
|
});
|
|
2599
2599
|
if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
|
|
2600
|
-
getTypeCacheKeys$
|
|
2600
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.contextUserInfo);
|
|
2601
2601
|
}
|
|
2602
2602
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
2603
|
-
getTypeCacheKeys$
|
|
2603
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
2604
2604
|
}
|
|
2605
|
-
getTypeCacheKeys$
|
|
2605
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
2606
2606
|
const input_userInfos_length = input.userInfos.length;
|
|
2607
2607
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
2608
|
-
getTypeCacheKeys$
|
|
2608
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.userInfos[i]);
|
|
2609
2609
|
}
|
|
2610
2610
|
}
|
|
2611
2611
|
|
|
2612
|
-
function select$
|
|
2613
|
-
return select$
|
|
2612
|
+
function select$p(luvio, params) {
|
|
2613
|
+
return select$q();
|
|
2614
2614
|
}
|
|
2615
|
-
function keyBuilder$
|
|
2615
|
+
function keyBuilder$r(luvio, params) {
|
|
2616
2616
|
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 + ')';
|
|
2617
2617
|
}
|
|
2618
|
-
function getResponseCacheKeys$
|
|
2619
|
-
getTypeCacheKeys$
|
|
2618
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
2619
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$r(luvio, resourceParams));
|
|
2620
2620
|
}
|
|
2621
|
-
function ingestSuccess$
|
|
2621
|
+
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
2622
2622
|
const { body } = response;
|
|
2623
|
-
const key = keyBuilder$
|
|
2624
|
-
luvio.storeIngest(key, ingest$
|
|
2623
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
2624
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
2625
2625
|
const snapshot = luvio.storeLookup({
|
|
2626
2626
|
recordId: key,
|
|
2627
|
-
node: select$
|
|
2627
|
+
node: select$p(),
|
|
2628
2628
|
variables: {},
|
|
2629
2629
|
}, snapshotRefresh);
|
|
2630
2630
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2636,12 +2636,12 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2636
2636
|
return snapshot;
|
|
2637
2637
|
}
|
|
2638
2638
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
2639
|
-
const key = keyBuilder$
|
|
2639
|
+
const key = keyBuilder$r(luvio, params);
|
|
2640
2640
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2641
2641
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2642
2642
|
return errorSnapshot;
|
|
2643
2643
|
}
|
|
2644
|
-
function createResourceRequest$
|
|
2644
|
+
function createResourceRequest$i(config) {
|
|
2645
2645
|
const headers = {};
|
|
2646
2646
|
return {
|
|
2647
2647
|
baseUri: '/services/data/v64.0',
|
|
@@ -2655,7 +2655,7 @@ function createResourceRequest$h(config) {
|
|
|
2655
2655
|
};
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
|
-
const adapterName$
|
|
2658
|
+
const adapterName$i = 'getSlackConversation';
|
|
2659
2659
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
2660
2660
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2661
2661
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -2667,56 +2667,56 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
2667
2667
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2668
2668
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2669
2669
|
];
|
|
2670
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2671
|
-
const createResourceParams$
|
|
2672
|
-
function keyBuilder$
|
|
2673
|
-
const resourceParams = createResourceParams$
|
|
2674
|
-
return keyBuilder$
|
|
2670
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getSlackConversation_ConfigPropertyMetadata);
|
|
2671
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$j(getSlackConversation_ConfigPropertyMetadata);
|
|
2672
|
+
function keyBuilder$q(luvio, config) {
|
|
2673
|
+
const resourceParams = createResourceParams$i(config);
|
|
2674
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
2675
2675
|
}
|
|
2676
|
-
function typeCheckConfig$
|
|
2676
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
2677
2677
|
const config = {};
|
|
2678
|
-
typeCheckConfig$
|
|
2678
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
2679
2679
|
return config;
|
|
2680
2680
|
}
|
|
2681
|
-
function validateAdapterConfig$
|
|
2681
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
2682
2682
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2683
2683
|
return null;
|
|
2684
2684
|
}
|
|
2685
2685
|
if (process.env.NODE_ENV !== 'production') {
|
|
2686
2686
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2687
2687
|
}
|
|
2688
|
-
const config = typeCheckConfig$
|
|
2688
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
2689
2689
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2690
2690
|
return null;
|
|
2691
2691
|
}
|
|
2692
2692
|
return config;
|
|
2693
2693
|
}
|
|
2694
2694
|
function adapterFragment$8(luvio, config) {
|
|
2695
|
-
createResourceParams$
|
|
2696
|
-
return select$
|
|
2695
|
+
createResourceParams$i(config);
|
|
2696
|
+
return select$p();
|
|
2697
2697
|
}
|
|
2698
2698
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
2699
|
-
const snapshot = ingestSuccess$
|
|
2699
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
2700
2700
|
config,
|
|
2701
|
-
resolve: () => buildNetworkSnapshot$
|
|
2701
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
2702
2702
|
});
|
|
2703
2703
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2704
2704
|
}
|
|
2705
2705
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
2706
2706
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
2707
2707
|
config,
|
|
2708
|
-
resolve: () => buildNetworkSnapshot$
|
|
2708
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
2709
2709
|
});
|
|
2710
2710
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2711
2711
|
}
|
|
2712
|
-
function buildNetworkSnapshot$
|
|
2713
|
-
const resourceParams = createResourceParams$
|
|
2714
|
-
const request = createResourceRequest$
|
|
2712
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
2713
|
+
const resourceParams = createResourceParams$i(config);
|
|
2714
|
+
const request = createResourceRequest$i(resourceParams);
|
|
2715
2715
|
return luvio.dispatchResourceRequest(request, options)
|
|
2716
2716
|
.then((response) => {
|
|
2717
2717
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
2718
2718
|
const cache = new StoreKeyMap();
|
|
2719
|
-
getResponseCacheKeys$
|
|
2719
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
2720
2720
|
return cache;
|
|
2721
2721
|
});
|
|
2722
2722
|
}, (response) => {
|
|
@@ -2724,23 +2724,23 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
2724
2724
|
});
|
|
2725
2725
|
}
|
|
2726
2726
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
2727
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2727
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
2728
2728
|
}
|
|
2729
2729
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
2730
2730
|
const { luvio, config } = context;
|
|
2731
2731
|
const selector = {
|
|
2732
|
-
recordId: keyBuilder$
|
|
2732
|
+
recordId: keyBuilder$q(luvio, config),
|
|
2733
2733
|
node: adapterFragment$8(luvio, config),
|
|
2734
2734
|
variables: {},
|
|
2735
2735
|
};
|
|
2736
2736
|
const cacheSnapshot = storeLookup(selector, {
|
|
2737
2737
|
config,
|
|
2738
|
-
resolve: () => buildNetworkSnapshot$
|
|
2738
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions)
|
|
2739
2739
|
});
|
|
2740
2740
|
return cacheSnapshot;
|
|
2741
2741
|
}
|
|
2742
2742
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
2743
|
-
const config = validateAdapterConfig$
|
|
2743
|
+
const config = validateAdapterConfig$i(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
2744
2744
|
// Invalid or incomplete config
|
|
2745
2745
|
if (config === null) {
|
|
2746
2746
|
return null;
|
|
@@ -2749,8 +2749,8 @@ const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getS
|
|
|
2749
2749
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
2750
2750
|
};
|
|
2751
2751
|
|
|
2752
|
-
const VERSION$
|
|
2753
|
-
function validate$
|
|
2752
|
+
const VERSION$9 = "769b5b0ed94219341e9be74c08e63aed";
|
|
2753
|
+
function validate$9(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
2754
2754
|
const v_error = (() => {
|
|
2755
2755
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2756
2756
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2773,20 +2773,20 @@ function validate$8(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
|
2773
2773
|
})();
|
|
2774
2774
|
return v_error === undefined ? null : v_error;
|
|
2775
2775
|
}
|
|
2776
|
-
const RepresentationType$
|
|
2777
|
-
function keyBuilder$
|
|
2778
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2776
|
+
const RepresentationType$9 = 'SlackBridgePostMessageOutputRepresentation';
|
|
2777
|
+
function keyBuilder$p(luvio, config) {
|
|
2778
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.channelId;
|
|
2779
2779
|
}
|
|
2780
|
-
function keyBuilderFromType$
|
|
2780
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
2781
2781
|
const keyParams = {
|
|
2782
2782
|
channelId: object.channelId
|
|
2783
2783
|
};
|
|
2784
|
-
return keyBuilder$
|
|
2784
|
+
return keyBuilder$p(luvio, keyParams);
|
|
2785
2785
|
}
|
|
2786
|
-
function normalize$
|
|
2786
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
2787
2787
|
const input_postedMessage = input.postedMessage;
|
|
2788
2788
|
const input_postedMessage_id = path.fullPath + '__postedMessage';
|
|
2789
|
-
input.postedMessage = ingest$
|
|
2789
|
+
input.postedMessage = ingest$c(input_postedMessage, {
|
|
2790
2790
|
fullPath: input_postedMessage_id,
|
|
2791
2791
|
propertyName: 'postedMessage',
|
|
2792
2792
|
parent: {
|
|
@@ -2798,10 +2798,10 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
2798
2798
|
}, luvio, store, timestamp);
|
|
2799
2799
|
return input;
|
|
2800
2800
|
}
|
|
2801
|
-
const select$
|
|
2801
|
+
const select$o = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
2802
2802
|
return {
|
|
2803
2803
|
kind: 'Fragment',
|
|
2804
|
-
version: VERSION$
|
|
2804
|
+
version: VERSION$9,
|
|
2805
2805
|
private: [],
|
|
2806
2806
|
selections: [
|
|
2807
2807
|
{
|
|
@@ -2811,7 +2811,7 @@ const select$m = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
2811
2811
|
{
|
|
2812
2812
|
name: 'postedMessage',
|
|
2813
2813
|
kind: 'Link',
|
|
2814
|
-
fragment: select$
|
|
2814
|
+
fragment: select$s()
|
|
2815
2815
|
},
|
|
2816
2816
|
{
|
|
2817
2817
|
name: 'timestamp',
|
|
@@ -2820,7 +2820,7 @@ const select$m = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
2820
2820
|
]
|
|
2821
2821
|
};
|
|
2822
2822
|
};
|
|
2823
|
-
function equals$
|
|
2823
|
+
function equals$9(existing, incoming) {
|
|
2824
2824
|
const existing_channelId = existing.channelId;
|
|
2825
2825
|
const incoming_channelId = incoming.channelId;
|
|
2826
2826
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -2838,42 +2838,42 @@ function equals$8(existing, incoming) {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
return true;
|
|
2840
2840
|
}
|
|
2841
|
-
const ingest$
|
|
2841
|
+
const ingest$9 = function SlackBridgePostMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2842
2842
|
if (process.env.NODE_ENV !== 'production') {
|
|
2843
|
-
const validateError = validate$
|
|
2843
|
+
const validateError = validate$9(input);
|
|
2844
2844
|
if (validateError !== null) {
|
|
2845
2845
|
throw validateError;
|
|
2846
2846
|
}
|
|
2847
2847
|
}
|
|
2848
|
-
const key = keyBuilderFromType$
|
|
2848
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
2849
2849
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2850
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2850
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
|
|
2851
2851
|
return createLink(key);
|
|
2852
2852
|
};
|
|
2853
|
-
function getTypeCacheKeys$
|
|
2853
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
2854
2854
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2855
|
-
const rootKey = keyBuilderFromType$
|
|
2855
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
2856
2856
|
rootKeySet.set(rootKey, {
|
|
2857
2857
|
namespace: keyPrefix,
|
|
2858
|
-
representationName: RepresentationType$
|
|
2858
|
+
representationName: RepresentationType$9,
|
|
2859
2859
|
mergeable: false
|
|
2860
2860
|
});
|
|
2861
|
-
getTypeCacheKeys$
|
|
2861
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
2862
2862
|
}
|
|
2863
2863
|
|
|
2864
|
-
function select$
|
|
2865
|
-
return select$
|
|
2864
|
+
function select$n(luvio, params) {
|
|
2865
|
+
return select$o();
|
|
2866
2866
|
}
|
|
2867
|
-
function getResponseCacheKeys$
|
|
2868
|
-
getTypeCacheKeys$
|
|
2867
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
2868
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
2869
2869
|
}
|
|
2870
|
-
function ingestSuccess$
|
|
2870
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
2871
2871
|
const { body } = response;
|
|
2872
|
-
const key = keyBuilderFromType$
|
|
2873
|
-
luvio.storeIngest(key, ingest$
|
|
2872
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
2873
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
2874
2874
|
const snapshot = luvio.storeLookup({
|
|
2875
2875
|
recordId: key,
|
|
2876
|
-
node: select$
|
|
2876
|
+
node: select$n(),
|
|
2877
2877
|
variables: {},
|
|
2878
2878
|
});
|
|
2879
2879
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2884,7 +2884,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
2884
2884
|
deepFreeze(snapshot.data);
|
|
2885
2885
|
return snapshot;
|
|
2886
2886
|
}
|
|
2887
|
-
function createResourceRequest$
|
|
2887
|
+
function createResourceRequest$h(config) {
|
|
2888
2888
|
const headers = {};
|
|
2889
2889
|
return {
|
|
2890
2890
|
baseUri: '/services/data/v64.0',
|
|
@@ -2898,7 +2898,7 @@ function createResourceRequest$g(config) {
|
|
|
2898
2898
|
};
|
|
2899
2899
|
}
|
|
2900
2900
|
|
|
2901
|
-
const adapterName$
|
|
2901
|
+
const adapterName$h = 'postSlackConversation';
|
|
2902
2902
|
const postSlackConversation_ConfigPropertyMetadata = [
|
|
2903
2903
|
generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
|
|
2904
2904
|
generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -2907,37 +2907,37 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
2907
2907
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
2908
2908
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
2909
2909
|
];
|
|
2910
|
-
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2911
|
-
const createResourceParams$
|
|
2912
|
-
function typeCheckConfig$
|
|
2910
|
+
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, postSlackConversation_ConfigPropertyMetadata);
|
|
2911
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$j(postSlackConversation_ConfigPropertyMetadata);
|
|
2912
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
2913
2913
|
const config = {};
|
|
2914
|
-
typeCheckConfig$
|
|
2914
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
2915
2915
|
return config;
|
|
2916
2916
|
}
|
|
2917
|
-
function validateAdapterConfig$
|
|
2917
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
2918
2918
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2919
2919
|
return null;
|
|
2920
2920
|
}
|
|
2921
2921
|
if (process.env.NODE_ENV !== 'production') {
|
|
2922
2922
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2923
2923
|
}
|
|
2924
|
-
const config = typeCheckConfig$
|
|
2924
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
2925
2925
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2926
2926
|
return null;
|
|
2927
2927
|
}
|
|
2928
2928
|
return config;
|
|
2929
2929
|
}
|
|
2930
|
-
function buildNetworkSnapshot$
|
|
2931
|
-
const resourceParams = createResourceParams$
|
|
2932
|
-
const request = createResourceRequest$
|
|
2930
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
2931
|
+
const resourceParams = createResourceParams$h(config);
|
|
2932
|
+
const request = createResourceRequest$h(resourceParams);
|
|
2933
2933
|
return luvio.dispatchResourceRequest(request, options)
|
|
2934
2934
|
.then((response) => {
|
|
2935
2935
|
return luvio.handleSuccessResponse(() => {
|
|
2936
|
-
const snapshot = ingestSuccess$
|
|
2936
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
2937
2937
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2938
2938
|
}, () => {
|
|
2939
2939
|
const cache = new StoreKeyMap();
|
|
2940
|
-
getResponseCacheKeys$
|
|
2940
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
2941
2941
|
return cache;
|
|
2942
2942
|
});
|
|
2943
2943
|
}, (response) => {
|
|
@@ -2947,28 +2947,28 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
2947
2947
|
}
|
|
2948
2948
|
const postSlackConversationAdapterFactory = (luvio) => {
|
|
2949
2949
|
return function postSlackConversation(untrustedConfig) {
|
|
2950
|
-
const config = validateAdapterConfig$
|
|
2950
|
+
const config = validateAdapterConfig$h(untrustedConfig, postSlackConversation_ConfigPropertyNames);
|
|
2951
2951
|
// Invalid or incomplete config
|
|
2952
2952
|
if (config === null) {
|
|
2953
2953
|
throw new Error('Invalid config for "postSlackConversation"');
|
|
2954
2954
|
}
|
|
2955
|
-
return buildNetworkSnapshot$
|
|
2955
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
2956
2956
|
};
|
|
2957
2957
|
};
|
|
2958
2958
|
|
|
2959
|
-
function select$
|
|
2960
|
-
return select$
|
|
2959
|
+
function select$m(luvio, params) {
|
|
2960
|
+
return select$t();
|
|
2961
2961
|
}
|
|
2962
|
-
function getResponseCacheKeys$
|
|
2963
|
-
getTypeCacheKeys$
|
|
2962
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
2963
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
2964
2964
|
}
|
|
2965
|
-
function ingestSuccess$
|
|
2965
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
2966
2966
|
const { body } = response;
|
|
2967
|
-
const key = keyBuilderFromType$
|
|
2968
|
-
luvio.storeIngest(key, ingest$
|
|
2967
|
+
const key = keyBuilderFromType$7(luvio, body);
|
|
2968
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
2969
2969
|
const snapshot = luvio.storeLookup({
|
|
2970
2970
|
recordId: key,
|
|
2971
|
-
node: select$
|
|
2971
|
+
node: select$m(),
|
|
2972
2972
|
variables: {},
|
|
2973
2973
|
});
|
|
2974
2974
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2979,7 +2979,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
2979
2979
|
deepFreeze(snapshot.data);
|
|
2980
2980
|
return snapshot;
|
|
2981
2981
|
}
|
|
2982
|
-
function createResourceRequest$
|
|
2982
|
+
function createResourceRequest$g(config) {
|
|
2983
2983
|
const headers = {};
|
|
2984
2984
|
return {
|
|
2985
2985
|
baseUri: '/services/data/v64.0',
|
|
@@ -2993,7 +2993,7 @@ function createResourceRequest$f(config) {
|
|
|
2993
2993
|
};
|
|
2994
2994
|
}
|
|
2995
2995
|
|
|
2996
|
-
const adapterName$
|
|
2996
|
+
const adapterName$g = 'postSlackFile';
|
|
2997
2997
|
const postSlackFile_ConfigPropertyMetadata = [
|
|
2998
2998
|
generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
|
|
2999
2999
|
generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
|
|
@@ -3004,37 +3004,37 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
3004
3004
|
generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
|
|
3005
3005
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
3006
3006
|
];
|
|
3007
|
-
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3008
|
-
const createResourceParams$
|
|
3009
|
-
function typeCheckConfig$
|
|
3007
|
+
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, postSlackFile_ConfigPropertyMetadata);
|
|
3008
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$j(postSlackFile_ConfigPropertyMetadata);
|
|
3009
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
3010
3010
|
const config = {};
|
|
3011
|
-
typeCheckConfig$
|
|
3011
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
3012
3012
|
return config;
|
|
3013
3013
|
}
|
|
3014
|
-
function validateAdapterConfig$
|
|
3014
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
3015
3015
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3016
3016
|
return null;
|
|
3017
3017
|
}
|
|
3018
3018
|
if (process.env.NODE_ENV !== 'production') {
|
|
3019
3019
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3020
3020
|
}
|
|
3021
|
-
const config = typeCheckConfig$
|
|
3021
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
3022
3022
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3023
3023
|
return null;
|
|
3024
3024
|
}
|
|
3025
3025
|
return config;
|
|
3026
3026
|
}
|
|
3027
|
-
function buildNetworkSnapshot$
|
|
3028
|
-
const resourceParams = createResourceParams$
|
|
3029
|
-
const request = createResourceRequest$
|
|
3027
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
3028
|
+
const resourceParams = createResourceParams$g(config);
|
|
3029
|
+
const request = createResourceRequest$g(resourceParams);
|
|
3030
3030
|
return luvio.dispatchResourceRequest(request, options)
|
|
3031
3031
|
.then((response) => {
|
|
3032
3032
|
return luvio.handleSuccessResponse(() => {
|
|
3033
|
-
const snapshot = ingestSuccess$
|
|
3033
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
3034
3034
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3035
3035
|
}, () => {
|
|
3036
3036
|
const cache = new StoreKeyMap();
|
|
3037
|
-
getResponseCacheKeys$
|
|
3037
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
3038
3038
|
return cache;
|
|
3039
3039
|
});
|
|
3040
3040
|
}, (response) => {
|
|
@@ -3044,17 +3044,17 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
3044
3044
|
}
|
|
3045
3045
|
const postSlackFileAdapterFactory = (luvio) => {
|
|
3046
3046
|
return function postSlackFile(untrustedConfig) {
|
|
3047
|
-
const config = validateAdapterConfig$
|
|
3047
|
+
const config = validateAdapterConfig$g(untrustedConfig, postSlackFile_ConfigPropertyNames);
|
|
3048
3048
|
// Invalid or incomplete config
|
|
3049
3049
|
if (config === null) {
|
|
3050
3050
|
throw new Error('Invalid config for "postSlackFile"');
|
|
3051
3051
|
}
|
|
3052
|
-
return buildNetworkSnapshot$
|
|
3052
|
+
return buildNetworkSnapshot$g(luvio, config);
|
|
3053
3053
|
};
|
|
3054
3054
|
};
|
|
3055
3055
|
|
|
3056
|
-
const VERSION$
|
|
3057
|
-
function validate$
|
|
3056
|
+
const VERSION$8 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
3057
|
+
function validate$8(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
3058
3058
|
const v_error = (() => {
|
|
3059
3059
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3060
3060
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3077,20 +3077,20 @@ function validate$7(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
3077
3077
|
})();
|
|
3078
3078
|
return v_error === undefined ? null : v_error;
|
|
3079
3079
|
}
|
|
3080
|
-
const RepresentationType$
|
|
3081
|
-
function keyBuilder$
|
|
3082
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3080
|
+
const RepresentationType$8 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
3081
|
+
function keyBuilder$o(luvio, config) {
|
|
3082
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.relatedRecordId;
|
|
3083
3083
|
}
|
|
3084
|
-
function keyBuilderFromType$
|
|
3084
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
3085
3085
|
const keyParams = {
|
|
3086
3086
|
relatedRecordId: object.relatedRecordId
|
|
3087
3087
|
};
|
|
3088
|
-
return keyBuilder$
|
|
3088
|
+
return keyBuilder$o(luvio, keyParams);
|
|
3089
3089
|
}
|
|
3090
|
-
function normalize$
|
|
3090
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
3091
3091
|
const input_conversationInfo = input.conversationInfo;
|
|
3092
3092
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
3093
|
-
input.conversationInfo = ingest$
|
|
3093
|
+
input.conversationInfo = ingest$e(input_conversationInfo, {
|
|
3094
3094
|
fullPath: input_conversationInfo_id,
|
|
3095
3095
|
propertyName: 'conversationInfo',
|
|
3096
3096
|
parent: {
|
|
@@ -3102,16 +3102,16 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
3102
3102
|
}, luvio, store, timestamp);
|
|
3103
3103
|
return input;
|
|
3104
3104
|
}
|
|
3105
|
-
const select$
|
|
3105
|
+
const select$l = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
3106
3106
|
return {
|
|
3107
3107
|
kind: 'Fragment',
|
|
3108
|
-
version: VERSION$
|
|
3108
|
+
version: VERSION$8,
|
|
3109
3109
|
private: [],
|
|
3110
3110
|
selections: [
|
|
3111
3111
|
{
|
|
3112
3112
|
name: 'conversationInfo',
|
|
3113
3113
|
kind: 'Link',
|
|
3114
|
-
fragment: select$
|
|
3114
|
+
fragment: select$y()
|
|
3115
3115
|
},
|
|
3116
3116
|
{
|
|
3117
3117
|
name: 'relatedRecordId',
|
|
@@ -3124,7 +3124,7 @@ const select$j = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
3124
3124
|
]
|
|
3125
3125
|
};
|
|
3126
3126
|
};
|
|
3127
|
-
function equals$
|
|
3127
|
+
function equals$8(existing, incoming) {
|
|
3128
3128
|
const existing_relatedRecordId = existing.relatedRecordId;
|
|
3129
3129
|
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
3130
3130
|
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
@@ -3142,42 +3142,42 @@ function equals$7(existing, incoming) {
|
|
|
3142
3142
|
}
|
|
3143
3143
|
return true;
|
|
3144
3144
|
}
|
|
3145
|
-
const ingest$
|
|
3145
|
+
const ingest$8 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3146
3146
|
if (process.env.NODE_ENV !== 'production') {
|
|
3147
|
-
const validateError = validate$
|
|
3147
|
+
const validateError = validate$8(input);
|
|
3148
3148
|
if (validateError !== null) {
|
|
3149
3149
|
throw validateError;
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
|
-
const key = keyBuilderFromType$
|
|
3152
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
3153
3153
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3154
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3154
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
|
|
3155
3155
|
return createLink(key);
|
|
3156
3156
|
};
|
|
3157
|
-
function getTypeCacheKeys$
|
|
3157
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
3158
3158
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3159
|
-
const rootKey = keyBuilderFromType$
|
|
3159
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
3160
3160
|
rootKeySet.set(rootKey, {
|
|
3161
3161
|
namespace: keyPrefix,
|
|
3162
|
-
representationName: RepresentationType$
|
|
3162
|
+
representationName: RepresentationType$8,
|
|
3163
3163
|
mergeable: false
|
|
3164
3164
|
});
|
|
3165
|
-
getTypeCacheKeys$
|
|
3165
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
3166
3166
|
}
|
|
3167
3167
|
|
|
3168
|
-
function select$
|
|
3169
|
-
return select$
|
|
3168
|
+
function select$k(luvio, params) {
|
|
3169
|
+
return select$l();
|
|
3170
3170
|
}
|
|
3171
|
-
function getResponseCacheKeys$
|
|
3172
|
-
getTypeCacheKeys$
|
|
3171
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
3172
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
3173
3173
|
}
|
|
3174
|
-
function ingestSuccess$
|
|
3174
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
3175
3175
|
const { body } = response;
|
|
3176
|
-
const key = keyBuilderFromType$
|
|
3177
|
-
luvio.storeIngest(key, ingest$
|
|
3176
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
3177
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3178
3178
|
const snapshot = luvio.storeLookup({
|
|
3179
3179
|
recordId: key,
|
|
3180
|
-
node: select$
|
|
3180
|
+
node: select$k(),
|
|
3181
3181
|
variables: {},
|
|
3182
3182
|
});
|
|
3183
3183
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3188,7 +3188,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
3188
3188
|
deepFreeze(snapshot.data);
|
|
3189
3189
|
return snapshot;
|
|
3190
3190
|
}
|
|
3191
|
-
function createResourceRequest$
|
|
3191
|
+
function createResourceRequest$f(config) {
|
|
3192
3192
|
const headers = {};
|
|
3193
3193
|
return {
|
|
3194
3194
|
baseUri: '/services/data/v64.0',
|
|
@@ -3202,16 +3202,16 @@ function createResourceRequest$e(config) {
|
|
|
3202
3202
|
};
|
|
3203
3203
|
}
|
|
3204
3204
|
|
|
3205
|
-
const adapterName$
|
|
3205
|
+
const adapterName$f = 'postSlackRecordChannelInfos';
|
|
3206
3206
|
const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
3207
3207
|
generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3208
3208
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
3209
3209
|
];
|
|
3210
|
-
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3211
|
-
const createResourceParams$
|
|
3212
|
-
function typeCheckConfig$
|
|
3210
|
+
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
3211
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$j(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
3212
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
3213
3213
|
const config = {};
|
|
3214
|
-
typeCheckConfig$
|
|
3214
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
3215
3215
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
3216
3216
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
3217
3217
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -3225,30 +3225,30 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
return config;
|
|
3227
3227
|
}
|
|
3228
|
-
function validateAdapterConfig$
|
|
3228
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
3229
3229
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3230
3230
|
return null;
|
|
3231
3231
|
}
|
|
3232
3232
|
if (process.env.NODE_ENV !== 'production') {
|
|
3233
3233
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3234
3234
|
}
|
|
3235
|
-
const config = typeCheckConfig$
|
|
3235
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
3236
3236
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3237
3237
|
return null;
|
|
3238
3238
|
}
|
|
3239
3239
|
return config;
|
|
3240
3240
|
}
|
|
3241
|
-
function buildNetworkSnapshot$
|
|
3242
|
-
const resourceParams = createResourceParams$
|
|
3243
|
-
const request = createResourceRequest$
|
|
3241
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
3242
|
+
const resourceParams = createResourceParams$f(config);
|
|
3243
|
+
const request = createResourceRequest$f(resourceParams);
|
|
3244
3244
|
return luvio.dispatchResourceRequest(request, options)
|
|
3245
3245
|
.then((response) => {
|
|
3246
3246
|
return luvio.handleSuccessResponse(() => {
|
|
3247
|
-
const snapshot = ingestSuccess$
|
|
3247
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
3248
3248
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3249
3249
|
}, () => {
|
|
3250
3250
|
const cache = new StoreKeyMap();
|
|
3251
|
-
getResponseCacheKeys$
|
|
3251
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
3252
3252
|
return cache;
|
|
3253
3253
|
});
|
|
3254
3254
|
}, (response) => {
|
|
@@ -3258,33 +3258,33 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
3258
3258
|
}
|
|
3259
3259
|
const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
|
|
3260
3260
|
return function postSlackRecordChannelInfos(untrustedConfig) {
|
|
3261
|
-
const config = validateAdapterConfig$
|
|
3261
|
+
const config = validateAdapterConfig$f(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
|
|
3262
3262
|
// Invalid or incomplete config
|
|
3263
3263
|
if (config === null) {
|
|
3264
3264
|
throw new Error('Invalid config for "postSlackRecordChannelInfos"');
|
|
3265
3265
|
}
|
|
3266
|
-
return buildNetworkSnapshot$
|
|
3266
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
3267
3267
|
};
|
|
3268
3268
|
};
|
|
3269
3269
|
|
|
3270
|
-
function select$
|
|
3271
|
-
return select$
|
|
3270
|
+
function select$j(luvio, params) {
|
|
3271
|
+
return select$l();
|
|
3272
3272
|
}
|
|
3273
|
-
function keyBuilder$
|
|
3274
|
-
return keyBuilder$
|
|
3273
|
+
function keyBuilder$n(luvio, params) {
|
|
3274
|
+
return keyBuilder$o(luvio, {
|
|
3275
3275
|
relatedRecordId: params.urlParams.relatedRecordId
|
|
3276
3276
|
});
|
|
3277
3277
|
}
|
|
3278
|
-
function getResponseCacheKeys$
|
|
3279
|
-
getTypeCacheKeys$
|
|
3278
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
3279
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
3280
3280
|
}
|
|
3281
|
-
function ingestSuccess$
|
|
3281
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
3282
3282
|
const { body } = response;
|
|
3283
|
-
const key = keyBuilder$
|
|
3284
|
-
luvio.storeIngest(key, ingest$
|
|
3283
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
3284
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
3285
3285
|
const snapshot = luvio.storeLookup({
|
|
3286
3286
|
recordId: key,
|
|
3287
|
-
node: select$
|
|
3287
|
+
node: select$j(),
|
|
3288
3288
|
variables: {},
|
|
3289
3289
|
}, snapshotRefresh);
|
|
3290
3290
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3296,12 +3296,12 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3296
3296
|
return snapshot;
|
|
3297
3297
|
}
|
|
3298
3298
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
3299
|
-
const key = keyBuilder$
|
|
3299
|
+
const key = keyBuilder$n(luvio, params);
|
|
3300
3300
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3301
3301
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3302
3302
|
return errorSnapshot;
|
|
3303
3303
|
}
|
|
3304
|
-
function createResourceRequest$
|
|
3304
|
+
function createResourceRequest$e(config) {
|
|
3305
3305
|
const headers = {};
|
|
3306
3306
|
return {
|
|
3307
3307
|
baseUri: '/services/data/v64.0',
|
|
@@ -3315,60 +3315,60 @@ function createResourceRequest$d(config) {
|
|
|
3315
3315
|
};
|
|
3316
3316
|
}
|
|
3317
3317
|
|
|
3318
|
-
const adapterName$
|
|
3318
|
+
const adapterName$e = 'getSlackRecordChannelInfo';
|
|
3319
3319
|
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
3320
3320
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3321
3321
|
];
|
|
3322
|
-
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3323
|
-
const createResourceParams$
|
|
3324
|
-
function keyBuilder$
|
|
3325
|
-
const resourceParams = createResourceParams$
|
|
3326
|
-
return keyBuilder$
|
|
3322
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
3323
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$j(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
3324
|
+
function keyBuilder$m(luvio, config) {
|
|
3325
|
+
const resourceParams = createResourceParams$e(config);
|
|
3326
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
3327
3327
|
}
|
|
3328
|
-
function typeCheckConfig$
|
|
3328
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
3329
3329
|
const config = {};
|
|
3330
|
-
typeCheckConfig$
|
|
3330
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
3331
3331
|
return config;
|
|
3332
3332
|
}
|
|
3333
|
-
function validateAdapterConfig$
|
|
3333
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
3334
3334
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3335
3335
|
return null;
|
|
3336
3336
|
}
|
|
3337
3337
|
if (process.env.NODE_ENV !== 'production') {
|
|
3338
3338
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3339
3339
|
}
|
|
3340
|
-
const config = typeCheckConfig$
|
|
3340
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
3341
3341
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3342
3342
|
return null;
|
|
3343
3343
|
}
|
|
3344
3344
|
return config;
|
|
3345
3345
|
}
|
|
3346
3346
|
function adapterFragment$7(luvio, config) {
|
|
3347
|
-
createResourceParams$
|
|
3348
|
-
return select$
|
|
3347
|
+
createResourceParams$e(config);
|
|
3348
|
+
return select$j();
|
|
3349
3349
|
}
|
|
3350
3350
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
3351
|
-
const snapshot = ingestSuccess$
|
|
3351
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
3352
3352
|
config,
|
|
3353
|
-
resolve: () => buildNetworkSnapshot$
|
|
3353
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3354
3354
|
});
|
|
3355
3355
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3356
3356
|
}
|
|
3357
3357
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
3358
3358
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
3359
3359
|
config,
|
|
3360
|
-
resolve: () => buildNetworkSnapshot$
|
|
3360
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3361
3361
|
});
|
|
3362
3362
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3363
3363
|
}
|
|
3364
|
-
function buildNetworkSnapshot$
|
|
3365
|
-
const resourceParams = createResourceParams$
|
|
3366
|
-
const request = createResourceRequest$
|
|
3364
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
3365
|
+
const resourceParams = createResourceParams$e(config);
|
|
3366
|
+
const request = createResourceRequest$e(resourceParams);
|
|
3367
3367
|
return luvio.dispatchResourceRequest(request, options)
|
|
3368
3368
|
.then((response) => {
|
|
3369
3369
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
3370
3370
|
const cache = new StoreKeyMap();
|
|
3371
|
-
getResponseCacheKeys$
|
|
3371
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
3372
3372
|
return cache;
|
|
3373
3373
|
});
|
|
3374
3374
|
}, (response) => {
|
|
@@ -3376,23 +3376,23 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
3376
3376
|
});
|
|
3377
3377
|
}
|
|
3378
3378
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
3379
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
3379
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
3380
3380
|
}
|
|
3381
3381
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
3382
3382
|
const { luvio, config } = context;
|
|
3383
3383
|
const selector = {
|
|
3384
|
-
recordId: keyBuilder$
|
|
3384
|
+
recordId: keyBuilder$m(luvio, config),
|
|
3385
3385
|
node: adapterFragment$7(luvio, config),
|
|
3386
3386
|
variables: {},
|
|
3387
3387
|
};
|
|
3388
3388
|
const cacheSnapshot = storeLookup(selector, {
|
|
3389
3389
|
config,
|
|
3390
|
-
resolve: () => buildNetworkSnapshot$
|
|
3390
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3391
3391
|
});
|
|
3392
3392
|
return cacheSnapshot;
|
|
3393
3393
|
}
|
|
3394
3394
|
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
3395
|
-
const config = validateAdapterConfig$
|
|
3395
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
3396
3396
|
// Invalid or incomplete config
|
|
3397
3397
|
if (config === null) {
|
|
3398
3398
|
return null;
|
|
@@ -3401,6 +3401,182 @@ const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge_
|
|
|
3401
3401
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
3402
3402
|
};
|
|
3403
3403
|
|
|
3404
|
+
const VERSION$7 = "32716a7de3c8810288467155d92e5124";
|
|
3405
|
+
function validate$7(obj, path = 'SlackBridgeConversationMarkOutputRepresentation') {
|
|
3406
|
+
const v_error = (() => {
|
|
3407
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3408
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3409
|
+
}
|
|
3410
|
+
const obj_channelId = obj.channelId;
|
|
3411
|
+
const path_channelId = path + '.channelId';
|
|
3412
|
+
if (typeof obj_channelId !== 'string') {
|
|
3413
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
|
|
3414
|
+
}
|
|
3415
|
+
const obj_messageTs = obj.messageTs;
|
|
3416
|
+
const path_messageTs = path + '.messageTs';
|
|
3417
|
+
if (typeof obj_messageTs !== 'string') {
|
|
3418
|
+
return new TypeError('Expected "string" but received "' + typeof obj_messageTs + '" (at "' + path_messageTs + '")');
|
|
3419
|
+
}
|
|
3420
|
+
})();
|
|
3421
|
+
return v_error === undefined ? null : v_error;
|
|
3422
|
+
}
|
|
3423
|
+
const RepresentationType$7 = 'SlackBridgeConversationMarkOutputRepresentation';
|
|
3424
|
+
function keyBuilder$l(luvio, config) {
|
|
3425
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.channelId;
|
|
3426
|
+
}
|
|
3427
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
3428
|
+
const keyParams = {
|
|
3429
|
+
channelId: object.channelId
|
|
3430
|
+
};
|
|
3431
|
+
return keyBuilder$l(luvio, keyParams);
|
|
3432
|
+
}
|
|
3433
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
3434
|
+
return input;
|
|
3435
|
+
}
|
|
3436
|
+
const select$i = function SlackBridgeConversationMarkOutputRepresentationSelect() {
|
|
3437
|
+
return {
|
|
3438
|
+
kind: 'Fragment',
|
|
3439
|
+
version: VERSION$7,
|
|
3440
|
+
private: [],
|
|
3441
|
+
selections: [
|
|
3442
|
+
{
|
|
3443
|
+
name: 'channelId',
|
|
3444
|
+
kind: 'Scalar'
|
|
3445
|
+
},
|
|
3446
|
+
{
|
|
3447
|
+
name: 'messageTs',
|
|
3448
|
+
kind: 'Scalar'
|
|
3449
|
+
}
|
|
3450
|
+
]
|
|
3451
|
+
};
|
|
3452
|
+
};
|
|
3453
|
+
function equals$7(existing, incoming) {
|
|
3454
|
+
const existing_channelId = existing.channelId;
|
|
3455
|
+
const incoming_channelId = incoming.channelId;
|
|
3456
|
+
if (!(existing_channelId === incoming_channelId)) {
|
|
3457
|
+
return false;
|
|
3458
|
+
}
|
|
3459
|
+
const existing_messageTs = existing.messageTs;
|
|
3460
|
+
const incoming_messageTs = incoming.messageTs;
|
|
3461
|
+
if (!(existing_messageTs === incoming_messageTs)) {
|
|
3462
|
+
return false;
|
|
3463
|
+
}
|
|
3464
|
+
return true;
|
|
3465
|
+
}
|
|
3466
|
+
const ingest$7 = function SlackBridgeConversationMarkOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3467
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3468
|
+
const validateError = validate$7(input);
|
|
3469
|
+
if (validateError !== null) {
|
|
3470
|
+
throw validateError;
|
|
3471
|
+
}
|
|
3472
|
+
}
|
|
3473
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
3474
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3475
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$7, RepresentationType$7, equals$7);
|
|
3476
|
+
return createLink(key);
|
|
3477
|
+
};
|
|
3478
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
3479
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3480
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
3481
|
+
rootKeySet.set(rootKey, {
|
|
3482
|
+
namespace: keyPrefix,
|
|
3483
|
+
representationName: RepresentationType$7,
|
|
3484
|
+
mergeable: false
|
|
3485
|
+
});
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
function select$h(luvio, params) {
|
|
3489
|
+
return select$i();
|
|
3490
|
+
}
|
|
3491
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
3492
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
3493
|
+
}
|
|
3494
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
3495
|
+
const { body } = response;
|
|
3496
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
3497
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
3498
|
+
const snapshot = luvio.storeLookup({
|
|
3499
|
+
recordId: key,
|
|
3500
|
+
node: select$h(),
|
|
3501
|
+
variables: {},
|
|
3502
|
+
});
|
|
3503
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3504
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
3505
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3506
|
+
}
|
|
3507
|
+
}
|
|
3508
|
+
deepFreeze(snapshot.data);
|
|
3509
|
+
return snapshot;
|
|
3510
|
+
}
|
|
3511
|
+
function createResourceRequest$d(config) {
|
|
3512
|
+
const headers = {};
|
|
3513
|
+
return {
|
|
3514
|
+
baseUri: '/services/data/v64.0',
|
|
3515
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/mark',
|
|
3516
|
+
method: 'post',
|
|
3517
|
+
body: null,
|
|
3518
|
+
urlParams: config.urlParams,
|
|
3519
|
+
queryParams: config.queryParams,
|
|
3520
|
+
headers,
|
|
3521
|
+
priority: 'normal',
|
|
3522
|
+
};
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
const adapterName$d = 'postSlackConversationMark';
|
|
3526
|
+
const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
3527
|
+
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3528
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3529
|
+
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
3530
|
+
];
|
|
3531
|
+
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, postSlackConversationMark_ConfigPropertyMetadata);
|
|
3532
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$j(postSlackConversationMark_ConfigPropertyMetadata);
|
|
3533
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
3534
|
+
const config = {};
|
|
3535
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
3536
|
+
return config;
|
|
3537
|
+
}
|
|
3538
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
3539
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
3540
|
+
return null;
|
|
3541
|
+
}
|
|
3542
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3543
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
3544
|
+
}
|
|
3545
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
3546
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3547
|
+
return null;
|
|
3548
|
+
}
|
|
3549
|
+
return config;
|
|
3550
|
+
}
|
|
3551
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
3552
|
+
const resourceParams = createResourceParams$d(config);
|
|
3553
|
+
const request = createResourceRequest$d(resourceParams);
|
|
3554
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3555
|
+
.then((response) => {
|
|
3556
|
+
return luvio.handleSuccessResponse(() => {
|
|
3557
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
3558
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
3559
|
+
}, () => {
|
|
3560
|
+
const cache = new StoreKeyMap();
|
|
3561
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
3562
|
+
return cache;
|
|
3563
|
+
});
|
|
3564
|
+
}, (response) => {
|
|
3565
|
+
deepFreeze(response);
|
|
3566
|
+
throw response;
|
|
3567
|
+
});
|
|
3568
|
+
}
|
|
3569
|
+
const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
3570
|
+
return function postSlackConversationMark(untrustedConfig) {
|
|
3571
|
+
const config = validateAdapterConfig$d(untrustedConfig, postSlackConversationMark_ConfigPropertyNames);
|
|
3572
|
+
// Invalid or incomplete config
|
|
3573
|
+
if (config === null) {
|
|
3574
|
+
throw new Error('Invalid config for "postSlackConversationMark"');
|
|
3575
|
+
}
|
|
3576
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
3577
|
+
};
|
|
3578
|
+
};
|
|
3579
|
+
|
|
3404
3580
|
const VERSION$6 = "30b0f3c5bd175b72d9b304944fd9d682";
|
|
3405
3581
|
function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
|
|
3406
3582
|
const v_error = (() => {
|
|
@@ -3587,14 +3763,14 @@ const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
3587
3763
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3588
3764
|
];
|
|
3589
3765
|
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
3590
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
3766
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$j(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
3591
3767
|
function keyBuilder$i(luvio, config) {
|
|
3592
3768
|
const resourceParams = createResourceParams$c(config);
|
|
3593
3769
|
return keyBuilder$j(luvio, resourceParams);
|
|
3594
3770
|
}
|
|
3595
3771
|
function typeCheckConfig$c(untrustedConfig) {
|
|
3596
3772
|
const config = {};
|
|
3597
|
-
typeCheckConfig$
|
|
3773
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
3598
3774
|
return config;
|
|
3599
3775
|
}
|
|
3600
3776
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -3712,10 +3888,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
3712
3888
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
3713
3889
|
];
|
|
3714
3890
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
3715
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
3891
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$j(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
3716
3892
|
function typeCheckConfig$b(untrustedConfig) {
|
|
3717
3893
|
const config = {};
|
|
3718
|
-
typeCheckConfig$
|
|
3894
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
3719
3895
|
return config;
|
|
3720
3896
|
}
|
|
3721
3897
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -3882,10 +4058,10 @@ const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
3882
4058
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3883
4059
|
];
|
|
3884
4060
|
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
3885
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
4061
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$j(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
3886
4062
|
function typeCheckConfig$a(untrustedConfig) {
|
|
3887
4063
|
const config = {};
|
|
3888
|
-
typeCheckConfig$
|
|
4064
|
+
typeCheckConfig$j(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
3889
4065
|
return config;
|
|
3890
4066
|
}
|
|
3891
4067
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -3985,14 +4161,14 @@ const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
3985
4161
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3986
4162
|
];
|
|
3987
4163
|
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackConversationMember_ConfigPropertyMetadata);
|
|
3988
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
4164
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$j(getSlackConversationMember_ConfigPropertyMetadata);
|
|
3989
4165
|
function keyBuilder$e(luvio, config) {
|
|
3990
4166
|
const resourceParams = createResourceParams$9(config);
|
|
3991
4167
|
return keyBuilder$f(luvio, resourceParams);
|
|
3992
4168
|
}
|
|
3993
4169
|
function typeCheckConfig$9(untrustedConfig) {
|
|
3994
4170
|
const config = {};
|
|
3995
|
-
typeCheckConfig$
|
|
4171
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
3996
4172
|
return config;
|
|
3997
4173
|
}
|
|
3998
4174
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -4202,10 +4378,10 @@ const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
|
4202
4378
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4203
4379
|
];
|
|
4204
4380
|
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteSlackMessage_ConfigPropertyMetadata);
|
|
4205
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
4381
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$j(deleteSlackMessage_ConfigPropertyMetadata);
|
|
4206
4382
|
function typeCheckConfig$8(untrustedConfig) {
|
|
4207
4383
|
const config = {};
|
|
4208
|
-
typeCheckConfig$
|
|
4384
|
+
typeCheckConfig$j(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
4209
4385
|
return config;
|
|
4210
4386
|
}
|
|
4211
4387
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -4305,14 +4481,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
4305
4481
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4306
4482
|
];
|
|
4307
4483
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackMessage_ConfigPropertyMetadata);
|
|
4308
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
4484
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$j(getSlackMessage_ConfigPropertyMetadata);
|
|
4309
4485
|
function keyBuilder$a(luvio, config) {
|
|
4310
4486
|
const resourceParams = createResourceParams$7(config);
|
|
4311
4487
|
return keyBuilder$b(luvio, resourceParams);
|
|
4312
4488
|
}
|
|
4313
4489
|
function typeCheckConfig$7(untrustedConfig) {
|
|
4314
4490
|
const config = {};
|
|
4315
|
-
typeCheckConfig$
|
|
4491
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
4316
4492
|
return config;
|
|
4317
4493
|
}
|
|
4318
4494
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -4431,10 +4607,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
4431
4607
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
4432
4608
|
];
|
|
4433
4609
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
|
|
4434
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
4610
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$j(patchSlackMessage_ConfigPropertyMetadata);
|
|
4435
4611
|
function typeCheckConfig$6(untrustedConfig) {
|
|
4436
4612
|
const config = {};
|
|
4437
|
-
typeCheckConfig$
|
|
4613
|
+
typeCheckConfig$j(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
4438
4614
|
return config;
|
|
4439
4615
|
}
|
|
4440
4616
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -4503,7 +4679,7 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
4503
4679
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
4504
4680
|
const obj_reactions_item = obj_reactions[i];
|
|
4505
4681
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
4506
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
4682
|
+
const referencepath_reactions_itemValidationError = validate$h(obj_reactions_item, path_reactions_item);
|
|
4507
4683
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
4508
4684
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
4509
4685
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4532,7 +4708,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
4532
4708
|
return input;
|
|
4533
4709
|
}
|
|
4534
4710
|
const select$8 = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
4535
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
4711
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$x();
|
|
4536
4712
|
return {
|
|
4537
4713
|
kind: 'Fragment',
|
|
4538
4714
|
version: VERSION$3,
|
|
@@ -4578,7 +4754,7 @@ function equals$3(existing, incoming) {
|
|
|
4578
4754
|
const existing_reactions = existing.reactions;
|
|
4579
4755
|
const incoming_reactions = incoming.reactions;
|
|
4580
4756
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
4581
|
-
if (!(equals$
|
|
4757
|
+
if (!(equals$h(existing_reactions_item, incoming_reactions_item))) {
|
|
4582
4758
|
return false;
|
|
4583
4759
|
}
|
|
4584
4760
|
});
|
|
@@ -4648,10 +4824,10 @@ const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
4648
4824
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4649
4825
|
];
|
|
4650
4826
|
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
4651
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
4827
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$j(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
4652
4828
|
function typeCheckConfig$5(untrustedConfig) {
|
|
4653
4829
|
const config = {};
|
|
4654
|
-
typeCheckConfig$
|
|
4830
|
+
typeCheckConfig$j(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
4655
4831
|
return config;
|
|
4656
4832
|
}
|
|
4657
4833
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -4741,10 +4917,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
4741
4917
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4742
4918
|
];
|
|
4743
4919
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
4744
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
4920
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$j(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
4745
4921
|
function typeCheckConfig$4(untrustedConfig) {
|
|
4746
4922
|
const config = {};
|
|
4747
|
-
typeCheckConfig$
|
|
4923
|
+
typeCheckConfig$j(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
4748
4924
|
return config;
|
|
4749
4925
|
}
|
|
4750
4926
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -4930,14 +5106,14 @@ const getSlackCustomEmoji_ConfigPropertyMetadata = [
|
|
|
4930
5106
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4931
5107
|
];
|
|
4932
5108
|
const getSlackCustomEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
4933
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
5109
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$j(getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
4934
5110
|
function keyBuilder$6(luvio, config) {
|
|
4935
5111
|
const resourceParams = createResourceParams$3(config);
|
|
4936
5112
|
return keyBuilder$7(luvio, resourceParams);
|
|
4937
5113
|
}
|
|
4938
5114
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4939
5115
|
const config = {};
|
|
4940
|
-
typeCheckConfig$
|
|
5116
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackCustomEmoji_ConfigPropertyMetadata);
|
|
4941
5117
|
return config;
|
|
4942
5118
|
}
|
|
4943
5119
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -5025,7 +5201,7 @@ function validate$1(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
|
5025
5201
|
for (let i = 0; i < obj_emojis.length; i++) {
|
|
5026
5202
|
const obj_emojis_item = obj_emojis[i];
|
|
5027
5203
|
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
5028
|
-
const referencepath_emojis_itemValidationError = validate$
|
|
5204
|
+
const referencepath_emojis_itemValidationError = validate$k(obj_emojis_item, path_emojis_item);
|
|
5029
5205
|
if (referencepath_emojis_itemValidationError !== null) {
|
|
5030
5206
|
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_emojis_item + '")\n';
|
|
5031
5207
|
message += referencepath_emojis_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5045,7 +5221,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
5045
5221
|
return input;
|
|
5046
5222
|
}
|
|
5047
5223
|
const select$4 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
5048
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$
|
|
5224
|
+
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$A();
|
|
5049
5225
|
return {
|
|
5050
5226
|
kind: 'Fragment',
|
|
5051
5227
|
version: VERSION$1,
|
|
@@ -5073,7 +5249,7 @@ function equals$1(existing, incoming) {
|
|
|
5073
5249
|
const existing_emojis = existing.emojis;
|
|
5074
5250
|
const incoming_emojis = incoming.emojis;
|
|
5075
5251
|
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
5076
|
-
if (!(equals$
|
|
5252
|
+
if (!(equals$k(existing_emojis_item, incoming_emojis_item))) {
|
|
5077
5253
|
return false;
|
|
5078
5254
|
}
|
|
5079
5255
|
});
|
|
@@ -5156,14 +5332,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
5156
5332
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5157
5333
|
];
|
|
5158
5334
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
5159
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
5335
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$j(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
5160
5336
|
function keyBuilder$4(luvio, config) {
|
|
5161
5337
|
const resourceParams = createResourceParams$2(config);
|
|
5162
5338
|
return keyBuilder$5(luvio, resourceParams);
|
|
5163
5339
|
}
|
|
5164
5340
|
function typeCheckConfig$2(untrustedConfig) {
|
|
5165
5341
|
const config = {};
|
|
5166
|
-
typeCheckConfig$
|
|
5342
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
5167
5343
|
return config;
|
|
5168
5344
|
}
|
|
5169
5345
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -5270,7 +5446,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
5270
5446
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
5271
5447
|
const input_userInfos_item = input_userInfos[i];
|
|
5272
5448
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
5273
|
-
input_userInfos[i] = ingest$
|
|
5449
|
+
input_userInfos[i] = ingest$f(input_userInfos_item, {
|
|
5274
5450
|
fullPath: input_userInfos_item_id,
|
|
5275
5451
|
propertyName: i,
|
|
5276
5452
|
parent: {
|
|
@@ -5297,7 +5473,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
5297
5473
|
name: 'userInfos',
|
|
5298
5474
|
kind: 'Link',
|
|
5299
5475
|
plural: true,
|
|
5300
|
-
fragment: select$
|
|
5476
|
+
fragment: select$z()
|
|
5301
5477
|
}
|
|
5302
5478
|
]
|
|
5303
5479
|
};
|
|
@@ -5342,7 +5518,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5342
5518
|
});
|
|
5343
5519
|
const input_userInfos_length = input.userInfos.length;
|
|
5344
5520
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
5345
|
-
getTypeCacheKeys$
|
|
5521
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.userInfos[i]);
|
|
5346
5522
|
}
|
|
5347
5523
|
}
|
|
5348
5524
|
|
|
@@ -5398,14 +5574,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
5398
5574
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5399
5575
|
];
|
|
5400
5576
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
|
|
5401
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
5577
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$j(getSlackSearchUser_ConfigPropertyMetadata);
|
|
5402
5578
|
function keyBuilder$2(luvio, config) {
|
|
5403
5579
|
const resourceParams = createResourceParams$1(config);
|
|
5404
5580
|
return keyBuilder$3(luvio, resourceParams);
|
|
5405
5581
|
}
|
|
5406
5582
|
function typeCheckConfig$1(untrustedConfig) {
|
|
5407
5583
|
const config = {};
|
|
5408
|
-
typeCheckConfig$
|
|
5584
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
5409
5585
|
return config;
|
|
5410
5586
|
}
|
|
5411
5587
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -5480,21 +5656,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
5480
5656
|
};
|
|
5481
5657
|
|
|
5482
5658
|
function select(luvio, params) {
|
|
5483
|
-
return select$
|
|
5659
|
+
return select$z();
|
|
5484
5660
|
}
|
|
5485
5661
|
function keyBuilder$1(luvio, params) {
|
|
5486
|
-
return keyBuilder$
|
|
5662
|
+
return keyBuilder$u(luvio, {
|
|
5487
5663
|
slackUserId: params.urlParams.slackUserId,
|
|
5488
5664
|
teamId: params.urlParams.teamId
|
|
5489
5665
|
});
|
|
5490
5666
|
}
|
|
5491
5667
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5492
|
-
getTypeCacheKeys$
|
|
5668
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response);
|
|
5493
5669
|
}
|
|
5494
5670
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
5495
5671
|
const { body } = response;
|
|
5496
5672
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
5497
|
-
luvio.storeIngest(key, ingest$
|
|
5673
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
5498
5674
|
const snapshot = luvio.storeLookup({
|
|
5499
5675
|
recordId: key,
|
|
5500
5676
|
node: select(),
|
|
@@ -5514,8 +5690,8 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
5514
5690
|
const storeMetadataParams = {
|
|
5515
5691
|
ttl: TTL,
|
|
5516
5692
|
namespace: keyPrefix,
|
|
5517
|
-
version: VERSION$
|
|
5518
|
-
representationName: RepresentationType$
|
|
5693
|
+
version: VERSION$j,
|
|
5694
|
+
representationName: RepresentationType$f
|
|
5519
5695
|
};
|
|
5520
5696
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5521
5697
|
return errorSnapshot;
|
|
@@ -5540,14 +5716,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
5540
5716
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5541
5717
|
];
|
|
5542
5718
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
|
|
5543
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
5719
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$j(getSlackUser_ConfigPropertyMetadata);
|
|
5544
5720
|
function keyBuilder(luvio, config) {
|
|
5545
5721
|
const resourceParams = createResourceParams(config);
|
|
5546
5722
|
return keyBuilder$1(luvio, resourceParams);
|
|
5547
5723
|
}
|
|
5548
5724
|
function typeCheckConfig(untrustedConfig) {
|
|
5549
5725
|
const config = {};
|
|
5550
|
-
typeCheckConfig$
|
|
5726
|
+
typeCheckConfig$j(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
5551
5727
|
return config;
|
|
5552
5728
|
}
|
|
5553
5729
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -5621,4 +5797,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
5621
5797
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
5622
5798
|
};
|
|
5623
5799
|
|
|
5624
|
-
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackCustomEmojiAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|
|
5800
|
+
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackCustomEmojiAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|