@salesforce/lds-adapters-platform-slack-bridge 1.347.0 → 1.348.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-slack-bridge.js +824 -425
- package/dist/es/es2018/types/src/generated/adapters/getRelatedThreads.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeRelated_threadsEntityByEntityId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeRelatedThreadsOutputRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +9 -3
- package/package.json +3 -3
- package/sfdc/index.js +2503 -2096
- package/src/raml/api.raml +41 -0
- package/src/raml/luvio.raml +6 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$c, typeCheckConfig as typeCheckConfig$m, StoreKeyMap, createResourceParams as createResourceParams$m } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -112,8 +112,8 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$
|
|
115
|
+
const VERSION$m = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
116
|
+
function validate$m(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
117
117
|
const v_error = (() => {
|
|
118
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -199,10 +199,10 @@ function validate$l(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
|
199
199
|
})();
|
|
200
200
|
return v_error === undefined ? null : v_error;
|
|
201
201
|
}
|
|
202
|
-
const select$
|
|
202
|
+
const select$F = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
203
203
|
return {
|
|
204
204
|
kind: 'Fragment',
|
|
205
|
-
version: VERSION$
|
|
205
|
+
version: VERSION$m,
|
|
206
206
|
private: [],
|
|
207
207
|
selections: [
|
|
208
208
|
{
|
|
@@ -220,7 +220,7 @@ const select$D = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
|
220
220
|
]
|
|
221
221
|
};
|
|
222
222
|
};
|
|
223
|
-
function equals$
|
|
223
|
+
function equals$m(existing, incoming) {
|
|
224
224
|
const existing_appleUrl = existing.appleUrl;
|
|
225
225
|
const incoming_appleUrl = incoming.appleUrl;
|
|
226
226
|
if (!(existing_appleUrl === incoming_appleUrl)) {
|
|
@@ -239,9 +239,9 @@ function equals$l(existing, incoming) {
|
|
|
239
239
|
return true;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
const TTL$
|
|
243
|
-
const VERSION$
|
|
244
|
-
function validate$
|
|
242
|
+
const TTL$2 = 2592000000;
|
|
243
|
+
const VERSION$l = "a0e1530372a57d61a1264218124bbb5c";
|
|
244
|
+
function validate$l(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
245
245
|
const v_error = (() => {
|
|
246
246
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
247
247
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -359,7 +359,7 @@ function validate$k(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
359
359
|
const path_value = path + '.value';
|
|
360
360
|
let obj_value_union0 = null;
|
|
361
361
|
const obj_value_union0_error = (() => {
|
|
362
|
-
const referencepath_valueValidationError = validate$
|
|
362
|
+
const referencepath_valueValidationError = validate$m(obj_value, path_value);
|
|
363
363
|
if (referencepath_valueValidationError !== null) {
|
|
364
364
|
let message = 'Object doesn\'t match SlackBridgeEmojiValueOutputRepresentation (at "' + path_value + '")\n';
|
|
365
365
|
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -387,24 +387,24 @@ function validate$k(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
387
387
|
})();
|
|
388
388
|
return v_error === undefined ? null : v_error;
|
|
389
389
|
}
|
|
390
|
-
const RepresentationType$
|
|
391
|
-
function keyBuilder$
|
|
392
|
-
return keyPrefix + '::' + RepresentationType$
|
|
390
|
+
const RepresentationType$h = 'SlackBridgeEmojiOutputRepresentation';
|
|
391
|
+
function keyBuilder$B(luvio, config) {
|
|
392
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.name;
|
|
393
393
|
}
|
|
394
394
|
function keyBuilderFromType$a(luvio, object) {
|
|
395
395
|
const keyParams = {
|
|
396
396
|
name: object.name
|
|
397
397
|
};
|
|
398
|
-
return keyBuilder$
|
|
398
|
+
return keyBuilder$B(luvio, keyParams);
|
|
399
399
|
}
|
|
400
|
-
function normalize$
|
|
400
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
401
401
|
return input;
|
|
402
402
|
}
|
|
403
|
-
const select$
|
|
404
|
-
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$
|
|
403
|
+
const select$E = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
404
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$F();
|
|
405
405
|
return {
|
|
406
406
|
kind: 'Fragment',
|
|
407
|
-
version: VERSION$
|
|
407
|
+
version: VERSION$l,
|
|
408
408
|
private: [],
|
|
409
409
|
selections: [
|
|
410
410
|
{
|
|
@@ -436,7 +436,7 @@ const select$C = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
|
436
436
|
]
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
|
-
function equals$
|
|
439
|
+
function equals$l(existing, incoming) {
|
|
440
440
|
const existing_name = existing.name;
|
|
441
441
|
const incoming_name = incoming.name;
|
|
442
442
|
if (!(existing_name === incoming_name)) {
|
|
@@ -467,36 +467,36 @@ function equals$k(existing, incoming) {
|
|
|
467
467
|
if (!(existing_value === incoming_value
|
|
468
468
|
|| (existing_value != null &&
|
|
469
469
|
incoming_value != null &&
|
|
470
|
-
equals$
|
|
470
|
+
equals$m(existing_value, incoming_value)))) {
|
|
471
471
|
return false;
|
|
472
472
|
}
|
|
473
473
|
return true;
|
|
474
474
|
}
|
|
475
|
-
const ingest$
|
|
475
|
+
const ingest$h = function SlackBridgeEmojiOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
476
476
|
if (process.env.NODE_ENV !== 'production') {
|
|
477
|
-
const validateError = validate$
|
|
477
|
+
const validateError = validate$l(input);
|
|
478
478
|
if (validateError !== null) {
|
|
479
479
|
throw validateError;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
const key = keyBuilderFromType$a(luvio, input);
|
|
483
|
-
const ttlToUse = TTL$
|
|
484
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
483
|
+
const ttlToUse = TTL$2;
|
|
484
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SlackBridge", VERSION$l, RepresentationType$h, equals$l);
|
|
485
485
|
return createLink(key);
|
|
486
486
|
};
|
|
487
|
-
function getTypeCacheKeys$
|
|
487
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
488
488
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
489
489
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
490
490
|
rootKeySet.set(rootKey, {
|
|
491
491
|
namespace: keyPrefix,
|
|
492
|
-
representationName: RepresentationType$
|
|
492
|
+
representationName: RepresentationType$h,
|
|
493
493
|
mergeable: false
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
const TTL = 600000;
|
|
498
|
-
const VERSION$
|
|
499
|
-
function validate$
|
|
497
|
+
const TTL$1 = 600000;
|
|
498
|
+
const VERSION$k = "ffc32ae0451b10824fba0c96aa0d2115";
|
|
499
|
+
function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
500
500
|
const v_error = (() => {
|
|
501
501
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
502
502
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -558,31 +558,33 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
558
558
|
message += '\n' + obj_email_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
559
559
|
return new TypeError(message);
|
|
560
560
|
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
561
|
+
if (obj.image24 !== undefined) {
|
|
562
|
+
const obj_image24 = obj.image24;
|
|
563
|
+
const path_image24 = path + '.image24';
|
|
564
|
+
let obj_image24_union0 = null;
|
|
565
|
+
const obj_image24_union0_error = (() => {
|
|
566
|
+
if (typeof obj_image24 !== 'string') {
|
|
567
|
+
return new TypeError('Expected "string" but received "' + typeof obj_image24 + '" (at "' + path_image24 + '")');
|
|
568
|
+
}
|
|
569
|
+
})();
|
|
570
|
+
if (obj_image24_union0_error != null) {
|
|
571
|
+
obj_image24_union0 = obj_image24_union0_error.message;
|
|
572
|
+
}
|
|
573
|
+
let obj_image24_union1 = null;
|
|
574
|
+
const obj_image24_union1_error = (() => {
|
|
575
|
+
if (obj_image24 !== null) {
|
|
576
|
+
return new TypeError('Expected "null" but received "' + typeof obj_image24 + '" (at "' + path_image24 + '")');
|
|
577
|
+
}
|
|
578
|
+
})();
|
|
579
|
+
if (obj_image24_union1_error != null) {
|
|
580
|
+
obj_image24_union1 = obj_image24_union1_error.message;
|
|
581
|
+
}
|
|
582
|
+
if (obj_image24_union0 && obj_image24_union1) {
|
|
583
|
+
let message = 'Object doesn\'t match union (at "' + path_image24 + '")';
|
|
584
|
+
message += '\n' + obj_image24_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
585
|
+
message += '\n' + obj_image24_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
586
|
+
return new TypeError(message);
|
|
576
587
|
}
|
|
577
|
-
})();
|
|
578
|
-
if (obj_image24_union1_error != null) {
|
|
579
|
-
obj_image24_union1 = obj_image24_union1_error.message;
|
|
580
|
-
}
|
|
581
|
-
if (obj_image24_union0 && obj_image24_union1) {
|
|
582
|
-
let message = 'Object doesn\'t match union (at "' + path_image24 + '")';
|
|
583
|
-
message += '\n' + obj_image24_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
584
|
-
message += '\n' + obj_image24_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
585
|
-
return new TypeError(message);
|
|
586
588
|
}
|
|
587
589
|
const obj_imageOriginal = obj.imageOriginal;
|
|
588
590
|
const path_imageOriginal = path + '.imageOriginal';
|
|
@@ -688,11 +690,46 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
688
690
|
message += '\n' + obj_isExternal_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
689
691
|
return new TypeError(message);
|
|
690
692
|
}
|
|
693
|
+
if (obj.isWorkflowBot !== undefined) {
|
|
694
|
+
const obj_isWorkflowBot = obj.isWorkflowBot;
|
|
695
|
+
const path_isWorkflowBot = path + '.isWorkflowBot';
|
|
696
|
+
if (typeof obj_isWorkflowBot !== 'boolean') {
|
|
697
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isWorkflowBot + '" (at "' + path_isWorkflowBot + '")');
|
|
698
|
+
}
|
|
699
|
+
}
|
|
691
700
|
const obj_name = obj.name;
|
|
692
701
|
const path_name = path + '.name';
|
|
693
702
|
if (typeof obj_name !== 'string') {
|
|
694
703
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
695
704
|
}
|
|
705
|
+
if (obj.profileImage !== undefined) {
|
|
706
|
+
const obj_profileImage = obj.profileImage;
|
|
707
|
+
const path_profileImage = path + '.profileImage';
|
|
708
|
+
let obj_profileImage_union0 = null;
|
|
709
|
+
const obj_profileImage_union0_error = (() => {
|
|
710
|
+
if (typeof obj_profileImage !== 'string') {
|
|
711
|
+
return new TypeError('Expected "string" but received "' + typeof obj_profileImage + '" (at "' + path_profileImage + '")');
|
|
712
|
+
}
|
|
713
|
+
})();
|
|
714
|
+
if (obj_profileImage_union0_error != null) {
|
|
715
|
+
obj_profileImage_union0 = obj_profileImage_union0_error.message;
|
|
716
|
+
}
|
|
717
|
+
let obj_profileImage_union1 = null;
|
|
718
|
+
const obj_profileImage_union1_error = (() => {
|
|
719
|
+
if (obj_profileImage !== null) {
|
|
720
|
+
return new TypeError('Expected "null" but received "' + typeof obj_profileImage + '" (at "' + path_profileImage + '")');
|
|
721
|
+
}
|
|
722
|
+
})();
|
|
723
|
+
if (obj_profileImage_union1_error != null) {
|
|
724
|
+
obj_profileImage_union1 = obj_profileImage_union1_error.message;
|
|
725
|
+
}
|
|
726
|
+
if (obj_profileImage_union0 && obj_profileImage_union1) {
|
|
727
|
+
let message = 'Object doesn\'t match union (at "' + path_profileImage + '")';
|
|
728
|
+
message += '\n' + obj_profileImage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
729
|
+
message += '\n' + obj_profileImage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
730
|
+
return new TypeError(message);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
696
733
|
const obj_profileUrl = obj.profileUrl;
|
|
697
734
|
const path_profileUrl = path + '.profileUrl';
|
|
698
735
|
let obj_profileUrl_union0 = null;
|
|
@@ -862,22 +899,22 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
862
899
|
})();
|
|
863
900
|
return v_error === undefined ? null : v_error;
|
|
864
901
|
}
|
|
865
|
-
const RepresentationType$
|
|
866
|
-
function keyBuilder$
|
|
867
|
-
return keyPrefix + '::' + RepresentationType$
|
|
902
|
+
const RepresentationType$g = 'SlackBridgeUserInfoOutputRepresentation';
|
|
903
|
+
function keyBuilder$A(luvio, config) {
|
|
904
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.teamId + ':' + config.slackUserId;
|
|
868
905
|
}
|
|
869
906
|
function keyBuilderFromType$9(luvio, object) {
|
|
870
907
|
const keyParams = {
|
|
871
908
|
teamId: object.teamId,
|
|
872
909
|
slackUserId: object.slackUserId
|
|
873
910
|
};
|
|
874
|
-
return keyBuilder$
|
|
911
|
+
return keyBuilder$A(luvio, keyParams);
|
|
875
912
|
}
|
|
876
|
-
function normalize$
|
|
913
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
877
914
|
const input_statusEmoji = input.statusEmoji;
|
|
878
915
|
const input_statusEmoji_id = path.fullPath + '__statusEmoji';
|
|
879
916
|
if (input_statusEmoji !== null && typeof input_statusEmoji === 'object') {
|
|
880
|
-
input.statusEmoji = ingest$
|
|
917
|
+
input.statusEmoji = ingest$h(input_statusEmoji, {
|
|
881
918
|
fullPath: input_statusEmoji_id,
|
|
882
919
|
propertyName: 'statusEmoji',
|
|
883
920
|
parent: {
|
|
@@ -890,10 +927,10 @@ function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
|
890
927
|
}
|
|
891
928
|
return input;
|
|
892
929
|
}
|
|
893
|
-
const select$
|
|
930
|
+
const select$D = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
894
931
|
return {
|
|
895
932
|
kind: 'Fragment',
|
|
896
|
-
version: VERSION$
|
|
933
|
+
version: VERSION$k,
|
|
897
934
|
private: [],
|
|
898
935
|
selections: [
|
|
899
936
|
{
|
|
@@ -910,7 +947,8 @@ const select$B = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
910
947
|
},
|
|
911
948
|
{
|
|
912
949
|
name: 'image24',
|
|
913
|
-
kind: 'Scalar'
|
|
950
|
+
kind: 'Scalar',
|
|
951
|
+
required: false
|
|
914
952
|
},
|
|
915
953
|
{
|
|
916
954
|
name: 'imageOriginal',
|
|
@@ -928,10 +966,20 @@ const select$B = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
928
966
|
name: 'isExternal',
|
|
929
967
|
kind: 'Scalar'
|
|
930
968
|
},
|
|
969
|
+
{
|
|
970
|
+
name: 'isWorkflowBot',
|
|
971
|
+
kind: 'Scalar',
|
|
972
|
+
required: false
|
|
973
|
+
},
|
|
931
974
|
{
|
|
932
975
|
name: 'name',
|
|
933
976
|
kind: 'Scalar'
|
|
934
977
|
},
|
|
978
|
+
{
|
|
979
|
+
name: 'profileImage',
|
|
980
|
+
kind: 'Scalar',
|
|
981
|
+
required: false
|
|
982
|
+
},
|
|
935
983
|
{
|
|
936
984
|
name: 'profileUrl',
|
|
937
985
|
kind: 'Scalar'
|
|
@@ -952,7 +1000,7 @@ const select$B = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
952
1000
|
name: 'statusEmoji',
|
|
953
1001
|
kind: 'Link',
|
|
954
1002
|
nullable: true,
|
|
955
|
-
fragment: select$
|
|
1003
|
+
fragment: select$E()
|
|
956
1004
|
},
|
|
957
1005
|
{
|
|
958
1006
|
name: 'statusMessage',
|
|
@@ -969,12 +1017,25 @@ const select$B = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
969
1017
|
]
|
|
970
1018
|
};
|
|
971
1019
|
};
|
|
972
|
-
function equals$
|
|
1020
|
+
function equals$k(existing, incoming) {
|
|
973
1021
|
const existing_bot = existing.bot;
|
|
974
1022
|
const incoming_bot = incoming.bot;
|
|
975
1023
|
if (!(existing_bot === incoming_bot)) {
|
|
976
1024
|
return false;
|
|
977
1025
|
}
|
|
1026
|
+
const existing_isWorkflowBot = existing.isWorkflowBot;
|
|
1027
|
+
const incoming_isWorkflowBot = incoming.isWorkflowBot;
|
|
1028
|
+
// if at least one of these optionals is defined
|
|
1029
|
+
if (existing_isWorkflowBot !== undefined || incoming_isWorkflowBot !== undefined) {
|
|
1030
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1031
|
+
// not equal
|
|
1032
|
+
if (existing_isWorkflowBot === undefined || incoming_isWorkflowBot === undefined) {
|
|
1033
|
+
return false;
|
|
1034
|
+
}
|
|
1035
|
+
if (!(existing_isWorkflowBot === incoming_isWorkflowBot)) {
|
|
1036
|
+
return false;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
978
1039
|
const existing_name = existing.name;
|
|
979
1040
|
const incoming_name = incoming.name;
|
|
980
1041
|
if (!(existing_name === incoming_name)) {
|
|
@@ -1002,8 +1063,16 @@ function equals$j(existing, incoming) {
|
|
|
1002
1063
|
}
|
|
1003
1064
|
const existing_image24 = existing.image24;
|
|
1004
1065
|
const incoming_image24 = incoming.image24;
|
|
1005
|
-
if
|
|
1006
|
-
|
|
1066
|
+
// if at least one of these optionals is defined
|
|
1067
|
+
if (existing_image24 !== undefined || incoming_image24 !== undefined) {
|
|
1068
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1069
|
+
// not equal
|
|
1070
|
+
if (existing_image24 === undefined || incoming_image24 === undefined) {
|
|
1071
|
+
return false;
|
|
1072
|
+
}
|
|
1073
|
+
if (!(existing_image24 === incoming_image24)) {
|
|
1074
|
+
return false;
|
|
1075
|
+
}
|
|
1007
1076
|
}
|
|
1008
1077
|
const existing_imageOriginal = existing.imageOriginal;
|
|
1009
1078
|
const incoming_imageOriginal = incoming.imageOriginal;
|
|
@@ -1025,6 +1094,19 @@ function equals$j(existing, incoming) {
|
|
|
1025
1094
|
if (!(existing_isExternal === incoming_isExternal)) {
|
|
1026
1095
|
return false;
|
|
1027
1096
|
}
|
|
1097
|
+
const existing_profileImage = existing.profileImage;
|
|
1098
|
+
const incoming_profileImage = incoming.profileImage;
|
|
1099
|
+
// if at least one of these optionals is defined
|
|
1100
|
+
if (existing_profileImage !== undefined || incoming_profileImage !== undefined) {
|
|
1101
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1102
|
+
// not equal
|
|
1103
|
+
if (existing_profileImage === undefined || incoming_profileImage === undefined) {
|
|
1104
|
+
return false;
|
|
1105
|
+
}
|
|
1106
|
+
if (!(existing_profileImage === incoming_profileImage)) {
|
|
1107
|
+
return false;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1028
1110
|
const existing_profileUrl = existing.profileUrl;
|
|
1029
1111
|
const incoming_profileUrl = incoming.profileUrl;
|
|
1030
1112
|
if (!(existing_profileUrl === incoming_profileUrl)) {
|
|
@@ -1062,33 +1144,33 @@ function equals$j(existing, incoming) {
|
|
|
1062
1144
|
}
|
|
1063
1145
|
return true;
|
|
1064
1146
|
}
|
|
1065
|
-
const ingest$
|
|
1147
|
+
const ingest$g = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1066
1148
|
if (process.env.NODE_ENV !== 'production') {
|
|
1067
|
-
const validateError = validate$
|
|
1149
|
+
const validateError = validate$k(input);
|
|
1068
1150
|
if (validateError !== null) {
|
|
1069
1151
|
throw validateError;
|
|
1070
1152
|
}
|
|
1071
1153
|
}
|
|
1072
1154
|
const key = keyBuilderFromType$9(luvio, input);
|
|
1073
|
-
const ttlToUse = TTL;
|
|
1074
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1155
|
+
const ttlToUse = TTL$1;
|
|
1156
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$k, RepresentationType$g, equals$k);
|
|
1075
1157
|
return createLink(key);
|
|
1076
1158
|
};
|
|
1077
|
-
function getTypeCacheKeys$
|
|
1159
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
1078
1160
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1079
1161
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
1080
1162
|
rootKeySet.set(rootKey, {
|
|
1081
1163
|
namespace: keyPrefix,
|
|
1082
|
-
representationName: RepresentationType$
|
|
1164
|
+
representationName: RepresentationType$g,
|
|
1083
1165
|
mergeable: false
|
|
1084
1166
|
});
|
|
1085
1167
|
if (input.statusEmoji !== null && typeof input.statusEmoji === 'object') {
|
|
1086
|
-
getTypeCacheKeys$
|
|
1168
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.statusEmoji);
|
|
1087
1169
|
}
|
|
1088
1170
|
}
|
|
1089
1171
|
|
|
1090
|
-
const VERSION$
|
|
1091
|
-
function validate$
|
|
1172
|
+
const VERSION$j = "252fe3a6509a770a876e36552ad8dd06";
|
|
1173
|
+
function validate$j(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
1092
1174
|
const v_error = (() => {
|
|
1093
1175
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1094
1176
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1425,23 +1507,23 @@ function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
1425
1507
|
})();
|
|
1426
1508
|
return v_error === undefined ? null : v_error;
|
|
1427
1509
|
}
|
|
1428
|
-
const RepresentationType$
|
|
1429
|
-
function keyBuilder$
|
|
1430
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1510
|
+
const RepresentationType$f = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
1511
|
+
function keyBuilder$z(luvio, config) {
|
|
1512
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.id;
|
|
1431
1513
|
}
|
|
1432
1514
|
function keyBuilderFromType$8(luvio, object) {
|
|
1433
1515
|
const keyParams = {
|
|
1434
1516
|
id: object.id
|
|
1435
1517
|
};
|
|
1436
|
-
return keyBuilder$
|
|
1518
|
+
return keyBuilder$z(luvio, keyParams);
|
|
1437
1519
|
}
|
|
1438
|
-
function normalize$
|
|
1520
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
1439
1521
|
return input;
|
|
1440
1522
|
}
|
|
1441
|
-
const select$
|
|
1523
|
+
const select$C = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
1442
1524
|
return {
|
|
1443
1525
|
kind: 'Fragment',
|
|
1444
|
-
version: VERSION$
|
|
1526
|
+
version: VERSION$j,
|
|
1445
1527
|
private: [],
|
|
1446
1528
|
selections: [
|
|
1447
1529
|
{
|
|
@@ -1508,7 +1590,7 @@ const select$A = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
1508
1590
|
]
|
|
1509
1591
|
};
|
|
1510
1592
|
};
|
|
1511
|
-
function equals$
|
|
1593
|
+
function equals$j(existing, incoming) {
|
|
1512
1594
|
const existing_id = existing.id;
|
|
1513
1595
|
const incoming_id = incoming.id;
|
|
1514
1596
|
if (!(existing_id === incoming_id)) {
|
|
@@ -1594,30 +1676,30 @@ function equals$i(existing, incoming) {
|
|
|
1594
1676
|
}
|
|
1595
1677
|
return true;
|
|
1596
1678
|
}
|
|
1597
|
-
const ingest$
|
|
1679
|
+
const ingest$f = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1598
1680
|
if (process.env.NODE_ENV !== 'production') {
|
|
1599
|
-
const validateError = validate$
|
|
1681
|
+
const validateError = validate$j(input);
|
|
1600
1682
|
if (validateError !== null) {
|
|
1601
1683
|
throw validateError;
|
|
1602
1684
|
}
|
|
1603
1685
|
}
|
|
1604
1686
|
const key = keyBuilderFromType$8(luvio, input);
|
|
1605
1687
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
1606
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1688
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SlackBridge", VERSION$j, RepresentationType$f, equals$j);
|
|
1607
1689
|
return createLink(key);
|
|
1608
1690
|
};
|
|
1609
|
-
function getTypeCacheKeys$
|
|
1691
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
1610
1692
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1611
1693
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
1612
1694
|
rootKeySet.set(rootKey, {
|
|
1613
1695
|
namespace: keyPrefix,
|
|
1614
|
-
representationName: RepresentationType$
|
|
1696
|
+
representationName: RepresentationType$f,
|
|
1615
1697
|
mergeable: false
|
|
1616
1698
|
});
|
|
1617
1699
|
}
|
|
1618
1700
|
|
|
1619
|
-
const VERSION$
|
|
1620
|
-
function validate$
|
|
1701
|
+
const VERSION$i = "7820a930852347bb0506c08d8b528281";
|
|
1702
|
+
function validate$i(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
1621
1703
|
const v_error = (() => {
|
|
1622
1704
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1623
1705
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1694,10 +1776,10 @@ function validate$h(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
1694
1776
|
})();
|
|
1695
1777
|
return v_error === undefined ? null : v_error;
|
|
1696
1778
|
}
|
|
1697
|
-
const select$
|
|
1779
|
+
const select$B = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
1698
1780
|
return {
|
|
1699
1781
|
kind: 'Fragment',
|
|
1700
|
-
version: VERSION$
|
|
1782
|
+
version: VERSION$i,
|
|
1701
1783
|
private: [],
|
|
1702
1784
|
selections: [
|
|
1703
1785
|
{
|
|
@@ -1720,7 +1802,7 @@ const select$z = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
1720
1802
|
]
|
|
1721
1803
|
};
|
|
1722
1804
|
};
|
|
1723
|
-
function equals$
|
|
1805
|
+
function equals$i(existing, incoming) {
|
|
1724
1806
|
const existing_name = existing.name;
|
|
1725
1807
|
const incoming_name = incoming.name;
|
|
1726
1808
|
if (!(existing_name === incoming_name)) {
|
|
@@ -1749,8 +1831,8 @@ function equals$h(existing, incoming) {
|
|
|
1749
1831
|
return true;
|
|
1750
1832
|
}
|
|
1751
1833
|
|
|
1752
|
-
const VERSION$
|
|
1753
|
-
function validate$
|
|
1834
|
+
const VERSION$h = "4634cd404d8392ac4ca9f0e1be03bfbd";
|
|
1835
|
+
function validate$h(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
1754
1836
|
const v_error = (() => {
|
|
1755
1837
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1756
1838
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1768,10 +1850,10 @@ function validate$g(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1768
1850
|
})();
|
|
1769
1851
|
return v_error === undefined ? null : v_error;
|
|
1770
1852
|
}
|
|
1771
|
-
const select$
|
|
1853
|
+
const select$A = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1772
1854
|
return {
|
|
1773
1855
|
kind: 'Fragment',
|
|
1774
|
-
version: VERSION$
|
|
1856
|
+
version: VERSION$h,
|
|
1775
1857
|
private: [],
|
|
1776
1858
|
selections: [
|
|
1777
1859
|
{
|
|
@@ -1785,7 +1867,7 @@ const select$y = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
|
1785
1867
|
]
|
|
1786
1868
|
};
|
|
1787
1869
|
};
|
|
1788
|
-
function equals$
|
|
1870
|
+
function equals$h(existing, incoming) {
|
|
1789
1871
|
const existing_extension = existing.extension;
|
|
1790
1872
|
const incoming_extension = incoming.extension;
|
|
1791
1873
|
if (!(existing_extension === incoming_extension)) {
|
|
@@ -1799,8 +1881,8 @@ function equals$g(existing, incoming) {
|
|
|
1799
1881
|
return true;
|
|
1800
1882
|
}
|
|
1801
1883
|
|
|
1802
|
-
const VERSION$
|
|
1803
|
-
function validate$
|
|
1884
|
+
const VERSION$g = "3ef7c0314c9cc37a0b6c3b0dbd6a76a5";
|
|
1885
|
+
function validate$g(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
|
|
1804
1886
|
const v_error = (() => {
|
|
1805
1887
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1806
1888
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1814,7 +1896,7 @@ function validate$f(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1814
1896
|
const path_filetype = path + '.filetype';
|
|
1815
1897
|
let obj_filetype_union0 = null;
|
|
1816
1898
|
const obj_filetype_union0_error = (() => {
|
|
1817
|
-
const referencepath_filetypeValidationError = validate$
|
|
1899
|
+
const referencepath_filetypeValidationError = validate$h(obj_filetype, path_filetype);
|
|
1818
1900
|
if (referencepath_filetypeValidationError !== null) {
|
|
1819
1901
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1820
1902
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1883,11 +1965,11 @@ function validate$f(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1883
1965
|
})();
|
|
1884
1966
|
return v_error === undefined ? null : v_error;
|
|
1885
1967
|
}
|
|
1886
|
-
const select$
|
|
1887
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1968
|
+
const select$z = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1969
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$A();
|
|
1888
1970
|
return {
|
|
1889
1971
|
kind: 'Fragment',
|
|
1890
|
-
version: VERSION$
|
|
1972
|
+
version: VERSION$g,
|
|
1891
1973
|
private: [],
|
|
1892
1974
|
selections: [
|
|
1893
1975
|
{
|
|
@@ -1919,7 +2001,7 @@ const select$x = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1919
2001
|
]
|
|
1920
2002
|
};
|
|
1921
2003
|
};
|
|
1922
|
-
function equals$
|
|
2004
|
+
function equals$g(existing, incoming) {
|
|
1923
2005
|
const existing_size = existing.size;
|
|
1924
2006
|
const incoming_size = incoming.size;
|
|
1925
2007
|
if (!(existing_size === incoming_size)) {
|
|
@@ -1945,7 +2027,7 @@ function equals$f(existing, incoming) {
|
|
|
1945
2027
|
if (!(existing_filetype === incoming_filetype
|
|
1946
2028
|
|| (existing_filetype != null &&
|
|
1947
2029
|
incoming_filetype != null &&
|
|
1948
|
-
equals$
|
|
2030
|
+
equals$h(existing_filetype, incoming_filetype)))) {
|
|
1949
2031
|
return false;
|
|
1950
2032
|
}
|
|
1951
2033
|
const existing_versionUrl = existing.versionUrl;
|
|
@@ -1956,15 +2038,15 @@ function equals$f(existing, incoming) {
|
|
|
1956
2038
|
return true;
|
|
1957
2039
|
}
|
|
1958
2040
|
|
|
1959
|
-
const VERSION$
|
|
1960
|
-
function validate$
|
|
2041
|
+
const VERSION$f = "effdd259bc622bee05493fc2a3ecd276";
|
|
2042
|
+
function validate$f(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
|
|
1961
2043
|
const v_error = (() => {
|
|
1962
2044
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1963
2045
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1964
2046
|
}
|
|
1965
2047
|
const obj_filetype = obj.filetype;
|
|
1966
2048
|
const path_filetype = path + '.filetype';
|
|
1967
|
-
const referencepath_filetypeValidationError = validate$
|
|
2049
|
+
const referencepath_filetypeValidationError = validate$h(obj_filetype, path_filetype);
|
|
1968
2050
|
if (referencepath_filetypeValidationError !== null) {
|
|
1969
2051
|
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1970
2052
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1977,7 +2059,7 @@ function validate$e(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1977
2059
|
}
|
|
1978
2060
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
1979
2061
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
1980
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
2062
|
+
const referencepath_latestPublishedVersionValidationError = validate$g(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
1981
2063
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
1982
2064
|
let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
1983
2065
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1996,12 +2078,12 @@ function validate$e(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1996
2078
|
})();
|
|
1997
2079
|
return v_error === undefined ? null : v_error;
|
|
1998
2080
|
}
|
|
1999
|
-
const select$
|
|
2000
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
2001
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
2081
|
+
const select$y = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
2082
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$A();
|
|
2083
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$z();
|
|
2002
2084
|
return {
|
|
2003
2085
|
kind: 'Fragment',
|
|
2004
|
-
version: VERSION$
|
|
2086
|
+
version: VERSION$f,
|
|
2005
2087
|
private: [],
|
|
2006
2088
|
selections: [
|
|
2007
2089
|
{
|
|
@@ -2029,7 +2111,7 @@ const select$w = function SlackBridgeContentDocumentOutputRepresentationSelect()
|
|
|
2029
2111
|
]
|
|
2030
2112
|
};
|
|
2031
2113
|
};
|
|
2032
|
-
function equals$
|
|
2114
|
+
function equals$f(existing, incoming) {
|
|
2033
2115
|
const existing_size = existing.size;
|
|
2034
2116
|
const incoming_size = incoming.size;
|
|
2035
2117
|
if (!(existing_size === incoming_size)) {
|
|
@@ -2047,19 +2129,19 @@ function equals$e(existing, incoming) {
|
|
|
2047
2129
|
}
|
|
2048
2130
|
const existing_filetype = existing.filetype;
|
|
2049
2131
|
const incoming_filetype = incoming.filetype;
|
|
2050
|
-
if (!(equals$
|
|
2132
|
+
if (!(equals$h(existing_filetype, incoming_filetype))) {
|
|
2051
2133
|
return false;
|
|
2052
2134
|
}
|
|
2053
2135
|
const existing_latestPublishedVersion = existing.latestPublishedVersion;
|
|
2054
2136
|
const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
|
|
2055
|
-
if (!(equals$
|
|
2137
|
+
if (!(equals$g(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
|
|
2056
2138
|
return false;
|
|
2057
2139
|
}
|
|
2058
2140
|
return true;
|
|
2059
2141
|
}
|
|
2060
2142
|
|
|
2061
|
-
const VERSION$
|
|
2062
|
-
function validate$
|
|
2143
|
+
const VERSION$e = "15fa7211c500ebba9537b3c9921b39cf";
|
|
2144
|
+
function validate$e(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
2063
2145
|
const v_error = (() => {
|
|
2064
2146
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2065
2147
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2068,7 +2150,7 @@ function validate$d(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2068
2150
|
const path_contentDocument = path + '.contentDocument';
|
|
2069
2151
|
let obj_contentDocument_union0 = null;
|
|
2070
2152
|
const obj_contentDocument_union0_error = (() => {
|
|
2071
|
-
const referencepath_contentDocumentValidationError = validate$
|
|
2153
|
+
const referencepath_contentDocumentValidationError = validate$f(obj_contentDocument, path_contentDocument);
|
|
2072
2154
|
if (referencepath_contentDocumentValidationError !== null) {
|
|
2073
2155
|
let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
2074
2156
|
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2230,24 +2312,24 @@ function validate$d(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
2230
2312
|
})();
|
|
2231
2313
|
return v_error === undefined ? null : v_error;
|
|
2232
2314
|
}
|
|
2233
|
-
const RepresentationType$
|
|
2234
|
-
function keyBuilder$
|
|
2235
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2315
|
+
const RepresentationType$e = 'SlackBridgeFileOutputRepresentation';
|
|
2316
|
+
function keyBuilder$y(luvio, config) {
|
|
2317
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
2236
2318
|
}
|
|
2237
2319
|
function keyBuilderFromType$7(luvio, object) {
|
|
2238
2320
|
const keyParams = {
|
|
2239
2321
|
uniqueKey: object.uniqueKey
|
|
2240
2322
|
};
|
|
2241
|
-
return keyBuilder$
|
|
2323
|
+
return keyBuilder$y(luvio, keyParams);
|
|
2242
2324
|
}
|
|
2243
|
-
function normalize$
|
|
2325
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
2244
2326
|
return input;
|
|
2245
2327
|
}
|
|
2246
|
-
const select$
|
|
2247
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2328
|
+
const select$x = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2329
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$y();
|
|
2248
2330
|
return {
|
|
2249
2331
|
kind: 'Fragment',
|
|
2250
|
-
version: VERSION$
|
|
2332
|
+
version: VERSION$e,
|
|
2251
2333
|
private: [],
|
|
2252
2334
|
selections: [
|
|
2253
2335
|
{
|
|
@@ -2299,7 +2381,7 @@ const select$v = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
2299
2381
|
]
|
|
2300
2382
|
};
|
|
2301
2383
|
};
|
|
2302
|
-
function equals$
|
|
2384
|
+
function equals$e(existing, incoming) {
|
|
2303
2385
|
const existing_filetype = existing.filetype;
|
|
2304
2386
|
const incoming_filetype = incoming.filetype;
|
|
2305
2387
|
if (!(existing_filetype === incoming_filetype)) {
|
|
@@ -2335,7 +2417,7 @@ function equals$d(existing, incoming) {
|
|
|
2335
2417
|
if (!(existing_contentDocument === incoming_contentDocument
|
|
2336
2418
|
|| (existing_contentDocument != null &&
|
|
2337
2419
|
incoming_contentDocument != null &&
|
|
2338
|
-
equals$
|
|
2420
|
+
equals$f(existing_contentDocument, incoming_contentDocument)))) {
|
|
2339
2421
|
return false;
|
|
2340
2422
|
}
|
|
2341
2423
|
const existing_size = existing.size;
|
|
@@ -2360,30 +2442,30 @@ function equals$d(existing, incoming) {
|
|
|
2360
2442
|
}
|
|
2361
2443
|
return true;
|
|
2362
2444
|
}
|
|
2363
|
-
const ingest$
|
|
2445
|
+
const ingest$e = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2364
2446
|
if (process.env.NODE_ENV !== 'production') {
|
|
2365
|
-
const validateError = validate$
|
|
2447
|
+
const validateError = validate$e(input);
|
|
2366
2448
|
if (validateError !== null) {
|
|
2367
2449
|
throw validateError;
|
|
2368
2450
|
}
|
|
2369
2451
|
}
|
|
2370
2452
|
const key = keyBuilderFromType$7(luvio, input);
|
|
2371
2453
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2372
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2454
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SlackBridge", VERSION$e, RepresentationType$e, equals$e);
|
|
2373
2455
|
return createLink(key);
|
|
2374
2456
|
};
|
|
2375
|
-
function getTypeCacheKeys$
|
|
2457
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
2376
2458
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2377
2459
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
2378
2460
|
rootKeySet.set(rootKey, {
|
|
2379
2461
|
namespace: keyPrefix,
|
|
2380
|
-
representationName: RepresentationType$
|
|
2462
|
+
representationName: RepresentationType$e,
|
|
2381
2463
|
mergeable: false
|
|
2382
2464
|
});
|
|
2383
2465
|
}
|
|
2384
2466
|
|
|
2385
|
-
const VERSION$
|
|
2386
|
-
function validate$
|
|
2467
|
+
const VERSION$d = "e44783fc9e817e6accf3f3d286c3f0fe";
|
|
2468
|
+
function validate$d(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
2387
2469
|
const v_error = (() => {
|
|
2388
2470
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2389
2471
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2430,6 +2512,32 @@ function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2430
2512
|
}
|
|
2431
2513
|
}
|
|
2432
2514
|
}
|
|
2515
|
+
const obj_channelId = obj.channelId;
|
|
2516
|
+
const path_channelId = path + '.channelId';
|
|
2517
|
+
let obj_channelId_union0 = null;
|
|
2518
|
+
const obj_channelId_union0_error = (() => {
|
|
2519
|
+
if (typeof obj_channelId !== 'string') {
|
|
2520
|
+
return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
|
|
2521
|
+
}
|
|
2522
|
+
})();
|
|
2523
|
+
if (obj_channelId_union0_error != null) {
|
|
2524
|
+
obj_channelId_union0 = obj_channelId_union0_error.message;
|
|
2525
|
+
}
|
|
2526
|
+
let obj_channelId_union1 = null;
|
|
2527
|
+
const obj_channelId_union1_error = (() => {
|
|
2528
|
+
if (obj_channelId !== null) {
|
|
2529
|
+
return new TypeError('Expected "null" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
|
|
2530
|
+
}
|
|
2531
|
+
})();
|
|
2532
|
+
if (obj_channelId_union1_error != null) {
|
|
2533
|
+
obj_channelId_union1 = obj_channelId_union1_error.message;
|
|
2534
|
+
}
|
|
2535
|
+
if (obj_channelId_union0 && obj_channelId_union1) {
|
|
2536
|
+
let message = 'Object doesn\'t match union (at "' + path_channelId + '")';
|
|
2537
|
+
message += '\n' + obj_channelId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2538
|
+
message += '\n' + obj_channelId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2539
|
+
return new TypeError(message);
|
|
2540
|
+
}
|
|
2433
2541
|
const obj_files = obj.files;
|
|
2434
2542
|
const path_files = path + '.files';
|
|
2435
2543
|
if (!ArrayIsArray(obj_files)) {
|
|
@@ -2569,7 +2677,7 @@ function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2569
2677
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
2570
2678
|
const obj_reactions_item = obj_reactions[i];
|
|
2571
2679
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
2572
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
2680
|
+
const referencepath_reactions_itemValidationError = validate$i(obj_reactions_item, path_reactions_item);
|
|
2573
2681
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
2574
2682
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
2575
2683
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2731,14 +2839,14 @@ function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
2731
2839
|
})();
|
|
2732
2840
|
return v_error === undefined ? null : v_error;
|
|
2733
2841
|
}
|
|
2734
|
-
const RepresentationType$
|
|
2735
|
-
function normalize$
|
|
2842
|
+
const RepresentationType$d = 'SlackBridgeMessageOutputRepresentation';
|
|
2843
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
2736
2844
|
const input_files = input.files;
|
|
2737
2845
|
const input_files_id = path.fullPath + '__files';
|
|
2738
2846
|
for (let i = 0; i < input_files.length; i++) {
|
|
2739
2847
|
const input_files_item = input_files[i];
|
|
2740
2848
|
let input_files_item_id = input_files_id + '__' + i;
|
|
2741
|
-
input_files[i] = ingest$
|
|
2849
|
+
input_files[i] = ingest$e(input_files_item, {
|
|
2742
2850
|
fullPath: input_files_item_id,
|
|
2743
2851
|
propertyName: i,
|
|
2744
2852
|
parent: {
|
|
@@ -2751,11 +2859,11 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
2751
2859
|
}
|
|
2752
2860
|
return input;
|
|
2753
2861
|
}
|
|
2754
|
-
const select$
|
|
2755
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2862
|
+
const select$w = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2863
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$B();
|
|
2756
2864
|
return {
|
|
2757
2865
|
kind: 'Fragment',
|
|
2758
|
-
version: VERSION$
|
|
2866
|
+
version: VERSION$d,
|
|
2759
2867
|
private: [],
|
|
2760
2868
|
selections: [
|
|
2761
2869
|
{
|
|
@@ -2768,11 +2876,15 @@ const select$u = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2768
2876
|
kind: 'Object',
|
|
2769
2877
|
// any
|
|
2770
2878
|
},
|
|
2879
|
+
{
|
|
2880
|
+
name: 'channelId',
|
|
2881
|
+
kind: 'Scalar'
|
|
2882
|
+
},
|
|
2771
2883
|
{
|
|
2772
2884
|
name: 'files',
|
|
2773
2885
|
kind: 'Link',
|
|
2774
2886
|
plural: true,
|
|
2775
|
-
fragment: select$
|
|
2887
|
+
fragment: select$x()
|
|
2776
2888
|
},
|
|
2777
2889
|
{
|
|
2778
2890
|
name: 'includesCustomEmoji',
|
|
@@ -2844,7 +2956,7 @@ const select$u = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
2844
2956
|
]
|
|
2845
2957
|
};
|
|
2846
2958
|
};
|
|
2847
|
-
function equals$
|
|
2959
|
+
function equals$d(existing, incoming) {
|
|
2848
2960
|
const existing_isEditable = existing.isEditable;
|
|
2849
2961
|
const incoming_isEditable = incoming.isEditable;
|
|
2850
2962
|
if (!(existing_isEditable === incoming_isEditable)) {
|
|
@@ -2900,6 +3012,11 @@ function equals$c(existing, incoming) {
|
|
|
2900
3012
|
if (equals_blocks_items === false) {
|
|
2901
3013
|
return false;
|
|
2902
3014
|
}
|
|
3015
|
+
const existing_channelId = existing.channelId;
|
|
3016
|
+
const incoming_channelId = incoming.channelId;
|
|
3017
|
+
if (!(existing_channelId === incoming_channelId)) {
|
|
3018
|
+
return false;
|
|
3019
|
+
}
|
|
2903
3020
|
const existing_files = existing.files;
|
|
2904
3021
|
const incoming_files = incoming.files;
|
|
2905
3022
|
const equals_files_items = equalsArray(existing_files, incoming_files, (existing_files_item, incoming_files_item) => {
|
|
@@ -2933,7 +3050,7 @@ function equals$c(existing, incoming) {
|
|
|
2933
3050
|
const existing_reactions = existing.reactions;
|
|
2934
3051
|
const incoming_reactions = incoming.reactions;
|
|
2935
3052
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
2936
|
-
if (!(equals$
|
|
3053
|
+
if (!(equals$i(existing_reactions_item, incoming_reactions_item))) {
|
|
2937
3054
|
return false;
|
|
2938
3055
|
}
|
|
2939
3056
|
});
|
|
@@ -2977,34 +3094,34 @@ function equals$c(existing, incoming) {
|
|
|
2977
3094
|
}
|
|
2978
3095
|
return true;
|
|
2979
3096
|
}
|
|
2980
|
-
const ingest$
|
|
3097
|
+
const ingest$d = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2981
3098
|
if (process.env.NODE_ENV !== 'production') {
|
|
2982
|
-
const validateError = validate$
|
|
3099
|
+
const validateError = validate$d(input);
|
|
2983
3100
|
if (validateError !== null) {
|
|
2984
3101
|
throw validateError;
|
|
2985
3102
|
}
|
|
2986
3103
|
}
|
|
2987
3104
|
const key = path.fullPath;
|
|
2988
3105
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2989
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3106
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SlackBridge", VERSION$d, RepresentationType$d, equals$d);
|
|
2990
3107
|
return createLink(key);
|
|
2991
3108
|
};
|
|
2992
|
-
function getTypeCacheKeys$
|
|
3109
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
2993
3110
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2994
3111
|
const rootKey = fullPathFactory();
|
|
2995
3112
|
rootKeySet.set(rootKey, {
|
|
2996
3113
|
namespace: keyPrefix,
|
|
2997
|
-
representationName: RepresentationType$
|
|
3114
|
+
representationName: RepresentationType$d,
|
|
2998
3115
|
mergeable: false
|
|
2999
3116
|
});
|
|
3000
3117
|
const input_files_length = input.files.length;
|
|
3001
3118
|
for (let i = 0; i < input_files_length; i++) {
|
|
3002
|
-
getTypeCacheKeys$
|
|
3119
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.files[i]);
|
|
3003
3120
|
}
|
|
3004
3121
|
}
|
|
3005
3122
|
|
|
3006
|
-
const VERSION$
|
|
3007
|
-
function validate$
|
|
3123
|
+
const VERSION$c = "5145ac2c241c561e4baa29b3884748dc";
|
|
3124
|
+
function validate$c(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
|
|
3008
3125
|
const v_error = (() => {
|
|
3009
3126
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3010
3127
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3055,14 +3172,14 @@ function validate$b(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
|
|
|
3055
3172
|
})();
|
|
3056
3173
|
return v_error === undefined ? null : v_error;
|
|
3057
3174
|
}
|
|
3058
|
-
const RepresentationType$
|
|
3059
|
-
function normalize$
|
|
3175
|
+
const RepresentationType$c = 'SlackBridgeConversationHistoryOutputRepresentation';
|
|
3176
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
3060
3177
|
const input_messages = input.messages;
|
|
3061
3178
|
const input_messages_id = path.fullPath + '__messages';
|
|
3062
3179
|
for (let i = 0; i < input_messages.length; i++) {
|
|
3063
3180
|
const input_messages_item = input_messages[i];
|
|
3064
3181
|
let input_messages_item_id = input_messages_id + '__' + i;
|
|
3065
|
-
input_messages[i] = ingest$
|
|
3182
|
+
input_messages[i] = ingest$d(input_messages_item, {
|
|
3066
3183
|
fullPath: input_messages_item_id,
|
|
3067
3184
|
propertyName: i,
|
|
3068
3185
|
parent: {
|
|
@@ -3075,10 +3192,10 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
3075
3192
|
}
|
|
3076
3193
|
return input;
|
|
3077
3194
|
}
|
|
3078
|
-
const select$
|
|
3195
|
+
const select$v = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
3079
3196
|
return {
|
|
3080
3197
|
kind: 'Fragment',
|
|
3081
|
-
version: VERSION$
|
|
3198
|
+
version: VERSION$c,
|
|
3082
3199
|
private: [],
|
|
3083
3200
|
selections: [
|
|
3084
3201
|
{
|
|
@@ -3089,7 +3206,7 @@ const select$t = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
3089
3206
|
name: 'messages',
|
|
3090
3207
|
kind: 'Link',
|
|
3091
3208
|
plural: true,
|
|
3092
|
-
fragment: select$
|
|
3209
|
+
fragment: select$w()
|
|
3093
3210
|
},
|
|
3094
3211
|
{
|
|
3095
3212
|
name: 'nextCursor',
|
|
@@ -3098,7 +3215,7 @@ const select$t = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
3098
3215
|
]
|
|
3099
3216
|
};
|
|
3100
3217
|
};
|
|
3101
|
-
function equals$
|
|
3218
|
+
function equals$c(existing, incoming) {
|
|
3102
3219
|
const existing_hasMore = existing.hasMore;
|
|
3103
3220
|
const incoming_hasMore = incoming.hasMore;
|
|
3104
3221
|
if (!(existing_hasMore === incoming_hasMore)) {
|
|
@@ -3121,34 +3238,34 @@ function equals$b(existing, incoming) {
|
|
|
3121
3238
|
}
|
|
3122
3239
|
return true;
|
|
3123
3240
|
}
|
|
3124
|
-
const ingest$
|
|
3241
|
+
const ingest$c = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3125
3242
|
if (process.env.NODE_ENV !== 'production') {
|
|
3126
|
-
const validateError = validate$
|
|
3243
|
+
const validateError = validate$c(input);
|
|
3127
3244
|
if (validateError !== null) {
|
|
3128
3245
|
throw validateError;
|
|
3129
3246
|
}
|
|
3130
3247
|
}
|
|
3131
3248
|
const key = path.fullPath;
|
|
3132
3249
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3133
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3250
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$c, RepresentationType$c, equals$c);
|
|
3134
3251
|
return createLink(key);
|
|
3135
3252
|
};
|
|
3136
|
-
function getTypeCacheKeys$
|
|
3253
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
3137
3254
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3138
3255
|
const rootKey = fullPathFactory();
|
|
3139
3256
|
rootKeySet.set(rootKey, {
|
|
3140
3257
|
namespace: keyPrefix,
|
|
3141
|
-
representationName: RepresentationType$
|
|
3258
|
+
representationName: RepresentationType$c,
|
|
3142
3259
|
mergeable: false
|
|
3143
3260
|
});
|
|
3144
3261
|
const input_messages_length = input.messages.length;
|
|
3145
3262
|
for (let i = 0; i < input_messages_length; i++) {
|
|
3146
|
-
getTypeCacheKeys$
|
|
3263
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.messages[i], () => '');
|
|
3147
3264
|
}
|
|
3148
3265
|
}
|
|
3149
3266
|
|
|
3150
|
-
const VERSION$
|
|
3151
|
-
function validate$
|
|
3267
|
+
const VERSION$b = "7ec6cbca3e2948ff5ef00e4034f365d5";
|
|
3268
|
+
function validate$b(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
3152
3269
|
const v_error = (() => {
|
|
3153
3270
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3154
3271
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3292,12 +3409,12 @@ function validate$a(obj, path = 'SlackBridgeConversationOutputRepresentation') {
|
|
|
3292
3409
|
})();
|
|
3293
3410
|
return v_error === undefined ? null : v_error;
|
|
3294
3411
|
}
|
|
3295
|
-
const RepresentationType$
|
|
3296
|
-
function normalize$
|
|
3412
|
+
const RepresentationType$b = 'SlackBridgeConversationOutputRepresentation';
|
|
3413
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
3297
3414
|
const input_contextUserInfo = input.contextUserInfo;
|
|
3298
3415
|
const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
|
|
3299
3416
|
if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
|
|
3300
|
-
input.contextUserInfo = ingest$
|
|
3417
|
+
input.contextUserInfo = ingest$g(input_contextUserInfo, {
|
|
3301
3418
|
fullPath: input_contextUserInfo_id,
|
|
3302
3419
|
propertyName: 'contextUserInfo',
|
|
3303
3420
|
parent: {
|
|
@@ -3311,7 +3428,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3311
3428
|
const input_conversationInfo = input.conversationInfo;
|
|
3312
3429
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
3313
3430
|
if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
|
|
3314
|
-
input.conversationInfo = ingest$
|
|
3431
|
+
input.conversationInfo = ingest$f(input_conversationInfo, {
|
|
3315
3432
|
fullPath: input_conversationInfo_id,
|
|
3316
3433
|
propertyName: 'conversationInfo',
|
|
3317
3434
|
parent: {
|
|
@@ -3324,7 +3441,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3324
3441
|
}
|
|
3325
3442
|
const input_history = input.history;
|
|
3326
3443
|
const input_history_id = path.fullPath + '__history';
|
|
3327
|
-
input.history = ingest$
|
|
3444
|
+
input.history = ingest$c(input_history, {
|
|
3328
3445
|
fullPath: input_history_id,
|
|
3329
3446
|
propertyName: 'history',
|
|
3330
3447
|
parent: {
|
|
@@ -3339,7 +3456,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3339
3456
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
3340
3457
|
const input_userInfos_item = input_userInfos[i];
|
|
3341
3458
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
3342
|
-
input_userInfos[i] = ingest$
|
|
3459
|
+
input_userInfos[i] = ingest$g(input_userInfos_item, {
|
|
3343
3460
|
fullPath: input_userInfos_item_id,
|
|
3344
3461
|
propertyName: i,
|
|
3345
3462
|
parent: {
|
|
@@ -3352,10 +3469,10 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
3352
3469
|
}
|
|
3353
3470
|
return input;
|
|
3354
3471
|
}
|
|
3355
|
-
const select$
|
|
3472
|
+
const select$u = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
3356
3473
|
return {
|
|
3357
3474
|
kind: 'Fragment',
|
|
3358
|
-
version: VERSION$
|
|
3475
|
+
version: VERSION$b,
|
|
3359
3476
|
private: [],
|
|
3360
3477
|
selections: [
|
|
3361
3478
|
{
|
|
@@ -3370,18 +3487,18 @@ const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3370
3487
|
name: 'contextUserInfo',
|
|
3371
3488
|
kind: 'Link',
|
|
3372
3489
|
nullable: true,
|
|
3373
|
-
fragment: select$
|
|
3490
|
+
fragment: select$D()
|
|
3374
3491
|
},
|
|
3375
3492
|
{
|
|
3376
3493
|
name: 'conversationInfo',
|
|
3377
3494
|
kind: 'Link',
|
|
3378
3495
|
nullable: true,
|
|
3379
|
-
fragment: select$
|
|
3496
|
+
fragment: select$C()
|
|
3380
3497
|
},
|
|
3381
3498
|
{
|
|
3382
3499
|
name: 'history',
|
|
3383
3500
|
kind: 'Link',
|
|
3384
|
-
fragment: select$
|
|
3501
|
+
fragment: select$v()
|
|
3385
3502
|
},
|
|
3386
3503
|
{
|
|
3387
3504
|
name: 'teamId',
|
|
@@ -3395,7 +3512,7 @@ const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3395
3512
|
name: 'userInfos',
|
|
3396
3513
|
kind: 'Link',
|
|
3397
3514
|
plural: true,
|
|
3398
|
-
fragment: select$
|
|
3515
|
+
fragment: select$D()
|
|
3399
3516
|
},
|
|
3400
3517
|
{
|
|
3401
3518
|
name: 'websocketUrl',
|
|
@@ -3404,7 +3521,7 @@ const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
3404
3521
|
]
|
|
3405
3522
|
};
|
|
3406
3523
|
};
|
|
3407
|
-
function equals$
|
|
3524
|
+
function equals$b(existing, incoming) {
|
|
3408
3525
|
const existing_channelId = existing.channelId;
|
|
3409
3526
|
const incoming_channelId = incoming.channelId;
|
|
3410
3527
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3467,55 +3584,55 @@ function equals$a(existing, incoming) {
|
|
|
3467
3584
|
}
|
|
3468
3585
|
return true;
|
|
3469
3586
|
}
|
|
3470
|
-
const ingest$
|
|
3587
|
+
const ingest$b = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3471
3588
|
if (process.env.NODE_ENV !== 'production') {
|
|
3472
|
-
const validateError = validate$
|
|
3589
|
+
const validateError = validate$b(input);
|
|
3473
3590
|
if (validateError !== null) {
|
|
3474
3591
|
throw validateError;
|
|
3475
3592
|
}
|
|
3476
3593
|
}
|
|
3477
3594
|
const key = path.fullPath;
|
|
3478
3595
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3479
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3596
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$b, RepresentationType$b, equals$b);
|
|
3480
3597
|
return createLink(key);
|
|
3481
3598
|
};
|
|
3482
|
-
function getTypeCacheKeys$
|
|
3599
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
3483
3600
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3484
3601
|
const rootKey = fullPathFactory();
|
|
3485
3602
|
rootKeySet.set(rootKey, {
|
|
3486
3603
|
namespace: keyPrefix,
|
|
3487
|
-
representationName: RepresentationType$
|
|
3604
|
+
representationName: RepresentationType$b,
|
|
3488
3605
|
mergeable: false
|
|
3489
3606
|
});
|
|
3490
3607
|
if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
|
|
3491
|
-
getTypeCacheKeys$
|
|
3608
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.contextUserInfo);
|
|
3492
3609
|
}
|
|
3493
3610
|
if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
|
|
3494
|
-
getTypeCacheKeys$
|
|
3611
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
3495
3612
|
}
|
|
3496
|
-
getTypeCacheKeys$
|
|
3613
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
|
|
3497
3614
|
const input_userInfos_length = input.userInfos.length;
|
|
3498
3615
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
3499
|
-
getTypeCacheKeys$
|
|
3616
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.userInfos[i]);
|
|
3500
3617
|
}
|
|
3501
3618
|
}
|
|
3502
3619
|
|
|
3503
|
-
function select$
|
|
3504
|
-
return select$
|
|
3620
|
+
function select$t(luvio, params) {
|
|
3621
|
+
return select$u();
|
|
3505
3622
|
}
|
|
3506
|
-
function keyBuilder$
|
|
3623
|
+
function keyBuilder$x(luvio, params) {
|
|
3507
3624
|
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
3508
3625
|
}
|
|
3509
|
-
function getResponseCacheKeys$
|
|
3510
|
-
getTypeCacheKeys$
|
|
3626
|
+
function getResponseCacheKeys$l(storeKeyMap, luvio, resourceParams, response) {
|
|
3627
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response, () => keyBuilder$x(luvio, resourceParams));
|
|
3511
3628
|
}
|
|
3512
|
-
function ingestSuccess$
|
|
3629
|
+
function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
|
|
3513
3630
|
const { body } = response;
|
|
3514
|
-
const key = keyBuilder$
|
|
3515
|
-
luvio.storeIngest(key, ingest$
|
|
3631
|
+
const key = keyBuilder$x(luvio, resourceParams);
|
|
3632
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
3516
3633
|
const snapshot = luvio.storeLookup({
|
|
3517
3634
|
recordId: key,
|
|
3518
|
-
node: select$
|
|
3635
|
+
node: select$t(),
|
|
3519
3636
|
variables: {},
|
|
3520
3637
|
}, snapshotRefresh);
|
|
3521
3638
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3526,13 +3643,13 @@ function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3526
3643
|
deepFreeze(snapshot.data);
|
|
3527
3644
|
return snapshot;
|
|
3528
3645
|
}
|
|
3529
|
-
function ingestError$
|
|
3530
|
-
const key = keyBuilder$
|
|
3646
|
+
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
3647
|
+
const key = keyBuilder$x(luvio, params);
|
|
3531
3648
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3532
3649
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3533
3650
|
return errorSnapshot;
|
|
3534
3651
|
}
|
|
3535
|
-
function createResourceRequest$
|
|
3652
|
+
function createResourceRequest$l(config) {
|
|
3536
3653
|
const headers = {};
|
|
3537
3654
|
return {
|
|
3538
3655
|
baseUri: '/services/data/v64.0',
|
|
@@ -3546,7 +3663,7 @@ function createResourceRequest$k(config) {
|
|
|
3546
3663
|
};
|
|
3547
3664
|
}
|
|
3548
3665
|
|
|
3549
|
-
const adapterName$
|
|
3666
|
+
const adapterName$l = 'getSlackConversation';
|
|
3550
3667
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
3551
3668
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3552
3669
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -3558,90 +3675,90 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
3558
3675
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3559
3676
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3560
3677
|
];
|
|
3561
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3562
|
-
const createResourceParams$
|
|
3563
|
-
function keyBuilder$
|
|
3564
|
-
const resourceParams = createResourceParams$
|
|
3565
|
-
return keyBuilder$
|
|
3678
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, getSlackConversation_ConfigPropertyMetadata);
|
|
3679
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$m(getSlackConversation_ConfigPropertyMetadata);
|
|
3680
|
+
function keyBuilder$w(luvio, config) {
|
|
3681
|
+
const resourceParams = createResourceParams$l(config);
|
|
3682
|
+
return keyBuilder$x(luvio, resourceParams);
|
|
3566
3683
|
}
|
|
3567
|
-
function typeCheckConfig$
|
|
3684
|
+
function typeCheckConfig$l(untrustedConfig) {
|
|
3568
3685
|
const config = {};
|
|
3569
|
-
typeCheckConfig$
|
|
3686
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
3570
3687
|
return config;
|
|
3571
3688
|
}
|
|
3572
|
-
function validateAdapterConfig$
|
|
3689
|
+
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
3573
3690
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3574
3691
|
return null;
|
|
3575
3692
|
}
|
|
3576
3693
|
if (process.env.NODE_ENV !== 'production') {
|
|
3577
3694
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3578
3695
|
}
|
|
3579
|
-
const config = typeCheckConfig$
|
|
3696
|
+
const config = typeCheckConfig$l(untrustedConfig);
|
|
3580
3697
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3581
3698
|
return null;
|
|
3582
3699
|
}
|
|
3583
3700
|
return config;
|
|
3584
3701
|
}
|
|
3585
|
-
function adapterFragment$
|
|
3586
|
-
createResourceParams$
|
|
3587
|
-
return select$
|
|
3702
|
+
function adapterFragment$b(luvio, config) {
|
|
3703
|
+
createResourceParams$l(config);
|
|
3704
|
+
return select$t();
|
|
3588
3705
|
}
|
|
3589
|
-
function onFetchResponseSuccess$
|
|
3590
|
-
const snapshot = ingestSuccess$
|
|
3706
|
+
function onFetchResponseSuccess$b(luvio, config, resourceParams, response) {
|
|
3707
|
+
const snapshot = ingestSuccess$i(luvio, resourceParams, response, {
|
|
3591
3708
|
config,
|
|
3592
|
-
resolve: () => buildNetworkSnapshot$
|
|
3709
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
3593
3710
|
});
|
|
3594
3711
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3595
3712
|
}
|
|
3596
|
-
function onFetchResponseError$
|
|
3597
|
-
const snapshot = ingestError$
|
|
3713
|
+
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
3714
|
+
const snapshot = ingestError$b(luvio, resourceParams, response, {
|
|
3598
3715
|
config,
|
|
3599
|
-
resolve: () => buildNetworkSnapshot$
|
|
3716
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
3600
3717
|
});
|
|
3601
3718
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3602
3719
|
}
|
|
3603
|
-
function buildNetworkSnapshot$
|
|
3604
|
-
const resourceParams = createResourceParams$
|
|
3605
|
-
const request = createResourceRequest$
|
|
3720
|
+
function buildNetworkSnapshot$l(luvio, config, options) {
|
|
3721
|
+
const resourceParams = createResourceParams$l(config);
|
|
3722
|
+
const request = createResourceRequest$l(resourceParams);
|
|
3606
3723
|
return luvio.dispatchResourceRequest(request, options)
|
|
3607
3724
|
.then((response) => {
|
|
3608
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3725
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$b(luvio, config, resourceParams, response), () => {
|
|
3609
3726
|
const cache = new StoreKeyMap();
|
|
3610
|
-
getResponseCacheKeys$
|
|
3727
|
+
getResponseCacheKeys$l(cache, luvio, resourceParams, response.body);
|
|
3611
3728
|
return cache;
|
|
3612
3729
|
});
|
|
3613
3730
|
}, (response) => {
|
|
3614
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3731
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$b(luvio, config, resourceParams, response));
|
|
3615
3732
|
});
|
|
3616
3733
|
}
|
|
3617
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3618
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3734
|
+
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
3735
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$l, undefined, false);
|
|
3619
3736
|
}
|
|
3620
|
-
function buildCachedSnapshotCachePolicy$
|
|
3737
|
+
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
3621
3738
|
const { luvio, config } = context;
|
|
3622
3739
|
const selector = {
|
|
3623
|
-
recordId: keyBuilder$
|
|
3624
|
-
node: adapterFragment$
|
|
3740
|
+
recordId: keyBuilder$w(luvio, config),
|
|
3741
|
+
node: adapterFragment$b(luvio, config),
|
|
3625
3742
|
variables: {},
|
|
3626
3743
|
};
|
|
3627
3744
|
const cacheSnapshot = storeLookup(selector, {
|
|
3628
3745
|
config,
|
|
3629
|
-
resolve: () => buildNetworkSnapshot$
|
|
3746
|
+
resolve: () => buildNetworkSnapshot$l(luvio, config, snapshotRefreshOptions)
|
|
3630
3747
|
});
|
|
3631
3748
|
return cacheSnapshot;
|
|
3632
3749
|
}
|
|
3633
3750
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
3634
|
-
const config = validateAdapterConfig$
|
|
3751
|
+
const config = validateAdapterConfig$l(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
3635
3752
|
// Invalid or incomplete config
|
|
3636
3753
|
if (config === null) {
|
|
3637
3754
|
return null;
|
|
3638
3755
|
}
|
|
3639
3756
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3640
|
-
buildCachedSnapshotCachePolicy$
|
|
3757
|
+
buildCachedSnapshotCachePolicy$b, buildNetworkSnapshotCachePolicy$b);
|
|
3641
3758
|
};
|
|
3642
3759
|
|
|
3643
|
-
const VERSION$
|
|
3644
|
-
function validate$
|
|
3760
|
+
const VERSION$a = "769b5b0ed94219341e9be74c08e63aed";
|
|
3761
|
+
function validate$a(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
3645
3762
|
const v_error = (() => {
|
|
3646
3763
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3647
3764
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3664,20 +3781,20 @@ function validate$9(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
|
3664
3781
|
})();
|
|
3665
3782
|
return v_error === undefined ? null : v_error;
|
|
3666
3783
|
}
|
|
3667
|
-
const RepresentationType$
|
|
3668
|
-
function keyBuilder$
|
|
3669
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3784
|
+
const RepresentationType$a = 'SlackBridgePostMessageOutputRepresentation';
|
|
3785
|
+
function keyBuilder$v(luvio, config) {
|
|
3786
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.channelId;
|
|
3670
3787
|
}
|
|
3671
3788
|
function keyBuilderFromType$6(luvio, object) {
|
|
3672
3789
|
const keyParams = {
|
|
3673
3790
|
channelId: object.channelId
|
|
3674
3791
|
};
|
|
3675
|
-
return keyBuilder$
|
|
3792
|
+
return keyBuilder$v(luvio, keyParams);
|
|
3676
3793
|
}
|
|
3677
|
-
function normalize$
|
|
3794
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
3678
3795
|
const input_postedMessage = input.postedMessage;
|
|
3679
3796
|
const input_postedMessage_id = path.fullPath + '__postedMessage';
|
|
3680
|
-
input.postedMessage = ingest$
|
|
3797
|
+
input.postedMessage = ingest$d(input_postedMessage, {
|
|
3681
3798
|
fullPath: input_postedMessage_id,
|
|
3682
3799
|
propertyName: 'postedMessage',
|
|
3683
3800
|
parent: {
|
|
@@ -3689,10 +3806,10 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
3689
3806
|
}, luvio, store, timestamp);
|
|
3690
3807
|
return input;
|
|
3691
3808
|
}
|
|
3692
|
-
const select$
|
|
3809
|
+
const select$s = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
3693
3810
|
return {
|
|
3694
3811
|
kind: 'Fragment',
|
|
3695
|
-
version: VERSION$
|
|
3812
|
+
version: VERSION$a,
|
|
3696
3813
|
private: [],
|
|
3697
3814
|
selections: [
|
|
3698
3815
|
{
|
|
@@ -3702,7 +3819,7 @@ const select$q = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3702
3819
|
{
|
|
3703
3820
|
name: 'postedMessage',
|
|
3704
3821
|
kind: 'Link',
|
|
3705
|
-
fragment: select$
|
|
3822
|
+
fragment: select$w()
|
|
3706
3823
|
},
|
|
3707
3824
|
{
|
|
3708
3825
|
name: 'timestamp',
|
|
@@ -3711,7 +3828,7 @@ const select$q = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
3711
3828
|
]
|
|
3712
3829
|
};
|
|
3713
3830
|
};
|
|
3714
|
-
function equals$
|
|
3831
|
+
function equals$a(existing, incoming) {
|
|
3715
3832
|
const existing_channelId = existing.channelId;
|
|
3716
3833
|
const incoming_channelId = incoming.channelId;
|
|
3717
3834
|
if (!(existing_channelId === incoming_channelId)) {
|
|
@@ -3729,42 +3846,42 @@ function equals$9(existing, incoming) {
|
|
|
3729
3846
|
}
|
|
3730
3847
|
return true;
|
|
3731
3848
|
}
|
|
3732
|
-
const ingest$
|
|
3849
|
+
const ingest$a = function SlackBridgePostMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3733
3850
|
if (process.env.NODE_ENV !== 'production') {
|
|
3734
|
-
const validateError = validate$
|
|
3851
|
+
const validateError = validate$a(input);
|
|
3735
3852
|
if (validateError !== null) {
|
|
3736
3853
|
throw validateError;
|
|
3737
3854
|
}
|
|
3738
3855
|
}
|
|
3739
3856
|
const key = keyBuilderFromType$6(luvio, input);
|
|
3740
3857
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3741
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3858
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
|
|
3742
3859
|
return createLink(key);
|
|
3743
3860
|
};
|
|
3744
|
-
function getTypeCacheKeys$
|
|
3861
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
3745
3862
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3746
3863
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
3747
3864
|
rootKeySet.set(rootKey, {
|
|
3748
3865
|
namespace: keyPrefix,
|
|
3749
|
-
representationName: RepresentationType$
|
|
3866
|
+
representationName: RepresentationType$a,
|
|
3750
3867
|
mergeable: false
|
|
3751
3868
|
});
|
|
3752
|
-
getTypeCacheKeys$
|
|
3869
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
3753
3870
|
}
|
|
3754
3871
|
|
|
3755
|
-
function select$
|
|
3756
|
-
return select$
|
|
3872
|
+
function select$r(luvio, params) {
|
|
3873
|
+
return select$s();
|
|
3757
3874
|
}
|
|
3758
|
-
function getResponseCacheKeys$
|
|
3759
|
-
getTypeCacheKeys$
|
|
3875
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
3876
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
3760
3877
|
}
|
|
3761
|
-
function ingestSuccess$
|
|
3878
|
+
function ingestSuccess$h(luvio, resourceParams, response) {
|
|
3762
3879
|
const { body } = response;
|
|
3763
3880
|
const key = keyBuilderFromType$6(luvio, body);
|
|
3764
|
-
luvio.storeIngest(key, ingest$
|
|
3881
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
3765
3882
|
const snapshot = luvio.storeLookup({
|
|
3766
3883
|
recordId: key,
|
|
3767
|
-
node: select$
|
|
3884
|
+
node: select$r(),
|
|
3768
3885
|
variables: {},
|
|
3769
3886
|
});
|
|
3770
3887
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3775,7 +3892,7 @@ function ingestSuccess$g(luvio, resourceParams, response) {
|
|
|
3775
3892
|
deepFreeze(snapshot.data);
|
|
3776
3893
|
return snapshot;
|
|
3777
3894
|
}
|
|
3778
|
-
function createResourceRequest$
|
|
3895
|
+
function createResourceRequest$k(config) {
|
|
3779
3896
|
const headers = {};
|
|
3780
3897
|
return {
|
|
3781
3898
|
baseUri: '/services/data/v64.0',
|
|
@@ -3789,7 +3906,7 @@ function createResourceRequest$j(config) {
|
|
|
3789
3906
|
};
|
|
3790
3907
|
}
|
|
3791
3908
|
|
|
3792
|
-
const adapterName$
|
|
3909
|
+
const adapterName$k = 'postSlackConversation';
|
|
3793
3910
|
const postSlackConversation_ConfigPropertyMetadata = [
|
|
3794
3911
|
generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
|
|
3795
3912
|
generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -3798,37 +3915,37 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
3798
3915
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
3799
3916
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
3800
3917
|
];
|
|
3801
|
-
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3802
|
-
const createResourceParams$
|
|
3803
|
-
function typeCheckConfig$
|
|
3918
|
+
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, postSlackConversation_ConfigPropertyMetadata);
|
|
3919
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$m(postSlackConversation_ConfigPropertyMetadata);
|
|
3920
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
3804
3921
|
const config = {};
|
|
3805
|
-
typeCheckConfig$
|
|
3922
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
3806
3923
|
return config;
|
|
3807
3924
|
}
|
|
3808
|
-
function validateAdapterConfig$
|
|
3925
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
3809
3926
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3810
3927
|
return null;
|
|
3811
3928
|
}
|
|
3812
3929
|
if (process.env.NODE_ENV !== 'production') {
|
|
3813
3930
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3814
3931
|
}
|
|
3815
|
-
const config = typeCheckConfig$
|
|
3932
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
3816
3933
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3817
3934
|
return null;
|
|
3818
3935
|
}
|
|
3819
3936
|
return config;
|
|
3820
3937
|
}
|
|
3821
|
-
function buildNetworkSnapshot$
|
|
3822
|
-
const resourceParams = createResourceParams$
|
|
3823
|
-
const request = createResourceRequest$
|
|
3824
|
-
return luvio.dispatchResourceRequest(request, options)
|
|
3825
|
-
.then((response) => {
|
|
3938
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
3939
|
+
const resourceParams = createResourceParams$k(config);
|
|
3940
|
+
const request = createResourceRequest$k(resourceParams);
|
|
3941
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
3942
|
+
.then((response) => {
|
|
3826
3943
|
return luvio.handleSuccessResponse(() => {
|
|
3827
|
-
const snapshot = ingestSuccess$
|
|
3944
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response);
|
|
3828
3945
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3829
3946
|
}, () => {
|
|
3830
3947
|
const cache = new StoreKeyMap();
|
|
3831
|
-
getResponseCacheKeys$
|
|
3948
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
3832
3949
|
return cache;
|
|
3833
3950
|
});
|
|
3834
3951
|
}, (response) => {
|
|
@@ -3838,28 +3955,28 @@ function buildNetworkSnapshot$j(luvio, config, options) {
|
|
|
3838
3955
|
}
|
|
3839
3956
|
const postSlackConversationAdapterFactory = (luvio) => {
|
|
3840
3957
|
return function postSlackConversation(untrustedConfig) {
|
|
3841
|
-
const config = validateAdapterConfig$
|
|
3958
|
+
const config = validateAdapterConfig$k(untrustedConfig, postSlackConversation_ConfigPropertyNames);
|
|
3842
3959
|
// Invalid or incomplete config
|
|
3843
3960
|
if (config === null) {
|
|
3844
3961
|
throw new Error('Invalid config for "postSlackConversation"');
|
|
3845
3962
|
}
|
|
3846
|
-
return buildNetworkSnapshot$
|
|
3963
|
+
return buildNetworkSnapshot$k(luvio, config);
|
|
3847
3964
|
};
|
|
3848
3965
|
};
|
|
3849
3966
|
|
|
3850
|
-
function select$
|
|
3851
|
-
return select$
|
|
3967
|
+
function select$q(luvio, params) {
|
|
3968
|
+
return select$x();
|
|
3852
3969
|
}
|
|
3853
|
-
function getResponseCacheKeys$
|
|
3854
|
-
getTypeCacheKeys$
|
|
3970
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
3971
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
3855
3972
|
}
|
|
3856
|
-
function ingestSuccess$
|
|
3973
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
3857
3974
|
const { body } = response;
|
|
3858
3975
|
const key = keyBuilderFromType$7(luvio, body);
|
|
3859
|
-
luvio.storeIngest(key, ingest$
|
|
3976
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
3860
3977
|
const snapshot = luvio.storeLookup({
|
|
3861
3978
|
recordId: key,
|
|
3862
|
-
node: select$
|
|
3979
|
+
node: select$q(),
|
|
3863
3980
|
variables: {},
|
|
3864
3981
|
});
|
|
3865
3982
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3870,7 +3987,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
3870
3987
|
deepFreeze(snapshot.data);
|
|
3871
3988
|
return snapshot;
|
|
3872
3989
|
}
|
|
3873
|
-
function createResourceRequest$
|
|
3990
|
+
function createResourceRequest$j(config) {
|
|
3874
3991
|
const headers = {};
|
|
3875
3992
|
return {
|
|
3876
3993
|
baseUri: '/services/data/v64.0',
|
|
@@ -3884,7 +4001,7 @@ function createResourceRequest$i(config) {
|
|
|
3884
4001
|
};
|
|
3885
4002
|
}
|
|
3886
4003
|
|
|
3887
|
-
const adapterName$
|
|
4004
|
+
const adapterName$j = 'postSlackFile';
|
|
3888
4005
|
const postSlackFile_ConfigPropertyMetadata = [
|
|
3889
4006
|
generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
|
|
3890
4007
|
generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
|
|
@@ -3895,37 +4012,37 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
3895
4012
|
generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
|
|
3896
4013
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
3897
4014
|
];
|
|
3898
|
-
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3899
|
-
const createResourceParams$
|
|
3900
|
-
function typeCheckConfig$
|
|
4015
|
+
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, postSlackFile_ConfigPropertyMetadata);
|
|
4016
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$m(postSlackFile_ConfigPropertyMetadata);
|
|
4017
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
3901
4018
|
const config = {};
|
|
3902
|
-
typeCheckConfig$
|
|
4019
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
3903
4020
|
return config;
|
|
3904
4021
|
}
|
|
3905
|
-
function validateAdapterConfig$
|
|
4022
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
3906
4023
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3907
4024
|
return null;
|
|
3908
4025
|
}
|
|
3909
4026
|
if (process.env.NODE_ENV !== 'production') {
|
|
3910
4027
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3911
4028
|
}
|
|
3912
|
-
const config = typeCheckConfig$
|
|
4029
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
3913
4030
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3914
4031
|
return null;
|
|
3915
4032
|
}
|
|
3916
4033
|
return config;
|
|
3917
4034
|
}
|
|
3918
|
-
function buildNetworkSnapshot$
|
|
3919
|
-
const resourceParams = createResourceParams$
|
|
3920
|
-
const request = createResourceRequest$
|
|
4035
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
4036
|
+
const resourceParams = createResourceParams$j(config);
|
|
4037
|
+
const request = createResourceRequest$j(resourceParams);
|
|
3921
4038
|
return luvio.dispatchResourceRequest(request, options)
|
|
3922
4039
|
.then((response) => {
|
|
3923
4040
|
return luvio.handleSuccessResponse(() => {
|
|
3924
|
-
const snapshot = ingestSuccess$
|
|
4041
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
3925
4042
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3926
4043
|
}, () => {
|
|
3927
4044
|
const cache = new StoreKeyMap();
|
|
3928
|
-
getResponseCacheKeys$
|
|
4045
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
3929
4046
|
return cache;
|
|
3930
4047
|
});
|
|
3931
4048
|
}, (response) => {
|
|
@@ -3935,17 +4052,17 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
3935
4052
|
}
|
|
3936
4053
|
const postSlackFileAdapterFactory = (luvio) => {
|
|
3937
4054
|
return function postSlackFile(untrustedConfig) {
|
|
3938
|
-
const config = validateAdapterConfig$
|
|
4055
|
+
const config = validateAdapterConfig$j(untrustedConfig, postSlackFile_ConfigPropertyNames);
|
|
3939
4056
|
// Invalid or incomplete config
|
|
3940
4057
|
if (config === null) {
|
|
3941
4058
|
throw new Error('Invalid config for "postSlackFile"');
|
|
3942
4059
|
}
|
|
3943
|
-
return buildNetworkSnapshot$
|
|
4060
|
+
return buildNetworkSnapshot$j(luvio, config);
|
|
3944
4061
|
};
|
|
3945
4062
|
};
|
|
3946
4063
|
|
|
3947
|
-
const VERSION$
|
|
3948
|
-
function validate$
|
|
4064
|
+
const VERSION$9 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
|
|
4065
|
+
function validate$9(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
|
|
3949
4066
|
const v_error = (() => {
|
|
3950
4067
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3951
4068
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3968,20 +4085,20 @@ function validate$8(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
3968
4085
|
})();
|
|
3969
4086
|
return v_error === undefined ? null : v_error;
|
|
3970
4087
|
}
|
|
3971
|
-
const RepresentationType$
|
|
3972
|
-
function keyBuilder$
|
|
3973
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4088
|
+
const RepresentationType$9 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
4089
|
+
function keyBuilder$u(luvio, config) {
|
|
4090
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.relatedRecordId;
|
|
3974
4091
|
}
|
|
3975
4092
|
function keyBuilderFromType$5(luvio, object) {
|
|
3976
4093
|
const keyParams = {
|
|
3977
4094
|
relatedRecordId: object.relatedRecordId
|
|
3978
4095
|
};
|
|
3979
|
-
return keyBuilder$
|
|
4096
|
+
return keyBuilder$u(luvio, keyParams);
|
|
3980
4097
|
}
|
|
3981
|
-
function normalize$
|
|
4098
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
3982
4099
|
const input_conversationInfo = input.conversationInfo;
|
|
3983
4100
|
const input_conversationInfo_id = path.fullPath + '__conversationInfo';
|
|
3984
|
-
input.conversationInfo = ingest$
|
|
4101
|
+
input.conversationInfo = ingest$f(input_conversationInfo, {
|
|
3985
4102
|
fullPath: input_conversationInfo_id,
|
|
3986
4103
|
propertyName: 'conversationInfo',
|
|
3987
4104
|
parent: {
|
|
@@ -3993,16 +4110,16 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
3993
4110
|
}, luvio, store, timestamp);
|
|
3994
4111
|
return input;
|
|
3995
4112
|
}
|
|
3996
|
-
const select$
|
|
4113
|
+
const select$p = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
3997
4114
|
return {
|
|
3998
4115
|
kind: 'Fragment',
|
|
3999
|
-
version: VERSION$
|
|
4116
|
+
version: VERSION$9,
|
|
4000
4117
|
private: [],
|
|
4001
4118
|
selections: [
|
|
4002
4119
|
{
|
|
4003
4120
|
name: 'conversationInfo',
|
|
4004
4121
|
kind: 'Link',
|
|
4005
|
-
fragment: select$
|
|
4122
|
+
fragment: select$C()
|
|
4006
4123
|
},
|
|
4007
4124
|
{
|
|
4008
4125
|
name: 'relatedRecordId',
|
|
@@ -4015,7 +4132,7 @@ const select$n = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
4015
4132
|
]
|
|
4016
4133
|
};
|
|
4017
4134
|
};
|
|
4018
|
-
function equals$
|
|
4135
|
+
function equals$9(existing, incoming) {
|
|
4019
4136
|
const existing_relatedRecordId = existing.relatedRecordId;
|
|
4020
4137
|
const incoming_relatedRecordId = incoming.relatedRecordId;
|
|
4021
4138
|
if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
|
|
@@ -4033,42 +4150,42 @@ function equals$8(existing, incoming) {
|
|
|
4033
4150
|
}
|
|
4034
4151
|
return true;
|
|
4035
4152
|
}
|
|
4036
|
-
const ingest$
|
|
4153
|
+
const ingest$9 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4037
4154
|
if (process.env.NODE_ENV !== 'production') {
|
|
4038
|
-
const validateError = validate$
|
|
4155
|
+
const validateError = validate$9(input);
|
|
4039
4156
|
if (validateError !== null) {
|
|
4040
4157
|
throw validateError;
|
|
4041
4158
|
}
|
|
4042
4159
|
}
|
|
4043
4160
|
const key = keyBuilderFromType$5(luvio, input);
|
|
4044
4161
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
4045
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4162
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
|
|
4046
4163
|
return createLink(key);
|
|
4047
4164
|
};
|
|
4048
|
-
function getTypeCacheKeys$
|
|
4165
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
4049
4166
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4050
4167
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
4051
4168
|
rootKeySet.set(rootKey, {
|
|
4052
4169
|
namespace: keyPrefix,
|
|
4053
|
-
representationName: RepresentationType$
|
|
4170
|
+
representationName: RepresentationType$9,
|
|
4054
4171
|
mergeable: false
|
|
4055
4172
|
});
|
|
4056
|
-
getTypeCacheKeys$
|
|
4173
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfo);
|
|
4057
4174
|
}
|
|
4058
4175
|
|
|
4059
|
-
function select$
|
|
4060
|
-
return select$
|
|
4176
|
+
function select$o(luvio, params) {
|
|
4177
|
+
return select$p();
|
|
4061
4178
|
}
|
|
4062
|
-
function getResponseCacheKeys$
|
|
4063
|
-
getTypeCacheKeys$
|
|
4179
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
4180
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4064
4181
|
}
|
|
4065
|
-
function ingestSuccess$
|
|
4182
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
4066
4183
|
const { body } = response;
|
|
4067
4184
|
const key = keyBuilderFromType$5(luvio, body);
|
|
4068
|
-
luvio.storeIngest(key, ingest$
|
|
4185
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
4069
4186
|
const snapshot = luvio.storeLookup({
|
|
4070
4187
|
recordId: key,
|
|
4071
|
-
node: select$
|
|
4188
|
+
node: select$o(),
|
|
4072
4189
|
variables: {},
|
|
4073
4190
|
});
|
|
4074
4191
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4079,7 +4196,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
4079
4196
|
deepFreeze(snapshot.data);
|
|
4080
4197
|
return snapshot;
|
|
4081
4198
|
}
|
|
4082
|
-
function createResourceRequest$
|
|
4199
|
+
function createResourceRequest$i(config) {
|
|
4083
4200
|
const headers = {};
|
|
4084
4201
|
return {
|
|
4085
4202
|
baseUri: '/services/data/v64.0',
|
|
@@ -4093,16 +4210,16 @@ function createResourceRequest$h(config) {
|
|
|
4093
4210
|
};
|
|
4094
4211
|
}
|
|
4095
4212
|
|
|
4096
|
-
const adapterName$
|
|
4213
|
+
const adapterName$i = 'postSlackRecordChannelInfos';
|
|
4097
4214
|
const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
4098
4215
|
generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
4099
4216
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
4100
4217
|
];
|
|
4101
|
-
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4102
|
-
const createResourceParams$
|
|
4103
|
-
function typeCheckConfig$
|
|
4218
|
+
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4219
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$m(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4220
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
4104
4221
|
const config = {};
|
|
4105
|
-
typeCheckConfig$
|
|
4222
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4106
4223
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
4107
4224
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
4108
4225
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -4116,30 +4233,30 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
4116
4233
|
}
|
|
4117
4234
|
return config;
|
|
4118
4235
|
}
|
|
4119
|
-
function validateAdapterConfig$
|
|
4236
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
4120
4237
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4121
4238
|
return null;
|
|
4122
4239
|
}
|
|
4123
4240
|
if (process.env.NODE_ENV !== 'production') {
|
|
4124
4241
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4125
4242
|
}
|
|
4126
|
-
const config = typeCheckConfig$
|
|
4243
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
4127
4244
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4128
4245
|
return null;
|
|
4129
4246
|
}
|
|
4130
4247
|
return config;
|
|
4131
4248
|
}
|
|
4132
|
-
function buildNetworkSnapshot$
|
|
4133
|
-
const resourceParams = createResourceParams$
|
|
4134
|
-
const request = createResourceRequest$
|
|
4249
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
4250
|
+
const resourceParams = createResourceParams$i(config);
|
|
4251
|
+
const request = createResourceRequest$i(resourceParams);
|
|
4135
4252
|
return luvio.dispatchResourceRequest(request, options)
|
|
4136
4253
|
.then((response) => {
|
|
4137
4254
|
return luvio.handleSuccessResponse(() => {
|
|
4138
|
-
const snapshot = ingestSuccess$
|
|
4255
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
4139
4256
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4140
4257
|
}, () => {
|
|
4141
4258
|
const cache = new StoreKeyMap();
|
|
4142
|
-
getResponseCacheKeys$
|
|
4259
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
4143
4260
|
return cache;
|
|
4144
4261
|
});
|
|
4145
4262
|
}, (response) => {
|
|
@@ -4149,25 +4266,301 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
4149
4266
|
}
|
|
4150
4267
|
const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
|
|
4151
4268
|
return function postSlackRecordChannelInfos(untrustedConfig) {
|
|
4152
|
-
const config = validateAdapterConfig$
|
|
4269
|
+
const config = validateAdapterConfig$i(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
|
|
4153
4270
|
// Invalid or incomplete config
|
|
4154
4271
|
if (config === null) {
|
|
4155
4272
|
throw new Error('Invalid config for "postSlackRecordChannelInfos"');
|
|
4156
4273
|
}
|
|
4157
|
-
return buildNetworkSnapshot$
|
|
4274
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
4158
4275
|
};
|
|
4159
4276
|
};
|
|
4160
4277
|
|
|
4161
|
-
function select$
|
|
4162
|
-
return select$
|
|
4278
|
+
function select$n(luvio, params) {
|
|
4279
|
+
return select$p();
|
|
4163
4280
|
}
|
|
4164
|
-
function keyBuilder$
|
|
4165
|
-
return keyBuilder$
|
|
4281
|
+
function keyBuilder$t(luvio, params) {
|
|
4282
|
+
return keyBuilder$u(luvio, {
|
|
4166
4283
|
relatedRecordId: params.urlParams.relatedRecordId
|
|
4167
4284
|
});
|
|
4168
4285
|
}
|
|
4286
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
4287
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
4288
|
+
}
|
|
4289
|
+
function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
|
|
4290
|
+
const { body } = response;
|
|
4291
|
+
const key = keyBuilder$t(luvio, resourceParams);
|
|
4292
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
4293
|
+
const snapshot = luvio.storeLookup({
|
|
4294
|
+
recordId: key,
|
|
4295
|
+
node: select$n(),
|
|
4296
|
+
variables: {},
|
|
4297
|
+
}, snapshotRefresh);
|
|
4298
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4299
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4300
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
deepFreeze(snapshot.data);
|
|
4304
|
+
return snapshot;
|
|
4305
|
+
}
|
|
4306
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
4307
|
+
const key = keyBuilder$t(luvio, params);
|
|
4308
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4309
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
4310
|
+
return errorSnapshot;
|
|
4311
|
+
}
|
|
4312
|
+
function createResourceRequest$h(config) {
|
|
4313
|
+
const headers = {};
|
|
4314
|
+
return {
|
|
4315
|
+
baseUri: '/services/data/v64.0',
|
|
4316
|
+
basePath: '/connect/slackbridge/record_channels/' + config.urlParams.relatedRecordId + '',
|
|
4317
|
+
method: 'get',
|
|
4318
|
+
body: null,
|
|
4319
|
+
urlParams: config.urlParams,
|
|
4320
|
+
queryParams: {},
|
|
4321
|
+
headers,
|
|
4322
|
+
priority: 'normal',
|
|
4323
|
+
};
|
|
4324
|
+
}
|
|
4325
|
+
|
|
4326
|
+
const adapterName$h = 'getSlackRecordChannelInfo';
|
|
4327
|
+
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
4328
|
+
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4329
|
+
];
|
|
4330
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4331
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$m(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4332
|
+
function keyBuilder$s(luvio, config) {
|
|
4333
|
+
const resourceParams = createResourceParams$h(config);
|
|
4334
|
+
return keyBuilder$t(luvio, resourceParams);
|
|
4335
|
+
}
|
|
4336
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
4337
|
+
const config = {};
|
|
4338
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4339
|
+
return config;
|
|
4340
|
+
}
|
|
4341
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
4342
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4343
|
+
return null;
|
|
4344
|
+
}
|
|
4345
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4346
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4347
|
+
}
|
|
4348
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
4349
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4350
|
+
return null;
|
|
4351
|
+
}
|
|
4352
|
+
return config;
|
|
4353
|
+
}
|
|
4354
|
+
function adapterFragment$a(luvio, config) {
|
|
4355
|
+
createResourceParams$h(config);
|
|
4356
|
+
return select$n();
|
|
4357
|
+
}
|
|
4358
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
4359
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
|
|
4360
|
+
config,
|
|
4361
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
4362
|
+
});
|
|
4363
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4364
|
+
}
|
|
4365
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
4366
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
4367
|
+
config,
|
|
4368
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
4369
|
+
});
|
|
4370
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4371
|
+
}
|
|
4372
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
4373
|
+
const resourceParams = createResourceParams$h(config);
|
|
4374
|
+
const request = createResourceRequest$h(resourceParams);
|
|
4375
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4376
|
+
.then((response) => {
|
|
4377
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
4378
|
+
const cache = new StoreKeyMap();
|
|
4379
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
4380
|
+
return cache;
|
|
4381
|
+
});
|
|
4382
|
+
}, (response) => {
|
|
4383
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
4384
|
+
});
|
|
4385
|
+
}
|
|
4386
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
4387
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
4388
|
+
}
|
|
4389
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
4390
|
+
const { luvio, config } = context;
|
|
4391
|
+
const selector = {
|
|
4392
|
+
recordId: keyBuilder$s(luvio, config),
|
|
4393
|
+
node: adapterFragment$a(luvio, config),
|
|
4394
|
+
variables: {},
|
|
4395
|
+
};
|
|
4396
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4397
|
+
config,
|
|
4398
|
+
resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
|
|
4399
|
+
});
|
|
4400
|
+
return cacheSnapshot;
|
|
4401
|
+
}
|
|
4402
|
+
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
4403
|
+
const config = validateAdapterConfig$h(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
4404
|
+
// Invalid or incomplete config
|
|
4405
|
+
if (config === null) {
|
|
4406
|
+
return null;
|
|
4407
|
+
}
|
|
4408
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4409
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4412
|
+
const TTL = 500;
|
|
4413
|
+
const VERSION$8 = "192b0be748476888c3d3587558207214";
|
|
4414
|
+
function validate$8(obj, path = 'SlackBridgeRelatedThreadsOutputRepresentation') {
|
|
4415
|
+
const v_error = (() => {
|
|
4416
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4417
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4418
|
+
}
|
|
4419
|
+
const obj_conversations = obj.conversations;
|
|
4420
|
+
const path_conversations = path + '.conversations';
|
|
4421
|
+
if (!ArrayIsArray(obj_conversations)) {
|
|
4422
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversations + '" (at "' + path_conversations + '")');
|
|
4423
|
+
}
|
|
4424
|
+
for (let i = 0; i < obj_conversations.length; i++) {
|
|
4425
|
+
const obj_conversations_item = obj_conversations[i];
|
|
4426
|
+
const path_conversations_item = path_conversations + '[' + i + ']';
|
|
4427
|
+
if (typeof obj_conversations_item !== 'object') {
|
|
4428
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversations_item + '" (at "' + path_conversations_item + '")');
|
|
4429
|
+
}
|
|
4430
|
+
}
|
|
4431
|
+
const obj_messages = obj.messages;
|
|
4432
|
+
const path_messages = path + '.messages';
|
|
4433
|
+
if (!ArrayIsArray(obj_messages)) {
|
|
4434
|
+
return new TypeError('Expected "array" but received "' + typeof obj_messages + '" (at "' + path_messages + '")');
|
|
4435
|
+
}
|
|
4436
|
+
for (let i = 0; i < obj_messages.length; i++) {
|
|
4437
|
+
const obj_messages_item = obj_messages[i];
|
|
4438
|
+
const path_messages_item = path_messages + '[' + i + ']';
|
|
4439
|
+
if (typeof obj_messages_item !== 'object') {
|
|
4440
|
+
return new TypeError('Expected "object" but received "' + typeof obj_messages_item + '" (at "' + path_messages_item + '")');
|
|
4441
|
+
}
|
|
4442
|
+
}
|
|
4443
|
+
})();
|
|
4444
|
+
return v_error === undefined ? null : v_error;
|
|
4445
|
+
}
|
|
4446
|
+
const RepresentationType$8 = 'SlackBridgeRelatedThreadsOutputRepresentation';
|
|
4447
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
4448
|
+
const input_conversations = input.conversations;
|
|
4449
|
+
const input_conversations_id = path.fullPath + '__conversations';
|
|
4450
|
+
for (let i = 0; i < input_conversations.length; i++) {
|
|
4451
|
+
const input_conversations_item = input_conversations[i];
|
|
4452
|
+
let input_conversations_item_id = input_conversations_id + '__' + i;
|
|
4453
|
+
input_conversations[i] = ingest$f(input_conversations_item, {
|
|
4454
|
+
fullPath: input_conversations_item_id,
|
|
4455
|
+
propertyName: i,
|
|
4456
|
+
parent: {
|
|
4457
|
+
data: input,
|
|
4458
|
+
key: path.fullPath,
|
|
4459
|
+
existing: existing,
|
|
4460
|
+
},
|
|
4461
|
+
ttl: path.ttl
|
|
4462
|
+
}, luvio, store, timestamp);
|
|
4463
|
+
}
|
|
4464
|
+
const input_messages = input.messages;
|
|
4465
|
+
const input_messages_id = path.fullPath + '__messages';
|
|
4466
|
+
for (let i = 0; i < input_messages.length; i++) {
|
|
4467
|
+
const input_messages_item = input_messages[i];
|
|
4468
|
+
let input_messages_item_id = input_messages_id + '__' + i;
|
|
4469
|
+
input_messages[i] = ingest$d(input_messages_item, {
|
|
4470
|
+
fullPath: input_messages_item_id,
|
|
4471
|
+
propertyName: i,
|
|
4472
|
+
parent: {
|
|
4473
|
+
data: input,
|
|
4474
|
+
key: path.fullPath,
|
|
4475
|
+
existing: existing,
|
|
4476
|
+
},
|
|
4477
|
+
ttl: path.ttl
|
|
4478
|
+
}, luvio, store, timestamp);
|
|
4479
|
+
}
|
|
4480
|
+
return input;
|
|
4481
|
+
}
|
|
4482
|
+
const select$m = function SlackBridgeRelatedThreadsOutputRepresentationSelect() {
|
|
4483
|
+
return {
|
|
4484
|
+
kind: 'Fragment',
|
|
4485
|
+
version: VERSION$8,
|
|
4486
|
+
private: [],
|
|
4487
|
+
selections: [
|
|
4488
|
+
{
|
|
4489
|
+
name: 'conversations',
|
|
4490
|
+
kind: 'Link',
|
|
4491
|
+
plural: true,
|
|
4492
|
+
fragment: select$C()
|
|
4493
|
+
},
|
|
4494
|
+
{
|
|
4495
|
+
name: 'messages',
|
|
4496
|
+
kind: 'Link',
|
|
4497
|
+
plural: true,
|
|
4498
|
+
fragment: select$w()
|
|
4499
|
+
}
|
|
4500
|
+
]
|
|
4501
|
+
};
|
|
4502
|
+
};
|
|
4503
|
+
function equals$8(existing, incoming) {
|
|
4504
|
+
const existing_conversations = existing.conversations;
|
|
4505
|
+
const incoming_conversations = incoming.conversations;
|
|
4506
|
+
const equals_conversations_items = equalsArray(existing_conversations, incoming_conversations, (existing_conversations_item, incoming_conversations_item) => {
|
|
4507
|
+
if (!(existing_conversations_item.__ref === incoming_conversations_item.__ref)) {
|
|
4508
|
+
return false;
|
|
4509
|
+
}
|
|
4510
|
+
});
|
|
4511
|
+
if (equals_conversations_items === false) {
|
|
4512
|
+
return false;
|
|
4513
|
+
}
|
|
4514
|
+
const existing_messages = existing.messages;
|
|
4515
|
+
const incoming_messages = incoming.messages;
|
|
4516
|
+
const equals_messages_items = equalsArray(existing_messages, incoming_messages, (existing_messages_item, incoming_messages_item) => {
|
|
4517
|
+
if (!(existing_messages_item.__ref === incoming_messages_item.__ref)) {
|
|
4518
|
+
return false;
|
|
4519
|
+
}
|
|
4520
|
+
});
|
|
4521
|
+
if (equals_messages_items === false) {
|
|
4522
|
+
return false;
|
|
4523
|
+
}
|
|
4524
|
+
return true;
|
|
4525
|
+
}
|
|
4526
|
+
const ingest$8 = function SlackBridgeRelatedThreadsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4527
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4528
|
+
const validateError = validate$8(input);
|
|
4529
|
+
if (validateError !== null) {
|
|
4530
|
+
throw validateError;
|
|
4531
|
+
}
|
|
4532
|
+
}
|
|
4533
|
+
const key = path.fullPath;
|
|
4534
|
+
const ttlToUse = TTL;
|
|
4535
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
|
|
4536
|
+
return createLink(key);
|
|
4537
|
+
};
|
|
4538
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
4539
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4540
|
+
const rootKey = fullPathFactory();
|
|
4541
|
+
rootKeySet.set(rootKey, {
|
|
4542
|
+
namespace: keyPrefix,
|
|
4543
|
+
representationName: RepresentationType$8,
|
|
4544
|
+
mergeable: false
|
|
4545
|
+
});
|
|
4546
|
+
const input_conversations_length = input.conversations.length;
|
|
4547
|
+
for (let i = 0; i < input_conversations_length; i++) {
|
|
4548
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversations[i]);
|
|
4549
|
+
}
|
|
4550
|
+
const input_messages_length = input.messages.length;
|
|
4551
|
+
for (let i = 0; i < input_messages_length; i++) {
|
|
4552
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.messages[i], () => '');
|
|
4553
|
+
}
|
|
4554
|
+
}
|
|
4555
|
+
|
|
4556
|
+
function select$l(luvio, params) {
|
|
4557
|
+
return select$m();
|
|
4558
|
+
}
|
|
4559
|
+
function keyBuilder$r(luvio, params) {
|
|
4560
|
+
return keyPrefix + '::SlackBridgeRelatedThreadsOutputRepresentation:(' + 'entityId:' + params.urlParams.entityId + ')';
|
|
4561
|
+
}
|
|
4169
4562
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
4170
|
-
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
4563
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$r(luvio, resourceParams));
|
|
4171
4564
|
}
|
|
4172
4565
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
4173
4566
|
const { body } = response;
|
|
@@ -4189,14 +4582,20 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4189
4582
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4190
4583
|
const key = keyBuilder$r(luvio, params);
|
|
4191
4584
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4192
|
-
|
|
4585
|
+
const storeMetadataParams = {
|
|
4586
|
+
ttl: TTL,
|
|
4587
|
+
namespace: keyPrefix,
|
|
4588
|
+
version: VERSION$8,
|
|
4589
|
+
representationName: RepresentationType$8
|
|
4590
|
+
};
|
|
4591
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4193
4592
|
return errorSnapshot;
|
|
4194
4593
|
}
|
|
4195
4594
|
function createResourceRequest$g(config) {
|
|
4196
4595
|
const headers = {};
|
|
4197
4596
|
return {
|
|
4198
4597
|
baseUri: '/services/data/v64.0',
|
|
4199
|
-
basePath: '/connect/slackbridge/
|
|
4598
|
+
basePath: '/connect/slackbridge/related_threads/entity/' + config.urlParams.entityId + '',
|
|
4200
4599
|
method: 'get',
|
|
4201
4600
|
body: null,
|
|
4202
4601
|
urlParams: config.urlParams,
|
|
@@ -4206,19 +4605,19 @@ function createResourceRequest$g(config) {
|
|
|
4206
4605
|
};
|
|
4207
4606
|
}
|
|
4208
4607
|
|
|
4209
|
-
const adapterName$g = '
|
|
4210
|
-
const
|
|
4211
|
-
generateParamConfigMetadata('
|
|
4608
|
+
const adapterName$g = 'getRelatedThreads';
|
|
4609
|
+
const getRelatedThreads_ConfigPropertyMetadata = [
|
|
4610
|
+
generateParamConfigMetadata('entityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4212
4611
|
];
|
|
4213
|
-
const
|
|
4214
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
4612
|
+
const getRelatedThreads_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getRelatedThreads_ConfigPropertyMetadata);
|
|
4613
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$m(getRelatedThreads_ConfigPropertyMetadata);
|
|
4215
4614
|
function keyBuilder$q(luvio, config) {
|
|
4216
4615
|
const resourceParams = createResourceParams$g(config);
|
|
4217
4616
|
return keyBuilder$r(luvio, resourceParams);
|
|
4218
4617
|
}
|
|
4219
4618
|
function typeCheckConfig$g(untrustedConfig) {
|
|
4220
4619
|
const config = {};
|
|
4221
|
-
typeCheckConfig$
|
|
4620
|
+
typeCheckConfig$m(untrustedConfig, config, getRelatedThreads_ConfigPropertyMetadata);
|
|
4222
4621
|
return config;
|
|
4223
4622
|
}
|
|
4224
4623
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -4267,7 +4666,7 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
4267
4666
|
});
|
|
4268
4667
|
}
|
|
4269
4668
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4270
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4669
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
4271
4670
|
}
|
|
4272
4671
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
4273
4672
|
const { luvio, config } = context;
|
|
@@ -4282,8 +4681,8 @@ function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
|
4282
4681
|
});
|
|
4283
4682
|
return cacheSnapshot;
|
|
4284
4683
|
}
|
|
4285
|
-
const
|
|
4286
|
-
const config = validateAdapterConfig$g(untrustedConfig,
|
|
4684
|
+
const getRelatedThreadsAdapterFactory = (luvio) => function SlackBridge__getRelatedThreads(untrustedConfig, requestContext) {
|
|
4685
|
+
const config = validateAdapterConfig$g(untrustedConfig, getRelatedThreads_ConfigPropertyNames);
|
|
4287
4686
|
// Invalid or incomplete config
|
|
4288
4687
|
if (config === null) {
|
|
4289
4688
|
return null;
|
|
@@ -4420,10 +4819,10 @@ const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
|
4420
4819
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4421
4820
|
];
|
|
4422
4821
|
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postSlackConversationMark_ConfigPropertyMetadata);
|
|
4423
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
4822
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$m(postSlackConversationMark_ConfigPropertyMetadata);
|
|
4424
4823
|
function typeCheckConfig$f(untrustedConfig) {
|
|
4425
4824
|
const config = {};
|
|
4426
|
-
typeCheckConfig$
|
|
4825
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
4427
4826
|
return config;
|
|
4428
4827
|
}
|
|
4429
4828
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -4654,14 +5053,14 @@ const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
4654
5053
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4655
5054
|
];
|
|
4656
5055
|
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4657
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
5056
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$m(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4658
5057
|
function keyBuilder$m(luvio, config) {
|
|
4659
5058
|
const resourceParams = createResourceParams$e(config);
|
|
4660
5059
|
return keyBuilder$n(luvio, resourceParams);
|
|
4661
5060
|
}
|
|
4662
5061
|
function typeCheckConfig$e(untrustedConfig) {
|
|
4663
5062
|
const config = {};
|
|
4664
|
-
typeCheckConfig$
|
|
5063
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4665
5064
|
return config;
|
|
4666
5065
|
}
|
|
4667
5066
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -4710,7 +5109,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
4710
5109
|
});
|
|
4711
5110
|
}
|
|
4712
5111
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4713
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5112
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
4714
5113
|
}
|
|
4715
5114
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
4716
5115
|
const { luvio, config } = context;
|
|
@@ -4779,10 +5178,10 @@ const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
|
4779
5178
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
4780
5179
|
];
|
|
4781
5180
|
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
4782
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
5181
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$m(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
4783
5182
|
function typeCheckConfig$d(untrustedConfig) {
|
|
4784
5183
|
const config = {};
|
|
4785
|
-
typeCheckConfig$
|
|
5184
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
4786
5185
|
return config;
|
|
4787
5186
|
}
|
|
4788
5187
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -4949,10 +5348,10 @@ const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
4949
5348
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4950
5349
|
];
|
|
4951
5350
|
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
4952
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
5351
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$m(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
4953
5352
|
function typeCheckConfig$c(untrustedConfig) {
|
|
4954
5353
|
const config = {};
|
|
4955
|
-
typeCheckConfig$
|
|
5354
|
+
typeCheckConfig$m(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
4956
5355
|
return config;
|
|
4957
5356
|
}
|
|
4958
5357
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -5052,14 +5451,14 @@ const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
|
5052
5451
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5053
5452
|
];
|
|
5054
5453
|
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5055
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
5454
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$m(getSlackConversationMember_ConfigPropertyMetadata);
|
|
5056
5455
|
function keyBuilder$i(luvio, config) {
|
|
5057
5456
|
const resourceParams = createResourceParams$b(config);
|
|
5058
5457
|
return keyBuilder$j(luvio, resourceParams);
|
|
5059
5458
|
}
|
|
5060
5459
|
function typeCheckConfig$b(untrustedConfig) {
|
|
5061
5460
|
const config = {};
|
|
5062
|
-
typeCheckConfig$
|
|
5461
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5063
5462
|
return config;
|
|
5064
5463
|
}
|
|
5065
5464
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -5108,7 +5507,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
5108
5507
|
});
|
|
5109
5508
|
}
|
|
5110
5509
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5111
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5510
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
5112
5511
|
}
|
|
5113
5512
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
5114
5513
|
const { luvio, config } = context;
|
|
@@ -5269,10 +5668,10 @@ const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
|
5269
5668
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5270
5669
|
];
|
|
5271
5670
|
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5272
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
5671
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$m(deleteSlackMessage_ConfigPropertyMetadata);
|
|
5273
5672
|
function typeCheckConfig$a(untrustedConfig) {
|
|
5274
5673
|
const config = {};
|
|
5275
|
-
typeCheckConfig$
|
|
5674
|
+
typeCheckConfig$m(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5276
5675
|
return config;
|
|
5277
5676
|
}
|
|
5278
5677
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -5372,14 +5771,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
|
|
|
5372
5771
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5373
5772
|
];
|
|
5374
5773
|
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackMessage_ConfigPropertyMetadata);
|
|
5375
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
5774
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$m(getSlackMessage_ConfigPropertyMetadata);
|
|
5376
5775
|
function keyBuilder$e(luvio, config) {
|
|
5377
5776
|
const resourceParams = createResourceParams$9(config);
|
|
5378
5777
|
return keyBuilder$f(luvio, resourceParams);
|
|
5379
5778
|
}
|
|
5380
5779
|
function typeCheckConfig$9(untrustedConfig) {
|
|
5381
5780
|
const config = {};
|
|
5382
|
-
typeCheckConfig$
|
|
5781
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
5383
5782
|
return config;
|
|
5384
5783
|
}
|
|
5385
5784
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -5428,7 +5827,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
5428
5827
|
});
|
|
5429
5828
|
}
|
|
5430
5829
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5431
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5830
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
5432
5831
|
}
|
|
5433
5832
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
5434
5833
|
const { luvio, config } = context;
|
|
@@ -5498,10 +5897,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
|
|
|
5498
5897
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
5499
5898
|
];
|
|
5500
5899
|
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, patchSlackMessage_ConfigPropertyMetadata);
|
|
5501
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
5900
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$m(patchSlackMessage_ConfigPropertyMetadata);
|
|
5502
5901
|
function typeCheckConfig$8(untrustedConfig) {
|
|
5503
5902
|
const config = {};
|
|
5504
|
-
typeCheckConfig$
|
|
5903
|
+
typeCheckConfig$m(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
5505
5904
|
return config;
|
|
5506
5905
|
}
|
|
5507
5906
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -5570,7 +5969,7 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
5570
5969
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
5571
5970
|
const obj_reactions_item = obj_reactions[i];
|
|
5572
5971
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
5573
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
5972
|
+
const referencepath_reactions_itemValidationError = validate$i(obj_reactions_item, path_reactions_item);
|
|
5574
5973
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
5575
5974
|
let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
5576
5975
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5599,7 +5998,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
5599
5998
|
return input;
|
|
5600
5999
|
}
|
|
5601
6000
|
const select$a = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
5602
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
6001
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$B();
|
|
5603
6002
|
return {
|
|
5604
6003
|
kind: 'Fragment',
|
|
5605
6004
|
version: VERSION$3,
|
|
@@ -5645,7 +6044,7 @@ function equals$3(existing, incoming) {
|
|
|
5645
6044
|
const existing_reactions = existing.reactions;
|
|
5646
6045
|
const incoming_reactions = incoming.reactions;
|
|
5647
6046
|
const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
|
|
5648
|
-
if (!(equals$
|
|
6047
|
+
if (!(equals$i(existing_reactions_item, incoming_reactions_item))) {
|
|
5649
6048
|
return false;
|
|
5650
6049
|
}
|
|
5651
6050
|
});
|
|
@@ -5715,10 +6114,10 @@ const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
5715
6114
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5716
6115
|
];
|
|
5717
6116
|
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
5718
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
6117
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$m(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
5719
6118
|
function typeCheckConfig$7(untrustedConfig) {
|
|
5720
6119
|
const config = {};
|
|
5721
|
-
typeCheckConfig$
|
|
6120
|
+
typeCheckConfig$m(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
5722
6121
|
return config;
|
|
5723
6122
|
}
|
|
5724
6123
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -5808,10 +6207,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
|
5808
6207
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5809
6208
|
];
|
|
5810
6209
|
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5811
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6210
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$m(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5812
6211
|
function typeCheckConfig$6(untrustedConfig) {
|
|
5813
6212
|
const config = {};
|
|
5814
|
-
typeCheckConfig$
|
|
6213
|
+
typeCheckConfig$m(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5815
6214
|
return config;
|
|
5816
6215
|
}
|
|
5817
6216
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -5884,7 +6283,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
5884
6283
|
for (let i = 0; i < input_emojis.length; i++) {
|
|
5885
6284
|
const input_emojis_item = input_emojis[i];
|
|
5886
6285
|
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
5887
|
-
input_emojis[i] = ingest$
|
|
6286
|
+
input_emojis[i] = ingest$h(input_emojis_item, {
|
|
5888
6287
|
fullPath: input_emojis_item_id,
|
|
5889
6288
|
propertyName: i,
|
|
5890
6289
|
parent: {
|
|
@@ -5907,7 +6306,7 @@ const select$8 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
5907
6306
|
name: 'emojis',
|
|
5908
6307
|
kind: 'Link',
|
|
5909
6308
|
plural: true,
|
|
5910
|
-
fragment: select$
|
|
6309
|
+
fragment: select$E()
|
|
5911
6310
|
}
|
|
5912
6311
|
]
|
|
5913
6312
|
};
|
|
@@ -5947,7 +6346,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5947
6346
|
});
|
|
5948
6347
|
const input_emojis_length = input.emojis.length;
|
|
5949
6348
|
for (let i = 0; i < input_emojis_length; i++) {
|
|
5950
|
-
getTypeCacheKeys$
|
|
6349
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.emojis[i]);
|
|
5951
6350
|
}
|
|
5952
6351
|
}
|
|
5953
6352
|
|
|
@@ -6003,14 +6402,14 @@ const getSlackEmojis_ConfigPropertyMetadata = [
|
|
|
6003
6402
|
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6004
6403
|
];
|
|
6005
6404
|
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSlackEmojis_ConfigPropertyMetadata);
|
|
6006
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
6405
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$m(getSlackEmojis_ConfigPropertyMetadata);
|
|
6007
6406
|
function keyBuilder$a(luvio, config) {
|
|
6008
6407
|
const resourceParams = createResourceParams$5(config);
|
|
6009
6408
|
return keyBuilder$b(luvio, resourceParams);
|
|
6010
6409
|
}
|
|
6011
6410
|
function typeCheckConfig$5(untrustedConfig) {
|
|
6012
6411
|
const config = {};
|
|
6013
|
-
typeCheckConfig$
|
|
6412
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
6014
6413
|
return config;
|
|
6015
6414
|
}
|
|
6016
6415
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -6059,7 +6458,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
6059
6458
|
});
|
|
6060
6459
|
}
|
|
6061
6460
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6062
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6461
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
6063
6462
|
}
|
|
6064
6463
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6065
6464
|
const { luvio, config } = context;
|
|
@@ -6085,20 +6484,20 @@ const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEm
|
|
|
6085
6484
|
};
|
|
6086
6485
|
|
|
6087
6486
|
function select$6(luvio, params) {
|
|
6088
|
-
return select$
|
|
6487
|
+
return select$E();
|
|
6089
6488
|
}
|
|
6090
6489
|
function keyBuilder$9(luvio, params) {
|
|
6091
|
-
return keyBuilder$
|
|
6490
|
+
return keyBuilder$B(luvio, {
|
|
6092
6491
|
name: params.urlParams.slackEmojiId
|
|
6093
6492
|
});
|
|
6094
6493
|
}
|
|
6095
6494
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
6096
|
-
getTypeCacheKeys$
|
|
6495
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
6097
6496
|
}
|
|
6098
6497
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
6099
6498
|
const { body } = response;
|
|
6100
6499
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
6101
|
-
luvio.storeIngest(key, ingest$
|
|
6500
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
6102
6501
|
const snapshot = luvio.storeLookup({
|
|
6103
6502
|
recordId: key,
|
|
6104
6503
|
node: select$6(),
|
|
@@ -6116,10 +6515,10 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
6116
6515
|
const key = keyBuilder$9(luvio, params);
|
|
6117
6516
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6118
6517
|
const storeMetadataParams = {
|
|
6119
|
-
ttl: TTL$
|
|
6518
|
+
ttl: TTL$2,
|
|
6120
6519
|
namespace: keyPrefix,
|
|
6121
|
-
version: VERSION$
|
|
6122
|
-
representationName: RepresentationType$
|
|
6520
|
+
version: VERSION$l,
|
|
6521
|
+
representationName: RepresentationType$h
|
|
6123
6522
|
};
|
|
6124
6523
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6125
6524
|
return errorSnapshot;
|
|
@@ -6144,14 +6543,14 @@ const getSlackEmoji_ConfigPropertyMetadata = [
|
|
|
6144
6543
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6145
6544
|
];
|
|
6146
6545
|
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSlackEmoji_ConfigPropertyMetadata);
|
|
6147
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
6546
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$m(getSlackEmoji_ConfigPropertyMetadata);
|
|
6148
6547
|
function keyBuilder$8(luvio, config) {
|
|
6149
6548
|
const resourceParams = createResourceParams$4(config);
|
|
6150
6549
|
return keyBuilder$9(luvio, resourceParams);
|
|
6151
6550
|
}
|
|
6152
6551
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6153
6552
|
const config = {};
|
|
6154
|
-
typeCheckConfig$
|
|
6553
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
6155
6554
|
return config;
|
|
6156
6555
|
}
|
|
6157
6556
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -6200,7 +6599,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
6200
6599
|
});
|
|
6201
6600
|
}
|
|
6202
6601
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6203
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6602
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
6204
6603
|
}
|
|
6205
6604
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6206
6605
|
const { luvio, config } = context;
|
|
@@ -6279,7 +6678,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
6279
6678
|
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6280
6679
|
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6281
6680
|
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6282
|
-
input_conversationInfos[i] = ingest$
|
|
6681
|
+
input_conversationInfos[i] = ingest$f(input_conversationInfos_item, {
|
|
6283
6682
|
fullPath: input_conversationInfos_item_id,
|
|
6284
6683
|
propertyName: i,
|
|
6285
6684
|
parent: {
|
|
@@ -6302,7 +6701,7 @@ const select$5 = function SlackBridgeConversationInfosOutputRepresentationSelect
|
|
|
6302
6701
|
name: 'conversationInfos',
|
|
6303
6702
|
kind: 'Link',
|
|
6304
6703
|
plural: true,
|
|
6305
|
-
fragment: select$
|
|
6704
|
+
fragment: select$C()
|
|
6306
6705
|
},
|
|
6307
6706
|
{
|
|
6308
6707
|
name: 'searchString',
|
|
@@ -6351,7 +6750,7 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6351
6750
|
});
|
|
6352
6751
|
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6353
6752
|
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6354
|
-
getTypeCacheKeys$
|
|
6753
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6355
6754
|
}
|
|
6356
6755
|
}
|
|
6357
6756
|
|
|
@@ -6407,14 +6806,14 @@ const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
|
6407
6806
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6408
6807
|
];
|
|
6409
6808
|
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6410
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
6809
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$m(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6411
6810
|
function keyBuilder$6(luvio, config) {
|
|
6412
6811
|
const resourceParams = createResourceParams$3(config);
|
|
6413
6812
|
return keyBuilder$7(luvio, resourceParams);
|
|
6414
6813
|
}
|
|
6415
6814
|
function typeCheckConfig$3(untrustedConfig) {
|
|
6416
6815
|
const config = {};
|
|
6417
|
-
typeCheckConfig$
|
|
6816
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6418
6817
|
return config;
|
|
6419
6818
|
}
|
|
6420
6819
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -6463,7 +6862,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
6463
6862
|
});
|
|
6464
6863
|
}
|
|
6465
6864
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6466
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6865
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
6467
6866
|
}
|
|
6468
6867
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6469
6868
|
const { luvio, config } = context;
|
|
@@ -6540,14 +6939,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
6540
6939
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6541
6940
|
];
|
|
6542
6941
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6543
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
6942
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$m(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6544
6943
|
function keyBuilder$4(luvio, config) {
|
|
6545
6944
|
const resourceParams = createResourceParams$2(config);
|
|
6546
6945
|
return keyBuilder$5(luvio, resourceParams);
|
|
6547
6946
|
}
|
|
6548
6947
|
function typeCheckConfig$2(untrustedConfig) {
|
|
6549
6948
|
const config = {};
|
|
6550
|
-
typeCheckConfig$
|
|
6949
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
6551
6950
|
return config;
|
|
6552
6951
|
}
|
|
6553
6952
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -6596,7 +6995,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
6596
6995
|
});
|
|
6597
6996
|
}
|
|
6598
6997
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6599
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6998
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
6600
6999
|
}
|
|
6601
7000
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6602
7001
|
const { luvio, config } = context;
|
|
@@ -6675,7 +7074,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
6675
7074
|
for (let i = 0; i < input_userInfos.length; i++) {
|
|
6676
7075
|
const input_userInfos_item = input_userInfos[i];
|
|
6677
7076
|
let input_userInfos_item_id = input_userInfos_id + '__' + i;
|
|
6678
|
-
input_userInfos[i] = ingest$
|
|
7077
|
+
input_userInfos[i] = ingest$g(input_userInfos_item, {
|
|
6679
7078
|
fullPath: input_userInfos_item_id,
|
|
6680
7079
|
propertyName: i,
|
|
6681
7080
|
parent: {
|
|
@@ -6702,7 +7101,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
6702
7101
|
name: 'userInfos',
|
|
6703
7102
|
kind: 'Link',
|
|
6704
7103
|
plural: true,
|
|
6705
|
-
fragment: select$
|
|
7104
|
+
fragment: select$D()
|
|
6706
7105
|
}
|
|
6707
7106
|
]
|
|
6708
7107
|
};
|
|
@@ -6747,7 +7146,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6747
7146
|
});
|
|
6748
7147
|
const input_userInfos_length = input.userInfos.length;
|
|
6749
7148
|
for (let i = 0; i < input_userInfos_length; i++) {
|
|
6750
|
-
getTypeCacheKeys$
|
|
7149
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.userInfos[i]);
|
|
6751
7150
|
}
|
|
6752
7151
|
}
|
|
6753
7152
|
|
|
@@ -6806,14 +7205,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
|
6806
7205
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6807
7206
|
];
|
|
6808
7207
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6809
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7208
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$m(getSlackSearchUser_ConfigPropertyMetadata);
|
|
6810
7209
|
function keyBuilder$2(luvio, config) {
|
|
6811
7210
|
const resourceParams = createResourceParams$1(config);
|
|
6812
7211
|
return keyBuilder$3(luvio, resourceParams);
|
|
6813
7212
|
}
|
|
6814
7213
|
function typeCheckConfig$1(untrustedConfig) {
|
|
6815
7214
|
const config = {};
|
|
6816
|
-
typeCheckConfig$
|
|
7215
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
6817
7216
|
return config;
|
|
6818
7217
|
}
|
|
6819
7218
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -6862,7 +7261,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
6862
7261
|
});
|
|
6863
7262
|
}
|
|
6864
7263
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6865
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7264
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
6866
7265
|
}
|
|
6867
7266
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6868
7267
|
const { luvio, config } = context;
|
|
@@ -6888,21 +7287,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
6888
7287
|
};
|
|
6889
7288
|
|
|
6890
7289
|
function select(luvio, params) {
|
|
6891
|
-
return select$
|
|
7290
|
+
return select$D();
|
|
6892
7291
|
}
|
|
6893
7292
|
function keyBuilder$1(luvio, params) {
|
|
6894
|
-
return keyBuilder$
|
|
7293
|
+
return keyBuilder$A(luvio, {
|
|
6895
7294
|
slackUserId: params.urlParams.slackUserId,
|
|
6896
7295
|
teamId: params.urlParams.teamId
|
|
6897
7296
|
});
|
|
6898
7297
|
}
|
|
6899
7298
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
6900
|
-
getTypeCacheKeys$
|
|
7299
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
6901
7300
|
}
|
|
6902
7301
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
6903
7302
|
const { body } = response;
|
|
6904
7303
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
6905
|
-
luvio.storeIngest(key, ingest$
|
|
7304
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
6906
7305
|
const snapshot = luvio.storeLookup({
|
|
6907
7306
|
recordId: key,
|
|
6908
7307
|
node: select(),
|
|
@@ -6920,10 +7319,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
6920
7319
|
const key = keyBuilder$1(luvio, params);
|
|
6921
7320
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6922
7321
|
const storeMetadataParams = {
|
|
6923
|
-
ttl: TTL,
|
|
7322
|
+
ttl: TTL$1,
|
|
6924
7323
|
namespace: keyPrefix,
|
|
6925
|
-
version: VERSION$
|
|
6926
|
-
representationName: RepresentationType$
|
|
7324
|
+
version: VERSION$k,
|
|
7325
|
+
representationName: RepresentationType$g
|
|
6927
7326
|
};
|
|
6928
7327
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6929
7328
|
return errorSnapshot;
|
|
@@ -6948,14 +7347,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
6948
7347
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6949
7348
|
];
|
|
6950
7349
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
|
|
6951
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7350
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$m(getSlackUser_ConfigPropertyMetadata);
|
|
6952
7351
|
function keyBuilder(luvio, config) {
|
|
6953
7352
|
const resourceParams = createResourceParams(config);
|
|
6954
7353
|
return keyBuilder$1(luvio, resourceParams);
|
|
6955
7354
|
}
|
|
6956
7355
|
function typeCheckConfig(untrustedConfig) {
|
|
6957
7356
|
const config = {};
|
|
6958
|
-
typeCheckConfig$
|
|
7357
|
+
typeCheckConfig$m(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
6959
7358
|
return config;
|
|
6960
7359
|
}
|
|
6961
7360
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -7004,7 +7403,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
7004
7403
|
});
|
|
7005
7404
|
}
|
|
7006
7405
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7007
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7406
|
+
return buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
7008
7407
|
}
|
|
7009
7408
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7010
7409
|
const { luvio, config } = context;
|
|
@@ -7029,4 +7428,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
7029
7428
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
7030
7429
|
};
|
|
7031
7430
|
|
|
7032
|
-
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackEmojiAdapterFactory, getSlackEmojisAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|
|
7431
|
+
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getRelatedThreadsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackEmojiAdapterFactory, getSlackEmojisAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|