@equipmyschool/emsweb3-models 1.0.54 → 1.0.56
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/index.d.ts +54 -43
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -66,8 +66,8 @@ export interface Campaign {
|
|
|
66
66
|
Title: string;
|
|
67
67
|
Introduction: string;
|
|
68
68
|
TermsAndConditions: string;
|
|
69
|
-
StartDate
|
|
70
|
-
EndDate
|
|
69
|
+
StartDate?: Date;
|
|
70
|
+
EndDate?: Date;
|
|
71
71
|
Status: CampaignStatus;
|
|
72
72
|
Supplier: Supplier;
|
|
73
73
|
}
|
|
@@ -104,7 +104,7 @@ export interface EMSProductImageSearchResponse {
|
|
|
104
104
|
ImageUrl: string;
|
|
105
105
|
}
|
|
106
106
|
export interface FolderInfoBase extends IActionable, FolderBase {
|
|
107
|
-
ProjectID
|
|
107
|
+
ProjectID?: number;
|
|
108
108
|
FolderID: number;
|
|
109
109
|
CurrencySymbol: string;
|
|
110
110
|
TotalLines: number;
|
|
@@ -131,6 +131,9 @@ export interface ItemCopyToNewOrderRequest {
|
|
|
131
131
|
DestinationOrder: Order;
|
|
132
132
|
ItemIDs: number[];
|
|
133
133
|
}
|
|
134
|
+
export interface MarkForRecrawlRequest {
|
|
135
|
+
CommonDetailID: number;
|
|
136
|
+
}
|
|
134
137
|
export interface NewRegistration {
|
|
135
138
|
Guid: string;
|
|
136
139
|
ConfirmCode: string;
|
|
@@ -170,7 +173,7 @@ export interface Credential {
|
|
|
170
173
|
RememberMe: boolean;
|
|
171
174
|
}
|
|
172
175
|
export interface Department {
|
|
173
|
-
DepartmentID
|
|
176
|
+
DepartmentID?: number;
|
|
174
177
|
Name: string;
|
|
175
178
|
}
|
|
176
179
|
export interface EditPriorityRequest {
|
|
@@ -187,7 +190,7 @@ export interface EmailActionResponse {
|
|
|
187
190
|
Message: string;
|
|
188
191
|
}
|
|
189
192
|
export interface ExtendedDepartment extends Department {
|
|
190
|
-
ProductCount
|
|
193
|
+
ProductCount?: number;
|
|
191
194
|
Children: ExtendedDepartment[];
|
|
192
195
|
}
|
|
193
196
|
export interface FacetResponse {
|
|
@@ -222,9 +225,9 @@ export interface FacetsStringResponse extends FacetBase {
|
|
|
222
225
|
Values: ValueCount[];
|
|
223
226
|
}
|
|
224
227
|
export interface Folder extends FolderBase {
|
|
225
|
-
FolderID
|
|
228
|
+
FolderID?: number;
|
|
226
229
|
ParentFolderID: number;
|
|
227
|
-
OwnerID
|
|
230
|
+
OwnerID?: number;
|
|
228
231
|
}
|
|
229
232
|
export interface FolderBase {
|
|
230
233
|
Name: string;
|
|
@@ -232,7 +235,7 @@ export interface FolderBase {
|
|
|
232
235
|
}
|
|
233
236
|
export interface FolderInfo extends IActionable, FolderInfoBase {
|
|
234
237
|
/** The id of the parent folder. If the folder is actually a project, or if it is a root folder of a project, this field is null. */
|
|
235
|
-
ParentFolderID
|
|
238
|
+
ParentFolderID?: number;
|
|
236
239
|
Owner: User;
|
|
237
240
|
Unallocated: number;
|
|
238
241
|
FolderCount: number;
|
|
@@ -280,8 +283,8 @@ export interface IProject {
|
|
|
280
283
|
ProjectID: number;
|
|
281
284
|
Name: string;
|
|
282
285
|
Status: ProjectStatus;
|
|
283
|
-
RequiredArrivalDate
|
|
284
|
-
RequiredClosureDate
|
|
286
|
+
RequiredArrivalDate?: Date;
|
|
287
|
+
RequiredClosureDate?: Date;
|
|
285
288
|
}
|
|
286
289
|
export interface Item {
|
|
287
290
|
ItemID: number;
|
|
@@ -317,14 +320,14 @@ export interface ItemInfo {
|
|
|
317
320
|
Title: string;
|
|
318
321
|
Description: string;
|
|
319
322
|
Status: string;
|
|
320
|
-
ETA
|
|
323
|
+
ETA?: Date;
|
|
321
324
|
Quantity: number;
|
|
322
325
|
Unit: string;
|
|
323
326
|
HasMessages: boolean;
|
|
324
327
|
Priority: ItemPriority;
|
|
325
|
-
UnitPrice
|
|
326
|
-
Value
|
|
327
|
-
Discount
|
|
328
|
+
UnitPrice?: number;
|
|
329
|
+
Value?: number;
|
|
330
|
+
Discount?: number;
|
|
328
331
|
CurrencySymbol: string;
|
|
329
332
|
/** The ID of the group of variants. */
|
|
330
333
|
CommonDetailID: number;
|
|
@@ -346,7 +349,7 @@ export interface JWTPayload {
|
|
|
346
349
|
/** Discount structure */
|
|
347
350
|
D: JWTDiscount[];
|
|
348
351
|
/** School Group ID */
|
|
349
|
-
G
|
|
352
|
+
G?: number;
|
|
350
353
|
/**
|
|
351
354
|
* List of preferred vendor IDs
|
|
352
355
|
* Empty List == all suppliers shown
|
|
@@ -367,9 +370,9 @@ export interface Location {
|
|
|
367
370
|
Country: string;
|
|
368
371
|
}
|
|
369
372
|
export interface NavDepartmentRequest {
|
|
370
|
-
DepartmentID
|
|
371
|
-
SearchID
|
|
372
|
-
SimilarTo
|
|
373
|
+
DepartmentID?: number;
|
|
374
|
+
SearchID?: number;
|
|
375
|
+
SimilarTo?: number;
|
|
373
376
|
}
|
|
374
377
|
export interface NotificationAction {
|
|
375
378
|
ProjectID: number;
|
|
@@ -428,7 +431,7 @@ export interface OrderInfo extends IActionable, IApprovable, FolderInfoBase {
|
|
|
428
431
|
CanApprove: boolean;
|
|
429
432
|
}
|
|
430
433
|
export interface OrderInfoCollection extends IProject, IActionable {
|
|
431
|
-
FolderID
|
|
434
|
+
FolderID?: number;
|
|
432
435
|
FolderName: string;
|
|
433
436
|
FolderBudget: number;
|
|
434
437
|
Owner: User;
|
|
@@ -441,8 +444,8 @@ export interface OrderInfoCollection extends IProject, IActionable {
|
|
|
441
444
|
ProjectID: number;
|
|
442
445
|
ProjectName: string;
|
|
443
446
|
Status: ProjectStatus;
|
|
444
|
-
RequiredArrivalDate
|
|
445
|
-
RequiredClosureDate
|
|
447
|
+
RequiredArrivalDate?: Date;
|
|
448
|
+
RequiredClosureDate?: Date;
|
|
446
449
|
}
|
|
447
450
|
export interface OrderRejectRequest {
|
|
448
451
|
OrderID: number;
|
|
@@ -461,12 +464,12 @@ export interface ProblemType {
|
|
|
461
464
|
ProblemType: string;
|
|
462
465
|
}
|
|
463
466
|
export interface ProductDetailRequest {
|
|
464
|
-
CommonDetailID
|
|
465
|
-
SearchID
|
|
466
|
-
Position
|
|
467
|
+
CommonDetailID?: number;
|
|
468
|
+
SearchID?: number;
|
|
469
|
+
Position?: number;
|
|
467
470
|
}
|
|
468
471
|
export interface ProductDetails extends ProductDetailsBase {
|
|
469
|
-
CampaignID
|
|
472
|
+
CampaignID?: number;
|
|
470
473
|
Description: string;
|
|
471
474
|
Products: ProductVariation[];
|
|
472
475
|
Specifications: FacetBase[];
|
|
@@ -498,8 +501,8 @@ export interface ProductPageDetails {
|
|
|
498
501
|
ProductPageID: number;
|
|
499
502
|
Url: string;
|
|
500
503
|
ErrorCount: number;
|
|
501
|
-
LastChecked
|
|
502
|
-
NextCheck
|
|
504
|
+
LastChecked?: Date;
|
|
505
|
+
NextCheck?: Date;
|
|
503
506
|
}
|
|
504
507
|
export interface ProductSearchDepartment {
|
|
505
508
|
DepartmentID: number;
|
|
@@ -508,9 +511,9 @@ export interface ProductSearchDepartment {
|
|
|
508
511
|
}
|
|
509
512
|
export interface ProductSearchResult extends ProductDetailsBase {
|
|
510
513
|
ImageUrl: string;
|
|
511
|
-
OverlayID
|
|
514
|
+
OverlayID?: number;
|
|
512
515
|
/** The ID of one specific variant product. */
|
|
513
|
-
ProductID
|
|
516
|
+
ProductID?: number;
|
|
514
517
|
Variations: number;
|
|
515
518
|
}
|
|
516
519
|
export interface ProductToOrder {
|
|
@@ -535,21 +538,21 @@ export interface ProductVariation {
|
|
|
535
538
|
export interface ProductVariationEMS extends ProductVariation {
|
|
536
539
|
EMSDiscount: number;
|
|
537
540
|
EMSProductStatus: string;
|
|
538
|
-
LastImported
|
|
539
|
-
LastUpdated
|
|
540
|
-
PricingExpiry
|
|
541
|
+
LastImported?: Date;
|
|
542
|
+
LastUpdated?: Date;
|
|
543
|
+
PricingExpiry?: Date;
|
|
541
544
|
RRP: number;
|
|
542
545
|
}
|
|
543
546
|
export interface Project {
|
|
544
547
|
/** The Id of the project. If 0, the project is a wishlist. */
|
|
545
548
|
ProjectID: number;
|
|
546
549
|
Name: string;
|
|
547
|
-
Budget
|
|
550
|
+
Budget?: number;
|
|
548
551
|
DeliveryAddressID: number;
|
|
549
552
|
InvoiceAddressID: number;
|
|
550
553
|
CurrencyID: number;
|
|
551
554
|
FreightContactID: number;
|
|
552
|
-
RequiredArrivalDate
|
|
555
|
+
RequiredArrivalDate?: Date;
|
|
553
556
|
SourceProjectID: number;
|
|
554
557
|
RetainDepartments: boolean;
|
|
555
558
|
RetainBudgets: boolean;
|
|
@@ -563,9 +566,9 @@ export interface ProjectClosureResponse {
|
|
|
563
566
|
export interface ProjectInfo extends IActionable, IProject, FolderInfo {
|
|
564
567
|
DeliveryAddressID: number;
|
|
565
568
|
InvoiceAddressID: number;
|
|
566
|
-
FreightContactID
|
|
569
|
+
FreightContactID?: number;
|
|
567
570
|
CurrencyID: number;
|
|
568
|
-
ClosureYear
|
|
571
|
+
ClosureYear?: number;
|
|
569
572
|
TotalOrders: number;
|
|
570
573
|
CompleteOrders: number;
|
|
571
574
|
PartialOrders: number;
|
|
@@ -573,8 +576,8 @@ export interface ProjectInfo extends IActionable, IProject, FolderInfo {
|
|
|
573
576
|
ProjectID: number;
|
|
574
577
|
Name: string;
|
|
575
578
|
Status: ProjectStatus;
|
|
576
|
-
RequiredArrivalDate
|
|
577
|
-
RequiredClosureDate
|
|
579
|
+
RequiredArrivalDate?: Date;
|
|
580
|
+
RequiredClosureDate?: Date;
|
|
578
581
|
}
|
|
579
582
|
export interface ProjectSummary {
|
|
580
583
|
ProjectID: number;
|
|
@@ -611,11 +614,11 @@ export interface RequestForFunds {
|
|
|
611
614
|
Reason: string;
|
|
612
615
|
}
|
|
613
616
|
export interface SearchRequest {
|
|
614
|
-
Page
|
|
615
|
-
Size
|
|
617
|
+
Page?: number;
|
|
618
|
+
Size?: number;
|
|
616
619
|
Keywords: string;
|
|
617
|
-
DepartmentID
|
|
618
|
-
CampaignID
|
|
620
|
+
DepartmentID?: number;
|
|
621
|
+
CampaignID?: number;
|
|
619
622
|
SupplierIDs: number[];
|
|
620
623
|
StringFacets: FacetsStringRequest[];
|
|
621
624
|
NumberFacets: FacetsNumberRequest[];
|
|
@@ -643,7 +646,7 @@ export interface ShopCampaign extends Campaign {
|
|
|
643
646
|
CustomerDiscount: number;
|
|
644
647
|
LargeBannerImageUrl: string;
|
|
645
648
|
SmallBannerImageUrl: string;
|
|
646
|
-
OverlayID
|
|
649
|
+
OverlayID?: number;
|
|
647
650
|
}
|
|
648
651
|
export interface Summary {
|
|
649
652
|
YearsExperience: number;
|
|
@@ -661,6 +664,14 @@ export interface Supplier {
|
|
|
661
664
|
ShowProducts: boolean;
|
|
662
665
|
Country: number;
|
|
663
666
|
}
|
|
667
|
+
export interface UpdateProductStatusRequest {
|
|
668
|
+
ProductID: number;
|
|
669
|
+
Status: string;
|
|
670
|
+
}
|
|
671
|
+
export interface UpdateProductLongDescriptionRequest {
|
|
672
|
+
CommonDetailID: number;
|
|
673
|
+
LongDescriptionHtml: string;
|
|
674
|
+
}
|
|
664
675
|
export interface User {
|
|
665
676
|
UserID: number;
|
|
666
677
|
FirstName: string;
|