@inceptionbg/main 1.0.19 → 1.0.20

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +163 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,8 +1,24 @@
1
+ import { ISimpleObjectWithCode, ISimpleObject } from '@inceptionbg/iui';
1
2
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
3
  import * as react from 'react';
3
4
  import { FC, ReactNode, Dispatch, SetStateAction, ReactElement } from 'react';
4
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
6
 
7
+ interface IPlace {
8
+ uuid: string;
9
+ name: string;
10
+ postalCode?: number;
11
+ }
12
+ interface IMunicipality {
13
+ uuid: string;
14
+ name: string;
15
+ }
16
+ interface ICountry {
17
+ id: number;
18
+ code: string;
19
+ name: string;
20
+ }
21
+
6
22
  interface IScanData {
7
23
  scannerUId?: string;
8
24
  mod?: 'GRAY_8' | 'RGB_8' | 'BLACK_AND_WHITE';
@@ -23,16 +39,22 @@ interface IUser {
23
39
  phoneNumberVerified?: boolean;
24
40
  confirmedPersonalIdentityNumber?: string;
25
41
  idCardNumber?: string;
42
+ country?: ICountry;
43
+ municipality?: IMunicipality;
44
+ place?: IPlace;
26
45
  street?: string;
27
46
  houseNumber?: string;
28
47
  postalCode?: string;
29
48
  roles?: [];
49
+ organizationalUnits?: IOrganizationalUnitUpdate[];
30
50
  selfManage?: boolean;
51
+ ownerOrganization?: IOrganization;
31
52
  representation?: string;
32
53
  signAppPort?: string;
33
54
  identificationOfficer?: boolean;
34
55
  identityConfirmationMethod?: 'QC' | 'SELFIE_IDENTIFICATION';
35
56
  active?: boolean;
57
+ primaryOrun?: IOrganizationalUnitUpdate;
36
58
  }
37
59
  type UserFetchOption = 'PERSONAL_IDENTITY_NUMBER' | 'PLACE' | 'MUNICIPALITY' | 'ORGANIZATIONAL_UNITS' | 'PRIMARY_ORUN';
38
60
  interface IUserPreferences {
@@ -57,8 +79,90 @@ interface IUserPreferences {
57
79
  }
58
80
  type IGuideType = 'invoice';
59
81
 
60
- interface IOrganizationNew {
61
- uuid?: string;
82
+ interface IPartner {
83
+ uuid: string;
84
+ name: string;
85
+ firstName?: string;
86
+ lastName?: string;
87
+ taxId?: string;
88
+ registrationNumber?: string;
89
+ businessId?: string;
90
+ jbkjs?: string;
91
+ town?: string;
92
+ municipality?: IMunicipality;
93
+ place?: IPlace;
94
+ country?: ICountry;
95
+ address?: string;
96
+ houseNumber?: string;
97
+ postalCode?: string;
98
+ businessActivity?: IBusinessActivity;
99
+ email?: string;
100
+ website?: string;
101
+ phoneNumber?: string;
102
+ group?: IGroup;
103
+ groups?: IGroup[];
104
+ organization?: IOrganization;
105
+ updateMissingData?: boolean;
106
+ personalIdentificationNumber?: string;
107
+ latitude?: number;
108
+ longitude?: number;
109
+ inboxUrl?: string;
110
+ physicalPerson?: boolean;
111
+ foreignLegalEntity?: boolean;
112
+ regularFactoringAllowed?: boolean;
113
+ reverseFactoringAllowed?: boolean;
114
+ futureClaimsFactoringAllowed?: boolean;
115
+ checkAuthorizedPersonsOnApr?: boolean;
116
+ internalSend?: boolean;
117
+ sefSend?: boolean;
118
+ }
119
+ interface IBusinessActivity {
120
+ id: string;
121
+ name: string;
122
+ code?: string;
123
+ }
124
+ interface IBankAccount {
125
+ uuid: string;
126
+ accountNumber: string;
127
+ bank?: IPartner;
128
+ currency?: ISimpleObjectWithCode;
129
+ paymentInstructionsIntermediaryBank?: string;
130
+ iban?: string;
131
+ active?: boolean;
132
+ main?: boolean;
133
+ invoicePrint?: boolean;
134
+ }
135
+ interface IBankAccountSearch {
136
+ accountNumberLike?: string;
137
+ main?: boolean;
138
+ }
139
+ interface IContactPerson {
140
+ uuid: string;
141
+ representation: string;
142
+ legalEntity?: Partial<IPartner>;
143
+ firstName?: string;
144
+ lastName?: string;
145
+ personalIdentificationNumber?: string;
146
+ email?: string;
147
+ director?: boolean;
148
+ responsiblePerson?: boolean;
149
+ eInvoiceReceiver?: boolean;
150
+ organization?: IOrganization;
151
+ verificationTime?: string;
152
+ verificationSendTime?: string;
153
+ primary?: boolean;
154
+ position?: string;
155
+ phoneNumber?: string;
156
+ factoringRepresentative?: boolean;
157
+ }
158
+ interface IGroup {
159
+ uuid: string;
160
+ name: string;
161
+ organization?: IOrganization;
162
+ }
163
+
164
+ interface IOrganization {
165
+ uuid: string;
62
166
  name?: string;
63
167
  firstName?: string;
64
168
  lastName?: string;
@@ -66,14 +170,19 @@ interface IOrganizationNew {
66
170
  registrationNumber?: string;
67
171
  jbkjs?: string;
68
172
  locale?: string;
173
+ country?: ICountry;
69
174
  town?: string;
175
+ municipality?: IMunicipality;
176
+ place?: IPlace;
70
177
  address?: string;
71
178
  houseNumber?: string;
72
179
  postalCode?: string;
180
+ businessActivity?: IBusinessActivity;
73
181
  email?: string;
74
182
  website?: string;
75
183
  phoneNumber?: string;
76
184
  group?: any;
185
+ contactPerson?: IContactPerson;
77
186
  physicalPerson?: boolean;
78
187
  personalIdentificationNumber?: string;
79
188
  personalIdentityNumber?: string;
@@ -83,14 +192,16 @@ interface IOrganizationNew {
83
192
  serviceAgreement?: serviceDoc;
84
193
  allowNewsletter?: boolean;
85
194
  legalRepresentative?: IUser;
86
- internalCode?: 'PIO';
195
+ internalCode?: 'PIO' | 'JP_POSTA' | 'DUNAV_AD' | 'DDOR';
87
196
  logo?: serviceDoc;
197
+ latestPricingPackage?: ILatestPricingPackage;
198
+ pricingPackage?: IPricingPackage;
88
199
  activeEDeliveryContract?: boolean;
89
200
  eDeliveryReseller?: boolean;
90
201
  factoringCompany?: boolean;
91
- }
92
- interface IOrganization extends IOrganizationNew {
93
- uuid: string;
202
+ regularFactoringAllowed?: boolean;
203
+ reverseFactoringAllowed?: boolean;
204
+ type?: 'BASIC';
94
205
  }
95
206
  interface serviceDoc {
96
207
  uuid: string;
@@ -110,6 +221,51 @@ interface IOrganizationSearch {
110
221
  type IOrganizationFetchOption = 'LATEST_PRICING_PACKAGE';
111
222
  declare const OrganizationStatuses: readonly ["PENDING_CUSTOMER", "PENDING_SUPPORT", "APPROVED", "DECLINED"];
112
223
  type OrganizationStatus = (typeof OrganizationStatuses)[number];
224
+ interface ILatestPricingPackage {
225
+ uuid: string;
226
+ pricingPackage: IPricingPackage;
227
+ contract: IResellerContract;
228
+ createdAt: string;
229
+ }
230
+ interface IPricingPackage {
231
+ uuid: string;
232
+ name?: string;
233
+ code?: string;
234
+ price?: number;
235
+ }
236
+ interface IResellerContract {
237
+ uuid: string;
238
+ contractNumber: string;
239
+ date: string;
240
+ durationInMonths: number;
241
+ reseller?: {
242
+ uuid: string;
243
+ };
244
+ contractor?: {
245
+ uuid: string;
246
+ };
247
+ signatory?: IUser;
248
+ activationDate?: string;
249
+ expirationDate?: string;
250
+ pricingPackage?: IPricingPackage;
251
+ service?: 'DELIVERY' | 'EINVOICE';
252
+ status?: 'CREATED' | 'SIGN_INITIATED' | 'ACTIVE' | 'CANCELED';
253
+ pdfDownloadUrl?: string;
254
+ freeTrail?: boolean;
255
+ }
256
+ interface IOrganizationalUnitUpdate {
257
+ uuid?: string;
258
+ name?: string;
259
+ code?: string;
260
+ jbkjs?: string;
261
+ type?: ISimpleObject;
262
+ organization?: {
263
+ uuid: string;
264
+ };
265
+ parent?: {
266
+ uuid: string;
267
+ };
268
+ }
113
269
 
114
270
  interface IUserPrivileges {
115
271
  USER_R?: boolean;
@@ -349,4 +505,4 @@ interface Props {
349
505
  }
350
506
  declare const Sidebar: FC<Props>;
351
507
 
352
- export { AxiosTokenHandler, ErrorContext, Header, IOrganization, IOrganizationFetchOption, IOrganizationNew, IOrganizationPrivileges, IOrganizationSearch, ISidebarItem, IToken, IUser, IUserPreferences, IUserPrivileges, LoginPage, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, SelectOrgPage, Sidebar, UserFetchOption, UserOrgContext, UserOrgProvider };
508
+ export { AxiosTokenHandler, ErrorContext, Header, IBankAccount, IBankAccountSearch, ICountry, IMunicipality, IOrganization, IOrganizationFetchOption, IOrganizationPrivileges, IOrganizationSearch, IPartner, IPlace, ISidebarItem, IToken, IUser, IUserPreferences, IUserPrivileges, LoginPage, NoAccessInfo, NoMatchPage, NotificationsContext, NotificationsProvider, OrganizationStatus, OrganizationStatuses, SelectOrgPage, Sidebar, UserFetchOption, UserOrgContext, UserOrgProvider };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inceptionbg/main",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Main app wrapper for Inception ecosystem",
5
5
  "type": "module",
6
6
  "files": [