@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();
|
|
@@ -4167,9 +4357,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
4167
4357
|
|
|
4168
4358
|
// *********************************
|
|
4169
4359
|
class ZoomApiService {
|
|
4170
|
-
constructor(
|
|
4171
|
-
this.
|
|
4172
|
-
this.
|
|
4360
|
+
constructor() {
|
|
4361
|
+
this.hostService = inject(HostService$1);
|
|
4362
|
+
this.http = inject(HttpClient);
|
|
4173
4363
|
this._host = this.hostService.hostWithScheme;
|
|
4174
4364
|
}
|
|
4175
4365
|
apiOptions() {
|
|
@@ -4186,12 +4376,12 @@ class ZoomApiService {
|
|
|
4186
4376
|
.pipe(map(resp => CreateZoomMeetingResponse.fromProto(resp)));
|
|
4187
4377
|
}
|
|
4188
4378
|
}
|
|
4189
|
-
ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [
|
|
4379
|
+
ZoomApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4190
4380
|
ZoomApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, providedIn: 'root' });
|
|
4191
4381
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ZoomApiService, decorators: [{
|
|
4192
4382
|
type: Injectable,
|
|
4193
4383
|
args: [{ providedIn: 'root' }]
|
|
4194
|
-
}]
|
|
4384
|
+
}] });
|
|
4195
4385
|
|
|
4196
4386
|
// *********************************
|
|
4197
4387
|
class GoogleMeetApiService {
|
|
@@ -4593,9 +4783,9 @@ class PagedResponse {
|
|
|
4593
4783
|
|
|
4594
4784
|
// *********************************
|
|
4595
4785
|
class ConversationAnalysisApiService {
|
|
4596
|
-
constructor(
|
|
4597
|
-
this.
|
|
4598
|
-
this.
|
|
4786
|
+
constructor() {
|
|
4787
|
+
this.hostService = inject(HostService$1);
|
|
4788
|
+
this.http = inject(HttpClient);
|
|
4599
4789
|
this._host = this.hostService.hostWithScheme;
|
|
4600
4790
|
}
|
|
4601
4791
|
apiOptions() {
|
|
@@ -4611,13 +4801,23 @@ class ConversationAnalysisApiService {
|
|
|
4611
4801
|
return this.http.post(this._host + "/meetings.v1.ConversationAnalysis/CreateRawTranscript", request.toApiJson(), this.apiOptions())
|
|
4612
4802
|
.pipe(map(resp => CreateRawTranscriptResponse.fromProto(resp)));
|
|
4613
4803
|
}
|
|
4804
|
+
listProcessedTranscripts(r) {
|
|
4805
|
+
const request = (r.toApiJson) ? r : new ListProcessedTranscriptsRequest(r);
|
|
4806
|
+
return this.http.post(this._host + "/meetings.v1.ConversationAnalysis/ListProcessedTranscripts", request.toApiJson(), this.apiOptions())
|
|
4807
|
+
.pipe(map(resp => ListProcessedTranscriptsResponse.fromProto(resp)));
|
|
4808
|
+
}
|
|
4809
|
+
getProcessedTranscripts(r) {
|
|
4810
|
+
const request = (r.toApiJson) ? r : new GetProcessedTranscriptsRequest(r);
|
|
4811
|
+
return this.http.post(this._host + "/meetings.v1.ConversationAnalysis/GetProcessedTranscripts", request.toApiJson(), this.apiOptions())
|
|
4812
|
+
.pipe(map(resp => GetProcessedTranscriptsResponse.fromProto(resp)));
|
|
4813
|
+
}
|
|
4614
4814
|
}
|
|
4615
|
-
ConversationAnalysisApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisApiService, deps: [
|
|
4815
|
+
ConversationAnalysisApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4616
4816
|
ConversationAnalysisApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisApiService, providedIn: 'root' });
|
|
4617
4817
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisApiService, decorators: [{
|
|
4618
4818
|
type: Injectable,
|
|
4619
4819
|
args: [{ providedIn: 'root' }]
|
|
4620
|
-
}]
|
|
4820
|
+
}] });
|
|
4621
4821
|
|
|
4622
4822
|
// *********************************
|
|
4623
4823
|
class MeetingGuestApiService {
|
|
@@ -5334,6 +5534,24 @@ class ConversationAnalysisService {
|
|
|
5334
5534
|
rawTranscript: rawTranscript
|
|
5335
5535
|
}).pipe(map(resp => resp === null || resp === void 0 ? void 0 : resp.id));
|
|
5336
5536
|
}
|
|
5537
|
+
listProcessedTranscripts(filters, pagingOptions) {
|
|
5538
|
+
return this.conversationAnalysisApiService.listProcessedTranscripts({
|
|
5539
|
+
filters: filters,
|
|
5540
|
+
pagingOptions: pagingOptions,
|
|
5541
|
+
}).pipe(map(resp => {
|
|
5542
|
+
var _a, _b;
|
|
5543
|
+
return ({
|
|
5544
|
+
results: resp.processedTranscripts,
|
|
5545
|
+
nextCursor: (_a = resp.metadata) === null || _a === void 0 ? void 0 : _a.nextCursor,
|
|
5546
|
+
hasMore: (_b = resp.metadata) === null || _b === void 0 ? void 0 : _b.hasMore
|
|
5547
|
+
});
|
|
5548
|
+
}));
|
|
5549
|
+
}
|
|
5550
|
+
getProcessedTranscript(id) {
|
|
5551
|
+
return this.conversationAnalysisApiService.getProcessedTranscripts({
|
|
5552
|
+
id: id
|
|
5553
|
+
}).pipe(map(resp => resp.processedTranscript));
|
|
5554
|
+
}
|
|
5337
5555
|
}
|
|
5338
5556
|
ConversationAnalysisService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisService, deps: [{ token: ConversationAnalysisApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5339
5557
|
ConversationAnalysisService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationAnalysisService, providedIn: 'root' });
|
|
@@ -5346,5 +5564,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
5346
5564
|
* Generated bundle index. Do not edit.
|
|
5347
5565
|
*/
|
|
5348
5566
|
|
|
5349
|
-
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 };
|
|
5567
|
+
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 };
|
|
5350
5568
|
//# sourceMappingURL=vendasta-meetings.mjs.map
|