@tolinax/ayoune-interfaces 2026.27.0 → 2026.29.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.
@@ -136,6 +136,7 @@ export declare enum aMN {
136
136
  aYOUneUsers = "aYOUneUsers",
137
137
  aYOUneVariables = "aYOUneVariables",
138
138
  aYOUneWidgets = "aYOUneWidgets",
139
+ Backorders = "Backorders",
139
140
  BankAccounts = "BankAccounts",
140
141
  BankTurnovers = "BankTurnovers",
141
142
  Beacons = "Beacons",
@@ -252,6 +253,8 @@ export declare enum aMN {
252
253
  DevOpsAlerts = "DevOpsAlerts",
253
254
  DiscountGroups = "DiscountGroups",
254
255
  DMCampaigns = "DMCampaigns",
256
+ DockAppointments = "DockAppointments",
257
+ Docks = "Docks",
255
258
  Documents = "Documents",
256
259
  DoiLogs = "DoiLogs",
257
260
  Dois = "Dois",
@@ -351,6 +354,7 @@ export declare enum aMN {
351
354
  InternalChatMessages = "InternalChatMessages",
352
355
  InternalForms = "InternalForms",
353
356
  InternalOrders = "InternalOrders",
357
+ InventoryAdjustments = "InventoryAdjustments",
354
358
  InventoryLists = "InventoryLists",
355
359
  Invoices = "Invoices",
356
360
  IoTDevices = "IoTDevices",
@@ -444,6 +448,7 @@ export declare enum aMN {
444
448
  OwnDatas = "OwnDatas",
445
449
  OwnDataTemplates = "OwnDataTemplates",
446
450
  OwnValues = "OwnValues",
451
+ PackConfirmations = "PackConfirmations",
447
452
  PackLists = "PackLists",
448
453
  PageStats = "PageStats",
449
454
  PATs = "PATs",
@@ -451,6 +456,7 @@ export declare enum aMN {
451
456
  PaymentProviders = "PaymentProviders",
452
457
  PermissionRequests = "PermissionRequests",
453
458
  PickLists = "PickLists",
459
+ PickWaves = "PickWaves",
454
460
  PimSelections = "PimSelections",
455
461
  Pipelines = "Pipelines",
456
462
  Polls = "Polls",
@@ -515,12 +521,14 @@ export declare enum aMN {
515
521
  Reminders = "Reminders",
516
522
  References = "References",
517
523
  CustomerLogos = "CustomerLogos",
524
+ ReplenishmentOrders = "ReplenishmentOrders",
518
525
  Reports = "Reports",
519
526
  ReportTemplates = "ReportTemplates",
520
527
  Repositories = "Repositories",
521
528
  Requirements = "Requirements",
522
529
  ResearchBudgets = "ResearchBudgets",
523
530
  Retrospectives = "Retrospectives",
531
+ ReturnOrders = "ReturnOrders",
524
532
  RewardLogs = "RewardLogs",
525
533
  RewardRules = "RewardRules",
526
534
  RunningPipelines = "RunningPipelines",
@@ -607,6 +615,7 @@ export declare enum aMN {
607
615
  Tips = "Tips",
608
616
  Trades = "Trades",
609
617
  Transactions = "Transactions",
618
+ TransportOrders = "TransportOrders",
610
619
  Travels = "Travels",
611
620
  TriggerActionsLogs = "TriggerActionsLogs",
612
621
  TriggerChains = "TriggerChains",
@@ -140,6 +140,7 @@ var aMN;
140
140
  aMN["aYOUneUsers"] = "aYOUneUsers";
141
141
  aMN["aYOUneVariables"] = "aYOUneVariables";
142
142
  aMN["aYOUneWidgets"] = "aYOUneWidgets";
143
+ aMN["Backorders"] = "Backorders";
143
144
  aMN["BankAccounts"] = "BankAccounts";
144
145
  aMN["BankTurnovers"] = "BankTurnovers";
145
146
  aMN["Beacons"] = "Beacons";
@@ -256,6 +257,8 @@ var aMN;
256
257
  aMN["DevOpsAlerts"] = "DevOpsAlerts";
257
258
  aMN["DiscountGroups"] = "DiscountGroups";
258
259
  aMN["DMCampaigns"] = "DMCampaigns";
260
+ aMN["DockAppointments"] = "DockAppointments";
261
+ aMN["Docks"] = "Docks";
259
262
  aMN["Documents"] = "Documents";
260
263
  aMN["DoiLogs"] = "DoiLogs";
261
264
  aMN["Dois"] = "Dois";
@@ -355,6 +358,7 @@ var aMN;
355
358
  aMN["InternalChatMessages"] = "InternalChatMessages";
356
359
  aMN["InternalForms"] = "InternalForms";
357
360
  aMN["InternalOrders"] = "InternalOrders";
361
+ aMN["InventoryAdjustments"] = "InventoryAdjustments";
358
362
  aMN["InventoryLists"] = "InventoryLists";
359
363
  aMN["Invoices"] = "Invoices";
360
364
  aMN["IoTDevices"] = "IoTDevices";
@@ -448,6 +452,7 @@ var aMN;
448
452
  aMN["OwnDatas"] = "OwnDatas";
449
453
  aMN["OwnDataTemplates"] = "OwnDataTemplates";
450
454
  aMN["OwnValues"] = "OwnValues";
455
+ aMN["PackConfirmations"] = "PackConfirmations";
451
456
  aMN["PackLists"] = "PackLists";
452
457
  aMN["PageStats"] = "PageStats";
453
458
  aMN["PATs"] = "PATs";
@@ -455,6 +460,7 @@ var aMN;
455
460
  aMN["PaymentProviders"] = "PaymentProviders";
456
461
  aMN["PermissionRequests"] = "PermissionRequests";
457
462
  aMN["PickLists"] = "PickLists";
463
+ aMN["PickWaves"] = "PickWaves";
458
464
  aMN["PimSelections"] = "PimSelections";
459
465
  aMN["Pipelines"] = "Pipelines";
460
466
  aMN["Polls"] = "Polls";
@@ -519,12 +525,14 @@ var aMN;
519
525
  aMN["Reminders"] = "Reminders";
520
526
  aMN["References"] = "References";
521
527
  aMN["CustomerLogos"] = "CustomerLogos";
528
+ aMN["ReplenishmentOrders"] = "ReplenishmentOrders";
522
529
  aMN["Reports"] = "Reports";
523
530
  aMN["ReportTemplates"] = "ReportTemplates";
524
531
  aMN["Repositories"] = "Repositories";
525
532
  aMN["Requirements"] = "Requirements";
526
533
  aMN["ResearchBudgets"] = "ResearchBudgets";
527
534
  aMN["Retrospectives"] = "Retrospectives";
535
+ aMN["ReturnOrders"] = "ReturnOrders";
528
536
  aMN["RewardLogs"] = "RewardLogs";
529
537
  aMN["RewardRules"] = "RewardRules";
530
538
  aMN["RunningPipelines"] = "RunningPipelines";
@@ -611,6 +619,7 @@ var aMN;
611
619
  aMN["Tips"] = "Tips";
612
620
  aMN["Trades"] = "Trades";
613
621
  aMN["Transactions"] = "Transactions";
622
+ aMN["TransportOrders"] = "TransportOrders";
614
623
  aMN["Travels"] = "Travels";
615
624
  aMN["TriggerActionsLogs"] = "TriggerActionsLogs";
616
625
  aMN["TriggerChains"] = "TriggerChains";
@@ -1691,6 +1691,16 @@ const modelsAndRights = [
1691
1691
  searchable: true,
1692
1692
  searchableFields: ['name', 'description'],
1693
1693
  },
1694
+ {
1695
+ plural: "Backorders",
1696
+ singular: "Backorder",
1697
+ module: "warehouse",
1698
+ right: "warehouse.backorders",
1699
+ readOnly: false,
1700
+ importable: false,
1701
+ allowDuplicate: false,
1702
+ updateBy: "_id",
1703
+ },
1694
1704
  {
1695
1705
  plural: "BankAccounts",
1696
1706
  singular: "BankAccount",
@@ -2829,6 +2839,26 @@ const modelsAndRights = [
2829
2839
  allowDuplicate: false,
2830
2840
  updateBy: "_id",
2831
2841
  },
2842
+ {
2843
+ plural: "DockAppointments",
2844
+ singular: "DockAppointment",
2845
+ module: "warehouse",
2846
+ right: "warehouse.dockappointments",
2847
+ readOnly: false,
2848
+ importable: false,
2849
+ allowDuplicate: false,
2850
+ updateBy: "_id",
2851
+ },
2852
+ {
2853
+ plural: "Docks",
2854
+ singular: "Dock",
2855
+ module: "warehouse",
2856
+ right: "warehouse.docks",
2857
+ readOnly: false,
2858
+ importable: false,
2859
+ allowDuplicate: false,
2860
+ updateBy: "_id",
2861
+ },
2832
2862
  {
2833
2863
  plural: "Documents",
2834
2864
  singular: "Document",
@@ -3739,6 +3769,16 @@ const modelsAndRights = [
3739
3769
  allowDuplicate: true,
3740
3770
  updateBy: "_id",
3741
3771
  },
3772
+ {
3773
+ plural: "InventoryAdjustments",
3774
+ singular: "InventoryAdjustment",
3775
+ module: "warehouse",
3776
+ right: "warehouse.inventoryadjustments",
3777
+ readOnly: false,
3778
+ importable: false,
3779
+ allowDuplicate: false,
3780
+ updateBy: "_id",
3781
+ },
3742
3782
  {
3743
3783
  plural: "InventoryLists",
3744
3784
  singular: "InventoryList",
@@ -4653,6 +4693,16 @@ const modelsAndRights = [
4653
4693
  allowDuplicate: false,
4654
4694
  updateBy: "_id",
4655
4695
  },
4696
+ {
4697
+ plural: "PackConfirmations",
4698
+ singular: "PackConfirmation",
4699
+ module: "warehouse",
4700
+ right: "warehouse.packconfirmations",
4701
+ readOnly: false,
4702
+ importable: false,
4703
+ allowDuplicate: false,
4704
+ updateBy: "_id",
4705
+ },
4656
4706
  {
4657
4707
  plural: "PackLists",
4658
4708
  singular: "PackList",
@@ -4713,6 +4763,16 @@ const modelsAndRights = [
4713
4763
  allowDuplicate: false,
4714
4764
  updateBy: "_id",
4715
4765
  },
4766
+ {
4767
+ plural: "PickWaves",
4768
+ singular: "PickWave",
4769
+ module: "warehouse",
4770
+ right: "warehouse.pickwaves",
4771
+ readOnly: false,
4772
+ importable: false,
4773
+ allowDuplicate: false,
4774
+ updateBy: "_id",
4775
+ },
4716
4776
  {
4717
4777
  plural: "PimSelections",
4718
4778
  singular: "PimSelection",
@@ -5331,6 +5391,16 @@ const modelsAndRights = [
5331
5391
  allowDuplicate: false,
5332
5392
  updateBy: "_id",
5333
5393
  },
5394
+ {
5395
+ plural: "ReplenishmentOrders",
5396
+ singular: "ReplenishmentOrder",
5397
+ module: "warehouse",
5398
+ right: "warehouse.replenishmentorders",
5399
+ readOnly: false,
5400
+ importable: false,
5401
+ allowDuplicate: false,
5402
+ updateBy: "_id",
5403
+ },
5334
5404
  {
5335
5405
  plural: "Reports",
5336
5406
  singular: "Report",
@@ -5393,6 +5463,16 @@ const modelsAndRights = [
5393
5463
  allowDuplicate: false,
5394
5464
  updateBy: "_id",
5395
5465
  },
5466
+ {
5467
+ plural: "ReturnOrders",
5468
+ singular: "ReturnOrder",
5469
+ module: "warehouse",
5470
+ right: "warehouse.returnorders",
5471
+ readOnly: false,
5472
+ importable: false,
5473
+ allowDuplicate: false,
5474
+ updateBy: "_id",
5475
+ },
5396
5476
  {
5397
5477
  plural: "RewardLogs",
5398
5478
  singular: "RewardLog",
@@ -6163,6 +6243,16 @@ const modelsAndRights = [
6163
6243
  allowDuplicate: false,
6164
6244
  updateBy: "_id",
6165
6245
  },
6246
+ {
6247
+ plural: "TransportOrders",
6248
+ singular: "TransportOrder",
6249
+ module: "warehouse",
6250
+ right: "warehouse.transportorders",
6251
+ readOnly: false,
6252
+ importable: false,
6253
+ allowDuplicate: false,
6254
+ updateBy: "_id",
6255
+ },
6166
6256
  {
6167
6257
  plural: "Travels",
6168
6258
  singular: "Travel",
@@ -0,0 +1,35 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ /**
3
+ * Backorder — tracks unfilled portion of a sales order when stock is short.
4
+ *
5
+ * Solves the gap that IAssignment only has `overSupply`/`underSupply` boolean flags
6
+ * with no quantitative tracking and no auto-fulfillment when stock arrives.
7
+ *
8
+ * Lifecycle: open → partial → fulfilled | cancelled
9
+ */
10
+ export interface IBackorder extends IDefaultFields {
11
+ _customerID: ObjectId;
12
+ _clientID?: ObjectId[];
13
+ _subID?: ObjectId[];
14
+ nbr?: string;
15
+ assignment: ObjectId;
16
+ assignmentPosition?: number;
17
+ product: ObjectId;
18
+ productSKU?: string;
19
+ productTitle?: string;
20
+ unit?: string;
21
+ qtyOrdered: number;
22
+ qtyShipped: number;
23
+ qtyOpen: number;
24
+ expectedDate?: Date;
25
+ promisedDate?: Date;
26
+ priority: number;
27
+ autoFulfill: boolean;
28
+ status: "open" | "partial" | "fulfilled" | "cancelled";
29
+ fulfillmentReservations?: ObjectId[];
30
+ fulfilledShippings?: ObjectId[];
31
+ fulfilledAt?: Date;
32
+ cancelledAt?: Date;
33
+ cancelReason?: string;
34
+ note?: string;
35
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ /**
3
+ * Dock — physical loading/unloading bay at a warehouse.
4
+ *
5
+ * Used for receiving (inbound) and shipping (outbound) operations.
6
+ * Can be scheduled via IDockAppointment.
7
+ *
8
+ * Solves the gap that there is no formal dock management — currently trucks
9
+ * just arrive and warehouse workers improvise.
10
+ */
11
+ export interface IDock extends IDefaultFields {
12
+ _customerID: ObjectId;
13
+ _clientID?: ObjectId[];
14
+ _subID?: ObjectId[];
15
+ warehouse: ObjectId;
16
+ name: string;
17
+ code?: string;
18
+ type: "inbound" | "outbound" | "both";
19
+ status: "available" | "occupied" | "maintenance" | "blocked";
20
+ maxWeight?: number;
21
+ maxLength?: number;
22
+ maxHeight?: number;
23
+ maxWidth?: number;
24
+ hasLeveler?: boolean;
25
+ hasCanopy?: boolean;
26
+ hasRefrigeration?: boolean;
27
+ hasLiveLoad?: boolean;
28
+ currentAppointment?: ObjectId;
29
+ currentVehicle?: string;
30
+ occupiedSince?: Date;
31
+ coordinates?: {
32
+ x?: number;
33
+ y?: number;
34
+ };
35
+ note?: string;
36
+ active?: boolean;
37
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,41 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ /**
3
+ * Dock Appointment — scheduled time slot at a dock for a delivery or pickup.
4
+ *
5
+ * Drivers/carriers book a slot in advance; warehouse staff prepare goods
6
+ * accordingly. Reduces yard congestion and idle truck time.
7
+ *
8
+ * Lifecycle: scheduled → confirmed → arrived → loading → completed | no_show | cancelled
9
+ */
10
+ export interface IDockAppointment extends IDefaultFields {
11
+ _customerID: ObjectId;
12
+ _clientID?: ObjectId[];
13
+ _subID?: ObjectId[];
14
+ nbr?: string;
15
+ dock: ObjectId;
16
+ warehouse: ObjectId;
17
+ type: "receiving" | "shipping";
18
+ status: "scheduled" | "confirmed" | "arrived" | "loading" | "completed" | "no_show" | "cancelled";
19
+ scheduledStart: Date;
20
+ scheduledEnd: Date;
21
+ actualArrival?: Date;
22
+ actualStart?: Date;
23
+ actualEnd?: Date;
24
+ goodsReceipt?: ObjectId;
25
+ supplierOrder?: ObjectId;
26
+ shipping?: ObjectId;
27
+ transportOrder?: ObjectId;
28
+ carrier?: string;
29
+ driverName?: string;
30
+ driverPhone?: string;
31
+ vehicleLicense?: string;
32
+ vehicleType?: string;
33
+ trailerLicense?: string;
34
+ expectedWeight?: number;
35
+ expectedVolume?: number;
36
+ expectedPallets?: number;
37
+ assignedTo?: ObjectId;
38
+ notifiedAt?: Date;
39
+ confirmedAt?: Date;
40
+ note?: string;
41
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,54 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ /**
3
+ * Inventory Adjustment — standalone correction entity with reason and approval workflow.
4
+ *
5
+ * Solves the gap that stock corrections currently happen via free-form
6
+ * IStockLog `kindofmovement` strings without structured reasons, audit trail,
7
+ * or approval requirements.
8
+ *
9
+ * Reason types:
10
+ * - shrinkage: theft / loss / unexplained shortage
11
+ * - damage: physically damaged, unsellable
12
+ * - found: surplus discovered during cycle count
13
+ * - correction: data entry error
14
+ * - obsolescence: expired / discontinued
15
+ * - sample: removed for QC sampling
16
+ * - donation: gifted out
17
+ * - return_to_supplier: defective batch sent back
18
+ * - cycle_count: result of cycle count variance
19
+ */
20
+ export interface IInventoryAdjustment extends IDefaultFields {
21
+ _customerID: ObjectId;
22
+ _clientID?: ObjectId[];
23
+ _subID?: ObjectId[];
24
+ nbr?: string;
25
+ product: ObjectId;
26
+ productSKU?: string;
27
+ productTitle?: string;
28
+ warehouse: ObjectId;
29
+ storageArea?: ObjectId;
30
+ lot?: ObjectId;
31
+ serialNumbers?: string[];
32
+ qtyBefore: number;
33
+ qtyAfter: number;
34
+ qtyDelta: number;
35
+ unit?: string;
36
+ reason: "shrinkage" | "damage" | "found" | "correction" | "obsolescence" | "sample" | "donation" | "return_to_supplier" | "cycle_count" | "other";
37
+ reasonDescription?: string;
38
+ cycleCount?: ObjectId;
39
+ status: "draft" | "pending_approval" | "approved" | "applied" | "rejected" | "cancelled";
40
+ requiresApproval?: boolean;
41
+ submittedBy?: ObjectId;
42
+ submittedAt?: Date;
43
+ approvedBy?: ObjectId;
44
+ approvedAt?: Date;
45
+ rejectedBy?: ObjectId;
46
+ rejectedAt?: Date;
47
+ rejectedReason?: string;
48
+ appliedAt?: Date;
49
+ stockLogRef?: ObjectId;
50
+ valueImpact?: number;
51
+ costCenter?: ObjectId;
52
+ accountingNbr?: string;
53
+ note?: string;
54
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,64 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ /**
3
+ * Single product entry inside a packed box.
4
+ */
5
+ export interface IPackedItem {
6
+ product: ObjectId;
7
+ productSKU?: string;
8
+ productTitle?: string;
9
+ qty: number;
10
+ unit?: string;
11
+ lot?: ObjectId;
12
+ lotNumber?: string;
13
+ serialNumbers?: string[];
14
+ }
15
+ /**
16
+ * One physical box that was packed during a pack confirmation.
17
+ */
18
+ export interface IPackedBox {
19
+ pos: number;
20
+ shippingBox?: ObjectId;
21
+ boxLabel?: string;
22
+ contents: IPackedItem[];
23
+ actualNetWeight?: number;
24
+ actualGrossWeight?: number;
25
+ actualLength?: number;
26
+ actualWidth?: number;
27
+ actualHeight?: number;
28
+ actualVolume?: number;
29
+ trackingNumber?: string;
30
+ carrierLabel?: string;
31
+ sealed?: boolean;
32
+ sealedAt?: Date;
33
+ }
34
+ /**
35
+ * Pack Confirmation — captures the actual outcome of a packing operation.
36
+ *
37
+ * Solves the gap that IPackList tracks what SHOULD be packed but never the actual
38
+ * boxes filled. Without this, "soll vs. ist" comparison and tracking-number capture
39
+ * are not possible.
40
+ *
41
+ * One-to-one with PackList (or PickList for direct pick-and-pack flows).
42
+ */
43
+ export interface IPackConfirmation extends IDefaultFields {
44
+ _customerID: ObjectId;
45
+ _clientID?: ObjectId[];
46
+ _subID?: ObjectId[];
47
+ nbr?: string;
48
+ status: "in_progress" | "completed" | "cancelled";
49
+ packList?: ObjectId;
50
+ pickList?: ObjectId;
51
+ shipping?: ObjectId;
52
+ assignment?: ObjectId;
53
+ productionOrder?: ObjectId;
54
+ warehouse?: ObjectId;
55
+ packedBy?: ObjectId;
56
+ startedAt?: Date;
57
+ packedAt?: Date;
58
+ boxes: IPackedBox[];
59
+ totalBoxes?: number;
60
+ totalItems?: number;
61
+ totalWeight?: number;
62
+ totalVolume?: number;
63
+ note?: string;
64
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,40 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ /**
3
+ * Pick Wave — bundles multiple PickLists for efficient batch picking.
4
+ *
5
+ * Solves the gap that pickers currently process one PickList at a time —
6
+ * inefficient for warehouses with many small orders. A wave groups orders
7
+ * by zone / route / shipping cutoff so the picker walks the warehouse once.
8
+ *
9
+ * Lifecycle: planned → released (pickers can start) → in_progress → completed | cancelled
10
+ *
11
+ * Wave Strategies:
12
+ * - by_zone: group by warehouse zone (StorageArea cluster)
13
+ * - by_carrier: group by shipping carrier cutoff time
14
+ * - by_priority: group by deadline / priority score
15
+ * - by_product: group by same product (batch picking)
16
+ */
17
+ export interface IPickWave extends IDefaultFields {
18
+ _customerID: ObjectId;
19
+ _clientID?: ObjectId[];
20
+ _subID?: ObjectId[];
21
+ nbr?: string;
22
+ name?: string;
23
+ status: "planned" | "released" | "in_progress" | "completed" | "cancelled";
24
+ warehouse: ObjectId;
25
+ strategy?: "by_zone" | "by_carrier" | "by_priority" | "by_product" | "manual";
26
+ pickLists: ObjectId[];
27
+ assignedTo?: ObjectId[];
28
+ totalLines?: number;
29
+ pickedLines?: number;
30
+ progress?: number;
31
+ totalOrders?: number;
32
+ plannedStart?: Date;
33
+ plannedEnd?: Date;
34
+ releasedAt?: Date;
35
+ startedAt?: Date;
36
+ completedAt?: Date;
37
+ estimatedDuration?: number;
38
+ walkingDistance?: number;
39
+ note?: string;
40
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,54 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ /**
3
+ * Replenishment Position — single line in a replenishment order.
4
+ */
5
+ export interface IReplenishmentPosition {
6
+ pos: number;
7
+ product: ObjectId;
8
+ productSKU?: string;
9
+ productTitle?: string;
10
+ sourceArea: ObjectId;
11
+ targetArea: ObjectId;
12
+ qtyRequested: number;
13
+ qtyMoved: number;
14
+ unit?: string;
15
+ lot?: ObjectId;
16
+ status: "pending" | "in_progress" | "moved" | "skipped";
17
+ movedAt?: Date;
18
+ movedBy?: ObjectId;
19
+ skipReason?: string;
20
+ note?: string;
21
+ }
22
+ /**
23
+ * Replenishment Order — moves stock from bulk storage to pick faces.
24
+ *
25
+ * Solves the gap that there is no mechanism to refill pick locations from
26
+ * reserve/bulk storage when min levels are reached. Critical for multi-tier
27
+ * warehouses with fast-moving items.
28
+ *
29
+ * Triggers:
30
+ * - min_level: storage area dropped below configured min qty
31
+ * - manual: warehouse worker requested
32
+ * - forecast: predictive based on demand patterns
33
+ * - wave: triggered by upcoming pick wave
34
+ */
35
+ export interface IReplenishmentOrder extends IDefaultFields {
36
+ _customerID: ObjectId;
37
+ _clientID?: ObjectId[];
38
+ _subID?: ObjectId[];
39
+ nbr?: string;
40
+ warehouse: ObjectId;
41
+ trigger: "min_level" | "manual" | "forecast" | "wave";
42
+ status: "pending" | "in_progress" | "completed" | "cancelled";
43
+ priority: number;
44
+ assignedTo?: ObjectId;
45
+ pickWave?: ObjectId;
46
+ positions: IReplenishmentPosition[];
47
+ totalLines?: number;
48
+ movedLines?: number;
49
+ progress?: number;
50
+ triggeredAt?: Date;
51
+ startedAt?: Date;
52
+ completedAt?: Date;
53
+ note?: string;
54
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,68 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ /**
3
+ * Return Order Position — single line in an RMA.
4
+ */
5
+ export interface IReturnPosition {
6
+ pos: number;
7
+ product: ObjectId;
8
+ productSKU?: string;
9
+ productTitle?: string;
10
+ unit?: string;
11
+ originalInvoicePosition?: number;
12
+ originalShippingPosition?: number;
13
+ qtyReturned: number;
14
+ qtyReceived: number;
15
+ qtyRestockable: number;
16
+ qtyRepairable: number;
17
+ qtyDisposed: number;
18
+ qtyReturnedToSupplier: number;
19
+ conditionOnReceipt?: "new" | "used" | "damaged" | "unsellable";
20
+ inspectionResult?: "restock" | "repair" | "dispose" | "return_to_supplier";
21
+ inspectionNote?: string;
22
+ targetStorageArea?: ObjectId;
23
+ targetWarehouse?: ObjectId;
24
+ creditNote?: ObjectId;
25
+ replacementShipping?: ObjectId;
26
+ status: "pending" | "received" | "inspected" | "restocked" | "disposed" | "rejected";
27
+ }
28
+ /**
29
+ * Return Order (RMA) — formal returns workflow.
30
+ *
31
+ * Solves the gap that the platform only has a `retour: boolean` flag on IStorageArea
32
+ * and no formal return process linking original orders to refunds/replacements.
33
+ *
34
+ * Lifecycle: requested → approved → received → inspected → completed | rejected
35
+ */
36
+ export interface IReturnOrder extends IDefaultFields {
37
+ _customerID: ObjectId;
38
+ _clientID?: ObjectId[];
39
+ _subID?: ObjectId[];
40
+ rmaNumber: string;
41
+ consumer?: ObjectId;
42
+ user?: ObjectId;
43
+ status: "requested" | "approved" | "received" | "inspected" | "completed" | "rejected";
44
+ originalInvoice?: ObjectId;
45
+ originalShipping?: ObjectId;
46
+ originalAssignment?: ObjectId;
47
+ customerReason: string;
48
+ customerNote?: string;
49
+ approvedBy?: ObjectId;
50
+ approvedAt?: Date;
51
+ rejectedReason?: string;
52
+ rejectedAt?: Date;
53
+ receivedAt?: Date;
54
+ receivedBy?: ObjectId;
55
+ receivedAtWarehouse?: ObjectId;
56
+ inspectedAt?: Date;
57
+ inspectedBy?: ObjectId;
58
+ completedAt?: Date;
59
+ resolutionType?: "refund" | "replacement" | "repair" | "store_credit" | "reject";
60
+ creditNote?: ObjectId;
61
+ replacementShipping?: ObjectId;
62
+ refundAmount?: number;
63
+ positions: IReturnPosition[];
64
+ totalLines?: number;
65
+ inspectedLines?: number;
66
+ progress?: number;
67
+ note?: string;
68
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,60 @@
1
+ import { IDefaultFields } from "./IDefaultFields";
2
+ /**
3
+ * Transport Order — staging entity that bundles one or more shipments
4
+ * for a single carrier pickup.
5
+ *
6
+ * Solves the gap that IShipping goes directly to a carrier with no
7
+ * intermediate stop for route optimization, multi-stop tours, or
8
+ * carrier handoff documentation (Bill of Lading equivalent).
9
+ *
10
+ * Lifecycle: planned → confirmed → ready → in_transit → delivered | cancelled
11
+ */
12
+ export interface ITransportOrder extends IDefaultFields {
13
+ _customerID: ObjectId;
14
+ _clientID?: ObjectId[];
15
+ _subID?: ObjectId[];
16
+ nbr?: string;
17
+ referenceNumber?: string;
18
+ bolNumber?: string;
19
+ status: "planned" | "confirmed" | "ready" | "in_transit" | "delivered" | "cancelled";
20
+ shippings: ObjectId[];
21
+ carrier?: string;
22
+ carrierAccount?: string;
23
+ serviceLevel?: string;
24
+ plannedPickup?: Date;
25
+ actualPickup?: Date;
26
+ plannedDelivery?: Date;
27
+ estimatedDelivery?: Date;
28
+ actualDelivery?: Date;
29
+ tourNumber?: string;
30
+ stopSequence?: number;
31
+ totalStops?: number;
32
+ pickupDock?: ObjectId;
33
+ pickupAppointment?: ObjectId;
34
+ deliveryAddress?: {
35
+ company?: string;
36
+ street?: string;
37
+ zip?: string;
38
+ city?: string;
39
+ country?: string;
40
+ };
41
+ driverName?: string;
42
+ driverPhone?: string;
43
+ vehicleLicense?: string;
44
+ trailerLicense?: string;
45
+ totalWeight?: number;
46
+ totalVolume?: number;
47
+ totalPackages?: number;
48
+ totalPallets?: number;
49
+ trackingNumber?: string;
50
+ trackingUrl?: string;
51
+ bolUrl?: string;
52
+ cmrUrl?: string;
53
+ sealNumbers?: string[];
54
+ transportCost?: number;
55
+ fuelSurcharge?: number;
56
+ accessoryCharges?: number;
57
+ totalCost?: number;
58
+ currency?: string;
59
+ note?: string;
60
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -143,6 +143,7 @@ export * from "./IaYOUneUserAgent";
143
143
  export * from "./IaYOUneUserRight";
144
144
  export * from "./IaYOUneVariable";
145
145
  export * from "./IaYOUneWidget";
146
+ export * from "./IBackorder";
146
147
  export * from "./IBankAccount";
147
148
  export * from "./IBankTurnover";
148
149
  export * from "./IBeacon";
@@ -269,6 +270,8 @@ export * from "./IDesktopClient";
269
270
  export * from "./IDesktopNotification";
270
271
  export * from "./IDiscountGroup";
271
272
  export * from "./IDMCampaign";
273
+ export * from "./IDock";
274
+ export * from "./IDockAppointment";
272
275
  export * from "./IDocument";
273
276
  export * from "./IDoi";
274
277
  export * from "./IDoiLog";
@@ -372,6 +375,7 @@ export * from "./IIntermediary";
372
375
  export * from "./IInternalChatMessage";
373
376
  export * from "./IInternalForm";
374
377
  export * from "./IInternalOrder";
378
+ export * from "./IInventoryAdjustment";
375
379
  export * from "./IInventoryList";
376
380
  export * from "./IInvoice";
377
381
  export * from "./IIoTDevice";
@@ -471,6 +475,7 @@ export * from "./IOverride";
471
475
  export * from "./IOwnData";
472
476
  export * from "./IOwnDataTemplate";
473
477
  export * from "./IOwnValue";
478
+ export * from "./IPackConfirmation";
474
479
  export * from "./IPackList";
475
480
  export * from "./IPageStat";
476
481
  export * from "./IPAT";
@@ -478,6 +483,7 @@ export * from "./IPaymentGroup";
478
483
  export * from "./IPaymentProvider";
479
484
  export * from "./IPermissionRequest";
480
485
  export * from "./IPickList";
486
+ export * from "./IPickWave";
481
487
  export * from "./IPimSelection";
482
488
  export * from "./IPipeline";
483
489
  export * from "./IPoints";
@@ -546,6 +552,7 @@ export * from "./IReaction";
546
552
  export * from "./IRecommendation";
547
553
  export * from "./IRecommendationTemplate";
548
554
  export * from "./IReminder";
555
+ export * from "./IReplenishmentOrder";
549
556
  export * from "./IReport";
550
557
  export * from "./IReportTemplate";
551
558
  export * from "./IRepository";
@@ -553,6 +560,7 @@ export * from "./IRequirement";
553
560
  export * from "./IRequirementSchema";
554
561
  export * from "./IResearchBudget";
555
562
  export * from "./IRetrospective";
563
+ export * from "./IReturnOrder";
556
564
  export * from "./IRewardLog";
557
565
  export * from "./IRewardRule";
558
566
  export * from "./IRolloutEnvironment";
@@ -646,6 +654,7 @@ export * from "./ITip";
646
654
  export * from "./ITitle";
647
655
  export * from "./ITrade";
648
656
  export * from "./ITransaction";
657
+ export * from "./ITransportOrder";
649
658
  export * from "./ITravel";
650
659
  export * from "./ITrigger";
651
660
  export * from "./ITriggerAction";
@@ -159,6 +159,7 @@ __exportStar(require("./IaYOUneUserAgent"), exports);
159
159
  __exportStar(require("./IaYOUneUserRight"), exports);
160
160
  __exportStar(require("./IaYOUneVariable"), exports);
161
161
  __exportStar(require("./IaYOUneWidget"), exports);
162
+ __exportStar(require("./IBackorder"), exports);
162
163
  __exportStar(require("./IBankAccount"), exports);
163
164
  __exportStar(require("./IBankTurnover"), exports);
164
165
  __exportStar(require("./IBeacon"), exports);
@@ -285,6 +286,8 @@ __exportStar(require("./IDesktopClient"), exports);
285
286
  __exportStar(require("./IDesktopNotification"), exports);
286
287
  __exportStar(require("./IDiscountGroup"), exports);
287
288
  __exportStar(require("./IDMCampaign"), exports);
289
+ __exportStar(require("./IDock"), exports);
290
+ __exportStar(require("./IDockAppointment"), exports);
288
291
  __exportStar(require("./IDocument"), exports);
289
292
  __exportStar(require("./IDoi"), exports);
290
293
  __exportStar(require("./IDoiLog"), exports);
@@ -388,6 +391,7 @@ __exportStar(require("./IIntermediary"), exports);
388
391
  __exportStar(require("./IInternalChatMessage"), exports);
389
392
  __exportStar(require("./IInternalForm"), exports);
390
393
  __exportStar(require("./IInternalOrder"), exports);
394
+ __exportStar(require("./IInventoryAdjustment"), exports);
391
395
  __exportStar(require("./IInventoryList"), exports);
392
396
  __exportStar(require("./IInvoice"), exports);
393
397
  __exportStar(require("./IIoTDevice"), exports);
@@ -487,6 +491,7 @@ __exportStar(require("./IOverride"), exports);
487
491
  __exportStar(require("./IOwnData"), exports);
488
492
  __exportStar(require("./IOwnDataTemplate"), exports);
489
493
  __exportStar(require("./IOwnValue"), exports);
494
+ __exportStar(require("./IPackConfirmation"), exports);
490
495
  __exportStar(require("./IPackList"), exports);
491
496
  __exportStar(require("./IPageStat"), exports);
492
497
  __exportStar(require("./IPAT"), exports);
@@ -494,6 +499,7 @@ __exportStar(require("./IPaymentGroup"), exports);
494
499
  __exportStar(require("./IPaymentProvider"), exports);
495
500
  __exportStar(require("./IPermissionRequest"), exports);
496
501
  __exportStar(require("./IPickList"), exports);
502
+ __exportStar(require("./IPickWave"), exports);
497
503
  __exportStar(require("./IPimSelection"), exports);
498
504
  __exportStar(require("./IPipeline"), exports);
499
505
  __exportStar(require("./IPoints"), exports);
@@ -562,6 +568,7 @@ __exportStar(require("./IReaction"), exports);
562
568
  __exportStar(require("./IRecommendation"), exports);
563
569
  __exportStar(require("./IRecommendationTemplate"), exports);
564
570
  __exportStar(require("./IReminder"), exports);
571
+ __exportStar(require("./IReplenishmentOrder"), exports);
565
572
  __exportStar(require("./IReport"), exports);
566
573
  __exportStar(require("./IReportTemplate"), exports);
567
574
  __exportStar(require("./IRepository"), exports);
@@ -569,6 +576,7 @@ __exportStar(require("./IRequirement"), exports);
569
576
  __exportStar(require("./IRequirementSchema"), exports);
570
577
  __exportStar(require("./IResearchBudget"), exports);
571
578
  __exportStar(require("./IRetrospective"), exports);
579
+ __exportStar(require("./IReturnOrder"), exports);
572
580
  __exportStar(require("./IRewardLog"), exports);
573
581
  __exportStar(require("./IRewardRule"), exports);
574
582
  __exportStar(require("./IRolloutEnvironment"), exports);
@@ -662,6 +670,7 @@ __exportStar(require("./ITip"), exports);
662
670
  __exportStar(require("./ITitle"), exports);
663
671
  __exportStar(require("./ITrade"), exports);
664
672
  __exportStar(require("./ITransaction"), exports);
673
+ __exportStar(require("./ITransportOrder"), exports);
665
674
  __exportStar(require("./ITravel"), exports);
666
675
  __exportStar(require("./ITrigger"), exports);
667
676
  __exportStar(require("./ITriggerAction"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolinax/ayoune-interfaces",
3
- "version": "2026.27.0",
3
+ "version": "2026.29.0",
4
4
  "description": "Houses TypeScript interfaces for aYOUne",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",