@otr-app/shared-backend-generated-client 2.4.32 → 2.4.34

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.
Files changed (70) hide show
  1. package/dist/angular/.openapi-generator/FILES +10 -0
  2. package/dist/angular/api/api.ts +3 -1
  3. package/dist/angular/api/ocrPipelineController.service.ts +234 -0
  4. package/dist/angular/api.module.ts +1 -0
  5. package/dist/angular/model/citationIssueDate.ts +17 -0
  6. package/dist/angular/model/courtName.ts +20 -0
  7. package/dist/angular/model/existingAccountDetails.ts +3 -1
  8. package/dist/angular/model/models.ts +9 -0
  9. package/dist/angular/model/predictCitationRequest.ts +19 -0
  10. package/dist/angular/model/predictCitationResponse.ts +18 -0
  11. package/dist/angular/model/predictRichCitationResponse.ts +18 -0
  12. package/dist/angular/model/richCitationInferenceResponse.ts +42 -0
  13. package/dist/angular/model/skipMap.ts +18 -0
  14. package/dist/angular/model/slimCitationInferenceResponse.ts +27 -0
  15. package/dist/angular/model/violationNames.ts +19 -0
  16. package/dist/otrBackendService.js +74 -0
  17. package/dist/otrBackendService.min.js +3 -3
  18. package/dist/typescript/api/OcrPipelineControllerApi.d.ts +33 -0
  19. package/dist/typescript/api/OcrPipelineControllerApi.js +79 -0
  20. package/dist/typescript/api/api.d.ts +3 -1
  21. package/dist/typescript/api/api.js +3 -1
  22. package/dist/typescript/api.module.js +1 -0
  23. package/dist/typescript/model/CitationIssueDate.d.ts +14 -0
  24. package/dist/typescript/model/CitationIssueDate.js +13 -0
  25. package/dist/typescript/model/CourtName.d.ts +17 -0
  26. package/dist/typescript/model/CourtName.js +13 -0
  27. package/dist/typescript/model/ExistingAccountDetails.d.ts +3 -1
  28. package/dist/typescript/model/PredictCitationRequest.d.ts +16 -0
  29. package/dist/typescript/model/PredictCitationRequest.js +13 -0
  30. package/dist/typescript/model/PredictCitationResponse.d.ts +15 -0
  31. package/dist/typescript/model/PredictCitationResponse.js +13 -0
  32. package/dist/typescript/model/PredictRichCitationResponse.d.ts +15 -0
  33. package/dist/typescript/model/PredictRichCitationResponse.js +13 -0
  34. package/dist/typescript/model/RichCitationInferenceResponse.d.ts +39 -0
  35. package/dist/typescript/model/RichCitationInferenceResponse.js +13 -0
  36. package/dist/typescript/model/SkipMap.d.ts +15 -0
  37. package/dist/typescript/model/SkipMap.js +13 -0
  38. package/dist/typescript/model/SlimCitationInferenceResponse.d.ts +21 -0
  39. package/dist/typescript/model/SlimCitationInferenceResponse.js +13 -0
  40. package/dist/typescript/model/ViolationNames.d.ts +16 -0
  41. package/dist/typescript/model/ViolationNames.js +13 -0
  42. package/dist/typescript/model/models.d.ts +9 -0
  43. package/dist/typescript/model/models.js +9 -0
  44. package/dist/typescript-fetch/apis/OcrPipelineControllerApi.d.ts +40 -0
  45. package/dist/typescript-fetch/apis/OcrPipelineControllerApi.js +89 -0
  46. package/dist/typescript-fetch/apis/index.d.ts +1 -0
  47. package/dist/typescript-fetch/apis/index.js +1 -0
  48. package/dist/typescript-fetch/models/CitationIssueDate.d.ts +27 -0
  49. package/dist/typescript-fetch/models/CitationIssueDate.js +36 -0
  50. package/dist/typescript-fetch/models/CourtName.d.ts +45 -0
  51. package/dist/typescript-fetch/models/CourtName.js +42 -0
  52. package/dist/typescript-fetch/models/ExistingAccountDetails.d.ts +14 -2
  53. package/dist/typescript-fetch/models/ExistingAccountDetails.js +6 -2
  54. package/dist/typescript-fetch/models/PredictCitationRequest.d.ts +39 -0
  55. package/dist/typescript-fetch/models/PredictCitationRequest.js +40 -0
  56. package/dist/typescript-fetch/models/PredictCitationResponse.d.ts +28 -0
  57. package/dist/typescript-fetch/models/PredictCitationResponse.js +37 -0
  58. package/dist/typescript-fetch/models/PredictRichCitationResponse.d.ts +28 -0
  59. package/dist/typescript-fetch/models/PredictRichCitationResponse.js +37 -0
  60. package/dist/typescript-fetch/models/RichCitationInferenceResponse.d.ts +177 -0
  61. package/dist/typescript-fetch/models/RichCitationInferenceResponse.js +86 -0
  62. package/dist/typescript-fetch/models/SkipMap.d.ts +33 -0
  63. package/dist/typescript-fetch/models/SkipMap.js +38 -0
  64. package/dist/typescript-fetch/models/SlimCitationInferenceResponse.d.ts +64 -0
  65. package/dist/typescript-fetch/models/SlimCitationInferenceResponse.js +49 -0
  66. package/dist/typescript-fetch/models/ViolationNames.d.ts +39 -0
  67. package/dist/typescript-fetch/models/ViolationNames.js +40 -0
  68. package/dist/typescript-fetch/models/index.d.ts +9 -0
  69. package/dist/typescript-fetch/models/index.js +9 -0
  70. package/package.json +1 -1
@@ -0,0 +1,40 @@
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
+ import * as runtime from '../runtime';
13
+ import { PredictCitationRequest, PredictCitationResponse, PredictRichCitationResponse } from '../models';
14
+ export interface PredictCitationFieldsUsingPOSTRequest {
15
+ request: PredictCitationRequest;
16
+ }
17
+ export interface PredictRichCitationFieldsUsingPOSTRequest {
18
+ request: PredictCitationRequest;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class OcrPipelineControllerApi extends runtime.BaseAPI {
24
+ /**
25
+ * predictCitationFields
26
+ */
27
+ predictCitationFieldsUsingPOSTRaw(requestParameters: PredictCitationFieldsUsingPOSTRequest): Promise<runtime.ApiResponse<PredictCitationResponse>>;
28
+ /**
29
+ * predictCitationFields
30
+ */
31
+ predictCitationFieldsUsingPOST(requestParameters: PredictCitationFieldsUsingPOSTRequest): Promise<PredictCitationResponse>;
32
+ /**
33
+ * predictRichCitationFields
34
+ */
35
+ predictRichCitationFieldsUsingPOSTRaw(requestParameters: PredictRichCitationFieldsUsingPOSTRequest): Promise<runtime.ApiResponse<PredictRichCitationResponse>>;
36
+ /**
37
+ * predictRichCitationFields
38
+ */
39
+ predictRichCitationFieldsUsingPOST(requestParameters: PredictRichCitationFieldsUsingPOSTRequest): Promise<PredictRichCitationResponse>;
40
+ }
@@ -0,0 +1,89 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { PredictCitationRequestToJSON, PredictCitationResponseFromJSON, PredictRichCitationResponseFromJSON, } from '../models';
25
+ /**
26
+ *
27
+ */
28
+ export class OcrPipelineControllerApi extends runtime.BaseAPI {
29
+ /**
30
+ * predictCitationFields
31
+ */
32
+ predictCitationFieldsUsingPOSTRaw(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 predictCitationFieldsUsingPOST.');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ const response = yield this.request({
41
+ path: `/api/v1/ocr_pipeline/predict_citation`,
42
+ method: 'POST',
43
+ headers: headerParameters,
44
+ query: queryParameters,
45
+ body: PredictCitationRequestToJSON(requestParameters.request),
46
+ });
47
+ return new runtime.JSONApiResponse(response, (jsonValue) => PredictCitationResponseFromJSON(jsonValue));
48
+ });
49
+ }
50
+ /**
51
+ * predictCitationFields
52
+ */
53
+ predictCitationFieldsUsingPOST(requestParameters) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ const response = yield this.predictCitationFieldsUsingPOSTRaw(requestParameters);
56
+ return yield response.value();
57
+ });
58
+ }
59
+ /**
60
+ * predictRichCitationFields
61
+ */
62
+ predictRichCitationFieldsUsingPOSTRaw(requestParameters) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ if (requestParameters.request === null || requestParameters.request === undefined) {
65
+ throw new runtime.RequiredError('request', 'Required parameter requestParameters.request was null or undefined when calling predictRichCitationFieldsUsingPOST.');
66
+ }
67
+ const queryParameters = {};
68
+ const headerParameters = {};
69
+ headerParameters['Content-Type'] = 'application/json';
70
+ const response = yield this.request({
71
+ path: `/api/v1/ocr_pipeline/predict_rich_citation`,
72
+ method: 'POST',
73
+ headers: headerParameters,
74
+ query: queryParameters,
75
+ body: PredictCitationRequestToJSON(requestParameters.request),
76
+ });
77
+ return new runtime.JSONApiResponse(response, (jsonValue) => PredictRichCitationResponseFromJSON(jsonValue));
78
+ });
79
+ }
80
+ /**
81
+ * predictRichCitationFields
82
+ */
83
+ predictRichCitationFieldsUsingPOST(requestParameters) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ const response = yield this.predictRichCitationFieldsUsingPOSTRaw(requestParameters);
86
+ return yield response.value();
87
+ });
88
+ }
89
+ }
@@ -74,6 +74,7 @@ export * from './ListCasesControllerApi';
74
74
  export * from './MediaCreationControllerApi';
75
75
  export * from './MessagesControllerApi';
76
76
  export * from './NotesControllerApi';
77
+ export * from './OcrPipelineControllerApi';
77
78
  export * from './OcrPredictionControllerApi';
78
79
  export * from './OnDemandRequestControllerApi';
79
80
  export * from './OneTimePasswordControllerApi';
@@ -74,6 +74,7 @@ export * from './ListCasesControllerApi';
74
74
  export * from './MediaCreationControllerApi';
75
75
  export * from './MessagesControllerApi';
76
76
  export * from './NotesControllerApi';
77
+ export * from './OcrPipelineControllerApi';
77
78
  export * from './OcrPredictionControllerApi';
78
79
  export * from './OnDemandRequestControllerApi';
79
80
  export * from './OneTimePasswordControllerApi';
@@ -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 CitationIssueDate
16
+ */
17
+ export interface CitationIssueDate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CitationIssueDate
22
+ */
23
+ llmPrediction?: string;
24
+ }
25
+ export declare function CitationIssueDateFromJSON(json: any): CitationIssueDate;
26
+ export declare function CitationIssueDateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CitationIssueDate;
27
+ export declare function CitationIssueDateToJSON(value?: CitationIssueDate | null): any;
@@ -0,0 +1,36 @@
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 CitationIssueDateFromJSON(json) {
16
+ return CitationIssueDateFromJSONTyped(json, false);
17
+ }
18
+ export function CitationIssueDateFromJSONTyped(json, ignoreDiscriminator) {
19
+ if ((json === undefined) || (json === null)) {
20
+ return json;
21
+ }
22
+ return {
23
+ 'llmPrediction': !exists(json, 'llm_prediction') ? undefined : json['llm_prediction'],
24
+ };
25
+ }
26
+ export function CitationIssueDateToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'llm_prediction': value.llmPrediction,
35
+ };
36
+ }
@@ -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 CourtName
16
+ */
17
+ export interface CourtName {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CourtName
22
+ */
23
+ llmPrediction?: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof CourtName
28
+ */
29
+ pineconeMatch?: Array<string>;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof CourtName
34
+ */
35
+ pineconeMatches?: Array<string>;
36
+ /**
37
+ *
38
+ * @type {Array<number>}
39
+ * @memberof CourtName
40
+ */
41
+ pineconeScores?: Array<number>;
42
+ }
43
+ export declare function CourtNameFromJSON(json: any): CourtName;
44
+ export declare function CourtNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourtName;
45
+ export declare function CourtNameToJSON(value?: CourtName | null): any;
@@ -0,0 +1,42 @@
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 CourtNameFromJSON(json) {
16
+ return CourtNameFromJSONTyped(json, false);
17
+ }
18
+ export function CourtNameFromJSONTyped(json, ignoreDiscriminator) {
19
+ if ((json === undefined) || (json === null)) {
20
+ return json;
21
+ }
22
+ return {
23
+ 'llmPrediction': !exists(json, 'llm_prediction') ? undefined : json['llm_prediction'],
24
+ 'pineconeMatch': !exists(json, 'pinecone_match') ? undefined : json['pinecone_match'],
25
+ 'pineconeMatches': !exists(json, 'pinecone_matches') ? undefined : json['pinecone_matches'],
26
+ 'pineconeScores': !exists(json, 'pinecone_scores') ? undefined : json['pinecone_scores'],
27
+ };
28
+ }
29
+ export function CourtNameToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'llm_prediction': value.llmPrediction,
38
+ 'pinecone_match': value.pineconeMatch,
39
+ 'pinecone_matches': value.pineconeMatches,
40
+ 'pinecone_scores': value.pineconeScores,
41
+ };
42
+ }
@@ -27,6 +27,12 @@ export interface ExistingAccountDetails {
27
27
  * @memberof ExistingAccountDetails
28
28
  */
29
29
  ghostAccount?: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ExistingAccountDetails
34
+ */
35
+ isPhoneVerified?: boolean;
30
36
  /**
31
37
  *
32
38
  * @type {string}
@@ -41,10 +47,16 @@ export interface ExistingAccountDetails {
41
47
  obfuscatedEmailAddress?: string;
42
48
  /**
43
49
  *
44
- * @type {boolean}
50
+ * @type {string}
51
+ * @memberof ExistingAccountDetails
52
+ */
53
+ phoneNumber?: string;
54
+ /**
55
+ *
56
+ * @type {string}
45
57
  * @memberof ExistingAccountDetails
46
58
  */
47
- phoneVerified?: boolean;
59
+ profilePictureUrl?: string;
48
60
  /**
49
61
  *
50
62
  * @type {number}
@@ -22,9 +22,11 @@ export function ExistingAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
22
22
  return {
23
23
  'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
24
24
  'ghostAccount': !exists(json, 'ghostAccount') ? undefined : json['ghostAccount'],
25
+ 'isPhoneVerified': !exists(json, 'isPhoneVerified') ? undefined : json['isPhoneVerified'],
25
26
  'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
26
27
  'obfuscatedEmailAddress': !exists(json, 'obfuscatedEmailAddress') ? undefined : json['obfuscatedEmailAddress'],
27
- 'phoneVerified': !exists(json, 'phoneVerified') ? undefined : json['phoneVerified'],
28
+ 'phoneNumber': !exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
29
+ 'profilePictureUrl': !exists(json, 'profilePictureUrl') ? undefined : json['profilePictureUrl'],
28
30
  'userId': !exists(json, 'userId') ? undefined : json['userId'],
29
31
  };
30
32
  }
@@ -38,9 +40,11 @@ export function ExistingAccountDetailsToJSON(value) {
38
40
  return {
39
41
  'firstName': value.firstName,
40
42
  'ghostAccount': value.ghostAccount,
43
+ 'isPhoneVerified': value.isPhoneVerified,
41
44
  'lastName': value.lastName,
42
45
  'obfuscatedEmailAddress': value.obfuscatedEmailAddress,
43
- 'phoneVerified': value.phoneVerified,
46
+ 'phoneNumber': value.phoneNumber,
47
+ 'profilePictureUrl': value.profilePictureUrl,
44
48
  'userId': value.userId,
45
49
  };
46
50
  }
@@ -0,0 +1,39 @@
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 PredictCitationRequest
16
+ */
17
+ export interface PredictCitationRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PredictCitationRequest
22
+ */
23
+ citationId?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PredictCitationRequest
28
+ */
29
+ imageInBase64?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PredictCitationRequest
34
+ */
35
+ regionCode?: string;
36
+ }
37
+ export declare function PredictCitationRequestFromJSON(json: any): PredictCitationRequest;
38
+ export declare function PredictCitationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PredictCitationRequest;
39
+ export declare function PredictCitationRequestToJSON(value?: PredictCitationRequest | null): any;
@@ -0,0 +1,40 @@
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 PredictCitationRequestFromJSON(json) {
16
+ return PredictCitationRequestFromJSONTyped(json, false);
17
+ }
18
+ export function PredictCitationRequestFromJSONTyped(json, ignoreDiscriminator) {
19
+ if ((json === undefined) || (json === null)) {
20
+ return json;
21
+ }
22
+ return {
23
+ 'citationId': !exists(json, 'citationId') ? undefined : json['citationId'],
24
+ 'imageInBase64': !exists(json, 'imageInBase64') ? undefined : json['imageInBase64'],
25
+ 'regionCode': !exists(json, 'regionCode') ? undefined : json['regionCode'],
26
+ };
27
+ }
28
+ export function PredictCitationRequestToJSON(value) {
29
+ if (value === undefined) {
30
+ return undefined;
31
+ }
32
+ if (value === null) {
33
+ return null;
34
+ }
35
+ return {
36
+ 'citationId': value.citationId,
37
+ 'imageInBase64': value.imageInBase64,
38
+ 'regionCode': value.regionCode,
39
+ };
40
+ }
@@ -0,0 +1,28 @@
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
+ import { SlimCitationInferenceResponse } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PredictCitationResponse
17
+ */
18
+ export interface PredictCitationResponse {
19
+ /**
20
+ *
21
+ * @type {SlimCitationInferenceResponse}
22
+ * @memberof PredictCitationResponse
23
+ */
24
+ ocrResult?: SlimCitationInferenceResponse;
25
+ }
26
+ export declare function PredictCitationResponseFromJSON(json: any): PredictCitationResponse;
27
+ export declare function PredictCitationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PredictCitationResponse;
28
+ export declare function PredictCitationResponseToJSON(value?: PredictCitationResponse | null): any;
@@ -0,0 +1,37 @@
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
+ import { SlimCitationInferenceResponseFromJSON, SlimCitationInferenceResponseToJSON, } from './';
16
+ export function PredictCitationResponseFromJSON(json) {
17
+ return PredictCitationResponseFromJSONTyped(json, false);
18
+ }
19
+ export function PredictCitationResponseFromJSONTyped(json, ignoreDiscriminator) {
20
+ if ((json === undefined) || (json === null)) {
21
+ return json;
22
+ }
23
+ return {
24
+ 'ocrResult': !exists(json, 'ocrResult') ? undefined : SlimCitationInferenceResponseFromJSON(json['ocrResult']),
25
+ };
26
+ }
27
+ export function PredictCitationResponseToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'ocrResult': SlimCitationInferenceResponseToJSON(value.ocrResult),
36
+ };
37
+ }
@@ -0,0 +1,28 @@
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
+ import { RichCitationInferenceResponse } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PredictRichCitationResponse
17
+ */
18
+ export interface PredictRichCitationResponse {
19
+ /**
20
+ *
21
+ * @type {RichCitationInferenceResponse}
22
+ * @memberof PredictRichCitationResponse
23
+ */
24
+ ocrResult?: RichCitationInferenceResponse;
25
+ }
26
+ export declare function PredictRichCitationResponseFromJSON(json: any): PredictRichCitationResponse;
27
+ export declare function PredictRichCitationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PredictRichCitationResponse;
28
+ export declare function PredictRichCitationResponseToJSON(value?: PredictRichCitationResponse | null): any;
@@ -0,0 +1,37 @@
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
+ import { RichCitationInferenceResponseFromJSON, RichCitationInferenceResponseToJSON, } from './';
16
+ export function PredictRichCitationResponseFromJSON(json) {
17
+ return PredictRichCitationResponseFromJSONTyped(json, false);
18
+ }
19
+ export function PredictRichCitationResponseFromJSONTyped(json, ignoreDiscriminator) {
20
+ if ((json === undefined) || (json === null)) {
21
+ return json;
22
+ }
23
+ return {
24
+ 'ocrResult': !exists(json, 'ocrResult') ? undefined : RichCitationInferenceResponseFromJSON(json['ocrResult']),
25
+ };
26
+ }
27
+ export function PredictRichCitationResponseToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'ocrResult': RichCitationInferenceResponseToJSON(value.ocrResult),
36
+ };
37
+ }