@openbox/shared-types 0.3.96 → 0.3.99

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.
@@ -1,6 +1,13 @@
1
+ import { CompaniesSvFields } from '../../../companies';
1
2
  import { SystemDirectoryUpdateSingleRequest } from '../../../system';
2
3
  import { ManagementCompany } from '../management.company.type';
3
- export type ManagementCompanyUpdateCurrentRequest = Omit<ManagementCompany, 'id' | 'contacts'> & {
4
+ export type ManagementCompanyUpdateCurrentRequest = Omit<ManagementCompany, 'id' | 'contacts' | 'companyType' | 'naturalType' | 'svFields'> & {
5
+ companyType: string;
6
+ naturalType: string;
7
+ svFields: Required<Omit<CompaniesSvFields, 'id' | 'taxerType' | 'economicActivity'>> & {
8
+ taxerType: string;
9
+ economicActivity: string;
10
+ };
4
11
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & {
5
12
  id?: string;
6
13
  }[];
@@ -1,2 +1,3 @@
1
- import { SingleResponse } from '../../../interfaces';
2
- export type ManagementCompanyUpdateCurrentResponse = SingleResponse;
1
+ export type ManagementCompanyUpdateCurrentResponse = {
2
+ message: string;
3
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.96",
3
+ "version": "0.3.99",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,6 +1,16 @@
1
+ import { CompaniesSvFields } from '../../../companies'
1
2
  import { SystemDirectoryUpdateSingleRequest } from '../../../system'
2
3
  import { ManagementCompany } from '../management.company.type'
3
4
 
4
- export type ManagementCompanyUpdateCurrentRequest = Omit<ManagementCompany, 'id' | 'contacts'> & {
5
+ export type ManagementCompanyUpdateCurrentRequest = Omit<
6
+ ManagementCompany,
7
+ 'id' | 'contacts' | 'companyType' | 'naturalType' | 'svFields'
8
+ > & {
9
+ companyType: string
10
+ naturalType: string
11
+ svFields: Required<Omit<CompaniesSvFields, 'id' | 'taxerType' | 'economicActivity'>> & {
12
+ taxerType: string
13
+ economicActivity: string
14
+ }
5
15
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & { id?: string }[]
6
16
  }
@@ -1,3 +1,3 @@
1
- import { SingleResponse } from '../../../interfaces'
2
-
3
- export type ManagementCompanyUpdateCurrentResponse = SingleResponse
1
+ export type ManagementCompanyUpdateCurrentResponse = {
2
+ message: string
3
+ }