@salesforce/lds-adapters-platform-slack-bridge 1.380.0-dev15 → 1.380.0-dev17

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.
@@ -1817,7 +1817,7 @@ function equals$q(existing, incoming) {
1817
1817
  }
1818
1818
 
1819
1819
  const TTL$5 = 900000;
1820
- const VERSION$p = "898110c1fd3651e7f407ba56cf0ca85a";
1820
+ const VERSION$p = "a35df81fd20149aae615a01f742cece5";
1821
1821
  function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
1822
1822
  const v_error = (() => {
1823
1823
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2036,6 +2036,34 @@ function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
2036
2036
  message += '\n' + obj_isMember_union1.split('\n').map((line) => '\t' + line).join('\n');
2037
2037
  return new TypeError(message);
2038
2038
  }
2039
+ if (obj.isMpim !== undefined) {
2040
+ const obj_isMpim = obj.isMpim;
2041
+ const path_isMpim = path + '.isMpim';
2042
+ let obj_isMpim_union0 = null;
2043
+ const obj_isMpim_union0_error = (() => {
2044
+ if (typeof obj_isMpim !== 'boolean') {
2045
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
2046
+ }
2047
+ })();
2048
+ if (obj_isMpim_union0_error != null) {
2049
+ obj_isMpim_union0 = obj_isMpim_union0_error.message;
2050
+ }
2051
+ let obj_isMpim_union1 = null;
2052
+ const obj_isMpim_union1_error = (() => {
2053
+ if (obj_isMpim !== null) {
2054
+ return new TypeError('Expected "null" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
2055
+ }
2056
+ })();
2057
+ if (obj_isMpim_union1_error != null) {
2058
+ obj_isMpim_union1 = obj_isMpim_union1_error.message;
2059
+ }
2060
+ if (obj_isMpim_union0 && obj_isMpim_union1) {
2061
+ let message = 'Object doesn\'t match union (at "' + path_isMpim + '")';
2062
+ message += '\n' + obj_isMpim_union0.split('\n').map((line) => '\t' + line).join('\n');
2063
+ message += '\n' + obj_isMpim_union1.split('\n').map((line) => '\t' + line).join('\n');
2064
+ return new TypeError(message);
2065
+ }
2066
+ }
2039
2067
  const obj_isOpen = obj.isOpen;
2040
2068
  const path_isOpen = path + '.isOpen';
2041
2069
  let obj_isOpen_union0 = null;
@@ -2274,8 +2302,29 @@ function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
2274
2302
  }
2275
2303
  const obj_name = obj.name;
2276
2304
  const path_name = path + '.name';
2277
- if (typeof obj_name !== 'string') {
2278
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2305
+ let obj_name_union0 = null;
2306
+ const obj_name_union0_error = (() => {
2307
+ if (typeof obj_name !== 'string') {
2308
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2309
+ }
2310
+ })();
2311
+ if (obj_name_union0_error != null) {
2312
+ obj_name_union0 = obj_name_union0_error.message;
2313
+ }
2314
+ let obj_name_union1 = null;
2315
+ const obj_name_union1_error = (() => {
2316
+ if (obj_name !== null) {
2317
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2318
+ }
2319
+ })();
2320
+ if (obj_name_union1_error != null) {
2321
+ obj_name_union1 = obj_name_union1_error.message;
2322
+ }
2323
+ if (obj_name_union0 && obj_name_union1) {
2324
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
2325
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
2326
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
2327
+ return new TypeError(message);
2279
2328
  }
2280
2329
  const obj_numOfMembers = obj.numOfMembers;
2281
2330
  const path_numOfMembers = path + '.numOfMembers';
@@ -2423,6 +2472,34 @@ function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
2423
2472
  return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
2424
2473
  }
2425
2474
  }
2475
+ if (obj.user !== undefined) {
2476
+ const obj_user = obj.user;
2477
+ const path_user = path + '.user';
2478
+ let obj_user_union0 = null;
2479
+ const obj_user_union0_error = (() => {
2480
+ if (typeof obj_user !== 'string') {
2481
+ return new TypeError('Expected "string" but received "' + typeof obj_user + '" (at "' + path_user + '")');
2482
+ }
2483
+ })();
2484
+ if (obj_user_union0_error != null) {
2485
+ obj_user_union0 = obj_user_union0_error.message;
2486
+ }
2487
+ let obj_user_union1 = null;
2488
+ const obj_user_union1_error = (() => {
2489
+ if (obj_user !== null) {
2490
+ return new TypeError('Expected "null" but received "' + typeof obj_user + '" (at "' + path_user + '")');
2491
+ }
2492
+ })();
2493
+ if (obj_user_union1_error != null) {
2494
+ obj_user_union1 = obj_user_union1_error.message;
2495
+ }
2496
+ if (obj_user_union0 && obj_user_union1) {
2497
+ let message = 'Object doesn\'t match union (at "' + path_user + '")';
2498
+ message += '\n' + obj_user_union0.split('\n').map((line) => '\t' + line).join('\n');
2499
+ message += '\n' + obj_user_union1.split('\n').map((line) => '\t' + line).join('\n');
2500
+ return new TypeError(message);
2501
+ }
2502
+ }
2426
2503
  })();
2427
2504
  return v_error === undefined ? null : v_error;
2428
2505
  }
@@ -2482,6 +2559,11 @@ const select$N = function SlackBridgeConversationInfoOutputRepresentationSelect(
2482
2559
  name: 'isMember',
2483
2560
  kind: 'Scalar'
2484
2561
  },
2562
+ {
2563
+ name: 'isMpim',
2564
+ kind: 'Scalar',
2565
+ required: false
2566
+ },
2485
2567
  {
2486
2568
  name: 'isOpen',
2487
2569
  kind: 'Scalar'
@@ -2552,6 +2634,11 @@ const select$N = function SlackBridgeConversationInfoOutputRepresentationSelect(
2552
2634
  name: 'url',
2553
2635
  kind: 'Scalar',
2554
2636
  required: false
2637
+ },
2638
+ {
2639
+ name: 'user',
2640
+ kind: 'Scalar',
2641
+ required: false
2555
2642
  }
2556
2643
  ]
2557
2644
  };
@@ -2562,11 +2649,6 @@ function equals$p(existing, incoming) {
2562
2649
  if (!(existing_id === incoming_id)) {
2563
2650
  return false;
2564
2651
  }
2565
- const existing_name = existing.name;
2566
- const incoming_name = incoming.name;
2567
- if (!(existing_name === incoming_name)) {
2568
- return false;
2569
- }
2570
2652
  const existing_url = existing.url;
2571
2653
  const incoming_url = incoming.url;
2572
2654
  // if at least one of these optionals is defined
@@ -2620,6 +2702,19 @@ function equals$p(existing, incoming) {
2620
2702
  if (!(existing_isMember === incoming_isMember)) {
2621
2703
  return false;
2622
2704
  }
2705
+ const existing_isMpim = existing.isMpim;
2706
+ const incoming_isMpim = incoming.isMpim;
2707
+ // if at least one of these optionals is defined
2708
+ if (existing_isMpim !== undefined || incoming_isMpim !== undefined) {
2709
+ // if one of these is not defined we know the other is defined and therefore
2710
+ // not equal
2711
+ if (existing_isMpim === undefined || incoming_isMpim === undefined) {
2712
+ return false;
2713
+ }
2714
+ if (!(existing_isMpim === incoming_isMpim)) {
2715
+ return false;
2716
+ }
2717
+ }
2623
2718
  const existing_isOpen = existing.isOpen;
2624
2719
  const incoming_isOpen = incoming.isOpen;
2625
2720
  if (!(existing_isOpen === incoming_isOpen)) {
@@ -2673,6 +2768,11 @@ function equals$p(existing, incoming) {
2673
2768
  return false;
2674
2769
  }
2675
2770
  }
2771
+ const existing_name = existing.name;
2772
+ const incoming_name = incoming.name;
2773
+ if (!(existing_name === incoming_name)) {
2774
+ return false;
2775
+ }
2676
2776
  const existing_numOfMembers = existing.numOfMembers;
2677
2777
  const incoming_numOfMembers = incoming.numOfMembers;
2678
2778
  if (!(existing_numOfMembers === incoming_numOfMembers)) {
@@ -2725,6 +2825,19 @@ function equals$p(existing, incoming) {
2725
2825
  return false;
2726
2826
  }
2727
2827
  }
2828
+ const existing_user = existing.user;
2829
+ const incoming_user = incoming.user;
2830
+ // if at least one of these optionals is defined
2831
+ if (existing_user !== undefined || incoming_user !== undefined) {
2832
+ // if one of these is not defined we know the other is defined and therefore
2833
+ // not equal
2834
+ if (existing_user === undefined || incoming_user === undefined) {
2835
+ return false;
2836
+ }
2837
+ if (!(existing_user === incoming_user)) {
2838
+ return false;
2839
+ }
2840
+ }
2728
2841
  return true;
2729
2842
  }
2730
2843
  const ingest$i = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -2882,12 +2995,43 @@ function equals$o(existing, incoming) {
2882
2995
  return true;
2883
2996
  }
2884
2997
 
2885
- const VERSION$n = "488003a3c8d2f6eea2dab88ab8abf74a";
2998
+ const VERSION$n = "183fbca7ad14ab038244ff7883618c72";
2886
2999
  function validate$n(obj, path = 'SlackBridgeRoomOutputRepresentation') {
2887
3000
  const v_error = (() => {
2888
3001
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2889
3002
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2890
3003
  }
3004
+ const obj_dateEnd = obj.dateEnd;
3005
+ const path_dateEnd = path + '.dateEnd';
3006
+ let obj_dateEnd_union0 = null;
3007
+ const obj_dateEnd_union0_error = (() => {
3008
+ if (typeof obj_dateEnd !== 'number' || (typeof obj_dateEnd === 'number' && Math.floor(obj_dateEnd) !== obj_dateEnd)) {
3009
+ return new TypeError('Expected "integer" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
3010
+ }
3011
+ })();
3012
+ if (obj_dateEnd_union0_error != null) {
3013
+ obj_dateEnd_union0 = obj_dateEnd_union0_error.message;
3014
+ }
3015
+ let obj_dateEnd_union1 = null;
3016
+ const obj_dateEnd_union1_error = (() => {
3017
+ if (obj_dateEnd !== null) {
3018
+ return new TypeError('Expected "null" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
3019
+ }
3020
+ })();
3021
+ if (obj_dateEnd_union1_error != null) {
3022
+ obj_dateEnd_union1 = obj_dateEnd_union1_error.message;
3023
+ }
3024
+ if (obj_dateEnd_union0 && obj_dateEnd_union1) {
3025
+ let message = 'Object doesn\'t match union (at "' + path_dateEnd + '")';
3026
+ message += '\n' + obj_dateEnd_union0.split('\n').map((line) => '\t' + line).join('\n');
3027
+ message += '\n' + obj_dateEnd_union1.split('\n').map((line) => '\t' + line).join('\n');
3028
+ return new TypeError(message);
3029
+ }
3030
+ const obj_dateStart = obj.dateStart;
3031
+ const path_dateStart = path + '.dateStart';
3032
+ if (typeof obj_dateStart !== 'number' || (typeof obj_dateStart === 'number' && Math.floor(obj_dateStart) !== obj_dateStart)) {
3033
+ return new TypeError('Expected "integer" but received "' + typeof obj_dateStart + '" (at "' + path_dateStart + '")');
3034
+ }
2891
3035
  const obj_hasEnded = obj.hasEnded;
2892
3036
  const path_hasEnded = path + '.hasEnded';
2893
3037
  if (typeof obj_hasEnded !== 'boolean') {
@@ -2936,6 +3080,14 @@ const select$L = function SlackBridgeRoomOutputRepresentationSelect() {
2936
3080
  version: VERSION$n,
2937
3081
  private: [],
2938
3082
  selections: [
3083
+ {
3084
+ name: 'dateEnd',
3085
+ kind: 'Scalar'
3086
+ },
3087
+ {
3088
+ name: 'dateStart',
3089
+ kind: 'Scalar'
3090
+ },
2939
3091
  {
2940
3092
  name: 'hasEnded',
2941
3093
  kind: 'Scalar'
@@ -2967,6 +3119,11 @@ function equals$n(existing, incoming) {
2967
3119
  if (!(existing_hasEnded === incoming_hasEnded)) {
2968
3120
  return false;
2969
3121
  }
3122
+ const existing_dateStart = existing.dateStart;
3123
+ const incoming_dateStart = incoming.dateStart;
3124
+ if (!(existing_dateStart === incoming_dateStart)) {
3125
+ return false;
3126
+ }
2970
3127
  const existing_huddleLink = existing.huddleLink;
2971
3128
  const incoming_huddleLink = incoming.huddleLink;
2972
3129
  if (!(existing_huddleLink === incoming_huddleLink)) {
@@ -2977,6 +3134,11 @@ function equals$n(existing, incoming) {
2977
3134
  if (!(existing_id === incoming_id)) {
2978
3135
  return false;
2979
3136
  }
3137
+ const existing_dateEnd = existing.dateEnd;
3138
+ const incoming_dateEnd = incoming.dateEnd;
3139
+ if (!(existing_dateEnd === incoming_dateEnd)) {
3140
+ return false;
3141
+ }
2980
3142
  const existing_participantHistory = existing.participantHistory;
2981
3143
  const incoming_participantHistory = incoming.participantHistory;
2982
3144
  const equals_participantHistory_items = equalsArray(existing_participantHistory, incoming_participantHistory, (existing_participantHistory_item, incoming_participantHistory_item) => {
@@ -1,7 +1,7 @@
1
1
  import { SlackBridgeConversationPropertiesOutputRepresentation as SlackBridgeConversationPropertiesOutputRepresentation_SlackBridgeConversationPropertiesOutputRepresentation } from './SlackBridgeConversationPropertiesOutputRepresentation';
2
2
  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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
3
  export declare const TTL = 900000;
4
- export declare const VERSION = "898110c1fd3651e7f407ba56cf0ca85a";
4
+ export declare const VERSION = "a35df81fd20149aae615a01f742cece5";
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 {
@@ -43,6 +43,8 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
43
43
  isIm: boolean | null;
44
44
  /** Is the context User a member of this Conversation? */
45
45
  isMember: boolean | null;
46
+ /** Is this MPDM? */
47
+ isMpim?: boolean | null;
46
48
  /** Is this conversation open? */
47
49
  isOpen: boolean | null;
48
50
  /** Is this conversation org shared? */
@@ -62,7 +64,7 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
62
64
  /** The timestamp of the last message in this conversation */
63
65
  latest?: string | null;
64
66
  /** Name of the Conversation */
65
- name: string;
67
+ name: string | null;
66
68
  /** Number of members in the Conversation */
67
69
  numOfMembers: number | null;
68
70
  /** The properties of the conversation */
@@ -75,6 +77,8 @@ export interface SlackBridgeConversationInfoOutputRepresentationNormalized {
75
77
  unreadCountDisplay?: number | null;
76
78
  /** The URL to the channel */
77
79
  url?: string;
80
+ /** Id of user participating in a DM */
81
+ user?: string | null;
78
82
  }
79
83
  /**
80
84
  * Contains the conversation info
@@ -92,6 +96,7 @@ export interface SlackBridgeConversationInfoOutputRepresentation {
92
96
  isGroup: boolean | null;
93
97
  isIm: boolean | null;
94
98
  isMember: boolean | null;
99
+ isMpim?: boolean | null;
95
100
  isOpen: boolean | null;
96
101
  isOrgShared: boolean | null;
97
102
  isPendingExtShared: boolean | null;
@@ -101,11 +106,12 @@ export interface SlackBridgeConversationInfoOutputRepresentation {
101
106
  isThreadOnly: boolean | null;
102
107
  lastRead: string | null;
103
108
  latest?: string | null;
104
- name: string;
109
+ name: string | null;
105
110
  numOfMembers: number | null;
106
111
  properties?: SlackBridgeConversationPropertiesOutputRepresentation_SlackBridgeConversationPropertiesOutputRepresentation | null;
107
112
  shouldCacheCustomEmoji: boolean | null;
108
113
  unreadCount?: number | null;
109
114
  unreadCountDisplay?: number | null;
110
115
  url?: string;
116
+ user?: string | null;
111
117
  }
@@ -1,5 +1,5 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "488003a3c8d2f6eea2dab88ab8abf74a";
2
+ export declare const VERSION = "183fbca7ad14ab038244ff7883618c72";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: SlackBridgeRoomOutputRepresentation, existing: SlackBridgeRoomOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SlackBridgeRoomOutputRepresentationNormalized;
@@ -14,6 +14,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface SlackBridgeRoomOutputRepresentationNormalized {
17
+ /** Ending date of the huddle */
18
+ dateEnd: number | null;
19
+ /** Starting date of the huddle */
20
+ dateStart: number;
17
21
  /** Whether the huddle has ended */
18
22
  hasEnded: boolean;
19
23
  /** Link to join the huddle in Slack */
@@ -32,6 +36,8 @@ export interface SlackBridgeRoomOutputRepresentationNormalized {
32
36
  * (none)
33
37
  */
34
38
  export interface SlackBridgeRoomOutputRepresentation {
39
+ dateEnd: number | null;
40
+ dateStart: number;
35
41
  hasEnded: boolean;
36
42
  huddleLink: string;
37
43
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-slack-bridge",
3
- "version": "1.380.0-dev15",
3
+ "version": "1.380.0-dev17",
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.380.0-dev15"
43
+ "@salesforce/lds-bindings": "^1.380.0-dev17"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.380.0-dev15"
46
+ "@salesforce/lds-compiler-plugins": "^1.380.0-dev17"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1117,7 +1117,7 @@ function equals$q(existing, incoming) {
1117
1117
  }
1118
1118
 
1119
1119
  const TTL$7 = 900000;
1120
- const VERSION$p = "898110c1fd3651e7f407ba56cf0ca85a";
1120
+ const VERSION$p = "a35df81fd20149aae615a01f742cece5";
1121
1121
  function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
1122
1122
  const v_error = (() => {
1123
1123
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1336,6 +1336,34 @@ function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
1336
1336
  message += '\n' + obj_isMember_union1.split('\n').map((line) => '\t' + line).join('\n');
1337
1337
  return new TypeError(message);
1338
1338
  }
1339
+ if (obj.isMpim !== undefined) {
1340
+ const obj_isMpim = obj.isMpim;
1341
+ const path_isMpim = path + '.isMpim';
1342
+ let obj_isMpim_union0 = null;
1343
+ const obj_isMpim_union0_error = (() => {
1344
+ if (typeof obj_isMpim !== 'boolean') {
1345
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
1346
+ }
1347
+ })();
1348
+ if (obj_isMpim_union0_error != null) {
1349
+ obj_isMpim_union0 = obj_isMpim_union0_error.message;
1350
+ }
1351
+ let obj_isMpim_union1 = null;
1352
+ const obj_isMpim_union1_error = (() => {
1353
+ if (obj_isMpim !== null) {
1354
+ return new TypeError('Expected "null" but received "' + typeof obj_isMpim + '" (at "' + path_isMpim + '")');
1355
+ }
1356
+ })();
1357
+ if (obj_isMpim_union1_error != null) {
1358
+ obj_isMpim_union1 = obj_isMpim_union1_error.message;
1359
+ }
1360
+ if (obj_isMpim_union0 && obj_isMpim_union1) {
1361
+ let message = 'Object doesn\'t match union (at "' + path_isMpim + '")';
1362
+ message += '\n' + obj_isMpim_union0.split('\n').map((line) => '\t' + line).join('\n');
1363
+ message += '\n' + obj_isMpim_union1.split('\n').map((line) => '\t' + line).join('\n');
1364
+ return new TypeError(message);
1365
+ }
1366
+ }
1339
1367
  const obj_isOpen = obj.isOpen;
1340
1368
  const path_isOpen = path + '.isOpen';
1341
1369
  let obj_isOpen_union0 = null;
@@ -1574,8 +1602,29 @@ function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
1574
1602
  }
1575
1603
  const obj_name = obj.name;
1576
1604
  const path_name = path + '.name';
1577
- if (typeof obj_name !== 'string') {
1578
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1605
+ let obj_name_union0 = null;
1606
+ const obj_name_union0_error = (() => {
1607
+ if (typeof obj_name !== 'string') {
1608
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1609
+ }
1610
+ })();
1611
+ if (obj_name_union0_error != null) {
1612
+ obj_name_union0 = obj_name_union0_error.message;
1613
+ }
1614
+ let obj_name_union1 = null;
1615
+ const obj_name_union1_error = (() => {
1616
+ if (obj_name !== null) {
1617
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1618
+ }
1619
+ })();
1620
+ if (obj_name_union1_error != null) {
1621
+ obj_name_union1 = obj_name_union1_error.message;
1622
+ }
1623
+ if (obj_name_union0 && obj_name_union1) {
1624
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
1625
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
1626
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
1627
+ return new TypeError(message);
1579
1628
  }
1580
1629
  const obj_numOfMembers = obj.numOfMembers;
1581
1630
  const path_numOfMembers = path + '.numOfMembers';
@@ -1723,6 +1772,34 @@ function validate$p(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
1723
1772
  return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1724
1773
  }
1725
1774
  }
1775
+ if (obj.user !== undefined) {
1776
+ const obj_user = obj.user;
1777
+ const path_user = path + '.user';
1778
+ let obj_user_union0 = null;
1779
+ const obj_user_union0_error = (() => {
1780
+ if (typeof obj_user !== 'string') {
1781
+ return new TypeError('Expected "string" but received "' + typeof obj_user + '" (at "' + path_user + '")');
1782
+ }
1783
+ })();
1784
+ if (obj_user_union0_error != null) {
1785
+ obj_user_union0 = obj_user_union0_error.message;
1786
+ }
1787
+ let obj_user_union1 = null;
1788
+ const obj_user_union1_error = (() => {
1789
+ if (obj_user !== null) {
1790
+ return new TypeError('Expected "null" but received "' + typeof obj_user + '" (at "' + path_user + '")');
1791
+ }
1792
+ })();
1793
+ if (obj_user_union1_error != null) {
1794
+ obj_user_union1 = obj_user_union1_error.message;
1795
+ }
1796
+ if (obj_user_union0 && obj_user_union1) {
1797
+ let message = 'Object doesn\'t match union (at "' + path_user + '")';
1798
+ message += '\n' + obj_user_union0.split('\n').map((line) => '\t' + line).join('\n');
1799
+ message += '\n' + obj_user_union1.split('\n').map((line) => '\t' + line).join('\n');
1800
+ return new TypeError(message);
1801
+ }
1802
+ }
1726
1803
  })();
1727
1804
  return v_error === undefined ? null : v_error;
1728
1805
  }
@@ -1782,6 +1859,11 @@ const select$N = function SlackBridgeConversationInfoOutputRepresentationSelect(
1782
1859
  name: 'isMember',
1783
1860
  kind: 'Scalar'
1784
1861
  },
1862
+ {
1863
+ name: 'isMpim',
1864
+ kind: 'Scalar',
1865
+ required: false
1866
+ },
1785
1867
  {
1786
1868
  name: 'isOpen',
1787
1869
  kind: 'Scalar'
@@ -1852,6 +1934,11 @@ const select$N = function SlackBridgeConversationInfoOutputRepresentationSelect(
1852
1934
  name: 'url',
1853
1935
  kind: 'Scalar',
1854
1936
  required: false
1937
+ },
1938
+ {
1939
+ name: 'user',
1940
+ kind: 'Scalar',
1941
+ required: false
1855
1942
  }
1856
1943
  ]
1857
1944
  };
@@ -1862,11 +1949,6 @@ function equals$p(existing, incoming) {
1862
1949
  if (!(existing_id === incoming_id)) {
1863
1950
  return false;
1864
1951
  }
1865
- const existing_name = existing.name;
1866
- const incoming_name = incoming.name;
1867
- if (!(existing_name === incoming_name)) {
1868
- return false;
1869
- }
1870
1952
  const existing_url = existing.url;
1871
1953
  const incoming_url = incoming.url;
1872
1954
  // if at least one of these optionals is defined
@@ -1920,6 +2002,19 @@ function equals$p(existing, incoming) {
1920
2002
  if (!(existing_isMember === incoming_isMember)) {
1921
2003
  return false;
1922
2004
  }
2005
+ const existing_isMpim = existing.isMpim;
2006
+ const incoming_isMpim = incoming.isMpim;
2007
+ // if at least one of these optionals is defined
2008
+ if (existing_isMpim !== undefined || incoming_isMpim !== undefined) {
2009
+ // if one of these is not defined we know the other is defined and therefore
2010
+ // not equal
2011
+ if (existing_isMpim === undefined || incoming_isMpim === undefined) {
2012
+ return false;
2013
+ }
2014
+ if (!(existing_isMpim === incoming_isMpim)) {
2015
+ return false;
2016
+ }
2017
+ }
1923
2018
  const existing_isOpen = existing.isOpen;
1924
2019
  const incoming_isOpen = incoming.isOpen;
1925
2020
  if (!(existing_isOpen === incoming_isOpen)) {
@@ -1973,6 +2068,11 @@ function equals$p(existing, incoming) {
1973
2068
  return false;
1974
2069
  }
1975
2070
  }
2071
+ const existing_name = existing.name;
2072
+ const incoming_name = incoming.name;
2073
+ if (!(existing_name === incoming_name)) {
2074
+ return false;
2075
+ }
1976
2076
  const existing_numOfMembers = existing.numOfMembers;
1977
2077
  const incoming_numOfMembers = incoming.numOfMembers;
1978
2078
  if (!(existing_numOfMembers === incoming_numOfMembers)) {
@@ -2025,6 +2125,19 @@ function equals$p(existing, incoming) {
2025
2125
  return false;
2026
2126
  }
2027
2127
  }
2128
+ const existing_user = existing.user;
2129
+ const incoming_user = incoming.user;
2130
+ // if at least one of these optionals is defined
2131
+ if (existing_user !== undefined || incoming_user !== undefined) {
2132
+ // if one of these is not defined we know the other is defined and therefore
2133
+ // not equal
2134
+ if (existing_user === undefined || incoming_user === undefined) {
2135
+ return false;
2136
+ }
2137
+ if (!(existing_user === incoming_user)) {
2138
+ return false;
2139
+ }
2140
+ }
2028
2141
  return true;
2029
2142
  }
2030
2143
  const ingest$h = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -2049,12 +2162,43 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
2049
2162
  });
2050
2163
  }
2051
2164
 
2052
- const VERSION$o = "488003a3c8d2f6eea2dab88ab8abf74a";
2165
+ const VERSION$o = "183fbca7ad14ab038244ff7883618c72";
2053
2166
  function validate$o(obj, path = 'SlackBridgeRoomOutputRepresentation') {
2054
2167
  const v_error = (() => {
2055
2168
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2056
2169
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2057
2170
  }
2171
+ const obj_dateEnd = obj.dateEnd;
2172
+ const path_dateEnd = path + '.dateEnd';
2173
+ let obj_dateEnd_union0 = null;
2174
+ const obj_dateEnd_union0_error = (() => {
2175
+ if (typeof obj_dateEnd !== 'number' || (typeof obj_dateEnd === 'number' && Math.floor(obj_dateEnd) !== obj_dateEnd)) {
2176
+ return new TypeError('Expected "integer" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
2177
+ }
2178
+ })();
2179
+ if (obj_dateEnd_union0_error != null) {
2180
+ obj_dateEnd_union0 = obj_dateEnd_union0_error.message;
2181
+ }
2182
+ let obj_dateEnd_union1 = null;
2183
+ const obj_dateEnd_union1_error = (() => {
2184
+ if (obj_dateEnd !== null) {
2185
+ return new TypeError('Expected "null" but received "' + typeof obj_dateEnd + '" (at "' + path_dateEnd + '")');
2186
+ }
2187
+ })();
2188
+ if (obj_dateEnd_union1_error != null) {
2189
+ obj_dateEnd_union1 = obj_dateEnd_union1_error.message;
2190
+ }
2191
+ if (obj_dateEnd_union0 && obj_dateEnd_union1) {
2192
+ let message = 'Object doesn\'t match union (at "' + path_dateEnd + '")';
2193
+ message += '\n' + obj_dateEnd_union0.split('\n').map((line) => '\t' + line).join('\n');
2194
+ message += '\n' + obj_dateEnd_union1.split('\n').map((line) => '\t' + line).join('\n');
2195
+ return new TypeError(message);
2196
+ }
2197
+ const obj_dateStart = obj.dateStart;
2198
+ const path_dateStart = path + '.dateStart';
2199
+ if (typeof obj_dateStart !== 'number' || (typeof obj_dateStart === 'number' && Math.floor(obj_dateStart) !== obj_dateStart)) {
2200
+ return new TypeError('Expected "integer" but received "' + typeof obj_dateStart + '" (at "' + path_dateStart + '")');
2201
+ }
2058
2202
  const obj_hasEnded = obj.hasEnded;
2059
2203
  const path_hasEnded = path + '.hasEnded';
2060
2204
  if (typeof obj_hasEnded !== 'boolean') {
@@ -2103,6 +2247,14 @@ const select$M = function SlackBridgeRoomOutputRepresentationSelect() {
2103
2247
  version: VERSION$o,
2104
2248
  private: [],
2105
2249
  selections: [
2250
+ {
2251
+ name: 'dateEnd',
2252
+ kind: 'Scalar'
2253
+ },
2254
+ {
2255
+ name: 'dateStart',
2256
+ kind: 'Scalar'
2257
+ },
2106
2258
  {
2107
2259
  name: 'hasEnded',
2108
2260
  kind: 'Scalar'
@@ -2134,6 +2286,11 @@ function equals$o(existing, incoming) {
2134
2286
  if (!(existing_hasEnded === incoming_hasEnded)) {
2135
2287
  return false;
2136
2288
  }
2289
+ const existing_dateStart = existing.dateStart;
2290
+ const incoming_dateStart = incoming.dateStart;
2291
+ if (!(existing_dateStart === incoming_dateStart)) {
2292
+ return false;
2293
+ }
2137
2294
  const existing_huddleLink = existing.huddleLink;
2138
2295
  const incoming_huddleLink = incoming.huddleLink;
2139
2296
  if (!(existing_huddleLink === incoming_huddleLink)) {
@@ -2144,6 +2301,11 @@ function equals$o(existing, incoming) {
2144
2301
  if (!(existing_id === incoming_id)) {
2145
2302
  return false;
2146
2303
  }
2304
+ const existing_dateEnd = existing.dateEnd;
2305
+ const incoming_dateEnd = incoming.dateEnd;
2306
+ if (!(existing_dateEnd === incoming_dateEnd)) {
2307
+ return false;
2308
+ }
2147
2309
  const existing_participantHistory = existing.participantHistory;
2148
2310
  const incoming_participantHistory = incoming.participantHistory;
2149
2311
  const equals_participantHistory_items = equalsArray(existing_participantHistory, incoming_participantHistory, (existing_participantHistory_item, incoming_participantHistory_item) => {
@@ -11631,4 +11793,4 @@ withDefaultLuvio((luvio) => {
11631
11793
  });
11632
11794
 
11633
11795
  export { deleteSlackConversationMember, deleteSlackMessage, deleteSlackMessageReactions, getRelatedThreads, getRelatedThreads_imperative, getSlackConversation, getSlackConversationInfo, getSlackConversationInfoNotifyChange, getSlackConversationInfo_imperative, getSlackConversationInfos, getSlackConversationInfos_imperative, getSlackConversationMember, getSlackConversationMemberNotifyChange, getSlackConversationMember_imperative, getSlackConversationMembers, getSlackConversationMembersNotifyChange, getSlackConversationMembers_imperative, getSlackConversation_imperative, getSlackDisplayLogin, getSlackDisplayLogin_imperative, getSlackEmoji, getSlackEmojiNotifyChange, getSlackEmoji_imperative, getSlackEmojis, getSlackEmojis_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackRecordChannelInfo, getSlackRecordChannelInfoNotifyChange, getSlackRecordChannelInfo_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchMPIMs, getSlackSearchMPIMs_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, openSlackConversation, patchSlackMessage, postSlackConversation, postSlackConversationMark, postSlackConversationMembers, postSlackFile, postSlackMessageReactions, postSlackRecordChannelInfos };
11634
- // version: 1.380.0-dev15-0abe79ad34
11796
+ // version: 1.380.0-dev17-3c1fba88a1
package/src/raml/api.raml CHANGED
@@ -126,6 +126,10 @@ types:
126
126
  isMember:
127
127
  description: Is the context User a member of this Conversation?
128
128
  type: boolean | nil
129
+ isMpim:
130
+ description: Is this MPDM?
131
+ required: false
132
+ type: boolean | nil
129
133
  isOpen:
130
134
  description: Is this conversation open?
131
135
  type: boolean | nil
@@ -157,7 +161,7 @@ types:
157
161
  type: string | nil
158
162
  name:
159
163
  description: Name of the Conversation
160
- type: string
164
+ type: string | nil
161
165
  numOfMembers:
162
166
  description: Number of members in the Conversation
163
167
  type: integer | nil
@@ -181,6 +185,10 @@ types:
181
185
  description: The URL to the channel
182
186
  required: false
183
187
  type: string
188
+ user:
189
+ description: Id of user participating in a DM
190
+ required: false
191
+ type: string | nil
184
192
  SlackBridgeConversationInfosOutputRepresentation:
185
193
  description: Contains the list of Slack Conversation Information
186
194
  type: object
@@ -610,6 +618,12 @@ types:
610
618
  id:
611
619
  description: Id of the room (huddle)
612
620
  type: string
621
+ dateStart:
622
+ description: Starting date of the huddle
623
+ type: integer
624
+ dateEnd:
625
+ description: Ending date of the huddle
626
+ type: integer | nil
613
627
  hasEnded:
614
628
  type: boolean
615
629
  description: Whether the huddle has ended