@openbox/shared-types 0.4.97 → 0.4.99

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 (47) hide show
  1. package/lib/accounting/Reports/GeneralBalance/Request.d.ts +5 -0
  2. package/lib/accounting/Reports/GeneralBalance/Request.js +3 -0
  3. package/lib/accounting/Reports/GeneralBalance/Request.js.map +1 -0
  4. package/lib/accounting/Reports/GeneralBalance/Response.d.ts +3 -0
  5. package/lib/accounting/Reports/GeneralBalance/Response.js +3 -0
  6. package/lib/accounting/Reports/GeneralBalance/Response.js.map +1 -0
  7. package/lib/accounting/Reports/GeneralBalancePreview/Request.d.ts +2 -0
  8. package/lib/accounting/Reports/GeneralBalancePreview/Request.js +3 -0
  9. package/lib/accounting/Reports/GeneralBalancePreview/Request.js.map +1 -0
  10. package/lib/accounting/Reports/GeneralBalancePreview/Response.d.ts +3 -0
  11. package/lib/accounting/Reports/GeneralBalancePreview/Response.js +3 -0
  12. package/lib/accounting/Reports/GeneralBalancePreview/Response.js.map +1 -0
  13. package/lib/accounting/Reports/index.d.ts +4 -0
  14. package/lib/accounting/Reports/index.js +4 -0
  15. package/lib/accounting/Reports/index.js.map +1 -1
  16. package/lib/index.d.ts +1 -0
  17. package/lib/index.js +1 -0
  18. package/lib/index.js.map +1 -1
  19. package/lib/invoices/Invoices/GetSingle/Response.d.ts +0 -1
  20. package/lib/partners/V1/auth/ProcessLogin/Request.d.ts +4 -0
  21. package/lib/partners/V1/auth/ProcessLogin/Request.js +3 -0
  22. package/lib/partners/V1/auth/ProcessLogin/Request.js.map +1 -0
  23. package/lib/partners/V1/auth/ProcessLogin/Response.d.ts +6 -0
  24. package/lib/partners/V1/auth/ProcessLogin/Response.js +3 -0
  25. package/lib/partners/V1/auth/ProcessLogin/Response.js.map +1 -0
  26. package/lib/partners/V1/auth/index.d.ts +2 -0
  27. package/lib/partners/V1/auth/index.js +19 -0
  28. package/lib/partners/V1/auth/index.js.map +1 -0
  29. package/lib/partners/V1/index.d.ts +1 -0
  30. package/lib/partners/V1/index.js +18 -0
  31. package/lib/partners/V1/index.js.map +1 -0
  32. package/lib/partners/index.d.ts +1 -0
  33. package/lib/partners/index.js +18 -0
  34. package/lib/partners/index.js.map +1 -0
  35. package/package.json +1 -1
  36. package/src/accounting/Reports/GeneralBalance/Request.ts +5 -0
  37. package/src/accounting/Reports/GeneralBalance/Response.ts +3 -0
  38. package/src/accounting/Reports/GeneralBalancePreview/Request.ts +6 -0
  39. package/src/accounting/Reports/GeneralBalancePreview/Response.ts +3 -0
  40. package/src/accounting/Reports/index.ts +4 -0
  41. package/src/index.ts +1 -0
  42. package/src/invoices/Invoices/GetSingle/Response.ts +1 -4
  43. package/src/partners/V1/auth/ProcessLogin/Request.ts +4 -0
  44. package/src/partners/V1/auth/ProcessLogin/Response.ts +7 -0
  45. package/src/partners/V1/auth/index.ts +2 -0
  46. package/src/partners/V1/index.ts +1 -0
  47. package/src/partners/index.ts +1 -0
@@ -0,0 +1,5 @@
1
+ export type AccountingReportsGeneralBalanceRequest = {
2
+ type: 'pdf' | 'xlsx';
3
+ date: Date;
4
+ range: 1 | 2;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/accounting/Reports/GeneralBalance/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type AccountingReportsGeneralBalanceResponse = {
2
+ url: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/accounting/Reports/GeneralBalance/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { AccountingReportsGeneralBalanceRequest } from '../GeneralBalance/Request';
2
+ export type AccountingReportsGeneralBalancePreviewRequest = Omit<AccountingReportsGeneralBalanceRequest, 'type'>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/accounting/Reports/GeneralBalancePreview/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type AccountingReportsGeneralBalancePreviewResponse = {
2
+ url: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/accounting/Reports/GeneralBalancePreview/Response.ts"],"names":[],"mappings":""}
@@ -10,6 +10,10 @@ export * from './CheckingBalance/Request';
10
10
  export * from './CheckingBalance/Response';
11
11
  export * from './CheckingBalancePreview/Request';
12
12
  export * from './CheckingBalancePreview/Response';
13
+ export * from './GeneralBalance/Request';
14
+ export * from './GeneralBalance/Response';
15
+ export * from './GeneralBalancePreview/Request';
16
+ export * from './GeneralBalancePreview/Response';
13
17
  export * from './GeneralLedger/Request';
14
18
  export * from './GeneralLedger/Response';
15
19
  export * from './GeneralLedgerPreview/Request';
@@ -26,6 +26,10 @@ __exportStar(require("./CheckingBalance/Request"), exports);
26
26
  __exportStar(require("./CheckingBalance/Response"), exports);
27
27
  __exportStar(require("./CheckingBalancePreview/Request"), exports);
28
28
  __exportStar(require("./CheckingBalancePreview/Response"), exports);
29
+ __exportStar(require("./GeneralBalance/Request"), exports);
30
+ __exportStar(require("./GeneralBalance/Response"), exports);
31
+ __exportStar(require("./GeneralBalancePreview/Request"), exports);
32
+ __exportStar(require("./GeneralBalancePreview/Response"), exports);
29
33
  __exportStar(require("./GeneralLedger/Request"), exports);
30
34
  __exportStar(require("./GeneralLedger/Response"), exports);
31
35
  __exportStar(require("./GeneralLedgerPreview/Request"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Reports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C;AAC1C,8DAA2C;AAC3C,oEAAiD;AACjD,qEAAkD;AAClD,4DAAyC;AACzC,6DAA0C;AAC1C,mEAAgD;AAChD,oEAAiD;AACjD,4DAAyC;AACzC,6DAA0C;AAC1C,mEAAgD;AAChD,oEAAiD;AACjD,0DAAuC;AACvC,2DAAwC;AACxC,iEAA8C;AAC9C,kEAA+C;AAC/C,6DAA0C;AAC1C,8DAA2C;AAC3C,oEAAiD;AACjD,qEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Reports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C;AAC1C,8DAA2C;AAC3C,oEAAiD;AACjD,qEAAkD;AAClD,4DAAyC;AACzC,6DAA0C;AAC1C,mEAAgD;AAChD,oEAAiD;AACjD,4DAAyC;AACzC,6DAA0C;AAC1C,mEAAgD;AAChD,oEAAiD;AACjD,2DAAwC;AACxC,4DAAyC;AACzC,kEAA+C;AAC/C,mEAAgD;AAChD,0DAAuC;AACvC,2DAAwC;AACxC,iEAA8C;AAC9C,kEAA+C;AAC/C,6DAA0C;AAC1C,8DAA2C;AAC3C,oEAAiD;AACjD,qEAAkD"}
package/lib/index.d.ts CHANGED
@@ -5,5 +5,6 @@ export * from './inventories';
5
5
  export * from './invoices';
6
6
  export * from './legal';
7
7
  export * from './management';
8
+ export * from './partners';
8
9
  export * from './services';
9
10
  export * from './system';
package/lib/index.js CHANGED
@@ -21,6 +21,7 @@ __exportStar(require("./inventories"), exports);
21
21
  __exportStar(require("./invoices"), exports);
22
22
  __exportStar(require("./legal"), exports);
23
23
  __exportStar(require("./management"), exports);
24
+ __exportStar(require("./partners"), exports);
24
25
  __exportStar(require("./services"), exports);
25
26
  __exportStar(require("./system"), exports);
26
27
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,yCAAsB;AACtB,8CAA2B;AAC3B,gDAA6B;AAC7B,6CAA0B;AAC1B,0CAAuB;AACvB,+CAA4B;AAC5B,6CAA0B;AAC1B,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,yCAAsB;AACtB,8CAA2B;AAC3B,gDAA6B;AAC7B,6CAA0B;AAC1B,0CAAuB;AACvB,+CAA4B;AAC5B,6CAA0B;AAC1B,6CAA0B;AAC1B,2CAAwB"}
@@ -1,5 +1,4 @@
1
1
  import { Invoices } from '../invoices.types';
2
2
  export type InvoicesGetSingleResponse = Invoices & {
3
3
  isLastInvoice: boolean | null;
4
- creditNotesTotal: number;
5
4
  };
@@ -0,0 +1,4 @@
1
+ export type PartnersV1AuthProcessLoginRequest = {
2
+ key: string;
3
+ secret: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/partners/V1/auth/ProcessLogin/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type PartnersV1AuthProcessLoginResponseData = {
2
+ access_token: string;
3
+ };
4
+ export type PartnersV1AuthProcessLoginResponse = {
5
+ data: PartnersV1AuthProcessLoginResponseData;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../../src/partners/V1/auth/ProcessLogin/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './ProcessLogin/Request';
2
+ export * from './ProcessLogin/Response';
@@ -0,0 +1,19 @@
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("./ProcessLogin/Request"), exports);
18
+ __exportStar(require("./ProcessLogin/Response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/partners/V1/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC"}
@@ -0,0 +1 @@
1
+ export * from './auth';
@@ -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("./auth"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/partners/V1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB"}
@@ -0,0 +1 @@
1
+ export * from './V1';
@@ -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("./V1"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/partners/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAoB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.4.97",
3
+ "version": "0.4.99",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,5 @@
1
+ export type AccountingReportsGeneralBalanceRequest = {
2
+ type: 'pdf' | 'xlsx'
3
+ date: Date
4
+ range: 1 | 2
5
+ }
@@ -0,0 +1,3 @@
1
+ export type AccountingReportsGeneralBalanceResponse = {
2
+ url: string
3
+ }
@@ -0,0 +1,6 @@
1
+ import { AccountingReportsGeneralBalanceRequest } from '../GeneralBalance/Request'
2
+
3
+ export type AccountingReportsGeneralBalancePreviewRequest = Omit<
4
+ AccountingReportsGeneralBalanceRequest,
5
+ 'type'
6
+ >
@@ -0,0 +1,3 @@
1
+ export type AccountingReportsGeneralBalancePreviewResponse = {
2
+ url: string
3
+ }
@@ -10,6 +10,10 @@ export * from './CheckingBalance/Request'
10
10
  export * from './CheckingBalance/Response'
11
11
  export * from './CheckingBalancePreview/Request'
12
12
  export * from './CheckingBalancePreview/Response'
13
+ export * from './GeneralBalance/Request'
14
+ export * from './GeneralBalance/Response'
15
+ export * from './GeneralBalancePreview/Request'
16
+ export * from './GeneralBalancePreview/Response'
13
17
  export * from './GeneralLedger/Request'
14
18
  export * from './GeneralLedger/Response'
15
19
  export * from './GeneralLedgerPreview/Request'
package/src/index.ts CHANGED
@@ -5,5 +5,6 @@ export * from './inventories'
5
5
  export * from './invoices'
6
6
  export * from './legal'
7
7
  export * from './management'
8
+ export * from './partners'
8
9
  export * from './services'
9
10
  export * from './system'
@@ -1,6 +1,3 @@
1
1
  import { Invoices } from '../invoices.types'
2
2
 
3
- export type InvoicesGetSingleResponse = Invoices & {
4
- isLastInvoice: boolean | null
5
- creditNotesTotal: number
6
- }
3
+ export type InvoicesGetSingleResponse = Invoices & { isLastInvoice: boolean | null }
@@ -0,0 +1,4 @@
1
+ export type PartnersV1AuthProcessLoginRequest = {
2
+ key: string
3
+ secret: string
4
+ }
@@ -0,0 +1,7 @@
1
+ export type PartnersV1AuthProcessLoginResponseData = {
2
+ access_token: string
3
+ }
4
+
5
+ export type PartnersV1AuthProcessLoginResponse = {
6
+ data: PartnersV1AuthProcessLoginResponseData
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from './ProcessLogin/Request'
2
+ export * from './ProcessLogin/Response'
@@ -0,0 +1 @@
1
+ export * from './auth'
@@ -0,0 +1 @@
1
+ export * from './V1'