@vini-wine/admin-core-models 1.0.3 → 1.1.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 +101 -100
- package/dist/index.d.ts +101 -100
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CurrencyCodeEnum, UploadVisibilityTypeEnum, ContactPointTypeEnum, CountryEnum,
|
|
1
|
+
import { CurrencyCodeEnum, UploadVisibilityTypeEnum, ContactPointTypeEnum, CountryEnum, OrganisationStatusEnum, UserOrganisationStatusEnum, GenderEnum, LocaleEnum, UserStatusEnum, ImageVariationEnum, ImageTypeEnum, TimezoneEnum, DateTimeFormatEnum, CurrencyRateSourceEnum, OfferAlertFilterCriteriaFieldEnum, FilterOperatorEnum, UploadStatusEnum, UploadTypeEnum, NotificationTypeEnum, NotificationChannelEnum, VintageRatingEnum, VintageScoreAuthorEnum, PackageEnum, OfferAlertTimelineActionEnum, OfferRequestStatusEnum, OfferRequestOptionEnum, OfferRequestOptionStatusEnum, OfferRequestTimelineActionEnum, OrganisationUserInvitationStatusEnum } from '@vini-wine/core-enums';
|
|
2
2
|
|
|
3
3
|
interface PriceModel {
|
|
4
4
|
priceMicros: number;
|
|
@@ -26,26 +26,6 @@ interface TelephoneModel {
|
|
|
26
26
|
countryCode: CountryEnum;
|
|
27
27
|
}
|
|
28
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
|
-
codeAlpha2: CountryEnum;
|
|
38
|
-
codeAlpha3: string;
|
|
39
|
-
codeUn: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface CurrencyRateModel {
|
|
43
|
-
currencyCode: CurrencyCodeEnum;
|
|
44
|
-
rate: number;
|
|
45
|
-
synchronizedAt: Date;
|
|
46
|
-
source: CurrencyRateSourceEnum;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
29
|
interface PostalAddressModel {
|
|
50
30
|
countryCode: CountryEnum;
|
|
51
31
|
locality: string;
|
|
@@ -86,24 +66,40 @@ interface PermissionModel extends UUID {
|
|
|
86
66
|
action: string;
|
|
87
67
|
}
|
|
88
68
|
|
|
89
|
-
interface
|
|
90
|
-
id:
|
|
69
|
+
interface UserOrganisationStatusModel {
|
|
70
|
+
id: UserOrganisationStatusEnum;
|
|
91
71
|
name: string;
|
|
92
72
|
}
|
|
93
73
|
|
|
74
|
+
interface UserOrganisationModel {
|
|
75
|
+
organisation: OrganisationModel;
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
isOrganisationOwner: boolean;
|
|
78
|
+
isUserDefaultOrganisation: boolean;
|
|
79
|
+
status: UserOrganisationStatusModel;
|
|
80
|
+
user?: UserAccountModel;
|
|
81
|
+
permissions?: PermissionModel[];
|
|
82
|
+
roles?: RoleModel[];
|
|
83
|
+
}
|
|
84
|
+
|
|
94
85
|
interface GenderModel extends UUID {
|
|
95
86
|
id: GenderEnum;
|
|
96
87
|
name: string;
|
|
97
88
|
}
|
|
98
89
|
|
|
99
90
|
interface PersonModel extends UUID {
|
|
91
|
+
gender: GenderModel;
|
|
100
92
|
firstName: string;
|
|
101
93
|
lastName: string;
|
|
102
94
|
preferredLanguage: LocaleEnum;
|
|
103
|
-
gender: GenderModel;
|
|
104
95
|
preferredCurrency: CurrencyCodeEnum;
|
|
105
96
|
}
|
|
106
97
|
|
|
98
|
+
interface UserStatusModel {
|
|
99
|
+
id: UserStatusEnum;
|
|
100
|
+
name: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
107
103
|
interface ImageVariationModel {
|
|
108
104
|
id: ImageVariationEnum;
|
|
109
105
|
}
|
|
@@ -122,38 +118,6 @@ interface ImageModel extends UUID {
|
|
|
122
118
|
type: ImageTypeModel;
|
|
123
119
|
}
|
|
124
120
|
|
|
125
|
-
interface UserModel extends UUID {
|
|
126
|
-
person: PersonModel;
|
|
127
|
-
defaultUserOrganisation?: UserOrganisationModel;
|
|
128
|
-
permissions?: PermissionModel[];
|
|
129
|
-
roles?: RoleModel[];
|
|
130
|
-
userOrganisations?: UserOrganisationModel[];
|
|
131
|
-
numNotificationsUnPreRead?: number;
|
|
132
|
-
avatar?: ImageModel;
|
|
133
|
-
status: UserStatusModel;
|
|
134
|
-
email: string;
|
|
135
|
-
emailVerified: boolean;
|
|
136
|
-
lastLoginAt: Date;
|
|
137
|
-
createdAt: Date;
|
|
138
|
-
updatedAt: Date;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface UserOrganisationStatusModel {
|
|
142
|
-
id: UserOrganisationStatusEnum;
|
|
143
|
-
name: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
interface UserOrganisationModel {
|
|
147
|
-
organisation: OrganisationModel;
|
|
148
|
-
createdAt: Date;
|
|
149
|
-
isOrganisationOwner: boolean;
|
|
150
|
-
isUserDefaultOrganisation: boolean;
|
|
151
|
-
status: UserOrganisationStatusModel;
|
|
152
|
-
user?: UserModel;
|
|
153
|
-
permissions?: PermissionModel[];
|
|
154
|
-
roles?: RoleModel[];
|
|
155
|
-
}
|
|
156
|
-
|
|
157
121
|
interface UserAccountModel extends UUID {
|
|
158
122
|
person: PersonModel;
|
|
159
123
|
defaultUserOrganisation?: UserOrganisationModel;
|
|
@@ -175,7 +139,7 @@ interface UserAccountModel extends UUID {
|
|
|
175
139
|
interface OrganisationModel extends UUID {
|
|
176
140
|
suppliers?: Partial<SupplierModel>[];
|
|
177
141
|
billingPostalAddress?: PostalAddressModel;
|
|
178
|
-
defaultShippingPostalAddress?: PostalAddressModel;
|
|
142
|
+
defaultShippingPostalAddress?: PostalAddressModel | null;
|
|
179
143
|
organisationOwner?: Partial<UserAccountModel>;
|
|
180
144
|
registeredBy?: Partial<UserAccountModel>;
|
|
181
145
|
userOrganisations?: UserOrganisationModel[];
|
|
@@ -183,7 +147,7 @@ interface OrganisationModel extends UUID {
|
|
|
183
147
|
numSuppliers?: number;
|
|
184
148
|
numSuppliedSuppliers?: number;
|
|
185
149
|
numUploads?: number;
|
|
186
|
-
avatar?: ImageModel;
|
|
150
|
+
avatar?: ImageModel | null;
|
|
187
151
|
name: string;
|
|
188
152
|
legalName: string;
|
|
189
153
|
vatTax: VatTaxModel;
|
|
@@ -192,6 +156,28 @@ interface OrganisationModel extends UUID {
|
|
|
192
156
|
status: OrganisationStatusModel;
|
|
193
157
|
}
|
|
194
158
|
|
|
159
|
+
interface ContactPointModel extends UUID {
|
|
160
|
+
email: string | null;
|
|
161
|
+
telephone: TelephoneModel | null;
|
|
162
|
+
name: string;
|
|
163
|
+
contactType: ContactTypeModel;
|
|
164
|
+
createdOrganisation?: OrganisationModel;
|
|
165
|
+
createdUser?: UserAccountModel | null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
interface CountryModel {
|
|
169
|
+
codeAlpha2: CountryEnum;
|
|
170
|
+
codeAlpha3: string;
|
|
171
|
+
codeUn: string;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
interface CurrencyRateModel {
|
|
175
|
+
currencyCode: CurrencyCodeEnum;
|
|
176
|
+
rate: number;
|
|
177
|
+
synchronizedAt: Date;
|
|
178
|
+
source: CurrencyRateSourceEnum;
|
|
179
|
+
}
|
|
180
|
+
|
|
195
181
|
interface CustomerModel extends UUID {
|
|
196
182
|
isSupplier: boolean;
|
|
197
183
|
name: string;
|
|
@@ -250,25 +236,23 @@ interface ImportResolvedFileHeaderValueModel {
|
|
|
250
236
|
interface MarginMarketModel {
|
|
251
237
|
countryCode: CountryEnum;
|
|
252
238
|
margin: number;
|
|
239
|
+
organisation?: OrganisationModel;
|
|
240
|
+
createdBy?: UserAccountModel | null;
|
|
241
|
+
updatedBy?: UserAccountModel | null;
|
|
253
242
|
}
|
|
254
243
|
|
|
255
244
|
interface MarginOrganisationModel {
|
|
256
245
|
margin: number;
|
|
257
|
-
marginOrganisation
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
id: NotificationChannelEnum;
|
|
262
|
-
isActive: boolean;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
interface NotificationTypeModel {
|
|
266
|
-
id: NotificationTypeEnum;
|
|
267
|
-
channels: NotificationChannelModel[];
|
|
246
|
+
marginOrganisation?: OrganisationModel;
|
|
247
|
+
organisation?: OrganisationModel;
|
|
248
|
+
createdBy?: UserAccountModel | null;
|
|
249
|
+
updatedBy?: UserAccountModel | null;
|
|
268
250
|
}
|
|
269
251
|
|
|
270
252
|
interface NotificationModel extends UUID {
|
|
271
|
-
type:
|
|
253
|
+
type: {
|
|
254
|
+
id: NotificationTypeEnum;
|
|
255
|
+
};
|
|
272
256
|
messagePlain: string;
|
|
273
257
|
messageHtml: string | null;
|
|
274
258
|
actionText: string;
|
|
@@ -279,14 +263,24 @@ interface NotificationModel extends UUID {
|
|
|
279
263
|
name: string;
|
|
280
264
|
}
|
|
281
265
|
|
|
266
|
+
interface NotificationChannelModel {
|
|
267
|
+
id: NotificationChannelEnum;
|
|
268
|
+
isActive: boolean;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface NotificationTypeModel {
|
|
272
|
+
id: NotificationTypeEnum;
|
|
273
|
+
channels: NotificationChannelModel[];
|
|
274
|
+
}
|
|
275
|
+
|
|
282
276
|
interface SellerModel extends UUID {
|
|
283
|
-
organisation
|
|
277
|
+
organisation?: OrganisationModel;
|
|
284
278
|
}
|
|
285
279
|
|
|
286
280
|
interface RegionModel extends UUID {
|
|
287
281
|
country: CountryModel;
|
|
288
282
|
mappedItems?: any;
|
|
289
|
-
parentRegion?: RegionModel;
|
|
283
|
+
parentRegion?: RegionModel | null;
|
|
290
284
|
subRegions?: RegionModel[];
|
|
291
285
|
images?: ImageModel[];
|
|
292
286
|
name: string;
|
|
@@ -314,6 +308,8 @@ interface VintageRatingModel {
|
|
|
314
308
|
numberOfRatings: number;
|
|
315
309
|
averageOfRatings: number;
|
|
316
310
|
updatedAt: Date;
|
|
311
|
+
status: VintageRatingEnum;
|
|
312
|
+
vintage?: VintageModel;
|
|
317
313
|
}
|
|
318
314
|
|
|
319
315
|
interface VintageScoreAuthorModel {
|
|
@@ -324,6 +320,7 @@ interface VintageScoreModel {
|
|
|
324
320
|
scoreValue: number;
|
|
325
321
|
scoreYear: number;
|
|
326
322
|
author: VintageScoreAuthorModel;
|
|
323
|
+
vintage?: VintageModel;
|
|
327
324
|
}
|
|
328
325
|
|
|
329
326
|
interface VintageModel extends UUID {
|
|
@@ -353,27 +350,29 @@ interface OfferModel extends UUID {
|
|
|
353
350
|
createdAt: Date;
|
|
354
351
|
}
|
|
355
352
|
|
|
353
|
+
interface OfferAlertTimelineModel {
|
|
354
|
+
actionCreatedAt: Date;
|
|
355
|
+
action: {
|
|
356
|
+
id: OfferAlertTimelineActionEnum;
|
|
357
|
+
};
|
|
358
|
+
offerAlert?: OfferAlertModel;
|
|
359
|
+
createdByUser?: UserAccountModel;
|
|
360
|
+
}
|
|
361
|
+
|
|
356
362
|
interface OfferAlertModel extends UUID {
|
|
357
363
|
title: string;
|
|
358
364
|
header: string;
|
|
359
365
|
description: string | null;
|
|
360
|
-
backgroundImage: ImageModel | null;
|
|
361
366
|
validFrom: string;
|
|
362
367
|
validUntil: string;
|
|
363
368
|
isExpired: boolean;
|
|
364
|
-
|
|
369
|
+
organisation?: OrganisationModel;
|
|
370
|
+
backgroundImage?: ImageModel | null;
|
|
371
|
+
filterCriteria?: FilterCriteriaModel[];
|
|
372
|
+
timeline?: OfferAlertTimelineModel;
|
|
365
373
|
meta?: any;
|
|
366
374
|
}
|
|
367
375
|
|
|
368
|
-
interface OfferAlertTimelineModel {
|
|
369
|
-
actionCreatedAt: Date;
|
|
370
|
-
action: {
|
|
371
|
-
id: OfferAlertTimelineActionEnum;
|
|
372
|
-
};
|
|
373
|
-
offerAlert: OfferAlertModel;
|
|
374
|
-
createdByUser: Partial<UserAccountModel>;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
376
|
interface OfferRequestStatusModel {
|
|
378
377
|
id: OfferRequestStatusEnum;
|
|
379
378
|
updatedAt: Date;
|
|
@@ -387,6 +386,7 @@ interface OfferRequestOptionModel {
|
|
|
387
386
|
};
|
|
388
387
|
requestedValue: string | null;
|
|
389
388
|
providedValue: string | null;
|
|
389
|
+
offerRequest?: OfferRequestModel;
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
interface OfferRequestTimelineModel {
|
|
@@ -394,23 +394,25 @@ interface OfferRequestTimelineModel {
|
|
|
394
394
|
action: {
|
|
395
395
|
id: OfferRequestTimelineActionEnum;
|
|
396
396
|
};
|
|
397
|
-
offerRequest
|
|
398
|
-
createdByUser
|
|
397
|
+
offerRequest?: OfferRequestModel;
|
|
398
|
+
createdByUser?: UserAccountModel | null;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
interface OfferRequestModel extends UUID {
|
|
402
402
|
status: OfferRequestStatusModel;
|
|
403
|
-
|
|
403
|
+
createdAt: Date;
|
|
404
|
+
changedAt: Date;
|
|
405
|
+
updatedAt: Date;
|
|
404
406
|
quantity: number;
|
|
405
|
-
|
|
407
|
+
price: PriceModel | null;
|
|
406
408
|
offer: Partial<OfferModel> | null;
|
|
407
|
-
createdAt: Date;
|
|
408
409
|
organisation: OrganisationModel;
|
|
409
|
-
vintageProducts: VintageProductModel[];
|
|
410
|
-
timeline: OfferRequestTimelineModel[];
|
|
411
410
|
seller: OrganisationModel;
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
images?: ImageModel[];
|
|
412
|
+
vintageProducts?: VintageProductModel[];
|
|
413
|
+
timeline?: OfferRequestTimelineModel[];
|
|
414
|
+
subOfferRequests?: Partial<OfferRequestModel>[] | [];
|
|
415
|
+
userOrganisation?: UserOrganisationModel;
|
|
414
416
|
options?: OfferRequestOptionModel[];
|
|
415
417
|
}
|
|
416
418
|
|
|
@@ -419,7 +421,12 @@ interface OrganisationUserInvitationStatusModel {
|
|
|
419
421
|
name: string;
|
|
420
422
|
}
|
|
421
423
|
|
|
422
|
-
interface
|
|
424
|
+
interface OrganisationUserInvitationModel {
|
|
425
|
+
organisation?: Partial<OrganisationModel>;
|
|
426
|
+
invitedBy?: UserAccountModel;
|
|
427
|
+
acceptedByUserOrganisation?: UserOrganisationModel;
|
|
428
|
+
revokedBy?: UserAccountModel | null;
|
|
429
|
+
roles?: RoleModel[] | [];
|
|
423
430
|
status: OrganisationUserInvitationStatusModel;
|
|
424
431
|
token: string;
|
|
425
432
|
expiredAt: Date;
|
|
@@ -428,12 +435,6 @@ interface UserInvitationModel {
|
|
|
428
435
|
personLastName: string;
|
|
429
436
|
personEmail: string;
|
|
430
437
|
acceptedAt: Date | null;
|
|
431
|
-
invitedBy: UserModel;
|
|
432
|
-
acceptedBy: UserModel | null;
|
|
433
|
-
revokedBy: UserModel | null;
|
|
434
|
-
roles: RoleModel[] | [];
|
|
435
|
-
organisation: Partial<OrganisationModel>;
|
|
436
|
-
acceptedByUserOrganisation: UserOrganisationModel;
|
|
437
438
|
}
|
|
438
439
|
|
|
439
|
-
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,
|
|
440
|
+
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, OrganisationUserInvitationModel, OrganisationUserInvitationStatusModel, PermissionModel, PersonModel, PostalAddressModel, PriceModel, RegionModel, RoleModel, SellerModel, SupplierModel, TelephoneModel, UploadModel, UploadVisibilityTypeModel, UserAccountModel, UserOrganisationModel, UserOrganisationStatusModel, UserStatusModel, VatTaxModel, VintageModel, VintageProductModel, VintageRatingModel, VintageScoreAuthorModel, VintageScoreModel, WineModel, WineTypeModel, WineryModel };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CurrencyCodeEnum, UploadVisibilityTypeEnum, ContactPointTypeEnum, CountryEnum,
|
|
1
|
+
import { CurrencyCodeEnum, UploadVisibilityTypeEnum, ContactPointTypeEnum, CountryEnum, OrganisationStatusEnum, UserOrganisationStatusEnum, GenderEnum, LocaleEnum, UserStatusEnum, ImageVariationEnum, ImageTypeEnum, TimezoneEnum, DateTimeFormatEnum, CurrencyRateSourceEnum, OfferAlertFilterCriteriaFieldEnum, FilterOperatorEnum, UploadStatusEnum, UploadTypeEnum, NotificationTypeEnum, NotificationChannelEnum, VintageRatingEnum, VintageScoreAuthorEnum, PackageEnum, OfferAlertTimelineActionEnum, OfferRequestStatusEnum, OfferRequestOptionEnum, OfferRequestOptionStatusEnum, OfferRequestTimelineActionEnum, OrganisationUserInvitationStatusEnum } from '@vini-wine/core-enums';
|
|
2
2
|
|
|
3
3
|
interface PriceModel {
|
|
4
4
|
priceMicros: number;
|
|
@@ -26,26 +26,6 @@ interface TelephoneModel {
|
|
|
26
26
|
countryCode: CountryEnum;
|
|
27
27
|
}
|
|
28
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
|
-
codeAlpha2: CountryEnum;
|
|
38
|
-
codeAlpha3: string;
|
|
39
|
-
codeUn: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface CurrencyRateModel {
|
|
43
|
-
currencyCode: CurrencyCodeEnum;
|
|
44
|
-
rate: number;
|
|
45
|
-
synchronizedAt: Date;
|
|
46
|
-
source: CurrencyRateSourceEnum;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
29
|
interface PostalAddressModel {
|
|
50
30
|
countryCode: CountryEnum;
|
|
51
31
|
locality: string;
|
|
@@ -86,24 +66,40 @@ interface PermissionModel extends UUID {
|
|
|
86
66
|
action: string;
|
|
87
67
|
}
|
|
88
68
|
|
|
89
|
-
interface
|
|
90
|
-
id:
|
|
69
|
+
interface UserOrganisationStatusModel {
|
|
70
|
+
id: UserOrganisationStatusEnum;
|
|
91
71
|
name: string;
|
|
92
72
|
}
|
|
93
73
|
|
|
74
|
+
interface UserOrganisationModel {
|
|
75
|
+
organisation: OrganisationModel;
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
isOrganisationOwner: boolean;
|
|
78
|
+
isUserDefaultOrganisation: boolean;
|
|
79
|
+
status: UserOrganisationStatusModel;
|
|
80
|
+
user?: UserAccountModel;
|
|
81
|
+
permissions?: PermissionModel[];
|
|
82
|
+
roles?: RoleModel[];
|
|
83
|
+
}
|
|
84
|
+
|
|
94
85
|
interface GenderModel extends UUID {
|
|
95
86
|
id: GenderEnum;
|
|
96
87
|
name: string;
|
|
97
88
|
}
|
|
98
89
|
|
|
99
90
|
interface PersonModel extends UUID {
|
|
91
|
+
gender: GenderModel;
|
|
100
92
|
firstName: string;
|
|
101
93
|
lastName: string;
|
|
102
94
|
preferredLanguage: LocaleEnum;
|
|
103
|
-
gender: GenderModel;
|
|
104
95
|
preferredCurrency: CurrencyCodeEnum;
|
|
105
96
|
}
|
|
106
97
|
|
|
98
|
+
interface UserStatusModel {
|
|
99
|
+
id: UserStatusEnum;
|
|
100
|
+
name: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
107
103
|
interface ImageVariationModel {
|
|
108
104
|
id: ImageVariationEnum;
|
|
109
105
|
}
|
|
@@ -122,38 +118,6 @@ interface ImageModel extends UUID {
|
|
|
122
118
|
type: ImageTypeModel;
|
|
123
119
|
}
|
|
124
120
|
|
|
125
|
-
interface UserModel extends UUID {
|
|
126
|
-
person: PersonModel;
|
|
127
|
-
defaultUserOrganisation?: UserOrganisationModel;
|
|
128
|
-
permissions?: PermissionModel[];
|
|
129
|
-
roles?: RoleModel[];
|
|
130
|
-
userOrganisations?: UserOrganisationModel[];
|
|
131
|
-
numNotificationsUnPreRead?: number;
|
|
132
|
-
avatar?: ImageModel;
|
|
133
|
-
status: UserStatusModel;
|
|
134
|
-
email: string;
|
|
135
|
-
emailVerified: boolean;
|
|
136
|
-
lastLoginAt: Date;
|
|
137
|
-
createdAt: Date;
|
|
138
|
-
updatedAt: Date;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface UserOrganisationStatusModel {
|
|
142
|
-
id: UserOrganisationStatusEnum;
|
|
143
|
-
name: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
interface UserOrganisationModel {
|
|
147
|
-
organisation: OrganisationModel;
|
|
148
|
-
createdAt: Date;
|
|
149
|
-
isOrganisationOwner: boolean;
|
|
150
|
-
isUserDefaultOrganisation: boolean;
|
|
151
|
-
status: UserOrganisationStatusModel;
|
|
152
|
-
user?: UserModel;
|
|
153
|
-
permissions?: PermissionModel[];
|
|
154
|
-
roles?: RoleModel[];
|
|
155
|
-
}
|
|
156
|
-
|
|
157
121
|
interface UserAccountModel extends UUID {
|
|
158
122
|
person: PersonModel;
|
|
159
123
|
defaultUserOrganisation?: UserOrganisationModel;
|
|
@@ -175,7 +139,7 @@ interface UserAccountModel extends UUID {
|
|
|
175
139
|
interface OrganisationModel extends UUID {
|
|
176
140
|
suppliers?: Partial<SupplierModel>[];
|
|
177
141
|
billingPostalAddress?: PostalAddressModel;
|
|
178
|
-
defaultShippingPostalAddress?: PostalAddressModel;
|
|
142
|
+
defaultShippingPostalAddress?: PostalAddressModel | null;
|
|
179
143
|
organisationOwner?: Partial<UserAccountModel>;
|
|
180
144
|
registeredBy?: Partial<UserAccountModel>;
|
|
181
145
|
userOrganisations?: UserOrganisationModel[];
|
|
@@ -183,7 +147,7 @@ interface OrganisationModel extends UUID {
|
|
|
183
147
|
numSuppliers?: number;
|
|
184
148
|
numSuppliedSuppliers?: number;
|
|
185
149
|
numUploads?: number;
|
|
186
|
-
avatar?: ImageModel;
|
|
150
|
+
avatar?: ImageModel | null;
|
|
187
151
|
name: string;
|
|
188
152
|
legalName: string;
|
|
189
153
|
vatTax: VatTaxModel;
|
|
@@ -192,6 +156,28 @@ interface OrganisationModel extends UUID {
|
|
|
192
156
|
status: OrganisationStatusModel;
|
|
193
157
|
}
|
|
194
158
|
|
|
159
|
+
interface ContactPointModel extends UUID {
|
|
160
|
+
email: string | null;
|
|
161
|
+
telephone: TelephoneModel | null;
|
|
162
|
+
name: string;
|
|
163
|
+
contactType: ContactTypeModel;
|
|
164
|
+
createdOrganisation?: OrganisationModel;
|
|
165
|
+
createdUser?: UserAccountModel | null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
interface CountryModel {
|
|
169
|
+
codeAlpha2: CountryEnum;
|
|
170
|
+
codeAlpha3: string;
|
|
171
|
+
codeUn: string;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
interface CurrencyRateModel {
|
|
175
|
+
currencyCode: CurrencyCodeEnum;
|
|
176
|
+
rate: number;
|
|
177
|
+
synchronizedAt: Date;
|
|
178
|
+
source: CurrencyRateSourceEnum;
|
|
179
|
+
}
|
|
180
|
+
|
|
195
181
|
interface CustomerModel extends UUID {
|
|
196
182
|
isSupplier: boolean;
|
|
197
183
|
name: string;
|
|
@@ -250,25 +236,23 @@ interface ImportResolvedFileHeaderValueModel {
|
|
|
250
236
|
interface MarginMarketModel {
|
|
251
237
|
countryCode: CountryEnum;
|
|
252
238
|
margin: number;
|
|
239
|
+
organisation?: OrganisationModel;
|
|
240
|
+
createdBy?: UserAccountModel | null;
|
|
241
|
+
updatedBy?: UserAccountModel | null;
|
|
253
242
|
}
|
|
254
243
|
|
|
255
244
|
interface MarginOrganisationModel {
|
|
256
245
|
margin: number;
|
|
257
|
-
marginOrganisation
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
id: NotificationChannelEnum;
|
|
262
|
-
isActive: boolean;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
interface NotificationTypeModel {
|
|
266
|
-
id: NotificationTypeEnum;
|
|
267
|
-
channels: NotificationChannelModel[];
|
|
246
|
+
marginOrganisation?: OrganisationModel;
|
|
247
|
+
organisation?: OrganisationModel;
|
|
248
|
+
createdBy?: UserAccountModel | null;
|
|
249
|
+
updatedBy?: UserAccountModel | null;
|
|
268
250
|
}
|
|
269
251
|
|
|
270
252
|
interface NotificationModel extends UUID {
|
|
271
|
-
type:
|
|
253
|
+
type: {
|
|
254
|
+
id: NotificationTypeEnum;
|
|
255
|
+
};
|
|
272
256
|
messagePlain: string;
|
|
273
257
|
messageHtml: string | null;
|
|
274
258
|
actionText: string;
|
|
@@ -279,14 +263,24 @@ interface NotificationModel extends UUID {
|
|
|
279
263
|
name: string;
|
|
280
264
|
}
|
|
281
265
|
|
|
266
|
+
interface NotificationChannelModel {
|
|
267
|
+
id: NotificationChannelEnum;
|
|
268
|
+
isActive: boolean;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface NotificationTypeModel {
|
|
272
|
+
id: NotificationTypeEnum;
|
|
273
|
+
channels: NotificationChannelModel[];
|
|
274
|
+
}
|
|
275
|
+
|
|
282
276
|
interface SellerModel extends UUID {
|
|
283
|
-
organisation
|
|
277
|
+
organisation?: OrganisationModel;
|
|
284
278
|
}
|
|
285
279
|
|
|
286
280
|
interface RegionModel extends UUID {
|
|
287
281
|
country: CountryModel;
|
|
288
282
|
mappedItems?: any;
|
|
289
|
-
parentRegion?: RegionModel;
|
|
283
|
+
parentRegion?: RegionModel | null;
|
|
290
284
|
subRegions?: RegionModel[];
|
|
291
285
|
images?: ImageModel[];
|
|
292
286
|
name: string;
|
|
@@ -314,6 +308,8 @@ interface VintageRatingModel {
|
|
|
314
308
|
numberOfRatings: number;
|
|
315
309
|
averageOfRatings: number;
|
|
316
310
|
updatedAt: Date;
|
|
311
|
+
status: VintageRatingEnum;
|
|
312
|
+
vintage?: VintageModel;
|
|
317
313
|
}
|
|
318
314
|
|
|
319
315
|
interface VintageScoreAuthorModel {
|
|
@@ -324,6 +320,7 @@ interface VintageScoreModel {
|
|
|
324
320
|
scoreValue: number;
|
|
325
321
|
scoreYear: number;
|
|
326
322
|
author: VintageScoreAuthorModel;
|
|
323
|
+
vintage?: VintageModel;
|
|
327
324
|
}
|
|
328
325
|
|
|
329
326
|
interface VintageModel extends UUID {
|
|
@@ -353,27 +350,29 @@ interface OfferModel extends UUID {
|
|
|
353
350
|
createdAt: Date;
|
|
354
351
|
}
|
|
355
352
|
|
|
353
|
+
interface OfferAlertTimelineModel {
|
|
354
|
+
actionCreatedAt: Date;
|
|
355
|
+
action: {
|
|
356
|
+
id: OfferAlertTimelineActionEnum;
|
|
357
|
+
};
|
|
358
|
+
offerAlert?: OfferAlertModel;
|
|
359
|
+
createdByUser?: UserAccountModel;
|
|
360
|
+
}
|
|
361
|
+
|
|
356
362
|
interface OfferAlertModel extends UUID {
|
|
357
363
|
title: string;
|
|
358
364
|
header: string;
|
|
359
365
|
description: string | null;
|
|
360
|
-
backgroundImage: ImageModel | null;
|
|
361
366
|
validFrom: string;
|
|
362
367
|
validUntil: string;
|
|
363
368
|
isExpired: boolean;
|
|
364
|
-
|
|
369
|
+
organisation?: OrganisationModel;
|
|
370
|
+
backgroundImage?: ImageModel | null;
|
|
371
|
+
filterCriteria?: FilterCriteriaModel[];
|
|
372
|
+
timeline?: OfferAlertTimelineModel;
|
|
365
373
|
meta?: any;
|
|
366
374
|
}
|
|
367
375
|
|
|
368
|
-
interface OfferAlertTimelineModel {
|
|
369
|
-
actionCreatedAt: Date;
|
|
370
|
-
action: {
|
|
371
|
-
id: OfferAlertTimelineActionEnum;
|
|
372
|
-
};
|
|
373
|
-
offerAlert: OfferAlertModel;
|
|
374
|
-
createdByUser: Partial<UserAccountModel>;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
376
|
interface OfferRequestStatusModel {
|
|
378
377
|
id: OfferRequestStatusEnum;
|
|
379
378
|
updatedAt: Date;
|
|
@@ -387,6 +386,7 @@ interface OfferRequestOptionModel {
|
|
|
387
386
|
};
|
|
388
387
|
requestedValue: string | null;
|
|
389
388
|
providedValue: string | null;
|
|
389
|
+
offerRequest?: OfferRequestModel;
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
interface OfferRequestTimelineModel {
|
|
@@ -394,23 +394,25 @@ interface OfferRequestTimelineModel {
|
|
|
394
394
|
action: {
|
|
395
395
|
id: OfferRequestTimelineActionEnum;
|
|
396
396
|
};
|
|
397
|
-
offerRequest
|
|
398
|
-
createdByUser
|
|
397
|
+
offerRequest?: OfferRequestModel;
|
|
398
|
+
createdByUser?: UserAccountModel | null;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
interface OfferRequestModel extends UUID {
|
|
402
402
|
status: OfferRequestStatusModel;
|
|
403
|
-
|
|
403
|
+
createdAt: Date;
|
|
404
|
+
changedAt: Date;
|
|
405
|
+
updatedAt: Date;
|
|
404
406
|
quantity: number;
|
|
405
|
-
|
|
407
|
+
price: PriceModel | null;
|
|
406
408
|
offer: Partial<OfferModel> | null;
|
|
407
|
-
createdAt: Date;
|
|
408
409
|
organisation: OrganisationModel;
|
|
409
|
-
vintageProducts: VintageProductModel[];
|
|
410
|
-
timeline: OfferRequestTimelineModel[];
|
|
411
410
|
seller: OrganisationModel;
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
images?: ImageModel[];
|
|
412
|
+
vintageProducts?: VintageProductModel[];
|
|
413
|
+
timeline?: OfferRequestTimelineModel[];
|
|
414
|
+
subOfferRequests?: Partial<OfferRequestModel>[] | [];
|
|
415
|
+
userOrganisation?: UserOrganisationModel;
|
|
414
416
|
options?: OfferRequestOptionModel[];
|
|
415
417
|
}
|
|
416
418
|
|
|
@@ -419,7 +421,12 @@ interface OrganisationUserInvitationStatusModel {
|
|
|
419
421
|
name: string;
|
|
420
422
|
}
|
|
421
423
|
|
|
422
|
-
interface
|
|
424
|
+
interface OrganisationUserInvitationModel {
|
|
425
|
+
organisation?: Partial<OrganisationModel>;
|
|
426
|
+
invitedBy?: UserAccountModel;
|
|
427
|
+
acceptedByUserOrganisation?: UserOrganisationModel;
|
|
428
|
+
revokedBy?: UserAccountModel | null;
|
|
429
|
+
roles?: RoleModel[] | [];
|
|
423
430
|
status: OrganisationUserInvitationStatusModel;
|
|
424
431
|
token: string;
|
|
425
432
|
expiredAt: Date;
|
|
@@ -428,12 +435,6 @@ interface UserInvitationModel {
|
|
|
428
435
|
personLastName: string;
|
|
429
436
|
personEmail: string;
|
|
430
437
|
acceptedAt: Date | null;
|
|
431
|
-
invitedBy: UserModel;
|
|
432
|
-
acceptedBy: UserModel | null;
|
|
433
|
-
revokedBy: UserModel | null;
|
|
434
|
-
roles: RoleModel[] | [];
|
|
435
|
-
organisation: Partial<OrganisationModel>;
|
|
436
|
-
acceptedByUserOrganisation: UserOrganisationModel;
|
|
437
438
|
}
|
|
438
439
|
|
|
439
|
-
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,
|
|
440
|
+
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, OrganisationUserInvitationModel, OrganisationUserInvitationStatusModel, PermissionModel, PersonModel, PostalAddressModel, PriceModel, RegionModel, RoleModel, SellerModel, SupplierModel, TelephoneModel, UploadModel, UploadVisibilityTypeModel, UserAccountModel, UserOrganisationModel, UserOrganisationStatusModel, UserStatusModel, VatTaxModel, VintageModel, VintageProductModel, VintageRatingModel, VintageScoreAuthorModel, VintageScoreModel, WineModel, WineTypeModel, WineryModel };
|
package/dist/index.js.map
CHANGED
|
@@ -1 +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 {
|
|
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 { UserAccountModel } from \"./models/userAccount\";\nimport { OrganisationUserInvitationModel } from \"./models/organisationUserInvitation\";\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 UserAccountModel,\n OrganisationUserInvitationModel,\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":[]}
|