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.
Files changed (120) hide show
  1. package/README.md +73 -0
  2. package/dist/api.module.d.ts +2 -0
  3. package/dist/api.module.js +17 -0
  4. package/dist/api.module.js.map +1 -0
  5. package/dist/common/interceptors/api.response.interceptor.d.ts +5 -0
  6. package/dist/common/interceptors/api.response.interceptor.js +22 -0
  7. package/dist/common/interceptors/api.response.interceptor.js.map +1 -0
  8. package/dist/common/utils/api.response.formatter.d.ts +11 -0
  9. package/dist/common/utils/api.response.formatter.js +16 -0
  10. package/dist/common/utils/api.response.formatter.js.map +1 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +10 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/pos/openbravo/businessPartner/index.d.ts +91 -0
  15. package/dist/pos/openbravo/businessPartner/index.js +61 -0
  16. package/dist/pos/openbravo/businessPartner/index.js.map +1 -0
  17. package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.export.interface.d.ts +69 -0
  18. package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.export.interface.js +3 -0
  19. package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.export.interface.js.map +1 -0
  20. package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.import.interface.d.ts +63 -0
  21. package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.import.interface.js +3 -0
  22. package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.import.interface.js.map +1 -0
  23. package/dist/pos/openbravo/distributionOrder/index.d.ts +30 -0
  24. package/dist/pos/openbravo/distributionOrder/index.js +26 -0
  25. package/dist/pos/openbravo/distributionOrder/index.js.map +1 -0
  26. package/dist/pos/openbravo/distributionOrder/interfaces/distributionOrder.export.interface.d.ts +60 -0
  27. package/dist/pos/openbravo/distributionOrder/interfaces/distributionOrder.export.interface.js +3 -0
  28. package/dist/pos/openbravo/distributionOrder/interfaces/distributionOrder.export.interface.js.map +1 -0
  29. package/dist/pos/openbravo/goodsMovement/index.d.ts +43 -0
  30. package/dist/pos/openbravo/goodsMovement/index.js +34 -0
  31. package/dist/pos/openbravo/goodsMovement/index.js.map +1 -0
  32. package/dist/pos/openbravo/goodsMovement/interfaces/goodsMovement.export.interface.d.ts +89 -0
  33. package/dist/pos/openbravo/goodsMovement/interfaces/goodsMovement.export.interface.js +3 -0
  34. package/dist/pos/openbravo/goodsMovement/interfaces/goodsMovement.export.interface.js.map +1 -0
  35. package/dist/pos/openbravo/index.d.ts +1 -0
  36. package/dist/pos/openbravo/index.js +18 -0
  37. package/dist/pos/openbravo/index.js.map +1 -0
  38. package/dist/pos/openbravo/inventory/index.d.ts +43 -0
  39. package/dist/pos/openbravo/inventory/index.js +34 -0
  40. package/dist/pos/openbravo/inventory/index.js.map +1 -0
  41. package/dist/pos/openbravo/inventory/interfaces/inventory.export.interface.d.ts +82 -0
  42. package/dist/pos/openbravo/inventory/interfaces/inventory.export.interface.js +3 -0
  43. package/dist/pos/openbravo/inventory/interfaces/inventory.export.interface.js.map +1 -0
  44. package/dist/pos/openbravo/ob.service.d.ts +393 -0
  45. package/dist/pos/openbravo/ob.service.js +312 -0
  46. package/dist/pos/openbravo/ob.service.js.map +1 -0
  47. package/dist/pos/openbravo/order/index.d.ts +70 -0
  48. package/dist/pos/openbravo/order/index.js +44 -0
  49. package/dist/pos/openbravo/order/index.js.map +1 -0
  50. package/dist/pos/openbravo/order/interfaces/order.export.interface.d.ts +162 -0
  51. package/dist/pos/openbravo/order/interfaces/order.export.interface.js +3 -0
  52. package/dist/pos/openbravo/order/interfaces/order.export.interface.js.map +1 -0
  53. package/dist/pos/openbravo/order/interfaces/order.import.interface.d.ts +49 -0
  54. package/dist/pos/openbravo/order/interfaces/order.import.interface.js +3 -0
  55. package/dist/pos/openbravo/order/interfaces/order.import.interface.js.map +1 -0
  56. package/dist/pos/openbravo/organization/index.d.ts +12 -0
  57. package/dist/pos/openbravo/organization/index.js +14 -0
  58. package/dist/pos/openbravo/organization/index.js.map +1 -0
  59. package/dist/pos/openbravo/organization/interfaces/organization.export.interface.d.ts +39 -0
  60. package/dist/pos/openbravo/organization/interfaces/organization.export.interface.js +3 -0
  61. package/dist/pos/openbravo/organization/interfaces/organization.export.interface.js.map +1 -0
  62. package/dist/pos/openbravo/priceList/index.d.ts +46 -0
  63. package/dist/pos/openbravo/priceList/index.js +34 -0
  64. package/dist/pos/openbravo/priceList/index.js.map +1 -0
  65. package/dist/pos/openbravo/priceList/interfaces/priceList.export.interface.d.ts +29 -0
  66. package/dist/pos/openbravo/priceList/interfaces/priceList.export.interface.js +3 -0
  67. package/dist/pos/openbravo/priceList/interfaces/priceList.export.interface.js.map +1 -0
  68. package/dist/pos/openbravo/product/index.d.ts +169 -0
  69. package/dist/pos/openbravo/product/index.js +122 -0
  70. package/dist/pos/openbravo/product/index.js.map +1 -0
  71. package/dist/pos/openbravo/product/interfaces/product.export.interface.d.ts +95 -0
  72. package/dist/pos/openbravo/product/interfaces/product.export.interface.js +3 -0
  73. package/dist/pos/openbravo/product/interfaces/product.export.interface.js.map +1 -0
  74. package/dist/pos/openbravo/productCategory/index.d.ts +55 -0
  75. package/dist/pos/openbravo/productCategory/index.js +41 -0
  76. package/dist/pos/openbravo/productCategory/index.js.map +1 -0
  77. package/dist/pos/openbravo/productCategory/interfaces/productCategory.export.interface.d.ts +26 -0
  78. package/dist/pos/openbravo/productCategory/interfaces/productCategory.export.interface.js +3 -0
  79. package/dist/pos/openbravo/productCategory/interfaces/productCategory.export.interface.js.map +1 -0
  80. package/dist/pos/openbravo/productCharacteristic/index.d.ts +37 -0
  81. package/dist/pos/openbravo/productCharacteristic/index.js +31 -0
  82. package/dist/pos/openbravo/productCharacteristic/index.js.map +1 -0
  83. package/dist/pos/openbravo/productCharacteristic/interfaces/productCharacteristic.export.interface.d.ts +33 -0
  84. package/dist/pos/openbravo/productCharacteristic/interfaces/productCharacteristic.export.interface.js +3 -0
  85. package/dist/pos/openbravo/productCharacteristic/interfaces/productCharacteristic.export.interface.js.map +1 -0
  86. package/dist/pos/openbravo/productMedia/index.d.ts +11 -0
  87. package/dist/pos/openbravo/productMedia/index.js +11 -0
  88. package/dist/pos/openbravo/productMedia/index.js.map +1 -0
  89. package/dist/pos/openbravo/productMedia/interfaces/productMedia.export.interface.d.ts +10 -0
  90. package/dist/pos/openbravo/productMedia/interfaces/productMedia.export.interface.js +3 -0
  91. package/dist/pos/openbravo/productMedia/interfaces/productMedia.export.interface.js.map +1 -0
  92. package/dist/pos/openbravo/productPrice/index.d.ts +58 -0
  93. package/dist/pos/openbravo/productPrice/index.js +45 -0
  94. package/dist/pos/openbravo/productPrice/index.js.map +1 -0
  95. package/dist/pos/openbravo/productPrice/interfaces/productprice.export.interface.d.ts +42 -0
  96. package/dist/pos/openbravo/productPrice/interfaces/productprice.export.interface.js +3 -0
  97. package/dist/pos/openbravo/productPrice/interfaces/productprice.export.interface.js.map +1 -0
  98. package/dist/pos/openbravo/promotion/index.d.ts +64 -0
  99. package/dist/pos/openbravo/promotion/index.js +44 -0
  100. package/dist/pos/openbravo/promotion/index.js.map +1 -0
  101. package/dist/pos/openbravo/promotion/interfaces/promotion.export.interface.d.ts +171 -0
  102. package/dist/pos/openbravo/promotion/interfaces/promotion.export.interface.js +3 -0
  103. package/dist/pos/openbravo/promotion/interfaces/promotion.export.interface.js.map +1 -0
  104. package/dist/pos/openbravo/stock/index.d.ts +63 -0
  105. package/dist/pos/openbravo/stock/index.js +39 -0
  106. package/dist/pos/openbravo/stock/index.js.map +1 -0
  107. package/dist/pos/openbravo/stock/interfaces/stock.export.interface.d.ts +60 -0
  108. package/dist/pos/openbravo/stock/interfaces/stock.export.interface.js +3 -0
  109. package/dist/pos/openbravo/stock/interfaces/stock.export.interface.js.map +1 -0
  110. package/dist/pos/openbravo/stockTransaction/index.d.ts +111 -0
  111. package/dist/pos/openbravo/stockTransaction/index.js +69 -0
  112. package/dist/pos/openbravo/stockTransaction/index.js.map +1 -0
  113. package/dist/pos/openbravo/stockTransaction/interfaces/stockTransaction.export.interface.d.ts +58 -0
  114. package/dist/pos/openbravo/stockTransaction/interfaces/stockTransaction.export.interface.js +3 -0
  115. package/dist/pos/openbravo/stockTransaction/interfaces/stockTransaction.export.interface.js.map +1 -0
  116. package/dist/pos/openbravo/types.d.ts +15 -0
  117. package/dist/pos/openbravo/types.js +32 -0
  118. package/dist/pos/openbravo/types.js.map +1 -0
  119. package/dist/tsconfig.build.tsbuildinfo +1 -0
  120. package/package.json +76 -0
package/README.md ADDED
@@ -0,0 +1,73 @@
1
+ <p align="center">
2
+ <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
3
+ </p>
4
+
5
+ [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
6
+ [circleci-url]: https://circleci.com/gh/nestjs/nest
7
+
8
+ <p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
9
+ <p align="center">
10
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
11
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
12
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
13
+ <a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
14
+ <a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
15
+ <a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
16
+ <a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
17
+ <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
18
+ <a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
19
+ <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
20
+ <a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
21
+ </p>
22
+ <!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
23
+ [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
24
+
25
+ ## Description
26
+
27
+ [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ $ npm install
33
+ ```
34
+
35
+ ## Running the app
36
+
37
+ ```bash
38
+ # development
39
+ $ npm run start
40
+
41
+ # watch mode
42
+ $ npm run start:dev
43
+
44
+ # production mode
45
+ $ npm run start:prod
46
+ ```
47
+
48
+ ## Test
49
+
50
+ ```bash
51
+ # unit tests
52
+ $ npm run test
53
+
54
+ # e2e tests
55
+ $ npm run test:e2e
56
+
57
+ # test coverage
58
+ $ npm run test:cov
59
+ ```
60
+
61
+ ## Support
62
+
63
+ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
64
+
65
+ ## Stay in touch
66
+
67
+ - Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
68
+ - Website - [https://nestjs.com](https://nestjs.com/)
69
+ - Twitter - [@nestframework](https://twitter.com/nestframework)
70
+
71
+ ## License
72
+
73
+ Nest is [MIT licensed](LICENSE).
@@ -0,0 +1,2 @@
1
+ export declare class ApiModule {
2
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ApiModule = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let ApiModule = class ApiModule {
12
+ };
13
+ exports.ApiModule = ApiModule;
14
+ exports.ApiModule = ApiModule = __decorate([
15
+ (0, common_1.Module)({})
16
+ ], ApiModule);
17
+ //# sourceMappingURL=api.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.module.js","sourceRoot":"","sources":["../src/api.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAGjC,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IADrB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,SAAS,CAAG"}
@@ -0,0 +1,5 @@
1
+ import { NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common';
2
+ import { Observable } from 'rxjs';
3
+ export declare class ResponseInterceptor implements NestInterceptor {
4
+ intercept(_: ExecutionContext, next: CallHandler): Observable<any>;
5
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ResponseInterceptor = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ const operators_1 = require("rxjs/operators");
12
+ const api_response_formatter_1 = require("../utils/api.response.formatter");
13
+ let ResponseInterceptor = class ResponseInterceptor {
14
+ intercept(_, next) {
15
+ return next.handle().pipe((0, operators_1.map)((data) => api_response_formatter_1.default.format(data)));
16
+ }
17
+ };
18
+ exports.ResponseInterceptor = ResponseInterceptor;
19
+ exports.ResponseInterceptor = ResponseInterceptor = __decorate([
20
+ (0, common_1.Injectable)()
21
+ ], ResponseInterceptor);
22
+ //# sourceMappingURL=api.response.interceptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.response.interceptor.js","sourceRoot":"","sources":["../../../src/common/interceptors/api.response.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAKwB;AAExB,8CAAqC;AACrC,4EAAgE;AAGzD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,SAAS,CAAC,CAAmB,EAAE,IAAiB;QAC9C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,IAAA,eAAG,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,gCAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC;CACF,CAAA;AAJY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;GACA,mBAAmB,CAI/B"}
@@ -0,0 +1,11 @@
1
+ export default class ResponseFormatter {
2
+ static format<T>(response: T | T[]): {
3
+ total_size: number;
4
+ records: T[];
5
+ record?: undefined;
6
+ } | {
7
+ record: T;
8
+ total_size?: undefined;
9
+ records?: undefined;
10
+ };
11
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class ResponseFormatter {
4
+ static format(response) {
5
+ return Array.isArray(response)
6
+ ? {
7
+ total_size: response.length,
8
+ records: response,
9
+ }
10
+ : {
11
+ record: response,
12
+ };
13
+ }
14
+ }
15
+ exports.default = ResponseFormatter;
16
+ //# sourceMappingURL=api.response.formatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.response.formatter.js","sourceRoot":"","sources":["../../../src/common/utils/api.response.formatter.ts"],"names":[],"mappings":";;AAAA,MAAqB,iBAAiB;IAC7B,MAAM,CAAC,MAAM,CAAI,QAAiB;QACvC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC;YAC5B,CAAC,CAAC;gBACE,UAAU,EAAE,QAAQ,CAAC,MAAM;gBAC3B,OAAO,EAAE,QAAQ;aAClB;YACH,CAAC,CAAC;gBACE,MAAM,EAAE,QAAQ;aACjB,CAAC;IACR,CAAC;CACF;AAXD,oCAWC"}
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@nestjs/core");
4
+ const api_module_1 = require("./api.module");
5
+ async function bootstrap() {
6
+ const app = await core_1.NestFactory.create(api_module_1.ApiModule);
7
+ await app.listen(process.env.PORT ?? 3006);
8
+ }
9
+ bootstrap();
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAC3C,6CAAyC;AAEzC,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,CAAC,CAAC;IAChD,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC;AAC7C,CAAC;AACD,SAAS,EAAE,CAAC"}
@@ -0,0 +1,91 @@
1
+ export declare const OBBusinessPartnerService: {
2
+ readonly create: ({ businessPartners }: {
3
+ businessPartners: 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: ({ businessPartnerID }: {
14
+ businessPartnerID: string;
15
+ }) => {
16
+ url: string;
17
+ method: string;
18
+ };
19
+ readonly findByCategory: ({ businessPartnerCategory, }: {
20
+ businessPartnerCategory: string;
21
+ }) => {
22
+ url: string;
23
+ method: string;
24
+ params: {
25
+ businessPartnerCategory: string;
26
+ };
27
+ };
28
+ readonly findByCard: ({ businessPartnerCard }: {
29
+ businessPartnerCard: string;
30
+ }) => {
31
+ url: string;
32
+ method: string;
33
+ params: {
34
+ businessPartnerCard: string;
35
+ };
36
+ };
37
+ readonly findByEmail: ({ businessPartnerEmail, }: {
38
+ businessPartnerEmail: string;
39
+ }) => {
40
+ url: string;
41
+ method: string;
42
+ params: {
43
+ businessPartnerEmail: string;
44
+ };
45
+ };
46
+ readonly findByMemberId: ({ businessPartnerMemberId, }: {
47
+ businessPartnerMemberId: string;
48
+ }) => {
49
+ url: string;
50
+ method: string;
51
+ params: {
52
+ businessPartnerMemberId: string;
53
+ };
54
+ };
55
+ readonly findByName: ({ businessPartnerName }: {
56
+ businessPartnerName: string;
57
+ }) => {
58
+ url: string;
59
+ method: string;
60
+ params: {
61
+ businessPartnerName: string;
62
+ };
63
+ };
64
+ readonly findByOrg: ({ businessPartnerOrg }: {
65
+ businessPartnerOrg: string;
66
+ }) => {
67
+ url: string;
68
+ method: string;
69
+ params: {
70
+ businessPartnerOrg: string;
71
+ };
72
+ };
73
+ readonly findBySearchKey: ({ businessPartnerSearchKey, }: {
74
+ businessPartnerSearchKey: string;
75
+ }) => {
76
+ url: string;
77
+ method: string;
78
+ params: {
79
+ businessPartnerSearchKey: string;
80
+ };
81
+ };
82
+ readonly findByStore: ({ businessPartnerStore, }: {
83
+ businessPartnerStore: string;
84
+ }) => {
85
+ url: string;
86
+ method: string;
87
+ params: {
88
+ businessPartnerStore: string;
89
+ };
90
+ };
91
+ };
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OBBusinessPartnerService = void 0;
4
+ exports.OBBusinessPartnerService = {
5
+ create: ({ businessPartners }) => ({
6
+ url: `/ws/org.openbravo.api.ImportService/BusinessPartner`,
7
+ method: 'POST',
8
+ data: Array.isArray(businessPartners)
9
+ ? businessPartners
10
+ : [businessPartners],
11
+ }),
12
+ findAll: () => ({
13
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner`,
14
+ method: 'GET',
15
+ }),
16
+ findById: ({ businessPartnerID }) => ({
17
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner/${businessPartnerID}`,
18
+ method: 'GET',
19
+ }),
20
+ findByCategory: ({ businessPartnerCategory, }) => ({
21
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner/byBPartnerCategory`,
22
+ method: 'GET',
23
+ params: { businessPartnerCategory },
24
+ }),
25
+ findByCard: ({ businessPartnerCard }) => ({
26
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner/byCard`,
27
+ method: 'GET',
28
+ params: { businessPartnerCard },
29
+ }),
30
+ findByEmail: ({ businessPartnerEmail, }) => ({
31
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner/byEmail`,
32
+ method: 'GET',
33
+ params: { businessPartnerEmail },
34
+ }),
35
+ findByMemberId: ({ businessPartnerMemberId, }) => ({
36
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner/byMemberID`,
37
+ method: 'GET',
38
+ params: { businessPartnerMemberId },
39
+ }),
40
+ findByName: ({ businessPartnerName }) => ({
41
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner/byName`,
42
+ method: 'GET',
43
+ params: { businessPartnerName },
44
+ }),
45
+ findByOrg: ({ businessPartnerOrg }) => ({
46
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner/byOrg`,
47
+ method: 'GET',
48
+ params: { businessPartnerOrg },
49
+ }),
50
+ findBySearchKey: ({ businessPartnerSearchKey, }) => ({
51
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner/bySearchKey`,
52
+ method: 'GET',
53
+ params: { businessPartnerSearchKey },
54
+ }),
55
+ findByStore: ({ businessPartnerStore, }) => ({
56
+ url: `/ws/org.openbravo.api.ExportService/BusinessPartner/byStore`,
57
+ method: 'GET',
58
+ params: { businessPartnerStore },
59
+ }),
60
+ };
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/businessPartner/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,MAAM,EAAE,CAAC,EAAE,gBAAgB,EAAqC,EAAE,EAAE,CAAC,CAAC;QACpE,GAAG,EAAE,qDAAqD;QAC1D,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC;YACnC,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,CAAC,gBAAgB,CAAC;KACvB,CAAC;IACF,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;QACd,GAAG,EAAE,qDAAqD;QAC1D,MAAM,EAAE,KAAK;KACd,CAAC;IACF,QAAQ,EAAE,CAAC,EAAE,iBAAiB,EAAiC,EAAE,EAAE,CAAC,CAAC;QACnE,GAAG,EAAE,uDAAuD,iBAAiB,EAAE;QAC/E,MAAM,EAAE,KAAK;KACd,CAAC;IACF,cAAc,EAAE,CAAC,EACf,uBAAuB,GAGxB,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,wEAAwE;QAC7E,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,uBAAuB,EAAE;KACpC,CAAC;IACF,UAAU,EAAE,CAAC,EAAE,mBAAmB,EAAmC,EAAE,EAAE,CAAC,CAAC;QACzE,GAAG,EAAE,4DAA4D;QACjE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,mBAAmB,EAAE;KAChC,CAAC;IACF,WAAW,EAAE,CAAC,EACZ,oBAAoB,GAGrB,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,6DAA6D;QAClE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,oBAAoB,EAAE;KACjC,CAAC;IACF,cAAc,EAAE,CAAC,EACf,uBAAuB,GAGxB,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,gEAAgE;QACrE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,uBAAuB,EAAE;KACpC,CAAC;IACF,UAAU,EAAE,CAAC,EAAE,mBAAmB,EAAmC,EAAE,EAAE,CAAC,CAAC;QACzE,GAAG,EAAE,4DAA4D;QACjE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,mBAAmB,EAAE;KAChC,CAAC;IACF,SAAS,EAAE,CAAC,EAAE,kBAAkB,EAAkC,EAAE,EAAE,CAAC,CAAC;QACtE,GAAG,EAAE,2DAA2D;QAChE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,kBAAkB,EAAE;KAC/B,CAAC;IACF,eAAe,EAAE,CAAC,EAChB,wBAAwB,GAGzB,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,iEAAiE;QACtE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,wBAAwB,EAAE;KACrC,CAAC;IACF,WAAW,EAAE,CAAC,EACZ,oBAAoB,GAGrB,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,6DAA6D;QAClE,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,oBAAoB,EAAE;KACjC,CAAC;CACM,CAAC"}
@@ -0,0 +1,69 @@
1
+ export interface BusinessPartnerExport {
2
+ client: string;
3
+ organization_info: {
4
+ name: string;
5
+ searchKey?: string;
6
+ id: string;
7
+ };
8
+ organization: string;
9
+ id: string;
10
+ searchKey: string;
11
+ commercialName: string;
12
+ fiscalName?: string;
13
+ description?: string;
14
+ bpCategory: string;
15
+ taxID?: string;
16
+ language?: string;
17
+ greeting: GreetingExport;
18
+ currency: string;
19
+ birthDay?: string;
20
+ bpTaxCategory: string;
21
+ paymentMethod?: string;
22
+ paymentTerms?: string;
23
+ priceList?: string;
24
+ customerConsent?: string;
25
+ creditLineLimit?: string;
26
+ currentBalance?: string;
27
+ invoiceTerms?: string;
28
+ locations: LocationExport[];
29
+ contactInformation: ContactInfoExport[];
30
+ businessPartnerType: string;
31
+ consentPaperInfo?: string;
32
+ isCustomer: boolean;
33
+ taxCategory: BusinessPartnerTaxCategoryExport;
34
+ goodsReceiptBlocking: boolean;
35
+ paymentOutBlocking: boolean;
36
+ customerBlocking: boolean;
37
+ transactionMinimumAmt?: string;
38
+ }
39
+ export interface GreetingExport {
40
+ description: string;
41
+ name: string;
42
+ title?: string;
43
+ }
44
+ export interface LocationExport {
45
+ description: string;
46
+ address: string;
47
+ city: string;
48
+ zipCode: string;
49
+ country: string;
50
+ region: string;
51
+ name: string;
52
+ shippingAddress: boolean;
53
+ invoiceAddress: boolean;
54
+ }
55
+ export interface ContactInfoExport {
56
+ description: string;
57
+ firstName: string;
58
+ lastName: string;
59
+ phone: string;
60
+ email: string;
61
+ commercialAuthorization: boolean;
62
+ viaSms: boolean;
63
+ viaEmail: boolean;
64
+ active: boolean;
65
+ }
66
+ export interface BusinessPartnerTaxCategoryExport {
67
+ organization: string;
68
+ name: string;
69
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=businesspartner.export.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businesspartner.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/businessPartner/interfaces/businesspartner.export.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,63 @@
1
+ export interface BusinessPartnerImport {
2
+ client: string;
3
+ organization: string;
4
+ searchKey: string;
5
+ commercialName: string;
6
+ fiscalName?: string;
7
+ description?: string;
8
+ bpCategory: string;
9
+ taxID?: string;
10
+ greeting: GreetingImport;
11
+ currency: string;
12
+ birthDay?: string | null;
13
+ birthPlace?: string;
14
+ paymentMethod?: string;
15
+ paymentTerms?: string;
16
+ priceList?: string;
17
+ customerConsent?: boolean;
18
+ creditLineLimit?: number;
19
+ currentBalance?: number;
20
+ invoiceTerms?: string;
21
+ contactInformation: ContactInfoImport[];
22
+ businessPartnerType: string;
23
+ isCustomer: boolean;
24
+ taxCategory: BusinessPartnerTaxCategoryImport;
25
+ goodsReceiptBlocking: boolean;
26
+ paymentOutBlocking: boolean;
27
+ customerBlocking: boolean;
28
+ transactionMinimumAmt?: number;
29
+ active: boolean;
30
+ locations: LocationImport[];
31
+ }
32
+ export interface GreetingImport {
33
+ name: string;
34
+ title?: string;
35
+ }
36
+ export interface LocationImport {
37
+ address?: string;
38
+ address2?: string;
39
+ city: string;
40
+ zipCode: string;
41
+ country: string;
42
+ region?: string;
43
+ name: string;
44
+ shippingAddress: boolean;
45
+ invoiceAddress: boolean;
46
+ defaultShipToAddress?: boolean;
47
+ defaultInvoiceToAddress?: boolean;
48
+ }
49
+ export interface ContactInfoImport {
50
+ firstName: string;
51
+ lastName: string;
52
+ phone: string;
53
+ email: string;
54
+ commercialAuthorization: boolean;
55
+ viaSms: boolean;
56
+ viaEmail: boolean;
57
+ active: boolean;
58
+ name: string;
59
+ }
60
+ export interface BusinessPartnerTaxCategoryImport {
61
+ organization: string;
62
+ name: string;
63
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=businesspartner.import.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businesspartner.import.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/businessPartner/interfaces/businesspartner.import.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ export declare const OBDistributionOrderService: {
2
+ readonly create: ({ distributionOrders }: {
3
+ distributionOrders: 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: ({ distributionOrderID }: {
14
+ distributionOrderID: string;
15
+ }) => {
16
+ url: string;
17
+ method: string;
18
+ };
19
+ readonly findByDocumentNoAndIsIssue: ({ documentNo, isIssue, }: {
20
+ documentNo: string;
21
+ isIssue: boolean;
22
+ }) => {
23
+ url: string;
24
+ method: string;
25
+ params: {
26
+ documentNo: string;
27
+ isIssue: boolean;
28
+ };
29
+ };
30
+ };
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OBDistributionOrderService = void 0;
4
+ exports.OBDistributionOrderService = {
5
+ create: ({ distributionOrders }) => ({
6
+ url: `/ws/org.openbravo.api.ImportService/DistributionOrder`,
7
+ method: 'POST',
8
+ data: Array.isArray(distributionOrders)
9
+ ? distributionOrders
10
+ : [distributionOrders],
11
+ }),
12
+ findAll: () => ({
13
+ url: `/ws/org.openbravo.api.ExportService/DistributionOrder`,
14
+ method: 'GET',
15
+ }),
16
+ findById: ({ distributionOrderID }) => ({
17
+ url: `/ws/org.openbravo.api.ExportService/DistributionOrder/${distributionOrderID}`,
18
+ method: 'GET',
19
+ }),
20
+ findByDocumentNoAndIsIssue: ({ documentNo, isIssue, }) => ({
21
+ url: `/ws/org.openbravo.api.ExportService/DistributionOrder/byDocumentNoAndIsIssue`,
22
+ method: 'GET',
23
+ params: { documentNo, isIssue },
24
+ }),
25
+ };
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/openbravo/distributionOrder/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,MAAM,EAAE,CAAC,EAAE,kBAAkB,EAA+B,EAAE,EAAE,CAAC,CAAC;QAChE,GAAG,EAAE,uDAAuD;QAC5D,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACrC,CAAC,CAAC,kBAAkB;YACpB,CAAC,CAAC,CAAC,kBAAkB,CAAC;KACzB,CAAC;IAEF,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;QACd,GAAG,EAAE,uDAAuD;QAC5D,MAAM,EAAE,KAAK;KACd,CAAC;IAEF,QAAQ,EAAE,CAAC,EAAE,mBAAmB,EAAmC,EAAE,EAAE,CAAC,CAAC;QACvE,GAAG,EAAE,yDAAyD,mBAAmB,EAAE;QACnF,MAAM,EAAE,KAAK;KACd,CAAC;IAEF,0BAA0B,EAAE,CAAC,EAC3B,UAAU,EACV,OAAO,GAIR,EAAE,EAAE,CAAC,CAAC;QACL,GAAG,EAAE,8EAA8E;QACnF,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE;KAChC,CAAC;CACM,CAAC"}
@@ -0,0 +1,60 @@
1
+ export interface DistributionOrderExport {
2
+ data: DistributionOrderData[];
3
+ links: {
4
+ next: string;
5
+ };
6
+ }
7
+ export interface DistributionOrderData {
8
+ id: string;
9
+ client: string;
10
+ organization: string;
11
+ organization_info: DistributionOrderOrganizationInfo;
12
+ documentNo: string;
13
+ documentType: string;
14
+ documentStatus: string;
15
+ processNow: boolean;
16
+ processed: boolean;
17
+ posted: string;
18
+ description: string;
19
+ movementDate: string;
20
+ businessPartner: string;
21
+ businessPartner_info: BusinessPartnerInfo;
22
+ warehouse: string;
23
+ lines: DistributionOrderLine[];
24
+ }
25
+ export interface DistributionOrderOrganizationInfo {
26
+ name: string;
27
+ searchKey: string;
28
+ groupBusinessUnit: string;
29
+ id: string;
30
+ }
31
+ export interface BusinessPartnerInfo {
32
+ name: string;
33
+ searchKey: string;
34
+ id: string;
35
+ }
36
+ export interface DistributionOrderLine {
37
+ id: string;
38
+ lineNo: number;
39
+ product: string;
40
+ product_info: DistributionOrderProductInfo;
41
+ movementQuantity: number;
42
+ uOM: string;
43
+ warehouse: string;
44
+ attributeSetInstance: string;
45
+ attributeSetInstance_info: DistributionOrderAttributeSetInstanceInfo;
46
+ }
47
+ export interface DistributionOrderProductInfo {
48
+ searchKey: string;
49
+ name: string;
50
+ upcEAN: string;
51
+ productType: string;
52
+ id: string;
53
+ }
54
+ export interface DistributionOrderAttributeSetInstanceInfo {
55
+ description: string;
56
+ serialNo: string;
57
+ lot: string;
58
+ expirationDate: string;
59
+ id: string;
60
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=distributionOrder.export.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"distributionOrder.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/openbravo/distributionOrder/interfaces/distributionOrder.export.interface.ts"],"names":[],"mappings":""}