@otr-app/shared-backend-generated-client 2.5.103 → 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 +2 -0
- package/dist/angular/api/socialLoginController.service.ts +76 -0
- package/dist/angular/model/getSocialProfileRequest.ts +26 -0
- package/dist/angular/model/getSocialProfileResponse.ts +18 -0
- package/dist/angular/model/models.ts +2 -0
- package/dist/angular/model/socialLoginRequest.ts +1 -0
- package/dist/angular/model/socialLoginUser.ts +2 -0
- package/dist/otrBackendService.js +45 -0
- package/dist/otrBackendService.min.js +5 -5
- package/dist/typescript/api/SocialLoginControllerApi.d.ts +7 -0
- package/dist/typescript/api/SocialLoginControllerApi.js +31 -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 +2 -0
- package/dist/typescript/model/models.js +2 -0
- package/dist/typescript-fetch/apis/SocialLoginControllerApi.d.ts +26 -1
- package/dist/typescript-fetch/apis/SocialLoginControllerApi.js +48 -1
- 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 +2 -0
- package/dist/typescript-fetch/models/index.js +2 -0
- package/dist/typescript-open-api/otr-backend.d.ts +113 -27
- package/dist/typescript-open-api/otr-backend.js +15 -15
- package/package.json +1 -1
|
@@ -512,6 +512,8 @@ model/getReferralCodeResponse.ts
|
|
|
512
512
|
model/getReferralCodesResponse.ts
|
|
513
513
|
model/getReferralsHistoryResponse.ts
|
|
514
514
|
model/getRegionsWithViolationsResponse.ts
|
|
515
|
+
model/getSocialProfileRequest.ts
|
|
516
|
+
model/getSocialProfileResponse.ts
|
|
515
517
|
model/getStripeChargeResponse.ts
|
|
516
518
|
model/getStripeChargesResponse.ts
|
|
517
519
|
model/getStripeConnectedAccountsResponse.ts
|
|
@@ -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,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
|
+
|
|
@@ -386,6 +386,8 @@ export * from './getReferralCodeResponse';
|
|
|
386
386
|
export * from './getReferralCodesResponse';
|
|
387
387
|
export * from './getReferralsHistoryResponse';
|
|
388
388
|
export * from './getRegionsWithViolationsResponse';
|
|
389
|
+
export * from './getSocialProfileRequest';
|
|
390
|
+
export * from './getSocialProfileResponse';
|
|
389
391
|
export * from './getStripeChargeResponse';
|
|
390
392
|
export * from './getStripeChargesResponse';
|
|
391
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;
|
|
@@ -5821,6 +5821,51 @@ angular.module('otrBackendService', [])
|
|
|
5821
5821
|
|
|
5822
5822
|
return deferred.promise;
|
|
5823
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
|
+
};
|
|
5824
5869
|
/**
|
|
5825
5870
|
* getBookings
|
|
5826
5871
|
* @method
|