@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev10 → 1.354.0-dev11
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 +1464 -58
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +23 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationPropertiesOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationRestrictionsOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeDisplayLoginOutputRepresentation.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEnterpriseUserInfoOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeFileOutputRepresentation.d.ts +52 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +23 -4
- package/package.json +3 -3
- package/sfdc/index.js +1541 -135
- package/src/raml/api.raml +151 -3
|
@@ -112,8 +112,114 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$r = "d8f70047b26b82f280d95ae8abe94157";
|
|
116
|
+
function validate$r(obj, path = 'SlackBridgeEnterpriseUserInfoOutputRepresentation') {
|
|
117
|
+
const v_error = (() => {
|
|
118
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
120
|
+
}
|
|
121
|
+
const obj_enterpriseId = obj.enterpriseId;
|
|
122
|
+
const path_enterpriseId = path + '.enterpriseId';
|
|
123
|
+
if (typeof obj_enterpriseId !== 'string') {
|
|
124
|
+
return new TypeError('Expected "string" but received "' + typeof obj_enterpriseId + '" (at "' + path_enterpriseId + '")');
|
|
125
|
+
}
|
|
126
|
+
const obj_enterpriseName = obj.enterpriseName;
|
|
127
|
+
const path_enterpriseName = path + '.enterpriseName';
|
|
128
|
+
if (typeof obj_enterpriseName !== 'string') {
|
|
129
|
+
return new TypeError('Expected "string" but received "' + typeof obj_enterpriseName + '" (at "' + path_enterpriseName + '")');
|
|
130
|
+
}
|
|
131
|
+
const obj_id = obj.id;
|
|
132
|
+
const path_id = path + '.id';
|
|
133
|
+
if (typeof obj_id !== 'string') {
|
|
134
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
135
|
+
}
|
|
136
|
+
const obj_isAdmin = obj.isAdmin;
|
|
137
|
+
const path_isAdmin = path + '.isAdmin';
|
|
138
|
+
if (typeof obj_isAdmin !== 'boolean') {
|
|
139
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAdmin + '" (at "' + path_isAdmin + '")');
|
|
140
|
+
}
|
|
141
|
+
const obj_isOwner = obj.isOwner;
|
|
142
|
+
const path_isOwner = path + '.isOwner';
|
|
143
|
+
if (typeof obj_isOwner !== 'boolean') {
|
|
144
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isOwner + '" (at "' + path_isOwner + '")');
|
|
145
|
+
}
|
|
146
|
+
const obj_isPrimaryOwner = obj.isPrimaryOwner;
|
|
147
|
+
const path_isPrimaryOwner = path + '.isPrimaryOwner';
|
|
148
|
+
if (typeof obj_isPrimaryOwner !== 'boolean') {
|
|
149
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrimaryOwner + '" (at "' + path_isPrimaryOwner + '")');
|
|
150
|
+
}
|
|
151
|
+
})();
|
|
152
|
+
return v_error === undefined ? null : v_error;
|
|
153
|
+
}
|
|
154
|
+
const select$N = function SlackBridgeEnterpriseUserInfoOutputRepresentationSelect() {
|
|
155
|
+
return {
|
|
156
|
+
kind: 'Fragment',
|
|
157
|
+
version: VERSION$r,
|
|
158
|
+
private: [],
|
|
159
|
+
selections: [
|
|
160
|
+
{
|
|
161
|
+
name: 'enterpriseId',
|
|
162
|
+
kind: 'Scalar'
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'enterpriseName',
|
|
166
|
+
kind: 'Scalar'
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'id',
|
|
170
|
+
kind: 'Scalar'
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'isAdmin',
|
|
174
|
+
kind: 'Scalar'
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'isOwner',
|
|
178
|
+
kind: 'Scalar'
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'isPrimaryOwner',
|
|
182
|
+
kind: 'Scalar'
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
function equals$r(existing, incoming) {
|
|
188
|
+
const existing_isAdmin = existing.isAdmin;
|
|
189
|
+
const incoming_isAdmin = incoming.isAdmin;
|
|
190
|
+
if (!(existing_isAdmin === incoming_isAdmin)) {
|
|
191
|
+
return false;
|
|
192
|
+
}
|
|
193
|
+
const existing_isOwner = existing.isOwner;
|
|
194
|
+
const incoming_isOwner = incoming.isOwner;
|
|
195
|
+
if (!(existing_isOwner === incoming_isOwner)) {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
const existing_isPrimaryOwner = existing.isPrimaryOwner;
|
|
199
|
+
const incoming_isPrimaryOwner = incoming.isPrimaryOwner;
|
|
200
|
+
if (!(existing_isPrimaryOwner === incoming_isPrimaryOwner)) {
|
|
201
|
+
return false;
|
|
202
|
+
}
|
|
203
|
+
const existing_enterpriseId = existing.enterpriseId;
|
|
204
|
+
const incoming_enterpriseId = incoming.enterpriseId;
|
|
205
|
+
if (!(existing_enterpriseId === incoming_enterpriseId)) {
|
|
206
|
+
return false;
|
|
207
|
+
}
|
|
208
|
+
const existing_enterpriseName = existing.enterpriseName;
|
|
209
|
+
const incoming_enterpriseName = incoming.enterpriseName;
|
|
210
|
+
if (!(existing_enterpriseName === incoming_enterpriseName)) {
|
|
211
|
+
return false;
|
|
212
|
+
}
|
|
213
|
+
const existing_id = existing.id;
|
|
214
|
+
const incoming_id = incoming.id;
|
|
215
|
+
if (!(existing_id === incoming_id)) {
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
return true;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
const VERSION$q = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
222
|
+
function validate$q(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
117
223
|
const v_error = (() => {
|
|
118
224
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
225
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -199,10 +305,10 @@ function validate$o(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
199
305
|
})();
|
|
200
306
|
return v_error === undefined ? null : v_error;
|
|
201
307
|
}
|
|
202
|
-
const select$
|
|
308
|
+
const select$M = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
203
309
|
return {
|
|
204
310
|
kind: 'Fragment',
|
|
205
|
-
version: VERSION$
|
|
311
|
+
version: VERSION$q,
|
|
206
312
|
private: [],
|
|
207
313
|
selections: [
|
|
208
314
|
{
|
|
@@ -220,7 +326,7 @@ const select$K = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
|
220
326
|
]
|
|
221
327
|
};
|
|
222
328
|
};
|
|
223
|
-
function equals$
|
|
329
|
+
function equals$q(existing, incoming) {
|
|
224
330
|
const existing_appleUrl = existing.appleUrl;
|
|
225
331
|
const incoming_appleUrl = incoming.appleUrl;
|
|
226
332
|
if (!(existing_appleUrl === incoming_appleUrl)) {
|
|
@@ -240,8 +346,8 @@ function equals$o(existing, incoming) {
|
|
|
240
346
|
}
|
|
241
347
|
|
|
242
348
|
const TTL$4 = 2592000000;
|
|
243
|
-
const VERSION$
|
|
244
|
-
function validate$
|
|
349
|
+
const VERSION$p = "a0e1530372a57d61a1264218124bbb5c";
|
|
350
|
+
function validate$p(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
245
351
|
const v_error = (() => {
|
|
246
352
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
247
353
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -359,7 +465,7 @@ function validate$n(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
359
465
|
const path_value = path + '.value';
|
|
360
466
|
let obj_value_union0 = null;
|
|
361
467
|
const obj_value_union0_error = (() => {
|
|
362
|
-
const referencepath_valueValidationError = validate$
|
|
468
|
+
const referencepath_valueValidationError = validate$q(obj_value, path_value);
|
|
363
469
|
if (referencepath_valueValidationError !== null) {
|
|
364
470
|
let message = 'Object doesn\'t match SlackBridgeEmojiValueOutputRepresentation (at "' + path_value + '")\n';
|
|
365
471
|
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -400,11 +506,11 @@ function keyBuilderFromType$a(luvio, object) {
|
|
|
400
506
|
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
401
507
|
return input;
|
|
402
508
|
}
|
|
403
|
-
const select$
|
|
404
|
-
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$
|
|
509
|
+
const select$L = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
510
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$M();
|
|
405
511
|
return {
|
|
406
512
|
kind: 'Fragment',
|
|
407
|
-
version: VERSION$
|
|
513
|
+
version: VERSION$p,
|
|
408
514
|
private: [],
|
|
409
515
|
selections: [
|
|
410
516
|
{
|
|
@@ -436,7 +542,7 @@ const select$J = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
|
436
542
|
]
|
|
437
543
|
};
|
|
438
544
|
};
|
|
439
|
-
function equals$
|
|
545
|
+
function equals$p(existing, incoming) {
|
|
440
546
|
const existing_name = existing.name;
|
|
441
547
|
const incoming_name = incoming.name;
|
|
442
548
|
if (!(existing_name === incoming_name)) {
|
|
@@ -467,21 +573,21 @@ function equals$n(existing, incoming) {
|
|
|
467
573
|
if (!(existing_value === incoming_value
|
|
468
574
|
|| (existing_value != null &&
|
|
469
575
|
incoming_value != null &&
|
|
470
|
-
equals$
|
|
576
|
+
equals$q(existing_value, incoming_value)))) {
|
|
471
577
|
return false;
|
|
472
578
|
}
|
|
473
579
|
return true;
|
|
474
580
|
}
|
|
475
581
|
const ingest$i = function SlackBridgeEmojiOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
476
582
|
if (process.env.NODE_ENV !== 'production') {
|
|
477
|
-
const validateError = validate$
|
|
583
|
+
const validateError = validate$p(input);
|
|
478
584
|
if (validateError !== null) {
|
|
479
585
|
throw validateError;
|
|
480
586
|
}
|
|
481
587
|
}
|
|
482
588
|
const key = keyBuilderFromType$a(luvio, input);
|
|
483
589
|
const ttlToUse = TTL$4;
|
|
484
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$
|
|
590
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SlackBridge", VERSION$p, RepresentationType$i, equals$p);
|
|
485
591
|
return createLink(key);
|
|
486
592
|
};
|
|
487
593
|
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -495,8 +601,8 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
495
601
|
}
|
|
496
602
|
|
|
497
603
|
const TTL$3 = 900000;
|
|
498
|
-
const VERSION$
|
|
499
|
-
function validate$
|
|
604
|
+
const VERSION$o = "bcaac31b87fd56b593eac50b497f7c53";
|
|
605
|
+
function validate$o(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
500
606
|
const v_error = (() => {
|
|
501
607
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
502
608
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -558,6 +664,37 @@ function validate$m(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
558
664
|
message += '\n' + obj_email_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
559
665
|
return new TypeError(message);
|
|
560
666
|
}
|
|
667
|
+
if (obj.enterpriseUser !== undefined) {
|
|
668
|
+
const obj_enterpriseUser = obj.enterpriseUser;
|
|
669
|
+
const path_enterpriseUser = path + '.enterpriseUser';
|
|
670
|
+
let obj_enterpriseUser_union0 = null;
|
|
671
|
+
const obj_enterpriseUser_union0_error = (() => {
|
|
672
|
+
const referencepath_enterpriseUserValidationError = validate$r(obj_enterpriseUser, path_enterpriseUser);
|
|
673
|
+
if (referencepath_enterpriseUserValidationError !== null) {
|
|
674
|
+
let message = 'Object doesn\'t match SlackBridgeEnterpriseUserInfoOutputRepresentation (at "' + path_enterpriseUser + '")\n';
|
|
675
|
+
message += referencepath_enterpriseUserValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
676
|
+
return new TypeError(message);
|
|
677
|
+
}
|
|
678
|
+
})();
|
|
679
|
+
if (obj_enterpriseUser_union0_error != null) {
|
|
680
|
+
obj_enterpriseUser_union0 = obj_enterpriseUser_union0_error.message;
|
|
681
|
+
}
|
|
682
|
+
let obj_enterpriseUser_union1 = null;
|
|
683
|
+
const obj_enterpriseUser_union1_error = (() => {
|
|
684
|
+
if (obj_enterpriseUser !== null) {
|
|
685
|
+
return new TypeError('Expected "null" but received "' + typeof obj_enterpriseUser + '" (at "' + path_enterpriseUser + '")');
|
|
686
|
+
}
|
|
687
|
+
})();
|
|
688
|
+
if (obj_enterpriseUser_union1_error != null) {
|
|
689
|
+
obj_enterpriseUser_union1 = obj_enterpriseUser_union1_error.message;
|
|
690
|
+
}
|
|
691
|
+
if (obj_enterpriseUser_union0 && obj_enterpriseUser_union1) {
|
|
692
|
+
let message = 'Object doesn\'t match union (at "' + path_enterpriseUser + '")';
|
|
693
|
+
message += '\n' + obj_enterpriseUser_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
694
|
+
message += '\n' + obj_enterpriseUser_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
695
|
+
return new TypeError(message);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
561
698
|
if (obj.image24 !== undefined) {
|
|
562
699
|
const obj_image24 = obj.image24;
|
|
563
700
|
const path_image24 = path + '.image24';
|
|
@@ -664,6 +801,11 @@ function validate$m(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
664
801
|
message += '\n' + obj_isActive_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
665
802
|
return new TypeError(message);
|
|
666
803
|
}
|
|
804
|
+
const obj_isAdmin = obj.isAdmin;
|
|
805
|
+
const path_isAdmin = path + '.isAdmin';
|
|
806
|
+
if (typeof obj_isAdmin !== 'boolean') {
|
|
807
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAdmin + '" (at "' + path_isAdmin + '")');
|
|
808
|
+
}
|
|
667
809
|
const obj_isExternal = obj.isExternal;
|
|
668
810
|
const path_isExternal = path + '.isExternal';
|
|
669
811
|
let obj_isExternal_union0 = null;
|
|
@@ -690,12 +832,30 @@ function validate$m(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
690
832
|
message += '\n' + obj_isExternal_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
691
833
|
return new TypeError(message);
|
|
692
834
|
}
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
835
|
+
const obj_isOwner = obj.isOwner;
|
|
836
|
+
const path_isOwner = path + '.isOwner';
|
|
837
|
+
if (typeof obj_isOwner !== 'boolean') {
|
|
838
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isOwner + '" (at "' + path_isOwner + '")');
|
|
839
|
+
}
|
|
840
|
+
const obj_isPrimaryOwner = obj.isPrimaryOwner;
|
|
841
|
+
const path_isPrimaryOwner = path + '.isPrimaryOwner';
|
|
842
|
+
if (typeof obj_isPrimaryOwner !== 'boolean') {
|
|
843
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrimaryOwner + '" (at "' + path_isPrimaryOwner + '")');
|
|
844
|
+
}
|
|
845
|
+
const obj_isRestricted = obj.isRestricted;
|
|
846
|
+
const path_isRestricted = path + '.isRestricted';
|
|
847
|
+
if (typeof obj_isRestricted !== 'boolean') {
|
|
848
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRestricted + '" (at "' + path_isRestricted + '")');
|
|
849
|
+
}
|
|
850
|
+
const obj_isUltraRestricted = obj.isUltraRestricted;
|
|
851
|
+
const path_isUltraRestricted = path + '.isUltraRestricted';
|
|
852
|
+
if (typeof obj_isUltraRestricted !== 'boolean') {
|
|
853
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isUltraRestricted + '" (at "' + path_isUltraRestricted + '")');
|
|
854
|
+
}
|
|
855
|
+
const obj_isWorkflowBot = obj.isWorkflowBot;
|
|
856
|
+
const path_isWorkflowBot = path + '.isWorkflowBot';
|
|
857
|
+
if (typeof obj_isWorkflowBot !== 'boolean') {
|
|
858
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isWorkflowBot + '" (at "' + path_isWorkflowBot + '")');
|
|
699
859
|
}
|
|
700
860
|
const obj_name = obj.name;
|
|
701
861
|
const path_name = path + '.name';
|
|
@@ -1003,10 +1163,11 @@ function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
|
1003
1163
|
}
|
|
1004
1164
|
return input;
|
|
1005
1165
|
}
|
|
1006
|
-
const select$
|
|
1166
|
+
const select$K = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
1167
|
+
const { selections: SlackBridgeEnterpriseUserInfoOutputRepresentation__selections, opaque: SlackBridgeEnterpriseUserInfoOutputRepresentation__opaque, } = select$N();
|
|
1007
1168
|
return {
|
|
1008
1169
|
kind: 'Fragment',
|
|
1009
|
-
version: VERSION$
|
|
1170
|
+
version: VERSION$o,
|
|
1010
1171
|
private: [],
|
|
1011
1172
|
selections: [
|
|
1012
1173
|
{
|
|
@@ -1021,6 +1182,13 @@ const select$I = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1021
1182
|
name: 'email',
|
|
1022
1183
|
kind: 'Scalar'
|
|
1023
1184
|
},
|
|
1185
|
+
{
|
|
1186
|
+
name: 'enterpriseUser',
|
|
1187
|
+
kind: 'Object',
|
|
1188
|
+
nullable: true,
|
|
1189
|
+
selections: SlackBridgeEnterpriseUserInfoOutputRepresentation__selections,
|
|
1190
|
+
required: false
|
|
1191
|
+
},
|
|
1024
1192
|
{
|
|
1025
1193
|
name: 'image24',
|
|
1026
1194
|
kind: 'Scalar',
|
|
@@ -1038,14 +1206,33 @@ const select$I = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1038
1206
|
name: 'isActive',
|
|
1039
1207
|
kind: 'Scalar'
|
|
1040
1208
|
},
|
|
1209
|
+
{
|
|
1210
|
+
name: 'isAdmin',
|
|
1211
|
+
kind: 'Scalar'
|
|
1212
|
+
},
|
|
1041
1213
|
{
|
|
1042
1214
|
name: 'isExternal',
|
|
1043
1215
|
kind: 'Scalar'
|
|
1044
1216
|
},
|
|
1217
|
+
{
|
|
1218
|
+
name: 'isOwner',
|
|
1219
|
+
kind: 'Scalar'
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
name: 'isPrimaryOwner',
|
|
1223
|
+
kind: 'Scalar'
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
name: 'isRestricted',
|
|
1227
|
+
kind: 'Scalar'
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
name: 'isUltraRestricted',
|
|
1231
|
+
kind: 'Scalar'
|
|
1232
|
+
},
|
|
1045
1233
|
{
|
|
1046
1234
|
name: 'isWorkflowBot',
|
|
1047
|
-
kind: 'Scalar'
|
|
1048
|
-
required: false
|
|
1235
|
+
kind: 'Scalar'
|
|
1049
1236
|
},
|
|
1050
1237
|
{
|
|
1051
1238
|
name: 'name',
|
|
@@ -1076,7 +1263,7 @@ const select$I = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1076
1263
|
name: 'statusEmoji',
|
|
1077
1264
|
kind: 'Link',
|
|
1078
1265
|
nullable: true,
|
|
1079
|
-
fragment: select$
|
|
1266
|
+
fragment: select$L()
|
|
1080
1267
|
},
|
|
1081
1268
|
{
|
|
1082
1269
|
name: 'statusMessage',
|
|
@@ -1103,24 +1290,41 @@ const select$I = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
1103
1290
|
]
|
|
1104
1291
|
};
|
|
1105
1292
|
};
|
|
1106
|
-
function equals$
|
|
1293
|
+
function equals$o(existing, incoming) {
|
|
1107
1294
|
const existing_bot = existing.bot;
|
|
1108
1295
|
const incoming_bot = incoming.bot;
|
|
1109
1296
|
if (!(existing_bot === incoming_bot)) {
|
|
1110
1297
|
return false;
|
|
1111
1298
|
}
|
|
1299
|
+
const existing_isAdmin = existing.isAdmin;
|
|
1300
|
+
const incoming_isAdmin = incoming.isAdmin;
|
|
1301
|
+
if (!(existing_isAdmin === incoming_isAdmin)) {
|
|
1302
|
+
return false;
|
|
1303
|
+
}
|
|
1304
|
+
const existing_isOwner = existing.isOwner;
|
|
1305
|
+
const incoming_isOwner = incoming.isOwner;
|
|
1306
|
+
if (!(existing_isOwner === incoming_isOwner)) {
|
|
1307
|
+
return false;
|
|
1308
|
+
}
|
|
1309
|
+
const existing_isPrimaryOwner = existing.isPrimaryOwner;
|
|
1310
|
+
const incoming_isPrimaryOwner = incoming.isPrimaryOwner;
|
|
1311
|
+
if (!(existing_isPrimaryOwner === incoming_isPrimaryOwner)) {
|
|
1312
|
+
return false;
|
|
1313
|
+
}
|
|
1314
|
+
const existing_isRestricted = existing.isRestricted;
|
|
1315
|
+
const incoming_isRestricted = incoming.isRestricted;
|
|
1316
|
+
if (!(existing_isRestricted === incoming_isRestricted)) {
|
|
1317
|
+
return false;
|
|
1318
|
+
}
|
|
1319
|
+
const existing_isUltraRestricted = existing.isUltraRestricted;
|
|
1320
|
+
const incoming_isUltraRestricted = incoming.isUltraRestricted;
|
|
1321
|
+
if (!(existing_isUltraRestricted === incoming_isUltraRestricted)) {
|
|
1322
|
+
return false;
|
|
1323
|
+
}
|
|
1112
1324
|
const existing_isWorkflowBot = existing.isWorkflowBot;
|
|
1113
1325
|
const incoming_isWorkflowBot = incoming.isWorkflowBot;
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
1117
|
-
// not equal
|
|
1118
|
-
if (existing_isWorkflowBot === undefined || incoming_isWorkflowBot === undefined) {
|
|
1119
|
-
return false;
|
|
1120
|
-
}
|
|
1121
|
-
if (!(existing_isWorkflowBot === incoming_isWorkflowBot)) {
|
|
1122
|
-
return false;
|
|
1123
|
-
}
|
|
1326
|
+
if (!(existing_isWorkflowBot === incoming_isWorkflowBot)) {
|
|
1327
|
+
return false;
|
|
1124
1328
|
}
|
|
1125
1329
|
const existing_name = existing.name;
|
|
1126
1330
|
const incoming_name = incoming.name;
|
|
@@ -1142,6 +1346,22 @@ function equals$m(existing, incoming) {
|
|
|
1142
1346
|
if (!(existing_email === incoming_email)) {
|
|
1143
1347
|
return false;
|
|
1144
1348
|
}
|
|
1349
|
+
const existing_enterpriseUser = existing.enterpriseUser;
|
|
1350
|
+
const incoming_enterpriseUser = incoming.enterpriseUser;
|
|
1351
|
+
// if at least one of these optionals is defined
|
|
1352
|
+
if (existing_enterpriseUser !== undefined || incoming_enterpriseUser !== undefined) {
|
|
1353
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1354
|
+
// not equal
|
|
1355
|
+
if (existing_enterpriseUser === undefined || incoming_enterpriseUser === undefined) {
|
|
1356
|
+
return false;
|
|
1357
|
+
}
|
|
1358
|
+
if (!(existing_enterpriseUser === incoming_enterpriseUser
|
|
1359
|
+
|| (existing_enterpriseUser != null &&
|
|
1360
|
+
incoming_enterpriseUser != null &&
|
|
1361
|
+
equals$r(existing_enterpriseUser, incoming_enterpriseUser)))) {
|
|
1362
|
+
return false;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1145
1365
|
const existing_image24 = existing.image24;
|
|
1146
1366
|
const incoming_image24 = incoming.image24;
|
|
1147
1367
|
// if at least one of these optionals is defined
|
|
@@ -1258,14 +1478,14 @@ function equals$m(existing, incoming) {
|
|
|
1258
1478
|
}
|
|
1259
1479
|
const ingest$h = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1260
1480
|
if (process.env.NODE_ENV !== 'production') {
|
|
1261
|
-
const validateError = validate$
|
|
1481
|
+
const validateError = validate$o(input);
|
|
1262
1482
|
if (validateError !== null) {
|
|
1263
1483
|
throw validateError;
|
|
1264
1484
|
}
|
|
1265
1485
|
}
|
|
1266
1486
|
const key = keyBuilderFromType$9(luvio, input);
|
|
1267
1487
|
const ttlToUse = TTL$3;
|
|
1268
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$
|
|
1488
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$o, RepresentationType$h, equals$o);
|
|
1269
1489
|
return createLink(key);
|
|
1270
1490
|
};
|
|
1271
1491
|
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1281,13 +1501,329 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1281
1501
|
}
|
|
1282
1502
|
}
|
|
1283
1503
|
|
|
1504
|
+
const VERSION$n = "90163ce3734714c2b87ec91b0ae3ff53";
|
|
1505
|
+
function validate$n(obj, path = 'SlackBridgeConversationRestrictionsOutputRepresentation') {
|
|
1506
|
+
const v_error = (() => {
|
|
1507
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1508
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1509
|
+
}
|
|
1510
|
+
const obj_type = obj.type;
|
|
1511
|
+
const path_type = path + '.type';
|
|
1512
|
+
if (!ArrayIsArray(obj_type)) {
|
|
1513
|
+
return new TypeError('Expected "array" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1514
|
+
}
|
|
1515
|
+
for (let i = 0; i < obj_type.length; i++) {
|
|
1516
|
+
const obj_type_item = obj_type[i];
|
|
1517
|
+
const path_type_item = path_type + '[' + i + ']';
|
|
1518
|
+
if (typeof obj_type_item !== 'string') {
|
|
1519
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type_item + '" (at "' + path_type_item + '")');
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
const obj_user = obj.user;
|
|
1523
|
+
const path_user = path + '.user';
|
|
1524
|
+
if (!ArrayIsArray(obj_user)) {
|
|
1525
|
+
return new TypeError('Expected "array" but received "' + typeof obj_user + '" (at "' + path_user + '")');
|
|
1526
|
+
}
|
|
1527
|
+
for (let i = 0; i < obj_user.length; i++) {
|
|
1528
|
+
const obj_user_item = obj_user[i];
|
|
1529
|
+
const path_user_item = path_user + '[' + i + ']';
|
|
1530
|
+
if (typeof obj_user_item !== 'string') {
|
|
1531
|
+
return new TypeError('Expected "string" but received "' + typeof obj_user_item + '" (at "' + path_user_item + '")');
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
})();
|
|
1535
|
+
return v_error === undefined ? null : v_error;
|
|
1536
|
+
}
|
|
1537
|
+
const select$J = function SlackBridgeConversationRestrictionsOutputRepresentationSelect() {
|
|
1538
|
+
return {
|
|
1539
|
+
kind: 'Fragment',
|
|
1540
|
+
version: VERSION$n,
|
|
1541
|
+
private: [],
|
|
1542
|
+
selections: [
|
|
1543
|
+
{
|
|
1544
|
+
name: 'type',
|
|
1545
|
+
kind: 'Scalar',
|
|
1546
|
+
plural: true
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
name: 'user',
|
|
1550
|
+
kind: 'Scalar',
|
|
1551
|
+
plural: true
|
|
1552
|
+
}
|
|
1553
|
+
]
|
|
1554
|
+
};
|
|
1555
|
+
};
|
|
1556
|
+
function equals$n(existing, incoming) {
|
|
1557
|
+
const existing_type = existing.type;
|
|
1558
|
+
const incoming_type = incoming.type;
|
|
1559
|
+
const equals_type_items = equalsArray(existing_type, incoming_type, (existing_type_item, incoming_type_item) => {
|
|
1560
|
+
if (!(existing_type_item === incoming_type_item)) {
|
|
1561
|
+
return false;
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1564
|
+
if (equals_type_items === false) {
|
|
1565
|
+
return false;
|
|
1566
|
+
}
|
|
1567
|
+
const existing_user = existing.user;
|
|
1568
|
+
const incoming_user = incoming.user;
|
|
1569
|
+
const equals_user_items = equalsArray(existing_user, incoming_user, (existing_user_item, incoming_user_item) => {
|
|
1570
|
+
if (!(existing_user_item === incoming_user_item)) {
|
|
1571
|
+
return false;
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
if (equals_user_items === false) {
|
|
1575
|
+
return false;
|
|
1576
|
+
}
|
|
1577
|
+
return true;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
const VERSION$m = "139b4530e5abfb4424ce58620c1e6934";
|
|
1581
|
+
function validate$m(obj, path = 'SlackBridgeConversationPropertiesOutputRepresentation') {
|
|
1582
|
+
const v_error = (() => {
|
|
1583
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1584
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1585
|
+
}
|
|
1586
|
+
const obj_atChannelRestricted = obj.atChannelRestricted;
|
|
1587
|
+
const path_atChannelRestricted = path + '.atChannelRestricted';
|
|
1588
|
+
let obj_atChannelRestricted_union0 = null;
|
|
1589
|
+
const obj_atChannelRestricted_union0_error = (() => {
|
|
1590
|
+
if (typeof obj_atChannelRestricted !== 'boolean') {
|
|
1591
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_atChannelRestricted + '" (at "' + path_atChannelRestricted + '")');
|
|
1592
|
+
}
|
|
1593
|
+
})();
|
|
1594
|
+
if (obj_atChannelRestricted_union0_error != null) {
|
|
1595
|
+
obj_atChannelRestricted_union0 = obj_atChannelRestricted_union0_error.message;
|
|
1596
|
+
}
|
|
1597
|
+
let obj_atChannelRestricted_union1 = null;
|
|
1598
|
+
const obj_atChannelRestricted_union1_error = (() => {
|
|
1599
|
+
if (obj_atChannelRestricted !== null) {
|
|
1600
|
+
return new TypeError('Expected "null" but received "' + typeof obj_atChannelRestricted + '" (at "' + path_atChannelRestricted + '")');
|
|
1601
|
+
}
|
|
1602
|
+
})();
|
|
1603
|
+
if (obj_atChannelRestricted_union1_error != null) {
|
|
1604
|
+
obj_atChannelRestricted_union1 = obj_atChannelRestricted_union1_error.message;
|
|
1605
|
+
}
|
|
1606
|
+
if (obj_atChannelRestricted_union0 && obj_atChannelRestricted_union1) {
|
|
1607
|
+
let message = 'Object doesn\'t match union (at "' + path_atChannelRestricted + '")';
|
|
1608
|
+
message += '\n' + obj_atChannelRestricted_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1609
|
+
message += '\n' + obj_atChannelRestricted_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1610
|
+
return new TypeError(message);
|
|
1611
|
+
}
|
|
1612
|
+
const obj_atHereRestricted = obj.atHereRestricted;
|
|
1613
|
+
const path_atHereRestricted = path + '.atHereRestricted';
|
|
1614
|
+
let obj_atHereRestricted_union0 = null;
|
|
1615
|
+
const obj_atHereRestricted_union0_error = (() => {
|
|
1616
|
+
if (typeof obj_atHereRestricted !== 'boolean') {
|
|
1617
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_atHereRestricted + '" (at "' + path_atHereRestricted + '")');
|
|
1618
|
+
}
|
|
1619
|
+
})();
|
|
1620
|
+
if (obj_atHereRestricted_union0_error != null) {
|
|
1621
|
+
obj_atHereRestricted_union0 = obj_atHereRestricted_union0_error.message;
|
|
1622
|
+
}
|
|
1623
|
+
let obj_atHereRestricted_union1 = null;
|
|
1624
|
+
const obj_atHereRestricted_union1_error = (() => {
|
|
1625
|
+
if (obj_atHereRestricted !== null) {
|
|
1626
|
+
return new TypeError('Expected "null" but received "' + typeof obj_atHereRestricted + '" (at "' + path_atHereRestricted + '")');
|
|
1627
|
+
}
|
|
1628
|
+
})();
|
|
1629
|
+
if (obj_atHereRestricted_union1_error != null) {
|
|
1630
|
+
obj_atHereRestricted_union1 = obj_atHereRestricted_union1_error.message;
|
|
1631
|
+
}
|
|
1632
|
+
if (obj_atHereRestricted_union0 && obj_atHereRestricted_union1) {
|
|
1633
|
+
let message = 'Object doesn\'t match union (at "' + path_atHereRestricted + '")';
|
|
1634
|
+
message += '\n' + obj_atHereRestricted_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1635
|
+
message += '\n' + obj_atHereRestricted_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1636
|
+
return new TypeError(message);
|
|
1637
|
+
}
|
|
1638
|
+
const obj_huddlesRestricted = obj.huddlesRestricted;
|
|
1639
|
+
const path_huddlesRestricted = path + '.huddlesRestricted';
|
|
1640
|
+
let obj_huddlesRestricted_union0 = null;
|
|
1641
|
+
const obj_huddlesRestricted_union0_error = (() => {
|
|
1642
|
+
if (typeof obj_huddlesRestricted !== 'boolean') {
|
|
1643
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_huddlesRestricted + '" (at "' + path_huddlesRestricted + '")');
|
|
1644
|
+
}
|
|
1645
|
+
})();
|
|
1646
|
+
if (obj_huddlesRestricted_union0_error != null) {
|
|
1647
|
+
obj_huddlesRestricted_union0 = obj_huddlesRestricted_union0_error.message;
|
|
1648
|
+
}
|
|
1649
|
+
let obj_huddlesRestricted_union1 = null;
|
|
1650
|
+
const obj_huddlesRestricted_union1_error = (() => {
|
|
1651
|
+
if (obj_huddlesRestricted !== null) {
|
|
1652
|
+
return new TypeError('Expected "null" but received "' + typeof obj_huddlesRestricted + '" (at "' + path_huddlesRestricted + '")');
|
|
1653
|
+
}
|
|
1654
|
+
})();
|
|
1655
|
+
if (obj_huddlesRestricted_union1_error != null) {
|
|
1656
|
+
obj_huddlesRestricted_union1 = obj_huddlesRestricted_union1_error.message;
|
|
1657
|
+
}
|
|
1658
|
+
if (obj_huddlesRestricted_union0 && obj_huddlesRestricted_union1) {
|
|
1659
|
+
let message = 'Object doesn\'t match union (at "' + path_huddlesRestricted + '")';
|
|
1660
|
+
message += '\n' + obj_huddlesRestricted_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1661
|
+
message += '\n' + obj_huddlesRestricted_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1662
|
+
return new TypeError(message);
|
|
1663
|
+
}
|
|
1664
|
+
const obj_postingRestrictedTo = obj.postingRestrictedTo;
|
|
1665
|
+
const path_postingRestrictedTo = path + '.postingRestrictedTo';
|
|
1666
|
+
let obj_postingRestrictedTo_union0 = null;
|
|
1667
|
+
const obj_postingRestrictedTo_union0_error = (() => {
|
|
1668
|
+
const referencepath_postingRestrictedToValidationError = validate$n(obj_postingRestrictedTo, path_postingRestrictedTo);
|
|
1669
|
+
if (referencepath_postingRestrictedToValidationError !== null) {
|
|
1670
|
+
let message = 'Object doesn\'t match SlackBridgeConversationRestrictionsOutputRepresentation (at "' + path_postingRestrictedTo + '")\n';
|
|
1671
|
+
message += referencepath_postingRestrictedToValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1672
|
+
return new TypeError(message);
|
|
1673
|
+
}
|
|
1674
|
+
})();
|
|
1675
|
+
if (obj_postingRestrictedTo_union0_error != null) {
|
|
1676
|
+
obj_postingRestrictedTo_union0 = obj_postingRestrictedTo_union0_error.message;
|
|
1677
|
+
}
|
|
1678
|
+
let obj_postingRestrictedTo_union1 = null;
|
|
1679
|
+
const obj_postingRestrictedTo_union1_error = (() => {
|
|
1680
|
+
if (obj_postingRestrictedTo !== null) {
|
|
1681
|
+
return new TypeError('Expected "null" but received "' + typeof obj_postingRestrictedTo + '" (at "' + path_postingRestrictedTo + '")');
|
|
1682
|
+
}
|
|
1683
|
+
})();
|
|
1684
|
+
if (obj_postingRestrictedTo_union1_error != null) {
|
|
1685
|
+
obj_postingRestrictedTo_union1 = obj_postingRestrictedTo_union1_error.message;
|
|
1686
|
+
}
|
|
1687
|
+
if (obj_postingRestrictedTo_union0 && obj_postingRestrictedTo_union1) {
|
|
1688
|
+
let message = 'Object doesn\'t match union (at "' + path_postingRestrictedTo + '")';
|
|
1689
|
+
message += '\n' + obj_postingRestrictedTo_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1690
|
+
message += '\n' + obj_postingRestrictedTo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1691
|
+
return new TypeError(message);
|
|
1692
|
+
}
|
|
1693
|
+
const obj_threadsRestrictedTo = obj.threadsRestrictedTo;
|
|
1694
|
+
const path_threadsRestrictedTo = path + '.threadsRestrictedTo';
|
|
1695
|
+
let obj_threadsRestrictedTo_union0 = null;
|
|
1696
|
+
const obj_threadsRestrictedTo_union0_error = (() => {
|
|
1697
|
+
const referencepath_threadsRestrictedToValidationError = validate$n(obj_threadsRestrictedTo, path_threadsRestrictedTo);
|
|
1698
|
+
if (referencepath_threadsRestrictedToValidationError !== null) {
|
|
1699
|
+
let message = 'Object doesn\'t match SlackBridgeConversationRestrictionsOutputRepresentation (at "' + path_threadsRestrictedTo + '")\n';
|
|
1700
|
+
message += referencepath_threadsRestrictedToValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1701
|
+
return new TypeError(message);
|
|
1702
|
+
}
|
|
1703
|
+
})();
|
|
1704
|
+
if (obj_threadsRestrictedTo_union0_error != null) {
|
|
1705
|
+
obj_threadsRestrictedTo_union0 = obj_threadsRestrictedTo_union0_error.message;
|
|
1706
|
+
}
|
|
1707
|
+
let obj_threadsRestrictedTo_union1 = null;
|
|
1708
|
+
const obj_threadsRestrictedTo_union1_error = (() => {
|
|
1709
|
+
if (obj_threadsRestrictedTo !== null) {
|
|
1710
|
+
return new TypeError('Expected "null" but received "' + typeof obj_threadsRestrictedTo + '" (at "' + path_threadsRestrictedTo + '")');
|
|
1711
|
+
}
|
|
1712
|
+
})();
|
|
1713
|
+
if (obj_threadsRestrictedTo_union1_error != null) {
|
|
1714
|
+
obj_threadsRestrictedTo_union1 = obj_threadsRestrictedTo_union1_error.message;
|
|
1715
|
+
}
|
|
1716
|
+
if (obj_threadsRestrictedTo_union0 && obj_threadsRestrictedTo_union1) {
|
|
1717
|
+
let message = 'Object doesn\'t match union (at "' + path_threadsRestrictedTo + '")';
|
|
1718
|
+
message += '\n' + obj_threadsRestrictedTo_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1719
|
+
message += '\n' + obj_threadsRestrictedTo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1720
|
+
return new TypeError(message);
|
|
1721
|
+
}
|
|
1722
|
+
})();
|
|
1723
|
+
return v_error === undefined ? null : v_error;
|
|
1724
|
+
}
|
|
1725
|
+
const select$I = function SlackBridgeConversationPropertiesOutputRepresentationSelect() {
|
|
1726
|
+
const { selections: SlackBridgeConversationRestrictionsOutputRepresentation__selections, opaque: SlackBridgeConversationRestrictionsOutputRepresentation__opaque, } = select$J();
|
|
1727
|
+
return {
|
|
1728
|
+
kind: 'Fragment',
|
|
1729
|
+
version: VERSION$m,
|
|
1730
|
+
private: [],
|
|
1731
|
+
selections: [
|
|
1732
|
+
{
|
|
1733
|
+
name: 'atChannelRestricted',
|
|
1734
|
+
kind: 'Scalar'
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
name: 'atHereRestricted',
|
|
1738
|
+
kind: 'Scalar'
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
name: 'huddlesRestricted',
|
|
1742
|
+
kind: 'Scalar'
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
name: 'postingRestrictedTo',
|
|
1746
|
+
kind: 'Object',
|
|
1747
|
+
nullable: true,
|
|
1748
|
+
selections: SlackBridgeConversationRestrictionsOutputRepresentation__selections
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
name: 'threadsRestrictedTo',
|
|
1752
|
+
kind: 'Object',
|
|
1753
|
+
nullable: true,
|
|
1754
|
+
selections: SlackBridgeConversationRestrictionsOutputRepresentation__selections
|
|
1755
|
+
}
|
|
1756
|
+
]
|
|
1757
|
+
};
|
|
1758
|
+
};
|
|
1759
|
+
function equals$m(existing, incoming) {
|
|
1760
|
+
const existing_atChannelRestricted = existing.atChannelRestricted;
|
|
1761
|
+
const incoming_atChannelRestricted = incoming.atChannelRestricted;
|
|
1762
|
+
if (!(existing_atChannelRestricted === incoming_atChannelRestricted)) {
|
|
1763
|
+
return false;
|
|
1764
|
+
}
|
|
1765
|
+
const existing_atHereRestricted = existing.atHereRestricted;
|
|
1766
|
+
const incoming_atHereRestricted = incoming.atHereRestricted;
|
|
1767
|
+
if (!(existing_atHereRestricted === incoming_atHereRestricted)) {
|
|
1768
|
+
return false;
|
|
1769
|
+
}
|
|
1770
|
+
const existing_huddlesRestricted = existing.huddlesRestricted;
|
|
1771
|
+
const incoming_huddlesRestricted = incoming.huddlesRestricted;
|
|
1772
|
+
if (!(existing_huddlesRestricted === incoming_huddlesRestricted)) {
|
|
1773
|
+
return false;
|
|
1774
|
+
}
|
|
1775
|
+
const existing_postingRestrictedTo = existing.postingRestrictedTo;
|
|
1776
|
+
const incoming_postingRestrictedTo = incoming.postingRestrictedTo;
|
|
1777
|
+
if (!(existing_postingRestrictedTo === incoming_postingRestrictedTo
|
|
1778
|
+
|| (existing_postingRestrictedTo != null &&
|
|
1779
|
+
incoming_postingRestrictedTo != null &&
|
|
1780
|
+
equals$n(existing_postingRestrictedTo, incoming_postingRestrictedTo)))) {
|
|
1781
|
+
return false;
|
|
1782
|
+
}
|
|
1783
|
+
const existing_threadsRestrictedTo = existing.threadsRestrictedTo;
|
|
1784
|
+
const incoming_threadsRestrictedTo = incoming.threadsRestrictedTo;
|
|
1785
|
+
if (!(existing_threadsRestrictedTo === incoming_threadsRestrictedTo
|
|
1786
|
+
|| (existing_threadsRestrictedTo != null &&
|
|
1787
|
+
incoming_threadsRestrictedTo != null &&
|
|
1788
|
+
equals$n(existing_threadsRestrictedTo, incoming_threadsRestrictedTo)))) {
|
|
1789
|
+
return false;
|
|
1790
|
+
}
|
|
1791
|
+
return true;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1284
1794
|
const TTL$2 = 900000;
|
|
1285
|
-
const VERSION$l = "
|
|
1795
|
+
const VERSION$l = "881db9651a4514e5db997e8a9fc589fe";
|
|
1286
1796
|
function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1287
1797
|
const v_error = (() => {
|
|
1288
1798
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1289
1799
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1290
1800
|
}
|
|
1801
|
+
const obj_conversationHostId = obj.conversationHostId;
|
|
1802
|
+
const path_conversationHostId = path + '.conversationHostId';
|
|
1803
|
+
let obj_conversationHostId_union0 = null;
|
|
1804
|
+
const obj_conversationHostId_union0_error = (() => {
|
|
1805
|
+
if (typeof obj_conversationHostId !== 'string') {
|
|
1806
|
+
return new TypeError('Expected "string" but received "' + typeof obj_conversationHostId + '" (at "' + path_conversationHostId + '")');
|
|
1807
|
+
}
|
|
1808
|
+
})();
|
|
1809
|
+
if (obj_conversationHostId_union0_error != null) {
|
|
1810
|
+
obj_conversationHostId_union0 = obj_conversationHostId_union0_error.message;
|
|
1811
|
+
}
|
|
1812
|
+
let obj_conversationHostId_union1 = null;
|
|
1813
|
+
const obj_conversationHostId_union1_error = (() => {
|
|
1814
|
+
if (obj_conversationHostId !== null) {
|
|
1815
|
+
return new TypeError('Expected "null" but received "' + typeof obj_conversationHostId + '" (at "' + path_conversationHostId + '")');
|
|
1816
|
+
}
|
|
1817
|
+
})();
|
|
1818
|
+
if (obj_conversationHostId_union1_error != null) {
|
|
1819
|
+
obj_conversationHostId_union1 = obj_conversationHostId_union1_error.message;
|
|
1820
|
+
}
|
|
1821
|
+
if (obj_conversationHostId_union0 && obj_conversationHostId_union1) {
|
|
1822
|
+
let message = 'Object doesn\'t match union (at "' + path_conversationHostId + '")';
|
|
1823
|
+
message += '\n' + obj_conversationHostId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1824
|
+
message += '\n' + obj_conversationHostId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1825
|
+
return new TypeError(message);
|
|
1826
|
+
}
|
|
1291
1827
|
const obj_id = obj.id;
|
|
1292
1828
|
const path_id = path + '.id';
|
|
1293
1829
|
if (typeof obj_id !== 'string') {
|
|
@@ -1371,6 +1907,32 @@ function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1371
1907
|
message += '\n' + obj_isCustomEmojiSupported_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1372
1908
|
return new TypeError(message);
|
|
1373
1909
|
}
|
|
1910
|
+
const obj_isExtShared = obj.isExtShared;
|
|
1911
|
+
const path_isExtShared = path + '.isExtShared';
|
|
1912
|
+
let obj_isExtShared_union0 = null;
|
|
1913
|
+
const obj_isExtShared_union0_error = (() => {
|
|
1914
|
+
if (typeof obj_isExtShared !== 'boolean') {
|
|
1915
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isExtShared + '" (at "' + path_isExtShared + '")');
|
|
1916
|
+
}
|
|
1917
|
+
})();
|
|
1918
|
+
if (obj_isExtShared_union0_error != null) {
|
|
1919
|
+
obj_isExtShared_union0 = obj_isExtShared_union0_error.message;
|
|
1920
|
+
}
|
|
1921
|
+
let obj_isExtShared_union1 = null;
|
|
1922
|
+
const obj_isExtShared_union1_error = (() => {
|
|
1923
|
+
if (obj_isExtShared !== null) {
|
|
1924
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isExtShared + '" (at "' + path_isExtShared + '")');
|
|
1925
|
+
}
|
|
1926
|
+
})();
|
|
1927
|
+
if (obj_isExtShared_union1_error != null) {
|
|
1928
|
+
obj_isExtShared_union1 = obj_isExtShared_union1_error.message;
|
|
1929
|
+
}
|
|
1930
|
+
if (obj_isExtShared_union0 && obj_isExtShared_union1) {
|
|
1931
|
+
let message = 'Object doesn\'t match union (at "' + path_isExtShared + '")';
|
|
1932
|
+
message += '\n' + obj_isExtShared_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1933
|
+
message += '\n' + obj_isExtShared_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1934
|
+
return new TypeError(message);
|
|
1935
|
+
}
|
|
1374
1936
|
const obj_isGroup = obj.isGroup;
|
|
1375
1937
|
const path_isGroup = path + '.isGroup';
|
|
1376
1938
|
let obj_isGroup_union0 = null;
|
|
@@ -1475,6 +2037,58 @@ function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1475
2037
|
message += '\n' + obj_isOpen_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1476
2038
|
return new TypeError(message);
|
|
1477
2039
|
}
|
|
2040
|
+
const obj_isOrgShared = obj.isOrgShared;
|
|
2041
|
+
const path_isOrgShared = path + '.isOrgShared';
|
|
2042
|
+
let obj_isOrgShared_union0 = null;
|
|
2043
|
+
const obj_isOrgShared_union0_error = (() => {
|
|
2044
|
+
if (typeof obj_isOrgShared !== 'boolean') {
|
|
2045
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isOrgShared + '" (at "' + path_isOrgShared + '")');
|
|
2046
|
+
}
|
|
2047
|
+
})();
|
|
2048
|
+
if (obj_isOrgShared_union0_error != null) {
|
|
2049
|
+
obj_isOrgShared_union0 = obj_isOrgShared_union0_error.message;
|
|
2050
|
+
}
|
|
2051
|
+
let obj_isOrgShared_union1 = null;
|
|
2052
|
+
const obj_isOrgShared_union1_error = (() => {
|
|
2053
|
+
if (obj_isOrgShared !== null) {
|
|
2054
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isOrgShared + '" (at "' + path_isOrgShared + '")');
|
|
2055
|
+
}
|
|
2056
|
+
})();
|
|
2057
|
+
if (obj_isOrgShared_union1_error != null) {
|
|
2058
|
+
obj_isOrgShared_union1 = obj_isOrgShared_union1_error.message;
|
|
2059
|
+
}
|
|
2060
|
+
if (obj_isOrgShared_union0 && obj_isOrgShared_union1) {
|
|
2061
|
+
let message = 'Object doesn\'t match union (at "' + path_isOrgShared + '")';
|
|
2062
|
+
message += '\n' + obj_isOrgShared_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2063
|
+
message += '\n' + obj_isOrgShared_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2064
|
+
return new TypeError(message);
|
|
2065
|
+
}
|
|
2066
|
+
const obj_isPendingExtShared = obj.isPendingExtShared;
|
|
2067
|
+
const path_isPendingExtShared = path + '.isPendingExtShared';
|
|
2068
|
+
let obj_isPendingExtShared_union0 = null;
|
|
2069
|
+
const obj_isPendingExtShared_union0_error = (() => {
|
|
2070
|
+
if (typeof obj_isPendingExtShared !== 'boolean') {
|
|
2071
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPendingExtShared + '" (at "' + path_isPendingExtShared + '")');
|
|
2072
|
+
}
|
|
2073
|
+
})();
|
|
2074
|
+
if (obj_isPendingExtShared_union0_error != null) {
|
|
2075
|
+
obj_isPendingExtShared_union0 = obj_isPendingExtShared_union0_error.message;
|
|
2076
|
+
}
|
|
2077
|
+
let obj_isPendingExtShared_union1 = null;
|
|
2078
|
+
const obj_isPendingExtShared_union1_error = (() => {
|
|
2079
|
+
if (obj_isPendingExtShared !== null) {
|
|
2080
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isPendingExtShared + '" (at "' + path_isPendingExtShared + '")');
|
|
2081
|
+
}
|
|
2082
|
+
})();
|
|
2083
|
+
if (obj_isPendingExtShared_union1_error != null) {
|
|
2084
|
+
obj_isPendingExtShared_union1 = obj_isPendingExtShared_union1_error.message;
|
|
2085
|
+
}
|
|
2086
|
+
if (obj_isPendingExtShared_union0 && obj_isPendingExtShared_union1) {
|
|
2087
|
+
let message = 'Object doesn\'t match union (at "' + path_isPendingExtShared + '")';
|
|
2088
|
+
message += '\n' + obj_isPendingExtShared_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2089
|
+
message += '\n' + obj_isPendingExtShared_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2090
|
+
return new TypeError(message);
|
|
2091
|
+
}
|
|
1478
2092
|
const obj_isPrivate = obj.isPrivate;
|
|
1479
2093
|
const path_isPrivate = path + '.isPrivate';
|
|
1480
2094
|
let obj_isPrivate_union0 = null;
|
|
@@ -1527,6 +2141,32 @@ function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1527
2141
|
message += '\n' + obj_isReadOnly_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1528
2142
|
return new TypeError(message);
|
|
1529
2143
|
}
|
|
2144
|
+
const obj_isShared = obj.isShared;
|
|
2145
|
+
const path_isShared = path + '.isShared';
|
|
2146
|
+
let obj_isShared_union0 = null;
|
|
2147
|
+
const obj_isShared_union0_error = (() => {
|
|
2148
|
+
if (typeof obj_isShared !== 'boolean') {
|
|
2149
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isShared + '" (at "' + path_isShared + '")');
|
|
2150
|
+
}
|
|
2151
|
+
})();
|
|
2152
|
+
if (obj_isShared_union0_error != null) {
|
|
2153
|
+
obj_isShared_union0 = obj_isShared_union0_error.message;
|
|
2154
|
+
}
|
|
2155
|
+
let obj_isShared_union1 = null;
|
|
2156
|
+
const obj_isShared_union1_error = (() => {
|
|
2157
|
+
if (obj_isShared !== null) {
|
|
2158
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isShared + '" (at "' + path_isShared + '")');
|
|
2159
|
+
}
|
|
2160
|
+
})();
|
|
2161
|
+
if (obj_isShared_union1_error != null) {
|
|
2162
|
+
obj_isShared_union1 = obj_isShared_union1_error.message;
|
|
2163
|
+
}
|
|
2164
|
+
if (obj_isShared_union0 && obj_isShared_union1) {
|
|
2165
|
+
let message = 'Object doesn\'t match union (at "' + path_isShared + '")';
|
|
2166
|
+
message += '\n' + obj_isShared_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2167
|
+
message += '\n' + obj_isShared_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2168
|
+
return new TypeError(message);
|
|
2169
|
+
}
|
|
1530
2170
|
const obj_isThreadOnly = obj.isThreadOnly;
|
|
1531
2171
|
const path_isThreadOnly = path + '.isThreadOnly';
|
|
1532
2172
|
let obj_isThreadOnly_union0 = null;
|
|
@@ -1553,6 +2193,32 @@ function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1553
2193
|
message += '\n' + obj_isThreadOnly_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1554
2194
|
return new TypeError(message);
|
|
1555
2195
|
}
|
|
2196
|
+
const obj_lastRead = obj.lastRead;
|
|
2197
|
+
const path_lastRead = path + '.lastRead';
|
|
2198
|
+
let obj_lastRead_union0 = null;
|
|
2199
|
+
const obj_lastRead_union0_error = (() => {
|
|
2200
|
+
if (typeof obj_lastRead !== 'string') {
|
|
2201
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastRead + '" (at "' + path_lastRead + '")');
|
|
2202
|
+
}
|
|
2203
|
+
})();
|
|
2204
|
+
if (obj_lastRead_union0_error != null) {
|
|
2205
|
+
obj_lastRead_union0 = obj_lastRead_union0_error.message;
|
|
2206
|
+
}
|
|
2207
|
+
let obj_lastRead_union1 = null;
|
|
2208
|
+
const obj_lastRead_union1_error = (() => {
|
|
2209
|
+
if (obj_lastRead !== null) {
|
|
2210
|
+
return new TypeError('Expected "null" but received "' + typeof obj_lastRead + '" (at "' + path_lastRead + '")');
|
|
2211
|
+
}
|
|
2212
|
+
})();
|
|
2213
|
+
if (obj_lastRead_union1_error != null) {
|
|
2214
|
+
obj_lastRead_union1 = obj_lastRead_union1_error.message;
|
|
2215
|
+
}
|
|
2216
|
+
if (obj_lastRead_union0 && obj_lastRead_union1) {
|
|
2217
|
+
let message = 'Object doesn\'t match union (at "' + path_lastRead + '")';
|
|
2218
|
+
message += '\n' + obj_lastRead_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2219
|
+
message += '\n' + obj_lastRead_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2220
|
+
return new TypeError(message);
|
|
2221
|
+
}
|
|
1556
2222
|
const obj_name = obj.name;
|
|
1557
2223
|
const path_name = path + '.name';
|
|
1558
2224
|
if (typeof obj_name !== 'string') {
|
|
@@ -1584,6 +2250,37 @@ function validate$l(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1584
2250
|
message += '\n' + obj_numOfMembers_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1585
2251
|
return new TypeError(message);
|
|
1586
2252
|
}
|
|
2253
|
+
if (obj.properties !== undefined) {
|
|
2254
|
+
const obj_properties = obj.properties;
|
|
2255
|
+
const path_properties = path + '.properties';
|
|
2256
|
+
let obj_properties_union0 = null;
|
|
2257
|
+
const obj_properties_union0_error = (() => {
|
|
2258
|
+
const referencepath_propertiesValidationError = validate$m(obj_properties, path_properties);
|
|
2259
|
+
if (referencepath_propertiesValidationError !== null) {
|
|
2260
|
+
let message = 'Object doesn\'t match SlackBridgeConversationPropertiesOutputRepresentation (at "' + path_properties + '")\n';
|
|
2261
|
+
message += referencepath_propertiesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2262
|
+
return new TypeError(message);
|
|
2263
|
+
}
|
|
2264
|
+
})();
|
|
2265
|
+
if (obj_properties_union0_error != null) {
|
|
2266
|
+
obj_properties_union0 = obj_properties_union0_error.message;
|
|
2267
|
+
}
|
|
2268
|
+
let obj_properties_union1 = null;
|
|
2269
|
+
const obj_properties_union1_error = (() => {
|
|
2270
|
+
if (obj_properties !== null) {
|
|
2271
|
+
return new TypeError('Expected "null" but received "' + typeof obj_properties + '" (at "' + path_properties + '")');
|
|
2272
|
+
}
|
|
2273
|
+
})();
|
|
2274
|
+
if (obj_properties_union1_error != null) {
|
|
2275
|
+
obj_properties_union1 = obj_properties_union1_error.message;
|
|
2276
|
+
}
|
|
2277
|
+
if (obj_properties_union0 && obj_properties_union1) {
|
|
2278
|
+
let message = 'Object doesn\'t match union (at "' + path_properties + '")';
|
|
2279
|
+
message += '\n' + obj_properties_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2280
|
+
message += '\n' + obj_properties_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2281
|
+
return new TypeError(message);
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
1587
2284
|
const obj_shouldCacheCustomEmoji = obj.shouldCacheCustomEmoji;
|
|
1588
2285
|
const path_shouldCacheCustomEmoji = path + '.shouldCacheCustomEmoji';
|
|
1589
2286
|
let obj_shouldCacheCustomEmoji_union0 = null;
|
|
@@ -1634,11 +2331,16 @@ function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
|
1634
2331
|
return input;
|
|
1635
2332
|
}
|
|
1636
2333
|
const select$H = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
2334
|
+
const { selections: SlackBridgeConversationPropertiesOutputRepresentation__selections, opaque: SlackBridgeConversationPropertiesOutputRepresentation__opaque, } = select$I();
|
|
1637
2335
|
return {
|
|
1638
2336
|
kind: 'Fragment',
|
|
1639
2337
|
version: VERSION$l,
|
|
1640
2338
|
private: [],
|
|
1641
2339
|
selections: [
|
|
2340
|
+
{
|
|
2341
|
+
name: 'conversationHostId',
|
|
2342
|
+
kind: 'Scalar'
|
|
2343
|
+
},
|
|
1642
2344
|
{
|
|
1643
2345
|
name: 'id',
|
|
1644
2346
|
kind: 'Scalar'
|
|
@@ -1655,6 +2357,10 @@ const select$H = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1655
2357
|
name: 'isCustomEmojiSupported',
|
|
1656
2358
|
kind: 'Scalar'
|
|
1657
2359
|
},
|
|
2360
|
+
{
|
|
2361
|
+
name: 'isExtShared',
|
|
2362
|
+
kind: 'Scalar'
|
|
2363
|
+
},
|
|
1658
2364
|
{
|
|
1659
2365
|
name: 'isGroup',
|
|
1660
2366
|
kind: 'Scalar'
|
|
@@ -1671,6 +2377,14 @@ const select$H = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1671
2377
|
name: 'isOpen',
|
|
1672
2378
|
kind: 'Scalar'
|
|
1673
2379
|
},
|
|
2380
|
+
{
|
|
2381
|
+
name: 'isOrgShared',
|
|
2382
|
+
kind: 'Scalar'
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
name: 'isPendingExtShared',
|
|
2386
|
+
kind: 'Scalar'
|
|
2387
|
+
},
|
|
1674
2388
|
{
|
|
1675
2389
|
name: 'isPrivate',
|
|
1676
2390
|
kind: 'Scalar'
|
|
@@ -1679,10 +2393,18 @@ const select$H = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1679
2393
|
name: 'isReadOnly',
|
|
1680
2394
|
kind: 'Scalar'
|
|
1681
2395
|
},
|
|
2396
|
+
{
|
|
2397
|
+
name: 'isShared',
|
|
2398
|
+
kind: 'Scalar'
|
|
2399
|
+
},
|
|
1682
2400
|
{
|
|
1683
2401
|
name: 'isThreadOnly',
|
|
1684
2402
|
kind: 'Scalar'
|
|
1685
2403
|
},
|
|
2404
|
+
{
|
|
2405
|
+
name: 'lastRead',
|
|
2406
|
+
kind: 'Scalar'
|
|
2407
|
+
},
|
|
1686
2408
|
{
|
|
1687
2409
|
name: 'name',
|
|
1688
2410
|
kind: 'Scalar'
|
|
@@ -1691,6 +2413,13 @@ const select$H = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1691
2413
|
name: 'numOfMembers',
|
|
1692
2414
|
kind: 'Scalar'
|
|
1693
2415
|
},
|
|
2416
|
+
{
|
|
2417
|
+
name: 'properties',
|
|
2418
|
+
kind: 'Object',
|
|
2419
|
+
nullable: true,
|
|
2420
|
+
selections: SlackBridgeConversationPropertiesOutputRepresentation__selections,
|
|
2421
|
+
required: false
|
|
2422
|
+
},
|
|
1694
2423
|
{
|
|
1695
2424
|
name: 'shouldCacheCustomEmoji',
|
|
1696
2425
|
kind: 'Scalar'
|
|
@@ -1727,6 +2456,11 @@ function equals$l(existing, incoming) {
|
|
|
1727
2456
|
return false;
|
|
1728
2457
|
}
|
|
1729
2458
|
}
|
|
2459
|
+
const existing_conversationHostId = existing.conversationHostId;
|
|
2460
|
+
const incoming_conversationHostId = incoming.conversationHostId;
|
|
2461
|
+
if (!(existing_conversationHostId === incoming_conversationHostId)) {
|
|
2462
|
+
return false;
|
|
2463
|
+
}
|
|
1730
2464
|
const existing_isArchived = existing.isArchived;
|
|
1731
2465
|
const incoming_isArchived = incoming.isArchived;
|
|
1732
2466
|
if (!(existing_isArchived === incoming_isArchived)) {
|
|
@@ -1742,6 +2476,11 @@ function equals$l(existing, incoming) {
|
|
|
1742
2476
|
if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
|
|
1743
2477
|
return false;
|
|
1744
2478
|
}
|
|
2479
|
+
const existing_isExtShared = existing.isExtShared;
|
|
2480
|
+
const incoming_isExtShared = incoming.isExtShared;
|
|
2481
|
+
if (!(existing_isExtShared === incoming_isExtShared)) {
|
|
2482
|
+
return false;
|
|
2483
|
+
}
|
|
1745
2484
|
const existing_isGroup = existing.isGroup;
|
|
1746
2485
|
const incoming_isGroup = incoming.isGroup;
|
|
1747
2486
|
if (!(existing_isGroup === incoming_isGroup)) {
|
|
@@ -1762,6 +2501,16 @@ function equals$l(existing, incoming) {
|
|
|
1762
2501
|
if (!(existing_isOpen === incoming_isOpen)) {
|
|
1763
2502
|
return false;
|
|
1764
2503
|
}
|
|
2504
|
+
const existing_isOrgShared = existing.isOrgShared;
|
|
2505
|
+
const incoming_isOrgShared = incoming.isOrgShared;
|
|
2506
|
+
if (!(existing_isOrgShared === incoming_isOrgShared)) {
|
|
2507
|
+
return false;
|
|
2508
|
+
}
|
|
2509
|
+
const existing_isPendingExtShared = existing.isPendingExtShared;
|
|
2510
|
+
const incoming_isPendingExtShared = incoming.isPendingExtShared;
|
|
2511
|
+
if (!(existing_isPendingExtShared === incoming_isPendingExtShared)) {
|
|
2512
|
+
return false;
|
|
2513
|
+
}
|
|
1765
2514
|
const existing_isPrivate = existing.isPrivate;
|
|
1766
2515
|
const incoming_isPrivate = incoming.isPrivate;
|
|
1767
2516
|
if (!(existing_isPrivate === incoming_isPrivate)) {
|
|
@@ -1772,16 +2521,42 @@ function equals$l(existing, incoming) {
|
|
|
1772
2521
|
if (!(existing_isReadOnly === incoming_isReadOnly)) {
|
|
1773
2522
|
return false;
|
|
1774
2523
|
}
|
|
2524
|
+
const existing_isShared = existing.isShared;
|
|
2525
|
+
const incoming_isShared = incoming.isShared;
|
|
2526
|
+
if (!(existing_isShared === incoming_isShared)) {
|
|
2527
|
+
return false;
|
|
2528
|
+
}
|
|
1775
2529
|
const existing_isThreadOnly = existing.isThreadOnly;
|
|
1776
2530
|
const incoming_isThreadOnly = incoming.isThreadOnly;
|
|
1777
2531
|
if (!(existing_isThreadOnly === incoming_isThreadOnly)) {
|
|
1778
2532
|
return false;
|
|
1779
2533
|
}
|
|
2534
|
+
const existing_lastRead = existing.lastRead;
|
|
2535
|
+
const incoming_lastRead = incoming.lastRead;
|
|
2536
|
+
if (!(existing_lastRead === incoming_lastRead)) {
|
|
2537
|
+
return false;
|
|
2538
|
+
}
|
|
1780
2539
|
const existing_numOfMembers = existing.numOfMembers;
|
|
1781
2540
|
const incoming_numOfMembers = incoming.numOfMembers;
|
|
1782
2541
|
if (!(existing_numOfMembers === incoming_numOfMembers)) {
|
|
1783
2542
|
return false;
|
|
1784
2543
|
}
|
|
2544
|
+
const existing_properties = existing.properties;
|
|
2545
|
+
const incoming_properties = incoming.properties;
|
|
2546
|
+
// if at least one of these optionals is defined
|
|
2547
|
+
if (existing_properties !== undefined || incoming_properties !== undefined) {
|
|
2548
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2549
|
+
// not equal
|
|
2550
|
+
if (existing_properties === undefined || incoming_properties === undefined) {
|
|
2551
|
+
return false;
|
|
2552
|
+
}
|
|
2553
|
+
if (!(existing_properties === incoming_properties
|
|
2554
|
+
|| (existing_properties != null &&
|
|
2555
|
+
incoming_properties != null &&
|
|
2556
|
+
equals$m(existing_properties, incoming_properties)))) {
|
|
2557
|
+
return false;
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
1785
2560
|
const existing_shouldCacheCustomEmoji = existing.shouldCacheCustomEmoji;
|
|
1786
2561
|
const incoming_shouldCacheCustomEmoji = incoming.shouldCacheCustomEmoji;
|
|
1787
2562
|
if (!(existing_shouldCacheCustomEmoji === incoming_shouldCacheCustomEmoji)) {
|
|
@@ -2253,7 +3028,7 @@ function equals$h(existing, incoming) {
|
|
|
2253
3028
|
return true;
|
|
2254
3029
|
}
|
|
2255
3030
|
|
|
2256
|
-
const VERSION$g = "
|
|
3031
|
+
const VERSION$g = "2b38d19f7f1156877e43a018077ee9f5";
|
|
2257
3032
|
function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
2258
3033
|
const v_error = (() => {
|
|
2259
3034
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2308,6 +3083,34 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2308
3083
|
if (typeof obj_name !== 'string') {
|
|
2309
3084
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
2310
3085
|
}
|
|
3086
|
+
if (obj.prettyType !== undefined) {
|
|
3087
|
+
const obj_prettyType = obj.prettyType;
|
|
3088
|
+
const path_prettyType = path + '.prettyType';
|
|
3089
|
+
let obj_prettyType_union0 = null;
|
|
3090
|
+
const obj_prettyType_union0_error = (() => {
|
|
3091
|
+
if (typeof obj_prettyType !== 'string') {
|
|
3092
|
+
return new TypeError('Expected "string" but received "' + typeof obj_prettyType + '" (at "' + path_prettyType + '")');
|
|
3093
|
+
}
|
|
3094
|
+
})();
|
|
3095
|
+
if (obj_prettyType_union0_error != null) {
|
|
3096
|
+
obj_prettyType_union0 = obj_prettyType_union0_error.message;
|
|
3097
|
+
}
|
|
3098
|
+
let obj_prettyType_union1 = null;
|
|
3099
|
+
const obj_prettyType_union1_error = (() => {
|
|
3100
|
+
if (obj_prettyType !== null) {
|
|
3101
|
+
return new TypeError('Expected "null" but received "' + typeof obj_prettyType + '" (at "' + path_prettyType + '")');
|
|
3102
|
+
}
|
|
3103
|
+
})();
|
|
3104
|
+
if (obj_prettyType_union1_error != null) {
|
|
3105
|
+
obj_prettyType_union1 = obj_prettyType_union1_error.message;
|
|
3106
|
+
}
|
|
3107
|
+
if (obj_prettyType_union0 && obj_prettyType_union1) {
|
|
3108
|
+
let message = 'Object doesn\'t match union (at "' + path_prettyType + '")';
|
|
3109
|
+
message += '\n' + obj_prettyType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3110
|
+
message += '\n' + obj_prettyType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3111
|
+
return new TypeError(message);
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
2311
3114
|
const obj_size = obj.size;
|
|
2312
3115
|
const path_size = path + '.size';
|
|
2313
3116
|
let obj_size_union0 = null;
|
|
@@ -2365,6 +3168,58 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2365
3168
|
message += '\n' + obj_thumb1024_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2366
3169
|
return new TypeError(message);
|
|
2367
3170
|
}
|
|
3171
|
+
const obj_thumb1024H = obj.thumb1024H;
|
|
3172
|
+
const path_thumb1024H = path + '.thumb1024H';
|
|
3173
|
+
let obj_thumb1024H_union0 = null;
|
|
3174
|
+
const obj_thumb1024H_union0_error = (() => {
|
|
3175
|
+
if (typeof obj_thumb1024H !== 'number' || (typeof obj_thumb1024H === 'number' && Math.floor(obj_thumb1024H) !== obj_thumb1024H)) {
|
|
3176
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb1024H + '" (at "' + path_thumb1024H + '")');
|
|
3177
|
+
}
|
|
3178
|
+
})();
|
|
3179
|
+
if (obj_thumb1024H_union0_error != null) {
|
|
3180
|
+
obj_thumb1024H_union0 = obj_thumb1024H_union0_error.message;
|
|
3181
|
+
}
|
|
3182
|
+
let obj_thumb1024H_union1 = null;
|
|
3183
|
+
const obj_thumb1024H_union1_error = (() => {
|
|
3184
|
+
if (obj_thumb1024H !== null) {
|
|
3185
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb1024H + '" (at "' + path_thumb1024H + '")');
|
|
3186
|
+
}
|
|
3187
|
+
})();
|
|
3188
|
+
if (obj_thumb1024H_union1_error != null) {
|
|
3189
|
+
obj_thumb1024H_union1 = obj_thumb1024H_union1_error.message;
|
|
3190
|
+
}
|
|
3191
|
+
if (obj_thumb1024H_union0 && obj_thumb1024H_union1) {
|
|
3192
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb1024H + '")';
|
|
3193
|
+
message += '\n' + obj_thumb1024H_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3194
|
+
message += '\n' + obj_thumb1024H_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3195
|
+
return new TypeError(message);
|
|
3196
|
+
}
|
|
3197
|
+
const obj_thumb1024W = obj.thumb1024W;
|
|
3198
|
+
const path_thumb1024W = path + '.thumb1024W';
|
|
3199
|
+
let obj_thumb1024W_union0 = null;
|
|
3200
|
+
const obj_thumb1024W_union0_error = (() => {
|
|
3201
|
+
if (typeof obj_thumb1024W !== 'number' || (typeof obj_thumb1024W === 'number' && Math.floor(obj_thumb1024W) !== obj_thumb1024W)) {
|
|
3202
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb1024W + '" (at "' + path_thumb1024W + '")');
|
|
3203
|
+
}
|
|
3204
|
+
})();
|
|
3205
|
+
if (obj_thumb1024W_union0_error != null) {
|
|
3206
|
+
obj_thumb1024W_union0 = obj_thumb1024W_union0_error.message;
|
|
3207
|
+
}
|
|
3208
|
+
let obj_thumb1024W_union1 = null;
|
|
3209
|
+
const obj_thumb1024W_union1_error = (() => {
|
|
3210
|
+
if (obj_thumb1024W !== null) {
|
|
3211
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb1024W + '" (at "' + path_thumb1024W + '")');
|
|
3212
|
+
}
|
|
3213
|
+
})();
|
|
3214
|
+
if (obj_thumb1024W_union1_error != null) {
|
|
3215
|
+
obj_thumb1024W_union1 = obj_thumb1024W_union1_error.message;
|
|
3216
|
+
}
|
|
3217
|
+
if (obj_thumb1024W_union0 && obj_thumb1024W_union1) {
|
|
3218
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb1024W + '")';
|
|
3219
|
+
message += '\n' + obj_thumb1024W_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3220
|
+
message += '\n' + obj_thumb1024W_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3221
|
+
return new TypeError(message);
|
|
3222
|
+
}
|
|
2368
3223
|
const obj_thumb360 = obj.thumb360;
|
|
2369
3224
|
const path_thumb360 = path + '.thumb360';
|
|
2370
3225
|
let obj_thumb360_union0 = null;
|
|
@@ -2391,6 +3246,58 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2391
3246
|
message += '\n' + obj_thumb360_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2392
3247
|
return new TypeError(message);
|
|
2393
3248
|
}
|
|
3249
|
+
const obj_thumb360H = obj.thumb360H;
|
|
3250
|
+
const path_thumb360H = path + '.thumb360H';
|
|
3251
|
+
let obj_thumb360H_union0 = null;
|
|
3252
|
+
const obj_thumb360H_union0_error = (() => {
|
|
3253
|
+
if (typeof obj_thumb360H !== 'number' || (typeof obj_thumb360H === 'number' && Math.floor(obj_thumb360H) !== obj_thumb360H)) {
|
|
3254
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb360H + '" (at "' + path_thumb360H + '")');
|
|
3255
|
+
}
|
|
3256
|
+
})();
|
|
3257
|
+
if (obj_thumb360H_union0_error != null) {
|
|
3258
|
+
obj_thumb360H_union0 = obj_thumb360H_union0_error.message;
|
|
3259
|
+
}
|
|
3260
|
+
let obj_thumb360H_union1 = null;
|
|
3261
|
+
const obj_thumb360H_union1_error = (() => {
|
|
3262
|
+
if (obj_thumb360H !== null) {
|
|
3263
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb360H + '" (at "' + path_thumb360H + '")');
|
|
3264
|
+
}
|
|
3265
|
+
})();
|
|
3266
|
+
if (obj_thumb360H_union1_error != null) {
|
|
3267
|
+
obj_thumb360H_union1 = obj_thumb360H_union1_error.message;
|
|
3268
|
+
}
|
|
3269
|
+
if (obj_thumb360H_union0 && obj_thumb360H_union1) {
|
|
3270
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb360H + '")';
|
|
3271
|
+
message += '\n' + obj_thumb360H_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3272
|
+
message += '\n' + obj_thumb360H_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3273
|
+
return new TypeError(message);
|
|
3274
|
+
}
|
|
3275
|
+
const obj_thumb360W = obj.thumb360W;
|
|
3276
|
+
const path_thumb360W = path + '.thumb360W';
|
|
3277
|
+
let obj_thumb360W_union0 = null;
|
|
3278
|
+
const obj_thumb360W_union0_error = (() => {
|
|
3279
|
+
if (typeof obj_thumb360W !== 'number' || (typeof obj_thumb360W === 'number' && Math.floor(obj_thumb360W) !== obj_thumb360W)) {
|
|
3280
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb360W + '" (at "' + path_thumb360W + '")');
|
|
3281
|
+
}
|
|
3282
|
+
})();
|
|
3283
|
+
if (obj_thumb360W_union0_error != null) {
|
|
3284
|
+
obj_thumb360W_union0 = obj_thumb360W_union0_error.message;
|
|
3285
|
+
}
|
|
3286
|
+
let obj_thumb360W_union1 = null;
|
|
3287
|
+
const obj_thumb360W_union1_error = (() => {
|
|
3288
|
+
if (obj_thumb360W !== null) {
|
|
3289
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb360W + '" (at "' + path_thumb360W + '")');
|
|
3290
|
+
}
|
|
3291
|
+
})();
|
|
3292
|
+
if (obj_thumb360W_union1_error != null) {
|
|
3293
|
+
obj_thumb360W_union1 = obj_thumb360W_union1_error.message;
|
|
3294
|
+
}
|
|
3295
|
+
if (obj_thumb360W_union0 && obj_thumb360W_union1) {
|
|
3296
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb360W + '")';
|
|
3297
|
+
message += '\n' + obj_thumb360W_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3298
|
+
message += '\n' + obj_thumb360W_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3299
|
+
return new TypeError(message);
|
|
3300
|
+
}
|
|
2394
3301
|
const obj_thumb480 = obj.thumb480;
|
|
2395
3302
|
const path_thumb480 = path + '.thumb480';
|
|
2396
3303
|
let obj_thumb480_union0 = null;
|
|
@@ -2417,6 +3324,84 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2417
3324
|
message += '\n' + obj_thumb480_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2418
3325
|
return new TypeError(message);
|
|
2419
3326
|
}
|
|
3327
|
+
const obj_thumb480H = obj.thumb480H;
|
|
3328
|
+
const path_thumb480H = path + '.thumb480H';
|
|
3329
|
+
let obj_thumb480H_union0 = null;
|
|
3330
|
+
const obj_thumb480H_union0_error = (() => {
|
|
3331
|
+
if (typeof obj_thumb480H !== 'number' || (typeof obj_thumb480H === 'number' && Math.floor(obj_thumb480H) !== obj_thumb480H)) {
|
|
3332
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb480H + '" (at "' + path_thumb480H + '")');
|
|
3333
|
+
}
|
|
3334
|
+
})();
|
|
3335
|
+
if (obj_thumb480H_union0_error != null) {
|
|
3336
|
+
obj_thumb480H_union0 = obj_thumb480H_union0_error.message;
|
|
3337
|
+
}
|
|
3338
|
+
let obj_thumb480H_union1 = null;
|
|
3339
|
+
const obj_thumb480H_union1_error = (() => {
|
|
3340
|
+
if (obj_thumb480H !== null) {
|
|
3341
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb480H + '" (at "' + path_thumb480H + '")');
|
|
3342
|
+
}
|
|
3343
|
+
})();
|
|
3344
|
+
if (obj_thumb480H_union1_error != null) {
|
|
3345
|
+
obj_thumb480H_union1 = obj_thumb480H_union1_error.message;
|
|
3346
|
+
}
|
|
3347
|
+
if (obj_thumb480H_union0 && obj_thumb480H_union1) {
|
|
3348
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb480H + '")';
|
|
3349
|
+
message += '\n' + obj_thumb480H_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3350
|
+
message += '\n' + obj_thumb480H_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3351
|
+
return new TypeError(message);
|
|
3352
|
+
}
|
|
3353
|
+
const obj_thumb480W = obj.thumb480W;
|
|
3354
|
+
const path_thumb480W = path + '.thumb480W';
|
|
3355
|
+
let obj_thumb480W_union0 = null;
|
|
3356
|
+
const obj_thumb480W_union0_error = (() => {
|
|
3357
|
+
if (typeof obj_thumb480W !== 'number' || (typeof obj_thumb480W === 'number' && Math.floor(obj_thumb480W) !== obj_thumb480W)) {
|
|
3358
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb480W + '" (at "' + path_thumb480W + '")');
|
|
3359
|
+
}
|
|
3360
|
+
})();
|
|
3361
|
+
if (obj_thumb480W_union0_error != null) {
|
|
3362
|
+
obj_thumb480W_union0 = obj_thumb480W_union0_error.message;
|
|
3363
|
+
}
|
|
3364
|
+
let obj_thumb480W_union1 = null;
|
|
3365
|
+
const obj_thumb480W_union1_error = (() => {
|
|
3366
|
+
if (obj_thumb480W !== null) {
|
|
3367
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb480W + '" (at "' + path_thumb480W + '")');
|
|
3368
|
+
}
|
|
3369
|
+
})();
|
|
3370
|
+
if (obj_thumb480W_union1_error != null) {
|
|
3371
|
+
obj_thumb480W_union1 = obj_thumb480W_union1_error.message;
|
|
3372
|
+
}
|
|
3373
|
+
if (obj_thumb480W_union0 && obj_thumb480W_union1) {
|
|
3374
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb480W + '")';
|
|
3375
|
+
message += '\n' + obj_thumb480W_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3376
|
+
message += '\n' + obj_thumb480W_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3377
|
+
return new TypeError(message);
|
|
3378
|
+
}
|
|
3379
|
+
const obj_thumb64 = obj.thumb64;
|
|
3380
|
+
const path_thumb64 = path + '.thumb64';
|
|
3381
|
+
let obj_thumb64_union0 = null;
|
|
3382
|
+
const obj_thumb64_union0_error = (() => {
|
|
3383
|
+
if (typeof obj_thumb64 !== 'string') {
|
|
3384
|
+
return new TypeError('Expected "string" but received "' + typeof obj_thumb64 + '" (at "' + path_thumb64 + '")');
|
|
3385
|
+
}
|
|
3386
|
+
})();
|
|
3387
|
+
if (obj_thumb64_union0_error != null) {
|
|
3388
|
+
obj_thumb64_union0 = obj_thumb64_union0_error.message;
|
|
3389
|
+
}
|
|
3390
|
+
let obj_thumb64_union1 = null;
|
|
3391
|
+
const obj_thumb64_union1_error = (() => {
|
|
3392
|
+
if (obj_thumb64 !== null) {
|
|
3393
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb64 + '" (at "' + path_thumb64 + '")');
|
|
3394
|
+
}
|
|
3395
|
+
})();
|
|
3396
|
+
if (obj_thumb64_union1_error != null) {
|
|
3397
|
+
obj_thumb64_union1 = obj_thumb64_union1_error.message;
|
|
3398
|
+
}
|
|
3399
|
+
if (obj_thumb64_union0 && obj_thumb64_union1) {
|
|
3400
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb64 + '")';
|
|
3401
|
+
message += '\n' + obj_thumb64_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3402
|
+
message += '\n' + obj_thumb64_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3403
|
+
return new TypeError(message);
|
|
3404
|
+
}
|
|
2420
3405
|
const obj_thumb720 = obj.thumb720;
|
|
2421
3406
|
const path_thumb720 = path + '.thumb720';
|
|
2422
3407
|
let obj_thumb720_union0 = null;
|
|
@@ -2443,6 +3428,162 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2443
3428
|
message += '\n' + obj_thumb720_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2444
3429
|
return new TypeError(message);
|
|
2445
3430
|
}
|
|
3431
|
+
const obj_thumb720H = obj.thumb720H;
|
|
3432
|
+
const path_thumb720H = path + '.thumb720H';
|
|
3433
|
+
let obj_thumb720H_union0 = null;
|
|
3434
|
+
const obj_thumb720H_union0_error = (() => {
|
|
3435
|
+
if (typeof obj_thumb720H !== 'number' || (typeof obj_thumb720H === 'number' && Math.floor(obj_thumb720H) !== obj_thumb720H)) {
|
|
3436
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb720H + '" (at "' + path_thumb720H + '")');
|
|
3437
|
+
}
|
|
3438
|
+
})();
|
|
3439
|
+
if (obj_thumb720H_union0_error != null) {
|
|
3440
|
+
obj_thumb720H_union0 = obj_thumb720H_union0_error.message;
|
|
3441
|
+
}
|
|
3442
|
+
let obj_thumb720H_union1 = null;
|
|
3443
|
+
const obj_thumb720H_union1_error = (() => {
|
|
3444
|
+
if (obj_thumb720H !== null) {
|
|
3445
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb720H + '" (at "' + path_thumb720H + '")');
|
|
3446
|
+
}
|
|
3447
|
+
})();
|
|
3448
|
+
if (obj_thumb720H_union1_error != null) {
|
|
3449
|
+
obj_thumb720H_union1 = obj_thumb720H_union1_error.message;
|
|
3450
|
+
}
|
|
3451
|
+
if (obj_thumb720H_union0 && obj_thumb720H_union1) {
|
|
3452
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb720H + '")';
|
|
3453
|
+
message += '\n' + obj_thumb720H_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3454
|
+
message += '\n' + obj_thumb720H_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3455
|
+
return new TypeError(message);
|
|
3456
|
+
}
|
|
3457
|
+
const obj_thumb720W = obj.thumb720W;
|
|
3458
|
+
const path_thumb720W = path + '.thumb720W';
|
|
3459
|
+
let obj_thumb720W_union0 = null;
|
|
3460
|
+
const obj_thumb720W_union0_error = (() => {
|
|
3461
|
+
if (typeof obj_thumb720W !== 'number' || (typeof obj_thumb720W === 'number' && Math.floor(obj_thumb720W) !== obj_thumb720W)) {
|
|
3462
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb720W + '" (at "' + path_thumb720W + '")');
|
|
3463
|
+
}
|
|
3464
|
+
})();
|
|
3465
|
+
if (obj_thumb720W_union0_error != null) {
|
|
3466
|
+
obj_thumb720W_union0 = obj_thumb720W_union0_error.message;
|
|
3467
|
+
}
|
|
3468
|
+
let obj_thumb720W_union1 = null;
|
|
3469
|
+
const obj_thumb720W_union1_error = (() => {
|
|
3470
|
+
if (obj_thumb720W !== null) {
|
|
3471
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb720W + '" (at "' + path_thumb720W + '")');
|
|
3472
|
+
}
|
|
3473
|
+
})();
|
|
3474
|
+
if (obj_thumb720W_union1_error != null) {
|
|
3475
|
+
obj_thumb720W_union1 = obj_thumb720W_union1_error.message;
|
|
3476
|
+
}
|
|
3477
|
+
if (obj_thumb720W_union0 && obj_thumb720W_union1) {
|
|
3478
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb720W + '")';
|
|
3479
|
+
message += '\n' + obj_thumb720W_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3480
|
+
message += '\n' + obj_thumb720W_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3481
|
+
return new TypeError(message);
|
|
3482
|
+
}
|
|
3483
|
+
const obj_thumb80 = obj.thumb80;
|
|
3484
|
+
const path_thumb80 = path + '.thumb80';
|
|
3485
|
+
let obj_thumb80_union0 = null;
|
|
3486
|
+
const obj_thumb80_union0_error = (() => {
|
|
3487
|
+
if (typeof obj_thumb80 !== 'string') {
|
|
3488
|
+
return new TypeError('Expected "string" but received "' + typeof obj_thumb80 + '" (at "' + path_thumb80 + '")');
|
|
3489
|
+
}
|
|
3490
|
+
})();
|
|
3491
|
+
if (obj_thumb80_union0_error != null) {
|
|
3492
|
+
obj_thumb80_union0 = obj_thumb80_union0_error.message;
|
|
3493
|
+
}
|
|
3494
|
+
let obj_thumb80_union1 = null;
|
|
3495
|
+
const obj_thumb80_union1_error = (() => {
|
|
3496
|
+
if (obj_thumb80 !== null) {
|
|
3497
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb80 + '" (at "' + path_thumb80 + '")');
|
|
3498
|
+
}
|
|
3499
|
+
})();
|
|
3500
|
+
if (obj_thumb80_union1_error != null) {
|
|
3501
|
+
obj_thumb80_union1 = obj_thumb80_union1_error.message;
|
|
3502
|
+
}
|
|
3503
|
+
if (obj_thumb80_union0 && obj_thumb80_union1) {
|
|
3504
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb80 + '")';
|
|
3505
|
+
message += '\n' + obj_thumb80_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3506
|
+
message += '\n' + obj_thumb80_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3507
|
+
return new TypeError(message);
|
|
3508
|
+
}
|
|
3509
|
+
const obj_thumb800 = obj.thumb800;
|
|
3510
|
+
const path_thumb800 = path + '.thumb800';
|
|
3511
|
+
let obj_thumb800_union0 = null;
|
|
3512
|
+
const obj_thumb800_union0_error = (() => {
|
|
3513
|
+
if (typeof obj_thumb800 !== 'string') {
|
|
3514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_thumb800 + '" (at "' + path_thumb800 + '")');
|
|
3515
|
+
}
|
|
3516
|
+
})();
|
|
3517
|
+
if (obj_thumb800_union0_error != null) {
|
|
3518
|
+
obj_thumb800_union0 = obj_thumb800_union0_error.message;
|
|
3519
|
+
}
|
|
3520
|
+
let obj_thumb800_union1 = null;
|
|
3521
|
+
const obj_thumb800_union1_error = (() => {
|
|
3522
|
+
if (obj_thumb800 !== null) {
|
|
3523
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb800 + '" (at "' + path_thumb800 + '")');
|
|
3524
|
+
}
|
|
3525
|
+
})();
|
|
3526
|
+
if (obj_thumb800_union1_error != null) {
|
|
3527
|
+
obj_thumb800_union1 = obj_thumb800_union1_error.message;
|
|
3528
|
+
}
|
|
3529
|
+
if (obj_thumb800_union0 && obj_thumb800_union1) {
|
|
3530
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb800 + '")';
|
|
3531
|
+
message += '\n' + obj_thumb800_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3532
|
+
message += '\n' + obj_thumb800_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3533
|
+
return new TypeError(message);
|
|
3534
|
+
}
|
|
3535
|
+
const obj_thumb800H = obj.thumb800H;
|
|
3536
|
+
const path_thumb800H = path + '.thumb800H';
|
|
3537
|
+
let obj_thumb800H_union0 = null;
|
|
3538
|
+
const obj_thumb800H_union0_error = (() => {
|
|
3539
|
+
if (typeof obj_thumb800H !== 'number' || (typeof obj_thumb800H === 'number' && Math.floor(obj_thumb800H) !== obj_thumb800H)) {
|
|
3540
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb800H + '" (at "' + path_thumb800H + '")');
|
|
3541
|
+
}
|
|
3542
|
+
})();
|
|
3543
|
+
if (obj_thumb800H_union0_error != null) {
|
|
3544
|
+
obj_thumb800H_union0 = obj_thumb800H_union0_error.message;
|
|
3545
|
+
}
|
|
3546
|
+
let obj_thumb800H_union1 = null;
|
|
3547
|
+
const obj_thumb800H_union1_error = (() => {
|
|
3548
|
+
if (obj_thumb800H !== null) {
|
|
3549
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb800H + '" (at "' + path_thumb800H + '")');
|
|
3550
|
+
}
|
|
3551
|
+
})();
|
|
3552
|
+
if (obj_thumb800H_union1_error != null) {
|
|
3553
|
+
obj_thumb800H_union1 = obj_thumb800H_union1_error.message;
|
|
3554
|
+
}
|
|
3555
|
+
if (obj_thumb800H_union0 && obj_thumb800H_union1) {
|
|
3556
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb800H + '")';
|
|
3557
|
+
message += '\n' + obj_thumb800H_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3558
|
+
message += '\n' + obj_thumb800H_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3559
|
+
return new TypeError(message);
|
|
3560
|
+
}
|
|
3561
|
+
const obj_thumb800W = obj.thumb800W;
|
|
3562
|
+
const path_thumb800W = path + '.thumb800W';
|
|
3563
|
+
let obj_thumb800W_union0 = null;
|
|
3564
|
+
const obj_thumb800W_union0_error = (() => {
|
|
3565
|
+
if (typeof obj_thumb800W !== 'number' || (typeof obj_thumb800W === 'number' && Math.floor(obj_thumb800W) !== obj_thumb800W)) {
|
|
3566
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumb800W + '" (at "' + path_thumb800W + '")');
|
|
3567
|
+
}
|
|
3568
|
+
})();
|
|
3569
|
+
if (obj_thumb800W_union0_error != null) {
|
|
3570
|
+
obj_thumb800W_union0 = obj_thumb800W_union0_error.message;
|
|
3571
|
+
}
|
|
3572
|
+
let obj_thumb800W_union1 = null;
|
|
3573
|
+
const obj_thumb800W_union1_error = (() => {
|
|
3574
|
+
if (obj_thumb800W !== null) {
|
|
3575
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumb800W + '" (at "' + path_thumb800W + '")');
|
|
3576
|
+
}
|
|
3577
|
+
})();
|
|
3578
|
+
if (obj_thumb800W_union1_error != null) {
|
|
3579
|
+
obj_thumb800W_union1 = obj_thumb800W_union1_error.message;
|
|
3580
|
+
}
|
|
3581
|
+
if (obj_thumb800W_union0 && obj_thumb800W_union1) {
|
|
3582
|
+
let message = 'Object doesn\'t match union (at "' + path_thumb800W + '")';
|
|
3583
|
+
message += '\n' + obj_thumb800W_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3584
|
+
message += '\n' + obj_thumb800W_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3585
|
+
return new TypeError(message);
|
|
3586
|
+
}
|
|
2446
3587
|
const obj_thumb960 = obj.thumb960;
|
|
2447
3588
|
const path_thumb960 = path + '.thumb960';
|
|
2448
3589
|
let obj_thumb960_union0 = null;
|
|
@@ -2469,6 +3610,84 @@ function validate$g(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2469
3610
|
message += '\n' + obj_thumb960_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2470
3611
|
return new TypeError(message);
|
|
2471
3612
|
}
|
|
3613
|
+
const obj_thumbPdf = obj.thumbPdf;
|
|
3614
|
+
const path_thumbPdf = path + '.thumbPdf';
|
|
3615
|
+
let obj_thumbPdf_union0 = null;
|
|
3616
|
+
const obj_thumbPdf_union0_error = (() => {
|
|
3617
|
+
if (typeof obj_thumbPdf !== 'string') {
|
|
3618
|
+
return new TypeError('Expected "string" but received "' + typeof obj_thumbPdf + '" (at "' + path_thumbPdf + '")');
|
|
3619
|
+
}
|
|
3620
|
+
})();
|
|
3621
|
+
if (obj_thumbPdf_union0_error != null) {
|
|
3622
|
+
obj_thumbPdf_union0 = obj_thumbPdf_union0_error.message;
|
|
3623
|
+
}
|
|
3624
|
+
let obj_thumbPdf_union1 = null;
|
|
3625
|
+
const obj_thumbPdf_union1_error = (() => {
|
|
3626
|
+
if (obj_thumbPdf !== null) {
|
|
3627
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumbPdf + '" (at "' + path_thumbPdf + '")');
|
|
3628
|
+
}
|
|
3629
|
+
})();
|
|
3630
|
+
if (obj_thumbPdf_union1_error != null) {
|
|
3631
|
+
obj_thumbPdf_union1 = obj_thumbPdf_union1_error.message;
|
|
3632
|
+
}
|
|
3633
|
+
if (obj_thumbPdf_union0 && obj_thumbPdf_union1) {
|
|
3634
|
+
let message = 'Object doesn\'t match union (at "' + path_thumbPdf + '")';
|
|
3635
|
+
message += '\n' + obj_thumbPdf_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3636
|
+
message += '\n' + obj_thumbPdf_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3637
|
+
return new TypeError(message);
|
|
3638
|
+
}
|
|
3639
|
+
const obj_thumbPdfH = obj.thumbPdfH;
|
|
3640
|
+
const path_thumbPdfH = path + '.thumbPdfH';
|
|
3641
|
+
let obj_thumbPdfH_union0 = null;
|
|
3642
|
+
const obj_thumbPdfH_union0_error = (() => {
|
|
3643
|
+
if (typeof obj_thumbPdfH !== 'number' || (typeof obj_thumbPdfH === 'number' && Math.floor(obj_thumbPdfH) !== obj_thumbPdfH)) {
|
|
3644
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumbPdfH + '" (at "' + path_thumbPdfH + '")');
|
|
3645
|
+
}
|
|
3646
|
+
})();
|
|
3647
|
+
if (obj_thumbPdfH_union0_error != null) {
|
|
3648
|
+
obj_thumbPdfH_union0 = obj_thumbPdfH_union0_error.message;
|
|
3649
|
+
}
|
|
3650
|
+
let obj_thumbPdfH_union1 = null;
|
|
3651
|
+
const obj_thumbPdfH_union1_error = (() => {
|
|
3652
|
+
if (obj_thumbPdfH !== null) {
|
|
3653
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumbPdfH + '" (at "' + path_thumbPdfH + '")');
|
|
3654
|
+
}
|
|
3655
|
+
})();
|
|
3656
|
+
if (obj_thumbPdfH_union1_error != null) {
|
|
3657
|
+
obj_thumbPdfH_union1 = obj_thumbPdfH_union1_error.message;
|
|
3658
|
+
}
|
|
3659
|
+
if (obj_thumbPdfH_union0 && obj_thumbPdfH_union1) {
|
|
3660
|
+
let message = 'Object doesn\'t match union (at "' + path_thumbPdfH + '")';
|
|
3661
|
+
message += '\n' + obj_thumbPdfH_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3662
|
+
message += '\n' + obj_thumbPdfH_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3663
|
+
return new TypeError(message);
|
|
3664
|
+
}
|
|
3665
|
+
const obj_thumbPdfW = obj.thumbPdfW;
|
|
3666
|
+
const path_thumbPdfW = path + '.thumbPdfW';
|
|
3667
|
+
let obj_thumbPdfW_union0 = null;
|
|
3668
|
+
const obj_thumbPdfW_union0_error = (() => {
|
|
3669
|
+
if (typeof obj_thumbPdfW !== 'number' || (typeof obj_thumbPdfW === 'number' && Math.floor(obj_thumbPdfW) !== obj_thumbPdfW)) {
|
|
3670
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_thumbPdfW + '" (at "' + path_thumbPdfW + '")');
|
|
3671
|
+
}
|
|
3672
|
+
})();
|
|
3673
|
+
if (obj_thumbPdfW_union0_error != null) {
|
|
3674
|
+
obj_thumbPdfW_union0 = obj_thumbPdfW_union0_error.message;
|
|
3675
|
+
}
|
|
3676
|
+
let obj_thumbPdfW_union1 = null;
|
|
3677
|
+
const obj_thumbPdfW_union1_error = (() => {
|
|
3678
|
+
if (obj_thumbPdfW !== null) {
|
|
3679
|
+
return new TypeError('Expected "null" but received "' + typeof obj_thumbPdfW + '" (at "' + path_thumbPdfW + '")');
|
|
3680
|
+
}
|
|
3681
|
+
})();
|
|
3682
|
+
if (obj_thumbPdfW_union1_error != null) {
|
|
3683
|
+
obj_thumbPdfW_union1 = obj_thumbPdfW_union1_error.message;
|
|
3684
|
+
}
|
|
3685
|
+
if (obj_thumbPdfW_union0 && obj_thumbPdfW_union1) {
|
|
3686
|
+
let message = 'Object doesn\'t match union (at "' + path_thumbPdfW + '")';
|
|
3687
|
+
message += '\n' + obj_thumbPdfW_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3688
|
+
message += '\n' + obj_thumbPdfW_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3689
|
+
return new TypeError(message);
|
|
3690
|
+
}
|
|
2472
3691
|
const obj_thumbVideo = obj.thumbVideo;
|
|
2473
3692
|
const path_thumbVideo = path + '.thumbVideo';
|
|
2474
3693
|
let obj_thumbVideo_union0 = null;
|
|
@@ -2675,6 +3894,11 @@ const select$C = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
2675
3894
|
name: 'name',
|
|
2676
3895
|
kind: 'Scalar'
|
|
2677
3896
|
},
|
|
3897
|
+
{
|
|
3898
|
+
name: 'prettyType',
|
|
3899
|
+
kind: 'Scalar',
|
|
3900
|
+
required: false
|
|
3901
|
+
},
|
|
2678
3902
|
{
|
|
2679
3903
|
name: 'size',
|
|
2680
3904
|
kind: 'Scalar'
|
|
@@ -2687,22 +3911,86 @@ const select$C = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
2687
3911
|
name: 'thumb1024',
|
|
2688
3912
|
kind: 'Scalar'
|
|
2689
3913
|
},
|
|
3914
|
+
{
|
|
3915
|
+
name: 'thumb1024H',
|
|
3916
|
+
kind: 'Scalar'
|
|
3917
|
+
},
|
|
3918
|
+
{
|
|
3919
|
+
name: 'thumb1024W',
|
|
3920
|
+
kind: 'Scalar'
|
|
3921
|
+
},
|
|
2690
3922
|
{
|
|
2691
3923
|
name: 'thumb360',
|
|
2692
3924
|
kind: 'Scalar'
|
|
2693
3925
|
},
|
|
3926
|
+
{
|
|
3927
|
+
name: 'thumb360H',
|
|
3928
|
+
kind: 'Scalar'
|
|
3929
|
+
},
|
|
3930
|
+
{
|
|
3931
|
+
name: 'thumb360W',
|
|
3932
|
+
kind: 'Scalar'
|
|
3933
|
+
},
|
|
2694
3934
|
{
|
|
2695
3935
|
name: 'thumb480',
|
|
2696
3936
|
kind: 'Scalar'
|
|
2697
3937
|
},
|
|
3938
|
+
{
|
|
3939
|
+
name: 'thumb480H',
|
|
3940
|
+
kind: 'Scalar'
|
|
3941
|
+
},
|
|
3942
|
+
{
|
|
3943
|
+
name: 'thumb480W',
|
|
3944
|
+
kind: 'Scalar'
|
|
3945
|
+
},
|
|
3946
|
+
{
|
|
3947
|
+
name: 'thumb64',
|
|
3948
|
+
kind: 'Scalar'
|
|
3949
|
+
},
|
|
2698
3950
|
{
|
|
2699
3951
|
name: 'thumb720',
|
|
2700
3952
|
kind: 'Scalar'
|
|
2701
3953
|
},
|
|
3954
|
+
{
|
|
3955
|
+
name: 'thumb720H',
|
|
3956
|
+
kind: 'Scalar'
|
|
3957
|
+
},
|
|
3958
|
+
{
|
|
3959
|
+
name: 'thumb720W',
|
|
3960
|
+
kind: 'Scalar'
|
|
3961
|
+
},
|
|
3962
|
+
{
|
|
3963
|
+
name: 'thumb80',
|
|
3964
|
+
kind: 'Scalar'
|
|
3965
|
+
},
|
|
3966
|
+
{
|
|
3967
|
+
name: 'thumb800',
|
|
3968
|
+
kind: 'Scalar'
|
|
3969
|
+
},
|
|
3970
|
+
{
|
|
3971
|
+
name: 'thumb800H',
|
|
3972
|
+
kind: 'Scalar'
|
|
3973
|
+
},
|
|
3974
|
+
{
|
|
3975
|
+
name: 'thumb800W',
|
|
3976
|
+
kind: 'Scalar'
|
|
3977
|
+
},
|
|
2702
3978
|
{
|
|
2703
3979
|
name: 'thumb960',
|
|
2704
3980
|
kind: 'Scalar'
|
|
2705
3981
|
},
|
|
3982
|
+
{
|
|
3983
|
+
name: 'thumbPdf',
|
|
3984
|
+
kind: 'Scalar'
|
|
3985
|
+
},
|
|
3986
|
+
{
|
|
3987
|
+
name: 'thumbPdfH',
|
|
3988
|
+
kind: 'Scalar'
|
|
3989
|
+
},
|
|
3990
|
+
{
|
|
3991
|
+
name: 'thumbPdfW',
|
|
3992
|
+
kind: 'Scalar'
|
|
3993
|
+
},
|
|
2706
3994
|
{
|
|
2707
3995
|
name: 'thumbVideo',
|
|
2708
3996
|
kind: 'Scalar'
|
|
@@ -2773,6 +4061,19 @@ function equals$g(existing, incoming) {
|
|
|
2773
4061
|
equals$h(existing_contentDocument, incoming_contentDocument)))) {
|
|
2774
4062
|
return false;
|
|
2775
4063
|
}
|
|
4064
|
+
const existing_prettyType = existing.prettyType;
|
|
4065
|
+
const incoming_prettyType = incoming.prettyType;
|
|
4066
|
+
// if at least one of these optionals is defined
|
|
4067
|
+
if (existing_prettyType !== undefined || incoming_prettyType !== undefined) {
|
|
4068
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4069
|
+
// not equal
|
|
4070
|
+
if (existing_prettyType === undefined || incoming_prettyType === undefined) {
|
|
4071
|
+
return false;
|
|
4072
|
+
}
|
|
4073
|
+
if (!(existing_prettyType === incoming_prettyType)) {
|
|
4074
|
+
return false;
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
2776
4077
|
const existing_size = existing.size;
|
|
2777
4078
|
const incoming_size = incoming.size;
|
|
2778
4079
|
if (!(existing_size === incoming_size)) {
|
|
@@ -2783,26 +4084,106 @@ function equals$g(existing, incoming) {
|
|
|
2783
4084
|
if (!(existing_thumb1024 === incoming_thumb1024)) {
|
|
2784
4085
|
return false;
|
|
2785
4086
|
}
|
|
4087
|
+
const existing_thumb1024H = existing.thumb1024H;
|
|
4088
|
+
const incoming_thumb1024H = incoming.thumb1024H;
|
|
4089
|
+
if (!(existing_thumb1024H === incoming_thumb1024H)) {
|
|
4090
|
+
return false;
|
|
4091
|
+
}
|
|
4092
|
+
const existing_thumb1024W = existing.thumb1024W;
|
|
4093
|
+
const incoming_thumb1024W = incoming.thumb1024W;
|
|
4094
|
+
if (!(existing_thumb1024W === incoming_thumb1024W)) {
|
|
4095
|
+
return false;
|
|
4096
|
+
}
|
|
2786
4097
|
const existing_thumb360 = existing.thumb360;
|
|
2787
4098
|
const incoming_thumb360 = incoming.thumb360;
|
|
2788
4099
|
if (!(existing_thumb360 === incoming_thumb360)) {
|
|
2789
4100
|
return false;
|
|
2790
4101
|
}
|
|
4102
|
+
const existing_thumb360H = existing.thumb360H;
|
|
4103
|
+
const incoming_thumb360H = incoming.thumb360H;
|
|
4104
|
+
if (!(existing_thumb360H === incoming_thumb360H)) {
|
|
4105
|
+
return false;
|
|
4106
|
+
}
|
|
4107
|
+
const existing_thumb360W = existing.thumb360W;
|
|
4108
|
+
const incoming_thumb360W = incoming.thumb360W;
|
|
4109
|
+
if (!(existing_thumb360W === incoming_thumb360W)) {
|
|
4110
|
+
return false;
|
|
4111
|
+
}
|
|
2791
4112
|
const existing_thumb480 = existing.thumb480;
|
|
2792
4113
|
const incoming_thumb480 = incoming.thumb480;
|
|
2793
4114
|
if (!(existing_thumb480 === incoming_thumb480)) {
|
|
2794
4115
|
return false;
|
|
2795
4116
|
}
|
|
4117
|
+
const existing_thumb480H = existing.thumb480H;
|
|
4118
|
+
const incoming_thumb480H = incoming.thumb480H;
|
|
4119
|
+
if (!(existing_thumb480H === incoming_thumb480H)) {
|
|
4120
|
+
return false;
|
|
4121
|
+
}
|
|
4122
|
+
const existing_thumb480W = existing.thumb480W;
|
|
4123
|
+
const incoming_thumb480W = incoming.thumb480W;
|
|
4124
|
+
if (!(existing_thumb480W === incoming_thumb480W)) {
|
|
4125
|
+
return false;
|
|
4126
|
+
}
|
|
4127
|
+
const existing_thumb64 = existing.thumb64;
|
|
4128
|
+
const incoming_thumb64 = incoming.thumb64;
|
|
4129
|
+
if (!(existing_thumb64 === incoming_thumb64)) {
|
|
4130
|
+
return false;
|
|
4131
|
+
}
|
|
2796
4132
|
const existing_thumb720 = existing.thumb720;
|
|
2797
4133
|
const incoming_thumb720 = incoming.thumb720;
|
|
2798
4134
|
if (!(existing_thumb720 === incoming_thumb720)) {
|
|
2799
4135
|
return false;
|
|
2800
4136
|
}
|
|
4137
|
+
const existing_thumb720H = existing.thumb720H;
|
|
4138
|
+
const incoming_thumb720H = incoming.thumb720H;
|
|
4139
|
+
if (!(existing_thumb720H === incoming_thumb720H)) {
|
|
4140
|
+
return false;
|
|
4141
|
+
}
|
|
4142
|
+
const existing_thumb720W = existing.thumb720W;
|
|
4143
|
+
const incoming_thumb720W = incoming.thumb720W;
|
|
4144
|
+
if (!(existing_thumb720W === incoming_thumb720W)) {
|
|
4145
|
+
return false;
|
|
4146
|
+
}
|
|
4147
|
+
const existing_thumb80 = existing.thumb80;
|
|
4148
|
+
const incoming_thumb80 = incoming.thumb80;
|
|
4149
|
+
if (!(existing_thumb80 === incoming_thumb80)) {
|
|
4150
|
+
return false;
|
|
4151
|
+
}
|
|
4152
|
+
const existing_thumb800 = existing.thumb800;
|
|
4153
|
+
const incoming_thumb800 = incoming.thumb800;
|
|
4154
|
+
if (!(existing_thumb800 === incoming_thumb800)) {
|
|
4155
|
+
return false;
|
|
4156
|
+
}
|
|
4157
|
+
const existing_thumb800H = existing.thumb800H;
|
|
4158
|
+
const incoming_thumb800H = incoming.thumb800H;
|
|
4159
|
+
if (!(existing_thumb800H === incoming_thumb800H)) {
|
|
4160
|
+
return false;
|
|
4161
|
+
}
|
|
4162
|
+
const existing_thumb800W = existing.thumb800W;
|
|
4163
|
+
const incoming_thumb800W = incoming.thumb800W;
|
|
4164
|
+
if (!(existing_thumb800W === incoming_thumb800W)) {
|
|
4165
|
+
return false;
|
|
4166
|
+
}
|
|
2801
4167
|
const existing_thumb960 = existing.thumb960;
|
|
2802
4168
|
const incoming_thumb960 = incoming.thumb960;
|
|
2803
4169
|
if (!(existing_thumb960 === incoming_thumb960)) {
|
|
2804
4170
|
return false;
|
|
2805
4171
|
}
|
|
4172
|
+
const existing_thumbPdf = existing.thumbPdf;
|
|
4173
|
+
const incoming_thumbPdf = incoming.thumbPdf;
|
|
4174
|
+
if (!(existing_thumbPdf === incoming_thumbPdf)) {
|
|
4175
|
+
return false;
|
|
4176
|
+
}
|
|
4177
|
+
const existing_thumbPdfH = existing.thumbPdfH;
|
|
4178
|
+
const incoming_thumbPdfH = incoming.thumbPdfH;
|
|
4179
|
+
if (!(existing_thumbPdfH === incoming_thumbPdfH)) {
|
|
4180
|
+
return false;
|
|
4181
|
+
}
|
|
4182
|
+
const existing_thumbPdfW = existing.thumbPdfW;
|
|
4183
|
+
const incoming_thumbPdfW = incoming.thumbPdfW;
|
|
4184
|
+
if (!(existing_thumbPdfW === incoming_thumbPdfW)) {
|
|
4185
|
+
return false;
|
|
4186
|
+
}
|
|
2806
4187
|
const existing_thumbVideo = existing.thumbVideo;
|
|
2807
4188
|
const incoming_thumbVideo = incoming.thumbVideo;
|
|
2808
4189
|
if (!(existing_thumbVideo === incoming_thumbVideo)) {
|
|
@@ -3936,7 +5317,7 @@ const select$z = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3936
5317
|
name: 'contextUserInfo',
|
|
3937
5318
|
kind: 'Link',
|
|
3938
5319
|
nullable: true,
|
|
3939
|
-
fragment: select$
|
|
5320
|
+
fragment: select$K()
|
|
3940
5321
|
},
|
|
3941
5322
|
{
|
|
3942
5323
|
name: 'conversationInfo',
|
|
@@ -3954,7 +5335,7 @@ const select$z = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3954
5335
|
name: 'emojis',
|
|
3955
5336
|
kind: 'Link',
|
|
3956
5337
|
plural: true,
|
|
3957
|
-
fragment: select$
|
|
5338
|
+
fragment: select$L()
|
|
3958
5339
|
},
|
|
3959
5340
|
{
|
|
3960
5341
|
name: 'history',
|
|
@@ -3973,7 +5354,7 @@ const select$z = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3973
5354
|
name: 'userInfos',
|
|
3974
5355
|
kind: 'Link',
|
|
3975
5356
|
plural: true,
|
|
3976
|
-
fragment: select$
|
|
5357
|
+
fragment: select$K()
|
|
3977
5358
|
},
|
|
3978
5359
|
{
|
|
3979
5360
|
name: 'websocketUrl',
|
|
@@ -5273,7 +6654,7 @@ function equals$9(existing, incoming) {
|
|
|
5273
6654
|
}
|
|
5274
6655
|
|
|
5275
6656
|
const TTL = 500;
|
|
5276
|
-
const VERSION$8 = "
|
|
6657
|
+
const VERSION$8 = "2b81502c1b0fa62a77f46ca204536b24";
|
|
5277
6658
|
function validate$8(obj, path = 'SlackBridgeDisplayLoginOutputRepresentation') {
|
|
5278
6659
|
const v_error = (() => {
|
|
5279
6660
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5286,10 +6667,31 @@ function validate$8(obj, path = 'SlackBridgeDisplayLoginOutputRepresentation') {
|
|
|
5286
6667
|
}
|
|
5287
6668
|
const obj_slackTeam = obj.slackTeam;
|
|
5288
6669
|
const path_slackTeam = path + '.slackTeam';
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
6670
|
+
let obj_slackTeam_union0 = null;
|
|
6671
|
+
const obj_slackTeam_union0_error = (() => {
|
|
6672
|
+
const referencepath_slackTeamValidationError = validate$9(obj_slackTeam, path_slackTeam);
|
|
6673
|
+
if (referencepath_slackTeamValidationError !== null) {
|
|
6674
|
+
let message = 'Object doesn\'t match SlackBridgeSlackTeamOutputRepresentation (at "' + path_slackTeam + '")\n';
|
|
6675
|
+
message += referencepath_slackTeamValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6676
|
+
return new TypeError(message);
|
|
6677
|
+
}
|
|
6678
|
+
})();
|
|
6679
|
+
if (obj_slackTeam_union0_error != null) {
|
|
6680
|
+
obj_slackTeam_union0 = obj_slackTeam_union0_error.message;
|
|
6681
|
+
}
|
|
6682
|
+
let obj_slackTeam_union1 = null;
|
|
6683
|
+
const obj_slackTeam_union1_error = (() => {
|
|
6684
|
+
if (obj_slackTeam !== null) {
|
|
6685
|
+
return new TypeError('Expected "null" but received "' + typeof obj_slackTeam + '" (at "' + path_slackTeam + '")');
|
|
6686
|
+
}
|
|
6687
|
+
})();
|
|
6688
|
+
if (obj_slackTeam_union1_error != null) {
|
|
6689
|
+
obj_slackTeam_union1 = obj_slackTeam_union1_error.message;
|
|
6690
|
+
}
|
|
6691
|
+
if (obj_slackTeam_union0 && obj_slackTeam_union1) {
|
|
6692
|
+
let message = 'Object doesn\'t match union (at "' + path_slackTeam + '")';
|
|
6693
|
+
message += '\n' + obj_slackTeam_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6694
|
+
message += '\n' + obj_slackTeam_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5293
6695
|
return new TypeError(message);
|
|
5294
6696
|
}
|
|
5295
6697
|
})();
|
|
@@ -5313,6 +6715,7 @@ const select$o = function SlackBridgeDisplayLoginOutputRepresentationSelect() {
|
|
|
5313
6715
|
{
|
|
5314
6716
|
name: 'slackTeam',
|
|
5315
6717
|
kind: 'Object',
|
|
6718
|
+
nullable: true,
|
|
5316
6719
|
selections: SlackBridgeSlackTeamOutputRepresentation__selections
|
|
5317
6720
|
}
|
|
5318
6721
|
]
|
|
@@ -5326,7 +6729,10 @@ function equals$8(existing, incoming) {
|
|
|
5326
6729
|
}
|
|
5327
6730
|
const existing_slackTeam = existing.slackTeam;
|
|
5328
6731
|
const incoming_slackTeam = incoming.slackTeam;
|
|
5329
|
-
if (!(
|
|
6732
|
+
if (!(existing_slackTeam === incoming_slackTeam
|
|
6733
|
+
|| (existing_slackTeam != null &&
|
|
6734
|
+
incoming_slackTeam != null &&
|
|
6735
|
+
equals$9(existing_slackTeam, incoming_slackTeam)))) {
|
|
5330
6736
|
return false;
|
|
5331
6737
|
}
|
|
5332
6738
|
return true;
|
|
@@ -7507,7 +8913,7 @@ const select$7 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
7507
8913
|
name: 'emojis',
|
|
7508
8914
|
kind: 'Link',
|
|
7509
8915
|
plural: true,
|
|
7510
|
-
fragment: select$
|
|
8916
|
+
fragment: select$L()
|
|
7511
8917
|
}
|
|
7512
8918
|
]
|
|
7513
8919
|
};
|
|
@@ -7685,7 +9091,7 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
7685
9091
|
};
|
|
7686
9092
|
|
|
7687
9093
|
function select$5(luvio, params) {
|
|
7688
|
-
return select$
|
|
9094
|
+
return select$L();
|
|
7689
9095
|
}
|
|
7690
9096
|
function keyBuilder$9(luvio, params) {
|
|
7691
9097
|
return keyBuilder$H(luvio, {
|
|
@@ -7718,7 +9124,7 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
7718
9124
|
const storeMetadataParams = {
|
|
7719
9125
|
ttl: TTL$4,
|
|
7720
9126
|
namespace: keyPrefix,
|
|
7721
|
-
version: VERSION$
|
|
9127
|
+
version: VERSION$p,
|
|
7722
9128
|
representationName: RepresentationType$i
|
|
7723
9129
|
};
|
|
7724
9130
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -8202,7 +9608,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
8202
9608
|
name: 'userInfos',
|
|
8203
9609
|
kind: 'Link',
|
|
8204
9610
|
plural: true,
|
|
8205
|
-
fragment: select$
|
|
9611
|
+
fragment: select$K()
|
|
8206
9612
|
}
|
|
8207
9613
|
]
|
|
8208
9614
|
};
|
|
@@ -8393,7 +9799,7 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
8393
9799
|
};
|
|
8394
9800
|
|
|
8395
9801
|
function select(luvio, params) {
|
|
8396
|
-
return select$
|
|
9802
|
+
return select$K();
|
|
8397
9803
|
}
|
|
8398
9804
|
function keyBuilder$1(luvio, params) {
|
|
8399
9805
|
return keyBuilder$G(luvio, {
|
|
@@ -8426,7 +9832,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
8426
9832
|
const storeMetadataParams = {
|
|
8427
9833
|
ttl: TTL$3,
|
|
8428
9834
|
namespace: keyPrefix,
|
|
8429
|
-
version: VERSION$
|
|
9835
|
+
version: VERSION$o,
|
|
8430
9836
|
representationName: RepresentationType$h
|
|
8431
9837
|
};
|
|
8432
9838
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|