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,393 @@
|
|
1
|
+
import { ProductExport } from './product/interfaces/product.export.interface';
|
2
|
+
import { PromotionExport } from './promotion/interfaces/promotion.export.interface';
|
3
|
+
import { ProductCategoryExport } from './productCategory/interfaces/productCategory.export.interface';
|
4
|
+
import { ProductCharacteristicExport } from './productCharacteristic/interfaces/productCharacteristic.export.interface';
|
5
|
+
import { ProductMediaExport } from './productMedia/interfaces/productMedia.export.interface';
|
6
|
+
import { BusinessPartnerExport } from './businessPartner/interfaces/businesspartner.export.interface';
|
7
|
+
import { BusinessPartnerImport } from './businessPartner/interfaces/businesspartner.import.interface';
|
8
|
+
import { OrganizationExport } from './organization/interfaces/Organization.export.interface';
|
9
|
+
import { PriceListExport } from './priceList/interfaces/priceList.export.interface';
|
10
|
+
import { OrderExport } from './order/interfaces/order.export.interface';
|
11
|
+
import { OrderImport } from './order/interfaces/order.import.interface';
|
12
|
+
import { StockExport } from './stock/interfaces/stock.export.interface';
|
13
|
+
import { ProductPriceExport } from './productPrice/interfaces/productPrice.export.interface';
|
14
|
+
import { InventoryExport } from './inventory/interfaces/inventory.export.interface';
|
15
|
+
import { GoodsMovementExport } from './goodsMovement/interfaces/goodsMovement.export.interface';
|
16
|
+
import { DistributionOrderExport } from './distributionOrder/interfaces/distributionOrder.export.interface';
|
17
|
+
import { StockTransactionExport } from './stockTransaction/interfaces/stockTransaction.export.interface';
|
18
|
+
export type OBConfig = {
|
19
|
+
url: string;
|
20
|
+
user_name: string;
|
21
|
+
password: string;
|
22
|
+
};
|
23
|
+
export declare class OpenBravo {
|
24
|
+
private base_url;
|
25
|
+
private user_name;
|
26
|
+
private password;
|
27
|
+
constructor({ url, user_name, password }: OBConfig);
|
28
|
+
call<T>({ url, method, params, data, }: {
|
29
|
+
url: string;
|
30
|
+
method: string;
|
31
|
+
params?: any;
|
32
|
+
data?: any;
|
33
|
+
}): Promise<T>;
|
34
|
+
get goodsMovement(): {
|
35
|
+
create: ({ goodsMovements }: {
|
36
|
+
goodsMovements: any;
|
37
|
+
}) => Promise<GoodsMovementExport>;
|
38
|
+
findById: ({ goodsMovementId }: {
|
39
|
+
goodsMovementId: string;
|
40
|
+
}) => Promise<GoodsMovementExport>;
|
41
|
+
findByDocumentNo: ({ documentNo }: {
|
42
|
+
documentNo: string;
|
43
|
+
}) => Promise<GoodsMovementExport>;
|
44
|
+
findByOrganizationDateRange: ({ org, dateFrom, dateTo, page, }: {
|
45
|
+
org: string;
|
46
|
+
dateFrom: string;
|
47
|
+
dateTo: string;
|
48
|
+
page?: number;
|
49
|
+
}) => Promise<GoodsMovementExport>;
|
50
|
+
findAll: () => Promise<any>;
|
51
|
+
};
|
52
|
+
get inventory(): {
|
53
|
+
create: ({ inventories }: {
|
54
|
+
inventories: any;
|
55
|
+
}) => Promise<InventoryExport[]>;
|
56
|
+
findById: ({ inventoryId }: {
|
57
|
+
inventoryId: string;
|
58
|
+
}) => Promise<InventoryExport>;
|
59
|
+
findByDocumentNo: ({ documentNo }: {
|
60
|
+
documentNo: string;
|
61
|
+
}) => Promise<InventoryExport>;
|
62
|
+
findByWarehouseDateRange: ({ warehouse, dateFrom, dateTo, page, }: {
|
63
|
+
warehouse: string;
|
64
|
+
dateFrom: string;
|
65
|
+
dateTo: string;
|
66
|
+
page?: number;
|
67
|
+
}) => Promise<InventoryExport>;
|
68
|
+
findAll: () => Promise<InventoryExport>;
|
69
|
+
};
|
70
|
+
get product(): {
|
71
|
+
create: ({ products }: {
|
72
|
+
products: any;
|
73
|
+
}) => Promise<ProductExport[]>;
|
74
|
+
findByUPC: ({ productUPC, page, pageSize, }: {
|
75
|
+
productUPC: string;
|
76
|
+
page?: number;
|
77
|
+
pageSize?: number;
|
78
|
+
}) => Promise<ProductExport[]>;
|
79
|
+
findByMultiUPC: ({ productUPC, page, pageSize, }: {
|
80
|
+
productUPC: string;
|
81
|
+
page?: number;
|
82
|
+
pageSize?: number;
|
83
|
+
}) => Promise<ProductExport[]>;
|
84
|
+
findByStore: ({ productStore, page, pageSize, }: {
|
85
|
+
productStore: string;
|
86
|
+
page?: number;
|
87
|
+
pageSize?: number;
|
88
|
+
}) => Promise<ProductExport[]>;
|
89
|
+
findBySearchKey: ({ productSearchKey, page, pageSize, }: {
|
90
|
+
productSearchKey: string;
|
91
|
+
page?: number;
|
92
|
+
pageSize?: number;
|
93
|
+
}) => Promise<ProductExport[]>;
|
94
|
+
findByRelatedProductCategory: ({ productRelatedProductCategory, page, pageSize, }: {
|
95
|
+
productRelatedProductCategory: string;
|
96
|
+
page?: number;
|
97
|
+
pageSize?: number;
|
98
|
+
}) => Promise<ProductExport[]>;
|
99
|
+
findByRelatedProduct: ({ productRelatedProduct, page, pageSize, }: {
|
100
|
+
productRelatedProduct: string;
|
101
|
+
page?: number;
|
102
|
+
pageSize?: number;
|
103
|
+
}) => Promise<ProductExport[]>;
|
104
|
+
findByRelatableProduct: ({ productRelatableProduct, page, pageSize, }: {
|
105
|
+
productRelatableProduct: string;
|
106
|
+
page?: number;
|
107
|
+
pageSize?: number;
|
108
|
+
}) => Promise<ProductExport[]>;
|
109
|
+
findByProductCategory: ({ productProductCategory, page, pageSize, }: {
|
110
|
+
productProductCategory: string;
|
111
|
+
page?: number;
|
112
|
+
pageSize?: number;
|
113
|
+
}) => Promise<ProductExport[]>;
|
114
|
+
findByName: ({ productName, page, pageSize, }: {
|
115
|
+
productName: string;
|
116
|
+
page?: number;
|
117
|
+
pageSize?: number;
|
118
|
+
}) => Promise<ProductExport[]>;
|
119
|
+
findByOrg: ({ productOrg, page, pageSize, }: {
|
120
|
+
productOrg: string;
|
121
|
+
page?: number;
|
122
|
+
pageSize?: number;
|
123
|
+
}) => Promise<ProductExport[]>;
|
124
|
+
findByAssortment: ({ productAssortment, page, pageSize, }: {
|
125
|
+
productAssortment: string;
|
126
|
+
page?: number;
|
127
|
+
pageSize?: number;
|
128
|
+
}) => Promise<ProductExport[]>;
|
129
|
+
findById: ({ productId }: {
|
130
|
+
productId: string;
|
131
|
+
}) => Promise<ProductExport[]>;
|
132
|
+
findAll: ({ page, pageSize, }?: {
|
133
|
+
page?: number;
|
134
|
+
pageSize?: number;
|
135
|
+
}) => Promise<ProductExport[]>;
|
136
|
+
};
|
137
|
+
get priceList(): {
|
138
|
+
create: ({ priceLists }: {
|
139
|
+
priceLists: any | any[];
|
140
|
+
}) => Promise<PriceListExport[]>;
|
141
|
+
findAll: () => Promise<PriceListExport[]>;
|
142
|
+
findByPriceListId: ({ priceListId }: {
|
143
|
+
priceListId: string;
|
144
|
+
}) => Promise<PriceListExport[]>;
|
145
|
+
findByName: ({ priceListName }: {
|
146
|
+
priceListName: string;
|
147
|
+
}) => Promise<PriceListExport[]>;
|
148
|
+
findByOrg: ({ priceListOrg }: {
|
149
|
+
priceListOrg: string;
|
150
|
+
}) => Promise<PriceListExport[]>;
|
151
|
+
findByStore: ({ priceListStore }: {
|
152
|
+
priceListStore: string;
|
153
|
+
}) => Promise<PriceListExport[]>;
|
154
|
+
};
|
155
|
+
get promotion(): {
|
156
|
+
create: ({ promotions }: {
|
157
|
+
promotions: any | any[];
|
158
|
+
}) => Promise<PromotionExport[]>;
|
159
|
+
findByOrg: ({ promotionOrg }: {
|
160
|
+
promotionOrg: string;
|
161
|
+
}) => Promise<PromotionExport[]>;
|
162
|
+
findByName: ({ promotionName }: {
|
163
|
+
promotionName: string;
|
164
|
+
}) => Promise<PromotionExport[]>;
|
165
|
+
findByIncludedProduct: ({ promotionProduct, }: {
|
166
|
+
promotionProduct: string;
|
167
|
+
}) => Promise<PromotionExport[]>;
|
168
|
+
findByIncludedProductCategory: ({ promotionProductCategory, }: {
|
169
|
+
promotionProductCategory: string;
|
170
|
+
}) => Promise<PromotionExport[]>;
|
171
|
+
findByCoupons: ({ promotionCoupons, }: {
|
172
|
+
promotionCoupons: string;
|
173
|
+
}) => Promise<PromotionExport[]>;
|
174
|
+
findById: ({ promotionId }: {
|
175
|
+
promotionId: string;
|
176
|
+
}) => Promise<PromotionExport[]>;
|
177
|
+
findAll: () => Promise<PromotionExport[]>;
|
178
|
+
};
|
179
|
+
get productCharacteristic(): {
|
180
|
+
findAll: () => Promise<ProductCharacteristicExport[]>;
|
181
|
+
findById: ({ productCharacteristicID, }: {
|
182
|
+
productCharacteristicID: string;
|
183
|
+
}) => Promise<ProductCharacteristicExport[]>;
|
184
|
+
findByName: ({ name }: {
|
185
|
+
name: string;
|
186
|
+
}) => Promise<ProductCharacteristicExport[]>;
|
187
|
+
findByOrg: ({ organization }: {
|
188
|
+
organization: string;
|
189
|
+
}) => Promise<ProductCharacteristicExport[]>;
|
190
|
+
create: ({ productCharacteristics, }: {
|
191
|
+
productCharacteristics: any | any[];
|
192
|
+
}) => Promise<ProductCharacteristicExport[]>;
|
193
|
+
};
|
194
|
+
get productCategory(): {
|
195
|
+
findAll: () => Promise<ProductCategoryExport[]>;
|
196
|
+
findById: ({ productCategoryId }: {
|
197
|
+
productCategoryId: string;
|
198
|
+
}) => Promise<ProductCategoryExport[]>;
|
199
|
+
findByName: ({ name }: {
|
200
|
+
name: string;
|
201
|
+
}) => Promise<ProductCategoryExport[]>;
|
202
|
+
findByOrg: ({ organization }: {
|
203
|
+
organization: string;
|
204
|
+
}) => Promise<ProductCategoryExport[]>;
|
205
|
+
findBySearchKey: ({ searchKey }: {
|
206
|
+
searchKey: string;
|
207
|
+
}) => Promise<ProductCategoryExport[]>;
|
208
|
+
findByStore: ({ store }: {
|
209
|
+
store: string;
|
210
|
+
}) => Promise<ProductCategoryExport[]>;
|
211
|
+
create: ({ productCategories }: {
|
212
|
+
productCategories: any | any[];
|
213
|
+
}) => Promise<ProductCategoryExport[]>;
|
214
|
+
};
|
215
|
+
get organization(): {
|
216
|
+
findAll: () => Promise<unknown>;
|
217
|
+
findByOrganizationId: ({ organizationId, }: {
|
218
|
+
organizationId: string;
|
219
|
+
}) => Promise<OrganizationExport[]>;
|
220
|
+
};
|
221
|
+
get productMedia(): {
|
222
|
+
findByProductSearchKey: ({ productSearchKey, }: {
|
223
|
+
productSearchKey: string;
|
224
|
+
}) => Promise<ProductMediaExport[]>;
|
225
|
+
};
|
226
|
+
get order(): {
|
227
|
+
create: ({ order }: {
|
228
|
+
order: any;
|
229
|
+
}) => Promise<OrderImport[]>;
|
230
|
+
findAll: () => Promise<OrderExport[]>;
|
231
|
+
findById: ({ orderId }: {
|
232
|
+
orderId: string;
|
233
|
+
}) => Promise<OrderExport[]>;
|
234
|
+
findByDocumentNo: ({ documentNo }: {
|
235
|
+
documentNo: string;
|
236
|
+
}) => Promise<OrderExport[]>;
|
237
|
+
findByDocumentNumbers: ({ documentNumbers, }: {
|
238
|
+
documentNumbers: string[];
|
239
|
+
}) => Promise<OrderExport[]>;
|
240
|
+
findByIncludedOrders: ({ includedOrders, }: {
|
241
|
+
includedOrders: string[];
|
242
|
+
}) => Promise<OrderExport[]>;
|
243
|
+
findByOrgOrderDate: ({ organization, orderDate, }: {
|
244
|
+
organization: string;
|
245
|
+
orderDate: string;
|
246
|
+
}) => Promise<OrderExport[]>;
|
247
|
+
findByOrgOrderDateRange: ({ organization, dateTo, dateFrom, }: {
|
248
|
+
organization: string;
|
249
|
+
dateTo: string;
|
250
|
+
dateFrom: string;
|
251
|
+
}) => Promise<OrderExport[]>;
|
252
|
+
};
|
253
|
+
get businessPartner(): {
|
254
|
+
create: ({ businessPartners }: {
|
255
|
+
businessPartners: any | any[];
|
256
|
+
}) => Promise<BusinessPartnerImport[]>;
|
257
|
+
findAll: () => Promise<BusinessPartnerExport[]>;
|
258
|
+
findById: ({ businessPartnerID }: {
|
259
|
+
businessPartnerID: string;
|
260
|
+
}) => Promise<BusinessPartnerExport[]>;
|
261
|
+
findByCategory: ({ businessPartnerCategory, }: {
|
262
|
+
businessPartnerCategory: string;
|
263
|
+
}) => Promise<BusinessPartnerExport[]>;
|
264
|
+
findByCard: ({ businessPartnerCard, }: {
|
265
|
+
businessPartnerCard: string;
|
266
|
+
}) => Promise<BusinessPartnerExport[]>;
|
267
|
+
findByEmail: ({ businessPartnerEmail, }: {
|
268
|
+
businessPartnerEmail: string;
|
269
|
+
}) => Promise<BusinessPartnerExport[]>;
|
270
|
+
findByMemberId: ({ businessPartnerMemberId, }: {
|
271
|
+
businessPartnerMemberId: string;
|
272
|
+
}) => Promise<BusinessPartnerExport[]>;
|
273
|
+
findByName: ({ businessPartnerName, }: {
|
274
|
+
businessPartnerName: string;
|
275
|
+
}) => Promise<BusinessPartnerExport[]>;
|
276
|
+
findByOrg: ({ businessPartnerOrg, }: {
|
277
|
+
businessPartnerOrg: string;
|
278
|
+
}) => Promise<BusinessPartnerExport[]>;
|
279
|
+
findBySearchKey: ({ businessPartnerSearchKey, }: {
|
280
|
+
businessPartnerSearchKey: string;
|
281
|
+
}) => Promise<BusinessPartnerExport[]>;
|
282
|
+
findByStore: ({ businessPartnerStore, }: {
|
283
|
+
businessPartnerStore: string;
|
284
|
+
}) => Promise<BusinessPartnerExport[]>;
|
285
|
+
};
|
286
|
+
get stock(): {
|
287
|
+
findAll: () => Promise<StockExport[]>;
|
288
|
+
findByStockId: ({ stockID }: {
|
289
|
+
stockID: string;
|
290
|
+
}) => Promise<StockExport[]>;
|
291
|
+
findByWarehouse: ({ warehouse }: {
|
292
|
+
warehouse: string;
|
293
|
+
}) => Promise<StockExport[]>;
|
294
|
+
findByProduct: ({ product }: {
|
295
|
+
product: string;
|
296
|
+
}) => Promise<StockExport[]>;
|
297
|
+
findByBin: ({ bin }: {
|
298
|
+
bin: string;
|
299
|
+
}) => Promise<StockExport[]>;
|
300
|
+
findByWarehouseBinProduct: ({ warehouse, bin, product, }: {
|
301
|
+
warehouse: string;
|
302
|
+
bin: string;
|
303
|
+
product: string;
|
304
|
+
}) => Promise<StockExport[]>;
|
305
|
+
findByWarehouseProduct: ({ warehouse, product, }: {
|
306
|
+
warehouse: string;
|
307
|
+
product: string;
|
308
|
+
}) => Promise<StockExport[]>;
|
309
|
+
};
|
310
|
+
get productPrice(): {
|
311
|
+
findAll: ({ page, pageSize, }?: {
|
312
|
+
page?: number;
|
313
|
+
pageSize?: number;
|
314
|
+
}) => Promise<ProductPriceExport[]>;
|
315
|
+
findByPriceListId: ({ productPriceID, }: {
|
316
|
+
productPriceID: string;
|
317
|
+
}) => Promise<ProductPriceExport[]>;
|
318
|
+
findByPriceList: ({ priceList, page, pageSize, }: {
|
319
|
+
priceList: string;
|
320
|
+
page?: number;
|
321
|
+
pageSize?: number;
|
322
|
+
}) => Promise<ProductPriceExport[]>;
|
323
|
+
findByPriceListVersion: ({ priceListVersionID, page, pageSize, }: {
|
324
|
+
priceListVersionID: string;
|
325
|
+
page?: number;
|
326
|
+
pageSize?: number;
|
327
|
+
}) => Promise<ProductPriceExport[]>;
|
328
|
+
findByStore: ({ store, page, pageSize, }: {
|
329
|
+
store: string;
|
330
|
+
page?: number;
|
331
|
+
pageSize?: number;
|
332
|
+
}) => Promise<ProductPriceExport[]>;
|
333
|
+
};
|
334
|
+
get distributionOrder(): {
|
335
|
+
create: ({ distributionOrders }: {
|
336
|
+
distributionOrders: any;
|
337
|
+
}) => Promise<DistributionOrderExport[]>;
|
338
|
+
findAll: () => Promise<DistributionOrderExport[]>;
|
339
|
+
findById: ({ distributionOrderID, }: {
|
340
|
+
distributionOrderID: string;
|
341
|
+
}) => Promise<DistributionOrderExport[]>;
|
342
|
+
findByDocumentNoAndIsIssue: ({ documentNo, isIssue, }: {
|
343
|
+
documentNo: string;
|
344
|
+
isIssue: boolean;
|
345
|
+
}) => Promise<DistributionOrderExport[]>;
|
346
|
+
};
|
347
|
+
get stockTransaction(): {
|
348
|
+
findAll: () => Promise<StockTransactionExport[]>;
|
349
|
+
findById: ({ stockTransactionID, }: {
|
350
|
+
stockTransactionID: string;
|
351
|
+
}) => Promise<StockTransactionExport[]>;
|
352
|
+
findByBomMovement: ({ lastUpdated }: {
|
353
|
+
lastUpdated: string;
|
354
|
+
}) => Promise<StockTransactionExport[]>;
|
355
|
+
findByCustomer: ({ lastUpdated }: {
|
356
|
+
lastUpdated: string;
|
357
|
+
}) => Promise<StockTransactionExport[]>;
|
358
|
+
findByCustomerAWO: ({ lastUpdated }: {
|
359
|
+
lastUpdated: string;
|
360
|
+
}) => Promise<StockTransactionExport[]>;
|
361
|
+
findByGoodsMovement: ({ lastUpdated }: {
|
362
|
+
lastUpdated: string;
|
363
|
+
}) => Promise<StockTransactionExport[]>;
|
364
|
+
findByGoodsMovementAWO: ({ lastUpdated, }: {
|
365
|
+
lastUpdated: string;
|
366
|
+
}) => Promise<StockTransactionExport[]>;
|
367
|
+
findByInventory: ({ lastUpdated }: {
|
368
|
+
lastUpdated: string;
|
369
|
+
}) => Promise<StockTransactionExport[]>;
|
370
|
+
findByInventoryAWO: ({ lastUpdated }: {
|
371
|
+
lastUpdated: string;
|
372
|
+
}) => Promise<StockTransactionExport[]>;
|
373
|
+
findByVendor: ({ lastUpdated }: {
|
374
|
+
lastUpdated: string;
|
375
|
+
}) => Promise<StockTransactionExport[]>;
|
376
|
+
findByVendorAWO: ({ lastUpdated }: {
|
377
|
+
lastUpdated: string;
|
378
|
+
}) => Promise<StockTransactionExport[]>;
|
379
|
+
findLinkedToDO: ({ lastUpdated }: {
|
380
|
+
lastUpdated: string;
|
381
|
+
}) => Promise<StockTransactionExport[]>;
|
382
|
+
findNotLinkedToDO: ({ lastUpdated }: {
|
383
|
+
lastUpdated: string;
|
384
|
+
}) => Promise<StockTransactionExport[]>;
|
385
|
+
};
|
386
|
+
get config(): {
|
387
|
+
url: string;
|
388
|
+
user_name: string;
|
389
|
+
password: string;
|
390
|
+
success: boolean;
|
391
|
+
uuid: string;
|
392
|
+
};
|
393
|
+
}
|