@erp-galoper/types 1.0.1973 → 1.0.1975
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/openapi.ts +6 -101
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -22828,35 +22828,6 @@ export interface paths {
|
|
|
22828
22828
|
patch: operations["maintenance_views_partial_update_repair_order"];
|
|
22829
22829
|
trace?: never;
|
|
22830
22830
|
};
|
|
22831
|
-
"/api/v1/maintenance/repair-orders/{id}/cancel/": {
|
|
22832
|
-
parameters: {
|
|
22833
|
-
query?: never;
|
|
22834
|
-
header?: never;
|
|
22835
|
-
path?: never;
|
|
22836
|
-
cookie?: never;
|
|
22837
|
-
};
|
|
22838
|
-
get?: never;
|
|
22839
|
-
put?: never;
|
|
22840
|
-
/**
|
|
22841
|
-
* Cancel Repair Order
|
|
22842
|
-
* @description Endpoint for canceling a repair order.
|
|
22843
|
-
*
|
|
22844
|
-
* Possible Responses:
|
|
22845
|
-
* - 200: RepairOrderDetailSchema
|
|
22846
|
-
* - 400: cantBeCanceled, cannotCancelPaidRepairOrder
|
|
22847
|
-
* - 403: permissionDenied, noModuleAccess, noBranchAccess, statusAlreadyCanceled
|
|
22848
|
-
* - 404: repairOrderDoesNotExist
|
|
22849
|
-
* - 500: serverError
|
|
22850
|
-
*
|
|
22851
|
-
* Permission key: `repairorder = ['cancel']`
|
|
22852
|
-
*/
|
|
22853
|
-
post: operations["maintenance_views_cancel_repair_order"];
|
|
22854
|
-
delete?: never;
|
|
22855
|
-
options?: never;
|
|
22856
|
-
head?: never;
|
|
22857
|
-
patch?: never;
|
|
22858
|
-
trace?: never;
|
|
22859
|
-
};
|
|
22860
22831
|
"/api/v1/maintenance/damage-types/": {
|
|
22861
22832
|
parameters: {
|
|
22862
22833
|
query?: never;
|
|
@@ -63936,13 +63907,13 @@ export interface components {
|
|
|
63936
63907
|
canConvert: boolean;
|
|
63937
63908
|
/**
|
|
63938
63909
|
* Canmodify
|
|
63939
|
-
* @description False when the linked sales invoice has been paid or
|
|
63910
|
+
* @description False when the linked sales invoice has been paid or repair status is canceled.
|
|
63940
63911
|
* @default true
|
|
63941
63912
|
*/
|
|
63942
63913
|
canModify: boolean;
|
|
63943
63914
|
/**
|
|
63944
63915
|
* Cannotmodifyreason
|
|
63945
|
-
* @description Reason editing is blocked: paid or canceled.
|
|
63916
|
+
* @description Reason editing is blocked: paid or repair status is canceled.
|
|
63946
63917
|
*/
|
|
63947
63918
|
cannotModifyReason?: string | null;
|
|
63948
63919
|
/**
|
|
@@ -63960,8 +63931,7 @@ export interface components {
|
|
|
63960
63931
|
devicePassword?: string | null;
|
|
63961
63932
|
/** Staffnotes */
|
|
63962
63933
|
staffNotes?: string | null;
|
|
63963
|
-
status
|
|
63964
|
-
approvalStatus: components["schemas"]["ApprovalChoices"];
|
|
63934
|
+
/** @description Repair workflow status. When canceled, the repair order can no longer be edited. */
|
|
63965
63935
|
repairStatus: components["schemas"]["RepairStatusEnum"];
|
|
63966
63936
|
/** @description Derived from the linked sales invoice. Paid when the linked invoice is fully paid. */
|
|
63967
63937
|
paymentStatus: components["schemas"]["PaymentStatusEnum"];
|
|
@@ -63995,7 +63965,7 @@ export interface components {
|
|
|
63995
63965
|
* RepairStatusEnum
|
|
63996
63966
|
* @enum {string}
|
|
63997
63967
|
*/
|
|
63998
|
-
RepairStatusEnum: "pending" | "repairing" | "completed" | "approved";
|
|
63968
|
+
RepairStatusEnum: "pending" | "repairing" | "completed" | "approved" | "canceled";
|
|
63999
63969
|
/** CreateRepairOrderSchema */
|
|
64000
63970
|
CreateRepairOrderSchema: {
|
|
64001
63971
|
/**
|
|
@@ -64035,10 +64005,8 @@ export interface components {
|
|
|
64035
64005
|
* @description Internal notes visible only to staff.
|
|
64036
64006
|
*/
|
|
64037
64007
|
staffNotes?: string | null;
|
|
64038
|
-
/** @default draft */
|
|
64039
|
-
status: components["schemas"]["InternalStatusChoices"];
|
|
64040
64008
|
/**
|
|
64041
|
-
* @description
|
|
64009
|
+
* @description Repair workflow status. Set to canceled to cancel the repair order; canceled orders cannot be edited.
|
|
64042
64010
|
* @default pending
|
|
64043
64011
|
*/
|
|
64044
64012
|
repairStatus: components["schemas"]["RepairStatusEnum"];
|
|
@@ -64126,8 +64094,7 @@ export interface components {
|
|
|
64126
64094
|
* @description Internal notes visible only to staff.
|
|
64127
64095
|
*/
|
|
64128
64096
|
staffNotes?: string | null;
|
|
64129
|
-
status
|
|
64130
|
-
/** @description Current repair workflow status. */
|
|
64097
|
+
/** @description Repair workflow status. Set to canceled to cancel the repair order; canceled orders cannot be edited. */
|
|
64131
64098
|
repairStatus?: components["schemas"]["RepairStatusEnum"] | null;
|
|
64132
64099
|
/**
|
|
64133
64100
|
* Damagetypes
|
|
@@ -111136,68 +111103,6 @@ export interface operations {
|
|
|
111136
111103
|
};
|
|
111137
111104
|
};
|
|
111138
111105
|
};
|
|
111139
|
-
maintenance_views_cancel_repair_order: {
|
|
111140
|
-
parameters: {
|
|
111141
|
-
query?: never;
|
|
111142
|
-
header?: never;
|
|
111143
|
-
path: {
|
|
111144
|
-
id: string;
|
|
111145
|
-
};
|
|
111146
|
-
cookie?: never;
|
|
111147
|
-
};
|
|
111148
|
-
requestBody: {
|
|
111149
|
-
content: {
|
|
111150
|
-
"application/json": components["schemas"]["ActionsPayloadSchemas"];
|
|
111151
|
-
};
|
|
111152
|
-
};
|
|
111153
|
-
responses: {
|
|
111154
|
-
/** @description OK */
|
|
111155
|
-
200: {
|
|
111156
|
-
headers: {
|
|
111157
|
-
[name: string]: unknown;
|
|
111158
|
-
};
|
|
111159
|
-
content: {
|
|
111160
|
-
"application/json": components["schemas"]["RepairOrderDetailSchema"];
|
|
111161
|
-
};
|
|
111162
|
-
};
|
|
111163
|
-
/** @description Bad Request */
|
|
111164
|
-
400: {
|
|
111165
|
-
headers: {
|
|
111166
|
-
[name: string]: unknown;
|
|
111167
|
-
};
|
|
111168
|
-
content: {
|
|
111169
|
-
"application/json": components["schemas"]["ErrorMessages"];
|
|
111170
|
-
};
|
|
111171
|
-
};
|
|
111172
|
-
/** @description Forbidden */
|
|
111173
|
-
403: {
|
|
111174
|
-
headers: {
|
|
111175
|
-
[name: string]: unknown;
|
|
111176
|
-
};
|
|
111177
|
-
content: {
|
|
111178
|
-
"application/json": components["schemas"]["MessageResponse"];
|
|
111179
|
-
};
|
|
111180
|
-
};
|
|
111181
|
-
/** @description Not Found */
|
|
111182
|
-
404: {
|
|
111183
|
-
headers: {
|
|
111184
|
-
[name: string]: unknown;
|
|
111185
|
-
};
|
|
111186
|
-
content: {
|
|
111187
|
-
"application/json": components["schemas"]["MessageResponse"];
|
|
111188
|
-
};
|
|
111189
|
-
};
|
|
111190
|
-
/** @description Internal Server Error */
|
|
111191
|
-
500: {
|
|
111192
|
-
headers: {
|
|
111193
|
-
[name: string]: unknown;
|
|
111194
|
-
};
|
|
111195
|
-
content: {
|
|
111196
|
-
"application/json": components["schemas"]["MessageResponse"];
|
|
111197
|
-
};
|
|
111198
|
-
};
|
|
111199
|
-
};
|
|
111200
|
-
};
|
|
111201
111106
|
maintenance_views_list_damage_types: {
|
|
111202
111107
|
parameters: {
|
|
111203
111108
|
query?: {
|