@salesforce/lds-adapters-sales-eci 1.321.0 → 1.323.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/sales-eci.js +73 -4
- package/dist/es/es2018/types/src/generated/adapters/initiateMeeting.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/postConversationRealtimeInsightMeetingInitiate.d.ts +4 -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 +8 -1
- package/package.json +4 -4
- package/sfdc/index.js +80 -11
- package/src/raml/api.raml +21 -0
|
@@ -112,7 +112,7 @@ function createLink(ref) {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
const VERSION$6 = "c614c7bd04cb26f6e931c85a63d52c55";
|
|
115
|
-
function validate$
|
|
115
|
+
function validate$7(obj, path = 'ConversationGenerativeInsightRepresentation') {
|
|
116
116
|
const v_error = (() => {
|
|
117
117
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
118
118
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -191,7 +191,7 @@ function equals$6(existing, incoming) {
|
|
|
191
191
|
|
|
192
192
|
const TTL$5 = 60000;
|
|
193
193
|
const VERSION$5 = "1ddcdcaada7f739acdff16f101b69288";
|
|
194
|
-
function validate$
|
|
194
|
+
function validate$6(obj, path = 'ConversationGenInsightListRepresentation') {
|
|
195
195
|
const v_error = (() => {
|
|
196
196
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
197
197
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -218,7 +218,7 @@ function validate$5(obj, path = 'ConversationGenInsightListRepresentation') {
|
|
|
218
218
|
for (let i = 0; i < obj_generativeInsights.length; i++) {
|
|
219
219
|
const obj_generativeInsights_item = obj_generativeInsights[i];
|
|
220
220
|
const path_generativeInsights_item = path_generativeInsights + '[' + i + ']';
|
|
221
|
-
const referencepath_generativeInsights_itemValidationError = validate$
|
|
221
|
+
const referencepath_generativeInsights_itemValidationError = validate$7(obj_generativeInsights_item, path_generativeInsights_item);
|
|
222
222
|
if (referencepath_generativeInsights_itemValidationError !== null) {
|
|
223
223
|
let message = 'Object doesn\'t match ConversationGenerativeInsightRepresentation (at "' + path_generativeInsights_item + '")\n';
|
|
224
224
|
message += referencepath_generativeInsights_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -301,7 +301,7 @@ function equals$5(existing, incoming) {
|
|
|
301
301
|
}
|
|
302
302
|
const ingest$5 = function ConversationGenInsightListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
303
303
|
if (process.env.NODE_ENV !== 'production') {
|
|
304
|
-
const validateError = validate$
|
|
304
|
+
const validateError = validate$6(input);
|
|
305
305
|
if (validateError !== null) {
|
|
306
306
|
throw validateError;
|
|
307
307
|
}
|
|
@@ -461,6 +461,46 @@ const getConversationGenerativeInsightAdapterFactory = (luvio) => function eci__
|
|
|
461
461
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
462
462
|
};
|
|
463
463
|
|
|
464
|
+
function validate$5(obj, path = 'ConversationRealtimeMeetingParticipantRepresentation') {
|
|
465
|
+
const v_error = (() => {
|
|
466
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
467
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
468
|
+
}
|
|
469
|
+
const obj_participantUUID = obj.participantUUID;
|
|
470
|
+
const path_participantUUID = path + '.participantUUID';
|
|
471
|
+
let obj_participantUUID_union0 = null;
|
|
472
|
+
const obj_participantUUID_union0_error = (() => {
|
|
473
|
+
if (typeof obj_participantUUID !== 'string') {
|
|
474
|
+
return new TypeError('Expected "string" but received "' + typeof obj_participantUUID + '" (at "' + path_participantUUID + '")');
|
|
475
|
+
}
|
|
476
|
+
})();
|
|
477
|
+
if (obj_participantUUID_union0_error != null) {
|
|
478
|
+
obj_participantUUID_union0 = obj_participantUUID_union0_error.message;
|
|
479
|
+
}
|
|
480
|
+
let obj_participantUUID_union1 = null;
|
|
481
|
+
const obj_participantUUID_union1_error = (() => {
|
|
482
|
+
if (obj_participantUUID !== null) {
|
|
483
|
+
return new TypeError('Expected "null" but received "' + typeof obj_participantUUID + '" (at "' + path_participantUUID + '")');
|
|
484
|
+
}
|
|
485
|
+
})();
|
|
486
|
+
if (obj_participantUUID_union1_error != null) {
|
|
487
|
+
obj_participantUUID_union1 = obj_participantUUID_union1_error.message;
|
|
488
|
+
}
|
|
489
|
+
if (obj_participantUUID_union0 && obj_participantUUID_union1) {
|
|
490
|
+
let message = 'Object doesn\'t match union (at "' + path_participantUUID + '")';
|
|
491
|
+
message += '\n' + obj_participantUUID_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
492
|
+
message += '\n' + obj_participantUUID_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
493
|
+
return new TypeError(message);
|
|
494
|
+
}
|
|
495
|
+
const obj_screenName = obj.screenName;
|
|
496
|
+
const path_screenName = path + '.screenName';
|
|
497
|
+
if (typeof obj_screenName !== 'string') {
|
|
498
|
+
return new TypeError('Expected "string" but received "' + typeof obj_screenName + '" (at "' + path_screenName + '")');
|
|
499
|
+
}
|
|
500
|
+
})();
|
|
501
|
+
return v_error === undefined ? null : v_error;
|
|
502
|
+
}
|
|
503
|
+
|
|
464
504
|
const TTL$4 = 60000;
|
|
465
505
|
const VERSION$4 = "92b95a3b99090d0e464e4259ecac6bb4";
|
|
466
506
|
function validate$4(obj, path = 'ConversationRealtimeMeetingInitiationResponseRepresentation') {
|
|
@@ -630,12 +670,41 @@ const adapterName$4 = 'initiateMeeting';
|
|
|
630
670
|
const initiateMeeting_ConfigPropertyMetadata = [
|
|
631
671
|
generateParamConfigMetadata('meetingUrl', true, 2 /* Body */, 0 /* String */),
|
|
632
672
|
generateParamConfigMetadata('vendorName', true, 2 /* Body */, 0 /* String */),
|
|
673
|
+
generateParamConfigMetadata('meetingSubject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
674
|
+
generateParamConfigMetadata('meetingId', true, 2 /* Body */, 4 /* Unsupported */),
|
|
675
|
+
generateParamConfigMetadata('participants', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
633
676
|
];
|
|
634
677
|
const initiateMeeting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, initiateMeeting_ConfigPropertyMetadata);
|
|
635
678
|
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$6(initiateMeeting_ConfigPropertyMetadata);
|
|
636
679
|
function typeCheckConfig$4(untrustedConfig) {
|
|
637
680
|
const config = {};
|
|
638
681
|
typeCheckConfig$6(untrustedConfig, config, initiateMeeting_ConfigPropertyMetadata);
|
|
682
|
+
const untrustedConfig_meetingSubject = untrustedConfig.meetingSubject;
|
|
683
|
+
if (typeof untrustedConfig_meetingSubject === 'string') {
|
|
684
|
+
config.meetingSubject = untrustedConfig_meetingSubject;
|
|
685
|
+
}
|
|
686
|
+
if (untrustedConfig_meetingSubject === null) {
|
|
687
|
+
config.meetingSubject = untrustedConfig_meetingSubject;
|
|
688
|
+
}
|
|
689
|
+
const untrustedConfig_meetingId = untrustedConfig.meetingId;
|
|
690
|
+
if (typeof untrustedConfig_meetingId === 'string') {
|
|
691
|
+
config.meetingId = untrustedConfig_meetingId;
|
|
692
|
+
}
|
|
693
|
+
if (untrustedConfig_meetingId === null) {
|
|
694
|
+
config.meetingId = untrustedConfig_meetingId;
|
|
695
|
+
}
|
|
696
|
+
const untrustedConfig_participants = untrustedConfig.participants;
|
|
697
|
+
if (ArrayIsArray$1(untrustedConfig_participants)) {
|
|
698
|
+
const untrustedConfig_participants_array = [];
|
|
699
|
+
for (let i = 0, arrayLength = untrustedConfig_participants.length; i < arrayLength; i++) {
|
|
700
|
+
const untrustedConfig_participants_item = untrustedConfig_participants[i];
|
|
701
|
+
const referenceConversationRealtimeMeetingParticipantRepresentationValidationError = validate$5(untrustedConfig_participants_item);
|
|
702
|
+
if (referenceConversationRealtimeMeetingParticipantRepresentationValidationError === null) {
|
|
703
|
+
untrustedConfig_participants_array.push(untrustedConfig_participants_item);
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
config.participants = untrustedConfig_participants_array;
|
|
707
|
+
}
|
|
639
708
|
return config;
|
|
640
709
|
}
|
|
641
710
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ConversationRealtimeMeetingParticipantRepresentation as types_ConversationRealtimeMeetingParticipantRepresentation_ConversationRealtimeMeetingParticipantRepresentation } from '../types/ConversationRealtimeMeetingParticipantRepresentation';
|
|
3
4
|
import { ResourceRequestConfig as resources_postConversationRealtimeInsightMeetingInitiate_ResourceRequestConfig } from '../resources/postConversationRealtimeInsightMeetingInitiate';
|
|
4
5
|
import { ConversationRealtimeMeetingInitiationResponseRepresentation as types_ConversationRealtimeMeetingInitiationResponseRepresentation_ConversationRealtimeMeetingInitiationResponseRepresentation } from '../types/ConversationRealtimeMeetingInitiationResponseRepresentation';
|
|
5
6
|
export declare const adapterName = "initiateMeeting";
|
|
@@ -8,6 +9,9 @@ export declare const initiateMeeting_ConfigPropertyNames: adapter$45$utils_Adapt
|
|
|
8
9
|
export interface InitiateMeetingConfig {
|
|
9
10
|
meetingUrl: string;
|
|
10
11
|
vendorName: string;
|
|
12
|
+
meetingSubject: string | null;
|
|
13
|
+
meetingId: string | null;
|
|
14
|
+
participants: Array<types_ConversationRealtimeMeetingParticipantRepresentation_ConversationRealtimeMeetingParticipantRepresentation>;
|
|
11
15
|
}
|
|
12
16
|
export declare const createResourceParams: (config: InitiateMeetingConfig) => resources_postConversationRealtimeInsightMeetingInitiate_ResourceRequestConfig;
|
|
13
17
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<InitiateMeetingConfig>): adapter$45$utils_Untrusted<InitiateMeetingConfig>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { ConversationRealtimeMeetingParticipantRepresentation as types_ConversationRealtimeMeetingParticipantRepresentation_ConversationRealtimeMeetingParticipantRepresentation } from '../types/ConversationRealtimeMeetingParticipantRepresentation';
|
|
1
2
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
3
|
import { ConversationRealtimeMeetingInitiationResponseRepresentation as types_ConversationRealtimeMeetingInitiationResponseRepresentation_ConversationRealtimeMeetingInitiationResponseRepresentation } from '../types/ConversationRealtimeMeetingInitiationResponseRepresentation';
|
|
3
4
|
export interface ResourceRequestConfig {
|
|
4
5
|
body: {
|
|
5
6
|
meetingUrl: string;
|
|
6
7
|
vendorName: string;
|
|
8
|
+
meetingSubject: string | null;
|
|
9
|
+
meetingId: string | null;
|
|
10
|
+
participants: Array<types_ConversationRealtimeMeetingParticipantRepresentation_ConversationRealtimeMeetingParticipantRepresentation>;
|
|
7
11
|
};
|
|
8
12
|
}
|
|
9
13
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "4588cac49a98e4bcbf8c3482e5b7582e";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ConversationRealtimeMeetingParticipantRepresentation, existing: ConversationRealtimeMeetingParticipantRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConversationRealtimeMeetingParticipantRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ConversationRealtimeMeetingParticipantRepresentationNormalized, incoming: ConversationRealtimeMeetingParticipantRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ConversationRealtimeMeetingParticipantRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Representation of realtime meeting participant
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ConversationRealtimeMeetingParticipantRepresentationNormalized {
|
|
17
|
+
/** UUID associated with meeting participant */
|
|
18
|
+
participantUUID: string | null;
|
|
19
|
+
/** Display name of meeting participant */
|
|
20
|
+
screenName: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Representation of realtime meeting participant
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface ConversationRealtimeMeetingParticipantRepresentation {
|
|
29
|
+
participantUUID: string | null;
|
|
30
|
+
screenName: string;
|
|
31
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ConversationRealtimeMeetingParticipantRepresentation as ConversationRealtimeMeetingParticipantRepresentation_ConversationRealtimeMeetingParticipantRepresentation } from './ConversationRealtimeMeetingParticipantRepresentation';
|
|
1
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "a3aff31b208e553fce1e5dc79b64c154";
|
|
3
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
5
|
export declare const RepresentationType: string;
|
|
5
6
|
export declare function normalize(input: ConversationRealtimeStartMeetingPayloadRepresentation, existing: ConversationRealtimeStartMeetingPayloadRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConversationRealtimeStartMeetingPayloadRepresentationNormalized;
|
|
@@ -14,7 +15,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
15
|
* (none)
|
|
15
16
|
*/
|
|
16
17
|
export interface ConversationRealtimeStartMeetingPayloadRepresentationNormalized {
|
|
18
|
+
meetingId: string | null;
|
|
19
|
+
meetingSubject: string | null;
|
|
17
20
|
meetingUrl: string;
|
|
21
|
+
participants: Array<ConversationRealtimeMeetingParticipantRepresentation_ConversationRealtimeMeetingParticipantRepresentation>;
|
|
18
22
|
vendorName: string;
|
|
19
23
|
}
|
|
20
24
|
/**
|
|
@@ -24,6 +28,9 @@ export interface ConversationRealtimeStartMeetingPayloadRepresentationNormalized
|
|
|
24
28
|
* (none)
|
|
25
29
|
*/
|
|
26
30
|
export interface ConversationRealtimeStartMeetingPayloadRepresentation {
|
|
31
|
+
meetingId: string | null;
|
|
32
|
+
meetingSubject: string | null;
|
|
27
33
|
meetingUrl: string;
|
|
34
|
+
participants: Array<ConversationRealtimeMeetingParticipantRepresentation_ConversationRealtimeMeetingParticipantRepresentation>;
|
|
28
35
|
vendorName: string;
|
|
29
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sales-eci",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.323.0",
|
|
4
4
|
"description": "Einstein Conversation Insights",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/sales-eci.js",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"test:unit": "jest"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@salesforce/lds-bindings": "^1.
|
|
48
|
+
"@salesforce/lds-bindings": "^1.323.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
52
|
-
"@salesforce/lds-karma": "^1.
|
|
51
|
+
"@salesforce/lds-compiler-plugins": "^1.323.0",
|
|
52
|
+
"@salesforce/lds-karma": "^1.323.0"
|
|
53
53
|
},
|
|
54
54
|
"nx": {
|
|
55
55
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -123,7 +123,7 @@ function createLink(ref) {
|
|
|
123
123
|
|
|
124
124
|
const TTL$5 = 60000;
|
|
125
125
|
const VERSION$6 = "10bf968dbd562928dfa701c7f6a854b2";
|
|
126
|
-
function validate$
|
|
126
|
+
function validate$7(obj, path = 'ConversationSummaryRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -305,7 +305,7 @@ function equals$6(existing, incoming) {
|
|
|
305
305
|
}
|
|
306
306
|
const ingest$5 = function ConversationSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
307
307
|
if (process.env.NODE_ENV !== 'production') {
|
|
308
|
-
const validateError = validate$
|
|
308
|
+
const validateError = validate$7(input);
|
|
309
309
|
if (validateError !== null) {
|
|
310
310
|
throw validateError;
|
|
311
311
|
}
|
|
@@ -416,7 +416,7 @@ const generateConversationSummaryAdapterFactory = (luvio) => {
|
|
|
416
416
|
};
|
|
417
417
|
|
|
418
418
|
const VERSION$5 = "c614c7bd04cb26f6e931c85a63d52c55";
|
|
419
|
-
function validate$
|
|
419
|
+
function validate$6(obj, path = 'ConversationGenerativeInsightRepresentation') {
|
|
420
420
|
const v_error = (() => {
|
|
421
421
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
422
422
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -495,7 +495,7 @@ function equals$5(existing, incoming) {
|
|
|
495
495
|
|
|
496
496
|
const TTL$4 = 60000;
|
|
497
497
|
const VERSION$4 = "1ddcdcaada7f739acdff16f101b69288";
|
|
498
|
-
function validate$
|
|
498
|
+
function validate$5(obj, path = 'ConversationGenInsightListRepresentation') {
|
|
499
499
|
const v_error = (() => {
|
|
500
500
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
501
501
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -522,7 +522,7 @@ function validate$4(obj, path = 'ConversationGenInsightListRepresentation') {
|
|
|
522
522
|
for (let i = 0; i < obj_generativeInsights.length; i++) {
|
|
523
523
|
const obj_generativeInsights_item = obj_generativeInsights[i];
|
|
524
524
|
const path_generativeInsights_item = path_generativeInsights + '[' + i + ']';
|
|
525
|
-
const referencepath_generativeInsights_itemValidationError = validate$
|
|
525
|
+
const referencepath_generativeInsights_itemValidationError = validate$6(obj_generativeInsights_item, path_generativeInsights_item);
|
|
526
526
|
if (referencepath_generativeInsights_itemValidationError !== null) {
|
|
527
527
|
let message = 'Object doesn\'t match ConversationGenerativeInsightRepresentation (at "' + path_generativeInsights_item + '")\n';
|
|
528
528
|
message += referencepath_generativeInsights_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -605,7 +605,7 @@ function equals$4(existing, incoming) {
|
|
|
605
605
|
}
|
|
606
606
|
const ingest$4 = function ConversationGenInsightListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
607
607
|
if (process.env.NODE_ENV !== 'production') {
|
|
608
|
-
const validateError = validate$
|
|
608
|
+
const validateError = validate$5(input);
|
|
609
609
|
if (validateError !== null) {
|
|
610
610
|
throw validateError;
|
|
611
611
|
}
|
|
@@ -808,7 +808,7 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
808
808
|
|
|
809
809
|
const TTL$3 = 60000;
|
|
810
810
|
const VERSION$3 = "233fbc0cf53c7a50800a3e8b63d661be";
|
|
811
|
-
function validate$
|
|
811
|
+
function validate$4(obj, path = 'ConversationSummaryListRepresentation') {
|
|
812
812
|
const v_error = (() => {
|
|
813
813
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
814
814
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -928,7 +928,7 @@ function equals$3(existing, incoming) {
|
|
|
928
928
|
}
|
|
929
929
|
const ingest$3 = function ConversationSummaryListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
930
930
|
if (process.env.NODE_ENV !== 'production') {
|
|
931
|
-
const validateError = validate$
|
|
931
|
+
const validateError = validate$4(input);
|
|
932
932
|
if (validateError !== null) {
|
|
933
933
|
throw validateError;
|
|
934
934
|
}
|
|
@@ -1135,7 +1135,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
1135
1135
|
|
|
1136
1136
|
const TTL$2 = 2592000000;
|
|
1137
1137
|
const VERSION$2 = "b6caaeb6ce6369783e9b10315a598d75";
|
|
1138
|
-
function validate$
|
|
1138
|
+
function validate$3(obj, path = 'ConversationTranscriptRepresentation') {
|
|
1139
1139
|
const v_error = (() => {
|
|
1140
1140
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1141
1141
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1225,7 +1225,7 @@ function equals$2(existing, incoming) {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
const ingest$2 = function ConversationTranscriptRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1227
1227
|
if (process.env.NODE_ENV !== 'production') {
|
|
1228
|
-
const validateError = validate$
|
|
1228
|
+
const validateError = validate$3(input);
|
|
1229
1229
|
if (validateError !== null) {
|
|
1230
1230
|
throw validateError;
|
|
1231
1231
|
}
|
|
@@ -1384,6 +1384,46 @@ const getTranscriptAdapterFactory = (luvio) => function eci__getTranscript(untru
|
|
|
1384
1384
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1385
1385
|
};
|
|
1386
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
|
+
|
|
1387
1427
|
const TTL$1 = 60000;
|
|
1388
1428
|
const VERSION$1 = "92b95a3b99090d0e464e4259ecac6bb4";
|
|
1389
1429
|
function validate$1(obj, path = 'ConversationRealtimeMeetingInitiationResponseRepresentation') {
|
|
@@ -1553,12 +1593,41 @@ const adapterName$1 = 'initiateMeeting';
|
|
|
1553
1593
|
const initiateMeeting_ConfigPropertyMetadata = [
|
|
1554
1594
|
generateParamConfigMetadata('meetingUrl', true, 2 /* Body */, 0 /* String */),
|
|
1555
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),
|
|
1556
1599
|
];
|
|
1557
1600
|
const initiateMeeting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, initiateMeeting_ConfigPropertyMetadata);
|
|
1558
1601
|
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(initiateMeeting_ConfigPropertyMetadata);
|
|
1559
1602
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1560
1603
|
const config = {};
|
|
1561
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
|
+
}
|
|
1562
1631
|
return config;
|
|
1563
1632
|
}
|
|
1564
1633
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1830,4 +1899,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1830
1899
|
});
|
|
1831
1900
|
|
|
1832
1901
|
export { generateConversationSummary, getConversationGenerativeInsight, getConversationGenerativeInsightNotifyChange, getConversationGenerativeInsight_imperative, getConversationSummaryRelatedList, getConversationSummaryRelatedListNotifyChange, getConversationSummaryRelatedList_imperative, getTranscript, getTranscript_imperative, initiateMeeting, terminateMeeting };
|
|
1833
|
-
// version: 1.
|
|
1902
|
+
// version: 1.323.0-34d96539ec
|
package/src/raml/api.raml
CHANGED
|
@@ -93,6 +93,16 @@ types:
|
|
|
93
93
|
type: object
|
|
94
94
|
properties:
|
|
95
95
|
fakeKey: string # TODO: Handrolled because luvio doesn't support mutation operations that don't return a key
|
|
96
|
+
ConversationRealtimeMeetingParticipantRepresentation:
|
|
97
|
+
description: Representation of realtime meeting participant
|
|
98
|
+
type: object
|
|
99
|
+
properties:
|
|
100
|
+
screenName:
|
|
101
|
+
description: Display name of meeting participant
|
|
102
|
+
type: string
|
|
103
|
+
participantUUID:
|
|
104
|
+
description: UUID associated with meeting participant
|
|
105
|
+
type: string | nil
|
|
96
106
|
ConversationRealtimeStartMeetingPayloadRepresentation:
|
|
97
107
|
type: object
|
|
98
108
|
properties:
|
|
@@ -102,6 +112,17 @@ types:
|
|
|
102
112
|
vendorName:
|
|
103
113
|
type: string
|
|
104
114
|
required: true
|
|
115
|
+
meetingSubject:
|
|
116
|
+
type: string | nil
|
|
117
|
+
required: true
|
|
118
|
+
meetingId:
|
|
119
|
+
type: string | nil
|
|
120
|
+
required: true
|
|
121
|
+
participants:
|
|
122
|
+
type: array
|
|
123
|
+
required: true
|
|
124
|
+
items:
|
|
125
|
+
type: ConversationRealtimeMeetingParticipantRepresentation
|
|
105
126
|
conversationRealtimeEndMeetingPayloadRepresentation:
|
|
106
127
|
type: object
|
|
107
128
|
properties:
|