@vindentech/api-client 1.5.0 → 1.6.0-next.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.
|
@@ -170,10 +170,20 @@ export interface OrderProductDto {
|
|
|
170
170
|
salesOrderProductId: string;
|
|
171
171
|
productId: string;
|
|
172
172
|
/**
|
|
173
|
-
* Display name
|
|
173
|
+
* Display name: the product's own name when it has one, otherwise its placeholder_name. A client that labels the line in the reader's language builds the label from `productName`, `categoryId` and `placeholderName` instead: `productName`, else the category's name in that language (GET /v1/categories), else `placeholderName`.
|
|
174
174
|
* @nullable
|
|
175
175
|
*/
|
|
176
176
|
name: string | null;
|
|
177
|
+
/**
|
|
178
|
+
* The product's own name (public.product.name). Null when the customer has not named it: the line is then labelled by its category.
|
|
179
|
+
* @nullable
|
|
180
|
+
*/
|
|
181
|
+
productName: string | null;
|
|
182
|
+
/**
|
|
183
|
+
* The text the product was checked in with (public.product.placeholder_name): its label when it has neither a name nor a category.
|
|
184
|
+
* @nullable
|
|
185
|
+
*/
|
|
186
|
+
placeholderName: string | null;
|
|
177
187
|
/**
|
|
178
188
|
* Storage key of the product's primary image (never base64).
|
|
179
189
|
* @nullable
|
|
@@ -2671,6 +2681,21 @@ export interface CartItemDto {
|
|
|
2671
2681
|
productId: string | null;
|
|
2672
2682
|
/** @nullable */
|
|
2673
2683
|
productReference: string | null;
|
|
2684
|
+
/**
|
|
2685
|
+
* The product's own name (public.product.name), on a line that stands for a product. Null when the customer has not named it, and on an estimate line. A product line is labelled by this name, else its category's name in the reader's language (`categoryId`, GET /v1/categories), else `placeholderName`.
|
|
2686
|
+
* @nullable
|
|
2687
|
+
*/
|
|
2688
|
+
productName: string | null;
|
|
2689
|
+
/**
|
|
2690
|
+
* The text the product was checked in with (public.product.placeholder_name). Null on an estimate line.
|
|
2691
|
+
* @nullable
|
|
2692
|
+
*/
|
|
2693
|
+
placeholderName: string | null;
|
|
2694
|
+
/**
|
|
2695
|
+
* The product's public.category id. Null when it has none, and on an estimate line.
|
|
2696
|
+
* @nullable
|
|
2697
|
+
*/
|
|
2698
|
+
categoryId: number | null;
|
|
2674
2699
|
quantity: number;
|
|
2675
2700
|
/** @nullable */
|
|
2676
2701
|
lengthMm: number | null;
|
|
@@ -3800,7 +3825,7 @@ export interface UpdateTransportServiceDto {
|
|
|
3800
3825
|
salesOrderType?: UpdateTransportServiceDtoSalesOrderType;
|
|
3801
3826
|
fulfilmentMode?: UpdateTransportServiceDtoFulfilmentMode;
|
|
3802
3827
|
/**
|
|
3803
|
-
* Set null to make the service carrier-agnostic; a uuid to pin a carrier.
|
|
3828
|
+
* Set null to make the service carrier-agnostic; a uuid to pin a carrier. Also points the service's slots whose window has not started at it, booked or not; an order already placed keeps its leg's carrier.
|
|
3804
3829
|
* @nullable
|
|
3805
3830
|
*/
|
|
3806
3831
|
tenantCarrierId?: string | null;
|
|
@@ -4027,7 +4052,7 @@ export declare const SlotConfigDtoSlotKind: {
|
|
|
4027
4052
|
readonly PICKUP_WINDOW: "PICKUP_WINDOW";
|
|
4028
4053
|
};
|
|
4029
4054
|
/**
|
|
4030
|
-
* Per-weekday window schedule, returned as written (each window's base_max_orders, express_surcharge_ex_vat or express_surcharge_per_m3_ex_vat, and order_cutoff_lead_minutes included). A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour.
|
|
4055
|
+
* Per-weekday window schedule, returned as written (each window's base_max_orders, express_surcharge_ex_vat or express_surcharge_per_m3_ex_vat, and order_cutoff_lead_minutes included). A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour. A PATCH that changes a window's start or its effective lead also re-derives the cutoff of the config's slots whose window has not started, booked or not; a slot no window matches keeps its cutoff. An order's editable_until is the earliest cutoff of its held slots, so a stricter window also closes order editing earlier; an order already placed keeps its editable_until at the edit.
|
|
4031
4056
|
* @nullable
|
|
4032
4057
|
*/
|
|
4033
4058
|
export type SlotConfigDtoWeeklySchedule = {
|
|
@@ -4048,7 +4073,7 @@ export interface SlotConfigDto {
|
|
|
4048
4073
|
slotKind: SlotConfigDtoSlotKind;
|
|
4049
4074
|
timezone: string;
|
|
4050
4075
|
/**
|
|
4051
|
-
* Per-weekday window schedule, returned as written (each window's base_max_orders, express_surcharge_ex_vat or express_surcharge_per_m3_ex_vat, and order_cutoff_lead_minutes included). A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour.
|
|
4076
|
+
* Per-weekday window schedule, returned as written (each window's base_max_orders, express_surcharge_ex_vat or express_surcharge_per_m3_ex_vat, and order_cutoff_lead_minutes included). A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour. A PATCH that changes a window's start or its effective lead also re-derives the cutoff of the config's slots whose window has not started, booked or not; a slot no window matches keeps its cutoff. An order's editable_until is the earliest cutoff of its held slots, so a stricter window also closes order editing earlier; an order already placed keeps its editable_until at the edit.
|
|
4052
4077
|
* @nullable
|
|
4053
4078
|
*/
|
|
4054
4079
|
weeklySchedule: SlotConfigDtoWeeklySchedule;
|
|
@@ -4065,7 +4090,7 @@ export interface SlotConfigDto {
|
|
|
4065
4090
|
*/
|
|
4066
4091
|
dayMaxWeightG: number | null;
|
|
4067
4092
|
generateHorizonDays: number;
|
|
4068
|
-
/** Each generated slot's order_cutoff_at = window_start − this many minutes (0077), unless its weekly_schedule window sets its own order_cutoff_lead_minutes. */
|
|
4093
|
+
/** Each generated slot's order_cutoff_at = window_start − this many minutes (0077), unless its weekly_schedule window sets its own order_cutoff_lead_minutes. A PATCH that changes it re-derives the cutoff of the config's slots whose window has not started and that inherit it. */
|
|
4069
4094
|
orderCutoffLeadMinutes: number;
|
|
4070
4095
|
status: string;
|
|
4071
4096
|
createdAt: string;
|
|
@@ -4091,7 +4116,7 @@ export declare const CreateSlotConfigDtoSlotKind: {
|
|
|
4091
4116
|
readonly PICKUP_WINDOW: "PICKUP_WINDOW";
|
|
4092
4117
|
};
|
|
4093
4118
|
/**
|
|
4094
|
-
* Per-weekday windows (incl. per-slot base_max_orders / express_surcharge_ex_vat / express_surcharge_per_m3_ex_vat / order_cutoff_lead_minutes). express_surcharge_ex_vat (>= 0) is added once per order on top of the price book's base price; express_surcharge_per_m3_ex_vat (>= 0) instead adds that much per m³ the order's transport bills. A window sets at most one of the two (both is a 400). A window carries no price of its own: price_ex_vat is refused. A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour.
|
|
4119
|
+
* Per-weekday windows (incl. per-slot base_max_orders / express_surcharge_ex_vat / express_surcharge_per_m3_ex_vat / order_cutoff_lead_minutes). express_surcharge_ex_vat (>= 0) is added once per order on top of the price book's base price; express_surcharge_per_m3_ex_vat (>= 0) instead adds that much per m³ the order's transport bills. A window sets at most one of the two (both is a 400). A window carries no price of its own: price_ex_vat is refused. A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour. A PATCH that changes a window's start or its effective lead also re-derives the cutoff of the config's slots whose window has not started, booked or not; a slot no window matches keeps its cutoff. An order's editable_until is the earliest cutoff of its held slots, so a stricter window also closes order editing earlier; an order already placed keeps its editable_until at the edit. NULL = daily-cap-only.
|
|
4095
4120
|
*/
|
|
4096
4121
|
export type CreateSlotConfigDtoWeeklySchedule = {
|
|
4097
4122
|
[key: string]: unknown;
|
|
@@ -4102,7 +4127,7 @@ export interface CreateSlotConfigDto {
|
|
|
4102
4127
|
/** NULL = daily-cap-only (no concrete slots). */
|
|
4103
4128
|
slotKind?: CreateSlotConfigDtoSlotKind;
|
|
4104
4129
|
timezone?: string;
|
|
4105
|
-
/** Per-weekday windows (incl. per-slot base_max_orders / express_surcharge_ex_vat / express_surcharge_per_m3_ex_vat / order_cutoff_lead_minutes). express_surcharge_ex_vat (>= 0) is added once per order on top of the price book's base price; express_surcharge_per_m3_ex_vat (>= 0) instead adds that much per m³ the order's transport bills. A window sets at most one of the two (both is a 400). A window carries no price of its own: price_ex_vat is refused. A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour.
|
|
4130
|
+
/** Per-weekday windows (incl. per-slot base_max_orders / express_surcharge_ex_vat / express_surcharge_per_m3_ex_vat / order_cutoff_lead_minutes). express_surcharge_ex_vat (>= 0) is added once per order on top of the price book's base price; express_surcharge_per_m3_ex_vat (>= 0) instead adds that much per m³ the order's transport bills. A window sets at most one of the two (both is a 400). A window carries no price of its own: price_ex_vat is refused. A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour. A PATCH that changes a window's start or its effective lead also re-derives the cutoff of the config's slots whose window has not started, booked or not; a slot no window matches keeps its cutoff. An order's editable_until is the earliest cutoff of its held slots, so a stricter window also closes order editing earlier; an order already placed keeps its editable_until at the edit. NULL = daily-cap-only. */
|
|
4106
4131
|
weeklySchedule?: CreateSlotConfigDtoWeeklySchedule;
|
|
4107
4132
|
dayMaxOrders?: number;
|
|
4108
4133
|
/** bigint */
|
|
@@ -4110,7 +4135,7 @@ export interface CreateSlotConfigDto {
|
|
|
4110
4135
|
/** bigint */
|
|
4111
4136
|
dayMaxWeightG?: string;
|
|
4112
4137
|
generateHorizonDays?: number;
|
|
4113
|
-
/** Each generated slot's order_cutoff_at = window_start − this many minutes (0077), unless its weekly_schedule window sets its own order_cutoff_lead_minutes. */
|
|
4138
|
+
/** Each generated slot's order_cutoff_at = window_start − this many minutes (0077), unless its weekly_schedule window sets its own order_cutoff_lead_minutes. A PATCH that changes it re-derives the cutoff of the config's slots whose window has not started and that inherit it. */
|
|
4114
4139
|
orderCutoffLeadMinutes?: number;
|
|
4115
4140
|
status?: string;
|
|
4116
4141
|
}
|
|
@@ -4121,7 +4146,7 @@ export declare const UpdateSlotConfigDtoSlotKind: {
|
|
|
4121
4146
|
readonly PICKUP_WINDOW: "PICKUP_WINDOW";
|
|
4122
4147
|
};
|
|
4123
4148
|
/**
|
|
4124
|
-
* Per-weekday windows, replacing the stored schedule; the window shape is create's. A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour.
|
|
4149
|
+
* Per-weekday windows, replacing the stored schedule; the window shape is create's. A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour. A PATCH that changes a window's start or its effective lead also re-derives the cutoff of the config's slots whose window has not started, booked or not; a slot no window matches keeps its cutoff. An order's editable_until is the earliest cutoff of its held slots, so a stricter window also closes order editing earlier; an order already placed keeps its editable_until at the edit.
|
|
4125
4150
|
*/
|
|
4126
4151
|
export type UpdateSlotConfigDtoWeeklySchedule = {
|
|
4127
4152
|
[key: string]: unknown;
|
|
@@ -4131,7 +4156,7 @@ export interface UpdateSlotConfigDto {
|
|
|
4131
4156
|
serviceZoneId?: string;
|
|
4132
4157
|
slotKind?: UpdateSlotConfigDtoSlotKind;
|
|
4133
4158
|
timezone?: string;
|
|
4134
|
-
/** Per-weekday windows, replacing the stored schedule; the window shape is create's. A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour.
|
|
4159
|
+
/** Per-weekday windows, replacing the stored schedule; the window shape is create's. A window's order_cutoff_lead_minutes (a JSON integer >= 0; absent or null = the config's orderCutoffLeadMinutes) is its own booking cutoff: its slots' order_cutoff_at = window_start − this many minutes, counted as elapsed time, so across a DST change the wall-clock cutoff moves by an hour. A PATCH that changes a window's start or its effective lead also re-derives the cutoff of the config's slots whose window has not started, booked or not; a slot no window matches keeps its cutoff. An order's editable_until is the earliest cutoff of its held slots, so a stricter window also closes order editing earlier; an order already placed keeps its editable_until at the edit. */
|
|
4135
4160
|
weeklySchedule?: UpdateSlotConfigDtoWeeklySchedule;
|
|
4136
4161
|
dayMaxOrders?: number;
|
|
4137
4162
|
/** bigint */
|
|
@@ -4139,7 +4164,7 @@ export interface UpdateSlotConfigDto {
|
|
|
4139
4164
|
/** bigint */
|
|
4140
4165
|
dayMaxWeightG?: string;
|
|
4141
4166
|
generateHorizonDays?: number;
|
|
4142
|
-
/** Each generated slot's order_cutoff_at = window_start − this many minutes (0077), unless its weekly_schedule window sets its own order_cutoff_lead_minutes. */
|
|
4167
|
+
/** Each generated slot's order_cutoff_at = window_start − this many minutes (0077), unless its weekly_schedule window sets its own order_cutoff_lead_minutes. A PATCH that changes it re-derives the cutoff of the config's slots whose window has not started and that inherit it. */
|
|
4143
4168
|
orderCutoffLeadMinutes?: number;
|
|
4144
4169
|
status?: string;
|
|
4145
4170
|
}
|
|
@@ -5360,7 +5385,7 @@ export interface ProductDto {
|
|
|
5360
5385
|
productId: string;
|
|
5361
5386
|
organizationId: string;
|
|
5362
5387
|
/**
|
|
5363
|
-
*
|
|
5388
|
+
* The customer's own name for the product. Null when it has none: it is then labelled by its category's name in the reader's language (`categoryId`, GET /v1/categories), else by `placeholderName`.
|
|
5364
5389
|
* @nullable
|
|
5365
5390
|
*/
|
|
5366
5391
|
name: string | null;
|
|
@@ -5480,7 +5505,7 @@ export interface CreateProductDto {
|
|
|
5480
5505
|
/** The owning organization (server validates the caller's scope over it). */
|
|
5481
5506
|
organizationId: string;
|
|
5482
5507
|
/**
|
|
5483
|
-
*
|
|
5508
|
+
* The customer's own name for the product. Stored trimmed; a blank name is stored as null, and the product is then labelled by its category.
|
|
5484
5509
|
* @maxLength 255
|
|
5485
5510
|
*/
|
|
5486
5511
|
name: string;
|
|
@@ -5511,8 +5536,11 @@ export interface CreateProductDto {
|
|
|
5511
5536
|
comment?: string;
|
|
5512
5537
|
}
|
|
5513
5538
|
export interface UpdateProductDto {
|
|
5514
|
-
/**
|
|
5515
|
-
|
|
5539
|
+
/**
|
|
5540
|
+
* The customer's own name for the product. Stored trimmed; a blank name or an explicit null clears it, and the product is then labelled by its category.
|
|
5541
|
+
* @nullable
|
|
5542
|
+
*/
|
|
5543
|
+
name?: string | null;
|
|
5516
5544
|
categoryId?: number;
|
|
5517
5545
|
/**
|
|
5518
5546
|
* Move the item into this folder (same organization). Explicit null moves it back to the storage root; omit to leave the folder unchanged.
|
|
@@ -14094,7 +14122,7 @@ export type ProductsControllerListV1Params = {
|
|
|
14094
14122
|
*/
|
|
14095
14123
|
rootOnly?: boolean;
|
|
14096
14124
|
/**
|
|
14097
|
-
* Case-insensitive substring search over product name and external reference (
|
|
14125
|
+
* Case-insensitive substring search over the product's name, placeholder name and external reference, and its category's name in every language (so an unnamed product is found by the category that labels it)
|
|
14098
14126
|
* @maxLength 200
|
|
14099
14127
|
*/
|
|
14100
14128
|
search?: string;
|
|
@@ -14121,7 +14149,7 @@ export type ProductsControllerStatsV1Params = {
|
|
|
14121
14149
|
*/
|
|
14122
14150
|
rootOnly?: boolean;
|
|
14123
14151
|
/**
|
|
14124
|
-
* Case-insensitive substring search over product name and external reference (
|
|
14152
|
+
* Case-insensitive substring search over the product's name, placeholder name and external reference, and its category's name in every language (so an unnamed product is found by the category that labels it)
|
|
14125
14153
|
* @maxLength 200
|
|
14126
14154
|
*/
|
|
14127
14155
|
search?: string;
|