@otr-app/shared-backend-generated-client 2.4.8 → 2.4.9

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.
@@ -59,6 +59,7 @@ api/getCaseController.service.ts
59
59
  api/householdMateController.service.ts
60
60
  api/hubspotWebhookController.service.ts
61
61
  api/insuranceCalculatorController.service.ts
62
+ api/intercomTicketController.service.ts
62
63
  api/lawfirmCaseDecisionController.service.ts
63
64
  api/lawfirmCasesController.service.ts
64
65
  api/lawfirmController.service.ts
@@ -112,6 +112,8 @@ export * from './hubspotWebhookController.service';
112
112
  import { HubspotWebhookControllerService } from './hubspotWebhookController.service';
113
113
  export * from './insuranceCalculatorController.service';
114
114
  import { InsuranceCalculatorControllerService } from './insuranceCalculatorController.service';
115
+ export * from './intercomTicketController.service';
116
+ import { IntercomTicketControllerService } from './intercomTicketController.service';
115
117
  export * from './lawfirmCaseDecisionController.service';
116
118
  import { LawfirmCaseDecisionControllerService } from './lawfirmCaseDecisionController.service';
117
119
  export * from './lawfirmCasesController.service';
@@ -226,4 +228,4 @@ export * from './websocketMessageController.service';
226
228
  import { WebsocketMessageControllerService } from './websocketMessageController.service';
227
229
  export * from './workflowStateController.service';
228
230
  import { WorkflowStateControllerService } from './workflowStateController.service';
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];
231
+ 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, 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,164 @@
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 { IntercomSearchTicketsResponse } from '../model/intercomSearchTicketsResponse';
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 IntercomTicketControllerService {
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
+ * getTicketsByEmail
96
+ * @param userId userId
97
+ * @param length length
98
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
99
+ * @param reportProgress flag to report request and response progress.
100
+ */
101
+ public getTicketsByEmailUsingGET(userId: string, length?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<IntercomSearchTicketsResponse>;
102
+ public getTicketsByEmailUsingGET(userId: string, length?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<IntercomSearchTicketsResponse>>;
103
+ public getTicketsByEmailUsingGET(userId: string, length?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<IntercomSearchTicketsResponse>>;
104
+ public getTicketsByEmailUsingGET(userId: string, length?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
105
+ if (userId === null || userId === undefined) {
106
+ throw new Error('Required parameter userId was null or undefined when calling getTicketsByEmailUsingGET.');
107
+ }
108
+
109
+ let localVarQueryParameters = new HttpParams({encoder: this.encoder});
110
+ if (length !== undefined && length !== null) {
111
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
112
+ <any>length, 'length');
113
+ }
114
+ if (userId !== undefined && userId !== null) {
115
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
116
+ <any>userId, 'userId');
117
+ }
118
+
119
+ let localVarHeaders = this.defaultHeaders;
120
+
121
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
122
+ if (localVarHttpHeaderAcceptSelected === undefined) {
123
+ // to determine the Accept header
124
+ const httpHeaderAccepts: string[] = [
125
+ 'application/json'
126
+ ];
127
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
128
+ }
129
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
130
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
131
+ }
132
+
133
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
134
+ if (localVarHttpContext === undefined) {
135
+ localVarHttpContext = new HttpContext();
136
+ }
137
+
138
+
139
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
140
+ if (localVarHttpHeaderAcceptSelected) {
141
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
142
+ responseType_ = 'text';
143
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
144
+ responseType_ = 'json';
145
+ } else {
146
+ responseType_ = 'blob';
147
+ }
148
+ }
149
+
150
+ let localVarPath = `/api/v1/intercom/tickets/search`;
151
+ return this.httpClient.request<IntercomSearchTicketsResponse>('get', `${this.configuration.basePath}${localVarPath}`,
152
+ {
153
+ context: localVarHttpContext,
154
+ params: localVarQueryParameters,
155
+ responseType: <any>responseType_,
156
+ withCredentials: this.configuration.withCredentials,
157
+ headers: localVarHeaders,
158
+ observe: observe,
159
+ reportProgress: reportProgress
160
+ }
161
+ );
162
+ }
163
+
164
+ }
@@ -59,6 +59,7 @@ import { GetCaseControllerService } from './api/getCaseController.service';
59
59
  import { HouseholdMateControllerService } from './api/householdMateController.service';
60
60
  import { HubspotWebhookControllerService } from './api/hubspotWebhookController.service';
61
61
  import { InsuranceCalculatorControllerService } from './api/insuranceCalculatorController.service';
62
+ import { IntercomTicketControllerService } from './api/intercomTicketController.service';
62
63
  import { LawfirmCaseDecisionControllerService } from './api/lawfirmCaseDecisionController.service';
63
64
  import { LawfirmCasesControllerService } from './api/lawfirmCasesController.service';
64
65
  import { LawfirmControllerService } from './api/lawfirmController.service';
@@ -8503,6 +8503,50 @@ angular.module('otrBackendService', [])
8503
8503
 
8504
8504
  return deferred.promise;
8505
8505
  };
8506
+ /**
8507
+ * getTicketsByEmail
8508
+ * @method
8509
+ * @name OtrService#getTicketsByEmailUsingGET
8510
+ * @param {object} parameters - method options and parameters
8511
+ * @param {integer} parameters.length - length
8512
+ * @param {string} parameters.userId - userId
8513
+ */
8514
+ OtrService.prototype.getTicketsByEmailUsingGET = function(parameters) {
8515
+ if (parameters === undefined) {
8516
+ parameters = {};
8517
+ }
8518
+ var deferred = $q.defer();
8519
+ var domain = this.domain,
8520
+ path = '/api/v1/intercom/tickets/search';
8521
+ var body = {},
8522
+ queryParameters = {},
8523
+ headers = {},
8524
+ form = {};
8525
+
8526
+ headers['Accept'] = ['application/json'];
8527
+
8528
+ /** set default value **/
8529
+ queryParameters['length'] = 100;
8530
+
8531
+ if (parameters['length'] !== undefined) {
8532
+ queryParameters['length'] = parameters['length'];
8533
+ }
8534
+
8535
+ if (parameters['userId'] !== undefined) {
8536
+ queryParameters['userId'] = parameters['userId'];
8537
+ }
8538
+
8539
+ if (parameters['userId'] === undefined) {
8540
+ deferred.reject(new Error('Missing required parameter: userId'));
8541
+ return deferred.promise;
8542
+ }
8543
+
8544
+ queryParameters = mergeQueryParams(parameters, queryParameters);
8545
+
8546
+ this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
8547
+
8548
+ return deferred.promise;
8549
+ };
8506
8550
  /**
8507
8551
  * refundLawfirmFee
8508
8552
  * @method