@otr-app/shared-backend-generated-client 2.4.52 → 2.4.54
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/ocrPredictionController.service.ts +60 -0
- package/dist/angular/api/userAccountController.service.ts +76 -0
- package/dist/angular/model/associateOAuthAccountRequest.ts +34 -0
- package/dist/angular/model/associateOAuthAccountResponse.ts +20 -0
- package/dist/angular/model/models.ts +3 -0
- package/dist/angular/model/oCRCitationPredictionResponse.ts +44 -0
- package/dist/angular/model/validateDirectMailResponse.ts +2 -1
- package/dist/otrBackendService.js +79 -0
- package/dist/otrBackendService.min.js +3 -3
- package/dist/typescript/api/OcrPredictionControllerApi.d.ts +6 -0
- package/dist/typescript/api/OcrPredictionControllerApi.js +25 -0
- package/dist/typescript/api/UserAccountControllerApi.d.ts +7 -0
- package/dist/typescript/api/UserAccountControllerApi.js +31 -0
- package/dist/typescript/model/AssociateOAuthAccountRequest.d.ts +29 -0
- package/dist/typescript/model/AssociateOAuthAccountRequest.js +24 -0
- package/dist/typescript/model/AssociateOAuthAccountResponse.d.ts +17 -0
- package/dist/typescript/model/AssociateOAuthAccountResponse.js +12 -0
- package/dist/typescript/model/OCRCitationPredictionResponse.d.ts +38 -0
- package/dist/typescript/model/OCRCitationPredictionResponse.js +31 -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 +3 -0
- package/dist/typescript/model/models.js +3 -0
- package/dist/typescript-fetch/apis/OcrPredictionControllerApi.d.ts +12 -1
- package/dist/typescript-fetch/apis/OcrPredictionControllerApi.js +29 -1
- package/dist/typescript-fetch/apis/UserAccountControllerApi.d.ts +13 -1
- package/dist/typescript-fetch/apis/UserAccountControllerApi.js +34 -1
- package/dist/typescript-fetch/models/AssociateOAuthAccountRequest.d.ts +64 -0
- package/dist/typescript-fetch/models/AssociateOAuthAccountRequest.js +58 -0
- package/dist/typescript-fetch/models/AssociateOAuthAccountResponse.d.ts +45 -0
- package/dist/typescript-fetch/models/AssociateOAuthAccountResponse.js +42 -0
- package/dist/typescript-fetch/models/OCRCitationPredictionResponse.d.ts +92 -0
- package/dist/typescript-fetch/models/OCRCitationPredictionResponse.js +75 -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 +3 -0
- package/dist/typescript-fetch/models/index.js +3 -0
- package/package.json +1 -1
|
@@ -18,6 +18,12 @@ export declare class OcrPredictionControllerApi {
|
|
|
18
18
|
defaultHeaders: any;
|
|
19
19
|
static $inject: string[];
|
|
20
20
|
constructor($http: ng.IHttpService, $httpParamSerializer?: (d: any) => any, basePath?: string);
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary getCitationPrediction
|
|
24
|
+
* @param citationId citationId
|
|
25
|
+
*/
|
|
26
|
+
getCitationPredictionUsingGET(citationId: number, extraHttpRequestParams?: any): ng.IHttpPromise<models.OCRCitationPredictionResponse>;
|
|
21
27
|
/**
|
|
22
28
|
*
|
|
23
29
|
* @summary predictCitationText
|
|
@@ -20,6 +20,31 @@ export class OcrPredictionControllerApi {
|
|
|
20
20
|
this.basePath = basePath;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary getCitationPrediction
|
|
26
|
+
* @param citationId citationId
|
|
27
|
+
*/
|
|
28
|
+
getCitationPredictionUsingGET(citationId, extraHttpRequestParams) {
|
|
29
|
+
const localVarPath = this.basePath + '/api/v1/predictions/citations/{citationId}'
|
|
30
|
+
.replace('{' + 'citationId' + '}', encodeURIComponent(String(citationId)));
|
|
31
|
+
let queryParameters = {};
|
|
32
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
33
|
+
// verify required parameter 'citationId' is not null or undefined
|
|
34
|
+
if (citationId === null || citationId === undefined) {
|
|
35
|
+
throw new Error('Required parameter citationId was null or undefined when calling getCitationPredictionUsingGET.');
|
|
36
|
+
}
|
|
37
|
+
let httpRequestParams = {
|
|
38
|
+
method: 'GET',
|
|
39
|
+
url: localVarPath,
|
|
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 predictCitationText
|
|
@@ -25,6 +25,13 @@ export declare class UserAccountControllerApi {
|
|
|
25
25
|
* @param request request
|
|
26
26
|
*/
|
|
27
27
|
addExtraAccountUsingPOST(userId: string, request: models.AddExtraAccountRequest, extraHttpRequestParams?: any): ng.IHttpPromise<{}>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary associateOAuthAccount
|
|
31
|
+
* @param userId userId
|
|
32
|
+
* @param request request
|
|
33
|
+
*/
|
|
34
|
+
associateOAuthAccountUsingPOST(userId: number, request: models.AssociateOAuthAccountRequest, extraHttpRequestParams?: any): ng.IHttpPromise<models.AssociateOAuthAccountResponse>;
|
|
28
35
|
/**
|
|
29
36
|
*
|
|
30
37
|
* @summary removeAdditionalUserHandle
|
|
@@ -51,6 +51,37 @@ export class UserAccountControllerApi {
|
|
|
51
51
|
}
|
|
52
52
|
return this.$http(httpRequestParams);
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @summary associateOAuthAccount
|
|
57
|
+
* @param userId userId
|
|
58
|
+
* @param request request
|
|
59
|
+
*/
|
|
60
|
+
associateOAuthAccountUsingPOST(userId, request, extraHttpRequestParams) {
|
|
61
|
+
const localVarPath = this.basePath + '/api/v1/users/{userId}/accounts/associate-oauth'
|
|
62
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
63
|
+
let queryParameters = {};
|
|
64
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
65
|
+
// verify required parameter 'userId' is not null or undefined
|
|
66
|
+
if (userId === null || userId === undefined) {
|
|
67
|
+
throw new Error('Required parameter userId was null or undefined when calling associateOAuthAccountUsingPOST.');
|
|
68
|
+
}
|
|
69
|
+
// verify required parameter 'request' is not null or undefined
|
|
70
|
+
if (request === null || request === undefined) {
|
|
71
|
+
throw new Error('Required parameter request was null or undefined when calling associateOAuthAccountUsingPOST.');
|
|
72
|
+
}
|
|
73
|
+
let httpRequestParams = {
|
|
74
|
+
method: 'POST',
|
|
75
|
+
url: localVarPath,
|
|
76
|
+
data: request,
|
|
77
|
+
params: queryParameters,
|
|
78
|
+
headers: headerParams
|
|
79
|
+
};
|
|
80
|
+
if (extraHttpRequestParams) {
|
|
81
|
+
httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
|
|
82
|
+
}
|
|
83
|
+
return this.$http(httpRequestParams);
|
|
84
|
+
}
|
|
54
85
|
/**
|
|
55
86
|
*
|
|
56
87
|
* @summary removeAdditionalUserHandle
|
|
@@ -0,0 +1,29 @@
|
|
|
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 AssociateOAuthAccountRequest {
|
|
13
|
+
"authCode"?: string;
|
|
14
|
+
"firstName"?: string;
|
|
15
|
+
"lastName"?: string;
|
|
16
|
+
"loginProvider": AssociateOAuthAccountRequest.LoginProviderEnum;
|
|
17
|
+
"providerToken": string;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace AssociateOAuthAccountRequest {
|
|
20
|
+
enum LoginProviderEnum {
|
|
21
|
+
APPLE,
|
|
22
|
+
EMAIL,
|
|
23
|
+
FACEBOOK,
|
|
24
|
+
GOOGLE,
|
|
25
|
+
PHONE,
|
|
26
|
+
TWITTER,
|
|
27
|
+
UNKNOWN
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 AssociateOAuthAccountRequest;
|
|
13
|
+
(function (AssociateOAuthAccountRequest) {
|
|
14
|
+
let LoginProviderEnum;
|
|
15
|
+
(function (LoginProviderEnum) {
|
|
16
|
+
LoginProviderEnum[LoginProviderEnum["APPLE"] = 'APPLE'] = "APPLE";
|
|
17
|
+
LoginProviderEnum[LoginProviderEnum["EMAIL"] = 'EMAIL'] = "EMAIL";
|
|
18
|
+
LoginProviderEnum[LoginProviderEnum["FACEBOOK"] = 'FACEBOOK'] = "FACEBOOK";
|
|
19
|
+
LoginProviderEnum[LoginProviderEnum["GOOGLE"] = 'GOOGLE'] = "GOOGLE";
|
|
20
|
+
LoginProviderEnum[LoginProviderEnum["PHONE"] = 'PHONE'] = "PHONE";
|
|
21
|
+
LoginProviderEnum[LoginProviderEnum["TWITTER"] = 'TWITTER'] = "TWITTER";
|
|
22
|
+
LoginProviderEnum[LoginProviderEnum["UNKNOWN"] = 'UNKNOWN'] = "UNKNOWN";
|
|
23
|
+
})(LoginProviderEnum = AssociateOAuthAccountRequest.LoginProviderEnum || (AssociateOAuthAccountRequest.LoginProviderEnum = {}));
|
|
24
|
+
})(AssociateOAuthAccountRequest || (AssociateOAuthAccountRequest = {}));
|
|
@@ -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
|
+
export interface AssociateOAuthAccountResponse {
|
|
13
|
+
"emailAddress"?: string;
|
|
14
|
+
"firstName"?: string;
|
|
15
|
+
"lastName"?: string;
|
|
16
|
+
"signedProfilePictureUrl"?: string;
|
|
17
|
+
}
|
|
@@ -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,38 @@
|
|
|
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 OCRCitationPredictionResponse {
|
|
13
|
+
"citationIssueDate"?: string;
|
|
14
|
+
"courtName"?: string;
|
|
15
|
+
"dateOfBirth"?: string;
|
|
16
|
+
"firstName"?: string;
|
|
17
|
+
"lastName"?: string;
|
|
18
|
+
"licenseNumber"?: string;
|
|
19
|
+
"race"?: OCRCitationPredictionResponse.RaceEnum;
|
|
20
|
+
"sex"?: OCRCitationPredictionResponse.SexEnum;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace OCRCitationPredictionResponse {
|
|
23
|
+
enum RaceEnum {
|
|
24
|
+
AmericanIndian,
|
|
25
|
+
Asian,
|
|
26
|
+
Black,
|
|
27
|
+
LatinoHispanic,
|
|
28
|
+
MiddleEastern,
|
|
29
|
+
Other,
|
|
30
|
+
PacificIslander,
|
|
31
|
+
White
|
|
32
|
+
}
|
|
33
|
+
enum SexEnum {
|
|
34
|
+
F,
|
|
35
|
+
M,
|
|
36
|
+
U
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 OCRCitationPredictionResponse;
|
|
13
|
+
(function (OCRCitationPredictionResponse) {
|
|
14
|
+
let RaceEnum;
|
|
15
|
+
(function (RaceEnum) {
|
|
16
|
+
RaceEnum[RaceEnum["AmericanIndian"] = 'american_indian'] = "AmericanIndian";
|
|
17
|
+
RaceEnum[RaceEnum["Asian"] = 'asian'] = "Asian";
|
|
18
|
+
RaceEnum[RaceEnum["Black"] = 'black'] = "Black";
|
|
19
|
+
RaceEnum[RaceEnum["LatinoHispanic"] = 'latino_hispanic'] = "LatinoHispanic";
|
|
20
|
+
RaceEnum[RaceEnum["MiddleEastern"] = 'middle_eastern'] = "MiddleEastern";
|
|
21
|
+
RaceEnum[RaceEnum["Other"] = 'other'] = "Other";
|
|
22
|
+
RaceEnum[RaceEnum["PacificIslander"] = 'pacific_islander'] = "PacificIslander";
|
|
23
|
+
RaceEnum[RaceEnum["White"] = 'white'] = "White";
|
|
24
|
+
})(RaceEnum = OCRCitationPredictionResponse.RaceEnum || (OCRCitationPredictionResponse.RaceEnum = {}));
|
|
25
|
+
let SexEnum;
|
|
26
|
+
(function (SexEnum) {
|
|
27
|
+
SexEnum[SexEnum["F"] = 'F'] = "F";
|
|
28
|
+
SexEnum[SexEnum["M"] = 'M'] = "M";
|
|
29
|
+
SexEnum[SexEnum["U"] = 'U'] = "U";
|
|
30
|
+
})(SexEnum = OCRCitationPredictionResponse.SexEnum || (OCRCitationPredictionResponse.SexEnum = {}));
|
|
31
|
+
})(OCRCitationPredictionResponse || (OCRCitationPredictionResponse = {}));
|
|
@@ -141,6 +141,7 @@ export var ValidateDirectMailResponse;
|
|
|
141
141
|
OtrErrorEnum[OtrErrorEnum["INVALIDRESOLUTIONSTATUS"] = 'INVALID_RESOLUTION_STATUS'] = "INVALIDRESOLUTIONSTATUS";
|
|
142
142
|
OtrErrorEnum[OtrErrorEnum["INVALIDREVIEWCOPY"] = 'INVALID_REVIEW_COPY'] = "INVALIDREVIEWCOPY";
|
|
143
143
|
OtrErrorEnum[OtrErrorEnum["INVALIDROLETYPE"] = 'INVALID_ROLE_TYPE'] = "INVALIDROLETYPE";
|
|
144
|
+
OtrErrorEnum[OtrErrorEnum["INVALIDSOCIALLOGINPROVIDER"] = 'INVALID_SOCIAL_LOGIN_PROVIDER'] = "INVALIDSOCIALLOGINPROVIDER";
|
|
144
145
|
OtrErrorEnum[OtrErrorEnum["INVALIDSTATE"] = 'INVALID_STATE'] = "INVALIDSTATE";
|
|
145
146
|
OtrErrorEnum[OtrErrorEnum["INVALIDSTRIPEACCOUNT"] = 'INVALID_STRIPE_ACCOUNT'] = "INVALIDSTRIPEACCOUNT";
|
|
146
147
|
OtrErrorEnum[OtrErrorEnum["INVALIDSTRIPECHARGEID"] = 'INVALID_STRIPE_CHARGE_ID'] = "INVALIDSTRIPECHARGEID";
|
|
@@ -45,6 +45,8 @@ export * from './AppEventCreateRequest';
|
|
|
45
45
|
export * from './AppearanceAttorneyDomain';
|
|
46
46
|
export * from './AppleLoginRequest';
|
|
47
47
|
export * from './AssignCitationOwnerRequest';
|
|
48
|
+
export * from './AssociateOAuthAccountRequest';
|
|
49
|
+
export * from './AssociateOAuthAccountResponse';
|
|
48
50
|
export * from './Attachment';
|
|
49
51
|
export * from './AuditLog';
|
|
50
52
|
export * from './Author';
|
|
@@ -530,6 +532,7 @@ export * from './NoteEntity';
|
|
|
530
532
|
export * from './NoteModel';
|
|
531
533
|
export * from './NotificationEvent';
|
|
532
534
|
export * from './NotificationEvents';
|
|
535
|
+
export * from './OCRCitationPredictionResponse';
|
|
533
536
|
export * from './OCRCourtModel';
|
|
534
537
|
export * from './OCRPredictionCaseResponse';
|
|
535
538
|
export * from './OCRViolationModel';
|
|
@@ -45,6 +45,8 @@ export * from './AppEventCreateRequest';
|
|
|
45
45
|
export * from './AppearanceAttorneyDomain';
|
|
46
46
|
export * from './AppleLoginRequest';
|
|
47
47
|
export * from './AssignCitationOwnerRequest';
|
|
48
|
+
export * from './AssociateOAuthAccountRequest';
|
|
49
|
+
export * from './AssociateOAuthAccountResponse';
|
|
48
50
|
export * from './Attachment';
|
|
49
51
|
export * from './AuditLog';
|
|
50
52
|
export * from './Author';
|
|
@@ -530,6 +532,7 @@ export * from './NoteEntity';
|
|
|
530
532
|
export * from './NoteModel';
|
|
531
533
|
export * from './NotificationEvent';
|
|
532
534
|
export * from './NotificationEvents';
|
|
535
|
+
export * from './OCRCitationPredictionResponse';
|
|
533
536
|
export * from './OCRCourtModel';
|
|
534
537
|
export * from './OCRPredictionCaseResponse';
|
|
535
538
|
export * from './OCRViolationModel';
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { OCRPredictionCaseResponse, PredictCitationTextRequest, PredictImageClassificationRequest, PredictImageClassificationResponse } from '../models';
|
|
13
|
+
import { OCRCitationPredictionResponse, OCRPredictionCaseResponse, PredictCitationTextRequest, PredictImageClassificationRequest, PredictImageClassificationResponse } from '../models';
|
|
14
|
+
export interface GetCitationPredictionUsingGETRequest {
|
|
15
|
+
citationId: number;
|
|
16
|
+
}
|
|
14
17
|
export interface PredictCitationTextUsingPOSTRequest {
|
|
15
18
|
request: PredictCitationTextRequest;
|
|
16
19
|
}
|
|
@@ -21,6 +24,14 @@ export interface PredictImageClassificationUsingPOSTRequest {
|
|
|
21
24
|
*
|
|
22
25
|
*/
|
|
23
26
|
export declare class OcrPredictionControllerApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* getCitationPrediction
|
|
29
|
+
*/
|
|
30
|
+
getCitationPredictionUsingGETRaw(requestParameters: GetCitationPredictionUsingGETRequest): Promise<runtime.ApiResponse<OCRCitationPredictionResponse>>;
|
|
31
|
+
/**
|
|
32
|
+
* getCitationPrediction
|
|
33
|
+
*/
|
|
34
|
+
getCitationPredictionUsingGET(requestParameters: GetCitationPredictionUsingGETRequest): Promise<OCRCitationPredictionResponse>;
|
|
24
35
|
/**
|
|
25
36
|
* predictCitationText
|
|
26
37
|
*/
|
|
@@ -21,11 +21,39 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { OCRPredictionCaseResponseFromJSON, PredictCitationTextRequestToJSON, PredictImageClassificationRequestToJSON, PredictImageClassificationResponseFromJSON, } from '../models';
|
|
24
|
+
import { OCRCitationPredictionResponseFromJSON, OCRPredictionCaseResponseFromJSON, PredictCitationTextRequestToJSON, PredictImageClassificationRequestToJSON, PredictImageClassificationResponseFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class OcrPredictionControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* getCitationPrediction
|
|
31
|
+
*/
|
|
32
|
+
getCitationPredictionUsingGETRaw(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters.citationId === null || requestParameters.citationId === undefined) {
|
|
35
|
+
throw new runtime.RequiredError('citationId', 'Required parameter requestParameters.citationId was null or undefined when calling getCitationPredictionUsingGET.');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
const response = yield this.request({
|
|
40
|
+
path: `/api/v1/predictions/citations/{citationId}`.replace(`{${"citationId"}}`, encodeURIComponent(String(requestParameters.citationId))),
|
|
41
|
+
method: 'GET',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
});
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OCRCitationPredictionResponseFromJSON(jsonValue));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* getCitationPrediction
|
|
50
|
+
*/
|
|
51
|
+
getCitationPredictionUsingGET(requestParameters) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const response = yield this.getCitationPredictionUsingGETRaw(requestParameters);
|
|
54
|
+
return yield response.value();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
29
57
|
/**
|
|
30
58
|
* predictCitationText
|
|
31
59
|
*/
|
|
@@ -10,11 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AddExtraAccountRequest } from '../models';
|
|
13
|
+
import { AddExtraAccountRequest, AssociateOAuthAccountRequest, AssociateOAuthAccountResponse } from '../models';
|
|
14
14
|
export interface AddExtraAccountUsingPOSTRequest {
|
|
15
15
|
userId: string;
|
|
16
16
|
request: AddExtraAccountRequest;
|
|
17
17
|
}
|
|
18
|
+
export interface AssociateOAuthAccountUsingPOSTRequest {
|
|
19
|
+
userId: number;
|
|
20
|
+
request: AssociateOAuthAccountRequest;
|
|
21
|
+
}
|
|
18
22
|
export interface RemoveAdditionalUserHandleUsingDELETERequest {
|
|
19
23
|
userHandle: string;
|
|
20
24
|
userId: number;
|
|
@@ -35,6 +39,14 @@ export declare class UserAccountControllerApi extends runtime.BaseAPI {
|
|
|
35
39
|
* addExtraAccount
|
|
36
40
|
*/
|
|
37
41
|
addExtraAccountUsingPOST(requestParameters: AddExtraAccountUsingPOSTRequest): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* associateOAuthAccount
|
|
44
|
+
*/
|
|
45
|
+
associateOAuthAccountUsingPOSTRaw(requestParameters: AssociateOAuthAccountUsingPOSTRequest): Promise<runtime.ApiResponse<AssociateOAuthAccountResponse>>;
|
|
46
|
+
/**
|
|
47
|
+
* associateOAuthAccount
|
|
48
|
+
*/
|
|
49
|
+
associateOAuthAccountUsingPOST(requestParameters: AssociateOAuthAccountUsingPOSTRequest): Promise<AssociateOAuthAccountResponse>;
|
|
38
50
|
/**
|
|
39
51
|
* removeAdditionalUserHandle
|
|
40
52
|
*/
|
|
@@ -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 { AddExtraAccountRequestToJSON, } from '../models';
|
|
24
|
+
import { AddExtraAccountRequestToJSON, AssociateOAuthAccountRequestToJSON, AssociateOAuthAccountResponseFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -58,6 +58,39 @@ export class UserAccountControllerApi extends runtime.BaseAPI {
|
|
|
58
58
|
yield this.addExtraAccountUsingPOSTRaw(requestParameters);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* associateOAuthAccount
|
|
63
|
+
*/
|
|
64
|
+
associateOAuthAccountUsingPOSTRaw(requestParameters) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
67
|
+
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling associateOAuthAccountUsingPOST.');
|
|
68
|
+
}
|
|
69
|
+
if (requestParameters.request === null || requestParameters.request === undefined) {
|
|
70
|
+
throw new runtime.RequiredError('request', 'Required parameter requestParameters.request was null or undefined when calling associateOAuthAccountUsingPOST.');
|
|
71
|
+
}
|
|
72
|
+
const queryParameters = {};
|
|
73
|
+
const headerParameters = {};
|
|
74
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
75
|
+
const response = yield this.request({
|
|
76
|
+
path: `/api/v1/users/{userId}/accounts/associate-oauth`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
77
|
+
method: 'POST',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
body: AssociateOAuthAccountRequestToJSON(requestParameters.request),
|
|
81
|
+
});
|
|
82
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AssociateOAuthAccountResponseFromJSON(jsonValue));
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* associateOAuthAccount
|
|
87
|
+
*/
|
|
88
|
+
associateOAuthAccountUsingPOST(requestParameters) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const response = yield this.associateOAuthAccountUsingPOSTRaw(requestParameters);
|
|
91
|
+
return yield response.value();
|
|
92
|
+
});
|
|
93
|
+
}
|
|
61
94
|
/**
|
|
62
95
|
* removeAdditionalUserHandle
|
|
63
96
|
*/
|
|
@@ -0,0 +1,64 @@
|
|
|
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 AssociateOAuthAccountRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AssociateOAuthAccountRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssociateOAuthAccountRequest
|
|
22
|
+
*/
|
|
23
|
+
authCode?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssociateOAuthAccountRequest
|
|
28
|
+
*/
|
|
29
|
+
firstName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AssociateOAuthAccountRequest
|
|
34
|
+
*/
|
|
35
|
+
lastName?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AssociateOAuthAccountRequest
|
|
40
|
+
*/
|
|
41
|
+
loginProvider: AssociateOAuthAccountRequestLoginProviderEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AssociateOAuthAccountRequest
|
|
46
|
+
*/
|
|
47
|
+
providerToken: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function AssociateOAuthAccountRequestFromJSON(json: any): AssociateOAuthAccountRequest;
|
|
50
|
+
export declare function AssociateOAuthAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateOAuthAccountRequest;
|
|
51
|
+
export declare function AssociateOAuthAccountRequestToJSON(value?: AssociateOAuthAccountRequest | null): any;
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
* @enum {string}
|
|
55
|
+
*/
|
|
56
|
+
export declare enum AssociateOAuthAccountRequestLoginProviderEnum {
|
|
57
|
+
APPLE = "APPLE",
|
|
58
|
+
EMAIL = "EMAIL",
|
|
59
|
+
FACEBOOK = "FACEBOOK",
|
|
60
|
+
GOOGLE = "GOOGLE",
|
|
61
|
+
PHONE = "PHONE",
|
|
62
|
+
TWITTER = "TWITTER",
|
|
63
|
+
UNKNOWN = "UNKNOWN"
|
|
64
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 AssociateOAuthAccountRequestFromJSON(json) {
|
|
16
|
+
return AssociateOAuthAccountRequestFromJSONTyped(json, false);
|
|
17
|
+
}
|
|
18
|
+
export function AssociateOAuthAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
19
|
+
if ((json === undefined) || (json === null)) {
|
|
20
|
+
return json;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'authCode': !exists(json, 'authCode') ? undefined : json['authCode'],
|
|
24
|
+
'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
|
|
25
|
+
'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
|
|
26
|
+
'loginProvider': json['loginProvider'],
|
|
27
|
+
'providerToken': json['providerToken'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export function AssociateOAuthAccountRequestToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'authCode': value.authCode,
|
|
39
|
+
'firstName': value.firstName,
|
|
40
|
+
'lastName': value.lastName,
|
|
41
|
+
'loginProvider': value.loginProvider,
|
|
42
|
+
'providerToken': value.providerToken,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
* @enum {string}
|
|
48
|
+
*/
|
|
49
|
+
export var AssociateOAuthAccountRequestLoginProviderEnum;
|
|
50
|
+
(function (AssociateOAuthAccountRequestLoginProviderEnum) {
|
|
51
|
+
AssociateOAuthAccountRequestLoginProviderEnum["APPLE"] = "APPLE";
|
|
52
|
+
AssociateOAuthAccountRequestLoginProviderEnum["EMAIL"] = "EMAIL";
|
|
53
|
+
AssociateOAuthAccountRequestLoginProviderEnum["FACEBOOK"] = "FACEBOOK";
|
|
54
|
+
AssociateOAuthAccountRequestLoginProviderEnum["GOOGLE"] = "GOOGLE";
|
|
55
|
+
AssociateOAuthAccountRequestLoginProviderEnum["PHONE"] = "PHONE";
|
|
56
|
+
AssociateOAuthAccountRequestLoginProviderEnum["TWITTER"] = "TWITTER";
|
|
57
|
+
AssociateOAuthAccountRequestLoginProviderEnum["UNKNOWN"] = "UNKNOWN";
|
|
58
|
+
})(AssociateOAuthAccountRequestLoginProviderEnum || (AssociateOAuthAccountRequestLoginProviderEnum = {}));
|
|
@@ -0,0 +1,45 @@
|
|
|
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 AssociateOAuthAccountResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AssociateOAuthAccountResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssociateOAuthAccountResponse
|
|
22
|
+
*/
|
|
23
|
+
emailAddress?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssociateOAuthAccountResponse
|
|
28
|
+
*/
|
|
29
|
+
firstName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AssociateOAuthAccountResponse
|
|
34
|
+
*/
|
|
35
|
+
lastName?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AssociateOAuthAccountResponse
|
|
40
|
+
*/
|
|
41
|
+
signedProfilePictureUrl?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function AssociateOAuthAccountResponseFromJSON(json: any): AssociateOAuthAccountResponse;
|
|
44
|
+
export declare function AssociateOAuthAccountResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssociateOAuthAccountResponse;
|
|
45
|
+
export declare function AssociateOAuthAccountResponseToJSON(value?: AssociateOAuthAccountResponse | null): any;
|