packages-ob-lib 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/common/utils/api.response.formatter.d.ts +2 -0
  2. package/dist/common/utils/api.response.formatter.js +18 -0
  3. package/dist/common/utils/api.response.formatter.js.map +1 -1
  4. package/dist/pos/cosuim/auth/auth.service.d.ts +12 -0
  5. package/dist/pos/cosuim/auth/auth.service.js +16 -0
  6. package/dist/pos/cosuim/auth/auth.service.js.map +1 -0
  7. package/dist/pos/cosuim/auth/index.d.ts +12 -0
  8. package/dist/pos/cosuim/auth/index.js +8 -0
  9. package/dist/pos/cosuim/auth/index.js.map +1 -0
  10. package/dist/pos/cosuim/auth/interfaces/auth.interface.d.ts +5 -0
  11. package/dist/pos/cosuim/auth/interfaces/auth.interface.js +3 -0
  12. package/dist/pos/cosuim/auth/interfaces/auth.interface.js.map +1 -0
  13. package/dist/pos/cosuim/cosium.service.d.ts +23 -0
  14. package/dist/pos/cosuim/cosium.service.js +60 -0
  15. package/dist/pos/cosuim/cosium.service.js.map +1 -0
  16. package/dist/pos/cosuim/customer/index.d.ts +13 -0
  17. package/dist/pos/cosuim/customer/index.js +11 -0
  18. package/dist/pos/cosuim/customer/index.js.map +1 -0
  19. package/dist/pos/cosuim/customer/interfaces/customer.export.interface.d.ts +25 -0
  20. package/dist/pos/cosuim/customer/interfaces/customer.export.interface.js +3 -0
  21. package/dist/pos/cosuim/customer/interfaces/customer.export.interface.js.map +1 -0
  22. package/dist/pos/cosuim/index.d.ts +1 -0
  23. package/dist/pos/cosuim/index.js +18 -0
  24. package/dist/pos/cosuim/index.js.map +1 -0
  25. package/dist/pos/cosuim/types.d.ts +1 -0
  26. package/dist/pos/cosuim/types.js +18 -0
  27. package/dist/pos/cosuim/types.js.map +1 -0
  28. package/dist/pos/openbravo/businessPartner/interfaces/businesspartner.export.interface.d.ts +2 -2
  29. package/dist/pos/openbravo/ob.service.d.ts +44 -176
  30. package/dist/pos/openbravo/ob.service.js +44 -139
  31. package/dist/pos/openbravo/ob.service.js.map +1 -1
  32. package/dist/pos/openbravo/order/index.d.ts +36 -9
  33. package/dist/pos/openbravo/order/index.js +41 -14
  34. package/dist/pos/openbravo/order/index.js.map +1 -1
  35. package/dist/pos/openbravo/product/index.d.ts +11 -71
  36. package/dist/pos/openbravo/product/index.js +21 -74
  37. package/dist/pos/openbravo/product/index.js.map +1 -1
  38. package/dist/pos/openbravo/productPrice/index.d.ts +4 -23
  39. package/dist/pos/openbravo/productPrice/index.js +7 -23
  40. package/dist/pos/openbravo/productPrice/index.js.map +1 -1
  41. package/dist/pos/openbravo/stock/index.d.ts +6 -35
  42. package/dist/pos/openbravo/stock/index.js +12 -40
  43. package/dist/pos/openbravo/stock/index.js.map +1 -1
  44. package/dist/pos/openbravo/stock/interfaces/stock.export.interface.d.ts +12 -12
  45. package/dist/pos/openbravo/types.d.ts +0 -4
  46. package/dist/pos/openbravo/types.js +0 -4
  47. package/dist/pos/openbravo/types.js.map +1 -1
  48. package/dist/tsconfig.build.tsbuildinfo +1 -1
  49. package/package.json +1 -1
@@ -9,3 +9,5 @@ export default class ResponseFormatter {
9
9
  records?: undefined;
10
10
  };
11
11
  }
12
+ export declare function formatOutput(raw: any, field: string): {};
13
+ export declare function transformToLogstashFormat(jsonArray: any): any;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatOutput = formatOutput;
4
+ exports.transformToLogstashFormat = transformToLogstashFormat;
3
5
  class ResponseFormatter {
4
6
  static format(response) {
5
7
  return Array.isArray(response)
@@ -13,4 +15,20 @@ class ResponseFormatter {
13
15
  }
14
16
  }
15
17
  exports.default = ResponseFormatter;
18
+ function formatOutput(raw, field) {
19
+ const existField = raw?.content.find((c) => c?.rel === field);
20
+ const value = existField ? existField?.value : null;
21
+ delete value?.links;
22
+ const cleanedValue = Object.keys(value)
23
+ .filter((key) => value[key] !== null && value[key] !== '')
24
+ .reduce((obj, key) => {
25
+ obj[key] = value[key];
26
+ return obj;
27
+ }, {});
28
+ return Object.keys(cleanedValue).length > 0 ? cleanedValue : null;
29
+ }
30
+ function transformToLogstashFormat(jsonArray) {
31
+ const data = typeof jsonArray === 'string' ? JSON.parse(jsonArray) : jsonArray;
32
+ return data.map((obj) => JSON.stringify(obj)).join('\n');
33
+ }
16
34
  //# sourceMappingURL=api.response.formatter.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"api.response.formatter.js","sourceRoot":"","sources":["../../../src/common/utils/api.response.formatter.ts"],"names":[],"mappings":";;AAaA,oCAWC;AAED,8DAIC;AA9BD,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;AAED,SAAgB,YAAY,CAAC,GAAQ,EAAE,KAAa;IAClD,MAAM,UAAU,GAAG,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,KAAK,CAAC,CAAC;IACnE,MAAM,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IACpD,OAAO,KAAK,EAAE,KAAK,CAAC;IACpB,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;SACpC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;SACzD,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACnB,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;QACtB,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,OAAO,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC;AACpE,CAAC;AAED,SAAgB,yBAAyB,CAAC,SAAc;IACtD,MAAM,IAAI,GACR,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACpE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const OCAuthService: {
2
+ readonly getAccessToken: () => {
3
+ url: string;
4
+ method: string;
5
+ data: {
6
+ client_id: string;
7
+ client_secret: string;
8
+ grant_type: string;
9
+ scope: string;
10
+ };
11
+ };
12
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OCAuthService = void 0;
4
+ exports.OCAuthService = {
5
+ getAccessToken: () => ({
6
+ url: `/auth/token`,
7
+ method: 'POST',
8
+ data: {
9
+ client_id: process.env.CLIENT_ID,
10
+ client_secret: process.env.CLIENT_SECRET,
11
+ grant_type: 'client_credentials',
12
+ scope: 'read',
13
+ },
14
+ }),
15
+ };
16
+ //# sourceMappingURL=auth.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/pos/cosuim/auth/auth.service.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;QACrB,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;YAChC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;YACxC,UAAU,EAAE,oBAAoB;YAChC,KAAK,EAAE,MAAM;SACd;KACF,CAAC;CACM,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const AuthAPI: {
2
+ getAccessToken: () => Promise<{
3
+ url: string;
4
+ method: string;
5
+ data: {
6
+ client_id: string;
7
+ client_secret: string;
8
+ grant_type: string;
9
+ scope: string;
10
+ };
11
+ }>;
12
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthAPI = void 0;
4
+ const auth_service_1 = require("./auth.service");
5
+ exports.AuthAPI = {
6
+ getAccessToken: async () => auth_service_1.OCAuthService.getAccessToken(),
7
+ };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/cosuim/auth/index.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAElC,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE,KAAK,IAAI,EAAE,CACzB,4BAAa,CAAC,cAAc,EAAE;CACjC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface AuthToken {
2
+ access_token: string;
3
+ token_type: string;
4
+ expires_in: number;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=auth.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.interface.js","sourceRoot":"","sources":["../../../../../src/pos/cosuim/auth/interfaces/auth.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ import { CustomerExport } from './customer/interfaces/customer.export.interface';
3
+ export declare class Cosium {
4
+ private readonly appId;
5
+ private readonly clientId;
6
+ private readonly clientSecret;
7
+ private readonly scope;
8
+ constructor({ appId, clientId, clientSecret, scope }: {
9
+ appId: any;
10
+ clientId: any;
11
+ clientSecret: any;
12
+ scope: any;
13
+ });
14
+ private apiUrl;
15
+ private oauthUrl;
16
+ call<T>({ url, method, headers, params, data, }: AxiosRequestConfig): Promise<T>;
17
+ get customer(): {
18
+ findAll: ({ page_size, page_number }: {
19
+ page_size: any;
20
+ page_number: any;
21
+ }) => Promise<CustomerExport[]>;
22
+ };
23
+ }
@@ -0,0 +1,60 @@
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
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var Cosium_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.Cosium = void 0;
14
+ const customer_1 = require("./customer");
15
+ const common_1 = require("@nestjs/common");
16
+ const axios_1 = require("axios");
17
+ let Cosium = Cosium_1 = class Cosium {
18
+ constructor({ appId, clientId, clientSecret, scope }) {
19
+ this.apiUrl = 'https://c1.cosium.biz';
20
+ this.oauthUrl = 'https://identity.cosium.com/auth/realms/general/protocol/openid-connect/token';
21
+ this.appId = appId;
22
+ this.clientId = clientId;
23
+ this.clientSecret = clientSecret;
24
+ this.scope = scope;
25
+ }
26
+ async call({ url, method, headers, params, data, }) {
27
+ try {
28
+ const result = await axios_1.default.request({
29
+ url: `${this.apiUrl}/${this.appId}/${url}`,
30
+ method,
31
+ headers: {
32
+ Authorization: `${headers.Authorization}`,
33
+ },
34
+ ...(params && { params }),
35
+ ...(data && { data }),
36
+ timeout: 360000,
37
+ });
38
+ if (result?.data.error) {
39
+ common_1.Logger.error(`[${Cosium_1.name}]: ${JSON.stringify(result)}`);
40
+ throw new common_1.BadRequestException(result.data);
41
+ }
42
+ return result.data;
43
+ }
44
+ catch (error) {
45
+ common_1.Logger.error(`[${Cosium_1.name}]: Error: ${error}`);
46
+ throw new common_1.BadRequestException(error);
47
+ }
48
+ }
49
+ get customer() {
50
+ return {
51
+ findAll: async ({ page_size, page_number }) => this.call(customer_1.CosiumCustomerService.findAll({ page_size, page_number })),
52
+ };
53
+ }
54
+ };
55
+ exports.Cosium = Cosium;
56
+ exports.Cosium = Cosium = Cosium_1 = __decorate([
57
+ (0, common_1.Injectable)(),
58
+ __metadata("design:paramtypes", [Object])
59
+ ], Cosium);
60
+ //# sourceMappingURL=cosium.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cosium.service.js","sourceRoot":"","sources":["../../../src/pos/cosuim/cosium.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAAmD;AACnD,2CAAyE;AACzE,iCAAkD;AAI3C,IAAM,MAAM,cAAZ,MAAM,MAAM;IAMjB,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE;QAO5C,WAAM,GAAG,uBAAuB,CAAC;QACjC,aAAQ,GACd,+EAA+E,CAAC;QARhF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAKM,KAAK,CAAC,IAAI,CAAI,EACnB,GAAG,EACH,MAAM,EACN,OAAO,EACP,MAAM,EACN,IAAI,GACe;QACnB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,eAAK,CAAC,OAAO,CAAC;gBACjC,GAAG,EAAE,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,IAAI,GAAG,EAAE;gBAC1C,MAAM;gBACN,OAAO,EAAE;oBACP,aAAa,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE;iBAC1C;gBACD,GAAG,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,CAAC;gBACzB,GAAG,CAAC,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC;gBACrB,OAAO,EAAE,MAAM;aAChB,CAAC,CAAC;YACH,IAAI,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;gBACvB,eAAM,CAAC,KAAK,CAAC,IAAI,QAAM,CAAC,IAAI,MAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC5D,MAAM,IAAI,4BAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC7C,CAAC;YACD,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,eAAM,CAAC,KAAK,CAAC,IAAI,QAAM,CAAC,IAAI,aAAa,KAAK,EAAE,CAAC,CAAC;YAClD,MAAM,IAAI,4BAAmB,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO;YACL,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE,CAC5C,IAAI,CAAC,IAAI,CACP,gCAAqB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,CAC1D;SACJ,CAAC;IACJ,CAAC;CACF,CAAA;AArDY,wBAAM;iBAAN,MAAM;IADlB,IAAA,mBAAU,GAAE;;GACA,MAAM,CAqDlB"}
@@ -0,0 +1,13 @@
1
+ export declare const CosiumCustomerService: {
2
+ readonly findAll: ({ page_size, page_number }: {
3
+ page_size: any;
4
+ page_number: any;
5
+ }) => {
6
+ url: string;
7
+ method: string;
8
+ params: {
9
+ page_size: any;
10
+ page_number: any;
11
+ };
12
+ };
13
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CosiumCustomerService = void 0;
4
+ exports.CosiumCustomerService = {
5
+ findAll: ({ page_size, page_number }) => ({
6
+ url: `/api/customers?embed=site,address`,
7
+ method: 'GET',
8
+ params: { page_size, page_number },
9
+ }),
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pos/cosuim/customer/index.ts"],"names":[],"mappings":";;;AAiBa,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;QACxC,GAAG,EAAE,mCAAmC;QACxC,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE;KACnC,CAAC;CACM,CAAC"}
@@ -0,0 +1,25 @@
1
+ export interface CustomerExport {
2
+ id: string;
3
+ siteId: string;
4
+ customerNumber: string;
5
+ title?: string;
6
+ firstName: string;
7
+ lastName: string;
8
+ birthDate?: string;
9
+ mobilePhone: string;
10
+ email: string;
11
+ socialSecurityNumber?: string;
12
+ address: AddressExport;
13
+ site: SiteExport;
14
+ version: string;
15
+ }
16
+ export interface AddressExport {
17
+ street: string;
18
+ city: string;
19
+ zipCode: string;
20
+ country: string;
21
+ }
22
+ export interface SiteExport {
23
+ id: string;
24
+ name: string;
25
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=customer.export.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.export.interface.js","sourceRoot":"","sources":["../../../../../src/pos/cosuim/customer/interfaces/customer.export.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './cosium.service';
@@ -0,0 +1,18 @@
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("./cosium.service"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/pos/cosuim/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1 @@
1
+ export * from './customer/interfaces/customer.export.interface';
@@ -0,0 +1,18 @@
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("./customer/interfaces/customer.export.interface"), exports);
18
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/pos/cosuim/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kFAAgE"}
@@ -30,7 +30,7 @@ export interface BusinessPartnerExport {
30
30
  businessPartnerType: string;
31
31
  consentPaperInfo?: string;
32
32
  isCustomer: boolean;
33
- taxCategory: BusinessPartnerTaxCategoryExport;
33
+ taxCategory: BusinessPartnerTaxCategoryImport;
34
34
  goodsReceiptBlocking: boolean;
35
35
  paymentOutBlocking: boolean;
36
36
  customerBlocking: boolean;
@@ -63,7 +63,7 @@ export interface ContactInfoExport {
63
63
  viaEmail: boolean;
64
64
  active: boolean;
65
65
  }
66
- export interface BusinessPartnerTaxCategoryExport {
66
+ export interface BusinessPartnerTaxCategoryImport {
67
67
  organization: string;
68
68
  name: string;
69
69
  }