itrm-components 1.0.35-beta.2 → 1.0.35-beta.3
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.
- package/dist/index.d.ts +106 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,24 @@ export declare interface IAvailablePlatform {
|
|
|
123
123
|
config?: AxiosRequestConfig;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
export declare interface ICity {
|
|
127
|
+
cityId?: number;
|
|
128
|
+
departmentId?: number;
|
|
129
|
+
countryId?: number;
|
|
130
|
+
name?: string;
|
|
131
|
+
details?: ICityDetails;
|
|
132
|
+
updatedAt?: string;
|
|
133
|
+
createdAt?: string;
|
|
134
|
+
config?: AxiosRequestConfig;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export declare interface ICityDetails {
|
|
138
|
+
departmentIso2Code?: string;
|
|
139
|
+
countryIso2Code?: string;
|
|
140
|
+
departmentName?: string;
|
|
141
|
+
countryName?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
126
144
|
export declare interface IComponent {
|
|
127
145
|
componentId?: number;
|
|
128
146
|
platformId?: number;
|
|
@@ -149,6 +167,78 @@ export declare interface IconComponentProps {
|
|
|
149
167
|
icon: string;
|
|
150
168
|
}
|
|
151
169
|
|
|
170
|
+
export declare interface IContact {
|
|
171
|
+
contactId?: number;
|
|
172
|
+
name?: string;
|
|
173
|
+
identificationNumber?: string;
|
|
174
|
+
typeId?: number;
|
|
175
|
+
details?: IContactDetails;
|
|
176
|
+
updatedAt?: string;
|
|
177
|
+
createdAt?: string;
|
|
178
|
+
config?: AxiosRequestConfig;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export declare interface IContactDetails {
|
|
182
|
+
identificationType?: IdentificationType;
|
|
183
|
+
kindOfPerson?: KindOfPerson;
|
|
184
|
+
regime?: Regime;
|
|
185
|
+
email?: string;
|
|
186
|
+
primaryPhone?: string;
|
|
187
|
+
street?: string;
|
|
188
|
+
city?: string;
|
|
189
|
+
department?: string;
|
|
190
|
+
country?: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export declare interface ICountry {
|
|
194
|
+
countryId?: number;
|
|
195
|
+
name?: string;
|
|
196
|
+
details?: ICountryDetails;
|
|
197
|
+
updatedAt?: string;
|
|
198
|
+
createdAt?: string;
|
|
199
|
+
config?: AxiosRequestConfig;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export declare interface ICountryDetails {
|
|
203
|
+
iso3Code?: string;
|
|
204
|
+
iso2Code?: string;
|
|
205
|
+
numericCode?: string;
|
|
206
|
+
phoneCode?: string;
|
|
207
|
+
currency?: string;
|
|
208
|
+
currencySymbol?: string;
|
|
209
|
+
currencyName?: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export declare enum IdentificationType {
|
|
213
|
+
CC = "CC",
|
|
214
|
+
TI = "TI",
|
|
215
|
+
NIT = "NIT",
|
|
216
|
+
CE = "CE",
|
|
217
|
+
PASSPORT = "PASSPORT",
|
|
218
|
+
DIE = "DIE",
|
|
219
|
+
PP = "PP",
|
|
220
|
+
RC = "RC",
|
|
221
|
+
FOREIGN_NIT = "FOREIGN_NIT",
|
|
222
|
+
NUIP = "NUIP"
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export declare interface IDepartment {
|
|
226
|
+
departmentId?: number;
|
|
227
|
+
countryId?: number;
|
|
228
|
+
name?: string;
|
|
229
|
+
details?: IDepartmentDetails;
|
|
230
|
+
updatedAt?: string;
|
|
231
|
+
createdAt?: string;
|
|
232
|
+
config?: AxiosRequestConfig;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export declare interface IDepartmentDetails {
|
|
236
|
+
iso2Code?: string;
|
|
237
|
+
fipsCode?: string;
|
|
238
|
+
countryIso2Code?: string;
|
|
239
|
+
countryName?: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
152
242
|
export declare interface IKey {
|
|
153
243
|
keyId?: number;
|
|
154
244
|
userId?: string;
|
|
@@ -238,6 +328,12 @@ export declare interface IUserCredentials {
|
|
|
238
328
|
config?: AxiosRequestConfig;
|
|
239
329
|
}
|
|
240
330
|
|
|
331
|
+
export declare enum KindOfPerson {
|
|
332
|
+
Person = "PERSON_ENTITY",
|
|
333
|
+
Legal = "LEGAL_ENTITY",
|
|
334
|
+
Other = "OTHER_ENTITY"
|
|
335
|
+
}
|
|
336
|
+
|
|
241
337
|
export declare function listFormat(value: string): string;
|
|
242
338
|
|
|
243
339
|
export declare function mapErrorCodeToHttpStatus(code: string): number;
|
|
@@ -253,6 +349,16 @@ export declare interface PaginationMeta {
|
|
|
253
349
|
|
|
254
350
|
export declare function percentageFormat(value: number): string;
|
|
255
351
|
|
|
352
|
+
export declare enum Regime {
|
|
353
|
+
COMMON = "COMMON",
|
|
354
|
+
SIMPLIFIED = "SIMPLIFIED",
|
|
355
|
+
NATIONAL_CONSUMPTION_TAX = "NATIONAL_CONSUMPTION_TAX",
|
|
356
|
+
NOT_REPONSIBLE_FOR_CONSUMPTION = "NOT_REPONSIBLE_FOR_CONSUMPTION",
|
|
357
|
+
INC_IVA_RESPONSIBLE = "INC_IVA_RESPONSIBLE",
|
|
358
|
+
SPECIAL_REGIME = "SPECIAL_REGIME",
|
|
359
|
+
NOT_REGISTERED = "NOT_REGISTERED"
|
|
360
|
+
}
|
|
361
|
+
|
|
256
362
|
export declare function requestAll<T>(url: string, instance: AxiosInstance, headers?: AxiosRequestConfig): Promise<T[]>;
|
|
257
363
|
|
|
258
364
|
export declare class ResponseUtils {
|