@newpeak/barista-cli 0.1.5 → 0.1.7
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/README.en.md +714 -0
- package/README.ja.md +708 -0
- package/README.md +68 -0
- package/README.vi.md +714 -0
- package/dist/commands/liberica/currency/create.d.ts +3 -0
- package/dist/commands/liberica/currency/create.d.ts.map +1 -0
- package/dist/commands/liberica/currency/create.js +168 -0
- package/dist/commands/liberica/currency/create.js.map +1 -0
- package/dist/commands/liberica/currency/delete.d.ts +3 -0
- package/dist/commands/liberica/currency/delete.d.ts.map +1 -0
- package/dist/commands/liberica/currency/delete.js +122 -0
- package/dist/commands/liberica/currency/delete.js.map +1 -0
- package/dist/commands/liberica/currency/disable.d.ts +3 -0
- package/dist/commands/liberica/currency/disable.d.ts.map +1 -0
- package/dist/commands/liberica/currency/disable.js +145 -0
- package/dist/commands/liberica/currency/disable.js.map +1 -0
- package/dist/commands/liberica/currency/enable.d.ts +3 -0
- package/dist/commands/liberica/currency/enable.d.ts.map +1 -0
- package/dist/commands/liberica/currency/enable.js +125 -0
- package/dist/commands/liberica/currency/enable.js.map +1 -0
- package/dist/commands/liberica/currency/get.d.ts +3 -0
- package/dist/commands/liberica/currency/get.d.ts.map +1 -0
- package/dist/commands/liberica/currency/get.js +80 -0
- package/dist/commands/liberica/currency/get.js.map +1 -0
- package/dist/commands/liberica/currency/index.d.ts +3 -0
- package/dist/commands/liberica/currency/index.d.ts.map +1 -0
- package/dist/commands/liberica/currency/index.js +21 -0
- package/dist/commands/liberica/currency/index.js.map +1 -0
- package/dist/commands/liberica/currency/list.d.ts +3 -0
- package/dist/commands/liberica/currency/list.d.ts.map +1 -0
- package/dist/commands/liberica/currency/list.js +106 -0
- package/dist/commands/liberica/currency/list.js.map +1 -0
- package/dist/commands/liberica/currency/update.d.ts +3 -0
- package/dist/commands/liberica/currency/update.d.ts.map +1 -0
- package/dist/commands/liberica/currency/update.js +123 -0
- package/dist/commands/liberica/currency/update.js.map +1 -0
- package/dist/commands/liberica/index.d.ts.map +1 -1
- package/dist/commands/liberica/index.js +7 -0
- package/dist/commands/liberica/index.js.map +1 -1
- package/dist/commands/liberica/materials/create.d.ts.map +1 -1
- package/dist/commands/liberica/materials/create.js +35 -9
- package/dist/commands/liberica/materials/create.js.map +1 -1
- package/dist/commands/liberica/orgs/index.d.ts.map +1 -1
- package/dist/commands/liberica/orgs/index.js.map +1 -1
- package/dist/commands/liberica/users/create.d.ts.map +1 -1
- package/dist/commands/liberica/users/create.js +1 -0
- package/dist/commands/liberica/users/create.js.map +1 -1
- package/dist/commands/liberica/warehouses/create.d.ts +3 -0
- package/dist/commands/liberica/warehouses/create.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/create.js +196 -0
- package/dist/commands/liberica/warehouses/create.js.map +1 -0
- package/dist/commands/liberica/warehouses/delete.d.ts +3 -0
- package/dist/commands/liberica/warehouses/delete.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/delete.js +111 -0
- package/dist/commands/liberica/warehouses/delete.js.map +1 -0
- package/dist/commands/liberica/warehouses/disable.d.ts +3 -0
- package/dist/commands/liberica/warehouses/disable.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/disable.js +173 -0
- package/dist/commands/liberica/warehouses/disable.js.map +1 -0
- package/dist/commands/liberica/warehouses/enable.d.ts +3 -0
- package/dist/commands/liberica/warehouses/enable.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/enable.js +173 -0
- package/dist/commands/liberica/warehouses/enable.js.map +1 -0
- package/dist/commands/liberica/warehouses/get.d.ts +3 -0
- package/dist/commands/liberica/warehouses/get.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/get.js +90 -0
- package/dist/commands/liberica/warehouses/get.js.map +1 -0
- package/dist/commands/liberica/warehouses/index.d.ts +3 -0
- package/dist/commands/liberica/warehouses/index.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/index.js +23 -0
- package/dist/commands/liberica/warehouses/index.js.map +1 -0
- package/dist/commands/liberica/warehouses/list.d.ts +3 -0
- package/dist/commands/liberica/warehouses/list.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/list.js +101 -0
- package/dist/commands/liberica/warehouses/list.js.map +1 -0
- package/dist/commands/liberica/warehouses/locations/create.d.ts +3 -0
- package/dist/commands/liberica/warehouses/locations/create.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/locations/create.js +199 -0
- package/dist/commands/liberica/warehouses/locations/create.js.map +1 -0
- package/dist/commands/liberica/warehouses/locations/delete.d.ts +3 -0
- package/dist/commands/liberica/warehouses/locations/delete.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/locations/delete.js +115 -0
- package/dist/commands/liberica/warehouses/locations/delete.js.map +1 -0
- package/dist/commands/liberica/warehouses/locations/disable.d.ts +3 -0
- package/dist/commands/liberica/warehouses/locations/disable.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/locations/disable.js +173 -0
- package/dist/commands/liberica/warehouses/locations/disable.js.map +1 -0
- package/dist/commands/liberica/warehouses/locations/enable.d.ts +3 -0
- package/dist/commands/liberica/warehouses/locations/enable.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/locations/enable.js +173 -0
- package/dist/commands/liberica/warehouses/locations/enable.js.map +1 -0
- package/dist/commands/liberica/warehouses/locations/get.d.ts +3 -0
- package/dist/commands/liberica/warehouses/locations/get.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/locations/get.js +73 -0
- package/dist/commands/liberica/warehouses/locations/get.js.map +1 -0
- package/dist/commands/liberica/warehouses/locations/index.d.ts +3 -0
- package/dist/commands/liberica/warehouses/locations/index.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/locations/index.js +21 -0
- package/dist/commands/liberica/warehouses/locations/index.js.map +1 -0
- package/dist/commands/liberica/warehouses/locations/list.d.ts +3 -0
- package/dist/commands/liberica/warehouses/locations/list.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/locations/list.js +104 -0
- package/dist/commands/liberica/warehouses/locations/list.js.map +1 -0
- package/dist/commands/liberica/warehouses/locations/update.d.ts +3 -0
- package/dist/commands/liberica/warehouses/locations/update.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/locations/update.js +128 -0
- package/dist/commands/liberica/warehouses/locations/update.js.map +1 -0
- package/dist/commands/liberica/warehouses/update.d.ts +3 -0
- package/dist/commands/liberica/warehouses/update.d.ts.map +1 -0
- package/dist/commands/liberica/warehouses/update.js +143 -0
- package/dist/commands/liberica/warehouses/update.js.map +1 -0
- package/dist/core/api/client.d.ts +26 -0
- package/dist/core/api/client.d.ts.map +1 -1
- package/dist/core/api/client.js +471 -0
- package/dist/core/api/client.js.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/types/currency.d.ts +74 -0
- package/dist/types/currency.d.ts.map +1 -0
- package/dist/types/currency.js +2 -0
- package/dist/types/currency.js.map +1 -0
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/location.d.ts +53 -0
- package/dist/types/location.d.ts.map +1 -0
- package/dist/types/location.js +2 -0
- package/dist/types/location.js.map +1 -0
- package/dist/types/warehouse.d.ts +68 -0
- package/dist/types/warehouse.d.ts.map +1 -0
- package/dist/types/warehouse.js +2 -0
- package/dist/types/warehouse.js.map +1 -0
- package/docs/COMMAND_DESIGN_SPEC.md +42 -13
- package/docs/commands/liberica/currency/create.md +145 -0
- package/docs/commands/liberica/currency/delete.md +121 -0
- package/docs/commands/liberica/currency/disable.md +119 -0
- package/docs/commands/liberica/currency/enable.md +115 -0
- package/docs/commands/liberica/currency/get.md +118 -0
- package/docs/commands/liberica/currency/list.md +149 -0
- package/docs/commands/liberica/currency/update.md +141 -0
- package/docs/commands/liberica/locations/create.md +195 -0
- package/docs/commands/liberica/locations/list.md +171 -0
- package/docs/commands/liberica/warehouses/create.md +222 -0
- package/docs/commands/liberica/warehouses/list.md +184 -0
- package/package.json +1 -1
- package/src/commands/liberica/currency/create.ts +183 -0
- package/src/commands/liberica/currency/delete.ts +124 -0
- package/src/commands/liberica/currency/disable.ts +147 -0
- package/src/commands/liberica/currency/enable.ts +128 -0
- package/src/commands/liberica/currency/get.ts +91 -0
- package/src/commands/liberica/currency/index.ts +23 -0
- package/src/commands/liberica/currency/list.ts +140 -0
- package/src/commands/liberica/currency/update.ts +129 -0
- package/src/commands/liberica/index.ts +7 -0
- package/src/commands/liberica/materials/create.ts +32 -9
- package/src/commands/liberica/orgs/index.ts +0 -1
- package/src/commands/liberica/users/create.ts +1 -0
- package/src/commands/liberica/warehouses/create.ts +204 -0
- package/src/commands/liberica/warehouses/delete.ts +112 -0
- package/src/commands/liberica/warehouses/disable.ts +174 -0
- package/src/commands/liberica/warehouses/enable.ts +174 -0
- package/src/commands/liberica/warehouses/get.ts +101 -0
- package/src/commands/liberica/warehouses/index.ts +25 -0
- package/src/commands/liberica/warehouses/list.ts +136 -0
- package/src/commands/liberica/warehouses/locations/create.ts +209 -0
- package/src/commands/liberica/warehouses/locations/delete.ts +116 -0
- package/src/commands/liberica/warehouses/locations/disable.ts +174 -0
- package/src/commands/liberica/warehouses/locations/enable.ts +174 -0
- package/src/commands/liberica/warehouses/locations/get.ts +84 -0
- package/src/commands/liberica/warehouses/locations/index.ts +23 -0
- package/src/commands/liberica/warehouses/locations/list.ts +140 -0
- package/src/commands/liberica/warehouses/locations/update.ts +135 -0
- package/src/commands/liberica/warehouses/update.ts +142 -0
- package/src/core/api/client.ts +632 -0
- package/src/index.ts +1 -3
- package/src/types/currency.ts +90 -0
- package/src/types/index.ts +4 -4
- package/src/types/location.ts +66 -0
- package/src/types/warehouse.ts +82 -0
- /package/docs/commands/liberica/{materials-create.md → materials/create.md} +0 -0
- /package/docs/commands/liberica/{materials-delete.md → materials/delete.md} +0 -0
- /package/docs/commands/liberica/{materials-disable.md → materials/disable.md} +0 -0
- /package/docs/commands/liberica/{materials-enable.md → materials/enable.md} +0 -0
- /package/docs/commands/liberica/{materials-get.md → materials/get.md} +0 -0
- /package/docs/commands/liberica/{materials-list.md → materials/list.md} +0 -0
- /package/docs/commands/liberica/{materials-update.md → materials/update.md} +0 -0
- /package/docs/commands/liberica/{uoms-create.md → uoms/create.md} +0 -0
- /package/docs/commands/liberica/{uoms-delete.md → uoms/delete.md} +0 -0
- /package/docs/commands/liberica/{uoms-disable.md → uoms/disable.md} +0 -0
- /package/docs/commands/liberica/{uoms-enable.md → uoms/enable.md} +0 -0
- /package/docs/commands/liberica/{uoms-get.md → uoms/get.md} +0 -0
- /package/docs/commands/liberica/{uoms-list.md → uoms/list.md} +0 -0
- /package/docs/commands/liberica/{uoms-update.md → uoms/update.md} +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// Status flag literal type
|
|
2
|
+
export type CurrencyStatusFlag = 1 | 2;
|
|
3
|
+
|
|
4
|
+
// Full Currency entity
|
|
5
|
+
export interface Currency {
|
|
6
|
+
currencyId: string;
|
|
7
|
+
currencyCode: string;
|
|
8
|
+
currencyName: string;
|
|
9
|
+
currencySign: string;
|
|
10
|
+
currencyRateType?: string;
|
|
11
|
+
currencyExchangeMethod?: string;
|
|
12
|
+
unitPriceFractionPlaces?: number;
|
|
13
|
+
amountFractionPlaces?: number;
|
|
14
|
+
statusFlag: CurrencyStatusFlag;
|
|
15
|
+
currencyRate?: string;
|
|
16
|
+
remark?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Request for creating Currency (add endpoint)
|
|
20
|
+
export interface CreateCurrencyRequest {
|
|
21
|
+
currencyCode: string;
|
|
22
|
+
currencyName?: string;
|
|
23
|
+
currencySign?: string;
|
|
24
|
+
currencyRate?: string;
|
|
25
|
+
unitPriceFractionPlaces?: number;
|
|
26
|
+
amountFractionPlaces?: number;
|
|
27
|
+
remark?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Request for updating Currency (edit endpoint)
|
|
31
|
+
export interface UpdateCurrencyRequest {
|
|
32
|
+
currencyId: string;
|
|
33
|
+
currencyName?: string;
|
|
34
|
+
currencySign?: string;
|
|
35
|
+
currencyRateType?: string;
|
|
36
|
+
currencyExchangeMethod?: string;
|
|
37
|
+
unitPriceFractionPlaces?: number;
|
|
38
|
+
amountFractionPlaces?: number;
|
|
39
|
+
statusFlag?: CurrencyStatusFlag;
|
|
40
|
+
currencyRate?: string;
|
|
41
|
+
remark?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Query params for list/pagination
|
|
45
|
+
export interface CurrencyQueryParams {
|
|
46
|
+
pageNo?: number;
|
|
47
|
+
pageSize?: number;
|
|
48
|
+
status?: CurrencyStatusFlag;
|
|
49
|
+
currencyCode?: string;
|
|
50
|
+
currencyName?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Paginated response wrapper (PageResult from Roses framework)
|
|
54
|
+
export interface PageResult<T> {
|
|
55
|
+
totalRows: number;
|
|
56
|
+
pageSize: number;
|
|
57
|
+
pageNo: number;
|
|
58
|
+
rows: T[];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// List response type
|
|
62
|
+
export interface CurrencyListResponse extends PageResult<Currency> {}
|
|
63
|
+
|
|
64
|
+
// API response wrapper
|
|
65
|
+
export interface CurrencyApiResponse {
|
|
66
|
+
success: boolean;
|
|
67
|
+
data?: Currency | CurrencyListResponse;
|
|
68
|
+
error?: {
|
|
69
|
+
code: string;
|
|
70
|
+
message: string;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Default currency response (from getCurrencyDefault endpoint)
|
|
75
|
+
export interface CurrencyDefault {
|
|
76
|
+
currencyCode: string;
|
|
77
|
+
currencyName: string;
|
|
78
|
+
currencySign: string;
|
|
79
|
+
unitPriceFractionPlaces?: number;
|
|
80
|
+
amountFractionPlaces?: number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface CurrencyDefaultResponse {
|
|
84
|
+
success: boolean;
|
|
85
|
+
data?: CurrencyDefault;
|
|
86
|
+
error?: {
|
|
87
|
+
code: string;
|
|
88
|
+
message: string;
|
|
89
|
+
};
|
|
90
|
+
}
|
package/src/types/index.ts
CHANGED
|
@@ -74,8 +74,8 @@ export * from './employee.js';
|
|
|
74
74
|
export * from './org.js';
|
|
75
75
|
export * from './position.js';
|
|
76
76
|
export type { Uom, CreateUomRequest, UpdateUomRequest, UomQueryParams, UomListResponse, UomApiResponse, UomStatusFlag } from './uom.js';
|
|
77
|
-
export type { Supplier, SupplierListResponse, SupplierQueryParams, SupplierApiResponse } from './supplier.js';
|
|
78
|
-
export type {
|
|
79
|
-
export type { ClientListResponse, MasterClientCompactResponse, ClientQueryParams, ClientApiResponse } from './client.js';
|
|
80
|
-
export type { MasterClientResponse, CreateClientRequest, UpdateClientRequest } from './client.js';
|
|
77
|
+
export type { Supplier, SupplierListResponse, SupplierQueryParams, SupplierApiResponse, CreateSupplierRequest, UpdateSupplierRequest } from './supplier.js';
|
|
78
|
+
export type { ClientListResponse, MasterClientCompactResponse, ClientQueryParams, ClientApiResponse, MasterClientResponse, CreateClientRequest, UpdateClientRequest } from './client.js';
|
|
81
79
|
export type { ApiResponse, Material, MaterialRequest, MaterialQueryParams, MaterialListResponse, MaterialApiResponse, MaterialStatusFlag } from './material.js';
|
|
80
|
+
export type { Warehouse, WarehouseListResponse, WarehouseQueryParams, WarehouseApiResponse, CreateWarehouseRequest, UpdateWarehouseRequest } from './warehouse.js';
|
|
81
|
+
export type { WarehouseLocation, LocationListResponse, LocationQueryParams, LocationApiResponse, CreateLocationRequest, UpdateLocationRequest } from './location.js';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// Status flag literal type
|
|
2
|
+
export type StatusFlag = 1 | 2;
|
|
3
|
+
|
|
4
|
+
// Full WarehouseLocation entity
|
|
5
|
+
export interface WarehouseLocation {
|
|
6
|
+
warehouseLocationId: string;
|
|
7
|
+
warehouseId: string;
|
|
8
|
+
warehouseLocationCode: string;
|
|
9
|
+
warehouseLocationName: string;
|
|
10
|
+
warehouseLocationType?: string;
|
|
11
|
+
capacity?: number;
|
|
12
|
+
remark?: string;
|
|
13
|
+
statusFlag: StatusFlag;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Request for creating location (add endpoint)
|
|
17
|
+
export interface CreateLocationRequest {
|
|
18
|
+
warehouseId: string;
|
|
19
|
+
warehouseLocationCode: string;
|
|
20
|
+
warehouseLocationName: string;
|
|
21
|
+
warehouseLocationType?: string;
|
|
22
|
+
capacity?: number;
|
|
23
|
+
remark?: string;
|
|
24
|
+
status?: StatusFlag;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Request for updating location (edit endpoint)
|
|
28
|
+
export interface UpdateLocationRequest {
|
|
29
|
+
warehouseLocationId: string;
|
|
30
|
+
warehouseLocationName?: string;
|
|
31
|
+
warehouseLocationType?: string;
|
|
32
|
+
capacity?: number;
|
|
33
|
+
remark?: string;
|
|
34
|
+
status?: StatusFlag;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Query params for list/pagination
|
|
38
|
+
export interface LocationQueryParams {
|
|
39
|
+
pageNo?: number;
|
|
40
|
+
pageSize?: number;
|
|
41
|
+
warehouseId: string;
|
|
42
|
+
status?: StatusFlag;
|
|
43
|
+
warehouseLocationCode?: string;
|
|
44
|
+
warehouseLocationName?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Paginated response wrapper (PageResult from Roses framework)
|
|
48
|
+
export interface PageResult<T> {
|
|
49
|
+
totalRows: number;
|
|
50
|
+
pageSize: number;
|
|
51
|
+
pageNo: number;
|
|
52
|
+
rows: T[];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// List response type
|
|
56
|
+
export interface LocationListResponse extends PageResult<WarehouseLocation> {}
|
|
57
|
+
|
|
58
|
+
// API response wrapper
|
|
59
|
+
export interface LocationApiResponse {
|
|
60
|
+
success: boolean;
|
|
61
|
+
data?: WarehouseLocation | LocationListResponse;
|
|
62
|
+
error?: {
|
|
63
|
+
code: string;
|
|
64
|
+
message: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Status flag literal type
|
|
2
|
+
export type StatusFlag = 1 | 2;
|
|
3
|
+
|
|
4
|
+
// Full Warehouse entity
|
|
5
|
+
export interface Warehouse {
|
|
6
|
+
warehouseId: string;
|
|
7
|
+
warehouseCode: string;
|
|
8
|
+
warehouseName: string;
|
|
9
|
+
warehouseType?: string;
|
|
10
|
+
warehouseClasses?: string;
|
|
11
|
+
address?: string;
|
|
12
|
+
contact?: string;
|
|
13
|
+
phone?: string;
|
|
14
|
+
manager?: string;
|
|
15
|
+
enableLocation?: boolean | string;
|
|
16
|
+
enableNegativeInventory?: boolean | string;
|
|
17
|
+
remark?: string;
|
|
18
|
+
statusFlag: StatusFlag;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Request for creating warehouse (add endpoint)
|
|
22
|
+
// NOTE: enableLocation/enableNegativeInventory must be "1"/"0" strings (backend Y/N format)
|
|
23
|
+
export interface CreateWarehouseRequest {
|
|
24
|
+
warehouseCode: string;
|
|
25
|
+
warehouseName: string;
|
|
26
|
+
warehouseType?: string;
|
|
27
|
+
warehouseClasses?: string;
|
|
28
|
+
address?: string;
|
|
29
|
+
contact?: string;
|
|
30
|
+
phone?: string;
|
|
31
|
+
manager?: string;
|
|
32
|
+
enableLocation?: string;
|
|
33
|
+
enableNegativeInventory?: string;
|
|
34
|
+
remark?: string;
|
|
35
|
+
status?: StatusFlag;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Request for updating warehouse (edit endpoint)
|
|
39
|
+
export interface UpdateWarehouseRequest {
|
|
40
|
+
warehouseId: string;
|
|
41
|
+
warehouseName?: string;
|
|
42
|
+
warehouseType?: string;
|
|
43
|
+
warehouseClasses?: string;
|
|
44
|
+
address?: string;
|
|
45
|
+
contact?: string;
|
|
46
|
+
phone?: string;
|
|
47
|
+
manager?: string;
|
|
48
|
+
enableLocation?: string;
|
|
49
|
+
enableNegativeInventory?: string;
|
|
50
|
+
remark?: string;
|
|
51
|
+
status?: StatusFlag;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Query params for list/pagination
|
|
55
|
+
export interface WarehouseQueryParams {
|
|
56
|
+
pageNo?: number;
|
|
57
|
+
pageSize?: number;
|
|
58
|
+
status?: StatusFlag;
|
|
59
|
+
warehouseCode?: string;
|
|
60
|
+
warehouseName?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Paginated response wrapper (PageResult from Roses framework)
|
|
64
|
+
export interface PageResult<T> {
|
|
65
|
+
totalRows: number;
|
|
66
|
+
pageSize: number;
|
|
67
|
+
pageNo: number;
|
|
68
|
+
rows: T[];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// List response type
|
|
72
|
+
export interface WarehouseListResponse extends PageResult<Warehouse> {}
|
|
73
|
+
|
|
74
|
+
// API response wrapper
|
|
75
|
+
export interface WarehouseApiResponse {
|
|
76
|
+
success: boolean;
|
|
77
|
+
data?: Warehouse | WarehouseListResponse;
|
|
78
|
+
error?: {
|
|
79
|
+
code: string;
|
|
80
|
+
message: string;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|