@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.
- package/lib/accounting/Catalogs/CreateMany/Request.d.ts +2 -2
- package/lib/accounting/Catalogs/CreateMany/Response.d.ts +2 -2
- package/lib/accounting/Catalogs/CreateSingle/Request.d.ts +2 -0
- package/lib/accounting/Catalogs/CreateSingle/Request.js +3 -0
- package/lib/accounting/Catalogs/CreateSingle/Request.js.map +1 -0
- package/lib/accounting/Catalogs/CreateSingle/Response.d.ts +2 -0
- package/lib/accounting/Catalogs/CreateSingle/Response.js +3 -0
- package/lib/accounting/Catalogs/CreateSingle/Response.js.map +1 -0
- package/lib/accounting/Catalogs/DeleteSingle/Response.d.ts +2 -2
- package/lib/accounting/Catalogs/GetMany/Request.d.ts +2 -2
- package/lib/accounting/Catalogs/GetMany/Response.d.ts +7 -2
- package/lib/accounting/Catalogs/UpdateSingle/Request.d.ts +2 -2
- package/lib/accounting/Catalogs/UpdateSingle/Response.d.ts +2 -2
- package/lib/accounting/Catalogs/catalog.types.d.ts +15 -0
- package/lib/accounting/Catalogs/catalog.types.js +3 -0
- package/lib/accounting/Catalogs/catalog.types.js.map +1 -0
- package/lib/accounting/Catalogs/index.d.ts +2 -0
- package/lib/accounting/Catalogs/index.js +2 -0
- package/lib/accounting/Catalogs/index.js.map +1 -1
- package/lib/customers/Customers/GetMany/Response.d.ts +3 -1
- package/package.json +1 -1
- package/src/accounting/Catalogs/CreateMany/Request.ts +3 -1
- package/src/accounting/Catalogs/CreateMany/Response.ts +3 -1
- package/src/accounting/Catalogs/CreateSingle/Request.ts +3 -0
- package/src/accounting/Catalogs/CreateSingle/Response.ts +3 -0
- package/src/accounting/Catalogs/DeleteSingle/Response.ts +3 -1
- package/src/accounting/Catalogs/GetMany/Request.ts +3 -1
- package/src/accounting/Catalogs/GetMany/Response.ts +6 -1
- package/src/accounting/Catalogs/UpdateSingle/Request.ts +3 -1
- package/src/accounting/Catalogs/UpdateSingle/Response.ts +3 -1
- package/src/accounting/Catalogs/catalog.types.ts +19 -0
- package/src/accounting/Catalogs/index.ts +2 -0
- package/src/customers/Customers/GetMany/Response.ts +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { AccountingCatalogsCreateSingleRequest } from '../CreateSingle/Request';
|
|
2
|
+
export type AccountingCatalogsCreateManyRequest = Array<AccountingCatalogsCreateSingleRequest>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ManyResponse } from '../../../interfaces';
|
|
2
|
+
export type ServicesCreateManyResponse = ManyResponse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/accounting/Catalogs/CreateSingle/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/accounting/Catalogs/CreateSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { SingleResponse } from '../../../interfaces';
|
|
2
|
+
export type AccountingCatalogsDeleteSingleResponse = SingleResponse;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { GetManyRequest } from '../../../interfaces';
|
|
2
|
+
export type AccountingCatalogsGetManyRequest = GetManyRequest;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
2
|
-
|
|
1
|
+
import { AccountingCatalogsRequest } from '../catalog.types';
|
|
2
|
+
export type AccountingCatalogsUpdateSingleRequest = Partial<AccountingCatalogsRequest>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
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 @@
|
|
|
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<
|
|
4
|
+
data: Array<CustomersResponse & {
|
|
5
|
+
index: number;
|
|
6
|
+
}>;
|
|
5
7
|
};
|
package/package.json
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { GetManyResponse } from '../../../interfaces'
|
|
2
|
+
import { AccountingCatalogsResponse } from '../catalog.types'
|
|
3
|
+
|
|
4
|
+
export type AccountingCatalogsGetManyResponse = GetManyResponse & {
|
|
5
|
+
data: Array<AccountingCatalogsResponse & { index: number }>
|
|
6
|
+
}
|
|
@@ -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<
|
|
5
|
+
data: Array<CustomersResponse & { index: number }>
|
|
6
6
|
}
|