@otr-app/shared-backend-generated-client 2.3.255 → 2.3.257
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/citationController.service.ts +72 -0
- package/dist/angular/model/models.ts +2 -0
- package/dist/angular/model/signImageUrlRequest.ts +18 -0
- package/dist/angular/model/signImageUrlResponse.ts +17 -0
- package/dist/angular/model/userSubscriptionPlanModel.ts +8 -0
- package/dist/angular/model/userSubscriptionPlanModelReq.ts +8 -0
- package/dist/angular/model/userSubscriptionPlanModelRes.ts +8 -0
- package/dist/otrBackendService.js +37 -0
- package/dist/otrBackendService.min.js +6 -6
- package/dist/typescript/api/CitationControllerApi.d.ts +6 -0
- package/dist/typescript/api/CitationControllerApi.js +25 -0
- package/dist/typescript/model/SignImageUrlRequest.d.ts +15 -0
- package/dist/typescript/model/SignImageUrlRequest.js +13 -0
- package/dist/typescript/model/SignImageUrlResponse.d.ts +14 -0
- package/dist/typescript/model/SignImageUrlResponse.js +13 -0
- package/dist/typescript/model/UserSubscriptionPlanModel.d.ts +7 -0
- package/dist/typescript/model/UserSubscriptionPlanModel.js +6 -0
- package/dist/typescript/model/UserSubscriptionPlanModelReq.d.ts +7 -0
- package/dist/typescript/model/UserSubscriptionPlanModelReq.js +6 -0
- package/dist/typescript/model/UserSubscriptionPlanModelRes.d.ts +7 -0
- package/dist/typescript/model/UserSubscriptionPlanModelRes.js +6 -0
- package/dist/typescript/model/models.d.ts +2 -0
- package/dist/typescript/model/models.js +2 -0
- package/package.json +1 -1
|
@@ -744,6 +744,8 @@ model/setStarOnMessageModel.ts
|
|
|
744
744
|
model/setStarOnMessagesRequest.ts
|
|
745
745
|
model/settingRequest.ts
|
|
746
746
|
model/settingResponse.ts
|
|
747
|
+
model/signImageUrlRequest.ts
|
|
748
|
+
model/signImageUrlResponse.ts
|
|
747
749
|
model/signRecordingUrlRequest.ts
|
|
748
750
|
model/signRecordingUrlResponse.ts
|
|
749
751
|
model/simpleCredentialsResponse.ts
|
|
@@ -39,6 +39,10 @@ import { GetListOfCitationsWithMissingCourtResponse } from '../model/getListOfCi
|
|
|
39
39
|
// @ts-ignore
|
|
40
40
|
import { GetNoViolationCitationsResponse } from '../model/getNoViolationCitationsResponse';
|
|
41
41
|
// @ts-ignore
|
|
42
|
+
import { SignImageUrlRequest } from '../model/signImageUrlRequest';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { SignImageUrlResponse } from '../model/signImageUrlResponse';
|
|
45
|
+
// @ts-ignore
|
|
42
46
|
import { UpdateCitationAddressRequest } from '../model/updateCitationAddressRequest';
|
|
43
47
|
// @ts-ignore
|
|
44
48
|
import { UpdateCitationPictureRequest } from '../model/updateCitationPictureRequest';
|
|
@@ -1000,6 +1004,74 @@ export class CitationControllerService {
|
|
|
1000
1004
|
);
|
|
1001
1005
|
}
|
|
1002
1006
|
|
|
1007
|
+
/**
|
|
1008
|
+
* signImageUrl
|
|
1009
|
+
* @param request request
|
|
1010
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1011
|
+
* @param reportProgress flag to report request and response progress.
|
|
1012
|
+
*/
|
|
1013
|
+
public signImageUrlUsingPOST(request: SignImageUrlRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<SignImageUrlResponse>;
|
|
1014
|
+
public signImageUrlUsingPOST(request: SignImageUrlRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<SignImageUrlResponse>>;
|
|
1015
|
+
public signImageUrlUsingPOST(request: SignImageUrlRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<SignImageUrlResponse>>;
|
|
1016
|
+
public signImageUrlUsingPOST(request: SignImageUrlRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
1017
|
+
if (request === null || request === undefined) {
|
|
1018
|
+
throw new Error('Required parameter request was null or undefined when calling signImageUrlUsingPOST.');
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1022
|
+
|
|
1023
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1024
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1025
|
+
// to determine the Accept header
|
|
1026
|
+
const httpHeaderAccepts: string[] = [
|
|
1027
|
+
'*/*'
|
|
1028
|
+
];
|
|
1029
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1030
|
+
}
|
|
1031
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1032
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1036
|
+
if (localVarHttpContext === undefined) {
|
|
1037
|
+
localVarHttpContext = new HttpContext();
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
// to determine the Content-Type header
|
|
1042
|
+
const consumes: string[] = [
|
|
1043
|
+
'application/json'
|
|
1044
|
+
];
|
|
1045
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
1046
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1047
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1051
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1052
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1053
|
+
responseType_ = 'text';
|
|
1054
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1055
|
+
responseType_ = 'json';
|
|
1056
|
+
} else {
|
|
1057
|
+
responseType_ = 'blob';
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
let localVarPath = `/api/v1/citations/sign-image-url`;
|
|
1062
|
+
return this.httpClient.request<SignImageUrlResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
1063
|
+
{
|
|
1064
|
+
context: localVarHttpContext,
|
|
1065
|
+
body: request,
|
|
1066
|
+
responseType: <any>responseType_,
|
|
1067
|
+
withCredentials: this.configuration.withCredentials,
|
|
1068
|
+
headers: localVarHeaders,
|
|
1069
|
+
observe: observe,
|
|
1070
|
+
reportProgress: reportProgress
|
|
1071
|
+
}
|
|
1072
|
+
);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1003
1075
|
/**
|
|
1004
1076
|
* toggleDeleteCitation
|
|
1005
1077
|
* @param citationId citationId
|
|
@@ -622,6 +622,8 @@ export * from './setStarOnMessageModel';
|
|
|
622
622
|
export * from './setStarOnMessagesRequest';
|
|
623
623
|
export * from './settingRequest';
|
|
624
624
|
export * from './settingResponse';
|
|
625
|
+
export * from './signImageUrlRequest';
|
|
626
|
+
export * from './signImageUrlResponse';
|
|
625
627
|
export * from './signRecordingUrlRequest';
|
|
626
628
|
export * from './signRecordingUrlResponse';
|
|
627
629
|
export * from './simpleCredentialsResponse';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OffTheRecord Rest Service API - Devo
|
|
3
|
+
* A service to handle your traffic tickets
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
export interface SignImageUrlRequest {
|
|
15
|
+
minutes?: number;
|
|
16
|
+
unsignedImageUrl?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OffTheRecord Rest Service API - Devo
|
|
3
|
+
* A service to handle your traffic tickets
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
export interface SignImageUrlResponse {
|
|
15
|
+
signedImageUrl?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
@@ -14,10 +14,18 @@
|
|
|
14
14
|
export interface UserSubscriptionPlanModel {
|
|
15
15
|
expirationDateUtc?: string;
|
|
16
16
|
id?: string;
|
|
17
|
+
productName?: UserSubscriptionPlanModel.ProductNameEnum;
|
|
18
|
+
startDateUtc?: string;
|
|
17
19
|
subscriptionCovered?: boolean;
|
|
18
20
|
subscriptionStatus?: UserSubscriptionPlanModel.SubscriptionStatusEnum;
|
|
19
21
|
}
|
|
20
22
|
export namespace UserSubscriptionPlanModel {
|
|
23
|
+
export type ProductNameEnum = 'CONVOY_PRO' | 'OTR_FASTLANE' | 'OTR_FASTLANE_TEEN';
|
|
24
|
+
export const ProductNameEnum = {
|
|
25
|
+
ConvoyPro: 'CONVOY_PRO' as ProductNameEnum,
|
|
26
|
+
OtrFastlane: 'OTR_FASTLANE' as ProductNameEnum,
|
|
27
|
+
OtrFastlaneTeen: 'OTR_FASTLANE_TEEN' as ProductNameEnum
|
|
28
|
+
};
|
|
21
29
|
export type SubscriptionStatusEnum = 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID';
|
|
22
30
|
export const SubscriptionStatusEnum = {
|
|
23
31
|
Active: 'ACTIVE' as SubscriptionStatusEnum,
|
|
@@ -14,9 +14,17 @@
|
|
|
14
14
|
export interface UserSubscriptionPlanModelReq {
|
|
15
15
|
expirationDateUtc?: string;
|
|
16
16
|
id?: string;
|
|
17
|
+
productName?: UserSubscriptionPlanModelReq.ProductNameEnum;
|
|
18
|
+
startDateUtc?: string;
|
|
17
19
|
subscriptionStatus?: UserSubscriptionPlanModelReq.SubscriptionStatusEnum;
|
|
18
20
|
}
|
|
19
21
|
export namespace UserSubscriptionPlanModelReq {
|
|
22
|
+
export type ProductNameEnum = 'CONVOY_PRO' | 'OTR_FASTLANE' | 'OTR_FASTLANE_TEEN';
|
|
23
|
+
export const ProductNameEnum = {
|
|
24
|
+
ConvoyPro: 'CONVOY_PRO' as ProductNameEnum,
|
|
25
|
+
OtrFastlane: 'OTR_FASTLANE' as ProductNameEnum,
|
|
26
|
+
OtrFastlaneTeen: 'OTR_FASTLANE_TEEN' as ProductNameEnum
|
|
27
|
+
};
|
|
20
28
|
export type SubscriptionStatusEnum = 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID';
|
|
21
29
|
export const SubscriptionStatusEnum = {
|
|
22
30
|
Active: 'ACTIVE' as SubscriptionStatusEnum,
|
|
@@ -14,10 +14,18 @@
|
|
|
14
14
|
export interface UserSubscriptionPlanModelRes {
|
|
15
15
|
expirationDateUtc?: string;
|
|
16
16
|
id?: string;
|
|
17
|
+
productName?: UserSubscriptionPlanModelRes.ProductNameEnum;
|
|
18
|
+
startDateUtc?: string;
|
|
17
19
|
subscriptionCovered?: boolean;
|
|
18
20
|
subscriptionStatus?: UserSubscriptionPlanModelRes.SubscriptionStatusEnum;
|
|
19
21
|
}
|
|
20
22
|
export namespace UserSubscriptionPlanModelRes {
|
|
23
|
+
export type ProductNameEnum = 'CONVOY_PRO' | 'OTR_FASTLANE' | 'OTR_FASTLANE_TEEN';
|
|
24
|
+
export const ProductNameEnum = {
|
|
25
|
+
ConvoyPro: 'CONVOY_PRO' as ProductNameEnum,
|
|
26
|
+
OtrFastlane: 'OTR_FASTLANE' as ProductNameEnum,
|
|
27
|
+
OtrFastlaneTeen: 'OTR_FASTLANE_TEEN' as ProductNameEnum
|
|
28
|
+
};
|
|
21
29
|
export type SubscriptionStatusEnum = 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID';
|
|
22
30
|
export const SubscriptionStatusEnum = {
|
|
23
31
|
Active: 'ACTIVE' as SubscriptionStatusEnum,
|
|
@@ -4133,6 +4133,43 @@ angular.module('otrBackendService', [])
|
|
|
4133
4133
|
|
|
4134
4134
|
return deferred.promise;
|
|
4135
4135
|
};
|
|
4136
|
+
/**
|
|
4137
|
+
* signImageUrl
|
|
4138
|
+
* @method
|
|
4139
|
+
* @name OtrService#signImageUrlUsingPOST
|
|
4140
|
+
* @param {object} parameters - method options and parameters
|
|
4141
|
+
* @param {} parameters.request - request
|
|
4142
|
+
*/
|
|
4143
|
+
OtrService.prototype.signImageUrlUsingPOST = function(parameters) {
|
|
4144
|
+
if (parameters === undefined) {
|
|
4145
|
+
parameters = {};
|
|
4146
|
+
}
|
|
4147
|
+
var deferred = $q.defer();
|
|
4148
|
+
var domain = this.domain,
|
|
4149
|
+
path = '/api/v1/citations/sign-image-url';
|
|
4150
|
+
var body = {},
|
|
4151
|
+
queryParameters = {},
|
|
4152
|
+
headers = {},
|
|
4153
|
+
form = {};
|
|
4154
|
+
|
|
4155
|
+
headers['Accept'] = ['*/*'];
|
|
4156
|
+
headers['Content-Type'] = ['application/json'];
|
|
4157
|
+
|
|
4158
|
+
if (parameters['request'] !== undefined) {
|
|
4159
|
+
body = parameters['request'];
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
if (parameters['request'] === undefined) {
|
|
4163
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
4164
|
+
return deferred.promise;
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4167
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
4168
|
+
|
|
4169
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
4170
|
+
|
|
4171
|
+
return deferred.promise;
|
|
4172
|
+
};
|
|
4136
4173
|
/**
|
|
4137
4174
|
* getCitation
|
|
4138
4175
|
* @method
|