@salesforce/lds-adapters-platform-slack-bridge 1.380.0-dev2 → 1.380.0-dev22
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 +564 -126
- 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/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +10 -4
- package/package.json +3 -3
- package/sfdc/index.js +552 -114
- package/src/raml/api.raml +54 -4
|
@@ -112,8 +112,8 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$v = "d8f70047b26b82f280d95ae8abe94157";
|
|
116
|
+
function validate$v(obj, path = 'SlackBridgeEnterpriseUserInfoOutputRepresentation') {
|
|
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 + '")');
|
|
@@ -151,10 +151,10 @@ function validate$u(obj, path = 'SlackBridgeEnterpriseUserInfoOutputRepresentati
|
|
|
151
151
|
})();
|
|
152
152
|
return v_error === undefined ? null : v_error;
|
|
153
153
|
}
|
|
154
|
-
const select$
|
|
154
|
+
const select$T = function SlackBridgeEnterpriseUserInfoOutputRepresentationSelect() {
|
|
155
155
|
return {
|
|
156
156
|
kind: 'Fragment',
|
|
157
|
-
version: VERSION$
|
|
157
|
+
version: VERSION$v,
|
|
158
158
|
private: [],
|
|
159
159
|
selections: [
|
|
160
160
|
{
|
|
@@ -184,7 +184,7 @@ const select$S = function SlackBridgeEnterpriseUserInfoOutputRepresentationSelec
|
|
|
184
184
|
]
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
-
function equals$
|
|
187
|
+
function equals$v(existing, incoming) {
|
|
188
188
|
const existing_isAdmin = existing.isAdmin;
|
|
189
189
|
const incoming_isAdmin = incoming.isAdmin;
|
|
190
190
|
if (!(existing_isAdmin === incoming_isAdmin)) {
|
|
@@ -218,8 +218,8 @@ function equals$u(existing, incoming) {
|
|
|
218
218
|
return true;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
const VERSION$
|
|
222
|
-
function validate$
|
|
221
|
+
const VERSION$u = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
222
|
+
function validate$u(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
223
223
|
const v_error = (() => {
|
|
224
224
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
225
225
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -305,10 +305,10 @@ function validate$t(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
305
305
|
})();
|
|
306
306
|
return v_error === undefined ? null : v_error;
|
|
307
307
|
}
|
|
308
|
-
const select$
|
|
308
|
+
const select$S = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
309
309
|
return {
|
|
310
310
|
kind: 'Fragment',
|
|
311
|
-
version: VERSION$
|
|
311
|
+
version: VERSION$u,
|
|
312
312
|
private: [],
|
|
313
313
|
selections: [
|
|
314
314
|
{
|
|
@@ -326,7 +326,7 @@ const select$R = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
|
326
326
|
]
|
|
327
327
|
};
|
|
328
328
|
};
|
|
329
|
-
function equals$
|
|
329
|
+
function equals$u(existing, incoming) {
|
|
330
330
|
const existing_appleUrl = existing.appleUrl;
|
|
331
331
|
const incoming_appleUrl = incoming.appleUrl;
|
|
332
332
|
if (!(existing_appleUrl === incoming_appleUrl)) {
|
|
@@ -346,8 +346,8 @@ function equals$t(existing, incoming) {
|
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
const TTL$7 = 2592000000;
|
|
349
|
-
const VERSION$
|
|
350
|
-
function validate$
|
|
349
|
+
const VERSION$t = "a0e1530372a57d61a1264218124bbb5c";
|
|
350
|
+
function validate$t(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
351
351
|
const v_error = (() => {
|
|
352
352
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
353
353
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -465,7 +465,7 @@ function validate$s(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
465
465
|
const path_value = path + '.value';
|
|
466
466
|
let obj_value_union0 = null;
|
|
467
467
|
const obj_value_union0_error = (() => {
|
|
468
|
-
const referencepath_valueValidationError = validate$
|
|
468
|
+
const referencepath_valueValidationError = validate$u(obj_value, path_value);
|
|
469
469
|
if (referencepath_valueValidationError !== null) {
|
|
470
470
|
let message = 'Object doesn\'t match SlackBridgeEmojiValueOutputRepresentation (at "' + path_value + '")\n';
|
|
471
471
|
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -506,11 +506,11 @@ function keyBuilderFromType$b(luvio, object) {
|
|
|
506
506
|
function normalize$k(input, existing, path, luvio, store, timestamp) {
|
|
507
507
|
return input;
|
|
508
508
|
}
|
|
509
|
-
const select$
|
|
510
|
-
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$
|
|
509
|
+
const select$R = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
510
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$S();
|
|
511
511
|
return {
|
|
512
512
|
kind: 'Fragment',
|
|
513
|
-
version: VERSION$
|
|
513
|
+
version: VERSION$t,
|
|
514
514
|
private: [],
|
|
515
515
|
selections: [
|
|
516
516
|
{
|
|
@@ -542,7 +542,7 @@ const select$Q = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
|
542
542
|
]
|
|
543
543
|
};
|
|
544
544
|
};
|
|
545
|
-
function equals$
|
|
545
|
+
function equals$t(existing, incoming) {
|
|
546
546
|
const existing_name = existing.name;
|
|
547
547
|
const incoming_name = incoming.name;
|
|
548
548
|
if (!(existing_name === incoming_name)) {
|
|
@@ -573,21 +573,21 @@ function equals$s(existing, incoming) {
|
|
|
573
573
|
if (!(existing_value === incoming_value
|
|
574
574
|
|| (existing_value != null &&
|
|
575
575
|
incoming_value != null &&
|
|
576
|
-
equals$
|
|
576
|
+
equals$u(existing_value, incoming_value)))) {
|
|
577
577
|
return false;
|
|
578
578
|
}
|
|
579
579
|
return true;
|
|
580
580
|
}
|
|
581
581
|
const ingest$k = function SlackBridgeEmojiOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
582
582
|
if (process.env.NODE_ENV !== 'production') {
|
|
583
|
-
const validateError = validate$
|
|
583
|
+
const validateError = validate$t(input);
|
|
584
584
|
if (validateError !== null) {
|
|
585
585
|
throw validateError;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
const key = keyBuilderFromType$b(luvio, input);
|
|
589
589
|
const ttlToUse = TTL$7;
|
|
590
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "SlackBridge", VERSION$
|
|
590
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$k, "SlackBridge", VERSION$t, RepresentationType$k, equals$t);
|
|
591
591
|
return createLink(key);
|
|
592
592
|
};
|
|
593
593
|
function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -601,8 +601,8 @@ function getTypeCacheKeys$k(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
601
601
|
}
|
|
602
602
|
|
|
603
603
|
const TTL$6 = 900000;
|
|
604
|
-
const VERSION$
|
|
605
|
-
function validate$
|
|
604
|
+
const VERSION$s = "340b283b62f8c3f917012a6c8e120727";
|
|
605
|
+
function validate$s(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
606
606
|
const v_error = (() => {
|
|
607
607
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
608
608
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -612,6 +612,34 @@ function validate$r(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
612
612
|
if (typeof obj_bot !== 'boolean') {
|
|
613
613
|
return new TypeError('Expected "boolean" but received "' + typeof obj_bot + '" (at "' + path_bot + '")');
|
|
614
614
|
}
|
|
615
|
+
if (obj.deleted !== undefined) {
|
|
616
|
+
const obj_deleted = obj.deleted;
|
|
617
|
+
const path_deleted = path + '.deleted';
|
|
618
|
+
let obj_deleted_union0 = null;
|
|
619
|
+
const obj_deleted_union0_error = (() => {
|
|
620
|
+
if (typeof obj_deleted !== 'boolean') {
|
|
621
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_deleted + '" (at "' + path_deleted + '")');
|
|
622
|
+
}
|
|
623
|
+
})();
|
|
624
|
+
if (obj_deleted_union0_error != null) {
|
|
625
|
+
obj_deleted_union0 = obj_deleted_union0_error.message;
|
|
626
|
+
}
|
|
627
|
+
let obj_deleted_union1 = null;
|
|
628
|
+
const obj_deleted_union1_error = (() => {
|
|
629
|
+
if (obj_deleted !== null) {
|
|
630
|
+
return new TypeError('Expected "null" but received "' + typeof obj_deleted + '" (at "' + path_deleted + '")');
|
|
631
|
+
}
|
|
632
|
+
})();
|
|
633
|
+
if (obj_deleted_union1_error != null) {
|
|
634
|
+
obj_deleted_union1 = obj_deleted_union1_error.message;
|
|
635
|
+
}
|
|
636
|
+
if (obj_deleted_union0 && obj_deleted_union1) {
|
|
637
|
+
let message = 'Object doesn\'t match union (at "' + path_deleted + '")';
|
|
638
|
+
message += '\n' + obj_deleted_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
639
|
+
message += '\n' + obj_deleted_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
640
|
+
return new TypeError(message);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
615
643
|
const obj_displayName = obj.displayName;
|
|
616
644
|
const path_displayName = path + '.displayName';
|
|
617
645
|
let obj_displayName_union0 = null;
|
|
@@ -669,7 +697,7 @@ function validate$r(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
669
697
|
const path_enterpriseUser = path + '.enterpriseUser';
|
|
670
698
|
let obj_enterpriseUser_union0 = null;
|
|
671
699
|
const obj_enterpriseUser_union0_error = (() => {
|
|
672
|
-
const referencepath_enterpriseUserValidationError = validate$
|
|
700
|
+
const referencepath_enterpriseUserValidationError = validate$v(obj_enterpriseUser, path_enterpriseUser);
|
|
673
701
|
if (referencepath_enterpriseUserValidationError !== null) {
|
|
674
702
|
let message = 'Object doesn\'t match SlackBridgeEnterpriseUserInfoOutputRepresentation (at "' + path_enterpriseUser + '")\n';
|
|
675
703
|
message += referencepath_enterpriseUserValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -695,6 +723,62 @@ function validate$r(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
695
723
|
return new TypeError(message);
|
|
696
724
|
}
|
|
697
725
|
}
|
|
726
|
+
if (obj.huddleState !== undefined) {
|
|
727
|
+
const obj_huddleState = obj.huddleState;
|
|
728
|
+
const path_huddleState = path + '.huddleState';
|
|
729
|
+
let obj_huddleState_union0 = null;
|
|
730
|
+
const obj_huddleState_union0_error = (() => {
|
|
731
|
+
if (typeof obj_huddleState !== 'string') {
|
|
732
|
+
return new TypeError('Expected "string" but received "' + typeof obj_huddleState + '" (at "' + path_huddleState + '")');
|
|
733
|
+
}
|
|
734
|
+
})();
|
|
735
|
+
if (obj_huddleState_union0_error != null) {
|
|
736
|
+
obj_huddleState_union0 = obj_huddleState_union0_error.message;
|
|
737
|
+
}
|
|
738
|
+
let obj_huddleState_union1 = null;
|
|
739
|
+
const obj_huddleState_union1_error = (() => {
|
|
740
|
+
if (obj_huddleState !== null) {
|
|
741
|
+
return new TypeError('Expected "null" but received "' + typeof obj_huddleState + '" (at "' + path_huddleState + '")');
|
|
742
|
+
}
|
|
743
|
+
})();
|
|
744
|
+
if (obj_huddleState_union1_error != null) {
|
|
745
|
+
obj_huddleState_union1 = obj_huddleState_union1_error.message;
|
|
746
|
+
}
|
|
747
|
+
if (obj_huddleState_union0 && obj_huddleState_union1) {
|
|
748
|
+
let message = 'Object doesn\'t match union (at "' + path_huddleState + '")';
|
|
749
|
+
message += '\n' + obj_huddleState_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
750
|
+
message += '\n' + obj_huddleState_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
751
|
+
return new TypeError(message);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
if (obj.huddleStateExpirationTs !== undefined) {
|
|
755
|
+
const obj_huddleStateExpirationTs = obj.huddleStateExpirationTs;
|
|
756
|
+
const path_huddleStateExpirationTs = path + '.huddleStateExpirationTs';
|
|
757
|
+
let obj_huddleStateExpirationTs_union0 = null;
|
|
758
|
+
const obj_huddleStateExpirationTs_union0_error = (() => {
|
|
759
|
+
if (typeof obj_huddleStateExpirationTs !== 'number' || (typeof obj_huddleStateExpirationTs === 'number' && Math.floor(obj_huddleStateExpirationTs) !== obj_huddleStateExpirationTs)) {
|
|
760
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_huddleStateExpirationTs + '" (at "' + path_huddleStateExpirationTs + '")');
|
|
761
|
+
}
|
|
762
|
+
})();
|
|
763
|
+
if (obj_huddleStateExpirationTs_union0_error != null) {
|
|
764
|
+
obj_huddleStateExpirationTs_union0 = obj_huddleStateExpirationTs_union0_error.message;
|
|
765
|
+
}
|
|
766
|
+
let obj_huddleStateExpirationTs_union1 = null;
|
|
767
|
+
const obj_huddleStateExpirationTs_union1_error = (() => {
|
|
768
|
+
if (obj_huddleStateExpirationTs !== null) {
|
|
769
|
+
return new TypeError('Expected "null" but received "' + typeof obj_huddleStateExpirationTs + '" (at "' + path_huddleStateExpirationTs + '")');
|
|
770
|
+
}
|
|
771
|
+
})();
|
|
772
|
+
if (obj_huddleStateExpirationTs_union1_error != null) {
|
|
773
|
+
obj_huddleStateExpirationTs_union1 = obj_huddleStateExpirationTs_union1_error.message;
|
|
774
|
+
}
|
|
775
|
+
if (obj_huddleStateExpirationTs_union0 && obj_huddleStateExpirationTs_union1) {
|
|
776
|
+
let message = 'Object doesn\'t match union (at "' + path_huddleStateExpirationTs + '")';
|
|
777
|
+
message += '\n' + obj_huddleStateExpirationTs_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
778
|
+
message += '\n' + obj_huddleStateExpirationTs_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
779
|
+
return new TypeError(message);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
698
782
|
if (obj.image24 !== undefined) {
|
|
699
783
|
const obj_image24 = obj.image24;
|
|
700
784
|
const path_image24 = path + '.image24';
|
|
@@ -749,32 +833,6 @@ function validate$r(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
749
833
|
message += '\n' + obj_imageOriginal_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
750
834
|
return new TypeError(message);
|
|
751
835
|
}
|
|
752
|
-
const obj_inHuddle = obj.inHuddle;
|
|
753
|
-
const path_inHuddle = path + '.inHuddle';
|
|
754
|
-
let obj_inHuddle_union0 = null;
|
|
755
|
-
const obj_inHuddle_union0_error = (() => {
|
|
756
|
-
if (typeof obj_inHuddle !== 'boolean') {
|
|
757
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_inHuddle + '" (at "' + path_inHuddle + '")');
|
|
758
|
-
}
|
|
759
|
-
})();
|
|
760
|
-
if (obj_inHuddle_union0_error != null) {
|
|
761
|
-
obj_inHuddle_union0 = obj_inHuddle_union0_error.message;
|
|
762
|
-
}
|
|
763
|
-
let obj_inHuddle_union1 = null;
|
|
764
|
-
const obj_inHuddle_union1_error = (() => {
|
|
765
|
-
if (obj_inHuddle !== null) {
|
|
766
|
-
return new TypeError('Expected "null" but received "' + typeof obj_inHuddle + '" (at "' + path_inHuddle + '")');
|
|
767
|
-
}
|
|
768
|
-
})();
|
|
769
|
-
if (obj_inHuddle_union1_error != null) {
|
|
770
|
-
obj_inHuddle_union1 = obj_inHuddle_union1_error.message;
|
|
771
|
-
}
|
|
772
|
-
if (obj_inHuddle_union0 && obj_inHuddle_union1) {
|
|
773
|
-
let message = 'Object doesn\'t match union (at "' + path_inHuddle + '")';
|
|
774
|
-
message += '\n' + obj_inHuddle_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
775
|
-
message += '\n' + obj_inHuddle_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
776
|
-
return new TypeError(message);
|
|
777
|
-
}
|
|
778
836
|
const obj_isActive = obj.isActive;
|
|
779
837
|
const path_isActive = path + '.isActive';
|
|
780
838
|
let obj_isActive_union0 = null;
|
|
@@ -1170,17 +1228,22 @@ function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
|
1170
1228
|
}
|
|
1171
1229
|
return input;
|
|
1172
1230
|
}
|
|
1173
|
-
const select$
|
|
1174
|
-
const { selections: SlackBridgeEnterpriseUserInfoOutputRepresentation__selections, opaque: SlackBridgeEnterpriseUserInfoOutputRepresentation__opaque, } = select$
|
|
1231
|
+
const select$Q = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
1232
|
+
const { selections: SlackBridgeEnterpriseUserInfoOutputRepresentation__selections, opaque: SlackBridgeEnterpriseUserInfoOutputRepresentation__opaque, } = select$T();
|
|
1175
1233
|
return {
|
|
1176
1234
|
kind: 'Fragment',
|
|
1177
|
-
version: VERSION$
|
|
1235
|
+
version: VERSION$s,
|
|
1178
1236
|
private: [],
|
|
1179
1237
|
selections: [
|
|
1180
1238
|
{
|
|
1181
1239
|
name: 'bot',
|
|
1182
1240
|
kind: 'Scalar'
|
|
1183
1241
|
},
|
|
1242
|
+
{
|
|
1243
|
+
name: 'deleted',
|
|
1244
|
+
kind: 'Scalar',
|
|
1245
|
+
required: false
|
|
1246
|
+
},
|
|
1184
1247
|
{
|
|
1185
1248
|
name: 'displayName',
|
|
1186
1249
|
kind: 'Scalar'
|
|
@@ -1197,16 +1260,22 @@ const select$P = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1197
1260
|
required: false
|
|
1198
1261
|
},
|
|
1199
1262
|
{
|
|
1200
|
-
name: '
|
|
1263
|
+
name: 'huddleState',
|
|
1201
1264
|
kind: 'Scalar',
|
|
1202
1265
|
required: false
|
|
1203
1266
|
},
|
|
1204
1267
|
{
|
|
1205
|
-
name: '
|
|
1206
|
-
kind: 'Scalar'
|
|
1268
|
+
name: 'huddleStateExpirationTs',
|
|
1269
|
+
kind: 'Scalar',
|
|
1270
|
+
required: false
|
|
1207
1271
|
},
|
|
1208
1272
|
{
|
|
1209
|
-
name: '
|
|
1273
|
+
name: 'image24',
|
|
1274
|
+
kind: 'Scalar',
|
|
1275
|
+
required: false
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
name: 'imageOriginal',
|
|
1210
1279
|
kind: 'Scalar'
|
|
1211
1280
|
},
|
|
1212
1281
|
{
|
|
@@ -1275,7 +1344,7 @@ const select$P = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1275
1344
|
name: 'statusEmoji',
|
|
1276
1345
|
kind: 'Link',
|
|
1277
1346
|
nullable: true,
|
|
1278
|
-
fragment: select$
|
|
1347
|
+
fragment: select$R()
|
|
1279
1348
|
},
|
|
1280
1349
|
{
|
|
1281
1350
|
name: 'statusMessage',
|
|
@@ -1302,7 +1371,7 @@ const select$P = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1302
1371
|
]
|
|
1303
1372
|
};
|
|
1304
1373
|
};
|
|
1305
|
-
function equals$
|
|
1374
|
+
function equals$s(existing, incoming) {
|
|
1306
1375
|
const existing_bot = existing.bot;
|
|
1307
1376
|
const incoming_bot = incoming.bot;
|
|
1308
1377
|
if (!(existing_bot === incoming_bot)) {
|
|
@@ -1361,6 +1430,19 @@ function equals$r(existing, incoming) {
|
|
|
1361
1430
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
1362
1431
|
return false;
|
|
1363
1432
|
}
|
|
1433
|
+
const existing_deleted = existing.deleted;
|
|
1434
|
+
const incoming_deleted = incoming.deleted;
|
|
1435
|
+
// if at least one of these optionals is defined
|
|
1436
|
+
if (existing_deleted !== undefined || incoming_deleted !== undefined) {
|
|
1437
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1438
|
+
// not equal
|
|
1439
|
+
if (existing_deleted === undefined || incoming_deleted === undefined) {
|
|
1440
|
+
return false;
|
|
1441
|
+
}
|
|
1442
|
+
if (!(existing_deleted === incoming_deleted)) {
|
|
1443
|
+
return false;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1364
1446
|
const existing_displayName = existing.displayName;
|
|
1365
1447
|
const incoming_displayName = incoming.displayName;
|
|
1366
1448
|
if (!(existing_displayName === incoming_displayName)) {
|
|
@@ -1383,7 +1465,33 @@ function equals$r(existing, incoming) {
|
|
|
1383
1465
|
if (!(existing_enterpriseUser === incoming_enterpriseUser
|
|
1384
1466
|
|| (existing_enterpriseUser != null &&
|
|
1385
1467
|
incoming_enterpriseUser != null &&
|
|
1386
|
-
equals$
|
|
1468
|
+
equals$v(existing_enterpriseUser, incoming_enterpriseUser)))) {
|
|
1469
|
+
return false;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
const existing_huddleState = existing.huddleState;
|
|
1473
|
+
const incoming_huddleState = incoming.huddleState;
|
|
1474
|
+
// if at least one of these optionals is defined
|
|
1475
|
+
if (existing_huddleState !== undefined || incoming_huddleState !== undefined) {
|
|
1476
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1477
|
+
// not equal
|
|
1478
|
+
if (existing_huddleState === undefined || incoming_huddleState === undefined) {
|
|
1479
|
+
return false;
|
|
1480
|
+
}
|
|
1481
|
+
if (!(existing_huddleState === incoming_huddleState)) {
|
|
1482
|
+
return false;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
const existing_huddleStateExpirationTs = existing.huddleStateExpirationTs;
|
|
1486
|
+
const incoming_huddleStateExpirationTs = incoming.huddleStateExpirationTs;
|
|
1487
|
+
// if at least one of these optionals is defined
|
|
1488
|
+
if (existing_huddleStateExpirationTs !== undefined || incoming_huddleStateExpirationTs !== undefined) {
|
|
1489
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1490
|
+
// not equal
|
|
1491
|
+
if (existing_huddleStateExpirationTs === undefined || incoming_huddleStateExpirationTs === undefined) {
|
|
1492
|
+
return false;
|
|
1493
|
+
}
|
|
1494
|
+
if (!(existing_huddleStateExpirationTs === incoming_huddleStateExpirationTs)) {
|
|
1387
1495
|
return false;
|
|
1388
1496
|
}
|
|
1389
1497
|
}
|
|
@@ -1405,11 +1513,6 @@ function equals$r(existing, incoming) {
|
|
|
1405
1513
|
if (!(existing_imageOriginal === incoming_imageOriginal)) {
|
|
1406
1514
|
return false;
|
|
1407
1515
|
}
|
|
1408
|
-
const existing_inHuddle = existing.inHuddle;
|
|
1409
|
-
const incoming_inHuddle = incoming.inHuddle;
|
|
1410
|
-
if (!(existing_inHuddle === incoming_inHuddle)) {
|
|
1411
|
-
return false;
|
|
1412
|
-
}
|
|
1413
1516
|
const existing_isActive = existing.isActive;
|
|
1414
1517
|
const incoming_isActive = incoming.isActive;
|
|
1415
1518
|
if (!(existing_isActive === incoming_isActive)) {
|
|
@@ -1503,14 +1606,14 @@ function equals$r(existing, incoming) {
|
|
|
1503
1606
|
}
|
|
1504
1607
|
const ingest$j = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1505
1608
|
if (process.env.NODE_ENV !== 'production') {
|
|
1506
|
-
const validateError = validate$
|
|
1609
|
+
const validateError = validate$s(input);
|
|
1507
1610
|
if (validateError !== null) {
|
|
1508
1611
|
throw validateError;
|
|
1509
1612
|
}
|
|
1510
1613
|
}
|
|
1511
1614
|
const key = keyBuilderFromType$a(luvio, input);
|
|
1512
1615
|
const ttlToUse = TTL$6;
|
|
1513
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "SlackBridge", VERSION$
|
|
1616
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "SlackBridge", VERSION$s, RepresentationType$j, equals$s);
|
|
1514
1617
|
return createLink(key);
|
|
1515
1618
|
};
|
|
1516
1619
|
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1526,8 +1629,8 @@ function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1526
1629
|
}
|
|
1527
1630
|
}
|
|
1528
1631
|
|
|
1529
|
-
const VERSION$
|
|
1530
|
-
function validate$
|
|
1632
|
+
const VERSION$r = "90163ce3734714c2b87ec91b0ae3ff53";
|
|
1633
|
+
function validate$r(obj, path = 'SlackBridgeConversationRestrictionsOutputRepresentation') {
|
|
1531
1634
|
const v_error = (() => {
|
|
1532
1635
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1533
1636
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1559,10 +1662,10 @@ function validate$q(obj, path = 'SlackBridgeConversationRestrictionsOutputRepres
|
|
|
1559
1662
|
})();
|
|
1560
1663
|
return v_error === undefined ? null : v_error;
|
|
1561
1664
|
}
|
|
1562
|
-
const select$
|
|
1665
|
+
const select$P = function SlackBridgeConversationRestrictionsOutputRepresentationSelect() {
|
|
1563
1666
|
return {
|
|
1564
1667
|
kind: 'Fragment',
|
|
1565
|
-
version: VERSION$
|
|
1668
|
+
version: VERSION$r,
|
|
1566
1669
|
private: [],
|
|
1567
1670
|
selections: [
|
|
1568
1671
|
{
|
|
@@ -1578,7 +1681,7 @@ const select$O = function SlackBridgeConversationRestrictionsOutputRepresentatio
|
|
|
1578
1681
|
]
|
|
1579
1682
|
};
|
|
1580
1683
|
};
|
|
1581
|
-
function equals$
|
|
1684
|
+
function equals$r(existing, incoming) {
|
|
1582
1685
|
const existing_type = existing.type;
|
|
1583
1686
|
const incoming_type = incoming.type;
|
|
1584
1687
|
const equals_type_items = equalsArray(existing_type, incoming_type, (existing_type_item, incoming_type_item) => {
|
|
@@ -1602,8 +1705,8 @@ function equals$q(existing, incoming) {
|
|
|
1602
1705
|
return true;
|
|
1603
1706
|
}
|
|
1604
1707
|
|
|
1605
|
-
const VERSION$
|
|
1606
|
-
function validate$
|
|
1708
|
+
const VERSION$q = "139b4530e5abfb4424ce58620c1e6934";
|
|
1709
|
+
function validate$q(obj, path = 'SlackBridgeConversationPropertiesOutputRepresentation') {
|
|
1607
1710
|
const v_error = (() => {
|
|
1608
1711
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1609
1712
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1690,7 +1793,7 @@ function validate$p(obj, path = 'SlackBridgeConversationPropertiesOutputRepresen
|
|
|
1690
1793
|
const path_postingRestrictedTo = path + '.postingRestrictedTo';
|
|
1691
1794
|
let obj_postingRestrictedTo_union0 = null;
|
|
1692
1795
|
const obj_postingRestrictedTo_union0_error = (() => {
|
|
1693
|
-
const referencepath_postingRestrictedToValidationError = validate$
|
|
1796
|
+
const referencepath_postingRestrictedToValidationError = validate$r(obj_postingRestrictedTo, path_postingRestrictedTo);
|
|
1694
1797
|
if (referencepath_postingRestrictedToValidationError !== null) {
|
|
1695
1798
|
let message = 'Object doesn\'t match SlackBridgeConversationRestrictionsOutputRepresentation (at "' + path_postingRestrictedTo + '")\n';
|
|
1696
1799
|
message += referencepath_postingRestrictedToValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1719,7 +1822,7 @@ function validate$p(obj, path = 'SlackBridgeConversationPropertiesOutputRepresen
|
|
|
1719
1822
|
const path_threadsRestrictedTo = path + '.threadsRestrictedTo';
|
|
1720
1823
|
let obj_threadsRestrictedTo_union0 = null;
|
|
1721
1824
|
const obj_threadsRestrictedTo_union0_error = (() => {
|
|
1722
|
-
const referencepath_threadsRestrictedToValidationError = validate$
|
|
1825
|
+
const referencepath_threadsRestrictedToValidationError = validate$r(obj_threadsRestrictedTo, path_threadsRestrictedTo);
|
|
1723
1826
|
if (referencepath_threadsRestrictedToValidationError !== null) {
|
|
1724
1827
|
let message = 'Object doesn\'t match SlackBridgeConversationRestrictionsOutputRepresentation (at "' + path_threadsRestrictedTo + '")\n';
|
|
1725
1828
|
message += referencepath_threadsRestrictedToValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1747,11 +1850,11 @@ function validate$p(obj, path = 'SlackBridgeConversationPropertiesOutputRepresen
|
|
|
1747
1850
|
})();
|
|
1748
1851
|
return v_error === undefined ? null : v_error;
|
|
1749
1852
|
}
|
|
1750
|
-
const select$
|
|
1751
|
-
const { selections: SlackBridgeConversationRestrictionsOutputRepresentation__selections, opaque: SlackBridgeConversationRestrictionsOutputRepresentation__opaque, } = select$
|
|
1853
|
+
const select$O = function SlackBridgeConversationPropertiesOutputRepresentationSelect() {
|
|
1854
|
+
const { selections: SlackBridgeConversationRestrictionsOutputRepresentation__selections, opaque: SlackBridgeConversationRestrictionsOutputRepresentation__opaque, } = select$P();
|
|
1752
1855
|
return {
|
|
1753
1856
|
kind: 'Fragment',
|
|
1754
|
-
version: VERSION$
|
|
1857
|
+
version: VERSION$q,
|
|
1755
1858
|
private: [],
|
|
1756
1859
|
selections: [
|
|
1757
1860
|
{
|
|
@@ -1781,7 +1884,7 @@ const select$N = function SlackBridgeConversationPropertiesOutputRepresentationS
|
|
|
1781
1884
|
]
|
|
1782
1885
|
};
|
|
1783
1886
|
};
|
|
1784
|
-
function equals$
|
|
1887
|
+
function equals$q(existing, incoming) {
|
|
1785
1888
|
const existing_atChannelRestricted = existing.atChannelRestricted;
|
|
1786
1889
|
const incoming_atChannelRestricted = incoming.atChannelRestricted;
|
|
1787
1890
|
if (!(existing_atChannelRestricted === incoming_atChannelRestricted)) {
|
|
@@ -1802,7 +1905,7 @@ function equals$p(existing, incoming) {
|
|
|
1802
1905
|
if (!(existing_postingRestrictedTo === incoming_postingRestrictedTo
|
|
1803
1906
|
|| (existing_postingRestrictedTo != null &&
|
|
1804
1907
|
incoming_postingRestrictedTo != null &&
|
|
1805
|
-
equals$
|
|
1908
|
+
equals$r(existing_postingRestrictedTo, incoming_postingRestrictedTo)))) {
|
|
1806
1909
|
return false;
|
|
1807
1910
|
}
|
|
1808
1911
|
const existing_threadsRestrictedTo = existing.threadsRestrictedTo;
|
|
@@ -1810,15 +1913,15 @@ function equals$p(existing, incoming) {
|
|
|
1810
1913
|
if (!(existing_threadsRestrictedTo === incoming_threadsRestrictedTo
|
|
1811
1914
|
|| (existing_threadsRestrictedTo != null &&
|
|
1812
1915
|
incoming_threadsRestrictedTo != null &&
|
|
1813
|
-
equals$
|
|
1916
|
+
equals$r(existing_threadsRestrictedTo, incoming_threadsRestrictedTo)))) {
|
|
1814
1917
|
return false;
|
|
1815
1918
|
}
|
|
1816
1919
|
return true;
|
|
1817
1920
|
}
|
|
1818
1921
|
|
|
1819
1922
|
const TTL$5 = 900000;
|
|
1820
|
-
const VERSION$
|
|
1821
|
-
function validate$
|
|
1923
|
+
const VERSION$p = "a35df81fd20149aae615a01f742cece5";
|
|
1924
|
+
function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1822
1925
|
const v_error = (() => {
|
|
1823
1926
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1824
1927
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2036,6 +2139,34 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
2036
2139
|
message += '\n' + obj_isMember_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2037
2140
|
return new TypeError(message);
|
|
2038
2141
|
}
|
|
2142
|
+
if (obj.isMpim !== undefined) {
|
|
2143
|
+
const obj_isMpim = obj.isMpim;
|
|
2144
|
+
const path_isMpim = path + '.isMpim';
|
|
2145
|
+
let obj_isMpim_union0 = null;
|
|
2146
|
+
const obj_isMpim_union0_error = (() => {
|
|
2147
|
+
if (typeof obj_isMpim !== 'boolean') {
|
|
2148
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
|
|
2149
|
+
}
|
|
2150
|
+
})();
|
|
2151
|
+
if (obj_isMpim_union0_error != null) {
|
|
2152
|
+
obj_isMpim_union0 = obj_isMpim_union0_error.message;
|
|
2153
|
+
}
|
|
2154
|
+
let obj_isMpim_union1 = null;
|
|
2155
|
+
const obj_isMpim_union1_error = (() => {
|
|
2156
|
+
if (obj_isMpim !== null) {
|
|
2157
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
|
|
2158
|
+
}
|
|
2159
|
+
})();
|
|
2160
|
+
if (obj_isMpim_union1_error != null) {
|
|
2161
|
+
obj_isMpim_union1 = obj_isMpim_union1_error.message;
|
|
2162
|
+
}
|
|
2163
|
+
if (obj_isMpim_union0 && obj_isMpim_union1) {
|
|
2164
|
+
let message = 'Object doesn\'t match union (at "' + path_isMpim + '")';
|
|
2165
|
+
message += '\n' + obj_isMpim_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2166
|
+
message += '\n' + obj_isMpim_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2167
|
+
return new TypeError(message);
|
|
2168
|
+
}
|
|
2169
|
+
}
|
|
2039
2170
|
const obj_isOpen = obj.isOpen;
|
|
2040
2171
|
const path_isOpen = path + '.isOpen';
|
|
2041
2172
|
let obj_isOpen_union0 = null;
|
|
@@ -2274,8 +2405,29 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
2274
2405
|
}
|
|
2275
2406
|
const obj_name = obj.name;
|
|
2276
2407
|
const path_name = path + '.name';
|
|
2277
|
-
|
|
2278
|
-
|
|
2408
|
+
let obj_name_union0 = null;
|
|
2409
|
+
const obj_name_union0_error = (() => {
|
|
2410
|
+
if (typeof obj_name !== 'string') {
|
|
2411
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2412
|
+
}
|
|
2413
|
+
})();
|
|
2414
|
+
if (obj_name_union0_error != null) {
|
|
2415
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
2416
|
+
}
|
|
2417
|
+
let obj_name_union1 = null;
|
|
2418
|
+
const obj_name_union1_error = (() => {
|
|
2419
|
+
if (obj_name !== null) {
|
|
2420
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2421
|
+
}
|
|
2422
|
+
})();
|
|
2423
|
+
if (obj_name_union1_error != null) {
|
|
2424
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
2425
|
+
}
|
|
2426
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
2427
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
2428
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2429
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2430
|
+
return new TypeError(message);
|
|
2279
2431
|
}
|
|
2280
2432
|
const obj_numOfMembers = obj.numOfMembers;
|
|
2281
2433
|
const path_numOfMembers = path + '.numOfMembers';
|
|
@@ -2308,7 +2460,7 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
2308
2460
|
const path_properties = path + '.properties';
|
|
2309
2461
|
let obj_properties_union0 = null;
|
|
2310
2462
|
const obj_properties_union0_error = (() => {
|
|
2311
|
-
const referencepath_propertiesValidationError = validate$
|
|
2463
|
+
const referencepath_propertiesValidationError = validate$q(obj_properties, path_properties);
|
|
2312
2464
|
if (referencepath_propertiesValidationError !== null) {
|
|
2313
2465
|
let message = 'Object doesn\'t match SlackBridgeConversationPropertiesOutputRepresentation (at "' + path_properties + '")\n';
|
|
2314
2466
|
message += referencepath_propertiesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2423,6 +2575,34 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
2423
2575
|
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
2424
2576
|
}
|
|
2425
2577
|
}
|
|
2578
|
+
if (obj.user !== undefined) {
|
|
2579
|
+
const obj_user = obj.user;
|
|
2580
|
+
const path_user = path + '.user';
|
|
2581
|
+
let obj_user_union0 = null;
|
|
2582
|
+
const obj_user_union0_error = (() => {
|
|
2583
|
+
if (typeof obj_user !== 'string') {
|
|
2584
|
+
return new TypeError('Expected "string" but received "' + typeof obj_user + '" (at "' + path_user + '")');
|
|
2585
|
+
}
|
|
2586
|
+
})();
|
|
2587
|
+
if (obj_user_union0_error != null) {
|
|
2588
|
+
obj_user_union0 = obj_user_union0_error.message;
|
|
2589
|
+
}
|
|
2590
|
+
let obj_user_union1 = null;
|
|
2591
|
+
const obj_user_union1_error = (() => {
|
|
2592
|
+
if (obj_user !== null) {
|
|
2593
|
+
return new TypeError('Expected "null" but received "' + typeof obj_user + '" (at "' + path_user + '")');
|
|
2594
|
+
}
|
|
2595
|
+
})();
|
|
2596
|
+
if (obj_user_union1_error != null) {
|
|
2597
|
+
obj_user_union1 = obj_user_union1_error.message;
|
|
2598
|
+
}
|
|
2599
|
+
if (obj_user_union0 && obj_user_union1) {
|
|
2600
|
+
let message = 'Object doesn\'t match union (at "' + path_user + '")';
|
|
2601
|
+
message += '\n' + obj_user_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2602
|
+
message += '\n' + obj_user_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2603
|
+
return new TypeError(message);
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2426
2606
|
})();
|
|
2427
2607
|
return v_error === undefined ? null : v_error;
|
|
2428
2608
|
}
|
|
@@ -2439,11 +2619,11 @@ function keyBuilderFromType$9(luvio, object) {
|
|
|
2439
2619
|
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
2440
2620
|
return input;
|
|
2441
2621
|
}
|
|
2442
|
-
const select$
|
|
2443
|
-
const { selections: SlackBridgeConversationPropertiesOutputRepresentation__selections, opaque: SlackBridgeConversationPropertiesOutputRepresentation__opaque, } = select$
|
|
2622
|
+
const select$N = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
2623
|
+
const { selections: SlackBridgeConversationPropertiesOutputRepresentation__selections, opaque: SlackBridgeConversationPropertiesOutputRepresentation__opaque, } = select$O();
|
|
2444
2624
|
return {
|
|
2445
2625
|
kind: 'Fragment',
|
|
2446
|
-
version: VERSION$
|
|
2626
|
+
version: VERSION$p,
|
|
2447
2627
|
private: [],
|
|
2448
2628
|
selections: [
|
|
2449
2629
|
{
|
|
@@ -2482,6 +2662,11 @@ const select$M = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
2482
2662
|
name: 'isMember',
|
|
2483
2663
|
kind: 'Scalar'
|
|
2484
2664
|
},
|
|
2665
|
+
{
|
|
2666
|
+
name: 'isMpim',
|
|
2667
|
+
kind: 'Scalar',
|
|
2668
|
+
required: false
|
|
2669
|
+
},
|
|
2485
2670
|
{
|
|
2486
2671
|
name: 'isOpen',
|
|
2487
2672
|
kind: 'Scalar'
|
|
@@ -2552,21 +2737,21 @@ const select$M = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
2552
2737
|
name: 'url',
|
|
2553
2738
|
kind: 'Scalar',
|
|
2554
2739
|
required: false
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
name: 'user',
|
|
2743
|
+
kind: 'Scalar',
|
|
2744
|
+
required: false
|
|
2555
2745
|
}
|
|
2556
2746
|
]
|
|
2557
2747
|
};
|
|
2558
2748
|
};
|
|
2559
|
-
function equals$
|
|
2749
|
+
function equals$p(existing, incoming) {
|
|
2560
2750
|
const existing_id = existing.id;
|
|
2561
2751
|
const incoming_id = incoming.id;
|
|
2562
2752
|
if (!(existing_id === incoming_id)) {
|
|
2563
2753
|
return false;
|
|
2564
2754
|
}
|
|
2565
|
-
const existing_name = existing.name;
|
|
2566
|
-
const incoming_name = incoming.name;
|
|
2567
|
-
if (!(existing_name === incoming_name)) {
|
|
2568
|
-
return false;
|
|
2569
|
-
}
|
|
2570
2755
|
const existing_url = existing.url;
|
|
2571
2756
|
const incoming_url = incoming.url;
|
|
2572
2757
|
// if at least one of these optionals is defined
|
|
@@ -2620,6 +2805,19 @@ function equals$o(existing, incoming) {
|
|
|
2620
2805
|
if (!(existing_isMember === incoming_isMember)) {
|
|
2621
2806
|
return false;
|
|
2622
2807
|
}
|
|
2808
|
+
const existing_isMpim = existing.isMpim;
|
|
2809
|
+
const incoming_isMpim = incoming.isMpim;
|
|
2810
|
+
// if at least one of these optionals is defined
|
|
2811
|
+
if (existing_isMpim !== undefined || incoming_isMpim !== undefined) {
|
|
2812
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2813
|
+
// not equal
|
|
2814
|
+
if (existing_isMpim === undefined || incoming_isMpim === undefined) {
|
|
2815
|
+
return false;
|
|
2816
|
+
}
|
|
2817
|
+
if (!(existing_isMpim === incoming_isMpim)) {
|
|
2818
|
+
return false;
|
|
2819
|
+
}
|
|
2820
|
+
}
|
|
2623
2821
|
const existing_isOpen = existing.isOpen;
|
|
2624
2822
|
const incoming_isOpen = incoming.isOpen;
|
|
2625
2823
|
if (!(existing_isOpen === incoming_isOpen)) {
|
|
@@ -2673,6 +2871,11 @@ function equals$o(existing, incoming) {
|
|
|
2673
2871
|
return false;
|
|
2674
2872
|
}
|
|
2675
2873
|
}
|
|
2874
|
+
const existing_name = existing.name;
|
|
2875
|
+
const incoming_name = incoming.name;
|
|
2876
|
+
if (!(existing_name === incoming_name)) {
|
|
2877
|
+
return false;
|
|
2878
|
+
}
|
|
2676
2879
|
const existing_numOfMembers = existing.numOfMembers;
|
|
2677
2880
|
const incoming_numOfMembers = incoming.numOfMembers;
|
|
2678
2881
|
if (!(existing_numOfMembers === incoming_numOfMembers)) {
|
|
@@ -2690,7 +2893,7 @@ function equals$o(existing, incoming) {
|
|
|
2690
2893
|
if (!(existing_properties === incoming_properties
|
|
2691
2894
|
|| (existing_properties != null &&
|
|
2692
2895
|
incoming_properties != null &&
|
|
2693
|
-
equals$
|
|
2896
|
+
equals$q(existing_properties, incoming_properties)))) {
|
|
2694
2897
|
return false;
|
|
2695
2898
|
}
|
|
2696
2899
|
}
|
|
@@ -2725,18 +2928,31 @@ function equals$o(existing, incoming) {
|
|
|
2725
2928
|
return false;
|
|
2726
2929
|
}
|
|
2727
2930
|
}
|
|
2931
|
+
const existing_user = existing.user;
|
|
2932
|
+
const incoming_user = incoming.user;
|
|
2933
|
+
// if at least one of these optionals is defined
|
|
2934
|
+
if (existing_user !== undefined || incoming_user !== undefined) {
|
|
2935
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2936
|
+
// not equal
|
|
2937
|
+
if (existing_user === undefined || incoming_user === undefined) {
|
|
2938
|
+
return false;
|
|
2939
|
+
}
|
|
2940
|
+
if (!(existing_user === incoming_user)) {
|
|
2941
|
+
return false;
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2728
2944
|
return true;
|
|
2729
2945
|
}
|
|
2730
2946
|
const ingest$i = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2731
2947
|
if (process.env.NODE_ENV !== 'production') {
|
|
2732
|
-
const validateError = validate$
|
|
2948
|
+
const validateError = validate$p(input);
|
|
2733
2949
|
if (validateError !== null) {
|
|
2734
2950
|
throw validateError;
|
|
2735
2951
|
}
|
|
2736
2952
|
}
|
|
2737
2953
|
const key = keyBuilderFromType$9(luvio, input);
|
|
2738
2954
|
const ttlToUse = TTL$5;
|
|
2739
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$
|
|
2955
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$p, RepresentationType$i, equals$p);
|
|
2740
2956
|
return createLink(key);
|
|
2741
2957
|
};
|
|
2742
2958
|
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2749,8 +2965,8 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2749
2965
|
});
|
|
2750
2966
|
}
|
|
2751
2967
|
|
|
2752
|
-
const VERSION$
|
|
2753
|
-
function validate$
|
|
2968
|
+
const VERSION$o = "7820a930852347bb0506c08d8b528281";
|
|
2969
|
+
function validate$o(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
2754
2970
|
const v_error = (() => {
|
|
2755
2971
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2756
2972
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2827,10 +3043,10 @@ function validate$n(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
2827
3043
|
})();
|
|
2828
3044
|
return v_error === undefined ? null : v_error;
|
|
2829
3045
|
}
|
|
2830
|
-
const select$
|
|
3046
|
+
const select$M = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
2831
3047
|
return {
|
|
2832
3048
|
kind: 'Fragment',
|
|
2833
|
-
version: VERSION$
|
|
3049
|
+
version: VERSION$o,
|
|
2834
3050
|
private: [],
|
|
2835
3051
|
selections: [
|
|
2836
3052
|
{
|
|
@@ -2853,7 +3069,7 @@ const select$L = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
2853
3069
|
]
|
|
2854
3070
|
};
|
|
2855
3071
|
};
|
|
2856
|
-
function equals$
|
|
3072
|
+
function equals$o(existing, incoming) {
|
|
2857
3073
|
const existing_name = existing.name;
|
|
2858
3074
|
const incoming_name = incoming.name;
|
|
2859
3075
|
if (!(existing_name === incoming_name)) {
|
|
@@ -2882,6 +3098,173 @@ function equals$n(existing, incoming) {
|
|
|
2882
3098
|
return true;
|
|
2883
3099
|
}
|
|
2884
3100
|
|
|
3101
|
+
const VERSION$n = "183fbca7ad14ab038244ff7883618c72";
|
|
3102
|
+
function validate$n(obj, path = 'SlackBridgeRoomOutputRepresentation') {
|
|
3103
|
+
const v_error = (() => {
|
|
3104
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3105
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3106
|
+
}
|
|
3107
|
+
const obj_dateEnd = obj.dateEnd;
|
|
3108
|
+
const path_dateEnd = path + '.dateEnd';
|
|
3109
|
+
let obj_dateEnd_union0 = null;
|
|
3110
|
+
const obj_dateEnd_union0_error = (() => {
|
|
3111
|
+
if (typeof obj_dateEnd !== 'number' || (typeof obj_dateEnd === 'number' && Math.floor(obj_dateEnd) !== obj_dateEnd)) {
|
|
3112
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
|
|
3113
|
+
}
|
|
3114
|
+
})();
|
|
3115
|
+
if (obj_dateEnd_union0_error != null) {
|
|
3116
|
+
obj_dateEnd_union0 = obj_dateEnd_union0_error.message;
|
|
3117
|
+
}
|
|
3118
|
+
let obj_dateEnd_union1 = null;
|
|
3119
|
+
const obj_dateEnd_union1_error = (() => {
|
|
3120
|
+
if (obj_dateEnd !== null) {
|
|
3121
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
|
|
3122
|
+
}
|
|
3123
|
+
})();
|
|
3124
|
+
if (obj_dateEnd_union1_error != null) {
|
|
3125
|
+
obj_dateEnd_union1 = obj_dateEnd_union1_error.message;
|
|
3126
|
+
}
|
|
3127
|
+
if (obj_dateEnd_union0 && obj_dateEnd_union1) {
|
|
3128
|
+
let message = 'Object doesn\'t match union (at "' + path_dateEnd + '")';
|
|
3129
|
+
message += '\n' + obj_dateEnd_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3130
|
+
message += '\n' + obj_dateEnd_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3131
|
+
return new TypeError(message);
|
|
3132
|
+
}
|
|
3133
|
+
const obj_dateStart = obj.dateStart;
|
|
3134
|
+
const path_dateStart = path + '.dateStart';
|
|
3135
|
+
if (typeof obj_dateStart !== 'number' || (typeof obj_dateStart === 'number' && Math.floor(obj_dateStart) !== obj_dateStart)) {
|
|
3136
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_dateStart + '" (at "' + path_dateStart + '")');
|
|
3137
|
+
}
|
|
3138
|
+
const obj_hasEnded = obj.hasEnded;
|
|
3139
|
+
const path_hasEnded = path + '.hasEnded';
|
|
3140
|
+
if (typeof obj_hasEnded !== 'boolean') {
|
|
3141
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasEnded + '" (at "' + path_hasEnded + '")');
|
|
3142
|
+
}
|
|
3143
|
+
const obj_huddleLink = obj.huddleLink;
|
|
3144
|
+
const path_huddleLink = path + '.huddleLink';
|
|
3145
|
+
if (typeof obj_huddleLink !== 'string') {
|
|
3146
|
+
return new TypeError('Expected "string" but received "' + typeof obj_huddleLink + '" (at "' + path_huddleLink + '")');
|
|
3147
|
+
}
|
|
3148
|
+
const obj_id = obj.id;
|
|
3149
|
+
const path_id = path + '.id';
|
|
3150
|
+
if (typeof obj_id !== 'string') {
|
|
3151
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3152
|
+
}
|
|
3153
|
+
const obj_participantHistory = obj.participantHistory;
|
|
3154
|
+
const path_participantHistory = path + '.participantHistory';
|
|
3155
|
+
if (!ArrayIsArray(obj_participantHistory)) {
|
|
3156
|
+
return new TypeError('Expected "array" but received "' + typeof obj_participantHistory + '" (at "' + path_participantHistory + '")');
|
|
3157
|
+
}
|
|
3158
|
+
for (let i = 0; i < obj_participantHistory.length; i++) {
|
|
3159
|
+
const obj_participantHistory_item = obj_participantHistory[i];
|
|
3160
|
+
const path_participantHistory_item = path_participantHistory + '[' + i + ']';
|
|
3161
|
+
if (typeof obj_participantHistory_item !== 'string') {
|
|
3162
|
+
return new TypeError('Expected "string" but received "' + typeof obj_participantHistory_item + '" (at "' + path_participantHistory_item + '")');
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
const obj_participants = obj.participants;
|
|
3166
|
+
const path_participants = path + '.participants';
|
|
3167
|
+
if (!ArrayIsArray(obj_participants)) {
|
|
3168
|
+
return new TypeError('Expected "array" but received "' + typeof obj_participants + '" (at "' + path_participants + '")');
|
|
3169
|
+
}
|
|
3170
|
+
for (let i = 0; i < obj_participants.length; i++) {
|
|
3171
|
+
const obj_participants_item = obj_participants[i];
|
|
3172
|
+
const path_participants_item = path_participants + '[' + i + ']';
|
|
3173
|
+
if (typeof obj_participants_item !== 'string') {
|
|
3174
|
+
return new TypeError('Expected "string" but received "' + typeof obj_participants_item + '" (at "' + path_participants_item + '")');
|
|
3175
|
+
}
|
|
3176
|
+
}
|
|
3177
|
+
})();
|
|
3178
|
+
return v_error === undefined ? null : v_error;
|
|
3179
|
+
}
|
|
3180
|
+
const select$L = function SlackBridgeRoomOutputRepresentationSelect() {
|
|
3181
|
+
return {
|
|
3182
|
+
kind: 'Fragment',
|
|
3183
|
+
version: VERSION$n,
|
|
3184
|
+
private: [],
|
|
3185
|
+
selections: [
|
|
3186
|
+
{
|
|
3187
|
+
name: 'dateEnd',
|
|
3188
|
+
kind: 'Scalar'
|
|
3189
|
+
},
|
|
3190
|
+
{
|
|
3191
|
+
name: 'dateStart',
|
|
3192
|
+
kind: 'Scalar'
|
|
3193
|
+
},
|
|
3194
|
+
{
|
|
3195
|
+
name: 'hasEnded',
|
|
3196
|
+
kind: 'Scalar'
|
|
3197
|
+
},
|
|
3198
|
+
{
|
|
3199
|
+
name: 'huddleLink',
|
|
3200
|
+
kind: 'Scalar'
|
|
3201
|
+
},
|
|
3202
|
+
{
|
|
3203
|
+
name: 'id',
|
|
3204
|
+
kind: 'Scalar'
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
name: 'participantHistory',
|
|
3208
|
+
kind: 'Scalar',
|
|
3209
|
+
plural: true
|
|
3210
|
+
},
|
|
3211
|
+
{
|
|
3212
|
+
name: 'participants',
|
|
3213
|
+
kind: 'Scalar',
|
|
3214
|
+
plural: true
|
|
3215
|
+
}
|
|
3216
|
+
]
|
|
3217
|
+
};
|
|
3218
|
+
};
|
|
3219
|
+
function equals$n(existing, incoming) {
|
|
3220
|
+
const existing_hasEnded = existing.hasEnded;
|
|
3221
|
+
const incoming_hasEnded = incoming.hasEnded;
|
|
3222
|
+
if (!(existing_hasEnded === incoming_hasEnded)) {
|
|
3223
|
+
return false;
|
|
3224
|
+
}
|
|
3225
|
+
const existing_dateStart = existing.dateStart;
|
|
3226
|
+
const incoming_dateStart = incoming.dateStart;
|
|
3227
|
+
if (!(existing_dateStart === incoming_dateStart)) {
|
|
3228
|
+
return false;
|
|
3229
|
+
}
|
|
3230
|
+
const existing_huddleLink = existing.huddleLink;
|
|
3231
|
+
const incoming_huddleLink = incoming.huddleLink;
|
|
3232
|
+
if (!(existing_huddleLink === incoming_huddleLink)) {
|
|
3233
|
+
return false;
|
|
3234
|
+
}
|
|
3235
|
+
const existing_id = existing.id;
|
|
3236
|
+
const incoming_id = incoming.id;
|
|
3237
|
+
if (!(existing_id === incoming_id)) {
|
|
3238
|
+
return false;
|
|
3239
|
+
}
|
|
3240
|
+
const existing_dateEnd = existing.dateEnd;
|
|
3241
|
+
const incoming_dateEnd = incoming.dateEnd;
|
|
3242
|
+
if (!(existing_dateEnd === incoming_dateEnd)) {
|
|
3243
|
+
return false;
|
|
3244
|
+
}
|
|
3245
|
+
const existing_participantHistory = existing.participantHistory;
|
|
3246
|
+
const incoming_participantHistory = incoming.participantHistory;
|
|
3247
|
+
const equals_participantHistory_items = equalsArray(existing_participantHistory, incoming_participantHistory, (existing_participantHistory_item, incoming_participantHistory_item) => {
|
|
3248
|
+
if (!(existing_participantHistory_item === incoming_participantHistory_item)) {
|
|
3249
|
+
return false;
|
|
3250
|
+
}
|
|
3251
|
+
});
|
|
3252
|
+
if (equals_participantHistory_items === false) {
|
|
3253
|
+
return false;
|
|
3254
|
+
}
|
|
3255
|
+
const existing_participants = existing.participants;
|
|
3256
|
+
const incoming_participants = incoming.participants;
|
|
3257
|
+
const equals_participants_items = equalsArray(existing_participants, incoming_participants, (existing_participants_item, incoming_participants_item) => {
|
|
3258
|
+
if (!(existing_participants_item === incoming_participants_item)) {
|
|
3259
|
+
return false;
|
|
3260
|
+
}
|
|
3261
|
+
});
|
|
3262
|
+
if (equals_participants_items === false) {
|
|
3263
|
+
return false;
|
|
3264
|
+
}
|
|
3265
|
+
return true;
|
|
3266
|
+
}
|
|
3267
|
+
|
|
2885
3268
|
const VERSION$m = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
2886
3269
|
function validate$m(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
2887
3270
|
const v_error = (() => {
|
|
@@ -4390,7 +4773,7 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4390
4773
|
});
|
|
4391
4774
|
}
|
|
4392
4775
|
|
|
4393
|
-
const VERSION$i = "
|
|
4776
|
+
const VERSION$i = "cc3b0409eeb9f8a45956130e18c9be91";
|
|
4394
4777
|
function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
4395
4778
|
const v_error = (() => {
|
|
4396
4779
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4659,7 +5042,7 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
4659
5042
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
4660
5043
|
const obj_reactions_item = obj_reactions[i];
|
|
4661
5044
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
4662
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
5045
|
+
const referencepath_reactions_itemValidationError = validate$o(obj_reactions_item, path_reactions_item);
|
|
4663
5046
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
4664
5047
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
4665
5048
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4730,6 +5113,37 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
4730
5113
|
message += '\n' + obj_replyUsersCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4731
5114
|
return new TypeError(message);
|
|
4732
5115
|
}
|
|
5116
|
+
if (obj.room !== undefined) {
|
|
5117
|
+
const obj_room = obj.room;
|
|
5118
|
+
const path_room = path + '.room';
|
|
5119
|
+
let obj_room_union0 = null;
|
|
5120
|
+
const obj_room_union0_error = (() => {
|
|
5121
|
+
const referencepath_roomValidationError = validate$n(obj_room, path_room);
|
|
5122
|
+
if (referencepath_roomValidationError !== null) {
|
|
5123
|
+
let message = 'Object doesn\'t match SlackBridgeRoomOutputRepresentation (at "' + path_room + '")\n';
|
|
5124
|
+
message += referencepath_roomValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5125
|
+
return new TypeError(message);
|
|
5126
|
+
}
|
|
5127
|
+
})();
|
|
5128
|
+
if (obj_room_union0_error != null) {
|
|
5129
|
+
obj_room_union0 = obj_room_union0_error.message;
|
|
5130
|
+
}
|
|
5131
|
+
let obj_room_union1 = null;
|
|
5132
|
+
const obj_room_union1_error = (() => {
|
|
5133
|
+
if (obj_room !== null) {
|
|
5134
|
+
return new TypeError('Expected "null" but received "' + typeof obj_room + '" (at "' + path_room + '")');
|
|
5135
|
+
}
|
|
5136
|
+
})();
|
|
5137
|
+
if (obj_room_union1_error != null) {
|
|
5138
|
+
obj_room_union1 = obj_room_union1_error.message;
|
|
5139
|
+
}
|
|
5140
|
+
if (obj_room_union0 && obj_room_union1) {
|
|
5141
|
+
let message = 'Object doesn\'t match union (at "' + path_room + '")';
|
|
5142
|
+
message += '\n' + obj_room_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5143
|
+
message += '\n' + obj_room_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5144
|
+
return new TypeError(message);
|
|
5145
|
+
}
|
|
5146
|
+
}
|
|
4733
5147
|
const obj_slackInviterId = obj.slackInviterId;
|
|
4734
5148
|
const path_slackInviterId = path + '.slackInviterId';
|
|
4735
5149
|
let obj_slackInviterId_union0 = null;
|
|
@@ -4917,7 +5331,8 @@ function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
|
4917
5331
|
return input;
|
|
4918
5332
|
}
|
|
4919
5333
|
const select$G = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
4920
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
5334
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$M();
|
|
5335
|
+
const { selections: SlackBridgeRoomOutputRepresentation__selections, opaque: SlackBridgeRoomOutputRepresentation__opaque, } = select$L();
|
|
4921
5336
|
return {
|
|
4922
5337
|
kind: 'Fragment',
|
|
4923
5338
|
version: VERSION$i,
|
|
@@ -5000,6 +5415,13 @@ const select$G = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
5000
5415
|
name: 'replyUsersCount',
|
|
5001
5416
|
kind: 'Scalar'
|
|
5002
5417
|
},
|
|
5418
|
+
{
|
|
5419
|
+
name: 'room',
|
|
5420
|
+
kind: 'Object',
|
|
5421
|
+
nullable: true,
|
|
5422
|
+
selections: SlackBridgeRoomOutputRepresentation__selections,
|
|
5423
|
+
required: false
|
|
5424
|
+
},
|
|
5003
5425
|
{
|
|
5004
5426
|
name: 'slackInviterId',
|
|
5005
5427
|
kind: 'Scalar'
|
|
@@ -5147,7 +5569,7 @@ function equals$i(existing, incoming) {
|
|
|
5147
5569
|
const existing_reactions = existing.reactions;
|
|
5148
5570
|
const incoming_reactions = incoming.reactions;
|
|
5149
5571
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
5150
|
-
if (!(equals$
|
|
5572
|
+
if (!(equals$o(existing_reactions_item, incoming_reactions_item))) {
|
|
5151
5573
|
return false;
|
|
5152
5574
|
}
|
|
5153
5575
|
});
|
|
@@ -5174,6 +5596,22 @@ function equals$i(existing, incoming) {
|
|
|
5174
5596
|
if (!(existing_replyUsersCount === incoming_replyUsersCount)) {
|
|
5175
5597
|
return false;
|
|
5176
5598
|
}
|
|
5599
|
+
const existing_room = existing.room;
|
|
5600
|
+
const incoming_room = incoming.room;
|
|
5601
|
+
// if at least one of these optionals is defined
|
|
5602
|
+
if (existing_room !== undefined || incoming_room !== undefined) {
|
|
5603
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5604
|
+
// not equal
|
|
5605
|
+
if (existing_room === undefined || incoming_room === undefined) {
|
|
5606
|
+
return false;
|
|
5607
|
+
}
|
|
5608
|
+
if (!(existing_room === incoming_room
|
|
5609
|
+
|| (existing_room != null &&
|
|
5610
|
+
incoming_room != null &&
|
|
5611
|
+
equals$n(existing_room, incoming_room)))) {
|
|
5612
|
+
return false;
|
|
5613
|
+
}
|
|
5614
|
+
}
|
|
5177
5615
|
const existing_slackInviterId = existing.slackInviterId;
|
|
5178
5616
|
const incoming_slackInviterId = incoming.slackInviterId;
|
|
5179
5617
|
if (!(existing_slackInviterId === incoming_slackInviterId)) {
|
|
@@ -5823,25 +6261,25 @@ const select$E = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
5823
6261
|
name: 'contextUserInfo',
|
|
5824
6262
|
kind: 'Link',
|
|
5825
6263
|
nullable: true,
|
|
5826
|
-
fragment: select$
|
|
6264
|
+
fragment: select$Q()
|
|
5827
6265
|
},
|
|
5828
6266
|
{
|
|
5829
6267
|
name: 'conversationInfo',
|
|
5830
6268
|
kind: 'Link',
|
|
5831
6269
|
nullable: true,
|
|
5832
|
-
fragment: select$
|
|
6270
|
+
fragment: select$N()
|
|
5833
6271
|
},
|
|
5834
6272
|
{
|
|
5835
6273
|
name: 'conversationInfos',
|
|
5836
6274
|
kind: 'Link',
|
|
5837
6275
|
plural: true,
|
|
5838
|
-
fragment: select$
|
|
6276
|
+
fragment: select$N()
|
|
5839
6277
|
},
|
|
5840
6278
|
{
|
|
5841
6279
|
name: 'emojis',
|
|
5842
6280
|
kind: 'Link',
|
|
5843
6281
|
plural: true,
|
|
5844
|
-
fragment: select$
|
|
6282
|
+
fragment: select$R()
|
|
5845
6283
|
},
|
|
5846
6284
|
{
|
|
5847
6285
|
name: 'history',
|
|
@@ -5860,7 +6298,7 @@ const select$E = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
5860
6298
|
name: 'userInfos',
|
|
5861
6299
|
kind: 'Link',
|
|
5862
6300
|
plural: true,
|
|
5863
|
-
fragment: select$
|
|
6301
|
+
fragment: select$Q()
|
|
5864
6302
|
},
|
|
5865
6303
|
{
|
|
5866
6304
|
name: 'websocketUrl',
|
|
@@ -6667,7 +7105,7 @@ const select$x = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
6667
7105
|
{
|
|
6668
7106
|
name: 'conversationInfo',
|
|
6669
7107
|
kind: 'Link',
|
|
6670
|
-
fragment: select$
|
|
7108
|
+
fragment: select$N()
|
|
6671
7109
|
},
|
|
6672
7110
|
{
|
|
6673
7111
|
name: 'relatedRecordId',
|
|
@@ -7042,7 +7480,7 @@ const select$u = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
7042
7480
|
name: 'conversations',
|
|
7043
7481
|
kind: 'Link',
|
|
7044
7482
|
plural: true,
|
|
7045
|
-
fragment: select$
|
|
7483
|
+
fragment: select$N()
|
|
7046
7484
|
},
|
|
7047
7485
|
{
|
|
7048
7486
|
name: 'messages',
|
|
@@ -8850,7 +9288,7 @@ function validate$5(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
8850
9288
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
8851
9289
|
const obj_reactions_item = obj_reactions[i];
|
|
8852
9290
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
8853
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
9291
|
+
const referencepath_reactions_itemValidationError = validate$o(obj_reactions_item, path_reactions_item);
|
|
8854
9292
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
8855
9293
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
8856
9294
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8879,7 +9317,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
8879
9317
|
return input;
|
|
8880
9318
|
}
|
|
8881
9319
|
const select$f = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
8882
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
9320
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$M();
|
|
8883
9321
|
return {
|
|
8884
9322
|
kind: 'Fragment',
|
|
8885
9323
|
version: VERSION$5,
|
|
@@ -8925,7 +9363,7 @@ function equals$5(existing, incoming) {
|
|
|
8925
9363
|
const existing_reactions = existing.reactions;
|
|
8926
9364
|
const incoming_reactions = incoming.reactions;
|
|
8927
9365
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
8928
|
-
if (!(equals$
|
|
9366
|
+
if (!(equals$o(existing_reactions_item, incoming_reactions_item))) {
|
|
8929
9367
|
return false;
|
|
8930
9368
|
}
|
|
8931
9369
|
});
|
|
@@ -9213,7 +9651,7 @@ const select$d = function SlackBridgeConversationInfosOutputRepresentationSelect
|
|
|
9213
9651
|
name: 'conversationInfos',
|
|
9214
9652
|
kind: 'Link',
|
|
9215
9653
|
plural: true,
|
|
9216
|
-
fragment: select$
|
|
9654
|
+
fragment: select$N()
|
|
9217
9655
|
},
|
|
9218
9656
|
{
|
|
9219
9657
|
name: 'searchString',
|
|
@@ -9400,7 +9838,7 @@ const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge_
|
|
|
9400
9838
|
};
|
|
9401
9839
|
|
|
9402
9840
|
function select$b(luvio, params) {
|
|
9403
|
-
return select$
|
|
9841
|
+
return select$N();
|
|
9404
9842
|
}
|
|
9405
9843
|
function keyBuilder$f(luvio, params) {
|
|
9406
9844
|
return keyBuilder$I(luvio, {
|
|
@@ -9433,7 +9871,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
9433
9871
|
const storeMetadataParams = {
|
|
9434
9872
|
ttl: TTL$5,
|
|
9435
9873
|
namespace: keyPrefix,
|
|
9436
|
-
version: VERSION$
|
|
9874
|
+
version: VERSION$p,
|
|
9437
9875
|
representationName: RepresentationType$i
|
|
9438
9876
|
};
|
|
9439
9877
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -9591,7 +10029,7 @@ const select$a = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
9591
10029
|
name: 'emojis',
|
|
9592
10030
|
kind: 'Link',
|
|
9593
10031
|
plural: true,
|
|
9594
|
-
fragment: select$
|
|
10032
|
+
fragment: select$R()
|
|
9595
10033
|
}
|
|
9596
10034
|
]
|
|
9597
10035
|
};
|
|
@@ -9769,7 +10207,7 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
9769
10207
|
};
|
|
9770
10208
|
|
|
9771
10209
|
function select$8(luvio, params) {
|
|
9772
|
-
return select$
|
|
10210
|
+
return select$R();
|
|
9773
10211
|
}
|
|
9774
10212
|
function keyBuilder$b(luvio, params) {
|
|
9775
10213
|
return keyBuilder$K(luvio, {
|
|
@@ -9802,7 +10240,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
9802
10240
|
const storeMetadataParams = {
|
|
9803
10241
|
ttl: TTL$7,
|
|
9804
10242
|
namespace: keyPrefix,
|
|
9805
|
-
version: VERSION$
|
|
10243
|
+
version: VERSION$t,
|
|
9806
10244
|
representationName: RepresentationType$k
|
|
9807
10245
|
};
|
|
9808
10246
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -10618,7 +11056,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
10618
11056
|
name: 'userInfos',
|
|
10619
11057
|
kind: 'Link',
|
|
10620
11058
|
plural: true,
|
|
10621
|
-
fragment: select$
|
|
11059
|
+
fragment: select$Q()
|
|
10622
11060
|
}
|
|
10623
11061
|
]
|
|
10624
11062
|
};
|
|
@@ -10809,7 +11247,7 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
10809
11247
|
};
|
|
10810
11248
|
|
|
10811
11249
|
function select(luvio, params) {
|
|
10812
|
-
return select$
|
|
11250
|
+
return select$Q();
|
|
10813
11251
|
}
|
|
10814
11252
|
function keyBuilder$1(luvio, params) {
|
|
10815
11253
|
return keyBuilder$J(luvio, {
|
|
@@ -10842,7 +11280,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
10842
11280
|
const storeMetadataParams = {
|
|
10843
11281
|
ttl: TTL$6,
|
|
10844
11282
|
namespace: keyPrefix,
|
|
10845
|
-
version: VERSION$
|
|
11283
|
+
version: VERSION$s,
|
|
10846
11284
|
representationName: RepresentationType$j
|
|
10847
11285
|
};
|
|
10848
11286
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|