packages-ob-lib 0.0.3 → 0.0.4
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/dist/common/utils/api.response.formatter.d.ts +2 -0
- package/dist/common/utils/api.response.formatter.js +18 -0
- package/dist/common/utils/api.response.formatter.js.map +1 -1
- package/dist/pos/cosuim/auth/auth.service.d.ts +12 -0
- package/dist/pos/cosuim/auth/auth.service.js +16 -0
- package/dist/pos/cosuim/auth/auth.service.js.map +1 -0
- package/dist/pos/cosuim/auth/index.d.ts +12 -0
- package/dist/pos/cosuim/auth/index.js +8 -0
- package/dist/pos/cosuim/auth/index.js.map +1 -0
- package/dist/pos/cosuim/auth/interfaces/auth.interface.d.ts +5 -0
- package/dist/pos/cosuim/auth/interfaces/auth.interface.js +3 -0
- package/dist/pos/cosuim/auth/interfaces/auth.interface.js.map +1 -0
- package/dist/pos/cosuim/cosium.service.d.ts +23 -0
- package/dist/pos/cosuim/cosium.service.js +60 -0
- package/dist/pos/cosuim/cosium.service.js.map +1 -0
- package/dist/pos/cosuim/customer/index.d.ts +13 -0
- package/dist/pos/cosuim/customer/index.js +11 -0
- package/dist/pos/cosuim/customer/index.js.map +1 -0
- package/dist/pos/cosuim/customer/interfaces/customer.export.interface.d.ts +25 -0
- package/dist/pos/cosuim/customer/interfaces/customer.export.interface.js +3 -0
- package/dist/pos/cosuim/customer/interfaces/customer.export.interface.js.map +1 -0
- package/dist/pos/cosuim/index.d.ts +1 -0
- package/dist/pos/cosuim/index.js +18 -0
- package/dist/pos/cosuim/index.js.map +1 -0
- package/dist/pos/cosuim/types.d.ts +1 -0
- package/dist/pos/cosuim/types.js +18 -0
- package/dist/pos/cosuim/types.js.map +1 -0
- package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.export.interface.d.ts +2 -2
- package/dist/pos/openbravo/ob.service.d.ts +44 -176
- package/dist/pos/openbravo/ob.service.js +44 -139
- package/dist/pos/openbravo/ob.service.js.map +1 -1
- package/dist/pos/openbravo/order/index.d.ts +36 -9
- package/dist/pos/openbravo/order/index.js +41 -14
- package/dist/pos/openbravo/order/index.js.map +1 -1
- package/dist/pos/openbravo/product/index.d.ts +11 -71
- package/dist/pos/openbravo/product/index.js +21 -74
- package/dist/pos/openbravo/product/index.js.map +1 -1
- package/dist/pos/openbravo/productPrice/index.d.ts +4 -23
- package/dist/pos/openbravo/productPrice/index.js +7 -23
- package/dist/pos/openbravo/productPrice/index.js.map +1 -1
- package/dist/pos/openbravo/stock/index.d.ts +6 -35
- package/dist/pos/openbravo/stock/index.js +12 -40
- package/dist/pos/openbravo/stock/index.js.map +1 -1
- package/dist/pos/openbravo/stock/interfaces/stock.export.interface.d.ts +12 -12
- package/dist/pos/openbravo/types.d.ts +0 -4
- package/dist/pos/openbravo/types.js +0 -4
- package/dist/pos/openbravo/types.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,14 +1,7 @@
|
|
1
1
|
export declare const OBStockService: {
|
2
|
-
readonly findAll: (
|
3
|
-
page?: number;
|
4
|
-
pageSize?: number;
|
5
|
-
}) => {
|
2
|
+
readonly findAll: () => {
|
6
3
|
url: string;
|
7
4
|
method: string;
|
8
|
-
params: {
|
9
|
-
_pageSize: number;
|
10
|
-
_page: number;
|
11
|
-
};
|
12
5
|
};
|
13
6
|
readonly findByStockId: ({ stockID }: {
|
14
7
|
stockID: string;
|
@@ -16,75 +9,53 @@ export declare const OBStockService: {
|
|
16
9
|
url: string;
|
17
10
|
method: string;
|
18
11
|
};
|
19
|
-
readonly findByWarehouse: ({ warehouse
|
12
|
+
readonly findByWarehouse: ({ warehouse }: {
|
20
13
|
warehouse: string;
|
21
|
-
page?: number;
|
22
|
-
pageSize?: number;
|
23
14
|
}) => {
|
24
15
|
url: string;
|
25
16
|
method: string;
|
26
17
|
params: {
|
27
|
-
_pageSize: number;
|
28
|
-
_page: number;
|
29
18
|
warehouse: string;
|
30
19
|
};
|
31
20
|
};
|
32
|
-
readonly findByProduct: ({ product
|
21
|
+
readonly findByProduct: ({ product }: {
|
33
22
|
product: string;
|
34
|
-
page?: number;
|
35
|
-
pageSize?: number;
|
36
23
|
}) => {
|
37
24
|
url: string;
|
38
25
|
method: string;
|
39
26
|
params: {
|
40
|
-
_pageSize: number;
|
41
|
-
_page: number;
|
42
27
|
product: string;
|
43
28
|
};
|
44
29
|
};
|
45
|
-
readonly
|
46
|
-
warehouse: string;
|
30
|
+
readonly findByBin: ({ bin }: {
|
47
31
|
bin: string;
|
48
|
-
page?: number;
|
49
|
-
pageSize?: number;
|
50
32
|
}) => {
|
51
33
|
url: string;
|
52
34
|
method: string;
|
53
35
|
params: {
|
54
|
-
_pageSize: number;
|
55
|
-
_page: number;
|
56
|
-
warehouse: string;
|
57
36
|
bin: string;
|
58
37
|
};
|
59
38
|
};
|
60
|
-
readonly findByWarehouseBinProduct: ({ warehouse, bin, product,
|
39
|
+
readonly findByWarehouseBinProduct: ({ warehouse, bin, product, }: {
|
61
40
|
warehouse: string;
|
62
41
|
bin: string;
|
63
42
|
product: string;
|
64
|
-
page?: number;
|
65
|
-
pageSize?: number;
|
66
43
|
}) => {
|
67
44
|
url: string;
|
68
45
|
method: string;
|
69
46
|
params: {
|
70
|
-
_pageSize: number;
|
71
|
-
_page: number;
|
72
47
|
warehouse: string;
|
73
48
|
bin: string;
|
74
49
|
product: string;
|
75
50
|
};
|
76
51
|
};
|
77
|
-
readonly findByWarehouseProduct: ({ warehouse, product,
|
52
|
+
readonly findByWarehouseProduct: ({ warehouse, product, }: {
|
78
53
|
warehouse: string;
|
79
54
|
product: string;
|
80
|
-
page?: number;
|
81
|
-
pageSize?: number;
|
82
55
|
}) => {
|
83
56
|
url: string;
|
84
57
|
method: string;
|
85
58
|
params: {
|
86
|
-
_pageSize: number;
|
87
|
-
_page: number;
|
88
59
|
warehouse: string;
|
89
60
|
product: string;
|
90
61
|
};
|
@@ -2,66 +2,38 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.OBStockService = void 0;
|
4
4
|
exports.OBStockService = {
|
5
|
-
findAll: (
|
5
|
+
findAll: () => ({
|
6
6
|
url: `/ws/org.openbravo.api.ExportService/Stock`,
|
7
7
|
method: 'GET',
|
8
|
-
params: {
|
9
|
-
...(page && { _page: page }),
|
10
|
-
...(pageSize && { _pageSize: pageSize }),
|
11
|
-
},
|
12
8
|
}),
|
13
9
|
findByStockId: ({ stockID }) => ({
|
14
10
|
url: `/ws/org.openbravo.api.ExportService/Stock/${stockID}`,
|
15
11
|
method: 'GET',
|
16
12
|
}),
|
17
|
-
findByWarehouse: ({ warehouse
|
13
|
+
findByWarehouse: ({ warehouse }) => ({
|
18
14
|
url: `/ws/org.openbravo.api.ExportService/Stock/byWarehouse`,
|
19
15
|
method: 'GET',
|
20
|
-
params: {
|
21
|
-
warehouse,
|
22
|
-
...(page && { _page: page }),
|
23
|
-
...(pageSize && { _pageSize: pageSize }),
|
24
|
-
},
|
16
|
+
params: { warehouse },
|
25
17
|
}),
|
26
|
-
findByProduct: ({ product
|
18
|
+
findByProduct: ({ product }) => ({
|
27
19
|
url: `/ws/org.openbravo.api.ExportService/Stock/byProduct`,
|
28
20
|
method: 'GET',
|
29
|
-
params: {
|
30
|
-
product,
|
31
|
-
...(page && { _page: page }),
|
32
|
-
...(pageSize && { _pageSize: pageSize }),
|
33
|
-
},
|
21
|
+
params: { product },
|
34
22
|
}),
|
35
|
-
|
36
|
-
url: `/ws/org.openbravo.api.ExportService/Stock/
|
23
|
+
findByBin: ({ bin }) => ({
|
24
|
+
url: `/ws/org.openbravo.api.ExportService/Stock/byBin`,
|
37
25
|
method: 'GET',
|
38
|
-
params: {
|
39
|
-
warehouse,
|
40
|
-
bin,
|
41
|
-
...(page && { _page: page }),
|
42
|
-
...(pageSize && { _pageSize: pageSize }),
|
43
|
-
},
|
26
|
+
params: { bin },
|
44
27
|
}),
|
45
|
-
findByWarehouseBinProduct: ({ warehouse, bin, product,
|
28
|
+
findByWarehouseBinProduct: ({ warehouse, bin, product, }) => ({
|
46
29
|
url: `/ws/org.openbravo.api.ExportService/Stock/byWarehouseBinProduct`,
|
47
30
|
method: 'GET',
|
48
|
-
params: {
|
49
|
-
warehouse,
|
50
|
-
bin,
|
51
|
-
product,
|
52
|
-
...(page && { _page: page }),
|
53
|
-
...(pageSize && { _pageSize: pageSize }),
|
54
|
-
},
|
31
|
+
params: { warehouse, bin, product },
|
55
32
|
}),
|
56
|
-
findByWarehouseProduct: ({ warehouse, product,
|
33
|
+
findByWarehouseProduct: ({ warehouse, product, }) => ({
|
57
34
|
url: `/ws/org.openbravo.api.ExportService/Stock/byWarehouseProduct`,
|
58
35
|
method: 'GET',
|
59
|
-
params: {
|
60
|
-
warehouse,
|
61
|
-
product,
|
62
|
-
...(page && { _page: page }),
|
63
|
-
...(pageSize && { _pageSize: pageSize }),
|
64
|
-
},
|
36
|
+
params: { warehouse, product },
|
65
37
|
}),
|
66
38
|
};
|
67
39
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/stock/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/stock/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;QACd,GAAG,EAAE,2CAA2C;QAChD,MAAM,EAAE,KAAK;KACd,CAAC;IACF,aAAa,EAAE,CAAC,EAAE,OAAO,EAAuB,EAAE,EAAE,CAAC,CAAC;QACpD,GAAG,EAAE,6CAA6C,OAAO,EAAE;QAC3D,MAAM,EAAE,KAAK;KACd,CAAC;IACF,eAAe,EAAE,CAAC,EAAE,SAAS,EAAyB,EAAE,EAAE,CAAC,CAAC;QAC1D,GAAG,EAAE,uDAAuD;QAC5D,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,SAAS,EAAE;KACtB,CAAC;IACF,aAAa,EAAE,CAAC,EAAE,OAAO,EAAuB,EAAE,EAAE,CAAC,CAAC;QACpD,GAAG,EAAE,qDAAqD;QAC1D,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,OAAO,EAAE;KACpB,CAAC;IACF,SAAS,EAAE,CAAC,EAAE,GAAG,EAAmB,EAAE,EAAE,CAAC,CAAC;QACxC,GAAG,EAAE,iDAAiD;QACtD,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,GAAG,EAAE;KAChB,CAAC;IACF,yBAAyB,EAAE,CAAC,EAC1B,SAAS,EACT,GAAG,EACH,OAAO,GAKR,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,iEAAiE;QACtE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE;KACpC,CAAC;IACF,sBAAsB,EAAE,CAAC,EACvB,SAAS,EACT,OAAO,GAIR,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,8DAA8D;QACnE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE;KAC/B,CAAC;CACM,CAAC"}
|
@@ -1,51 +1,51 @@
|
|
1
1
|
export interface StockExport {
|
2
2
|
warehouse: string;
|
3
3
|
product: string;
|
4
|
-
product_info:
|
4
|
+
product_info: ProductInfo;
|
5
5
|
organization: string;
|
6
6
|
attributeSetInstance: string;
|
7
|
-
attributeSetInstance_info:
|
7
|
+
attributeSetInstance_info: AttributeSetInstanceInfo;
|
8
8
|
bin: string;
|
9
9
|
quantityOnHand: number;
|
10
10
|
reservedQty: number;
|
11
11
|
allocatedQuantity: number;
|
12
12
|
UOM: string;
|
13
13
|
handlingUnit: string;
|
14
|
-
handlingUnits:
|
14
|
+
handlingUnits: HandlingUnit[];
|
15
15
|
}
|
16
|
-
export interface
|
16
|
+
export interface ProductInfo {
|
17
17
|
searchKey: string;
|
18
18
|
name: string;
|
19
19
|
upcEAN: string;
|
20
20
|
productType: string;
|
21
21
|
id: string;
|
22
22
|
}
|
23
|
-
export interface
|
23
|
+
export interface AttributeSetInstanceInfo {
|
24
24
|
description: string;
|
25
25
|
serialNo: string;
|
26
26
|
lot: string;
|
27
27
|
expirationDate: string;
|
28
28
|
id: string;
|
29
29
|
}
|
30
|
-
export interface
|
30
|
+
export interface HandlingUnit {
|
31
31
|
searchKey: string;
|
32
32
|
type: string;
|
33
33
|
status: string;
|
34
34
|
parent: string;
|
35
35
|
storageType: string;
|
36
|
-
contents:
|
37
|
-
handlingUnits:
|
36
|
+
contents: HandlingUnitContent[];
|
37
|
+
handlingUnits: SubHandlingUnit[];
|
38
38
|
}
|
39
|
-
export interface
|
39
|
+
export interface HandlingUnitContent {
|
40
40
|
product: string;
|
41
|
-
product_info:
|
41
|
+
product_info: ProductInfo;
|
42
42
|
attributeSetInstance: string;
|
43
|
-
attributeSetInstance_info:
|
43
|
+
attributeSetInstance_info: AttributeSetInstanceInfo;
|
44
44
|
quantityOnHand: number;
|
45
45
|
UOM: string;
|
46
46
|
handlingUnit: string;
|
47
47
|
}
|
48
|
-
export interface
|
48
|
+
export interface SubHandlingUnit {
|
49
49
|
searchKey: string;
|
50
50
|
type: string;
|
51
51
|
status: string;
|
@@ -9,7 +9,3 @@ export * from './productMedia/interfaces/productMedia.export.interface';
|
|
9
9
|
export * from './promotion/interfaces/promotion.export.interface';
|
10
10
|
export * from './stock/interfaces/stock.export.interface';
|
11
11
|
export * from './productprice/interfaces/productprice.export.interface';
|
12
|
-
export * from './stockTransaction/interfaces/stockTransaction.export.interface';
|
13
|
-
export * from './distributionOrder/interfaces/distributionOrder.export.interface';
|
14
|
-
export * from './goodsMovement/interfaces/goodsMovement.export.interface';
|
15
|
-
export * from './inventory/interfaces/inventory.export.interface';
|
@@ -25,8 +25,4 @@ __exportStar(require("./productMedia/interfaces/productMedia.export.interface"),
|
|
25
25
|
__exportStar(require("./promotion/interfaces/promotion.export.interface"), exports);
|
26
26
|
__exportStar(require("./stock/interfaces/stock.export.interface"), exports);
|
27
27
|
__exportStar(require("./productprice/interfaces/productprice.export.interface"), exports);
|
28
|
-
__exportStar(require("./stockTransaction/interfaces/stockTransaction.export.interface"), exports);
|
29
|
-
__exportStar(require("./distributionOrder/interfaces/distributionOrder.export.interface"), exports);
|
30
|
-
__exportStar(require("./goodsMovement/interfaces/goodsMovement.export.interface"), exports);
|
31
|
-
__exportStar(require("./inventory/interfaces/inventory.export.interface"), exports);
|
32
28
|
//# sourceMappingURL=types.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/pos/openbravo/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gGAA8E;AAC9E,4EAA0D;AAC1D,0FAAwE;AACxE,oFAAkE;AAClE,gFAA8D;AAC9D,gGAA8E;AAC9E,4GAA0F;AAC1F,0FAAwE;AACxE,oFAAkE;AAClE,4EAA0D;AAC1D,0FAAwE
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/pos/openbravo/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gGAA8E;AAC9E,4EAA0D;AAC1D,0FAAwE;AACxE,oFAAkE;AAClE,gFAA8D;AAC9D,gGAA8E;AAC9E,4GAA0F;AAC1F,0FAAwE;AACxE,oFAAkE;AAClE,4EAA0D;AAC1D,0FAAwE"}
|