@otr-app/shared-backend-generated-client 2.3.159 → 2.3.160

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.
@@ -13,6 +13,7 @@ api/authenticationController.service.ts
13
13
  api/awsCredentialsController.service.ts
14
14
  api/blogWebhookController.service.ts
15
15
  api/branchLinkController.service.ts
16
+ api/captchaController.service.ts
16
17
  api/caseActionsController.service.ts
17
18
  api/caseController.service.ts
18
19
  api/caseCreationController.service.ts
@@ -810,6 +811,8 @@ model/userWatchlistsModel.ts
810
811
  model/validateDirectMailRequest.ts
811
812
  model/validateDirectMailResponse.ts
812
813
  model/validateUserEmailResponse.ts
814
+ model/verifyCaptchaTokenRequest.ts
815
+ model/verifyCaptchaTokenResponse.ts
813
816
  model/verifyMailingAddressRequest.ts
814
817
  model/verifyMailingAddressResponse.ts
815
818
  model/verifyPasswordResetTokenResponse.ts
@@ -20,6 +20,8 @@ export * from './blogWebhookController.service';
20
20
  import { BlogWebhookControllerService } from './blogWebhookController.service';
21
21
  export * from './branchLinkController.service';
22
22
  import { BranchLinkControllerService } from './branchLinkController.service';
23
+ export * from './captchaController.service';
24
+ import { CaptchaControllerService } from './captchaController.service';
23
25
  export * from './caseActionsController.service';
24
26
  import { CaseActionsControllerService } from './caseActionsController.service';
25
27
  export * from './caseController.service';
@@ -212,4 +214,4 @@ export * from './websocketMessageController.service';
212
214
  import { WebsocketMessageControllerService } from './websocketMessageController.service';
213
215
  export * from './workflowStateController.service';
214
216
  import { WorkflowStateControllerService } from './workflowStateController.service';
215
- export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, EmailSubscriptionControllerService, 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, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
217
+ export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BlogWebhookControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CertificateControllerService, CitationAuditControllerService, CitationControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, EmailSubscriptionControllerService, 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, 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 { VerifyCaptchaTokenRequest } from '../model/verifyCaptchaTokenRequest';
23
+ // @ts-ignore
24
+ import { VerifyCaptchaTokenResponse } from '../model/verifyCaptchaTokenResponse';
25
+
26
+ // @ts-ignore
27
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
28
+ import { Configuration } from '../configuration';
29
+
30
+
31
+
32
+ @Injectable({
33
+ providedIn: 'root'
34
+ })
35
+ export class CaptchaControllerService {
36
+
37
+ protected basePath = 'http://otr-backend-service-us-devo.offtherecord.com';
38
+ public defaultHeaders = new HttpHeaders();
39
+ public configuration = new Configuration();
40
+ public encoder: HttpParameterCodec;
41
+
42
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
43
+ if (configuration) {
44
+ this.configuration = configuration;
45
+ }
46
+ if (typeof this.configuration.basePath !== 'string') {
47
+ if (Array.isArray(basePath) && basePath.length > 0) {
48
+ basePath = basePath[0];
49
+ }
50
+
51
+ if (typeof basePath !== 'string') {
52
+ basePath = this.basePath;
53
+ }
54
+ this.configuration.basePath = basePath;
55
+ }
56
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
57
+ }
58
+
59
+
60
+ // @ts-ignore
61
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
62
+ if (typeof value === "object" && value instanceof Date === false) {
63
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
64
+ } else {
65
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
66
+ }
67
+ return httpParams;
68
+ }
69
+
70
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
71
+ if (value == null) {
72
+ return httpParams;
73
+ }
74
+
75
+ if (typeof value === "object") {
76
+ if (Array.isArray(value)) {
77
+ (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
78
+ } else if (value instanceof Date) {
79
+ if (key != null) {
80
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
81
+ } else {
82
+ throw Error("key may not be null if value is Date");
83
+ }
84
+ } else {
85
+ Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
86
+ httpParams, value[k], key != null ? `${key}.${k}` : k));
87
+ }
88
+ } else if (key != null) {
89
+ httpParams = httpParams.append(key, value);
90
+ } else {
91
+ throw Error("key may not be null if value is not object or array");
92
+ }
93
+ return httpParams;
94
+ }
95
+
96
+ /**
97
+ * verifyCaptchaToken
98
+ * @param request request
99
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
100
+ * @param reportProgress flag to report request and response progress.
101
+ */
102
+ public verifyCaptchaTokenUsingPOST(request: VerifyCaptchaTokenRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<VerifyCaptchaTokenResponse>;
103
+ public verifyCaptchaTokenUsingPOST(request: VerifyCaptchaTokenRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<VerifyCaptchaTokenResponse>>;
104
+ public verifyCaptchaTokenUsingPOST(request: VerifyCaptchaTokenRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<VerifyCaptchaTokenResponse>>;
105
+ public verifyCaptchaTokenUsingPOST(request: VerifyCaptchaTokenRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
106
+ if (request === null || request === undefined) {
107
+ throw new Error('Required parameter request was null or undefined when calling verifyCaptchaTokenUsingPOST.');
108
+ }
109
+
110
+ let localVarHeaders = this.defaultHeaders;
111
+
112
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
113
+ if (localVarHttpHeaderAcceptSelected === undefined) {
114
+ // to determine the Accept header
115
+ const httpHeaderAccepts: string[] = [
116
+ '*/*'
117
+ ];
118
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
119
+ }
120
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
121
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
122
+ }
123
+
124
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
125
+ if (localVarHttpContext === undefined) {
126
+ localVarHttpContext = new HttpContext();
127
+ }
128
+
129
+
130
+ // to determine the Content-Type header
131
+ const consumes: string[] = [
132
+ 'application/json'
133
+ ];
134
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
135
+ if (httpContentTypeSelected !== undefined) {
136
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
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/captcha/verify-token`;
151
+ return this.httpClient.request<VerifyCaptchaTokenResponse>('post', `${this.configuration.basePath}${localVarPath}`,
152
+ {
153
+ context: localVarHttpContext,
154
+ body: request,
155
+ responseType: <any>responseType_,
156
+ withCredentials: this.configuration.withCredentials,
157
+ headers: localVarHeaders,
158
+ observe: observe,
159
+ reportProgress: reportProgress
160
+ }
161
+ );
162
+ }
163
+
164
+ }
@@ -13,6 +13,7 @@ import { AuthenticationControllerService } from './api/authenticationController.
13
13
  import { AwsCredentialsControllerService } from './api/awsCredentialsController.service';
14
14
  import { BlogWebhookControllerService } from './api/blogWebhookController.service';
15
15
  import { BranchLinkControllerService } from './api/branchLinkController.service';
16
+ import { CaptchaControllerService } from './api/captchaController.service';
16
17
  import { CaseActionsControllerService } from './api/caseActionsController.service';
17
18
  import { CaseControllerService } from './api/caseController.service';
18
19
  import { CaseCreationControllerService } from './api/caseCreationController.service';
@@ -694,6 +694,8 @@ export * from './userWatchlistsModel';
694
694
  export * from './validateDirectMailRequest';
695
695
  export * from './validateDirectMailResponse';
696
696
  export * from './validateUserEmailResponse';
697
+ export * from './verifyCaptchaTokenRequest';
698
+ export * from './verifyCaptchaTokenResponse';
697
699
  export * from './verifyMailingAddressRequest';
698
700
  export * from './verifyMailingAddressResponse';
699
701
  export * from './verifyPasswordResetTokenResponse';
@@ -0,0 +1,18 @@
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 VerifyCaptchaTokenRequest {
15
+ ipAddress?: string;
16
+ token: string;
17
+ }
18
+
@@ -0,0 +1,22 @@
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 VerifyCaptchaTokenResponse {
15
+ action?: string;
16
+ challengedAt?: string;
17
+ errorCodes?: Array<string>;
18
+ hostname?: string;
19
+ score?: number;
20
+ successful?: boolean;
21
+ }
22
+
@@ -756,6 +756,43 @@ angular.module('otrBackendService', [])
756
756
 
757
757
  return deferred.promise;
758
758
  };
759
+ /**
760
+ * verifyCaptchaToken
761
+ * @method
762
+ * @name OtrService#verifyCaptchaTokenUsingPOST
763
+ * @param {object} parameters - method options and parameters
764
+ * @param {} parameters.request - request
765
+ */
766
+ OtrService.prototype.verifyCaptchaTokenUsingPOST = function(parameters) {
767
+ if (parameters === undefined) {
768
+ parameters = {};
769
+ }
770
+ var deferred = $q.defer();
771
+ var domain = this.domain,
772
+ path = '/api/v1/captcha/verify-token';
773
+ var body = {},
774
+ queryParameters = {},
775
+ headers = {},
776
+ form = {};
777
+
778
+ headers['Accept'] = ['*/*'];
779
+ headers['Content-Type'] = ['application/json'];
780
+
781
+ if (parameters['request'] !== undefined) {
782
+ body = parameters['request'];
783
+ }
784
+
785
+ if (parameters['request'] === undefined) {
786
+ deferred.reject(new Error('Missing required parameter: request'));
787
+ return deferred.promise;
788
+ }
789
+
790
+ queryParameters = mergeQueryParams(parameters, queryParameters);
791
+
792
+ this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
793
+
794
+ return deferred.promise;
795
+ };
759
796
  /**
760
797
  * getCaseStatuses
761
798
  * @method