@otr-app/shared-backend-generated-client 2.5.8 → 2.5.11

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.
@@ -60,6 +60,7 @@ api/householdMateController.service.ts
60
60
  api/hubspotWebhookController.service.ts
61
61
  api/insuranceCalculatorController.service.ts
62
62
  api/intercomTicketController.service.ts
63
+ api/intercomWebhookController.service.ts
63
64
  api/lawfirmCaseDecisionController.service.ts
64
65
  api/lawfirmCasesController.service.ts
65
66
  api/lawfirmController.service.ts
@@ -114,6 +114,8 @@ export * from './insuranceCalculatorController.service';
114
114
  import { InsuranceCalculatorControllerService } from './insuranceCalculatorController.service';
115
115
  export * from './intercomTicketController.service';
116
116
  import { IntercomTicketControllerService } from './intercomTicketController.service';
117
+ export * from './intercomWebhookController.service';
118
+ import { IntercomWebhookControllerService } from './intercomWebhookController.service';
117
119
  export * from './lawfirmCaseDecisionController.service';
118
120
  import { LawfirmCaseDecisionControllerService } from './lawfirmCaseDecisionController.service';
119
121
  export * from './lawfirmCasesController.service';
@@ -230,4 +232,4 @@ export * from './websocketMessageController.service';
230
232
  import { WebsocketMessageControllerService } from './websocketMessageController.service';
231
233
  export * from './workflowStateController.service';
232
234
  import { WorkflowStateControllerService } from './workflowStateController.service';
233
- 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, IntercomTicketControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPipelineControllerService, 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];
235
+ 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, IntercomTicketControllerService, IntercomWebhookControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDocumentControllerService, LawfirmFeeCoverageControllerService, LawfirmPaymentModelControllerService, LawfirmRatesControllerService, LawfirmSettingsControllerService, LawfirmStorefrontControllerService, LawfirmSurchargeControllerService, LawfirmTransactionsControllerService, LawyerControllerService, LegalServicesControllerService, LineItemControllerService, ListCasesControllerService, MediaCreationControllerService, MessagesControllerService, NotesControllerService, OcrPipelineControllerService, 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,159 @@
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
+
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
+ import { Configuration } from '../configuration';
25
+
26
+
27
+
28
+ @Injectable({
29
+ providedIn: 'root'
30
+ })
31
+ export class IntercomWebhookControllerService {
32
+
33
+ protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
34
+ public defaultHeaders = new HttpHeaders();
35
+ public configuration = new Configuration();
36
+ public encoder: HttpParameterCodec;
37
+
38
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
39
+ if (configuration) {
40
+ this.configuration = configuration;
41
+ }
42
+ if (typeof this.configuration.basePath !== 'string') {
43
+ if (Array.isArray(basePath) && basePath.length > 0) {
44
+ basePath = basePath[0];
45
+ }
46
+
47
+ if (typeof basePath !== 'string') {
48
+ basePath = this.basePath;
49
+ }
50
+ this.configuration.basePath = basePath;
51
+ }
52
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
53
+ }
54
+
55
+
56
+ // @ts-ignore
57
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
58
+ if (typeof value === "object" && value instanceof Date === false) {
59
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
60
+ } else {
61
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
62
+ }
63
+ return httpParams;
64
+ }
65
+
66
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
67
+ if (value == null) {
68
+ return httpParams;
69
+ }
70
+
71
+ if (typeof value === "object") {
72
+ if (Array.isArray(value)) {
73
+ (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
74
+ } else if (value instanceof Date) {
75
+ if (key != null) {
76
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
77
+ } else {
78
+ throw Error("key may not be null if value is Date");
79
+ }
80
+ } else {
81
+ Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
82
+ httpParams, value[k], key != null ? `${key}.${k}` : k));
83
+ }
84
+ } else if (key != null) {
85
+ httpParams = httpParams.append(key, value);
86
+ } else {
87
+ throw Error("key may not be null if value is not object or array");
88
+ }
89
+ return httpParams;
90
+ }
91
+
92
+ /**
93
+ * onConversationNotification
94
+ * @param body body
95
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
96
+ * @param reportProgress flag to report request and response progress.
97
+ */
98
+ public onConversationNotificationUsingPOST(body: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
99
+ public onConversationNotificationUsingPOST(body: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
100
+ public onConversationNotificationUsingPOST(body: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
101
+ public onConversationNotificationUsingPOST(body: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
102
+ if (body === null || body === undefined) {
103
+ throw new Error('Required parameter body was null or undefined when calling onConversationNotificationUsingPOST.');
104
+ }
105
+
106
+ let localVarHeaders = this.defaultHeaders;
107
+
108
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
109
+ if (localVarHttpHeaderAcceptSelected === undefined) {
110
+ // to determine the Accept header
111
+ const httpHeaderAccepts: string[] = [
112
+ ];
113
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
114
+ }
115
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
116
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
117
+ }
118
+
119
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
120
+ if (localVarHttpContext === undefined) {
121
+ localVarHttpContext = new HttpContext();
122
+ }
123
+
124
+
125
+ // to determine the Content-Type header
126
+ const consumes: string[] = [
127
+ 'application/json'
128
+ ];
129
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
130
+ if (httpContentTypeSelected !== undefined) {
131
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
132
+ }
133
+
134
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
135
+ if (localVarHttpHeaderAcceptSelected) {
136
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
137
+ responseType_ = 'text';
138
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
139
+ responseType_ = 'json';
140
+ } else {
141
+ responseType_ = 'blob';
142
+ }
143
+ }
144
+
145
+ let localVarPath = `/api/v1/intercom/webhook/conversation-notification`;
146
+ return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
147
+ {
148
+ context: localVarHttpContext,
149
+ body: body,
150
+ responseType: <any>responseType_,
151
+ withCredentials: this.configuration.withCredentials,
152
+ headers: localVarHeaders,
153
+ observe: observe,
154
+ reportProgress: reportProgress
155
+ }
156
+ );
157
+ }
158
+
159
+ }
@@ -60,6 +60,7 @@ import { HouseholdMateControllerService } from './api/householdMateController.se
60
60
  import { HubspotWebhookControllerService } from './api/hubspotWebhookController.service';
61
61
  import { InsuranceCalculatorControllerService } from './api/insuranceCalculatorController.service';
62
62
  import { IntercomTicketControllerService } from './api/intercomTicketController.service';
63
+ import { IntercomWebhookControllerService } from './api/intercomWebhookController.service';
63
64
  import { LawfirmCaseDecisionControllerService } from './api/lawfirmCaseDecisionController.service';
64
65
  import { LawfirmCasesControllerService } from './api/lawfirmCasesController.service';
65
66
  import { LawfirmControllerService } from './api/lawfirmController.service';
@@ -8861,6 +8861,43 @@ angular.module('otrBackendService', [])
8861
8861
 
8862
8862
  return deferred.promise;
8863
8863
  };
8864
+ /**
8865
+ * onConversationNotification
8866
+ * @method
8867
+ * @name OtrService#onConversationNotificationUsingPOST
8868
+ * @param {object} parameters - method options and parameters
8869
+ * @param {} parameters.body - body
8870
+ */
8871
+ OtrService.prototype.onConversationNotificationUsingPOST = function(parameters) {
8872
+ if (parameters === undefined) {
8873
+ parameters = {};
8874
+ }
8875
+ var deferred = $q.defer();
8876
+ var domain = this.domain,
8877
+ path = '/api/v1/intercom/webhook/conversation-notification';
8878
+ var body = {},
8879
+ queryParameters = {},
8880
+ headers = {},
8881
+ form = {};
8882
+
8883
+ headers['Accept'] = ['*/*'];
8884
+ headers['Content-Type'] = ['application/json'];
8885
+
8886
+ if (parameters['body'] !== undefined) {
8887
+ body = parameters['body'];
8888
+ }
8889
+
8890
+ if (parameters['body'] === undefined) {
8891
+ deferred.reject(new Error('Missing required parameter: body'));
8892
+ return deferred.promise;
8893
+ }
8894
+
8895
+ queryParameters = mergeQueryParams(parameters, queryParameters);
8896
+
8897
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
8898
+
8899
+ return deferred.promise;
8900
+ };
8864
8901
  /**
8865
8902
  * refundLawfirmFee
8866
8903
  * @method