@vendasta/meetings 0.77.0 → 0.78.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/esm2020/lib/_internal/conversation-analysis.api.service.mjs +18 -9
- package/esm2020/lib/_internal/enums/conversation-analysis.enum.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/conversation-analysis.interface.mjs +1 -7
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/conversation-analysis.mjs +191 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/zoom.api.service.mjs +7 -8
- package/esm2020/lib/conversation_analysis/conversation-analysis.service.mjs +16 -1
- package/esm2020/lib/index.mjs +2 -2
- package/fesm2015/vendasta-meetings.mjs +231 -13
- package/fesm2015/vendasta-meetings.mjs.map +1 -1
- package/fesm2020/vendasta-meetings.mjs +228 -13
- package/fesm2020/vendasta-meetings.mjs.map +1 -1
- package/lib/_internal/conversation-analysis.api.service.d.ts +6 -7
- package/lib/_internal/enums/conversation-analysis.enum.d.ts +2 -1
- package/lib/_internal/interfaces/conversation-analysis.interface.d.ts +34 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/conversation-analysis.d.ts +52 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/zoom.api.service.d.ts +2 -5
- package/lib/conversation_analysis/conversation-analysis.service.d.ts +4 -1
- package/lib/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Injectable, inject } from '@angular/core';
|
|
3
3
|
import { throwError, of } from 'rxjs';
|
|
4
4
|
import { map, mapTo } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
6
|
+
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
7
7
|
|
|
8
8
|
// *********************************
|
|
9
9
|
// Code generated by sdkgen
|
|
@@ -141,6 +141,7 @@ var TranscriptSource;
|
|
|
141
141
|
(function (TranscriptSource) {
|
|
142
142
|
TranscriptSource[TranscriptSource["TRANSCRIPT_SOURCE_UNSPECIFIED"] = 0] = "TRANSCRIPT_SOURCE_UNSPECIFIED";
|
|
143
143
|
TranscriptSource[TranscriptSource["TRANSCRIPT_SOURCE_GOOGLE_MEET"] = 1] = "TRANSCRIPT_SOURCE_GOOGLE_MEET";
|
|
144
|
+
TranscriptSource[TranscriptSource["TRANSCRIPT_SOURCE_GONG"] = 2] = "TRANSCRIPT_SOURCE_GONG";
|
|
144
145
|
})(TranscriptSource || (TranscriptSource = {}));
|
|
145
146
|
|
|
146
147
|
// *********************************
|
|
@@ -4030,6 +4031,195 @@ class CreateRawTranscriptResponse {
|
|
|
4030
4031
|
return toReturn;
|
|
4031
4032
|
}
|
|
4032
4033
|
}
|
|
4034
|
+
class ListProcessedTranscriptsRequestFilters {
|
|
4035
|
+
static fromProto(proto) {
|
|
4036
|
+
let m = new ListProcessedTranscriptsRequestFilters();
|
|
4037
|
+
m = Object.assign(m, proto);
|
|
4038
|
+
return m;
|
|
4039
|
+
}
|
|
4040
|
+
constructor(kwargs) {
|
|
4041
|
+
if (!kwargs) {
|
|
4042
|
+
return;
|
|
4043
|
+
}
|
|
4044
|
+
Object.assign(this, kwargs);
|
|
4045
|
+
}
|
|
4046
|
+
toApiJson() {
|
|
4047
|
+
const toReturn = {};
|
|
4048
|
+
if (typeof this.namespace !== 'undefined') {
|
|
4049
|
+
toReturn['namespace'] = this.namespace;
|
|
4050
|
+
}
|
|
4051
|
+
return toReturn;
|
|
4052
|
+
}
|
|
4053
|
+
}
|
|
4054
|
+
class GetProcessedTranscriptsRequest {
|
|
4055
|
+
static fromProto(proto) {
|
|
4056
|
+
let m = new GetProcessedTranscriptsRequest();
|
|
4057
|
+
m = Object.assign(m, proto);
|
|
4058
|
+
return m;
|
|
4059
|
+
}
|
|
4060
|
+
constructor(kwargs) {
|
|
4061
|
+
if (!kwargs) {
|
|
4062
|
+
return;
|
|
4063
|
+
}
|
|
4064
|
+
Object.assign(this, kwargs);
|
|
4065
|
+
}
|
|
4066
|
+
toApiJson() {
|
|
4067
|
+
const toReturn = {};
|
|
4068
|
+
if (typeof this.id !== 'undefined') {
|
|
4069
|
+
toReturn['id'] = this.id;
|
|
4070
|
+
}
|
|
4071
|
+
return toReturn;
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
class GetProcessedTranscriptsResponse {
|
|
4075
|
+
static fromProto(proto) {
|
|
4076
|
+
let m = new GetProcessedTranscriptsResponse();
|
|
4077
|
+
m = Object.assign(m, proto);
|
|
4078
|
+
if (proto.processedTranscript) {
|
|
4079
|
+
m.processedTranscript = ProcessedTranscript.fromProto(proto.processedTranscript);
|
|
4080
|
+
}
|
|
4081
|
+
return m;
|
|
4082
|
+
}
|
|
4083
|
+
constructor(kwargs) {
|
|
4084
|
+
if (!kwargs) {
|
|
4085
|
+
return;
|
|
4086
|
+
}
|
|
4087
|
+
Object.assign(this, kwargs);
|
|
4088
|
+
}
|
|
4089
|
+
toApiJson() {
|
|
4090
|
+
const toReturn = {};
|
|
4091
|
+
if (typeof this.processedTranscript !== 'undefined' && this.processedTranscript !== null) {
|
|
4092
|
+
toReturn['processedTranscript'] = 'toApiJson' in this.processedTranscript ? this.processedTranscript.toApiJson() : this.processedTranscript;
|
|
4093
|
+
}
|
|
4094
|
+
return toReturn;
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
4097
|
+
class ListProcessedTranscriptsRequest {
|
|
4098
|
+
static fromProto(proto) {
|
|
4099
|
+
let m = new ListProcessedTranscriptsRequest();
|
|
4100
|
+
m = Object.assign(m, proto);
|
|
4101
|
+
if (proto.filters) {
|
|
4102
|
+
m.filters = ListProcessedTranscriptsRequestFilters.fromProto(proto.filters);
|
|
4103
|
+
}
|
|
4104
|
+
if (proto.pagingOptions) {
|
|
4105
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
4106
|
+
}
|
|
4107
|
+
return m;
|
|
4108
|
+
}
|
|
4109
|
+
constructor(kwargs) {
|
|
4110
|
+
if (!kwargs) {
|
|
4111
|
+
return;
|
|
4112
|
+
}
|
|
4113
|
+
Object.assign(this, kwargs);
|
|
4114
|
+
}
|
|
4115
|
+
toApiJson() {
|
|
4116
|
+
const toReturn = {};
|
|
4117
|
+
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
4118
|
+
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
4119
|
+
}
|
|
4120
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
4121
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
4122
|
+
}
|
|
4123
|
+
return toReturn;
|
|
4124
|
+
}
|
|
4125
|
+
}
|
|
4126
|
+
class ListProcessedTranscriptsResponse {
|
|
4127
|
+
static fromProto(proto) {
|
|
4128
|
+
let m = new ListProcessedTranscriptsResponse();
|
|
4129
|
+
m = Object.assign(m, proto);
|
|
4130
|
+
if (proto.processedTranscripts) {
|
|
4131
|
+
m.processedTranscripts = proto.processedTranscripts.map(ProcessedTranscript.fromProto);
|
|
4132
|
+
}
|
|
4133
|
+
if (proto.metadata) {
|
|
4134
|
+
m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
|
|
4135
|
+
}
|
|
4136
|
+
return m;
|
|
4137
|
+
}
|
|
4138
|
+
constructor(kwargs) {
|
|
4139
|
+
if (!kwargs) {
|
|
4140
|
+
return;
|
|
4141
|
+
}
|
|
4142
|
+
Object.assign(this, kwargs);
|
|
4143
|
+
}
|
|
4144
|
+
toApiJson() {
|
|
4145
|
+
const toReturn = {};
|
|
4146
|
+
if (typeof this.processedTranscripts !== 'undefined' && this.processedTranscripts !== null) {
|
|
4147
|
+
toReturn['processedTranscripts'] = 'toApiJson' in this.processedTranscripts ? this.processedTranscripts.toApiJson() : this.processedTranscripts;
|
|
4148
|
+
}
|
|
4149
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
4150
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
4151
|
+
}
|
|
4152
|
+
return toReturn;
|
|
4153
|
+
}
|
|
4154
|
+
}
|
|
4155
|
+
class ProcessedTranscript {
|
|
4156
|
+
static fromProto(proto) {
|
|
4157
|
+
let m = new ProcessedTranscript();
|
|
4158
|
+
m = Object.assign(m, proto);
|
|
4159
|
+
if (proto.source) {
|
|
4160
|
+
m.source = enumStringToValue$1(TranscriptSource, proto.source);
|
|
4161
|
+
}
|
|
4162
|
+
if (proto.sentiment) {
|
|
4163
|
+
m.sentiment = parseInt(proto.sentiment, 10);
|
|
4164
|
+
}
|
|
4165
|
+
if (proto.salesScore) {
|
|
4166
|
+
m.salesScore = parseInt(proto.salesScore, 10);
|
|
4167
|
+
}
|
|
4168
|
+
return m;
|
|
4169
|
+
}
|
|
4170
|
+
constructor(kwargs) {
|
|
4171
|
+
if (!kwargs) {
|
|
4172
|
+
return;
|
|
4173
|
+
}
|
|
4174
|
+
Object.assign(this, kwargs);
|
|
4175
|
+
}
|
|
4176
|
+
toApiJson() {
|
|
4177
|
+
const toReturn = {};
|
|
4178
|
+
if (typeof this.id !== 'undefined') {
|
|
4179
|
+
toReturn['id'] = this.id;
|
|
4180
|
+
}
|
|
4181
|
+
if (typeof this.namespace !== 'undefined') {
|
|
4182
|
+
toReturn['namespace'] = this.namespace;
|
|
4183
|
+
}
|
|
4184
|
+
if (typeof this.source !== 'undefined') {
|
|
4185
|
+
toReturn['source'] = this.source;
|
|
4186
|
+
}
|
|
4187
|
+
if (typeof this.title !== 'undefined') {
|
|
4188
|
+
toReturn['title'] = this.title;
|
|
4189
|
+
}
|
|
4190
|
+
if (typeof this.summary !== 'undefined') {
|
|
4191
|
+
toReturn['summary'] = this.summary;
|
|
4192
|
+
}
|
|
4193
|
+
if (typeof this.keywords !== 'undefined') {
|
|
4194
|
+
toReturn['keywords'] = this.keywords;
|
|
4195
|
+
}
|
|
4196
|
+
if (typeof this.keyTakeaways !== 'undefined') {
|
|
4197
|
+
toReturn['keyTakeaways'] = this.keyTakeaways;
|
|
4198
|
+
}
|
|
4199
|
+
if (typeof this.actionItems !== 'undefined') {
|
|
4200
|
+
toReturn['actionItems'] = this.actionItems;
|
|
4201
|
+
}
|
|
4202
|
+
if (typeof this.sentiment !== 'undefined') {
|
|
4203
|
+
toReturn['sentiment'] = this.sentiment;
|
|
4204
|
+
}
|
|
4205
|
+
if (typeof this.sentimentExplanation !== 'undefined') {
|
|
4206
|
+
toReturn['sentimentExplanation'] = this.sentimentExplanation;
|
|
4207
|
+
}
|
|
4208
|
+
if (typeof this.salesScore !== 'undefined') {
|
|
4209
|
+
toReturn['salesScore'] = this.salesScore;
|
|
4210
|
+
}
|
|
4211
|
+
if (typeof this.salesScoreExplanation !== 'undefined') {
|
|
4212
|
+
toReturn['salesScoreExplanation'] = this.salesScoreExplanation;
|
|
4213
|
+
}
|
|
4214
|
+
if (typeof this.analysingModelUsed !== 'undefined') {
|
|
4215
|
+
toReturn['analysingModelUsed'] = this.analysingModelUsed;
|
|
4216
|
+
}
|
|
4217
|
+
if (typeof this.promptUsed !== 'undefined') {
|
|
4218
|
+
toReturn['promptUsed'] = this.promptUsed;
|
|
4219
|
+
}
|
|
4220
|
+
return toReturn;
|
|
4221
|
+
}
|
|
4222
|
+
}
|
|
4033
4223
|
class RawTranscript {
|
|
4034
4224
|
static fromProto(proto) {
|
|
4035
4225
|
let m = new RawTranscript();
|
|
@@ -4166,9 +4356,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
4166
4356
|
|
|
4167
4357
|
// *********************************
|
|
4168
4358
|
class ZoomApiService {
|
|
4169
|
-
constructor(
|
|
4170
|
-
this.
|
|
4171
|
-
this.
|
|
4359
|
+
constructor() {
|
|
4360
|
+
this.hostService = inject(HostService$1);
|
|
4361
|
+
this.http = inject(HttpClient);
|
|
4172
4362
|
this._host = this.hostService.hostWithScheme;
|
|
4173
4363
|
}
|
|
4174
4364
|
apiOptions() {
|
|
@@ -4185,12 +4375,12 @@ class ZoomApiService {
|
|
|
4185
4375
|
.pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
|
|
4186
4376
|
}
|
|
4187
4377
|
}
|
|
4188
|
-
ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [
|
|
4378
|
+
ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4189
4379
|
ZoomApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, providedIn: 'root' });
|
|
4190
4380
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, decorators: [{
|
|
4191
4381
|
type: Injectable,
|
|
4192
4382
|
args: [{ providedIn: 'root' }]
|
|
4193
|
-
}]
|
|
4383
|
+
}] });
|
|
4194
4384
|
|
|
4195
4385
|
// *********************************
|
|
4196
4386
|
class GoogleMeetApiService {
|
|
@@ -4376,9 +4566,9 @@ function createMeetInstantMeetingRequest(meetingTitle, startDateTime, attendees)
|
|
|
4376
4566
|
|
|
4377
4567
|
// *********************************
|
|
4378
4568
|
class ConversationAnalysisApiService {
|
|
4379
|
-
constructor(
|
|
4380
|
-
this.
|
|
4381
|
-
this.
|
|
4569
|
+
constructor() {
|
|
4570
|
+
this.hostService = inject(HostService$1);
|
|
4571
|
+
this.http = inject(HttpClient);
|
|
4382
4572
|
this._host = this.hostService.hostWithScheme;
|
|
4383
4573
|
}
|
|
4384
4574
|
apiOptions() {
|
|
@@ -4394,13 +4584,23 @@ class ConversationAnalysisApiService {
|
|
|
4394
4584
|
return this.http.post(this._host + "/meetings.v1.ConversationAnalysis/CreateRawTranscript", request.toApiJson(), this.apiOptions())
|
|
4395
4585
|
.pipe(map(resp => CreateRawTranscriptResponse.fromProto(resp)));
|
|
4396
4586
|
}
|
|
4587
|
+
listProcessedTranscripts(r) {
|
|
4588
|
+
const request = (r.toApiJson) ? r : new ListProcessedTranscriptsRequest(r);
|
|
4589
|
+
return this.http.post(this._host + "/meetings.v1.ConversationAnalysis/ListProcessedTranscripts", request.toApiJson(), this.apiOptions())
|
|
4590
|
+
.pipe(map(resp => ListProcessedTranscriptsResponse.fromProto(resp)));
|
|
4591
|
+
}
|
|
4592
|
+
getProcessedTranscripts(r) {
|
|
4593
|
+
const request = (r.toApiJson) ? r : new GetProcessedTranscriptsRequest(r);
|
|
4594
|
+
return this.http.post(this._host + "/meetings.v1.ConversationAnalysis/GetProcessedTranscripts", request.toApiJson(), this.apiOptions())
|
|
4595
|
+
.pipe(map(resp => GetProcessedTranscriptsResponse.fromProto(resp)));
|
|
4596
|
+
}
|
|
4397
4597
|
}
|
|
4398
|
-
ConversationAnalysisApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisApiService, deps: [
|
|
4598
|
+
ConversationAnalysisApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4399
4599
|
ConversationAnalysisApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisApiService, providedIn: 'root' });
|
|
4400
4600
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisApiService, decorators: [{
|
|
4401
4601
|
type: Injectable,
|
|
4402
4602
|
args: [{ providedIn: 'root' }]
|
|
4403
|
-
}]
|
|
4603
|
+
}] });
|
|
4404
4604
|
|
|
4405
4605
|
// *********************************
|
|
4406
4606
|
class MeetingGuestApiService {
|
|
@@ -5370,6 +5570,21 @@ class ConversationAnalysisService {
|
|
|
5370
5570
|
rawTranscript: rawTranscript
|
|
5371
5571
|
}).pipe(map(resp => resp?.id));
|
|
5372
5572
|
}
|
|
5573
|
+
listProcessedTranscripts(filters, pagingOptions) {
|
|
5574
|
+
return this.conversationAnalysisApiService.listProcessedTranscripts({
|
|
5575
|
+
filters: filters,
|
|
5576
|
+
pagingOptions: pagingOptions,
|
|
5577
|
+
}).pipe(map(resp => ({
|
|
5578
|
+
results: resp.processedTranscripts,
|
|
5579
|
+
nextCursor: resp.metadata?.nextCursor,
|
|
5580
|
+
hasMore: resp.metadata?.hasMore
|
|
5581
|
+
})));
|
|
5582
|
+
}
|
|
5583
|
+
getProcessedTranscript(id) {
|
|
5584
|
+
return this.conversationAnalysisApiService.getProcessedTranscripts({
|
|
5585
|
+
id: id
|
|
5586
|
+
}).pipe(map(resp => resp.processedTranscript));
|
|
5587
|
+
}
|
|
5373
5588
|
}
|
|
5374
5589
|
ConversationAnalysisService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisService, deps: [{ token: ConversationAnalysisApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5375
5590
|
ConversationAnalysisService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisService, providedIn: 'root' });
|
|
@@ -5382,5 +5597,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
5382
5597
|
* Generated bundle index. Do not edit.
|
|
5383
5598
|
*/
|
|
5384
5599
|
|
|
5385
|
-
export { CalendarType, Contact, ConversationAnalysisService, CreateCalendarRequest, CreateCalendarResponse, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, PagedResponse, TranscriptSource, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
|
|
5600
|
+
export { CalendarType, Contact, ConversationAnalysisService, CreateCalendarRequest, CreateCalendarResponse, DayOfWeek, FormFieldType, GuestService, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, PagedResponse, ProcessedTranscript, TranscriptSource, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
|
|
5386
5601
|
//# sourceMappingURL=vendasta-meetings.mjs.map
|