@salesforce/lds-adapters-platform-slack-bridge 1.380.0-dev14 → 1.380.0-dev16
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 +426 -91
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +9 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeRoomOutputRepresentation.d.ts +46 -0
- package/package.json +3 -3
- package/sfdc/index.js +413 -78
- package/src/raml/api.raml +42 -1
package/sfdc/index.js
CHANGED
|
@@ -122,8 +122,8 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const VERSION$
|
|
126
|
-
function validate$
|
|
125
|
+
const VERSION$v = "5ea9ee9da9dcb5309c4f35bb4bf5def2";
|
|
126
|
+
function validate$v(obj, path = 'SlackBridgeConversationMemberOutputRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -154,10 +154,10 @@ function keyBuilderFromType$b(luvio, object) {
|
|
|
154
154
|
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
155
155
|
return input;
|
|
156
156
|
}
|
|
157
|
-
const select$
|
|
157
|
+
const select$T = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
158
158
|
return {
|
|
159
159
|
kind: 'Fragment',
|
|
160
|
-
version: VERSION$
|
|
160
|
+
version: VERSION$v,
|
|
161
161
|
private: [],
|
|
162
162
|
selections: [
|
|
163
163
|
{
|
|
@@ -171,7 +171,7 @@ const select$S = function SlackBridgeConversationMemberOutputRepresentationSelec
|
|
|
171
171
|
]
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
function equals$
|
|
174
|
+
function equals$v(existing, incoming) {
|
|
175
175
|
const existing_channelId = existing.channelId;
|
|
176
176
|
const incoming_channelId = incoming.channelId;
|
|
177
177
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -186,14 +186,14 @@ function equals$u(existing, incoming) {
|
|
|
186
186
|
}
|
|
187
187
|
const ingest$k = function SlackBridgeConversationMemberOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
188
188
|
if (process.env.NODE_ENV !== 'production') {
|
|
189
|
-
const validateError = validate$
|
|
189
|
+
const validateError = validate$v(input);
|
|
190
190
|
if (validateError !== null) {
|
|
191
191
|
throw validateError;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
const key = keyBuilderFromType$b(luvio, input);
|
|
195
195
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
196
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "SlackBridge", VERSION$
|
|
196
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "SlackBridge", VERSION$v, RepresentationType$k, equals$v);
|
|
197
197
|
return createLink(key);
|
|
198
198
|
};
|
|
199
199
|
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -292,8 +292,8 @@ const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
|
292
292
|
};
|
|
293
293
|
};
|
|
294
294
|
|
|
295
|
-
const VERSION$
|
|
296
|
-
function validate$
|
|
295
|
+
const VERSION$u = "605674abcbc0dad7e2707e4e00e8d4cd";
|
|
296
|
+
function validate$u(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation') {
|
|
297
297
|
const v_error = (() => {
|
|
298
298
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
299
299
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -329,10 +329,10 @@ function keyBuilderFromType$a(luvio, object) {
|
|
|
329
329
|
function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
330
330
|
return input;
|
|
331
331
|
}
|
|
332
|
-
const select$
|
|
332
|
+
const select$S = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
333
333
|
return {
|
|
334
334
|
kind: 'Fragment',
|
|
335
|
-
version: VERSION$
|
|
335
|
+
version: VERSION$u,
|
|
336
336
|
private: [],
|
|
337
337
|
selections: [
|
|
338
338
|
{
|
|
@@ -350,7 +350,7 @@ const select$R = function SlackBridgeMessageFragmentOutputRepresentationSelect()
|
|
|
350
350
|
]
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
|
-
function equals$
|
|
353
|
+
function equals$u(existing, incoming) {
|
|
354
354
|
const existing_channelId = existing.channelId;
|
|
355
355
|
const incoming_channelId = incoming.channelId;
|
|
356
356
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -370,14 +370,14 @@ function equals$t(existing, incoming) {
|
|
|
370
370
|
}
|
|
371
371
|
const ingest$j = function SlackBridgeMessageFragmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
372
372
|
if (process.env.NODE_ENV !== 'production') {
|
|
373
|
-
const validateError = validate$
|
|
373
|
+
const validateError = validate$u(input);
|
|
374
374
|
if (validateError !== null) {
|
|
375
375
|
throw validateError;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
const key = keyBuilderFromType$a(luvio, input);
|
|
379
379
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
380
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "SlackBridge", VERSION$
|
|
380
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "SlackBridge", VERSION$u, RepresentationType$j, equals$u);
|
|
381
381
|
return createLink(key);
|
|
382
382
|
};
|
|
383
383
|
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -476,8 +476,8 @@ const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
|
476
476
|
};
|
|
477
477
|
};
|
|
478
478
|
|
|
479
|
-
const VERSION$
|
|
480
|
-
function validate$
|
|
479
|
+
const VERSION$t = "7820a930852347bb0506c08d8b528281";
|
|
480
|
+
function validate$t(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
481
481
|
const v_error = (() => {
|
|
482
482
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
483
483
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -554,10 +554,10 @@ function validate$s(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
554
554
|
})();
|
|
555
555
|
return v_error === undefined ? null : v_error;
|
|
556
556
|
}
|
|
557
|
-
const select$
|
|
557
|
+
const select$R = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
558
558
|
return {
|
|
559
559
|
kind: 'Fragment',
|
|
560
|
-
version: VERSION$
|
|
560
|
+
version: VERSION$t,
|
|
561
561
|
private: [],
|
|
562
562
|
selections: [
|
|
563
563
|
{
|
|
@@ -580,7 +580,7 @@ const select$Q = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
580
580
|
]
|
|
581
581
|
};
|
|
582
582
|
};
|
|
583
|
-
function equals$
|
|
583
|
+
function equals$t(existing, incoming) {
|
|
584
584
|
const existing_name = existing.name;
|
|
585
585
|
const incoming_name = incoming.name;
|
|
586
586
|
if (!(existing_name === incoming_name)) {
|
|
@@ -609,8 +609,8 @@ function equals$s(existing, incoming) {
|
|
|
609
609
|
return true;
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
-
const VERSION$
|
|
613
|
-
function validate$
|
|
612
|
+
const VERSION$s = "804aa6216a7579adeeae856f76b688db";
|
|
613
|
+
function validate$s(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
614
614
|
const v_error = (() => {
|
|
615
615
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
616
616
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -633,7 +633,7 @@ function validate$r(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
633
633
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
634
634
|
const obj_reactions_item = obj_reactions[i];
|
|
635
635
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
636
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
636
|
+
const referencepath_reactions_itemValidationError = validate$t(obj_reactions_item, path_reactions_item);
|
|
637
637
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
638
638
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
639
639
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -661,11 +661,11 @@ function keyBuilderFromType$9(luvio, object) {
|
|
|
661
661
|
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
662
662
|
return input;
|
|
663
663
|
}
|
|
664
|
-
const select$
|
|
665
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
664
|
+
const select$Q = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
665
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$R();
|
|
666
666
|
return {
|
|
667
667
|
kind: 'Fragment',
|
|
668
|
-
version: VERSION$
|
|
668
|
+
version: VERSION$s,
|
|
669
669
|
private: [],
|
|
670
670
|
selections: [
|
|
671
671
|
{
|
|
@@ -689,7 +689,7 @@ const select$P = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
|
689
689
|
]
|
|
690
690
|
};
|
|
691
691
|
};
|
|
692
|
-
function equals$
|
|
692
|
+
function equals$s(existing, incoming) {
|
|
693
693
|
const existing_channelId = existing.channelId;
|
|
694
694
|
const incoming_channelId = incoming.channelId;
|
|
695
695
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -708,7 +708,7 @@ function equals$r(existing, incoming) {
|
|
|
708
708
|
const existing_reactions = existing.reactions;
|
|
709
709
|
const incoming_reactions = incoming.reactions;
|
|
710
710
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
711
|
-
if (!(equals$
|
|
711
|
+
if (!(equals$t(existing_reactions_item, incoming_reactions_item))) {
|
|
712
712
|
return false;
|
|
713
713
|
}
|
|
714
714
|
});
|
|
@@ -719,14 +719,14 @@ function equals$r(existing, incoming) {
|
|
|
719
719
|
}
|
|
720
720
|
const ingest$i = function SlackBridgeReactionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
721
721
|
if (process.env.NODE_ENV !== 'production') {
|
|
722
|
-
const validateError = validate$
|
|
722
|
+
const validateError = validate$s(input);
|
|
723
723
|
if (validateError !== null) {
|
|
724
724
|
throw validateError;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
const key = keyBuilderFromType$9(luvio, input);
|
|
728
728
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
729
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$
|
|
729
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$s, RepresentationType$i, equals$s);
|
|
730
730
|
return createLink(key);
|
|
731
731
|
};
|
|
732
732
|
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -826,8 +826,8 @@ const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
828
|
|
|
829
|
-
const VERSION$
|
|
830
|
-
function validate$
|
|
829
|
+
const VERSION$r = "90163ce3734714c2b87ec91b0ae3ff53";
|
|
830
|
+
function validate$r(obj, path = 'SlackBridgeConversationRestrictionsOutputRepresentation') {
|
|
831
831
|
const v_error = (() => {
|
|
832
832
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
833
833
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -859,10 +859,10 @@ function validate$q(obj, path = 'SlackBridgeConversationRestrictionsOutputRepres
|
|
|
859
859
|
})();
|
|
860
860
|
return v_error === undefined ? null : v_error;
|
|
861
861
|
}
|
|
862
|
-
const select$
|
|
862
|
+
const select$P = function SlackBridgeConversationRestrictionsOutputRepresentationSelect() {
|
|
863
863
|
return {
|
|
864
864
|
kind: 'Fragment',
|
|
865
|
-
version: VERSION$
|
|
865
|
+
version: VERSION$r,
|
|
866
866
|
private: [],
|
|
867
867
|
selections: [
|
|
868
868
|
{
|
|
@@ -878,7 +878,7 @@ const select$O = function SlackBridgeConversationRestrictionsOutputRepresentatio
|
|
|
878
878
|
]
|
|
879
879
|
};
|
|
880
880
|
};
|
|
881
|
-
function equals$
|
|
881
|
+
function equals$r(existing, incoming) {
|
|
882
882
|
const existing_type = existing.type;
|
|
883
883
|
const incoming_type = incoming.type;
|
|
884
884
|
const equals_type_items = equalsArray(existing_type, incoming_type, (existing_type_item, incoming_type_item) => {
|
|
@@ -902,8 +902,8 @@ function equals$q(existing, incoming) {
|
|
|
902
902
|
return true;
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
const VERSION$
|
|
906
|
-
function validate$
|
|
905
|
+
const VERSION$q = "139b4530e5abfb4424ce58620c1e6934";
|
|
906
|
+
function validate$q(obj, path = 'SlackBridgeConversationPropertiesOutputRepresentation') {
|
|
907
907
|
const v_error = (() => {
|
|
908
908
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
909
909
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -990,7 +990,7 @@ function validate$p(obj, path = 'SlackBridgeConversationPropertiesOutputRepresen
|
|
|
990
990
|
const path_postingRestrictedTo = path + '.postingRestrictedTo';
|
|
991
991
|
let obj_postingRestrictedTo_union0 = null;
|
|
992
992
|
const obj_postingRestrictedTo_union0_error = (() => {
|
|
993
|
-
const referencepath_postingRestrictedToValidationError = validate$
|
|
993
|
+
const referencepath_postingRestrictedToValidationError = validate$r(obj_postingRestrictedTo, path_postingRestrictedTo);
|
|
994
994
|
if (referencepath_postingRestrictedToValidationError !== null) {
|
|
995
995
|
let message = 'Object doesn\'t match SlackBridgeConversationRestrictionsOutputRepresentation (at "' + path_postingRestrictedTo + '")\n';
|
|
996
996
|
message += referencepath_postingRestrictedToValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1019,7 +1019,7 @@ function validate$p(obj, path = 'SlackBridgeConversationPropertiesOutputRepresen
|
|
|
1019
1019
|
const path_threadsRestrictedTo = path + '.threadsRestrictedTo';
|
|
1020
1020
|
let obj_threadsRestrictedTo_union0 = null;
|
|
1021
1021
|
const obj_threadsRestrictedTo_union0_error = (() => {
|
|
1022
|
-
const referencepath_threadsRestrictedToValidationError = validate$
|
|
1022
|
+
const referencepath_threadsRestrictedToValidationError = validate$r(obj_threadsRestrictedTo, path_threadsRestrictedTo);
|
|
1023
1023
|
if (referencepath_threadsRestrictedToValidationError !== null) {
|
|
1024
1024
|
let message = 'Object doesn\'t match SlackBridgeConversationRestrictionsOutputRepresentation (at "' + path_threadsRestrictedTo + '")\n';
|
|
1025
1025
|
message += referencepath_threadsRestrictedToValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1047,11 +1047,11 @@ function validate$p(obj, path = 'SlackBridgeConversationPropertiesOutputRepresen
|
|
|
1047
1047
|
})();
|
|
1048
1048
|
return v_error === undefined ? null : v_error;
|
|
1049
1049
|
}
|
|
1050
|
-
const select$
|
|
1051
|
-
const { selections: SlackBridgeConversationRestrictionsOutputRepresentation__selections, opaque: SlackBridgeConversationRestrictionsOutputRepresentation__opaque, } = select$
|
|
1050
|
+
const select$O = function SlackBridgeConversationPropertiesOutputRepresentationSelect() {
|
|
1051
|
+
const { selections: SlackBridgeConversationRestrictionsOutputRepresentation__selections, opaque: SlackBridgeConversationRestrictionsOutputRepresentation__opaque, } = select$P();
|
|
1052
1052
|
return {
|
|
1053
1053
|
kind: 'Fragment',
|
|
1054
|
-
version: VERSION$
|
|
1054
|
+
version: VERSION$q,
|
|
1055
1055
|
private: [],
|
|
1056
1056
|
selections: [
|
|
1057
1057
|
{
|
|
@@ -1081,7 +1081,7 @@ const select$N = function SlackBridgeConversationPropertiesOutputRepresentationS
|
|
|
1081
1081
|
]
|
|
1082
1082
|
};
|
|
1083
1083
|
};
|
|
1084
|
-
function equals$
|
|
1084
|
+
function equals$q(existing, incoming) {
|
|
1085
1085
|
const existing_atChannelRestricted = existing.atChannelRestricted;
|
|
1086
1086
|
const incoming_atChannelRestricted = incoming.atChannelRestricted;
|
|
1087
1087
|
if (!(existing_atChannelRestricted === incoming_atChannelRestricted)) {
|
|
@@ -1102,7 +1102,7 @@ function equals$p(existing, incoming) {
|
|
|
1102
1102
|
if (!(existing_postingRestrictedTo === incoming_postingRestrictedTo
|
|
1103
1103
|
|| (existing_postingRestrictedTo != null &&
|
|
1104
1104
|
incoming_postingRestrictedTo != null &&
|
|
1105
|
-
equals$
|
|
1105
|
+
equals$r(existing_postingRestrictedTo, incoming_postingRestrictedTo)))) {
|
|
1106
1106
|
return false;
|
|
1107
1107
|
}
|
|
1108
1108
|
const existing_threadsRestrictedTo = existing.threadsRestrictedTo;
|
|
@@ -1110,15 +1110,15 @@ function equals$p(existing, incoming) {
|
|
|
1110
1110
|
if (!(existing_threadsRestrictedTo === incoming_threadsRestrictedTo
|
|
1111
1111
|
|| (existing_threadsRestrictedTo != null &&
|
|
1112
1112
|
incoming_threadsRestrictedTo != null &&
|
|
1113
|
-
equals$
|
|
1113
|
+
equals$r(existing_threadsRestrictedTo, incoming_threadsRestrictedTo)))) {
|
|
1114
1114
|
return false;
|
|
1115
1115
|
}
|
|
1116
1116
|
return true;
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
1119
|
const TTL$7 = 900000;
|
|
1120
|
-
const VERSION$
|
|
1121
|
-
function validate$
|
|
1120
|
+
const VERSION$p = "a35df81fd20149aae615a01f742cece5";
|
|
1121
|
+
function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1122
1122
|
const v_error = (() => {
|
|
1123
1123
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1124
1124
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1336,6 +1336,34 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1336
1336
|
message += '\n' + obj_isMember_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1337
1337
|
return new TypeError(message);
|
|
1338
1338
|
}
|
|
1339
|
+
if (obj.isMpim !== undefined) {
|
|
1340
|
+
const obj_isMpim = obj.isMpim;
|
|
1341
|
+
const path_isMpim = path + '.isMpim';
|
|
1342
|
+
let obj_isMpim_union0 = null;
|
|
1343
|
+
const obj_isMpim_union0_error = (() => {
|
|
1344
|
+
if (typeof obj_isMpim !== 'boolean') {
|
|
1345
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
|
|
1346
|
+
}
|
|
1347
|
+
})();
|
|
1348
|
+
if (obj_isMpim_union0_error != null) {
|
|
1349
|
+
obj_isMpim_union0 = obj_isMpim_union0_error.message;
|
|
1350
|
+
}
|
|
1351
|
+
let obj_isMpim_union1 = null;
|
|
1352
|
+
const obj_isMpim_union1_error = (() => {
|
|
1353
|
+
if (obj_isMpim !== null) {
|
|
1354
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
|
|
1355
|
+
}
|
|
1356
|
+
})();
|
|
1357
|
+
if (obj_isMpim_union1_error != null) {
|
|
1358
|
+
obj_isMpim_union1 = obj_isMpim_union1_error.message;
|
|
1359
|
+
}
|
|
1360
|
+
if (obj_isMpim_union0 && obj_isMpim_union1) {
|
|
1361
|
+
let message = 'Object doesn\'t match union (at "' + path_isMpim + '")';
|
|
1362
|
+
message += '\n' + obj_isMpim_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1363
|
+
message += '\n' + obj_isMpim_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1364
|
+
return new TypeError(message);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1339
1367
|
const obj_isOpen = obj.isOpen;
|
|
1340
1368
|
const path_isOpen = path + '.isOpen';
|
|
1341
1369
|
let obj_isOpen_union0 = null;
|
|
@@ -1574,8 +1602,29 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1574
1602
|
}
|
|
1575
1603
|
const obj_name = obj.name;
|
|
1576
1604
|
const path_name = path + '.name';
|
|
1577
|
-
|
|
1578
|
-
|
|
1605
|
+
let obj_name_union0 = null;
|
|
1606
|
+
const obj_name_union0_error = (() => {
|
|
1607
|
+
if (typeof obj_name !== 'string') {
|
|
1608
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1609
|
+
}
|
|
1610
|
+
})();
|
|
1611
|
+
if (obj_name_union0_error != null) {
|
|
1612
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
1613
|
+
}
|
|
1614
|
+
let obj_name_union1 = null;
|
|
1615
|
+
const obj_name_union1_error = (() => {
|
|
1616
|
+
if (obj_name !== null) {
|
|
1617
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1618
|
+
}
|
|
1619
|
+
})();
|
|
1620
|
+
if (obj_name_union1_error != null) {
|
|
1621
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
1622
|
+
}
|
|
1623
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
1624
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
1625
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1626
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1627
|
+
return new TypeError(message);
|
|
1579
1628
|
}
|
|
1580
1629
|
const obj_numOfMembers = obj.numOfMembers;
|
|
1581
1630
|
const path_numOfMembers = path + '.numOfMembers';
|
|
@@ -1608,7 +1657,7 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1608
1657
|
const path_properties = path + '.properties';
|
|
1609
1658
|
let obj_properties_union0 = null;
|
|
1610
1659
|
const obj_properties_union0_error = (() => {
|
|
1611
|
-
const referencepath_propertiesValidationError = validate$
|
|
1660
|
+
const referencepath_propertiesValidationError = validate$q(obj_properties, path_properties);
|
|
1612
1661
|
if (referencepath_propertiesValidationError !== null) {
|
|
1613
1662
|
let message = 'Object doesn\'t match SlackBridgeConversationPropertiesOutputRepresentation (at "' + path_properties + '")\n';
|
|
1614
1663
|
message += referencepath_propertiesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1723,6 +1772,34 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1723
1772
|
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1724
1773
|
}
|
|
1725
1774
|
}
|
|
1775
|
+
if (obj.user !== undefined) {
|
|
1776
|
+
const obj_user = obj.user;
|
|
1777
|
+
const path_user = path + '.user';
|
|
1778
|
+
let obj_user_union0 = null;
|
|
1779
|
+
const obj_user_union0_error = (() => {
|
|
1780
|
+
if (typeof obj_user !== 'string') {
|
|
1781
|
+
return new TypeError('Expected "string" but received "' + typeof obj_user + '" (at "' + path_user + '")');
|
|
1782
|
+
}
|
|
1783
|
+
})();
|
|
1784
|
+
if (obj_user_union0_error != null) {
|
|
1785
|
+
obj_user_union0 = obj_user_union0_error.message;
|
|
1786
|
+
}
|
|
1787
|
+
let obj_user_union1 = null;
|
|
1788
|
+
const obj_user_union1_error = (() => {
|
|
1789
|
+
if (obj_user !== null) {
|
|
1790
|
+
return new TypeError('Expected "null" but received "' + typeof obj_user + '" (at "' + path_user + '")');
|
|
1791
|
+
}
|
|
1792
|
+
})();
|
|
1793
|
+
if (obj_user_union1_error != null) {
|
|
1794
|
+
obj_user_union1 = obj_user_union1_error.message;
|
|
1795
|
+
}
|
|
1796
|
+
if (obj_user_union0 && obj_user_union1) {
|
|
1797
|
+
let message = 'Object doesn\'t match union (at "' + path_user + '")';
|
|
1798
|
+
message += '\n' + obj_user_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1799
|
+
message += '\n' + obj_user_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1800
|
+
return new TypeError(message);
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1726
1803
|
})();
|
|
1727
1804
|
return v_error === undefined ? null : v_error;
|
|
1728
1805
|
}
|
|
@@ -1739,11 +1816,11 @@ function keyBuilderFromType$8(luvio, object) {
|
|
|
1739
1816
|
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
1740
1817
|
return input;
|
|
1741
1818
|
}
|
|
1742
|
-
const select$
|
|
1743
|
-
const { selections: SlackBridgeConversationPropertiesOutputRepresentation__selections, opaque: SlackBridgeConversationPropertiesOutputRepresentation__opaque, } = select$
|
|
1819
|
+
const select$N = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1820
|
+
const { selections: SlackBridgeConversationPropertiesOutputRepresentation__selections, opaque: SlackBridgeConversationPropertiesOutputRepresentation__opaque, } = select$O();
|
|
1744
1821
|
return {
|
|
1745
1822
|
kind: 'Fragment',
|
|
1746
|
-
version: VERSION$
|
|
1823
|
+
version: VERSION$p,
|
|
1747
1824
|
private: [],
|
|
1748
1825
|
selections: [
|
|
1749
1826
|
{
|
|
@@ -1782,6 +1859,11 @@ const select$M = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1782
1859
|
name: 'isMember',
|
|
1783
1860
|
kind: 'Scalar'
|
|
1784
1861
|
},
|
|
1862
|
+
{
|
|
1863
|
+
name: 'isMpim',
|
|
1864
|
+
kind: 'Scalar',
|
|
1865
|
+
required: false
|
|
1866
|
+
},
|
|
1785
1867
|
{
|
|
1786
1868
|
name: 'isOpen',
|
|
1787
1869
|
kind: 'Scalar'
|
|
@@ -1852,21 +1934,21 @@ const select$M = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1852
1934
|
name: 'url',
|
|
1853
1935
|
kind: 'Scalar',
|
|
1854
1936
|
required: false
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
name: 'user',
|
|
1940
|
+
kind: 'Scalar',
|
|
1941
|
+
required: false
|
|
1855
1942
|
}
|
|
1856
1943
|
]
|
|
1857
1944
|
};
|
|
1858
1945
|
};
|
|
1859
|
-
function equals$
|
|
1946
|
+
function equals$p(existing, incoming) {
|
|
1860
1947
|
const existing_id = existing.id;
|
|
1861
1948
|
const incoming_id = incoming.id;
|
|
1862
1949
|
if (!(existing_id === incoming_id)) {
|
|
1863
1950
|
return false;
|
|
1864
1951
|
}
|
|
1865
|
-
const existing_name = existing.name;
|
|
1866
|
-
const incoming_name = incoming.name;
|
|
1867
|
-
if (!(existing_name === incoming_name)) {
|
|
1868
|
-
return false;
|
|
1869
|
-
}
|
|
1870
1952
|
const existing_url = existing.url;
|
|
1871
1953
|
const incoming_url = incoming.url;
|
|
1872
1954
|
// if at least one of these optionals is defined
|
|
@@ -1920,6 +2002,19 @@ function equals$o(existing, incoming) {
|
|
|
1920
2002
|
if (!(existing_isMember === incoming_isMember)) {
|
|
1921
2003
|
return false;
|
|
1922
2004
|
}
|
|
2005
|
+
const existing_isMpim = existing.isMpim;
|
|
2006
|
+
const incoming_isMpim = incoming.isMpim;
|
|
2007
|
+
// if at least one of these optionals is defined
|
|
2008
|
+
if (existing_isMpim !== undefined || incoming_isMpim !== undefined) {
|
|
2009
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2010
|
+
// not equal
|
|
2011
|
+
if (existing_isMpim === undefined || incoming_isMpim === undefined) {
|
|
2012
|
+
return false;
|
|
2013
|
+
}
|
|
2014
|
+
if (!(existing_isMpim === incoming_isMpim)) {
|
|
2015
|
+
return false;
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
1923
2018
|
const existing_isOpen = existing.isOpen;
|
|
1924
2019
|
const incoming_isOpen = incoming.isOpen;
|
|
1925
2020
|
if (!(existing_isOpen === incoming_isOpen)) {
|
|
@@ -1973,6 +2068,11 @@ function equals$o(existing, incoming) {
|
|
|
1973
2068
|
return false;
|
|
1974
2069
|
}
|
|
1975
2070
|
}
|
|
2071
|
+
const existing_name = existing.name;
|
|
2072
|
+
const incoming_name = incoming.name;
|
|
2073
|
+
if (!(existing_name === incoming_name)) {
|
|
2074
|
+
return false;
|
|
2075
|
+
}
|
|
1976
2076
|
const existing_numOfMembers = existing.numOfMembers;
|
|
1977
2077
|
const incoming_numOfMembers = incoming.numOfMembers;
|
|
1978
2078
|
if (!(existing_numOfMembers === incoming_numOfMembers)) {
|
|
@@ -1990,7 +2090,7 @@ function equals$o(existing, incoming) {
|
|
|
1990
2090
|
if (!(existing_properties === incoming_properties
|
|
1991
2091
|
|| (existing_properties != null &&
|
|
1992
2092
|
incoming_properties != null &&
|
|
1993
|
-
equals$
|
|
2093
|
+
equals$q(existing_properties, incoming_properties)))) {
|
|
1994
2094
|
return false;
|
|
1995
2095
|
}
|
|
1996
2096
|
}
|
|
@@ -2025,18 +2125,31 @@ function equals$o(existing, incoming) {
|
|
|
2025
2125
|
return false;
|
|
2026
2126
|
}
|
|
2027
2127
|
}
|
|
2128
|
+
const existing_user = existing.user;
|
|
2129
|
+
const incoming_user = incoming.user;
|
|
2130
|
+
// if at least one of these optionals is defined
|
|
2131
|
+
if (existing_user !== undefined || incoming_user !== undefined) {
|
|
2132
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2133
|
+
// not equal
|
|
2134
|
+
if (existing_user === undefined || incoming_user === undefined) {
|
|
2135
|
+
return false;
|
|
2136
|
+
}
|
|
2137
|
+
if (!(existing_user === incoming_user)) {
|
|
2138
|
+
return false;
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2028
2141
|
return true;
|
|
2029
2142
|
}
|
|
2030
2143
|
const ingest$h = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2031
2144
|
if (process.env.NODE_ENV !== 'production') {
|
|
2032
|
-
const validateError = validate$
|
|
2145
|
+
const validateError = validate$p(input);
|
|
2033
2146
|
if (validateError !== null) {
|
|
2034
2147
|
throw validateError;
|
|
2035
2148
|
}
|
|
2036
2149
|
}
|
|
2037
2150
|
const key = keyBuilderFromType$8(luvio, input);
|
|
2038
2151
|
const ttlToUse = TTL$7;
|
|
2039
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$
|
|
2152
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$p, RepresentationType$h, equals$p);
|
|
2040
2153
|
return createLink(key);
|
|
2041
2154
|
};
|
|
2042
2155
|
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2049,6 +2162,173 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2049
2162
|
});
|
|
2050
2163
|
}
|
|
2051
2164
|
|
|
2165
|
+
const VERSION$o = "183fbca7ad14ab038244ff7883618c72";
|
|
2166
|
+
function validate$o(obj, path = 'SlackBridgeRoomOutputRepresentation') {
|
|
2167
|
+
const v_error = (() => {
|
|
2168
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2169
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2170
|
+
}
|
|
2171
|
+
const obj_dateEnd = obj.dateEnd;
|
|
2172
|
+
const path_dateEnd = path + '.dateEnd';
|
|
2173
|
+
let obj_dateEnd_union0 = null;
|
|
2174
|
+
const obj_dateEnd_union0_error = (() => {
|
|
2175
|
+
if (typeof obj_dateEnd !== 'number' || (typeof obj_dateEnd === 'number' && Math.floor(obj_dateEnd) !== obj_dateEnd)) {
|
|
2176
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
|
|
2177
|
+
}
|
|
2178
|
+
})();
|
|
2179
|
+
if (obj_dateEnd_union0_error != null) {
|
|
2180
|
+
obj_dateEnd_union0 = obj_dateEnd_union0_error.message;
|
|
2181
|
+
}
|
|
2182
|
+
let obj_dateEnd_union1 = null;
|
|
2183
|
+
const obj_dateEnd_union1_error = (() => {
|
|
2184
|
+
if (obj_dateEnd !== null) {
|
|
2185
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
|
|
2186
|
+
}
|
|
2187
|
+
})();
|
|
2188
|
+
if (obj_dateEnd_union1_error != null) {
|
|
2189
|
+
obj_dateEnd_union1 = obj_dateEnd_union1_error.message;
|
|
2190
|
+
}
|
|
2191
|
+
if (obj_dateEnd_union0 && obj_dateEnd_union1) {
|
|
2192
|
+
let message = 'Object doesn\'t match union (at "' + path_dateEnd + '")';
|
|
2193
|
+
message += '\n' + obj_dateEnd_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2194
|
+
message += '\n' + obj_dateEnd_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2195
|
+
return new TypeError(message);
|
|
2196
|
+
}
|
|
2197
|
+
const obj_dateStart = obj.dateStart;
|
|
2198
|
+
const path_dateStart = path + '.dateStart';
|
|
2199
|
+
if (typeof obj_dateStart !== 'number' || (typeof obj_dateStart === 'number' && Math.floor(obj_dateStart) !== obj_dateStart)) {
|
|
2200
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_dateStart + '" (at "' + path_dateStart + '")');
|
|
2201
|
+
}
|
|
2202
|
+
const obj_hasEnded = obj.hasEnded;
|
|
2203
|
+
const path_hasEnded = path + '.hasEnded';
|
|
2204
|
+
if (typeof obj_hasEnded !== 'boolean') {
|
|
2205
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasEnded + '" (at "' + path_hasEnded + '")');
|
|
2206
|
+
}
|
|
2207
|
+
const obj_huddleLink = obj.huddleLink;
|
|
2208
|
+
const path_huddleLink = path + '.huddleLink';
|
|
2209
|
+
if (typeof obj_huddleLink !== 'string') {
|
|
2210
|
+
return new TypeError('Expected "string" but received "' + typeof obj_huddleLink + '" (at "' + path_huddleLink + '")');
|
|
2211
|
+
}
|
|
2212
|
+
const obj_id = obj.id;
|
|
2213
|
+
const path_id = path + '.id';
|
|
2214
|
+
if (typeof obj_id !== 'string') {
|
|
2215
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2216
|
+
}
|
|
2217
|
+
const obj_participantHistory = obj.participantHistory;
|
|
2218
|
+
const path_participantHistory = path + '.participantHistory';
|
|
2219
|
+
if (!ArrayIsArray(obj_participantHistory)) {
|
|
2220
|
+
return new TypeError('Expected "array" but received "' + typeof obj_participantHistory + '" (at "' + path_participantHistory + '")');
|
|
2221
|
+
}
|
|
2222
|
+
for (let i = 0; i < obj_participantHistory.length; i++) {
|
|
2223
|
+
const obj_participantHistory_item = obj_participantHistory[i];
|
|
2224
|
+
const path_participantHistory_item = path_participantHistory + '[' + i + ']';
|
|
2225
|
+
if (typeof obj_participantHistory_item !== 'string') {
|
|
2226
|
+
return new TypeError('Expected "string" but received "' + typeof obj_participantHistory_item + '" (at "' + path_participantHistory_item + '")');
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
const obj_participants = obj.participants;
|
|
2230
|
+
const path_participants = path + '.participants';
|
|
2231
|
+
if (!ArrayIsArray(obj_participants)) {
|
|
2232
|
+
return new TypeError('Expected "array" but received "' + typeof obj_participants + '" (at "' + path_participants + '")');
|
|
2233
|
+
}
|
|
2234
|
+
for (let i = 0; i < obj_participants.length; i++) {
|
|
2235
|
+
const obj_participants_item = obj_participants[i];
|
|
2236
|
+
const path_participants_item = path_participants + '[' + i + ']';
|
|
2237
|
+
if (typeof obj_participants_item !== 'string') {
|
|
2238
|
+
return new TypeError('Expected "string" but received "' + typeof obj_participants_item + '" (at "' + path_participants_item + '")');
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
})();
|
|
2242
|
+
return v_error === undefined ? null : v_error;
|
|
2243
|
+
}
|
|
2244
|
+
const select$M = function SlackBridgeRoomOutputRepresentationSelect() {
|
|
2245
|
+
return {
|
|
2246
|
+
kind: 'Fragment',
|
|
2247
|
+
version: VERSION$o,
|
|
2248
|
+
private: [],
|
|
2249
|
+
selections: [
|
|
2250
|
+
{
|
|
2251
|
+
name: 'dateEnd',
|
|
2252
|
+
kind: 'Scalar'
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
name: 'dateStart',
|
|
2256
|
+
kind: 'Scalar'
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
name: 'hasEnded',
|
|
2260
|
+
kind: 'Scalar'
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
name: 'huddleLink',
|
|
2264
|
+
kind: 'Scalar'
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
name: 'id',
|
|
2268
|
+
kind: 'Scalar'
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
name: 'participantHistory',
|
|
2272
|
+
kind: 'Scalar',
|
|
2273
|
+
plural: true
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
name: 'participants',
|
|
2277
|
+
kind: 'Scalar',
|
|
2278
|
+
plural: true
|
|
2279
|
+
}
|
|
2280
|
+
]
|
|
2281
|
+
};
|
|
2282
|
+
};
|
|
2283
|
+
function equals$o(existing, incoming) {
|
|
2284
|
+
const existing_hasEnded = existing.hasEnded;
|
|
2285
|
+
const incoming_hasEnded = incoming.hasEnded;
|
|
2286
|
+
if (!(existing_hasEnded === incoming_hasEnded)) {
|
|
2287
|
+
return false;
|
|
2288
|
+
}
|
|
2289
|
+
const existing_dateStart = existing.dateStart;
|
|
2290
|
+
const incoming_dateStart = incoming.dateStart;
|
|
2291
|
+
if (!(existing_dateStart === incoming_dateStart)) {
|
|
2292
|
+
return false;
|
|
2293
|
+
}
|
|
2294
|
+
const existing_huddleLink = existing.huddleLink;
|
|
2295
|
+
const incoming_huddleLink = incoming.huddleLink;
|
|
2296
|
+
if (!(existing_huddleLink === incoming_huddleLink)) {
|
|
2297
|
+
return false;
|
|
2298
|
+
}
|
|
2299
|
+
const existing_id = existing.id;
|
|
2300
|
+
const incoming_id = incoming.id;
|
|
2301
|
+
if (!(existing_id === incoming_id)) {
|
|
2302
|
+
return false;
|
|
2303
|
+
}
|
|
2304
|
+
const existing_dateEnd = existing.dateEnd;
|
|
2305
|
+
const incoming_dateEnd = incoming.dateEnd;
|
|
2306
|
+
if (!(existing_dateEnd === incoming_dateEnd)) {
|
|
2307
|
+
return false;
|
|
2308
|
+
}
|
|
2309
|
+
const existing_participantHistory = existing.participantHistory;
|
|
2310
|
+
const incoming_participantHistory = incoming.participantHistory;
|
|
2311
|
+
const equals_participantHistory_items = equalsArray(existing_participantHistory, incoming_participantHistory, (existing_participantHistory_item, incoming_participantHistory_item) => {
|
|
2312
|
+
if (!(existing_participantHistory_item === incoming_participantHistory_item)) {
|
|
2313
|
+
return false;
|
|
2314
|
+
}
|
|
2315
|
+
});
|
|
2316
|
+
if (equals_participantHistory_items === false) {
|
|
2317
|
+
return false;
|
|
2318
|
+
}
|
|
2319
|
+
const existing_participants = existing.participants;
|
|
2320
|
+
const incoming_participants = incoming.participants;
|
|
2321
|
+
const equals_participants_items = equalsArray(existing_participants, incoming_participants, (existing_participants_item, incoming_participants_item) => {
|
|
2322
|
+
if (!(existing_participants_item === incoming_participants_item)) {
|
|
2323
|
+
return false;
|
|
2324
|
+
}
|
|
2325
|
+
});
|
|
2326
|
+
if (equals_participants_items === false) {
|
|
2327
|
+
return false;
|
|
2328
|
+
}
|
|
2329
|
+
return true;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2052
2332
|
const VERSION$n = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
2053
2333
|
function validate$n(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
2054
2334
|
const v_error = (() => {
|
|
@@ -3557,7 +3837,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3557
3837
|
});
|
|
3558
3838
|
}
|
|
3559
3839
|
|
|
3560
|
-
const VERSION$j = "
|
|
3840
|
+
const VERSION$j = "cc3b0409eeb9f8a45956130e18c9be91";
|
|
3561
3841
|
function validate$j(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
3562
3842
|
const v_error = (() => {
|
|
3563
3843
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3826,7 +4106,7 @@ function validate$j(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
3826
4106
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
3827
4107
|
const obj_reactions_item = obj_reactions[i];
|
|
3828
4108
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
3829
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
4109
|
+
const referencepath_reactions_itemValidationError = validate$t(obj_reactions_item, path_reactions_item);
|
|
3830
4110
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
3831
4111
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
3832
4112
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3897,6 +4177,37 @@ function validate$j(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
3897
4177
|
message += '\n' + obj_replyUsersCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3898
4178
|
return new TypeError(message);
|
|
3899
4179
|
}
|
|
4180
|
+
if (obj.room !== undefined) {
|
|
4181
|
+
const obj_room = obj.room;
|
|
4182
|
+
const path_room = path + '.room';
|
|
4183
|
+
let obj_room_union0 = null;
|
|
4184
|
+
const obj_room_union0_error = (() => {
|
|
4185
|
+
const referencepath_roomValidationError = validate$o(obj_room, path_room);
|
|
4186
|
+
if (referencepath_roomValidationError !== null) {
|
|
4187
|
+
let message = 'Object doesn\'t match SlackBridgeRoomOutputRepresentation (at "' + path_room + '")\n';
|
|
4188
|
+
message += referencepath_roomValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4189
|
+
return new TypeError(message);
|
|
4190
|
+
}
|
|
4191
|
+
})();
|
|
4192
|
+
if (obj_room_union0_error != null) {
|
|
4193
|
+
obj_room_union0 = obj_room_union0_error.message;
|
|
4194
|
+
}
|
|
4195
|
+
let obj_room_union1 = null;
|
|
4196
|
+
const obj_room_union1_error = (() => {
|
|
4197
|
+
if (obj_room !== null) {
|
|
4198
|
+
return new TypeError('Expected "null" but received "' + typeof obj_room + '" (at "' + path_room + '")');
|
|
4199
|
+
}
|
|
4200
|
+
})();
|
|
4201
|
+
if (obj_room_union1_error != null) {
|
|
4202
|
+
obj_room_union1 = obj_room_union1_error.message;
|
|
4203
|
+
}
|
|
4204
|
+
if (obj_room_union0 && obj_room_union1) {
|
|
4205
|
+
let message = 'Object doesn\'t match union (at "' + path_room + '")';
|
|
4206
|
+
message += '\n' + obj_room_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4207
|
+
message += '\n' + obj_room_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4208
|
+
return new TypeError(message);
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
3900
4211
|
const obj_slackInviterId = obj.slackInviterId;
|
|
3901
4212
|
const path_slackInviterId = path + '.slackInviterId';
|
|
3902
4213
|
let obj_slackInviterId_union0 = null;
|
|
@@ -4084,7 +4395,8 @@ function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
|
4084
4395
|
return input;
|
|
4085
4396
|
}
|
|
4086
4397
|
const select$H = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
4087
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
4398
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$R();
|
|
4399
|
+
const { selections: SlackBridgeRoomOutputRepresentation__selections, opaque: SlackBridgeRoomOutputRepresentation__opaque, } = select$M();
|
|
4088
4400
|
return {
|
|
4089
4401
|
kind: 'Fragment',
|
|
4090
4402
|
version: VERSION$j,
|
|
@@ -4167,6 +4479,13 @@ const select$H = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
4167
4479
|
name: 'replyUsersCount',
|
|
4168
4480
|
kind: 'Scalar'
|
|
4169
4481
|
},
|
|
4482
|
+
{
|
|
4483
|
+
name: 'room',
|
|
4484
|
+
kind: 'Object',
|
|
4485
|
+
nullable: true,
|
|
4486
|
+
selections: SlackBridgeRoomOutputRepresentation__selections,
|
|
4487
|
+
required: false
|
|
4488
|
+
},
|
|
4170
4489
|
{
|
|
4171
4490
|
name: 'slackInviterId',
|
|
4172
4491
|
kind: 'Scalar'
|
|
@@ -4314,7 +4633,7 @@ function equals$j(existing, incoming) {
|
|
|
4314
4633
|
const existing_reactions = existing.reactions;
|
|
4315
4634
|
const incoming_reactions = incoming.reactions;
|
|
4316
4635
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
4317
|
-
if (!(equals$
|
|
4636
|
+
if (!(equals$t(existing_reactions_item, incoming_reactions_item))) {
|
|
4318
4637
|
return false;
|
|
4319
4638
|
}
|
|
4320
4639
|
});
|
|
@@ -4341,6 +4660,22 @@ function equals$j(existing, incoming) {
|
|
|
4341
4660
|
if (!(existing_replyUsersCount === incoming_replyUsersCount)) {
|
|
4342
4661
|
return false;
|
|
4343
4662
|
}
|
|
4663
|
+
const existing_room = existing.room;
|
|
4664
|
+
const incoming_room = incoming.room;
|
|
4665
|
+
// if at least one of these optionals is defined
|
|
4666
|
+
if (existing_room !== undefined || incoming_room !== undefined) {
|
|
4667
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4668
|
+
// not equal
|
|
4669
|
+
if (existing_room === undefined || incoming_room === undefined) {
|
|
4670
|
+
return false;
|
|
4671
|
+
}
|
|
4672
|
+
if (!(existing_room === incoming_room
|
|
4673
|
+
|| (existing_room != null &&
|
|
4674
|
+
incoming_room != null &&
|
|
4675
|
+
equals$o(existing_room, incoming_room)))) {
|
|
4676
|
+
return false;
|
|
4677
|
+
}
|
|
4678
|
+
}
|
|
4344
4679
|
const existing_slackInviterId = existing.slackInviterId;
|
|
4345
4680
|
const incoming_slackInviterId = incoming.slackInviterId;
|
|
4346
4681
|
if (!(existing_slackInviterId === incoming_slackInviterId)) {
|
|
@@ -4492,7 +4827,7 @@ const select$G = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
4492
4827
|
name: 'conversations',
|
|
4493
4828
|
kind: 'Link',
|
|
4494
4829
|
plural: true,
|
|
4495
|
-
fragment: select$
|
|
4830
|
+
fragment: select$N()
|
|
4496
4831
|
},
|
|
4497
4832
|
{
|
|
4498
4833
|
name: 'messages',
|
|
@@ -6706,13 +7041,13 @@ const select$z = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
6706
7041
|
name: 'conversationInfo',
|
|
6707
7042
|
kind: 'Link',
|
|
6708
7043
|
nullable: true,
|
|
6709
|
-
fragment: select$
|
|
7044
|
+
fragment: select$N()
|
|
6710
7045
|
},
|
|
6711
7046
|
{
|
|
6712
7047
|
name: 'conversationInfos',
|
|
6713
7048
|
kind: 'Link',
|
|
6714
7049
|
plural: true,
|
|
6715
|
-
fragment: select$
|
|
7050
|
+
fragment: select$N()
|
|
6716
7051
|
},
|
|
6717
7052
|
{
|
|
6718
7053
|
name: 'emojis',
|
|
@@ -7019,7 +7354,7 @@ const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getS
|
|
|
7019
7354
|
};
|
|
7020
7355
|
|
|
7021
7356
|
function select$x(luvio, params) {
|
|
7022
|
-
return select$
|
|
7357
|
+
return select$N();
|
|
7023
7358
|
}
|
|
7024
7359
|
function keyBuilder$w(luvio, params) {
|
|
7025
7360
|
return keyBuilder$E(luvio, {
|
|
@@ -7052,7 +7387,7 @@ function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
|
7052
7387
|
const storeMetadataParams = {
|
|
7053
7388
|
ttl: TTL$7,
|
|
7054
7389
|
namespace: keyPrefix,
|
|
7055
|
-
version: VERSION$
|
|
7390
|
+
version: VERSION$p,
|
|
7056
7391
|
representationName: RepresentationType$h
|
|
7057
7392
|
};
|
|
7058
7393
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -7189,7 +7524,7 @@ const notifyChangeFactory$6 = (luvio, options) => {
|
|
|
7189
7524
|
luvio.storeIngestError(key, errorSnapshot, {
|
|
7190
7525
|
ttl: TTL$7,
|
|
7191
7526
|
namespace: keyPrefix,
|
|
7192
|
-
version: VERSION$
|
|
7527
|
+
version: VERSION$p,
|
|
7193
7528
|
representationName: RepresentationType$h
|
|
7194
7529
|
});
|
|
7195
7530
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
@@ -7277,7 +7612,7 @@ const select$w = function SlackBridgeConversationInfosOutputRepresentationSelect
|
|
|
7277
7612
|
name: 'conversationInfos',
|
|
7278
7613
|
kind: 'Link',
|
|
7279
7614
|
plural: true,
|
|
7280
|
-
fragment: select$
|
|
7615
|
+
fragment: select$N()
|
|
7281
7616
|
},
|
|
7282
7617
|
{
|
|
7283
7618
|
name: 'searchString',
|
|
@@ -7464,7 +7799,7 @@ const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge_
|
|
|
7464
7799
|
};
|
|
7465
7800
|
|
|
7466
7801
|
function select$u(luvio, params) {
|
|
7467
|
-
return select$
|
|
7802
|
+
return select$T();
|
|
7468
7803
|
}
|
|
7469
7804
|
function keyBuilder$s(luvio, params) {
|
|
7470
7805
|
return keyBuilder$K(luvio, {
|
|
@@ -8668,7 +9003,7 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
8668
9003
|
};
|
|
8669
9004
|
|
|
8670
9005
|
function select$l(luvio, params) {
|
|
8671
|
-
return select$
|
|
9006
|
+
return select$S();
|
|
8672
9007
|
}
|
|
8673
9008
|
function keyBuilder$h(luvio, params) {
|
|
8674
9009
|
return keyBuilder$I(luvio, {
|
|
@@ -8897,7 +9232,7 @@ const select$k = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
8897
9232
|
{
|
|
8898
9233
|
name: 'conversationInfo',
|
|
8899
9234
|
kind: 'Link',
|
|
8900
|
-
fragment: select$
|
|
9235
|
+
fragment: select$N()
|
|
8901
9236
|
},
|
|
8902
9237
|
{
|
|
8903
9238
|
name: 'relatedRecordId',
|
|
@@ -10367,7 +10702,7 @@ const openSlackConversationAdapterFactory = (luvio) => {
|
|
|
10367
10702
|
};
|
|
10368
10703
|
|
|
10369
10704
|
function select$8(luvio, params) {
|
|
10370
|
-
return select$
|
|
10705
|
+
return select$S();
|
|
10371
10706
|
}
|
|
10372
10707
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
10373
10708
|
getTypeCacheKeys$j(storeKeyMap, luvio, response);
|
|
@@ -11032,7 +11367,7 @@ const postSlackFileAdapterFactory = (luvio) => {
|
|
|
11032
11367
|
};
|
|
11033
11368
|
|
|
11034
11369
|
function select$1(luvio, params) {
|
|
11035
|
-
return select$
|
|
11370
|
+
return select$Q();
|
|
11036
11371
|
}
|
|
11037
11372
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
11038
11373
|
getTypeCacheKeys$i(storeKeyMap, luvio, response);
|
|
@@ -11458,4 +11793,4 @@ withDefaultLuvio((luvio) => {
|
|
|
11458
11793
|
});
|
|
11459
11794
|
|
|
11460
11795
|
export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationInfo, getSlackConversationInfoNotifyChange, getSlackConversationInfo_imperative, getSlackConversationInfos, getSlackConversationInfos_imperative, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackDisplayLogin, getSlackDisplayLogin_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchMPIMs, getSlackSearchMPIMs_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, openSlackConversation, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
|
|
11461
|
-
// version: 1.380.0-
|
|
11796
|
+
// version: 1.380.0-dev16-2e8ca81939
|