@salesforce/lds-adapters-sales-eci 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/dist/es/es2018/sales-eci.js +1744 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/generateConversationSummary.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getConversationGenerativeInsight.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getConversationSummaryRelatedList.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getTranscript.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/initiateMeeting.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/adapters/terminateMeeting.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getConversationGenerativeInsightById.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConversationSummaryRelatedById.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getConversationTranscriptBySfdcCallIdOrRecordingId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postConversationRealtimeInsightMeetingInitiate.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postConversationRealtimeInsightMeetingTerminate.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/postConversationSummaryAiGenerateByConversationId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/ConversationGenInsightListRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/ConversationGenerativeInsightRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeEndMeetingPayloadInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeEndMeetingResponseRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeMeetingInitiationResponseRepresentation.d.ts +51 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeMeetingParticipantRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ConversationRealtimeStartMeetingPayloadRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/ConversationSummaryListRepresentation.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/ConversationSummaryRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/ConversationTranscriptRepresentation.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/conversationRealtimeEndMeetingPayloadRepresentation.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +77 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1902 -0
- package/src/raml/api.raml +278 -0
- package/src/raml/luvio.raml +67 -0
package/sfdc/index.js
ADDED
|
@@ -0,0 +1,1902 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* ATTENTION!
|
|
9
|
+
* THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
|
|
10
|
+
* If you would like to contribute to LDS, please follow the steps outlined in the git repo.
|
|
11
|
+
* Any changes made to this file in p4 will be automatically overwritten.
|
|
12
|
+
* *******************************************************************************************
|
|
13
|
+
*/
|
|
14
|
+
/* proxy-compat-disable */
|
|
15
|
+
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
|
+
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$6, typeCheckConfig as typeCheckConfig$6, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3 } from 'force/luvioEngine';
|
|
18
|
+
|
|
19
|
+
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
21
|
+
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
|
+
/**
|
|
23
|
+
* Validates an adapter config is well-formed.
|
|
24
|
+
* @param config The config to validate.
|
|
25
|
+
* @param adapter The adapter validation configuration.
|
|
26
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
27
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
28
|
+
*/
|
|
29
|
+
function validateConfig(config, adapter, oneOf) {
|
|
30
|
+
const { displayName } = adapter;
|
|
31
|
+
const { required, optional, unsupported } = adapter.parameters;
|
|
32
|
+
if (config === undefined ||
|
|
33
|
+
required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
34
|
+
throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
|
|
35
|
+
}
|
|
36
|
+
if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
|
|
37
|
+
throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
|
|
38
|
+
}
|
|
39
|
+
if (unsupported !== undefined &&
|
|
40
|
+
unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
|
|
41
|
+
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
42
|
+
}
|
|
43
|
+
const supported = required.concat(optional);
|
|
44
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
45
|
+
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function untrustedIsObject(untrusted) {
|
|
49
|
+
return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
|
|
50
|
+
}
|
|
51
|
+
function areRequiredParametersPresent(config, configPropertyNames) {
|
|
52
|
+
return configPropertyNames.parameters.required.every(req => req in config);
|
|
53
|
+
}
|
|
54
|
+
const snapshotRefreshOptions = {
|
|
55
|
+
overrides: {
|
|
56
|
+
headers: {
|
|
57
|
+
'Cache-Control': 'no-cache',
|
|
58
|
+
},
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
62
|
+
return {
|
|
63
|
+
name,
|
|
64
|
+
required,
|
|
65
|
+
resourceType,
|
|
66
|
+
typeCheckShape,
|
|
67
|
+
isArrayShape,
|
|
68
|
+
coerceFn,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
72
|
+
const required = paramsMeta.filter(p => p.required).map(p => p.name);
|
|
73
|
+
const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
|
|
74
|
+
return {
|
|
75
|
+
displayName,
|
|
76
|
+
parameters: {
|
|
77
|
+
required,
|
|
78
|
+
optional,
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
const keyPrefix = 'eci';
|
|
83
|
+
|
|
84
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
85
|
+
const { isArray: ArrayIsArray } = Array;
|
|
86
|
+
function equalsArray(a, b, equalsItem) {
|
|
87
|
+
const aLength = a.length;
|
|
88
|
+
const bLength = b.length;
|
|
89
|
+
if (aLength !== bLength) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
for (let i = 0; i < aLength; i++) {
|
|
93
|
+
if (equalsItem(a[i], b[i]) === false) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
function equalsObject(a, b, equalsProp) {
|
|
100
|
+
const aKeys = ObjectKeys(a).sort();
|
|
101
|
+
const bKeys = ObjectKeys(b).sort();
|
|
102
|
+
const aKeysLength = aKeys.length;
|
|
103
|
+
const bKeysLength = bKeys.length;
|
|
104
|
+
if (aKeysLength !== bKeysLength) {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
for (let i = 0; i < aKeys.length; i++) {
|
|
108
|
+
const key = aKeys[i];
|
|
109
|
+
if (key !== bKeys[i]) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
if (equalsProp(a[key], b[key]) === false) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
function createLink(ref) {
|
|
119
|
+
return {
|
|
120
|
+
__ref: serializeStructuredKey(ref),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const TTL$5 = 60000;
|
|
125
|
+
const VERSION$6 = "10bf968dbd562928dfa701c7f6a854b2";
|
|
126
|
+
function validate$7(obj, path = 'ConversationSummaryRepresentation') {
|
|
127
|
+
const v_error = (() => {
|
|
128
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
130
|
+
}
|
|
131
|
+
const obj_conversationRecordId = obj.conversationRecordId;
|
|
132
|
+
const path_conversationRecordId = path + '.conversationRecordId';
|
|
133
|
+
if (typeof obj_conversationRecordId !== 'string') {
|
|
134
|
+
return new TypeError('Expected "string" but received "' + typeof obj_conversationRecordId + '" (at "' + path_conversationRecordId + '")');
|
|
135
|
+
}
|
|
136
|
+
const obj_errorMessage = obj.errorMessage;
|
|
137
|
+
const path_errorMessage = path + '.errorMessage';
|
|
138
|
+
let obj_errorMessage_union0 = null;
|
|
139
|
+
const obj_errorMessage_union0_error = (() => {
|
|
140
|
+
if (typeof obj_errorMessage !== 'string') {
|
|
141
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
142
|
+
}
|
|
143
|
+
})();
|
|
144
|
+
if (obj_errorMessage_union0_error != null) {
|
|
145
|
+
obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
|
|
146
|
+
}
|
|
147
|
+
let obj_errorMessage_union1 = null;
|
|
148
|
+
const obj_errorMessage_union1_error = (() => {
|
|
149
|
+
if (obj_errorMessage !== null) {
|
|
150
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
|
|
151
|
+
}
|
|
152
|
+
})();
|
|
153
|
+
if (obj_errorMessage_union1_error != null) {
|
|
154
|
+
obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
|
|
155
|
+
}
|
|
156
|
+
if (obj_errorMessage_union0 && obj_errorMessage_union1) {
|
|
157
|
+
let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
|
|
158
|
+
message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
159
|
+
message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
160
|
+
return new TypeError(message);
|
|
161
|
+
}
|
|
162
|
+
const obj_id = obj.id;
|
|
163
|
+
const path_id = path + '.id';
|
|
164
|
+
if (typeof obj_id !== 'string') {
|
|
165
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
166
|
+
}
|
|
167
|
+
const obj_source = obj.source;
|
|
168
|
+
const path_source = path + '.source';
|
|
169
|
+
let obj_source_union0 = null;
|
|
170
|
+
const obj_source_union0_error = (() => {
|
|
171
|
+
if (typeof obj_source !== 'string') {
|
|
172
|
+
return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
173
|
+
}
|
|
174
|
+
})();
|
|
175
|
+
if (obj_source_union0_error != null) {
|
|
176
|
+
obj_source_union0 = obj_source_union0_error.message;
|
|
177
|
+
}
|
|
178
|
+
let obj_source_union1 = null;
|
|
179
|
+
const obj_source_union1_error = (() => {
|
|
180
|
+
if (obj_source !== null) {
|
|
181
|
+
return new TypeError('Expected "null" but received "' + typeof obj_source + '" (at "' + path_source + '")');
|
|
182
|
+
}
|
|
183
|
+
})();
|
|
184
|
+
if (obj_source_union1_error != null) {
|
|
185
|
+
obj_source_union1 = obj_source_union1_error.message;
|
|
186
|
+
}
|
|
187
|
+
if (obj_source_union0 && obj_source_union1) {
|
|
188
|
+
let message = 'Object doesn\'t match union (at "' + path_source + '")';
|
|
189
|
+
message += '\n' + obj_source_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
190
|
+
message += '\n' + obj_source_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
191
|
+
return new TypeError(message);
|
|
192
|
+
}
|
|
193
|
+
const obj_status = obj.status;
|
|
194
|
+
const path_status = path + '.status';
|
|
195
|
+
if (typeof obj_status !== 'string') {
|
|
196
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
197
|
+
}
|
|
198
|
+
const obj_summary = obj.summary;
|
|
199
|
+
const path_summary = path + '.summary';
|
|
200
|
+
let obj_summary_union0 = null;
|
|
201
|
+
const obj_summary_union0_error = (() => {
|
|
202
|
+
if (typeof obj_summary !== 'string') {
|
|
203
|
+
return new TypeError('Expected "string" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
|
|
204
|
+
}
|
|
205
|
+
})();
|
|
206
|
+
if (obj_summary_union0_error != null) {
|
|
207
|
+
obj_summary_union0 = obj_summary_union0_error.message;
|
|
208
|
+
}
|
|
209
|
+
let obj_summary_union1 = null;
|
|
210
|
+
const obj_summary_union1_error = (() => {
|
|
211
|
+
if (obj_summary !== null) {
|
|
212
|
+
return new TypeError('Expected "null" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
|
|
213
|
+
}
|
|
214
|
+
})();
|
|
215
|
+
if (obj_summary_union1_error != null) {
|
|
216
|
+
obj_summary_union1 = obj_summary_union1_error.message;
|
|
217
|
+
}
|
|
218
|
+
if (obj_summary_union0 && obj_summary_union1) {
|
|
219
|
+
let message = 'Object doesn\'t match union (at "' + path_summary + '")';
|
|
220
|
+
message += '\n' + obj_summary_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
221
|
+
message += '\n' + obj_summary_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
222
|
+
return new TypeError(message);
|
|
223
|
+
}
|
|
224
|
+
})();
|
|
225
|
+
return v_error === undefined ? null : v_error;
|
|
226
|
+
}
|
|
227
|
+
const RepresentationType$5 = 'ConversationSummaryRepresentation';
|
|
228
|
+
function keyBuilder$a(luvio, config) {
|
|
229
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.conversation_sumamry_id;
|
|
230
|
+
}
|
|
231
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
232
|
+
const keyParams = {
|
|
233
|
+
conversation_sumamry_id: object.id
|
|
234
|
+
};
|
|
235
|
+
return keyBuilder$a(luvio, keyParams);
|
|
236
|
+
}
|
|
237
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
238
|
+
return input;
|
|
239
|
+
}
|
|
240
|
+
const select$c = function ConversationSummaryRepresentationSelect() {
|
|
241
|
+
return {
|
|
242
|
+
kind: 'Fragment',
|
|
243
|
+
version: VERSION$6,
|
|
244
|
+
private: [],
|
|
245
|
+
selections: [
|
|
246
|
+
{
|
|
247
|
+
name: 'conversationRecordId',
|
|
248
|
+
kind: 'Scalar'
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
name: 'errorMessage',
|
|
252
|
+
kind: 'Scalar'
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
name: 'id',
|
|
256
|
+
kind: 'Scalar'
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: 'source',
|
|
260
|
+
kind: 'Scalar'
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: 'status',
|
|
264
|
+
kind: 'Scalar'
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
name: 'summary',
|
|
268
|
+
kind: 'Scalar'
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
function equals$6(existing, incoming) {
|
|
274
|
+
const existing_conversationRecordId = existing.conversationRecordId;
|
|
275
|
+
const incoming_conversationRecordId = incoming.conversationRecordId;
|
|
276
|
+
if (!(existing_conversationRecordId === incoming_conversationRecordId)) {
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
const existing_id = existing.id;
|
|
280
|
+
const incoming_id = incoming.id;
|
|
281
|
+
if (!(existing_id === incoming_id)) {
|
|
282
|
+
return false;
|
|
283
|
+
}
|
|
284
|
+
const existing_status = existing.status;
|
|
285
|
+
const incoming_status = incoming.status;
|
|
286
|
+
if (!(existing_status === incoming_status)) {
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
const existing_errorMessage = existing.errorMessage;
|
|
290
|
+
const incoming_errorMessage = incoming.errorMessage;
|
|
291
|
+
if (!(existing_errorMessage === incoming_errorMessage)) {
|
|
292
|
+
return false;
|
|
293
|
+
}
|
|
294
|
+
const existing_source = existing.source;
|
|
295
|
+
const incoming_source = incoming.source;
|
|
296
|
+
if (!(existing_source === incoming_source)) {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
const existing_summary = existing.summary;
|
|
300
|
+
const incoming_summary = incoming.summary;
|
|
301
|
+
if (!(existing_summary === incoming_summary)) {
|
|
302
|
+
return false;
|
|
303
|
+
}
|
|
304
|
+
return true;
|
|
305
|
+
}
|
|
306
|
+
const ingest$5 = function ConversationSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
307
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
308
|
+
const validateError = validate$7(input);
|
|
309
|
+
if (validateError !== null) {
|
|
310
|
+
throw validateError;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
314
|
+
const ttlToUse = TTL$5;
|
|
315
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "eci", VERSION$6, RepresentationType$5, equals$6);
|
|
316
|
+
return createLink(key);
|
|
317
|
+
};
|
|
318
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
319
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
320
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
321
|
+
rootKeySet.set(rootKey, {
|
|
322
|
+
namespace: keyPrefix,
|
|
323
|
+
representationName: RepresentationType$5,
|
|
324
|
+
mergeable: false
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
function select$b(luvio, params) {
|
|
329
|
+
return select$c();
|
|
330
|
+
}
|
|
331
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
332
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
333
|
+
}
|
|
334
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
335
|
+
const { body } = response;
|
|
336
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
337
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
338
|
+
const snapshot = luvio.storeLookup({
|
|
339
|
+
recordId: key,
|
|
340
|
+
node: select$b(),
|
|
341
|
+
variables: {},
|
|
342
|
+
});
|
|
343
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
344
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
345
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
deepFreeze(snapshot.data);
|
|
349
|
+
return snapshot;
|
|
350
|
+
}
|
|
351
|
+
function createResourceRequest$5(config) {
|
|
352
|
+
const headers = {};
|
|
353
|
+
return {
|
|
354
|
+
baseUri: '/services/data/v66.0',
|
|
355
|
+
basePath: '/conversation/summary/ai/generate/' + config.urlParams.conversationId + '',
|
|
356
|
+
method: 'post',
|
|
357
|
+
body: null,
|
|
358
|
+
urlParams: config.urlParams,
|
|
359
|
+
queryParams: {},
|
|
360
|
+
headers,
|
|
361
|
+
priority: 'normal',
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const adapterName$5 = 'generateConversationSummary';
|
|
366
|
+
const generateConversationSummary_ConfigPropertyMetadata = [
|
|
367
|
+
generateParamConfigMetadata('conversationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
368
|
+
];
|
|
369
|
+
const generateConversationSummary_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, generateConversationSummary_ConfigPropertyMetadata);
|
|
370
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(generateConversationSummary_ConfigPropertyMetadata);
|
|
371
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
372
|
+
const config = {};
|
|
373
|
+
typeCheckConfig$6(untrustedConfig, config, generateConversationSummary_ConfigPropertyMetadata);
|
|
374
|
+
return config;
|
|
375
|
+
}
|
|
376
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
377
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
378
|
+
return null;
|
|
379
|
+
}
|
|
380
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
381
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
382
|
+
}
|
|
383
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
384
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
385
|
+
return null;
|
|
386
|
+
}
|
|
387
|
+
return config;
|
|
388
|
+
}
|
|
389
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
390
|
+
const resourceParams = createResourceParams$5(config);
|
|
391
|
+
const request = createResourceRequest$5(resourceParams);
|
|
392
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
393
|
+
.then((response) => {
|
|
394
|
+
return luvio.handleSuccessResponse(() => {
|
|
395
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
396
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
397
|
+
}, () => {
|
|
398
|
+
const cache = new StoreKeyMap();
|
|
399
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
400
|
+
return cache;
|
|
401
|
+
});
|
|
402
|
+
}, (response) => {
|
|
403
|
+
deepFreeze(response);
|
|
404
|
+
throw response;
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
const generateConversationSummaryAdapterFactory = (luvio) => {
|
|
408
|
+
return function generateConversationSummary(untrustedConfig) {
|
|
409
|
+
const config = validateAdapterConfig$5(untrustedConfig, generateConversationSummary_ConfigPropertyNames);
|
|
410
|
+
// Invalid or incomplete config
|
|
411
|
+
if (config === null) {
|
|
412
|
+
throw new Error('Invalid config for "generateConversationSummary"');
|
|
413
|
+
}
|
|
414
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
const VERSION$5 = "c614c7bd04cb26f6e931c85a63d52c55";
|
|
419
|
+
function validate$6(obj, path = 'ConversationGenerativeInsightRepresentation') {
|
|
420
|
+
const v_error = (() => {
|
|
421
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
422
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
423
|
+
}
|
|
424
|
+
const obj_generatedText = obj.generatedText;
|
|
425
|
+
const path_generatedText = path + '.generatedText';
|
|
426
|
+
if (typeof obj_generatedText !== 'string') {
|
|
427
|
+
return new TypeError('Expected "string" but received "' + typeof obj_generatedText + '" (at "' + path_generatedText + '")');
|
|
428
|
+
}
|
|
429
|
+
const obj_insightName = obj.insightName;
|
|
430
|
+
const path_insightName = path + '.insightName';
|
|
431
|
+
if (typeof obj_insightName !== 'string') {
|
|
432
|
+
return new TypeError('Expected "string" but received "' + typeof obj_insightName + '" (at "' + path_insightName + '")');
|
|
433
|
+
}
|
|
434
|
+
const obj_insightTypeId = obj.insightTypeId;
|
|
435
|
+
const path_insightTypeId = path + '.insightTypeId';
|
|
436
|
+
if (typeof obj_insightTypeId !== 'string') {
|
|
437
|
+
return new TypeError('Expected "string" but received "' + typeof obj_insightTypeId + '" (at "' + path_insightTypeId + '")');
|
|
438
|
+
}
|
|
439
|
+
const obj_modifiedBy = obj.modifiedBy;
|
|
440
|
+
const path_modifiedBy = path + '.modifiedBy';
|
|
441
|
+
if (typeof obj_modifiedBy !== 'string') {
|
|
442
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modifiedBy + '" (at "' + path_modifiedBy + '")');
|
|
443
|
+
}
|
|
444
|
+
})();
|
|
445
|
+
return v_error === undefined ? null : v_error;
|
|
446
|
+
}
|
|
447
|
+
const select$a = function ConversationGenerativeInsightRepresentationSelect() {
|
|
448
|
+
return {
|
|
449
|
+
kind: 'Fragment',
|
|
450
|
+
version: VERSION$5,
|
|
451
|
+
private: [],
|
|
452
|
+
selections: [
|
|
453
|
+
{
|
|
454
|
+
name: 'generatedText',
|
|
455
|
+
kind: 'Scalar'
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: 'insightName',
|
|
459
|
+
kind: 'Scalar'
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
name: 'insightTypeId',
|
|
463
|
+
kind: 'Scalar'
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
name: 'modifiedBy',
|
|
467
|
+
kind: 'Scalar'
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
function equals$5(existing, incoming) {
|
|
473
|
+
const existing_generatedText = existing.generatedText;
|
|
474
|
+
const incoming_generatedText = incoming.generatedText;
|
|
475
|
+
if (!(existing_generatedText === incoming_generatedText)) {
|
|
476
|
+
return false;
|
|
477
|
+
}
|
|
478
|
+
const existing_insightName = existing.insightName;
|
|
479
|
+
const incoming_insightName = incoming.insightName;
|
|
480
|
+
if (!(existing_insightName === incoming_insightName)) {
|
|
481
|
+
return false;
|
|
482
|
+
}
|
|
483
|
+
const existing_insightTypeId = existing.insightTypeId;
|
|
484
|
+
const incoming_insightTypeId = incoming.insightTypeId;
|
|
485
|
+
if (!(existing_insightTypeId === incoming_insightTypeId)) {
|
|
486
|
+
return false;
|
|
487
|
+
}
|
|
488
|
+
const existing_modifiedBy = existing.modifiedBy;
|
|
489
|
+
const incoming_modifiedBy = incoming.modifiedBy;
|
|
490
|
+
if (!(existing_modifiedBy === incoming_modifiedBy)) {
|
|
491
|
+
return false;
|
|
492
|
+
}
|
|
493
|
+
return true;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
const TTL$4 = 60000;
|
|
497
|
+
const VERSION$4 = "1ddcdcaada7f739acdff16f101b69288";
|
|
498
|
+
function validate$5(obj, path = 'ConversationGenInsightListRepresentation') {
|
|
499
|
+
const v_error = (() => {
|
|
500
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
501
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
502
|
+
}
|
|
503
|
+
const obj_error = obj.error;
|
|
504
|
+
const path_error = path + '.error';
|
|
505
|
+
if (typeof obj_error !== 'object' || ArrayIsArray(obj_error) || obj_error === null) {
|
|
506
|
+
return new TypeError('Expected "object" but received "' + typeof obj_error + '" (at "' + path_error + '")');
|
|
507
|
+
}
|
|
508
|
+
const obj_error_keys = ObjectKeys(obj_error);
|
|
509
|
+
for (let i = 0; i < obj_error_keys.length; i++) {
|
|
510
|
+
const key = obj_error_keys[i];
|
|
511
|
+
const obj_error_prop = obj_error[key];
|
|
512
|
+
const path_error_prop = path_error + '["' + key + '"]';
|
|
513
|
+
if (typeof obj_error_prop !== 'string') {
|
|
514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_error_prop + '" (at "' + path_error_prop + '")');
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
const obj_generativeInsights = obj.generativeInsights;
|
|
518
|
+
const path_generativeInsights = path + '.generativeInsights';
|
|
519
|
+
if (!ArrayIsArray(obj_generativeInsights)) {
|
|
520
|
+
return new TypeError('Expected "array" but received "' + typeof obj_generativeInsights + '" (at "' + path_generativeInsights + '")');
|
|
521
|
+
}
|
|
522
|
+
for (let i = 0; i < obj_generativeInsights.length; i++) {
|
|
523
|
+
const obj_generativeInsights_item = obj_generativeInsights[i];
|
|
524
|
+
const path_generativeInsights_item = path_generativeInsights + '[' + i + ']';
|
|
525
|
+
const referencepath_generativeInsights_itemValidationError = validate$6(obj_generativeInsights_item, path_generativeInsights_item);
|
|
526
|
+
if (referencepath_generativeInsights_itemValidationError !== null) {
|
|
527
|
+
let message = 'Object doesn\'t match ConversationGenerativeInsightRepresentation (at "' + path_generativeInsights_item + '")\n';
|
|
528
|
+
message += referencepath_generativeInsights_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
529
|
+
return new TypeError(message);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
const obj_recordId = obj.recordId;
|
|
533
|
+
const path_recordId = path + '.recordId';
|
|
534
|
+
if (typeof obj_recordId !== 'string') {
|
|
535
|
+
return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
|
|
536
|
+
}
|
|
537
|
+
})();
|
|
538
|
+
return v_error === undefined ? null : v_error;
|
|
539
|
+
}
|
|
540
|
+
const RepresentationType$4 = 'ConversationGenInsightListRepresentation';
|
|
541
|
+
function keyBuilder$9(luvio, config) {
|
|
542
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
543
|
+
}
|
|
544
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
545
|
+
const keyParams = {
|
|
546
|
+
id: object.recordId
|
|
547
|
+
};
|
|
548
|
+
return keyBuilder$9(luvio, keyParams);
|
|
549
|
+
}
|
|
550
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
551
|
+
return input;
|
|
552
|
+
}
|
|
553
|
+
const select$9 = function ConversationGenInsightListRepresentationSelect() {
|
|
554
|
+
const { selections: ConversationGenerativeInsightRepresentation__selections, opaque: ConversationGenerativeInsightRepresentation__opaque, } = select$a();
|
|
555
|
+
return {
|
|
556
|
+
kind: 'Fragment',
|
|
557
|
+
version: VERSION$4,
|
|
558
|
+
private: [],
|
|
559
|
+
selections: [
|
|
560
|
+
{
|
|
561
|
+
name: 'error',
|
|
562
|
+
kind: 'Scalar',
|
|
563
|
+
map: true
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
name: 'generativeInsights',
|
|
567
|
+
kind: 'Object',
|
|
568
|
+
plural: true,
|
|
569
|
+
selections: ConversationGenerativeInsightRepresentation__selections
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
name: 'recordId',
|
|
573
|
+
kind: 'Scalar'
|
|
574
|
+
}
|
|
575
|
+
]
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
function equals$4(existing, incoming) {
|
|
579
|
+
const existing_recordId = existing.recordId;
|
|
580
|
+
const incoming_recordId = incoming.recordId;
|
|
581
|
+
if (!(existing_recordId === incoming_recordId)) {
|
|
582
|
+
return false;
|
|
583
|
+
}
|
|
584
|
+
const existing_error = existing.error;
|
|
585
|
+
const incoming_error = incoming.error;
|
|
586
|
+
const equals_error_props = equalsObject(existing_error, incoming_error, (existing_error_prop, incoming_error_prop) => {
|
|
587
|
+
if (!(existing_error_prop === incoming_error_prop)) {
|
|
588
|
+
return false;
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
if (equals_error_props === false) {
|
|
592
|
+
return false;
|
|
593
|
+
}
|
|
594
|
+
const existing_generativeInsights = existing.generativeInsights;
|
|
595
|
+
const incoming_generativeInsights = incoming.generativeInsights;
|
|
596
|
+
const equals_generativeInsights_items = equalsArray(existing_generativeInsights, incoming_generativeInsights, (existing_generativeInsights_item, incoming_generativeInsights_item) => {
|
|
597
|
+
if (!(equals$5(existing_generativeInsights_item, incoming_generativeInsights_item))) {
|
|
598
|
+
return false;
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
if (equals_generativeInsights_items === false) {
|
|
602
|
+
return false;
|
|
603
|
+
}
|
|
604
|
+
return true;
|
|
605
|
+
}
|
|
606
|
+
const ingest$4 = function ConversationGenInsightListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
607
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
608
|
+
const validateError = validate$5(input);
|
|
609
|
+
if (validateError !== null) {
|
|
610
|
+
throw validateError;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
614
|
+
const ttlToUse = TTL$4;
|
|
615
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "eci", VERSION$4, RepresentationType$4, equals$4);
|
|
616
|
+
return createLink(key);
|
|
617
|
+
};
|
|
618
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
619
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
620
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
621
|
+
rootKeySet.set(rootKey, {
|
|
622
|
+
namespace: keyPrefix,
|
|
623
|
+
representationName: RepresentationType$4,
|
|
624
|
+
mergeable: false
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
function select$8(luvio, params) {
|
|
629
|
+
return select$9();
|
|
630
|
+
}
|
|
631
|
+
function keyBuilder$8(luvio, params) {
|
|
632
|
+
return keyBuilder$9(luvio, {
|
|
633
|
+
id: params.urlParams.id
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
637
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
638
|
+
}
|
|
639
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
640
|
+
const { body } = response;
|
|
641
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
642
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
643
|
+
const snapshot = luvio.storeLookup({
|
|
644
|
+
recordId: key,
|
|
645
|
+
node: select$8(),
|
|
646
|
+
variables: {},
|
|
647
|
+
}, snapshotRefresh);
|
|
648
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
649
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
650
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
deepFreeze(snapshot.data);
|
|
654
|
+
return snapshot;
|
|
655
|
+
}
|
|
656
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
657
|
+
const key = keyBuilder$8(luvio, params);
|
|
658
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
659
|
+
const storeMetadataParams = {
|
|
660
|
+
ttl: TTL$4,
|
|
661
|
+
namespace: keyPrefix,
|
|
662
|
+
version: VERSION$4,
|
|
663
|
+
representationName: RepresentationType$4
|
|
664
|
+
};
|
|
665
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
666
|
+
return errorSnapshot;
|
|
667
|
+
}
|
|
668
|
+
function createResourceRequest$4(config) {
|
|
669
|
+
const headers = {};
|
|
670
|
+
return {
|
|
671
|
+
baseUri: '/services/data/v66.0',
|
|
672
|
+
basePath: '/conversation/generative/insight/' + config.urlParams.id + '',
|
|
673
|
+
method: 'get',
|
|
674
|
+
body: null,
|
|
675
|
+
urlParams: config.urlParams,
|
|
676
|
+
queryParams: {},
|
|
677
|
+
headers,
|
|
678
|
+
priority: 'normal',
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
function createResourceRequestFromRepresentation$1(representation) {
|
|
682
|
+
const config = {
|
|
683
|
+
urlParams: {},
|
|
684
|
+
};
|
|
685
|
+
config.urlParams.id = representation.recordId;
|
|
686
|
+
return createResourceRequest$4(config);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
const adapterName$4 = 'getConversationGenerativeInsight';
|
|
690
|
+
const getConversationGenerativeInsight_ConfigPropertyMetadata = [
|
|
691
|
+
generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
692
|
+
];
|
|
693
|
+
const getConversationGenerativeInsight_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getConversationGenerativeInsight_ConfigPropertyMetadata);
|
|
694
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(getConversationGenerativeInsight_ConfigPropertyMetadata);
|
|
695
|
+
function keyBuilder$7(luvio, config) {
|
|
696
|
+
const resourceParams = createResourceParams$4(config);
|
|
697
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
698
|
+
}
|
|
699
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
700
|
+
const config = {};
|
|
701
|
+
typeCheckConfig$6(untrustedConfig, config, getConversationGenerativeInsight_ConfigPropertyMetadata);
|
|
702
|
+
return config;
|
|
703
|
+
}
|
|
704
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
705
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
706
|
+
return null;
|
|
707
|
+
}
|
|
708
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
709
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
710
|
+
}
|
|
711
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
712
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
713
|
+
return null;
|
|
714
|
+
}
|
|
715
|
+
return config;
|
|
716
|
+
}
|
|
717
|
+
function adapterFragment$2(luvio, config) {
|
|
718
|
+
createResourceParams$4(config);
|
|
719
|
+
return select$8();
|
|
720
|
+
}
|
|
721
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
722
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
723
|
+
config,
|
|
724
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
725
|
+
});
|
|
726
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
727
|
+
}
|
|
728
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
729
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
730
|
+
config,
|
|
731
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
732
|
+
});
|
|
733
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
734
|
+
}
|
|
735
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
736
|
+
const resourceParams = createResourceParams$4(config);
|
|
737
|
+
const request = createResourceRequest$4(resourceParams);
|
|
738
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
739
|
+
.then((response) => {
|
|
740
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
741
|
+
const cache = new StoreKeyMap();
|
|
742
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
743
|
+
return cache;
|
|
744
|
+
});
|
|
745
|
+
}, (response) => {
|
|
746
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
750
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
751
|
+
}
|
|
752
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
753
|
+
const { luvio, config } = context;
|
|
754
|
+
const selector = {
|
|
755
|
+
recordId: keyBuilder$7(luvio, config),
|
|
756
|
+
node: adapterFragment$2(luvio, config),
|
|
757
|
+
variables: {},
|
|
758
|
+
};
|
|
759
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
760
|
+
config,
|
|
761
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
762
|
+
});
|
|
763
|
+
return cacheSnapshot;
|
|
764
|
+
}
|
|
765
|
+
const getConversationGenerativeInsightAdapterFactory = (luvio) => function eci__getConversationGenerativeInsight(untrustedConfig, requestContext) {
|
|
766
|
+
const config = validateAdapterConfig$4(untrustedConfig, getConversationGenerativeInsight_ConfigPropertyNames);
|
|
767
|
+
// Invalid or incomplete config
|
|
768
|
+
if (config === null) {
|
|
769
|
+
return null;
|
|
770
|
+
}
|
|
771
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
772
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
773
|
+
};
|
|
774
|
+
const notifyChangeFactory$1 = (luvio, options) => {
|
|
775
|
+
return function getConversationGenerativeInsightByIdNotifyChange(configs) {
|
|
776
|
+
const keys = configs.map(c => keyBuilder$9(luvio, c));
|
|
777
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
778
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
779
|
+
const { key, record: val } = entries[i];
|
|
780
|
+
const refreshRequest = createResourceRequestFromRepresentation$1(val);
|
|
781
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
782
|
+
.then((response) => {
|
|
783
|
+
return luvio.handleSuccessResponse(() => {
|
|
784
|
+
const { body } = response;
|
|
785
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
786
|
+
return luvio.storeBroadcast();
|
|
787
|
+
}, () => {
|
|
788
|
+
const cache = new StoreKeyMap();
|
|
789
|
+
getTypeCacheKeys$4(cache, luvio, response.body);
|
|
790
|
+
return cache;
|
|
791
|
+
});
|
|
792
|
+
}, (error) => {
|
|
793
|
+
return luvio.handleErrorResponse(() => {
|
|
794
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
795
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
796
|
+
ttl: TTL$4,
|
|
797
|
+
namespace: keyPrefix,
|
|
798
|
+
version: VERSION$4,
|
|
799
|
+
representationName: RepresentationType$4
|
|
800
|
+
});
|
|
801
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
802
|
+
});
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
const TTL$3 = 60000;
|
|
810
|
+
const VERSION$3 = "233fbc0cf53c7a50800a3e8b63d661be";
|
|
811
|
+
function validate$4(obj, path = 'ConversationSummaryListRepresentation') {
|
|
812
|
+
const v_error = (() => {
|
|
813
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
814
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
815
|
+
}
|
|
816
|
+
const obj_conversationIds = obj.conversationIds;
|
|
817
|
+
const path_conversationIds = path + '.conversationIds';
|
|
818
|
+
if (!ArrayIsArray(obj_conversationIds)) {
|
|
819
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationIds + '" (at "' + path_conversationIds + '")');
|
|
820
|
+
}
|
|
821
|
+
for (let i = 0; i < obj_conversationIds.length; i++) {
|
|
822
|
+
const obj_conversationIds_item = obj_conversationIds[i];
|
|
823
|
+
const path_conversationIds_item = path_conversationIds + '[' + i + ']';
|
|
824
|
+
if (typeof obj_conversationIds_item !== 'string') {
|
|
825
|
+
return new TypeError('Expected "string" but received "' + typeof obj_conversationIds_item + '" (at "' + path_conversationIds_item + '")');
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
const obj_conversationSummaryList = obj.conversationSummaryList;
|
|
829
|
+
const path_conversationSummaryList = path + '.conversationSummaryList';
|
|
830
|
+
if (!ArrayIsArray(obj_conversationSummaryList)) {
|
|
831
|
+
return new TypeError('Expected "array" but received "' + typeof obj_conversationSummaryList + '" (at "' + path_conversationSummaryList + '")');
|
|
832
|
+
}
|
|
833
|
+
for (let i = 0; i < obj_conversationSummaryList.length; i++) {
|
|
834
|
+
const obj_conversationSummaryList_item = obj_conversationSummaryList[i];
|
|
835
|
+
const path_conversationSummaryList_item = path_conversationSummaryList + '[' + i + ']';
|
|
836
|
+
if (typeof obj_conversationSummaryList_item !== 'object' || Array.isArray(obj_conversationSummaryList_item)) {
|
|
837
|
+
return new TypeError('Expected "object" but received "' + typeof obj_conversationSummaryList_item + '" (at "' + path_conversationSummaryList_item + '")');
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
const obj_id = obj.id;
|
|
841
|
+
const path_id = path + '.id';
|
|
842
|
+
if (typeof obj_id !== 'string') {
|
|
843
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
844
|
+
}
|
|
845
|
+
})();
|
|
846
|
+
return v_error === undefined ? null : v_error;
|
|
847
|
+
}
|
|
848
|
+
const RepresentationType$3 = 'ConversationSummaryListRepresentation';
|
|
849
|
+
function keyBuilder$6(luvio, config) {
|
|
850
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
|
|
851
|
+
}
|
|
852
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
853
|
+
const keyParams = {
|
|
854
|
+
id: object.id
|
|
855
|
+
};
|
|
856
|
+
return keyBuilder$6(luvio, keyParams);
|
|
857
|
+
}
|
|
858
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
859
|
+
const input_conversationSummaryList = input.conversationSummaryList;
|
|
860
|
+
const input_conversationSummaryList_id = path.fullPath + '__conversationSummaryList';
|
|
861
|
+
for (let i = 0; i < input_conversationSummaryList.length; i++) {
|
|
862
|
+
const input_conversationSummaryList_item = input_conversationSummaryList[i];
|
|
863
|
+
let input_conversationSummaryList_item_id = input_conversationSummaryList_id + '__' + i;
|
|
864
|
+
input_conversationSummaryList[i] = ingest$5(input_conversationSummaryList_item, {
|
|
865
|
+
fullPath: input_conversationSummaryList_item_id,
|
|
866
|
+
propertyName: i,
|
|
867
|
+
parent: {
|
|
868
|
+
data: input,
|
|
869
|
+
key: path.fullPath,
|
|
870
|
+
existing: existing,
|
|
871
|
+
},
|
|
872
|
+
ttl: path.ttl
|
|
873
|
+
}, luvio, store, timestamp);
|
|
874
|
+
}
|
|
875
|
+
return input;
|
|
876
|
+
}
|
|
877
|
+
const select$7 = function ConversationSummaryListRepresentationSelect() {
|
|
878
|
+
return {
|
|
879
|
+
kind: 'Fragment',
|
|
880
|
+
version: VERSION$3,
|
|
881
|
+
private: [],
|
|
882
|
+
selections: [
|
|
883
|
+
{
|
|
884
|
+
name: 'conversationIds',
|
|
885
|
+
kind: 'Scalar',
|
|
886
|
+
plural: true
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
name: 'conversationSummaryList',
|
|
890
|
+
kind: 'Link',
|
|
891
|
+
plural: true,
|
|
892
|
+
fragment: select$c()
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
name: 'id',
|
|
896
|
+
kind: 'Scalar'
|
|
897
|
+
}
|
|
898
|
+
]
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
function equals$3(existing, incoming) {
|
|
902
|
+
const existing_id = existing.id;
|
|
903
|
+
const incoming_id = incoming.id;
|
|
904
|
+
if (!(existing_id === incoming_id)) {
|
|
905
|
+
return false;
|
|
906
|
+
}
|
|
907
|
+
const existing_conversationIds = existing.conversationIds;
|
|
908
|
+
const incoming_conversationIds = incoming.conversationIds;
|
|
909
|
+
const equals_conversationIds_items = equalsArray(existing_conversationIds, incoming_conversationIds, (existing_conversationIds_item, incoming_conversationIds_item) => {
|
|
910
|
+
if (!(existing_conversationIds_item === incoming_conversationIds_item)) {
|
|
911
|
+
return false;
|
|
912
|
+
}
|
|
913
|
+
});
|
|
914
|
+
if (equals_conversationIds_items === false) {
|
|
915
|
+
return false;
|
|
916
|
+
}
|
|
917
|
+
const existing_conversationSummaryList = existing.conversationSummaryList;
|
|
918
|
+
const incoming_conversationSummaryList = incoming.conversationSummaryList;
|
|
919
|
+
const equals_conversationSummaryList_items = equalsArray(existing_conversationSummaryList, incoming_conversationSummaryList, (existing_conversationSummaryList_item, incoming_conversationSummaryList_item) => {
|
|
920
|
+
if (!(existing_conversationSummaryList_item.__ref === incoming_conversationSummaryList_item.__ref)) {
|
|
921
|
+
return false;
|
|
922
|
+
}
|
|
923
|
+
});
|
|
924
|
+
if (equals_conversationSummaryList_items === false) {
|
|
925
|
+
return false;
|
|
926
|
+
}
|
|
927
|
+
return true;
|
|
928
|
+
}
|
|
929
|
+
const ingest$3 = function ConversationSummaryListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
930
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
931
|
+
const validateError = validate$4(input);
|
|
932
|
+
if (validateError !== null) {
|
|
933
|
+
throw validateError;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
937
|
+
const ttlToUse = TTL$3;
|
|
938
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "eci", VERSION$3, RepresentationType$3, equals$3);
|
|
939
|
+
return createLink(key);
|
|
940
|
+
};
|
|
941
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
942
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
943
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
944
|
+
rootKeySet.set(rootKey, {
|
|
945
|
+
namespace: keyPrefix,
|
|
946
|
+
representationName: RepresentationType$3,
|
|
947
|
+
mergeable: false
|
|
948
|
+
});
|
|
949
|
+
const input_conversationSummaryList_length = input.conversationSummaryList.length;
|
|
950
|
+
for (let i = 0; i < input_conversationSummaryList_length; i++) {
|
|
951
|
+
getTypeCacheKeys$5(rootKeySet, luvio, input.conversationSummaryList[i]);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
function select$6(luvio, params) {
|
|
956
|
+
return select$7();
|
|
957
|
+
}
|
|
958
|
+
function keyBuilder$5(luvio, params) {
|
|
959
|
+
return keyBuilder$6(luvio, {
|
|
960
|
+
id: params.urlParams.id
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
964
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
965
|
+
}
|
|
966
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
967
|
+
const { body } = response;
|
|
968
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
969
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
970
|
+
const snapshot = luvio.storeLookup({
|
|
971
|
+
recordId: key,
|
|
972
|
+
node: select$6(),
|
|
973
|
+
variables: {},
|
|
974
|
+
}, snapshotRefresh);
|
|
975
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
976
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
977
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
deepFreeze(snapshot.data);
|
|
981
|
+
return snapshot;
|
|
982
|
+
}
|
|
983
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
984
|
+
const key = keyBuilder$5(luvio, params);
|
|
985
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
986
|
+
const storeMetadataParams = {
|
|
987
|
+
ttl: TTL$3,
|
|
988
|
+
namespace: keyPrefix,
|
|
989
|
+
version: VERSION$3,
|
|
990
|
+
representationName: RepresentationType$3
|
|
991
|
+
};
|
|
992
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
993
|
+
return errorSnapshot;
|
|
994
|
+
}
|
|
995
|
+
function createResourceRequest$3(config) {
|
|
996
|
+
const headers = {};
|
|
997
|
+
return {
|
|
998
|
+
baseUri: '/services/data/v66.0',
|
|
999
|
+
basePath: '/conversation/summary/related/' + config.urlParams.id + '',
|
|
1000
|
+
method: 'get',
|
|
1001
|
+
body: null,
|
|
1002
|
+
urlParams: config.urlParams,
|
|
1003
|
+
queryParams: {},
|
|
1004
|
+
headers,
|
|
1005
|
+
priority: 'normal',
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
function createResourceRequestFromRepresentation(representation) {
|
|
1009
|
+
const config = {
|
|
1010
|
+
urlParams: {},
|
|
1011
|
+
};
|
|
1012
|
+
config.urlParams.id = representation.id;
|
|
1013
|
+
return createResourceRequest$3(config);
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
const adapterName$3 = 'getConversationSummaryRelatedList';
|
|
1017
|
+
const getConversationSummaryRelatedList_ConfigPropertyMetadata = [
|
|
1018
|
+
generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1019
|
+
];
|
|
1020
|
+
const getConversationSummaryRelatedList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getConversationSummaryRelatedList_ConfigPropertyMetadata);
|
|
1021
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(getConversationSummaryRelatedList_ConfigPropertyMetadata);
|
|
1022
|
+
function keyBuilder$4(luvio, config) {
|
|
1023
|
+
const resourceParams = createResourceParams$3(config);
|
|
1024
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
1025
|
+
}
|
|
1026
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1027
|
+
const config = {};
|
|
1028
|
+
typeCheckConfig$6(untrustedConfig, config, getConversationSummaryRelatedList_ConfigPropertyMetadata);
|
|
1029
|
+
return config;
|
|
1030
|
+
}
|
|
1031
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1032
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1033
|
+
return null;
|
|
1034
|
+
}
|
|
1035
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1036
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1037
|
+
}
|
|
1038
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
1039
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1040
|
+
return null;
|
|
1041
|
+
}
|
|
1042
|
+
return config;
|
|
1043
|
+
}
|
|
1044
|
+
function adapterFragment$1(luvio, config) {
|
|
1045
|
+
createResourceParams$3(config);
|
|
1046
|
+
return select$6();
|
|
1047
|
+
}
|
|
1048
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
1049
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
1050
|
+
config,
|
|
1051
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
1052
|
+
});
|
|
1053
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1054
|
+
}
|
|
1055
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
1056
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
1057
|
+
config,
|
|
1058
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
1059
|
+
});
|
|
1060
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1061
|
+
}
|
|
1062
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1063
|
+
const resourceParams = createResourceParams$3(config);
|
|
1064
|
+
const request = createResourceRequest$3(resourceParams);
|
|
1065
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1066
|
+
.then((response) => {
|
|
1067
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1068
|
+
const cache = new StoreKeyMap();
|
|
1069
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
1070
|
+
return cache;
|
|
1071
|
+
});
|
|
1072
|
+
}, (response) => {
|
|
1073
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
1077
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
1078
|
+
}
|
|
1079
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
1080
|
+
const { luvio, config } = context;
|
|
1081
|
+
const selector = {
|
|
1082
|
+
recordId: keyBuilder$4(luvio, config),
|
|
1083
|
+
node: adapterFragment$1(luvio, config),
|
|
1084
|
+
variables: {},
|
|
1085
|
+
};
|
|
1086
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1087
|
+
config,
|
|
1088
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
1089
|
+
});
|
|
1090
|
+
return cacheSnapshot;
|
|
1091
|
+
}
|
|
1092
|
+
const getConversationSummaryRelatedListAdapterFactory = (luvio) => function eci__getConversationSummaryRelatedList(untrustedConfig, requestContext) {
|
|
1093
|
+
const config = validateAdapterConfig$3(untrustedConfig, getConversationSummaryRelatedList_ConfigPropertyNames);
|
|
1094
|
+
// Invalid or incomplete config
|
|
1095
|
+
if (config === null) {
|
|
1096
|
+
return null;
|
|
1097
|
+
}
|
|
1098
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1099
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
1100
|
+
};
|
|
1101
|
+
const notifyChangeFactory = (luvio, options) => {
|
|
1102
|
+
return function getConversationSummaryRelatedByIdNotifyChange(configs) {
|
|
1103
|
+
const keys = configs.map(c => keyBuilder$6(luvio, c));
|
|
1104
|
+
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
1105
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
1106
|
+
const { key, record: val } = entries[i];
|
|
1107
|
+
const refreshRequest = createResourceRequestFromRepresentation(val);
|
|
1108
|
+
luvio.dispatchResourceRequest(refreshRequest, options)
|
|
1109
|
+
.then((response) => {
|
|
1110
|
+
return luvio.handleSuccessResponse(() => {
|
|
1111
|
+
const { body } = response;
|
|
1112
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
1113
|
+
return luvio.storeBroadcast();
|
|
1114
|
+
}, () => {
|
|
1115
|
+
const cache = new StoreKeyMap();
|
|
1116
|
+
getTypeCacheKeys$3(cache, luvio, response.body);
|
|
1117
|
+
return cache;
|
|
1118
|
+
});
|
|
1119
|
+
}, (error) => {
|
|
1120
|
+
return luvio.handleErrorResponse(() => {
|
|
1121
|
+
const errorSnapshot = luvio.errorSnapshot(error);
|
|
1122
|
+
luvio.storeIngestError(key, errorSnapshot, {
|
|
1123
|
+
ttl: TTL$3,
|
|
1124
|
+
namespace: keyPrefix,
|
|
1125
|
+
version: VERSION$3,
|
|
1126
|
+
representationName: RepresentationType$3
|
|
1127
|
+
});
|
|
1128
|
+
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
1129
|
+
});
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
const TTL$2 = 2592000000;
|
|
1137
|
+
const VERSION$2 = "b6caaeb6ce6369783e9b10315a598d75";
|
|
1138
|
+
function validate$3(obj, path = 'ConversationTranscriptRepresentation') {
|
|
1139
|
+
const v_error = (() => {
|
|
1140
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1141
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1142
|
+
}
|
|
1143
|
+
const obj_error = obj.error;
|
|
1144
|
+
const path_error = path + '.error';
|
|
1145
|
+
if (typeof obj_error !== 'object' || ArrayIsArray(obj_error) || obj_error === null) {
|
|
1146
|
+
return new TypeError('Expected "object" but received "' + typeof obj_error + '" (at "' + path_error + '")');
|
|
1147
|
+
}
|
|
1148
|
+
const obj_error_keys = ObjectKeys(obj_error);
|
|
1149
|
+
for (let i = 0; i < obj_error_keys.length; i++) {
|
|
1150
|
+
const key = obj_error_keys[i];
|
|
1151
|
+
const obj_error_prop = obj_error[key];
|
|
1152
|
+
const path_error_prop = path_error + '["' + key + '"]';
|
|
1153
|
+
if (typeof obj_error_prop !== 'string') {
|
|
1154
|
+
return new TypeError('Expected "string" but received "' + typeof obj_error_prop + '" (at "' + path_error_prop + '")');
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
const obj_transcriptData = obj.transcriptData;
|
|
1158
|
+
const path_transcriptData = path + '.transcriptData';
|
|
1159
|
+
let obj_transcriptData_union0 = null;
|
|
1160
|
+
const obj_transcriptData_union0_error = (() => {
|
|
1161
|
+
if (typeof obj_transcriptData !== 'string') {
|
|
1162
|
+
return new TypeError('Expected "string" but received "' + typeof obj_transcriptData + '" (at "' + path_transcriptData + '")');
|
|
1163
|
+
}
|
|
1164
|
+
})();
|
|
1165
|
+
if (obj_transcriptData_union0_error != null) {
|
|
1166
|
+
obj_transcriptData_union0 = obj_transcriptData_union0_error.message;
|
|
1167
|
+
}
|
|
1168
|
+
let obj_transcriptData_union1 = null;
|
|
1169
|
+
const obj_transcriptData_union1_error = (() => {
|
|
1170
|
+
if (obj_transcriptData !== null) {
|
|
1171
|
+
return new TypeError('Expected "null" but received "' + typeof obj_transcriptData + '" (at "' + path_transcriptData + '")');
|
|
1172
|
+
}
|
|
1173
|
+
})();
|
|
1174
|
+
if (obj_transcriptData_union1_error != null) {
|
|
1175
|
+
obj_transcriptData_union1 = obj_transcriptData_union1_error.message;
|
|
1176
|
+
}
|
|
1177
|
+
if (obj_transcriptData_union0 && obj_transcriptData_union1) {
|
|
1178
|
+
let message = 'Object doesn\'t match union (at "' + path_transcriptData + '")';
|
|
1179
|
+
message += '\n' + obj_transcriptData_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1180
|
+
message += '\n' + obj_transcriptData_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1181
|
+
return new TypeError(message);
|
|
1182
|
+
}
|
|
1183
|
+
})();
|
|
1184
|
+
return v_error === undefined ? null : v_error;
|
|
1185
|
+
}
|
|
1186
|
+
const RepresentationType$2 = 'ConversationTranscriptRepresentation';
|
|
1187
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
1188
|
+
return input;
|
|
1189
|
+
}
|
|
1190
|
+
const select$5 = function ConversationTranscriptRepresentationSelect() {
|
|
1191
|
+
return {
|
|
1192
|
+
kind: 'Fragment',
|
|
1193
|
+
version: VERSION$2,
|
|
1194
|
+
private: [],
|
|
1195
|
+
selections: [
|
|
1196
|
+
{
|
|
1197
|
+
name: 'error',
|
|
1198
|
+
kind: 'Scalar',
|
|
1199
|
+
map: true
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
name: 'transcriptData',
|
|
1203
|
+
kind: 'Scalar'
|
|
1204
|
+
}
|
|
1205
|
+
]
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
function equals$2(existing, incoming) {
|
|
1209
|
+
const existing_error = existing.error;
|
|
1210
|
+
const incoming_error = incoming.error;
|
|
1211
|
+
const equals_error_props = equalsObject(existing_error, incoming_error, (existing_error_prop, incoming_error_prop) => {
|
|
1212
|
+
if (!(existing_error_prop === incoming_error_prop)) {
|
|
1213
|
+
return false;
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
if (equals_error_props === false) {
|
|
1217
|
+
return false;
|
|
1218
|
+
}
|
|
1219
|
+
const existing_transcriptData = existing.transcriptData;
|
|
1220
|
+
const incoming_transcriptData = incoming.transcriptData;
|
|
1221
|
+
if (!(existing_transcriptData === incoming_transcriptData)) {
|
|
1222
|
+
return false;
|
|
1223
|
+
}
|
|
1224
|
+
return true;
|
|
1225
|
+
}
|
|
1226
|
+
const ingest$2 = function ConversationTranscriptRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1227
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1228
|
+
const validateError = validate$3(input);
|
|
1229
|
+
if (validateError !== null) {
|
|
1230
|
+
throw validateError;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
const key = path.fullPath;
|
|
1234
|
+
const ttlToUse = TTL$2;
|
|
1235
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "eci", VERSION$2, RepresentationType$2, equals$2);
|
|
1236
|
+
return createLink(key);
|
|
1237
|
+
};
|
|
1238
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
1239
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1240
|
+
const rootKey = fullPathFactory();
|
|
1241
|
+
rootKeySet.set(rootKey, {
|
|
1242
|
+
namespace: keyPrefix,
|
|
1243
|
+
representationName: RepresentationType$2,
|
|
1244
|
+
mergeable: false
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
function select$4(luvio, params) {
|
|
1249
|
+
return select$5();
|
|
1250
|
+
}
|
|
1251
|
+
function keyBuilder$3(luvio, params) {
|
|
1252
|
+
return keyPrefix + '::ConversationTranscriptRepresentation:(' + 'includeData:' + params.queryParams.includeData + ',' + 'sfdcCallIdOrRecordingId:' + params.urlParams.sfdcCallIdOrRecordingId + ')';
|
|
1253
|
+
}
|
|
1254
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1255
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1256
|
+
}
|
|
1257
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1258
|
+
const { body } = response;
|
|
1259
|
+
const key = keyBuilder$3(luvio, resourceParams);
|
|
1260
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1261
|
+
const snapshot = luvio.storeLookup({
|
|
1262
|
+
recordId: key,
|
|
1263
|
+
node: select$4(),
|
|
1264
|
+
variables: {},
|
|
1265
|
+
}, snapshotRefresh);
|
|
1266
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1267
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1268
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
deepFreeze(snapshot.data);
|
|
1272
|
+
return snapshot;
|
|
1273
|
+
}
|
|
1274
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
1275
|
+
const key = keyBuilder$3(luvio, params);
|
|
1276
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1277
|
+
const storeMetadataParams = {
|
|
1278
|
+
ttl: TTL$2,
|
|
1279
|
+
namespace: keyPrefix,
|
|
1280
|
+
version: VERSION$2,
|
|
1281
|
+
representationName: RepresentationType$2
|
|
1282
|
+
};
|
|
1283
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1284
|
+
return errorSnapshot;
|
|
1285
|
+
}
|
|
1286
|
+
function createResourceRequest$2(config) {
|
|
1287
|
+
const headers = {};
|
|
1288
|
+
return {
|
|
1289
|
+
baseUri: '/services/data/v66.0',
|
|
1290
|
+
basePath: '/conversation/transcript/' + config.urlParams.sfdcCallIdOrRecordingId + '',
|
|
1291
|
+
method: 'get',
|
|
1292
|
+
body: null,
|
|
1293
|
+
urlParams: config.urlParams,
|
|
1294
|
+
queryParams: config.queryParams,
|
|
1295
|
+
headers,
|
|
1296
|
+
priority: 'normal',
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
const adapterName$2 = 'getTranscript';
|
|
1301
|
+
const getTranscript_ConfigPropertyMetadata = [
|
|
1302
|
+
generateParamConfigMetadata('sfdcCallIdOrRecordingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1303
|
+
generateParamConfigMetadata('includeData', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1304
|
+
];
|
|
1305
|
+
const getTranscript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getTranscript_ConfigPropertyMetadata);
|
|
1306
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$6(getTranscript_ConfigPropertyMetadata);
|
|
1307
|
+
function keyBuilder$2(luvio, config) {
|
|
1308
|
+
const resourceParams = createResourceParams$2(config);
|
|
1309
|
+
return keyBuilder$3(luvio, resourceParams);
|
|
1310
|
+
}
|
|
1311
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1312
|
+
const config = {};
|
|
1313
|
+
typeCheckConfig$6(untrustedConfig, config, getTranscript_ConfigPropertyMetadata);
|
|
1314
|
+
return config;
|
|
1315
|
+
}
|
|
1316
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1317
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1318
|
+
return null;
|
|
1319
|
+
}
|
|
1320
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1321
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1322
|
+
}
|
|
1323
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
1324
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1325
|
+
return null;
|
|
1326
|
+
}
|
|
1327
|
+
return config;
|
|
1328
|
+
}
|
|
1329
|
+
function adapterFragment(luvio, config) {
|
|
1330
|
+
createResourceParams$2(config);
|
|
1331
|
+
return select$4();
|
|
1332
|
+
}
|
|
1333
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
1334
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1335
|
+
config,
|
|
1336
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1337
|
+
});
|
|
1338
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1339
|
+
}
|
|
1340
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
1341
|
+
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
1342
|
+
config,
|
|
1343
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1344
|
+
});
|
|
1345
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1346
|
+
}
|
|
1347
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1348
|
+
const resourceParams = createResourceParams$2(config);
|
|
1349
|
+
const request = createResourceRequest$2(resourceParams);
|
|
1350
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1351
|
+
.then((response) => {
|
|
1352
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
1353
|
+
const cache = new StoreKeyMap();
|
|
1354
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1355
|
+
return cache;
|
|
1356
|
+
});
|
|
1357
|
+
}, (response) => {
|
|
1358
|
+
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
1362
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
1363
|
+
}
|
|
1364
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
1365
|
+
const { luvio, config } = context;
|
|
1366
|
+
const selector = {
|
|
1367
|
+
recordId: keyBuilder$2(luvio, config),
|
|
1368
|
+
node: adapterFragment(luvio, config),
|
|
1369
|
+
variables: {},
|
|
1370
|
+
};
|
|
1371
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1372
|
+
config,
|
|
1373
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1374
|
+
});
|
|
1375
|
+
return cacheSnapshot;
|
|
1376
|
+
}
|
|
1377
|
+
const getTranscriptAdapterFactory = (luvio) => function eci__getTranscript(untrustedConfig, requestContext) {
|
|
1378
|
+
const config = validateAdapterConfig$2(untrustedConfig, getTranscript_ConfigPropertyNames);
|
|
1379
|
+
// Invalid or incomplete config
|
|
1380
|
+
if (config === null) {
|
|
1381
|
+
return null;
|
|
1382
|
+
}
|
|
1383
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1384
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
function validate$2(obj, path = 'ConversationRealtimeMeetingParticipantRepresentation') {
|
|
1388
|
+
const v_error = (() => {
|
|
1389
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1390
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1391
|
+
}
|
|
1392
|
+
const obj_participantUUID = obj.participantUUID;
|
|
1393
|
+
const path_participantUUID = path + '.participantUUID';
|
|
1394
|
+
let obj_participantUUID_union0 = null;
|
|
1395
|
+
const obj_participantUUID_union0_error = (() => {
|
|
1396
|
+
if (typeof obj_participantUUID !== 'string') {
|
|
1397
|
+
return new TypeError('Expected "string" but received "' + typeof obj_participantUUID + '" (at "' + path_participantUUID + '")');
|
|
1398
|
+
}
|
|
1399
|
+
})();
|
|
1400
|
+
if (obj_participantUUID_union0_error != null) {
|
|
1401
|
+
obj_participantUUID_union0 = obj_participantUUID_union0_error.message;
|
|
1402
|
+
}
|
|
1403
|
+
let obj_participantUUID_union1 = null;
|
|
1404
|
+
const obj_participantUUID_union1_error = (() => {
|
|
1405
|
+
if (obj_participantUUID !== null) {
|
|
1406
|
+
return new TypeError('Expected "null" but received "' + typeof obj_participantUUID + '" (at "' + path_participantUUID + '")');
|
|
1407
|
+
}
|
|
1408
|
+
})();
|
|
1409
|
+
if (obj_participantUUID_union1_error != null) {
|
|
1410
|
+
obj_participantUUID_union1 = obj_participantUUID_union1_error.message;
|
|
1411
|
+
}
|
|
1412
|
+
if (obj_participantUUID_union0 && obj_participantUUID_union1) {
|
|
1413
|
+
let message = 'Object doesn\'t match union (at "' + path_participantUUID + '")';
|
|
1414
|
+
message += '\n' + obj_participantUUID_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1415
|
+
message += '\n' + obj_participantUUID_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1416
|
+
return new TypeError(message);
|
|
1417
|
+
}
|
|
1418
|
+
const obj_screenName = obj.screenName;
|
|
1419
|
+
const path_screenName = path + '.screenName';
|
|
1420
|
+
if (typeof obj_screenName !== 'string') {
|
|
1421
|
+
return new TypeError('Expected "string" but received "' + typeof obj_screenName + '" (at "' + path_screenName + '")');
|
|
1422
|
+
}
|
|
1423
|
+
})();
|
|
1424
|
+
return v_error === undefined ? null : v_error;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
const TTL$1 = 60000;
|
|
1428
|
+
const VERSION$1 = "92b95a3b99090d0e464e4259ecac6bb4";
|
|
1429
|
+
function validate$1(obj, path = 'ConversationRealtimeMeetingInitiationResponseRepresentation') {
|
|
1430
|
+
const v_error = (() => {
|
|
1431
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1432
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1433
|
+
}
|
|
1434
|
+
const obj_botId = obj.botId;
|
|
1435
|
+
const path_botId = path + '.botId';
|
|
1436
|
+
if (typeof obj_botId !== 'string') {
|
|
1437
|
+
return new TypeError('Expected "string" but received "' + typeof obj_botId + '" (at "' + path_botId + '")');
|
|
1438
|
+
}
|
|
1439
|
+
const obj_error = obj.error;
|
|
1440
|
+
const path_error = path + '.error';
|
|
1441
|
+
if (typeof obj_error !== 'object' || ArrayIsArray(obj_error) || obj_error === null) {
|
|
1442
|
+
return new TypeError('Expected "object" but received "' + typeof obj_error + '" (at "' + path_error + '")');
|
|
1443
|
+
}
|
|
1444
|
+
const obj_error_keys = ObjectKeys(obj_error);
|
|
1445
|
+
for (let i = 0; i < obj_error_keys.length; i++) {
|
|
1446
|
+
const key = obj_error_keys[i];
|
|
1447
|
+
const obj_error_prop = obj_error[key];
|
|
1448
|
+
const path_error_prop = path_error + '["' + key + '"]';
|
|
1449
|
+
if (typeof obj_error_prop !== 'string') {
|
|
1450
|
+
return new TypeError('Expected "string" but received "' + typeof obj_error_prop + '" (at "' + path_error_prop + '")');
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
const obj_jwtToken = obj.jwtToken;
|
|
1454
|
+
const path_jwtToken = path + '.jwtToken';
|
|
1455
|
+
if (typeof obj_jwtToken !== 'string') {
|
|
1456
|
+
return new TypeError('Expected "string" but received "' + typeof obj_jwtToken + '" (at "' + path_jwtToken + '")');
|
|
1457
|
+
}
|
|
1458
|
+
const obj_webSocketUrl = obj.webSocketUrl;
|
|
1459
|
+
const path_webSocketUrl = path + '.webSocketUrl';
|
|
1460
|
+
if (typeof obj_webSocketUrl !== 'string') {
|
|
1461
|
+
return new TypeError('Expected "string" but received "' + typeof obj_webSocketUrl + '" (at "' + path_webSocketUrl + '")');
|
|
1462
|
+
}
|
|
1463
|
+
})();
|
|
1464
|
+
return v_error === undefined ? null : v_error;
|
|
1465
|
+
}
|
|
1466
|
+
const RepresentationType$1 = 'ConversationRealtimeMeetingInitiationResponseRepresentation';
|
|
1467
|
+
function keyBuilder$1(luvio, config) {
|
|
1468
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
|
|
1469
|
+
}
|
|
1470
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
1471
|
+
const keyParams = {
|
|
1472
|
+
id: object.botId
|
|
1473
|
+
};
|
|
1474
|
+
return keyBuilder$1(luvio, keyParams);
|
|
1475
|
+
}
|
|
1476
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1477
|
+
return input;
|
|
1478
|
+
}
|
|
1479
|
+
const select$3 = function ConversationRealtimeMeetingInitiationResponseRepresentationSelect() {
|
|
1480
|
+
return {
|
|
1481
|
+
kind: 'Fragment',
|
|
1482
|
+
version: VERSION$1,
|
|
1483
|
+
private: [],
|
|
1484
|
+
selections: [
|
|
1485
|
+
{
|
|
1486
|
+
name: 'botId',
|
|
1487
|
+
kind: 'Scalar'
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
name: 'error',
|
|
1491
|
+
kind: 'Scalar',
|
|
1492
|
+
map: true
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
name: 'jwtToken',
|
|
1496
|
+
kind: 'Scalar'
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
name: 'webSocketUrl',
|
|
1500
|
+
kind: 'Scalar'
|
|
1501
|
+
}
|
|
1502
|
+
]
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
function equals$1(existing, incoming) {
|
|
1506
|
+
const existing_botId = existing.botId;
|
|
1507
|
+
const incoming_botId = incoming.botId;
|
|
1508
|
+
if (!(existing_botId === incoming_botId)) {
|
|
1509
|
+
return false;
|
|
1510
|
+
}
|
|
1511
|
+
const existing_jwtToken = existing.jwtToken;
|
|
1512
|
+
const incoming_jwtToken = incoming.jwtToken;
|
|
1513
|
+
if (!(existing_jwtToken === incoming_jwtToken)) {
|
|
1514
|
+
return false;
|
|
1515
|
+
}
|
|
1516
|
+
const existing_webSocketUrl = existing.webSocketUrl;
|
|
1517
|
+
const incoming_webSocketUrl = incoming.webSocketUrl;
|
|
1518
|
+
if (!(existing_webSocketUrl === incoming_webSocketUrl)) {
|
|
1519
|
+
return false;
|
|
1520
|
+
}
|
|
1521
|
+
const existing_error = existing.error;
|
|
1522
|
+
const incoming_error = incoming.error;
|
|
1523
|
+
const equals_error_props = equalsObject(existing_error, incoming_error, (existing_error_prop, incoming_error_prop) => {
|
|
1524
|
+
if (!(existing_error_prop === incoming_error_prop)) {
|
|
1525
|
+
return false;
|
|
1526
|
+
}
|
|
1527
|
+
});
|
|
1528
|
+
if (equals_error_props === false) {
|
|
1529
|
+
return false;
|
|
1530
|
+
}
|
|
1531
|
+
return true;
|
|
1532
|
+
}
|
|
1533
|
+
const ingest$1 = function ConversationRealtimeMeetingInitiationResponseRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1534
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1535
|
+
const validateError = validate$1(input);
|
|
1536
|
+
if (validateError !== null) {
|
|
1537
|
+
throw validateError;
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
1541
|
+
const ttlToUse = TTL$1;
|
|
1542
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "eci", VERSION$1, RepresentationType$1, equals$1);
|
|
1543
|
+
return createLink(key);
|
|
1544
|
+
};
|
|
1545
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1546
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1547
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
1548
|
+
rootKeySet.set(rootKey, {
|
|
1549
|
+
namespace: keyPrefix,
|
|
1550
|
+
representationName: RepresentationType$1,
|
|
1551
|
+
mergeable: false
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
function select$2(luvio, params) {
|
|
1556
|
+
return select$3();
|
|
1557
|
+
}
|
|
1558
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1559
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
1560
|
+
}
|
|
1561
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
1562
|
+
const { body } = response;
|
|
1563
|
+
const key = keyBuilderFromType$1(luvio, body);
|
|
1564
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1565
|
+
const snapshot = luvio.storeLookup({
|
|
1566
|
+
recordId: key,
|
|
1567
|
+
node: select$2(),
|
|
1568
|
+
variables: {},
|
|
1569
|
+
});
|
|
1570
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1571
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1572
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
deepFreeze(snapshot.data);
|
|
1576
|
+
return snapshot;
|
|
1577
|
+
}
|
|
1578
|
+
function createResourceRequest$1(config) {
|
|
1579
|
+
const headers = {};
|
|
1580
|
+
return {
|
|
1581
|
+
baseUri: '/services/data/v66.0',
|
|
1582
|
+
basePath: '/conversation/realtime/insight/meeting/initiate',
|
|
1583
|
+
method: 'post',
|
|
1584
|
+
body: config.body,
|
|
1585
|
+
urlParams: {},
|
|
1586
|
+
queryParams: {},
|
|
1587
|
+
headers,
|
|
1588
|
+
priority: 'normal',
|
|
1589
|
+
};
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
const adapterName$1 = 'initiateMeeting';
|
|
1593
|
+
const initiateMeeting_ConfigPropertyMetadata = [
|
|
1594
|
+
generateParamConfigMetadata('meetingUrl', true, 2 /* Body */, 0 /* String */),
|
|
1595
|
+
generateParamConfigMetadata('vendorName', true, 2 /* Body */, 0 /* String */),
|
|
1596
|
+
generateParamConfigMetadata('meetingSubject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1597
|
+
generateParamConfigMetadata('meetingId', true, 2 /* Body */, 4 /* Unsupported */),
|
|
1598
|
+
generateParamConfigMetadata('participants', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1599
|
+
];
|
|
1600
|
+
const initiateMeeting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, initiateMeeting_ConfigPropertyMetadata);
|
|
1601
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(initiateMeeting_ConfigPropertyMetadata);
|
|
1602
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
1603
|
+
const config = {};
|
|
1604
|
+
typeCheckConfig$6(untrustedConfig, config, initiateMeeting_ConfigPropertyMetadata);
|
|
1605
|
+
const untrustedConfig_meetingSubject = untrustedConfig.meetingSubject;
|
|
1606
|
+
if (typeof untrustedConfig_meetingSubject === 'string') {
|
|
1607
|
+
config.meetingSubject = untrustedConfig_meetingSubject;
|
|
1608
|
+
}
|
|
1609
|
+
if (untrustedConfig_meetingSubject === null) {
|
|
1610
|
+
config.meetingSubject = untrustedConfig_meetingSubject;
|
|
1611
|
+
}
|
|
1612
|
+
const untrustedConfig_meetingId = untrustedConfig.meetingId;
|
|
1613
|
+
if (typeof untrustedConfig_meetingId === 'string') {
|
|
1614
|
+
config.meetingId = untrustedConfig_meetingId;
|
|
1615
|
+
}
|
|
1616
|
+
if (untrustedConfig_meetingId === null) {
|
|
1617
|
+
config.meetingId = untrustedConfig_meetingId;
|
|
1618
|
+
}
|
|
1619
|
+
const untrustedConfig_participants = untrustedConfig.participants;
|
|
1620
|
+
if (ArrayIsArray$1(untrustedConfig_participants)) {
|
|
1621
|
+
const untrustedConfig_participants_array = [];
|
|
1622
|
+
for (let i = 0, arrayLength = untrustedConfig_participants.length; i < arrayLength; i++) {
|
|
1623
|
+
const untrustedConfig_participants_item = untrustedConfig_participants[i];
|
|
1624
|
+
const referenceConversationRealtimeMeetingParticipantRepresentationValidationError = validate$2(untrustedConfig_participants_item);
|
|
1625
|
+
if (referenceConversationRealtimeMeetingParticipantRepresentationValidationError === null) {
|
|
1626
|
+
untrustedConfig_participants_array.push(untrustedConfig_participants_item);
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
config.participants = untrustedConfig_participants_array;
|
|
1630
|
+
}
|
|
1631
|
+
return config;
|
|
1632
|
+
}
|
|
1633
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
1634
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1635
|
+
return null;
|
|
1636
|
+
}
|
|
1637
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1638
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1639
|
+
}
|
|
1640
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
1641
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1642
|
+
return null;
|
|
1643
|
+
}
|
|
1644
|
+
return config;
|
|
1645
|
+
}
|
|
1646
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
1647
|
+
const resourceParams = createResourceParams$1(config);
|
|
1648
|
+
const request = createResourceRequest$1(resourceParams);
|
|
1649
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1650
|
+
.then((response) => {
|
|
1651
|
+
return luvio.handleSuccessResponse(() => {
|
|
1652
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
1653
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1654
|
+
}, () => {
|
|
1655
|
+
const cache = new StoreKeyMap();
|
|
1656
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1657
|
+
return cache;
|
|
1658
|
+
});
|
|
1659
|
+
}, (response) => {
|
|
1660
|
+
deepFreeze(response);
|
|
1661
|
+
throw response;
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
const initiateMeetingAdapterFactory = (luvio) => {
|
|
1665
|
+
return function initiateMeeting(untrustedConfig) {
|
|
1666
|
+
const config = validateAdapterConfig$1(untrustedConfig, initiateMeeting_ConfigPropertyNames);
|
|
1667
|
+
// Invalid or incomplete config
|
|
1668
|
+
if (config === null) {
|
|
1669
|
+
throw new Error('Invalid config for "initiateMeeting"');
|
|
1670
|
+
}
|
|
1671
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
const TTL = 60000;
|
|
1676
|
+
const VERSION = "5b78cffe02ee49666328e048929ba644";
|
|
1677
|
+
function validate(obj, path = 'ConversationRealtimeEndMeetingResponseRepresentation') {
|
|
1678
|
+
const v_error = (() => {
|
|
1679
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1680
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1681
|
+
}
|
|
1682
|
+
const obj_fakeKey = obj.fakeKey;
|
|
1683
|
+
const path_fakeKey = path + '.fakeKey';
|
|
1684
|
+
if (typeof obj_fakeKey !== 'string') {
|
|
1685
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fakeKey + '" (at "' + path_fakeKey + '")');
|
|
1686
|
+
}
|
|
1687
|
+
})();
|
|
1688
|
+
return v_error === undefined ? null : v_error;
|
|
1689
|
+
}
|
|
1690
|
+
const RepresentationType = 'ConversationRealtimeEndMeetingResponseRepresentation';
|
|
1691
|
+
function keyBuilder(luvio, config) {
|
|
1692
|
+
return keyPrefix + '::' + RepresentationType + ':' + config.fakeKey;
|
|
1693
|
+
}
|
|
1694
|
+
function keyBuilderFromType(luvio, object) {
|
|
1695
|
+
const keyParams = {
|
|
1696
|
+
fakeKey: object.fakeKey
|
|
1697
|
+
};
|
|
1698
|
+
return keyBuilder(luvio, keyParams);
|
|
1699
|
+
}
|
|
1700
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1701
|
+
return input;
|
|
1702
|
+
}
|
|
1703
|
+
const select$1 = function ConversationRealtimeEndMeetingResponseRepresentationSelect() {
|
|
1704
|
+
return {
|
|
1705
|
+
kind: 'Fragment',
|
|
1706
|
+
version: VERSION,
|
|
1707
|
+
private: [],
|
|
1708
|
+
selections: [
|
|
1709
|
+
{
|
|
1710
|
+
name: 'fakeKey',
|
|
1711
|
+
kind: 'Scalar'
|
|
1712
|
+
}
|
|
1713
|
+
]
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
function equals(existing, incoming) {
|
|
1717
|
+
const existing_fakeKey = existing.fakeKey;
|
|
1718
|
+
const incoming_fakeKey = incoming.fakeKey;
|
|
1719
|
+
if (!(existing_fakeKey === incoming_fakeKey)) {
|
|
1720
|
+
return false;
|
|
1721
|
+
}
|
|
1722
|
+
return true;
|
|
1723
|
+
}
|
|
1724
|
+
const ingest = function ConversationRealtimeEndMeetingResponseRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1725
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1726
|
+
const validateError = validate(input);
|
|
1727
|
+
if (validateError !== null) {
|
|
1728
|
+
throw validateError;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
const key = keyBuilderFromType(luvio, input);
|
|
1732
|
+
const ttlToUse = TTL;
|
|
1733
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "eci", VERSION, RepresentationType, equals);
|
|
1734
|
+
return createLink(key);
|
|
1735
|
+
};
|
|
1736
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
1737
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1738
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
1739
|
+
rootKeySet.set(rootKey, {
|
|
1740
|
+
namespace: keyPrefix,
|
|
1741
|
+
representationName: RepresentationType,
|
|
1742
|
+
mergeable: false
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
function select(luvio, params) {
|
|
1747
|
+
return select$1();
|
|
1748
|
+
}
|
|
1749
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1750
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
1751
|
+
}
|
|
1752
|
+
function ingestSuccess(luvio, resourceParams, response) {
|
|
1753
|
+
const { body } = response;
|
|
1754
|
+
const key = keyBuilderFromType(luvio, body);
|
|
1755
|
+
luvio.storeIngest(key, ingest, body);
|
|
1756
|
+
const snapshot = luvio.storeLookup({
|
|
1757
|
+
recordId: key,
|
|
1758
|
+
node: select(),
|
|
1759
|
+
variables: {},
|
|
1760
|
+
});
|
|
1761
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1762
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1763
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
deepFreeze(snapshot.data);
|
|
1767
|
+
return snapshot;
|
|
1768
|
+
}
|
|
1769
|
+
function createResourceRequest(config) {
|
|
1770
|
+
const headers = {};
|
|
1771
|
+
return {
|
|
1772
|
+
baseUri: '/services/data/v66.0',
|
|
1773
|
+
basePath: '/conversation/realtime/insight/meeting/terminate',
|
|
1774
|
+
method: 'post',
|
|
1775
|
+
body: config.body,
|
|
1776
|
+
urlParams: {},
|
|
1777
|
+
queryParams: {},
|
|
1778
|
+
headers,
|
|
1779
|
+
priority: 'normal',
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
const adapterName = 'terminateMeeting';
|
|
1784
|
+
const terminateMeeting_ConfigPropertyMetadata = [
|
|
1785
|
+
generateParamConfigMetadata('botId', true, 2 /* Body */, 0 /* String */),
|
|
1786
|
+
];
|
|
1787
|
+
const terminateMeeting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, terminateMeeting_ConfigPropertyMetadata);
|
|
1788
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$6(terminateMeeting_ConfigPropertyMetadata);
|
|
1789
|
+
function typeCheckConfig(untrustedConfig) {
|
|
1790
|
+
const config = {};
|
|
1791
|
+
typeCheckConfig$6(untrustedConfig, config, terminateMeeting_ConfigPropertyMetadata);
|
|
1792
|
+
return config;
|
|
1793
|
+
}
|
|
1794
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
1795
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1796
|
+
return null;
|
|
1797
|
+
}
|
|
1798
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1799
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1800
|
+
}
|
|
1801
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
1802
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1803
|
+
return null;
|
|
1804
|
+
}
|
|
1805
|
+
return config;
|
|
1806
|
+
}
|
|
1807
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
1808
|
+
const resourceParams = createResourceParams(config);
|
|
1809
|
+
const request = createResourceRequest(resourceParams);
|
|
1810
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1811
|
+
.then((response) => {
|
|
1812
|
+
return luvio.handleSuccessResponse(() => {
|
|
1813
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
1814
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1815
|
+
}, () => {
|
|
1816
|
+
const cache = new StoreKeyMap();
|
|
1817
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
1818
|
+
return cache;
|
|
1819
|
+
});
|
|
1820
|
+
}, (response) => {
|
|
1821
|
+
deepFreeze(response);
|
|
1822
|
+
throw response;
|
|
1823
|
+
});
|
|
1824
|
+
}
|
|
1825
|
+
const terminateMeetingAdapterFactory = (luvio) => {
|
|
1826
|
+
return function terminateMeeting(untrustedConfig) {
|
|
1827
|
+
const config = validateAdapterConfig(untrustedConfig, terminateMeeting_ConfigPropertyNames);
|
|
1828
|
+
// Invalid or incomplete config
|
|
1829
|
+
if (config === null) {
|
|
1830
|
+
throw new Error('Invalid config for "terminateMeeting"');
|
|
1831
|
+
}
|
|
1832
|
+
return buildNetworkSnapshot(luvio, config);
|
|
1833
|
+
};
|
|
1834
|
+
};
|
|
1835
|
+
|
|
1836
|
+
let generateConversationSummary;
|
|
1837
|
+
let getConversationGenerativeInsight;
|
|
1838
|
+
let getConversationGenerativeInsightNotifyChange;
|
|
1839
|
+
let getConversationSummaryRelatedList;
|
|
1840
|
+
let getConversationSummaryRelatedListNotifyChange;
|
|
1841
|
+
let getTranscript;
|
|
1842
|
+
let initiateMeeting;
|
|
1843
|
+
let terminateMeeting;
|
|
1844
|
+
// Imperative GET Adapters
|
|
1845
|
+
let getConversationGenerativeInsight_imperative;
|
|
1846
|
+
let getConversationSummaryRelatedList_imperative;
|
|
1847
|
+
let getTranscript_imperative;
|
|
1848
|
+
const getConversationGenerativeInsightMetadata = {
|
|
1849
|
+
apiFamily: 'eci',
|
|
1850
|
+
name: 'getConversationGenerativeInsight',
|
|
1851
|
+
ttl: 60000,
|
|
1852
|
+
};
|
|
1853
|
+
const getConversationSummaryRelatedListMetadata = {
|
|
1854
|
+
apiFamily: 'eci',
|
|
1855
|
+
name: 'getConversationSummaryRelatedList',
|
|
1856
|
+
ttl: 60000,
|
|
1857
|
+
};
|
|
1858
|
+
const getTranscriptMetadata = { apiFamily: 'eci', name: 'getTranscript', ttl: 2592000000 };
|
|
1859
|
+
// Notify Update Available
|
|
1860
|
+
function bindExportsTo(luvio) {
|
|
1861
|
+
// LDS Adapters
|
|
1862
|
+
const getConversationGenerativeInsight_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getConversationGenerativeInsight', getConversationGenerativeInsightAdapterFactory), getConversationGenerativeInsightMetadata);
|
|
1863
|
+
const getConversationSummaryRelatedList_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getConversationSummaryRelatedList', getConversationSummaryRelatedListAdapterFactory), getConversationSummaryRelatedListMetadata);
|
|
1864
|
+
const getTranscript_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getTranscript', getTranscriptAdapterFactory), getTranscriptMetadata);
|
|
1865
|
+
function unwrapSnapshotData(factory) {
|
|
1866
|
+
const adapter = factory(luvio);
|
|
1867
|
+
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
1868
|
+
}
|
|
1869
|
+
return {
|
|
1870
|
+
generateConversationSummary: unwrapSnapshotData(generateConversationSummaryAdapterFactory),
|
|
1871
|
+
getConversationGenerativeInsight: createWireAdapterConstructor(luvio, getConversationGenerativeInsight_ldsAdapter, getConversationGenerativeInsightMetadata),
|
|
1872
|
+
getConversationGenerativeInsightNotifyChange: createLDSAdapter(luvio, 'getConversationGenerativeInsightNotifyChange', notifyChangeFactory$1),
|
|
1873
|
+
getConversationSummaryRelatedList: createWireAdapterConstructor(luvio, getConversationSummaryRelatedList_ldsAdapter, getConversationSummaryRelatedListMetadata),
|
|
1874
|
+
getConversationSummaryRelatedListNotifyChange: createLDSAdapter(luvio, 'getConversationSummaryRelatedListNotifyChange', notifyChangeFactory),
|
|
1875
|
+
getTranscript: createWireAdapterConstructor(luvio, getTranscript_ldsAdapter, getTranscriptMetadata),
|
|
1876
|
+
initiateMeeting: unwrapSnapshotData(initiateMeetingAdapterFactory),
|
|
1877
|
+
terminateMeeting: unwrapSnapshotData(terminateMeetingAdapterFactory),
|
|
1878
|
+
// Imperative GET Adapters
|
|
1879
|
+
getConversationGenerativeInsight_imperative: createImperativeAdapter(luvio, getConversationGenerativeInsight_ldsAdapter, getConversationGenerativeInsightMetadata),
|
|
1880
|
+
getConversationSummaryRelatedList_imperative: createImperativeAdapter(luvio, getConversationSummaryRelatedList_ldsAdapter, getConversationSummaryRelatedListMetadata),
|
|
1881
|
+
getTranscript_imperative: createImperativeAdapter(luvio, getTranscript_ldsAdapter, getTranscriptMetadata),
|
|
1882
|
+
// Notify Update Availables
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1885
|
+
withDefaultLuvio((luvio) => {
|
|
1886
|
+
({
|
|
1887
|
+
generateConversationSummary,
|
|
1888
|
+
getConversationGenerativeInsight,
|
|
1889
|
+
getConversationGenerativeInsightNotifyChange,
|
|
1890
|
+
getConversationSummaryRelatedList,
|
|
1891
|
+
getConversationSummaryRelatedListNotifyChange,
|
|
1892
|
+
getTranscript,
|
|
1893
|
+
initiateMeeting,
|
|
1894
|
+
terminateMeeting,
|
|
1895
|
+
getConversationGenerativeInsight_imperative,
|
|
1896
|
+
getConversationSummaryRelatedList_imperative,
|
|
1897
|
+
getTranscript_imperative,
|
|
1898
|
+
} = bindExportsTo(luvio));
|
|
1899
|
+
});
|
|
1900
|
+
|
|
1901
|
+
export { generateConversationSummary, getConversationGenerativeInsight, getConversationGenerativeInsightNotifyChange, getConversationGenerativeInsight_imperative, getConversationSummaryRelatedList, getConversationSummaryRelatedListNotifyChange, getConversationSummaryRelatedList_imperative, getTranscript, getTranscript_imperative, initiateMeeting, terminateMeeting };
|
|
1902
|
+
// version: 0.1.0-dev1-c978a7b010
|