@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
|
@@ -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 = "e028e881472367bb6b51398f0ceca161";
|
|
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 + '")');
|
|
@@ -669,7 +669,7 @@ function validate$r(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
669
669
|
const path_enterpriseUser = path + '.enterpriseUser';
|
|
670
670
|
let obj_enterpriseUser_union0 = null;
|
|
671
671
|
const obj_enterpriseUser_union0_error = (() => {
|
|
672
|
-
const referencepath_enterpriseUserValidationError = validate$
|
|
672
|
+
const referencepath_enterpriseUserValidationError = validate$v(obj_enterpriseUser, path_enterpriseUser);
|
|
673
673
|
if (referencepath_enterpriseUserValidationError !== null) {
|
|
674
674
|
let message = 'Object doesn\'t match SlackBridgeEnterpriseUserInfoOutputRepresentation (at "' + path_enterpriseUser + '")\n';
|
|
675
675
|
message += referencepath_enterpriseUserValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1170,11 +1170,11 @@ function normalize$j(input, existing, path, luvio, store, timestamp) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
return input;
|
|
1172
1172
|
}
|
|
1173
|
-
const select$
|
|
1174
|
-
const { selections: SlackBridgeEnterpriseUserInfoOutputRepresentation__selections, opaque: SlackBridgeEnterpriseUserInfoOutputRepresentation__opaque, } = select$
|
|
1173
|
+
const select$Q = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
1174
|
+
const { selections: SlackBridgeEnterpriseUserInfoOutputRepresentation__selections, opaque: SlackBridgeEnterpriseUserInfoOutputRepresentation__opaque, } = select$T();
|
|
1175
1175
|
return {
|
|
1176
1176
|
kind: 'Fragment',
|
|
1177
|
-
version: VERSION$
|
|
1177
|
+
version: VERSION$s,
|
|
1178
1178
|
private: [],
|
|
1179
1179
|
selections: [
|
|
1180
1180
|
{
|
|
@@ -1275,7 +1275,7 @@ const select$P = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1275
1275
|
name: 'statusEmoji',
|
|
1276
1276
|
kind: 'Link',
|
|
1277
1277
|
nullable: true,
|
|
1278
|
-
fragment: select$
|
|
1278
|
+
fragment: select$R()
|
|
1279
1279
|
},
|
|
1280
1280
|
{
|
|
1281
1281
|
name: 'statusMessage',
|
|
@@ -1302,7 +1302,7 @@ const select$P = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1302
1302
|
]
|
|
1303
1303
|
};
|
|
1304
1304
|
};
|
|
1305
|
-
function equals$
|
|
1305
|
+
function equals$s(existing, incoming) {
|
|
1306
1306
|
const existing_bot = existing.bot;
|
|
1307
1307
|
const incoming_bot = incoming.bot;
|
|
1308
1308
|
if (!(existing_bot === incoming_bot)) {
|
|
@@ -1383,7 +1383,7 @@ function equals$r(existing, incoming) {
|
|
|
1383
1383
|
if (!(existing_enterpriseUser === incoming_enterpriseUser
|
|
1384
1384
|
|| (existing_enterpriseUser != null &&
|
|
1385
1385
|
incoming_enterpriseUser != null &&
|
|
1386
|
-
equals$
|
|
1386
|
+
equals$v(existing_enterpriseUser, incoming_enterpriseUser)))) {
|
|
1387
1387
|
return false;
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
@@ -1503,14 +1503,14 @@ function equals$r(existing, incoming) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
const ingest$j = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1505
1505
|
if (process.env.NODE_ENV !== 'production') {
|
|
1506
|
-
const validateError = validate$
|
|
1506
|
+
const validateError = validate$s(input);
|
|
1507
1507
|
if (validateError !== null) {
|
|
1508
1508
|
throw validateError;
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
1511
|
const key = keyBuilderFromType$a(luvio, input);
|
|
1512
1512
|
const ttlToUse = TTL$6;
|
|
1513
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "SlackBridge", VERSION$
|
|
1513
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$j, "SlackBridge", VERSION$s, RepresentationType$j, equals$s);
|
|
1514
1514
|
return createLink(key);
|
|
1515
1515
|
};
|
|
1516
1516
|
function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1526,8 +1526,8 @@ function getTypeCacheKeys$j(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
1528
|
|
|
1529
|
-
const VERSION$
|
|
1530
|
-
function validate$
|
|
1529
|
+
const VERSION$r = "90163ce3734714c2b87ec91b0ae3ff53";
|
|
1530
|
+
function validate$r(obj, path = 'SlackBridgeConversationRestrictionsOutputRepresentation') {
|
|
1531
1531
|
const v_error = (() => {
|
|
1532
1532
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1533
1533
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1559,10 +1559,10 @@ function validate$q(obj, path = 'SlackBridgeConversationRestrictionsOutputRepres
|
|
|
1559
1559
|
})();
|
|
1560
1560
|
return v_error === undefined ? null : v_error;
|
|
1561
1561
|
}
|
|
1562
|
-
const select$
|
|
1562
|
+
const select$P = function SlackBridgeConversationRestrictionsOutputRepresentationSelect() {
|
|
1563
1563
|
return {
|
|
1564
1564
|
kind: 'Fragment',
|
|
1565
|
-
version: VERSION$
|
|
1565
|
+
version: VERSION$r,
|
|
1566
1566
|
private: [],
|
|
1567
1567
|
selections: [
|
|
1568
1568
|
{
|
|
@@ -1578,7 +1578,7 @@ const select$O = function SlackBridgeConversationRestrictionsOutputRepresentatio
|
|
|
1578
1578
|
]
|
|
1579
1579
|
};
|
|
1580
1580
|
};
|
|
1581
|
-
function equals$
|
|
1581
|
+
function equals$r(existing, incoming) {
|
|
1582
1582
|
const existing_type = existing.type;
|
|
1583
1583
|
const incoming_type = incoming.type;
|
|
1584
1584
|
const equals_type_items = equalsArray(existing_type, incoming_type, (existing_type_item, incoming_type_item) => {
|
|
@@ -1602,8 +1602,8 @@ function equals$q(existing, incoming) {
|
|
|
1602
1602
|
return true;
|
|
1603
1603
|
}
|
|
1604
1604
|
|
|
1605
|
-
const VERSION$
|
|
1606
|
-
function validate$
|
|
1605
|
+
const VERSION$q = "139b4530e5abfb4424ce58620c1e6934";
|
|
1606
|
+
function validate$q(obj, path = 'SlackBridgeConversationPropertiesOutputRepresentation') {
|
|
1607
1607
|
const v_error = (() => {
|
|
1608
1608
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1609
1609
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1690,7 +1690,7 @@ function validate$p(obj, path = 'SlackBridgeConversationPropertiesOutputRepresen
|
|
|
1690
1690
|
const path_postingRestrictedTo = path + '.postingRestrictedTo';
|
|
1691
1691
|
let obj_postingRestrictedTo_union0 = null;
|
|
1692
1692
|
const obj_postingRestrictedTo_union0_error = (() => {
|
|
1693
|
-
const referencepath_postingRestrictedToValidationError = validate$
|
|
1693
|
+
const referencepath_postingRestrictedToValidationError = validate$r(obj_postingRestrictedTo, path_postingRestrictedTo);
|
|
1694
1694
|
if (referencepath_postingRestrictedToValidationError !== null) {
|
|
1695
1695
|
let message = 'Object doesn\'t match SlackBridgeConversationRestrictionsOutputRepresentation (at "' + path_postingRestrictedTo + '")\n';
|
|
1696
1696
|
message += referencepath_postingRestrictedToValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1719,7 +1719,7 @@ function validate$p(obj, path = 'SlackBridgeConversationPropertiesOutputRepresen
|
|
|
1719
1719
|
const path_threadsRestrictedTo = path + '.threadsRestrictedTo';
|
|
1720
1720
|
let obj_threadsRestrictedTo_union0 = null;
|
|
1721
1721
|
const obj_threadsRestrictedTo_union0_error = (() => {
|
|
1722
|
-
const referencepath_threadsRestrictedToValidationError = validate$
|
|
1722
|
+
const referencepath_threadsRestrictedToValidationError = validate$r(obj_threadsRestrictedTo, path_threadsRestrictedTo);
|
|
1723
1723
|
if (referencepath_threadsRestrictedToValidationError !== null) {
|
|
1724
1724
|
let message = 'Object doesn\'t match SlackBridgeConversationRestrictionsOutputRepresentation (at "' + path_threadsRestrictedTo + '")\n';
|
|
1725
1725
|
message += referencepath_threadsRestrictedToValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1747,11 +1747,11 @@ function validate$p(obj, path = 'SlackBridgeConversationPropertiesOutputRepresen
|
|
|
1747
1747
|
})();
|
|
1748
1748
|
return v_error === undefined ? null : v_error;
|
|
1749
1749
|
}
|
|
1750
|
-
const select$
|
|
1751
|
-
const { selections: SlackBridgeConversationRestrictionsOutputRepresentation__selections, opaque: SlackBridgeConversationRestrictionsOutputRepresentation__opaque, } = select$
|
|
1750
|
+
const select$O = function SlackBridgeConversationPropertiesOutputRepresentationSelect() {
|
|
1751
|
+
const { selections: SlackBridgeConversationRestrictionsOutputRepresentation__selections, opaque: SlackBridgeConversationRestrictionsOutputRepresentation__opaque, } = select$P();
|
|
1752
1752
|
return {
|
|
1753
1753
|
kind: 'Fragment',
|
|
1754
|
-
version: VERSION$
|
|
1754
|
+
version: VERSION$q,
|
|
1755
1755
|
private: [],
|
|
1756
1756
|
selections: [
|
|
1757
1757
|
{
|
|
@@ -1781,7 +1781,7 @@ const select$N = function SlackBridgeConversationPropertiesOutputRepresentationS
|
|
|
1781
1781
|
]
|
|
1782
1782
|
};
|
|
1783
1783
|
};
|
|
1784
|
-
function equals$
|
|
1784
|
+
function equals$q(existing, incoming) {
|
|
1785
1785
|
const existing_atChannelRestricted = existing.atChannelRestricted;
|
|
1786
1786
|
const incoming_atChannelRestricted = incoming.atChannelRestricted;
|
|
1787
1787
|
if (!(existing_atChannelRestricted === incoming_atChannelRestricted)) {
|
|
@@ -1802,7 +1802,7 @@ function equals$p(existing, incoming) {
|
|
|
1802
1802
|
if (!(existing_postingRestrictedTo === incoming_postingRestrictedTo
|
|
1803
1803
|
|| (existing_postingRestrictedTo != null &&
|
|
1804
1804
|
incoming_postingRestrictedTo != null &&
|
|
1805
|
-
equals$
|
|
1805
|
+
equals$r(existing_postingRestrictedTo, incoming_postingRestrictedTo)))) {
|
|
1806
1806
|
return false;
|
|
1807
1807
|
}
|
|
1808
1808
|
const existing_threadsRestrictedTo = existing.threadsRestrictedTo;
|
|
@@ -1810,15 +1810,15 @@ function equals$p(existing, incoming) {
|
|
|
1810
1810
|
if (!(existing_threadsRestrictedTo === incoming_threadsRestrictedTo
|
|
1811
1811
|
|| (existing_threadsRestrictedTo != null &&
|
|
1812
1812
|
incoming_threadsRestrictedTo != null &&
|
|
1813
|
-
equals$
|
|
1813
|
+
equals$r(existing_threadsRestrictedTo, incoming_threadsRestrictedTo)))) {
|
|
1814
1814
|
return false;
|
|
1815
1815
|
}
|
|
1816
1816
|
return true;
|
|
1817
1817
|
}
|
|
1818
1818
|
|
|
1819
1819
|
const TTL$5 = 900000;
|
|
1820
|
-
const VERSION$
|
|
1821
|
-
function validate$
|
|
1820
|
+
const VERSION$p = "a35df81fd20149aae615a01f742cece5";
|
|
1821
|
+
function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1822
1822
|
const v_error = (() => {
|
|
1823
1823
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1824
1824
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2036,6 +2036,34 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
2036
2036
|
message += '\n' + obj_isMember_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2037
2037
|
return new TypeError(message);
|
|
2038
2038
|
}
|
|
2039
|
+
if (obj.isMpim !== undefined) {
|
|
2040
|
+
const obj_isMpim = obj.isMpim;
|
|
2041
|
+
const path_isMpim = path + '.isMpim';
|
|
2042
|
+
let obj_isMpim_union0 = null;
|
|
2043
|
+
const obj_isMpim_union0_error = (() => {
|
|
2044
|
+
if (typeof obj_isMpim !== 'boolean') {
|
|
2045
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
|
|
2046
|
+
}
|
|
2047
|
+
})();
|
|
2048
|
+
if (obj_isMpim_union0_error != null) {
|
|
2049
|
+
obj_isMpim_union0 = obj_isMpim_union0_error.message;
|
|
2050
|
+
}
|
|
2051
|
+
let obj_isMpim_union1 = null;
|
|
2052
|
+
const obj_isMpim_union1_error = (() => {
|
|
2053
|
+
if (obj_isMpim !== null) {
|
|
2054
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
|
|
2055
|
+
}
|
|
2056
|
+
})();
|
|
2057
|
+
if (obj_isMpim_union1_error != null) {
|
|
2058
|
+
obj_isMpim_union1 = obj_isMpim_union1_error.message;
|
|
2059
|
+
}
|
|
2060
|
+
if (obj_isMpim_union0 && obj_isMpim_union1) {
|
|
2061
|
+
let message = 'Object doesn\'t match union (at "' + path_isMpim + '")';
|
|
2062
|
+
message += '\n' + obj_isMpim_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2063
|
+
message += '\n' + obj_isMpim_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2064
|
+
return new TypeError(message);
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2039
2067
|
const obj_isOpen = obj.isOpen;
|
|
2040
2068
|
const path_isOpen = path + '.isOpen';
|
|
2041
2069
|
let obj_isOpen_union0 = null;
|
|
@@ -2274,8 +2302,29 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
2274
2302
|
}
|
|
2275
2303
|
const obj_name = obj.name;
|
|
2276
2304
|
const path_name = path + '.name';
|
|
2277
|
-
|
|
2278
|
-
|
|
2305
|
+
let obj_name_union0 = null;
|
|
2306
|
+
const obj_name_union0_error = (() => {
|
|
2307
|
+
if (typeof obj_name !== 'string') {
|
|
2308
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2309
|
+
}
|
|
2310
|
+
})();
|
|
2311
|
+
if (obj_name_union0_error != null) {
|
|
2312
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
2313
|
+
}
|
|
2314
|
+
let obj_name_union1 = null;
|
|
2315
|
+
const obj_name_union1_error = (() => {
|
|
2316
|
+
if (obj_name !== null) {
|
|
2317
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2318
|
+
}
|
|
2319
|
+
})();
|
|
2320
|
+
if (obj_name_union1_error != null) {
|
|
2321
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
2322
|
+
}
|
|
2323
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
2324
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
2325
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2326
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2327
|
+
return new TypeError(message);
|
|
2279
2328
|
}
|
|
2280
2329
|
const obj_numOfMembers = obj.numOfMembers;
|
|
2281
2330
|
const path_numOfMembers = path + '.numOfMembers';
|
|
@@ -2308,7 +2357,7 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
2308
2357
|
const path_properties = path + '.properties';
|
|
2309
2358
|
let obj_properties_union0 = null;
|
|
2310
2359
|
const obj_properties_union0_error = (() => {
|
|
2311
|
-
const referencepath_propertiesValidationError = validate$
|
|
2360
|
+
const referencepath_propertiesValidationError = validate$q(obj_properties, path_properties);
|
|
2312
2361
|
if (referencepath_propertiesValidationError !== null) {
|
|
2313
2362
|
let message = 'Object doesn\'t match SlackBridgeConversationPropertiesOutputRepresentation (at "' + path_properties + '")\n';
|
|
2314
2363
|
message += referencepath_propertiesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2423,6 +2472,34 @@ function validate$o(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
2423
2472
|
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
2424
2473
|
}
|
|
2425
2474
|
}
|
|
2475
|
+
if (obj.user !== undefined) {
|
|
2476
|
+
const obj_user = obj.user;
|
|
2477
|
+
const path_user = path + '.user';
|
|
2478
|
+
let obj_user_union0 = null;
|
|
2479
|
+
const obj_user_union0_error = (() => {
|
|
2480
|
+
if (typeof obj_user !== 'string') {
|
|
2481
|
+
return new TypeError('Expected "string" but received "' + typeof obj_user + '" (at "' + path_user + '")');
|
|
2482
|
+
}
|
|
2483
|
+
})();
|
|
2484
|
+
if (obj_user_union0_error != null) {
|
|
2485
|
+
obj_user_union0 = obj_user_union0_error.message;
|
|
2486
|
+
}
|
|
2487
|
+
let obj_user_union1 = null;
|
|
2488
|
+
const obj_user_union1_error = (() => {
|
|
2489
|
+
if (obj_user !== null) {
|
|
2490
|
+
return new TypeError('Expected "null" but received "' + typeof obj_user + '" (at "' + path_user + '")');
|
|
2491
|
+
}
|
|
2492
|
+
})();
|
|
2493
|
+
if (obj_user_union1_error != null) {
|
|
2494
|
+
obj_user_union1 = obj_user_union1_error.message;
|
|
2495
|
+
}
|
|
2496
|
+
if (obj_user_union0 && obj_user_union1) {
|
|
2497
|
+
let message = 'Object doesn\'t match union (at "' + path_user + '")';
|
|
2498
|
+
message += '\n' + obj_user_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2499
|
+
message += '\n' + obj_user_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2500
|
+
return new TypeError(message);
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2426
2503
|
})();
|
|
2427
2504
|
return v_error === undefined ? null : v_error;
|
|
2428
2505
|
}
|
|
@@ -2439,11 +2516,11 @@ function keyBuilderFromType$9(luvio, object) {
|
|
|
2439
2516
|
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
2440
2517
|
return input;
|
|
2441
2518
|
}
|
|
2442
|
-
const select$
|
|
2443
|
-
const { selections: SlackBridgeConversationPropertiesOutputRepresentation__selections, opaque: SlackBridgeConversationPropertiesOutputRepresentation__opaque, } = select$
|
|
2519
|
+
const select$N = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
2520
|
+
const { selections: SlackBridgeConversationPropertiesOutputRepresentation__selections, opaque: SlackBridgeConversationPropertiesOutputRepresentation__opaque, } = select$O();
|
|
2444
2521
|
return {
|
|
2445
2522
|
kind: 'Fragment',
|
|
2446
|
-
version: VERSION$
|
|
2523
|
+
version: VERSION$p,
|
|
2447
2524
|
private: [],
|
|
2448
2525
|
selections: [
|
|
2449
2526
|
{
|
|
@@ -2482,6 +2559,11 @@ const select$M = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
2482
2559
|
name: 'isMember',
|
|
2483
2560
|
kind: 'Scalar'
|
|
2484
2561
|
},
|
|
2562
|
+
{
|
|
2563
|
+
name: 'isMpim',
|
|
2564
|
+
kind: 'Scalar',
|
|
2565
|
+
required: false
|
|
2566
|
+
},
|
|
2485
2567
|
{
|
|
2486
2568
|
name: 'isOpen',
|
|
2487
2569
|
kind: 'Scalar'
|
|
@@ -2552,21 +2634,21 @@ const select$M = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
2552
2634
|
name: 'url',
|
|
2553
2635
|
kind: 'Scalar',
|
|
2554
2636
|
required: false
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
name: 'user',
|
|
2640
|
+
kind: 'Scalar',
|
|
2641
|
+
required: false
|
|
2555
2642
|
}
|
|
2556
2643
|
]
|
|
2557
2644
|
};
|
|
2558
2645
|
};
|
|
2559
|
-
function equals$
|
|
2646
|
+
function equals$p(existing, incoming) {
|
|
2560
2647
|
const existing_id = existing.id;
|
|
2561
2648
|
const incoming_id = incoming.id;
|
|
2562
2649
|
if (!(existing_id === incoming_id)) {
|
|
2563
2650
|
return false;
|
|
2564
2651
|
}
|
|
2565
|
-
const existing_name = existing.name;
|
|
2566
|
-
const incoming_name = incoming.name;
|
|
2567
|
-
if (!(existing_name === incoming_name)) {
|
|
2568
|
-
return false;
|
|
2569
|
-
}
|
|
2570
2652
|
const existing_url = existing.url;
|
|
2571
2653
|
const incoming_url = incoming.url;
|
|
2572
2654
|
// if at least one of these optionals is defined
|
|
@@ -2620,6 +2702,19 @@ function equals$o(existing, incoming) {
|
|
|
2620
2702
|
if (!(existing_isMember === incoming_isMember)) {
|
|
2621
2703
|
return false;
|
|
2622
2704
|
}
|
|
2705
|
+
const existing_isMpim = existing.isMpim;
|
|
2706
|
+
const incoming_isMpim = incoming.isMpim;
|
|
2707
|
+
// if at least one of these optionals is defined
|
|
2708
|
+
if (existing_isMpim !== undefined || incoming_isMpim !== undefined) {
|
|
2709
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2710
|
+
// not equal
|
|
2711
|
+
if (existing_isMpim === undefined || incoming_isMpim === undefined) {
|
|
2712
|
+
return false;
|
|
2713
|
+
}
|
|
2714
|
+
if (!(existing_isMpim === incoming_isMpim)) {
|
|
2715
|
+
return false;
|
|
2716
|
+
}
|
|
2717
|
+
}
|
|
2623
2718
|
const existing_isOpen = existing.isOpen;
|
|
2624
2719
|
const incoming_isOpen = incoming.isOpen;
|
|
2625
2720
|
if (!(existing_isOpen === incoming_isOpen)) {
|
|
@@ -2673,6 +2768,11 @@ function equals$o(existing, incoming) {
|
|
|
2673
2768
|
return false;
|
|
2674
2769
|
}
|
|
2675
2770
|
}
|
|
2771
|
+
const existing_name = existing.name;
|
|
2772
|
+
const incoming_name = incoming.name;
|
|
2773
|
+
if (!(existing_name === incoming_name)) {
|
|
2774
|
+
return false;
|
|
2775
|
+
}
|
|
2676
2776
|
const existing_numOfMembers = existing.numOfMembers;
|
|
2677
2777
|
const incoming_numOfMembers = incoming.numOfMembers;
|
|
2678
2778
|
if (!(existing_numOfMembers === incoming_numOfMembers)) {
|
|
@@ -2690,7 +2790,7 @@ function equals$o(existing, incoming) {
|
|
|
2690
2790
|
if (!(existing_properties === incoming_properties
|
|
2691
2791
|
|| (existing_properties != null &&
|
|
2692
2792
|
incoming_properties != null &&
|
|
2693
|
-
equals$
|
|
2793
|
+
equals$q(existing_properties, incoming_properties)))) {
|
|
2694
2794
|
return false;
|
|
2695
2795
|
}
|
|
2696
2796
|
}
|
|
@@ -2725,18 +2825,31 @@ function equals$o(existing, incoming) {
|
|
|
2725
2825
|
return false;
|
|
2726
2826
|
}
|
|
2727
2827
|
}
|
|
2828
|
+
const existing_user = existing.user;
|
|
2829
|
+
const incoming_user = incoming.user;
|
|
2830
|
+
// if at least one of these optionals is defined
|
|
2831
|
+
if (existing_user !== undefined || incoming_user !== undefined) {
|
|
2832
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2833
|
+
// not equal
|
|
2834
|
+
if (existing_user === undefined || incoming_user === undefined) {
|
|
2835
|
+
return false;
|
|
2836
|
+
}
|
|
2837
|
+
if (!(existing_user === incoming_user)) {
|
|
2838
|
+
return false;
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2728
2841
|
return true;
|
|
2729
2842
|
}
|
|
2730
2843
|
const ingest$i = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2731
2844
|
if (process.env.NODE_ENV !== 'production') {
|
|
2732
|
-
const validateError = validate$
|
|
2845
|
+
const validateError = validate$p(input);
|
|
2733
2846
|
if (validateError !== null) {
|
|
2734
2847
|
throw validateError;
|
|
2735
2848
|
}
|
|
2736
2849
|
}
|
|
2737
2850
|
const key = keyBuilderFromType$9(luvio, input);
|
|
2738
2851
|
const ttlToUse = TTL$5;
|
|
2739
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$
|
|
2852
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$p, RepresentationType$i, equals$p);
|
|
2740
2853
|
return createLink(key);
|
|
2741
2854
|
};
|
|
2742
2855
|
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2749,8 +2862,8 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2749
2862
|
});
|
|
2750
2863
|
}
|
|
2751
2864
|
|
|
2752
|
-
const VERSION$
|
|
2753
|
-
function validate$
|
|
2865
|
+
const VERSION$o = "7820a930852347bb0506c08d8b528281";
|
|
2866
|
+
function validate$o(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
2754
2867
|
const v_error = (() => {
|
|
2755
2868
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2756
2869
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2827,10 +2940,10 @@ function validate$n(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
2827
2940
|
})();
|
|
2828
2941
|
return v_error === undefined ? null : v_error;
|
|
2829
2942
|
}
|
|
2830
|
-
const select$
|
|
2943
|
+
const select$M = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
2831
2944
|
return {
|
|
2832
2945
|
kind: 'Fragment',
|
|
2833
|
-
version: VERSION$
|
|
2946
|
+
version: VERSION$o,
|
|
2834
2947
|
private: [],
|
|
2835
2948
|
selections: [
|
|
2836
2949
|
{
|
|
@@ -2853,7 +2966,7 @@ const select$L = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
2853
2966
|
]
|
|
2854
2967
|
};
|
|
2855
2968
|
};
|
|
2856
|
-
function equals$
|
|
2969
|
+
function equals$o(existing, incoming) {
|
|
2857
2970
|
const existing_name = existing.name;
|
|
2858
2971
|
const incoming_name = incoming.name;
|
|
2859
2972
|
if (!(existing_name === incoming_name)) {
|
|
@@ -2882,6 +2995,173 @@ function equals$n(existing, incoming) {
|
|
|
2882
2995
|
return true;
|
|
2883
2996
|
}
|
|
2884
2997
|
|
|
2998
|
+
const VERSION$n = "183fbca7ad14ab038244ff7883618c72";
|
|
2999
|
+
function validate$n(obj, path = 'SlackBridgeRoomOutputRepresentation') {
|
|
3000
|
+
const v_error = (() => {
|
|
3001
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3002
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3003
|
+
}
|
|
3004
|
+
const obj_dateEnd = obj.dateEnd;
|
|
3005
|
+
const path_dateEnd = path + '.dateEnd';
|
|
3006
|
+
let obj_dateEnd_union0 = null;
|
|
3007
|
+
const obj_dateEnd_union0_error = (() => {
|
|
3008
|
+
if (typeof obj_dateEnd !== 'number' || (typeof obj_dateEnd === 'number' && Math.floor(obj_dateEnd) !== obj_dateEnd)) {
|
|
3009
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
|
|
3010
|
+
}
|
|
3011
|
+
})();
|
|
3012
|
+
if (obj_dateEnd_union0_error != null) {
|
|
3013
|
+
obj_dateEnd_union0 = obj_dateEnd_union0_error.message;
|
|
3014
|
+
}
|
|
3015
|
+
let obj_dateEnd_union1 = null;
|
|
3016
|
+
const obj_dateEnd_union1_error = (() => {
|
|
3017
|
+
if (obj_dateEnd !== null) {
|
|
3018
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
|
|
3019
|
+
}
|
|
3020
|
+
})();
|
|
3021
|
+
if (obj_dateEnd_union1_error != null) {
|
|
3022
|
+
obj_dateEnd_union1 = obj_dateEnd_union1_error.message;
|
|
3023
|
+
}
|
|
3024
|
+
if (obj_dateEnd_union0 && obj_dateEnd_union1) {
|
|
3025
|
+
let message = 'Object doesn\'t match union (at "' + path_dateEnd + '")';
|
|
3026
|
+
message += '\n' + obj_dateEnd_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3027
|
+
message += '\n' + obj_dateEnd_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3028
|
+
return new TypeError(message);
|
|
3029
|
+
}
|
|
3030
|
+
const obj_dateStart = obj.dateStart;
|
|
3031
|
+
const path_dateStart = path + '.dateStart';
|
|
3032
|
+
if (typeof obj_dateStart !== 'number' || (typeof obj_dateStart === 'number' && Math.floor(obj_dateStart) !== obj_dateStart)) {
|
|
3033
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_dateStart + '" (at "' + path_dateStart + '")');
|
|
3034
|
+
}
|
|
3035
|
+
const obj_hasEnded = obj.hasEnded;
|
|
3036
|
+
const path_hasEnded = path + '.hasEnded';
|
|
3037
|
+
if (typeof obj_hasEnded !== 'boolean') {
|
|
3038
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasEnded + '" (at "' + path_hasEnded + '")');
|
|
3039
|
+
}
|
|
3040
|
+
const obj_huddleLink = obj.huddleLink;
|
|
3041
|
+
const path_huddleLink = path + '.huddleLink';
|
|
3042
|
+
if (typeof obj_huddleLink !== 'string') {
|
|
3043
|
+
return new TypeError('Expected "string" but received "' + typeof obj_huddleLink + '" (at "' + path_huddleLink + '")');
|
|
3044
|
+
}
|
|
3045
|
+
const obj_id = obj.id;
|
|
3046
|
+
const path_id = path + '.id';
|
|
3047
|
+
if (typeof obj_id !== 'string') {
|
|
3048
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3049
|
+
}
|
|
3050
|
+
const obj_participantHistory = obj.participantHistory;
|
|
3051
|
+
const path_participantHistory = path + '.participantHistory';
|
|
3052
|
+
if (!ArrayIsArray(obj_participantHistory)) {
|
|
3053
|
+
return new TypeError('Expected "array" but received "' + typeof obj_participantHistory + '" (at "' + path_participantHistory + '")');
|
|
3054
|
+
}
|
|
3055
|
+
for (let i = 0; i < obj_participantHistory.length; i++) {
|
|
3056
|
+
const obj_participantHistory_item = obj_participantHistory[i];
|
|
3057
|
+
const path_participantHistory_item = path_participantHistory + '[' + i + ']';
|
|
3058
|
+
if (typeof obj_participantHistory_item !== 'string') {
|
|
3059
|
+
return new TypeError('Expected "string" but received "' + typeof obj_participantHistory_item + '" (at "' + path_participantHistory_item + '")');
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
const obj_participants = obj.participants;
|
|
3063
|
+
const path_participants = path + '.participants';
|
|
3064
|
+
if (!ArrayIsArray(obj_participants)) {
|
|
3065
|
+
return new TypeError('Expected "array" but received "' + typeof obj_participants + '" (at "' + path_participants + '")');
|
|
3066
|
+
}
|
|
3067
|
+
for (let i = 0; i < obj_participants.length; i++) {
|
|
3068
|
+
const obj_participants_item = obj_participants[i];
|
|
3069
|
+
const path_participants_item = path_participants + '[' + i + ']';
|
|
3070
|
+
if (typeof obj_participants_item !== 'string') {
|
|
3071
|
+
return new TypeError('Expected "string" but received "' + typeof obj_participants_item + '" (at "' + path_participants_item + '")');
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
})();
|
|
3075
|
+
return v_error === undefined ? null : v_error;
|
|
3076
|
+
}
|
|
3077
|
+
const select$L = function SlackBridgeRoomOutputRepresentationSelect() {
|
|
3078
|
+
return {
|
|
3079
|
+
kind: 'Fragment',
|
|
3080
|
+
version: VERSION$n,
|
|
3081
|
+
private: [],
|
|
3082
|
+
selections: [
|
|
3083
|
+
{
|
|
3084
|
+
name: 'dateEnd',
|
|
3085
|
+
kind: 'Scalar'
|
|
3086
|
+
},
|
|
3087
|
+
{
|
|
3088
|
+
name: 'dateStart',
|
|
3089
|
+
kind: 'Scalar'
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
name: 'hasEnded',
|
|
3093
|
+
kind: 'Scalar'
|
|
3094
|
+
},
|
|
3095
|
+
{
|
|
3096
|
+
name: 'huddleLink',
|
|
3097
|
+
kind: 'Scalar'
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
name: 'id',
|
|
3101
|
+
kind: 'Scalar'
|
|
3102
|
+
},
|
|
3103
|
+
{
|
|
3104
|
+
name: 'participantHistory',
|
|
3105
|
+
kind: 'Scalar',
|
|
3106
|
+
plural: true
|
|
3107
|
+
},
|
|
3108
|
+
{
|
|
3109
|
+
name: 'participants',
|
|
3110
|
+
kind: 'Scalar',
|
|
3111
|
+
plural: true
|
|
3112
|
+
}
|
|
3113
|
+
]
|
|
3114
|
+
};
|
|
3115
|
+
};
|
|
3116
|
+
function equals$n(existing, incoming) {
|
|
3117
|
+
const existing_hasEnded = existing.hasEnded;
|
|
3118
|
+
const incoming_hasEnded = incoming.hasEnded;
|
|
3119
|
+
if (!(existing_hasEnded === incoming_hasEnded)) {
|
|
3120
|
+
return false;
|
|
3121
|
+
}
|
|
3122
|
+
const existing_dateStart = existing.dateStart;
|
|
3123
|
+
const incoming_dateStart = incoming.dateStart;
|
|
3124
|
+
if (!(existing_dateStart === incoming_dateStart)) {
|
|
3125
|
+
return false;
|
|
3126
|
+
}
|
|
3127
|
+
const existing_huddleLink = existing.huddleLink;
|
|
3128
|
+
const incoming_huddleLink = incoming.huddleLink;
|
|
3129
|
+
if (!(existing_huddleLink === incoming_huddleLink)) {
|
|
3130
|
+
return false;
|
|
3131
|
+
}
|
|
3132
|
+
const existing_id = existing.id;
|
|
3133
|
+
const incoming_id = incoming.id;
|
|
3134
|
+
if (!(existing_id === incoming_id)) {
|
|
3135
|
+
return false;
|
|
3136
|
+
}
|
|
3137
|
+
const existing_dateEnd = existing.dateEnd;
|
|
3138
|
+
const incoming_dateEnd = incoming.dateEnd;
|
|
3139
|
+
if (!(existing_dateEnd === incoming_dateEnd)) {
|
|
3140
|
+
return false;
|
|
3141
|
+
}
|
|
3142
|
+
const existing_participantHistory = existing.participantHistory;
|
|
3143
|
+
const incoming_participantHistory = incoming.participantHistory;
|
|
3144
|
+
const equals_participantHistory_items = equalsArray(existing_participantHistory, incoming_participantHistory, (existing_participantHistory_item, incoming_participantHistory_item) => {
|
|
3145
|
+
if (!(existing_participantHistory_item === incoming_participantHistory_item)) {
|
|
3146
|
+
return false;
|
|
3147
|
+
}
|
|
3148
|
+
});
|
|
3149
|
+
if (equals_participantHistory_items === false) {
|
|
3150
|
+
return false;
|
|
3151
|
+
}
|
|
3152
|
+
const existing_participants = existing.participants;
|
|
3153
|
+
const incoming_participants = incoming.participants;
|
|
3154
|
+
const equals_participants_items = equalsArray(existing_participants, incoming_participants, (existing_participants_item, incoming_participants_item) => {
|
|
3155
|
+
if (!(existing_participants_item === incoming_participants_item)) {
|
|
3156
|
+
return false;
|
|
3157
|
+
}
|
|
3158
|
+
});
|
|
3159
|
+
if (equals_participants_items === false) {
|
|
3160
|
+
return false;
|
|
3161
|
+
}
|
|
3162
|
+
return true;
|
|
3163
|
+
}
|
|
3164
|
+
|
|
2885
3165
|
const VERSION$m = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
2886
3166
|
function validate$m(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
2887
3167
|
const v_error = (() => {
|
|
@@ -4390,7 +4670,7 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4390
4670
|
});
|
|
4391
4671
|
}
|
|
4392
4672
|
|
|
4393
|
-
const VERSION$i = "
|
|
4673
|
+
const VERSION$i = "cc3b0409eeb9f8a45956130e18c9be91";
|
|
4394
4674
|
function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
4395
4675
|
const v_error = (() => {
|
|
4396
4676
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4659,7 +4939,7 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
4659
4939
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
4660
4940
|
const obj_reactions_item = obj_reactions[i];
|
|
4661
4941
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
4662
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
4942
|
+
const referencepath_reactions_itemValidationError = validate$o(obj_reactions_item, path_reactions_item);
|
|
4663
4943
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
4664
4944
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
4665
4945
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4730,6 +5010,37 @@ function validate$i(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
4730
5010
|
message += '\n' + obj_replyUsersCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4731
5011
|
return new TypeError(message);
|
|
4732
5012
|
}
|
|
5013
|
+
if (obj.room !== undefined) {
|
|
5014
|
+
const obj_room = obj.room;
|
|
5015
|
+
const path_room = path + '.room';
|
|
5016
|
+
let obj_room_union0 = null;
|
|
5017
|
+
const obj_room_union0_error = (() => {
|
|
5018
|
+
const referencepath_roomValidationError = validate$n(obj_room, path_room);
|
|
5019
|
+
if (referencepath_roomValidationError !== null) {
|
|
5020
|
+
let message = 'Object doesn\'t match SlackBridgeRoomOutputRepresentation (at "' + path_room + '")\n';
|
|
5021
|
+
message += referencepath_roomValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5022
|
+
return new TypeError(message);
|
|
5023
|
+
}
|
|
5024
|
+
})();
|
|
5025
|
+
if (obj_room_union0_error != null) {
|
|
5026
|
+
obj_room_union0 = obj_room_union0_error.message;
|
|
5027
|
+
}
|
|
5028
|
+
let obj_room_union1 = null;
|
|
5029
|
+
const obj_room_union1_error = (() => {
|
|
5030
|
+
if (obj_room !== null) {
|
|
5031
|
+
return new TypeError('Expected "null" but received "' + typeof obj_room + '" (at "' + path_room + '")');
|
|
5032
|
+
}
|
|
5033
|
+
})();
|
|
5034
|
+
if (obj_room_union1_error != null) {
|
|
5035
|
+
obj_room_union1 = obj_room_union1_error.message;
|
|
5036
|
+
}
|
|
5037
|
+
if (obj_room_union0 && obj_room_union1) {
|
|
5038
|
+
let message = 'Object doesn\'t match union (at "' + path_room + '")';
|
|
5039
|
+
message += '\n' + obj_room_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5040
|
+
message += '\n' + obj_room_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5041
|
+
return new TypeError(message);
|
|
5042
|
+
}
|
|
5043
|
+
}
|
|
4733
5044
|
const obj_slackInviterId = obj.slackInviterId;
|
|
4734
5045
|
const path_slackInviterId = path + '.slackInviterId';
|
|
4735
5046
|
let obj_slackInviterId_union0 = null;
|
|
@@ -4917,7 +5228,8 @@ function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
|
4917
5228
|
return input;
|
|
4918
5229
|
}
|
|
4919
5230
|
const select$G = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
4920
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
5231
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$M();
|
|
5232
|
+
const { selections: SlackBridgeRoomOutputRepresentation__selections, opaque: SlackBridgeRoomOutputRepresentation__opaque, } = select$L();
|
|
4921
5233
|
return {
|
|
4922
5234
|
kind: 'Fragment',
|
|
4923
5235
|
version: VERSION$i,
|
|
@@ -5000,6 +5312,13 @@ const select$G = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
5000
5312
|
name: 'replyUsersCount',
|
|
5001
5313
|
kind: 'Scalar'
|
|
5002
5314
|
},
|
|
5315
|
+
{
|
|
5316
|
+
name: 'room',
|
|
5317
|
+
kind: 'Object',
|
|
5318
|
+
nullable: true,
|
|
5319
|
+
selections: SlackBridgeRoomOutputRepresentation__selections,
|
|
5320
|
+
required: false
|
|
5321
|
+
},
|
|
5003
5322
|
{
|
|
5004
5323
|
name: 'slackInviterId',
|
|
5005
5324
|
kind: 'Scalar'
|
|
@@ -5147,7 +5466,7 @@ function equals$i(existing, incoming) {
|
|
|
5147
5466
|
const existing_reactions = existing.reactions;
|
|
5148
5467
|
const incoming_reactions = incoming.reactions;
|
|
5149
5468
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
5150
|
-
if (!(equals$
|
|
5469
|
+
if (!(equals$o(existing_reactions_item, incoming_reactions_item))) {
|
|
5151
5470
|
return false;
|
|
5152
5471
|
}
|
|
5153
5472
|
});
|
|
@@ -5174,6 +5493,22 @@ function equals$i(existing, incoming) {
|
|
|
5174
5493
|
if (!(existing_replyUsersCount === incoming_replyUsersCount)) {
|
|
5175
5494
|
return false;
|
|
5176
5495
|
}
|
|
5496
|
+
const existing_room = existing.room;
|
|
5497
|
+
const incoming_room = incoming.room;
|
|
5498
|
+
// if at least one of these optionals is defined
|
|
5499
|
+
if (existing_room !== undefined || incoming_room !== undefined) {
|
|
5500
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5501
|
+
// not equal
|
|
5502
|
+
if (existing_room === undefined || incoming_room === undefined) {
|
|
5503
|
+
return false;
|
|
5504
|
+
}
|
|
5505
|
+
if (!(existing_room === incoming_room
|
|
5506
|
+
|| (existing_room != null &&
|
|
5507
|
+
incoming_room != null &&
|
|
5508
|
+
equals$n(existing_room, incoming_room)))) {
|
|
5509
|
+
return false;
|
|
5510
|
+
}
|
|
5511
|
+
}
|
|
5177
5512
|
const existing_slackInviterId = existing.slackInviterId;
|
|
5178
5513
|
const incoming_slackInviterId = incoming.slackInviterId;
|
|
5179
5514
|
if (!(existing_slackInviterId === incoming_slackInviterId)) {
|
|
@@ -5823,25 +6158,25 @@ const select$E = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
5823
6158
|
name: 'contextUserInfo',
|
|
5824
6159
|
kind: 'Link',
|
|
5825
6160
|
nullable: true,
|
|
5826
|
-
fragment: select$
|
|
6161
|
+
fragment: select$Q()
|
|
5827
6162
|
},
|
|
5828
6163
|
{
|
|
5829
6164
|
name: 'conversationInfo',
|
|
5830
6165
|
kind: 'Link',
|
|
5831
6166
|
nullable: true,
|
|
5832
|
-
fragment: select$
|
|
6167
|
+
fragment: select$N()
|
|
5833
6168
|
},
|
|
5834
6169
|
{
|
|
5835
6170
|
name: 'conversationInfos',
|
|
5836
6171
|
kind: 'Link',
|
|
5837
6172
|
plural: true,
|
|
5838
|
-
fragment: select$
|
|
6173
|
+
fragment: select$N()
|
|
5839
6174
|
},
|
|
5840
6175
|
{
|
|
5841
6176
|
name: 'emojis',
|
|
5842
6177
|
kind: 'Link',
|
|
5843
6178
|
plural: true,
|
|
5844
|
-
fragment: select$
|
|
6179
|
+
fragment: select$R()
|
|
5845
6180
|
},
|
|
5846
6181
|
{
|
|
5847
6182
|
name: 'history',
|
|
@@ -5860,7 +6195,7 @@ const select$E = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
5860
6195
|
name: 'userInfos',
|
|
5861
6196
|
kind: 'Link',
|
|
5862
6197
|
plural: true,
|
|
5863
|
-
fragment: select$
|
|
6198
|
+
fragment: select$Q()
|
|
5864
6199
|
},
|
|
5865
6200
|
{
|
|
5866
6201
|
name: 'websocketUrl',
|
|
@@ -6667,7 +7002,7 @@ const select$x = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
6667
7002
|
{
|
|
6668
7003
|
name: 'conversationInfo',
|
|
6669
7004
|
kind: 'Link',
|
|
6670
|
-
fragment: select$
|
|
7005
|
+
fragment: select$N()
|
|
6671
7006
|
},
|
|
6672
7007
|
{
|
|
6673
7008
|
name: 'relatedRecordId',
|
|
@@ -7042,7 +7377,7 @@ const select$u = function SlackBridgeRelatedThreadsOutputRepresentationSelect()
|
|
|
7042
7377
|
name: 'conversations',
|
|
7043
7378
|
kind: 'Link',
|
|
7044
7379
|
plural: true,
|
|
7045
|
-
fragment: select$
|
|
7380
|
+
fragment: select$N()
|
|
7046
7381
|
},
|
|
7047
7382
|
{
|
|
7048
7383
|
name: 'messages',
|
|
@@ -8850,7 +9185,7 @@ function validate$5(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
8850
9185
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
8851
9186
|
const obj_reactions_item = obj_reactions[i];
|
|
8852
9187
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
8853
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
9188
|
+
const referencepath_reactions_itemValidationError = validate$o(obj_reactions_item, path_reactions_item);
|
|
8854
9189
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
8855
9190
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
8856
9191
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8879,7 +9214,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
8879
9214
|
return input;
|
|
8880
9215
|
}
|
|
8881
9216
|
const select$f = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
8882
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
9217
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$M();
|
|
8883
9218
|
return {
|
|
8884
9219
|
kind: 'Fragment',
|
|
8885
9220
|
version: VERSION$5,
|
|
@@ -8925,7 +9260,7 @@ function equals$5(existing, incoming) {
|
|
|
8925
9260
|
const existing_reactions = existing.reactions;
|
|
8926
9261
|
const incoming_reactions = incoming.reactions;
|
|
8927
9262
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
8928
|
-
if (!(equals$
|
|
9263
|
+
if (!(equals$o(existing_reactions_item, incoming_reactions_item))) {
|
|
8929
9264
|
return false;
|
|
8930
9265
|
}
|
|
8931
9266
|
});
|
|
@@ -9213,7 +9548,7 @@ const select$d = function SlackBridgeConversationInfosOutputRepresentationSelect
|
|
|
9213
9548
|
name: 'conversationInfos',
|
|
9214
9549
|
kind: 'Link',
|
|
9215
9550
|
plural: true,
|
|
9216
|
-
fragment: select$
|
|
9551
|
+
fragment: select$N()
|
|
9217
9552
|
},
|
|
9218
9553
|
{
|
|
9219
9554
|
name: 'searchString',
|
|
@@ -9400,7 +9735,7 @@ const getSlackConversationInfosAdapterFactory = (luvio) => function SlackBridge_
|
|
|
9400
9735
|
};
|
|
9401
9736
|
|
|
9402
9737
|
function select$b(luvio, params) {
|
|
9403
|
-
return select$
|
|
9738
|
+
return select$N();
|
|
9404
9739
|
}
|
|
9405
9740
|
function keyBuilder$f(luvio, params) {
|
|
9406
9741
|
return keyBuilder$I(luvio, {
|
|
@@ -9433,7 +9768,7 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
9433
9768
|
const storeMetadataParams = {
|
|
9434
9769
|
ttl: TTL$5,
|
|
9435
9770
|
namespace: keyPrefix,
|
|
9436
|
-
version: VERSION$
|
|
9771
|
+
version: VERSION$p,
|
|
9437
9772
|
representationName: RepresentationType$i
|
|
9438
9773
|
};
|
|
9439
9774
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -9591,7 +9926,7 @@ const select$a = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
9591
9926
|
name: 'emojis',
|
|
9592
9927
|
kind: 'Link',
|
|
9593
9928
|
plural: true,
|
|
9594
|
-
fragment: select$
|
|
9929
|
+
fragment: select$R()
|
|
9595
9930
|
}
|
|
9596
9931
|
]
|
|
9597
9932
|
};
|
|
@@ -9769,7 +10104,7 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
9769
10104
|
};
|
|
9770
10105
|
|
|
9771
10106
|
function select$8(luvio, params) {
|
|
9772
|
-
return select$
|
|
10107
|
+
return select$R();
|
|
9773
10108
|
}
|
|
9774
10109
|
function keyBuilder$b(luvio, params) {
|
|
9775
10110
|
return keyBuilder$K(luvio, {
|
|
@@ -9802,7 +10137,7 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
9802
10137
|
const storeMetadataParams = {
|
|
9803
10138
|
ttl: TTL$7,
|
|
9804
10139
|
namespace: keyPrefix,
|
|
9805
|
-
version: VERSION$
|
|
10140
|
+
version: VERSION$t,
|
|
9806
10141
|
representationName: RepresentationType$k
|
|
9807
10142
|
};
|
|
9808
10143
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -10618,7 +10953,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
10618
10953
|
name: 'userInfos',
|
|
10619
10954
|
kind: 'Link',
|
|
10620
10955
|
plural: true,
|
|
10621
|
-
fragment: select$
|
|
10956
|
+
fragment: select$Q()
|
|
10622
10957
|
}
|
|
10623
10958
|
]
|
|
10624
10959
|
};
|
|
@@ -10809,7 +11144,7 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
10809
11144
|
};
|
|
10810
11145
|
|
|
10811
11146
|
function select(luvio, params) {
|
|
10812
|
-
return select$
|
|
11147
|
+
return select$Q();
|
|
10813
11148
|
}
|
|
10814
11149
|
function keyBuilder$1(luvio, params) {
|
|
10815
11150
|
return keyBuilder$J(luvio, {
|
|
@@ -10842,7 +11177,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
10842
11177
|
const storeMetadataParams = {
|
|
10843
11178
|
ttl: TTL$6,
|
|
10844
11179
|
namespace: keyPrefix,
|
|
10845
|
-
version: VERSION$
|
|
11180
|
+
version: VERSION$s,
|
|
10846
11181
|
representationName: RepresentationType$j
|
|
10847
11182
|
};
|
|
10848
11183
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|