@inceptionbg/address-book 2.0.9 → 2.0.10

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 +108 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import * as react from 'react';
3
3
  import { FC } from 'react';
4
- import { ITab } from '@inceptionbg/iui';
4
+ import { ITab, ISimpleObjectWithCode, ISelectData } from '@inceptionbg/iui';
5
+ import { IOrganization, IUser } from '@inceptionbg/main';
5
6
 
6
7
  interface Props$1 {
7
8
  noAccess?: boolean;
@@ -25,6 +26,111 @@ interface Props {
25
26
  }
26
27
  declare const PartnerPage: FC<Props>;
27
28
 
29
+ type IPartnerType = 'LEGAL_PERSON' | 'NATURAL_PERSON' | 'INO_PARTNER';
30
+ type ILegalForm = 'LLC | ENTREPRENEUR | FOUNDATION | SPORT_ASSOCIATION | CHAMBER_OF_COMMERCE | CULTURE_INSTITUTION';
31
+ type PartnerGroupType = 'BANK';
32
+ interface IPartner {
33
+ uuid: string;
34
+ type: IPartnerType;
35
+ organization?: IOrganization;
36
+ active?: boolean;
37
+ createdAt?: string;
38
+ createdBy?: IUser;
39
+ firstName?: string;
40
+ lastName?: string;
41
+ umcn?: string;
42
+ name?: string;
43
+ code?: string;
44
+ taxId?: string;
45
+ businessCode?: string;
46
+ jbkjs?: string;
47
+ businessActivity?: ISimpleObjectWithCode;
48
+ country?: ISimpleObjectWithCode;
49
+ town?: string;
50
+ postalCode?: string;
51
+ street?: string;
52
+ houseNumber?: string;
53
+ email?: string;
54
+ website?: string;
55
+ phoneNumber?: string;
56
+ groups?: IPartnerGroup[];
57
+ contactPersons?: IContactPerson[];
58
+ inboxUrl?: string;
59
+ legalForm?: ILegalForm;
60
+ sefSend?: boolean;
61
+ internalSend?: boolean;
62
+ omitJbkjsForSef?: boolean;
63
+ updateMissingData?: boolean;
64
+ checkAuthorizedPersonsOnApr?: boolean;
65
+ }
66
+ interface IPartnersSearch {
67
+ name?: string;
68
+ codeLike?: string;
69
+ taxId?: string;
70
+ businessCode?: string;
71
+ nameLike?: string;
72
+ jbkjs?: string;
73
+ fullText?: string;
74
+ sort?: string;
75
+ physicalPerson?: boolean;
76
+ foreignLegalEntity?: boolean;
77
+ includeCurrentOrganization?: boolean;
78
+ groups?: string[];
79
+ active?: boolean;
80
+ groupsObj?: ISelectData[];
81
+ }
82
+ interface IBankAccount {
83
+ uuid: string;
84
+ accountNumber: string;
85
+ bank?: IPartner;
86
+ currency?: ISimpleObjectWithCode;
87
+ paymentInstructionsIntermediaryBank?: string;
88
+ iban?: string;
89
+ active?: boolean;
90
+ main?: boolean;
91
+ invoicePrint?: boolean;
92
+ owner?: IPartner;
93
+ }
94
+ interface IBankAccountSearch {
95
+ accountNumberLike?: string;
96
+ main?: boolean;
97
+ }
98
+ interface INote {
99
+ uuid: string;
100
+ subject: string;
101
+ note: string;
102
+ date?: string;
103
+ createdBy?: IUser;
104
+ }
105
+ interface INoteSearch {
106
+ note?: string;
107
+ }
108
+ interface IContactPerson {
109
+ uuid: string;
110
+ representation: string;
111
+ legalEntity?: Partial<IPartner>;
112
+ firstName: string;
113
+ lastName: string;
114
+ umcn?: string;
115
+ email?: string;
116
+ director?: boolean;
117
+ responsiblePerson?: boolean;
118
+ eInvoiceReceiver?: boolean;
119
+ organization?: IOrganization;
120
+ verificationTime?: string;
121
+ verificationSendTime?: string;
122
+ primary?: boolean;
123
+ position?: string;
124
+ phoneNumber?: string;
125
+ factoringRepresentative?: boolean;
126
+ }
127
+ interface IPartnerGroup {
128
+ uuid: string;
129
+ name: string;
130
+ organization?: IOrganization;
131
+ groupType: PartnerGroupType;
132
+ }
133
+
28
134
  declare const i18nAddressBookLatin: {
29
135
  Name: string;
30
136
  BusinessPartnerCode: string;
@@ -190,4 +296,4 @@ declare const i18nAddressBookCyrilic: {
190
296
  UmcnValidation: string;
191
297
  };
192
298
 
193
- export { AddressBookPage, PartnerPage, i18nAddressBookCyrilic, i18nAddressBookLatin };
299
+ export { AddressBookPage, IBankAccount, IBankAccountSearch, IContactPerson, INote, INoteSearch, IPartner, IPartnerGroup, IPartnerType, IPartnersSearch, PartnerGroupType, PartnerPage, i18nAddressBookCyrilic, i18nAddressBookLatin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inceptionbg/address-book",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "AddressBook component for Inception",
5
5
  "type": "module",
6
6
  "files": [