@erp-galoper/types 1.0.1384 → 1.0.1386
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 +254 -10
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -4761,6 +4761,33 @@ export interface paths {
|
|
|
4761
4761
|
patch?: never;
|
|
4762
4762
|
trace?: never;
|
|
4763
4763
|
};
|
|
4764
|
+
"/api/v1/inventory/opening_quantity/import-excel/": {
|
|
4765
|
+
parameters: {
|
|
4766
|
+
query?: never;
|
|
4767
|
+
header?: never;
|
|
4768
|
+
path?: never;
|
|
4769
|
+
cookie?: never;
|
|
4770
|
+
};
|
|
4771
|
+
get?: never;
|
|
4772
|
+
put?: never;
|
|
4773
|
+
/**
|
|
4774
|
+
* Import Opening Stock Excel
|
|
4775
|
+
* @description Endpoint for import opening stock from items excel file.
|
|
4776
|
+
* Possible Responses:
|
|
4777
|
+
* - 200:
|
|
4778
|
+
* - openingQuantityCreated
|
|
4779
|
+
* - 400:
|
|
4780
|
+
* - invalidParameters
|
|
4781
|
+
* -500:
|
|
4782
|
+
* - internalServerError
|
|
4783
|
+
*/
|
|
4784
|
+
post: operations["inventory_opening_stock_views_import_opening_stock_excel"];
|
|
4785
|
+
delete?: never;
|
|
4786
|
+
options?: never;
|
|
4787
|
+
head?: never;
|
|
4788
|
+
patch?: never;
|
|
4789
|
+
trace?: never;
|
|
4790
|
+
};
|
|
4764
4791
|
"/api/v1/inventory/opening_quantity/{id}/": {
|
|
4765
4792
|
parameters: {
|
|
4766
4793
|
query?: never;
|
|
@@ -25491,6 +25518,12 @@ export interface components {
|
|
|
25491
25518
|
* @enum {string}
|
|
25492
25519
|
*/
|
|
25493
25520
|
ItemDocumentTypeSchema: "sales" | "offers";
|
|
25521
|
+
/**
|
|
25522
|
+
* ItemIncludeOption
|
|
25523
|
+
* @description Options for additional data to include with items
|
|
25524
|
+
* @constant
|
|
25525
|
+
*/
|
|
25526
|
+
ItemIncludeOption: "opening_stock";
|
|
25494
25527
|
/**
|
|
25495
25528
|
* viewType
|
|
25496
25529
|
* @enum {string}
|
|
@@ -25624,7 +25657,7 @@ export interface components {
|
|
|
25624
25657
|
*/
|
|
25625
25658
|
id: string;
|
|
25626
25659
|
/** @description the package it belongs to */
|
|
25627
|
-
package: components["schemas"]["
|
|
25660
|
+
package: components["schemas"]["common__shared_schemas__PackageSummarySchema__1"];
|
|
25628
25661
|
/**
|
|
25629
25662
|
* Barcodes
|
|
25630
25663
|
* @default []
|
|
@@ -25670,9 +25703,13 @@ export interface components {
|
|
|
25670
25703
|
/**
|
|
25671
25704
|
* Quantities
|
|
25672
25705
|
* @description Quantity information for the packed items in this package
|
|
25673
|
-
* @default []
|
|
25674
25706
|
*/
|
|
25675
|
-
quantities
|
|
25707
|
+
quantities?: components["schemas"]["QuantityGroupSchema"][] | null;
|
|
25708
|
+
/**
|
|
25709
|
+
* Openingstock
|
|
25710
|
+
* @description Opening stock information for this package
|
|
25711
|
+
*/
|
|
25712
|
+
openingStock?: components["schemas"]["PackageOpeningStockSchema"][] | null;
|
|
25676
25713
|
/**
|
|
25677
25714
|
* Supplierpurchasedprices
|
|
25678
25715
|
* @default []
|
|
@@ -25900,13 +25937,20 @@ export interface components {
|
|
|
25900
25937
|
/**
|
|
25901
25938
|
* Quantities
|
|
25902
25939
|
* @description Quantity information for the unpacked items
|
|
25903
|
-
* @default []
|
|
25904
25940
|
*/
|
|
25905
|
-
quantities
|
|
25941
|
+
quantities?: components["schemas"]["QuantityGroupSchema"][] | null;
|
|
25942
|
+
/**
|
|
25943
|
+
* Openingstock
|
|
25944
|
+
* @description Opening stock information with warehouse breakdown
|
|
25945
|
+
*/
|
|
25946
|
+
openingStock?: components["schemas"]["OpeningStockGroupSchema"][] | null;
|
|
25906
25947
|
costStrategy: components["schemas"]["GetCostStrategy"] | null;
|
|
25907
25948
|
commissionCalculation: components["schemas"]["ItemCommissionCalculation"] | null;
|
|
25908
25949
|
inventoryMovementMethod?: components["schemas"]["INVENTORY_MOVEMENT_METHOD"] | null;
|
|
25909
|
-
/**
|
|
25950
|
+
/**
|
|
25951
|
+
* Candelete
|
|
25952
|
+
* @default false
|
|
25953
|
+
*/
|
|
25910
25954
|
canDelete: boolean;
|
|
25911
25955
|
};
|
|
25912
25956
|
/**
|
|
@@ -26138,13 +26182,20 @@ export interface components {
|
|
|
26138
26182
|
/**
|
|
26139
26183
|
* Quantities
|
|
26140
26184
|
* @description Quantity information for the unpacked items
|
|
26141
|
-
* @default []
|
|
26142
26185
|
*/
|
|
26143
|
-
quantities
|
|
26186
|
+
quantities?: components["schemas"]["QuantityGroupSchema"][] | null;
|
|
26187
|
+
/**
|
|
26188
|
+
* Openingstock
|
|
26189
|
+
* @description Opening stock information with warehouse breakdown
|
|
26190
|
+
*/
|
|
26191
|
+
openingStock?: components["schemas"]["OpeningStockGroupSchema"][] | null;
|
|
26144
26192
|
costStrategy: components["schemas"]["GetCostStrategy"] | null;
|
|
26145
26193
|
commissionCalculation: components["schemas"]["ItemCommissionCalculation"] | null;
|
|
26146
26194
|
inventoryMovementMethod?: components["schemas"]["INVENTORY_MOVEMENT_METHOD"] | null;
|
|
26147
|
-
/**
|
|
26195
|
+
/**
|
|
26196
|
+
* Candelete
|
|
26197
|
+
* @default false
|
|
26198
|
+
*/
|
|
26148
26199
|
canDelete: boolean;
|
|
26149
26200
|
/**
|
|
26150
26201
|
* Children
|
|
@@ -26152,6 +26203,87 @@ export interface components {
|
|
|
26152
26203
|
*/
|
|
26153
26204
|
children: components["schemas"]["ItemSchema"][];
|
|
26154
26205
|
};
|
|
26206
|
+
/**
|
|
26207
|
+
* OpeningStockBatchSchema
|
|
26208
|
+
* @description Simplified batch schema for opening stock
|
|
26209
|
+
*/
|
|
26210
|
+
OpeningStockBatchSchema: {
|
|
26211
|
+
/**
|
|
26212
|
+
* Id
|
|
26213
|
+
* Format: uuid
|
|
26214
|
+
*/
|
|
26215
|
+
id: string;
|
|
26216
|
+
/** Number */
|
|
26217
|
+
number: string;
|
|
26218
|
+
/** Expirydate */
|
|
26219
|
+
expiryDate?: string | null;
|
|
26220
|
+
};
|
|
26221
|
+
/**
|
|
26222
|
+
* OpeningStockGroupSchema
|
|
26223
|
+
* @description Schema for UOM-level opening stock grouping
|
|
26224
|
+
*/
|
|
26225
|
+
OpeningStockGroupSchema: {
|
|
26226
|
+
unitOfMeasure?: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
|
|
26227
|
+
/** Openingquantity */
|
|
26228
|
+
openingQuantity: number;
|
|
26229
|
+
/**
|
|
26230
|
+
* Warehouses
|
|
26231
|
+
* @default []
|
|
26232
|
+
*/
|
|
26233
|
+
warehouses: components["schemas"]["OpeningStockWarehouseSchema"][];
|
|
26234
|
+
};
|
|
26235
|
+
/**
|
|
26236
|
+
* OpeningStockSerialSchema
|
|
26237
|
+
* @description Simplified serial schema for opening stock
|
|
26238
|
+
*/
|
|
26239
|
+
OpeningStockSerialSchema: {
|
|
26240
|
+
/**
|
|
26241
|
+
* Id
|
|
26242
|
+
* Format: uuid
|
|
26243
|
+
*/
|
|
26244
|
+
id: string;
|
|
26245
|
+
/** Number */
|
|
26246
|
+
number: string;
|
|
26247
|
+
/** Expirydate */
|
|
26248
|
+
expiryDate?: string | null;
|
|
26249
|
+
};
|
|
26250
|
+
/**
|
|
26251
|
+
* OpeningStockTrackingSchema
|
|
26252
|
+
* @description Schema for batch/serial tracking information in opening stock
|
|
26253
|
+
*/
|
|
26254
|
+
OpeningStockTrackingSchema: {
|
|
26255
|
+
/** Openingquantity */
|
|
26256
|
+
openingQuantity: number;
|
|
26257
|
+
batch?: components["schemas"]["OpeningStockBatchSchema"] | null;
|
|
26258
|
+
serial?: components["schemas"]["OpeningStockSerialSchema"] | null;
|
|
26259
|
+
};
|
|
26260
|
+
/**
|
|
26261
|
+
* OpeningStockWarehouseSchema
|
|
26262
|
+
* @description Schema for warehouse-level opening stock breakdown
|
|
26263
|
+
*/
|
|
26264
|
+
OpeningStockWarehouseSchema: {
|
|
26265
|
+
warehouse: components["schemas"]["WarehouseSummaryInfo"];
|
|
26266
|
+
/** Openingquantity */
|
|
26267
|
+
openingQuantity: number;
|
|
26268
|
+
/**
|
|
26269
|
+
* Tracking
|
|
26270
|
+
* @default []
|
|
26271
|
+
*/
|
|
26272
|
+
tracking: components["schemas"]["OpeningStockTrackingSchema"][];
|
|
26273
|
+
};
|
|
26274
|
+
/**
|
|
26275
|
+
* PackageOpeningStockSchema
|
|
26276
|
+
* @description Schema for item package opening stock
|
|
26277
|
+
*/
|
|
26278
|
+
PackageOpeningStockSchema: {
|
|
26279
|
+
/** Openingquantity */
|
|
26280
|
+
openingQuantity: number;
|
|
26281
|
+
/**
|
|
26282
|
+
* Warehouses
|
|
26283
|
+
* @default []
|
|
26284
|
+
*/
|
|
26285
|
+
warehouses: components["schemas"]["OpeningStockWarehouseSchema"][];
|
|
26286
|
+
};
|
|
26155
26287
|
/** PackageSummarySchema */
|
|
26156
26288
|
PackageSummarySchema: {
|
|
26157
26289
|
/**
|
|
@@ -27363,6 +27495,12 @@ export interface components {
|
|
|
27363
27495
|
*/
|
|
27364
27496
|
default: boolean;
|
|
27365
27497
|
};
|
|
27498
|
+
/**
|
|
27499
|
+
* WarehouseIncludeEnum
|
|
27500
|
+
* @description Enum for warehouse include options
|
|
27501
|
+
* @constant
|
|
27502
|
+
*/
|
|
27503
|
+
WarehouseIncludeEnum: "opening_quantity";
|
|
27366
27504
|
/** BranchInfo */
|
|
27367
27505
|
BranchInfo: {
|
|
27368
27506
|
/** Id */
|
|
@@ -27405,6 +27543,11 @@ export interface components {
|
|
|
27405
27543
|
default: boolean;
|
|
27406
27544
|
/** Candelete */
|
|
27407
27545
|
canDelete: boolean;
|
|
27546
|
+
/**
|
|
27547
|
+
* Hasopeningstock
|
|
27548
|
+
* @description Present when include=opening_quantity
|
|
27549
|
+
*/
|
|
27550
|
+
hasOpeningStock?: boolean | null;
|
|
27408
27551
|
};
|
|
27409
27552
|
/** UpdateWarehouse */
|
|
27410
27553
|
UpdateWarehouse: {
|
|
@@ -30620,7 +30763,7 @@ export interface components {
|
|
|
30620
30763
|
modifiedBy: components["schemas"]["RecordUserSchema"] | null;
|
|
30621
30764
|
/** Id */
|
|
30622
30765
|
id: number;
|
|
30623
|
-
item: components["schemas"]["
|
|
30766
|
+
item: components["schemas"]["ItemSchema"];
|
|
30624
30767
|
/** @description Tracking method: serial_number, batch, or quantity */
|
|
30625
30768
|
trackInventoryBy?: components["schemas"]["TrackingMethodChoices"] | null;
|
|
30626
30769
|
unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
|
|
@@ -30689,6 +30832,36 @@ export interface components {
|
|
|
30689
30832
|
*/
|
|
30690
30833
|
details: components["schemas"]["OpeningQuantityDetailsSchema"][];
|
|
30691
30834
|
};
|
|
30835
|
+
/** PackageSummarySchema */
|
|
30836
|
+
common__shared_schemas__PackageSummarySchema__1: {
|
|
30837
|
+
/**
|
|
30838
|
+
* Id
|
|
30839
|
+
* Format: uuid
|
|
30840
|
+
*/
|
|
30841
|
+
id: string;
|
|
30842
|
+
/**
|
|
30843
|
+
* Name
|
|
30844
|
+
* @description Name of the package
|
|
30845
|
+
*/
|
|
30846
|
+
name: string;
|
|
30847
|
+
/** Packagedepositcharge */
|
|
30848
|
+
packageDepositCharge?: string | null;
|
|
30849
|
+
};
|
|
30850
|
+
/** PackageSummarySchema */
|
|
30851
|
+
common__shared_schemas__PackageSummarySchema__2: {
|
|
30852
|
+
/**
|
|
30853
|
+
* Id
|
|
30854
|
+
* Format: uuid
|
|
30855
|
+
*/
|
|
30856
|
+
id: string;
|
|
30857
|
+
/**
|
|
30858
|
+
* Name
|
|
30859
|
+
* @description Name of the package
|
|
30860
|
+
*/
|
|
30861
|
+
name: string;
|
|
30862
|
+
/** @description Category of the package */
|
|
30863
|
+
category: components["schemas"]["PackageCategory"];
|
|
30864
|
+
};
|
|
30692
30865
|
/** CreateOpeningQuantityItemSchema */
|
|
30693
30866
|
CreateOpeningQuantityItemSchema: {
|
|
30694
30867
|
/**
|
|
@@ -56477,6 +56650,7 @@ export interface components {
|
|
|
56477
56650
|
account: components["schemas"]["AccountSummaryInfo"] | null;
|
|
56478
56651
|
paymentMethod: components["schemas"]["PaymentMethodSharedSchema"];
|
|
56479
56652
|
supplierBankAccount: components["schemas"]["BankAccountsSharedSchema"] | null;
|
|
56653
|
+
employeeBankAccount: components["schemas"]["BankAccountsSharedSchema"] | null;
|
|
56480
56654
|
/** Duedate */
|
|
56481
56655
|
dueDate: string | null;
|
|
56482
56656
|
/** Chequenumber */
|
|
@@ -56544,6 +56718,8 @@ export interface components {
|
|
|
56544
56718
|
branch: components["schemas"]["BranchSummaryInfo"];
|
|
56545
56719
|
/** Referencenumber */
|
|
56546
56720
|
referenceNumber: string | null;
|
|
56721
|
+
/** Recipient */
|
|
56722
|
+
recipient: string | null;
|
|
56547
56723
|
supplier: components["schemas"]["AccountWithCurrencySummaryInfo"];
|
|
56548
56724
|
employee: components["schemas"]["AccountWithCurrencySummaryInfo"] | null;
|
|
56549
56725
|
/** Description */
|
|
@@ -56759,6 +56935,8 @@ export interface components {
|
|
|
56759
56935
|
branch: components["schemas"]["BranchSummaryInfo"];
|
|
56760
56936
|
/** Referencenumber */
|
|
56761
56937
|
referenceNumber: string | null;
|
|
56938
|
+
/** Recipient */
|
|
56939
|
+
recipient: string | null;
|
|
56762
56940
|
supplier: components["schemas"]["AccountWithCurrencySummaryInfo"];
|
|
56763
56941
|
employee: components["schemas"]["AccountWithCurrencySummaryInfo"] | null;
|
|
56764
56942
|
/** Description */
|
|
@@ -57982,6 +58160,8 @@ export interface operations {
|
|
|
57982
58160
|
warehouses?: number[] | null;
|
|
57983
58161
|
/** @description Include detailed quantity breakdown with warehouse information for each item and item package */
|
|
57984
58162
|
includeQuantities?: boolean;
|
|
58163
|
+
/** @description Additional data to include: 'opening_stock' for opening stock information */
|
|
58164
|
+
include?: components["schemas"]["ItemIncludeOption"][] | null;
|
|
57985
58165
|
/** @description used to get prices of items in offers and promotoins feature or sales features(quotation,order, invoice) */
|
|
57986
58166
|
priceListIds?: string[];
|
|
57987
58167
|
/** @description required when price list ids is provided, should be sales if called in sales features or offers if called in offers and promotions feature */
|
|
@@ -58175,6 +58355,8 @@ export interface operations {
|
|
|
58175
58355
|
branchId?: number | null;
|
|
58176
58356
|
/** @description Include detailed quantity breakdown with warehouse information for each item and item package */
|
|
58177
58357
|
includeQuantities?: boolean;
|
|
58358
|
+
/** @description Additional data to include: 'opening_stock' for opening stock information */
|
|
58359
|
+
include?: components["schemas"]["ItemIncludeOption"][] | null;
|
|
58178
58360
|
/** @description used to get prices of items in offers and promotoins feature or sales features(quotation,order, invoice) */
|
|
58179
58361
|
priceListIds?: string[];
|
|
58180
58362
|
/** @description required when price list ids is provided, should be sales if called in sales features or offers if called in offers and promotions feature */
|
|
@@ -58529,6 +58711,10 @@ export interface operations {
|
|
|
58529
58711
|
branchId?: number;
|
|
58530
58712
|
/** @description Search by warehouse name */
|
|
58531
58713
|
search?: string | null;
|
|
58714
|
+
/** @description If true, only return warehouses assigned to the current user */
|
|
58715
|
+
assigned?: boolean;
|
|
58716
|
+
/** @description Additional data to include: 'opening_quantity' adds hasOpeningStock field */
|
|
58717
|
+
include?: components["schemas"]["WarehouseIncludeEnum"][] | null;
|
|
58532
58718
|
};
|
|
58533
58719
|
header?: never;
|
|
58534
58720
|
path?: never;
|
|
@@ -67034,6 +67220,64 @@ export interface operations {
|
|
|
67034
67220
|
};
|
|
67035
67221
|
};
|
|
67036
67222
|
};
|
|
67223
|
+
inventory_opening_stock_views_import_opening_stock_excel: {
|
|
67224
|
+
parameters: {
|
|
67225
|
+
query?: never;
|
|
67226
|
+
header?: never;
|
|
67227
|
+
path?: never;
|
|
67228
|
+
cookie?: never;
|
|
67229
|
+
};
|
|
67230
|
+
requestBody: {
|
|
67231
|
+
content: {
|
|
67232
|
+
"multipart/form-data": {
|
|
67233
|
+
/**
|
|
67234
|
+
* File
|
|
67235
|
+
* Format: binary
|
|
67236
|
+
* @description the only allowed file is excel file
|
|
67237
|
+
*/
|
|
67238
|
+
file: string;
|
|
67239
|
+
};
|
|
67240
|
+
};
|
|
67241
|
+
};
|
|
67242
|
+
responses: {
|
|
67243
|
+
/** @description OK */
|
|
67244
|
+
200: {
|
|
67245
|
+
headers: {
|
|
67246
|
+
[name: string]: unknown;
|
|
67247
|
+
};
|
|
67248
|
+
content: {
|
|
67249
|
+
"application/json": components["schemas"]["MessageResponse"];
|
|
67250
|
+
};
|
|
67251
|
+
};
|
|
67252
|
+
/** @description Bad Request */
|
|
67253
|
+
400: {
|
|
67254
|
+
headers: {
|
|
67255
|
+
[name: string]: unknown;
|
|
67256
|
+
};
|
|
67257
|
+
content: {
|
|
67258
|
+
"application/json": components["schemas"]["ErrorMessages"];
|
|
67259
|
+
};
|
|
67260
|
+
};
|
|
67261
|
+
/** @description Forbidden */
|
|
67262
|
+
403: {
|
|
67263
|
+
headers: {
|
|
67264
|
+
[name: string]: unknown;
|
|
67265
|
+
};
|
|
67266
|
+
content: {
|
|
67267
|
+
"application/json": components["schemas"]["MessageResponse"];
|
|
67268
|
+
};
|
|
67269
|
+
};
|
|
67270
|
+
/** @description Internal Server Error */
|
|
67271
|
+
500: {
|
|
67272
|
+
headers: {
|
|
67273
|
+
[name: string]: unknown;
|
|
67274
|
+
};
|
|
67275
|
+
content: {
|
|
67276
|
+
"application/json": components["schemas"]["MessageResponse"];
|
|
67277
|
+
};
|
|
67278
|
+
};
|
|
67279
|
+
};
|
|
67280
|
+
};
|
|
67037
67281
|
inventory_opening_stock_views_get_opening_quantity: {
|
|
67038
67282
|
parameters: {
|
|
67039
67283
|
query?: never;
|