@otr-app/shared-backend-generated-client 2.3.268 → 2.3.269

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.
@@ -33,6 +33,7 @@ api/citationController.service.ts
33
33
  api/coachingCardsController.service.ts
34
34
  api/configurationController.service.ts
35
35
  api/consoleListController.service.ts
36
+ api/contactLoopWebhookController.service.ts
36
37
  api/contactTimelineController.service.ts
37
38
  api/conversationController.service.ts
38
39
  api/countyController.service.ts
@@ -256,6 +257,7 @@ model/coachingCardsModel.ts
256
257
  model/coachingLinks.ts
257
258
  model/commonHeader.ts
258
259
  model/confidenceField.ts
260
+ model/contactLoopWebhookRequest.ts
259
261
  model/contactTimelineResponse.ts
260
262
  model/convertPdfToImageModel.ts
261
263
  model/convertPdfToImageRequest.ts
@@ -60,6 +60,8 @@ export * from './configurationController.service';
60
60
  import { ConfigurationControllerService } from './configurationController.service';
61
61
  export * from './consoleListController.service';
62
62
  import { ConsoleListControllerService } from './consoleListController.service';
63
+ export * from './contactLoopWebhookController.service';
64
+ import { ContactLoopWebhookControllerService } from './contactLoopWebhookController.service';
63
65
  export * from './contactTimelineController.service';
64
66
  import { ContactTimelineControllerService } from './contactTimelineController.service';
65
67
  export * from './conversationController.service';
@@ -224,4 +226,4 @@ export * from './websocketMessageController.service';
224
226
  import { WebsocketMessageControllerService } from './websocketMessageController.service';
225
227
  export * from './workflowStateController.service';
226
228
  import { WorkflowStateControllerService } from './workflowStateController.service';
227
- export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, DriverLicenseControllerService, EmailSubscriptionControllerService, EmployeeControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, InsuranceCalculatorControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPredictionControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UserSocialProfileControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
229
+ export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactLoopWebhookControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, DriverLicenseControllerService, EmailSubscriptionControllerService, EmployeeControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, InsuranceCalculatorControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPredictionControllerService, OnDemandRequestControllerService, OneTimePasswordControllerService, PhoneLeadsControllerService, PushNotificationControllerService, RecurringBillingControllerService, RefLinkControllerService, ReferralCodeControllerService, ReferralControllerService, ReferralSourceControllerService, RefundEligibilityControllerService, RegistrationControllerService, ReportingControllerService, ScheduledTaskControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UserSocialProfileControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
@@ -0,0 +1,162 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /* tslint:disable:no-unused-variable member-ordering */
13
+
14
+ import { Inject, Injectable, Optional } from '@angular/core';
15
+ import { HttpClient, HttpHeaders, HttpParams,
16
+ HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
17
+ } from '@angular/common/http';
18
+ import { CustomHttpParameterCodec } from '../encoder';
19
+ import { Observable } from 'rxjs';
20
+
21
+ // @ts-ignore
22
+ import { ContactLoopWebhookRequest } from '../model/contactLoopWebhookRequest';
23
+
24
+ // @ts-ignore
25
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
26
+ import { Configuration } from '../configuration';
27
+
28
+
29
+
30
+ @Injectable({
31
+ providedIn: 'root'
32
+ })
33
+ export class ContactLoopWebhookControllerService {
34
+
35
+ protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
36
+ public defaultHeaders = new HttpHeaders();
37
+ public configuration = new Configuration();
38
+ public encoder: HttpParameterCodec;
39
+
40
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
41
+ if (configuration) {
42
+ this.configuration = configuration;
43
+ }
44
+ if (typeof this.configuration.basePath !== 'string') {
45
+ if (Array.isArray(basePath) && basePath.length > 0) {
46
+ basePath = basePath[0];
47
+ }
48
+
49
+ if (typeof basePath !== 'string') {
50
+ basePath = this.basePath;
51
+ }
52
+ this.configuration.basePath = basePath;
53
+ }
54
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
55
+ }
56
+
57
+
58
+ // @ts-ignore
59
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
60
+ if (typeof value === "object" && value instanceof Date === false) {
61
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
62
+ } else {
63
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
64
+ }
65
+ return httpParams;
66
+ }
67
+
68
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
69
+ if (value == null) {
70
+ return httpParams;
71
+ }
72
+
73
+ if (typeof value === "object") {
74
+ if (Array.isArray(value)) {
75
+ (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
76
+ } else if (value instanceof Date) {
77
+ if (key != null) {
78
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
79
+ } else {
80
+ throw Error("key may not be null if value is Date");
81
+ }
82
+ } else {
83
+ Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
84
+ httpParams, value[k], key != null ? `${key}.${k}` : k));
85
+ }
86
+ } else if (key != null) {
87
+ httpParams = httpParams.append(key, value);
88
+ } else {
89
+ throw Error("key may not be null if value is not object or array");
90
+ }
91
+ return httpParams;
92
+ }
93
+
94
+ /**
95
+ * handleContactLoopEvent
96
+ * @param request request
97
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
98
+ * @param reportProgress flag to report request and response progress.
99
+ */
100
+ public handleContactLoopEventUsingPOST(request: ContactLoopWebhookRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<string>;
101
+ public handleContactLoopEventUsingPOST(request: ContactLoopWebhookRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<string>>;
102
+ public handleContactLoopEventUsingPOST(request: ContactLoopWebhookRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<string>>;
103
+ public handleContactLoopEventUsingPOST(request: ContactLoopWebhookRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
104
+ if (request === null || request === undefined) {
105
+ throw new Error('Required parameter request was null or undefined when calling handleContactLoopEventUsingPOST.');
106
+ }
107
+
108
+ let localVarHeaders = this.defaultHeaders;
109
+
110
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
111
+ if (localVarHttpHeaderAcceptSelected === undefined) {
112
+ // to determine the Accept header
113
+ const httpHeaderAccepts: string[] = [
114
+ '*/*'
115
+ ];
116
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
117
+ }
118
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
119
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
120
+ }
121
+
122
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
123
+ if (localVarHttpContext === undefined) {
124
+ localVarHttpContext = new HttpContext();
125
+ }
126
+
127
+
128
+ // to determine the Content-Type header
129
+ const consumes: string[] = [
130
+ 'application/json'
131
+ ];
132
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
133
+ if (httpContentTypeSelected !== undefined) {
134
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
135
+ }
136
+
137
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
138
+ if (localVarHttpHeaderAcceptSelected) {
139
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
140
+ responseType_ = 'text';
141
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
142
+ responseType_ = 'json';
143
+ } else {
144
+ responseType_ = 'blob';
145
+ }
146
+ }
147
+
148
+ let localVarPath = `/api/v1/contact-loop/webhook`;
149
+ return this.httpClient.request<string>('post', `${this.configuration.basePath}${localVarPath}`,
150
+ {
151
+ context: localVarHttpContext,
152
+ body: request,
153
+ responseType: <any>responseType_,
154
+ withCredentials: this.configuration.withCredentials,
155
+ headers: localVarHeaders,
156
+ observe: observe,
157
+ reportProgress: reportProgress
158
+ }
159
+ );
160
+ }
161
+
162
+ }
@@ -33,6 +33,7 @@ import { CitationControllerService } from './api/citationController.service';
33
33
  import { CoachingCardsControllerService } from './api/coachingCardsController.service';
34
34
  import { ConfigurationControllerService } from './api/configurationController.service';
35
35
  import { ConsoleListControllerService } from './api/consoleListController.service';
36
+ import { ContactLoopWebhookControllerService } from './api/contactLoopWebhookController.service';
36
37
  import { ContactTimelineControllerService } from './api/contactTimelineController.service';
37
38
  import { ConversationControllerService } from './api/conversationController.service';
38
39
  import { CountyControllerService } from './api/countyController.service';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * OffTheRecord Rest Service API - Devo
3
+ * A service to handle your traffic tickets
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+
14
+ export interface ContactLoopWebhookRequest {
15
+ call_duration?: number;
16
+ call_result?: string;
17
+ call_type?: string;
18
+ event_type?: string;
19
+ intent_name?: string;
20
+ is_scheduled?: boolean;
21
+ ivr_keypress?: number;
22
+ lead_phone?: string;
23
+ message?: string;
24
+ timestamp?: string;
25
+ url?: string;
26
+ }
27
+
@@ -135,6 +135,7 @@ export * from './coachingCardsModel';
135
135
  export * from './coachingLinks';
136
136
  export * from './commonHeader';
137
137
  export * from './confidenceField';
138
+ export * from './contactLoopWebhookRequest';
138
139
  export * from './contactTimelineResponse';
139
140
  export * from './convertPdfToImageModel';
140
141
  export * from './convertPdfToImageRequest';
@@ -6316,6 +6316,43 @@ angular.module('otrBackendService', [])
6316
6316
 
6317
6317
  return deferred.promise;
6318
6318
  };
6319
+ /**
6320
+ * handleContactLoopEvent
6321
+ * @method
6322
+ * @name OtrService#handleContactLoopEventUsingPOST
6323
+ * @param {object} parameters - method options and parameters
6324
+ * @param {} parameters.request - request
6325
+ */
6326
+ OtrService.prototype.handleContactLoopEventUsingPOST = function(parameters) {
6327
+ if (parameters === undefined) {
6328
+ parameters = {};
6329
+ }
6330
+ var deferred = $q.defer();
6331
+ var domain = this.domain,
6332
+ path = '/api/v1/contact-loop/webhook';
6333
+ var body = {},
6334
+ queryParameters = {},
6335
+ headers = {},
6336
+ form = {};
6337
+
6338
+ headers['Accept'] = ['*/*'];
6339
+ headers['Content-Type'] = ['application/json'];
6340
+
6341
+ if (parameters['request'] !== undefined) {
6342
+ body = parameters['request'];
6343
+ }
6344
+
6345
+ if (parameters['request'] === undefined) {
6346
+ deferred.reject(new Error('Missing required parameter: request'));
6347
+ return deferred.promise;
6348
+ }
6349
+
6350
+ queryParameters = mergeQueryParams(parameters, queryParameters);
6351
+
6352
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
6353
+
6354
+ return deferred.promise;
6355
+ };
6319
6356
  /**
6320
6357
  * getCounties
6321
6358
  * @method