@otr-app/shared-backend-generated-client 2.5.103 → 2.5.105
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/caseUserController.service.ts +68 -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/angular/model/validateDirectMailResponse.ts +2 -1
- package/dist/otrBackendService.js +90 -0
- package/dist/otrBackendService.min.js +6 -6
- package/dist/typescript/api/CaseUserControllerApi.d.ts +7 -0
- package/dist/typescript/api/CaseUserControllerApi.js +33 -0
- 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/ValidateDirectMailResponse.d.ts +1 -0
- package/dist/typescript/model/ValidateDirectMailResponse.js +1 -0
- package/dist/typescript/model/models.d.ts +2 -0
- package/dist/typescript/model/models.js +2 -0
- package/dist/typescript-fetch/apis/CaseUserControllerApi.d.ts +12 -0
- package/dist/typescript-fetch/apis/CaseUserControllerApi.js +33 -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/ValidateDirectMailResponse.d.ts +1 -0
- package/dist/typescript-fetch/models/ValidateDirectMailResponse.js +1 -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 +183 -27
- package/dist/typescript-open-api/otr-backend.js +16 -15
- package/package.json +1 -1
|
@@ -51,6 +51,13 @@ export declare class CaseUserControllerApi {
|
|
|
51
51
|
* @param isDefendant isDefendant
|
|
52
52
|
*/
|
|
53
53
|
listDashboardCaseUsersUsingGET(userId: number, isDefendant?: boolean, extraHttpRequestParams?: any): ng.IHttpPromise<models.ListDashboardCaseUsersResponse>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @summary resendCaseParticipantInvite
|
|
57
|
+
* @param caseId caseId
|
|
58
|
+
* @param emailAddress emailAddress
|
|
59
|
+
*/
|
|
60
|
+
resendCaseParticipantInviteUsingPOST(caseId: string, emailAddress: string, extraHttpRequestParams?: any): ng.IHttpPromise<{}>;
|
|
54
61
|
/**
|
|
55
62
|
*
|
|
56
63
|
* @summary saveCaseUser
|
|
@@ -165,6 +165,39 @@ export class CaseUserControllerApi {
|
|
|
165
165
|
}
|
|
166
166
|
return this.$http(httpRequestParams);
|
|
167
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @summary resendCaseParticipantInvite
|
|
171
|
+
* @param caseId caseId
|
|
172
|
+
* @param emailAddress emailAddress
|
|
173
|
+
*/
|
|
174
|
+
resendCaseParticipantInviteUsingPOST(caseId, emailAddress, extraHttpRequestParams) {
|
|
175
|
+
const localVarPath = this.basePath + '/api/v1/cases/{caseId}/participants/resend-invite'
|
|
176
|
+
.replace('{' + 'caseId' + '}', encodeURIComponent(String(caseId)));
|
|
177
|
+
let queryParameters = {};
|
|
178
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
179
|
+
// verify required parameter 'caseId' is not null or undefined
|
|
180
|
+
if (caseId === null || caseId === undefined) {
|
|
181
|
+
throw new Error('Required parameter caseId was null or undefined when calling resendCaseParticipantInviteUsingPOST.');
|
|
182
|
+
}
|
|
183
|
+
// verify required parameter 'emailAddress' is not null or undefined
|
|
184
|
+
if (emailAddress === null || emailAddress === undefined) {
|
|
185
|
+
throw new Error('Required parameter emailAddress was null or undefined when calling resendCaseParticipantInviteUsingPOST.');
|
|
186
|
+
}
|
|
187
|
+
if (emailAddress !== undefined) {
|
|
188
|
+
queryParameters['emailAddress'] = emailAddress;
|
|
189
|
+
}
|
|
190
|
+
let httpRequestParams = {
|
|
191
|
+
method: 'POST',
|
|
192
|
+
url: localVarPath,
|
|
193
|
+
params: queryParameters,
|
|
194
|
+
headers: headerParams
|
|
195
|
+
};
|
|
196
|
+
if (extraHttpRequestParams) {
|
|
197
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
198
|
+
}
|
|
199
|
+
return this.$http(httpRequestParams);
|
|
200
|
+
}
|
|
168
201
|
/**
|
|
169
202
|
*
|
|
170
203
|
* @summary saveCaseUser
|
|
@@ -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,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;
|
|
@@ -163,6 +163,7 @@ export declare namespace ValidateDirectMailResponse {
|
|
|
163
163
|
INVALIDUSERNAME,
|
|
164
164
|
INVITATIONALREADYSENT,
|
|
165
165
|
INVITATIONALREADYVERIFIED,
|
|
166
|
+
INVITATIONALREADYVERIFIEDBYRECIPIENT,
|
|
166
167
|
INVITATIONCANCELLED,
|
|
167
168
|
INVITATIONHASEXPIRED,
|
|
168
169
|
INVITATIONRECIPIENTNOACCOUNT,
|
|
@@ -162,6 +162,7 @@ export var ValidateDirectMailResponse;
|
|
|
162
162
|
OtrErrorEnum[OtrErrorEnum["INVALIDUSERNAME"] = 'INVALID_USER_NAME'] = "INVALIDUSERNAME";
|
|
163
163
|
OtrErrorEnum[OtrErrorEnum["INVITATIONALREADYSENT"] = 'INVITATION_ALREADY_SENT'] = "INVITATIONALREADYSENT";
|
|
164
164
|
OtrErrorEnum[OtrErrorEnum["INVITATIONALREADYVERIFIED"] = 'INVITATION_ALREADY_VERIFIED'] = "INVITATIONALREADYVERIFIED";
|
|
165
|
+
OtrErrorEnum[OtrErrorEnum["INVITATIONALREADYVERIFIEDBYRECIPIENT"] = 'INVITATION_ALREADY_VERIFIED_BY_RECIPIENT'] = "INVITATIONALREADYVERIFIEDBYRECIPIENT";
|
|
165
166
|
OtrErrorEnum[OtrErrorEnum["INVITATIONCANCELLED"] = 'INVITATION_CANCELLED'] = "INVITATIONCANCELLED";
|
|
166
167
|
OtrErrorEnum[OtrErrorEnum["INVITATIONHASEXPIRED"] = 'INVITATION_HAS_EXPIRED'] = "INVITATIONHASEXPIRED";
|
|
167
168
|
OtrErrorEnum[OtrErrorEnum["INVITATIONRECIPIENTNOACCOUNT"] = 'INVITATION_RECIPIENT_NO_ACCOUNT'] = "INVITATIONRECIPIENTNOACCOUNT";
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -30,6 +30,10 @@ export interface ListDashboardCaseUsersUsingGETRequest {
|
|
|
30
30
|
userId: number;
|
|
31
31
|
isDefendant?: boolean;
|
|
32
32
|
}
|
|
33
|
+
export interface ResendCaseParticipantInviteUsingPOSTRequest {
|
|
34
|
+
caseId: string;
|
|
35
|
+
emailAddress: string;
|
|
36
|
+
}
|
|
33
37
|
export interface SaveCaseUserUsingPOSTRequest {
|
|
34
38
|
caseId: string;
|
|
35
39
|
request: SaveCaseUserRequest;
|
|
@@ -78,6 +82,14 @@ export declare class CaseUserControllerApi extends runtime.BaseAPI {
|
|
|
78
82
|
* listDashboardCaseUsers
|
|
79
83
|
*/
|
|
80
84
|
listDashboardCaseUsersUsingGET(requestParameters: ListDashboardCaseUsersUsingGETRequest): Promise<ListDashboardCaseUsersResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* resendCaseParticipantInvite
|
|
87
|
+
*/
|
|
88
|
+
resendCaseParticipantInviteUsingPOSTRaw(requestParameters: ResendCaseParticipantInviteUsingPOSTRequest): Promise<runtime.ApiResponse<void>>;
|
|
89
|
+
/**
|
|
90
|
+
* resendCaseParticipantInvite
|
|
91
|
+
*/
|
|
92
|
+
resendCaseParticipantInviteUsingPOST(requestParameters: ResendCaseParticipantInviteUsingPOSTRequest): Promise<void>;
|
|
81
93
|
/**
|
|
82
94
|
* saveCaseUser
|
|
83
95
|
*/
|
|
@@ -179,6 +179,39 @@ export class CaseUserControllerApi extends runtime.BaseAPI {
|
|
|
179
179
|
return yield response.value();
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* resendCaseParticipantInvite
|
|
184
|
+
*/
|
|
185
|
+
resendCaseParticipantInviteUsingPOSTRaw(requestParameters) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
if (requestParameters.caseId === null || requestParameters.caseId === undefined) {
|
|
188
|
+
throw new runtime.RequiredError('caseId', 'Required parameter requestParameters.caseId was null or undefined when calling resendCaseParticipantInviteUsingPOST.');
|
|
189
|
+
}
|
|
190
|
+
if (requestParameters.emailAddress === null || requestParameters.emailAddress === undefined) {
|
|
191
|
+
throw new runtime.RequiredError('emailAddress', 'Required parameter requestParameters.emailAddress was null or undefined when calling resendCaseParticipantInviteUsingPOST.');
|
|
192
|
+
}
|
|
193
|
+
const queryParameters = {};
|
|
194
|
+
if (requestParameters.emailAddress !== undefined) {
|
|
195
|
+
queryParameters['emailAddress'] = requestParameters.emailAddress;
|
|
196
|
+
}
|
|
197
|
+
const headerParameters = {};
|
|
198
|
+
const response = yield this.request({
|
|
199
|
+
path: `/api/v1/cases/{caseId}/participants/resend-invite`.replace(`{${"caseId"}}`, encodeURIComponent(String(requestParameters.caseId))),
|
|
200
|
+
method: 'POST',
|
|
201
|
+
headers: headerParameters,
|
|
202
|
+
query: queryParameters,
|
|
203
|
+
});
|
|
204
|
+
return new runtime.VoidApiResponse(response);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* resendCaseParticipantInvite
|
|
209
|
+
*/
|
|
210
|
+
resendCaseParticipantInviteUsingPOST(requestParameters) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
yield this.resendCaseParticipantInviteUsingPOSTRaw(requestParameters);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
182
215
|
/**
|
|
183
216
|
* saveCaseUser
|
|
184
217
|
*/
|
|
@@ -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,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
|
+
}
|
|
@@ -89,6 +89,12 @@ export interface SocialLoginRequest {
|
|
|
89
89
|
* @memberof SocialLoginRequest
|
|
90
90
|
*/
|
|
91
91
|
userReferralSourceTypeId?: number;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof SocialLoginRequest
|
|
96
|
+
*/
|
|
97
|
+
verifyEmailCode?: string;
|
|
92
98
|
}
|
|
93
99
|
export declare function SocialLoginRequestFromJSON(json: any): SocialLoginRequest;
|
|
94
100
|
export declare function SocialLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SocialLoginRequest;
|
|
@@ -32,6 +32,7 @@ export function SocialLoginRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'referralSourceData': !exists(json, 'referralSourceData') ? undefined : json['referralSourceData'],
|
|
33
33
|
'userAccessToken': !exists(json, 'userAccessToken') ? undefined : json['userAccessToken'],
|
|
34
34
|
'userReferralSourceTypeId': !exists(json, 'userReferralSourceTypeId') ? undefined : json['userReferralSourceTypeId'],
|
|
35
|
+
'verifyEmailCode': !exists(json, 'verifyEmailCode') ? undefined : json['verifyEmailCode'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
export function SocialLoginRequestToJSON(value) {
|
|
@@ -54,6 +55,7 @@ export function SocialLoginRequestToJSON(value) {
|
|
|
54
55
|
'referralSourceData': value.referralSourceData,
|
|
55
56
|
'userAccessToken': value.userAccessToken,
|
|
56
57
|
'userReferralSourceTypeId': value.userReferralSourceTypeId,
|
|
58
|
+
'verifyEmailCode': value.verifyEmailCode,
|
|
57
59
|
};
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
@@ -22,6 +22,12 @@ export interface SocialLoginUser {
|
|
|
22
22
|
* @memberof SocialLoginUser
|
|
23
23
|
*/
|
|
24
24
|
emailAddress?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof SocialLoginUser
|
|
29
|
+
*/
|
|
30
|
+
emailConfirmed?: boolean;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {string}
|
|
@@ -34,6 +40,12 @@ export interface SocialLoginUser {
|
|
|
34
40
|
* @memberof SocialLoginUser
|
|
35
41
|
*/
|
|
36
42
|
intercomUserHash?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof SocialLoginUser
|
|
47
|
+
*/
|
|
48
|
+
isEmailConfirmed?: boolean;
|
|
37
49
|
/**
|
|
38
50
|
*
|
|
39
51
|
* @type {boolean}
|