@salesforce/lds-adapters-platform-slack-bridge 1.344.0 → 1.346.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/platform-slack-bridge.js +2037 -805
- package/dist/es/es2018/types/src/generated/adapters/getSlackEmoji.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackEmojis.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackSearchConversation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackSearchUser.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -3
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamEmojisBySlackEmojiIdAndTeamId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamEmojisByTeamId.d.ts +7 -4
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamSearchConversationsByTeamId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamSearchUsersByTeamId.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeContentVersionOutputRepresentation.d.ts +6 -5
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +22 -19
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfosOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojiOutputRepresentation.d.ts +33 -19
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojiValueOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEmojisOutputRepresentation.d.ts +14 -8
- package/dist/es/es2018/types/src/generated/types/SlackBridgeFileOutputRepresentation.d.ts +14 -14
- package/dist/es/es2018/types/src/generated/types/SlackBridgeMessageOutputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/SlackBridgeReactionOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +26 -11
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +2175 -880
- package/src/raml/api.raml +147 -68
- package/src/raml/luvio.raml +16 -1
- package/dist/es/es2018/types/src/generated/adapters/getSlackCustomEmoji.d.ts +0 -27
- package/dist/es/es2018/types/src/generated/types/SlackBridgeCustomEmojisOutputRepresentation.d.ts +0 -35
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$b, typeCheckConfig as typeCheckConfig$l, StoreKeyMap, createResourceParams as createResourceParams$l } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -112,41 +112,216 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
115
|
+
const VERSION$l = "6a2ede1150bccf991e3f6ea7b55a9964";
|
|
116
|
+
function validate$l(obj, path = 'SlackBridgeEmojiValueOutputRepresentation') {
|
|
117
|
+
const v_error = (() => {
|
|
118
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
120
|
+
}
|
|
121
|
+
const obj_appleUrl = obj.appleUrl;
|
|
122
|
+
const path_appleUrl = path + '.appleUrl';
|
|
123
|
+
let obj_appleUrl_union0 = null;
|
|
124
|
+
const obj_appleUrl_union0_error = (() => {
|
|
125
|
+
if (typeof obj_appleUrl !== 'string') {
|
|
126
|
+
return new TypeError('Expected "string" but received "' + typeof obj_appleUrl + '" (at "' + path_appleUrl + '")');
|
|
127
|
+
}
|
|
128
|
+
})();
|
|
129
|
+
if (obj_appleUrl_union0_error != null) {
|
|
130
|
+
obj_appleUrl_union0 = obj_appleUrl_union0_error.message;
|
|
131
|
+
}
|
|
132
|
+
let obj_appleUrl_union1 = null;
|
|
133
|
+
const obj_appleUrl_union1_error = (() => {
|
|
134
|
+
if (obj_appleUrl !== null) {
|
|
135
|
+
return new TypeError('Expected "null" but received "' + typeof obj_appleUrl + '" (at "' + path_appleUrl + '")');
|
|
136
|
+
}
|
|
137
|
+
})();
|
|
138
|
+
if (obj_appleUrl_union1_error != null) {
|
|
139
|
+
obj_appleUrl_union1 = obj_appleUrl_union1_error.message;
|
|
140
|
+
}
|
|
141
|
+
if (obj_appleUrl_union0 && obj_appleUrl_union1) {
|
|
142
|
+
let message = 'Object doesn\'t match union (at "' + path_appleUrl + '")';
|
|
143
|
+
message += '\n' + obj_appleUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
144
|
+
message += '\n' + obj_appleUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
145
|
+
return new TypeError(message);
|
|
146
|
+
}
|
|
147
|
+
const obj_defaultValue = obj.defaultValue;
|
|
148
|
+
const path_defaultValue = path + '.defaultValue';
|
|
149
|
+
let obj_defaultValue_union0 = null;
|
|
150
|
+
const obj_defaultValue_union0_error = (() => {
|
|
151
|
+
if (typeof obj_defaultValue !== 'string') {
|
|
152
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
|
|
153
|
+
}
|
|
154
|
+
})();
|
|
155
|
+
if (obj_defaultValue_union0_error != null) {
|
|
156
|
+
obj_defaultValue_union0 = obj_defaultValue_union0_error.message;
|
|
157
|
+
}
|
|
158
|
+
let obj_defaultValue_union1 = null;
|
|
159
|
+
const obj_defaultValue_union1_error = (() => {
|
|
160
|
+
if (obj_defaultValue !== null) {
|
|
161
|
+
return new TypeError('Expected "null" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
|
|
162
|
+
}
|
|
163
|
+
})();
|
|
164
|
+
if (obj_defaultValue_union1_error != null) {
|
|
165
|
+
obj_defaultValue_union1 = obj_defaultValue_union1_error.message;
|
|
166
|
+
}
|
|
167
|
+
if (obj_defaultValue_union0 && obj_defaultValue_union1) {
|
|
168
|
+
let message = 'Object doesn\'t match union (at "' + path_defaultValue + '")';
|
|
169
|
+
message += '\n' + obj_defaultValue_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
170
|
+
message += '\n' + obj_defaultValue_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
171
|
+
return new TypeError(message);
|
|
172
|
+
}
|
|
173
|
+
const obj_googleUrl = obj.googleUrl;
|
|
174
|
+
const path_googleUrl = path + '.googleUrl';
|
|
175
|
+
let obj_googleUrl_union0 = null;
|
|
176
|
+
const obj_googleUrl_union0_error = (() => {
|
|
177
|
+
if (typeof obj_googleUrl !== 'string') {
|
|
178
|
+
return new TypeError('Expected "string" but received "' + typeof obj_googleUrl + '" (at "' + path_googleUrl + '")');
|
|
179
|
+
}
|
|
180
|
+
})();
|
|
181
|
+
if (obj_googleUrl_union0_error != null) {
|
|
182
|
+
obj_googleUrl_union0 = obj_googleUrl_union0_error.message;
|
|
183
|
+
}
|
|
184
|
+
let obj_googleUrl_union1 = null;
|
|
185
|
+
const obj_googleUrl_union1_error = (() => {
|
|
186
|
+
if (obj_googleUrl !== null) {
|
|
187
|
+
return new TypeError('Expected "null" but received "' + typeof obj_googleUrl + '" (at "' + path_googleUrl + '")');
|
|
188
|
+
}
|
|
189
|
+
})();
|
|
190
|
+
if (obj_googleUrl_union1_error != null) {
|
|
191
|
+
obj_googleUrl_union1 = obj_googleUrl_union1_error.message;
|
|
192
|
+
}
|
|
193
|
+
if (obj_googleUrl_union0 && obj_googleUrl_union1) {
|
|
194
|
+
let message = 'Object doesn\'t match union (at "' + path_googleUrl + '")';
|
|
195
|
+
message += '\n' + obj_googleUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
196
|
+
message += '\n' + obj_googleUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
197
|
+
return new TypeError(message);
|
|
198
|
+
}
|
|
199
|
+
})();
|
|
200
|
+
return v_error === undefined ? null : v_error;
|
|
201
|
+
}
|
|
202
|
+
const select$D = function SlackBridgeEmojiValueOutputRepresentationSelect() {
|
|
203
|
+
return {
|
|
204
|
+
kind: 'Fragment',
|
|
205
|
+
version: VERSION$l,
|
|
206
|
+
private: [],
|
|
207
|
+
selections: [
|
|
208
|
+
{
|
|
209
|
+
name: 'appleUrl',
|
|
210
|
+
kind: 'Scalar'
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'defaultValue',
|
|
214
|
+
kind: 'Scalar'
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: 'googleUrl',
|
|
218
|
+
kind: 'Scalar'
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
function equals$l(existing, incoming) {
|
|
224
|
+
const existing_appleUrl = existing.appleUrl;
|
|
225
|
+
const incoming_appleUrl = incoming.appleUrl;
|
|
226
|
+
if (!(existing_appleUrl === incoming_appleUrl)) {
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
const existing_defaultValue = existing.defaultValue;
|
|
230
|
+
const incoming_defaultValue = incoming.defaultValue;
|
|
231
|
+
if (!(existing_defaultValue === incoming_defaultValue)) {
|
|
232
|
+
return false;
|
|
233
|
+
}
|
|
234
|
+
const existing_googleUrl = existing.googleUrl;
|
|
235
|
+
const incoming_googleUrl = incoming.googleUrl;
|
|
236
|
+
if (!(existing_googleUrl === incoming_googleUrl)) {
|
|
237
|
+
return false;
|
|
238
|
+
}
|
|
239
|
+
return true;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
const TTL$1 = 2592000000;
|
|
243
|
+
const VERSION$k = "a0e1530372a57d61a1264218124bbb5c";
|
|
116
244
|
function validate$k(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
117
245
|
const v_error = (() => {
|
|
118
246
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
247
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
120
248
|
}
|
|
121
|
-
const
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
249
|
+
const obj_alias = obj.alias;
|
|
250
|
+
const path_alias = path + '.alias';
|
|
251
|
+
let obj_alias_union0 = null;
|
|
252
|
+
const obj_alias_union0_error = (() => {
|
|
253
|
+
if (typeof obj_alias !== 'string') {
|
|
254
|
+
return new TypeError('Expected "string" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
255
|
+
}
|
|
256
|
+
})();
|
|
257
|
+
if (obj_alias_union0_error != null) {
|
|
258
|
+
obj_alias_union0 = obj_alias_union0_error.message;
|
|
259
|
+
}
|
|
260
|
+
let obj_alias_union1 = null;
|
|
261
|
+
const obj_alias_union1_error = (() => {
|
|
262
|
+
if (obj_alias !== null) {
|
|
263
|
+
return new TypeError('Expected "null" but received "' + typeof obj_alias + '" (at "' + path_alias + '")');
|
|
264
|
+
}
|
|
265
|
+
})();
|
|
266
|
+
if (obj_alias_union1_error != null) {
|
|
267
|
+
obj_alias_union1 = obj_alias_union1_error.message;
|
|
268
|
+
}
|
|
269
|
+
if (obj_alias_union0 && obj_alias_union1) {
|
|
270
|
+
let message = 'Object doesn\'t match union (at "' + path_alias + '")';
|
|
271
|
+
message += '\n' + obj_alias_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
272
|
+
message += '\n' + obj_alias_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
273
|
+
return new TypeError(message);
|
|
274
|
+
}
|
|
275
|
+
const obj_collectionId = obj.collectionId;
|
|
276
|
+
const path_collectionId = path + '.collectionId';
|
|
277
|
+
let obj_collectionId_union0 = null;
|
|
278
|
+
const obj_collectionId_union0_error = (() => {
|
|
279
|
+
if (typeof obj_collectionId !== 'string') {
|
|
280
|
+
return new TypeError('Expected "string" but received "' + typeof obj_collectionId + '" (at "' + path_collectionId + '")');
|
|
281
|
+
}
|
|
282
|
+
})();
|
|
283
|
+
if (obj_collectionId_union0_error != null) {
|
|
284
|
+
obj_collectionId_union0 = obj_collectionId_union0_error.message;
|
|
285
|
+
}
|
|
286
|
+
let obj_collectionId_union1 = null;
|
|
287
|
+
const obj_collectionId_union1_error = (() => {
|
|
288
|
+
if (obj_collectionId !== null) {
|
|
289
|
+
return new TypeError('Expected "null" but received "' + typeof obj_collectionId + '" (at "' + path_collectionId + '")');
|
|
290
|
+
}
|
|
291
|
+
})();
|
|
292
|
+
if (obj_collectionId_union1_error != null) {
|
|
293
|
+
obj_collectionId_union1 = obj_collectionId_union1_error.message;
|
|
294
|
+
}
|
|
295
|
+
if (obj_collectionId_union0 && obj_collectionId_union1) {
|
|
296
|
+
let message = 'Object doesn\'t match union (at "' + path_collectionId + '")';
|
|
297
|
+
message += '\n' + obj_collectionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
298
|
+
message += '\n' + obj_collectionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
299
|
+
return new TypeError(message);
|
|
125
300
|
}
|
|
126
|
-
const
|
|
127
|
-
const
|
|
128
|
-
let
|
|
129
|
-
const
|
|
130
|
-
if (typeof
|
|
131
|
-
return new TypeError('Expected "boolean" but received "' + typeof
|
|
301
|
+
const obj_isAlias = obj.isAlias;
|
|
302
|
+
const path_isAlias = path + '.isAlias';
|
|
303
|
+
let obj_isAlias_union0 = null;
|
|
304
|
+
const obj_isAlias_union0_error = (() => {
|
|
305
|
+
if (typeof obj_isAlias !== 'boolean') {
|
|
306
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAlias + '" (at "' + path_isAlias + '")');
|
|
132
307
|
}
|
|
133
308
|
})();
|
|
134
|
-
if (
|
|
135
|
-
|
|
309
|
+
if (obj_isAlias_union0_error != null) {
|
|
310
|
+
obj_isAlias_union0 = obj_isAlias_union0_error.message;
|
|
136
311
|
}
|
|
137
|
-
let
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
312
|
+
let obj_isAlias_union1 = null;
|
|
313
|
+
const obj_isAlias_union1_error = (() => {
|
|
314
|
+
if (obj_isAlias !== null) {
|
|
315
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isAlias + '" (at "' + path_isAlias + '")');
|
|
141
316
|
}
|
|
142
317
|
})();
|
|
143
|
-
if (
|
|
144
|
-
|
|
318
|
+
if (obj_isAlias_union1_error != null) {
|
|
319
|
+
obj_isAlias_union1 = obj_isAlias_union1_error.message;
|
|
145
320
|
}
|
|
146
|
-
if (
|
|
147
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
148
|
-
message += '\n' +
|
|
149
|
-
message += '\n' +
|
|
321
|
+
if (obj_isAlias_union0 && obj_isAlias_union1) {
|
|
322
|
+
let message = 'Object doesn\'t match union (at "' + path_isAlias + '")';
|
|
323
|
+
message += '\n' + obj_isAlias_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
324
|
+
message += '\n' + obj_isAlias_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
150
325
|
return new TypeError(message);
|
|
151
326
|
}
|
|
152
327
|
const obj_name = obj.name;
|
|
@@ -154,79 +329,173 @@ function validate$k(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
|
|
|
154
329
|
if (typeof obj_name !== 'string') {
|
|
155
330
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
156
331
|
}
|
|
157
|
-
const
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
332
|
+
const obj_updated = obj.updated;
|
|
333
|
+
const path_updated = path + '.updated';
|
|
334
|
+
let obj_updated_union0 = null;
|
|
335
|
+
const obj_updated_union0_error = (() => {
|
|
336
|
+
if (typeof obj_updated !== 'string') {
|
|
337
|
+
return new TypeError('Expected "string" but received "' + typeof obj_updated + '" (at "' + path_updated + '")');
|
|
338
|
+
}
|
|
339
|
+
})();
|
|
340
|
+
if (obj_updated_union0_error != null) {
|
|
341
|
+
obj_updated_union0 = obj_updated_union0_error.message;
|
|
342
|
+
}
|
|
343
|
+
let obj_updated_union1 = null;
|
|
344
|
+
const obj_updated_union1_error = (() => {
|
|
345
|
+
if (obj_updated !== null) {
|
|
346
|
+
return new TypeError('Expected "null" but received "' + typeof obj_updated + '" (at "' + path_updated + '")');
|
|
347
|
+
}
|
|
348
|
+
})();
|
|
349
|
+
if (obj_updated_union1_error != null) {
|
|
350
|
+
obj_updated_union1 = obj_updated_union1_error.message;
|
|
161
351
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
352
|
+
if (obj_updated_union0 && obj_updated_union1) {
|
|
353
|
+
let message = 'Object doesn\'t match union (at "' + path_updated + '")';
|
|
354
|
+
message += '\n' + obj_updated_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
355
|
+
message += '\n' + obj_updated_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
356
|
+
return new TypeError(message);
|
|
357
|
+
}
|
|
358
|
+
const obj_value = obj.value;
|
|
359
|
+
const path_value = path + '.value';
|
|
360
|
+
let obj_value_union0 = null;
|
|
361
|
+
const obj_value_union0_error = (() => {
|
|
362
|
+
const referencepath_valueValidationError = validate$l(obj_value, path_value);
|
|
363
|
+
if (referencepath_valueValidationError !== null) {
|
|
364
|
+
let message = 'Object doesn\'t match SlackBridgeEmojiValueOutputRepresentation (at "' + path_value + '")\n';
|
|
365
|
+
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
366
|
+
return new TypeError(message);
|
|
367
|
+
}
|
|
368
|
+
})();
|
|
369
|
+
if (obj_value_union0_error != null) {
|
|
370
|
+
obj_value_union0 = obj_value_union0_error.message;
|
|
371
|
+
}
|
|
372
|
+
let obj_value_union1 = null;
|
|
373
|
+
const obj_value_union1_error = (() => {
|
|
374
|
+
if (obj_value !== null) {
|
|
375
|
+
return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
376
|
+
}
|
|
377
|
+
})();
|
|
378
|
+
if (obj_value_union1_error != null) {
|
|
379
|
+
obj_value_union1 = obj_value_union1_error.message;
|
|
380
|
+
}
|
|
381
|
+
if (obj_value_union0 && obj_value_union1) {
|
|
382
|
+
let message = 'Object doesn\'t match union (at "' + path_value + '")';
|
|
383
|
+
message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
384
|
+
message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
385
|
+
return new TypeError(message);
|
|
166
386
|
}
|
|
167
387
|
})();
|
|
168
388
|
return v_error === undefined ? null : v_error;
|
|
169
389
|
}
|
|
170
|
-
const
|
|
390
|
+
const RepresentationType$g = 'SlackBridgeEmojiOutputRepresentation';
|
|
391
|
+
function keyBuilder$z(luvio, config) {
|
|
392
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.name;
|
|
393
|
+
}
|
|
394
|
+
function keyBuilderFromType$a(luvio, object) {
|
|
395
|
+
const keyParams = {
|
|
396
|
+
name: object.name
|
|
397
|
+
};
|
|
398
|
+
return keyBuilder$z(luvio, keyParams);
|
|
399
|
+
}
|
|
400
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
401
|
+
return input;
|
|
402
|
+
}
|
|
403
|
+
const select$C = function SlackBridgeEmojiOutputRepresentationSelect() {
|
|
404
|
+
const { selections: SlackBridgeEmojiValueOutputRepresentation__selections, opaque: SlackBridgeEmojiValueOutputRepresentation__opaque, } = select$D();
|
|
171
405
|
return {
|
|
172
406
|
kind: 'Fragment',
|
|
173
407
|
version: VERSION$k,
|
|
174
408
|
private: [],
|
|
175
409
|
selections: [
|
|
176
410
|
{
|
|
177
|
-
name: '
|
|
411
|
+
name: 'alias',
|
|
178
412
|
kind: 'Scalar'
|
|
179
413
|
},
|
|
180
414
|
{
|
|
181
|
-
name: '
|
|
415
|
+
name: 'collectionId',
|
|
182
416
|
kind: 'Scalar'
|
|
183
417
|
},
|
|
184
418
|
{
|
|
185
|
-
name: '
|
|
419
|
+
name: 'isAlias',
|
|
186
420
|
kind: 'Scalar'
|
|
187
421
|
},
|
|
188
422
|
{
|
|
189
|
-
name: '
|
|
423
|
+
name: 'name',
|
|
190
424
|
kind: 'Scalar'
|
|
191
425
|
},
|
|
192
426
|
{
|
|
193
|
-
name: '
|
|
427
|
+
name: 'updated',
|
|
194
428
|
kind: 'Scalar'
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
name: 'value',
|
|
432
|
+
kind: 'Object',
|
|
433
|
+
nullable: true,
|
|
434
|
+
selections: SlackBridgeEmojiValueOutputRepresentation__selections
|
|
195
435
|
}
|
|
196
436
|
]
|
|
197
437
|
};
|
|
198
438
|
};
|
|
199
439
|
function equals$k(existing, incoming) {
|
|
200
|
-
const existing_altText = existing.altText;
|
|
201
|
-
const incoming_altText = incoming.altText;
|
|
202
|
-
if (!(existing_altText === incoming_altText)) {
|
|
203
|
-
return false;
|
|
204
|
-
}
|
|
205
440
|
const existing_name = existing.name;
|
|
206
441
|
const incoming_name = incoming.name;
|
|
207
442
|
if (!(existing_name === incoming_name)) {
|
|
208
443
|
return false;
|
|
209
444
|
}
|
|
210
|
-
const
|
|
211
|
-
const
|
|
212
|
-
if (!(
|
|
445
|
+
const existing_alias = existing.alias;
|
|
446
|
+
const incoming_alias = incoming.alias;
|
|
447
|
+
if (!(existing_alias === incoming_alias)) {
|
|
213
448
|
return false;
|
|
214
449
|
}
|
|
215
|
-
const
|
|
216
|
-
const
|
|
217
|
-
if (!(
|
|
450
|
+
const existing_collectionId = existing.collectionId;
|
|
451
|
+
const incoming_collectionId = incoming.collectionId;
|
|
452
|
+
if (!(existing_collectionId === incoming_collectionId)) {
|
|
453
|
+
return false;
|
|
454
|
+
}
|
|
455
|
+
const existing_isAlias = existing.isAlias;
|
|
456
|
+
const incoming_isAlias = incoming.isAlias;
|
|
457
|
+
if (!(existing_isAlias === incoming_isAlias)) {
|
|
458
|
+
return false;
|
|
459
|
+
}
|
|
460
|
+
const existing_updated = existing.updated;
|
|
461
|
+
const incoming_updated = incoming.updated;
|
|
462
|
+
if (!(existing_updated === incoming_updated)) {
|
|
218
463
|
return false;
|
|
219
464
|
}
|
|
220
|
-
const
|
|
221
|
-
const
|
|
222
|
-
if (!(
|
|
465
|
+
const existing_value = existing.value;
|
|
466
|
+
const incoming_value = incoming.value;
|
|
467
|
+
if (!(existing_value === incoming_value
|
|
468
|
+
|| (existing_value != null &&
|
|
469
|
+
incoming_value != null &&
|
|
470
|
+
equals$l(existing_value, incoming_value)))) {
|
|
223
471
|
return false;
|
|
224
472
|
}
|
|
225
473
|
return true;
|
|
226
474
|
}
|
|
475
|
+
const ingest$g = function SlackBridgeEmojiOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
476
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
477
|
+
const validateError = validate$k(input);
|
|
478
|
+
if (validateError !== null) {
|
|
479
|
+
throw validateError;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
const key = keyBuilderFromType$a(luvio, input);
|
|
483
|
+
const ttlToUse = TTL$1;
|
|
484
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SlackBridge", VERSION$k, RepresentationType$g, equals$k);
|
|
485
|
+
return createLink(key);
|
|
486
|
+
};
|
|
487
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
488
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
489
|
+
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
490
|
+
rootKeySet.set(rootKey, {
|
|
491
|
+
namespace: keyPrefix,
|
|
492
|
+
representationName: RepresentationType$g,
|
|
493
|
+
mergeable: false
|
|
494
|
+
});
|
|
495
|
+
}
|
|
227
496
|
|
|
228
497
|
const TTL = 600000;
|
|
229
|
-
const VERSION$j = "
|
|
498
|
+
const VERSION$j = "53030123e17824e401cd635bf346e728";
|
|
230
499
|
function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
231
500
|
const v_error = (() => {
|
|
232
501
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -239,13 +508,81 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
239
508
|
}
|
|
240
509
|
const obj_displayName = obj.displayName;
|
|
241
510
|
const path_displayName = path + '.displayName';
|
|
242
|
-
|
|
243
|
-
|
|
511
|
+
let obj_displayName_union0 = null;
|
|
512
|
+
const obj_displayName_union0_error = (() => {
|
|
513
|
+
if (typeof obj_displayName !== 'string') {
|
|
514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
515
|
+
}
|
|
516
|
+
})();
|
|
517
|
+
if (obj_displayName_union0_error != null) {
|
|
518
|
+
obj_displayName_union0 = obj_displayName_union0_error.message;
|
|
519
|
+
}
|
|
520
|
+
let obj_displayName_union1 = null;
|
|
521
|
+
const obj_displayName_union1_error = (() => {
|
|
522
|
+
if (obj_displayName !== null) {
|
|
523
|
+
return new TypeError('Expected "null" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
524
|
+
}
|
|
525
|
+
})();
|
|
526
|
+
if (obj_displayName_union1_error != null) {
|
|
527
|
+
obj_displayName_union1 = obj_displayName_union1_error.message;
|
|
528
|
+
}
|
|
529
|
+
if (obj_displayName_union0 && obj_displayName_union1) {
|
|
530
|
+
let message = 'Object doesn\'t match union (at "' + path_displayName + '")';
|
|
531
|
+
message += '\n' + obj_displayName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
532
|
+
message += '\n' + obj_displayName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
533
|
+
return new TypeError(message);
|
|
534
|
+
}
|
|
535
|
+
const obj_email = obj.email;
|
|
536
|
+
const path_email = path + '.email';
|
|
537
|
+
let obj_email_union0 = null;
|
|
538
|
+
const obj_email_union0_error = (() => {
|
|
539
|
+
if (typeof obj_email !== 'string') {
|
|
540
|
+
return new TypeError('Expected "string" but received "' + typeof obj_email + '" (at "' + path_email + '")');
|
|
541
|
+
}
|
|
542
|
+
})();
|
|
543
|
+
if (obj_email_union0_error != null) {
|
|
544
|
+
obj_email_union0 = obj_email_union0_error.message;
|
|
545
|
+
}
|
|
546
|
+
let obj_email_union1 = null;
|
|
547
|
+
const obj_email_union1_error = (() => {
|
|
548
|
+
if (obj_email !== null) {
|
|
549
|
+
return new TypeError('Expected "null" but received "' + typeof obj_email + '" (at "' + path_email + '")');
|
|
550
|
+
}
|
|
551
|
+
})();
|
|
552
|
+
if (obj_email_union1_error != null) {
|
|
553
|
+
obj_email_union1 = obj_email_union1_error.message;
|
|
554
|
+
}
|
|
555
|
+
if (obj_email_union0 && obj_email_union1) {
|
|
556
|
+
let message = 'Object doesn\'t match union (at "' + path_email + '")';
|
|
557
|
+
message += '\n' + obj_email_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
558
|
+
message += '\n' + obj_email_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
559
|
+
return new TypeError(message);
|
|
244
560
|
}
|
|
245
561
|
const obj_image24 = obj.image24;
|
|
246
562
|
const path_image24 = path + '.image24';
|
|
247
|
-
|
|
248
|
-
|
|
563
|
+
let obj_image24_union0 = null;
|
|
564
|
+
const obj_image24_union0_error = (() => {
|
|
565
|
+
if (typeof obj_image24 !== 'string') {
|
|
566
|
+
return new TypeError('Expected "string" but received "' + typeof obj_image24 + '" (at "' + path_image24 + '")');
|
|
567
|
+
}
|
|
568
|
+
})();
|
|
569
|
+
if (obj_image24_union0_error != null) {
|
|
570
|
+
obj_image24_union0 = obj_image24_union0_error.message;
|
|
571
|
+
}
|
|
572
|
+
let obj_image24_union1 = null;
|
|
573
|
+
const obj_image24_union1_error = (() => {
|
|
574
|
+
if (obj_image24 !== null) {
|
|
575
|
+
return new TypeError('Expected "null" but received "' + typeof obj_image24 + '" (at "' + path_image24 + '")');
|
|
576
|
+
}
|
|
577
|
+
})();
|
|
578
|
+
if (obj_image24_union1_error != null) {
|
|
579
|
+
obj_image24_union1 = obj_image24_union1_error.message;
|
|
580
|
+
}
|
|
581
|
+
if (obj_image24_union0 && obj_image24_union1) {
|
|
582
|
+
let message = 'Object doesn\'t match union (at "' + path_image24 + '")';
|
|
583
|
+
message += '\n' + obj_image24_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
584
|
+
message += '\n' + obj_image24_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
585
|
+
return new TypeError(message);
|
|
249
586
|
}
|
|
250
587
|
const obj_imageOriginal = obj.imageOriginal;
|
|
251
588
|
const path_imageOriginal = path + '.imageOriginal';
|
|
@@ -384,8 +721,29 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
384
721
|
}
|
|
385
722
|
const obj_realName = obj.realName;
|
|
386
723
|
const path_realName = path + '.realName';
|
|
387
|
-
|
|
388
|
-
|
|
724
|
+
let obj_realName_union0 = null;
|
|
725
|
+
const obj_realName_union0_error = (() => {
|
|
726
|
+
if (typeof obj_realName !== 'string') {
|
|
727
|
+
return new TypeError('Expected "string" but received "' + typeof obj_realName + '" (at "' + path_realName + '")');
|
|
728
|
+
}
|
|
729
|
+
})();
|
|
730
|
+
if (obj_realName_union0_error != null) {
|
|
731
|
+
obj_realName_union0 = obj_realName_union0_error.message;
|
|
732
|
+
}
|
|
733
|
+
let obj_realName_union1 = null;
|
|
734
|
+
const obj_realName_union1_error = (() => {
|
|
735
|
+
if (obj_realName !== null) {
|
|
736
|
+
return new TypeError('Expected "null" but received "' + typeof obj_realName + '" (at "' + path_realName + '")');
|
|
737
|
+
}
|
|
738
|
+
})();
|
|
739
|
+
if (obj_realName_union1_error != null) {
|
|
740
|
+
obj_realName_union1 = obj_realName_union1_error.message;
|
|
741
|
+
}
|
|
742
|
+
if (obj_realName_union0 && obj_realName_union1) {
|
|
743
|
+
let message = 'Object doesn\'t match union (at "' + path_realName + '")';
|
|
744
|
+
message += '\n' + obj_realName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
745
|
+
message += '\n' + obj_realName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
746
|
+
return new TypeError(message);
|
|
389
747
|
}
|
|
390
748
|
const obj_salesforceUserId = obj.salesforceUserId;
|
|
391
749
|
const path_salesforceUserId = path + '.salesforceUserId';
|
|
@@ -422,11 +780,8 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
422
780
|
const path_statusEmoji = path + '.statusEmoji';
|
|
423
781
|
let obj_statusEmoji_union0 = null;
|
|
424
782
|
const obj_statusEmoji_union0_error = (() => {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
|
|
428
|
-
message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
429
|
-
return new TypeError(message);
|
|
783
|
+
if (typeof obj_statusEmoji !== 'object') {
|
|
784
|
+
return new TypeError('Expected "object" but received "' + typeof obj_statusEmoji + '" (at "' + path_statusEmoji + '")');
|
|
430
785
|
}
|
|
431
786
|
})();
|
|
432
787
|
if (obj_statusEmoji_union0_error != null) {
|
|
@@ -449,19 +804,66 @@ function validate$j(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
|
|
|
449
804
|
}
|
|
450
805
|
const obj_statusMessage = obj.statusMessage;
|
|
451
806
|
const path_statusMessage = path + '.statusMessage';
|
|
452
|
-
|
|
453
|
-
|
|
807
|
+
let obj_statusMessage_union0 = null;
|
|
808
|
+
const obj_statusMessage_union0_error = (() => {
|
|
809
|
+
if (typeof obj_statusMessage !== 'string') {
|
|
810
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusMessage + '" (at "' + path_statusMessage + '")');
|
|
811
|
+
}
|
|
812
|
+
})();
|
|
813
|
+
if (obj_statusMessage_union0_error != null) {
|
|
814
|
+
obj_statusMessage_union0 = obj_statusMessage_union0_error.message;
|
|
815
|
+
}
|
|
816
|
+
let obj_statusMessage_union1 = null;
|
|
817
|
+
const obj_statusMessage_union1_error = (() => {
|
|
818
|
+
if (obj_statusMessage !== null) {
|
|
819
|
+
return new TypeError('Expected "null" but received "' + typeof obj_statusMessage + '" (at "' + path_statusMessage + '")');
|
|
820
|
+
}
|
|
821
|
+
})();
|
|
822
|
+
if (obj_statusMessage_union1_error != null) {
|
|
823
|
+
obj_statusMessage_union1 = obj_statusMessage_union1_error.message;
|
|
824
|
+
}
|
|
825
|
+
if (obj_statusMessage_union0 && obj_statusMessage_union1) {
|
|
826
|
+
let message = 'Object doesn\'t match union (at "' + path_statusMessage + '")';
|
|
827
|
+
message += '\n' + obj_statusMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
828
|
+
message += '\n' + obj_statusMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
829
|
+
return new TypeError(message);
|
|
454
830
|
}
|
|
455
831
|
const obj_teamId = obj.teamId;
|
|
456
832
|
const path_teamId = path + '.teamId';
|
|
457
833
|
if (typeof obj_teamId !== 'string') {
|
|
458
834
|
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
459
835
|
}
|
|
836
|
+
const obj_title = obj.title;
|
|
837
|
+
const path_title = path + '.title';
|
|
838
|
+
let obj_title_union0 = null;
|
|
839
|
+
const obj_title_union0_error = (() => {
|
|
840
|
+
if (typeof obj_title !== 'string') {
|
|
841
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
842
|
+
}
|
|
843
|
+
})();
|
|
844
|
+
if (obj_title_union0_error != null) {
|
|
845
|
+
obj_title_union0 = obj_title_union0_error.message;
|
|
846
|
+
}
|
|
847
|
+
let obj_title_union1 = null;
|
|
848
|
+
const obj_title_union1_error = (() => {
|
|
849
|
+
if (obj_title !== null) {
|
|
850
|
+
return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
851
|
+
}
|
|
852
|
+
})();
|
|
853
|
+
if (obj_title_union1_error != null) {
|
|
854
|
+
obj_title_union1 = obj_title_union1_error.message;
|
|
855
|
+
}
|
|
856
|
+
if (obj_title_union0 && obj_title_union1) {
|
|
857
|
+
let message = 'Object doesn\'t match union (at "' + path_title + '")';
|
|
858
|
+
message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
859
|
+
message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
860
|
+
return new TypeError(message);
|
|
861
|
+
}
|
|
460
862
|
})();
|
|
461
863
|
return v_error === undefined ? null : v_error;
|
|
462
864
|
}
|
|
463
865
|
const RepresentationType$f = 'SlackBridgeUserInfoOutputRepresentation';
|
|
464
|
-
function keyBuilder$
|
|
866
|
+
function keyBuilder$y(luvio, config) {
|
|
465
867
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.teamId + ':' + config.slackUserId;
|
|
466
868
|
}
|
|
467
869
|
function keyBuilderFromType$9(luvio, object) {
|
|
@@ -469,13 +871,26 @@ function keyBuilderFromType$9(luvio, object) {
|
|
|
469
871
|
teamId: object.teamId,
|
|
470
872
|
slackUserId: object.slackUserId
|
|
471
873
|
};
|
|
472
|
-
return keyBuilder$
|
|
874
|
+
return keyBuilder$y(luvio, keyParams);
|
|
473
875
|
}
|
|
474
876
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
877
|
+
const input_statusEmoji = input.statusEmoji;
|
|
878
|
+
const input_statusEmoji_id = path.fullPath + '__statusEmoji';
|
|
879
|
+
if (input_statusEmoji !== null && typeof input_statusEmoji === 'object') {
|
|
880
|
+
input.statusEmoji = ingest$g(input_statusEmoji, {
|
|
881
|
+
fullPath: input_statusEmoji_id,
|
|
882
|
+
propertyName: 'statusEmoji',
|
|
883
|
+
parent: {
|
|
884
|
+
data: input,
|
|
885
|
+
key: path.fullPath,
|
|
886
|
+
existing: existing,
|
|
887
|
+
},
|
|
888
|
+
ttl: path.ttl
|
|
889
|
+
}, luvio, store, timestamp);
|
|
890
|
+
}
|
|
475
891
|
return input;
|
|
476
892
|
}
|
|
477
|
-
const select$
|
|
478
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$A();
|
|
893
|
+
const select$B = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
479
894
|
return {
|
|
480
895
|
kind: 'Fragment',
|
|
481
896
|
version: VERSION$j,
|
|
@@ -489,6 +904,10 @@ const select$z = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
489
904
|
name: 'displayName',
|
|
490
905
|
kind: 'Scalar'
|
|
491
906
|
},
|
|
907
|
+
{
|
|
908
|
+
name: 'email',
|
|
909
|
+
kind: 'Scalar'
|
|
910
|
+
},
|
|
492
911
|
{
|
|
493
912
|
name: 'image24',
|
|
494
913
|
kind: 'Scalar'
|
|
@@ -531,9 +950,9 @@ const select$z = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
531
950
|
},
|
|
532
951
|
{
|
|
533
952
|
name: 'statusEmoji',
|
|
534
|
-
kind: '
|
|
953
|
+
kind: 'Link',
|
|
535
954
|
nullable: true,
|
|
536
|
-
|
|
955
|
+
fragment: select$C()
|
|
537
956
|
},
|
|
538
957
|
{
|
|
539
958
|
name: 'statusMessage',
|
|
@@ -542,6 +961,10 @@ const select$z = function SlackBridgeUserInfoOutputRepresentationSelect() {
|
|
|
542
961
|
{
|
|
543
962
|
name: 'teamId',
|
|
544
963
|
kind: 'Scalar'
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
name: 'title',
|
|
967
|
+
kind: 'Scalar'
|
|
545
968
|
}
|
|
546
969
|
]
|
|
547
970
|
};
|
|
@@ -552,41 +975,36 @@ function equals$j(existing, incoming) {
|
|
|
552
975
|
if (!(existing_bot === incoming_bot)) {
|
|
553
976
|
return false;
|
|
554
977
|
}
|
|
555
|
-
const existing_displayName = existing.displayName;
|
|
556
|
-
const incoming_displayName = incoming.displayName;
|
|
557
|
-
if (!(existing_displayName === incoming_displayName)) {
|
|
558
|
-
return false;
|
|
559
|
-
}
|
|
560
|
-
const existing_image24 = existing.image24;
|
|
561
|
-
const incoming_image24 = incoming.image24;
|
|
562
|
-
if (!(existing_image24 === incoming_image24)) {
|
|
563
|
-
return false;
|
|
564
|
-
}
|
|
565
978
|
const existing_name = existing.name;
|
|
566
979
|
const incoming_name = incoming.name;
|
|
567
980
|
if (!(existing_name === incoming_name)) {
|
|
568
981
|
return false;
|
|
569
982
|
}
|
|
570
|
-
const existing_realName = existing.realName;
|
|
571
|
-
const incoming_realName = incoming.realName;
|
|
572
|
-
if (!(existing_realName === incoming_realName)) {
|
|
573
|
-
return false;
|
|
574
|
-
}
|
|
575
983
|
const existing_slackUserId = existing.slackUserId;
|
|
576
984
|
const incoming_slackUserId = incoming.slackUserId;
|
|
577
985
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
578
986
|
return false;
|
|
579
987
|
}
|
|
580
|
-
const existing_statusMessage = existing.statusMessage;
|
|
581
|
-
const incoming_statusMessage = incoming.statusMessage;
|
|
582
|
-
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
583
|
-
return false;
|
|
584
|
-
}
|
|
585
988
|
const existing_teamId = existing.teamId;
|
|
586
989
|
const incoming_teamId = incoming.teamId;
|
|
587
990
|
if (!(existing_teamId === incoming_teamId)) {
|
|
588
991
|
return false;
|
|
589
992
|
}
|
|
993
|
+
const existing_displayName = existing.displayName;
|
|
994
|
+
const incoming_displayName = incoming.displayName;
|
|
995
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
996
|
+
return false;
|
|
997
|
+
}
|
|
998
|
+
const existing_email = existing.email;
|
|
999
|
+
const incoming_email = incoming.email;
|
|
1000
|
+
if (!(existing_email === incoming_email)) {
|
|
1001
|
+
return false;
|
|
1002
|
+
}
|
|
1003
|
+
const existing_image24 = existing.image24;
|
|
1004
|
+
const incoming_image24 = incoming.image24;
|
|
1005
|
+
if (!(existing_image24 === incoming_image24)) {
|
|
1006
|
+
return false;
|
|
1007
|
+
}
|
|
590
1008
|
const existing_imageOriginal = existing.imageOriginal;
|
|
591
1009
|
const incoming_imageOriginal = incoming.imageOriginal;
|
|
592
1010
|
if (!(existing_imageOriginal === incoming_imageOriginal)) {
|
|
@@ -612,6 +1030,11 @@ function equals$j(existing, incoming) {
|
|
|
612
1030
|
if (!(existing_profileUrl === incoming_profileUrl)) {
|
|
613
1031
|
return false;
|
|
614
1032
|
}
|
|
1033
|
+
const existing_realName = existing.realName;
|
|
1034
|
+
const incoming_realName = incoming.realName;
|
|
1035
|
+
if (!(existing_realName === incoming_realName)) {
|
|
1036
|
+
return false;
|
|
1037
|
+
}
|
|
615
1038
|
const existing_salesforceUserId = existing.salesforceUserId;
|
|
616
1039
|
const incoming_salesforceUserId = incoming.salesforceUserId;
|
|
617
1040
|
if (!(existing_salesforceUserId === incoming_salesforceUserId)) {
|
|
@@ -622,7 +1045,19 @@ function equals$j(existing, incoming) {
|
|
|
622
1045
|
if (!(existing_statusEmoji === incoming_statusEmoji
|
|
623
1046
|
|| (existing_statusEmoji != null &&
|
|
624
1047
|
incoming_statusEmoji != null &&
|
|
625
|
-
|
|
1048
|
+
existing_statusEmoji.__ref != null &&
|
|
1049
|
+
incoming_statusEmoji.__ref != null &&
|
|
1050
|
+
existing_statusEmoji.__ref === incoming_statusEmoji.__ref))) {
|
|
1051
|
+
return false;
|
|
1052
|
+
}
|
|
1053
|
+
const existing_statusMessage = existing.statusMessage;
|
|
1054
|
+
const incoming_statusMessage = incoming.statusMessage;
|
|
1055
|
+
if (!(existing_statusMessage === incoming_statusMessage)) {
|
|
1056
|
+
return false;
|
|
1057
|
+
}
|
|
1058
|
+
const existing_title = existing.title;
|
|
1059
|
+
const incoming_title = incoming.title;
|
|
1060
|
+
if (!(existing_title === incoming_title)) {
|
|
626
1061
|
return false;
|
|
627
1062
|
}
|
|
628
1063
|
return true;
|
|
@@ -647,9 +1082,12 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
647
1082
|
representationName: RepresentationType$f,
|
|
648
1083
|
mergeable: false
|
|
649
1084
|
});
|
|
1085
|
+
if (input.statusEmoji !== null && typeof input.statusEmoji === 'object') {
|
|
1086
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.statusEmoji);
|
|
1087
|
+
}
|
|
650
1088
|
}
|
|
651
1089
|
|
|
652
|
-
const VERSION$i = "
|
|
1090
|
+
const VERSION$i = "252fe3a6509a770a876e36552ad8dd06";
|
|
653
1091
|
function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
|
|
654
1092
|
const v_error = (() => {
|
|
655
1093
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -662,13 +1100,55 @@ function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
662
1100
|
}
|
|
663
1101
|
const obj_isArchived = obj.isArchived;
|
|
664
1102
|
const path_isArchived = path + '.isArchived';
|
|
665
|
-
|
|
666
|
-
|
|
1103
|
+
let obj_isArchived_union0 = null;
|
|
1104
|
+
const obj_isArchived_union0_error = (() => {
|
|
1105
|
+
if (typeof obj_isArchived !== 'boolean') {
|
|
1106
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isArchived + '" (at "' + path_isArchived + '")');
|
|
1107
|
+
}
|
|
1108
|
+
})();
|
|
1109
|
+
if (obj_isArchived_union0_error != null) {
|
|
1110
|
+
obj_isArchived_union0 = obj_isArchived_union0_error.message;
|
|
1111
|
+
}
|
|
1112
|
+
let obj_isArchived_union1 = null;
|
|
1113
|
+
const obj_isArchived_union1_error = (() => {
|
|
1114
|
+
if (obj_isArchived !== null) {
|
|
1115
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isArchived + '" (at "' + path_isArchived + '")');
|
|
1116
|
+
}
|
|
1117
|
+
})();
|
|
1118
|
+
if (obj_isArchived_union1_error != null) {
|
|
1119
|
+
obj_isArchived_union1 = obj_isArchived_union1_error.message;
|
|
1120
|
+
}
|
|
1121
|
+
if (obj_isArchived_union0 && obj_isArchived_union1) {
|
|
1122
|
+
let message = 'Object doesn\'t match union (at "' + path_isArchived + '")';
|
|
1123
|
+
message += '\n' + obj_isArchived_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1124
|
+
message += '\n' + obj_isArchived_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1125
|
+
return new TypeError(message);
|
|
667
1126
|
}
|
|
668
1127
|
const obj_isChannel = obj.isChannel;
|
|
669
1128
|
const path_isChannel = path + '.isChannel';
|
|
670
|
-
|
|
671
|
-
|
|
1129
|
+
let obj_isChannel_union0 = null;
|
|
1130
|
+
const obj_isChannel_union0_error = (() => {
|
|
1131
|
+
if (typeof obj_isChannel !== 'boolean') {
|
|
1132
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isChannel + '" (at "' + path_isChannel + '")');
|
|
1133
|
+
}
|
|
1134
|
+
})();
|
|
1135
|
+
if (obj_isChannel_union0_error != null) {
|
|
1136
|
+
obj_isChannel_union0 = obj_isChannel_union0_error.message;
|
|
1137
|
+
}
|
|
1138
|
+
let obj_isChannel_union1 = null;
|
|
1139
|
+
const obj_isChannel_union1_error = (() => {
|
|
1140
|
+
if (obj_isChannel !== null) {
|
|
1141
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isChannel + '" (at "' + path_isChannel + '")');
|
|
1142
|
+
}
|
|
1143
|
+
})();
|
|
1144
|
+
if (obj_isChannel_union1_error != null) {
|
|
1145
|
+
obj_isChannel_union1 = obj_isChannel_union1_error.message;
|
|
1146
|
+
}
|
|
1147
|
+
if (obj_isChannel_union0 && obj_isChannel_union1) {
|
|
1148
|
+
let message = 'Object doesn\'t match union (at "' + path_isChannel + '")';
|
|
1149
|
+
message += '\n' + obj_isChannel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1150
|
+
message += '\n' + obj_isChannel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1151
|
+
return new TypeError(message);
|
|
672
1152
|
}
|
|
673
1153
|
const obj_isCustomEmojiSupported = obj.isCustomEmojiSupported;
|
|
674
1154
|
const path_isCustomEmojiSupported = path + '.isCustomEmojiSupported';
|
|
@@ -698,38 +1178,185 @@ function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
698
1178
|
}
|
|
699
1179
|
const obj_isGroup = obj.isGroup;
|
|
700
1180
|
const path_isGroup = path + '.isGroup';
|
|
701
|
-
|
|
702
|
-
|
|
1181
|
+
let obj_isGroup_union0 = null;
|
|
1182
|
+
const obj_isGroup_union0_error = (() => {
|
|
1183
|
+
if (typeof obj_isGroup !== 'boolean') {
|
|
1184
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isGroup + '" (at "' + path_isGroup + '")');
|
|
1185
|
+
}
|
|
1186
|
+
})();
|
|
1187
|
+
if (obj_isGroup_union0_error != null) {
|
|
1188
|
+
obj_isGroup_union0 = obj_isGroup_union0_error.message;
|
|
703
1189
|
}
|
|
704
|
-
|
|
705
|
-
const
|
|
706
|
-
|
|
707
|
-
|
|
1190
|
+
let obj_isGroup_union1 = null;
|
|
1191
|
+
const obj_isGroup_union1_error = (() => {
|
|
1192
|
+
if (obj_isGroup !== null) {
|
|
1193
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isGroup + '" (at "' + path_isGroup + '")');
|
|
1194
|
+
}
|
|
1195
|
+
})();
|
|
1196
|
+
if (obj_isGroup_union1_error != null) {
|
|
1197
|
+
obj_isGroup_union1 = obj_isGroup_union1_error.message;
|
|
1198
|
+
}
|
|
1199
|
+
if (obj_isGroup_union0 && obj_isGroup_union1) {
|
|
1200
|
+
let message = 'Object doesn\'t match union (at "' + path_isGroup + '")';
|
|
1201
|
+
message += '\n' + obj_isGroup_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1202
|
+
message += '\n' + obj_isGroup_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1203
|
+
return new TypeError(message);
|
|
1204
|
+
}
|
|
1205
|
+
const obj_isIm = obj.isIm;
|
|
1206
|
+
const path_isIm = path + '.isIm';
|
|
1207
|
+
let obj_isIm_union0 = null;
|
|
1208
|
+
const obj_isIm_union0_error = (() => {
|
|
1209
|
+
if (typeof obj_isIm !== 'boolean') {
|
|
1210
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isIm + '" (at "' + path_isIm + '")');
|
|
1211
|
+
}
|
|
1212
|
+
})();
|
|
1213
|
+
if (obj_isIm_union0_error != null) {
|
|
1214
|
+
obj_isIm_union0 = obj_isIm_union0_error.message;
|
|
1215
|
+
}
|
|
1216
|
+
let obj_isIm_union1 = null;
|
|
1217
|
+
const obj_isIm_union1_error = (() => {
|
|
1218
|
+
if (obj_isIm !== null) {
|
|
1219
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isIm + '" (at "' + path_isIm + '")');
|
|
1220
|
+
}
|
|
1221
|
+
})();
|
|
1222
|
+
if (obj_isIm_union1_error != null) {
|
|
1223
|
+
obj_isIm_union1 = obj_isIm_union1_error.message;
|
|
1224
|
+
}
|
|
1225
|
+
if (obj_isIm_union0 && obj_isIm_union1) {
|
|
1226
|
+
let message = 'Object doesn\'t match union (at "' + path_isIm + '")';
|
|
1227
|
+
message += '\n' + obj_isIm_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1228
|
+
message += '\n' + obj_isIm_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1229
|
+
return new TypeError(message);
|
|
708
1230
|
}
|
|
709
1231
|
const obj_isMember = obj.isMember;
|
|
710
1232
|
const path_isMember = path + '.isMember';
|
|
711
|
-
|
|
712
|
-
|
|
1233
|
+
let obj_isMember_union0 = null;
|
|
1234
|
+
const obj_isMember_union0_error = (() => {
|
|
1235
|
+
if (typeof obj_isMember !== 'boolean') {
|
|
1236
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMember + '" (at "' + path_isMember + '")');
|
|
1237
|
+
}
|
|
1238
|
+
})();
|
|
1239
|
+
if (obj_isMember_union0_error != null) {
|
|
1240
|
+
obj_isMember_union0 = obj_isMember_union0_error.message;
|
|
1241
|
+
}
|
|
1242
|
+
let obj_isMember_union1 = null;
|
|
1243
|
+
const obj_isMember_union1_error = (() => {
|
|
1244
|
+
if (obj_isMember !== null) {
|
|
1245
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isMember + '" (at "' + path_isMember + '")');
|
|
1246
|
+
}
|
|
1247
|
+
})();
|
|
1248
|
+
if (obj_isMember_union1_error != null) {
|
|
1249
|
+
obj_isMember_union1 = obj_isMember_union1_error.message;
|
|
1250
|
+
}
|
|
1251
|
+
if (obj_isMember_union0 && obj_isMember_union1) {
|
|
1252
|
+
let message = 'Object doesn\'t match union (at "' + path_isMember + '")';
|
|
1253
|
+
message += '\n' + obj_isMember_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1254
|
+
message += '\n' + obj_isMember_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1255
|
+
return new TypeError(message);
|
|
713
1256
|
}
|
|
714
1257
|
const obj_isOpen = obj.isOpen;
|
|
715
1258
|
const path_isOpen = path + '.isOpen';
|
|
716
|
-
|
|
717
|
-
|
|
1259
|
+
let obj_isOpen_union0 = null;
|
|
1260
|
+
const obj_isOpen_union0_error = (() => {
|
|
1261
|
+
if (typeof obj_isOpen !== 'boolean') {
|
|
1262
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isOpen + '" (at "' + path_isOpen + '")');
|
|
1263
|
+
}
|
|
1264
|
+
})();
|
|
1265
|
+
if (obj_isOpen_union0_error != null) {
|
|
1266
|
+
obj_isOpen_union0 = obj_isOpen_union0_error.message;
|
|
1267
|
+
}
|
|
1268
|
+
let obj_isOpen_union1 = null;
|
|
1269
|
+
const obj_isOpen_union1_error = (() => {
|
|
1270
|
+
if (obj_isOpen !== null) {
|
|
1271
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isOpen + '" (at "' + path_isOpen + '")');
|
|
1272
|
+
}
|
|
1273
|
+
})();
|
|
1274
|
+
if (obj_isOpen_union1_error != null) {
|
|
1275
|
+
obj_isOpen_union1 = obj_isOpen_union1_error.message;
|
|
1276
|
+
}
|
|
1277
|
+
if (obj_isOpen_union0 && obj_isOpen_union1) {
|
|
1278
|
+
let message = 'Object doesn\'t match union (at "' + path_isOpen + '")';
|
|
1279
|
+
message += '\n' + obj_isOpen_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1280
|
+
message += '\n' + obj_isOpen_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1281
|
+
return new TypeError(message);
|
|
718
1282
|
}
|
|
719
1283
|
const obj_isPrivate = obj.isPrivate;
|
|
720
1284
|
const path_isPrivate = path + '.isPrivate';
|
|
721
|
-
|
|
722
|
-
|
|
1285
|
+
let obj_isPrivate_union0 = null;
|
|
1286
|
+
const obj_isPrivate_union0_error = (() => {
|
|
1287
|
+
if (typeof obj_isPrivate !== 'boolean') {
|
|
1288
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrivate + '" (at "' + path_isPrivate + '")');
|
|
1289
|
+
}
|
|
1290
|
+
})();
|
|
1291
|
+
if (obj_isPrivate_union0_error != null) {
|
|
1292
|
+
obj_isPrivate_union0 = obj_isPrivate_union0_error.message;
|
|
1293
|
+
}
|
|
1294
|
+
let obj_isPrivate_union1 = null;
|
|
1295
|
+
const obj_isPrivate_union1_error = (() => {
|
|
1296
|
+
if (obj_isPrivate !== null) {
|
|
1297
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isPrivate + '" (at "' + path_isPrivate + '")');
|
|
1298
|
+
}
|
|
1299
|
+
})();
|
|
1300
|
+
if (obj_isPrivate_union1_error != null) {
|
|
1301
|
+
obj_isPrivate_union1 = obj_isPrivate_union1_error.message;
|
|
1302
|
+
}
|
|
1303
|
+
if (obj_isPrivate_union0 && obj_isPrivate_union1) {
|
|
1304
|
+
let message = 'Object doesn\'t match union (at "' + path_isPrivate + '")';
|
|
1305
|
+
message += '\n' + obj_isPrivate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1306
|
+
message += '\n' + obj_isPrivate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1307
|
+
return new TypeError(message);
|
|
723
1308
|
}
|
|
724
1309
|
const obj_isReadOnly = obj.isReadOnly;
|
|
725
1310
|
const path_isReadOnly = path + '.isReadOnly';
|
|
726
|
-
|
|
727
|
-
|
|
1311
|
+
let obj_isReadOnly_union0 = null;
|
|
1312
|
+
const obj_isReadOnly_union0_error = (() => {
|
|
1313
|
+
if (typeof obj_isReadOnly !== 'boolean') {
|
|
1314
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isReadOnly + '" (at "' + path_isReadOnly + '")');
|
|
1315
|
+
}
|
|
1316
|
+
})();
|
|
1317
|
+
if (obj_isReadOnly_union0_error != null) {
|
|
1318
|
+
obj_isReadOnly_union0 = obj_isReadOnly_union0_error.message;
|
|
1319
|
+
}
|
|
1320
|
+
let obj_isReadOnly_union1 = null;
|
|
1321
|
+
const obj_isReadOnly_union1_error = (() => {
|
|
1322
|
+
if (obj_isReadOnly !== null) {
|
|
1323
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isReadOnly + '" (at "' + path_isReadOnly + '")');
|
|
1324
|
+
}
|
|
1325
|
+
})();
|
|
1326
|
+
if (obj_isReadOnly_union1_error != null) {
|
|
1327
|
+
obj_isReadOnly_union1 = obj_isReadOnly_union1_error.message;
|
|
1328
|
+
}
|
|
1329
|
+
if (obj_isReadOnly_union0 && obj_isReadOnly_union1) {
|
|
1330
|
+
let message = 'Object doesn\'t match union (at "' + path_isReadOnly + '")';
|
|
1331
|
+
message += '\n' + obj_isReadOnly_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1332
|
+
message += '\n' + obj_isReadOnly_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1333
|
+
return new TypeError(message);
|
|
728
1334
|
}
|
|
729
1335
|
const obj_isThreadOnly = obj.isThreadOnly;
|
|
730
1336
|
const path_isThreadOnly = path + '.isThreadOnly';
|
|
731
|
-
|
|
732
|
-
|
|
1337
|
+
let obj_isThreadOnly_union0 = null;
|
|
1338
|
+
const obj_isThreadOnly_union0_error = (() => {
|
|
1339
|
+
if (typeof obj_isThreadOnly !== 'boolean') {
|
|
1340
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isThreadOnly + '" (at "' + path_isThreadOnly + '")');
|
|
1341
|
+
}
|
|
1342
|
+
})();
|
|
1343
|
+
if (obj_isThreadOnly_union0_error != null) {
|
|
1344
|
+
obj_isThreadOnly_union0 = obj_isThreadOnly_union0_error.message;
|
|
1345
|
+
}
|
|
1346
|
+
let obj_isThreadOnly_union1 = null;
|
|
1347
|
+
const obj_isThreadOnly_union1_error = (() => {
|
|
1348
|
+
if (obj_isThreadOnly !== null) {
|
|
1349
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isThreadOnly + '" (at "' + path_isThreadOnly + '")');
|
|
1350
|
+
}
|
|
1351
|
+
})();
|
|
1352
|
+
if (obj_isThreadOnly_union1_error != null) {
|
|
1353
|
+
obj_isThreadOnly_union1 = obj_isThreadOnly_union1_error.message;
|
|
1354
|
+
}
|
|
1355
|
+
if (obj_isThreadOnly_union0 && obj_isThreadOnly_union1) {
|
|
1356
|
+
let message = 'Object doesn\'t match union (at "' + path_isThreadOnly + '")';
|
|
1357
|
+
message += '\n' + obj_isThreadOnly_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1358
|
+
message += '\n' + obj_isThreadOnly_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1359
|
+
return new TypeError(message);
|
|
733
1360
|
}
|
|
734
1361
|
const obj_name = obj.name;
|
|
735
1362
|
const path_name = path + '.name';
|
|
@@ -788,23 +1415,30 @@ function validate$i(obj, path = 'SlackBridgeConversationInfoOutputRepresentation
|
|
|
788
1415
|
message += '\n' + obj_shouldCacheCustomEmoji_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
789
1416
|
return new TypeError(message);
|
|
790
1417
|
}
|
|
1418
|
+
if (obj.url !== undefined) {
|
|
1419
|
+
const obj_url = obj.url;
|
|
1420
|
+
const path_url = path + '.url';
|
|
1421
|
+
if (typeof obj_url !== 'string') {
|
|
1422
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
791
1425
|
})();
|
|
792
1426
|
return v_error === undefined ? null : v_error;
|
|
793
1427
|
}
|
|
794
1428
|
const RepresentationType$e = 'SlackBridgeConversationInfoOutputRepresentation';
|
|
795
|
-
function keyBuilder$
|
|
1429
|
+
function keyBuilder$x(luvio, config) {
|
|
796
1430
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.id;
|
|
797
1431
|
}
|
|
798
1432
|
function keyBuilderFromType$8(luvio, object) {
|
|
799
1433
|
const keyParams = {
|
|
800
1434
|
id: object.id
|
|
801
1435
|
};
|
|
802
|
-
return keyBuilder$
|
|
1436
|
+
return keyBuilder$x(luvio, keyParams);
|
|
803
1437
|
}
|
|
804
1438
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
805
1439
|
return input;
|
|
806
1440
|
}
|
|
807
|
-
const select$
|
|
1441
|
+
const select$A = function SlackBridgeConversationInfoOutputRepresentationSelect() {
|
|
808
1442
|
return {
|
|
809
1443
|
kind: 'Fragment',
|
|
810
1444
|
version: VERSION$i,
|
|
@@ -865,11 +1499,39 @@ const select$y = function SlackBridgeConversationInfoOutputRepresentationSelect(
|
|
|
865
1499
|
{
|
|
866
1500
|
name: 'shouldCacheCustomEmoji',
|
|
867
1501
|
kind: 'Scalar'
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
name: 'url',
|
|
1505
|
+
kind: 'Scalar',
|
|
1506
|
+
required: false
|
|
868
1507
|
}
|
|
869
1508
|
]
|
|
870
1509
|
};
|
|
871
1510
|
};
|
|
872
1511
|
function equals$i(existing, incoming) {
|
|
1512
|
+
const existing_id = existing.id;
|
|
1513
|
+
const incoming_id = incoming.id;
|
|
1514
|
+
if (!(existing_id === incoming_id)) {
|
|
1515
|
+
return false;
|
|
1516
|
+
}
|
|
1517
|
+
const existing_name = existing.name;
|
|
1518
|
+
const incoming_name = incoming.name;
|
|
1519
|
+
if (!(existing_name === incoming_name)) {
|
|
1520
|
+
return false;
|
|
1521
|
+
}
|
|
1522
|
+
const existing_url = existing.url;
|
|
1523
|
+
const incoming_url = incoming.url;
|
|
1524
|
+
// if at least one of these optionals is defined
|
|
1525
|
+
if (existing_url !== undefined || incoming_url !== undefined) {
|
|
1526
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1527
|
+
// not equal
|
|
1528
|
+
if (existing_url === undefined || incoming_url === undefined) {
|
|
1529
|
+
return false;
|
|
1530
|
+
}
|
|
1531
|
+
if (!(existing_url === incoming_url)) {
|
|
1532
|
+
return false;
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
873
1535
|
const existing_isArchived = existing.isArchived;
|
|
874
1536
|
const incoming_isArchived = incoming.isArchived;
|
|
875
1537
|
if (!(existing_isArchived === incoming_isArchived)) {
|
|
@@ -880,6 +1542,11 @@ function equals$i(existing, incoming) {
|
|
|
880
1542
|
if (!(existing_isChannel === incoming_isChannel)) {
|
|
881
1543
|
return false;
|
|
882
1544
|
}
|
|
1545
|
+
const existing_isCustomEmojiSupported = existing.isCustomEmojiSupported;
|
|
1546
|
+
const incoming_isCustomEmojiSupported = incoming.isCustomEmojiSupported;
|
|
1547
|
+
if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
|
|
1548
|
+
return false;
|
|
1549
|
+
}
|
|
883
1550
|
const existing_isGroup = existing.isGroup;
|
|
884
1551
|
const incoming_isGroup = incoming.isGroup;
|
|
885
1552
|
if (!(existing_isGroup === incoming_isGroup)) {
|
|
@@ -915,21 +1582,6 @@ function equals$i(existing, incoming) {
|
|
|
915
1582
|
if (!(existing_isThreadOnly === incoming_isThreadOnly)) {
|
|
916
1583
|
return false;
|
|
917
1584
|
}
|
|
918
|
-
const existing_id = existing.id;
|
|
919
|
-
const incoming_id = incoming.id;
|
|
920
|
-
if (!(existing_id === incoming_id)) {
|
|
921
|
-
return false;
|
|
922
|
-
}
|
|
923
|
-
const existing_name = existing.name;
|
|
924
|
-
const incoming_name = incoming.name;
|
|
925
|
-
if (!(existing_name === incoming_name)) {
|
|
926
|
-
return false;
|
|
927
|
-
}
|
|
928
|
-
const existing_isCustomEmojiSupported = existing.isCustomEmojiSupported;
|
|
929
|
-
const incoming_isCustomEmojiSupported = incoming.isCustomEmojiSupported;
|
|
930
|
-
if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
|
|
931
|
-
return false;
|
|
932
|
-
}
|
|
933
1585
|
const existing_numOfMembers = existing.numOfMembers;
|
|
934
1586
|
const incoming_numOfMembers = incoming.numOfMembers;
|
|
935
1587
|
if (!(existing_numOfMembers === incoming_numOfMembers)) {
|
|
@@ -964,7 +1616,7 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
964
1616
|
});
|
|
965
1617
|
}
|
|
966
1618
|
|
|
967
|
-
const VERSION$h = "
|
|
1619
|
+
const VERSION$h = "7820a930852347bb0506c08d8b528281";
|
|
968
1620
|
function validate$h(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
969
1621
|
const v_error = (() => {
|
|
970
1622
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -972,8 +1624,29 @@ function validate$h(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
972
1624
|
}
|
|
973
1625
|
const obj_count = obj.count;
|
|
974
1626
|
const path_count = path + '.count';
|
|
975
|
-
|
|
976
|
-
|
|
1627
|
+
let obj_count_union0 = null;
|
|
1628
|
+
const obj_count_union0_error = (() => {
|
|
1629
|
+
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
1630
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
1631
|
+
}
|
|
1632
|
+
})();
|
|
1633
|
+
if (obj_count_union0_error != null) {
|
|
1634
|
+
obj_count_union0 = obj_count_union0_error.message;
|
|
1635
|
+
}
|
|
1636
|
+
let obj_count_union1 = null;
|
|
1637
|
+
const obj_count_union1_error = (() => {
|
|
1638
|
+
if (obj_count !== null) {
|
|
1639
|
+
return new TypeError('Expected "null" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
1640
|
+
}
|
|
1641
|
+
})();
|
|
1642
|
+
if (obj_count_union1_error != null) {
|
|
1643
|
+
obj_count_union1 = obj_count_union1_error.message;
|
|
1644
|
+
}
|
|
1645
|
+
if (obj_count_union0 && obj_count_union1) {
|
|
1646
|
+
let message = 'Object doesn\'t match union (at "' + path_count + '")';
|
|
1647
|
+
message += '\n' + obj_count_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1648
|
+
message += '\n' + obj_count_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1649
|
+
return new TypeError(message);
|
|
977
1650
|
}
|
|
978
1651
|
const obj_name = obj.name;
|
|
979
1652
|
const path_name = path + '.name';
|
|
@@ -1021,7 +1694,7 @@ function validate$h(obj, path = 'SlackBridgeReactionOutputRepresentation') {
|
|
|
1021
1694
|
})();
|
|
1022
1695
|
return v_error === undefined ? null : v_error;
|
|
1023
1696
|
}
|
|
1024
|
-
const select$
|
|
1697
|
+
const select$z = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
1025
1698
|
return {
|
|
1026
1699
|
kind: 'Fragment',
|
|
1027
1700
|
version: VERSION$h,
|
|
@@ -1048,16 +1721,16 @@ const select$x = function SlackBridgeReactionOutputRepresentationSelect() {
|
|
|
1048
1721
|
};
|
|
1049
1722
|
};
|
|
1050
1723
|
function equals$h(existing, incoming) {
|
|
1051
|
-
const existing_count = existing.count;
|
|
1052
|
-
const incoming_count = incoming.count;
|
|
1053
|
-
if (!(existing_count === incoming_count)) {
|
|
1054
|
-
return false;
|
|
1055
|
-
}
|
|
1056
1724
|
const existing_name = existing.name;
|
|
1057
1725
|
const incoming_name = incoming.name;
|
|
1058
1726
|
if (!(existing_name === incoming_name)) {
|
|
1059
1727
|
return false;
|
|
1060
1728
|
}
|
|
1729
|
+
const existing_count = existing.count;
|
|
1730
|
+
const incoming_count = incoming.count;
|
|
1731
|
+
if (!(existing_count === incoming_count)) {
|
|
1732
|
+
return false;
|
|
1733
|
+
}
|
|
1061
1734
|
const existing_reactedUsers = existing.reactedUsers;
|
|
1062
1735
|
const incoming_reactedUsers = incoming.reactedUsers;
|
|
1063
1736
|
const equals_reactedUsers_items = equalsArray(existing_reactedUsers, incoming_reactedUsers, (existing_reactedUsers_item, incoming_reactedUsers_item) => {
|
|
@@ -1095,7 +1768,7 @@ function validate$g(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
|
|
|
1095
1768
|
})();
|
|
1096
1769
|
return v_error === undefined ? null : v_error;
|
|
1097
1770
|
}
|
|
1098
|
-
const select$
|
|
1771
|
+
const select$y = function SlackBridgeFileTypeOutputRepresentationSelect() {
|
|
1099
1772
|
return {
|
|
1100
1773
|
kind: 'Fragment',
|
|
1101
1774
|
version: VERSION$g,
|
|
@@ -1126,7 +1799,7 @@ function equals$g(existing, incoming) {
|
|
|
1126
1799
|
return true;
|
|
1127
1800
|
}
|
|
1128
1801
|
|
|
1129
|
-
const VERSION$f = "
|
|
1802
|
+
const VERSION$f = "3ef7c0314c9cc37a0b6c3b0dbd6a76a5";
|
|
1130
1803
|
function validate$f(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
|
|
1131
1804
|
const v_error = (() => {
|
|
1132
1805
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1139,10 +1812,31 @@ function validate$f(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1139
1812
|
}
|
|
1140
1813
|
const obj_filetype = obj.filetype;
|
|
1141
1814
|
const path_filetype = path + '.filetype';
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1815
|
+
let obj_filetype_union0 = null;
|
|
1816
|
+
const obj_filetype_union0_error = (() => {
|
|
1817
|
+
const referencepath_filetypeValidationError = validate$g(obj_filetype, path_filetype);
|
|
1818
|
+
if (referencepath_filetypeValidationError !== null) {
|
|
1819
|
+
let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
1820
|
+
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
1821
|
+
return new TypeError(message);
|
|
1822
|
+
}
|
|
1823
|
+
})();
|
|
1824
|
+
if (obj_filetype_union0_error != null) {
|
|
1825
|
+
obj_filetype_union0 = obj_filetype_union0_error.message;
|
|
1826
|
+
}
|
|
1827
|
+
let obj_filetype_union1 = null;
|
|
1828
|
+
const obj_filetype_union1_error = (() => {
|
|
1829
|
+
if (obj_filetype !== null) {
|
|
1830
|
+
return new TypeError('Expected "null" but received "' + typeof obj_filetype + '" (at "' + path_filetype + '")');
|
|
1831
|
+
}
|
|
1832
|
+
})();
|
|
1833
|
+
if (obj_filetype_union1_error != null) {
|
|
1834
|
+
obj_filetype_union1 = obj_filetype_union1_error.message;
|
|
1835
|
+
}
|
|
1836
|
+
if (obj_filetype_union0 && obj_filetype_union1) {
|
|
1837
|
+
let message = 'Object doesn\'t match union (at "' + path_filetype + '")';
|
|
1838
|
+
message += '\n' + obj_filetype_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1839
|
+
message += '\n' + obj_filetype_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1146
1840
|
return new TypeError(message);
|
|
1147
1841
|
}
|
|
1148
1842
|
const obj_id = obj.id;
|
|
@@ -1162,14 +1856,35 @@ function validate$f(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
|
|
|
1162
1856
|
}
|
|
1163
1857
|
const obj_versionUrl = obj.versionUrl;
|
|
1164
1858
|
const path_versionUrl = path + '.versionUrl';
|
|
1165
|
-
|
|
1166
|
-
|
|
1859
|
+
let obj_versionUrl_union0 = null;
|
|
1860
|
+
const obj_versionUrl_union0_error = (() => {
|
|
1861
|
+
if (typeof obj_versionUrl !== 'string') {
|
|
1862
|
+
return new TypeError('Expected "string" but received "' + typeof obj_versionUrl + '" (at "' + path_versionUrl + '")');
|
|
1863
|
+
}
|
|
1864
|
+
})();
|
|
1865
|
+
if (obj_versionUrl_union0_error != null) {
|
|
1866
|
+
obj_versionUrl_union0 = obj_versionUrl_union0_error.message;
|
|
1867
|
+
}
|
|
1868
|
+
let obj_versionUrl_union1 = null;
|
|
1869
|
+
const obj_versionUrl_union1_error = (() => {
|
|
1870
|
+
if (obj_versionUrl !== null) {
|
|
1871
|
+
return new TypeError('Expected "null" but received "' + typeof obj_versionUrl + '" (at "' + path_versionUrl + '")');
|
|
1872
|
+
}
|
|
1873
|
+
})();
|
|
1874
|
+
if (obj_versionUrl_union1_error != null) {
|
|
1875
|
+
obj_versionUrl_union1 = obj_versionUrl_union1_error.message;
|
|
1876
|
+
}
|
|
1877
|
+
if (obj_versionUrl_union0 && obj_versionUrl_union1) {
|
|
1878
|
+
let message = 'Object doesn\'t match union (at "' + path_versionUrl + '")';
|
|
1879
|
+
message += '\n' + obj_versionUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1880
|
+
message += '\n' + obj_versionUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1881
|
+
return new TypeError(message);
|
|
1167
1882
|
}
|
|
1168
1883
|
})();
|
|
1169
1884
|
return v_error === undefined ? null : v_error;
|
|
1170
1885
|
}
|
|
1171
|
-
const select$
|
|
1172
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1886
|
+
const select$x = function SlackBridgeContentVersionOutputRepresentationSelect() {
|
|
1887
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$y();
|
|
1173
1888
|
return {
|
|
1174
1889
|
kind: 'Fragment',
|
|
1175
1890
|
version: VERSION$f,
|
|
@@ -1182,6 +1897,7 @@ const select$v = function SlackBridgeContentVersionOutputRepresentationSelect()
|
|
|
1182
1897
|
{
|
|
1183
1898
|
name: 'filetype',
|
|
1184
1899
|
kind: 'Object',
|
|
1900
|
+
nullable: true,
|
|
1185
1901
|
selections: SlackBridgeFileTypeOutputRepresentation__selections
|
|
1186
1902
|
},
|
|
1187
1903
|
{
|
|
@@ -1224,16 +1940,19 @@ function equals$f(existing, incoming) {
|
|
|
1224
1940
|
if (!(existing_title === incoming_title)) {
|
|
1225
1941
|
return false;
|
|
1226
1942
|
}
|
|
1943
|
+
const existing_filetype = existing.filetype;
|
|
1944
|
+
const incoming_filetype = incoming.filetype;
|
|
1945
|
+
if (!(existing_filetype === incoming_filetype
|
|
1946
|
+
|| (existing_filetype != null &&
|
|
1947
|
+
incoming_filetype != null &&
|
|
1948
|
+
equals$g(existing_filetype, incoming_filetype)))) {
|
|
1949
|
+
return false;
|
|
1950
|
+
}
|
|
1227
1951
|
const existing_versionUrl = existing.versionUrl;
|
|
1228
1952
|
const incoming_versionUrl = incoming.versionUrl;
|
|
1229
1953
|
if (!(existing_versionUrl === incoming_versionUrl)) {
|
|
1230
1954
|
return false;
|
|
1231
1955
|
}
|
|
1232
|
-
const existing_filetype = existing.filetype;
|
|
1233
|
-
const incoming_filetype = incoming.filetype;
|
|
1234
|
-
if (!(equals$g(existing_filetype, incoming_filetype))) {
|
|
1235
|
-
return false;
|
|
1236
|
-
}
|
|
1237
1956
|
return true;
|
|
1238
1957
|
}
|
|
1239
1958
|
|
|
@@ -1277,9 +1996,9 @@ function validate$e(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
|
|
|
1277
1996
|
})();
|
|
1278
1997
|
return v_error === undefined ? null : v_error;
|
|
1279
1998
|
}
|
|
1280
|
-
const select$
|
|
1281
|
-
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$
|
|
1282
|
-
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$
|
|
1999
|
+
const select$w = function SlackBridgeContentDocumentOutputRepresentationSelect() {
|
|
2000
|
+
const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$y();
|
|
2001
|
+
const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$x();
|
|
1283
2002
|
return {
|
|
1284
2003
|
kind: 'Fragment',
|
|
1285
2004
|
version: VERSION$e,
|
|
@@ -1339,7 +2058,7 @@ function equals$e(existing, incoming) {
|
|
|
1339
2058
|
return true;
|
|
1340
2059
|
}
|
|
1341
2060
|
|
|
1342
|
-
const VERSION$d = "
|
|
2061
|
+
const VERSION$d = "15fa7211c500ebba9537b3c9921b39cf";
|
|
1343
2062
|
function validate$d(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
1344
2063
|
const v_error = (() => {
|
|
1345
2064
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1347,10 +2066,31 @@ function validate$d(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1347
2066
|
}
|
|
1348
2067
|
const obj_contentDocument = obj.contentDocument;
|
|
1349
2068
|
const path_contentDocument = path + '.contentDocument';
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
2069
|
+
let obj_contentDocument_union0 = null;
|
|
2070
|
+
const obj_contentDocument_union0_error = (() => {
|
|
2071
|
+
const referencepath_contentDocumentValidationError = validate$e(obj_contentDocument, path_contentDocument);
|
|
2072
|
+
if (referencepath_contentDocumentValidationError !== null) {
|
|
2073
|
+
let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
2074
|
+
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2075
|
+
return new TypeError(message);
|
|
2076
|
+
}
|
|
2077
|
+
})();
|
|
2078
|
+
if (obj_contentDocument_union0_error != null) {
|
|
2079
|
+
obj_contentDocument_union0 = obj_contentDocument_union0_error.message;
|
|
2080
|
+
}
|
|
2081
|
+
let obj_contentDocument_union1 = null;
|
|
2082
|
+
const obj_contentDocument_union1_error = (() => {
|
|
2083
|
+
if (obj_contentDocument !== null) {
|
|
2084
|
+
return new TypeError('Expected "null" but received "' + typeof obj_contentDocument + '" (at "' + path_contentDocument + '")');
|
|
2085
|
+
}
|
|
2086
|
+
})();
|
|
2087
|
+
if (obj_contentDocument_union1_error != null) {
|
|
2088
|
+
obj_contentDocument_union1 = obj_contentDocument_union1_error.message;
|
|
2089
|
+
}
|
|
2090
|
+
if (obj_contentDocument_union0 && obj_contentDocument_union1) {
|
|
2091
|
+
let message = 'Object doesn\'t match union (at "' + path_contentDocument + '")';
|
|
2092
|
+
message += '\n' + obj_contentDocument_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2093
|
+
message += '\n' + obj_contentDocument_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1354
2094
|
return new TypeError(message);
|
|
1355
2095
|
}
|
|
1356
2096
|
const obj_filetype = obj.filetype;
|
|
@@ -1375,8 +2115,29 @@ function validate$d(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1375
2115
|
}
|
|
1376
2116
|
const obj_size = obj.size;
|
|
1377
2117
|
const path_size = path + '.size';
|
|
1378
|
-
|
|
1379
|
-
|
|
2118
|
+
let obj_size_union0 = null;
|
|
2119
|
+
const obj_size_union0_error = (() => {
|
|
2120
|
+
if (typeof obj_size !== 'number' || (typeof obj_size === 'number' && Math.floor(obj_size) !== obj_size)) {
|
|
2121
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
2122
|
+
}
|
|
2123
|
+
})();
|
|
2124
|
+
if (obj_size_union0_error != null) {
|
|
2125
|
+
obj_size_union0 = obj_size_union0_error.message;
|
|
2126
|
+
}
|
|
2127
|
+
let obj_size_union1 = null;
|
|
2128
|
+
const obj_size_union1_error = (() => {
|
|
2129
|
+
if (obj_size !== null) {
|
|
2130
|
+
return new TypeError('Expected "null" but received "' + typeof obj_size + '" (at "' + path_size + '")');
|
|
2131
|
+
}
|
|
2132
|
+
})();
|
|
2133
|
+
if (obj_size_union1_error != null) {
|
|
2134
|
+
obj_size_union1 = obj_size_union1_error.message;
|
|
2135
|
+
}
|
|
2136
|
+
if (obj_size_union0 && obj_size_union1) {
|
|
2137
|
+
let message = 'Object doesn\'t match union (at "' + path_size + '")';
|
|
2138
|
+
message += '\n' + obj_size_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2139
|
+
message += '\n' + obj_size_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2140
|
+
return new TypeError(message);
|
|
1380
2141
|
}
|
|
1381
2142
|
const obj_slackPermalink = obj.slackPermalink;
|
|
1382
2143
|
const path_slackPermalink = path + '.slackPermalink';
|
|
@@ -1390,37 +2151,100 @@ function validate$d(obj, path = 'SlackBridgeFileOutputRepresentation') {
|
|
|
1390
2151
|
}
|
|
1391
2152
|
const obj_token = obj.token;
|
|
1392
2153
|
const path_token = path + '.token';
|
|
1393
|
-
|
|
1394
|
-
|
|
2154
|
+
let obj_token_union0 = null;
|
|
2155
|
+
const obj_token_union0_error = (() => {
|
|
2156
|
+
if (typeof obj_token !== 'string') {
|
|
2157
|
+
return new TypeError('Expected "string" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
2158
|
+
}
|
|
2159
|
+
})();
|
|
2160
|
+
if (obj_token_union0_error != null) {
|
|
2161
|
+
obj_token_union0 = obj_token_union0_error.message;
|
|
2162
|
+
}
|
|
2163
|
+
let obj_token_union1 = null;
|
|
2164
|
+
const obj_token_union1_error = (() => {
|
|
2165
|
+
if (obj_token !== null) {
|
|
2166
|
+
return new TypeError('Expected "null" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
2167
|
+
}
|
|
2168
|
+
})();
|
|
2169
|
+
if (obj_token_union1_error != null) {
|
|
2170
|
+
obj_token_union1 = obj_token_union1_error.message;
|
|
2171
|
+
}
|
|
2172
|
+
if (obj_token_union0 && obj_token_union1) {
|
|
2173
|
+
let message = 'Object doesn\'t match union (at "' + path_token + '")';
|
|
2174
|
+
message += '\n' + obj_token_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2175
|
+
message += '\n' + obj_token_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2176
|
+
return new TypeError(message);
|
|
1395
2177
|
}
|
|
1396
2178
|
const obj_uniqueKey = obj.uniqueKey;
|
|
1397
2179
|
const path_uniqueKey = path + '.uniqueKey';
|
|
1398
|
-
|
|
1399
|
-
|
|
2180
|
+
let obj_uniqueKey_union0 = null;
|
|
2181
|
+
const obj_uniqueKey_union0_error = (() => {
|
|
2182
|
+
if (typeof obj_uniqueKey !== 'string') {
|
|
2183
|
+
return new TypeError('Expected "string" but received "' + typeof obj_uniqueKey + '" (at "' + path_uniqueKey + '")');
|
|
2184
|
+
}
|
|
2185
|
+
})();
|
|
2186
|
+
if (obj_uniqueKey_union0_error != null) {
|
|
2187
|
+
obj_uniqueKey_union0 = obj_uniqueKey_union0_error.message;
|
|
2188
|
+
}
|
|
2189
|
+
let obj_uniqueKey_union1 = null;
|
|
2190
|
+
const obj_uniqueKey_union1_error = (() => {
|
|
2191
|
+
if (obj_uniqueKey !== null) {
|
|
2192
|
+
return new TypeError('Expected "null" but received "' + typeof obj_uniqueKey + '" (at "' + path_uniqueKey + '")');
|
|
2193
|
+
}
|
|
2194
|
+
})();
|
|
2195
|
+
if (obj_uniqueKey_union1_error != null) {
|
|
2196
|
+
obj_uniqueKey_union1 = obj_uniqueKey_union1_error.message;
|
|
2197
|
+
}
|
|
2198
|
+
if (obj_uniqueKey_union0 && obj_uniqueKey_union1) {
|
|
2199
|
+
let message = 'Object doesn\'t match union (at "' + path_uniqueKey + '")';
|
|
2200
|
+
message += '\n' + obj_uniqueKey_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2201
|
+
message += '\n' + obj_uniqueKey_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2202
|
+
return new TypeError(message);
|
|
1400
2203
|
}
|
|
1401
2204
|
const obj_url = obj.url;
|
|
1402
2205
|
const path_url = path + '.url';
|
|
1403
|
-
|
|
1404
|
-
|
|
2206
|
+
let obj_url_union0 = null;
|
|
2207
|
+
const obj_url_union0_error = (() => {
|
|
2208
|
+
if (typeof obj_url !== 'string') {
|
|
2209
|
+
return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
2210
|
+
}
|
|
2211
|
+
})();
|
|
2212
|
+
if (obj_url_union0_error != null) {
|
|
2213
|
+
obj_url_union0 = obj_url_union0_error.message;
|
|
2214
|
+
}
|
|
2215
|
+
let obj_url_union1 = null;
|
|
2216
|
+
const obj_url_union1_error = (() => {
|
|
2217
|
+
if (obj_url !== null) {
|
|
2218
|
+
return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
|
|
2219
|
+
}
|
|
2220
|
+
})();
|
|
2221
|
+
if (obj_url_union1_error != null) {
|
|
2222
|
+
obj_url_union1 = obj_url_union1_error.message;
|
|
2223
|
+
}
|
|
2224
|
+
if (obj_url_union0 && obj_url_union1) {
|
|
2225
|
+
let message = 'Object doesn\'t match union (at "' + path_url + '")';
|
|
2226
|
+
message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2227
|
+
message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2228
|
+
return new TypeError(message);
|
|
1405
2229
|
}
|
|
1406
2230
|
})();
|
|
1407
2231
|
return v_error === undefined ? null : v_error;
|
|
1408
2232
|
}
|
|
1409
2233
|
const RepresentationType$d = 'SlackBridgeFileOutputRepresentation';
|
|
1410
|
-
function keyBuilder$
|
|
1411
|
-
return keyPrefix + '::' + RepresentationType$d + ':' + config.uniqueKey;
|
|
2234
|
+
function keyBuilder$w(luvio, config) {
|
|
2235
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + (config.uniqueKey === null ? '' : config.uniqueKey);
|
|
1412
2236
|
}
|
|
1413
2237
|
function keyBuilderFromType$7(luvio, object) {
|
|
1414
2238
|
const keyParams = {
|
|
1415
2239
|
uniqueKey: object.uniqueKey
|
|
1416
2240
|
};
|
|
1417
|
-
return keyBuilder$
|
|
2241
|
+
return keyBuilder$w(luvio, keyParams);
|
|
1418
2242
|
}
|
|
1419
2243
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
1420
2244
|
return input;
|
|
1421
2245
|
}
|
|
1422
|
-
const select$
|
|
1423
|
-
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$
|
|
2246
|
+
const select$v = function SlackBridgeFileOutputRepresentationSelect() {
|
|
2247
|
+
const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$w();
|
|
1424
2248
|
return {
|
|
1425
2249
|
kind: 'Fragment',
|
|
1426
2250
|
version: VERSION$d,
|
|
@@ -1429,6 +2253,7 @@ const select$t = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
1429
2253
|
{
|
|
1430
2254
|
name: 'contentDocument',
|
|
1431
2255
|
kind: 'Object',
|
|
2256
|
+
nullable: true,
|
|
1432
2257
|
selections: SlackBridgeContentDocumentOutputRepresentation__selections
|
|
1433
2258
|
},
|
|
1434
2259
|
{
|
|
@@ -1475,11 +2300,6 @@ const select$t = function SlackBridgeFileOutputRepresentationSelect() {
|
|
|
1475
2300
|
};
|
|
1476
2301
|
};
|
|
1477
2302
|
function equals$d(existing, incoming) {
|
|
1478
|
-
const existing_size = existing.size;
|
|
1479
|
-
const incoming_size = incoming.size;
|
|
1480
|
-
if (!(existing_size === incoming_size)) {
|
|
1481
|
-
return false;
|
|
1482
|
-
}
|
|
1483
2303
|
const existing_filetype = existing.filetype;
|
|
1484
2304
|
const incoming_filetype = incoming.filetype;
|
|
1485
2305
|
if (!(existing_filetype === incoming_filetype)) {
|
|
@@ -1510,6 +2330,19 @@ function equals$d(existing, incoming) {
|
|
|
1510
2330
|
if (!(existing_title === incoming_title)) {
|
|
1511
2331
|
return false;
|
|
1512
2332
|
}
|
|
2333
|
+
const existing_contentDocument = existing.contentDocument;
|
|
2334
|
+
const incoming_contentDocument = incoming.contentDocument;
|
|
2335
|
+
if (!(existing_contentDocument === incoming_contentDocument
|
|
2336
|
+
|| (existing_contentDocument != null &&
|
|
2337
|
+
incoming_contentDocument != null &&
|
|
2338
|
+
equals$e(existing_contentDocument, incoming_contentDocument)))) {
|
|
2339
|
+
return false;
|
|
2340
|
+
}
|
|
2341
|
+
const existing_size = existing.size;
|
|
2342
|
+
const incoming_size = incoming.size;
|
|
2343
|
+
if (!(existing_size === incoming_size)) {
|
|
2344
|
+
return false;
|
|
2345
|
+
}
|
|
1513
2346
|
const existing_token = existing.token;
|
|
1514
2347
|
const incoming_token = incoming.token;
|
|
1515
2348
|
if (!(existing_token === incoming_token)) {
|
|
@@ -1525,11 +2358,6 @@ function equals$d(existing, incoming) {
|
|
|
1525
2358
|
if (!(existing_url === incoming_url)) {
|
|
1526
2359
|
return false;
|
|
1527
2360
|
}
|
|
1528
|
-
const existing_contentDocument = existing.contentDocument;
|
|
1529
|
-
const incoming_contentDocument = incoming.contentDocument;
|
|
1530
|
-
if (!(equals$e(existing_contentDocument, incoming_contentDocument))) {
|
|
1531
|
-
return false;
|
|
1532
|
-
}
|
|
1533
2361
|
return true;
|
|
1534
2362
|
}
|
|
1535
2363
|
const ingest$d = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -1554,7 +2382,7 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1554
2382
|
});
|
|
1555
2383
|
}
|
|
1556
2384
|
|
|
1557
|
-
const VERSION$c = "
|
|
2385
|
+
const VERSION$c = "a8502e4e4bb65313c6fbaa1f89f1e539";
|
|
1558
2386
|
function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
1559
2387
|
const v_error = (() => {
|
|
1560
2388
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1642,8 +2470,29 @@ function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
1642
2470
|
}
|
|
1643
2471
|
const obj_isBroadcast = obj.isBroadcast;
|
|
1644
2472
|
const path_isBroadcast = path + '.isBroadcast';
|
|
1645
|
-
|
|
1646
|
-
|
|
2473
|
+
let obj_isBroadcast_union0 = null;
|
|
2474
|
+
const obj_isBroadcast_union0_error = (() => {
|
|
2475
|
+
if (typeof obj_isBroadcast !== 'boolean') {
|
|
2476
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
|
|
2477
|
+
}
|
|
2478
|
+
})();
|
|
2479
|
+
if (obj_isBroadcast_union0_error != null) {
|
|
2480
|
+
obj_isBroadcast_union0 = obj_isBroadcast_union0_error.message;
|
|
2481
|
+
}
|
|
2482
|
+
let obj_isBroadcast_union1 = null;
|
|
2483
|
+
const obj_isBroadcast_union1_error = (() => {
|
|
2484
|
+
if (obj_isBroadcast !== null) {
|
|
2485
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isBroadcast + '" (at "' + path_isBroadcast + '")');
|
|
2486
|
+
}
|
|
2487
|
+
})();
|
|
2488
|
+
if (obj_isBroadcast_union1_error != null) {
|
|
2489
|
+
obj_isBroadcast_union1 = obj_isBroadcast_union1_error.message;
|
|
2490
|
+
}
|
|
2491
|
+
if (obj_isBroadcast_union0 && obj_isBroadcast_union1) {
|
|
2492
|
+
let message = 'Object doesn\'t match union (at "' + path_isBroadcast + '")';
|
|
2493
|
+
message += '\n' + obj_isBroadcast_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2494
|
+
message += '\n' + obj_isBroadcast_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2495
|
+
return new TypeError(message);
|
|
1647
2496
|
}
|
|
1648
2497
|
const obj_isEditable = obj.isEditable;
|
|
1649
2498
|
const path_isEditable = path + '.isEditable';
|
|
@@ -1652,8 +2501,29 @@ function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
1652
2501
|
}
|
|
1653
2502
|
const obj_isEdited = obj.isEdited;
|
|
1654
2503
|
const path_isEdited = path + '.isEdited';
|
|
1655
|
-
|
|
1656
|
-
|
|
2504
|
+
let obj_isEdited_union0 = null;
|
|
2505
|
+
const obj_isEdited_union0_error = (() => {
|
|
2506
|
+
if (typeof obj_isEdited !== 'boolean') {
|
|
2507
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
|
|
2508
|
+
}
|
|
2509
|
+
})();
|
|
2510
|
+
if (obj_isEdited_union0_error != null) {
|
|
2511
|
+
obj_isEdited_union0 = obj_isEdited_union0_error.message;
|
|
2512
|
+
}
|
|
2513
|
+
let obj_isEdited_union1 = null;
|
|
2514
|
+
const obj_isEdited_union1_error = (() => {
|
|
2515
|
+
if (obj_isEdited !== null) {
|
|
2516
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isEdited + '" (at "' + path_isEdited + '")');
|
|
2517
|
+
}
|
|
2518
|
+
})();
|
|
2519
|
+
if (obj_isEdited_union1_error != null) {
|
|
2520
|
+
obj_isEdited_union1 = obj_isEdited_union1_error.message;
|
|
2521
|
+
}
|
|
2522
|
+
if (obj_isEdited_union0 && obj_isEdited_union1) {
|
|
2523
|
+
let message = 'Object doesn\'t match union (at "' + path_isEdited + '")';
|
|
2524
|
+
message += '\n' + obj_isEdited_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2525
|
+
message += '\n' + obj_isEdited_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2526
|
+
return new TypeError(message);
|
|
1657
2527
|
}
|
|
1658
2528
|
const obj_latestReplyTimestamp = obj.latestReplyTimestamp;
|
|
1659
2529
|
const path_latestReplyTimestamp = path + '.latestReplyTimestamp';
|
|
@@ -1829,8 +2699,29 @@ function validate$c(obj, path = 'SlackBridgeMessageOutputRepresentation') {
|
|
|
1829
2699
|
}
|
|
1830
2700
|
const obj_type = obj.type;
|
|
1831
2701
|
const path_type = path + '.type';
|
|
1832
|
-
|
|
1833
|
-
|
|
2702
|
+
let obj_type_union0 = null;
|
|
2703
|
+
const obj_type_union0_error = (() => {
|
|
2704
|
+
if (typeof obj_type !== 'string') {
|
|
2705
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
2706
|
+
}
|
|
2707
|
+
})();
|
|
2708
|
+
if (obj_type_union0_error != null) {
|
|
2709
|
+
obj_type_union0 = obj_type_union0_error.message;
|
|
2710
|
+
}
|
|
2711
|
+
let obj_type_union1 = null;
|
|
2712
|
+
const obj_type_union1_error = (() => {
|
|
2713
|
+
if (obj_type !== null) {
|
|
2714
|
+
return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
2715
|
+
}
|
|
2716
|
+
})();
|
|
2717
|
+
if (obj_type_union1_error != null) {
|
|
2718
|
+
obj_type_union1 = obj_type_union1_error.message;
|
|
2719
|
+
}
|
|
2720
|
+
if (obj_type_union0 && obj_type_union1) {
|
|
2721
|
+
let message = 'Object doesn\'t match union (at "' + path_type + '")';
|
|
2722
|
+
message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2723
|
+
message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2724
|
+
return new TypeError(message);
|
|
1834
2725
|
}
|
|
1835
2726
|
const obj_url = obj.url;
|
|
1836
2727
|
const path_url = path + '.url';
|
|
@@ -1860,8 +2751,8 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
1860
2751
|
}
|
|
1861
2752
|
return input;
|
|
1862
2753
|
}
|
|
1863
|
-
const select$
|
|
1864
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
2754
|
+
const select$u = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
2755
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$z();
|
|
1865
2756
|
return {
|
|
1866
2757
|
kind: 'Fragment',
|
|
1867
2758
|
version: VERSION$c,
|
|
@@ -1881,7 +2772,7 @@ const select$s = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
1881
2772
|
name: 'files',
|
|
1882
2773
|
kind: 'Link',
|
|
1883
2774
|
plural: true,
|
|
1884
|
-
fragment: select$
|
|
2775
|
+
fragment: select$v()
|
|
1885
2776
|
},
|
|
1886
2777
|
{
|
|
1887
2778
|
name: 'includesCustomEmoji',
|
|
@@ -1954,21 +2845,11 @@ const select$s = function SlackBridgeMessageOutputRepresentationSelect() {
|
|
|
1954
2845
|
};
|
|
1955
2846
|
};
|
|
1956
2847
|
function equals$c(existing, incoming) {
|
|
1957
|
-
const existing_isBroadcast = existing.isBroadcast;
|
|
1958
|
-
const incoming_isBroadcast = incoming.isBroadcast;
|
|
1959
|
-
if (!(existing_isBroadcast === incoming_isBroadcast)) {
|
|
1960
|
-
return false;
|
|
1961
|
-
}
|
|
1962
2848
|
const existing_isEditable = existing.isEditable;
|
|
1963
2849
|
const incoming_isEditable = incoming.isEditable;
|
|
1964
2850
|
if (!(existing_isEditable === incoming_isEditable)) {
|
|
1965
2851
|
return false;
|
|
1966
2852
|
}
|
|
1967
|
-
const existing_isEdited = existing.isEdited;
|
|
1968
|
-
const incoming_isEdited = incoming.isEdited;
|
|
1969
|
-
if (!(existing_isEdited === incoming_isEdited)) {
|
|
1970
|
-
return false;
|
|
1971
|
-
}
|
|
1972
2853
|
const existing_message = existing.message;
|
|
1973
2854
|
const incoming_message = incoming.message;
|
|
1974
2855
|
if (!(existing_message === incoming_message)) {
|
|
@@ -1984,11 +2865,6 @@ function equals$c(existing, incoming) {
|
|
|
1984
2865
|
if (!(existing_slackUserId === incoming_slackUserId)) {
|
|
1985
2866
|
return false;
|
|
1986
2867
|
}
|
|
1987
|
-
const existing_type = existing.type;
|
|
1988
|
-
const incoming_type = incoming.type;
|
|
1989
|
-
if (!(existing_type === incoming_type)) {
|
|
1990
|
-
return false;
|
|
1991
|
-
}
|
|
1992
2868
|
const existing_url = existing.url;
|
|
1993
2869
|
const incoming_url = incoming.url;
|
|
1994
2870
|
if (!(existing_url === incoming_url)) {
|
|
@@ -2039,8 +2915,18 @@ function equals$c(existing, incoming) {
|
|
|
2039
2915
|
if (!(existing_includesCustomEmoji === incoming_includesCustomEmoji)) {
|
|
2040
2916
|
return false;
|
|
2041
2917
|
}
|
|
2042
|
-
const
|
|
2043
|
-
const
|
|
2918
|
+
const existing_isBroadcast = existing.isBroadcast;
|
|
2919
|
+
const incoming_isBroadcast = incoming.isBroadcast;
|
|
2920
|
+
if (!(existing_isBroadcast === incoming_isBroadcast)) {
|
|
2921
|
+
return false;
|
|
2922
|
+
}
|
|
2923
|
+
const existing_isEdited = existing.isEdited;
|
|
2924
|
+
const incoming_isEdited = incoming.isEdited;
|
|
2925
|
+
if (!(existing_isEdited === incoming_isEdited)) {
|
|
2926
|
+
return false;
|
|
2927
|
+
}
|
|
2928
|
+
const existing_latestReplyTimestamp = existing.latestReplyTimestamp;
|
|
2929
|
+
const incoming_latestReplyTimestamp = incoming.latestReplyTimestamp;
|
|
2044
2930
|
if (!(existing_latestReplyTimestamp === incoming_latestReplyTimestamp)) {
|
|
2045
2931
|
return false;
|
|
2046
2932
|
}
|
|
@@ -2084,6 +2970,11 @@ function equals$c(existing, incoming) {
|
|
|
2084
2970
|
if (!(existing_threadTs === incoming_threadTs)) {
|
|
2085
2971
|
return false;
|
|
2086
2972
|
}
|
|
2973
|
+
const existing_type = existing.type;
|
|
2974
|
+
const incoming_type = incoming.type;
|
|
2975
|
+
if (!(existing_type === incoming_type)) {
|
|
2976
|
+
return false;
|
|
2977
|
+
}
|
|
2087
2978
|
return true;
|
|
2088
2979
|
}
|
|
2089
2980
|
const ingest$c = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -2184,7 +3075,7 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
2184
3075
|
}
|
|
2185
3076
|
return input;
|
|
2186
3077
|
}
|
|
2187
|
-
const select$
|
|
3078
|
+
const select$t = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
|
|
2188
3079
|
return {
|
|
2189
3080
|
kind: 'Fragment',
|
|
2190
3081
|
version: VERSION$b,
|
|
@@ -2198,7 +3089,7 @@ const select$r = function SlackBridgeConversationHistoryOutputRepresentationSele
|
|
|
2198
3089
|
name: 'messages',
|
|
2199
3090
|
kind: 'Link',
|
|
2200
3091
|
plural: true,
|
|
2201
|
-
fragment: select$
|
|
3092
|
+
fragment: select$u()
|
|
2202
3093
|
},
|
|
2203
3094
|
{
|
|
2204
3095
|
name: 'nextCursor',
|
|
@@ -2461,7 +3352,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
2461
3352
|
}
|
|
2462
3353
|
return input;
|
|
2463
3354
|
}
|
|
2464
|
-
const select$
|
|
3355
|
+
const select$s = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
2465
3356
|
return {
|
|
2466
3357
|
kind: 'Fragment',
|
|
2467
3358
|
version: VERSION$a,
|
|
@@ -2479,18 +3370,18 @@ const select$q = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
2479
3370
|
name: 'contextUserInfo',
|
|
2480
3371
|
kind: 'Link',
|
|
2481
3372
|
nullable: true,
|
|
2482
|
-
fragment: select$
|
|
3373
|
+
fragment: select$B()
|
|
2483
3374
|
},
|
|
2484
3375
|
{
|
|
2485
3376
|
name: 'conversationInfo',
|
|
2486
3377
|
kind: 'Link',
|
|
2487
3378
|
nullable: true,
|
|
2488
|
-
fragment: select$
|
|
3379
|
+
fragment: select$A()
|
|
2489
3380
|
},
|
|
2490
3381
|
{
|
|
2491
3382
|
name: 'history',
|
|
2492
3383
|
kind: 'Link',
|
|
2493
|
-
fragment: select$
|
|
3384
|
+
fragment: select$t()
|
|
2494
3385
|
},
|
|
2495
3386
|
{
|
|
2496
3387
|
name: 'teamId',
|
|
@@ -2504,7 +3395,7 @@ const select$q = function SlackBridgeConversationOutputRepresentationSelect() {
|
|
|
2504
3395
|
name: 'userInfos',
|
|
2505
3396
|
kind: 'Link',
|
|
2506
3397
|
plural: true,
|
|
2507
|
-
fragment: select$
|
|
3398
|
+
fragment: select$B()
|
|
2508
3399
|
},
|
|
2509
3400
|
{
|
|
2510
3401
|
name: 'websocketUrl',
|
|
@@ -2609,22 +3500,22 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2609
3500
|
}
|
|
2610
3501
|
}
|
|
2611
3502
|
|
|
2612
|
-
function select$
|
|
2613
|
-
return select$
|
|
3503
|
+
function select$r(luvio, params) {
|
|
3504
|
+
return select$s();
|
|
2614
3505
|
}
|
|
2615
|
-
function keyBuilder$
|
|
3506
|
+
function keyBuilder$v(luvio, params) {
|
|
2616
3507
|
return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
|
|
2617
3508
|
}
|
|
2618
|
-
function getResponseCacheKeys$
|
|
2619
|
-
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$
|
|
3509
|
+
function getResponseCacheKeys$k(storeKeyMap, luvio, resourceParams, response) {
|
|
3510
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$v(luvio, resourceParams));
|
|
2620
3511
|
}
|
|
2621
|
-
function ingestSuccess$
|
|
3512
|
+
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
2622
3513
|
const { body } = response;
|
|
2623
|
-
const key = keyBuilder$
|
|
3514
|
+
const key = keyBuilder$v(luvio, resourceParams);
|
|
2624
3515
|
luvio.storeIngest(key, ingest$a, body);
|
|
2625
3516
|
const snapshot = luvio.storeLookup({
|
|
2626
3517
|
recordId: key,
|
|
2627
|
-
node: select$
|
|
3518
|
+
node: select$r(),
|
|
2628
3519
|
variables: {},
|
|
2629
3520
|
}, snapshotRefresh);
|
|
2630
3521
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2635,13 +3526,13 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2635
3526
|
deepFreeze(snapshot.data);
|
|
2636
3527
|
return snapshot;
|
|
2637
3528
|
}
|
|
2638
|
-
function ingestError$
|
|
2639
|
-
const key = keyBuilder$
|
|
3529
|
+
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
3530
|
+
const key = keyBuilder$v(luvio, params);
|
|
2640
3531
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2641
3532
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2642
3533
|
return errorSnapshot;
|
|
2643
3534
|
}
|
|
2644
|
-
function createResourceRequest$
|
|
3535
|
+
function createResourceRequest$k(config) {
|
|
2645
3536
|
const headers = {};
|
|
2646
3537
|
return {
|
|
2647
3538
|
baseUri: '/services/data/v64.0',
|
|
@@ -2655,7 +3546,7 @@ function createResourceRequest$i(config) {
|
|
|
2655
3546
|
};
|
|
2656
3547
|
}
|
|
2657
3548
|
|
|
2658
|
-
const adapterName$
|
|
3549
|
+
const adapterName$k = 'getSlackConversation';
|
|
2659
3550
|
const getSlackConversation_ConfigPropertyMetadata = [
|
|
2660
3551
|
generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2661
3552
|
generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -2667,86 +3558,86 @@ const getSlackConversation_ConfigPropertyMetadata = [
|
|
|
2667
3558
|
generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2668
3559
|
generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2669
3560
|
];
|
|
2670
|
-
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2671
|
-
const createResourceParams$
|
|
2672
|
-
function keyBuilder$
|
|
2673
|
-
const resourceParams = createResourceParams$
|
|
2674
|
-
return keyBuilder$
|
|
3561
|
+
const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getSlackConversation_ConfigPropertyMetadata);
|
|
3562
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$l(getSlackConversation_ConfigPropertyMetadata);
|
|
3563
|
+
function keyBuilder$u(luvio, config) {
|
|
3564
|
+
const resourceParams = createResourceParams$k(config);
|
|
3565
|
+
return keyBuilder$v(luvio, resourceParams);
|
|
2675
3566
|
}
|
|
2676
|
-
function typeCheckConfig$
|
|
3567
|
+
function typeCheckConfig$k(untrustedConfig) {
|
|
2677
3568
|
const config = {};
|
|
2678
|
-
typeCheckConfig$
|
|
3569
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
|
|
2679
3570
|
return config;
|
|
2680
3571
|
}
|
|
2681
|
-
function validateAdapterConfig$
|
|
3572
|
+
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
2682
3573
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2683
3574
|
return null;
|
|
2684
3575
|
}
|
|
2685
3576
|
if (process.env.NODE_ENV !== 'production') {
|
|
2686
3577
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2687
3578
|
}
|
|
2688
|
-
const config = typeCheckConfig$
|
|
3579
|
+
const config = typeCheckConfig$k(untrustedConfig);
|
|
2689
3580
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2690
3581
|
return null;
|
|
2691
3582
|
}
|
|
2692
3583
|
return config;
|
|
2693
3584
|
}
|
|
2694
|
-
function adapterFragment$
|
|
2695
|
-
createResourceParams$
|
|
2696
|
-
return select$
|
|
3585
|
+
function adapterFragment$a(luvio, config) {
|
|
3586
|
+
createResourceParams$k(config);
|
|
3587
|
+
return select$r();
|
|
2697
3588
|
}
|
|
2698
|
-
function onFetchResponseSuccess$
|
|
2699
|
-
const snapshot = ingestSuccess$
|
|
3589
|
+
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
3590
|
+
const snapshot = ingestSuccess$h(luvio, resourceParams, response, {
|
|
2700
3591
|
config,
|
|
2701
|
-
resolve: () => buildNetworkSnapshot$
|
|
3592
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2702
3593
|
});
|
|
2703
3594
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2704
3595
|
}
|
|
2705
|
-
function onFetchResponseError$
|
|
2706
|
-
const snapshot = ingestError$
|
|
3596
|
+
function onFetchResponseError$a(luvio, config, resourceParams, response) {
|
|
3597
|
+
const snapshot = ingestError$a(luvio, resourceParams, response, {
|
|
2707
3598
|
config,
|
|
2708
|
-
resolve: () => buildNetworkSnapshot$
|
|
3599
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2709
3600
|
});
|
|
2710
3601
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2711
3602
|
}
|
|
2712
|
-
function buildNetworkSnapshot$
|
|
2713
|
-
const resourceParams = createResourceParams$
|
|
2714
|
-
const request = createResourceRequest$
|
|
3603
|
+
function buildNetworkSnapshot$k(luvio, config, options) {
|
|
3604
|
+
const resourceParams = createResourceParams$k(config);
|
|
3605
|
+
const request = createResourceRequest$k(resourceParams);
|
|
2715
3606
|
return luvio.dispatchResourceRequest(request, options)
|
|
2716
3607
|
.then((response) => {
|
|
2717
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3608
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$a(luvio, config, resourceParams, response), () => {
|
|
2718
3609
|
const cache = new StoreKeyMap();
|
|
2719
|
-
getResponseCacheKeys$
|
|
3610
|
+
getResponseCacheKeys$k(cache, luvio, resourceParams, response.body);
|
|
2720
3611
|
return cache;
|
|
2721
3612
|
});
|
|
2722
3613
|
}, (response) => {
|
|
2723
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3614
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$a(luvio, config, resourceParams, response));
|
|
2724
3615
|
});
|
|
2725
3616
|
}
|
|
2726
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2727
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3617
|
+
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
3618
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
2728
3619
|
}
|
|
2729
|
-
function buildCachedSnapshotCachePolicy$
|
|
3620
|
+
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
2730
3621
|
const { luvio, config } = context;
|
|
2731
3622
|
const selector = {
|
|
2732
|
-
recordId: keyBuilder$
|
|
2733
|
-
node: adapterFragment$
|
|
3623
|
+
recordId: keyBuilder$u(luvio, config),
|
|
3624
|
+
node: adapterFragment$a(luvio, config),
|
|
2734
3625
|
variables: {},
|
|
2735
3626
|
};
|
|
2736
3627
|
const cacheSnapshot = storeLookup(selector, {
|
|
2737
3628
|
config,
|
|
2738
|
-
resolve: () => buildNetworkSnapshot$
|
|
3629
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
2739
3630
|
});
|
|
2740
3631
|
return cacheSnapshot;
|
|
2741
3632
|
}
|
|
2742
3633
|
const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
|
|
2743
|
-
const config = validateAdapterConfig$
|
|
3634
|
+
const config = validateAdapterConfig$k(untrustedConfig, getSlackConversation_ConfigPropertyNames);
|
|
2744
3635
|
// Invalid or incomplete config
|
|
2745
3636
|
if (config === null) {
|
|
2746
3637
|
return null;
|
|
2747
3638
|
}
|
|
2748
3639
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2749
|
-
buildCachedSnapshotCachePolicy$
|
|
3640
|
+
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
2750
3641
|
};
|
|
2751
3642
|
|
|
2752
3643
|
const VERSION$9 = "769b5b0ed94219341e9be74c08e63aed";
|
|
@@ -2774,14 +3665,14 @@ function validate$9(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
|
|
|
2774
3665
|
return v_error === undefined ? null : v_error;
|
|
2775
3666
|
}
|
|
2776
3667
|
const RepresentationType$9 = 'SlackBridgePostMessageOutputRepresentation';
|
|
2777
|
-
function keyBuilder$
|
|
3668
|
+
function keyBuilder$t(luvio, config) {
|
|
2778
3669
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.channelId;
|
|
2779
3670
|
}
|
|
2780
3671
|
function keyBuilderFromType$6(luvio, object) {
|
|
2781
3672
|
const keyParams = {
|
|
2782
3673
|
channelId: object.channelId
|
|
2783
3674
|
};
|
|
2784
|
-
return keyBuilder$
|
|
3675
|
+
return keyBuilder$t(luvio, keyParams);
|
|
2785
3676
|
}
|
|
2786
3677
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
2787
3678
|
const input_postedMessage = input.postedMessage;
|
|
@@ -2798,7 +3689,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
2798
3689
|
}, luvio, store, timestamp);
|
|
2799
3690
|
return input;
|
|
2800
3691
|
}
|
|
2801
|
-
const select$
|
|
3692
|
+
const select$q = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
2802
3693
|
return {
|
|
2803
3694
|
kind: 'Fragment',
|
|
2804
3695
|
version: VERSION$9,
|
|
@@ -2811,7 +3702,7 @@ const select$o = function SlackBridgePostMessageOutputRepresentationSelect() {
|
|
|
2811
3702
|
{
|
|
2812
3703
|
name: 'postedMessage',
|
|
2813
3704
|
kind: 'Link',
|
|
2814
|
-
fragment: select$
|
|
3705
|
+
fragment: select$u()
|
|
2815
3706
|
},
|
|
2816
3707
|
{
|
|
2817
3708
|
name: 'timestamp',
|
|
@@ -2861,19 +3752,19 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2861
3752
|
getTypeCacheKeys$c(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
|
|
2862
3753
|
}
|
|
2863
3754
|
|
|
2864
|
-
function select$
|
|
2865
|
-
return select$
|
|
3755
|
+
function select$p(luvio, params) {
|
|
3756
|
+
return select$q();
|
|
2866
3757
|
}
|
|
2867
|
-
function getResponseCacheKeys$
|
|
3758
|
+
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
2868
3759
|
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
2869
3760
|
}
|
|
2870
|
-
function ingestSuccess$
|
|
3761
|
+
function ingestSuccess$g(luvio, resourceParams, response) {
|
|
2871
3762
|
const { body } = response;
|
|
2872
3763
|
const key = keyBuilderFromType$6(luvio, body);
|
|
2873
3764
|
luvio.storeIngest(key, ingest$9, body);
|
|
2874
3765
|
const snapshot = luvio.storeLookup({
|
|
2875
3766
|
recordId: key,
|
|
2876
|
-
node: select$
|
|
3767
|
+
node: select$p(),
|
|
2877
3768
|
variables: {},
|
|
2878
3769
|
});
|
|
2879
3770
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2884,7 +3775,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
2884
3775
|
deepFreeze(snapshot.data);
|
|
2885
3776
|
return snapshot;
|
|
2886
3777
|
}
|
|
2887
|
-
function createResourceRequest$
|
|
3778
|
+
function createResourceRequest$j(config) {
|
|
2888
3779
|
const headers = {};
|
|
2889
3780
|
return {
|
|
2890
3781
|
baseUri: '/services/data/v64.0',
|
|
@@ -2898,7 +3789,7 @@ function createResourceRequest$h(config) {
|
|
|
2898
3789
|
};
|
|
2899
3790
|
}
|
|
2900
3791
|
|
|
2901
|
-
const adapterName$
|
|
3792
|
+
const adapterName$j = 'postSlackConversation';
|
|
2902
3793
|
const postSlackConversation_ConfigPropertyMetadata = [
|
|
2903
3794
|
generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
|
|
2904
3795
|
generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
|
|
@@ -2907,37 +3798,37 @@ const postSlackConversation_ConfigPropertyMetadata = [
|
|
|
2907
3798
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
2908
3799
|
generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
|
|
2909
3800
|
];
|
|
2910
|
-
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2911
|
-
const createResourceParams$
|
|
2912
|
-
function typeCheckConfig$
|
|
3801
|
+
const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, postSlackConversation_ConfigPropertyMetadata);
|
|
3802
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$l(postSlackConversation_ConfigPropertyMetadata);
|
|
3803
|
+
function typeCheckConfig$j(untrustedConfig) {
|
|
2913
3804
|
const config = {};
|
|
2914
|
-
typeCheckConfig$
|
|
3805
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
|
|
2915
3806
|
return config;
|
|
2916
3807
|
}
|
|
2917
|
-
function validateAdapterConfig$
|
|
3808
|
+
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
2918
3809
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2919
3810
|
return null;
|
|
2920
3811
|
}
|
|
2921
3812
|
if (process.env.NODE_ENV !== 'production') {
|
|
2922
3813
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2923
3814
|
}
|
|
2924
|
-
const config = typeCheckConfig$
|
|
3815
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
2925
3816
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2926
3817
|
return null;
|
|
2927
3818
|
}
|
|
2928
3819
|
return config;
|
|
2929
3820
|
}
|
|
2930
|
-
function buildNetworkSnapshot$
|
|
2931
|
-
const resourceParams = createResourceParams$
|
|
2932
|
-
const request = createResourceRequest$
|
|
3821
|
+
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
3822
|
+
const resourceParams = createResourceParams$j(config);
|
|
3823
|
+
const request = createResourceRequest$j(resourceParams);
|
|
2933
3824
|
return luvio.dispatchResourceRequest(request, options)
|
|
2934
3825
|
.then((response) => {
|
|
2935
3826
|
return luvio.handleSuccessResponse(() => {
|
|
2936
|
-
const snapshot = ingestSuccess$
|
|
3827
|
+
const snapshot = ingestSuccess$g(luvio, resourceParams, response);
|
|
2937
3828
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2938
3829
|
}, () => {
|
|
2939
3830
|
const cache = new StoreKeyMap();
|
|
2940
|
-
getResponseCacheKeys$
|
|
3831
|
+
getResponseCacheKeys$j(cache, luvio, resourceParams, response.body);
|
|
2941
3832
|
return cache;
|
|
2942
3833
|
});
|
|
2943
3834
|
}, (response) => {
|
|
@@ -2947,28 +3838,28 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
2947
3838
|
}
|
|
2948
3839
|
const postSlackConversationAdapterFactory = (luvio) => {
|
|
2949
3840
|
return function postSlackConversation(untrustedConfig) {
|
|
2950
|
-
const config = validateAdapterConfig$
|
|
3841
|
+
const config = validateAdapterConfig$j(untrustedConfig, postSlackConversation_ConfigPropertyNames);
|
|
2951
3842
|
// Invalid or incomplete config
|
|
2952
3843
|
if (config === null) {
|
|
2953
3844
|
throw new Error('Invalid config for "postSlackConversation"');
|
|
2954
3845
|
}
|
|
2955
|
-
return buildNetworkSnapshot$
|
|
3846
|
+
return buildNetworkSnapshot$j(luvio, config);
|
|
2956
3847
|
};
|
|
2957
3848
|
};
|
|
2958
3849
|
|
|
2959
|
-
function select$
|
|
2960
|
-
return select$
|
|
3850
|
+
function select$o(luvio, params) {
|
|
3851
|
+
return select$v();
|
|
2961
3852
|
}
|
|
2962
|
-
function getResponseCacheKeys$
|
|
3853
|
+
function getResponseCacheKeys$i(storeKeyMap, luvio, resourceParams, response) {
|
|
2963
3854
|
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
2964
3855
|
}
|
|
2965
|
-
function ingestSuccess$
|
|
3856
|
+
function ingestSuccess$f(luvio, resourceParams, response) {
|
|
2966
3857
|
const { body } = response;
|
|
2967
3858
|
const key = keyBuilderFromType$7(luvio, body);
|
|
2968
3859
|
luvio.storeIngest(key, ingest$d, body);
|
|
2969
3860
|
const snapshot = luvio.storeLookup({
|
|
2970
3861
|
recordId: key,
|
|
2971
|
-
node: select$
|
|
3862
|
+
node: select$o(),
|
|
2972
3863
|
variables: {},
|
|
2973
3864
|
});
|
|
2974
3865
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2979,7 +3870,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
2979
3870
|
deepFreeze(snapshot.data);
|
|
2980
3871
|
return snapshot;
|
|
2981
3872
|
}
|
|
2982
|
-
function createResourceRequest$
|
|
3873
|
+
function createResourceRequest$i(config) {
|
|
2983
3874
|
const headers = {};
|
|
2984
3875
|
return {
|
|
2985
3876
|
baseUri: '/services/data/v64.0',
|
|
@@ -2993,7 +3884,7 @@ function createResourceRequest$g(config) {
|
|
|
2993
3884
|
};
|
|
2994
3885
|
}
|
|
2995
3886
|
|
|
2996
|
-
const adapterName$
|
|
3887
|
+
const adapterName$i = 'postSlackFile';
|
|
2997
3888
|
const postSlackFile_ConfigPropertyMetadata = [
|
|
2998
3889
|
generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
|
|
2999
3890
|
generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
|
|
@@ -3004,37 +3895,37 @@ const postSlackFile_ConfigPropertyMetadata = [
|
|
|
3004
3895
|
generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
|
|
3005
3896
|
generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
|
|
3006
3897
|
];
|
|
3007
|
-
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3008
|
-
const createResourceParams$
|
|
3009
|
-
function typeCheckConfig$
|
|
3898
|
+
const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, postSlackFile_ConfigPropertyMetadata);
|
|
3899
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$l(postSlackFile_ConfigPropertyMetadata);
|
|
3900
|
+
function typeCheckConfig$i(untrustedConfig) {
|
|
3010
3901
|
const config = {};
|
|
3011
|
-
typeCheckConfig$
|
|
3902
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
|
|
3012
3903
|
return config;
|
|
3013
3904
|
}
|
|
3014
|
-
function validateAdapterConfig$
|
|
3905
|
+
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
3015
3906
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3016
3907
|
return null;
|
|
3017
3908
|
}
|
|
3018
3909
|
if (process.env.NODE_ENV !== 'production') {
|
|
3019
3910
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3020
3911
|
}
|
|
3021
|
-
const config = typeCheckConfig$
|
|
3912
|
+
const config = typeCheckConfig$i(untrustedConfig);
|
|
3022
3913
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3023
3914
|
return null;
|
|
3024
3915
|
}
|
|
3025
3916
|
return config;
|
|
3026
3917
|
}
|
|
3027
|
-
function buildNetworkSnapshot$
|
|
3028
|
-
const resourceParams = createResourceParams$
|
|
3029
|
-
const request = createResourceRequest$
|
|
3918
|
+
function buildNetworkSnapshot$i(luvio, config, options) {
|
|
3919
|
+
const resourceParams = createResourceParams$i(config);
|
|
3920
|
+
const request = createResourceRequest$i(resourceParams);
|
|
3030
3921
|
return luvio.dispatchResourceRequest(request, options)
|
|
3031
3922
|
.then((response) => {
|
|
3032
3923
|
return luvio.handleSuccessResponse(() => {
|
|
3033
|
-
const snapshot = ingestSuccess$
|
|
3924
|
+
const snapshot = ingestSuccess$f(luvio, resourceParams, response);
|
|
3034
3925
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3035
3926
|
}, () => {
|
|
3036
3927
|
const cache = new StoreKeyMap();
|
|
3037
|
-
getResponseCacheKeys$
|
|
3928
|
+
getResponseCacheKeys$i(cache, luvio, resourceParams, response.body);
|
|
3038
3929
|
return cache;
|
|
3039
3930
|
});
|
|
3040
3931
|
}, (response) => {
|
|
@@ -3044,12 +3935,12 @@ function buildNetworkSnapshot$g(luvio, config, options) {
|
|
|
3044
3935
|
}
|
|
3045
3936
|
const postSlackFileAdapterFactory = (luvio) => {
|
|
3046
3937
|
return function postSlackFile(untrustedConfig) {
|
|
3047
|
-
const config = validateAdapterConfig$
|
|
3938
|
+
const config = validateAdapterConfig$i(untrustedConfig, postSlackFile_ConfigPropertyNames);
|
|
3048
3939
|
// Invalid or incomplete config
|
|
3049
3940
|
if (config === null) {
|
|
3050
3941
|
throw new Error('Invalid config for "postSlackFile"');
|
|
3051
3942
|
}
|
|
3052
|
-
return buildNetworkSnapshot$
|
|
3943
|
+
return buildNetworkSnapshot$i(luvio, config);
|
|
3053
3944
|
};
|
|
3054
3945
|
};
|
|
3055
3946
|
|
|
@@ -3078,14 +3969,14 @@ function validate$8(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentatio
|
|
|
3078
3969
|
return v_error === undefined ? null : v_error;
|
|
3079
3970
|
}
|
|
3080
3971
|
const RepresentationType$8 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
|
|
3081
|
-
function keyBuilder$
|
|
3972
|
+
function keyBuilder$s(luvio, config) {
|
|
3082
3973
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.relatedRecordId;
|
|
3083
3974
|
}
|
|
3084
3975
|
function keyBuilderFromType$5(luvio, object) {
|
|
3085
3976
|
const keyParams = {
|
|
3086
3977
|
relatedRecordId: object.relatedRecordId
|
|
3087
3978
|
};
|
|
3088
|
-
return keyBuilder$
|
|
3979
|
+
return keyBuilder$s(luvio, keyParams);
|
|
3089
3980
|
}
|
|
3090
3981
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
3091
3982
|
const input_conversationInfo = input.conversationInfo;
|
|
@@ -3102,7 +3993,7 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
3102
3993
|
}, luvio, store, timestamp);
|
|
3103
3994
|
return input;
|
|
3104
3995
|
}
|
|
3105
|
-
const select$
|
|
3996
|
+
const select$n = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
|
|
3106
3997
|
return {
|
|
3107
3998
|
kind: 'Fragment',
|
|
3108
3999
|
version: VERSION$8,
|
|
@@ -3111,7 +4002,7 @@ const select$l = function SlackBridgeRecordChannelInfoOutputRepresentationSelect
|
|
|
3111
4002
|
{
|
|
3112
4003
|
name: 'conversationInfo',
|
|
3113
4004
|
kind: 'Link',
|
|
3114
|
-
fragment: select$
|
|
4005
|
+
fragment: select$A()
|
|
3115
4006
|
},
|
|
3116
4007
|
{
|
|
3117
4008
|
name: 'relatedRecordId',
|
|
@@ -3165,19 +4056,19 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3165
4056
|
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfo);
|
|
3166
4057
|
}
|
|
3167
4058
|
|
|
3168
|
-
function select$
|
|
3169
|
-
return select$
|
|
4059
|
+
function select$m(luvio, params) {
|
|
4060
|
+
return select$n();
|
|
3170
4061
|
}
|
|
3171
|
-
function getResponseCacheKeys$
|
|
4062
|
+
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
3172
4063
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
3173
4064
|
}
|
|
3174
|
-
function ingestSuccess$
|
|
4065
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
3175
4066
|
const { body } = response;
|
|
3176
4067
|
const key = keyBuilderFromType$5(luvio, body);
|
|
3177
4068
|
luvio.storeIngest(key, ingest$8, body);
|
|
3178
4069
|
const snapshot = luvio.storeLookup({
|
|
3179
4070
|
recordId: key,
|
|
3180
|
-
node: select$
|
|
4071
|
+
node: select$m(),
|
|
3181
4072
|
variables: {},
|
|
3182
4073
|
});
|
|
3183
4074
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3188,7 +4079,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
3188
4079
|
deepFreeze(snapshot.data);
|
|
3189
4080
|
return snapshot;
|
|
3190
4081
|
}
|
|
3191
|
-
function createResourceRequest$
|
|
4082
|
+
function createResourceRequest$h(config) {
|
|
3192
4083
|
const headers = {};
|
|
3193
4084
|
return {
|
|
3194
4085
|
baseUri: '/services/data/v64.0',
|
|
@@ -3202,16 +4093,16 @@ function createResourceRequest$f(config) {
|
|
|
3202
4093
|
};
|
|
3203
4094
|
}
|
|
3204
4095
|
|
|
3205
|
-
const adapterName$
|
|
4096
|
+
const adapterName$h = 'postSlackRecordChannelInfos';
|
|
3206
4097
|
const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
|
|
3207
4098
|
generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3208
4099
|
generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
|
|
3209
4100
|
];
|
|
3210
|
-
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3211
|
-
const createResourceParams$
|
|
3212
|
-
function typeCheckConfig$
|
|
4101
|
+
const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4102
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$l(postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
4103
|
+
function typeCheckConfig$h(untrustedConfig) {
|
|
3213
4104
|
const config = {};
|
|
3214
|
-
typeCheckConfig$
|
|
4105
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
|
|
3215
4106
|
const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
|
|
3216
4107
|
if (untrustedIsObject(untrustedConfig_conversationInfo)) {
|
|
3217
4108
|
const untrustedConfig_conversationInfo_object = {};
|
|
@@ -3225,30 +4116,30 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
3225
4116
|
}
|
|
3226
4117
|
return config;
|
|
3227
4118
|
}
|
|
3228
|
-
function validateAdapterConfig$
|
|
4119
|
+
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
3229
4120
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3230
4121
|
return null;
|
|
3231
4122
|
}
|
|
3232
4123
|
if (process.env.NODE_ENV !== 'production') {
|
|
3233
4124
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3234
4125
|
}
|
|
3235
|
-
const config = typeCheckConfig$
|
|
4126
|
+
const config = typeCheckConfig$h(untrustedConfig);
|
|
3236
4127
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3237
4128
|
return null;
|
|
3238
4129
|
}
|
|
3239
4130
|
return config;
|
|
3240
4131
|
}
|
|
3241
|
-
function buildNetworkSnapshot$
|
|
3242
|
-
const resourceParams = createResourceParams$
|
|
3243
|
-
const request = createResourceRequest$
|
|
4132
|
+
function buildNetworkSnapshot$h(luvio, config, options) {
|
|
4133
|
+
const resourceParams = createResourceParams$h(config);
|
|
4134
|
+
const request = createResourceRequest$h(resourceParams);
|
|
3244
4135
|
return luvio.dispatchResourceRequest(request, options)
|
|
3245
4136
|
.then((response) => {
|
|
3246
4137
|
return luvio.handleSuccessResponse(() => {
|
|
3247
|
-
const snapshot = ingestSuccess$
|
|
4138
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
3248
4139
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3249
4140
|
}, () => {
|
|
3250
4141
|
const cache = new StoreKeyMap();
|
|
3251
|
-
getResponseCacheKeys$
|
|
4142
|
+
getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
|
|
3252
4143
|
return cache;
|
|
3253
4144
|
});
|
|
3254
4145
|
}, (response) => {
|
|
@@ -3258,33 +4149,33 @@ function buildNetworkSnapshot$f(luvio, config, options) {
|
|
|
3258
4149
|
}
|
|
3259
4150
|
const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
|
|
3260
4151
|
return function postSlackRecordChannelInfos(untrustedConfig) {
|
|
3261
|
-
const config = validateAdapterConfig$
|
|
4152
|
+
const config = validateAdapterConfig$h(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
|
|
3262
4153
|
// Invalid or incomplete config
|
|
3263
4154
|
if (config === null) {
|
|
3264
4155
|
throw new Error('Invalid config for "postSlackRecordChannelInfos"');
|
|
3265
4156
|
}
|
|
3266
|
-
return buildNetworkSnapshot$
|
|
4157
|
+
return buildNetworkSnapshot$h(luvio, config);
|
|
3267
4158
|
};
|
|
3268
4159
|
};
|
|
3269
4160
|
|
|
3270
|
-
function select$
|
|
3271
|
-
return select$
|
|
4161
|
+
function select$l(luvio, params) {
|
|
4162
|
+
return select$n();
|
|
3272
4163
|
}
|
|
3273
|
-
function keyBuilder$
|
|
3274
|
-
return keyBuilder$
|
|
4164
|
+
function keyBuilder$r(luvio, params) {
|
|
4165
|
+
return keyBuilder$s(luvio, {
|
|
3275
4166
|
relatedRecordId: params.urlParams.relatedRecordId
|
|
3276
4167
|
});
|
|
3277
4168
|
}
|
|
3278
|
-
function getResponseCacheKeys$
|
|
4169
|
+
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
3279
4170
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
3280
4171
|
}
|
|
3281
|
-
function ingestSuccess$
|
|
4172
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
3282
4173
|
const { body } = response;
|
|
3283
|
-
const key = keyBuilder$
|
|
4174
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
3284
4175
|
luvio.storeIngest(key, ingest$8, body);
|
|
3285
4176
|
const snapshot = luvio.storeLookup({
|
|
3286
4177
|
recordId: key,
|
|
3287
|
-
node: select$
|
|
4178
|
+
node: select$l(),
|
|
3288
4179
|
variables: {},
|
|
3289
4180
|
}, snapshotRefresh);
|
|
3290
4181
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3295,13 +4186,13 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3295
4186
|
deepFreeze(snapshot.data);
|
|
3296
4187
|
return snapshot;
|
|
3297
4188
|
}
|
|
3298
|
-
function ingestError$
|
|
3299
|
-
const key = keyBuilder$
|
|
4189
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
4190
|
+
const key = keyBuilder$r(luvio, params);
|
|
3300
4191
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3301
4192
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3302
4193
|
return errorSnapshot;
|
|
3303
4194
|
}
|
|
3304
|
-
function createResourceRequest$
|
|
4195
|
+
function createResourceRequest$g(config) {
|
|
3305
4196
|
const headers = {};
|
|
3306
4197
|
return {
|
|
3307
4198
|
baseUri: '/services/data/v64.0',
|
|
@@ -3315,90 +4206,90 @@ function createResourceRequest$e(config) {
|
|
|
3315
4206
|
};
|
|
3316
4207
|
}
|
|
3317
4208
|
|
|
3318
|
-
const adapterName$
|
|
4209
|
+
const adapterName$g = 'getSlackRecordChannelInfo';
|
|
3319
4210
|
const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
|
|
3320
4211
|
generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3321
4212
|
];
|
|
3322
|
-
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3323
|
-
const createResourceParams$
|
|
3324
|
-
function keyBuilder$
|
|
3325
|
-
const resourceParams = createResourceParams$
|
|
3326
|
-
return keyBuilder$
|
|
4213
|
+
const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4214
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$l(getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
4215
|
+
function keyBuilder$q(luvio, config) {
|
|
4216
|
+
const resourceParams = createResourceParams$g(config);
|
|
4217
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
3327
4218
|
}
|
|
3328
|
-
function typeCheckConfig$
|
|
4219
|
+
function typeCheckConfig$g(untrustedConfig) {
|
|
3329
4220
|
const config = {};
|
|
3330
|
-
typeCheckConfig$
|
|
4221
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
|
|
3331
4222
|
return config;
|
|
3332
4223
|
}
|
|
3333
|
-
function validateAdapterConfig$
|
|
4224
|
+
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
3334
4225
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3335
4226
|
return null;
|
|
3336
4227
|
}
|
|
3337
4228
|
if (process.env.NODE_ENV !== 'production') {
|
|
3338
4229
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3339
4230
|
}
|
|
3340
|
-
const config = typeCheckConfig$
|
|
4231
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
3341
4232
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3342
4233
|
return null;
|
|
3343
4234
|
}
|
|
3344
4235
|
return config;
|
|
3345
4236
|
}
|
|
3346
|
-
function adapterFragment$
|
|
3347
|
-
createResourceParams$
|
|
3348
|
-
return select$
|
|
4237
|
+
function adapterFragment$9(luvio, config) {
|
|
4238
|
+
createResourceParams$g(config);
|
|
4239
|
+
return select$l();
|
|
3349
4240
|
}
|
|
3350
|
-
function onFetchResponseSuccess$
|
|
3351
|
-
const snapshot = ingestSuccess$
|
|
4241
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
4242
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
3352
4243
|
config,
|
|
3353
|
-
resolve: () => buildNetworkSnapshot$
|
|
4244
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
3354
4245
|
});
|
|
3355
4246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3356
4247
|
}
|
|
3357
|
-
function onFetchResponseError$
|
|
3358
|
-
const snapshot = ingestError$
|
|
4248
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
4249
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
3359
4250
|
config,
|
|
3360
|
-
resolve: () => buildNetworkSnapshot$
|
|
4251
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
3361
4252
|
});
|
|
3362
4253
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3363
4254
|
}
|
|
3364
|
-
function buildNetworkSnapshot$
|
|
3365
|
-
const resourceParams = createResourceParams$
|
|
3366
|
-
const request = createResourceRequest$
|
|
4255
|
+
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
4256
|
+
const resourceParams = createResourceParams$g(config);
|
|
4257
|
+
const request = createResourceRequest$g(resourceParams);
|
|
3367
4258
|
return luvio.dispatchResourceRequest(request, options)
|
|
3368
4259
|
.then((response) => {
|
|
3369
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4260
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
3370
4261
|
const cache = new StoreKeyMap();
|
|
3371
|
-
getResponseCacheKeys$
|
|
4262
|
+
getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
|
|
3372
4263
|
return cache;
|
|
3373
4264
|
});
|
|
3374
4265
|
}, (response) => {
|
|
3375
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4266
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
3376
4267
|
});
|
|
3377
4268
|
}
|
|
3378
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3379
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4269
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
4270
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$g, undefined, false);
|
|
3380
4271
|
}
|
|
3381
|
-
function buildCachedSnapshotCachePolicy$
|
|
4272
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
3382
4273
|
const { luvio, config } = context;
|
|
3383
4274
|
const selector = {
|
|
3384
|
-
recordId: keyBuilder$
|
|
3385
|
-
node: adapterFragment$
|
|
4275
|
+
recordId: keyBuilder$q(luvio, config),
|
|
4276
|
+
node: adapterFragment$9(luvio, config),
|
|
3386
4277
|
variables: {},
|
|
3387
4278
|
};
|
|
3388
4279
|
const cacheSnapshot = storeLookup(selector, {
|
|
3389
4280
|
config,
|
|
3390
|
-
resolve: () => buildNetworkSnapshot$
|
|
4281
|
+
resolve: () => buildNetworkSnapshot$g(luvio, config, snapshotRefreshOptions)
|
|
3391
4282
|
});
|
|
3392
4283
|
return cacheSnapshot;
|
|
3393
4284
|
}
|
|
3394
4285
|
const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
|
|
3395
|
-
const config = validateAdapterConfig$
|
|
4286
|
+
const config = validateAdapterConfig$g(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
|
|
3396
4287
|
// Invalid or incomplete config
|
|
3397
4288
|
if (config === null) {
|
|
3398
4289
|
return null;
|
|
3399
4290
|
}
|
|
3400
4291
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3401
|
-
buildCachedSnapshotCachePolicy$
|
|
4292
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
3402
4293
|
};
|
|
3403
4294
|
|
|
3404
4295
|
const VERSION$7 = "32716a7de3c8810288467155d92e5124";
|
|
@@ -3421,19 +4312,19 @@ function validate$7(obj, path = 'SlackBridgeConversationMarkOutputRepresentation
|
|
|
3421
4312
|
return v_error === undefined ? null : v_error;
|
|
3422
4313
|
}
|
|
3423
4314
|
const RepresentationType$7 = 'SlackBridgeConversationMarkOutputRepresentation';
|
|
3424
|
-
function keyBuilder$
|
|
4315
|
+
function keyBuilder$p(luvio, config) {
|
|
3425
4316
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.channelId;
|
|
3426
4317
|
}
|
|
3427
4318
|
function keyBuilderFromType$4(luvio, object) {
|
|
3428
4319
|
const keyParams = {
|
|
3429
4320
|
channelId: object.channelId
|
|
3430
4321
|
};
|
|
3431
|
-
return keyBuilder$
|
|
4322
|
+
return keyBuilder$p(luvio, keyParams);
|
|
3432
4323
|
}
|
|
3433
4324
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
3434
4325
|
return input;
|
|
3435
4326
|
}
|
|
3436
|
-
const select$
|
|
4327
|
+
const select$k = function SlackBridgeConversationMarkOutputRepresentationSelect() {
|
|
3437
4328
|
return {
|
|
3438
4329
|
kind: 'Fragment',
|
|
3439
4330
|
version: VERSION$7,
|
|
@@ -3485,19 +4376,19 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3485
4376
|
});
|
|
3486
4377
|
}
|
|
3487
4378
|
|
|
3488
|
-
function select$
|
|
3489
|
-
return select$
|
|
4379
|
+
function select$j(luvio, params) {
|
|
4380
|
+
return select$k();
|
|
3490
4381
|
}
|
|
3491
|
-
function getResponseCacheKeys$
|
|
4382
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
3492
4383
|
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
3493
4384
|
}
|
|
3494
|
-
function ingestSuccess$
|
|
4385
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
3495
4386
|
const { body } = response;
|
|
3496
4387
|
const key = keyBuilderFromType$4(luvio, body);
|
|
3497
4388
|
luvio.storeIngest(key, ingest$7, body);
|
|
3498
4389
|
const snapshot = luvio.storeLookup({
|
|
3499
4390
|
recordId: key,
|
|
3500
|
-
node: select$
|
|
4391
|
+
node: select$j(),
|
|
3501
4392
|
variables: {},
|
|
3502
4393
|
});
|
|
3503
4394
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3508,7 +4399,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
3508
4399
|
deepFreeze(snapshot.data);
|
|
3509
4400
|
return snapshot;
|
|
3510
4401
|
}
|
|
3511
|
-
function createResourceRequest$
|
|
4402
|
+
function createResourceRequest$f(config) {
|
|
3512
4403
|
const headers = {};
|
|
3513
4404
|
return {
|
|
3514
4405
|
baseUri: '/services/data/v64.0',
|
|
@@ -3522,43 +4413,43 @@ function createResourceRequest$d(config) {
|
|
|
3522
4413
|
};
|
|
3523
4414
|
}
|
|
3524
4415
|
|
|
3525
|
-
const adapterName$
|
|
4416
|
+
const adapterName$f = 'postSlackConversationMark';
|
|
3526
4417
|
const postSlackConversationMark_ConfigPropertyMetadata = [
|
|
3527
4418
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3528
4419
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3529
4420
|
generateParamConfigMetadata('messageTs', true, 1 /* QueryParameter */, 0 /* String */),
|
|
3530
4421
|
];
|
|
3531
|
-
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3532
|
-
const createResourceParams$
|
|
3533
|
-
function typeCheckConfig$
|
|
4422
|
+
const postSlackConversationMark_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postSlackConversationMark_ConfigPropertyMetadata);
|
|
4423
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$l(postSlackConversationMark_ConfigPropertyMetadata);
|
|
4424
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
3534
4425
|
const config = {};
|
|
3535
|
-
typeCheckConfig$
|
|
4426
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackConversationMark_ConfigPropertyMetadata);
|
|
3536
4427
|
return config;
|
|
3537
4428
|
}
|
|
3538
|
-
function validateAdapterConfig$
|
|
4429
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
3539
4430
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3540
4431
|
return null;
|
|
3541
4432
|
}
|
|
3542
4433
|
if (process.env.NODE_ENV !== 'production') {
|
|
3543
4434
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3544
4435
|
}
|
|
3545
|
-
const config = typeCheckConfig$
|
|
4436
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
3546
4437
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3547
4438
|
return null;
|
|
3548
4439
|
}
|
|
3549
4440
|
return config;
|
|
3550
4441
|
}
|
|
3551
|
-
function buildNetworkSnapshot$
|
|
3552
|
-
const resourceParams = createResourceParams$
|
|
3553
|
-
const request = createResourceRequest$
|
|
4442
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
4443
|
+
const resourceParams = createResourceParams$f(config);
|
|
4444
|
+
const request = createResourceRequest$f(resourceParams);
|
|
3554
4445
|
return luvio.dispatchResourceRequest(request, options)
|
|
3555
4446
|
.then((response) => {
|
|
3556
4447
|
return luvio.handleSuccessResponse(() => {
|
|
3557
|
-
const snapshot = ingestSuccess$
|
|
4448
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
3558
4449
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3559
4450
|
}, () => {
|
|
3560
4451
|
const cache = new StoreKeyMap();
|
|
3561
|
-
getResponseCacheKeys$
|
|
4452
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
3562
4453
|
return cache;
|
|
3563
4454
|
});
|
|
3564
4455
|
}, (response) => {
|
|
@@ -3568,12 +4459,12 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
3568
4459
|
}
|
|
3569
4460
|
const postSlackConversationMarkAdapterFactory = (luvio) => {
|
|
3570
4461
|
return function postSlackConversationMark(untrustedConfig) {
|
|
3571
|
-
const config = validateAdapterConfig$
|
|
4462
|
+
const config = validateAdapterConfig$f(untrustedConfig, postSlackConversationMark_ConfigPropertyNames);
|
|
3572
4463
|
// Invalid or incomplete config
|
|
3573
4464
|
if (config === null) {
|
|
3574
4465
|
throw new Error('Invalid config for "postSlackConversationMark"');
|
|
3575
4466
|
}
|
|
3576
|
-
return buildNetworkSnapshot$
|
|
4467
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
3577
4468
|
};
|
|
3578
4469
|
};
|
|
3579
4470
|
|
|
@@ -3630,19 +4521,19 @@ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentat
|
|
|
3630
4521
|
return v_error === undefined ? null : v_error;
|
|
3631
4522
|
}
|
|
3632
4523
|
const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
|
|
3633
|
-
function keyBuilder$
|
|
4524
|
+
function keyBuilder$o(luvio, config) {
|
|
3634
4525
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
|
|
3635
4526
|
}
|
|
3636
4527
|
function keyBuilderFromType$3(luvio, object) {
|
|
3637
4528
|
const keyParams = {
|
|
3638
4529
|
channelId: object.channelId
|
|
3639
4530
|
};
|
|
3640
|
-
return keyBuilder$
|
|
4531
|
+
return keyBuilder$o(luvio, keyParams);
|
|
3641
4532
|
}
|
|
3642
4533
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
3643
4534
|
return input;
|
|
3644
4535
|
}
|
|
3645
|
-
const select$
|
|
4536
|
+
const select$i = function SlackBridgeConversationMembersOutputRepresentationSelect() {
|
|
3646
4537
|
return {
|
|
3647
4538
|
kind: 'Fragment',
|
|
3648
4539
|
version: VERSION$6,
|
|
@@ -3709,24 +4600,24 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3709
4600
|
});
|
|
3710
4601
|
}
|
|
3711
4602
|
|
|
3712
|
-
function select$
|
|
3713
|
-
return select$
|
|
4603
|
+
function select$h(luvio, params) {
|
|
4604
|
+
return select$i();
|
|
3714
4605
|
}
|
|
3715
|
-
function keyBuilder$
|
|
3716
|
-
return keyBuilder$
|
|
4606
|
+
function keyBuilder$n(luvio, params) {
|
|
4607
|
+
return keyBuilder$o(luvio, {
|
|
3717
4608
|
channelId: params.urlParams.channelId
|
|
3718
4609
|
});
|
|
3719
4610
|
}
|
|
3720
|
-
function getResponseCacheKeys$
|
|
4611
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
3721
4612
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
3722
4613
|
}
|
|
3723
|
-
function ingestSuccess$
|
|
4614
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
3724
4615
|
const { body } = response;
|
|
3725
|
-
const key = keyBuilder$
|
|
4616
|
+
const key = keyBuilder$n(luvio, resourceParams);
|
|
3726
4617
|
luvio.storeIngest(key, ingest$6, body);
|
|
3727
4618
|
const snapshot = luvio.storeLookup({
|
|
3728
4619
|
recordId: key,
|
|
3729
|
-
node: select$
|
|
4620
|
+
node: select$h(),
|
|
3730
4621
|
variables: {},
|
|
3731
4622
|
}, snapshotRefresh);
|
|
3732
4623
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3737,13 +4628,13 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3737
4628
|
deepFreeze(snapshot.data);
|
|
3738
4629
|
return snapshot;
|
|
3739
4630
|
}
|
|
3740
|
-
function ingestError$
|
|
3741
|
-
const key = keyBuilder$
|
|
4631
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
4632
|
+
const key = keyBuilder$n(luvio, params);
|
|
3742
4633
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3743
4634
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3744
4635
|
return errorSnapshot;
|
|
3745
4636
|
}
|
|
3746
|
-
function createResourceRequest$
|
|
4637
|
+
function createResourceRequest$e(config) {
|
|
3747
4638
|
const headers = {};
|
|
3748
4639
|
return {
|
|
3749
4640
|
baseUri: '/services/data/v64.0',
|
|
@@ -3757,106 +4648,106 @@ function createResourceRequest$c(config) {
|
|
|
3757
4648
|
};
|
|
3758
4649
|
}
|
|
3759
4650
|
|
|
3760
|
-
const adapterName$
|
|
4651
|
+
const adapterName$e = 'getSlackConversationMembers';
|
|
3761
4652
|
const getSlackConversationMembers_ConfigPropertyMetadata = [
|
|
3762
4653
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3763
4654
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3764
4655
|
];
|
|
3765
|
-
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3766
|
-
const createResourceParams$
|
|
3767
|
-
function keyBuilder$
|
|
3768
|
-
const resourceParams = createResourceParams$
|
|
3769
|
-
return keyBuilder$
|
|
4656
|
+
const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4657
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$l(getSlackConversationMembers_ConfigPropertyMetadata);
|
|
4658
|
+
function keyBuilder$m(luvio, config) {
|
|
4659
|
+
const resourceParams = createResourceParams$e(config);
|
|
4660
|
+
return keyBuilder$n(luvio, resourceParams);
|
|
3770
4661
|
}
|
|
3771
|
-
function typeCheckConfig$
|
|
4662
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
3772
4663
|
const config = {};
|
|
3773
|
-
typeCheckConfig$
|
|
4664
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
|
|
3774
4665
|
return config;
|
|
3775
4666
|
}
|
|
3776
|
-
function validateAdapterConfig$
|
|
4667
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
3777
4668
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3778
4669
|
return null;
|
|
3779
4670
|
}
|
|
3780
4671
|
if (process.env.NODE_ENV !== 'production') {
|
|
3781
4672
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3782
4673
|
}
|
|
3783
|
-
const config = typeCheckConfig$
|
|
4674
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
3784
4675
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3785
4676
|
return null;
|
|
3786
4677
|
}
|
|
3787
4678
|
return config;
|
|
3788
4679
|
}
|
|
3789
|
-
function adapterFragment$
|
|
3790
|
-
createResourceParams$
|
|
3791
|
-
return select$
|
|
4680
|
+
function adapterFragment$8(luvio, config) {
|
|
4681
|
+
createResourceParams$e(config);
|
|
4682
|
+
return select$h();
|
|
3792
4683
|
}
|
|
3793
|
-
function onFetchResponseSuccess$
|
|
3794
|
-
const snapshot = ingestSuccess$
|
|
4684
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
4685
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
3795
4686
|
config,
|
|
3796
|
-
resolve: () => buildNetworkSnapshot$
|
|
4687
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3797
4688
|
});
|
|
3798
4689
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3799
4690
|
}
|
|
3800
|
-
function onFetchResponseError$
|
|
3801
|
-
const snapshot = ingestError$
|
|
4691
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
4692
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
3802
4693
|
config,
|
|
3803
|
-
resolve: () => buildNetworkSnapshot$
|
|
4694
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3804
4695
|
});
|
|
3805
4696
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3806
4697
|
}
|
|
3807
|
-
function buildNetworkSnapshot$
|
|
3808
|
-
const resourceParams = createResourceParams$
|
|
3809
|
-
const request = createResourceRequest$
|
|
3810
|
-
return luvio.dispatchResourceRequest(request, options)
|
|
3811
|
-
.then((response) => {
|
|
3812
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4698
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
4699
|
+
const resourceParams = createResourceParams$e(config);
|
|
4700
|
+
const request = createResourceRequest$e(resourceParams);
|
|
4701
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4702
|
+
.then((response) => {
|
|
4703
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
3813
4704
|
const cache = new StoreKeyMap();
|
|
3814
|
-
getResponseCacheKeys$
|
|
4705
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
3815
4706
|
return cache;
|
|
3816
4707
|
});
|
|
3817
4708
|
}, (response) => {
|
|
3818
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4709
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
3819
4710
|
});
|
|
3820
4711
|
}
|
|
3821
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3822
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4712
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
4713
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
3823
4714
|
}
|
|
3824
|
-
function buildCachedSnapshotCachePolicy$
|
|
4715
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
3825
4716
|
const { luvio, config } = context;
|
|
3826
4717
|
const selector = {
|
|
3827
|
-
recordId: keyBuilder$
|
|
3828
|
-
node: adapterFragment$
|
|
4718
|
+
recordId: keyBuilder$m(luvio, config),
|
|
4719
|
+
node: adapterFragment$8(luvio, config),
|
|
3829
4720
|
variables: {},
|
|
3830
4721
|
};
|
|
3831
4722
|
const cacheSnapshot = storeLookup(selector, {
|
|
3832
4723
|
config,
|
|
3833
|
-
resolve: () => buildNetworkSnapshot$
|
|
4724
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
3834
4725
|
});
|
|
3835
4726
|
return cacheSnapshot;
|
|
3836
4727
|
}
|
|
3837
4728
|
const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
|
|
3838
|
-
const config = validateAdapterConfig$
|
|
4729
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
|
|
3839
4730
|
// Invalid or incomplete config
|
|
3840
4731
|
if (config === null) {
|
|
3841
4732
|
return null;
|
|
3842
4733
|
}
|
|
3843
4734
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3844
|
-
buildCachedSnapshotCachePolicy$
|
|
4735
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
3845
4736
|
};
|
|
3846
4737
|
|
|
3847
|
-
function select$
|
|
3848
|
-
return select$
|
|
4738
|
+
function select$g(luvio, params) {
|
|
4739
|
+
return select$i();
|
|
3849
4740
|
}
|
|
3850
|
-
function getResponseCacheKeys$
|
|
4741
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
3851
4742
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
3852
4743
|
}
|
|
3853
|
-
function ingestSuccess$
|
|
4744
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
3854
4745
|
const { body } = response;
|
|
3855
4746
|
const key = keyBuilderFromType$3(luvio, body);
|
|
3856
4747
|
luvio.storeIngest(key, ingest$6, body);
|
|
3857
4748
|
const snapshot = luvio.storeLookup({
|
|
3858
4749
|
recordId: key,
|
|
3859
|
-
node: select$
|
|
4750
|
+
node: select$g(),
|
|
3860
4751
|
variables: {},
|
|
3861
4752
|
});
|
|
3862
4753
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3867,7 +4758,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
3867
4758
|
deepFreeze(snapshot.data);
|
|
3868
4759
|
return snapshot;
|
|
3869
4760
|
}
|
|
3870
|
-
function createResourceRequest$
|
|
4761
|
+
function createResourceRequest$d(config) {
|
|
3871
4762
|
const headers = {};
|
|
3872
4763
|
return {
|
|
3873
4764
|
baseUri: '/services/data/v64.0',
|
|
@@ -3881,43 +4772,43 @@ function createResourceRequest$b(config) {
|
|
|
3881
4772
|
};
|
|
3882
4773
|
}
|
|
3883
4774
|
|
|
3884
|
-
const adapterName$
|
|
4775
|
+
const adapterName$d = 'postSlackConversationMembers';
|
|
3885
4776
|
const postSlackConversationMembers_ConfigPropertyMetadata = [
|
|
3886
4777
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3887
4778
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3888
4779
|
generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
|
|
3889
4780
|
];
|
|
3890
|
-
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3891
|
-
const createResourceParams$
|
|
3892
|
-
function typeCheckConfig$
|
|
4781
|
+
const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
4782
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$l(postSlackConversationMembers_ConfigPropertyMetadata);
|
|
4783
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
3893
4784
|
const config = {};
|
|
3894
|
-
typeCheckConfig$
|
|
4785
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
|
|
3895
4786
|
return config;
|
|
3896
4787
|
}
|
|
3897
|
-
function validateAdapterConfig$
|
|
4788
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
3898
4789
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3899
4790
|
return null;
|
|
3900
4791
|
}
|
|
3901
4792
|
if (process.env.NODE_ENV !== 'production') {
|
|
3902
4793
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3903
4794
|
}
|
|
3904
|
-
const config = typeCheckConfig$
|
|
4795
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
3905
4796
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3906
4797
|
return null;
|
|
3907
4798
|
}
|
|
3908
4799
|
return config;
|
|
3909
4800
|
}
|
|
3910
|
-
function buildNetworkSnapshot$
|
|
3911
|
-
const resourceParams = createResourceParams$
|
|
3912
|
-
const request = createResourceRequest$
|
|
4801
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
4802
|
+
const resourceParams = createResourceParams$d(config);
|
|
4803
|
+
const request = createResourceRequest$d(resourceParams);
|
|
3913
4804
|
return luvio.dispatchResourceRequest(request, options)
|
|
3914
4805
|
.then((response) => {
|
|
3915
4806
|
return luvio.handleSuccessResponse(() => {
|
|
3916
|
-
const snapshot = ingestSuccess$
|
|
4807
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
3917
4808
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3918
4809
|
}, () => {
|
|
3919
4810
|
const cache = new StoreKeyMap();
|
|
3920
|
-
getResponseCacheKeys$
|
|
4811
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
3921
4812
|
return cache;
|
|
3922
4813
|
});
|
|
3923
4814
|
}, (response) => {
|
|
@@ -3927,12 +4818,12 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
3927
4818
|
}
|
|
3928
4819
|
const postSlackConversationMembersAdapterFactory = (luvio) => {
|
|
3929
4820
|
return function postSlackConversationMembers(untrustedConfig) {
|
|
3930
|
-
const config = validateAdapterConfig$
|
|
4821
|
+
const config = validateAdapterConfig$d(untrustedConfig, postSlackConversationMembers_ConfigPropertyNames);
|
|
3931
4822
|
// Invalid or incomplete config
|
|
3932
4823
|
if (config === null) {
|
|
3933
4824
|
throw new Error('Invalid config for "postSlackConversationMembers"');
|
|
3934
4825
|
}
|
|
3935
|
-
return buildNetworkSnapshot$
|
|
4826
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
3936
4827
|
};
|
|
3937
4828
|
};
|
|
3938
4829
|
|
|
@@ -3956,19 +4847,19 @@ function validate$5(obj, path = 'SlackBridgeConversationMemberOutputRepresentati
|
|
|
3956
4847
|
return v_error === undefined ? null : v_error;
|
|
3957
4848
|
}
|
|
3958
4849
|
const RepresentationType$5 = 'SlackBridgeConversationMemberOutputRepresentation';
|
|
3959
|
-
function keyBuilder$
|
|
4850
|
+
function keyBuilder$l(luvio, config) {
|
|
3960
4851
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
|
|
3961
4852
|
}
|
|
3962
4853
|
function keyBuilderFromType$2(luvio, object) {
|
|
3963
4854
|
const keyParams = {
|
|
3964
4855
|
channelId: object.channelId
|
|
3965
4856
|
};
|
|
3966
|
-
return keyBuilder$
|
|
4857
|
+
return keyBuilder$l(luvio, keyParams);
|
|
3967
4858
|
}
|
|
3968
4859
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
3969
4860
|
return input;
|
|
3970
4861
|
}
|
|
3971
|
-
const select$
|
|
4862
|
+
const select$f = function SlackBridgeConversationMemberOutputRepresentationSelect() {
|
|
3972
4863
|
return {
|
|
3973
4864
|
kind: 'Fragment',
|
|
3974
4865
|
version: VERSION$5,
|
|
@@ -4020,13 +4911,13 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4020
4911
|
});
|
|
4021
4912
|
}
|
|
4022
4913
|
|
|
4023
|
-
function keyBuilder$
|
|
4024
|
-
return keyBuilder$
|
|
4914
|
+
function keyBuilder$k(luvio, params) {
|
|
4915
|
+
return keyBuilder$l(luvio, {
|
|
4025
4916
|
channelId: params.urlParams.channelId
|
|
4026
4917
|
});
|
|
4027
4918
|
}
|
|
4028
|
-
function getResponseCacheKeys$
|
|
4029
|
-
const key = keyBuilder$
|
|
4919
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
4920
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
4030
4921
|
cacheKeyMap.set(key, {
|
|
4031
4922
|
namespace: keyPrefix,
|
|
4032
4923
|
representationName: RepresentationType$5,
|
|
@@ -4034,10 +4925,10 @@ function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
|
|
|
4034
4925
|
});
|
|
4035
4926
|
}
|
|
4036
4927
|
function evictSuccess$2(luvio, resourceParams) {
|
|
4037
|
-
const key = keyBuilder$
|
|
4928
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
4038
4929
|
luvio.storeEvict(key);
|
|
4039
4930
|
}
|
|
4040
|
-
function createResourceRequest$
|
|
4931
|
+
function createResourceRequest$c(config) {
|
|
4041
4932
|
const headers = {};
|
|
4042
4933
|
return {
|
|
4043
4934
|
baseUri: '/services/data/v64.0',
|
|
@@ -4051,35 +4942,35 @@ function createResourceRequest$a(config) {
|
|
|
4051
4942
|
};
|
|
4052
4943
|
}
|
|
4053
4944
|
|
|
4054
|
-
const adapterName$
|
|
4945
|
+
const adapterName$c = 'deleteSlackConversationMember';
|
|
4055
4946
|
const deleteSlackConversationMember_ConfigPropertyMetadata = [
|
|
4056
4947
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4057
4948
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4058
4949
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4059
4950
|
];
|
|
4060
|
-
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4061
|
-
const createResourceParams$
|
|
4062
|
-
function typeCheckConfig$
|
|
4951
|
+
const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
4952
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$l(deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
4953
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
4063
4954
|
const config = {};
|
|
4064
|
-
typeCheckConfig$
|
|
4955
|
+
typeCheckConfig$l(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
|
|
4065
4956
|
return config;
|
|
4066
4957
|
}
|
|
4067
|
-
function validateAdapterConfig$
|
|
4958
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
4068
4959
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4069
4960
|
return null;
|
|
4070
4961
|
}
|
|
4071
4962
|
if (process.env.NODE_ENV !== 'production') {
|
|
4072
4963
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4073
4964
|
}
|
|
4074
|
-
const config = typeCheckConfig$
|
|
4965
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
4075
4966
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4076
4967
|
return null;
|
|
4077
4968
|
}
|
|
4078
4969
|
return config;
|
|
4079
4970
|
}
|
|
4080
|
-
function buildNetworkSnapshot$
|
|
4081
|
-
const resourceParams = createResourceParams$
|
|
4082
|
-
const request = createResourceRequest$
|
|
4971
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
4972
|
+
const resourceParams = createResourceParams$c(config);
|
|
4973
|
+
const request = createResourceRequest$c(resourceParams);
|
|
4083
4974
|
return luvio.dispatchResourceRequest(request, options)
|
|
4084
4975
|
.then(() => {
|
|
4085
4976
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -4087,7 +4978,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
4087
4978
|
return luvio.storeBroadcast();
|
|
4088
4979
|
}, () => {
|
|
4089
4980
|
const cache = new StoreKeyMap();
|
|
4090
|
-
getResponseCacheKeys$
|
|
4981
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
4091
4982
|
return cache;
|
|
4092
4983
|
});
|
|
4093
4984
|
}, (response) => {
|
|
@@ -4097,33 +4988,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
4097
4988
|
}
|
|
4098
4989
|
const deleteSlackConversationMemberAdapterFactory = (luvio) => {
|
|
4099
4990
|
return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
|
|
4100
|
-
const config = validateAdapterConfig$
|
|
4991
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteSlackConversationMember_ConfigPropertyNames);
|
|
4101
4992
|
// Invalid or incomplete config
|
|
4102
4993
|
if (config === null) {
|
|
4103
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
4994
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
4104
4995
|
}
|
|
4105
|
-
return buildNetworkSnapshot$
|
|
4996
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
4106
4997
|
};
|
|
4107
4998
|
};
|
|
4108
4999
|
|
|
4109
|
-
function select$
|
|
4110
|
-
return select$
|
|
5000
|
+
function select$e(luvio, params) {
|
|
5001
|
+
return select$f();
|
|
4111
5002
|
}
|
|
4112
|
-
function keyBuilder$
|
|
4113
|
-
return keyBuilder$
|
|
5003
|
+
function keyBuilder$j(luvio, params) {
|
|
5004
|
+
return keyBuilder$l(luvio, {
|
|
4114
5005
|
channelId: params.urlParams.channelId
|
|
4115
5006
|
});
|
|
4116
5007
|
}
|
|
4117
|
-
function getResponseCacheKeys$
|
|
5008
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
4118
5009
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
4119
5010
|
}
|
|
4120
|
-
function ingestSuccess$
|
|
5011
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
4121
5012
|
const { body } = response;
|
|
4122
|
-
const key = keyBuilder$
|
|
5013
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
4123
5014
|
luvio.storeIngest(key, ingest$5, body);
|
|
4124
5015
|
const snapshot = luvio.storeLookup({
|
|
4125
5016
|
recordId: key,
|
|
4126
|
-
node: select$
|
|
5017
|
+
node: select$e(),
|
|
4127
5018
|
variables: {},
|
|
4128
5019
|
}, snapshotRefresh);
|
|
4129
5020
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4134,13 +5025,13 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4134
5025
|
deepFreeze(snapshot.data);
|
|
4135
5026
|
return snapshot;
|
|
4136
5027
|
}
|
|
4137
|
-
function ingestError$
|
|
4138
|
-
const key = keyBuilder$
|
|
5028
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
5029
|
+
const key = keyBuilder$j(luvio, params);
|
|
4139
5030
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4140
5031
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4141
5032
|
return errorSnapshot;
|
|
4142
5033
|
}
|
|
4143
|
-
function createResourceRequest$
|
|
5034
|
+
function createResourceRequest$b(config) {
|
|
4144
5035
|
const headers = {};
|
|
4145
5036
|
return {
|
|
4146
5037
|
baseUri: '/services/data/v64.0',
|
|
@@ -4154,92 +5045,92 @@ function createResourceRequest$9(config) {
|
|
|
4154
5045
|
};
|
|
4155
5046
|
}
|
|
4156
5047
|
|
|
4157
|
-
const adapterName$
|
|
5048
|
+
const adapterName$b = 'getSlackConversationMember';
|
|
4158
5049
|
const getSlackConversationMember_ConfigPropertyMetadata = [
|
|
4159
5050
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4160
5051
|
generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4161
5052
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4162
5053
|
];
|
|
4163
|
-
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4164
|
-
const createResourceParams$
|
|
4165
|
-
function keyBuilder$
|
|
4166
|
-
const resourceParams = createResourceParams$
|
|
4167
|
-
return keyBuilder$
|
|
5054
|
+
const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackConversationMember_ConfigPropertyMetadata);
|
|
5055
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$l(getSlackConversationMember_ConfigPropertyMetadata);
|
|
5056
|
+
function keyBuilder$i(luvio, config) {
|
|
5057
|
+
const resourceParams = createResourceParams$b(config);
|
|
5058
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
4168
5059
|
}
|
|
4169
|
-
function typeCheckConfig$
|
|
5060
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
4170
5061
|
const config = {};
|
|
4171
|
-
typeCheckConfig$
|
|
5062
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
|
|
4172
5063
|
return config;
|
|
4173
5064
|
}
|
|
4174
|
-
function validateAdapterConfig$
|
|
5065
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
4175
5066
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4176
5067
|
return null;
|
|
4177
5068
|
}
|
|
4178
5069
|
if (process.env.NODE_ENV !== 'production') {
|
|
4179
5070
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4180
5071
|
}
|
|
4181
|
-
const config = typeCheckConfig$
|
|
5072
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
4182
5073
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4183
5074
|
return null;
|
|
4184
5075
|
}
|
|
4185
5076
|
return config;
|
|
4186
5077
|
}
|
|
4187
|
-
function adapterFragment$
|
|
4188
|
-
createResourceParams$
|
|
4189
|
-
return select$
|
|
5078
|
+
function adapterFragment$7(luvio, config) {
|
|
5079
|
+
createResourceParams$b(config);
|
|
5080
|
+
return select$e();
|
|
4190
5081
|
}
|
|
4191
|
-
function onFetchResponseSuccess$
|
|
4192
|
-
const snapshot = ingestSuccess$
|
|
5082
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
5083
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
4193
5084
|
config,
|
|
4194
|
-
resolve: () => buildNetworkSnapshot$
|
|
5085
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4195
5086
|
});
|
|
4196
5087
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4197
5088
|
}
|
|
4198
|
-
function onFetchResponseError$
|
|
4199
|
-
const snapshot = ingestError$
|
|
5089
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
5090
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
4200
5091
|
config,
|
|
4201
|
-
resolve: () => buildNetworkSnapshot$
|
|
5092
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4202
5093
|
});
|
|
4203
5094
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4204
5095
|
}
|
|
4205
|
-
function buildNetworkSnapshot$
|
|
4206
|
-
const resourceParams = createResourceParams$
|
|
4207
|
-
const request = createResourceRequest$
|
|
5096
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
5097
|
+
const resourceParams = createResourceParams$b(config);
|
|
5098
|
+
const request = createResourceRequest$b(resourceParams);
|
|
4208
5099
|
return luvio.dispatchResourceRequest(request, options)
|
|
4209
5100
|
.then((response) => {
|
|
4210
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5101
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
4211
5102
|
const cache = new StoreKeyMap();
|
|
4212
|
-
getResponseCacheKeys$
|
|
5103
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
4213
5104
|
return cache;
|
|
4214
5105
|
});
|
|
4215
5106
|
}, (response) => {
|
|
4216
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5107
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
4217
5108
|
});
|
|
4218
5109
|
}
|
|
4219
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4220
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5110
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
5111
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
4221
5112
|
}
|
|
4222
|
-
function buildCachedSnapshotCachePolicy$
|
|
5113
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
4223
5114
|
const { luvio, config } = context;
|
|
4224
5115
|
const selector = {
|
|
4225
|
-
recordId: keyBuilder$
|
|
4226
|
-
node: adapterFragment$
|
|
5116
|
+
recordId: keyBuilder$i(luvio, config),
|
|
5117
|
+
node: adapterFragment$7(luvio, config),
|
|
4227
5118
|
variables: {},
|
|
4228
5119
|
};
|
|
4229
5120
|
const cacheSnapshot = storeLookup(selector, {
|
|
4230
5121
|
config,
|
|
4231
|
-
resolve: () => buildNetworkSnapshot$
|
|
5122
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
4232
5123
|
});
|
|
4233
5124
|
return cacheSnapshot;
|
|
4234
5125
|
}
|
|
4235
5126
|
const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
|
|
4236
|
-
const config = validateAdapterConfig$
|
|
5127
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
|
|
4237
5128
|
// Invalid or incomplete config
|
|
4238
5129
|
if (config === null) {
|
|
4239
5130
|
return null;
|
|
4240
5131
|
}
|
|
4241
5132
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4242
|
-
buildCachedSnapshotCachePolicy$
|
|
5133
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
4243
5134
|
};
|
|
4244
5135
|
|
|
4245
5136
|
const VERSION$4 = "605674abcbc0dad7e2707e4e00e8d4cd";
|
|
@@ -4267,19 +5158,19 @@ function validate$4(obj, path = 'SlackBridgeMessageFragmentOutputRepresentation'
|
|
|
4267
5158
|
return v_error === undefined ? null : v_error;
|
|
4268
5159
|
}
|
|
4269
5160
|
const RepresentationType$4 = 'SlackBridgeMessageFragmentOutputRepresentation';
|
|
4270
|
-
function keyBuilder$
|
|
5161
|
+
function keyBuilder$h(luvio, config) {
|
|
4271
5162
|
return keyPrefix + '::' + RepresentationType$4 + ':' + config.channelId;
|
|
4272
5163
|
}
|
|
4273
5164
|
function keyBuilderFromType$1(luvio, object) {
|
|
4274
5165
|
const keyParams = {
|
|
4275
5166
|
channelId: object.channelId
|
|
4276
5167
|
};
|
|
4277
|
-
return keyBuilder$
|
|
5168
|
+
return keyBuilder$h(luvio, keyParams);
|
|
4278
5169
|
}
|
|
4279
5170
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4280
5171
|
return input;
|
|
4281
5172
|
}
|
|
4282
|
-
const select$
|
|
5173
|
+
const select$d = function SlackBridgeMessageFragmentOutputRepresentationSelect() {
|
|
4283
5174
|
return {
|
|
4284
5175
|
kind: 'Fragment',
|
|
4285
5176
|
version: VERSION$4,
|
|
@@ -4340,13 +5231,13 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4340
5231
|
});
|
|
4341
5232
|
}
|
|
4342
5233
|
|
|
4343
|
-
function keyBuilder$
|
|
4344
|
-
return keyBuilder$
|
|
5234
|
+
function keyBuilder$g(luvio, params) {
|
|
5235
|
+
return keyBuilder$h(luvio, {
|
|
4345
5236
|
channelId: params.urlParams.channelId
|
|
4346
5237
|
});
|
|
4347
5238
|
}
|
|
4348
|
-
function getResponseCacheKeys$
|
|
4349
|
-
const key = keyBuilder$
|
|
5239
|
+
function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
|
|
5240
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
4350
5241
|
cacheKeyMap.set(key, {
|
|
4351
5242
|
namespace: keyPrefix,
|
|
4352
5243
|
representationName: RepresentationType$4,
|
|
@@ -4354,10 +5245,10 @@ function getResponseCacheKeys$8(cacheKeyMap, luvio, resourceParams) {
|
|
|
4354
5245
|
});
|
|
4355
5246
|
}
|
|
4356
5247
|
function evictSuccess$1(luvio, resourceParams) {
|
|
4357
|
-
const key = keyBuilder$
|
|
5248
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
4358
5249
|
luvio.storeEvict(key);
|
|
4359
5250
|
}
|
|
4360
|
-
function createResourceRequest$
|
|
5251
|
+
function createResourceRequest$a(config) {
|
|
4361
5252
|
const headers = {};
|
|
4362
5253
|
return {
|
|
4363
5254
|
baseUri: '/services/data/v64.0',
|
|
@@ -4371,35 +5262,35 @@ function createResourceRequest$8(config) {
|
|
|
4371
5262
|
};
|
|
4372
5263
|
}
|
|
4373
5264
|
|
|
4374
|
-
const adapterName$
|
|
5265
|
+
const adapterName$a = 'deleteSlackMessage';
|
|
4375
5266
|
const deleteSlackMessage_ConfigPropertyMetadata = [
|
|
4376
5267
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4377
5268
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4378
5269
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4379
5270
|
];
|
|
4380
|
-
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4381
|
-
const createResourceParams$
|
|
4382
|
-
function typeCheckConfig$
|
|
5271
|
+
const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteSlackMessage_ConfigPropertyMetadata);
|
|
5272
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$l(deleteSlackMessage_ConfigPropertyMetadata);
|
|
5273
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
4383
5274
|
const config = {};
|
|
4384
|
-
typeCheckConfig$
|
|
5275
|
+
typeCheckConfig$l(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
|
|
4385
5276
|
return config;
|
|
4386
5277
|
}
|
|
4387
|
-
function validateAdapterConfig$
|
|
5278
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
4388
5279
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4389
5280
|
return null;
|
|
4390
5281
|
}
|
|
4391
5282
|
if (process.env.NODE_ENV !== 'production') {
|
|
4392
5283
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4393
5284
|
}
|
|
4394
|
-
const config = typeCheckConfig$
|
|
5285
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
4395
5286
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4396
5287
|
return null;
|
|
4397
5288
|
}
|
|
4398
5289
|
return config;
|
|
4399
5290
|
}
|
|
4400
|
-
function buildNetworkSnapshot$
|
|
4401
|
-
const resourceParams = createResourceParams$
|
|
4402
|
-
const request = createResourceRequest$
|
|
5291
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
5292
|
+
const resourceParams = createResourceParams$a(config);
|
|
5293
|
+
const request = createResourceRequest$a(resourceParams);
|
|
4403
5294
|
return luvio.dispatchResourceRequest(request, options)
|
|
4404
5295
|
.then(() => {
|
|
4405
5296
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -4407,7 +5298,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
4407
5298
|
return luvio.storeBroadcast();
|
|
4408
5299
|
}, () => {
|
|
4409
5300
|
const cache = new StoreKeyMap();
|
|
4410
|
-
getResponseCacheKeys$
|
|
5301
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams);
|
|
4411
5302
|
return cache;
|
|
4412
5303
|
});
|
|
4413
5304
|
}, (response) => {
|
|
@@ -4417,33 +5308,33 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
4417
5308
|
}
|
|
4418
5309
|
const deleteSlackMessageAdapterFactory = (luvio) => {
|
|
4419
5310
|
return function SlackBridgedeleteSlackMessage(untrustedConfig) {
|
|
4420
|
-
const config = validateAdapterConfig$
|
|
5311
|
+
const config = validateAdapterConfig$a(untrustedConfig, deleteSlackMessage_ConfigPropertyNames);
|
|
4421
5312
|
// Invalid or incomplete config
|
|
4422
5313
|
if (config === null) {
|
|
4423
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5314
|
+
throw new Error(`Invalid config for "${adapterName$a}"`);
|
|
4424
5315
|
}
|
|
4425
|
-
return buildNetworkSnapshot$
|
|
5316
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
4426
5317
|
};
|
|
4427
5318
|
};
|
|
4428
5319
|
|
|
4429
|
-
function select$
|
|
4430
|
-
return select$
|
|
5320
|
+
function select$c(luvio, params) {
|
|
5321
|
+
return select$d();
|
|
4431
5322
|
}
|
|
4432
|
-
function keyBuilder$
|
|
4433
|
-
return keyBuilder$
|
|
5323
|
+
function keyBuilder$f(luvio, params) {
|
|
5324
|
+
return keyBuilder$h(luvio, {
|
|
4434
5325
|
channelId: params.urlParams.channelId
|
|
4435
5326
|
});
|
|
4436
5327
|
}
|
|
4437
|
-
function getResponseCacheKeys$
|
|
5328
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
4438
5329
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
4439
5330
|
}
|
|
4440
|
-
function ingestSuccess$
|
|
5331
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
4441
5332
|
const { body } = response;
|
|
4442
|
-
const key = keyBuilder$
|
|
5333
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
4443
5334
|
luvio.storeIngest(key, ingest$4, body);
|
|
4444
5335
|
const snapshot = luvio.storeLookup({
|
|
4445
5336
|
recordId: key,
|
|
4446
|
-
node: select$
|
|
5337
|
+
node: select$c(),
|
|
4447
5338
|
variables: {},
|
|
4448
5339
|
}, snapshotRefresh);
|
|
4449
5340
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4454,13 +5345,13 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4454
5345
|
deepFreeze(snapshot.data);
|
|
4455
5346
|
return snapshot;
|
|
4456
5347
|
}
|
|
4457
|
-
function ingestError$
|
|
4458
|
-
const key = keyBuilder$
|
|
5348
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
5349
|
+
const key = keyBuilder$f(luvio, params);
|
|
4459
5350
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4460
5351
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4461
5352
|
return errorSnapshot;
|
|
4462
5353
|
}
|
|
4463
|
-
function createResourceRequest$
|
|
5354
|
+
function createResourceRequest$9(config) {
|
|
4464
5355
|
const headers = {};
|
|
4465
5356
|
return {
|
|
4466
5357
|
baseUri: '/services/data/v64.0',
|
|
@@ -4474,107 +5365,107 @@ function createResourceRequest$7(config) {
|
|
|
4474
5365
|
};
|
|
4475
5366
|
}
|
|
4476
5367
|
|
|
4477
|
-
const adapterName$
|
|
5368
|
+
const adapterName$9 = 'getSlackMessage';
|
|
4478
5369
|
const getSlackMessage_ConfigPropertyMetadata = [
|
|
4479
5370
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4480
5371
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4481
5372
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4482
5373
|
];
|
|
4483
|
-
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4484
|
-
const createResourceParams$
|
|
4485
|
-
function keyBuilder$
|
|
4486
|
-
const resourceParams = createResourceParams$
|
|
4487
|
-
return keyBuilder$
|
|
5374
|
+
const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackMessage_ConfigPropertyMetadata);
|
|
5375
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$l(getSlackMessage_ConfigPropertyMetadata);
|
|
5376
|
+
function keyBuilder$e(luvio, config) {
|
|
5377
|
+
const resourceParams = createResourceParams$9(config);
|
|
5378
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
4488
5379
|
}
|
|
4489
|
-
function typeCheckConfig$
|
|
5380
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
4490
5381
|
const config = {};
|
|
4491
|
-
typeCheckConfig$
|
|
5382
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
|
|
4492
5383
|
return config;
|
|
4493
5384
|
}
|
|
4494
|
-
function validateAdapterConfig$
|
|
5385
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
4495
5386
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4496
5387
|
return null;
|
|
4497
5388
|
}
|
|
4498
5389
|
if (process.env.NODE_ENV !== 'production') {
|
|
4499
5390
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4500
5391
|
}
|
|
4501
|
-
const config = typeCheckConfig$
|
|
5392
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
4502
5393
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4503
5394
|
return null;
|
|
4504
5395
|
}
|
|
4505
5396
|
return config;
|
|
4506
5397
|
}
|
|
4507
|
-
function adapterFragment$
|
|
4508
|
-
createResourceParams$
|
|
4509
|
-
return select$
|
|
5398
|
+
function adapterFragment$6(luvio, config) {
|
|
5399
|
+
createResourceParams$9(config);
|
|
5400
|
+
return select$c();
|
|
4510
5401
|
}
|
|
4511
|
-
function onFetchResponseSuccess$
|
|
4512
|
-
const snapshot = ingestSuccess$
|
|
5402
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
5403
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
4513
5404
|
config,
|
|
4514
|
-
resolve: () => buildNetworkSnapshot$
|
|
5405
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
4515
5406
|
});
|
|
4516
5407
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4517
5408
|
}
|
|
4518
|
-
function onFetchResponseError$
|
|
4519
|
-
const snapshot = ingestError$
|
|
5409
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
5410
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
4520
5411
|
config,
|
|
4521
|
-
resolve: () => buildNetworkSnapshot$
|
|
5412
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
4522
5413
|
});
|
|
4523
5414
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4524
5415
|
}
|
|
4525
|
-
function buildNetworkSnapshot$
|
|
4526
|
-
const resourceParams = createResourceParams$
|
|
4527
|
-
const request = createResourceRequest$
|
|
5416
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
5417
|
+
const resourceParams = createResourceParams$9(config);
|
|
5418
|
+
const request = createResourceRequest$9(resourceParams);
|
|
4528
5419
|
return luvio.dispatchResourceRequest(request, options)
|
|
4529
5420
|
.then((response) => {
|
|
4530
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
5421
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
4531
5422
|
const cache = new StoreKeyMap();
|
|
4532
|
-
getResponseCacheKeys$
|
|
5423
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
4533
5424
|
return cache;
|
|
4534
5425
|
});
|
|
4535
5426
|
}, (response) => {
|
|
4536
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
5427
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
4537
5428
|
});
|
|
4538
5429
|
}
|
|
4539
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4540
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5430
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
5431
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
4541
5432
|
}
|
|
4542
|
-
function buildCachedSnapshotCachePolicy$
|
|
5433
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
4543
5434
|
const { luvio, config } = context;
|
|
4544
5435
|
const selector = {
|
|
4545
|
-
recordId: keyBuilder$
|
|
4546
|
-
node: adapterFragment$
|
|
5436
|
+
recordId: keyBuilder$e(luvio, config),
|
|
5437
|
+
node: adapterFragment$6(luvio, config),
|
|
4547
5438
|
variables: {},
|
|
4548
5439
|
};
|
|
4549
5440
|
const cacheSnapshot = storeLookup(selector, {
|
|
4550
5441
|
config,
|
|
4551
|
-
resolve: () => buildNetworkSnapshot$
|
|
5442
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
4552
5443
|
});
|
|
4553
5444
|
return cacheSnapshot;
|
|
4554
5445
|
}
|
|
4555
5446
|
const getSlackMessageAdapterFactory = (luvio) => function SlackBridge__getSlackMessage(untrustedConfig, requestContext) {
|
|
4556
|
-
const config = validateAdapterConfig$
|
|
5447
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSlackMessage_ConfigPropertyNames);
|
|
4557
5448
|
// Invalid or incomplete config
|
|
4558
5449
|
if (config === null) {
|
|
4559
5450
|
return null;
|
|
4560
5451
|
}
|
|
4561
5452
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4562
|
-
buildCachedSnapshotCachePolicy$
|
|
5453
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
4563
5454
|
};
|
|
4564
5455
|
|
|
4565
|
-
function select$
|
|
4566
|
-
return select$
|
|
5456
|
+
function select$b(luvio, params) {
|
|
5457
|
+
return select$d();
|
|
4567
5458
|
}
|
|
4568
|
-
function getResponseCacheKeys$
|
|
5459
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
4569
5460
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
4570
5461
|
}
|
|
4571
|
-
function ingestSuccess$
|
|
5462
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
4572
5463
|
const { body } = response;
|
|
4573
5464
|
const key = keyBuilderFromType$1(luvio, body);
|
|
4574
5465
|
luvio.storeIngest(key, ingest$4, body);
|
|
4575
5466
|
const snapshot = luvio.storeLookup({
|
|
4576
5467
|
recordId: key,
|
|
4577
|
-
node: select$
|
|
5468
|
+
node: select$b(),
|
|
4578
5469
|
variables: {},
|
|
4579
5470
|
});
|
|
4580
5471
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4585,7 +5476,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
4585
5476
|
deepFreeze(snapshot.data);
|
|
4586
5477
|
return snapshot;
|
|
4587
5478
|
}
|
|
4588
|
-
function createResourceRequest$
|
|
5479
|
+
function createResourceRequest$8(config) {
|
|
4589
5480
|
const headers = {};
|
|
4590
5481
|
return {
|
|
4591
5482
|
baseUri: '/services/data/v64.0',
|
|
@@ -4599,44 +5490,44 @@ function createResourceRequest$6(config) {
|
|
|
4599
5490
|
};
|
|
4600
5491
|
}
|
|
4601
5492
|
|
|
4602
|
-
const adapterName$
|
|
5493
|
+
const adapterName$8 = 'patchSlackMessage';
|
|
4603
5494
|
const patchSlackMessage_ConfigPropertyMetadata = [
|
|
4604
5495
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4605
5496
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4606
5497
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4607
5498
|
generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
|
|
4608
5499
|
];
|
|
4609
|
-
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4610
|
-
const createResourceParams$
|
|
4611
|
-
function typeCheckConfig$
|
|
5500
|
+
const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, patchSlackMessage_ConfigPropertyMetadata);
|
|
5501
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$l(patchSlackMessage_ConfigPropertyMetadata);
|
|
5502
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
4612
5503
|
const config = {};
|
|
4613
|
-
typeCheckConfig$
|
|
5504
|
+
typeCheckConfig$l(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
|
|
4614
5505
|
return config;
|
|
4615
5506
|
}
|
|
4616
|
-
function validateAdapterConfig$
|
|
5507
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
4617
5508
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4618
5509
|
return null;
|
|
4619
5510
|
}
|
|
4620
5511
|
if (process.env.NODE_ENV !== 'production') {
|
|
4621
5512
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4622
5513
|
}
|
|
4623
|
-
const config = typeCheckConfig$
|
|
5514
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
4624
5515
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4625
5516
|
return null;
|
|
4626
5517
|
}
|
|
4627
5518
|
return config;
|
|
4628
5519
|
}
|
|
4629
|
-
function buildNetworkSnapshot$
|
|
4630
|
-
const resourceParams = createResourceParams$
|
|
4631
|
-
const request = createResourceRequest$
|
|
5520
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
5521
|
+
const resourceParams = createResourceParams$8(config);
|
|
5522
|
+
const request = createResourceRequest$8(resourceParams);
|
|
4632
5523
|
return luvio.dispatchResourceRequest(request, options)
|
|
4633
5524
|
.then((response) => {
|
|
4634
5525
|
return luvio.handleSuccessResponse(() => {
|
|
4635
|
-
const snapshot = ingestSuccess$
|
|
5526
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
4636
5527
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4637
5528
|
}, () => {
|
|
4638
5529
|
const cache = new StoreKeyMap();
|
|
4639
|
-
getResponseCacheKeys$
|
|
5530
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
4640
5531
|
return cache;
|
|
4641
5532
|
});
|
|
4642
5533
|
}, (response) => {
|
|
@@ -4646,12 +5537,12 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
4646
5537
|
}
|
|
4647
5538
|
const patchSlackMessageAdapterFactory = (luvio) => {
|
|
4648
5539
|
return function patchSlackMessage(untrustedConfig) {
|
|
4649
|
-
const config = validateAdapterConfig$
|
|
5540
|
+
const config = validateAdapterConfig$8(untrustedConfig, patchSlackMessage_ConfigPropertyNames);
|
|
4650
5541
|
// Invalid or incomplete config
|
|
4651
5542
|
if (config === null) {
|
|
4652
5543
|
throw new Error('Invalid config for "patchSlackMessage"');
|
|
4653
5544
|
}
|
|
4654
|
-
return buildNetworkSnapshot$
|
|
5545
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
4655
5546
|
};
|
|
4656
5547
|
};
|
|
4657
5548
|
|
|
@@ -4695,20 +5586,20 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
|
|
|
4695
5586
|
return v_error === undefined ? null : v_error;
|
|
4696
5587
|
}
|
|
4697
5588
|
const RepresentationType$3 = 'SlackBridgeReactionsOutputRepresentation';
|
|
4698
|
-
function keyBuilder$
|
|
5589
|
+
function keyBuilder$d(luvio, config) {
|
|
4699
5590
|
return keyPrefix + '::' + RepresentationType$3 + ':' + config.channelId;
|
|
4700
5591
|
}
|
|
4701
5592
|
function keyBuilderFromType(luvio, object) {
|
|
4702
5593
|
const keyParams = {
|
|
4703
5594
|
channelId: object.channelId
|
|
4704
5595
|
};
|
|
4705
|
-
return keyBuilder$
|
|
5596
|
+
return keyBuilder$d(luvio, keyParams);
|
|
4706
5597
|
}
|
|
4707
5598
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
4708
5599
|
return input;
|
|
4709
5600
|
}
|
|
4710
|
-
const select$
|
|
4711
|
-
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$
|
|
5601
|
+
const select$a = function SlackBridgeReactionsOutputRepresentationSelect() {
|
|
5602
|
+
const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$z();
|
|
4712
5603
|
return {
|
|
4713
5604
|
kind: 'Fragment',
|
|
4714
5605
|
version: VERSION$3,
|
|
@@ -4785,13 +5676,13 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4785
5676
|
});
|
|
4786
5677
|
}
|
|
4787
5678
|
|
|
4788
|
-
function keyBuilder$
|
|
4789
|
-
return keyBuilder$
|
|
5679
|
+
function keyBuilder$c(luvio, params) {
|
|
5680
|
+
return keyBuilder$d(luvio, {
|
|
4790
5681
|
channelId: params.urlParams.channelId
|
|
4791
5682
|
});
|
|
4792
5683
|
}
|
|
4793
|
-
function getResponseCacheKeys$
|
|
4794
|
-
const key = keyBuilder$
|
|
5684
|
+
function getResponseCacheKeys$7(cacheKeyMap, luvio, resourceParams) {
|
|
5685
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
4795
5686
|
cacheKeyMap.set(key, {
|
|
4796
5687
|
namespace: keyPrefix,
|
|
4797
5688
|
representationName: RepresentationType$3,
|
|
@@ -4799,10 +5690,10 @@ function getResponseCacheKeys$5(cacheKeyMap, luvio, resourceParams) {
|
|
|
4799
5690
|
});
|
|
4800
5691
|
}
|
|
4801
5692
|
function evictSuccess(luvio, resourceParams) {
|
|
4802
|
-
const key = keyBuilder$
|
|
5693
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
4803
5694
|
luvio.storeEvict(key);
|
|
4804
5695
|
}
|
|
4805
|
-
function createResourceRequest$
|
|
5696
|
+
function createResourceRequest$7(config) {
|
|
4806
5697
|
const headers = {};
|
|
4807
5698
|
return {
|
|
4808
5699
|
baseUri: '/services/data/v64.0',
|
|
@@ -4816,36 +5707,36 @@ function createResourceRequest$5(config) {
|
|
|
4816
5707
|
};
|
|
4817
5708
|
}
|
|
4818
5709
|
|
|
4819
|
-
const adapterName$
|
|
5710
|
+
const adapterName$7 = 'deleteSlackMessageReactions';
|
|
4820
5711
|
const deleteSlackMessageReactions_ConfigPropertyMetadata = [
|
|
4821
5712
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4822
5713
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4823
5714
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4824
5715
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4825
5716
|
];
|
|
4826
|
-
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4827
|
-
const createResourceParams$
|
|
4828
|
-
function typeCheckConfig$
|
|
5717
|
+
const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
5718
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$l(deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
5719
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
4829
5720
|
const config = {};
|
|
4830
|
-
typeCheckConfig$
|
|
5721
|
+
typeCheckConfig$l(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
|
|
4831
5722
|
return config;
|
|
4832
5723
|
}
|
|
4833
|
-
function validateAdapterConfig$
|
|
5724
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
4834
5725
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4835
5726
|
return null;
|
|
4836
5727
|
}
|
|
4837
5728
|
if (process.env.NODE_ENV !== 'production') {
|
|
4838
5729
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4839
5730
|
}
|
|
4840
|
-
const config = typeCheckConfig$
|
|
5731
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
4841
5732
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4842
5733
|
return null;
|
|
4843
5734
|
}
|
|
4844
5735
|
return config;
|
|
4845
5736
|
}
|
|
4846
|
-
function buildNetworkSnapshot$
|
|
4847
|
-
const resourceParams = createResourceParams$
|
|
4848
|
-
const request = createResourceRequest$
|
|
5737
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
5738
|
+
const resourceParams = createResourceParams$7(config);
|
|
5739
|
+
const request = createResourceRequest$7(resourceParams);
|
|
4849
5740
|
return luvio.dispatchResourceRequest(request, options)
|
|
4850
5741
|
.then(() => {
|
|
4851
5742
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -4853,7 +5744,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
4853
5744
|
return luvio.storeBroadcast();
|
|
4854
5745
|
}, () => {
|
|
4855
5746
|
const cache = new StoreKeyMap();
|
|
4856
|
-
getResponseCacheKeys$
|
|
5747
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams);
|
|
4857
5748
|
return cache;
|
|
4858
5749
|
});
|
|
4859
5750
|
}, (response) => {
|
|
@@ -4863,28 +5754,28 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
4863
5754
|
}
|
|
4864
5755
|
const deleteSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
4865
5756
|
return function SlackBridgedeleteSlackMessageReactions(untrustedConfig) {
|
|
4866
|
-
const config = validateAdapterConfig$
|
|
5757
|
+
const config = validateAdapterConfig$7(untrustedConfig, deleteSlackMessageReactions_ConfigPropertyNames);
|
|
4867
5758
|
// Invalid or incomplete config
|
|
4868
5759
|
if (config === null) {
|
|
4869
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
5760
|
+
throw new Error(`Invalid config for "${adapterName$7}"`);
|
|
4870
5761
|
}
|
|
4871
|
-
return buildNetworkSnapshot$
|
|
5762
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
4872
5763
|
};
|
|
4873
5764
|
};
|
|
4874
5765
|
|
|
4875
|
-
function select$
|
|
4876
|
-
return select$
|
|
5766
|
+
function select$9(luvio, params) {
|
|
5767
|
+
return select$a();
|
|
4877
5768
|
}
|
|
4878
|
-
function getResponseCacheKeys$
|
|
5769
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
4879
5770
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
4880
5771
|
}
|
|
4881
|
-
function ingestSuccess$
|
|
5772
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
4882
5773
|
const { body } = response;
|
|
4883
5774
|
const key = keyBuilderFromType(luvio, body);
|
|
4884
5775
|
luvio.storeIngest(key, ingest$3, body);
|
|
4885
5776
|
const snapshot = luvio.storeLookup({
|
|
4886
5777
|
recordId: key,
|
|
4887
|
-
node: select$
|
|
5778
|
+
node: select$9(),
|
|
4888
5779
|
variables: {},
|
|
4889
5780
|
});
|
|
4890
5781
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4895,7 +5786,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
4895
5786
|
deepFreeze(snapshot.data);
|
|
4896
5787
|
return snapshot;
|
|
4897
5788
|
}
|
|
4898
|
-
function createResourceRequest$
|
|
5789
|
+
function createResourceRequest$6(config) {
|
|
4899
5790
|
const headers = {};
|
|
4900
5791
|
return {
|
|
4901
5792
|
baseUri: '/services/data/v64.0',
|
|
@@ -4909,44 +5800,44 @@ function createResourceRequest$4(config) {
|
|
|
4909
5800
|
};
|
|
4910
5801
|
}
|
|
4911
5802
|
|
|
4912
|
-
const adapterName$
|
|
5803
|
+
const adapterName$6 = 'postSlackMessageReactions';
|
|
4913
5804
|
const postSlackMessageReactions_ConfigPropertyMetadata = [
|
|
4914
5805
|
generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4915
5806
|
generateParamConfigMetadata('messageTs', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4916
5807
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4917
5808
|
generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4918
5809
|
];
|
|
4919
|
-
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4920
|
-
const createResourceParams$
|
|
4921
|
-
function typeCheckConfig$
|
|
5810
|
+
const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5811
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$l(postSlackMessageReactions_ConfigPropertyMetadata);
|
|
5812
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
4922
5813
|
const config = {};
|
|
4923
|
-
typeCheckConfig$
|
|
5814
|
+
typeCheckConfig$l(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
|
|
4924
5815
|
return config;
|
|
4925
5816
|
}
|
|
4926
|
-
function validateAdapterConfig$
|
|
5817
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
4927
5818
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4928
5819
|
return null;
|
|
4929
5820
|
}
|
|
4930
5821
|
if (process.env.NODE_ENV !== 'production') {
|
|
4931
5822
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4932
5823
|
}
|
|
4933
|
-
const config = typeCheckConfig$
|
|
5824
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
4934
5825
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4935
5826
|
return null;
|
|
4936
5827
|
}
|
|
4937
5828
|
return config;
|
|
4938
5829
|
}
|
|
4939
|
-
function buildNetworkSnapshot$
|
|
4940
|
-
const resourceParams = createResourceParams$
|
|
4941
|
-
const request = createResourceRequest$
|
|
5830
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
5831
|
+
const resourceParams = createResourceParams$6(config);
|
|
5832
|
+
const request = createResourceRequest$6(resourceParams);
|
|
4942
5833
|
return luvio.dispatchResourceRequest(request, options)
|
|
4943
5834
|
.then((response) => {
|
|
4944
5835
|
return luvio.handleSuccessResponse(() => {
|
|
4945
|
-
const snapshot = ingestSuccess$
|
|
5836
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
4946
5837
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4947
5838
|
}, () => {
|
|
4948
5839
|
const cache = new StoreKeyMap();
|
|
4949
|
-
getResponseCacheKeys$
|
|
5840
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
4950
5841
|
return cache;
|
|
4951
5842
|
});
|
|
4952
5843
|
}, (response) => {
|
|
@@ -4956,84 +5847,85 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
4956
5847
|
}
|
|
4957
5848
|
const postSlackMessageReactionsAdapterFactory = (luvio) => {
|
|
4958
5849
|
return function postSlackMessageReactions(untrustedConfig) {
|
|
4959
|
-
const config = validateAdapterConfig$
|
|
5850
|
+
const config = validateAdapterConfig$6(untrustedConfig, postSlackMessageReactions_ConfigPropertyNames);
|
|
4960
5851
|
// Invalid or incomplete config
|
|
4961
5852
|
if (config === null) {
|
|
4962
5853
|
throw new Error('Invalid config for "postSlackMessageReactions"');
|
|
4963
5854
|
}
|
|
4964
|
-
return buildNetworkSnapshot$
|
|
5855
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
4965
5856
|
};
|
|
4966
5857
|
};
|
|
4967
5858
|
|
|
4968
|
-
const VERSION$2 = "
|
|
4969
|
-
function validate$2(obj, path = '
|
|
5859
|
+
const VERSION$2 = "da7e3ba240e3ef2a2a6ee0e913ef280c";
|
|
5860
|
+
function validate$2(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
|
|
4970
5861
|
const v_error = (() => {
|
|
4971
5862
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4972
5863
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4973
5864
|
}
|
|
4974
|
-
const
|
|
4975
|
-
const
|
|
4976
|
-
if (
|
|
4977
|
-
return new TypeError('Expected "
|
|
5865
|
+
const obj_emojis = obj.emojis;
|
|
5866
|
+
const path_emojis = path + '.emojis';
|
|
5867
|
+
if (!ArrayIsArray(obj_emojis)) {
|
|
5868
|
+
return new TypeError('Expected "array" but received "' + typeof obj_emojis + '" (at "' + path_emojis + '")');
|
|
4978
5869
|
}
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
const
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
if (typeof obj_customEmojis_prop !== 'string') {
|
|
4985
|
-
return new TypeError('Expected "string" but received "' + typeof obj_customEmojis_prop + '" (at "' + path_customEmojis_prop + '")');
|
|
5870
|
+
for (let i = 0; i < obj_emojis.length; i++) {
|
|
5871
|
+
const obj_emojis_item = obj_emojis[i];
|
|
5872
|
+
const path_emojis_item = path_emojis + '[' + i + ']';
|
|
5873
|
+
if (typeof obj_emojis_item !== 'object') {
|
|
5874
|
+
return new TypeError('Expected "object" but received "' + typeof obj_emojis_item + '" (at "' + path_emojis_item + '")');
|
|
4986
5875
|
}
|
|
4987
5876
|
}
|
|
4988
|
-
const obj_teamId = obj.teamId;
|
|
4989
|
-
const path_teamId = path + '.teamId';
|
|
4990
|
-
if (typeof obj_teamId !== 'string') {
|
|
4991
|
-
return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
|
|
4992
|
-
}
|
|
4993
5877
|
})();
|
|
4994
5878
|
return v_error === undefined ? null : v_error;
|
|
4995
5879
|
}
|
|
4996
|
-
const RepresentationType$2 = '
|
|
5880
|
+
const RepresentationType$2 = 'SlackBridgeEmojisOutputRepresentation';
|
|
4997
5881
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
5882
|
+
const input_emojis = input.emojis;
|
|
5883
|
+
const input_emojis_id = path.fullPath + '__emojis';
|
|
5884
|
+
for (let i = 0; i < input_emojis.length; i++) {
|
|
5885
|
+
const input_emojis_item = input_emojis[i];
|
|
5886
|
+
let input_emojis_item_id = input_emojis_id + '__' + i;
|
|
5887
|
+
input_emojis[i] = ingest$g(input_emojis_item, {
|
|
5888
|
+
fullPath: input_emojis_item_id,
|
|
5889
|
+
propertyName: i,
|
|
5890
|
+
parent: {
|
|
5891
|
+
data: input,
|
|
5892
|
+
key: path.fullPath,
|
|
5893
|
+
existing: existing,
|
|
5894
|
+
},
|
|
5895
|
+
ttl: path.ttl
|
|
5896
|
+
}, luvio, store, timestamp);
|
|
5897
|
+
}
|
|
4998
5898
|
return input;
|
|
4999
5899
|
}
|
|
5000
|
-
const select$
|
|
5900
|
+
const select$8 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
5001
5901
|
return {
|
|
5002
5902
|
kind: 'Fragment',
|
|
5003
5903
|
version: VERSION$2,
|
|
5004
5904
|
private: [],
|
|
5005
5905
|
selections: [
|
|
5006
5906
|
{
|
|
5007
|
-
name: '
|
|
5008
|
-
kind: '
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
{
|
|
5012
|
-
name: 'teamId',
|
|
5013
|
-
kind: 'Scalar'
|
|
5907
|
+
name: 'emojis',
|
|
5908
|
+
kind: 'Link',
|
|
5909
|
+
plural: true,
|
|
5910
|
+
fragment: select$C()
|
|
5014
5911
|
}
|
|
5015
5912
|
]
|
|
5016
5913
|
};
|
|
5017
5914
|
};
|
|
5018
5915
|
function equals$2(existing, incoming) {
|
|
5019
|
-
const
|
|
5020
|
-
const
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
}
|
|
5024
|
-
const existing_customEmojis = existing.customEmojis;
|
|
5025
|
-
const incoming_customEmojis = incoming.customEmojis;
|
|
5026
|
-
const equals_customEmojis_props = equalsObject(existing_customEmojis, incoming_customEmojis, (existing_customEmojis_prop, incoming_customEmojis_prop) => {
|
|
5027
|
-
if (!(existing_customEmojis_prop === incoming_customEmojis_prop)) {
|
|
5916
|
+
const existing_emojis = existing.emojis;
|
|
5917
|
+
const incoming_emojis = incoming.emojis;
|
|
5918
|
+
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
5919
|
+
if (!(existing_emojis_item.__ref === incoming_emojis_item.__ref)) {
|
|
5028
5920
|
return false;
|
|
5029
5921
|
}
|
|
5030
5922
|
});
|
|
5031
|
-
if (
|
|
5923
|
+
if (equals_emojis_items === false) {
|
|
5032
5924
|
return false;
|
|
5033
5925
|
}
|
|
5034
5926
|
return true;
|
|
5035
5927
|
}
|
|
5036
|
-
const ingest$2 = function
|
|
5928
|
+
const ingest$2 = function SlackBridgeEmojisOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5037
5929
|
if (process.env.NODE_ENV !== 'production') {
|
|
5038
5930
|
const validateError = validate$2(input);
|
|
5039
5931
|
if (validateError !== null) {
|
|
@@ -5053,24 +5945,28 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5053
5945
|
representationName: RepresentationType$2,
|
|
5054
5946
|
mergeable: false
|
|
5055
5947
|
});
|
|
5948
|
+
const input_emojis_length = input.emojis.length;
|
|
5949
|
+
for (let i = 0; i < input_emojis_length; i++) {
|
|
5950
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.emojis[i]);
|
|
5951
|
+
}
|
|
5056
5952
|
}
|
|
5057
5953
|
|
|
5058
|
-
function select$
|
|
5059
|
-
return select$
|
|
5954
|
+
function select$7(luvio, params) {
|
|
5955
|
+
return select$8();
|
|
5060
5956
|
}
|
|
5061
|
-
function keyBuilder$
|
|
5062
|
-
return keyPrefix + '::
|
|
5957
|
+
function keyBuilder$b(luvio, params) {
|
|
5958
|
+
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'slackEmojiIds:' + params.queryParams.slackEmojiIds + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5063
5959
|
}
|
|
5064
|
-
function getResponseCacheKeys$
|
|
5065
|
-
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$
|
|
5960
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
5961
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
5066
5962
|
}
|
|
5067
|
-
function ingestSuccess$
|
|
5963
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
5068
5964
|
const { body } = response;
|
|
5069
|
-
const key = keyBuilder$
|
|
5965
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
5070
5966
|
luvio.storeIngest(key, ingest$2, body);
|
|
5071
5967
|
const snapshot = luvio.storeLookup({
|
|
5072
5968
|
recordId: key,
|
|
5073
|
-
node: select$
|
|
5969
|
+
node: select$7(),
|
|
5074
5970
|
variables: {},
|
|
5075
5971
|
}, snapshotRefresh);
|
|
5076
5972
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5081,13 +5977,13 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5081
5977
|
deepFreeze(snapshot.data);
|
|
5082
5978
|
return snapshot;
|
|
5083
5979
|
}
|
|
5084
|
-
function ingestError$
|
|
5085
|
-
const key = keyBuilder$
|
|
5980
|
+
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
5981
|
+
const key = keyBuilder$b(luvio, params);
|
|
5086
5982
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5087
5983
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5088
5984
|
return errorSnapshot;
|
|
5089
5985
|
}
|
|
5090
|
-
function createResourceRequest$
|
|
5986
|
+
function createResourceRequest$5(config) {
|
|
5091
5987
|
const headers = {};
|
|
5092
5988
|
return {
|
|
5093
5989
|
baseUri: '/services/data/v64.0',
|
|
@@ -5095,143 +5991,318 @@ function createResourceRequest$3(config) {
|
|
|
5095
5991
|
method: 'get',
|
|
5096
5992
|
body: null,
|
|
5097
5993
|
urlParams: config.urlParams,
|
|
5994
|
+
queryParams: config.queryParams,
|
|
5995
|
+
headers,
|
|
5996
|
+
priority: 'normal',
|
|
5997
|
+
};
|
|
5998
|
+
}
|
|
5999
|
+
|
|
6000
|
+
const adapterName$5 = 'getSlackEmojis';
|
|
6001
|
+
const getSlackEmojis_ConfigPropertyMetadata = [
|
|
6002
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6003
|
+
generateParamConfigMetadata('slackEmojiIds', true, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6004
|
+
];
|
|
6005
|
+
const getSlackEmojis_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSlackEmojis_ConfigPropertyMetadata);
|
|
6006
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$l(getSlackEmojis_ConfigPropertyMetadata);
|
|
6007
|
+
function keyBuilder$a(luvio, config) {
|
|
6008
|
+
const resourceParams = createResourceParams$5(config);
|
|
6009
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
6010
|
+
}
|
|
6011
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
6012
|
+
const config = {};
|
|
6013
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackEmojis_ConfigPropertyMetadata);
|
|
6014
|
+
return config;
|
|
6015
|
+
}
|
|
6016
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
6017
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6018
|
+
return null;
|
|
6019
|
+
}
|
|
6020
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6021
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6022
|
+
}
|
|
6023
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
6024
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6025
|
+
return null;
|
|
6026
|
+
}
|
|
6027
|
+
return config;
|
|
6028
|
+
}
|
|
6029
|
+
function adapterFragment$5(luvio, config) {
|
|
6030
|
+
createResourceParams$5(config);
|
|
6031
|
+
return select$7();
|
|
6032
|
+
}
|
|
6033
|
+
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
6034
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
6035
|
+
config,
|
|
6036
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
6037
|
+
});
|
|
6038
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6039
|
+
}
|
|
6040
|
+
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
6041
|
+
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
6042
|
+
config,
|
|
6043
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
6044
|
+
});
|
|
6045
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6046
|
+
}
|
|
6047
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
6048
|
+
const resourceParams = createResourceParams$5(config);
|
|
6049
|
+
const request = createResourceRequest$5(resourceParams);
|
|
6050
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6051
|
+
.then((response) => {
|
|
6052
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
6053
|
+
const cache = new StoreKeyMap();
|
|
6054
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
6055
|
+
return cache;
|
|
6056
|
+
});
|
|
6057
|
+
}, (response) => {
|
|
6058
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
6059
|
+
});
|
|
6060
|
+
}
|
|
6061
|
+
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
6062
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
6063
|
+
}
|
|
6064
|
+
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
6065
|
+
const { luvio, config } = context;
|
|
6066
|
+
const selector = {
|
|
6067
|
+
recordId: keyBuilder$a(luvio, config),
|
|
6068
|
+
node: adapterFragment$5(luvio, config),
|
|
6069
|
+
variables: {},
|
|
6070
|
+
};
|
|
6071
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
6072
|
+
config,
|
|
6073
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
6074
|
+
});
|
|
6075
|
+
return cacheSnapshot;
|
|
6076
|
+
}
|
|
6077
|
+
const getSlackEmojisAdapterFactory = (luvio) => function SlackBridge__getSlackEmojis(untrustedConfig, requestContext) {
|
|
6078
|
+
const config = validateAdapterConfig$5(untrustedConfig, getSlackEmojis_ConfigPropertyNames);
|
|
6079
|
+
// Invalid or incomplete config
|
|
6080
|
+
if (config === null) {
|
|
6081
|
+
return null;
|
|
6082
|
+
}
|
|
6083
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6084
|
+
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
6085
|
+
};
|
|
6086
|
+
|
|
6087
|
+
function select$6(luvio, params) {
|
|
6088
|
+
return select$C();
|
|
6089
|
+
}
|
|
6090
|
+
function keyBuilder$9(luvio, params) {
|
|
6091
|
+
return keyBuilder$z(luvio, {
|
|
6092
|
+
name: params.urlParams.slackEmojiId
|
|
6093
|
+
});
|
|
6094
|
+
}
|
|
6095
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
6096
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
6097
|
+
}
|
|
6098
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
6099
|
+
const { body } = response;
|
|
6100
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
6101
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
6102
|
+
const snapshot = luvio.storeLookup({
|
|
6103
|
+
recordId: key,
|
|
6104
|
+
node: select$6(),
|
|
6105
|
+
variables: {},
|
|
6106
|
+
}, snapshotRefresh);
|
|
6107
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6108
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6109
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6110
|
+
}
|
|
6111
|
+
}
|
|
6112
|
+
deepFreeze(snapshot.data);
|
|
6113
|
+
return snapshot;
|
|
6114
|
+
}
|
|
6115
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
6116
|
+
const key = keyBuilder$9(luvio, params);
|
|
6117
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6118
|
+
const storeMetadataParams = {
|
|
6119
|
+
ttl: TTL$1,
|
|
6120
|
+
namespace: keyPrefix,
|
|
6121
|
+
version: VERSION$k,
|
|
6122
|
+
representationName: RepresentationType$g
|
|
6123
|
+
};
|
|
6124
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6125
|
+
return errorSnapshot;
|
|
6126
|
+
}
|
|
6127
|
+
function createResourceRequest$4(config) {
|
|
6128
|
+
const headers = {};
|
|
6129
|
+
return {
|
|
6130
|
+
baseUri: '/services/data/v64.0',
|
|
6131
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/emojis/' + config.urlParams.slackEmojiId + '',
|
|
6132
|
+
method: 'get',
|
|
6133
|
+
body: null,
|
|
6134
|
+
urlParams: config.urlParams,
|
|
5098
6135
|
queryParams: {},
|
|
5099
6136
|
headers,
|
|
5100
6137
|
priority: 'normal',
|
|
5101
6138
|
};
|
|
5102
6139
|
}
|
|
5103
6140
|
|
|
5104
|
-
const adapterName$
|
|
5105
|
-
const
|
|
6141
|
+
const adapterName$4 = 'getSlackEmoji';
|
|
6142
|
+
const getSlackEmoji_ConfigPropertyMetadata = [
|
|
6143
|
+
generateParamConfigMetadata('slackEmojiId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5106
6144
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5107
6145
|
];
|
|
5108
|
-
const
|
|
5109
|
-
const createResourceParams$
|
|
5110
|
-
function keyBuilder$
|
|
5111
|
-
const resourceParams = createResourceParams$
|
|
5112
|
-
return keyBuilder$
|
|
6146
|
+
const getSlackEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSlackEmoji_ConfigPropertyMetadata);
|
|
6147
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$l(getSlackEmoji_ConfigPropertyMetadata);
|
|
6148
|
+
function keyBuilder$8(luvio, config) {
|
|
6149
|
+
const resourceParams = createResourceParams$4(config);
|
|
6150
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
5113
6151
|
}
|
|
5114
|
-
function typeCheckConfig$
|
|
6152
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
5115
6153
|
const config = {};
|
|
5116
|
-
typeCheckConfig$
|
|
6154
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackEmoji_ConfigPropertyMetadata);
|
|
5117
6155
|
return config;
|
|
5118
6156
|
}
|
|
5119
|
-
function validateAdapterConfig$
|
|
6157
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
5120
6158
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5121
6159
|
return null;
|
|
5122
6160
|
}
|
|
5123
6161
|
if (process.env.NODE_ENV !== 'production') {
|
|
5124
6162
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5125
6163
|
}
|
|
5126
|
-
const config = typeCheckConfig$
|
|
6164
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
5127
6165
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5128
6166
|
return null;
|
|
5129
6167
|
}
|
|
5130
6168
|
return config;
|
|
5131
6169
|
}
|
|
5132
|
-
function adapterFragment$
|
|
5133
|
-
createResourceParams$
|
|
5134
|
-
return select$
|
|
6170
|
+
function adapterFragment$4(luvio, config) {
|
|
6171
|
+
createResourceParams$4(config);
|
|
6172
|
+
return select$6();
|
|
5135
6173
|
}
|
|
5136
|
-
function onFetchResponseSuccess$
|
|
5137
|
-
const snapshot = ingestSuccess$
|
|
6174
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6175
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
5138
6176
|
config,
|
|
5139
|
-
resolve: () => buildNetworkSnapshot$
|
|
6177
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
5140
6178
|
});
|
|
5141
6179
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5142
6180
|
}
|
|
5143
|
-
function onFetchResponseError$
|
|
5144
|
-
const snapshot = ingestError$
|
|
6181
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
6182
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
5145
6183
|
config,
|
|
5146
|
-
resolve: () => buildNetworkSnapshot$
|
|
6184
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
5147
6185
|
});
|
|
5148
6186
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5149
6187
|
}
|
|
5150
|
-
function buildNetworkSnapshot$
|
|
5151
|
-
const resourceParams = createResourceParams$
|
|
5152
|
-
const request = createResourceRequest$
|
|
6188
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
6189
|
+
const resourceParams = createResourceParams$4(config);
|
|
6190
|
+
const request = createResourceRequest$4(resourceParams);
|
|
5153
6191
|
return luvio.dispatchResourceRequest(request, options)
|
|
5154
6192
|
.then((response) => {
|
|
5155
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
6193
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
5156
6194
|
const cache = new StoreKeyMap();
|
|
5157
|
-
getResponseCacheKeys$
|
|
6195
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
5158
6196
|
return cache;
|
|
5159
6197
|
});
|
|
5160
6198
|
}, (response) => {
|
|
5161
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
6199
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
5162
6200
|
});
|
|
5163
6201
|
}
|
|
5164
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5165
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6202
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6203
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
5166
6204
|
}
|
|
5167
|
-
function buildCachedSnapshotCachePolicy$
|
|
6205
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
5168
6206
|
const { luvio, config } = context;
|
|
5169
6207
|
const selector = {
|
|
5170
|
-
recordId: keyBuilder$
|
|
5171
|
-
node: adapterFragment$
|
|
6208
|
+
recordId: keyBuilder$8(luvio, config),
|
|
6209
|
+
node: adapterFragment$4(luvio, config),
|
|
5172
6210
|
variables: {},
|
|
5173
6211
|
};
|
|
5174
6212
|
const cacheSnapshot = storeLookup(selector, {
|
|
5175
6213
|
config,
|
|
5176
|
-
resolve: () => buildNetworkSnapshot$
|
|
6214
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
5177
6215
|
});
|
|
5178
6216
|
return cacheSnapshot;
|
|
5179
6217
|
}
|
|
5180
|
-
const
|
|
5181
|
-
const config = validateAdapterConfig$
|
|
6218
|
+
const getSlackEmojiAdapterFactory = (luvio) => function SlackBridge__getSlackEmoji(untrustedConfig, requestContext) {
|
|
6219
|
+
const config = validateAdapterConfig$4(untrustedConfig, getSlackEmoji_ConfigPropertyNames);
|
|
5182
6220
|
// Invalid or incomplete config
|
|
5183
6221
|
if (config === null) {
|
|
5184
6222
|
return null;
|
|
5185
6223
|
}
|
|
5186
6224
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5187
|
-
buildCachedSnapshotCachePolicy$
|
|
6225
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
5188
6226
|
};
|
|
5189
6227
|
|
|
5190
|
-
const VERSION$1 = "
|
|
5191
|
-
function validate$1(obj, path = '
|
|
6228
|
+
const VERSION$1 = "0de597a47ca8ecad2cfb7fd9c8f73920";
|
|
6229
|
+
function validate$1(obj, path = 'SlackBridgeConversationInfosOutputRepresentation') {
|
|
5192
6230
|
const v_error = (() => {
|
|
5193
6231
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5194
6232
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5195
6233
|
}
|
|
5196
|
-
const
|
|
5197
|
-
const
|
|
5198
|
-
if (!ArrayIsArray(
|
|
5199
|
-
return new TypeError('Expected "array" but received "' + typeof
|
|
6234
|
+
const obj_conversationInfos = obj.conversationInfos;
|
|
6235
|
+
const path_conversationInfos = path + '.conversationInfos';
|
|
6236
|
+
if (!ArrayIsArray(obj_conversationInfos)) {
|
|
6237
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationInfos + '" (at "' + path_conversationInfos + '")');
|
|
5200
6238
|
}
|
|
5201
|
-
for (let i = 0; i <
|
|
5202
|
-
const
|
|
5203
|
-
const
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_emojis_item + '")\n';
|
|
5207
|
-
message += referencepath_emojis_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5208
|
-
return new TypeError(message);
|
|
6239
|
+
for (let i = 0; i < obj_conversationInfos.length; i++) {
|
|
6240
|
+
const obj_conversationInfos_item = obj_conversationInfos[i];
|
|
6241
|
+
const path_conversationInfos_item = path_conversationInfos + '[' + i + ']';
|
|
6242
|
+
if (typeof obj_conversationInfos_item !== 'object') {
|
|
6243
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationInfos_item + '" (at "' + path_conversationInfos_item + '")');
|
|
5209
6244
|
}
|
|
5210
6245
|
}
|
|
5211
6246
|
const obj_searchString = obj.searchString;
|
|
5212
6247
|
const path_searchString = path + '.searchString';
|
|
5213
|
-
|
|
5214
|
-
|
|
6248
|
+
let obj_searchString_union0 = null;
|
|
6249
|
+
const obj_searchString_union0_error = (() => {
|
|
6250
|
+
if (typeof obj_searchString !== 'string') {
|
|
6251
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6252
|
+
}
|
|
6253
|
+
})();
|
|
6254
|
+
if (obj_searchString_union0_error != null) {
|
|
6255
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6256
|
+
}
|
|
6257
|
+
let obj_searchString_union1 = null;
|
|
6258
|
+
const obj_searchString_union1_error = (() => {
|
|
6259
|
+
if (obj_searchString !== null) {
|
|
6260
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6261
|
+
}
|
|
6262
|
+
})();
|
|
6263
|
+
if (obj_searchString_union1_error != null) {
|
|
6264
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6265
|
+
}
|
|
6266
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6267
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6268
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6269
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6270
|
+
return new TypeError(message);
|
|
5215
6271
|
}
|
|
5216
6272
|
})();
|
|
5217
6273
|
return v_error === undefined ? null : v_error;
|
|
5218
6274
|
}
|
|
5219
|
-
const RepresentationType$1 = '
|
|
6275
|
+
const RepresentationType$1 = 'SlackBridgeConversationInfosOutputRepresentation';
|
|
5220
6276
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6277
|
+
const input_conversationInfos = input.conversationInfos;
|
|
6278
|
+
const input_conversationInfos_id = path.fullPath + '__conversationInfos';
|
|
6279
|
+
for (let i = 0; i < input_conversationInfos.length; i++) {
|
|
6280
|
+
const input_conversationInfos_item = input_conversationInfos[i];
|
|
6281
|
+
let input_conversationInfos_item_id = input_conversationInfos_id + '__' + i;
|
|
6282
|
+
input_conversationInfos[i] = ingest$e(input_conversationInfos_item, {
|
|
6283
|
+
fullPath: input_conversationInfos_item_id,
|
|
6284
|
+
propertyName: i,
|
|
6285
|
+
parent: {
|
|
6286
|
+
data: input,
|
|
6287
|
+
key: path.fullPath,
|
|
6288
|
+
existing: existing,
|
|
6289
|
+
},
|
|
6290
|
+
ttl: path.ttl
|
|
6291
|
+
}, luvio, store, timestamp);
|
|
6292
|
+
}
|
|
5221
6293
|
return input;
|
|
5222
6294
|
}
|
|
5223
|
-
const select$
|
|
5224
|
-
const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$A();
|
|
6295
|
+
const select$5 = function SlackBridgeConversationInfosOutputRepresentationSelect() {
|
|
5225
6296
|
return {
|
|
5226
6297
|
kind: 'Fragment',
|
|
5227
6298
|
version: VERSION$1,
|
|
5228
6299
|
private: [],
|
|
5229
6300
|
selections: [
|
|
5230
6301
|
{
|
|
5231
|
-
name: '
|
|
5232
|
-
kind: '
|
|
6302
|
+
name: 'conversationInfos',
|
|
6303
|
+
kind: 'Link',
|
|
5233
6304
|
plural: true,
|
|
5234
|
-
|
|
6305
|
+
fragment: select$A()
|
|
5235
6306
|
},
|
|
5236
6307
|
{
|
|
5237
6308
|
name: 'searchString',
|
|
@@ -5241,24 +6312,24 @@ const select$4 = function SlackBridgeEmojisOutputRepresentationSelect() {
|
|
|
5241
6312
|
};
|
|
5242
6313
|
};
|
|
5243
6314
|
function equals$1(existing, incoming) {
|
|
5244
|
-
const
|
|
5245
|
-
const
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
}
|
|
5249
|
-
const existing_emojis = existing.emojis;
|
|
5250
|
-
const incoming_emojis = incoming.emojis;
|
|
5251
|
-
const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
|
|
5252
|
-
if (!(equals$k(existing_emojis_item, incoming_emojis_item))) {
|
|
6315
|
+
const existing_conversationInfos = existing.conversationInfos;
|
|
6316
|
+
const incoming_conversationInfos = incoming.conversationInfos;
|
|
6317
|
+
const equals_conversationInfos_items = equalsArray(existing_conversationInfos, incoming_conversationInfos, (existing_conversationInfos_item, incoming_conversationInfos_item) => {
|
|
6318
|
+
if (!(existing_conversationInfos_item.__ref === incoming_conversationInfos_item.__ref)) {
|
|
5253
6319
|
return false;
|
|
5254
6320
|
}
|
|
5255
6321
|
});
|
|
5256
|
-
if (
|
|
6322
|
+
if (equals_conversationInfos_items === false) {
|
|
6323
|
+
return false;
|
|
6324
|
+
}
|
|
6325
|
+
const existing_searchString = existing.searchString;
|
|
6326
|
+
const incoming_searchString = incoming.searchString;
|
|
6327
|
+
if (!(existing_searchString === incoming_searchString)) {
|
|
5257
6328
|
return false;
|
|
5258
6329
|
}
|
|
5259
6330
|
return true;
|
|
5260
6331
|
}
|
|
5261
|
-
const ingest$1 = function
|
|
6332
|
+
const ingest$1 = function SlackBridgeConversationInfosOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5262
6333
|
if (process.env.NODE_ENV !== 'production') {
|
|
5263
6334
|
const validateError = validate$1(input);
|
|
5264
6335
|
if (validateError !== null) {
|
|
@@ -5278,21 +6349,158 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5278
6349
|
representationName: RepresentationType$1,
|
|
5279
6350
|
mergeable: false
|
|
5280
6351
|
});
|
|
6352
|
+
const input_conversationInfos_length = input.conversationInfos.length;
|
|
6353
|
+
for (let i = 0; i < input_conversationInfos_length; i++) {
|
|
6354
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.conversationInfos[i]);
|
|
6355
|
+
}
|
|
5281
6356
|
}
|
|
5282
6357
|
|
|
5283
|
-
function select$
|
|
6358
|
+
function select$4(luvio, params) {
|
|
6359
|
+
return select$5();
|
|
6360
|
+
}
|
|
6361
|
+
function keyBuilder$7(luvio, params) {
|
|
6362
|
+
return keyPrefix + '::SlackBridgeConversationInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6363
|
+
}
|
|
6364
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
6365
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
6366
|
+
}
|
|
6367
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
6368
|
+
const { body } = response;
|
|
6369
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
6370
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
6371
|
+
const snapshot = luvio.storeLookup({
|
|
6372
|
+
recordId: key,
|
|
6373
|
+
node: select$4(),
|
|
6374
|
+
variables: {},
|
|
6375
|
+
}, snapshotRefresh);
|
|
6376
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6377
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6378
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6379
|
+
}
|
|
6380
|
+
}
|
|
6381
|
+
deepFreeze(snapshot.data);
|
|
6382
|
+
return snapshot;
|
|
6383
|
+
}
|
|
6384
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
6385
|
+
const key = keyBuilder$7(luvio, params);
|
|
6386
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6387
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
6388
|
+
return errorSnapshot;
|
|
6389
|
+
}
|
|
6390
|
+
function createResourceRequest$3(config) {
|
|
6391
|
+
const headers = {};
|
|
6392
|
+
return {
|
|
6393
|
+
baseUri: '/services/data/v64.0',
|
|
6394
|
+
basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/search/conversations',
|
|
6395
|
+
method: 'get',
|
|
6396
|
+
body: null,
|
|
6397
|
+
urlParams: config.urlParams,
|
|
6398
|
+
queryParams: config.queryParams,
|
|
6399
|
+
headers,
|
|
6400
|
+
priority: 'normal',
|
|
6401
|
+
};
|
|
6402
|
+
}
|
|
6403
|
+
|
|
6404
|
+
const adapterName$3 = 'getSlackSearchConversation';
|
|
6405
|
+
const getSlackSearchConversation_ConfigPropertyMetadata = [
|
|
6406
|
+
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6407
|
+
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6408
|
+
];
|
|
6409
|
+
const getSlackSearchConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6410
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$l(getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6411
|
+
function keyBuilder$6(luvio, config) {
|
|
6412
|
+
const resourceParams = createResourceParams$3(config);
|
|
6413
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
6414
|
+
}
|
|
6415
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
6416
|
+
const config = {};
|
|
6417
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackSearchConversation_ConfigPropertyMetadata);
|
|
6418
|
+
return config;
|
|
6419
|
+
}
|
|
6420
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
6421
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6422
|
+
return null;
|
|
6423
|
+
}
|
|
6424
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6425
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6426
|
+
}
|
|
6427
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
6428
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6429
|
+
return null;
|
|
6430
|
+
}
|
|
6431
|
+
return config;
|
|
6432
|
+
}
|
|
6433
|
+
function adapterFragment$3(luvio, config) {
|
|
6434
|
+
createResourceParams$3(config);
|
|
5284
6435
|
return select$4();
|
|
5285
6436
|
}
|
|
6437
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
6438
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
6439
|
+
config,
|
|
6440
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
6441
|
+
});
|
|
6442
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6443
|
+
}
|
|
6444
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
6445
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
6446
|
+
config,
|
|
6447
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
6448
|
+
});
|
|
6449
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6450
|
+
}
|
|
6451
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
6452
|
+
const resourceParams = createResourceParams$3(config);
|
|
6453
|
+
const request = createResourceRequest$3(resourceParams);
|
|
6454
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6455
|
+
.then((response) => {
|
|
6456
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
6457
|
+
const cache = new StoreKeyMap();
|
|
6458
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
6459
|
+
return cache;
|
|
6460
|
+
});
|
|
6461
|
+
}, (response) => {
|
|
6462
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
6463
|
+
});
|
|
6464
|
+
}
|
|
6465
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6466
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
6467
|
+
}
|
|
6468
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6469
|
+
const { luvio, config } = context;
|
|
6470
|
+
const selector = {
|
|
6471
|
+
recordId: keyBuilder$6(luvio, config),
|
|
6472
|
+
node: adapterFragment$3(luvio, config),
|
|
6473
|
+
variables: {},
|
|
6474
|
+
};
|
|
6475
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
6476
|
+
config,
|
|
6477
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
6478
|
+
});
|
|
6479
|
+
return cacheSnapshot;
|
|
6480
|
+
}
|
|
6481
|
+
const getSlackSearchConversationAdapterFactory = (luvio) => function SlackBridge__getSlackSearchConversation(untrustedConfig, requestContext) {
|
|
6482
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSlackSearchConversation_ConfigPropertyNames);
|
|
6483
|
+
// Invalid or incomplete config
|
|
6484
|
+
if (config === null) {
|
|
6485
|
+
return null;
|
|
6486
|
+
}
|
|
6487
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6488
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
6489
|
+
};
|
|
6490
|
+
|
|
6491
|
+
function select$3(luvio, params) {
|
|
6492
|
+
return select$8();
|
|
6493
|
+
}
|
|
5286
6494
|
function keyBuilder$5(luvio, params) {
|
|
5287
6495
|
return keyPrefix + '::SlackBridgeEmojisOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5288
6496
|
}
|
|
5289
6497
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
5290
|
-
getTypeCacheKeys$
|
|
6498
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
5291
6499
|
}
|
|
5292
6500
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
5293
6501
|
const { body } = response;
|
|
5294
6502
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
5295
|
-
luvio.storeIngest(key, ingest$
|
|
6503
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
5296
6504
|
const snapshot = luvio.storeLookup({
|
|
5297
6505
|
recordId: key,
|
|
5298
6506
|
node: select$3(),
|
|
@@ -5332,14 +6540,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
|
|
|
5332
6540
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5333
6541
|
];
|
|
5334
6542
|
const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
5335
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
6543
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$l(getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
5336
6544
|
function keyBuilder$4(luvio, config) {
|
|
5337
6545
|
const resourceParams = createResourceParams$2(config);
|
|
5338
6546
|
return keyBuilder$5(luvio, resourceParams);
|
|
5339
6547
|
}
|
|
5340
6548
|
function typeCheckConfig$2(untrustedConfig) {
|
|
5341
6549
|
const config = {};
|
|
5342
|
-
typeCheckConfig$
|
|
6550
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
|
|
5343
6551
|
return config;
|
|
5344
6552
|
}
|
|
5345
6553
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -5388,7 +6596,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
5388
6596
|
});
|
|
5389
6597
|
}
|
|
5390
6598
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
5391
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6599
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
5392
6600
|
}
|
|
5393
6601
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
5394
6602
|
const { luvio, config } = context;
|
|
@@ -5413,7 +6621,7 @@ const getSlackSearchEmojiAdapterFactory = (luvio) => function SlackBridge__getSl
|
|
|
5413
6621
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
5414
6622
|
};
|
|
5415
6623
|
|
|
5416
|
-
const VERSION = "
|
|
6624
|
+
const VERSION = "058d708f5533e6123e368a3722311412";
|
|
5417
6625
|
function validate(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
5418
6626
|
const v_error = (() => {
|
|
5419
6627
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5421,8 +6629,29 @@ function validate(obj, path = 'SlackBridgeUserInfosOutputRepresentation') {
|
|
|
5421
6629
|
}
|
|
5422
6630
|
const obj_searchString = obj.searchString;
|
|
5423
6631
|
const path_searchString = path + '.searchString';
|
|
5424
|
-
|
|
5425
|
-
|
|
6632
|
+
let obj_searchString_union0 = null;
|
|
6633
|
+
const obj_searchString_union0_error = (() => {
|
|
6634
|
+
if (typeof obj_searchString !== 'string') {
|
|
6635
|
+
return new TypeError('Expected "string" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6636
|
+
}
|
|
6637
|
+
})();
|
|
6638
|
+
if (obj_searchString_union0_error != null) {
|
|
6639
|
+
obj_searchString_union0 = obj_searchString_union0_error.message;
|
|
6640
|
+
}
|
|
6641
|
+
let obj_searchString_union1 = null;
|
|
6642
|
+
const obj_searchString_union1_error = (() => {
|
|
6643
|
+
if (obj_searchString !== null) {
|
|
6644
|
+
return new TypeError('Expected "null" but received "' + typeof obj_searchString + '" (at "' + path_searchString + '")');
|
|
6645
|
+
}
|
|
6646
|
+
})();
|
|
6647
|
+
if (obj_searchString_union1_error != null) {
|
|
6648
|
+
obj_searchString_union1 = obj_searchString_union1_error.message;
|
|
6649
|
+
}
|
|
6650
|
+
if (obj_searchString_union0 && obj_searchString_union1) {
|
|
6651
|
+
let message = 'Object doesn\'t match union (at "' + path_searchString + '")';
|
|
6652
|
+
message += '\n' + obj_searchString_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6653
|
+
message += '\n' + obj_searchString_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6654
|
+
return new TypeError(message);
|
|
5426
6655
|
}
|
|
5427
6656
|
const obj_userInfos = obj.userInfos;
|
|
5428
6657
|
const path_userInfos = path + '.userInfos';
|
|
@@ -5473,7 +6702,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
|
|
|
5473
6702
|
name: 'userInfos',
|
|
5474
6703
|
kind: 'Link',
|
|
5475
6704
|
plural: true,
|
|
5476
|
-
fragment: select$
|
|
6705
|
+
fragment: select$B()
|
|
5477
6706
|
}
|
|
5478
6707
|
]
|
|
5479
6708
|
};
|
|
@@ -5526,7 +6755,7 @@ function select$1(luvio, params) {
|
|
|
5526
6755
|
return select$2();
|
|
5527
6756
|
}
|
|
5528
6757
|
function keyBuilder$3(luvio, params) {
|
|
5529
|
-
return keyPrefix + '::SlackBridgeUserInfosOutputRepresentation:(' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
6758
|
+
return keyPrefix + '::SlackBridgeUserInfosOutputRepresentation:(' + 'channels:' + params.queryParams.channels + ',' + 'filter:' + params.queryParams.filter + ',' + 'not_in_channels:' + params.queryParams.not_in_channels + ',' + 'search:' + params.queryParams.search + ',' + 'teamId:' + params.urlParams.teamId + ')';
|
|
5530
6759
|
}
|
|
5531
6760
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
5532
6761
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
@@ -5571,17 +6800,20 @@ function createResourceRequest$1(config) {
|
|
|
5571
6800
|
const adapterName$1 = 'getSlackSearchUser';
|
|
5572
6801
|
const getSlackSearchUser_ConfigPropertyMetadata = [
|
|
5573
6802
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6803
|
+
generateParamConfigMetadata('channels', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
6804
|
+
generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6805
|
+
generateParamConfigMetadata('not_in_channels', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
5574
6806
|
generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
|
|
5575
6807
|
];
|
|
5576
6808
|
const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
|
|
5577
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
6809
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$l(getSlackSearchUser_ConfigPropertyMetadata);
|
|
5578
6810
|
function keyBuilder$2(luvio, config) {
|
|
5579
6811
|
const resourceParams = createResourceParams$1(config);
|
|
5580
6812
|
return keyBuilder$3(luvio, resourceParams);
|
|
5581
6813
|
}
|
|
5582
6814
|
function typeCheckConfig$1(untrustedConfig) {
|
|
5583
6815
|
const config = {};
|
|
5584
|
-
typeCheckConfig$
|
|
6816
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
|
|
5585
6817
|
return config;
|
|
5586
6818
|
}
|
|
5587
6819
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -5630,7 +6862,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
5630
6862
|
});
|
|
5631
6863
|
}
|
|
5632
6864
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
5633
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6865
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
5634
6866
|
}
|
|
5635
6867
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
5636
6868
|
const { luvio, config } = context;
|
|
@@ -5656,10 +6888,10 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
|
|
|
5656
6888
|
};
|
|
5657
6889
|
|
|
5658
6890
|
function select(luvio, params) {
|
|
5659
|
-
return select$
|
|
6891
|
+
return select$B();
|
|
5660
6892
|
}
|
|
5661
6893
|
function keyBuilder$1(luvio, params) {
|
|
5662
|
-
return keyBuilder$
|
|
6894
|
+
return keyBuilder$y(luvio, {
|
|
5663
6895
|
slackUserId: params.urlParams.slackUserId,
|
|
5664
6896
|
teamId: params.urlParams.teamId
|
|
5665
6897
|
});
|
|
@@ -5716,14 +6948,14 @@ const getSlackUser_ConfigPropertyMetadata = [
|
|
|
5716
6948
|
generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5717
6949
|
];
|
|
5718
6950
|
const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
|
|
5719
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
6951
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$l(getSlackUser_ConfigPropertyMetadata);
|
|
5720
6952
|
function keyBuilder(luvio, config) {
|
|
5721
6953
|
const resourceParams = createResourceParams(config);
|
|
5722
6954
|
return keyBuilder$1(luvio, resourceParams);
|
|
5723
6955
|
}
|
|
5724
6956
|
function typeCheckConfig(untrustedConfig) {
|
|
5725
6957
|
const config = {};
|
|
5726
|
-
typeCheckConfig$
|
|
6958
|
+
typeCheckConfig$l(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
|
|
5727
6959
|
return config;
|
|
5728
6960
|
}
|
|
5729
6961
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -5772,7 +7004,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
5772
7004
|
});
|
|
5773
7005
|
}
|
|
5774
7006
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
5775
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7007
|
+
return buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
5776
7008
|
}
|
|
5777
7009
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
5778
7010
|
const { luvio, config } = context;
|
|
@@ -5797,4 +7029,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
|
|
|
5797
7029
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
5798
7030
|
};
|
|
5799
7031
|
|
|
5800
|
-
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory,
|
|
7032
|
+
export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackEmojiAdapterFactory, getSlackEmojisAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchConversationAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMarkAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };
|