@openbox/shared-types 0.4.57 → 0.4.59

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 (27) hide show
  1. package/lib/accounting/Settings/GetIncomeStatements/Response.d.ts +2 -0
  2. package/lib/accounting/Settings/GetIncomeStatements/Response.js +3 -0
  3. package/lib/accounting/Settings/GetIncomeStatements/Response.js.map +1 -0
  4. package/lib/accounting/Settings/UpdateIncomeStatements/Request.d.ts +2 -0
  5. package/lib/accounting/Settings/UpdateIncomeStatements/Request.js +3 -0
  6. package/lib/accounting/Settings/UpdateIncomeStatements/Request.js.map +1 -0
  7. package/lib/accounting/Settings/UpdateIncomeStatements/Response.d.ts +3 -0
  8. package/lib/accounting/Settings/UpdateIncomeStatements/Response.js +3 -0
  9. package/lib/accounting/Settings/UpdateIncomeStatements/Response.js.map +1 -0
  10. package/lib/accounting/Settings/accounting.settings.types.d.ts +19 -1
  11. package/lib/accounting/Settings/index.d.ts +3 -0
  12. package/lib/accounting/Settings/index.js +3 -0
  13. package/lib/accounting/Settings/index.js.map +1 -1
  14. package/lib/invoices/Settings/ElectronincSv/Set/Request.d.ts +1 -1
  15. package/lib/invoices/Settings/ElectronincSv/invoices.settings.electronic-sv.type.d.ts +1 -0
  16. package/lib/invoices/invoices.enums.d.ts +2 -1
  17. package/lib/invoices/invoices.enums.js +1 -0
  18. package/lib/invoices/invoices.enums.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/accounting/Settings/GetIncomeStatements/Response.ts +6 -0
  21. package/src/accounting/Settings/UpdateIncomeStatements/Request.ts +4 -0
  22. package/src/accounting/Settings/UpdateIncomeStatements/Response.ts +3 -0
  23. package/src/accounting/Settings/accounting.settings.types.ts +21 -1
  24. package/src/accounting/Settings/index.ts +4 -0
  25. package/src/invoices/Settings/ElectronincSv/Set/Request.ts +1 -1
  26. package/src/invoices/Settings/ElectronincSv/invoices.settings.electronic-sv.type.ts +1 -0
  27. package/src/invoices/invoices.enums.ts +1 -0
@@ -0,0 +1,2 @@
1
+ import { AccountingSettings } from '../accounting.settings.types';
2
+ export type AccountingSettingsGetIncomeStatementsResponse = Pick<AccountingSettings, 'estadoResultados'>;
@@ -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/Settings/GetIncomeStatements/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { AccountingSettingsGetIncomeStatementsResponse } from '../GetIncomeStatements/Response';
2
+ export type AccountingSettingsUpdateIncomeStatementsRequest = AccountingSettingsGetIncomeStatementsResponse;
@@ -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/Settings/UpdateIncomeStatements/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type AccountingSettingsUpdateIncomeStatementsResponse = {
2
+ message: 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/Settings/UpdateIncomeStatements/Response.ts"],"names":[],"mappings":""}
@@ -2,7 +2,7 @@ import { AccountingCatalogs } from '../Catalogs';
2
2
  export type AccountingSettings = {
3
3
  id: string;
4
4
  balanceGeneral: JSON;
5
- estadoResultados: JSON;
5
+ estadoResultados: AccountingIncomeStatementsSettings[];
6
6
  periodStart: number;
7
7
  periodEnd: number;
8
8
  legal: string;
@@ -11,3 +11,21 @@ export type AccountingSettings = {
11
11
  accountingDebitCatalog: AccountingCatalogs;
12
12
  accountingCreditCatalog: AccountingCatalogs;
13
13
  };
14
+ export type AccountingIncomeStatementsSettings = {
15
+ name: string;
16
+ display: string;
17
+ showUpdateName: boolean;
18
+ showAdd: boolean;
19
+ show: boolean;
20
+ details: boolean;
21
+ id?: number;
22
+ bold: boolean;
23
+ children?: AccountingIncomeStatementsChildren[];
24
+ };
25
+ export type AccountingIncomeStatementsChildren = {
26
+ id: string;
27
+ name: string;
28
+ display: string;
29
+ canDelete: boolean;
30
+ showUpdateName: boolean;
31
+ };
@@ -1,4 +1,7 @@
1
1
  export * from './GetGenerals/Response';
2
+ export * from './GetIncomeStatements/Response';
2
3
  export * from './UpdateGenerals/Request';
3
4
  export * from './UpdateGenerals/Response';
5
+ export * from './UpdateIncomeStatements/Request';
6
+ export * from './UpdateIncomeStatements/Response';
4
7
  export * from './accounting.settings.types';
@@ -15,7 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetGenerals/Response"), exports);
18
+ __exportStar(require("./GetIncomeStatements/Response"), exports);
18
19
  __exportStar(require("./UpdateGenerals/Request"), exports);
19
20
  __exportStar(require("./UpdateGenerals/Response"), exports);
21
+ __exportStar(require("./UpdateIncomeStatements/Request"), exports);
22
+ __exportStar(require("./UpdateIncomeStatements/Response"), exports);
20
23
  __exportStar(require("./accounting.settings.types"), exports);
21
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,2DAAwC;AACxC,4DAAyC;AACzC,8DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Settings/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,iEAA8C;AAC9C,2DAAwC;AACxC,4DAAyC;AACzC,mEAAgD;AAChD,oEAAiD;AACjD,8DAA2C"}
@@ -1,2 +1,2 @@
1
1
  import { InvoicesSettingsElectronicSv } from '../invoices.settings.electronic-sv.type';
2
- export type InvoicesSettingsElectronicSvSetRequest = Omit<InvoicesSettingsElectronicSv, 'id' | 'testEnvCertificatePath' | 'prodEnvCertificatePath'>;
2
+ export type InvoicesSettingsElectronicSvSetRequest = Omit<InvoicesSettingsElectronicSv, 'id' | 'testEnvCertificatePath' | 'prodEnvCertificatePath' | 'isContingency'>;
@@ -8,4 +8,5 @@ export type InvoicesSettingsElectronicSv = {
8
8
  prodEnvAPIPassword?: string;
9
9
  prodEnvPrivatePassword?: string;
10
10
  prodEnvCertificatePath?: string;
11
+ isContingency?: boolean;
11
12
  };
@@ -12,5 +12,6 @@ export declare enum InvoicesStatusesTypesEnum {
12
12
  Anulada = 3,
13
13
  Reservada = 4,
14
14
  Pagada = 5,
15
- Presentada = 6
15
+ Presentada = 6,
16
+ Contingencia = 7
16
17
  }
@@ -18,5 +18,6 @@ var InvoicesStatusesTypesEnum;
18
18
  InvoicesStatusesTypesEnum[InvoicesStatusesTypesEnum["Reservada"] = 4] = "Reservada";
19
19
  InvoicesStatusesTypesEnum[InvoicesStatusesTypesEnum["Pagada"] = 5] = "Pagada";
20
20
  InvoicesStatusesTypesEnum[InvoicesStatusesTypesEnum["Presentada"] = 6] = "Presentada";
21
+ InvoicesStatusesTypesEnum[InvoicesStatusesTypesEnum["Contingencia"] = 7] = "Contingencia";
21
22
  })(InvoicesStatusesTypesEnum = exports.InvoicesStatusesTypesEnum || (exports.InvoicesStatusesTypesEnum = {}));
22
23
  //# sourceMappingURL=invoices.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoices.enums.js","sourceRoot":"","sources":["../../src/invoices/invoices.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,qEAAM,CAAA;IACN,qEAAM,CAAA;IACN,qEAAM,CAAA;AACR,CAAC,EAPW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOpC;AAED,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,mFAAa,CAAA;IACb,6EAAU,CAAA;IACV,qFAAc,CAAA;AAChB,CAAC,EAPW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOpC"}
1
+ {"version":3,"file":"invoices.enums.js","sourceRoot":"","sources":["../../src/invoices/invoices.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,qEAAM,CAAA;IACN,qEAAM,CAAA;IACN,qEAAM,CAAA;AACR,CAAC,EAPW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOpC;AAED,IAAY,yBAQX;AARD,WAAY,yBAAyB;IACnC,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,mFAAa,CAAA;IACb,6EAAU,CAAA;IACV,qFAAc,CAAA;IACd,yFAAgB,CAAA;AAClB,CAAC,EARW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAQpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.4.57",
3
+ "version": "0.4.59",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,6 @@
1
+ import { AccountingSettings } from '../accounting.settings.types'
2
+
3
+ export type AccountingSettingsGetIncomeStatementsResponse = Pick<
4
+ AccountingSettings,
5
+ 'estadoResultados'
6
+ >
@@ -0,0 +1,4 @@
1
+ import { AccountingSettingsGetIncomeStatementsResponse } from '../GetIncomeStatements/Response'
2
+
3
+ export type AccountingSettingsUpdateIncomeStatementsRequest =
4
+ AccountingSettingsGetIncomeStatementsResponse
@@ -0,0 +1,3 @@
1
+ export type AccountingSettingsUpdateIncomeStatementsResponse = {
2
+ message: string
3
+ }
@@ -3,7 +3,7 @@ import { AccountingCatalogs } from '../Catalogs'
3
3
  export type AccountingSettings = {
4
4
  id: string
5
5
  balanceGeneral: JSON
6
- estadoResultados: JSON
6
+ estadoResultados: AccountingIncomeStatementsSettings[]
7
7
  periodStart: number
8
8
  periodEnd: number
9
9
  legal: string
@@ -12,3 +12,23 @@ export type AccountingSettings = {
12
12
  accountingDebitCatalog: AccountingCatalogs
13
13
  accountingCreditCatalog: AccountingCatalogs
14
14
  }
15
+
16
+ export type AccountingIncomeStatementsSettings = {
17
+ name: string
18
+ display: string
19
+ showUpdateName: boolean
20
+ showAdd: boolean
21
+ show: boolean
22
+ details: boolean
23
+ id?: number
24
+ bold: boolean
25
+ children?: AccountingIncomeStatementsChildren[]
26
+ }
27
+
28
+ export type AccountingIncomeStatementsChildren = {
29
+ id: string
30
+ name: string
31
+ display: string
32
+ canDelete: boolean
33
+ showUpdateName: boolean
34
+ }
@@ -1,4 +1,8 @@
1
1
  export * from './GetGenerals/Response'
2
+ export * from './GetIncomeStatements/Response'
2
3
  export * from './UpdateGenerals/Request'
3
4
  export * from './UpdateGenerals/Response'
5
+ export * from './UpdateIncomeStatements/Request'
6
+ export * from './UpdateIncomeStatements/Response'
4
7
  export * from './accounting.settings.types'
8
+
@@ -2,5 +2,5 @@ import { InvoicesSettingsElectronicSv } from '../invoices.settings.electronic-sv
2
2
 
3
3
  export type InvoicesSettingsElectronicSvSetRequest = Omit<
4
4
  InvoicesSettingsElectronicSv,
5
- 'id' | 'testEnvCertificatePath' | 'prodEnvCertificatePath'
5
+ 'id' | 'testEnvCertificatePath' | 'prodEnvCertificatePath' | 'isContingency'
6
6
  >
@@ -8,4 +8,5 @@ export type InvoicesSettingsElectronicSv = {
8
8
  prodEnvAPIPassword?: string
9
9
  prodEnvPrivatePassword?: string
10
10
  prodEnvCertificatePath?: string
11
+ isContingency?: boolean
11
12
  }
@@ -14,4 +14,5 @@ export enum InvoicesStatusesTypesEnum {
14
14
  Reservada = 4,
15
15
  Pagada = 5,
16
16
  Presentada = 6,
17
+ Contingencia = 7,
17
18
  }