@inceptionbg/main 1.0.19 → 1.0.21

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 +181 -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,108 @@ 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 IPartnersSearch {
120
+ name?: string;
121
+ taxId?: string;
122
+ registrationNumber?: string;
123
+ nameLike?: string;
124
+ fullText?: string;
125
+ sort?: string;
126
+ physicalPerson?: boolean;
127
+ foreignLegalEntity?: boolean;
128
+ includeCurrentOrganization?: boolean;
129
+ }
130
+ interface IBusinessActivity {
131
+ id: string;
132
+ name: string;
133
+ code?: string;
134
+ }
135
+ interface IBankAccount {
136
+ uuid: string;
137
+ accountNumber: string;
138
+ bank?: IPartner;
139
+ currency?: ISimpleObjectWithCode;
140
+ paymentInstructionsIntermediaryBank?: string;
141
+ iban?: string;
142
+ active?: boolean;
143
+ main?: boolean;
144
+ invoicePrint?: boolean;
145
+ }
146
+ interface IBankAccountSearch {
147
+ accountNumberLike?: string;
148
+ main?: boolean;
149
+ }
150
+ interface INote {
151
+ uuid: string;
152
+ subject: string;
153
+ note: string;
154
+ date?: string;
155
+ createdBy?: IUser;
156
+ }
157
+ interface IContactPerson {
158
+ uuid: string;
159
+ representation: string;
160
+ legalEntity?: Partial<IPartner>;
161
+ firstName?: string;
162
+ lastName?: string;
163
+ personalIdentificationNumber?: string;
164
+ email?: string;
165
+ director?: boolean;
166
+ responsiblePerson?: boolean;
167
+ eInvoiceReceiver?: boolean;
168
+ organization?: IOrganization;
169
+ verificationTime?: string;
170
+ verificationSendTime?: string;
171
+ primary?: boolean;
172
+ position?: string;
173
+ phoneNumber?: string;
174
+ factoringRepresentative?: boolean;
175
+ }
176
+ interface IGroup {
177
+ uuid: string;
178
+ name: string;
179
+ organization?: IOrganization;
180
+ }
181
+
182
+ interface IOrganization {
183
+ uuid: string;
62
184
  name?: string;
63
185
  firstName?: string;
64
186
  lastName?: string;
@@ -66,14 +188,19 @@ interface IOrganizationNew {
66
188
  registrationNumber?: string;
67
189
  jbkjs?: string;
68
190
  locale?: string;
191
+ country?: ICountry;
69
192
  town?: string;
193
+ municipality?: IMunicipality;
194
+ place?: IPlace;
70
195
  address?: string;
71
196
  houseNumber?: string;
72
197
  postalCode?: string;
198
+ businessActivity?: IBusinessActivity;
73
199
  email?: string;
74
200
  website?: string;
75
201
  phoneNumber?: string;
76
202
  group?: any;
203
+ contactPerson?: IContactPerson;
77
204
  physicalPerson?: boolean;
78
205
  personalIdentificationNumber?: string;
79
206
  personalIdentityNumber?: string;
@@ -83,14 +210,16 @@ interface IOrganizationNew {
83
210
  serviceAgreement?: serviceDoc;
84
211
  allowNewsletter?: boolean;
85
212
  legalRepresentative?: IUser;
86
- internalCode?: 'PIO';
213
+ internalCode?: 'PIO' | 'JP_POSTA' | 'DUNAV_AD' | 'DDOR';
87
214
  logo?: serviceDoc;
215
+ latestPricingPackage?: ILatestPricingPackage;
216
+ pricingPackage?: IPricingPackage;
88
217
  activeEDeliveryContract?: boolean;
89
218
  eDeliveryReseller?: boolean;
90
219
  factoringCompany?: boolean;
91
- }
92
- interface IOrganization extends IOrganizationNew {
93
- uuid: string;
220
+ regularFactoringAllowed?: boolean;
221
+ reverseFactoringAllowed?: boolean;
222
+ type?: 'BASIC';
94
223
  }
95
224
  interface serviceDoc {
96
225
  uuid: string;
@@ -110,6 +239,51 @@ interface IOrganizationSearch {
110
239
  type IOrganizationFetchOption = 'LATEST_PRICING_PACKAGE';
111
240
  declare const OrganizationStatuses: readonly ["PENDING_CUSTOMER", "PENDING_SUPPORT", "APPROVED", "DECLINED"];
112
241
  type OrganizationStatus = (typeof OrganizationStatuses)[number];
242
+ interface ILatestPricingPackage {
243
+ uuid: string;
244
+ pricingPackage: IPricingPackage;
245
+ contract: IResellerContract;
246
+ createdAt: string;
247
+ }
248
+ interface IPricingPackage {
249
+ uuid: string;
250
+ name?: string;
251
+ code?: string;
252
+ price?: number;
253
+ }
254
+ interface IResellerContract {
255
+ uuid: string;
256
+ contractNumber: string;
257
+ date: string;
258
+ durationInMonths: number;
259
+ reseller?: {
260
+ uuid: string;
261
+ };
262
+ contractor?: {
263
+ uuid: string;
264
+ };
265
+ signatory?: IUser;
266
+ activationDate?: string;
267
+ expirationDate?: string;
268
+ pricingPackage?: IPricingPackage;
269
+ service?: 'DELIVERY' | 'EINVOICE';
270
+ status?: 'CREATED' | 'SIGN_INITIATED' | 'ACTIVE' | 'CANCELED';
271
+ pdfDownloadUrl?: string;
272
+ freeTrail?: boolean;
273
+ }
274
+ interface IOrganizationalUnitUpdate {
275
+ uuid?: string;
276
+ name?: string;
277
+ code?: string;
278
+ jbkjs?: string;
279
+ type?: ISimpleObject;
280
+ organization?: {
281
+ uuid: string;
282
+ };
283
+ parent?: {
284
+ uuid: string;
285
+ };
286
+ }
113
287
 
114
288
  interface IUserPrivileges {
115
289
  USER_R?: boolean;
@@ -349,4 +523,4 @@ interface Props {
349
523
  }
350
524
  declare const Sidebar: FC<Props>;
351
525
 
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 };
526
+ export { AxiosTokenHandler, ErrorContext, Header, IBankAccount, IBankAccountSearch, IContactPerson, ICountry, IMunicipality, INote, IOrganization, IOrganizationFetchOption, IOrganizationPrivileges, IOrganizationSearch, IPartner, IPartnersSearch, 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.21",
4
4
  "description": "Main app wrapper for Inception ecosystem",
5
5
  "type": "module",
6
6
  "files": [