@@ -82,15 +82,15 @@ export type CreateInventoryAdjustmentMutationVariables = Types.Exact<{
82
82
} > ;
83
83
84
84
85
- export type CreateInventoryAdjustmentMutation = { __typename : 'Mutations' , createInventoryAdjustment : { __typename : 'CreateInventoryAdjustmentError' , error : { __typename : 'StockLineReducedBelowZero' , description : string } } | { __typename : 'InvoiceNode' , id : string , lines : { __typename : 'InvoiceLineConnector' , nodes : Array < { __typename : 'InvoiceLineNode' , id : string , itemName : string , numberOfPacks : number , itemCode : string , stockLine ?: { __typename : 'StockLineNode' , id : string } | null } > } } } ;
85
+ export type CreateInventoryAdjustmentMutation = { __typename : 'Mutations' , createInventoryAdjustment : { __typename : 'CreateInventoryAdjustmentError' , error : { __typename : 'AdjustmentReasonNotProvided' , description : string } | { __typename : ' StockLineReducedBelowZero', description : string } } | { __typename : 'InvoiceNode' , id : string , lines : { __typename : 'InvoiceLineConnector' , nodes : Array < { __typename : 'InvoiceLineNode' , id : string , itemName : string , numberOfPacks : number , itemCode : string , stockLine ?: { __typename : 'StockLineNode' , id : string } | null } > } } } ;
86
86
87
87
export type InsertStockLineMutationVariables = Types . Exact < {
88
88
input : Types . InsertStockLineInput ;
89
89
storeId : Types . Scalars [ 'String' ] [ 'input' ] ;
90
90
} > ;
91
91
92
92
93
- export type InsertStockLineMutation = { __typename : 'Mutations' , insertStockLine : { __typename : 'StockLineNode' , availableNumberOfPacks : number , batch ?: string | null , costPricePerPack : number , expiryDate ?: string | null , id : string , itemId : string , locationId ?: string | null , itemVariantId ?: string | null , locationName ?: string | null , onHold : boolean , packSize : number , sellPricePerPack : number , storeId : string , totalNumberOfPacks : number , supplierName ?: string | null , barcode ?: string | null , location ?: { __typename : 'LocationNode' , id : string , name : string , onHold : boolean , code : string , coldStorageType ?: { __typename : 'ColdStorageTypeNode' , id : string , name : string , maxTemperature : number , minTemperature : number } | null } | null , item : { __typename : 'ItemNode' , code : string , name : string , unitName ?: string | null , masterLists ?: Array < { __typename : 'MasterListNode' , name : string } > | null } } } ;
93
+ export type InsertStockLineMutation = { __typename : 'Mutations' , insertStockLine : { __typename : 'InsertStockLineError' , error : { __typename : 'AdjustmentReasonNotProvided' } } | { __typename : ' StockLineNode', availableNumberOfPacks : number , batch ?: string | null , costPricePerPack : number , expiryDate ?: string | null , id : string , itemId : string , locationId ?: string | null , itemVariantId ?: string | null , locationName ?: string | null , onHold : boolean , packSize : number , sellPricePerPack : number , storeId : string , totalNumberOfPacks : number , supplierName ?: string | null , barcode ?: string | null , location ?: { __typename : 'LocationNode' , id : string , name : string , onHold : boolean , code : string , coldStorageType ?: { __typename : 'ColdStorageTypeNode' , id : string , name : string , maxTemperature : number , minTemperature : number } | null } | null , item : { __typename : 'ItemNode' , code : string , name : string , unitName ?: string | null , masterLists ?: Array < { __typename : 'MasterListNode' , name : string } > | null } } } ;
94
94
95
95
export const StockLineRowFragmentDoc = gql `
96
96
fragment StockLineRow on StockLineNode {
@@ -289,11 +289,16 @@ export const CreateInventoryAdjustmentDocument = gql`
289
289
... on CreateInventoryAdjustmentError {
290
290
__typename
291
291
error {
292
+ __typename
292
293
description
293
294
... on StockLineReducedBelowZero {
294
295
__typename
295
296
description
296
297
}
298
+ ... on AdjustmentReasonNotProvided {
299
+ __typename
300
+ description
301
+ }
297
302
}
298
303
}
299
304
}
@@ -306,6 +311,15 @@ export const InsertStockLineDocument = gql`
306
311
__typename
307
312
...StockLineRow
308
313
}
314
+ ... on InsertStockLineError {
315
+ __typename
316
+ error {
317
+ __typename
318
+ ... on AdjustmentReasonNotProvided {
319
+ __typename
320
+ }
321
+ }
322
+ }
309
323
}
310
324
}
311
325
${ StockLineRowFragmentDoc } ` ;
0 commit comments