@openbox/shared-types 0.2.30 → 0.2.32
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/customers/Customers/GetMany/Response.d.ts +2 -2
- package/lib/customers/Customers/customers.interfaces.d.ts +3 -1
- package/lib/customers/Customers/index.d.ts +1 -0
- package/lib/customers/Customers/index.js +1 -0
- package/lib/customers/Customers/index.js.map +1 -1
- package/lib/system/Directory/CreateSingle/Request.d.ts +2 -0
- package/lib/system/Directory/CreateSingle/Request.js +3 -0
- package/lib/system/Directory/CreateSingle/Request.js.map +1 -0
- package/lib/system/Directory/CreateSingle/Response.d.ts +2 -0
- package/lib/system/Directory/CreateSingle/Response.js +3 -0
- package/lib/system/Directory/CreateSingle/Response.js.map +1 -0
- package/lib/system/Directory/DeleteSingle/Response.d.ts +2 -0
- package/lib/system/Directory/DeleteSingle/Response.js +3 -0
- package/lib/system/Directory/DeleteSingle/Response.js.map +1 -0
- package/lib/system/Directory/GetMany/Request.d.ts +6 -0
- package/lib/system/Directory/GetMany/Request.js +3 -0
- package/lib/system/Directory/GetMany/Request.js.map +1 -0
- package/lib/system/Directory/GetMany/Response.d.ts +7 -0
- package/lib/system/Directory/GetMany/Response.js +3 -0
- package/lib/system/Directory/GetMany/Response.js.map +1 -0
- package/lib/system/Directory/UpdateSingle/Request.d.ts +2 -0
- package/lib/system/Directory/UpdateSingle/Request.js +3 -0
- package/lib/system/Directory/UpdateSingle/Request.js.map +1 -0
- package/lib/system/Directory/UpdateSingle/Response.d.ts +2 -0
- package/lib/system/Directory/UpdateSingle/Response.js +3 -0
- package/lib/system/Directory/UpdateSingle/Response.js.map +1 -0
- package/lib/system/Directory/index.d.ts +7 -0
- package/lib/system/Directory/index.js +24 -0
- package/lib/system/Directory/index.js.map +1 -0
- package/lib/system/Directory/system.directory.interfaces.d.ts +6 -4
- package/lib/system/index.d.ts +1 -0
- package/lib/system/index.js +1 -0
- package/lib/system/index.js.map +1 -1
- package/package.json +1 -1
- package/src/customers/Customers/GetMany/Response.ts +2 -2
- package/src/customers/Customers/customers.interfaces.ts +3 -1
- package/src/customers/Customers/index.ts +1 -0
- package/src/system/Directory/CreateSingle/Request.ts +3 -0
- package/src/system/Directory/CreateSingle/Response.ts +3 -0
- package/src/system/Directory/DeleteSingle/Response.ts +3 -0
- package/src/system/Directory/GetMany/Request.ts +7 -0
- package/src/system/Directory/GetMany/Response.ts +6 -0
- package/src/system/Directory/UpdateSingle/Request.ts +3 -0
- package/src/system/Directory/UpdateSingle/Response.ts +3 -0
- package/src/system/Directory/index.ts +7 -0
- package/src/system/Directory/system.directory.interfaces.ts +15 -4
- package/src/system/index.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces';
|
|
2
2
|
import { CustomersResponse } from '../customers.interfaces';
|
|
3
|
-
export type
|
|
4
|
-
data: Array<CustomersResponse
|
|
3
|
+
export type CustomersGetManyResponse = GetManyResponse & {
|
|
4
|
+
data: Array<Pick<CustomersResponse, 'id' | 'name' | 'personType' | 'nit' | 'nrc' | 'active'>>;
|
|
5
5
|
};
|
|
@@ -3,6 +3,7 @@ import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetS
|
|
|
3
3
|
import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response';
|
|
4
4
|
import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response';
|
|
5
5
|
import { CustomersBranchesCreateSingleRequest } from '../Branches';
|
|
6
|
+
import { CustomersBranchesResponse } from '../Branches/customers.branches.interfaces';
|
|
6
7
|
export type Customers = {
|
|
7
8
|
id: string;
|
|
8
9
|
name: string;
|
|
@@ -29,8 +30,9 @@ export type Customers = {
|
|
|
29
30
|
personType: SystemPersonTypeGetSingleResponse;
|
|
30
31
|
customerType: SystemSellingTypeGetSingleResponse;
|
|
31
32
|
customerTypeNatural: SystemNaturalTypesGetSingleResponse;
|
|
33
|
+
branch?: CustomersBranchesResponse;
|
|
32
34
|
};
|
|
33
|
-
export type CustomersRequest = Omit<Customers, 'id' | 'customerTaxerType' | 'personType' | 'customerType' | 'customerTypeNatural'> & {
|
|
35
|
+
export type CustomersRequest = Omit<Customers, 'id' | 'customerTaxerType' | 'personType' | 'customerType' | 'customerTypeNatural' | 'branch'> & {
|
|
34
36
|
customerTaxerType: number;
|
|
35
37
|
personType: number;
|
|
36
38
|
customerType: number;
|
|
@@ -10,4 +10,5 @@ export * from './UpdateManyStatuses/Request';
|
|
|
10
10
|
export * from './UpdateManyStatuses/Response';
|
|
11
11
|
export * from './UpdateSingle/Request';
|
|
12
12
|
export * from './UpdateSingle/Response';
|
|
13
|
+
export * from './UpdateSingleStatus/Request';
|
|
13
14
|
export * from './UpdateSingleStatus/Response';
|
|
@@ -26,5 +26,6 @@ __exportStar(require("./UpdateManyStatuses/Request"), exports);
|
|
|
26
26
|
__exportStar(require("./UpdateManyStatuses/Response"), exports);
|
|
27
27
|
__exportStar(require("./UpdateSingle/Request"), exports);
|
|
28
28
|
__exportStar(require("./UpdateSingle/Response"), exports);
|
|
29
|
+
__exportStar(require("./UpdateSingleStatus/Request"), exports);
|
|
29
30
|
__exportStar(require("./UpdateSingleStatus/Response"), exports);
|
|
30
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/Customers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,gEAA6C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/Customers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/system/Directory/CreateSingle/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/system/Directory/CreateSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/system/Directory/DeleteSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/system/Directory/GetMany/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/system/Directory/GetMany/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/system/Directory/UpdateSingle/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/system/Directory/UpdateSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './CreateSingle/Request';
|
|
2
|
+
export * from './CreateSingle/Response';
|
|
3
|
+
export * from './DeleteSingle/Response';
|
|
4
|
+
export * from './GetMany/Request';
|
|
5
|
+
export * from './GetMany/Response';
|
|
6
|
+
export * from './UpdateSingle/Request';
|
|
7
|
+
export * from './UpdateSingle/Response';
|
|
@@ -0,0 +1,24 @@
|
|
|
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("./CreateSingle/Request"), exports);
|
|
18
|
+
__exportStar(require("./CreateSingle/Response"), exports);
|
|
19
|
+
__exportStar(require("./DeleteSingle/Response"), exports);
|
|
20
|
+
__exportStar(require("./GetMany/Request"), exports);
|
|
21
|
+
__exportStar(require("./GetMany/Response"), exports);
|
|
22
|
+
__exportStar(require("./UpdateSingle/Request"), exports);
|
|
23
|
+
__exportStar(require("./UpdateSingle/Response"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Directory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,yDAAsC;AACtC,0DAAuC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.interfaces';
|
|
2
2
|
import { CustomersResponse } from '../../customers/Customers/customers.interfaces';
|
|
3
3
|
import { InvoicesSellersResponse } from '../../invoices/Sellers/invoices.sellers.interface';
|
|
4
|
+
export type SystemDirectoryType = 'phone' | 'cellphone' | 'email';
|
|
5
|
+
type SystemDirectoryEntityType = 'warehouse' | 'company' | 'customer' | 'customerBranch' | 'invoicesSeller' | 'legalJurisdiction' | 'appointee' | 'assignee';
|
|
4
6
|
export type SystemDirectory = {
|
|
5
7
|
id: string;
|
|
6
|
-
type:
|
|
8
|
+
type: SystemDirectoryType;
|
|
7
9
|
value: string;
|
|
8
10
|
hasWhatsapp?: boolean;
|
|
9
11
|
customer: CustomersResponse;
|
|
@@ -11,8 +13,8 @@ export type SystemDirectory = {
|
|
|
11
13
|
invoicesSellers: InvoicesSellersResponse;
|
|
12
14
|
};
|
|
13
15
|
export type SystemDirectoryRequest = Omit<SystemDirectory, 'id' | 'customer' | 'customerBranch' | 'invoicesSellers'> & {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
invoicesSellers: 'string';
|
|
16
|
+
entityType: SystemDirectoryEntityType;
|
|
17
|
+
entityId: string;
|
|
17
18
|
};
|
|
18
19
|
export type SystemDirectoryResponse = SystemDirectory;
|
|
20
|
+
export {};
|
package/lib/system/index.d.ts
CHANGED
package/lib/system/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Cities/"), exports);
|
|
18
18
|
__exportStar(require("./Countries/"), exports);
|
|
19
|
+
__exportStar(require("./Directory/"), exports);
|
|
19
20
|
__exportStar(require("./NaturalTypes"), exports);
|
|
20
21
|
__exportStar(require("./PersonTypes/"), exports);
|
|
21
22
|
__exportStar(require("./SellingTypes/"), exports);
|
package/lib/system/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAC5B,iDAA8B;AAC9B,iDAA8B;AAC9B,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAC5B,+CAA4B;AAC5B,iDAA8B;AAC9B,iDAA8B;AAC9B,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces'
|
|
2
2
|
import { CustomersResponse } from '../customers.interfaces'
|
|
3
3
|
|
|
4
|
-
export type
|
|
5
|
-
data: Array<CustomersResponse
|
|
4
|
+
export type CustomersGetManyResponse = GetManyResponse & {
|
|
5
|
+
data: Array<Pick<CustomersResponse, 'id' | 'name' | 'personType' | 'nit' | 'nrc' | 'active'>>
|
|
6
6
|
}
|
|
@@ -3,6 +3,7 @@ import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetS
|
|
|
3
3
|
import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response'
|
|
4
4
|
import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response'
|
|
5
5
|
import { CustomersBranchesCreateSingleRequest } from '../Branches'
|
|
6
|
+
import { CustomersBranchesResponse } from '../Branches/customers.branches.interfaces'
|
|
6
7
|
|
|
7
8
|
export type Customers = {
|
|
8
9
|
id: string
|
|
@@ -30,10 +31,11 @@ export type Customers = {
|
|
|
30
31
|
personType: SystemPersonTypeGetSingleResponse
|
|
31
32
|
customerType: SystemSellingTypeGetSingleResponse
|
|
32
33
|
customerTypeNatural: SystemNaturalTypesGetSingleResponse
|
|
34
|
+
branch?: CustomersBranchesResponse
|
|
33
35
|
}
|
|
34
36
|
export type CustomersRequest = Omit<
|
|
35
37
|
Customers,
|
|
36
|
-
'id' | 'customerTaxerType' | 'personType' | 'customerType' | 'customerTypeNatural'
|
|
38
|
+
'id' | 'customerTaxerType' | 'personType' | 'customerType' | 'customerTypeNatural' | 'branch'
|
|
37
39
|
> & {
|
|
38
40
|
customerTaxerType: number
|
|
39
41
|
personType: number
|
|
@@ -10,4 +10,5 @@ export * from './UpdateManyStatuses/Request'
|
|
|
10
10
|
export * from './UpdateManyStatuses/Response'
|
|
11
11
|
export * from './UpdateSingle/Request'
|
|
12
12
|
export * from './UpdateSingle/Response'
|
|
13
|
+
export * from './UpdateSingleStatus/Request'
|
|
13
14
|
export * from './UpdateSingleStatus/Response'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './CreateSingle/Request'
|
|
2
|
+
export * from './CreateSingle/Response'
|
|
3
|
+
export * from './DeleteSingle/Response'
|
|
4
|
+
export * from './GetMany/Request'
|
|
5
|
+
export * from './GetMany/Response'
|
|
6
|
+
export * from './UpdateSingle/Request'
|
|
7
|
+
export * from './UpdateSingle/Response'
|
|
@@ -2,9 +2,21 @@ import { CustomersBranchesResponse } from '../../customers/Branches/customers.br
|
|
|
2
2
|
import { CustomersResponse } from '../../customers/Customers/customers.interfaces'
|
|
3
3
|
import { InvoicesSellersResponse } from '../../invoices/Sellers/invoices.sellers.interface'
|
|
4
4
|
|
|
5
|
+
export type SystemDirectoryType = 'phone' | 'cellphone' | 'email'
|
|
6
|
+
|
|
7
|
+
type SystemDirectoryEntityType =
|
|
8
|
+
| 'warehouse'
|
|
9
|
+
| 'company'
|
|
10
|
+
| 'customer'
|
|
11
|
+
| 'customerBranch'
|
|
12
|
+
| 'invoicesSeller'
|
|
13
|
+
| 'legalJurisdiction'
|
|
14
|
+
| 'appointee'
|
|
15
|
+
| 'assignee'
|
|
16
|
+
|
|
5
17
|
export type SystemDirectory = {
|
|
6
18
|
id: string
|
|
7
|
-
type:
|
|
19
|
+
type: SystemDirectoryType
|
|
8
20
|
value: string
|
|
9
21
|
hasWhatsapp?: boolean
|
|
10
22
|
// warehouse: InventoryWarehousesEntity
|
|
@@ -20,8 +32,7 @@ export type SystemDirectoryRequest = Omit<
|
|
|
20
32
|
SystemDirectory,
|
|
21
33
|
'id' | 'customer' | 'customerBranch' | 'invoicesSellers'
|
|
22
34
|
> & {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
invoicesSellers: 'string'
|
|
35
|
+
entityType: SystemDirectoryEntityType
|
|
36
|
+
entityId: string
|
|
26
37
|
}
|
|
27
38
|
export type SystemDirectoryResponse = SystemDirectory
|