@@ -26,6 +26,10 @@ export interface Rule {
2626export interface SparesDefinition {
2727 system_types : SystemType [ ] ;
2828}
29+
30+ // ------------------------------------- IN USE -----------------------------------------------------
31+
32+ export type InUseDefinition = SparesDefinition ;
2933// ------------------------------------ MANUFACTURERS -----------------------------------------------
3034
3135interface AddressPost {
@@ -46,14 +50,14 @@ export interface ManufacturerPost {
4650 telephone ?: string | null ;
4751}
4852
49- export interface ManufacturerPatch
50- extends Partial < Omit < ManufacturerPost , 'address' > > {
53+ export interface ManufacturerPatch extends Partial <
54+ Omit < ManufacturerPost , 'address' >
55+ > {
5156 address ?: AddressPatch ;
5257}
5358
5459export interface Manufacturer
55- extends Required < Omit < ManufacturerPost , 'address' > > ,
56- CreatedModifiedMixin {
60+ extends Required < Omit < ManufacturerPost , 'address' > > , CreatedModifiedMixin {
5761 id : string ;
5862 code : string ;
5963 address : Address ;
@@ -138,8 +142,7 @@ export interface CatalogueCategoryPostProperty {
138142 allowed_values ?: AllowedValues | null ;
139143}
140144
141- export interface CatalogueCategoryPropertyPost
142- extends CatalogueCategoryPostProperty {
145+ export interface CatalogueCategoryPropertyPost extends CatalogueCategoryPostProperty {
143146 // eslint-disable-next-line @typescript-eslint/no-explicit-any
144147 default_value : any ;
145148}
@@ -150,8 +153,7 @@ export interface CatalogueCategoryPropertyPatch {
150153 unit_id ?: string | null ;
151154}
152155
153- export interface CatalogueCategoryProperty
154- extends Required < CatalogueCategoryPostProperty > {
156+ export interface CatalogueCategoryProperty extends Required < CatalogueCategoryPostProperty > {
155157 id : string ;
156158 unit : string | null ;
157159}
@@ -166,7 +168,8 @@ export interface CatalogueCategoryPost {
166168export type CatalogueCategoryPatch = Partial < CatalogueCategoryPost > ;
167169
168170export interface CatalogueCategory
169- extends Required < Omit < CatalogueCategoryPost , 'properties' > > ,
171+ extends
172+ Required < Omit < CatalogueCategoryPost , 'properties' > > ,
170173 CreatedModifiedMixin {
171174 id : string ;
172175 code : string ;
@@ -208,7 +211,8 @@ export interface CatalogueItemPost {
208211
209212export type CatalogueItemPatch = Partial < CatalogueItemPost > ;
210213export interface CatalogueItem
211- extends CreatedModifiedMixin ,
214+ extends
215+ CreatedModifiedMixin ,
212216 Required < Omit < CatalogueItemPost , 'properties' > > {
213217 id : string ;
214218 properties : Property [ ] ;
@@ -237,8 +241,7 @@ export interface ItemPost {
237241export type ItemPatch = Partial < ItemPost > ;
238242
239243export interface Item
240- extends CreatedModifiedMixin ,
241- Required < Omit < ItemPost , 'properties' > > {
244+ extends CreatedModifiedMixin , Required < Omit < ItemPost , 'properties' > > {
242245 id : string ;
243246 usage_status : string ;
244247 properties : Property [ ] ;
@@ -268,8 +271,7 @@ export interface AttachmentUploadInfo {
268271}
269272
270273export interface AttachmentMetadata
271- extends Required < AttachmentPostMetadata > ,
272- CreatedModifiedMixin {
274+ extends Required < AttachmentPostMetadata > , CreatedModifiedMixin {
273275 id : string ;
274276}
275277
@@ -291,8 +293,7 @@ export interface ImagePost extends ObjectFileUploadMetadata {
291293}
292294
293295export interface APIImage
294- extends Required < Omit < ImagePost , 'upload_file' > > ,
295- CreatedModifiedMixin {
296+ extends Required < Omit < ImagePost , 'upload_file' > > , CreatedModifiedMixin {
296297 id : string ;
297298 primary : boolean ;
298299 thumbnail_base64 : string ;
0 commit comments