@openbox/shared-types 0.2.53 → 0.2.55
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/Branches/customers.branches.types.d.ts +6 -1
- package/lib/customers/Customers/customers.types.d.ts +3 -1
- package/lib/system/system.enums.d.ts +42 -0
- package/lib/system/system.enums.js +13 -1
- package/lib/system/system.enums.js.map +1 -1
- package/package.json +1 -1
- package/src/customers/Branches/customers.branches.types.ts +6 -3
- package/src/customers/Customers/customers.types.ts +3 -1
- package/src/system/system.enums.ts +13 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SystemCitiesResponse } from '../../system/Cities/system.cities.types';
|
|
2
2
|
import { SystemCountriesResponse } from '../../system/Countries/system.countries.types';
|
|
3
|
+
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
|
|
3
4
|
import { SystemStatesResponse } from '../../system/States/system.states.types';
|
|
4
5
|
import { CustomersResponse } from '../Customers/customers.types';
|
|
5
6
|
export type CustomersBranches = {
|
|
@@ -13,11 +14,15 @@ export type CustomersBranches = {
|
|
|
13
14
|
city: SystemCitiesResponse;
|
|
14
15
|
country: SystemCountriesResponse;
|
|
15
16
|
state: SystemStatesResponse;
|
|
17
|
+
directory: SystemDirectoryResponse[];
|
|
16
18
|
};
|
|
17
|
-
export type CustomersBranchesRequest = Omit<CustomersBranches, 'id' | 'city' | 'country' | 'state' | 'customer'> & {
|
|
19
|
+
export type CustomersBranchesRequest = Omit<CustomersBranches, 'id' | 'city' | 'country' | 'state' | 'customer' | 'directory'> & {
|
|
18
20
|
customer: string;
|
|
19
21
|
city: number;
|
|
20
22
|
country: number;
|
|
21
23
|
state: number;
|
|
24
|
+
phone: string;
|
|
25
|
+
email: string;
|
|
26
|
+
cellphone: string;
|
|
22
27
|
};
|
|
23
28
|
export type CustomersBranchesResponse = CustomersBranches;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
|
|
1
2
|
import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response';
|
|
2
3
|
import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
|
|
3
4
|
import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response';
|
|
@@ -31,8 +32,9 @@ export type Customers = {
|
|
|
31
32
|
personTypeNatural: SystemNaturalTypesGetSingleResponse;
|
|
32
33
|
taxerType: SystemTaxerTypesGetSingleResponse;
|
|
33
34
|
branch?: CustomersBranchesResponse;
|
|
35
|
+
directory: SystemDirectoryResponse[];
|
|
34
36
|
};
|
|
35
|
-
export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch'> & {
|
|
37
|
+
export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch' | 'directory'> & {
|
|
36
38
|
type: number;
|
|
37
39
|
personType: number;
|
|
38
40
|
taxerType?: number;
|
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
export declare const SystemModules: {
|
|
2
|
+
Invoices: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
Accounting: {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
Services: {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
Providers: {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
Customers: {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
Taxes: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
26
|
+
Echarges: {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
Purchases: {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
Receibable: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
};
|
|
38
|
+
Legal: {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
1
43
|
export declare enum SystemTaxerTypes {
|
|
2
44
|
Small = 1,
|
|
3
45
|
Medium = 2,
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SystemSellingTypes = exports.SystemNaturalTypes = exports.SystemPersonTypes = exports.SystemTaxerTypes = void 0;
|
|
3
|
+
exports.SystemSellingTypes = exports.SystemNaturalTypes = exports.SystemPersonTypes = exports.SystemTaxerTypes = exports.SystemModules = void 0;
|
|
4
|
+
exports.SystemModules = {
|
|
5
|
+
Invoices: { id: 'cfb8addb-541b-482f-8fa1-dfe5db03fdf4', name: 'Invoices' },
|
|
6
|
+
Accounting: { id: 'a98b98e6-b2d5-42a3-853d-9516f64eade8', name: 'Accounting' },
|
|
7
|
+
Services: { id: '0f88f2ea-aae9-44ad-8df0-0ee3debbf167', name: 'Services' },
|
|
8
|
+
Providers: { id: 'f6000cbb-1e6d-4f7d-a7cc-cadd78d23076', name: 'Providers' },
|
|
9
|
+
Customers: { id: '9ff0b6f4-9c58-475b-b2dd-5eea6d7b66aa', name: 'Customers' },
|
|
10
|
+
Taxes: { id: '53a36e54-bab2-4824-9e43-b40efab8bab9', name: 'Taxes' },
|
|
11
|
+
Echarges: { id: '09a5c668-ab54-441e-9fb2-d24b36ae202e', name: 'Echarges' },
|
|
12
|
+
Purchases: { id: 'cf5e4b29-f09c-438a-8d82-2ef482a9a461', name: 'Purchases' },
|
|
13
|
+
Receibable: { id: '9c5dbbf2-ba8a-443d-b1ac-8bf23ea9a8e5', name: 'Receibable' },
|
|
14
|
+
Legal: { id: '2f39ef4d-768f-4c15-9472-9055c6c4a2ae', name: 'Legal' },
|
|
15
|
+
};
|
|
4
16
|
var SystemTaxerTypes;
|
|
5
17
|
(function (SystemTaxerTypes) {
|
|
6
18
|
SystemTaxerTypes[SystemTaxerTypes["Small"] = 1] = "Small";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.enums.js","sourceRoot":"","sources":["../../src/system/system.enums.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"system.enums.js","sourceRoot":"","sources":["../../src/system/system.enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,QAAQ,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,UAAU,EAAE;IAC1E,UAAU,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,YAAY,EAAE;IAC9E,QAAQ,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,UAAU,EAAE;IAC1E,SAAS,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,WAAW,EAAE;IAC5E,SAAS,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,WAAW,EAAE;IAC5E,KAAK,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,OAAO,EAAE;IACpE,QAAQ,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,UAAU,EAAE;IAC1E,SAAS,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,WAAW,EAAE;IAC5E,UAAU,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,YAAY,EAAE;IAC9E,KAAK,EAAE,EAAE,EAAE,EAAE,sCAAsC,EAAE,IAAI,EAAE,OAAO,EAAE;CACrE,CAAA;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,yDAAS,CAAA;IACT,2DAAU,CAAA;IACV,yDAAS,CAAA;AACX,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,iEAAY,CAAA;IACZ,+DAAW,CAAA;IACX,qEAAc,CAAA;AAChB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,2EAAgB,CAAA;IAChB,uEAAc,CAAA;AAChB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,mEAAY,CAAA;IACZ,+DAAU,CAAA;IACV,iEAAW,CAAA;AACb,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SystemCitiesResponse } from '../../system/Cities/system.cities.types'
|
|
2
2
|
import { SystemCountriesResponse } from '../../system/Countries/system.countries.types'
|
|
3
|
+
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
|
|
3
4
|
import { SystemStatesResponse } from '../../system/States/system.states.types'
|
|
4
5
|
import { CustomersResponse } from '../Customers/customers.types'
|
|
5
6
|
|
|
@@ -11,8 +12,6 @@ import { CustomersResponse } from '../Customers/customers.types'
|
|
|
11
12
|
export type CustomersBranches = {
|
|
12
13
|
id: string
|
|
13
14
|
name: string
|
|
14
|
-
// contactName: string
|
|
15
|
-
// contactInfo: CustomerBranchesContactInfo
|
|
16
15
|
address1: string
|
|
17
16
|
address2?: string
|
|
18
17
|
zipcode?: string
|
|
@@ -21,15 +20,19 @@ export type CustomersBranches = {
|
|
|
21
20
|
city: SystemCitiesResponse
|
|
22
21
|
country: SystemCountriesResponse
|
|
23
22
|
state: SystemStatesResponse
|
|
23
|
+
directory: SystemDirectoryResponse[]
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type CustomersBranchesRequest = Omit<
|
|
27
27
|
CustomersBranches,
|
|
28
|
-
'id' | 'city' | 'country' | 'state' | 'customer'
|
|
28
|
+
'id' | 'city' | 'country' | 'state' | 'customer' | 'directory'
|
|
29
29
|
> & {
|
|
30
30
|
customer: string
|
|
31
31
|
city: number
|
|
32
32
|
country: number
|
|
33
33
|
state: number
|
|
34
|
+
phone: string
|
|
35
|
+
email: string
|
|
36
|
+
cellphone: string
|
|
34
37
|
}
|
|
35
38
|
export type CustomersBranchesResponse = CustomersBranches
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
|
|
1
2
|
import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response'
|
|
2
3
|
import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response'
|
|
3
4
|
import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response'
|
|
@@ -32,10 +33,11 @@ export type Customers = {
|
|
|
32
33
|
personTypeNatural: SystemNaturalTypesGetSingleResponse
|
|
33
34
|
taxerType: SystemTaxerTypesGetSingleResponse
|
|
34
35
|
branch?: CustomersBranchesResponse
|
|
36
|
+
directory: SystemDirectoryResponse[]
|
|
35
37
|
}
|
|
36
38
|
export type CustomersRequest = Omit<
|
|
37
39
|
Customers,
|
|
38
|
-
'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch'
|
|
40
|
+
'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch' | 'directory'
|
|
39
41
|
> & {
|
|
40
42
|
type: number
|
|
41
43
|
personType: number
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
export const SystemModules = {
|
|
2
|
+
Invoices: { id: 'cfb8addb-541b-482f-8fa1-dfe5db03fdf4', name: 'Invoices' },
|
|
3
|
+
Accounting: { id: 'a98b98e6-b2d5-42a3-853d-9516f64eade8', name: 'Accounting' },
|
|
4
|
+
Services: { id: '0f88f2ea-aae9-44ad-8df0-0ee3debbf167', name: 'Services' },
|
|
5
|
+
Providers: { id: 'f6000cbb-1e6d-4f7d-a7cc-cadd78d23076', name: 'Providers' },
|
|
6
|
+
Customers: { id: '9ff0b6f4-9c58-475b-b2dd-5eea6d7b66aa', name: 'Customers' },
|
|
7
|
+
Taxes: { id: '53a36e54-bab2-4824-9e43-b40efab8bab9', name: 'Taxes' },
|
|
8
|
+
Echarges: { id: '09a5c668-ab54-441e-9fb2-d24b36ae202e', name: 'Echarges' },
|
|
9
|
+
Purchases: { id: 'cf5e4b29-f09c-438a-8d82-2ef482a9a461', name: 'Purchases' },
|
|
10
|
+
Receibable: { id: '9c5dbbf2-ba8a-443d-b1ac-8bf23ea9a8e5', name: 'Receibable' },
|
|
11
|
+
Legal: { id: '2f39ef4d-768f-4c15-9472-9055c6c4a2ae', name: 'Legal' },
|
|
12
|
+
}
|
|
13
|
+
|
|
1
14
|
export enum SystemTaxerTypes {
|
|
2
15
|
Small = 1,
|
|
3
16
|
Medium = 2,
|