@vini-wine/admin-core-models 1.0.0-beta.0
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.mts +432 -0
- package/dist/index.d.ts +432 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +49 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import { CurrencyCodeEnum, UploadVisibilityTypeEnum, ContactPointTypeEnum, CurrencyRateSourceEnum, OrganisationStatusEnum, UserStatusEnum, GenderEnum, LocaleEnum, ImageVariationEnum, ImageTypeEnum, UserOrganisationStatusEnum, TimezoneEnum, DateTimeFormatEnum, OfferAlertFilterCriteriaFieldEnum, FilterOperatorEnum, UploadStatusEnum, UploadTypeEnum, CountryEnum, NotificationChannelEnum, NotificationTypeEnum, VintageScoreAuthorEnum, PackageEnum, OfferAlertTimelineActionEnum, OfferRequestStatusEnum, OfferRequestOptionEnum, OfferRequestOptionStatusEnum, OfferRequestTimelineActionEnum, OrganisationUserInvitationStatusEnum } from '@vini-wine/core-enums';
|
|
2
|
+
|
|
3
|
+
interface PriceModel {
|
|
4
|
+
priceMicros: number;
|
|
5
|
+
currency: CurrencyCodeEnum;
|
|
6
|
+
visibility: {
|
|
7
|
+
id: UploadVisibilityTypeEnum;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface B2bMarketPriceModel {
|
|
12
|
+
price: PriceModel | null;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface UUID {
|
|
17
|
+
uuid: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ContactTypeModel {
|
|
21
|
+
id: ContactPointTypeEnum;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface TelephoneModel {
|
|
25
|
+
number: string;
|
|
26
|
+
countryCode: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface ContactPointModel extends UUID {
|
|
30
|
+
email: string | null;
|
|
31
|
+
telephone: TelephoneModel | null;
|
|
32
|
+
name: string;
|
|
33
|
+
contactType: ContactTypeModel;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface CountryModel {
|
|
37
|
+
name: string;
|
|
38
|
+
codeAlpha2: string;
|
|
39
|
+
codeAlpha3: string;
|
|
40
|
+
codeUn: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface CurrencyRateModel {
|
|
44
|
+
currencyCode: CurrencyCodeEnum;
|
|
45
|
+
rate: number;
|
|
46
|
+
synchronizedAt: Date;
|
|
47
|
+
source: CurrencyRateSourceEnum;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface PostalAddressModel {
|
|
51
|
+
countryCode: string;
|
|
52
|
+
locality: string;
|
|
53
|
+
region: string | null;
|
|
54
|
+
postalCode: string;
|
|
55
|
+
streetAddress: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface VatTaxModel {
|
|
59
|
+
countryCode: string;
|
|
60
|
+
value: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface SupplierModel extends UUID {
|
|
64
|
+
isCustomer: boolean;
|
|
65
|
+
name: string;
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
supplierOrganisation?: OrganisationModel;
|
|
68
|
+
organisation?: OrganisationModel;
|
|
69
|
+
primaryLogisticsContactPoint?: ContactPointModel | null;
|
|
70
|
+
contactPoints?: ContactPointModel[] | [];
|
|
71
|
+
primarySalesContactPoint?: ContactPointModel | null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface OrganisationStatusModel {
|
|
75
|
+
id: OrganisationStatusEnum;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface RoleModel extends UUID {
|
|
79
|
+
name: string;
|
|
80
|
+
permissions?: PermissionModel[];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface PermissionModel extends UUID {
|
|
84
|
+
roles?: RoleModel[];
|
|
85
|
+
name: string;
|
|
86
|
+
component: string;
|
|
87
|
+
action: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface UserStatusModel {
|
|
91
|
+
id: UserStatusEnum;
|
|
92
|
+
name: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface GenderModel extends UUID {
|
|
96
|
+
id: GenderEnum;
|
|
97
|
+
name: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface PersonModel extends UUID {
|
|
101
|
+
firstName: string;
|
|
102
|
+
lastName: string;
|
|
103
|
+
preferredLanguage: LocaleEnum;
|
|
104
|
+
gender: GenderModel;
|
|
105
|
+
preferredCurrency: CurrencyCodeEnum;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
interface ImageVariationModel {
|
|
109
|
+
id: ImageVariationEnum;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
interface ImageTypeModel {
|
|
113
|
+
id: ImageTypeEnum;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface ImageModel extends UUID {
|
|
117
|
+
name: string;
|
|
118
|
+
mime: string;
|
|
119
|
+
height: number;
|
|
120
|
+
width: number;
|
|
121
|
+
url: string;
|
|
122
|
+
variation: ImageVariationModel;
|
|
123
|
+
type: ImageTypeModel;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface UserModel extends UUID {
|
|
127
|
+
person: PersonModel;
|
|
128
|
+
defaultUserOrganisation?: UserOrganisationModel;
|
|
129
|
+
permissions?: PermissionModel[];
|
|
130
|
+
roles?: RoleModel[];
|
|
131
|
+
userOrganisations?: UserOrganisationModel[];
|
|
132
|
+
numNotificationsUnPreRead?: number;
|
|
133
|
+
avatar?: ImageModel;
|
|
134
|
+
status: UserStatusModel;
|
|
135
|
+
email: string;
|
|
136
|
+
emailVerified: boolean;
|
|
137
|
+
lastLoginAt: Date;
|
|
138
|
+
createdAt: Date;
|
|
139
|
+
updatedAt: Date;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface UserOrganisationStatusModel {
|
|
143
|
+
id: UserOrganisationStatusEnum;
|
|
144
|
+
name: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
interface UserOrganisationModel {
|
|
148
|
+
organisation: OrganisationModel;
|
|
149
|
+
createdAt: Date;
|
|
150
|
+
isOrganisationOwner: boolean;
|
|
151
|
+
isUserDefaultOrganisation: boolean;
|
|
152
|
+
status: UserOrganisationStatusModel;
|
|
153
|
+
user?: UserModel;
|
|
154
|
+
permissions?: PermissionModel[];
|
|
155
|
+
roles?: RoleModel[];
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface UserAccountModel extends UUID {
|
|
159
|
+
person: PersonModel;
|
|
160
|
+
defaultUserOrganisation?: UserOrganisationModel;
|
|
161
|
+
permissions?: PermissionModel[];
|
|
162
|
+
roles?: RoleModel[];
|
|
163
|
+
userOrganisations?: UserOrganisationModel[];
|
|
164
|
+
numNotificationsUnPreRead?: number;
|
|
165
|
+
avatar?: ImageModel;
|
|
166
|
+
status: UserStatusModel;
|
|
167
|
+
email: string;
|
|
168
|
+
emailVerified: boolean;
|
|
169
|
+
lastLoginAt: Date;
|
|
170
|
+
defaultTimezone: TimezoneEnum;
|
|
171
|
+
defaultDateTimeFormat: DateTimeFormatEnum;
|
|
172
|
+
createdAt: Date;
|
|
173
|
+
updatedAt: Date;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface OrganisationModel extends UUID {
|
|
177
|
+
suppliers?: Partial<SupplierModel>[];
|
|
178
|
+
billingPostalAddress?: PostalAddressModel;
|
|
179
|
+
defaultShippingPostalAddress?: PostalAddressModel;
|
|
180
|
+
organisationOwner?: Partial<UserAccountModel>;
|
|
181
|
+
registeredBy?: Partial<UserAccountModel>;
|
|
182
|
+
userOrganisations?: UserOrganisationModel[];
|
|
183
|
+
numUserOrganisations?: number;
|
|
184
|
+
numSuppliers?: number;
|
|
185
|
+
numSuppliedSuppliers?: number;
|
|
186
|
+
numUploads?: number;
|
|
187
|
+
avatar?: ImageModel;
|
|
188
|
+
name: string;
|
|
189
|
+
legalName: string;
|
|
190
|
+
vatTax: VatTaxModel;
|
|
191
|
+
createdAt: Date;
|
|
192
|
+
defaultTimezone: TimezoneEnum;
|
|
193
|
+
status: OrganisationStatusModel;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
interface CustomerModel extends UUID {
|
|
197
|
+
isSupplier: boolean;
|
|
198
|
+
name: string;
|
|
199
|
+
createdAt: Date;
|
|
200
|
+
supplierOrganisation?: OrganisationModel;
|
|
201
|
+
organisation?: OrganisationModel;
|
|
202
|
+
primaryLogisticsContactPoint?: ContactPointModel | null;
|
|
203
|
+
contactPoints?: ContactPointModel[] | [];
|
|
204
|
+
primarySalesContactPoint?: ContactPointModel | null;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
interface FilterCriteriaModel {
|
|
208
|
+
field: OfferAlertFilterCriteriaFieldEnum;
|
|
209
|
+
operator: FilterOperatorEnum;
|
|
210
|
+
value: string | number | null;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface UploadVisibilityTypeModel {
|
|
214
|
+
upload?: UploadModel;
|
|
215
|
+
id: UploadVisibilityTypeEnum;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface UploadModel extends UUID {
|
|
219
|
+
status: {
|
|
220
|
+
id: UploadStatusEnum;
|
|
221
|
+
name: string;
|
|
222
|
+
};
|
|
223
|
+
type: {
|
|
224
|
+
id: UploadTypeEnum;
|
|
225
|
+
name: string;
|
|
226
|
+
};
|
|
227
|
+
name: string;
|
|
228
|
+
validFrom: Date;
|
|
229
|
+
validUntil: Date;
|
|
230
|
+
numItems: number;
|
|
231
|
+
createdAt: Date;
|
|
232
|
+
organisation: OrganisationModel;
|
|
233
|
+
organisationSupplier: SupplierModel;
|
|
234
|
+
createdUser?: UserAccountModel;
|
|
235
|
+
visibilityTypes?: UploadVisibilityTypeModel[];
|
|
236
|
+
importFileHeaders?: ImportFileHeaderModel[];
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
interface ImportFileHeaderModel {
|
|
240
|
+
upload?: UploadModel;
|
|
241
|
+
mappedHeader: string;
|
|
242
|
+
value: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface ImportResolvedFileHeaderValueModel {
|
|
246
|
+
field: string;
|
|
247
|
+
fieldValue: string;
|
|
248
|
+
resolvedValue: string;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
interface MarginMarketModel {
|
|
252
|
+
countryCode: CountryEnum;
|
|
253
|
+
margin: number;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
interface MarginOrganisationModel {
|
|
257
|
+
margin: number;
|
|
258
|
+
marginOrganisation: Partial<OrganisationModel>;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
interface NotificationChannelModel {
|
|
262
|
+
id: NotificationChannelEnum;
|
|
263
|
+
isActive: boolean;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
interface NotificationTypeModel {
|
|
267
|
+
id: NotificationTypeEnum;
|
|
268
|
+
channels: NotificationChannelModel[];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface NotificationModel extends UUID {
|
|
272
|
+
type: Partial<NotificationTypeModel>;
|
|
273
|
+
messagePlain: string;
|
|
274
|
+
messageHtml: string | null;
|
|
275
|
+
actionText: string;
|
|
276
|
+
actionUrl: string;
|
|
277
|
+
readAt: Date | null;
|
|
278
|
+
createdAt: Date;
|
|
279
|
+
updatedAt: Date;
|
|
280
|
+
name: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface SellerModel extends UUID {
|
|
284
|
+
organisation: Partial<OrganisationModel>;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface RegionModel extends UUID {
|
|
288
|
+
name: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
interface WineTypeModel extends UUID {
|
|
292
|
+
name: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
interface WineryModel extends UUID {
|
|
296
|
+
name: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
interface WineModel extends UUID {
|
|
300
|
+
name: string;
|
|
301
|
+
region: RegionModel;
|
|
302
|
+
wineType: WineTypeModel;
|
|
303
|
+
winery: WineryModel;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
interface VintageRatingModel {
|
|
307
|
+
numberOfRatings: number;
|
|
308
|
+
averageOfRatings: number;
|
|
309
|
+
updatedAt: Date;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
interface VintageScoreAuthorModel {
|
|
313
|
+
id: VintageScoreAuthorEnum;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
interface VintageScoreModel {
|
|
317
|
+
scoreValue: number;
|
|
318
|
+
scoreYear: number;
|
|
319
|
+
author: VintageScoreAuthorModel;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
interface VintageModel extends UUID {
|
|
323
|
+
year: number;
|
|
324
|
+
wine?: WineModel;
|
|
325
|
+
mappedExternal1Rating?: VintageRatingModel | null;
|
|
326
|
+
scores?: VintageScoreModel[];
|
|
327
|
+
images?: ImageModel[];
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
interface VintageProductModel extends UUID {
|
|
331
|
+
name: string;
|
|
332
|
+
milliliters: number;
|
|
333
|
+
vintage?: VintageModel;
|
|
334
|
+
b2bMarketPrice?: B2bMarketPriceModel | null;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
interface OfferModel extends UUID {
|
|
338
|
+
price: PriceModel | null;
|
|
339
|
+
supplier?: SupplierModel | null;
|
|
340
|
+
seller?: SellerModel;
|
|
341
|
+
vintageProducts?: VintageProductModel[];
|
|
342
|
+
upload?: UploadModel;
|
|
343
|
+
shippedFromCountry?: CountryModel | null;
|
|
344
|
+
quantity: number;
|
|
345
|
+
package: PackageEnum | null;
|
|
346
|
+
createdAt: Date;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
interface OfferAlertModel extends UUID {
|
|
350
|
+
title: string;
|
|
351
|
+
header: string;
|
|
352
|
+
description: string | null;
|
|
353
|
+
backgroundImage: ImageModel | null;
|
|
354
|
+
validFrom: string;
|
|
355
|
+
validUntil: string;
|
|
356
|
+
isExpired: boolean;
|
|
357
|
+
filterCriteria: FilterCriteriaModel[];
|
|
358
|
+
meta?: any;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface OfferAlertTimelineModel {
|
|
362
|
+
actionCreatedAt: Date;
|
|
363
|
+
action: {
|
|
364
|
+
id: OfferAlertTimelineActionEnum;
|
|
365
|
+
};
|
|
366
|
+
offerAlert: OfferAlertModel;
|
|
367
|
+
createdByUser: Partial<UserAccountModel>;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
interface OfferRequestStatusModel {
|
|
371
|
+
id: OfferRequestStatusEnum;
|
|
372
|
+
updatedAt: Date;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
interface OfferRequestOptionModel {
|
|
376
|
+
id: OfferRequestOptionEnum;
|
|
377
|
+
status: {
|
|
378
|
+
id: OfferRequestOptionStatusEnum;
|
|
379
|
+
updatedAt: Date;
|
|
380
|
+
};
|
|
381
|
+
requestedValue: string | null;
|
|
382
|
+
providedValue: string | null;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
interface OfferRequestTimelineModel {
|
|
386
|
+
actionCreatedAt: Date;
|
|
387
|
+
action: {
|
|
388
|
+
id: OfferRequestTimelineActionEnum;
|
|
389
|
+
};
|
|
390
|
+
offerRequest: OfferRequestModel;
|
|
391
|
+
createdByUser: Partial<UserAccountModel>;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
interface OfferRequestModel extends UUID {
|
|
395
|
+
status: OfferRequestStatusModel;
|
|
396
|
+
price: PriceModel | null;
|
|
397
|
+
quantity: number;
|
|
398
|
+
images: ImageModel[];
|
|
399
|
+
offer: Partial<OfferModel> | null;
|
|
400
|
+
createdAt: Date;
|
|
401
|
+
organisation: OrganisationModel;
|
|
402
|
+
vintageProducts: VintageProductModel[];
|
|
403
|
+
timeline: OfferRequestTimelineModel[];
|
|
404
|
+
seller: OrganisationModel;
|
|
405
|
+
subOfferRequests: Partial<OfferRequestModel>[] | [];
|
|
406
|
+
userOrganisation: UserOrganisationModel;
|
|
407
|
+
options?: OfferRequestOptionModel[];
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
interface OrganisationUserInvitationStatusModel {
|
|
411
|
+
id: OrganisationUserInvitationStatusEnum;
|
|
412
|
+
name: string;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
interface UserInvitationModel {
|
|
416
|
+
status: OrganisationUserInvitationStatusModel;
|
|
417
|
+
token: string;
|
|
418
|
+
expiredAt: Date;
|
|
419
|
+
createdAt: Date;
|
|
420
|
+
personFirstName: string;
|
|
421
|
+
personLastName: string;
|
|
422
|
+
personEmail: string;
|
|
423
|
+
acceptedAt: Date | null;
|
|
424
|
+
invitedBy: UserModel;
|
|
425
|
+
acceptedBy: UserModel | null;
|
|
426
|
+
revokedBy: UserModel | null;
|
|
427
|
+
roles: RoleModel[] | [];
|
|
428
|
+
organisation: Partial<OrganisationModel>;
|
|
429
|
+
acceptedByUserOrganisation: UserOrganisationModel;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export type { B2bMarketPriceModel, ContactPointModel, ContactTypeModel, CountryModel, CurrencyRateModel, CustomerModel, FilterCriteriaModel, GenderModel, ImageModel, ImageTypeModel, ImageVariationModel, ImportFileHeaderModel, ImportResolvedFileHeaderValueModel, MarginMarketModel, MarginOrganisationModel, NotificationChannelModel, NotificationModel, NotificationTypeModel, OfferAlertModel, OfferAlertTimelineModel, OfferModel, OfferRequestModel, OfferRequestOptionModel, OfferRequestStatusModel, OfferRequestTimelineModel, OrganisationModel, OrganisationUserInvitationStatusModel, PermissionModel, PersonModel, PostalAddressModel, PriceModel, RegionModel, RoleModel, SellerModel, SupplierModel, TelephoneModel, UploadModel, UploadVisibilityTypeModel, UserAccountModel, UserInvitationModel, UserModel, UserOrganisationModel, UserOrganisationStatusModel, UserStatusModel, VatTaxModel, VintageModel, VintageProductModel, VintageRatingModel, VintageScoreAuthorModel, VintageScoreModel, WineModel, WineTypeModel, WineryModel };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import { CurrencyCodeEnum, UploadVisibilityTypeEnum, ContactPointTypeEnum, CurrencyRateSourceEnum, OrganisationStatusEnum, UserStatusEnum, GenderEnum, LocaleEnum, ImageVariationEnum, ImageTypeEnum, UserOrganisationStatusEnum, TimezoneEnum, DateTimeFormatEnum, OfferAlertFilterCriteriaFieldEnum, FilterOperatorEnum, UploadStatusEnum, UploadTypeEnum, CountryEnum, NotificationChannelEnum, NotificationTypeEnum, VintageScoreAuthorEnum, PackageEnum, OfferAlertTimelineActionEnum, OfferRequestStatusEnum, OfferRequestOptionEnum, OfferRequestOptionStatusEnum, OfferRequestTimelineActionEnum, OrganisationUserInvitationStatusEnum } from '@vini-wine/core-enums';
|
|
2
|
+
|
|
3
|
+
interface PriceModel {
|
|
4
|
+
priceMicros: number;
|
|
5
|
+
currency: CurrencyCodeEnum;
|
|
6
|
+
visibility: {
|
|
7
|
+
id: UploadVisibilityTypeEnum;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface B2bMarketPriceModel {
|
|
12
|
+
price: PriceModel | null;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface UUID {
|
|
17
|
+
uuid: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ContactTypeModel {
|
|
21
|
+
id: ContactPointTypeEnum;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface TelephoneModel {
|
|
25
|
+
number: string;
|
|
26
|
+
countryCode: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface ContactPointModel extends UUID {
|
|
30
|
+
email: string | null;
|
|
31
|
+
telephone: TelephoneModel | null;
|
|
32
|
+
name: string;
|
|
33
|
+
contactType: ContactTypeModel;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface CountryModel {
|
|
37
|
+
name: string;
|
|
38
|
+
codeAlpha2: string;
|
|
39
|
+
codeAlpha3: string;
|
|
40
|
+
codeUn: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface CurrencyRateModel {
|
|
44
|
+
currencyCode: CurrencyCodeEnum;
|
|
45
|
+
rate: number;
|
|
46
|
+
synchronizedAt: Date;
|
|
47
|
+
source: CurrencyRateSourceEnum;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface PostalAddressModel {
|
|
51
|
+
countryCode: string;
|
|
52
|
+
locality: string;
|
|
53
|
+
region: string | null;
|
|
54
|
+
postalCode: string;
|
|
55
|
+
streetAddress: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface VatTaxModel {
|
|
59
|
+
countryCode: string;
|
|
60
|
+
value: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface SupplierModel extends UUID {
|
|
64
|
+
isCustomer: boolean;
|
|
65
|
+
name: string;
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
supplierOrganisation?: OrganisationModel;
|
|
68
|
+
organisation?: OrganisationModel;
|
|
69
|
+
primaryLogisticsContactPoint?: ContactPointModel | null;
|
|
70
|
+
contactPoints?: ContactPointModel[] | [];
|
|
71
|
+
primarySalesContactPoint?: ContactPointModel | null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface OrganisationStatusModel {
|
|
75
|
+
id: OrganisationStatusEnum;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface RoleModel extends UUID {
|
|
79
|
+
name: string;
|
|
80
|
+
permissions?: PermissionModel[];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface PermissionModel extends UUID {
|
|
84
|
+
roles?: RoleModel[];
|
|
85
|
+
name: string;
|
|
86
|
+
component: string;
|
|
87
|
+
action: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface UserStatusModel {
|
|
91
|
+
id: UserStatusEnum;
|
|
92
|
+
name: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface GenderModel extends UUID {
|
|
96
|
+
id: GenderEnum;
|
|
97
|
+
name: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface PersonModel extends UUID {
|
|
101
|
+
firstName: string;
|
|
102
|
+
lastName: string;
|
|
103
|
+
preferredLanguage: LocaleEnum;
|
|
104
|
+
gender: GenderModel;
|
|
105
|
+
preferredCurrency: CurrencyCodeEnum;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
interface ImageVariationModel {
|
|
109
|
+
id: ImageVariationEnum;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
interface ImageTypeModel {
|
|
113
|
+
id: ImageTypeEnum;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface ImageModel extends UUID {
|
|
117
|
+
name: string;
|
|
118
|
+
mime: string;
|
|
119
|
+
height: number;
|
|
120
|
+
width: number;
|
|
121
|
+
url: string;
|
|
122
|
+
variation: ImageVariationModel;
|
|
123
|
+
type: ImageTypeModel;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface UserModel extends UUID {
|
|
127
|
+
person: PersonModel;
|
|
128
|
+
defaultUserOrganisation?: UserOrganisationModel;
|
|
129
|
+
permissions?: PermissionModel[];
|
|
130
|
+
roles?: RoleModel[];
|
|
131
|
+
userOrganisations?: UserOrganisationModel[];
|
|
132
|
+
numNotificationsUnPreRead?: number;
|
|
133
|
+
avatar?: ImageModel;
|
|
134
|
+
status: UserStatusModel;
|
|
135
|
+
email: string;
|
|
136
|
+
emailVerified: boolean;
|
|
137
|
+
lastLoginAt: Date;
|
|
138
|
+
createdAt: Date;
|
|
139
|
+
updatedAt: Date;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface UserOrganisationStatusModel {
|
|
143
|
+
id: UserOrganisationStatusEnum;
|
|
144
|
+
name: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
interface UserOrganisationModel {
|
|
148
|
+
organisation: OrganisationModel;
|
|
149
|
+
createdAt: Date;
|
|
150
|
+
isOrganisationOwner: boolean;
|
|
151
|
+
isUserDefaultOrganisation: boolean;
|
|
152
|
+
status: UserOrganisationStatusModel;
|
|
153
|
+
user?: UserModel;
|
|
154
|
+
permissions?: PermissionModel[];
|
|
155
|
+
roles?: RoleModel[];
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface UserAccountModel extends UUID {
|
|
159
|
+
person: PersonModel;
|
|
160
|
+
defaultUserOrganisation?: UserOrganisationModel;
|
|
161
|
+
permissions?: PermissionModel[];
|
|
162
|
+
roles?: RoleModel[];
|
|
163
|
+
userOrganisations?: UserOrganisationModel[];
|
|
164
|
+
numNotificationsUnPreRead?: number;
|
|
165
|
+
avatar?: ImageModel;
|
|
166
|
+
status: UserStatusModel;
|
|
167
|
+
email: string;
|
|
168
|
+
emailVerified: boolean;
|
|
169
|
+
lastLoginAt: Date;
|
|
170
|
+
defaultTimezone: TimezoneEnum;
|
|
171
|
+
defaultDateTimeFormat: DateTimeFormatEnum;
|
|
172
|
+
createdAt: Date;
|
|
173
|
+
updatedAt: Date;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface OrganisationModel extends UUID {
|
|
177
|
+
suppliers?: Partial<SupplierModel>[];
|
|
178
|
+
billingPostalAddress?: PostalAddressModel;
|
|
179
|
+
defaultShippingPostalAddress?: PostalAddressModel;
|
|
180
|
+
organisationOwner?: Partial<UserAccountModel>;
|
|
181
|
+
registeredBy?: Partial<UserAccountModel>;
|
|
182
|
+
userOrganisations?: UserOrganisationModel[];
|
|
183
|
+
numUserOrganisations?: number;
|
|
184
|
+
numSuppliers?: number;
|
|
185
|
+
numSuppliedSuppliers?: number;
|
|
186
|
+
numUploads?: number;
|
|
187
|
+
avatar?: ImageModel;
|
|
188
|
+
name: string;
|
|
189
|
+
legalName: string;
|
|
190
|
+
vatTax: VatTaxModel;
|
|
191
|
+
createdAt: Date;
|
|
192
|
+
defaultTimezone: TimezoneEnum;
|
|
193
|
+
status: OrganisationStatusModel;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
interface CustomerModel extends UUID {
|
|
197
|
+
isSupplier: boolean;
|
|
198
|
+
name: string;
|
|
199
|
+
createdAt: Date;
|
|
200
|
+
supplierOrganisation?: OrganisationModel;
|
|
201
|
+
organisation?: OrganisationModel;
|
|
202
|
+
primaryLogisticsContactPoint?: ContactPointModel | null;
|
|
203
|
+
contactPoints?: ContactPointModel[] | [];
|
|
204
|
+
primarySalesContactPoint?: ContactPointModel | null;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
interface FilterCriteriaModel {
|
|
208
|
+
field: OfferAlertFilterCriteriaFieldEnum;
|
|
209
|
+
operator: FilterOperatorEnum;
|
|
210
|
+
value: string | number | null;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
interface UploadVisibilityTypeModel {
|
|
214
|
+
upload?: UploadModel;
|
|
215
|
+
id: UploadVisibilityTypeEnum;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface UploadModel extends UUID {
|
|
219
|
+
status: {
|
|
220
|
+
id: UploadStatusEnum;
|
|
221
|
+
name: string;
|
|
222
|
+
};
|
|
223
|
+
type: {
|
|
224
|
+
id: UploadTypeEnum;
|
|
225
|
+
name: string;
|
|
226
|
+
};
|
|
227
|
+
name: string;
|
|
228
|
+
validFrom: Date;
|
|
229
|
+
validUntil: Date;
|
|
230
|
+
numItems: number;
|
|
231
|
+
createdAt: Date;
|
|
232
|
+
organisation: OrganisationModel;
|
|
233
|
+
organisationSupplier: SupplierModel;
|
|
234
|
+
createdUser?: UserAccountModel;
|
|
235
|
+
visibilityTypes?: UploadVisibilityTypeModel[];
|
|
236
|
+
importFileHeaders?: ImportFileHeaderModel[];
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
interface ImportFileHeaderModel {
|
|
240
|
+
upload?: UploadModel;
|
|
241
|
+
mappedHeader: string;
|
|
242
|
+
value: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface ImportResolvedFileHeaderValueModel {
|
|
246
|
+
field: string;
|
|
247
|
+
fieldValue: string;
|
|
248
|
+
resolvedValue: string;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
interface MarginMarketModel {
|
|
252
|
+
countryCode: CountryEnum;
|
|
253
|
+
margin: number;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
interface MarginOrganisationModel {
|
|
257
|
+
margin: number;
|
|
258
|
+
marginOrganisation: Partial<OrganisationModel>;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
interface NotificationChannelModel {
|
|
262
|
+
id: NotificationChannelEnum;
|
|
263
|
+
isActive: boolean;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
interface NotificationTypeModel {
|
|
267
|
+
id: NotificationTypeEnum;
|
|
268
|
+
channels: NotificationChannelModel[];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface NotificationModel extends UUID {
|
|
272
|
+
type: Partial<NotificationTypeModel>;
|
|
273
|
+
messagePlain: string;
|
|
274
|
+
messageHtml: string | null;
|
|
275
|
+
actionText: string;
|
|
276
|
+
actionUrl: string;
|
|
277
|
+
readAt: Date | null;
|
|
278
|
+
createdAt: Date;
|
|
279
|
+
updatedAt: Date;
|
|
280
|
+
name: string;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface SellerModel extends UUID {
|
|
284
|
+
organisation: Partial<OrganisationModel>;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface RegionModel extends UUID {
|
|
288
|
+
name: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
interface WineTypeModel extends UUID {
|
|
292
|
+
name: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
interface WineryModel extends UUID {
|
|
296
|
+
name: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
interface WineModel extends UUID {
|
|
300
|
+
name: string;
|
|
301
|
+
region: RegionModel;
|
|
302
|
+
wineType: WineTypeModel;
|
|
303
|
+
winery: WineryModel;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
interface VintageRatingModel {
|
|
307
|
+
numberOfRatings: number;
|
|
308
|
+
averageOfRatings: number;
|
|
309
|
+
updatedAt: Date;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
interface VintageScoreAuthorModel {
|
|
313
|
+
id: VintageScoreAuthorEnum;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
interface VintageScoreModel {
|
|
317
|
+
scoreValue: number;
|
|
318
|
+
scoreYear: number;
|
|
319
|
+
author: VintageScoreAuthorModel;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
interface VintageModel extends UUID {
|
|
323
|
+
year: number;
|
|
324
|
+
wine?: WineModel;
|
|
325
|
+
mappedExternal1Rating?: VintageRatingModel | null;
|
|
326
|
+
scores?: VintageScoreModel[];
|
|
327
|
+
images?: ImageModel[];
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
interface VintageProductModel extends UUID {
|
|
331
|
+
name: string;
|
|
332
|
+
milliliters: number;
|
|
333
|
+
vintage?: VintageModel;
|
|
334
|
+
b2bMarketPrice?: B2bMarketPriceModel | null;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
interface OfferModel extends UUID {
|
|
338
|
+
price: PriceModel | null;
|
|
339
|
+
supplier?: SupplierModel | null;
|
|
340
|
+
seller?: SellerModel;
|
|
341
|
+
vintageProducts?: VintageProductModel[];
|
|
342
|
+
upload?: UploadModel;
|
|
343
|
+
shippedFromCountry?: CountryModel | null;
|
|
344
|
+
quantity: number;
|
|
345
|
+
package: PackageEnum | null;
|
|
346
|
+
createdAt: Date;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
interface OfferAlertModel extends UUID {
|
|
350
|
+
title: string;
|
|
351
|
+
header: string;
|
|
352
|
+
description: string | null;
|
|
353
|
+
backgroundImage: ImageModel | null;
|
|
354
|
+
validFrom: string;
|
|
355
|
+
validUntil: string;
|
|
356
|
+
isExpired: boolean;
|
|
357
|
+
filterCriteria: FilterCriteriaModel[];
|
|
358
|
+
meta?: any;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface OfferAlertTimelineModel {
|
|
362
|
+
actionCreatedAt: Date;
|
|
363
|
+
action: {
|
|
364
|
+
id: OfferAlertTimelineActionEnum;
|
|
365
|
+
};
|
|
366
|
+
offerAlert: OfferAlertModel;
|
|
367
|
+
createdByUser: Partial<UserAccountModel>;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
interface OfferRequestStatusModel {
|
|
371
|
+
id: OfferRequestStatusEnum;
|
|
372
|
+
updatedAt: Date;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
interface OfferRequestOptionModel {
|
|
376
|
+
id: OfferRequestOptionEnum;
|
|
377
|
+
status: {
|
|
378
|
+
id: OfferRequestOptionStatusEnum;
|
|
379
|
+
updatedAt: Date;
|
|
380
|
+
};
|
|
381
|
+
requestedValue: string | null;
|
|
382
|
+
providedValue: string | null;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
interface OfferRequestTimelineModel {
|
|
386
|
+
actionCreatedAt: Date;
|
|
387
|
+
action: {
|
|
388
|
+
id: OfferRequestTimelineActionEnum;
|
|
389
|
+
};
|
|
390
|
+
offerRequest: OfferRequestModel;
|
|
391
|
+
createdByUser: Partial<UserAccountModel>;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
interface OfferRequestModel extends UUID {
|
|
395
|
+
status: OfferRequestStatusModel;
|
|
396
|
+
price: PriceModel | null;
|
|
397
|
+
quantity: number;
|
|
398
|
+
images: ImageModel[];
|
|
399
|
+
offer: Partial<OfferModel> | null;
|
|
400
|
+
createdAt: Date;
|
|
401
|
+
organisation: OrganisationModel;
|
|
402
|
+
vintageProducts: VintageProductModel[];
|
|
403
|
+
timeline: OfferRequestTimelineModel[];
|
|
404
|
+
seller: OrganisationModel;
|
|
405
|
+
subOfferRequests: Partial<OfferRequestModel>[] | [];
|
|
406
|
+
userOrganisation: UserOrganisationModel;
|
|
407
|
+
options?: OfferRequestOptionModel[];
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
interface OrganisationUserInvitationStatusModel {
|
|
411
|
+
id: OrganisationUserInvitationStatusEnum;
|
|
412
|
+
name: string;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
interface UserInvitationModel {
|
|
416
|
+
status: OrganisationUserInvitationStatusModel;
|
|
417
|
+
token: string;
|
|
418
|
+
expiredAt: Date;
|
|
419
|
+
createdAt: Date;
|
|
420
|
+
personFirstName: string;
|
|
421
|
+
personLastName: string;
|
|
422
|
+
personEmail: string;
|
|
423
|
+
acceptedAt: Date | null;
|
|
424
|
+
invitedBy: UserModel;
|
|
425
|
+
acceptedBy: UserModel | null;
|
|
426
|
+
revokedBy: UserModel | null;
|
|
427
|
+
roles: RoleModel[] | [];
|
|
428
|
+
organisation: Partial<OrganisationModel>;
|
|
429
|
+
acceptedByUserOrganisation: UserOrganisationModel;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export type { B2bMarketPriceModel, ContactPointModel, ContactTypeModel, CountryModel, CurrencyRateModel, CustomerModel, FilterCriteriaModel, GenderModel, ImageModel, ImageTypeModel, ImageVariationModel, ImportFileHeaderModel, ImportResolvedFileHeaderValueModel, MarginMarketModel, MarginOrganisationModel, NotificationChannelModel, NotificationModel, NotificationTypeModel, OfferAlertModel, OfferAlertTimelineModel, OfferModel, OfferRequestModel, OfferRequestOptionModel, OfferRequestStatusModel, OfferRequestTimelineModel, OrganisationModel, OrganisationUserInvitationStatusModel, PermissionModel, PersonModel, PostalAddressModel, PriceModel, RegionModel, RoleModel, SellerModel, SupplierModel, TelephoneModel, UploadModel, UploadVisibilityTypeModel, UserAccountModel, UserInvitationModel, UserModel, UserOrganisationModel, UserOrganisationStatusModel, UserStatusModel, VatTaxModel, VintageModel, VintageProductModel, VintageRatingModel, VintageScoreAuthorModel, VintageScoreModel, WineModel, WineTypeModel, WineryModel };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/index.ts
|
|
17
|
+
var src_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(src_exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { B2bMarketPriceModel } from \"./models/b2bMarketPrice\";\nimport { ContactPointModel } from \"./models/contactPoint\";\nimport { ContactTypeModel } from \"./models/contactType\";\nimport { CountryModel } from \"./models/country\";\nimport { CurrencyRateModel } from \"./models/currencyRate\";\nimport { CustomerModel } from \"./models/customer\";\nimport { FilterCriteriaModel } from \"./models/filterCriteria\";\nimport { GenderModel } from \"./models/gender\";\nimport { ImageModel } from \"./models/image\";\nimport { ImageTypeModel } from \"./models/imageType\";\nimport { ImageVariationModel } from \"./models/imageVariation\";\nimport { ImportFileHeaderModel } from \"./models/importFileHeader\";\nimport { ImportResolvedFileHeaderValueModel } from \"./models/importResolvedFileHeaderValue\";\nimport { MarginMarketModel } from \"./models/marginMarket\";\nimport { MarginOrganisationModel } from \"./models/marginOrganisation\";\nimport { NotificationModel } from \"./models/notification\";\nimport { NotificationChannelModel } from \"./models/notificationChannel\";\nimport { NotificationTypeModel } from \"./models/notificationType\";\nimport { OfferModel } from \"./models/offer\";\nimport { OfferAlertModel } from \"./models/offerAlert\";\nimport { OfferAlertTimelineModel } from \"./models/offerAlertTimeline\";\nimport { OfferRequestModel } from \"./models/offerRequest\";\nimport { OfferRequestOptionModel } from \"./models/offerRequestOption\";\nimport { OfferRequestStatusModel } from \"./models/offerRequestStatus\";\nimport { OfferRequestTimelineModel } from \"./models/offerRequestTimeline\";\nimport { OrganisationModel } from \"./models/organisation\";\nimport { OrganisationUserInvitationStatusModel } from \"./models/organisationUserInvitationStatus\";\nimport { PermissionModel } from \"./models/permission\";\nimport { PersonModel } from \"./models/person\";\nimport { PostalAddressModel } from \"./models/postalAddress\";\nimport { PriceModel } from \"./models/price\";\nimport { RegionModel } from \"./models/region\";\nimport { RoleModel } from \"./models/role\";\nimport { SellerModel } from \"./models/seller\";\nimport { SupplierModel } from \"./models/supplier\";\nimport { TelephoneModel } from \"./models/telephone\";\nimport { UploadModel } from \"./models/upload\";\nimport { UploadVisibilityTypeModel } from \"./models/uploadVisibilityType\";\nimport { UserModel } from \"./models/user\";\nimport { UserAccountModel } from \"./models/userAccount\";\nimport { UserInvitationModel } from \"./models/userInvitation\";\nimport { UserOrganisationModel } from \"./models/userOrganisation\";\nimport { UserOrganisationStatusModel } from \"./models/userOrganisationStatus\";\nimport { UserStatusModel } from \"./models/userStatus\";\nimport { VatTaxModel } from \"./models/vatTax\";\nimport { VintageModel } from \"./models/vintage\";\nimport { VintageProductModel } from \"./models/vintageProduct\";\nimport { VintageRatingModel } from \"./models/vintageRating\";\nimport { VintageScoreModel } from \"./models/vintageScore\";\nimport { VintageScoreAuthorModel } from \"./models/vintageScoreAuthor\";\nimport { WineModel } from \"./models/wine\";\nimport { WineryModel } from \"./models/winery\";\nimport { WineTypeModel } from \"./models/wineType\";\n\nexport {\n B2bMarketPriceModel,\n ContactPointModel,\n ContactTypeModel,\n CountryModel,\n CurrencyRateModel,\n CustomerModel,\n FilterCriteriaModel,\n GenderModel,\n ImageModel,\n ImageTypeModel,\n ImageVariationModel,\n ImportFileHeaderModel,\n ImportResolvedFileHeaderValueModel,\n MarginMarketModel,\n MarginOrganisationModel,\n NotificationModel,\n NotificationChannelModel,\n NotificationTypeModel,\n OfferModel,\n OfferAlertModel,\n OfferAlertTimelineModel,\n OfferRequestModel,\n OfferRequestOptionModel,\n OfferRequestStatusModel,\n OfferRequestTimelineModel,\n OrganisationModel,\n OrganisationUserInvitationStatusModel,\n PermissionModel,\n PersonModel,\n PostalAddressModel,\n PriceModel,\n RegionModel,\n RoleModel,\n SellerModel,\n SupplierModel,\n TelephoneModel,\n UploadModel,\n UploadVisibilityTypeModel,\n UserModel,\n UserAccountModel,\n UserInvitationModel,\n UserOrganisationModel,\n UserOrganisationStatusModel,\n UserStatusModel,\n VatTaxModel,\n VintageModel,\n VintageProductModel,\n VintageRatingModel,\n VintageScoreModel,\n VintageScoreAuthorModel,\n WineModel,\n WineryModel,\n WineTypeModel,\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vini-wine/admin-core-models",
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
|
+
"description": "Core package for Vini models related to the admin API.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsup",
|
|
13
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
+
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts",
|
|
15
|
+
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+ssh://git@bitbucket.org/vini-wine/admin-core-models.git"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"Vini",
|
|
23
|
+
"Frontend",
|
|
24
|
+
"Core",
|
|
25
|
+
"Models",
|
|
26
|
+
"Admin"
|
|
27
|
+
],
|
|
28
|
+
"author": "Jordancho Eftimov",
|
|
29
|
+
"license": "ISC",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://bitbucket.org/vini-wine/admin-core-models/issues"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://bitbucket.org/vini-wine/admin-core-models#readme",
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.18.1",
|
|
36
|
+
"@typescript-eslint/parser": "^6.18.1",
|
|
37
|
+
"@vini-wine/core-enums": "^1.x",
|
|
38
|
+
"eslint": "^8.56.0",
|
|
39
|
+
"eslint-config-prettier": "^9.1.0",
|
|
40
|
+
"eslint-config-standard-with-typescript": "^43.0.0",
|
|
41
|
+
"eslint-plugin-import": "^2.29.1",
|
|
42
|
+
"eslint-plugin-n": "^16.6.2",
|
|
43
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
44
|
+
"prettier": "^3.1.1",
|
|
45
|
+
"ts-node": "^10.9.2",
|
|
46
|
+
"tsup": "^8.0.1",
|
|
47
|
+
"typescript": "^5.3.3"
|
|
48
|
+
}
|
|
49
|
+
}
|