@openbox/shared-types 0.2.33 → 0.2.35

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 (33) hide show
  1. package/lib/accounting/Catalogs/CreateMany/Request.d.ts +2 -2
  2. package/lib/accounting/Catalogs/CreateMany/Response.d.ts +2 -2
  3. package/lib/accounting/Catalogs/CreateSingle/Request.d.ts +2 -0
  4. package/lib/accounting/Catalogs/CreateSingle/Request.js +3 -0
  5. package/lib/accounting/Catalogs/CreateSingle/Request.js.map +1 -0
  6. package/lib/accounting/Catalogs/CreateSingle/Response.d.ts +2 -0
  7. package/lib/accounting/Catalogs/CreateSingle/Response.js +3 -0
  8. package/lib/accounting/Catalogs/CreateSingle/Response.js.map +1 -0
  9. package/lib/accounting/Catalogs/DeleteSingle/Response.d.ts +2 -2
  10. package/lib/accounting/Catalogs/GetMany/Request.d.ts +2 -2
  11. package/lib/accounting/Catalogs/GetMany/Response.d.ts +7 -2
  12. package/lib/accounting/Catalogs/UpdateSingle/Request.d.ts +2 -2
  13. package/lib/accounting/Catalogs/UpdateSingle/Response.d.ts +2 -2
  14. package/lib/accounting/Catalogs/catalog.types.d.ts +15 -0
  15. package/lib/accounting/Catalogs/catalog.types.js +3 -0
  16. package/lib/accounting/Catalogs/catalog.types.js.map +1 -0
  17. package/lib/accounting/Catalogs/index.d.ts +2 -0
  18. package/lib/accounting/Catalogs/index.js +2 -0
  19. package/lib/accounting/Catalogs/index.js.map +1 -1
  20. package/lib/customers/Customers/GetMany/Response.d.ts +3 -1
  21. package/package.json +1 -1
  22. package/src/accounting/Catalogs/CreateMany/Request.ts +3 -1
  23. package/src/accounting/Catalogs/CreateMany/Response.ts +3 -1
  24. package/src/accounting/Catalogs/CreateSingle/Request.ts +3 -0
  25. package/src/accounting/Catalogs/CreateSingle/Response.ts +3 -0
  26. package/src/accounting/Catalogs/DeleteSingle/Response.ts +3 -1
  27. package/src/accounting/Catalogs/GetMany/Request.ts +3 -1
  28. package/src/accounting/Catalogs/GetMany/Response.ts +6 -1
  29. package/src/accounting/Catalogs/UpdateSingle/Request.ts +3 -1
  30. package/src/accounting/Catalogs/UpdateSingle/Response.ts +3 -1
  31. package/src/accounting/Catalogs/catalog.types.ts +19 -0
  32. package/src/accounting/Catalogs/index.ts +2 -0
  33. package/src/customers/Customers/GetMany/Response.ts +1 -1
@@ -1,2 +1,2 @@
1
- export interface AccountingCatalogsCreateManyRequest {
2
- }
1
+ import { AccountingCatalogsCreateSingleRequest } from '../CreateSingle/Request';
2
+ export type AccountingCatalogsCreateManyRequest = Array<AccountingCatalogsCreateSingleRequest>;
@@ -1,2 +1,2 @@
1
- export interface AccountingCatalogsCreateManyResponse {
2
- }
1
+ import { ManyResponse } from '../../../interfaces';
2
+ export type ServicesCreateManyResponse = ManyResponse;
@@ -0,0 +1,2 @@
1
+ import { AccountingCatalogsRequest } from '../catalog.types';
2
+ export type AccountingCatalogsCreateSingleRequest = AccountingCatalogsRequest;
@@ -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/Catalogs/CreateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type AccountingCatalogsCreateSingleResponse = SingleResponse;
@@ -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/Catalogs/CreateSingle/Response.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export interface AccountingCatalogsDeleteSingleResponse {
2
- }
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type AccountingCatalogsDeleteSingleResponse = SingleResponse;
@@ -1,2 +1,2 @@
1
- export interface AccountingCatalogsGetManyRequest {
2
- }
1
+ import { GetManyRequest } from '../../../interfaces';
2
+ export type AccountingCatalogsGetManyRequest = GetManyRequest;
@@ -1,2 +1,7 @@
1
- export interface AccountingCatalogsGetManyResponse {
2
- }
1
+ import { GetManyResponse } from '../../../interfaces';
2
+ import { AccountingCatalogsResponse } from '../catalog.types';
3
+ export type AccountingCatalogsGetManyResponse = GetManyResponse & {
4
+ data: Array<AccountingCatalogsResponse & {
5
+ index: number;
6
+ }>;
7
+ };
@@ -1,2 +1,2 @@
1
- export interface AccountingCatalogsUpdateSingleRequest {
2
- }
1
+ import { AccountingCatalogsRequest } from '../catalog.types';
2
+ export type AccountingCatalogsUpdateSingleRequest = Partial<AccountingCatalogsRequest>;
@@ -1,2 +1,2 @@
1
- export interface AccountingCatalogsUpdateSingleResponse {
2
- }
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type AccountingCatalogsUpdateSingleResponse = SingleResponse;
@@ -0,0 +1,15 @@
1
+ export type AccountingCatalogs = {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ description?: string;
6
+ level: number;
7
+ isParent: boolean;
8
+ isAcreedora: boolean;
9
+ isBalance: boolean;
10
+ parentCatalog: AccountingCatalogs;
11
+ };
12
+ export type AccountingCatalogsRequest = Omit<AccountingCatalogs, 'id' | 'level' | 'isParent' | 'parentCatalog'> & {
13
+ parentCatalog: string;
14
+ };
15
+ export type AccountingCatalogsResponse = AccountingCatalogs;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=catalog.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.types.js","sourceRoot":"","sources":["../../../src/accounting/Catalogs/catalog.types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,7 @@
1
1
  export * from './CreateMany/Request';
2
2
  export * from './CreateMany/Response';
3
+ export * from './CreateSingle/Request';
4
+ export * from './CreateSingle/Response';
3
5
  export * from './DeleteSingle/Response';
4
6
  export * from './GetMany/Request';
5
7
  export * from './GetMany/Response';
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateMany/Request"), exports);
18
18
  __exportStar(require("./CreateMany/Response"), exports);
19
+ __exportStar(require("./CreateSingle/Request"), exports);
20
+ __exportStar(require("./CreateSingle/Response"), exports);
19
21
  __exportStar(require("./DeleteSingle/Response"), exports);
20
22
  __exportStar(require("./GetMany/Request"), exports);
21
23
  __exportStar(require("./GetMany/Response"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Catalogs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,yDAAsC;AACtC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Catalogs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,yDAAsC;AACtC,0DAAuC"}
@@ -1,5 +1,7 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
2
  import { CustomersResponse } from '../customers.types';
3
3
  export type CustomersGetManyResponse = GetManyResponse & {
4
- data: Array<Pick<CustomersResponse, 'id' | 'name' | 'personType' | 'nit' | 'nrc' | 'active'>>;
4
+ data: Array<CustomersResponse & {
5
+ index: number;
6
+ }>;
5
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.33",
3
+ "version": "0.2.35",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1 +1,3 @@
1
- export interface AccountingCatalogsCreateManyRequest {}
1
+ import { AccountingCatalogsCreateSingleRequest } from '../CreateSingle/Request'
2
+
3
+ export type AccountingCatalogsCreateManyRequest = Array<AccountingCatalogsCreateSingleRequest>
@@ -1 +1,3 @@
1
- export interface AccountingCatalogsCreateManyResponse {}
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type ServicesCreateManyResponse = ManyResponse
@@ -0,0 +1,3 @@
1
+ import { AccountingCatalogsRequest } from '../catalog.types'
2
+
3
+ export type AccountingCatalogsCreateSingleRequest = AccountingCatalogsRequest
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type AccountingCatalogsCreateSingleResponse = SingleResponse
@@ -1 +1,3 @@
1
- export interface AccountingCatalogsDeleteSingleResponse {}
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type AccountingCatalogsDeleteSingleResponse = SingleResponse
@@ -1 +1,3 @@
1
- export interface AccountingCatalogsGetManyRequest {}
1
+ import { GetManyRequest } from '../../../interfaces'
2
+
3
+ export type AccountingCatalogsGetManyRequest = GetManyRequest
@@ -1 +1,6 @@
1
- export interface AccountingCatalogsGetManyResponse {}
1
+ import { GetManyResponse } from '../../../interfaces'
2
+ import { AccountingCatalogsResponse } from '../catalog.types'
3
+
4
+ export type AccountingCatalogsGetManyResponse = GetManyResponse & {
5
+ data: Array<AccountingCatalogsResponse & { index: number }>
6
+ }
@@ -1 +1,3 @@
1
- export interface AccountingCatalogsUpdateSingleRequest {}
1
+ import { AccountingCatalogsRequest } from '../catalog.types'
2
+
3
+ export type AccountingCatalogsUpdateSingleRequest = Partial<AccountingCatalogsRequest>
@@ -1 +1,3 @@
1
- export interface AccountingCatalogsUpdateSingleResponse {}
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type AccountingCatalogsUpdateSingleResponse = SingleResponse
@@ -0,0 +1,19 @@
1
+ export type AccountingCatalogs = {
2
+ id: string
3
+ code: string
4
+ name: string
5
+ description?: string
6
+ level: number
7
+ isParent: boolean
8
+ isAcreedora: boolean
9
+ isBalance: boolean
10
+ parentCatalog: AccountingCatalogs
11
+ }
12
+
13
+ export type AccountingCatalogsRequest = Omit<
14
+ AccountingCatalogs,
15
+ 'id' | 'level' | 'isParent' | 'parentCatalog'
16
+ > & {
17
+ parentCatalog: string
18
+ }
19
+ export type AccountingCatalogsResponse = AccountingCatalogs
@@ -1,5 +1,7 @@
1
1
  export * from './CreateMany/Request'
2
2
  export * from './CreateMany/Response'
3
+ export * from './CreateSingle/Request'
4
+ export * from './CreateSingle/Response'
3
5
  export * from './DeleteSingle/Response'
4
6
  export * from './GetMany/Request'
5
7
  export * from './GetMany/Response'
@@ -2,5 +2,5 @@ import { GetManyResponse } from '../../../interfaces'
2
2
  import { CustomersResponse } from '../customers.types'
3
3
 
4
4
  export type CustomersGetManyResponse = GetManyResponse & {
5
- data: Array<Pick<CustomersResponse, 'id' | 'name' | 'personType' | 'nit' | 'nrc' | 'active'>>
5
+ data: Array<CustomersResponse & { index: number }>
6
6
  }