@otr-app/shared-backend-generated-client 2.5.102 → 2.5.104
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 +3 -0
- package/dist/angular/api/caseUserController.service.ts +69 -0
- package/dist/angular/api/socialLoginController.service.ts +76 -0
- package/dist/angular/model/acceptParticipantInviteRequest.ts +17 -0
- package/dist/angular/model/getSocialProfileRequest.ts +26 -0
- package/dist/angular/model/getSocialProfileResponse.ts +18 -0
- package/dist/angular/model/models.ts +3 -0
- package/dist/angular/model/socialLoginRequest.ts +1 -0
- package/dist/angular/model/socialLoginUser.ts +2 -0
- package/dist/otrBackendService.js +82 -0
- package/dist/otrBackendService.min.js +7 -7
- package/dist/typescript/api/CaseUserControllerApi.d.ts +6 -0
- package/dist/typescript/api/CaseUserControllerApi.js +25 -0
- package/dist/typescript/api/SocialLoginControllerApi.d.ts +7 -0
- package/dist/typescript/api/SocialLoginControllerApi.js +31 -0
- package/dist/typescript/model/AcceptParticipantInviteRequest.d.ts +14 -0
- package/dist/typescript/model/AcceptParticipantInviteRequest.js +12 -0
- package/dist/typescript/model/GetSocialProfileRequest.d.ts +21 -0
- package/dist/typescript/model/GetSocialProfileRequest.js +19 -0
- package/dist/typescript/model/GetSocialProfileResponse.d.ts +15 -0
- package/dist/typescript/model/GetSocialProfileResponse.js +12 -0
- package/dist/typescript/model/SocialLoginRequest.d.ts +1 -0
- package/dist/typescript/model/SocialLoginUser.d.ts +2 -0
- package/dist/typescript/model/models.d.ts +3 -0
- package/dist/typescript/model/models.js +3 -0
- package/dist/typescript-fetch/apis/CaseUserControllerApi.d.ts +12 -1
- package/dist/typescript-fetch/apis/CaseUserControllerApi.js +30 -1
- package/dist/typescript-fetch/apis/SocialLoginControllerApi.d.ts +26 -1
- package/dist/typescript-fetch/apis/SocialLoginControllerApi.js +48 -1
- package/dist/typescript-fetch/models/AcceptParticipantInviteRequest.d.ts +27 -0
- package/dist/typescript-fetch/models/AcceptParticipantInviteRequest.js +35 -0
- package/dist/typescript-fetch/models/GetSocialProfileRequest.d.ts +41 -0
- package/dist/typescript-fetch/models/GetSocialProfileRequest.js +47 -0
- package/dist/typescript-fetch/models/GetSocialProfileResponse.d.ts +33 -0
- package/dist/typescript-fetch/models/GetSocialProfileResponse.js +38 -0
- package/dist/typescript-fetch/models/SocialLoginRequest.d.ts +6 -0
- package/dist/typescript-fetch/models/SocialLoginRequest.js +2 -0
- package/dist/typescript-fetch/models/SocialLoginUser.d.ts +12 -0
- package/dist/typescript-fetch/models/SocialLoginUser.js +4 -0
- package/dist/typescript-fetch/models/index.d.ts +3 -0
- package/dist/typescript-fetch/models/index.js +3 -0
- package/dist/typescript-open-api/otr-backend.d.ts +184 -27
- package/dist/typescript-open-api/otr-backend.js +15 -15
- package/package.json +1 -1
|
@@ -125,6 +125,7 @@ encoder.ts
|
|
|
125
125
|
git_push.sh
|
|
126
126
|
index.ts
|
|
127
127
|
model/acceptCaseCounterRequest.ts
|
|
128
|
+
model/acceptParticipantInviteRequest.ts
|
|
128
129
|
model/accountLevelFee.ts
|
|
129
130
|
model/accountLevelFeeRequest.ts
|
|
130
131
|
model/accountLevelFeeResponse.ts
|
|
@@ -511,6 +512,8 @@ model/getReferralCodeResponse.ts
|
|
|
511
512
|
model/getReferralCodesResponse.ts
|
|
512
513
|
model/getReferralsHistoryResponse.ts
|
|
513
514
|
model/getRegionsWithViolationsResponse.ts
|
|
515
|
+
model/getSocialProfileRequest.ts
|
|
516
|
+
model/getSocialProfileResponse.ts
|
|
514
517
|
model/getStripeChargeResponse.ts
|
|
515
518
|
model/getStripeChargesResponse.ts
|
|
516
519
|
model/getStripeConnectedAccountsResponse.ts
|
|
@@ -18,6 +18,8 @@ import { HttpClient, HttpHeaders, HttpParams,
|
|
|
18
18
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
19
19
|
import { Observable } from 'rxjs';
|
|
20
20
|
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { AcceptParticipantInviteRequest } from '../model/acceptParticipantInviteRequest';
|
|
21
23
|
// @ts-ignore
|
|
22
24
|
import { GetCaseUsersResponse } from '../model/getCaseUsersResponse';
|
|
23
25
|
// @ts-ignore
|
|
@@ -97,6 +99,73 @@ export class CaseUserControllerService {
|
|
|
97
99
|
return httpParams;
|
|
98
100
|
}
|
|
99
101
|
|
|
102
|
+
/**
|
|
103
|
+
* acceptParticipantInvite
|
|
104
|
+
* @param request request
|
|
105
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
106
|
+
* @param reportProgress flag to report request and response progress.
|
|
107
|
+
*/
|
|
108
|
+
public acceptParticipantInviteUsingPUT(request: AcceptParticipantInviteRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
|
|
109
|
+
public acceptParticipantInviteUsingPUT(request: AcceptParticipantInviteRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
|
|
110
|
+
public acceptParticipantInviteUsingPUT(request: AcceptParticipantInviteRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
|
|
111
|
+
public acceptParticipantInviteUsingPUT(request: AcceptParticipantInviteRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
|
|
112
|
+
if (request === null || request === undefined) {
|
|
113
|
+
throw new Error('Required parameter request was null or undefined when calling acceptParticipantInviteUsingPUT.');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
let localVarHeaders = this.defaultHeaders;
|
|
117
|
+
|
|
118
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
119
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
120
|
+
// to determine the Accept header
|
|
121
|
+
const httpHeaderAccepts: string[] = [
|
|
122
|
+
];
|
|
123
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
124
|
+
}
|
|
125
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
126
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
130
|
+
if (localVarHttpContext === undefined) {
|
|
131
|
+
localVarHttpContext = new HttpContext();
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
// to determine the Content-Type header
|
|
136
|
+
const consumes: string[] = [
|
|
137
|
+
'application/json'
|
|
138
|
+
];
|
|
139
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
140
|
+
if (httpContentTypeSelected !== undefined) {
|
|
141
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
145
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
146
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
147
|
+
responseType_ = 'text';
|
|
148
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
149
|
+
responseType_ = 'json';
|
|
150
|
+
} else {
|
|
151
|
+
responseType_ = 'blob';
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
let localVarPath = `/api/v1/cases/participants/accept-invite`;
|
|
156
|
+
return this.httpClient.request<any>('put', `${this.configuration.basePath}${localVarPath}`,
|
|
157
|
+
{
|
|
158
|
+
context: localVarHttpContext,
|
|
159
|
+
body: request,
|
|
160
|
+
responseType: <any>responseType_,
|
|
161
|
+
withCredentials: this.configuration.withCredentials,
|
|
162
|
+
headers: localVarHeaders,
|
|
163
|
+
observe: observe,
|
|
164
|
+
reportProgress: reportProgress
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
100
169
|
/**
|
|
101
170
|
* deleteCaseUser
|
|
102
171
|
* @param caseId caseId
|
|
@@ -21,6 +21,10 @@ import { Observable } from 'rxjs';
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { AppleLoginRequest } from '../model/appleLoginRequest';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { GetSocialProfileRequest } from '../model/getSocialProfileRequest';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { GetSocialProfileResponse } from '../model/getSocialProfileResponse';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { GoogleLoginRequest } from '../model/googleLoginRequest';
|
|
25
29
|
// @ts-ignore
|
|
26
30
|
import { SocialLoginRequest } from '../model/socialLoginRequest';
|
|
@@ -369,6 +373,78 @@ export class SocialLoginControllerService {
|
|
|
369
373
|
);
|
|
370
374
|
}
|
|
371
375
|
|
|
376
|
+
/**
|
|
377
|
+
* getProfile
|
|
378
|
+
* @param loginProvider loginProvider
|
|
379
|
+
* @param request request
|
|
380
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
381
|
+
* @param reportProgress flag to report request and response progress.
|
|
382
|
+
*/
|
|
383
|
+
public getProfileUsingPOST(loginProvider: 'APPLE' | 'EMAIL' | 'FACEBOOK' | 'GOOGLE' | 'PHONE' | 'TWITTER' | 'UNKNOWN', request: GetSocialProfileRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<GetSocialProfileResponse>;
|
|
384
|
+
public getProfileUsingPOST(loginProvider: 'APPLE' | 'EMAIL' | 'FACEBOOK' | 'GOOGLE' | 'PHONE' | 'TWITTER' | 'UNKNOWN', request: GetSocialProfileRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<GetSocialProfileResponse>>;
|
|
385
|
+
public getProfileUsingPOST(loginProvider: 'APPLE' | 'EMAIL' | 'FACEBOOK' | 'GOOGLE' | 'PHONE' | 'TWITTER' | 'UNKNOWN', request: GetSocialProfileRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<GetSocialProfileResponse>>;
|
|
386
|
+
public getProfileUsingPOST(loginProvider: 'APPLE' | 'EMAIL' | 'FACEBOOK' | 'GOOGLE' | 'PHONE' | 'TWITTER' | 'UNKNOWN', request: GetSocialProfileRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
387
|
+
if (loginProvider === null || loginProvider === undefined) {
|
|
388
|
+
throw new Error('Required parameter loginProvider was null or undefined when calling getProfileUsingPOST.');
|
|
389
|
+
}
|
|
390
|
+
if (request === null || request === undefined) {
|
|
391
|
+
throw new Error('Required parameter request was null or undefined when calling getProfileUsingPOST.');
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
let localVarHeaders = this.defaultHeaders;
|
|
395
|
+
|
|
396
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
397
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
398
|
+
// to determine the Accept header
|
|
399
|
+
const httpHeaderAccepts: string[] = [
|
|
400
|
+
'*/*'
|
|
401
|
+
];
|
|
402
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
403
|
+
}
|
|
404
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
405
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
409
|
+
if (localVarHttpContext === undefined) {
|
|
410
|
+
localVarHttpContext = new HttpContext();
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
// to determine the Content-Type header
|
|
415
|
+
const consumes: string[] = [
|
|
416
|
+
'application/json'
|
|
417
|
+
];
|
|
418
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
419
|
+
if (httpContentTypeSelected !== undefined) {
|
|
420
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
424
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
425
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
426
|
+
responseType_ = 'text';
|
|
427
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
428
|
+
responseType_ = 'json';
|
|
429
|
+
} else {
|
|
430
|
+
responseType_ = 'blob';
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
let localVarPath = `/api/v1/connect/${this.configuration.encodeParam({name: "loginProvider", value: loginProvider, in: "path", style: "simple", explode: false, dataType: "'APPLE' | 'EMAIL' | 'FACEBOOK' | 'GOOGLE' | 'PHONE' | 'TWITTER' | 'UNKNOWN'", dataFormat: undefined})}/get-profile`;
|
|
435
|
+
return this.httpClient.request<GetSocialProfileResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
436
|
+
{
|
|
437
|
+
context: localVarHttpContext,
|
|
438
|
+
body: request,
|
|
439
|
+
responseType: <any>responseType_,
|
|
440
|
+
withCredentials: this.configuration.withCredentials,
|
|
441
|
+
headers: localVarHeaders,
|
|
442
|
+
observe: observe,
|
|
443
|
+
reportProgress: reportProgress
|
|
444
|
+
}
|
|
445
|
+
);
|
|
446
|
+
}
|
|
447
|
+
|
|
372
448
|
/**
|
|
373
449
|
* googleConnect
|
|
374
450
|
* @param request request
|
|
@@ -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 AcceptParticipantInviteRequest {
|
|
15
|
+
token: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
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 GetSocialProfileRequest {
|
|
15
|
+
accessType?: GetSocialProfileRequest.AccessTypeEnum;
|
|
16
|
+
userAccessToken: string;
|
|
17
|
+
}
|
|
18
|
+
export namespace GetSocialProfileRequest {
|
|
19
|
+
export type AccessTypeEnum = 'classic' | 'limited';
|
|
20
|
+
export const AccessTypeEnum = {
|
|
21
|
+
Classic: 'classic' as AccessTypeEnum,
|
|
22
|
+
Limited: 'limited' as AccessTypeEnum
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
@@ -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 GetSocialProfileResponse {
|
|
15
|
+
emailAddress?: string;
|
|
16
|
+
newAccount?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './acceptCaseCounterRequest';
|
|
2
|
+
export * from './acceptParticipantInviteRequest';
|
|
2
3
|
export * from './accountLevelFee';
|
|
3
4
|
export * from './accountLevelFeeRequest';
|
|
4
5
|
export * from './accountLevelFeeResponse';
|
|
@@ -385,6 +386,8 @@ export * from './getReferralCodeResponse';
|
|
|
385
386
|
export * from './getReferralCodesResponse';
|
|
386
387
|
export * from './getReferralsHistoryResponse';
|
|
387
388
|
export * from './getRegionsWithViolationsResponse';
|
|
389
|
+
export * from './getSocialProfileRequest';
|
|
390
|
+
export * from './getSocialProfileResponse';
|
|
388
391
|
export * from './getStripeChargeResponse';
|
|
389
392
|
export * from './getStripeChargesResponse';
|
|
390
393
|
export * from './getStripeConnectedAccountsResponse';
|
|
@@ -24,6 +24,7 @@ export interface SocialLoginRequest {
|
|
|
24
24
|
referralSourceData?: { [key: string]: object; };
|
|
25
25
|
userAccessToken?: string;
|
|
26
26
|
userReferralSourceTypeId?: number;
|
|
27
|
+
verifyEmailCode?: string;
|
|
27
28
|
}
|
|
28
29
|
export namespace SocialLoginRequest {
|
|
29
30
|
export type AccessTypeEnum = 'classic' | 'limited';
|
|
@@ -15,8 +15,10 @@ import { UserRoleDomain } from './userRoleDomain';
|
|
|
15
15
|
|
|
16
16
|
export interface SocialLoginUser {
|
|
17
17
|
emailAddress?: string;
|
|
18
|
+
emailConfirmed?: boolean;
|
|
18
19
|
firstname?: string;
|
|
19
20
|
intercomUserHash?: string;
|
|
21
|
+
isEmailConfirmed?: boolean;
|
|
20
22
|
isEmailPrivate?: boolean;
|
|
21
23
|
isTestUser?: boolean;
|
|
22
24
|
lastname?: string;
|
|
@@ -1418,6 +1418,43 @@ angular.module('otrBackendService', [])
|
|
|
1418
1418
|
|
|
1419
1419
|
return deferred.promise;
|
|
1420
1420
|
};
|
|
1421
|
+
/**
|
|
1422
|
+
* acceptParticipantInvite
|
|
1423
|
+
* @method
|
|
1424
|
+
* @name OtrService#acceptParticipantInviteUsingPUT
|
|
1425
|
+
* @param {object} parameters - method options and parameters
|
|
1426
|
+
* @param {} parameters.request - request
|
|
1427
|
+
*/
|
|
1428
|
+
OtrService.prototype.acceptParticipantInviteUsingPUT = function(parameters) {
|
|
1429
|
+
if (parameters === undefined) {
|
|
1430
|
+
parameters = {};
|
|
1431
|
+
}
|
|
1432
|
+
var deferred = $q.defer();
|
|
1433
|
+
var domain = this.domain,
|
|
1434
|
+
path = '/api/v1/cases/participants/accept-invite';
|
|
1435
|
+
var body = {},
|
|
1436
|
+
queryParameters = {},
|
|
1437
|
+
headers = {},
|
|
1438
|
+
form = {};
|
|
1439
|
+
|
|
1440
|
+
headers['Accept'] = ['*/*'];
|
|
1441
|
+
headers['Content-Type'] = ['application/json'];
|
|
1442
|
+
|
|
1443
|
+
if (parameters['request'] !== undefined) {
|
|
1444
|
+
body = parameters['request'];
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
if (parameters['request'] === undefined) {
|
|
1448
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
1449
|
+
return deferred.promise;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
1453
|
+
|
|
1454
|
+
this.request('PUT', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
1455
|
+
|
|
1456
|
+
return deferred.promise;
|
|
1457
|
+
};
|
|
1421
1458
|
/**
|
|
1422
1459
|
* getPendingCases
|
|
1423
1460
|
* @method
|
|
@@ -5784,6 +5821,51 @@ angular.module('otrBackendService', [])
|
|
|
5784
5821
|
|
|
5785
5822
|
return deferred.promise;
|
|
5786
5823
|
};
|
|
5824
|
+
/**
|
|
5825
|
+
* getProfile
|
|
5826
|
+
* @method
|
|
5827
|
+
* @name OtrService#getProfileUsingPOST
|
|
5828
|
+
* @param {object} parameters - method options and parameters
|
|
5829
|
+
* @param {string} parameters.loginProvider - loginProvider
|
|
5830
|
+
* @param {} parameters.request - request
|
|
5831
|
+
*/
|
|
5832
|
+
OtrService.prototype.getProfileUsingPOST = function(parameters) {
|
|
5833
|
+
if (parameters === undefined) {
|
|
5834
|
+
parameters = {};
|
|
5835
|
+
}
|
|
5836
|
+
var deferred = $q.defer();
|
|
5837
|
+
var domain = this.domain,
|
|
5838
|
+
path = '/api/v1/connect/{loginProvider}/get-profile';
|
|
5839
|
+
var body = {},
|
|
5840
|
+
queryParameters = {},
|
|
5841
|
+
headers = {},
|
|
5842
|
+
form = {};
|
|
5843
|
+
|
|
5844
|
+
headers['Accept'] = ['*/*'];
|
|
5845
|
+
headers['Content-Type'] = ['application/json'];
|
|
5846
|
+
|
|
5847
|
+
path = path.replace('{loginProvider}', parameters['loginProvider']);
|
|
5848
|
+
|
|
5849
|
+
if (parameters['loginProvider'] === undefined) {
|
|
5850
|
+
deferred.reject(new Error('Missing required parameter: loginProvider'));
|
|
5851
|
+
return deferred.promise;
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5854
|
+
if (parameters['request'] !== undefined) {
|
|
5855
|
+
body = parameters['request'];
|
|
5856
|
+
}
|
|
5857
|
+
|
|
5858
|
+
if (parameters['request'] === undefined) {
|
|
5859
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
5860
|
+
return deferred.promise;
|
|
5861
|
+
}
|
|
5862
|
+
|
|
5863
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
5864
|
+
|
|
5865
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
5866
|
+
|
|
5867
|
+
return deferred.promise;
|
|
5868
|
+
};
|
|
5787
5869
|
/**
|
|
5788
5870
|
* getBookings
|
|
5789
5871
|
* @method
|