@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev22 → 1.332.0-dev24

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 = "bd9de08bc9e9454d5ef4be7f3ab2611e";
499
499
  function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
500
500
  const v_error = (() => {
501
501
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -896,6 +896,90 @@ function validate$k(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
896
896
  message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
897
897
  return new TypeError(message);
898
898
  }
899
+ if (obj.tz !== undefined) {
900
+ const obj_tz = obj.tz;
901
+ const path_tz = path + '.tz';
902
+ let obj_tz_union0 = null;
903
+ const obj_tz_union0_error = (() => {
904
+ if (typeof obj_tz !== 'string') {
905
+ return new TypeError('Expected "string" but received "' + typeof obj_tz + '" (at "' + path_tz + '")');
906
+ }
907
+ })();
908
+ if (obj_tz_union0_error != null) {
909
+ obj_tz_union0 = obj_tz_union0_error.message;
910
+ }
911
+ let obj_tz_union1 = null;
912
+ const obj_tz_union1_error = (() => {
913
+ if (obj_tz !== null) {
914
+ return new TypeError('Expected "null" but received "' + typeof obj_tz + '" (at "' + path_tz + '")');
915
+ }
916
+ })();
917
+ if (obj_tz_union1_error != null) {
918
+ obj_tz_union1 = obj_tz_union1_error.message;
919
+ }
920
+ if (obj_tz_union0 && obj_tz_union1) {
921
+ let message = 'Object doesn\'t match union (at "' + path_tz + '")';
922
+ message += '\n' + obj_tz_union0.split('\n').map((line) => '\t' + line).join('\n');
923
+ message += '\n' + obj_tz_union1.split('\n').map((line) => '\t' + line).join('\n');
924
+ return new TypeError(message);
925
+ }
926
+ }
927
+ if (obj.tzLabel !== undefined) {
928
+ const obj_tzLabel = obj.tzLabel;
929
+ const path_tzLabel = path + '.tzLabel';
930
+ let obj_tzLabel_union0 = null;
931
+ const obj_tzLabel_union0_error = (() => {
932
+ if (typeof obj_tzLabel !== 'string') {
933
+ return new TypeError('Expected "string" but received "' + typeof obj_tzLabel + '" (at "' + path_tzLabel + '")');
934
+ }
935
+ })();
936
+ if (obj_tzLabel_union0_error != null) {
937
+ obj_tzLabel_union0 = obj_tzLabel_union0_error.message;
938
+ }
939
+ let obj_tzLabel_union1 = null;
940
+ const obj_tzLabel_union1_error = (() => {
941
+ if (obj_tzLabel !== null) {
942
+ return new TypeError('Expected "null" but received "' + typeof obj_tzLabel + '" (at "' + path_tzLabel + '")');
943
+ }
944
+ })();
945
+ if (obj_tzLabel_union1_error != null) {
946
+ obj_tzLabel_union1 = obj_tzLabel_union1_error.message;
947
+ }
948
+ if (obj_tzLabel_union0 && obj_tzLabel_union1) {
949
+ let message = 'Object doesn\'t match union (at "' + path_tzLabel + '")';
950
+ message += '\n' + obj_tzLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
951
+ message += '\n' + obj_tzLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
952
+ return new TypeError(message);
953
+ }
954
+ }
955
+ if (obj.tzOffset !== undefined) {
956
+ const obj_tzOffset = obj.tzOffset;
957
+ const path_tzOffset = path + '.tzOffset';
958
+ let obj_tzOffset_union0 = null;
959
+ const obj_tzOffset_union0_error = (() => {
960
+ if (typeof obj_tzOffset !== 'number' || (typeof obj_tzOffset === 'number' && Math.floor(obj_tzOffset) !== obj_tzOffset)) {
961
+ return new TypeError('Expected "integer" but received "' + typeof obj_tzOffset + '" (at "' + path_tzOffset + '")');
962
+ }
963
+ })();
964
+ if (obj_tzOffset_union0_error != null) {
965
+ obj_tzOffset_union0 = obj_tzOffset_union0_error.message;
966
+ }
967
+ let obj_tzOffset_union1 = null;
968
+ const obj_tzOffset_union1_error = (() => {
969
+ if (obj_tzOffset !== null) {
970
+ return new TypeError('Expected "null" but received "' + typeof obj_tzOffset + '" (at "' + path_tzOffset + '")');
971
+ }
972
+ })();
973
+ if (obj_tzOffset_union1_error != null) {
974
+ obj_tzOffset_union1 = obj_tzOffset_union1_error.message;
975
+ }
976
+ if (obj_tzOffset_union0 && obj_tzOffset_union1) {
977
+ let message = 'Object doesn\'t match union (at "' + path_tzOffset + '")';
978
+ message += '\n' + obj_tzOffset_union0.split('\n').map((line) => '\t' + line).join('\n');
979
+ message += '\n' + obj_tzOffset_union1.split('\n').map((line) => '\t' + line).join('\n');
980
+ return new TypeError(message);
981
+ }
982
+ }
899
983
  })();
900
984
  return v_error === undefined ? null : v_error;
901
985
  }
@@ -1013,6 +1097,21 @@ const select$D = function SlackBridgeUserInfoOutputRepresentationSelect() {
1013
1097
  {
1014
1098
  name: 'title',
1015
1099
  kind: 'Scalar'
1100
+ },
1101
+ {
1102
+ name: 'tz',
1103
+ kind: 'Scalar',
1104
+ required: false
1105
+ },
1106
+ {
1107
+ name: 'tzLabel',
1108
+ kind: 'Scalar',
1109
+ required: false
1110
+ },
1111
+ {
1112
+ name: 'tzOffset',
1113
+ kind: 'Scalar',
1114
+ required: false
1016
1115
  }
1017
1116
  ]
1018
1117
  };
@@ -1142,6 +1241,45 @@ function equals$k(existing, incoming) {
1142
1241
  if (!(existing_title === incoming_title)) {
1143
1242
  return false;
1144
1243
  }
1244
+ const existing_tz = existing.tz;
1245
+ const incoming_tz = incoming.tz;
1246
+ // if at least one of these optionals is defined
1247
+ if (existing_tz !== undefined || incoming_tz !== undefined) {
1248
+ // if one of these is not defined we know the other is defined and therefore
1249
+ // not equal
1250
+ if (existing_tz === undefined || incoming_tz === undefined) {
1251
+ return false;
1252
+ }
1253
+ if (!(existing_tz === incoming_tz)) {
1254
+ return false;
1255
+ }
1256
+ }
1257
+ const existing_tzLabel = existing.tzLabel;
1258
+ const incoming_tzLabel = incoming.tzLabel;
1259
+ // if at least one of these optionals is defined
1260
+ if (existing_tzLabel !== undefined || incoming_tzLabel !== undefined) {
1261
+ // if one of these is not defined we know the other is defined and therefore
1262
+ // not equal
1263
+ if (existing_tzLabel === undefined || incoming_tzLabel === undefined) {
1264
+ return false;
1265
+ }
1266
+ if (!(existing_tzLabel === incoming_tzLabel)) {
1267
+ return false;
1268
+ }
1269
+ }
1270
+ const existing_tzOffset = existing.tzOffset;
1271
+ const incoming_tzOffset = incoming.tzOffset;
1272
+ // if at least one of these optionals is defined
1273
+ if (existing_tzOffset !== undefined || incoming_tzOffset !== undefined) {
1274
+ // if one of these is not defined we know the other is defined and therefore
1275
+ // not equal
1276
+ if (existing_tzOffset === undefined || incoming_tzOffset === undefined) {
1277
+ return false;
1278
+ }
1279
+ if (!(existing_tzOffset === incoming_tzOffset)) {
1280
+ return false;
1281
+ }
1282
+ }
1145
1283
  return true;
1146
1284
  }
1147
1285
  const ingest$g = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -1,7 +1,7 @@
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 = "bd9de08bc9e9454d5ef4be7f3ab2611e";
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 {
@@ -74,6 +74,12 @@ export interface SlackBridgeUserInfoOutputRepresentationNormalized {
74
74
  teamId: string;
75
75
  /** Title of the Slack User */
76
76
  title: string | null;
77
+ /** Time zone of the Slack user, ie. America/New_York */
78
+ tz?: string | null;
79
+ /** Time zone label of the Slack user, ie. Eastern Daylight Time */
80
+ tzLabel?: string | null;
81
+ /** Time zone offset from UTC, ie. -14400 */
82
+ tzOffset?: number | null;
77
83
  }
78
84
  /**
79
85
  * Contains the details of Slack User
@@ -102,4 +108,7 @@ export interface SlackBridgeUserInfoOutputRepresentation {
102
108
  statusMessage: string | null;
103
109
  teamId: string;
104
110
  title: string | null;
111
+ tz?: string | null;
112
+ tzLabel?: string | null;
113
+ tzOffset?: number | null;
105
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.332.0-dev22",
3
+ "version": "1.332.0-dev24",
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-dev22"
43
+ "@salesforce/lds-bindings": "^1.332.0-dev24"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev22"
46
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev24"
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 = "bd9de08bc9e9454d5ef4be7f3ab2611e";
3327
3327
  function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
3328
3328
  const v_error = (() => {
3329
3329
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3724,6 +3724,90 @@ function validate$9(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
3724
3724
  message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
3725
3725
  return new TypeError(message);
3726
3726
  }
3727
+ if (obj.tz !== undefined) {
3728
+ const obj_tz = obj.tz;
3729
+ const path_tz = path + '.tz';
3730
+ let obj_tz_union0 = null;
3731
+ const obj_tz_union0_error = (() => {
3732
+ if (typeof obj_tz !== 'string') {
3733
+ return new TypeError('Expected "string" but received "' + typeof obj_tz + '" (at "' + path_tz + '")');
3734
+ }
3735
+ })();
3736
+ if (obj_tz_union0_error != null) {
3737
+ obj_tz_union0 = obj_tz_union0_error.message;
3738
+ }
3739
+ let obj_tz_union1 = null;
3740
+ const obj_tz_union1_error = (() => {
3741
+ if (obj_tz !== null) {
3742
+ return new TypeError('Expected "null" but received "' + typeof obj_tz + '" (at "' + path_tz + '")');
3743
+ }
3744
+ })();
3745
+ if (obj_tz_union1_error != null) {
3746
+ obj_tz_union1 = obj_tz_union1_error.message;
3747
+ }
3748
+ if (obj_tz_union0 && obj_tz_union1) {
3749
+ let message = 'Object doesn\'t match union (at "' + path_tz + '")';
3750
+ message += '\n' + obj_tz_union0.split('\n').map((line) => '\t' + line).join('\n');
3751
+ message += '\n' + obj_tz_union1.split('\n').map((line) => '\t' + line).join('\n');
3752
+ return new TypeError(message);
3753
+ }
3754
+ }
3755
+ if (obj.tzLabel !== undefined) {
3756
+ const obj_tzLabel = obj.tzLabel;
3757
+ const path_tzLabel = path + '.tzLabel';
3758
+ let obj_tzLabel_union0 = null;
3759
+ const obj_tzLabel_union0_error = (() => {
3760
+ if (typeof obj_tzLabel !== 'string') {
3761
+ return new TypeError('Expected "string" but received "' + typeof obj_tzLabel + '" (at "' + path_tzLabel + '")');
3762
+ }
3763
+ })();
3764
+ if (obj_tzLabel_union0_error != null) {
3765
+ obj_tzLabel_union0 = obj_tzLabel_union0_error.message;
3766
+ }
3767
+ let obj_tzLabel_union1 = null;
3768
+ const obj_tzLabel_union1_error = (() => {
3769
+ if (obj_tzLabel !== null) {
3770
+ return new TypeError('Expected "null" but received "' + typeof obj_tzLabel + '" (at "' + path_tzLabel + '")');
3771
+ }
3772
+ })();
3773
+ if (obj_tzLabel_union1_error != null) {
3774
+ obj_tzLabel_union1 = obj_tzLabel_union1_error.message;
3775
+ }
3776
+ if (obj_tzLabel_union0 && obj_tzLabel_union1) {
3777
+ let message = 'Object doesn\'t match union (at "' + path_tzLabel + '")';
3778
+ message += '\n' + obj_tzLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
3779
+ message += '\n' + obj_tzLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
3780
+ return new TypeError(message);
3781
+ }
3782
+ }
3783
+ if (obj.tzOffset !== undefined) {
3784
+ const obj_tzOffset = obj.tzOffset;
3785
+ const path_tzOffset = path + '.tzOffset';
3786
+ let obj_tzOffset_union0 = null;
3787
+ const obj_tzOffset_union0_error = (() => {
3788
+ if (typeof obj_tzOffset !== 'number' || (typeof obj_tzOffset === 'number' && Math.floor(obj_tzOffset) !== obj_tzOffset)) {
3789
+ return new TypeError('Expected "integer" but received "' + typeof obj_tzOffset + '" (at "' + path_tzOffset + '")');
3790
+ }
3791
+ })();
3792
+ if (obj_tzOffset_union0_error != null) {
3793
+ obj_tzOffset_union0 = obj_tzOffset_union0_error.message;
3794
+ }
3795
+ let obj_tzOffset_union1 = null;
3796
+ const obj_tzOffset_union1_error = (() => {
3797
+ if (obj_tzOffset !== null) {
3798
+ return new TypeError('Expected "null" but received "' + typeof obj_tzOffset + '" (at "' + path_tzOffset + '")');
3799
+ }
3800
+ })();
3801
+ if (obj_tzOffset_union1_error != null) {
3802
+ obj_tzOffset_union1 = obj_tzOffset_union1_error.message;
3803
+ }
3804
+ if (obj_tzOffset_union0 && obj_tzOffset_union1) {
3805
+ let message = 'Object doesn\'t match union (at "' + path_tzOffset + '")';
3806
+ message += '\n' + obj_tzOffset_union0.split('\n').map((line) => '\t' + line).join('\n');
3807
+ message += '\n' + obj_tzOffset_union1.split('\n').map((line) => '\t' + line).join('\n');
3808
+ return new TypeError(message);
3809
+ }
3810
+ }
3727
3811
  })();
3728
3812
  return v_error === undefined ? null : v_error;
3729
3813
  }
@@ -3841,6 +3925,21 @@ const select$r = function SlackBridgeUserInfoOutputRepresentationSelect() {
3841
3925
  {
3842
3926
  name: 'title',
3843
3927
  kind: 'Scalar'
3928
+ },
3929
+ {
3930
+ name: 'tz',
3931
+ kind: 'Scalar',
3932
+ required: false
3933
+ },
3934
+ {
3935
+ name: 'tzLabel',
3936
+ kind: 'Scalar',
3937
+ required: false
3938
+ },
3939
+ {
3940
+ name: 'tzOffset',
3941
+ kind: 'Scalar',
3942
+ required: false
3844
3943
  }
3845
3944
  ]
3846
3945
  };
@@ -3970,6 +4069,45 @@ function equals$9(existing, incoming) {
3970
4069
  if (!(existing_title === incoming_title)) {
3971
4070
  return false;
3972
4071
  }
4072
+ const existing_tz = existing.tz;
4073
+ const incoming_tz = incoming.tz;
4074
+ // if at least one of these optionals is defined
4075
+ if (existing_tz !== undefined || incoming_tz !== undefined) {
4076
+ // if one of these is not defined we know the other is defined and therefore
4077
+ // not equal
4078
+ if (existing_tz === undefined || incoming_tz === undefined) {
4079
+ return false;
4080
+ }
4081
+ if (!(existing_tz === incoming_tz)) {
4082
+ return false;
4083
+ }
4084
+ }
4085
+ const existing_tzLabel = existing.tzLabel;
4086
+ const incoming_tzLabel = incoming.tzLabel;
4087
+ // if at least one of these optionals is defined
4088
+ if (existing_tzLabel !== undefined || incoming_tzLabel !== undefined) {
4089
+ // if one of these is not defined we know the other is defined and therefore
4090
+ // not equal
4091
+ if (existing_tzLabel === undefined || incoming_tzLabel === undefined) {
4092
+ return false;
4093
+ }
4094
+ if (!(existing_tzLabel === incoming_tzLabel)) {
4095
+ return false;
4096
+ }
4097
+ }
4098
+ const existing_tzOffset = existing.tzOffset;
4099
+ const incoming_tzOffset = incoming.tzOffset;
4100
+ // if at least one of these optionals is defined
4101
+ if (existing_tzOffset !== undefined || incoming_tzOffset !== undefined) {
4102
+ // if one of these is not defined we know the other is defined and therefore
4103
+ // not equal
4104
+ if (existing_tzOffset === undefined || incoming_tzOffset === undefined) {
4105
+ return false;
4106
+ }
4107
+ if (!(existing_tzOffset === incoming_tzOffset)) {
4108
+ return false;
4109
+ }
4110
+ }
3973
4111
  return true;
3974
4112
  }
3975
4113
  const ingest$9 = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -7854,4 +7992,4 @@ withDefaultLuvio((luvio) => {
7854
7992
  });
7855
7993
 
7856
7994
  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-dev22-dd082a87cf
7995
+ // version: 1.332.0-dev24-53f8301ac1
package/src/raml/api.raml CHANGED
@@ -653,6 +653,18 @@ types:
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