@openbox/shared-types 0.4.61 → 0.4.63
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/customers.types.d.ts +8 -4
- package/lib/management/Branch/GetCurrent/index.d.ts +2 -0
- package/lib/{system/FOREIGNER/Fields/system.foreigner.fields.types.js → management/Branch/GetCurrent/index.js} +1 -1
- package/lib/management/Branch/GetCurrent/index.js.map +1 -0
- package/lib/management/Branch/index.d.ts +2 -0
- package/lib/{system/FOREIGNER → management/Branch}/index.js +2 -1
- package/lib/management/Branch/index.js.map +1 -0
- package/lib/management/Branch/management.branch.type.d.ts +6 -0
- package/lib/management/Branch/management.branch.type.js +3 -0
- package/lib/management/Branch/management.branch.type.js.map +1 -0
- package/lib/management/Company/UpdateCurrent/Request.d.ts +2 -2
- package/lib/management/Company/management.company.type.d.ts +2 -2
- package/lib/management/index.d.ts +1 -0
- package/lib/management/index.js +1 -0
- package/lib/management/index.js.map +1 -1
- package/lib/system/SV/Fields/system.sv.fields.types.d.ts +0 -3
- package/lib/system/index.d.ts +0 -1
- package/lib/system/index.js +0 -1
- package/lib/system/index.js.map +1 -1
- package/package.json +1 -1
- package/src/System/SV/Fields/system.sv.fields.types.ts +0 -3
- package/src/System/index.ts +0 -1
- package/src/customers/Customers/customers.types.ts +7 -12
- package/src/management/Branch/GetCurrent/index.ts +3 -0
- package/src/management/Branch/index.ts +2 -0
- package/src/management/Branch/management.branch.type.ts +7 -0
- package/src/management/Company/UpdateCurrent/Request.ts +2 -4
- package/src/management/Company/management.company.type.ts +2 -2
- package/src/management/index.ts +1 -0
- package/lib/system/FOREIGNER/Fields/index.d.ts +0 -1
- package/lib/system/FOREIGNER/Fields/index.js +0 -18
- package/lib/system/FOREIGNER/Fields/index.js.map +0 -1
- package/lib/system/FOREIGNER/Fields/system.foreigner.fields.types.d.ts +0 -8
- package/lib/system/FOREIGNER/Fields/system.foreigner.fields.types.js.map +0 -1
- package/lib/system/FOREIGNER/index.d.ts +0 -1
- package/lib/system/FOREIGNER/index.js.map +0 -1
- package/src/System/FOREIGNER/Fields/index.ts +0 -1
- package/src/System/FOREIGNER/Fields/system.foreigner.fields.types.ts +0 -8
- package/src/System/FOREIGNER/index.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SystemDirectoryCreateSingleRequest,
|
|
1
|
+
import { SystemDirectoryCreateSingleRequest, SystemSvFields, SystemSvFieldsRequest } from '../../system';
|
|
2
2
|
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
|
|
3
3
|
import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response';
|
|
4
4
|
import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
|
|
@@ -14,22 +14,26 @@ export type Customers = {
|
|
|
14
14
|
lastname2?: string;
|
|
15
15
|
lastname3?: string;
|
|
16
16
|
shortName: string;
|
|
17
|
+
passport?: string;
|
|
17
18
|
active?: boolean;
|
|
19
|
+
passportIssuedDate?: Date;
|
|
20
|
+
passportExpirationDate?: Date;
|
|
18
21
|
profession?: string;
|
|
22
|
+
duiIssuedDate?: Date;
|
|
23
|
+
duiExpirationDate?: Date;
|
|
24
|
+
nitIssuedDate?: Date;
|
|
19
25
|
type: SystemSellingTypeGetSingleResponse;
|
|
20
26
|
personType: SystemPersonTypeGetSingleResponse;
|
|
21
27
|
personTypeNatural: SystemNaturalTypesGetSingleResponse;
|
|
22
28
|
directory: SystemDirectoryResponse[];
|
|
23
29
|
svFields: SystemSvFields;
|
|
24
|
-
foreignerFields: SystemForeignerFields;
|
|
25
30
|
};
|
|
26
|
-
export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory' | 'svFields'
|
|
31
|
+
export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory' | 'svFields'> & {
|
|
27
32
|
type: number;
|
|
28
33
|
personType: number;
|
|
29
34
|
personTypeNatural?: number;
|
|
30
35
|
branch: CustomersBranchesCreateSingleRequest;
|
|
31
36
|
directory?: Omit<SystemDirectoryCreateSingleRequest, 'entityType' | 'entityId'>[];
|
|
32
37
|
svFields: SystemSvFieldsRequest;
|
|
33
|
-
foreignerFields: SystemForeignerFieldsRequest;
|
|
34
38
|
};
|
|
35
39
|
export type CustomersResponse = Customers;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/management/Branch/GetCurrent/index.ts"],"names":[],"mappings":""}
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./GetCurrent"), exports);
|
|
18
|
+
__exportStar(require("./management.branch.type"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/management/Branch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,2DAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"management.branch.type.js","sourceRoot":"","sources":["../../../src/management/Branch/management.branch.type.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SystemDirectoryUpdateSingleRequest, SystemSvFieldsRequest } from '../../../system';
|
|
2
2
|
import { ManagementCompany } from '../management.company.type';
|
|
3
|
-
export type ManagementCompanyUpdateCurrentRequest = Omit<ManagementCompany, 'id' | '
|
|
3
|
+
export type ManagementCompanyUpdateCurrentRequest = Omit<ManagementCompany, 'id' | 'branch' | 'companyType' | 'naturalType' | 'svFields'> & {
|
|
4
4
|
companyType: number;
|
|
5
5
|
naturalType?: number;
|
|
6
|
-
svFields: Required<Omit<SystemSvFieldsRequest, 'dui'
|
|
6
|
+
svFields: Required<Omit<SystemSvFieldsRequest, 'dui'>> & {
|
|
7
7
|
dui?: string;
|
|
8
8
|
};
|
|
9
9
|
contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SystemSvFields } from '../../system';
|
|
2
|
-
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
|
|
3
2
|
import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types';
|
|
4
3
|
import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types';
|
|
4
|
+
import { ManagementBranch } from '../Branch/management.branch.type';
|
|
5
5
|
export type ManagementCompany = {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
@@ -9,5 +9,5 @@ export type ManagementCompany = {
|
|
|
9
9
|
companyType: SystemPersonTypes;
|
|
10
10
|
naturalType: SystemNaturalTypes;
|
|
11
11
|
svFields: SystemSvFields;
|
|
12
|
-
|
|
12
|
+
branch: ManagementBranch;
|
|
13
13
|
};
|
package/lib/management/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Branch"), exports);
|
|
17
18
|
__exportStar(require("./Company"), exports);
|
|
18
19
|
__exportStar(require("./Profiles"), exports);
|
|
19
20
|
__exportStar(require("./Users"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/management/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B;AAC1B,0CAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/management/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,4CAAyB;AACzB,6CAA0B;AAC1B,0CAAuB"}
|
package/lib/system/index.d.ts
CHANGED
package/lib/system/index.js
CHANGED
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./Cities/"), exports);
|
|
18
18
|
__exportStar(require("./Countries/"), exports);
|
|
19
19
|
__exportStar(require("./Directory/"), exports);
|
|
20
|
-
__exportStar(require("./FOREIGNER/"), exports);
|
|
21
20
|
__exportStar(require("./Logs/"), exports);
|
|
22
21
|
__exportStar(require("./NaturalTypes"), exports);
|
|
23
22
|
__exportStar(require("./PersonTypes/"), 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,+CAA4B;AAC5B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAC5B,+CAA4B;AAC5B,0CAAuB;AACvB,iDAA8B;AAC9B,iDAA8B;AAC9B,wCAAqB;AACrB,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B;AAC7B,iDAA8B"}
|
package/package.json
CHANGED
package/src/System/index.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SystemDirectoryCreateSingleRequest,
|
|
3
|
-
SystemForeignerFields,
|
|
4
|
-
SystemForeignerFieldsRequest,
|
|
5
3
|
SystemSvFields,
|
|
6
4
|
SystemSvFieldsRequest,
|
|
7
5
|
} from '../../system'
|
|
@@ -21,25 +19,23 @@ export type Customers = {
|
|
|
21
19
|
lastname2?: string
|
|
22
20
|
lastname3?: string
|
|
23
21
|
shortName: string
|
|
22
|
+
passport?: string
|
|
24
23
|
active?: boolean
|
|
24
|
+
passportIssuedDate?: Date
|
|
25
|
+
passportExpirationDate?: Date
|
|
25
26
|
profession?: string
|
|
27
|
+
duiIssuedDate?: Date
|
|
28
|
+
duiExpirationDate?: Date
|
|
29
|
+
nitIssuedDate?: Date
|
|
26
30
|
type: SystemSellingTypeGetSingleResponse
|
|
27
31
|
personType: SystemPersonTypeGetSingleResponse
|
|
28
32
|
personTypeNatural: SystemNaturalTypesGetSingleResponse
|
|
29
33
|
directory: SystemDirectoryResponse[]
|
|
30
34
|
svFields: SystemSvFields
|
|
31
|
-
foreignerFields: SystemForeignerFields
|
|
32
35
|
}
|
|
33
36
|
export type CustomersRequest = Omit<
|
|
34
37
|
Customers,
|
|
35
|
-
| '
|
|
36
|
-
| 'taxerType'
|
|
37
|
-
| 'personType'
|
|
38
|
-
| 'type'
|
|
39
|
-
| 'personTypeNatural'
|
|
40
|
-
| 'directory'
|
|
41
|
-
| 'svFields'
|
|
42
|
-
| 'foreignerFields'
|
|
38
|
+
'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory' | 'svFields'
|
|
43
39
|
> & {
|
|
44
40
|
type: number
|
|
45
41
|
personType: number
|
|
@@ -47,6 +43,5 @@ export type CustomersRequest = Omit<
|
|
|
47
43
|
branch: CustomersBranchesCreateSingleRequest
|
|
48
44
|
directory?: Omit<SystemDirectoryCreateSingleRequest, 'entityType' | 'entityId'>[]
|
|
49
45
|
svFields: SystemSvFieldsRequest
|
|
50
|
-
foreignerFields: SystemForeignerFieldsRequest
|
|
51
46
|
}
|
|
52
47
|
export type CustomersResponse = Customers
|
|
@@ -3,13 +3,11 @@ import { ManagementCompany } from '../management.company.type'
|
|
|
3
3
|
|
|
4
4
|
export type ManagementCompanyUpdateCurrentRequest = Omit<
|
|
5
5
|
ManagementCompany,
|
|
6
|
-
'id' | '
|
|
6
|
+
'id' | 'branch' | 'companyType' | 'naturalType' | 'svFields'
|
|
7
7
|
> & {
|
|
8
8
|
companyType: number
|
|
9
9
|
naturalType?: number
|
|
10
|
-
svFields: Required<
|
|
11
|
-
Omit<SystemSvFieldsRequest, 'dui' | 'nitIssuedDate' | 'duiIssuedDate' | 'duiExpirationDate'>
|
|
12
|
-
> & {
|
|
10
|
+
svFields: Required<Omit<SystemSvFieldsRequest, 'dui'>> & {
|
|
13
11
|
dui?: string
|
|
14
12
|
}
|
|
15
13
|
contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> &
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SystemSvFields } from '../../system'
|
|
2
|
-
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
|
|
3
2
|
import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types'
|
|
4
3
|
import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types'
|
|
4
|
+
import { ManagementBranch } from '../Branch/management.branch.type'
|
|
5
5
|
|
|
6
6
|
export type ManagementCompany = {
|
|
7
7
|
id: string
|
|
@@ -10,5 +10,5 @@ export type ManagementCompany = {
|
|
|
10
10
|
companyType: SystemPersonTypes
|
|
11
11
|
naturalType: SystemNaturalTypes
|
|
12
12
|
svFields: SystemSvFields
|
|
13
|
-
|
|
13
|
+
branch: ManagementBranch
|
|
14
14
|
}
|
package/src/management/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './system.foreigner.fields.types';
|
|
@@ -1,18 +0,0 @@
|
|
|
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("./system.foreigner.fields.types"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/FOREIGNER/Fields/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAA+C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"system.foreigner.fields.types.js","sourceRoot":"","sources":["../../../../src/system/FOREIGNER/Fields/system.foreigner.fields.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Fields';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/FOREIGNER/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './system.foreigner.fields.types'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Fields'
|