@openbox/shared-types 0.4.2 → 0.4.4

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.
@@ -3,7 +3,9 @@ import { ManagementCompany } from '../management.company.type';
3
3
  export type ManagementCompanyUpdateCurrentRequest = Omit<ManagementCompany, 'id' | 'contacts' | 'companyType' | 'naturalType' | 'svFields'> & {
4
4
  companyType: number;
5
5
  naturalType?: number;
6
- svFields: Required<SystemSvFieldsRequest>;
6
+ svFields: Required<Omit<SystemSvFieldsRequest, 'dui'>> & {
7
+ dui?: string;
8
+ };
7
9
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & {
8
10
  id?: string;
9
11
  }[];
@@ -5,6 +5,7 @@ import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.
5
5
  export type ManagementCompany = {
6
6
  id: string;
7
7
  name: string;
8
+ shortName: string;
8
9
  companyType: SystemPersonTypes;
9
10
  naturalType: SystemNaturalTypes;
10
11
  svFields: SystemSvFields;
@@ -8,7 +8,7 @@ export type SystemSvFields = {
8
8
  taxerType?: SystemTaxerTypes;
9
9
  economicActivity?: SystemSvEconomicActivities;
10
10
  };
11
- export type SystemSvFieldsRequest = Omit<SystemSvFields, 'id'> & {
11
+ export type SystemSvFieldsRequest = Omit<SystemSvFields, 'id' | 'taxerType' | 'economicActivity'> & {
12
12
  taxerType?: number;
13
13
  economicActivity?: string;
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.4.02",
3
+ "version": "0.4.04",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -9,8 +9,10 @@ export type SystemSvFields = {
9
9
  taxerType?: SystemTaxerTypes
10
10
  economicActivity?: SystemSvEconomicActivities
11
11
  }
12
-
13
- export type SystemSvFieldsRequest = Omit<SystemSvFields, 'id'> & {
12
+ export type SystemSvFieldsRequest = Omit<
13
+ SystemSvFields,
14
+ 'id' | 'taxerType' | 'economicActivity'
15
+ > & {
14
16
  taxerType?: number
15
17
  economicActivity?: string
16
18
  }
@@ -10,5 +10,7 @@ export type CustomersUpdateSingleRequest = Omit<
10
10
  id?: string
11
11
  }
12
12
  directory?: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> &
13
- { id?: string }[]
13
+ {
14
+ id?: string
15
+ }[]
14
16
  }
@@ -7,6 +7,11 @@ export type ManagementCompanyUpdateCurrentRequest = Omit<
7
7
  > & {
8
8
  companyType: number
9
9
  naturalType?: number
10
- svFields: Required<SystemSvFieldsRequest>
11
- contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & { id?: string }[]
10
+ svFields: Required<Omit<SystemSvFieldsRequest, 'dui'>> & {
11
+ dui?: string
12
+ }
13
+ contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> &
14
+ {
15
+ id?: string
16
+ }[]
12
17
  }
@@ -6,6 +6,7 @@ import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.
6
6
  export type ManagementCompany = {
7
7
  id: string
8
8
  name: string
9
+ shortName: string
9
10
  companyType: SystemPersonTypes
10
11
  naturalType: SystemNaturalTypes
11
12
  svFields: SystemSvFields