packages-ob-lib 0.0.1
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.md +73 -0
- package/dist/api.module.d.ts +2 -0
- package/dist/api.module.js +17 -0
- package/dist/api.module.js.map +1 -0
- package/dist/common/interceptors/api.response.interceptor.d.ts +5 -0
- package/dist/common/interceptors/api.response.interceptor.js +22 -0
- package/dist/common/interceptors/api.response.interceptor.js.map +1 -0
- package/dist/common/utils/api.response.formatter.d.ts +11 -0
- package/dist/common/utils/api.response.formatter.js +16 -0
- package/dist/common/utils/api.response.formatter.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/pos/openbravo/businessPartner/index.d.ts +91 -0
- package/dist/pos/openbravo/businessPartner/index.js +61 -0
- package/dist/pos/openbravo/businessPartner/index.js.map +1 -0
- package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.export.interface.d.ts +69 -0
- package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.export.interface.js +3 -0
- package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.export.interface.js.map +1 -0
- package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.import.interface.d.ts +63 -0
- package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.import.interface.js +3 -0
- package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.import.interface.js.map +1 -0
- package/dist/pos/openbravo/distributionOrder/index.d.ts +30 -0
- package/dist/pos/openbravo/distributionOrder/index.js +26 -0
- package/dist/pos/openbravo/distributionOrder/index.js.map +1 -0
- package/dist/pos/openbravo/distributionOrder/interfaces/distributionOrder.export.interface.d.ts +60 -0
- package/dist/pos/openbravo/distributionOrder/interfaces/distributionOrder.export.interface.js +3 -0
- package/dist/pos/openbravo/distributionOrder/interfaces/distributionOrder.export.interface.js.map +1 -0
- package/dist/pos/openbravo/goodsMovement/index.d.ts +43 -0
- package/dist/pos/openbravo/goodsMovement/index.js +34 -0
- package/dist/pos/openbravo/goodsMovement/index.js.map +1 -0
- package/dist/pos/openbravo/goodsMovement/interfaces/goodsMovement.export.interface.d.ts +89 -0
- package/dist/pos/openbravo/goodsMovement/interfaces/goodsMovement.export.interface.js +3 -0
- package/dist/pos/openbravo/goodsMovement/interfaces/goodsMovement.export.interface.js.map +1 -0
- package/dist/pos/openbravo/index.d.ts +1 -0
- package/dist/pos/openbravo/index.js +18 -0
- package/dist/pos/openbravo/index.js.map +1 -0
- package/dist/pos/openbravo/inventory/index.d.ts +43 -0
- package/dist/pos/openbravo/inventory/index.js +34 -0
- package/dist/pos/openbravo/inventory/index.js.map +1 -0
- package/dist/pos/openbravo/inventory/interfaces/inventory.export.interface.d.ts +82 -0
- package/dist/pos/openbravo/inventory/interfaces/inventory.export.interface.js +3 -0
- package/dist/pos/openbravo/inventory/interfaces/inventory.export.interface.js.map +1 -0
- package/dist/pos/openbravo/ob.service.d.ts +393 -0
- package/dist/pos/openbravo/ob.service.js +312 -0
- package/dist/pos/openbravo/ob.service.js.map +1 -0
- package/dist/pos/openbravo/order/index.d.ts +70 -0
- package/dist/pos/openbravo/order/index.js +44 -0
- package/dist/pos/openbravo/order/index.js.map +1 -0
- package/dist/pos/openbravo/order/interfaces/order.export.interface.d.ts +162 -0
- package/dist/pos/openbravo/order/interfaces/order.export.interface.js +3 -0
- package/dist/pos/openbravo/order/interfaces/order.export.interface.js.map +1 -0
- package/dist/pos/openbravo/order/interfaces/order.import.interface.d.ts +49 -0
- package/dist/pos/openbravo/order/interfaces/order.import.interface.js +3 -0
- package/dist/pos/openbravo/order/interfaces/order.import.interface.js.map +1 -0
- package/dist/pos/openbravo/organization/index.d.ts +12 -0
- package/dist/pos/openbravo/organization/index.js +14 -0
- package/dist/pos/openbravo/organization/index.js.map +1 -0
- package/dist/pos/openbravo/organization/interfaces/organization.export.interface.d.ts +39 -0
- package/dist/pos/openbravo/organization/interfaces/organization.export.interface.js +3 -0
- package/dist/pos/openbravo/organization/interfaces/organization.export.interface.js.map +1 -0
- package/dist/pos/openbravo/priceList/index.d.ts +46 -0
- package/dist/pos/openbravo/priceList/index.js +34 -0
- package/dist/pos/openbravo/priceList/index.js.map +1 -0
- package/dist/pos/openbravo/priceList/interfaces/priceList.export.interface.d.ts +29 -0
- package/dist/pos/openbravo/priceList/interfaces/priceList.export.interface.js +3 -0
- package/dist/pos/openbravo/priceList/interfaces/priceList.export.interface.js.map +1 -0
- package/dist/pos/openbravo/product/index.d.ts +169 -0
- package/dist/pos/openbravo/product/index.js +122 -0
- package/dist/pos/openbravo/product/index.js.map +1 -0
- package/dist/pos/openbravo/product/interfaces/product.export.interface.d.ts +95 -0
- package/dist/pos/openbravo/product/interfaces/product.export.interface.js +3 -0
- package/dist/pos/openbravo/product/interfaces/product.export.interface.js.map +1 -0
- package/dist/pos/openbravo/productCategory/index.d.ts +55 -0
- package/dist/pos/openbravo/productCategory/index.js +41 -0
- package/dist/pos/openbravo/productCategory/index.js.map +1 -0
- package/dist/pos/openbravo/productCategory/interfaces/productCategory.export.interface.d.ts +26 -0
- package/dist/pos/openbravo/productCategory/interfaces/productCategory.export.interface.js +3 -0
- package/dist/pos/openbravo/productCategory/interfaces/productCategory.export.interface.js.map +1 -0
- package/dist/pos/openbravo/productCharacteristic/index.d.ts +37 -0
- package/dist/pos/openbravo/productCharacteristic/index.js +31 -0
- package/dist/pos/openbravo/productCharacteristic/index.js.map +1 -0
- package/dist/pos/openbravo/productCharacteristic/interfaces/productCharacteristic.export.interface.d.ts +33 -0
- package/dist/pos/openbravo/productCharacteristic/interfaces/productCharacteristic.export.interface.js +3 -0
- package/dist/pos/openbravo/productCharacteristic/interfaces/productCharacteristic.export.interface.js.map +1 -0
- package/dist/pos/openbravo/productMedia/index.d.ts +11 -0
- package/dist/pos/openbravo/productMedia/index.js +11 -0
- package/dist/pos/openbravo/productMedia/index.js.map +1 -0
- package/dist/pos/openbravo/productMedia/interfaces/productMedia.export.interface.d.ts +10 -0
- package/dist/pos/openbravo/productMedia/interfaces/productMedia.export.interface.js +3 -0
- package/dist/pos/openbravo/productMedia/interfaces/productMedia.export.interface.js.map +1 -0
- package/dist/pos/openbravo/productPrice/index.d.ts +58 -0
- package/dist/pos/openbravo/productPrice/index.js +45 -0
- package/dist/pos/openbravo/productPrice/index.js.map +1 -0
- package/dist/pos/openbravo/productPrice/interfaces/productprice.export.interface.d.ts +42 -0
- package/dist/pos/openbravo/productPrice/interfaces/productprice.export.interface.js +3 -0
- package/dist/pos/openbravo/productPrice/interfaces/productprice.export.interface.js.map +1 -0
- package/dist/pos/openbravo/promotion/index.d.ts +64 -0
- package/dist/pos/openbravo/promotion/index.js +44 -0
- package/dist/pos/openbravo/promotion/index.js.map +1 -0
- package/dist/pos/openbravo/promotion/interfaces/promotion.export.interface.d.ts +171 -0
- package/dist/pos/openbravo/promotion/interfaces/promotion.export.interface.js +3 -0
- package/dist/pos/openbravo/promotion/interfaces/promotion.export.interface.js.map +1 -0
- package/dist/pos/openbravo/stock/index.d.ts +63 -0
- package/dist/pos/openbravo/stock/index.js +39 -0
- package/dist/pos/openbravo/stock/index.js.map +1 -0
- package/dist/pos/openbravo/stock/interfaces/stock.export.interface.d.ts +60 -0
- package/dist/pos/openbravo/stock/interfaces/stock.export.interface.js +3 -0
- package/dist/pos/openbravo/stock/interfaces/stock.export.interface.js.map +1 -0
- package/dist/pos/openbravo/stockTransaction/index.d.ts +111 -0
- package/dist/pos/openbravo/stockTransaction/index.js +69 -0
- package/dist/pos/openbravo/stockTransaction/index.js.map +1 -0
- package/dist/pos/openbravo/stockTransaction/interfaces/stockTransaction.export.interface.d.ts +58 -0
- package/dist/pos/openbravo/stockTransaction/interfaces/stockTransaction.export.interface.js +3 -0
- package/dist/pos/openbravo/stockTransaction/interfaces/stockTransaction.export.interface.js.map +1 -0
- package/dist/pos/openbravo/types.d.ts +15 -0
- package/dist/pos/openbravo/types.js +32 -0
- package/dist/pos/openbravo/types.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +76 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
export declare const OBProductCategoryService: {
|
2
|
+
readonly findAll: () => {
|
3
|
+
url: string;
|
4
|
+
method: string;
|
5
|
+
};
|
6
|
+
readonly findById: ({ productCategoryId }: {
|
7
|
+
productCategoryId: string;
|
8
|
+
}) => {
|
9
|
+
url: string;
|
10
|
+
method: string;
|
11
|
+
};
|
12
|
+
readonly findByName: ({ name }: {
|
13
|
+
name: string;
|
14
|
+
}) => {
|
15
|
+
url: string;
|
16
|
+
method: string;
|
17
|
+
params: {
|
18
|
+
name: string;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
readonly findByOrg: ({ organization }: {
|
22
|
+
organization: string;
|
23
|
+
}) => {
|
24
|
+
url: string;
|
25
|
+
method: string;
|
26
|
+
params: {
|
27
|
+
organization: string;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
readonly findBySearchKey: ({ searchKey }: {
|
31
|
+
searchKey: string;
|
32
|
+
}) => {
|
33
|
+
url: string;
|
34
|
+
method: string;
|
35
|
+
params: {
|
36
|
+
searchKey: string;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
readonly findByStore: ({ store }: {
|
40
|
+
store: string;
|
41
|
+
}) => {
|
42
|
+
url: string;
|
43
|
+
method: string;
|
44
|
+
params: {
|
45
|
+
store: string;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
readonly create: ({ productCategories }: {
|
49
|
+
productCategories: any | any[];
|
50
|
+
}) => {
|
51
|
+
url: string;
|
52
|
+
method: string;
|
53
|
+
data: any[];
|
54
|
+
};
|
55
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OBProductCategoryService = void 0;
|
4
|
+
exports.OBProductCategoryService = {
|
5
|
+
findAll: () => ({
|
6
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCategory`,
|
7
|
+
method: 'GET',
|
8
|
+
}),
|
9
|
+
findById: ({ productCategoryId }) => ({
|
10
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCategory/${productCategoryId}`,
|
11
|
+
method: 'GET',
|
12
|
+
}),
|
13
|
+
findByName: ({ name }) => ({
|
14
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCategory/byName`,
|
15
|
+
method: 'GET',
|
16
|
+
params: { name },
|
17
|
+
}),
|
18
|
+
findByOrg: ({ organization }) => ({
|
19
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCategory/byOrg`,
|
20
|
+
method: 'GET',
|
21
|
+
params: { organization },
|
22
|
+
}),
|
23
|
+
findBySearchKey: ({ searchKey }) => ({
|
24
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCategory/bySearchKey`,
|
25
|
+
method: 'GET',
|
26
|
+
params: { searchKey },
|
27
|
+
}),
|
28
|
+
findByStore: ({ store }) => ({
|
29
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCategory/byStore`,
|
30
|
+
method: 'GET',
|
31
|
+
params: { store },
|
32
|
+
}),
|
33
|
+
create: ({ productCategories }) => ({
|
34
|
+
url: `/ws/org.openbravo.api.ImportService/ProductCategory`,
|
35
|
+
method: 'POST',
|
36
|
+
data: Array.isArray(productCategories)
|
37
|
+
? productCategories
|
38
|
+
: [productCategories],
|
39
|
+
}),
|
40
|
+
};
|
41
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/productCategory/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;QACd,GAAG,EAAE,qDAAqD;QAC1D,MAAM,EAAE,KAAK;KACd,CAAC;IAEF,QAAQ,EAAE,CAAC,EAAE,iBAAiB,EAAiC,EAAE,EAAE,CAAC,CAAC;QACnE,GAAG,EAAE,uDAAuD,iBAAiB,EAAE;QAC/E,MAAM,EAAE,KAAK;KACd,CAAC;IAEF,UAAU,EAAE,CAAC,EAAE,IAAI,EAAoB,EAAE,EAAE,CAAC,CAAC;QAC3C,GAAG,EAAE,4DAA4D;QACjE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,IAAI,EAAE;KACjB,CAAC;IAEF,SAAS,EAAE,CAAC,EAAE,YAAY,EAA4B,EAAE,EAAE,CAAC,CAAC;QAC1D,GAAG,EAAE,2DAA2D;QAChE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,YAAY,EAAE;KACzB,CAAC;IAEF,eAAe,EAAE,CAAC,EAAE,SAAS,EAAyB,EAAE,EAAE,CAAC,CAAC;QAC1D,GAAG,EAAE,iEAAiE;QACtE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,SAAS,EAAE;KACtB,CAAC;IAEF,WAAW,EAAE,CAAC,EAAE,KAAK,EAAqB,EAAE,EAAE,CAAC,CAAC;QAC9C,GAAG,EAAE,6DAA6D;QAClE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,KAAK,EAAE;KAClB,CAAC;IAEF,MAAM,EAAE,CAAC,EAAE,iBAAiB,EAAsC,EAAE,EAAE,CAAC,CAAC;QACtE,GAAG,EAAE,qDAAqD;QAC1D,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC;YACpC,CAAC,CAAC,iBAAiB;YACnB,CAAC,CAAC,CAAC,iBAAiB,CAAC;KACxB,CAAC;CACM,CAAC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
export interface ProductCategoryExport {
|
2
|
+
client: string;
|
3
|
+
organization_info: {
|
4
|
+
name: string;
|
5
|
+
searchKey?: string;
|
6
|
+
groupBusinessUnit: string;
|
7
|
+
id: string;
|
8
|
+
};
|
9
|
+
organization: string;
|
10
|
+
id: string;
|
11
|
+
searchKey: string;
|
12
|
+
name: string;
|
13
|
+
description?: string;
|
14
|
+
summaryLevel: boolean;
|
15
|
+
active: boolean;
|
16
|
+
default: boolean;
|
17
|
+
plannedMargin?: string;
|
18
|
+
translations: ProductCategoryTranslationExport[];
|
19
|
+
mandatoryIssuance: boolean;
|
20
|
+
}
|
21
|
+
export interface ProductCategoryTranslationExport {
|
22
|
+
name: string;
|
23
|
+
language: string;
|
24
|
+
description?: string;
|
25
|
+
isTranslated: boolean;
|
26
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"productCategory.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/productCategory/interfaces/productCategory.export.interface.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export declare const OBProductCharacteristicService: {
|
2
|
+
readonly findAll: () => {
|
3
|
+
url: string;
|
4
|
+
method: string;
|
5
|
+
};
|
6
|
+
readonly findById: ({ productCharacteristicID, }: {
|
7
|
+
productCharacteristicID: string;
|
8
|
+
}) => {
|
9
|
+
url: string;
|
10
|
+
method: string;
|
11
|
+
};
|
12
|
+
readonly findByName: ({ name }: {
|
13
|
+
name: string;
|
14
|
+
}) => {
|
15
|
+
url: string;
|
16
|
+
method: string;
|
17
|
+
params: {
|
18
|
+
name: string;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
readonly findByOrg: ({ organization }: {
|
22
|
+
organization: string;
|
23
|
+
}) => {
|
24
|
+
url: string;
|
25
|
+
method: string;
|
26
|
+
params: {
|
27
|
+
organization: string;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
readonly create: ({ productCharacteristics }: {
|
31
|
+
productCharacteristics: any;
|
32
|
+
}) => {
|
33
|
+
url: string;
|
34
|
+
method: string;
|
35
|
+
data: any[];
|
36
|
+
};
|
37
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OBProductCharacteristicService = void 0;
|
4
|
+
exports.OBProductCharacteristicService = {
|
5
|
+
findAll: () => ({
|
6
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCharacteristic`,
|
7
|
+
method: 'GET',
|
8
|
+
}),
|
9
|
+
findById: ({ productCharacteristicID, }) => ({
|
10
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCharacteristic/${productCharacteristicID}`,
|
11
|
+
method: 'GET',
|
12
|
+
}),
|
13
|
+
findByName: ({ name }) => ({
|
14
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCharacteristic/byName`,
|
15
|
+
method: 'GET',
|
16
|
+
params: { name },
|
17
|
+
}),
|
18
|
+
findByOrg: ({ organization }) => ({
|
19
|
+
url: `/ws/org.openbravo.api.ExportService/ProductCharacteristic/byOrg`,
|
20
|
+
method: 'GET',
|
21
|
+
params: { organization },
|
22
|
+
}),
|
23
|
+
create: ({ productCharacteristics }) => ({
|
24
|
+
url: `/ws/org.openbravo.api.ImportService/ProductCharacteristic`,
|
25
|
+
method: 'POST',
|
26
|
+
data: Array.isArray(productCharacteristics)
|
27
|
+
? productCharacteristics
|
28
|
+
: [productCharacteristics],
|
29
|
+
}),
|
30
|
+
};
|
31
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/productCharacteristic/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,8BAA8B,GAAG;IAC5C,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;QACd,GAAG,EAAE,2DAA2D;QAChE,MAAM,EAAE,KAAK;KACd,CAAC;IAEF,QAAQ,EAAE,CAAC,EACT,uBAAuB,GAGxB,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,6DAA6D,uBAAuB,EAAE;QAC3F,MAAM,EAAE,KAAK;KACd,CAAC;IAEF,UAAU,EAAE,CAAC,EAAE,IAAI,EAAoB,EAAE,EAAE,CAAC,CAAC;QAC3C,GAAG,EAAE,kEAAkE;QACvE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,IAAI,EAAE;KACjB,CAAC;IAEF,SAAS,EAAE,CAAC,EAAE,YAAY,EAA4B,EAAE,EAAE,CAAC,CAAC;QAC1D,GAAG,EAAE,iEAAiE;QACtE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,YAAY,EAAE;KACzB,CAAC;IAEF,MAAM,EAAE,CAAC,EAAE,sBAAsB,EAAmC,EAAE,EAAE,CAAC,CAAC;QACxE,GAAG,EAAE,2DAA2D;QAChE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC;YACzC,CAAC,CAAC,sBAAsB;YACxB,CAAC,CAAC,CAAC,sBAAsB,CAAC;KAC7B,CAAC;CACM,CAAC"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
export interface ProductCharacteristicExport {
|
2
|
+
id: string;
|
3
|
+
client: string;
|
4
|
+
organization_info: {
|
5
|
+
name: string;
|
6
|
+
searchKey: string;
|
7
|
+
groupBusinessUnit: string;
|
8
|
+
id: string;
|
9
|
+
};
|
10
|
+
organization: string;
|
11
|
+
name: string;
|
12
|
+
description: string;
|
13
|
+
variant: boolean;
|
14
|
+
explodeConfigurationTab: boolean;
|
15
|
+
useOnWebPOS: boolean;
|
16
|
+
filterOnWebPOS: boolean;
|
17
|
+
assignValuesByOrg: boolean;
|
18
|
+
active: boolean;
|
19
|
+
characteristicValues: ProductCharacteristicValueExport[];
|
20
|
+
translations: ProductCharacteristicTranslationExport[];
|
21
|
+
}
|
22
|
+
export interface ProductCharacteristicValueExport {
|
23
|
+
name: string;
|
24
|
+
code: string;
|
25
|
+
summaryLevel: boolean;
|
26
|
+
description: string;
|
27
|
+
active: boolean;
|
28
|
+
translations: ProductCharacteristicTranslationExport[];
|
29
|
+
}
|
30
|
+
export interface ProductCharacteristicTranslationExport {
|
31
|
+
language: string;
|
32
|
+
name: string;
|
33
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"productCharacteristic.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/productCharacteristic/interfaces/productCharacteristic.export.interface.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OBProductMediaService = void 0;
|
4
|
+
exports.OBProductMediaService = {
|
5
|
+
findByProductSearchKey: ({ productSearchKey, }) => ({
|
6
|
+
url: `/ws/org.openbravo.api.ExportService/ProductMedia/byProductSearchKey`,
|
7
|
+
method: 'GET',
|
8
|
+
params: { productSearchKey },
|
9
|
+
}),
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/productMedia/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,sBAAsB,EAAE,CAAC,EACvB,gBAAgB,GAGjB,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,qEAAqE;QAC1E,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,gBAAgB,EAAE;KAC7B,CAAC;CACM,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"productMedia.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/productMedia/interfaces/productMedia.export.interface.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
export declare const OBProductPriceService: {
|
2
|
+
readonly findAll: ({ page, pageSize }?: {
|
3
|
+
page?: number;
|
4
|
+
pageSize?: number;
|
5
|
+
}) => {
|
6
|
+
url: string;
|
7
|
+
method: string;
|
8
|
+
params: {
|
9
|
+
_pageSize: number;
|
10
|
+
_page: number;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
readonly findByPriceListId: ({ productPriceID }: {
|
14
|
+
productPriceID: string;
|
15
|
+
}) => {
|
16
|
+
url: string;
|
17
|
+
method: string;
|
18
|
+
};
|
19
|
+
readonly findByPriceList: ({ priceList, page, pageSize, }: {
|
20
|
+
priceList: string;
|
21
|
+
page?: number;
|
22
|
+
pageSize?: number;
|
23
|
+
}) => {
|
24
|
+
url: string;
|
25
|
+
method: string;
|
26
|
+
params: {
|
27
|
+
_pageSize: number;
|
28
|
+
_page: number;
|
29
|
+
priceList: string;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
readonly findByPriceListVersion: ({ priceListVersionID, page, pageSize, }: {
|
33
|
+
priceListVersionID: string;
|
34
|
+
page?: number;
|
35
|
+
pageSize?: number;
|
36
|
+
}) => {
|
37
|
+
url: string;
|
38
|
+
method: string;
|
39
|
+
params: {
|
40
|
+
_pageSize: number;
|
41
|
+
_page: number;
|
42
|
+
priceListVersionID: string;
|
43
|
+
};
|
44
|
+
};
|
45
|
+
readonly findByStore: ({ store, page, pageSize, }: {
|
46
|
+
store: string;
|
47
|
+
page?: number;
|
48
|
+
pageSize?: number;
|
49
|
+
}) => {
|
50
|
+
url: string;
|
51
|
+
method: string;
|
52
|
+
params: {
|
53
|
+
_pageSize: number;
|
54
|
+
_page: number;
|
55
|
+
store: string;
|
56
|
+
};
|
57
|
+
};
|
58
|
+
};
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OBProductPriceService = void 0;
|
4
|
+
exports.OBProductPriceService = {
|
5
|
+
findAll: ({ page, pageSize } = {}) => ({
|
6
|
+
url: `/ws/org.openbravo.api.ExportService/ProductPrice`,
|
7
|
+
method: 'GET',
|
8
|
+
params: {
|
9
|
+
...(page && { _page: page }),
|
10
|
+
...(pageSize && { _pageSize: pageSize }),
|
11
|
+
},
|
12
|
+
}),
|
13
|
+
findByPriceListId: ({ productPriceID }) => ({
|
14
|
+
url: `/ws/org.openbravo.api.ExportService/ProductPrice/${productPriceID}`,
|
15
|
+
method: 'GET',
|
16
|
+
}),
|
17
|
+
findByPriceList: ({ priceList, page, pageSize, }) => ({
|
18
|
+
url: `/ws/org.openbravo.api.ExportService/ProductPrice/byPriceList`,
|
19
|
+
method: 'GET',
|
20
|
+
params: {
|
21
|
+
priceList,
|
22
|
+
...(page && { _page: page }),
|
23
|
+
...(pageSize && { _pageSize: pageSize }),
|
24
|
+
},
|
25
|
+
}),
|
26
|
+
findByPriceListVersion: ({ priceListVersionID, page, pageSize, }) => ({
|
27
|
+
url: `/ws/org.openbravo.api.ExportService/ProductPrice/byPriceListVersion`,
|
28
|
+
method: 'GET',
|
29
|
+
params: {
|
30
|
+
priceListVersionID,
|
31
|
+
...(page && { _page: page }),
|
32
|
+
...(pageSize && { _pageSize: pageSize }),
|
33
|
+
},
|
34
|
+
}),
|
35
|
+
findByStore: ({ store, page, pageSize, }) => ({
|
36
|
+
url: `/ws/org.openbravo.api.ExportService/ProductPrice/byStore`,
|
37
|
+
method: 'GET',
|
38
|
+
params: {
|
39
|
+
store,
|
40
|
+
...(page && { _page: page }),
|
41
|
+
...(pageSize && { _pageSize: pageSize }),
|
42
|
+
},
|
43
|
+
}),
|
44
|
+
};
|
45
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/productPrice/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,KAA2C,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3E,GAAG,EAAE,kDAAkD;QACvD,MAAM,EAAE,KAAK;QACb,MAAM,EAAE;YACN,GAAG,CAAC,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;YAC5B,GAAG,CAAC,QAAQ,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;SACzC;KACF,CAAC;IACF,iBAAiB,EAAE,CAAC,EAAE,cAAc,EAA8B,EAAE,EAAE,CAAC,CAAC;QACtE,GAAG,EAAE,oDAAoD,cAAc,EAAE;QACzE,MAAM,EAAE,KAAK;KACd,CAAC;IACF,eAAe,EAAE,CAAC,EAChB,SAAS,EACT,IAAI,EACJ,QAAQ,GAKT,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,8DAA8D;QACnE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE;YACN,SAAS;YACT,GAAG,CAAC,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;YAC5B,GAAG,CAAC,QAAQ,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;SACzC;KACF,CAAC;IACF,sBAAsB,EAAE,CAAC,EACvB,kBAAkB,EAClB,IAAI,EACJ,QAAQ,GAKT,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,qEAAqE;QAC1E,MAAM,EAAE,KAAK;QACb,MAAM,EAAE;YACN,kBAAkB;YAClB,GAAG,CAAC,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;YAC5B,GAAG,CAAC,QAAQ,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;SACzC;KACF,CAAC;IACF,WAAW,EAAE,CAAC,EACZ,KAAK,EACL,IAAI,EACJ,QAAQ,GAKT,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,0DAA0D;QAC/D,MAAM,EAAE,KAAK;QACb,MAAM,EAAE;YACN,KAAK;YACL,GAAG,CAAC,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;YAC5B,GAAG,CAAC,QAAQ,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;SACzC;KACF,CAAC;CACM,CAAC"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
export interface ProductPriceExport {
|
2
|
+
product: string;
|
3
|
+
unitPrice: number;
|
4
|
+
listPrice: number;
|
5
|
+
priceLimit: number;
|
6
|
+
cost: number;
|
7
|
+
maxPrice: number;
|
8
|
+
productPriceExceptions: ProductPriceException[];
|
9
|
+
printPriceForTemplates: string;
|
10
|
+
printPriceForWebPos: string;
|
11
|
+
printPriceForProductLabels: string;
|
12
|
+
active: boolean;
|
13
|
+
mappingLabelAttribute1: string;
|
14
|
+
skipApplyPromotion: boolean;
|
15
|
+
mappingLabelAttribute2: string;
|
16
|
+
mappingLabelAttribute3: string;
|
17
|
+
printingLabelAttribute1: string;
|
18
|
+
taxCategory: string;
|
19
|
+
}
|
20
|
+
export interface ProductPriceException {
|
21
|
+
organization: string;
|
22
|
+
validFromDate: string;
|
23
|
+
validToDate: string;
|
24
|
+
unitPrice: number;
|
25
|
+
listPrice: number;
|
26
|
+
reason: string;
|
27
|
+
printPriceForTemplates: string;
|
28
|
+
printPriceForWebPos: string;
|
29
|
+
printPriceForProductLabels: string;
|
30
|
+
mappingLabelAttribute1: string;
|
31
|
+
mappingLabelAttribute2: string;
|
32
|
+
mappingLabelAttribute3: string;
|
33
|
+
PricingProductPriceException: string;
|
34
|
+
active: boolean;
|
35
|
+
}
|
36
|
+
export interface ProductPriceExportLinks {
|
37
|
+
next: string;
|
38
|
+
}
|
39
|
+
export interface ProductPriceResponse {
|
40
|
+
data: ProductPriceExport[];
|
41
|
+
links: ProductPriceExportLinks;
|
42
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"productprice.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/productprice/interfaces/productprice.export.interface.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
export declare const OBPromotionService: {
|
2
|
+
readonly create: ({ promotions }: {
|
3
|
+
promotions: any | any[];
|
4
|
+
}) => {
|
5
|
+
url: string;
|
6
|
+
method: string;
|
7
|
+
data: any[];
|
8
|
+
};
|
9
|
+
readonly findAll: () => {
|
10
|
+
url: string;
|
11
|
+
method: string;
|
12
|
+
};
|
13
|
+
readonly findById: ({ promotionId }: {
|
14
|
+
promotionId: string;
|
15
|
+
}) => {
|
16
|
+
url: string;
|
17
|
+
method: string;
|
18
|
+
};
|
19
|
+
readonly findByCoupons: ({ promotionCoupons }: {
|
20
|
+
promotionCoupons: string;
|
21
|
+
}) => {
|
22
|
+
url: string;
|
23
|
+
method: string;
|
24
|
+
params: {
|
25
|
+
promotionCoupons: string;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
readonly findByIncludedProductCategory: ({ promotionProductCategory, }: {
|
29
|
+
promotionProductCategory: string;
|
30
|
+
}) => {
|
31
|
+
url: string;
|
32
|
+
method: string;
|
33
|
+
params: {
|
34
|
+
promotionProductCategory: string;
|
35
|
+
};
|
36
|
+
};
|
37
|
+
readonly findByIncludedProduct: ({ promotionProduct, }: {
|
38
|
+
promotionProduct: string;
|
39
|
+
}) => {
|
40
|
+
url: string;
|
41
|
+
method: string;
|
42
|
+
params: {
|
43
|
+
promotionProduct: string;
|
44
|
+
};
|
45
|
+
};
|
46
|
+
readonly findByName: ({ promotionName }: {
|
47
|
+
promotionName: string;
|
48
|
+
}) => {
|
49
|
+
url: string;
|
50
|
+
method: string;
|
51
|
+
params: {
|
52
|
+
promotionName: string;
|
53
|
+
};
|
54
|
+
};
|
55
|
+
readonly findByOrg: ({ promotionOrg }: {
|
56
|
+
promotionOrg: string;
|
57
|
+
}) => {
|
58
|
+
url: string;
|
59
|
+
method: string;
|
60
|
+
params: {
|
61
|
+
promotionOrg: string;
|
62
|
+
};
|
63
|
+
};
|
64
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OBPromotionService = void 0;
|
4
|
+
exports.OBPromotionService = {
|
5
|
+
create: ({ promotions }) => ({
|
6
|
+
url: `/ws/org.openbravo.api.ImportService/Promotion`,
|
7
|
+
method: 'POST',
|
8
|
+
data: Array.isArray(promotions) ? promotions : [promotions],
|
9
|
+
}),
|
10
|
+
findAll: () => ({
|
11
|
+
url: `/ws/org.openbravo.api.ExportService/PriceList`,
|
12
|
+
method: 'GET',
|
13
|
+
}),
|
14
|
+
findById: ({ promotionId }) => ({
|
15
|
+
url: `/ws/org.openbravo.api.ExportService/PriceList/${promotionId}`,
|
16
|
+
method: 'GET',
|
17
|
+
}),
|
18
|
+
findByCoupons: ({ promotionCoupons }) => ({
|
19
|
+
url: `/ws/org.openbravo.api.ExportService/PriceList/byName`,
|
20
|
+
method: 'GET',
|
21
|
+
params: { promotionCoupons },
|
22
|
+
}),
|
23
|
+
findByIncludedProductCategory: ({ promotionProductCategory, }) => ({
|
24
|
+
url: `/ws/org.openbravo.api.ExportService/PriceList/byOrg`,
|
25
|
+
method: 'GET',
|
26
|
+
params: { promotionProductCategory },
|
27
|
+
}),
|
28
|
+
findByIncludedProduct: ({ promotionProduct, }) => ({
|
29
|
+
url: `/ws/org.openbravo.api.ExportService/PriceList/byStore`,
|
30
|
+
method: 'GET',
|
31
|
+
params: { promotionProduct },
|
32
|
+
}),
|
33
|
+
findByName: ({ promotionName }) => ({
|
34
|
+
url: `/ws/org.openbravo.api.ExportService/PriceList/byStore`,
|
35
|
+
method: 'GET',
|
36
|
+
params: { promotionName },
|
37
|
+
}),
|
38
|
+
findByOrg: ({ promotionOrg }) => ({
|
39
|
+
url: `/ws/org.openbravo.api.ExportService/PriceList/byStore`,
|
40
|
+
method: 'GET',
|
41
|
+
params: { promotionOrg },
|
42
|
+
}),
|
43
|
+
};
|
44
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/promotion/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,CAAC,EAAE,UAAU,EAA+B,EAAE,EAAE,CAAC,CAAC;QACxD,GAAG,EAAE,+CAA+C;QACpD,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;KAC5D,CAAC;IACF,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;QACd,GAAG,EAAE,+CAA+C;QACpD,MAAM,EAAE,KAAK;KACd,CAAC;IACF,QAAQ,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QACvD,GAAG,EAAE,iDAAiD,WAAW,EAAE;QACnE,MAAM,EAAE,KAAK;KACd,CAAC;IACF,aAAa,EAAE,CAAC,EAAE,gBAAgB,EAAgC,EAAE,EAAE,CAAC,CAAC;QACtE,GAAG,EAAE,sDAAsD;QAC3D,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,gBAAgB,EAAE;KAC7B,CAAC;IACF,6BAA6B,EAAE,CAAC,EAC9B,wBAAwB,GAGzB,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,qDAAqD;QAC1D,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,wBAAwB,EAAE;KACrC,CAAC;IACF,qBAAqB,EAAE,CAAC,EACtB,gBAAgB,GAGjB,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,uDAAuD;QAC5D,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,gBAAgB,EAAE;KAC7B,CAAC;IACF,UAAU,EAAE,CAAC,EAAE,aAAa,EAA6B,EAAE,EAAE,CAAC,CAAC;QAC7D,GAAG,EAAE,uDAAuD;QAC5D,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,aAAa,EAAE;KAC1B,CAAC;IACF,SAAS,EAAE,CAAC,EAAE,YAAY,EAA4B,EAAE,EAAE,CAAC,CAAC;QAC1D,GAAG,EAAE,uDAAuD;QAC5D,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,YAAY,EAAE;KACzB,CAAC;CACM,CAAC"}
|