Skip to content

Commit 1cfda36

Browse files
Removed Business Clients from types (#892)
1 parent 0682843 commit 1cfda36

File tree

5 files changed

+9
-33
lines changed

5 files changed

+9
-33
lines changed

documentation/src/utils/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
SteeringWheelPosition,
1212
TaskName,
1313
VehicleType,
14-
BusinessClients,
1514
} from '@monkvision/types';
1615
import { sights } from '@monkvision/sights';
1716
import { flatten } from '@monkvision/common';
@@ -194,8 +193,9 @@ export const CreateHinlTaskOptionsSchema = z.object({
194193

195194
export const CreatePricingTaskOptionsSchema = z.object({
196195
name: z.literal(TaskName.PRICING),
197-
outputFormat: z.nativeEnum(BusinessClients).optional(),
196+
outputFormat: z.string().optional(),
198197
config: z.string().optional(),
198+
methodology: z.string().optional(),
199199
});
200200

201201
export const InspectionCreateTaskSchema = z

packages/network/src/api/models/inspection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ApiImage, ApiImagePost, ApiImages } from './image';
44
import { ApiParts, ApiPartSimplifiedGet } from './part';
55
import type { ApiPricingV2 } from './pricingV2';
66
import type { ApiSeverityResults } from './severityResult';
7-
import type { ApiBusinessClients, ApiTasks } from './task';
7+
import type { ApiTasks } from './task';
88
import { ApiTasksComponent } from './task';
99
import type { ApiVehicleComponent } from './vehicle';
1010
import { ApiVehiclePostPatch } from './vehicle';
@@ -79,7 +79,7 @@ export interface ApiInspectionsCountGet {
7979
}
8080

8181
export interface ApiDamageSeverity {
82-
output_format: ApiBusinessClients;
82+
output_format: string;
8383
}
8484

8585
export interface ApiInspectionPost {

packages/network/src/api/models/task.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { ApiPricingMethodology } from './pricingV2';
22

3-
export type ApiBusinessClients = 'default' | 'toyota' | 'veb' | 'tesla';
4-
53
export interface ApiImageInTask {
64
image_id: string;
75
}
@@ -114,7 +112,7 @@ export interface ApiHinlTaskPostComponent {
114112
export interface ApiPricingTaskPostComponent {
115113
status?: ApiTaskPostProgressStatus;
116114
callbacks?: ApiCallbacks;
117-
output_format?: ApiBusinessClients;
115+
output_format?: string;
118116
config?: string;
119117
methodology?: ApiPricingMethodology;
120118
}

packages/network/test/api/inspection/data/apiInspectionPost.data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BusinessClients, PricingMethodology, TaskName } from '@monkvision/types';
1+
import { PricingMethodology, TaskName } from '@monkvision/types';
22

33
export default {
44
tasks: [
@@ -12,7 +12,7 @@ export default {
1212
},
1313
{
1414
name: TaskName.PRICING,
15-
outputFormat: BusinessClients.VEB,
15+
outputFormat: 'veb',
1616
config: 'config',
1717
methodology: PricingMethodology.FLAT_RATE,
1818
},

packages/types/src/api.ts

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,6 @@ export enum MonkApiPermission {
2323
INSPECTION_WRITE_ORGANIZATION = 'monk_core_api:inspections:write_organization',
2424
}
2525

26-
/**
27-
* Enumeration of Monk response format.
28-
*/
29-
export enum BusinessClients {
30-
/**
31-
* Default format.
32-
*/
33-
DEFAULT = 'default',
34-
/**
35-
* Toyota format.
36-
*/
37-
TOYOTA = 'toyota',
38-
/**
39-
* Veb format.
40-
*/
41-
VEB = 'veb',
42-
/**
43-
* Tesla format.
44-
*/
45-
TESLA = 'tesla',
46-
}
47-
4826
/**
4927
* Options used to specify a callback that will be called by the API when a task is complete.
5028
*/
@@ -144,9 +122,9 @@ export interface CreatePricingTaskOptions {
144122
/**
145123
* The client's output format.
146124
*
147-
* @default BusinessClients.DEFAULT
125+
* @default 'default'
148126
*/
149-
outputFormat?: BusinessClients;
127+
outputFormat?: string;
150128
/**
151129
* The custom pricing matrix to use.
152130
*/

0 commit comments

Comments
 (0)