@salesforce/lds-adapters-service-slack 1.308.0-dev5 → 1.308.0-dev7

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.
@@ -2485,7 +2485,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2485
2485
  }
2486
2486
 
2487
2487
  const TTL$2 = 300;
2488
- const VERSION$7 = "155a7547919a1aa304f8c76ed4893043";
2488
+ const VERSION$7 = "f13e32c2aedd6b70cf8a701ed37990b7";
2489
2489
  function validate$7(obj, path = 'SlackMessageOutputRepresentation') {
2490
2490
  const v_error = (() => {
2491
2491
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2567,8 +2567,29 @@ function validate$7(obj, path = 'SlackMessageOutputRepresentation') {
2567
2567
  }
2568
2568
  const obj_isBroadcast = obj.isBroadcast;
2569
2569
  const path_isBroadcast = path + '.isBroadcast';
2570
- if (typeof obj_isBroadcast !== 'boolean') {
2571
- return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
2570
+ let obj_isBroadcast_union0 = null;
2571
+ const obj_isBroadcast_union0_error = (() => {
2572
+ if (typeof obj_isBroadcast !== 'boolean') {
2573
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
2574
+ }
2575
+ })();
2576
+ if (obj_isBroadcast_union0_error != null) {
2577
+ obj_isBroadcast_union0 = obj_isBroadcast_union0_error.message;
2578
+ }
2579
+ let obj_isBroadcast_union1 = null;
2580
+ const obj_isBroadcast_union1_error = (() => {
2581
+ if (obj_isBroadcast !== null) {
2582
+ return new TypeError('Expected "null" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
2583
+ }
2584
+ })();
2585
+ if (obj_isBroadcast_union1_error != null) {
2586
+ obj_isBroadcast_union1 = obj_isBroadcast_union1_error.message;
2587
+ }
2588
+ if (obj_isBroadcast_union0 && obj_isBroadcast_union1) {
2589
+ let message = 'Object doesn\'t match union (at "' + path_isBroadcast + '")';
2590
+ message += '\n' + obj_isBroadcast_union0.split('\n').map((line) => '\t' + line).join('\n');
2591
+ message += '\n' + obj_isBroadcast_union1.split('\n').map((line) => '\t' + line).join('\n');
2592
+ return new TypeError(message);
2572
2593
  }
2573
2594
  const obj_isEditable = obj.isEditable;
2574
2595
  const path_isEditable = path + '.isEditable';
@@ -2577,13 +2598,55 @@ function validate$7(obj, path = 'SlackMessageOutputRepresentation') {
2577
2598
  }
2578
2599
  const obj_isEdited = obj.isEdited;
2579
2600
  const path_isEdited = path + '.isEdited';
2580
- if (typeof obj_isEdited !== 'boolean') {
2581
- return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
2601
+ let obj_isEdited_union0 = null;
2602
+ const obj_isEdited_union0_error = (() => {
2603
+ if (typeof obj_isEdited !== 'boolean') {
2604
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
2605
+ }
2606
+ })();
2607
+ if (obj_isEdited_union0_error != null) {
2608
+ obj_isEdited_union0 = obj_isEdited_union0_error.message;
2609
+ }
2610
+ let obj_isEdited_union1 = null;
2611
+ const obj_isEdited_union1_error = (() => {
2612
+ if (obj_isEdited !== null) {
2613
+ return new TypeError('Expected "null" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
2614
+ }
2615
+ })();
2616
+ if (obj_isEdited_union1_error != null) {
2617
+ obj_isEdited_union1 = obj_isEdited_union1_error.message;
2618
+ }
2619
+ if (obj_isEdited_union0 && obj_isEdited_union1) {
2620
+ let message = 'Object doesn\'t match union (at "' + path_isEdited + '")';
2621
+ message += '\n' + obj_isEdited_union0.split('\n').map((line) => '\t' + line).join('\n');
2622
+ message += '\n' + obj_isEdited_union1.split('\n').map((line) => '\t' + line).join('\n');
2623
+ return new TypeError(message);
2582
2624
  }
2583
2625
  const obj_isFileReadAllowed = obj.isFileReadAllowed;
2584
2626
  const path_isFileReadAllowed = path + '.isFileReadAllowed';
2585
- if (typeof obj_isFileReadAllowed !== 'boolean') {
2586
- return new TypeError('Expected "boolean" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
2627
+ let obj_isFileReadAllowed_union0 = null;
2628
+ const obj_isFileReadAllowed_union0_error = (() => {
2629
+ if (typeof obj_isFileReadAllowed !== 'boolean') {
2630
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
2631
+ }
2632
+ })();
2633
+ if (obj_isFileReadAllowed_union0_error != null) {
2634
+ obj_isFileReadAllowed_union0 = obj_isFileReadAllowed_union0_error.message;
2635
+ }
2636
+ let obj_isFileReadAllowed_union1 = null;
2637
+ const obj_isFileReadAllowed_union1_error = (() => {
2638
+ if (obj_isFileReadAllowed !== null) {
2639
+ return new TypeError('Expected "null" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
2640
+ }
2641
+ })();
2642
+ if (obj_isFileReadAllowed_union1_error != null) {
2643
+ obj_isFileReadAllowed_union1 = obj_isFileReadAllowed_union1_error.message;
2644
+ }
2645
+ if (obj_isFileReadAllowed_union0 && obj_isFileReadAllowed_union1) {
2646
+ let message = 'Object doesn\'t match union (at "' + path_isFileReadAllowed + '")';
2647
+ message += '\n' + obj_isFileReadAllowed_union0.split('\n').map((line) => '\t' + line).join('\n');
2648
+ message += '\n' + obj_isFileReadAllowed_union1.split('\n').map((line) => '\t' + line).join('\n');
2649
+ return new TypeError(message);
2587
2650
  }
2588
2651
  const obj_latestReplyTimestamp = obj.latestReplyTimestamp;
2589
2652
  const path_latestReplyTimestamp = path + '.latestReplyTimestamp';
@@ -2762,8 +2825,29 @@ function validate$7(obj, path = 'SlackMessageOutputRepresentation') {
2762
2825
  }
2763
2826
  const obj_type = obj.type;
2764
2827
  const path_type = path + '.type';
2765
- if (typeof obj_type !== 'string') {
2766
- return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
2828
+ let obj_type_union0 = null;
2829
+ const obj_type_union0_error = (() => {
2830
+ if (typeof obj_type !== 'string') {
2831
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
2832
+ }
2833
+ })();
2834
+ if (obj_type_union0_error != null) {
2835
+ obj_type_union0 = obj_type_union0_error.message;
2836
+ }
2837
+ let obj_type_union1 = null;
2838
+ const obj_type_union1_error = (() => {
2839
+ if (obj_type !== null) {
2840
+ return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
2841
+ }
2842
+ })();
2843
+ if (obj_type_union1_error != null) {
2844
+ obj_type_union1 = obj_type_union1_error.message;
2845
+ }
2846
+ if (obj_type_union0 && obj_type_union1) {
2847
+ let message = 'Object doesn\'t match union (at "' + path_type + '")';
2848
+ message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
2849
+ message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
2850
+ return new TypeError(message);
2767
2851
  }
2768
2852
  const obj_uniqueKey = obj.uniqueKey;
2769
2853
  const path_uniqueKey = path + '.uniqueKey';
@@ -2973,26 +3057,11 @@ const select$h = function SlackMessageOutputRepresentationSelect() {
2973
3057
  };
2974
3058
  };
2975
3059
  function equals$7(existing, incoming) {
2976
- const existing_isBroadcast = existing.isBroadcast;
2977
- const incoming_isBroadcast = incoming.isBroadcast;
2978
- if (!(existing_isBroadcast === incoming_isBroadcast)) {
2979
- return false;
2980
- }
2981
3060
  const existing_isEditable = existing.isEditable;
2982
3061
  const incoming_isEditable = incoming.isEditable;
2983
3062
  if (!(existing_isEditable === incoming_isEditable)) {
2984
3063
  return false;
2985
3064
  }
2986
- const existing_isEdited = existing.isEdited;
2987
- const incoming_isEdited = incoming.isEdited;
2988
- if (!(existing_isEdited === incoming_isEdited)) {
2989
- return false;
2990
- }
2991
- const existing_isFileReadAllowed = existing.isFileReadAllowed;
2992
- const incoming_isFileReadAllowed = incoming.isFileReadAllowed;
2993
- if (!(existing_isFileReadAllowed === incoming_isFileReadAllowed)) {
2994
- return false;
2995
- }
2996
3065
  const existing_outbound = existing.outbound;
2997
3066
  const incoming_outbound = incoming.outbound;
2998
3067
  if (!(existing_outbound === incoming_outbound)) {
@@ -3023,11 +3092,6 @@ function equals$7(existing, incoming) {
3023
3092
  if (!(existing_teamId === incoming_teamId)) {
3024
3093
  return false;
3025
3094
  }
3026
- const existing_type = existing.type;
3027
- const incoming_type = incoming.type;
3028
- if (!(existing_type === incoming_type)) {
3029
- return false;
3030
- }
3031
3095
  const existing_uniqueKey = existing.uniqueKey;
3032
3096
  const incoming_uniqueKey = incoming.uniqueKey;
3033
3097
  if (!(existing_uniqueKey === incoming_uniqueKey)) {
@@ -3063,6 +3127,21 @@ function equals$7(existing, incoming) {
3063
3127
  if (!(existing_includesCustomEmoji === incoming_includesCustomEmoji)) {
3064
3128
  return false;
3065
3129
  }
3130
+ const existing_isBroadcast = existing.isBroadcast;
3131
+ const incoming_isBroadcast = incoming.isBroadcast;
3132
+ if (!(existing_isBroadcast === incoming_isBroadcast)) {
3133
+ return false;
3134
+ }
3135
+ const existing_isEdited = existing.isEdited;
3136
+ const incoming_isEdited = incoming.isEdited;
3137
+ if (!(existing_isEdited === incoming_isEdited)) {
3138
+ return false;
3139
+ }
3140
+ const existing_isFileReadAllowed = existing.isFileReadAllowed;
3141
+ const incoming_isFileReadAllowed = incoming.isFileReadAllowed;
3142
+ if (!(existing_isFileReadAllowed === incoming_isFileReadAllowed)) {
3143
+ return false;
3144
+ }
3066
3145
  const existing_latestReplyTimestamp = existing.latestReplyTimestamp;
3067
3146
  const incoming_latestReplyTimestamp = incoming.latestReplyTimestamp;
3068
3147
  if (!(existing_latestReplyTimestamp === incoming_latestReplyTimestamp)) {
@@ -3108,6 +3187,11 @@ function equals$7(existing, incoming) {
3108
3187
  if (!(existing_threadTs === incoming_threadTs)) {
3109
3188
  return false;
3110
3189
  }
3190
+ const existing_type = existing.type;
3191
+ const incoming_type = incoming.type;
3192
+ if (!(existing_type === incoming_type)) {
3193
+ return false;
3194
+ }
3111
3195
  const existing_userInfo = existing.userInfo;
3112
3196
  const incoming_userInfo = incoming.userInfo;
3113
3197
  if (!(existing_userInfo.__ref === incoming_userInfo.__ref)) {
@@ -3,7 +3,7 @@ import { SlackFileOutputRepresentation as SlackFileOutputRepresentation_SlackFil
3
3
  import { SlackReactionOutputRepresentation as SlackReactionOutputRepresentation_SlackReactionOutputRepresentation } from './SlackReactionOutputRepresentation';
4
4
  import { SlackUserInfoOutputRepresentation as SlackUserInfoOutputRepresentation_SlackUserInfoOutputRepresentation } from './SlackUserInfoOutputRepresentation';
5
5
  export declare const TTL = 300;
6
- export declare const VERSION = "155a7547919a1aa304f8c76ed4893043";
6
+ export declare const VERSION = "f13e32c2aedd6b70cf8a701ed37990b7";
7
7
  export declare function validate(obj: any, path?: string): TypeError | null;
8
8
  export declare const RepresentationType: string;
9
9
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -53,13 +53,13 @@ export interface SlackMessageOutputRepresentationNormalized {
53
53
  /** Does this message includes Custom emoji? */
54
54
  includesCustomEmoji: boolean | null;
55
55
  /** Is this a reply also sent to the Channel? */
56
- isBroadcast: boolean;
56
+ isBroadcast: boolean | null;
57
57
  /** Can this message be edited? */
58
58
  isEditable: boolean;
59
59
  /** Is this an edited message? */
60
- isEdited: boolean;
60
+ isEdited: boolean | null;
61
61
  /** Does the App contains required scopes to read Slack files? */
62
- isFileReadAllowed: boolean;
62
+ isFileReadAllowed: boolean | null;
63
63
  /** Latest Reply timestamp */
64
64
  latestReplyTimestamp: string | null;
65
65
  /** Content of the Message */
@@ -85,7 +85,7 @@ export interface SlackMessageOutputRepresentationNormalized {
85
85
  /** Timestamp of the thread to which this message belong to */
86
86
  threadTs: string | null;
87
87
  /** Type of Message */
88
- type: string;
88
+ type: string | null;
89
89
  /** Unique Key for this message */
90
90
  uniqueKey: string;
91
91
  /** Url for this message */
@@ -104,10 +104,10 @@ export interface SlackMessageOutputRepresentation {
104
104
  channelId: string;
105
105
  files: Array<SlackFileOutputRepresentation_SlackFileOutputRepresentation>;
106
106
  includesCustomEmoji: boolean | null;
107
- isBroadcast: boolean;
107
+ isBroadcast: boolean | null;
108
108
  isEditable: boolean;
109
- isEdited: boolean;
110
- isFileReadAllowed: boolean;
109
+ isEdited: boolean | null;
110
+ isFileReadAllowed: boolean | null;
111
111
  latestReplyTimestamp: string | null;
112
112
  message: string;
113
113
  messageEpochMillisecond: number;
@@ -120,7 +120,7 @@ export interface SlackMessageOutputRepresentation {
120
120
  subtype: string | null;
121
121
  teamId: string;
122
122
  threadTs: string | null;
123
- type: string;
123
+ type: string | null;
124
124
  uniqueKey: string;
125
125
  url: string;
126
126
  userInfo: SlackUserInfoOutputRepresentation_SlackUserInfoOutputRepresentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-slack",
3
- "version": "1.308.0-dev5",
3
+ "version": "1.308.0-dev7",
4
4
  "description": "APIs to connect with Slack Conversation",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-slack.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.308.0-dev5"
43
+ "@salesforce/lds-bindings": "^1.308.0-dev7"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.308.0-dev5"
46
+ "@salesforce/lds-compiler-plugins": "^1.308.0-dev7"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1974,7 +1974,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1974
1974
  }
1975
1975
 
1976
1976
  const TTL$2 = 300;
1977
- const VERSION$9 = "155a7547919a1aa304f8c76ed4893043";
1977
+ const VERSION$9 = "f13e32c2aedd6b70cf8a701ed37990b7";
1978
1978
  function validate$9(obj, path = 'SlackMessageOutputRepresentation') {
1979
1979
  const v_error = (() => {
1980
1980
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2056,8 +2056,29 @@ function validate$9(obj, path = 'SlackMessageOutputRepresentation') {
2056
2056
  }
2057
2057
  const obj_isBroadcast = obj.isBroadcast;
2058
2058
  const path_isBroadcast = path + '.isBroadcast';
2059
- if (typeof obj_isBroadcast !== 'boolean') {
2060
- return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
2059
+ let obj_isBroadcast_union0 = null;
2060
+ const obj_isBroadcast_union0_error = (() => {
2061
+ if (typeof obj_isBroadcast !== 'boolean') {
2062
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
2063
+ }
2064
+ })();
2065
+ if (obj_isBroadcast_union0_error != null) {
2066
+ obj_isBroadcast_union0 = obj_isBroadcast_union0_error.message;
2067
+ }
2068
+ let obj_isBroadcast_union1 = null;
2069
+ const obj_isBroadcast_union1_error = (() => {
2070
+ if (obj_isBroadcast !== null) {
2071
+ return new TypeError('Expected "null" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
2072
+ }
2073
+ })();
2074
+ if (obj_isBroadcast_union1_error != null) {
2075
+ obj_isBroadcast_union1 = obj_isBroadcast_union1_error.message;
2076
+ }
2077
+ if (obj_isBroadcast_union0 && obj_isBroadcast_union1) {
2078
+ let message = 'Object doesn\'t match union (at "' + path_isBroadcast + '")';
2079
+ message += '\n' + obj_isBroadcast_union0.split('\n').map((line) => '\t' + line).join('\n');
2080
+ message += '\n' + obj_isBroadcast_union1.split('\n').map((line) => '\t' + line).join('\n');
2081
+ return new TypeError(message);
2061
2082
  }
2062
2083
  const obj_isEditable = obj.isEditable;
2063
2084
  const path_isEditable = path + '.isEditable';
@@ -2066,13 +2087,55 @@ function validate$9(obj, path = 'SlackMessageOutputRepresentation') {
2066
2087
  }
2067
2088
  const obj_isEdited = obj.isEdited;
2068
2089
  const path_isEdited = path + '.isEdited';
2069
- if (typeof obj_isEdited !== 'boolean') {
2070
- return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
2090
+ let obj_isEdited_union0 = null;
2091
+ const obj_isEdited_union0_error = (() => {
2092
+ if (typeof obj_isEdited !== 'boolean') {
2093
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
2094
+ }
2095
+ })();
2096
+ if (obj_isEdited_union0_error != null) {
2097
+ obj_isEdited_union0 = obj_isEdited_union0_error.message;
2098
+ }
2099
+ let obj_isEdited_union1 = null;
2100
+ const obj_isEdited_union1_error = (() => {
2101
+ if (obj_isEdited !== null) {
2102
+ return new TypeError('Expected "null" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
2103
+ }
2104
+ })();
2105
+ if (obj_isEdited_union1_error != null) {
2106
+ obj_isEdited_union1 = obj_isEdited_union1_error.message;
2107
+ }
2108
+ if (obj_isEdited_union0 && obj_isEdited_union1) {
2109
+ let message = 'Object doesn\'t match union (at "' + path_isEdited + '")';
2110
+ message += '\n' + obj_isEdited_union0.split('\n').map((line) => '\t' + line).join('\n');
2111
+ message += '\n' + obj_isEdited_union1.split('\n').map((line) => '\t' + line).join('\n');
2112
+ return new TypeError(message);
2071
2113
  }
2072
2114
  const obj_isFileReadAllowed = obj.isFileReadAllowed;
2073
2115
  const path_isFileReadAllowed = path + '.isFileReadAllowed';
2074
- if (typeof obj_isFileReadAllowed !== 'boolean') {
2075
- return new TypeError('Expected "boolean" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
2116
+ let obj_isFileReadAllowed_union0 = null;
2117
+ const obj_isFileReadAllowed_union0_error = (() => {
2118
+ if (typeof obj_isFileReadAllowed !== 'boolean') {
2119
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
2120
+ }
2121
+ })();
2122
+ if (obj_isFileReadAllowed_union0_error != null) {
2123
+ obj_isFileReadAllowed_union0 = obj_isFileReadAllowed_union0_error.message;
2124
+ }
2125
+ let obj_isFileReadAllowed_union1 = null;
2126
+ const obj_isFileReadAllowed_union1_error = (() => {
2127
+ if (obj_isFileReadAllowed !== null) {
2128
+ return new TypeError('Expected "null" but received "' + typeof obj_isFileReadAllowed + '" (at "' + path_isFileReadAllowed + '")');
2129
+ }
2130
+ })();
2131
+ if (obj_isFileReadAllowed_union1_error != null) {
2132
+ obj_isFileReadAllowed_union1 = obj_isFileReadAllowed_union1_error.message;
2133
+ }
2134
+ if (obj_isFileReadAllowed_union0 && obj_isFileReadAllowed_union1) {
2135
+ let message = 'Object doesn\'t match union (at "' + path_isFileReadAllowed + '")';
2136
+ message += '\n' + obj_isFileReadAllowed_union0.split('\n').map((line) => '\t' + line).join('\n');
2137
+ message += '\n' + obj_isFileReadAllowed_union1.split('\n').map((line) => '\t' + line).join('\n');
2138
+ return new TypeError(message);
2076
2139
  }
2077
2140
  const obj_latestReplyTimestamp = obj.latestReplyTimestamp;
2078
2141
  const path_latestReplyTimestamp = path + '.latestReplyTimestamp';
@@ -2251,8 +2314,29 @@ function validate$9(obj, path = 'SlackMessageOutputRepresentation') {
2251
2314
  }
2252
2315
  const obj_type = obj.type;
2253
2316
  const path_type = path + '.type';
2254
- if (typeof obj_type !== 'string') {
2255
- return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
2317
+ let obj_type_union0 = null;
2318
+ const obj_type_union0_error = (() => {
2319
+ if (typeof obj_type !== 'string') {
2320
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
2321
+ }
2322
+ })();
2323
+ if (obj_type_union0_error != null) {
2324
+ obj_type_union0 = obj_type_union0_error.message;
2325
+ }
2326
+ let obj_type_union1 = null;
2327
+ const obj_type_union1_error = (() => {
2328
+ if (obj_type !== null) {
2329
+ return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
2330
+ }
2331
+ })();
2332
+ if (obj_type_union1_error != null) {
2333
+ obj_type_union1 = obj_type_union1_error.message;
2334
+ }
2335
+ if (obj_type_union0 && obj_type_union1) {
2336
+ let message = 'Object doesn\'t match union (at "' + path_type + '")';
2337
+ message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
2338
+ message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
2339
+ return new TypeError(message);
2256
2340
  }
2257
2341
  const obj_uniqueKey = obj.uniqueKey;
2258
2342
  const path_uniqueKey = path + '.uniqueKey';
@@ -2462,26 +2546,11 @@ const select$m = function SlackMessageOutputRepresentationSelect() {
2462
2546
  };
2463
2547
  };
2464
2548
  function equals$9(existing, incoming) {
2465
- const existing_isBroadcast = existing.isBroadcast;
2466
- const incoming_isBroadcast = incoming.isBroadcast;
2467
- if (!(existing_isBroadcast === incoming_isBroadcast)) {
2468
- return false;
2469
- }
2470
2549
  const existing_isEditable = existing.isEditable;
2471
2550
  const incoming_isEditable = incoming.isEditable;
2472
2551
  if (!(existing_isEditable === incoming_isEditable)) {
2473
2552
  return false;
2474
2553
  }
2475
- const existing_isEdited = existing.isEdited;
2476
- const incoming_isEdited = incoming.isEdited;
2477
- if (!(existing_isEdited === incoming_isEdited)) {
2478
- return false;
2479
- }
2480
- const existing_isFileReadAllowed = existing.isFileReadAllowed;
2481
- const incoming_isFileReadAllowed = incoming.isFileReadAllowed;
2482
- if (!(existing_isFileReadAllowed === incoming_isFileReadAllowed)) {
2483
- return false;
2484
- }
2485
2554
  const existing_outbound = existing.outbound;
2486
2555
  const incoming_outbound = incoming.outbound;
2487
2556
  if (!(existing_outbound === incoming_outbound)) {
@@ -2512,11 +2581,6 @@ function equals$9(existing, incoming) {
2512
2581
  if (!(existing_teamId === incoming_teamId)) {
2513
2582
  return false;
2514
2583
  }
2515
- const existing_type = existing.type;
2516
- const incoming_type = incoming.type;
2517
- if (!(existing_type === incoming_type)) {
2518
- return false;
2519
- }
2520
2584
  const existing_uniqueKey = existing.uniqueKey;
2521
2585
  const incoming_uniqueKey = incoming.uniqueKey;
2522
2586
  if (!(existing_uniqueKey === incoming_uniqueKey)) {
@@ -2552,6 +2616,21 @@ function equals$9(existing, incoming) {
2552
2616
  if (!(existing_includesCustomEmoji === incoming_includesCustomEmoji)) {
2553
2617
  return false;
2554
2618
  }
2619
+ const existing_isBroadcast = existing.isBroadcast;
2620
+ const incoming_isBroadcast = incoming.isBroadcast;
2621
+ if (!(existing_isBroadcast === incoming_isBroadcast)) {
2622
+ return false;
2623
+ }
2624
+ const existing_isEdited = existing.isEdited;
2625
+ const incoming_isEdited = incoming.isEdited;
2626
+ if (!(existing_isEdited === incoming_isEdited)) {
2627
+ return false;
2628
+ }
2629
+ const existing_isFileReadAllowed = existing.isFileReadAllowed;
2630
+ const incoming_isFileReadAllowed = incoming.isFileReadAllowed;
2631
+ if (!(existing_isFileReadAllowed === incoming_isFileReadAllowed)) {
2632
+ return false;
2633
+ }
2555
2634
  const existing_latestReplyTimestamp = existing.latestReplyTimestamp;
2556
2635
  const incoming_latestReplyTimestamp = incoming.latestReplyTimestamp;
2557
2636
  if (!(existing_latestReplyTimestamp === incoming_latestReplyTimestamp)) {
@@ -2597,6 +2676,11 @@ function equals$9(existing, incoming) {
2597
2676
  if (!(existing_threadTs === incoming_threadTs)) {
2598
2677
  return false;
2599
2678
  }
2679
+ const existing_type = existing.type;
2680
+ const incoming_type = incoming.type;
2681
+ if (!(existing_type === incoming_type)) {
2682
+ return false;
2683
+ }
2600
2684
  const existing_userInfo = existing.userInfo;
2601
2685
  const incoming_userInfo = incoming.userInfo;
2602
2686
  if (!(existing_userInfo.__ref === incoming_userInfo.__ref)) {
@@ -6169,4 +6253,4 @@ withDefaultLuvio((luvio) => {
6169
6253
  });
6170
6254
 
6171
6255
  export { deleteSlackMessage, deleteSlackMessageReactions, getSlackConversation, getSlackConversationInfo, getSlackConversationInfo_imperative, getSlackConversation_imperative, getSlackCustomEmoji, getSlackCustomEmoji_imperative, getSlackMessage, getSlackMessageNotifyChange, getSlackMessage_imperative, getSlackSalesforceAuth, getSlackSalesforceAuth_imperative, getSlackSearchConversation, getSlackSearchConversation_imperative, getSlackSearchEmoji, getSlackSearchEmoji_imperative, getSlackSearchUser, getSlackSearchUser_imperative, getSlackUser, getSlackUserNotifyChange, getSlackUser_imperative, patchSlackMessage, postSlackConversation, postSlackFile, postSlackMessageReactions };
6172
- // version: 1.308.0-dev5-7e965f814e
6256
+ // version: 1.308.0-dev7-8ae69a25e5
package/src/raml/api.raml CHANGED
@@ -308,16 +308,16 @@ types:
308
308
  type: boolean | nil
309
309
  isBroadcast:
310
310
  description: Is this a reply also sent to the Channel?
311
- type: boolean
311
+ type: boolean | nil
312
312
  isEditable:
313
313
  description: Can this message be edited?
314
314
  type: boolean
315
315
  isEdited:
316
316
  description: Is this an edited message?
317
- type: boolean
317
+ type: boolean | nil
318
318
  isFileReadAllowed:
319
319
  description: Does the App contains required scopes to read Slack files?
320
- type: boolean
320
+ type: boolean | nil
321
321
  latestReplyTimestamp:
322
322
  description: Latest Reply timestamp
323
323
  type: string | nil
@@ -361,7 +361,7 @@ types:
361
361
  type: string | nil
362
362
  type:
363
363
  description: Type of Message
364
- type: string
364
+ type: string | nil
365
365
  uniqueKey:
366
366
  description: Unique Key for this message
367
367
  type: string