@vindentech/api-client 0.3.0-next.33 → 0.3.0-next.35
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/generated/_all.d.ts +1 -0
- package/dist/generated/_all.d.ts.map +1 -1
- package/dist/generated/_all.js +1 -0
- package/dist/generated/_all.js.map +1 -1
- package/dist/generated/_permissions.d.ts +45 -1
- package/dist/generated/_permissions.d.ts.map +1 -1
- package/dist/generated/_permissions.js +11 -0
- package/dist/generated/_permissions.js.map +1 -1
- package/dist/generated/index.schemas.d.ts +259 -0
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +11 -0
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/merchandise/merchandise.d.ts +65 -1
- package/dist/generated/merchandise/merchandise.d.ts.map +1 -1
- package/dist/generated/merchandise/merchandise.js +32 -0
- package/dist/generated/merchandise/merchandise.js.map +1 -1
- package/dist/generated/merchandise-checkout/merchandise-checkout.d.ts +15 -1
- package/dist/generated/merchandise-checkout/merchandise-checkout.d.ts.map +1 -1
- package/dist/generated/merchandise-checkout/merchandise-checkout.js +12 -0
- package/dist/generated/merchandise-checkout/merchandise-checkout.js.map +1 -1
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.d.ts +83 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.d.ts.map +1 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.js +51 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.js.map +1 -0
- package/dist/generated/orders/orders.d.ts +16 -2
- package/dist/generated/orders/orders.d.ts.map +1 -1
- package/dist/generated/orders/orders.js +12 -0
- package/dist/generated/orders/orders.js.map +1 -1
- package/dist/generated/payment-instruments/payment-instruments.d.ts +25 -0
- package/dist/generated/payment-instruments/payment-instruments.d.ts.map +1 -1
- package/dist/generated/payment-instruments/payment-instruments.js +9 -0
- package/dist/generated/payment-instruments/payment-instruments.js.map +1 -1
- package/dist/generated/warehouse-orders/warehouse-orders.d.ts +15 -1
- package/dist/generated/warehouse-orders/warehouse-orders.d.ts.map +1 -1
- package/dist/generated/warehouse-orders/warehouse-orders.js +10 -0
- package/dist/generated/warehouse-orders/warehouse-orders.js.map +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,15 @@ export interface OrderSummaryDto {
|
|
|
23
23
|
salesOrderId: string;
|
|
24
24
|
/** Per-job operational number (tenant sequence). */
|
|
25
25
|
jobNumber: number;
|
|
26
|
+
/**
|
|
27
|
+
* Customer-facing booking number of the group this job belongs to (public.order_group.order_number) — the number a checkout confirmation quotes back, and a different tenant sequence from `jobNumber`. Null for warehouse and carrier callers, whose scope does not reach order groups at all; they see `jobNumber` only.
|
|
28
|
+
* @nullable
|
|
29
|
+
*/
|
|
30
|
+
orderNumber: number | null;
|
|
31
|
+
/** 1-based position of this job among the live jobs of its group, ranked by `jobNumber`. Together with `orderCountInGroup` this renders a multi-job booking as `#1001-1` / `#1001-2` and a single-job one as plain `#1001`. Scoped by the caller's own row visibility, like `productCount`. */
|
|
32
|
+
orderIndexInGroup: number;
|
|
33
|
+
/** How many live jobs the group holds (at least 1 — this job is always one of them). Scoped by the caller's own row visibility, like `productCount`. */
|
|
34
|
+
orderCountInGroup: number;
|
|
26
35
|
orderGroupId: string;
|
|
27
36
|
/** The customer this job belongs to (public.organization). */
|
|
28
37
|
organizationId: string;
|
|
@@ -275,6 +284,15 @@ export interface OrderDetailDto {
|
|
|
275
284
|
salesOrderId: string;
|
|
276
285
|
/** Per-job operational number (tenant sequence). */
|
|
277
286
|
jobNumber: number;
|
|
287
|
+
/**
|
|
288
|
+
* Customer-facing booking number of the group this job belongs to (public.order_group.order_number) — the number a checkout confirmation quotes back, and a different tenant sequence from `jobNumber`. Null for warehouse and carrier callers, whose scope does not reach order groups at all; they see `jobNumber` only.
|
|
289
|
+
* @nullable
|
|
290
|
+
*/
|
|
291
|
+
orderNumber: number | null;
|
|
292
|
+
/** 1-based position of this job among the live jobs of its group, ranked by `jobNumber`. Together with `orderCountInGroup` this renders a multi-job booking as `#1001-1` / `#1001-2` and a single-job one as plain `#1001`. Scoped by the caller's own row visibility, like `productCount`. */
|
|
293
|
+
orderIndexInGroup: number;
|
|
294
|
+
/** How many live jobs the group holds (at least 1 — this job is always one of them). Scoped by the caller's own row visibility, like `productCount`. */
|
|
295
|
+
orderCountInGroup: number;
|
|
278
296
|
orderGroupId: string;
|
|
279
297
|
/** The customer this job belongs to (public.organization). */
|
|
280
298
|
organizationId: string;
|
|
@@ -330,6 +348,16 @@ export interface OrderDetailDto {
|
|
|
330
348
|
cancelledAt: string | null;
|
|
331
349
|
/** @nullable */
|
|
332
350
|
cancellationReason: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* Whether the order is excluded from automatic billing (staff-only — null when the caller cannot see it, e.g. an org/warehouse/carrier caller).
|
|
353
|
+
* @nullable
|
|
354
|
+
*/
|
|
355
|
+
manualBilling?: boolean | null;
|
|
356
|
+
/**
|
|
357
|
+
* Why the order is excluded from automatic billing (staff-only — null when the caller cannot see it, or when the order isn't flagged).
|
|
358
|
+
* @nullable
|
|
359
|
+
*/
|
|
360
|
+
manualBillingComment?: string | null;
|
|
333
361
|
/** @nullable */
|
|
334
362
|
warehouse: OrderDetailDtoWarehouse;
|
|
335
363
|
/** @nullable */
|
|
@@ -495,6 +523,15 @@ export interface EditOrderItemsDto {
|
|
|
495
523
|
/** Full desired set of product lines. Omit a stored line to remove it; an empty array removes all removable lines. */
|
|
496
524
|
items: OrderItemInput[];
|
|
497
525
|
}
|
|
526
|
+
export interface SetManualBillingDto {
|
|
527
|
+
/** Whether the order is excluded from automatic billing. */
|
|
528
|
+
manualBilling: boolean;
|
|
529
|
+
/**
|
|
530
|
+
* Why the order is excluded from automatic billing. Required when manualBilling is true.
|
|
531
|
+
* @maxLength 2000
|
|
532
|
+
*/
|
|
533
|
+
comment?: string;
|
|
534
|
+
}
|
|
498
535
|
export interface EstimateItemInputDto {
|
|
499
536
|
/** What the customer calls the goods (free text). */
|
|
500
537
|
reference: string;
|
|
@@ -760,6 +797,8 @@ export interface CancelOrderResultDto {
|
|
|
760
797
|
releasedReservationIds: string[];
|
|
761
798
|
/** Other orders this cancel also cancelled, by cascade — a dependent job whose relationship type declares cancel_with_parent (today: the MERCHANDISE_SALE job of a checkout that carried a basket). Empty for an order with no such dependents. Present for the same reason as releasedReservationIds: the caller asked to cancel one order and has no other way to learn that a second one went with it. */
|
|
762
799
|
cascadeCancelledSalesOrderIds: string[];
|
|
800
|
+
/** This order's own transport legs cancelled by this call, plus any from a cancel_with_parent child (e.g. a separately-ordered material:delivery leg). Excludes a leg already COMPLETED/CANCELLED/FAILED. Empty for an order with no live legs. */
|
|
801
|
+
cancelledLegIds: string[];
|
|
763
802
|
}
|
|
764
803
|
export interface OrderGroupDto {
|
|
765
804
|
orderGroupId: string;
|
|
@@ -2592,6 +2631,14 @@ export interface CartServiceInputDto {
|
|
|
2592
2631
|
/** @nullable */
|
|
2593
2632
|
metadata?: CartServiceInputDtoMetadata;
|
|
2594
2633
|
}
|
|
2634
|
+
/**
|
|
2635
|
+
* Where the line came from: CUSTOMER picked it out of the catalogue, ESTIMATOR means it came from a suggested basket the customer accepted or edited. PROVENANCE ONLY — analytics, not a fact. A client can claim either value, so it must never feed price or permission. Omitted on a resubmission leaves the stored value alone.
|
|
2636
|
+
*/
|
|
2637
|
+
export type CartMerchandiseInputDtoSource = typeof CartMerchandiseInputDtoSource[keyof typeof CartMerchandiseInputDtoSource];
|
|
2638
|
+
export declare const CartMerchandiseInputDtoSource: {
|
|
2639
|
+
readonly CUSTOMER: "CUSTOMER";
|
|
2640
|
+
readonly ESTIMATOR: "ESTIMATOR";
|
|
2641
|
+
};
|
|
2595
2642
|
export interface CartMerchandiseInputDto {
|
|
2596
2643
|
/** A SKU from GET /v1/checkout/available-merchandise. */
|
|
2597
2644
|
tenantGoodsId: string;
|
|
@@ -2601,6 +2648,8 @@ export interface CartMerchandiseInputDto {
|
|
|
2601
2648
|
* @maximum 1000
|
|
2602
2649
|
*/
|
|
2603
2650
|
quantity: number;
|
|
2651
|
+
/** Where the line came from: CUSTOMER picked it out of the catalogue, ESTIMATOR means it came from a suggested basket the customer accepted or edited. PROVENANCE ONLY — analytics, not a fact. A client can claim either value, so it must never feed price or permission. Omitted on a resubmission leaves the stored value alone. */
|
|
2652
|
+
source?: CartMerchandiseInputDtoSource;
|
|
2604
2653
|
}
|
|
2605
2654
|
export type UpdateCartDtoCustomerType = typeof UpdateCartDtoCustomerType[keyof typeof UpdateCartDtoCustomerType];
|
|
2606
2655
|
export declare const UpdateCartDtoCustomerType: {
|
|
@@ -5434,6 +5483,23 @@ export interface DisposalRequestResultDto {
|
|
|
5434
5483
|
/** True when this response replays a previous run of the key. */
|
|
5435
5484
|
idempotent: boolean;
|
|
5436
5485
|
}
|
|
5486
|
+
export interface DisposalHandlingFeeDto {
|
|
5487
|
+
/**
|
|
5488
|
+
* Fee amount ex-VAT, integer minor units (e.g. öre/cents). Null when not yet priced for this tenant.
|
|
5489
|
+
* @nullable
|
|
5490
|
+
*/
|
|
5491
|
+
amountExVatMinor: number | null;
|
|
5492
|
+
/**
|
|
5493
|
+
* VAT rate as a percentage (25 = 25%). Null when not yet priced for this tenant.
|
|
5494
|
+
* @nullable
|
|
5495
|
+
*/
|
|
5496
|
+
vatRate: number | null;
|
|
5497
|
+
/**
|
|
5498
|
+
* ISO 4217. Null when not yet priced for this tenant.
|
|
5499
|
+
* @nullable
|
|
5500
|
+
*/
|
|
5501
|
+
currencyCode: string | null;
|
|
5502
|
+
}
|
|
5437
5503
|
export interface CancelDisposalRequestDto {
|
|
5438
5504
|
/**
|
|
5439
5505
|
* Why the request is being withdrawn.
|
|
@@ -10158,6 +10224,62 @@ export interface UpdateTenantGoodsDto {
|
|
|
10158
10224
|
/** Recorded on the pricing rule when the price changes. */
|
|
10159
10225
|
changeReason?: string;
|
|
10160
10226
|
}
|
|
10227
|
+
/**
|
|
10228
|
+
* Free-text note (e.g. a delivery note id).
|
|
10229
|
+
* @nullable
|
|
10230
|
+
*/
|
|
10231
|
+
export type ReceiveStockDtoReason = {
|
|
10232
|
+
[key: string]: unknown;
|
|
10233
|
+
} | null;
|
|
10234
|
+
export interface ReceiveStockDto {
|
|
10235
|
+
/** Warehouse the stock arrived at. Must be one the caller is assigned to. */
|
|
10236
|
+
warehouseId: string;
|
|
10237
|
+
/**
|
|
10238
|
+
* Units received. Unsigned — a receive can only add.
|
|
10239
|
+
* @minimum 1
|
|
10240
|
+
* @maximum 1000000
|
|
10241
|
+
*/
|
|
10242
|
+
quantity: number;
|
|
10243
|
+
/**
|
|
10244
|
+
* Free-text note (e.g. a delivery note id).
|
|
10245
|
+
* @nullable
|
|
10246
|
+
*/
|
|
10247
|
+
reason?: ReceiveStockDtoReason;
|
|
10248
|
+
}
|
|
10249
|
+
export type StockMovementResultDtoMovementType = typeof StockMovementResultDtoMovementType[keyof typeof StockMovementResultDtoMovementType];
|
|
10250
|
+
export declare const StockMovementResultDtoMovementType: {
|
|
10251
|
+
readonly RECEIVE: "RECEIVE";
|
|
10252
|
+
readonly SELL: "SELL";
|
|
10253
|
+
readonly ADJUST: "ADJUST";
|
|
10254
|
+
};
|
|
10255
|
+
export interface StockMovementResultDto {
|
|
10256
|
+
tenantGoodsStockMovementId: string;
|
|
10257
|
+
warehouseId: string;
|
|
10258
|
+
movementType: StockMovementResultDtoMovementType;
|
|
10259
|
+
/** Signed delta as recorded on the ledger. */
|
|
10260
|
+
quantityDelta: number;
|
|
10261
|
+
/** The warehouse's level after this movement. May be negative — see the adjust delta description. */
|
|
10262
|
+
quantityAfter: number;
|
|
10263
|
+
/** True when this call replayed a prior result for the same Idempotency-Key. */
|
|
10264
|
+
idempotent: boolean;
|
|
10265
|
+
}
|
|
10266
|
+
export interface AdjustStockDto {
|
|
10267
|
+
warehouseId: string;
|
|
10268
|
+
/**
|
|
10269
|
+
* Signed correction. Negative is allowed and may take the level below zero — merchandise stock is bookkeeping that never gates checkout, so a negative level is a real state ops resolve with a further adjustment, not an error.
|
|
10270
|
+
* @minimum -1000000
|
|
10271
|
+
* @maximum 1000000
|
|
10272
|
+
*/
|
|
10273
|
+
delta: number;
|
|
10274
|
+
/** Why the level changed. Required — a correction must explain itself. */
|
|
10275
|
+
reason: string;
|
|
10276
|
+
}
|
|
10277
|
+
export interface StockLevelDto {
|
|
10278
|
+
warehouseId: string;
|
|
10279
|
+
/** Σ of the ledger's movements for this SKU/warehouse. */
|
|
10280
|
+
quantity: number;
|
|
10281
|
+
updatedAt: string;
|
|
10282
|
+
}
|
|
10161
10283
|
export interface CheckoutMerchandiseDto {
|
|
10162
10284
|
/** Pass this as `tenantGoodsId` when basketing. */
|
|
10163
10285
|
tenantGoodsId: string;
|
|
@@ -10176,6 +10298,130 @@ export interface CheckoutMerchandiseDto {
|
|
|
10176
10298
|
/** @nullable */
|
|
10177
10299
|
category?: string | null;
|
|
10178
10300
|
}
|
|
10301
|
+
export interface MerchandiseEstimateItemDto {
|
|
10302
|
+
/**
|
|
10303
|
+
* A `public.category` id from GET /v1/categories — the taxonomy of the customer's BELONGINGS (what is being moved), not the tenant's merchandise grouping. A category no rule mentions simply contributes nothing.
|
|
10304
|
+
* @minimum 1
|
|
10305
|
+
* @maximum 2147483647
|
|
10306
|
+
*/
|
|
10307
|
+
categoryId: number;
|
|
10308
|
+
/**
|
|
10309
|
+
* How many items of this kind the customer is moving.
|
|
10310
|
+
* @minimum 1
|
|
10311
|
+
* @maximum 999
|
|
10312
|
+
*/
|
|
10313
|
+
quantity: number;
|
|
10314
|
+
}
|
|
10315
|
+
export interface MerchandiseEstimateRequestDto {
|
|
10316
|
+
/** One entry per kind of belongings, at most 100. The same category twice is folded into one entry with the summed quantity. */
|
|
10317
|
+
items: MerchandiseEstimateItemDto[];
|
|
10318
|
+
}
|
|
10319
|
+
export interface MerchandiseEstimateLineDto {
|
|
10320
|
+
/** Pass this as `tenantGoodsId` when basketing. */
|
|
10321
|
+
tenantGoodsId: string;
|
|
10322
|
+
/** Tenant-unique SKU code, e.g. BOX-L. */
|
|
10323
|
+
code: string;
|
|
10324
|
+
name: string;
|
|
10325
|
+
/** @nullable */
|
|
10326
|
+
description?: string | null;
|
|
10327
|
+
/**
|
|
10328
|
+
* Display price ex VAT (numeric column → string).
|
|
10329
|
+
* @nullable
|
|
10330
|
+
*/
|
|
10331
|
+
retailPriceExVat?: string | null;
|
|
10332
|
+
/** @nullable */
|
|
10333
|
+
currencyCode?: string | null;
|
|
10334
|
+
/** @nullable */
|
|
10335
|
+
category?: string | null;
|
|
10336
|
+
/**
|
|
10337
|
+
* Suggested units of this SKU, always at least 1. Editable — the customer may change or remove it before the basket is saved.
|
|
10338
|
+
* @minimum 1
|
|
10339
|
+
*/
|
|
10340
|
+
suggestedQuantity: number;
|
|
10341
|
+
}
|
|
10342
|
+
export interface MerchandiseEstimateRuleDto {
|
|
10343
|
+
tenantGoodsEstimateRuleId: string;
|
|
10344
|
+
/** `public.category` id — the customer's belongings. */
|
|
10345
|
+
sourceCategoryId: number;
|
|
10346
|
+
/** The merchandise SKU the rule suggests. */
|
|
10347
|
+
tenantGoodsId: string;
|
|
10348
|
+
/** Units of the SKU per item of the source category (numeric → string). */
|
|
10349
|
+
quantityPerUnit: string;
|
|
10350
|
+
/** Once-per-category baseline, added on top of the per-unit term. */
|
|
10351
|
+
flatQuantity: number;
|
|
10352
|
+
/** @nullable */
|
|
10353
|
+
minQuantity?: number | null;
|
|
10354
|
+
/** @nullable */
|
|
10355
|
+
maxQuantity?: number | null;
|
|
10356
|
+
createdAt: string;
|
|
10357
|
+
updatedAt: string;
|
|
10358
|
+
}
|
|
10359
|
+
export interface CreateMerchandiseEstimateRuleDto {
|
|
10360
|
+
/**
|
|
10361
|
+
* A `public.category` id — the kind of belongings that triggers the suggestion. Keyed on the shared taxonomy the apps already send as `categoryId`, not on the tenant's free-text merchandise grouping.
|
|
10362
|
+
* @minimum 1
|
|
10363
|
+
* @maximum 2147483647
|
|
10364
|
+
*/
|
|
10365
|
+
sourceCategoryId: number;
|
|
10366
|
+
/** The merchandise SKU to suggest. */
|
|
10367
|
+
tenantGoodsId: string;
|
|
10368
|
+
/**
|
|
10369
|
+
* Units of the SKU per item of the source category, up to 4 decimals. Fractions are the ordinary case (half a roll of tape per sofa) — the rounding happens once, over the whole suggestion for the SKU.
|
|
10370
|
+
* @minimum 0
|
|
10371
|
+
* @maximum 999999.9999
|
|
10372
|
+
*/
|
|
10373
|
+
quantityPerUnit: number;
|
|
10374
|
+
/**
|
|
10375
|
+
* Once-per-category baseline. Together with quantityPerUnit this expresses both shapes the tenant needs: `x boxes → x + y boxes` is perUnit 1 with flat y, and `a sofa → n rolls` is perUnit n with flat 0. Defaults to 0.
|
|
10376
|
+
* @minimum 0
|
|
10377
|
+
* @maximum 10000
|
|
10378
|
+
*/
|
|
10379
|
+
flatQuantity?: number;
|
|
10380
|
+
/**
|
|
10381
|
+
* Never suggest fewer than this when the category is present at all. Applied AFTER the arithmetic, so it also lifts a suggestion that resolved to zero. Omit for no floor.
|
|
10382
|
+
* @minimum 0
|
|
10383
|
+
* @maximum 10000
|
|
10384
|
+
*/
|
|
10385
|
+
minQuantity?: number;
|
|
10386
|
+
/**
|
|
10387
|
+
* Never suggest more than this. Omit for no cap. When several matched rules disagree the strictest wins — the highest floor and the lowest cap.
|
|
10388
|
+
* @minimum 0
|
|
10389
|
+
* @maximum 10000
|
|
10390
|
+
*/
|
|
10391
|
+
maxQuantity?: number;
|
|
10392
|
+
}
|
|
10393
|
+
export interface UpdateMerchandiseEstimateRuleDto {
|
|
10394
|
+
/**
|
|
10395
|
+
* @minimum 1
|
|
10396
|
+
* @maximum 2147483647
|
|
10397
|
+
*/
|
|
10398
|
+
sourceCategoryId?: number;
|
|
10399
|
+
tenantGoodsId?: string;
|
|
10400
|
+
/**
|
|
10401
|
+
* @minimum 0
|
|
10402
|
+
* @maximum 999999.9999
|
|
10403
|
+
*/
|
|
10404
|
+
quantityPerUnit?: number;
|
|
10405
|
+
/**
|
|
10406
|
+
* @minimum 0
|
|
10407
|
+
* @maximum 10000
|
|
10408
|
+
*/
|
|
10409
|
+
flatQuantity?: number;
|
|
10410
|
+
/**
|
|
10411
|
+
* Send null to remove the floor.
|
|
10412
|
+
* @minimum 0
|
|
10413
|
+
* @maximum 10000
|
|
10414
|
+
* @nullable
|
|
10415
|
+
*/
|
|
10416
|
+
minQuantity?: number | null;
|
|
10417
|
+
/**
|
|
10418
|
+
* Send null to remove the cap.
|
|
10419
|
+
* @minimum 0
|
|
10420
|
+
* @maximum 10000
|
|
10421
|
+
* @nullable
|
|
10422
|
+
*/
|
|
10423
|
+
maxQuantity?: number | null;
|
|
10424
|
+
}
|
|
10179
10425
|
export interface ClientConfigKeycloakDto {
|
|
10180
10426
|
/** Base URL of the Keycloak deployment serving this tenant. */
|
|
10181
10427
|
url: string;
|
|
@@ -11700,6 +11946,19 @@ export type MerchandiseCheckoutControllerAvailableMerchandiseV1Params = {
|
|
|
11700
11946
|
*/
|
|
11701
11947
|
offset?: number;
|
|
11702
11948
|
};
|
|
11949
|
+
export type MerchandiseEstimateRulesControllerListV1Params = {
|
|
11950
|
+
/**
|
|
11951
|
+
* Max rows to return (1–100).
|
|
11952
|
+
* @minimum 1
|
|
11953
|
+
* @maximum 100
|
|
11954
|
+
*/
|
|
11955
|
+
limit?: number;
|
|
11956
|
+
/**
|
|
11957
|
+
* Rows to skip.
|
|
11958
|
+
* @minimum 0
|
|
11959
|
+
*/
|
|
11960
|
+
offset?: number;
|
|
11961
|
+
};
|
|
11703
11962
|
export type ClientConfigControllerGetV1Params = {
|
|
11704
11963
|
/**
|
|
11705
11964
|
* Which client is bootstrapping. Selects the Keycloak client id and version policy.
|