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,171 @@
|
|
1
|
+
import { OrganizationInfo } from '../../types';
|
2
|
+
export interface PromotionExport {
|
3
|
+
id: string;
|
4
|
+
client: string;
|
5
|
+
organization_info: Partial<OrganizationInfo>;
|
6
|
+
organization: string;
|
7
|
+
name: string;
|
8
|
+
printedName: string;
|
9
|
+
priority: string;
|
10
|
+
discountAmount: string;
|
11
|
+
discountPercentage: string;
|
12
|
+
fixedPrice: number;
|
13
|
+
startingDate: string;
|
14
|
+
endingDate: string;
|
15
|
+
includedBusinessPartners: string;
|
16
|
+
obcomopPriceRule: string;
|
17
|
+
includedBPCategories: string;
|
18
|
+
includedProducts: string;
|
19
|
+
includedProductCategories: string;
|
20
|
+
includedOrganizations: string;
|
21
|
+
includePriceLists: string;
|
22
|
+
includedCharacteristics: string;
|
23
|
+
includedRoles: string;
|
24
|
+
excludedCharacteristics: string;
|
25
|
+
includedExternalBusinessPartners: string;
|
26
|
+
description: string;
|
27
|
+
minQuantity: number;
|
28
|
+
maxQuantity: number;
|
29
|
+
discountType: string;
|
30
|
+
applyNextDiscount: boolean;
|
31
|
+
priceAdjustmentScope: string;
|
32
|
+
priceAdjustmentType: string;
|
33
|
+
priceAdjustmentAmount: number;
|
34
|
+
priceAdjustmentFixedPrice: number;
|
35
|
+
priceAdjustmentPercentage: number;
|
36
|
+
xUnits: string;
|
37
|
+
yUnits: string;
|
38
|
+
subtype: string;
|
39
|
+
distributeBetweenLines: boolean;
|
40
|
+
currency: string;
|
41
|
+
price: number;
|
42
|
+
comboFixedPrice: number;
|
43
|
+
uPC: string;
|
44
|
+
amount: number;
|
45
|
+
percentage: number;
|
46
|
+
lineFinalAmount: number;
|
47
|
+
approvalRequired: boolean;
|
48
|
+
allowMultipleInstances: boolean;
|
49
|
+
applyAfterAutomaticDiscounts: boolean;
|
50
|
+
allowInNegativeLines: boolean;
|
51
|
+
allowIncreaseLinePrice: boolean;
|
52
|
+
totalReceiptAmount: number;
|
53
|
+
totalDiscountAmount: number;
|
54
|
+
totalPercentageDiscount: number;
|
55
|
+
isCoupon: boolean;
|
56
|
+
buyXGiftYSubtype: string;
|
57
|
+
minX: string;
|
58
|
+
maxX: string;
|
59
|
+
applyOnce: boolean;
|
60
|
+
applicationMethod: string;
|
61
|
+
verifyPriceLimit: boolean;
|
62
|
+
isOTFCoupon: boolean;
|
63
|
+
otfTotalReceipt: number;
|
64
|
+
otfApplyMinCouponAmount: boolean;
|
65
|
+
applyToProductsUpToTheMaxQuantity: boolean;
|
66
|
+
priorityRule: string;
|
67
|
+
applyMinCouponAmount: boolean;
|
68
|
+
organizations: Array<Organization>;
|
69
|
+
priceLists: Array<PriceList>;
|
70
|
+
products: Array<Product>;
|
71
|
+
productCategories: Array<ProductCategory>;
|
72
|
+
incompatibleDiscounts: Array<IncompatibleDiscount>;
|
73
|
+
availability: Array<Availability>;
|
74
|
+
businessPartnerCategories: Array<BusinessPartnerCategory>;
|
75
|
+
businessPartnerSets: Array<BusinessPartnerSet>;
|
76
|
+
characteristics: Array<Characteristic>;
|
77
|
+
crmPropertyConditions: Array<CRMPropertyCondition>;
|
78
|
+
freeProducts: Array<FreeProduct>;
|
79
|
+
comboFamilies: Array<ComboFamily>;
|
80
|
+
priceScales: Array<PriceScale>;
|
81
|
+
loyaltyPrograms: Array<LoyaltyProgram>;
|
82
|
+
searchKey: string;
|
83
|
+
active: boolean;
|
84
|
+
limitInstances: boolean;
|
85
|
+
limitPerOrder: number;
|
86
|
+
limitCriteriaOrder: string;
|
87
|
+
displayInProductCard: boolean;
|
88
|
+
displayInSearchAndBrowse: boolean;
|
89
|
+
displayInTicketLine: boolean;
|
90
|
+
displayInTicketTotal: boolean;
|
91
|
+
displayInTicketTotalApplied: boolean;
|
92
|
+
displayInPrintedProductLabel: boolean;
|
93
|
+
}
|
94
|
+
export interface Organization {
|
95
|
+
organization: string;
|
96
|
+
startingDate: string;
|
97
|
+
endingDate: string;
|
98
|
+
}
|
99
|
+
export interface PriceList {
|
100
|
+
priceList: string;
|
101
|
+
}
|
102
|
+
export interface Product {
|
103
|
+
product: string;
|
104
|
+
isGift: boolean;
|
105
|
+
giftQuantity: string;
|
106
|
+
priceAdjustmentType: string;
|
107
|
+
priceAdjustmentAmount: number;
|
108
|
+
priceAdjustmentFixedPrice: number;
|
109
|
+
priceAdjustmentPercentage: number;
|
110
|
+
startingDate: string;
|
111
|
+
endingDate: string;
|
112
|
+
}
|
113
|
+
export interface ProductCategory {
|
114
|
+
productCategory: string;
|
115
|
+
quantity: string;
|
116
|
+
}
|
117
|
+
export interface IncompatibleDiscount {
|
118
|
+
incompatibleDiscountType: string;
|
119
|
+
incompatibleDiscount: string;
|
120
|
+
}
|
121
|
+
export interface Availability {
|
122
|
+
startingTime: string;
|
123
|
+
endingTime: string;
|
124
|
+
weekDay: string;
|
125
|
+
}
|
126
|
+
export interface BusinessPartnerCategory {
|
127
|
+
businessPartnerCategory: string;
|
128
|
+
}
|
129
|
+
export interface BusinessPartnerSet {
|
130
|
+
businessPartnerSet: string;
|
131
|
+
}
|
132
|
+
export interface Characteristic {
|
133
|
+
characteristic: string;
|
134
|
+
value: string;
|
135
|
+
isIncluded: boolean;
|
136
|
+
quantity: string;
|
137
|
+
}
|
138
|
+
export interface CRMPropertyCondition {
|
139
|
+
crmConnectorConfiguration: string;
|
140
|
+
property: string;
|
141
|
+
comparator: string;
|
142
|
+
dateValue: string;
|
143
|
+
stringValue: string;
|
144
|
+
numericValue: string;
|
145
|
+
propertyOption: string;
|
146
|
+
}
|
147
|
+
export interface FreeProduct {
|
148
|
+
product: string;
|
149
|
+
}
|
150
|
+
export interface ComboFamily {
|
151
|
+
name: string;
|
152
|
+
quantity: string;
|
153
|
+
maxQuantity: string;
|
154
|
+
sequenceNumber: string;
|
155
|
+
fixedPrice: number;
|
156
|
+
percentage: number;
|
157
|
+
fixedDiscount: number;
|
158
|
+
discountType: string;
|
159
|
+
basedOnOriginalPrice: boolean;
|
160
|
+
products: Array<{
|
161
|
+
product: string;
|
162
|
+
}>;
|
163
|
+
}
|
164
|
+
export interface PriceScale {
|
165
|
+
itemNumber: string;
|
166
|
+
percentage: number;
|
167
|
+
}
|
168
|
+
export interface LoyaltyProgram {
|
169
|
+
loyaltyProgram: string;
|
170
|
+
loyaltyCategory: string;
|
171
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"promotion.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/promotion/interfaces/promotion.export.interface.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
export declare const OBStockService: {
|
2
|
+
readonly findAll: () => {
|
3
|
+
url: string;
|
4
|
+
method: string;
|
5
|
+
};
|
6
|
+
readonly findByStockId: ({ stockID }: {
|
7
|
+
stockID: string;
|
8
|
+
}) => {
|
9
|
+
url: string;
|
10
|
+
method: string;
|
11
|
+
};
|
12
|
+
readonly findByWarehouse: ({ warehouse }: {
|
13
|
+
warehouse: string;
|
14
|
+
}) => {
|
15
|
+
url: string;
|
16
|
+
method: string;
|
17
|
+
params: {
|
18
|
+
warehouse: string;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
readonly findByProduct: ({ product }: {
|
22
|
+
product: string;
|
23
|
+
}) => {
|
24
|
+
url: string;
|
25
|
+
method: string;
|
26
|
+
params: {
|
27
|
+
product: string;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
readonly findByBin: ({ bin }: {
|
31
|
+
bin: string;
|
32
|
+
}) => {
|
33
|
+
url: string;
|
34
|
+
method: string;
|
35
|
+
params: {
|
36
|
+
bin: string;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
readonly findByWarehouseBinProduct: ({ warehouse, bin, product, }: {
|
40
|
+
warehouse: string;
|
41
|
+
bin: string;
|
42
|
+
product: string;
|
43
|
+
}) => {
|
44
|
+
url: string;
|
45
|
+
method: string;
|
46
|
+
params: {
|
47
|
+
warehouse: string;
|
48
|
+
bin: string;
|
49
|
+
product: string;
|
50
|
+
};
|
51
|
+
};
|
52
|
+
readonly findByWarehouseProduct: ({ warehouse, product, }: {
|
53
|
+
warehouse: string;
|
54
|
+
product: string;
|
55
|
+
}) => {
|
56
|
+
url: string;
|
57
|
+
method: string;
|
58
|
+
params: {
|
59
|
+
warehouse: string;
|
60
|
+
product: string;
|
61
|
+
};
|
62
|
+
};
|
63
|
+
};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OBStockService = void 0;
|
4
|
+
exports.OBStockService = {
|
5
|
+
findAll: () => ({
|
6
|
+
url: `/ws/org.openbravo.api.ExportService/Stock`,
|
7
|
+
method: 'GET',
|
8
|
+
}),
|
9
|
+
findByStockId: ({ stockID }) => ({
|
10
|
+
url: `/ws/org.openbravo.api.ExportService/Stock/${stockID}`,
|
11
|
+
method: 'GET',
|
12
|
+
}),
|
13
|
+
findByWarehouse: ({ warehouse }) => ({
|
14
|
+
url: `/ws/org.openbravo.api.ExportService/Stock/byWarehouse`,
|
15
|
+
method: 'GET',
|
16
|
+
params: { warehouse },
|
17
|
+
}),
|
18
|
+
findByProduct: ({ product }) => ({
|
19
|
+
url: `/ws/org.openbravo.api.ExportService/Stock/byProduct`,
|
20
|
+
method: 'GET',
|
21
|
+
params: { product },
|
22
|
+
}),
|
23
|
+
findByBin: ({ bin }) => ({
|
24
|
+
url: `/ws/org.openbravo.api.ExportService/Stock/byBin`,
|
25
|
+
method: 'GET',
|
26
|
+
params: { bin },
|
27
|
+
}),
|
28
|
+
findByWarehouseBinProduct: ({ warehouse, bin, product, }) => ({
|
29
|
+
url: `/ws/org.openbravo.api.ExportService/Stock/byWarehouseBinProduct`,
|
30
|
+
method: 'GET',
|
31
|
+
params: { warehouse, bin, product },
|
32
|
+
}),
|
33
|
+
findByWarehouseProduct: ({ warehouse, product, }) => ({
|
34
|
+
url: `/ws/org.openbravo.api.ExportService/Stock/byWarehouseProduct`,
|
35
|
+
method: 'GET',
|
36
|
+
params: { warehouse, product },
|
37
|
+
}),
|
38
|
+
};
|
39
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
export interface StockExport {
|
2
|
+
warehouse: string;
|
3
|
+
product: string;
|
4
|
+
product_info: StockProductInfo;
|
5
|
+
organization: string;
|
6
|
+
attributeSetInstance: string;
|
7
|
+
attributeSetInstance_info: StockAttributeSetInstanceInfo;
|
8
|
+
bin: string;
|
9
|
+
quantityOnHand: number;
|
10
|
+
reservedQty: number;
|
11
|
+
allocatedQuantity: number;
|
12
|
+
UOM: string;
|
13
|
+
handlingUnit: string;
|
14
|
+
handlingUnits: StockHandlingUnit[];
|
15
|
+
}
|
16
|
+
export interface StockProductInfo {
|
17
|
+
searchKey: string;
|
18
|
+
name: string;
|
19
|
+
upcEAN: string;
|
20
|
+
productType: string;
|
21
|
+
id: string;
|
22
|
+
}
|
23
|
+
export interface StockAttributeSetInstanceInfo {
|
24
|
+
description: string;
|
25
|
+
serialNo: string;
|
26
|
+
lot: string;
|
27
|
+
expirationDate: string;
|
28
|
+
id: string;
|
29
|
+
}
|
30
|
+
export interface StockHandlingUnit {
|
31
|
+
searchKey: string;
|
32
|
+
type: string;
|
33
|
+
status: string;
|
34
|
+
parent: string;
|
35
|
+
storageType: string;
|
36
|
+
contents: StockHandlingUnitContent[];
|
37
|
+
handlingUnits: StockSubHandlingUnit[];
|
38
|
+
}
|
39
|
+
export interface StockHandlingUnitContent {
|
40
|
+
product: string;
|
41
|
+
product_info: StockProductInfo;
|
42
|
+
attributeSetInstance: string;
|
43
|
+
attributeSetInstance_info: StockAttributeSetInstanceInfo;
|
44
|
+
quantityOnHand: number;
|
45
|
+
UOM: string;
|
46
|
+
handlingUnit: string;
|
47
|
+
}
|
48
|
+
export interface StockSubHandlingUnit {
|
49
|
+
searchKey: string;
|
50
|
+
type: string;
|
51
|
+
status: string;
|
52
|
+
parent: string;
|
53
|
+
}
|
54
|
+
export interface StockExportLinks {
|
55
|
+
next: string;
|
56
|
+
}
|
57
|
+
export interface StockResponse {
|
58
|
+
data: StockExport[];
|
59
|
+
links: StockExportLinks;
|
60
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stock.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/stock/interfaces/stock.export.interface.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
export declare const OBStockTransactionService: {
|
2
|
+
readonly findAll: () => {
|
3
|
+
url: string;
|
4
|
+
method: string;
|
5
|
+
};
|
6
|
+
readonly findById: ({ stockTransactionID }: {
|
7
|
+
stockTransactionID: string;
|
8
|
+
}) => {
|
9
|
+
url: string;
|
10
|
+
method: string;
|
11
|
+
};
|
12
|
+
readonly findByBomMovement: ({ lastUpdated }: {
|
13
|
+
lastUpdated: string;
|
14
|
+
}) => {
|
15
|
+
url: string;
|
16
|
+
method: string;
|
17
|
+
params: {
|
18
|
+
lastUpdated: string;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
readonly findByCustomer: ({ lastUpdated }: {
|
22
|
+
lastUpdated: string;
|
23
|
+
}) => {
|
24
|
+
url: string;
|
25
|
+
method: string;
|
26
|
+
params: {
|
27
|
+
lastUpdated: string;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
readonly findByCustomerAWO: ({ lastUpdated }: {
|
31
|
+
lastUpdated: string;
|
32
|
+
}) => {
|
33
|
+
url: string;
|
34
|
+
method: string;
|
35
|
+
params: {
|
36
|
+
lastUpdated: string;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
readonly findByGoodsMovement: ({ lastUpdated }: {
|
40
|
+
lastUpdated: string;
|
41
|
+
}) => {
|
42
|
+
url: string;
|
43
|
+
method: string;
|
44
|
+
params: {
|
45
|
+
lastUpdated: string;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
readonly findByGoodsMovementAWO: ({ lastUpdated }: {
|
49
|
+
lastUpdated: string;
|
50
|
+
}) => {
|
51
|
+
url: string;
|
52
|
+
method: string;
|
53
|
+
params: {
|
54
|
+
lastUpdated: string;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
readonly findByInventory: ({ lastUpdated }: {
|
58
|
+
lastUpdated: string;
|
59
|
+
}) => {
|
60
|
+
url: string;
|
61
|
+
method: string;
|
62
|
+
params: {
|
63
|
+
lastUpdated: string;
|
64
|
+
};
|
65
|
+
};
|
66
|
+
readonly findByInventoryAWO: ({ lastUpdated }: {
|
67
|
+
lastUpdated: string;
|
68
|
+
}) => {
|
69
|
+
url: string;
|
70
|
+
method: string;
|
71
|
+
params: {
|
72
|
+
lastUpdated: string;
|
73
|
+
};
|
74
|
+
};
|
75
|
+
readonly findByVendor: ({ lastUpdated }: {
|
76
|
+
lastUpdated: string;
|
77
|
+
}) => {
|
78
|
+
url: string;
|
79
|
+
method: string;
|
80
|
+
params: {
|
81
|
+
lastUpdated: string;
|
82
|
+
};
|
83
|
+
};
|
84
|
+
readonly findByVendorAWO: ({ lastUpdated }: {
|
85
|
+
lastUpdated: string;
|
86
|
+
}) => {
|
87
|
+
url: string;
|
88
|
+
method: string;
|
89
|
+
params: {
|
90
|
+
lastUpdated: string;
|
91
|
+
};
|
92
|
+
};
|
93
|
+
readonly findLinkedToDO: ({ lastUpdated }: {
|
94
|
+
lastUpdated: string;
|
95
|
+
}) => {
|
96
|
+
url: string;
|
97
|
+
method: string;
|
98
|
+
params: {
|
99
|
+
lastUpdated: string;
|
100
|
+
};
|
101
|
+
};
|
102
|
+
readonly findNotLinkedToDO: ({ lastUpdated }: {
|
103
|
+
lastUpdated: string;
|
104
|
+
}) => {
|
105
|
+
url: string;
|
106
|
+
method: string;
|
107
|
+
params: {
|
108
|
+
lastUpdated: string;
|
109
|
+
};
|
110
|
+
};
|
111
|
+
};
|
@@ -0,0 +1,69 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OBStockTransactionService = void 0;
|
4
|
+
exports.OBStockTransactionService = {
|
5
|
+
findAll: () => ({
|
6
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction`,
|
7
|
+
method: 'GET',
|
8
|
+
}),
|
9
|
+
findById: ({ stockTransactionID }) => ({
|
10
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/${stockTransactionID}`,
|
11
|
+
method: 'GET',
|
12
|
+
}),
|
13
|
+
findByBomMovement: ({ lastUpdated }) => ({
|
14
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/byBomMovement`,
|
15
|
+
method: 'GET',
|
16
|
+
params: { lastUpdated },
|
17
|
+
}),
|
18
|
+
findByCustomer: ({ lastUpdated }) => ({
|
19
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/byCustomer`,
|
20
|
+
method: 'GET',
|
21
|
+
params: { lastUpdated },
|
22
|
+
}),
|
23
|
+
findByCustomerAWO: ({ lastUpdated }) => ({
|
24
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/byCustomerAWO`,
|
25
|
+
method: 'GET',
|
26
|
+
params: { lastUpdated },
|
27
|
+
}),
|
28
|
+
findByGoodsMovement: ({ lastUpdated }) => ({
|
29
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/byGoodsMovement`,
|
30
|
+
method: 'GET',
|
31
|
+
params: { lastUpdated },
|
32
|
+
}),
|
33
|
+
findByGoodsMovementAWO: ({ lastUpdated }) => ({
|
34
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/byGoodsMovementAWO`,
|
35
|
+
method: 'GET',
|
36
|
+
params: { lastUpdated },
|
37
|
+
}),
|
38
|
+
findByInventory: ({ lastUpdated }) => ({
|
39
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/byInventory`,
|
40
|
+
method: 'GET',
|
41
|
+
params: { lastUpdated },
|
42
|
+
}),
|
43
|
+
findByInventoryAWO: ({ lastUpdated }) => ({
|
44
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/byInventoryAWO`,
|
45
|
+
method: 'GET',
|
46
|
+
params: { lastUpdated },
|
47
|
+
}),
|
48
|
+
findByVendor: ({ lastUpdated }) => ({
|
49
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/byVendor`,
|
50
|
+
method: 'GET',
|
51
|
+
params: { lastUpdated },
|
52
|
+
}),
|
53
|
+
findByVendorAWO: ({ lastUpdated }) => ({
|
54
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/byVendorAWO`,
|
55
|
+
method: 'GET',
|
56
|
+
params: { lastUpdated },
|
57
|
+
}),
|
58
|
+
findLinkedToDO: ({ lastUpdated }) => ({
|
59
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/linkedToDO`,
|
60
|
+
method: 'GET',
|
61
|
+
params: { lastUpdated },
|
62
|
+
}),
|
63
|
+
findNotLinkedToDO: ({ lastUpdated }) => ({
|
64
|
+
url: `/ws/org.openbravo.api.ExportService/StockTransaction/notLinkedToDO`,
|
65
|
+
method: 'GET',
|
66
|
+
params: { lastUpdated },
|
67
|
+
}),
|
68
|
+
};
|
69
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/stockTransaction/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;IACvC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;QACd,GAAG,EAAE,sDAAsD;QAC3D,MAAM,EAAE,KAAK;KACd,CAAC;IAEF,QAAQ,EAAE,CAAC,EAAE,kBAAkB,EAAkC,EAAE,EAAE,CAAC,CAAC;QACrE,GAAG,EAAE,wDAAwD,kBAAkB,EAAE;QACjF,MAAM,EAAE,KAAK;KACd,CAAC;IAEF,iBAAiB,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QAChE,GAAG,EAAE,oEAAoE;QACzE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,cAAc,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QAC7D,GAAG,EAAE,iEAAiE;QACtE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,iBAAiB,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QAChE,GAAG,EAAE,oEAAoE;QACzE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,mBAAmB,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QAClE,GAAG,EAAE,sEAAsE;QAC3E,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,sBAAsB,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QACrE,GAAG,EAAE,yEAAyE;QAC9E,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,eAAe,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QAC9D,GAAG,EAAE,kEAAkE;QACvE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,kBAAkB,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QACjE,GAAG,EAAE,qEAAqE;QAC1E,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,YAAY,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QAC3D,GAAG,EAAE,+DAA+D;QACpE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,eAAe,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QAC9D,GAAG,EAAE,kEAAkE;QACvE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,cAAc,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QAC7D,GAAG,EAAE,iEAAiE;QACtE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;IAEF,iBAAiB,EAAE,CAAC,EAAE,WAAW,EAA2B,EAAE,EAAE,CAAC,CAAC;QAChE,GAAG,EAAE,oEAAoE;QACzE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,WAAW,EAAE;KACxB,CAAC;CACM,CAAC"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
export interface StockTransactionExport {
|
2
|
+
data: StockTransactionData[];
|
3
|
+
links: {
|
4
|
+
next: string;
|
5
|
+
};
|
6
|
+
}
|
7
|
+
export interface StockTransactionData {
|
8
|
+
id: string;
|
9
|
+
client: string;
|
10
|
+
organization: string;
|
11
|
+
organization_info: StockTransactionOrganizationInfo;
|
12
|
+
movementDate: string;
|
13
|
+
movementType: string;
|
14
|
+
storageDetail: string;
|
15
|
+
product: string;
|
16
|
+
product_info: StockTransactionProductInfo;
|
17
|
+
attributeSetInstance: string;
|
18
|
+
attributeSetInstance_info: StockTransactionAttributeSetInstanceInfo;
|
19
|
+
warehouse: string;
|
20
|
+
bin: string;
|
21
|
+
quantity: number;
|
22
|
+
uOM: string;
|
23
|
+
orderUOM: string;
|
24
|
+
orderQuantity: number;
|
25
|
+
inventoryStatus: string;
|
26
|
+
businessPartner: string;
|
27
|
+
businessPartner_info: StockTransactionBusinessPartnerInfo;
|
28
|
+
goodsShipment: string;
|
29
|
+
goodsReceipt: string;
|
30
|
+
inventoryCount: string;
|
31
|
+
bomProduction: string;
|
32
|
+
distributionOrder: string;
|
33
|
+
}
|
34
|
+
export interface StockTransactionOrganizationInfo {
|
35
|
+
name: string;
|
36
|
+
searchKey: string;
|
37
|
+
groupBusinessUnit: string;
|
38
|
+
id: string;
|
39
|
+
}
|
40
|
+
export interface StockTransactionProductInfo {
|
41
|
+
searchKey: string;
|
42
|
+
name: string;
|
43
|
+
upcEAN: string;
|
44
|
+
productType: string;
|
45
|
+
id: string;
|
46
|
+
}
|
47
|
+
export interface StockTransactionAttributeSetInstanceInfo {
|
48
|
+
description: string;
|
49
|
+
serialNo: string;
|
50
|
+
lot: string;
|
51
|
+
expirationDate: string;
|
52
|
+
id: string;
|
53
|
+
}
|
54
|
+
export interface StockTransactionBusinessPartnerInfo {
|
55
|
+
name: string;
|
56
|
+
searchKey: string;
|
57
|
+
id: string;
|
58
|
+
}
|
package/dist/pos/openbravo/stockTransaction/interfaces/stockTransaction.export.interface.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stockTransaction.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/stockTransaction/interfaces/stockTransaction.export.interface.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export * from './businessPartner/interfaces/businesspartner.export.interface';
|
2
|
+
export * from './order/interfaces/order.export.interface';
|
3
|
+
export * from './organization/interfaces/organization.export.interface';
|
4
|
+
export * from './priceList/interfaces/priceList.export.interface';
|
5
|
+
export * from './product/interfaces/product.export.interface';
|
6
|
+
export * from './productCategory/interfaces/productCategory.export.interface';
|
7
|
+
export * from './productCharacteristic/interfaces/productCharacteristic.export.interface';
|
8
|
+
export * from './productMedia/interfaces/productMedia.export.interface';
|
9
|
+
export * from './promotion/interfaces/promotion.export.interface';
|
10
|
+
export * from './stock/interfaces/stock.export.interface';
|
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';
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./businessPartner/interfaces/businesspartner.export.interface"), exports);
|
18
|
+
__exportStar(require("./order/interfaces/order.export.interface"), exports);
|
19
|
+
__exportStar(require("./organization/interfaces/organization.export.interface"), exports);
|
20
|
+
__exportStar(require("./priceList/interfaces/priceList.export.interface"), exports);
|
21
|
+
__exportStar(require("./product/interfaces/product.export.interface"), exports);
|
22
|
+
__exportStar(require("./productCategory/interfaces/productCategory.export.interface"), exports);
|
23
|
+
__exportStar(require("./productCharacteristic/interfaces/productCharacteristic.export.interface"), exports);
|
24
|
+
__exportStar(require("./productMedia/interfaces/productMedia.export.interface"), exports);
|
25
|
+
__exportStar(require("./promotion/interfaces/promotion.export.interface"), exports);
|
26
|
+
__exportStar(require("./stock/interfaces/stock.export.interface"), exports);
|
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
|
+
//# sourceMappingURL=types.js.map
|
@@ -0,0 +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;AACxE,kGAAgF;AAChF,oGAAkF;AAClF,4FAA0E;AAC1E,oFAAkE"}
|