@openbox/shared-types 0.4.57 → 0.4.58

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.
@@ -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"}
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.58",
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
+