@otr-app/shared-backend-generated-client 2.5.168 → 2.5.169
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/dist/angular/.openapi-generator/FILES +2 -0
- package/dist/angular/api/api.ts +3 -1
- package/dist/angular/api/shortLivedTokenController.service.ts +152 -0
- package/dist/angular/api/webSocketController.service.ts +25 -5
- package/dist/angular/api.module.ts +1 -0
- package/dist/angular/model/issueShortLivedTokenResponse.ts +17 -0
- package/dist/angular/model/models.ts +1 -0
- package/dist/otrBackendService.js +54 -0
- package/dist/otrBackendService.min.js +2 -2
- package/dist/typescript/api/ShortLivedTokenControllerApi.d.ts +26 -0
- package/dist/typescript/api/ShortLivedTokenControllerApi.js +49 -0
- package/dist/typescript/api/WebSocketControllerApi.d.ts +3 -1
- package/dist/typescript/api/WebSocketControllerApi.js +17 -1
- package/dist/typescript/api/api.d.ts +3 -1
- package/dist/typescript/api/api.js +3 -1
- package/dist/typescript/api.module.js +1 -0
- package/dist/typescript/model/IssueShortLivedTokenResponse.d.ts +14 -0
- package/dist/typescript/model/IssueShortLivedTokenResponse.js +12 -0
- package/dist/typescript/model/models.d.ts +1 -0
- package/dist/typescript/model/models.js +1 -0
- package/dist/typescript-fetch/apis/ShortLivedTokenControllerApi.d.ts +29 -0
- package/dist/typescript-fetch/apis/ShortLivedTokenControllerApi.js +57 -0
- package/dist/typescript-fetch/apis/WebSocketControllerApi.d.ts +4 -2
- package/dist/typescript-fetch/apis/WebSocketControllerApi.js +15 -2
- package/dist/typescript-fetch/apis/index.d.ts +1 -0
- package/dist/typescript-fetch/apis/index.js +1 -0
- package/dist/typescript-fetch/models/IssueShortLivedTokenResponse.d.ts +27 -0
- package/dist/typescript-fetch/models/IssueShortLivedTokenResponse.js +36 -0
- package/dist/typescript-fetch/models/index.d.ts +1 -0
- package/dist/typescript-fetch/models/index.js +1 -0
- package/dist/typescript-open-api/otr-backend.d.ts +74 -2
- package/package.json +1 -1
|
@@ -93,6 +93,7 @@ api/refundEligibilityController.service.ts
|
|
|
93
93
|
api/registrationController.service.ts
|
|
94
94
|
api/reportingController.service.ts
|
|
95
95
|
api/scheduledTaskController.service.ts
|
|
96
|
+
api/shortLivedTokenController.service.ts
|
|
96
97
|
api/singleSignOnController.service.ts
|
|
97
98
|
api/snsListenerController.service.ts
|
|
98
99
|
api/socialLoginController.service.ts
|
|
@@ -572,6 +573,7 @@ model/inviteLawyerToLawfirmRequest.ts
|
|
|
572
573
|
model/invoiceLineItemModel.ts
|
|
573
574
|
model/isRefundEligibleResponse.ts
|
|
574
575
|
model/isUserLoggedInResponse.ts
|
|
576
|
+
model/issueShortLivedTokenResponse.ts
|
|
575
577
|
model/item.ts
|
|
576
578
|
model/lastLoginAttributes.ts
|
|
577
579
|
model/lastLoginDateByUserAccount.ts
|
package/dist/angular/api/api.ts
CHANGED
|
@@ -180,6 +180,8 @@ export * from './reportingController.service';
|
|
|
180
180
|
import { ReportingControllerService } from './reportingController.service';
|
|
181
181
|
export * from './scheduledTaskController.service';
|
|
182
182
|
import { ScheduledTaskControllerService } from './scheduledTaskController.service';
|
|
183
|
+
export * from './shortLivedTokenController.service';
|
|
184
|
+
import { ShortLivedTokenControllerService } from './shortLivedTokenController.service';
|
|
183
185
|
export * from './singleSignOnController.service';
|
|
184
186
|
import { SingleSignOnControllerService } from './singleSignOnController.service';
|
|
185
187
|
export * from './snsListenerController.service';
|
|
@@ -232,4 +234,4 @@ export * from './websocketMessageController.service';
|
|
|
232
234
|
import { WebsocketMessageControllerService } from './websocketMessageController.service';
|
|
233
235
|
export * from './workflowStateController.service';
|
|
234
236
|
import { WorkflowStateControllerService } from './workflowStateController.service';
|
|
235
|
-
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactLoopWebhookControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, DriverLicenseControllerService, EmployeeControllerService, EventBridgeEmailNotificationControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, InsuranceCalculatorControllerService, IntercomTicketControllerService, IntercomWebhookControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDashboardControllerService, 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, WebSocketControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
|
|
237
|
+
export const APIS = [ActionRequiredControllerService, ActivityFeedControllerService, AddressControllerService, AlertNotificationControllerService, AppEventsControllerService, AuditLawfirmEventsControllerService, AuditLogControllerService, AuthenticationControllerService, AwsCredentialsControllerService, BranchLinkControllerService, CaptchaControllerService, CaseActionsControllerService, CaseControllerService, CaseCounterOfferControllerService, CaseCreationControllerService, CaseDeclineControllerService, CaseNotesControllerService, CasePaymentControllerService, CaseReferralCodeControllerService, CaseRefundControllerService, CaseResolutionControllerService, CaseStatusControllerService, CaseTransferControllerService, CaseUserControllerService, CitationAuditControllerService, CitationControllerService, CoachingCardsControllerService, ConfigurationControllerService, ConsoleListControllerService, ContactLoopWebhookControllerService, ContactTimelineControllerService, ConversationControllerService, CountyControllerService, CourtControllerService, CrmControllerService, CustomerLeadControllerService, CustomerReviewControllerService, CustomerServiceAgentBookingsControllerService, CustomerServiceAgentControllerService, DashboardControllerService, DirectMailControllerService, DripControllerService, DripWebhooksControllerService, DriverLicenseControllerService, EmployeeControllerService, EventBridgeEmailNotificationControllerService, ExternalContentVoteControllerService, ExternalTicketLookupControllerService, FeedbackControllerService, FreshcallerControllerService, FreshdeskTicketControllerService, GetCaseControllerService, HouseholdMateControllerService, HubspotWebhookControllerService, InsuranceCalculatorControllerService, IntercomTicketControllerService, IntercomWebhookControllerService, LawfirmCaseDecisionControllerService, LawfirmCasesControllerService, LawfirmControllerService, LawfirmDashboardControllerService, 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, ShortLivedTokenControllerService, SingleSignOnControllerService, SnsListenerControllerService, SocialLoginControllerService, StripeCardControllerService, StripeControllerService, StripeSyncControllerService, StripeWebhookControllerService, TicketReviewControllerService, UrlRedirectControllerService, UserAccountControllerService, UserAuditControllerService, UserControllerService, UserPasswordControllerService, UserProfileControllerService, UserSearchControllerService, UserSettingsControllerService, UserSocialProfileControllerService, UtilityControllerService, ValidationControllerService, VerificationControllerService, ViolationControllerService, ViolationPenaltyControllerService, WatchlistsControllerService, WebSocketControllerService, WebsocketMessageControllerService, WorkflowStateControllerService];
|
|
@@ -0,0 +1,152 @@
|
|
|
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 { IssueShortLivedTokenResponse } from '../model/issueShortLivedTokenResponse';
|
|
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 ShortLivedTokenControllerService {
|
|
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
|
+
* issueShortLivedToken
|
|
96
|
+
* @param userId userId
|
|
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 issueShortLivedTokenUsingGET(userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<IssueShortLivedTokenResponse>;
|
|
101
|
+
public issueShortLivedTokenUsingGET(userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<IssueShortLivedTokenResponse>>;
|
|
102
|
+
public issueShortLivedTokenUsingGET(userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<IssueShortLivedTokenResponse>>;
|
|
103
|
+
public issueShortLivedTokenUsingGET(userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
104
|
+
if (userId === null || userId === undefined) {
|
|
105
|
+
throw new Error('Required parameter userId was null or undefined when calling issueShortLivedTokenUsingGET.');
|
|
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
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
129
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
130
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
131
|
+
responseType_ = 'text';
|
|
132
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
133
|
+
responseType_ = 'json';
|
|
134
|
+
} else {
|
|
135
|
+
responseType_ = 'blob';
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
let localVarPath = `/api/v1/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64"})}/short-lived-token`;
|
|
140
|
+
return this.httpClient.request<IssueShortLivedTokenResponse>('get', `${this.configuration.basePath}${localVarPath}`,
|
|
141
|
+
{
|
|
142
|
+
context: localVarHttpContext,
|
|
143
|
+
responseType: <any>responseType_,
|
|
144
|
+
withCredentials: this.configuration.withCredentials,
|
|
145
|
+
headers: localVarHeaders,
|
|
146
|
+
observe: observe,
|
|
147
|
+
reportProgress: reportProgress
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
}
|
|
@@ -92,16 +92,34 @@ export class WebSocketControllerService {
|
|
|
92
92
|
/**
|
|
93
93
|
* connect
|
|
94
94
|
* @param connectionId connectionId
|
|
95
|
+
* @param token token
|
|
96
|
+
* @param userId userId
|
|
95
97
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
96
98
|
* @param reportProgress flag to report request and response progress.
|
|
97
99
|
*/
|
|
98
|
-
public connectUsingPOST(connectionId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?:
|
|
99
|
-
public connectUsingPOST(connectionId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?:
|
|
100
|
-
public connectUsingPOST(connectionId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?:
|
|
101
|
-
public connectUsingPOST(connectionId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?:
|
|
100
|
+
public connectUsingPOST(connectionId: string, token: string, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<object>;
|
|
101
|
+
public connectUsingPOST(connectionId: string, token: string, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<object>>;
|
|
102
|
+
public connectUsingPOST(connectionId: string, token: string, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<object>>;
|
|
103
|
+
public connectUsingPOST(connectionId: string, token: string, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
102
104
|
if (connectionId === null || connectionId === undefined) {
|
|
103
105
|
throw new Error('Required parameter connectionId was null or undefined when calling connectUsingPOST.');
|
|
104
106
|
}
|
|
107
|
+
if (token === null || token === undefined) {
|
|
108
|
+
throw new Error('Required parameter token was null or undefined when calling connectUsingPOST.');
|
|
109
|
+
}
|
|
110
|
+
if (userId === null || userId === undefined) {
|
|
111
|
+
throw new Error('Required parameter userId was null or undefined when calling connectUsingPOST.');
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
|
|
115
|
+
if (token !== undefined && token !== null) {
|
|
116
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
117
|
+
<any>token, 'token');
|
|
118
|
+
}
|
|
119
|
+
if (userId !== undefined && userId !== null) {
|
|
120
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
|
|
121
|
+
<any>userId, 'userId');
|
|
122
|
+
}
|
|
105
123
|
|
|
106
124
|
let localVarHeaders = this.defaultHeaders;
|
|
107
125
|
if (connectionId !== undefined && connectionId !== null) {
|
|
@@ -112,6 +130,7 @@ export class WebSocketControllerService {
|
|
|
112
130
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
113
131
|
// to determine the Accept header
|
|
114
132
|
const httpHeaderAccepts: string[] = [
|
|
133
|
+
'*/*'
|
|
115
134
|
];
|
|
116
135
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
117
136
|
}
|
|
@@ -137,9 +156,10 @@ export class WebSocketControllerService {
|
|
|
137
156
|
}
|
|
138
157
|
|
|
139
158
|
let localVarPath = `/api/v1/websocket/connect`;
|
|
140
|
-
return this.httpClient.request<
|
|
159
|
+
return this.httpClient.request<object>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
141
160
|
{
|
|
142
161
|
context: localVarHttpContext,
|
|
162
|
+
params: localVarQueryParameters,
|
|
143
163
|
responseType: <any>responseType_,
|
|
144
164
|
withCredentials: this.configuration.withCredentials,
|
|
145
165
|
headers: localVarHeaders,
|
|
@@ -93,6 +93,7 @@ import { RefundEligibilityControllerService } from './api/refundEligibilityContr
|
|
|
93
93
|
import { RegistrationControllerService } from './api/registrationController.service';
|
|
94
94
|
import { ReportingControllerService } from './api/reportingController.service';
|
|
95
95
|
import { ScheduledTaskControllerService } from './api/scheduledTaskController.service';
|
|
96
|
+
import { ShortLivedTokenControllerService } from './api/shortLivedTokenController.service';
|
|
96
97
|
import { SingleSignOnControllerService } from './api/singleSignOnController.service';
|
|
97
98
|
import { SnsListenerControllerService } from './api/snsListenerController.service';
|
|
98
99
|
import { SocialLoginControllerService } from './api/socialLoginController.service';
|
|
@@ -0,0 +1,17 @@
|
|
|
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 IssueShortLivedTokenResponse {
|
|
15
|
+
token?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
@@ -447,6 +447,7 @@ export * from './inviteLawyerToLawfirmRequest';
|
|
|
447
447
|
export * from './invoiceLineItemModel';
|
|
448
448
|
export * from './isRefundEligibleResponse';
|
|
449
449
|
export * from './isUserLoggedInResponse';
|
|
450
|
+
export * from './issueShortLivedTokenResponse';
|
|
450
451
|
export * from './item';
|
|
451
452
|
export * from './lastLoginAttributes';
|
|
452
453
|
export * from './lastLoginDateByUserAccount';
|
|
@@ -17926,6 +17926,40 @@ angular.module('otrBackendService', [])
|
|
|
17926
17926
|
|
|
17927
17927
|
return deferred.promise;
|
|
17928
17928
|
};
|
|
17929
|
+
/**
|
|
17930
|
+
* issueShortLivedToken
|
|
17931
|
+
* @method
|
|
17932
|
+
* @name OtrService#issueShortLivedTokenUsingGET
|
|
17933
|
+
* @param {object} parameters - method options and parameters
|
|
17934
|
+
* @param {integer} parameters.userId - userId
|
|
17935
|
+
*/
|
|
17936
|
+
OtrService.prototype.issueShortLivedTokenUsingGET = function(parameters) {
|
|
17937
|
+
if (parameters === undefined) {
|
|
17938
|
+
parameters = {};
|
|
17939
|
+
}
|
|
17940
|
+
var deferred = $q.defer();
|
|
17941
|
+
var domain = this.domain,
|
|
17942
|
+
path = '/api/v1/users/{userId}/short-lived-token';
|
|
17943
|
+
var body = {},
|
|
17944
|
+
queryParameters = {},
|
|
17945
|
+
headers = {},
|
|
17946
|
+
form = {};
|
|
17947
|
+
|
|
17948
|
+
headers['Accept'] = ['*/*'];
|
|
17949
|
+
|
|
17950
|
+
path = path.replace('{userId}', parameters['userId']);
|
|
17951
|
+
|
|
17952
|
+
if (parameters['userId'] === undefined) {
|
|
17953
|
+
deferred.reject(new Error('Missing required parameter: userId'));
|
|
17954
|
+
return deferred.promise;
|
|
17955
|
+
}
|
|
17956
|
+
|
|
17957
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
17958
|
+
|
|
17959
|
+
this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
17960
|
+
|
|
17961
|
+
return deferred.promise;
|
|
17962
|
+
};
|
|
17929
17963
|
/**
|
|
17930
17964
|
* saveUserSocialProfiles
|
|
17931
17965
|
* @method
|
|
@@ -19003,6 +19037,8 @@ angular.module('otrBackendService', [])
|
|
|
19003
19037
|
* @name OtrService#connectUsingPOST
|
|
19004
19038
|
* @param {object} parameters - method options and parameters
|
|
19005
19039
|
* @param {string} parameters.connectionId - connectionId
|
|
19040
|
+
* @param {string} parameters.token - token
|
|
19041
|
+
* @param {integer} parameters.userId - userId
|
|
19006
19042
|
*/
|
|
19007
19043
|
OtrService.prototype.connectUsingPOST = function(parameters) {
|
|
19008
19044
|
if (parameters === undefined) {
|
|
@@ -19028,6 +19064,24 @@ angular.module('otrBackendService', [])
|
|
|
19028
19064
|
return deferred.promise;
|
|
19029
19065
|
}
|
|
19030
19066
|
|
|
19067
|
+
if (parameters['token'] !== undefined) {
|
|
19068
|
+
queryParameters['token'] = parameters['token'];
|
|
19069
|
+
}
|
|
19070
|
+
|
|
19071
|
+
if (parameters['token'] === undefined) {
|
|
19072
|
+
deferred.reject(new Error('Missing required parameter: token'));
|
|
19073
|
+
return deferred.promise;
|
|
19074
|
+
}
|
|
19075
|
+
|
|
19076
|
+
if (parameters['userId'] !== undefined) {
|
|
19077
|
+
queryParameters['userId'] = parameters['userId'];
|
|
19078
|
+
}
|
|
19079
|
+
|
|
19080
|
+
if (parameters['userId'] === undefined) {
|
|
19081
|
+
deferred.reject(new Error('Missing required parameter: userId'));
|
|
19082
|
+
return deferred.promise;
|
|
19083
|
+
}
|
|
19084
|
+
|
|
19031
19085
|
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
19032
19086
|
|
|
19033
19087
|
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|