@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev23 → 1.332.0-dev25

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.
@@ -495,7 +495,7 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
495
495
  }
496
496
 
497
497
  const TTL$1 = 600000;
498
- const VERSION$k = "ffc32ae0451b10824fba0c96aa0d2115";
498
+ const VERSION$k = "90811622b2f6ba9d9a4525dd179a478a";
499
499
  function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
500
500
  const v_error = (() => {
501
501
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -867,8 +867,29 @@ function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
867
867
  }
868
868
  const obj_teamId = obj.teamId;
869
869
  const path_teamId = path + '.teamId';
870
- if (typeof obj_teamId !== 'string') {
871
- return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
870
+ let obj_teamId_union0 = null;
871
+ const obj_teamId_union0_error = (() => {
872
+ if (typeof obj_teamId !== 'string') {
873
+ return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
874
+ }
875
+ })();
876
+ if (obj_teamId_union0_error != null) {
877
+ obj_teamId_union0 = obj_teamId_union0_error.message;
878
+ }
879
+ let obj_teamId_union1 = null;
880
+ const obj_teamId_union1_error = (() => {
881
+ if (obj_teamId !== null) {
882
+ return new TypeError('Expected "null" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
883
+ }
884
+ })();
885
+ if (obj_teamId_union1_error != null) {
886
+ obj_teamId_union1 = obj_teamId_union1_error.message;
887
+ }
888
+ if (obj_teamId_union0 && obj_teamId_union1) {
889
+ let message = 'Object doesn\'t match union (at "' + path_teamId + '")';
890
+ message += '\n' + obj_teamId_union0.split('\n').map((line) => '\t' + line).join('\n');
891
+ message += '\n' + obj_teamId_union1.split('\n').map((line) => '\t' + line).join('\n');
892
+ return new TypeError(message);
872
893
  }
873
894
  const obj_title = obj.title;
874
895
  const path_title = path + '.title';
@@ -896,16 +917,99 @@ function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
896
917
  message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
897
918
  return new TypeError(message);
898
919
  }
920
+ if (obj.tz !== undefined) {
921
+ const obj_tz = obj.tz;
922
+ const path_tz = path + '.tz';
923
+ let obj_tz_union0 = null;
924
+ const obj_tz_union0_error = (() => {
925
+ if (typeof obj_tz !== 'string') {
926
+ return new TypeError('Expected "string" but received "' + typeof obj_tz + '" (at "' + path_tz + '")');
927
+ }
928
+ })();
929
+ if (obj_tz_union0_error != null) {
930
+ obj_tz_union0 = obj_tz_union0_error.message;
931
+ }
932
+ let obj_tz_union1 = null;
933
+ const obj_tz_union1_error = (() => {
934
+ if (obj_tz !== null) {
935
+ return new TypeError('Expected "null" but received "' + typeof obj_tz + '" (at "' + path_tz + '")');
936
+ }
937
+ })();
938
+ if (obj_tz_union1_error != null) {
939
+ obj_tz_union1 = obj_tz_union1_error.message;
940
+ }
941
+ if (obj_tz_union0 && obj_tz_union1) {
942
+ let message = 'Object doesn\'t match union (at "' + path_tz + '")';
943
+ message += '\n' + obj_tz_union0.split('\n').map((line) => '\t' + line).join('\n');
944
+ message += '\n' + obj_tz_union1.split('\n').map((line) => '\t' + line).join('\n');
945
+ return new TypeError(message);
946
+ }
947
+ }
948
+ if (obj.tzLabel !== undefined) {
949
+ const obj_tzLabel = obj.tzLabel;
950
+ const path_tzLabel = path + '.tzLabel';
951
+ let obj_tzLabel_union0 = null;
952
+ const obj_tzLabel_union0_error = (() => {
953
+ if (typeof obj_tzLabel !== 'string') {
954
+ return new TypeError('Expected "string" but received "' + typeof obj_tzLabel + '" (at "' + path_tzLabel + '")');
955
+ }
956
+ })();
957
+ if (obj_tzLabel_union0_error != null) {
958
+ obj_tzLabel_union0 = obj_tzLabel_union0_error.message;
959
+ }
960
+ let obj_tzLabel_union1 = null;
961
+ const obj_tzLabel_union1_error = (() => {
962
+ if (obj_tzLabel !== null) {
963
+ return new TypeError('Expected "null" but received "' + typeof obj_tzLabel + '" (at "' + path_tzLabel + '")');
964
+ }
965
+ })();
966
+ if (obj_tzLabel_union1_error != null) {
967
+ obj_tzLabel_union1 = obj_tzLabel_union1_error.message;
968
+ }
969
+ if (obj_tzLabel_union0 && obj_tzLabel_union1) {
970
+ let message = 'Object doesn\'t match union (at "' + path_tzLabel + '")';
971
+ message += '\n' + obj_tzLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
972
+ message += '\n' + obj_tzLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
973
+ return new TypeError(message);
974
+ }
975
+ }
976
+ if (obj.tzOffset !== undefined) {
977
+ const obj_tzOffset = obj.tzOffset;
978
+ const path_tzOffset = path + '.tzOffset';
979
+ let obj_tzOffset_union0 = null;
980
+ const obj_tzOffset_union0_error = (() => {
981
+ if (typeof obj_tzOffset !== 'number' || (typeof obj_tzOffset === 'number' && Math.floor(obj_tzOffset) !== obj_tzOffset)) {
982
+ return new TypeError('Expected "integer" but received "' + typeof obj_tzOffset + '" (at "' + path_tzOffset + '")');
983
+ }
984
+ })();
985
+ if (obj_tzOffset_union0_error != null) {
986
+ obj_tzOffset_union0 = obj_tzOffset_union0_error.message;
987
+ }
988
+ let obj_tzOffset_union1 = null;
989
+ const obj_tzOffset_union1_error = (() => {
990
+ if (obj_tzOffset !== null) {
991
+ return new TypeError('Expected "null" but received "' + typeof obj_tzOffset + '" (at "' + path_tzOffset + '")');
992
+ }
993
+ })();
994
+ if (obj_tzOffset_union1_error != null) {
995
+ obj_tzOffset_union1 = obj_tzOffset_union1_error.message;
996
+ }
997
+ if (obj_tzOffset_union0 && obj_tzOffset_union1) {
998
+ let message = 'Object doesn\'t match union (at "' + path_tzOffset + '")';
999
+ message += '\n' + obj_tzOffset_union0.split('\n').map((line) => '\t' + line).join('\n');
1000
+ message += '\n' + obj_tzOffset_union1.split('\n').map((line) => '\t' + line).join('\n');
1001
+ return new TypeError(message);
1002
+ }
1003
+ }
899
1004
  })();
900
1005
  return v_error === undefined ? null : v_error;
901
1006
  }
902
1007
  const RepresentationType$g = 'SlackBridgeUserInfoOutputRepresentation';
903
1008
  function keyBuilder$A(luvio, config) {
904
- return keyPrefix + '::' + RepresentationType$g + ':' + config.teamId + ':' + config.slackUserId;
1009
+ return keyPrefix + '::' + RepresentationType$g + ':' + config.slackUserId;
905
1010
  }
906
1011
  function keyBuilderFromType$9(luvio, object) {
907
1012
  const keyParams = {
908
- teamId: object.teamId,
909
1013
  slackUserId: object.slackUserId
910
1014
  };
911
1015
  return keyBuilder$A(luvio, keyParams);
@@ -1013,6 +1117,21 @@ const select$D = function SlackBridgeUserInfoOutputRepresentationSelect() {
1013
1117
  {
1014
1118
  name: 'title',
1015
1119
  kind: 'Scalar'
1120
+ },
1121
+ {
1122
+ name: 'tz',
1123
+ kind: 'Scalar',
1124
+ required: false
1125
+ },
1126
+ {
1127
+ name: 'tzLabel',
1128
+ kind: 'Scalar',
1129
+ required: false
1130
+ },
1131
+ {
1132
+ name: 'tzOffset',
1133
+ kind: 'Scalar',
1134
+ required: false
1016
1135
  }
1017
1136
  ]
1018
1137
  };
@@ -1046,11 +1165,6 @@ function equals$k(existing, incoming) {
1046
1165
  if (!(existing_slackUserId === incoming_slackUserId)) {
1047
1166
  return false;
1048
1167
  }
1049
- const existing_teamId = existing.teamId;
1050
- const incoming_teamId = incoming.teamId;
1051
- if (!(existing_teamId === incoming_teamId)) {
1052
- return false;
1053
- }
1054
1168
  const existing_displayName = existing.displayName;
1055
1169
  const incoming_displayName = incoming.displayName;
1056
1170
  if (!(existing_displayName === incoming_displayName)) {
@@ -1137,11 +1251,55 @@ function equals$k(existing, incoming) {
1137
1251
  if (!(existing_statusMessage === incoming_statusMessage)) {
1138
1252
  return false;
1139
1253
  }
1254
+ const existing_teamId = existing.teamId;
1255
+ const incoming_teamId = incoming.teamId;
1256
+ if (!(existing_teamId === incoming_teamId)) {
1257
+ return false;
1258
+ }
1140
1259
  const existing_title = existing.title;
1141
1260
  const incoming_title = incoming.title;
1142
1261
  if (!(existing_title === incoming_title)) {
1143
1262
  return false;
1144
1263
  }
1264
+ const existing_tz = existing.tz;
1265
+ const incoming_tz = incoming.tz;
1266
+ // if at least one of these optionals is defined
1267
+ if (existing_tz !== undefined || incoming_tz !== undefined) {
1268
+ // if one of these is not defined we know the other is defined and therefore
1269
+ // not equal
1270
+ if (existing_tz === undefined || incoming_tz === undefined) {
1271
+ return false;
1272
+ }
1273
+ if (!(existing_tz === incoming_tz)) {
1274
+ return false;
1275
+ }
1276
+ }
1277
+ const existing_tzLabel = existing.tzLabel;
1278
+ const incoming_tzLabel = incoming.tzLabel;
1279
+ // if at least one of these optionals is defined
1280
+ if (existing_tzLabel !== undefined || incoming_tzLabel !== undefined) {
1281
+ // if one of these is not defined we know the other is defined and therefore
1282
+ // not equal
1283
+ if (existing_tzLabel === undefined || incoming_tzLabel === undefined) {
1284
+ return false;
1285
+ }
1286
+ if (!(existing_tzLabel === incoming_tzLabel)) {
1287
+ return false;
1288
+ }
1289
+ }
1290
+ const existing_tzOffset = existing.tzOffset;
1291
+ const incoming_tzOffset = incoming.tzOffset;
1292
+ // if at least one of these optionals is defined
1293
+ if (existing_tzOffset !== undefined || incoming_tzOffset !== undefined) {
1294
+ // if one of these is not defined we know the other is defined and therefore
1295
+ // not equal
1296
+ if (existing_tzOffset === undefined || incoming_tzOffset === undefined) {
1297
+ return false;
1298
+ }
1299
+ if (!(existing_tzOffset === incoming_tzOffset)) {
1300
+ return false;
1301
+ }
1302
+ }
1145
1303
  return true;
1146
1304
  }
1147
1305
  const ingest$g = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -7305,8 +7463,7 @@ function select(luvio, params) {
7305
7463
  }
7306
7464
  function keyBuilder$1(luvio, params) {
7307
7465
  return keyBuilder$A(luvio, {
7308
- slackUserId: params.urlParams.slackUserId,
7309
- teamId: params.urlParams.teamId
7466
+ slackUserId: params.urlParams.slackUserId
7310
7467
  });
7311
7468
  }
7312
7469
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
@@ -1,11 +1,10 @@
1
1
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  import { SlackBridgeEmojiOutputRepresentation as SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation } from './SlackBridgeEmojiOutputRepresentation';
3
3
  export declare const TTL = 600000;
4
- export declare const VERSION = "ffc32ae0451b10824fba0c96aa0d2115";
4
+ export declare const VERSION = "90811622b2f6ba9d9a4525dd179a478a";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
8
- teamId: string;
9
8
  slackUserId: string;
10
9
  }
11
10
  export type SlackBridgeUserInfoOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
@@ -32,7 +31,6 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
32
31
  * Contains the details of Slack User
33
32
  *
34
33
  * Keys:
35
- * teamId (string): teamId
36
34
  * slackUserId (string): slackUserId
37
35
  */
38
36
  export interface SlackBridgeUserInfoOutputRepresentationNormalized {
@@ -71,15 +69,20 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
71
69
  /** Status message of the Slack User */
72
70
  statusMessage: string | null;
73
71
  /** Slack Workspace Id */
74
- teamId: string;
72
+ teamId: string | null;
75
73
  /** Title of the Slack User */
76
74
  title: string | null;
75
+ /** Time zone of the Slack user, ie. America/New_York */
76
+ tz?: string | null;
77
+ /** Time zone label of the Slack user, ie. Eastern Daylight Time */
78
+ tzLabel?: string | null;
79
+ /** Time zone offset from UTC, ie. -14400 */
80
+ tzOffset?: number | null;
77
81
  }
78
82
  /**
79
83
  * Contains the details of Slack User
80
84
  *
81
85
  * Keys:
82
- * teamId (string): teamId
83
86
  * slackUserId (string): slackUserId
84
87
  */
85
88
  export interface SlackBridgeUserInfoOutputRepresentation {
@@ -100,6 +103,9 @@ export interface SlackBridgeUserInfoOutputRepresentation {
100
103
  slackUserId: string;
101
104
  statusEmoji: SlackBridgeEmojiOutputRepresentation_SlackBridgeEmojiOutputRepresentation | null;
102
105
  statusMessage: string | null;
103
- teamId: string;
106
+ teamId: string | null;
104
107
  title: string | null;
108
+ tz?: string | null;
109
+ tzLabel?: string | null;
110
+ tzOffset?: number | null;
105
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.332.0-dev23",
3
+ "version": "1.332.0-dev25",
4
4
  "description": "API for bridging over to Slack from Salesforce Core",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-slack-bridge.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.332.0-dev23"
43
+ "@salesforce/lds-bindings": "^1.332.0-dev25"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev23"
46
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev25"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -3323,7 +3323,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
3323
3323
  }
3324
3324
 
3325
3325
  const TTL = 600000;
3326
- const VERSION$9 = "ffc32ae0451b10824fba0c96aa0d2115";
3326
+ const VERSION$9 = "90811622b2f6ba9d9a4525dd179a478a";
3327
3327
  function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
3328
3328
  const v_error = (() => {
3329
3329
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3695,8 +3695,29 @@ function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
3695
3695
  }
3696
3696
  const obj_teamId = obj.teamId;
3697
3697
  const path_teamId = path + '.teamId';
3698
- if (typeof obj_teamId !== 'string') {
3699
- return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
3698
+ let obj_teamId_union0 = null;
3699
+ const obj_teamId_union0_error = (() => {
3700
+ if (typeof obj_teamId !== 'string') {
3701
+ return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
3702
+ }
3703
+ })();
3704
+ if (obj_teamId_union0_error != null) {
3705
+ obj_teamId_union0 = obj_teamId_union0_error.message;
3706
+ }
3707
+ let obj_teamId_union1 = null;
3708
+ const obj_teamId_union1_error = (() => {
3709
+ if (obj_teamId !== null) {
3710
+ return new TypeError('Expected "null" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
3711
+ }
3712
+ })();
3713
+ if (obj_teamId_union1_error != null) {
3714
+ obj_teamId_union1 = obj_teamId_union1_error.message;
3715
+ }
3716
+ if (obj_teamId_union0 && obj_teamId_union1) {
3717
+ let message = 'Object doesn\'t match union (at "' + path_teamId + '")';
3718
+ message += '\n' + obj_teamId_union0.split('\n').map((line) => '\t' + line).join('\n');
3719
+ message += '\n' + obj_teamId_union1.split('\n').map((line) => '\t' + line).join('\n');
3720
+ return new TypeError(message);
3700
3721
  }
3701
3722
  const obj_title = obj.title;
3702
3723
  const path_title = path + '.title';
@@ -3724,16 +3745,99 @@ function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
3724
3745
  message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
3725
3746
  return new TypeError(message);
3726
3747
  }
3748
+ if (obj.tz !== undefined) {
3749
+ const obj_tz = obj.tz;
3750
+ const path_tz = path + '.tz';
3751
+ let obj_tz_union0 = null;
3752
+ const obj_tz_union0_error = (() => {
3753
+ if (typeof obj_tz !== 'string') {
3754
+ return new TypeError('Expected "string" but received "' + typeof obj_tz + '" (at "' + path_tz + '")');
3755
+ }
3756
+ })();
3757
+ if (obj_tz_union0_error != null) {
3758
+ obj_tz_union0 = obj_tz_union0_error.message;
3759
+ }
3760
+ let obj_tz_union1 = null;
3761
+ const obj_tz_union1_error = (() => {
3762
+ if (obj_tz !== null) {
3763
+ return new TypeError('Expected "null" but received "' + typeof obj_tz + '" (at "' + path_tz + '")');
3764
+ }
3765
+ })();
3766
+ if (obj_tz_union1_error != null) {
3767
+ obj_tz_union1 = obj_tz_union1_error.message;
3768
+ }
3769
+ if (obj_tz_union0 && obj_tz_union1) {
3770
+ let message = 'Object doesn\'t match union (at "' + path_tz + '")';
3771
+ message += '\n' + obj_tz_union0.split('\n').map((line) => '\t' + line).join('\n');
3772
+ message += '\n' + obj_tz_union1.split('\n').map((line) => '\t' + line).join('\n');
3773
+ return new TypeError(message);
3774
+ }
3775
+ }
3776
+ if (obj.tzLabel !== undefined) {
3777
+ const obj_tzLabel = obj.tzLabel;
3778
+ const path_tzLabel = path + '.tzLabel';
3779
+ let obj_tzLabel_union0 = null;
3780
+ const obj_tzLabel_union0_error = (() => {
3781
+ if (typeof obj_tzLabel !== 'string') {
3782
+ return new TypeError('Expected "string" but received "' + typeof obj_tzLabel + '" (at "' + path_tzLabel + '")');
3783
+ }
3784
+ })();
3785
+ if (obj_tzLabel_union0_error != null) {
3786
+ obj_tzLabel_union0 = obj_tzLabel_union0_error.message;
3787
+ }
3788
+ let obj_tzLabel_union1 = null;
3789
+ const obj_tzLabel_union1_error = (() => {
3790
+ if (obj_tzLabel !== null) {
3791
+ return new TypeError('Expected "null" but received "' + typeof obj_tzLabel + '" (at "' + path_tzLabel + '")');
3792
+ }
3793
+ })();
3794
+ if (obj_tzLabel_union1_error != null) {
3795
+ obj_tzLabel_union1 = obj_tzLabel_union1_error.message;
3796
+ }
3797
+ if (obj_tzLabel_union0 && obj_tzLabel_union1) {
3798
+ let message = 'Object doesn\'t match union (at "' + path_tzLabel + '")';
3799
+ message += '\n' + obj_tzLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
3800
+ message += '\n' + obj_tzLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
3801
+ return new TypeError(message);
3802
+ }
3803
+ }
3804
+ if (obj.tzOffset !== undefined) {
3805
+ const obj_tzOffset = obj.tzOffset;
3806
+ const path_tzOffset = path + '.tzOffset';
3807
+ let obj_tzOffset_union0 = null;
3808
+ const obj_tzOffset_union0_error = (() => {
3809
+ if (typeof obj_tzOffset !== 'number' || (typeof obj_tzOffset === 'number' && Math.floor(obj_tzOffset) !== obj_tzOffset)) {
3810
+ return new TypeError('Expected "integer" but received "' + typeof obj_tzOffset + '" (at "' + path_tzOffset + '")');
3811
+ }
3812
+ })();
3813
+ if (obj_tzOffset_union0_error != null) {
3814
+ obj_tzOffset_union0 = obj_tzOffset_union0_error.message;
3815
+ }
3816
+ let obj_tzOffset_union1 = null;
3817
+ const obj_tzOffset_union1_error = (() => {
3818
+ if (obj_tzOffset !== null) {
3819
+ return new TypeError('Expected "null" but received "' + typeof obj_tzOffset + '" (at "' + path_tzOffset + '")');
3820
+ }
3821
+ })();
3822
+ if (obj_tzOffset_union1_error != null) {
3823
+ obj_tzOffset_union1 = obj_tzOffset_union1_error.message;
3824
+ }
3825
+ if (obj_tzOffset_union0 && obj_tzOffset_union1) {
3826
+ let message = 'Object doesn\'t match union (at "' + path_tzOffset + '")';
3827
+ message += '\n' + obj_tzOffset_union0.split('\n').map((line) => '\t' + line).join('\n');
3828
+ message += '\n' + obj_tzOffset_union1.split('\n').map((line) => '\t' + line).join('\n');
3829
+ return new TypeError(message);
3830
+ }
3831
+ }
3727
3832
  })();
3728
3833
  return v_error === undefined ? null : v_error;
3729
3834
  }
3730
3835
  const RepresentationType$9 = 'SlackBridgeUserInfoOutputRepresentation';
3731
3836
  function keyBuilder$q(luvio, config) {
3732
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.teamId + ':' + config.slackUserId;
3837
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.slackUserId;
3733
3838
  }
3734
3839
  function keyBuilderFromType$4(luvio, object) {
3735
3840
  const keyParams = {
3736
- teamId: object.teamId,
3737
3841
  slackUserId: object.slackUserId
3738
3842
  };
3739
3843
  return keyBuilder$q(luvio, keyParams);
@@ -3841,6 +3945,21 @@ const select$r = function SlackBridgeUserInfoOutputRepresentationSelect() {
3841
3945
  {
3842
3946
  name: 'title',
3843
3947
  kind: 'Scalar'
3948
+ },
3949
+ {
3950
+ name: 'tz',
3951
+ kind: 'Scalar',
3952
+ required: false
3953
+ },
3954
+ {
3955
+ name: 'tzLabel',
3956
+ kind: 'Scalar',
3957
+ required: false
3958
+ },
3959
+ {
3960
+ name: 'tzOffset',
3961
+ kind: 'Scalar',
3962
+ required: false
3844
3963
  }
3845
3964
  ]
3846
3965
  };
@@ -3874,11 +3993,6 @@ function equals$9(existing, incoming) {
3874
3993
  if (!(existing_slackUserId === incoming_slackUserId)) {
3875
3994
  return false;
3876
3995
  }
3877
- const existing_teamId = existing.teamId;
3878
- const incoming_teamId = incoming.teamId;
3879
- if (!(existing_teamId === incoming_teamId)) {
3880
- return false;
3881
- }
3882
3996
  const existing_displayName = existing.displayName;
3883
3997
  const incoming_displayName = incoming.displayName;
3884
3998
  if (!(existing_displayName === incoming_displayName)) {
@@ -3965,11 +4079,55 @@ function equals$9(existing, incoming) {
3965
4079
  if (!(existing_statusMessage === incoming_statusMessage)) {
3966
4080
  return false;
3967
4081
  }
4082
+ const existing_teamId = existing.teamId;
4083
+ const incoming_teamId = incoming.teamId;
4084
+ if (!(existing_teamId === incoming_teamId)) {
4085
+ return false;
4086
+ }
3968
4087
  const existing_title = existing.title;
3969
4088
  const incoming_title = incoming.title;
3970
4089
  if (!(existing_title === incoming_title)) {
3971
4090
  return false;
3972
4091
  }
4092
+ const existing_tz = existing.tz;
4093
+ const incoming_tz = incoming.tz;
4094
+ // if at least one of these optionals is defined
4095
+ if (existing_tz !== undefined || incoming_tz !== undefined) {
4096
+ // if one of these is not defined we know the other is defined and therefore
4097
+ // not equal
4098
+ if (existing_tz === undefined || incoming_tz === undefined) {
4099
+ return false;
4100
+ }
4101
+ if (!(existing_tz === incoming_tz)) {
4102
+ return false;
4103
+ }
4104
+ }
4105
+ const existing_tzLabel = existing.tzLabel;
4106
+ const incoming_tzLabel = incoming.tzLabel;
4107
+ // if at least one of these optionals is defined
4108
+ if (existing_tzLabel !== undefined || incoming_tzLabel !== undefined) {
4109
+ // if one of these is not defined we know the other is defined and therefore
4110
+ // not equal
4111
+ if (existing_tzLabel === undefined || incoming_tzLabel === undefined) {
4112
+ return false;
4113
+ }
4114
+ if (!(existing_tzLabel === incoming_tzLabel)) {
4115
+ return false;
4116
+ }
4117
+ }
4118
+ const existing_tzOffset = existing.tzOffset;
4119
+ const incoming_tzOffset = incoming.tzOffset;
4120
+ // if at least one of these optionals is defined
4121
+ if (existing_tzOffset !== undefined || incoming_tzOffset !== undefined) {
4122
+ // if one of these is not defined we know the other is defined and therefore
4123
+ // not equal
4124
+ if (existing_tzOffset === undefined || incoming_tzOffset === undefined) {
4125
+ return false;
4126
+ }
4127
+ if (!(existing_tzOffset === incoming_tzOffset)) {
4128
+ return false;
4129
+ }
4130
+ }
3973
4131
  return true;
3974
4132
  }
3975
4133
  const ingest$9 = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -6640,8 +6798,7 @@ function select$9(luvio, params) {
6640
6798
  }
6641
6799
  function keyBuilder$3(luvio, params) {
6642
6800
  return keyBuilder$q(luvio, {
6643
- slackUserId: params.urlParams.slackUserId,
6644
- teamId: params.urlParams.teamId
6801
+ slackUserId: params.urlParams.slackUserId
6645
6802
  });
6646
6803
  }
6647
6804
  function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
@@ -6694,7 +6851,6 @@ function createResourceRequestFromRepresentation(representation) {
6694
6851
  urlParams: {},
6695
6852
  };
6696
6853
  config.urlParams.slackUserId = representation.slackUserId;
6697
- config.urlParams.teamId = representation.teamId;
6698
6854
  return createResourceRequest$7(config);
6699
6855
  }
6700
6856
 
@@ -7854,4 +8010,4 @@ withDefaultLuvio((luvio) => {
7854
8010
  });
7855
8011
 
7856
8012
  export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
7857
- // version: 1.332.0-dev23-282e881c4e
8013
+ // version: 1.332.0-dev25-cf098333d5
package/src/raml/api.raml CHANGED
@@ -649,10 +649,22 @@ types:
649
649
  type: string | nil
650
650
  teamId:
651
651
  description: Slack Workspace Id
652
- type: string
652
+ type: string | nil
653
653
  title:
654
654
  description: Title of the Slack User
655
655
  type: string | nil
656
+ tz:
657
+ description: Time zone of the Slack user, ie. America/New_York
658
+ required: false
659
+ type: string | nil
660
+ tzLabel:
661
+ description: Time zone label of the Slack user, ie. Eastern Daylight Time
662
+ required: false
663
+ type: string | nil
664
+ tzOffset:
665
+ description: Time zone offset from UTC, ie. -14400
666
+ required: false
667
+ type: integer | nil
656
668
  SlackBridgeUserInfosOutputRepresentation:
657
669
  description: Contains the list of Slack User Information
658
670
  type: object
@@ -14,7 +14,6 @@ types:
14
14
  SlackBridgeUserInfoOutputRepresentation:
15
15
  (luvio.ttl): 600000
16
16
  (luvio.key):
17
- teamId: teamId
18
17
  slackUserId: slackUserId
19
18
  SlackBridgePostMessageOutputRepresentation:
20
19
  (luvio.key):
@@ -157,7 +156,6 @@ types:
157
156
  name: getSlackUser
158
157
  (luvio.key):
159
158
  slackUserId: urlParams.slackUserId
160
- teamId: urlParams.teamId
161
159
  /related_threads/entity/{entityId}:
162
160
  get:
163
161
  (luvio.adapter):