@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
|
@@ -17,6 +17,12 @@ export declare class CaseUserControllerApi {
|
|
|
17
17
|
defaultHeaders: any;
|
|
18
18
|
static $inject: string[];
|
|
19
19
|
constructor($http: ng.IHttpService, $httpParamSerializer?: (d: any) => any, basePath?: string);
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @summary acceptParticipantInvite
|
|
23
|
+
* @param request request
|
|
24
|
+
*/
|
|
25
|
+
acceptParticipantInviteUsingPUT(request: models.AcceptParticipantInviteRequest, extraHttpRequestParams?: any): ng.IHttpPromise<{}>;
|
|
20
26
|
/**
|
|
21
27
|
*
|
|
22
28
|
* @summary deleteCaseUser
|
|
@@ -20,6 +20,31 @@ export class CaseUserControllerApi {
|
|
|
20
20
|
this.basePath = basePath;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary acceptParticipantInvite
|
|
26
|
+
* @param request request
|
|
27
|
+
*/
|
|
28
|
+
acceptParticipantInviteUsingPUT(request, extraHttpRequestParams) {
|
|
29
|
+
const localVarPath = this.basePath + '/api/v1/cases/participants/accept-invite';
|
|
30
|
+
let queryParameters = {};
|
|
31
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
32
|
+
// verify required parameter 'request' is not null or undefined
|
|
33
|
+
if (request === null || request === undefined) {
|
|
34
|
+
throw new Error('Required parameter request was null or undefined when calling acceptParticipantInviteUsingPUT.');
|
|
35
|
+
}
|
|
36
|
+
let httpRequestParams = {
|
|
37
|
+
method: 'PUT',
|
|
38
|
+
url: localVarPath,
|
|
39
|
+
data: request,
|
|
40
|
+
params: queryParameters,
|
|
41
|
+
headers: headerParams
|
|
42
|
+
};
|
|
43
|
+
if (extraHttpRequestParams) {
|
|
44
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
45
|
+
}
|
|
46
|
+
return this.$http(httpRequestParams);
|
|
47
|
+
}
|
|
23
48
|
/**
|
|
24
49
|
*
|
|
25
50
|
* @summary deleteCaseUser
|
|
@@ -41,6 +41,13 @@ export declare class SocialLoginControllerApi {
|
|
|
41
41
|
* @param request request
|
|
42
42
|
*/
|
|
43
43
|
facebookConnectUsingPOST1(request: models.SocialLoginRequest, extraHttpRequestParams?: any): ng.IHttpPromise<models.SocialLoginResponse>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @summary getProfile
|
|
47
|
+
* @param loginProvider loginProvider
|
|
48
|
+
* @param request request
|
|
49
|
+
*/
|
|
50
|
+
getProfileUsingPOST(loginProvider: 'APPLE' | 'EMAIL' | 'FACEBOOK' | 'GOOGLE' | 'PHONE' | 'TWITTER' | 'UNKNOWN', request: models.GetSocialProfileRequest, extraHttpRequestParams?: any): ng.IHttpPromise<models.GetSocialProfileResponse>;
|
|
44
51
|
/**
|
|
45
52
|
*
|
|
46
53
|
* @summary googleConnect
|
|
@@ -120,6 +120,37 @@ export class SocialLoginControllerApi {
|
|
|
120
120
|
}
|
|
121
121
|
return this.$http(httpRequestParams);
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @summary getProfile
|
|
126
|
+
* @param loginProvider loginProvider
|
|
127
|
+
* @param request request
|
|
128
|
+
*/
|
|
129
|
+
getProfileUsingPOST(loginProvider, request, extraHttpRequestParams) {
|
|
130
|
+
const localVarPath = this.basePath + '/api/v1/connect/{loginProvider}/get-profile'
|
|
131
|
+
.replace('{' + 'loginProvider' + '}', encodeURIComponent(String(loginProvider)));
|
|
132
|
+
let queryParameters = {};
|
|
133
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
134
|
+
// verify required parameter 'loginProvider' is not null or undefined
|
|
135
|
+
if (loginProvider === null || loginProvider === undefined) {
|
|
136
|
+
throw new Error('Required parameter loginProvider was null or undefined when calling getProfileUsingPOST.');
|
|
137
|
+
}
|
|
138
|
+
// verify required parameter 'request' is not null or undefined
|
|
139
|
+
if (request === null || request === undefined) {
|
|
140
|
+
throw new Error('Required parameter request was null or undefined when calling getProfileUsingPOST.');
|
|
141
|
+
}
|
|
142
|
+
let httpRequestParams = {
|
|
143
|
+
method: 'POST',
|
|
144
|
+
url: localVarPath,
|
|
145
|
+
data: request,
|
|
146
|
+
params: queryParameters,
|
|
147
|
+
headers: headerParams
|
|
148
|
+
};
|
|
149
|
+
if (extraHttpRequestParams) {
|
|
150
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
151
|
+
}
|
|
152
|
+
return this.$http(httpRequestParams);
|
|
153
|
+
}
|
|
123
154
|
/**
|
|
124
155
|
*
|
|
125
156
|
* @summary googleConnect
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export interface AcceptParticipantInviteRequest {
|
|
13
|
+
"token": string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
export interface GetSocialProfileRequest {
|
|
13
|
+
"accessType"?: GetSocialProfileRequest.AccessTypeEnum;
|
|
14
|
+
"userAccessToken": string;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace GetSocialProfileRequest {
|
|
17
|
+
enum AccessTypeEnum {
|
|
18
|
+
Classic,
|
|
19
|
+
Limited
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export var GetSocialProfileRequest;
|
|
13
|
+
(function (GetSocialProfileRequest) {
|
|
14
|
+
let AccessTypeEnum;
|
|
15
|
+
(function (AccessTypeEnum) {
|
|
16
|
+
AccessTypeEnum[AccessTypeEnum["Classic"] = 'classic'] = "Classic";
|
|
17
|
+
AccessTypeEnum[AccessTypeEnum["Limited"] = 'limited'] = "Limited";
|
|
18
|
+
})(AccessTypeEnum = GetSocialProfileRequest.AccessTypeEnum || (GetSocialProfileRequest.AccessTypeEnum = {}));
|
|
19
|
+
})(GetSocialProfileRequest || (GetSocialProfileRequest = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export interface GetSocialProfileResponse {
|
|
13
|
+
"emailAddress"?: string;
|
|
14
|
+
"newAccount"?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export {};
|
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
import * as models from './models';
|
|
13
13
|
export interface SocialLoginUser {
|
|
14
14
|
"emailAddress"?: string;
|
|
15
|
+
"emailConfirmed"?: boolean;
|
|
15
16
|
"firstname"?: string;
|
|
16
17
|
"intercomUserHash"?: string;
|
|
18
|
+
"isEmailConfirmed"?: boolean;
|
|
17
19
|
"isEmailPrivate"?: boolean;
|
|
18
20
|
"isTestUser"?: boolean;
|
|
19
21
|
"lastname"?: string;
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { GetCaseUsersResponse, InviteCaseParticipantRequest, ListDashboardCaseUsersResponse, SaveCaseUserRequest } from '../models';
|
|
13
|
+
import { AcceptParticipantInviteRequest, GetCaseUsersResponse, InviteCaseParticipantRequest, ListDashboardCaseUsersResponse, SaveCaseUserRequest } from '../models';
|
|
14
|
+
export interface AcceptParticipantInviteUsingPUTRequest {
|
|
15
|
+
request: AcceptParticipantInviteRequest;
|
|
16
|
+
}
|
|
14
17
|
export interface DeleteCaseUserUsingDELETERequest {
|
|
15
18
|
caseId: string;
|
|
16
19
|
caseUsersId: number;
|
|
@@ -35,6 +38,14 @@ export interface SaveCaseUserUsingPOSTRequest {
|
|
|
35
38
|
*
|
|
36
39
|
*/
|
|
37
40
|
export declare class CaseUserControllerApi extends runtime.BaseAPI {
|
|
41
|
+
/**
|
|
42
|
+
* acceptParticipantInvite
|
|
43
|
+
*/
|
|
44
|
+
acceptParticipantInviteUsingPUTRaw(requestParameters: AcceptParticipantInviteUsingPUTRequest): Promise<runtime.ApiResponse<void>>;
|
|
45
|
+
/**
|
|
46
|
+
* acceptParticipantInvite
|
|
47
|
+
*/
|
|
48
|
+
acceptParticipantInviteUsingPUT(requestParameters: AcceptParticipantInviteUsingPUTRequest): Promise<void>;
|
|
38
49
|
/**
|
|
39
50
|
* deleteCaseUser
|
|
40
51
|
*/
|
|
@@ -21,11 +21,40 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetCaseUsersResponseFromJSON, InviteCaseParticipantRequestToJSON, ListDashboardCaseUsersResponseFromJSON, SaveCaseUserRequestToJSON, } from '../models';
|
|
24
|
+
import { AcceptParticipantInviteRequestToJSON, GetCaseUsersResponseFromJSON, InviteCaseParticipantRequestToJSON, ListDashboardCaseUsersResponseFromJSON, SaveCaseUserRequestToJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class CaseUserControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* acceptParticipantInvite
|
|
31
|
+
*/
|
|
32
|
+
acceptParticipantInviteUsingPUTRaw(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters.request === null || requestParameters.request === undefined) {
|
|
35
|
+
throw new runtime.RequiredError('request', 'Required parameter requestParameters.request was null or undefined when calling acceptParticipantInviteUsingPUT.');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
const response = yield this.request({
|
|
41
|
+
path: `/api/v1/cases/participants/accept-invite`,
|
|
42
|
+
method: 'PUT',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
body: AcceptParticipantInviteRequestToJSON(requestParameters.request),
|
|
46
|
+
});
|
|
47
|
+
return new runtime.VoidApiResponse(response);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* acceptParticipantInvite
|
|
52
|
+
*/
|
|
53
|
+
acceptParticipantInviteUsingPUT(requestParameters) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
yield this.acceptParticipantInviteUsingPUTRaw(requestParameters);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
29
58
|
/**
|
|
30
59
|
* deleteCaseUser
|
|
31
60
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AppleLoginRequest, GoogleLoginRequest, SocialLoginRequest, SocialLoginResponse } from '../models';
|
|
13
|
+
import { AppleLoginRequest, GetSocialProfileRequest, GetSocialProfileResponse, GoogleLoginRequest, SocialLoginRequest, SocialLoginResponse } from '../models';
|
|
14
14
|
export interface AppleConnectUsingPOSTRequest {
|
|
15
15
|
request: AppleLoginRequest;
|
|
16
16
|
}
|
|
@@ -23,6 +23,10 @@ export interface FacebookConnectUsingPOSTRequest {
|
|
|
23
23
|
export interface FacebookConnectUsingPOST1Request {
|
|
24
24
|
request: SocialLoginRequest;
|
|
25
25
|
}
|
|
26
|
+
export interface GetProfileUsingPOSTRequest {
|
|
27
|
+
loginProvider: GetProfileUsingPOSTLoginProviderEnum;
|
|
28
|
+
request: GetSocialProfileRequest;
|
|
29
|
+
}
|
|
26
30
|
export interface GoogleConnectUsingPOSTRequest {
|
|
27
31
|
request: GoogleLoginRequest;
|
|
28
32
|
}
|
|
@@ -65,6 +69,14 @@ export declare class SocialLoginControllerApi extends runtime.BaseAPI {
|
|
|
65
69
|
* facebookConnect
|
|
66
70
|
*/
|
|
67
71
|
facebookConnectUsingPOST1(requestParameters: FacebookConnectUsingPOST1Request): Promise<SocialLoginResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* getProfile
|
|
74
|
+
*/
|
|
75
|
+
getProfileUsingPOSTRaw(requestParameters: GetProfileUsingPOSTRequest): Promise<runtime.ApiResponse<GetSocialProfileResponse>>;
|
|
76
|
+
/**
|
|
77
|
+
* getProfile
|
|
78
|
+
*/
|
|
79
|
+
getProfileUsingPOST(requestParameters: GetProfileUsingPOSTRequest): Promise<GetSocialProfileResponse>;
|
|
68
80
|
/**
|
|
69
81
|
* googleConnect
|
|
70
82
|
*/
|
|
@@ -82,3 +94,16 @@ export declare class SocialLoginControllerApi extends runtime.BaseAPI {
|
|
|
82
94
|
*/
|
|
83
95
|
googleConnectUsingPOST1(requestParameters: GoogleConnectUsingPOST1Request): Promise<SocialLoginResponse>;
|
|
84
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
* @enum {string}
|
|
100
|
+
*/
|
|
101
|
+
export declare enum GetProfileUsingPOSTLoginProviderEnum {
|
|
102
|
+
APPLE = "APPLE",
|
|
103
|
+
EMAIL = "EMAIL",
|
|
104
|
+
FACEBOOK = "FACEBOOK",
|
|
105
|
+
GOOGLE = "GOOGLE",
|
|
106
|
+
PHONE = "PHONE",
|
|
107
|
+
TWITTER = "TWITTER",
|
|
108
|
+
UNKNOWN = "UNKNOWN"
|
|
109
|
+
}
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { AppleLoginRequestToJSON, GoogleLoginRequestToJSON, SocialLoginRequestToJSON, SocialLoginResponseFromJSON, } from '../models';
|
|
24
|
+
import { AppleLoginRequestToJSON, GetSocialProfileRequestToJSON, GetSocialProfileResponseFromJSON, GoogleLoginRequestToJSON, SocialLoginRequestToJSON, SocialLoginResponseFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -146,6 +146,39 @@ export class SocialLoginControllerApi extends runtime.BaseAPI {
|
|
|
146
146
|
return yield response.value();
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* getProfile
|
|
151
|
+
*/
|
|
152
|
+
getProfileUsingPOSTRaw(requestParameters) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
if (requestParameters.loginProvider === null || requestParameters.loginProvider === undefined) {
|
|
155
|
+
throw new runtime.RequiredError('loginProvider', 'Required parameter requestParameters.loginProvider was null or undefined when calling getProfileUsingPOST.');
|
|
156
|
+
}
|
|
157
|
+
if (requestParameters.request === null || requestParameters.request === undefined) {
|
|
158
|
+
throw new runtime.RequiredError('request', 'Required parameter requestParameters.request was null or undefined when calling getProfileUsingPOST.');
|
|
159
|
+
}
|
|
160
|
+
const queryParameters = {};
|
|
161
|
+
const headerParameters = {};
|
|
162
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
163
|
+
const response = yield this.request({
|
|
164
|
+
path: `/api/v1/connect/{loginProvider}/get-profile`.replace(`{${"loginProvider"}}`, encodeURIComponent(String(requestParameters.loginProvider))),
|
|
165
|
+
method: 'POST',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
body: GetSocialProfileRequestToJSON(requestParameters.request),
|
|
169
|
+
});
|
|
170
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetSocialProfileResponseFromJSON(jsonValue));
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* getProfile
|
|
175
|
+
*/
|
|
176
|
+
getProfileUsingPOST(requestParameters) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const response = yield this.getProfileUsingPOSTRaw(requestParameters);
|
|
179
|
+
return yield response.value();
|
|
180
|
+
});
|
|
181
|
+
}
|
|
149
182
|
/**
|
|
150
183
|
* googleConnect
|
|
151
184
|
*/
|
|
@@ -207,3 +240,17 @@ export class SocialLoginControllerApi extends runtime.BaseAPI {
|
|
|
207
240
|
});
|
|
208
241
|
}
|
|
209
242
|
}
|
|
243
|
+
/**
|
|
244
|
+
* @export
|
|
245
|
+
* @enum {string}
|
|
246
|
+
*/
|
|
247
|
+
export var GetProfileUsingPOSTLoginProviderEnum;
|
|
248
|
+
(function (GetProfileUsingPOSTLoginProviderEnum) {
|
|
249
|
+
GetProfileUsingPOSTLoginProviderEnum["APPLE"] = "APPLE";
|
|
250
|
+
GetProfileUsingPOSTLoginProviderEnum["EMAIL"] = "EMAIL";
|
|
251
|
+
GetProfileUsingPOSTLoginProviderEnum["FACEBOOK"] = "FACEBOOK";
|
|
252
|
+
GetProfileUsingPOSTLoginProviderEnum["GOOGLE"] = "GOOGLE";
|
|
253
|
+
GetProfileUsingPOSTLoginProviderEnum["PHONE"] = "PHONE";
|
|
254
|
+
GetProfileUsingPOSTLoginProviderEnum["TWITTER"] = "TWITTER";
|
|
255
|
+
GetProfileUsingPOSTLoginProviderEnum["UNKNOWN"] = "UNKNOWN";
|
|
256
|
+
})(GetProfileUsingPOSTLoginProviderEnum || (GetProfileUsingPOSTLoginProviderEnum = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
|
15
|
+
* @interface AcceptParticipantInviteRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AcceptParticipantInviteRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AcceptParticipantInviteRequest
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function AcceptParticipantInviteRequestFromJSON(json: any): AcceptParticipantInviteRequest;
|
|
26
|
+
export declare function AcceptParticipantInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptParticipantInviteRequest;
|
|
27
|
+
export declare function AcceptParticipantInviteRequestToJSON(value?: AcceptParticipantInviteRequest | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export function AcceptParticipantInviteRequestFromJSON(json) {
|
|
15
|
+
return AcceptParticipantInviteRequestFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function AcceptParticipantInviteRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'token': json['token'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export function AcceptParticipantInviteRequestToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'token': value.token,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
|
15
|
+
* @interface GetSocialProfileRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GetSocialProfileRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetSocialProfileRequest
|
|
22
|
+
*/
|
|
23
|
+
accessType?: GetSocialProfileRequestAccessTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetSocialProfileRequest
|
|
28
|
+
*/
|
|
29
|
+
userAccessToken: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function GetSocialProfileRequestFromJSON(json: any): GetSocialProfileRequest;
|
|
32
|
+
export declare function GetSocialProfileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSocialProfileRequest;
|
|
33
|
+
export declare function GetSocialProfileRequestToJSON(value?: GetSocialProfileRequest | null): any;
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
* @enum {string}
|
|
37
|
+
*/
|
|
38
|
+
export declare enum GetSocialProfileRequestAccessTypeEnum {
|
|
39
|
+
Classic = "classic",
|
|
40
|
+
Limited = "limited"
|
|
41
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
export function GetSocialProfileRequestFromJSON(json) {
|
|
16
|
+
return GetSocialProfileRequestFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function GetSocialProfileRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'accessType': !exists(json, 'accessType') ? undefined : json['accessType'],
|
|
24
|
+
'userAccessToken': json['userAccessToken'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function GetSocialProfileRequestToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'accessType': value.accessType,
|
|
36
|
+
'userAccessToken': value.userAccessToken,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
* @enum {string}
|
|
42
|
+
*/
|
|
43
|
+
export var GetSocialProfileRequestAccessTypeEnum;
|
|
44
|
+
(function (GetSocialProfileRequestAccessTypeEnum) {
|
|
45
|
+
GetSocialProfileRequestAccessTypeEnum["Classic"] = "classic";
|
|
46
|
+
GetSocialProfileRequestAccessTypeEnum["Limited"] = "limited";
|
|
47
|
+
})(GetSocialProfileRequestAccessTypeEnum || (GetSocialProfileRequestAccessTypeEnum = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
|
15
|
+
* @interface GetSocialProfileResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface GetSocialProfileResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetSocialProfileResponse
|
|
22
|
+
*/
|
|
23
|
+
emailAddress?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof GetSocialProfileResponse
|
|
28
|
+
*/
|
|
29
|
+
newAccount?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function GetSocialProfileResponseFromJSON(json: any): GetSocialProfileResponse;
|
|
32
|
+
export declare function GetSocialProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSocialProfileResponse;
|
|
33
|
+
export declare function GetSocialProfileResponseToJSON(value?: GetSocialProfileResponse | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OffTheRecord Rest Service API - Devo
|
|
5
|
+
* A service to handle your traffic tickets
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
export function GetSocialProfileResponseFromJSON(json) {
|
|
16
|
+
return GetSocialProfileResponseFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function GetSocialProfileResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'emailAddress': !exists(json, 'emailAddress') ? undefined : json['emailAddress'],
|
|
24
|
+
'newAccount': !exists(json, 'newAccount') ? undefined : json['newAccount'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export function GetSocialProfileResponseToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'emailAddress': value.emailAddress,
|
|
36
|
+
'newAccount': value.newAccount,
|
|
37
|
+
};
|
|
38
|
+
}
|