@vindentech/api-client 2.0.0-next.0 → 2.0.0-next.10
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/client.d.ts.map +1 -1
- package/dist/client.js.map +1 -1
- package/dist/generated/_all.d.ts +2 -0
- package/dist/generated/_all.d.ts.map +1 -1
- package/dist/generated/_all.js +2 -0
- package/dist/generated/_all.js.map +1 -1
- package/dist/generated/_permissions.d.ts +29 -1
- package/dist/generated/_permissions.d.ts.map +1 -1
- package/dist/generated/_permissions.js +7 -0
- package/dist/generated/_permissions.js.map +1 -1
- package/dist/generated/analytics/analytics.d.ts +16 -2
- package/dist/generated/analytics/analytics.d.ts.map +1 -1
- package/dist/generated/analytics/analytics.js +22 -1
- package/dist/generated/analytics/analytics.js.map +1 -1
- package/dist/generated/articles/articles.d.ts +1 -1
- package/dist/generated/articles/articles.js +1 -1
- package/dist/generated/billing-accounts/billing-accounts.d.ts +8 -1
- package/dist/generated/billing-accounts/billing-accounts.d.ts.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.js +0 -1
- package/dist/generated/billing-accounts/billing-accounts.js.map +1 -1
- package/dist/generated/collection-holds/collection-holds.d.ts +24 -0
- package/dist/generated/collection-holds/collection-holds.d.ts.map +1 -0
- package/dist/generated/collection-holds/collection-holds.js +23 -0
- package/dist/generated/collection-holds/collection-holds.js.map +1 -0
- package/dist/generated/index.schemas.d.ts +814 -25
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +82 -1
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.d.ts +38 -0
- package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.d.ts.map +1 -0
- package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.js +41 -0
- package/dist/generated/invoice-auto-charge-mode/invoice-auto-charge-mode.js.map +1 -0
- package/dist/generated/invoices/invoices.d.ts +31 -2
- package/dist/generated/invoices/invoices.d.ts.map +1 -1
- package/dist/generated/invoices/invoices.js +25 -1
- package/dist/generated/invoices/invoices.js.map +1 -1
- package/dist/generated/organizations/organizations.d.ts +1 -1
- package/dist/generated/organizations/organizations.js +1 -1
- package/dist/generated/provider-switch/provider-switch.d.ts +5 -1
- package/dist/generated/provider-switch/provider-switch.d.ts.map +1 -1
- package/dist/generated/provider-switch/provider-switch.js.map +1 -1
- package/dist/generated/tenant-config/tenant-config.d.ts +29 -1
- package/dist/generated/tenant-config/tenant-config.d.ts.map +1 -1
- package/dist/generated/tenant-config/tenant-config.js +39 -0
- package/dist/generated/tenant-config/tenant-config.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,24 @@ export interface HealthResponseDto {
|
|
|
9
9
|
status: string;
|
|
10
10
|
timestamp: string;
|
|
11
11
|
}
|
|
12
|
+
export interface OrderCustomerLegDto {
|
|
13
|
+
/** The leg's id, as in OrderDetailDto.legs. */
|
|
14
|
+
orderTransportLegId: string;
|
|
15
|
+
/** PICKUP, DELIVERY, DISPATCH, RETURN or SERVICE. Tells a pickup address from a delivery address, and shows when no leg of the order's own direction was picked. */
|
|
16
|
+
legType: string;
|
|
17
|
+
/** @nullable */
|
|
18
|
+
addressLine1: string | null;
|
|
19
|
+
/** @nullable */
|
|
20
|
+
zipCode: string | null;
|
|
21
|
+
/** @nullable */
|
|
22
|
+
city: string | null;
|
|
23
|
+
/** @nullable */
|
|
24
|
+
recipientPhone: string | null;
|
|
25
|
+
/** @nullable */
|
|
26
|
+
plannedWindowStart: string | null;
|
|
27
|
+
/** @nullable */
|
|
28
|
+
plannedWindowEnd: string | null;
|
|
29
|
+
}
|
|
12
30
|
export interface OrderHandlingZoneDto {
|
|
13
31
|
positionId: string;
|
|
14
32
|
section: string;
|
|
@@ -51,6 +69,11 @@ export interface OrderSummaryDto {
|
|
|
51
69
|
* @nullable
|
|
52
70
|
*/
|
|
53
71
|
recipientName: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* The customer-facing transport leg: its address, contact phone and booked window. Picked from the live legs the caller can see as the lowest-sequence leg of the order's customer-facing type (PICKUP for PICKUP, MOVE, TRANSFER and PICKING jobs; DELIVERY for DELIVERY, DROP_OFF and MERCHANDISE_SALE jobs), else the lowest-sequence leg with an address, else the lowest-sequence leg — the same leg a client picks from `GET /v1/orders/{id}`'s `legs`. Not necessarily the leg `recipientName` reads, which is always the lowest-sequence one. Null when the order has no leg the caller can see. A carrier reaches only its own booked legs and warehouse staff only legs on an assigned warehouse, so for them this can also be a leg other than the customer's own; `legType` says which.
|
|
74
|
+
* @nullable
|
|
75
|
+
*/
|
|
76
|
+
customerLeg: OrderCustomerLegDto | null;
|
|
54
77
|
/** Live product lines on the job (voided and deleted lines excluded). Scoped by the caller's own row visibility, so it matches what `GET /v1/orders/{id}` would show them. */
|
|
55
78
|
productCount: number;
|
|
56
79
|
/** Merchandise lines on the job (public.sales_order_merchandise) — always 0 except on a MERCHANDISE_SALE job, which carries merchandise instead of product lines. Distinct from `productCount`, which never counts these. Scoped by the caller's own row visibility like `productCount`: 0 can mean 'no merchandise' or 'withheld by scope'. */
|
|
@@ -415,6 +438,11 @@ export interface OrderDetailDto {
|
|
|
415
438
|
* @nullable
|
|
416
439
|
*/
|
|
417
440
|
recipientName: string | null;
|
|
441
|
+
/**
|
|
442
|
+
* The customer-facing transport leg: its address, contact phone and booked window. Picked from the live legs the caller can see as the lowest-sequence leg of the order's customer-facing type (PICKUP for PICKUP, MOVE, TRANSFER and PICKING jobs; DELIVERY for DELIVERY, DROP_OFF and MERCHANDISE_SALE jobs), else the lowest-sequence leg with an address, else the lowest-sequence leg — the same leg a client picks from `GET /v1/orders/{id}`'s `legs`. Not necessarily the leg `recipientName` reads, which is always the lowest-sequence one. Null when the order has no leg the caller can see. A carrier reaches only its own booked legs and warehouse staff only legs on an assigned warehouse, so for them this can also be a leg other than the customer's own; `legType` says which.
|
|
443
|
+
* @nullable
|
|
444
|
+
*/
|
|
445
|
+
customerLeg: OrderCustomerLegDto | null;
|
|
418
446
|
/** Live product lines on the job (voided and deleted lines excluded). Scoped by the caller's own row visibility, so it matches what `GET /v1/orders/{id}` would show them. */
|
|
419
447
|
productCount: number;
|
|
420
448
|
/** Merchandise lines on the job (public.sales_order_merchandise) — always 0 except on a MERCHANDISE_SALE job, which carries merchandise instead of product lines. Distinct from `productCount`, which never counts these. Scoped by the caller's own row visibility like `productCount`: 0 can mean 'no merchandise' or 'withheld by scope'. */
|
|
@@ -1534,20 +1562,45 @@ export interface UpdateOrgContactDto {
|
|
|
1534
1562
|
companyName?: string;
|
|
1535
1563
|
notes?: string;
|
|
1536
1564
|
}
|
|
1537
|
-
export
|
|
1538
|
-
|
|
1565
|
+
export interface OrganizationOwnerDto {
|
|
1566
|
+
/** The member's user id (Keycloak subject). */
|
|
1567
|
+
sub: string;
|
|
1568
|
+
/** The member's role in the organization, e.g. `owner` or `org-admin`. */
|
|
1569
|
+
role: string;
|
|
1570
|
+
/** @nullable */
|
|
1571
|
+
displayName: string | null;
|
|
1572
|
+
/** @nullable */
|
|
1573
|
+
firstName: string | null;
|
|
1574
|
+
/** @nullable */
|
|
1575
|
+
lastName: string | null;
|
|
1576
|
+
/** @nullable */
|
|
1577
|
+
email: string | null;
|
|
1578
|
+
/** @nullable */
|
|
1579
|
+
phone: string | null;
|
|
1580
|
+
}
|
|
1581
|
+
export type OrganizationListItemDtoType = typeof OrganizationListItemDtoType[keyof typeof OrganizationListItemDtoType];
|
|
1582
|
+
export declare const OrganizationListItemDtoType: {
|
|
1539
1583
|
readonly business: "business";
|
|
1540
1584
|
readonly personal: "personal";
|
|
1541
1585
|
};
|
|
1542
1586
|
/**
|
|
1543
1587
|
* @nullable
|
|
1544
1588
|
*/
|
|
1545
|
-
export type
|
|
1589
|
+
export type OrganizationListItemDtoMetadata = {
|
|
1546
1590
|
[key: string]: unknown;
|
|
1547
1591
|
} | null;
|
|
1548
|
-
|
|
1592
|
+
/**
|
|
1593
|
+
* The account's service tier, as `GET /v1/me` reports it. CORE unless set.
|
|
1594
|
+
*/
|
|
1595
|
+
export type OrganizationListItemDtoServiceTier = typeof OrganizationListItemDtoServiceTier[keyof typeof OrganizationListItemDtoServiceTier];
|
|
1596
|
+
export declare const OrganizationListItemDtoServiceTier: {
|
|
1597
|
+
readonly PRO: "PRO";
|
|
1598
|
+
readonly CORE: "CORE";
|
|
1599
|
+
readonly LIGHT: "LIGHT";
|
|
1600
|
+
};
|
|
1601
|
+
export interface OrganizationListItemDto {
|
|
1549
1602
|
organizationId: string;
|
|
1550
|
-
type:
|
|
1603
|
+
type: OrganizationListItemDtoType;
|
|
1551
1604
|
name: string;
|
|
1552
1605
|
slug: string;
|
|
1553
1606
|
/** @nullable */
|
|
@@ -1560,13 +1613,37 @@ export interface OrganizationDto {
|
|
|
1560
1613
|
*/
|
|
1561
1614
|
preferredLocale: string | null;
|
|
1562
1615
|
/** @nullable */
|
|
1563
|
-
metadata:
|
|
1616
|
+
metadata: OrganizationListItemDtoMetadata;
|
|
1564
1617
|
createdAt: string;
|
|
1565
1618
|
updatedAt: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* Who the organization belongs to, so an account nobody has named can be told apart without reading its members. null when the organization has no live member, and always null for a caller without `member:read` (the org-user roles org-orders, org-billing, org-viewer and member).
|
|
1621
|
+
* @nullable
|
|
1622
|
+
*/
|
|
1623
|
+
owner: OrganizationOwnerDto | null;
|
|
1624
|
+
/** The account's service tier, as `GET /v1/me` reports it. CORE unless set. */
|
|
1625
|
+
serviceTier: OrganizationListItemDtoServiceTier;
|
|
1626
|
+
/**
|
|
1627
|
+
* Live members of the organization, invited members who have not signed in yet included. A forgotten (erased) person is not counted, as they are never the `owner`. null for a caller without `member:read`, like `owner`.
|
|
1628
|
+
* @nullable
|
|
1629
|
+
*/
|
|
1630
|
+
memberCount: number | null;
|
|
1631
|
+
/** True when the organization is personal and still carries the name onboarding gives an account nobody named ("Account" and eight hex characters). Erasure renames an account back to it, so an erased customer reads true as well. */
|
|
1632
|
+
isPlaceholderName: boolean;
|
|
1633
|
+
/**
|
|
1634
|
+
* The invoice email staff set on the billing account: an override. Trimmed, and null when unset or blank, the rule `invoiceRecipientEmail` applies to it; `invoiceEmail` on `GET /v1/billing/accounts` is the column as stored. null for a caller without `billingaccount:read`.
|
|
1635
|
+
* @nullable
|
|
1636
|
+
*/
|
|
1637
|
+
invoiceEmail: string | null;
|
|
1638
|
+
/**
|
|
1639
|
+
* Where the organization's invoices are sent: `invoiceEmail` when set, else the owner's profile email for a personal organization, else the organization's contact email for a business. Read from the same billing account as `invoiceEmail`. As `invoiceRecipientEmail` on `GET /v1/billing/accounts`, and null for a caller without `billingaccount:read`.
|
|
1640
|
+
* @nullable
|
|
1641
|
+
*/
|
|
1642
|
+
invoiceRecipientEmail: string | null;
|
|
1566
1643
|
}
|
|
1567
1644
|
export interface PaginatedOrganizationsDto {
|
|
1568
1645
|
/** The page of rows. */
|
|
1569
|
-
items:
|
|
1646
|
+
items: OrganizationListItemDto[];
|
|
1570
1647
|
/** Exact count of all rows matching the filter, pre-pagination (RLS-scoped). */
|
|
1571
1648
|
total: number;
|
|
1572
1649
|
/** Effective max rows applied (after defaults/clamp). */
|
|
@@ -1590,6 +1667,36 @@ export interface OrganizationStatsDto {
|
|
|
1590
1667
|
/** Matching organizations grouped by type. A type with no matching organization is absent rather than zero. */
|
|
1591
1668
|
byType: OrganizationTypeCountDto[];
|
|
1592
1669
|
}
|
|
1670
|
+
export type OrganizationDtoType = typeof OrganizationDtoType[keyof typeof OrganizationDtoType];
|
|
1671
|
+
export declare const OrganizationDtoType: {
|
|
1672
|
+
readonly business: "business";
|
|
1673
|
+
readonly personal: "personal";
|
|
1674
|
+
};
|
|
1675
|
+
/**
|
|
1676
|
+
* @nullable
|
|
1677
|
+
*/
|
|
1678
|
+
export type OrganizationDtoMetadata = {
|
|
1679
|
+
[key: string]: unknown;
|
|
1680
|
+
} | null;
|
|
1681
|
+
export interface OrganizationDto {
|
|
1682
|
+
organizationId: string;
|
|
1683
|
+
type: OrganizationDtoType;
|
|
1684
|
+
name: string;
|
|
1685
|
+
slug: string;
|
|
1686
|
+
/** @nullable */
|
|
1687
|
+
corporateIdentityNumber: string | null;
|
|
1688
|
+
/** @nullable */
|
|
1689
|
+
preferredWarehouseId: string | null;
|
|
1690
|
+
/**
|
|
1691
|
+
* The language this customer's messages are written in (order confirmations, storage notices). null = not stated: the language follows the country of the customer's billing account (SE → sv-SE, FI → fi-FI, otherwise en-GB). A language with no authored template falls back to en-GB, then sv-SE.
|
|
1692
|
+
* @nullable
|
|
1693
|
+
*/
|
|
1694
|
+
preferredLocale: string | null;
|
|
1695
|
+
/** @nullable */
|
|
1696
|
+
metadata: OrganizationDtoMetadata;
|
|
1697
|
+
createdAt: string;
|
|
1698
|
+
updatedAt: string;
|
|
1699
|
+
}
|
|
1593
1700
|
export type CreateOrganizationDtoType = typeof CreateOrganizationDtoType[keyof typeof CreateOrganizationDtoType];
|
|
1594
1701
|
export declare const CreateOrganizationDtoType: {
|
|
1595
1702
|
readonly business: "business";
|
|
@@ -2863,6 +2970,22 @@ export interface CartDto {
|
|
|
2863
2970
|
createdAt: string;
|
|
2864
2971
|
updatedAt: string;
|
|
2865
2972
|
}
|
|
2973
|
+
export interface QuoteFloorItemDto {
|
|
2974
|
+
/** The cart goods line: `items[].cartProductId` on the cart. */
|
|
2975
|
+
cartProductId: string;
|
|
2976
|
+
/** Units on the line, each topped up by `topUpCm3`. */
|
|
2977
|
+
quantity: number;
|
|
2978
|
+
/** One unit's volume in cm³, from the line's dimensions. */
|
|
2979
|
+
measuredCm3: number;
|
|
2980
|
+
/** `measuredCm3` rounded the way the rule rounds each item before its minimum (to the nearest 0,01 m³, say). Equal to `measuredCm3` when the rule does not round. */
|
|
2981
|
+
roundedCm3: number;
|
|
2982
|
+
/** The minimum billable volume per unit, in cm³: what each unit is billed as. */
|
|
2983
|
+
minimumCm3: number;
|
|
2984
|
+
/** What the minimum adds to one unit, in cm³: `minimumCm3` − `roundedCm3`. */
|
|
2985
|
+
topUpCm3: number;
|
|
2986
|
+
/** What the minimum adds to the line, in cm³: `topUpCm3` × `quantity`. */
|
|
2987
|
+
totalTopUpCm3: number;
|
|
2988
|
+
}
|
|
2866
2989
|
export type QuoteLineDtoKind = typeof QuoteLineDtoKind[keyof typeof QuoteLineDtoKind];
|
|
2867
2990
|
export declare const QuoteLineDtoKind: {
|
|
2868
2991
|
readonly GOODS: "GOODS";
|
|
@@ -2872,7 +2995,7 @@ export declare const QuoteLineDtoKind: {
|
|
|
2872
2995
|
readonly START_FEE: "START_FEE";
|
|
2873
2996
|
};
|
|
2874
2997
|
/**
|
|
2875
|
-
* Set on a line that exists only because a contracted minimum applied, so it can be shown as such: `quantity` — a minimum billable volume lifted the quantity (the line carries the difference; the line before it carries what the goods account for), `fee` — a minimum charge topped the component up, `minimum_amount` — the charge's own minimum price per order lifted it (the line carries the difference, including any minimum billable volume beneath it; the line before it carries what the goods account for), `minimum_monthly_fee` — the storage came in under its minimum monthly fee after every campaign, binding discount and code, and this line bills the difference (a `GOODS` line against the minimum fee article; no reduction applies to it, and it is the line the invoice bills for the month). The line keeps the kind of the charge it lifts. Absent on every other line.
|
|
2998
|
+
* Set on a line that exists only because a contracted minimum applied, so it can be shown as such: `quantity` — a minimum billable volume lifted the quantity (the line carries the difference; the line before it carries what the goods account for; `floorItems` says which items, when the minimum is per item), `fee` — a minimum charge topped the component up, `minimum_amount` — the charge's own minimum price per order lifted it (the line carries the difference, including any minimum billable volume beneath it; the line before it carries what the goods account for), `minimum_monthly_fee` — the storage came in under its minimum monthly fee after every campaign, binding discount and code, and this line bills the difference (a `GOODS` line against the minimum fee article; no reduction applies to it, and it is the line the invoice bills for the month). The line keeps the kind of the charge it lifts. Absent on every other line.
|
|
2876
2999
|
* @nullable
|
|
2877
3000
|
*/
|
|
2878
3001
|
export type QuoteLineDtoFloorKind = typeof QuoteLineDtoFloorKind[keyof typeof QuoteLineDtoFloorKind] | null;
|
|
@@ -2927,10 +3050,12 @@ export interface QuoteLineDto {
|
|
|
2927
3050
|
*/
|
|
2928
3051
|
componentCode?: string | null;
|
|
2929
3052
|
/**
|
|
2930
|
-
* Set on a line that exists only because a contracted minimum applied, so it can be shown as such: `quantity` — a minimum billable volume lifted the quantity (the line carries the difference; the line before it carries what the goods account for), `fee` — a minimum charge topped the component up, `minimum_amount` — the charge's own minimum price per order lifted it (the line carries the difference, including any minimum billable volume beneath it; the line before it carries what the goods account for), `minimum_monthly_fee` — the storage came in under its minimum monthly fee after every campaign, binding discount and code, and this line bills the difference (a `GOODS` line against the minimum fee article; no reduction applies to it, and it is the line the invoice bills for the month). The line keeps the kind of the charge it lifts. Absent on every other line.
|
|
3053
|
+
* Set on a line that exists only because a contracted minimum applied, so it can be shown as such: `quantity` — a minimum billable volume lifted the quantity (the line carries the difference; the line before it carries what the goods account for; `floorItems` says which items, when the minimum is per item), `fee` — a minimum charge topped the component up, `minimum_amount` — the charge's own minimum price per order lifted it (the line carries the difference, including any minimum billable volume beneath it; the line before it carries what the goods account for), `minimum_monthly_fee` — the storage came in under its minimum monthly fee after every campaign, binding discount and code, and this line bills the difference (a `GOODS` line against the minimum fee article; no reduction applies to it, and it is the line the invoice bills for the month). The line keeps the kind of the charge it lifts. Absent on every other line.
|
|
2931
3054
|
* @nullable
|
|
2932
3055
|
*/
|
|
2933
3056
|
floorKind?: QuoteLineDtoFloorKind;
|
|
3057
|
+
/** On a `floorKind: quantity` line lifted by a minimum billable volume per item: the cart's goods lines that minimum tops up, so the line can say which items it comes from. Each names its cart line and states, per unit, its volume, that volume rounded as the rule rounds each item, the minimum it is billed as, and the difference. Lines whose units bill at least the minimum are not listed. The lines' `totalTopUpCm3` add up to the volume this line bills, which `quantity` states in the rule's unit (m³) rounded to 4 decimals. That sum is exact when the rule rounds each item; when it does not, the line starts from the cart's total volume, rounded once, so the two can differ by up to 1 cm³ a unit. Absent on every other line, including a minimum for the whole storage or order, one per counted item, a transport whose own minimum price applied instead (`floorKind: minimum_amount`), and the price book preview. */
|
|
3058
|
+
floorItems?: QuoteFloorItemDto[];
|
|
2934
3059
|
}
|
|
2935
3060
|
export interface QuoteVolumeDto {
|
|
2936
3061
|
/** Total goods volume in cm³ */
|
|
@@ -8426,7 +8551,7 @@ export interface UpdateBillingAccountDto {
|
|
|
8426
8551
|
/** ISO 4217 currency code. */
|
|
8427
8552
|
currencyCode?: string;
|
|
8428
8553
|
/**
|
|
8429
|
-
* Pin the account to one of the tenant's payment methods. `null` clears it, so the account uses the tenant default. An invoice keeps the method it was sent with; a Stripe-collected invoice's saved card is charged on its due date when that method is auto-chargeable.
|
|
8554
|
+
* Pin the account to one of the tenant's payment methods. `null` clears it, so the account uses the tenant default. A new pin must be an active, undeleted method of the account's own payment provider, or the request is a 400 naming why; sending the method already pinned is not re-checked. An invoice keeps the method it was sent with; a Stripe-collected invoice's saved card is charged on its due date when that method is auto-chargeable.
|
|
8430
8555
|
* @nullable
|
|
8431
8556
|
*/
|
|
8432
8557
|
paymentMethodId?: string | null;
|
|
@@ -8548,11 +8673,23 @@ export interface InvoiceRowDto {
|
|
|
8548
8673
|
vatRate: string;
|
|
8549
8674
|
/** ISO 4217 currency code. */
|
|
8550
8675
|
currencyCode: string;
|
|
8676
|
+
/** Whether the row was priced including VAT (BE-2298): its amount is then `amountExVatMinor + vatAmountMinor`, and a credit note's `refundAmountMinor` for it is stated the same way. A row priced ex VAT is credited ex VAT. Rows of one article in the two bases are separate rows. */
|
|
8677
|
+
pricesIncludeVat: boolean;
|
|
8551
8678
|
/**
|
|
8552
8679
|
* Explanation printed on the invoice line: why a floor or minimum period applied, and the title of a campaign or discount code that reduced the row, in the customer's language.
|
|
8553
8680
|
* @nullable
|
|
8554
8681
|
*/
|
|
8555
8682
|
freeText: string | null;
|
|
8683
|
+
/**
|
|
8684
|
+
* Staff's replacement for this row's whole line (article name and explanation), set on a draft with PUT /v1/billing/invoices/{id}/rows/{rowId}/description. Null when the line is built from the article name and freeText.
|
|
8685
|
+
* @maxLength 200
|
|
8686
|
+
* @nullable
|
|
8687
|
+
*/
|
|
8688
|
+
descriptionOverride: string | null;
|
|
8689
|
+
/** The line the customer sees for this row on the invoice: descriptionOverride when set, otherwise the article name followed by freeText, in the invoice's language. Show this rather than rebuilding it. */
|
|
8690
|
+
description: string;
|
|
8691
|
+
/** Whether the copy of the invoice the customer receives (the Stripe or the Fortnox invoice) carries this row. False only for a row priced at nothing on an article with hideOnInvoiceWhenZero on, and never for every row of an invoice. Read from the article now, so it says what a push now would send: an invoice already pushed keeps the lines it was sent with. Every row stays on the invoice and counts towards its totals; a client showing the customer's invoice leaves out rows where this is false. */
|
|
8692
|
+
shownToCustomer: boolean;
|
|
8556
8693
|
/** Coupon benefits that reduced this row. Empty when none did. */
|
|
8557
8694
|
appliedCoupons: AppliedCouponSummaryDto[];
|
|
8558
8695
|
/** What kind of row this is: charge = an ordinary charge; carried = a correction of an earlier month; clawback = a campaign benefit charged back; manual = a row staff added by hand, billed as entered. A credit note row has the kind of the row it credits. */
|
|
@@ -8687,9 +8824,24 @@ export interface RemoveInvoiceRowDto {
|
|
|
8687
8824
|
*/
|
|
8688
8825
|
reason: string;
|
|
8689
8826
|
}
|
|
8827
|
+
export interface SetInvoiceRowDescriptionDto {
|
|
8828
|
+
/**
|
|
8829
|
+
* The row's whole line as the customer will read it, in place of the article name and its explanation, as entered (surrounding whitespace is trimmed). null restores the line built from the article name and the row's text.
|
|
8830
|
+
* @minLength 1
|
|
8831
|
+
* @maxLength 200
|
|
8832
|
+
* @nullable
|
|
8833
|
+
*/
|
|
8834
|
+
description: string | null;
|
|
8835
|
+
/**
|
|
8836
|
+
* Why the row is reworded (recorded in the audit log; never shown to the customer).
|
|
8837
|
+
* @minLength 1
|
|
8838
|
+
* @maxLength 500
|
|
8839
|
+
*/
|
|
8840
|
+
reason: string;
|
|
8841
|
+
}
|
|
8690
8842
|
export interface CreditNoteRowDto {
|
|
8691
8843
|
invoiceRowId: string;
|
|
8692
|
-
/** Amount (
|
|
8844
|
+
/** Amount (minor units, POSITIVE magnitude) to refund off this row, in the row's price basis: excl. VAT, unless the row was priced including VAT, when it includes VAT. The service writes it as a negative credit-note row. */
|
|
8693
8845
|
refundAmountMinor: number;
|
|
8694
8846
|
}
|
|
8695
8847
|
export interface IssueCreditNoteDto {
|
|
@@ -8757,12 +8909,65 @@ export interface SendInvoiceResponseDto {
|
|
|
8757
8909
|
/** The routing token enqueued for the Worker's InvoiceSendProcessor — derived from paymentProvider (manual → fortnox-email, stripe → stripe-payment). */
|
|
8758
8910
|
rail: SendInvoiceResponseDtoRail;
|
|
8759
8911
|
}
|
|
8912
|
+
export interface CollectionHoldCreditNoteDto {
|
|
8913
|
+
/** The credit note's own id; read it with GET /v1/billing/invoices/{id}. */
|
|
8914
|
+
invoiceId: string;
|
|
8915
|
+
/** Invoice status enum: CREATED or READY while a draft, SENT or later once sent. */
|
|
8916
|
+
invoiceStatus: string;
|
|
8917
|
+
/** The credit note's total in minor currency units, negative as the credit note stores it. */
|
|
8918
|
+
totalMinor: number;
|
|
8919
|
+
/** When the credit note was created. */
|
|
8920
|
+
createdAt: string;
|
|
8921
|
+
}
|
|
8922
|
+
/**
|
|
8923
|
+
* DRAFT_CREDIT_NOTE: every credit note against the invoice is a draft (CREATED or READY). While one is, the due-date charge neither charges the card nor moves the invoice to OVERDUE; one already OVERDUE stays so. Send the draft or void it: once it is voided, the charge treats the invoice as if the credit note had never existed. CREDITED: a credit note against the invoice has been sent. The due-date charge has stopped for good: it never charges the card or moves the invoice to OVERDUE, and one already OVERDUE stays so. With remainingMinor > 0 the rest is collected by hand; with remainingMinor <= 0 nothing is owed, but the Stripe invoice still asks for its full amount until it is voided in Stripe. Either way the invoice stays listed while its status is SENT, PARTIALLY_PAID or OVERDUE.
|
|
8924
|
+
*/
|
|
8925
|
+
export type CollectionHoldDtoReason = typeof CollectionHoldDtoReason[keyof typeof CollectionHoldDtoReason];
|
|
8926
|
+
export declare const CollectionHoldDtoReason: {
|
|
8927
|
+
readonly DRAFT_CREDIT_NOTE: "DRAFT_CREDIT_NOTE";
|
|
8928
|
+
readonly CREDITED: "CREDITED";
|
|
8929
|
+
};
|
|
8930
|
+
export interface CollectionHoldDto {
|
|
8931
|
+
invoice: InvoiceDto;
|
|
8932
|
+
/** DRAFT_CREDIT_NOTE: every credit note against the invoice is a draft (CREATED or READY). While one is, the due-date charge neither charges the card nor moves the invoice to OVERDUE; one already OVERDUE stays so. Send the draft or void it: once it is voided, the charge treats the invoice as if the credit note had never existed. CREDITED: a credit note against the invoice has been sent. The due-date charge has stopped for good: it never charges the card or moves the invoice to OVERDUE, and one already OVERDUE stays so. With remainingMinor > 0 the rest is collected by hand; with remainingMinor <= 0 nothing is owed, but the Stripe invoice still asks for its full amount until it is voided in Stripe. Either way the invoice stays listed while its status is SENT, PARTIALLY_PAID or OVERDUE. */
|
|
8933
|
+
reason: CollectionHoldDtoReason;
|
|
8934
|
+
/** Every credit note against the invoice that is not voided, oldest first. */
|
|
8935
|
+
creditNotes: CollectionHoldCreditNoteDto[];
|
|
8936
|
+
/** What the sent credit notes credit, in minor currency units, as a positive amount. Drafts are not counted. */
|
|
8937
|
+
creditedMinor: number;
|
|
8938
|
+
/** The payments recorded against the invoice, in minor currency units. */
|
|
8939
|
+
paidMinor: number;
|
|
8940
|
+
/** invoice.totalMinor − creditedMinor − paidMinor, in minor currency units. Zero or negative when nothing is owed. */
|
|
8941
|
+
remainingMinor: number;
|
|
8942
|
+
}
|
|
8943
|
+
export interface PaginatedCollectionHoldsDto {
|
|
8944
|
+
/** The page of rows. */
|
|
8945
|
+
items: CollectionHoldDto[];
|
|
8946
|
+
/** Exact count of all rows matching the filter, pre-pagination (RLS-scoped). */
|
|
8947
|
+
total: number;
|
|
8948
|
+
/** Effective max rows applied (after defaults/clamp). */
|
|
8949
|
+
limit: number;
|
|
8950
|
+
/** Effective rows skipped applied. */
|
|
8951
|
+
offset: number;
|
|
8952
|
+
}
|
|
8953
|
+
export interface ArticleTranslationDto {
|
|
8954
|
+
/** @maxLength 80 */
|
|
8955
|
+
name: string;
|
|
8956
|
+
}
|
|
8957
|
+
export interface ArticleTranslationsDto {
|
|
8958
|
+
'sv-SE'?: ArticleTranslationDto;
|
|
8959
|
+
'en-GB'?: ArticleTranslationDto;
|
|
8960
|
+
'fi-FI'?: ArticleTranslationDto;
|
|
8961
|
+
}
|
|
8760
8962
|
export interface ArticleDto {
|
|
8761
8963
|
articleId: string;
|
|
8762
8964
|
/** @nullable */
|
|
8763
8965
|
tenantId: string | null;
|
|
8764
8966
|
code: string;
|
|
8967
|
+
/** The article's default name, and the text an invoice row starts with for a locale with no entry in `translations`. */
|
|
8765
8968
|
name: string;
|
|
8969
|
+
/** The article's name per locale, keyed by BCP-47 tag (sv-SE, en-GB, fi-FI). `name` is the default: show `translations[locale]?.name ?? name`. The invoice pushes write the name in the invoice's language when the invoice is sent to Stripe or Fortnox, so a change reaches every invoice not yet sent and does not rewrite one already sent. `{}` when the article has no translations. */
|
|
8970
|
+
translations: ArticleTranslationsDto;
|
|
8766
8971
|
/** @nullable */
|
|
8767
8972
|
description: string | null;
|
|
8768
8973
|
/** @nullable */
|
|
@@ -8775,12 +8980,35 @@ export interface ArticleDto {
|
|
|
8775
8980
|
vatInclusiveDefault: boolean;
|
|
8776
8981
|
rutEligible: boolean;
|
|
8777
8982
|
isActive: boolean;
|
|
8983
|
+
/** Leave this article's rows off the customer's copy of an invoice (the Stripe or the Fortnox invoice) when they were priced at nothing: zero in both amounts, not reduced by a campaign, a code or a discount rule, not added or reworded by staff, carrying no labour hours, and with another line of the invoice still printed. The invoice itself keeps every row, so totals do not change, and its rows say which ones the customer gets (`shownToCustomer`). Read when an invoice is pushed: a change reaches every invoice not yet pushed, and one already pushed keeps its lines. */
|
|
8984
|
+
hideOnInvoiceWhenZero: boolean;
|
|
8778
8985
|
createdAt: string;
|
|
8779
8986
|
updatedAt: string;
|
|
8780
8987
|
}
|
|
8988
|
+
export interface ArticleTranslationInputDto {
|
|
8989
|
+
/**
|
|
8990
|
+
* The article's name in this locale.
|
|
8991
|
+
* @maxLength 80
|
|
8992
|
+
*/
|
|
8993
|
+
name: string;
|
|
8994
|
+
}
|
|
8995
|
+
export interface ArticleTranslationsInputDto {
|
|
8996
|
+
/** @nullable */
|
|
8997
|
+
'sv-SE'?: ArticleTranslationInputDto | null;
|
|
8998
|
+
/** @nullable */
|
|
8999
|
+
'en-GB'?: ArticleTranslationInputDto | null;
|
|
9000
|
+
/** @nullable */
|
|
9001
|
+
'fi-FI'?: ArticleTranslationInputDto | null;
|
|
9002
|
+
}
|
|
8781
9003
|
export interface CreateArticleDto {
|
|
8782
9004
|
code: string;
|
|
9005
|
+
/**
|
|
9006
|
+
* The default name, shown on an invoice row for a locale with no entry in `translations`.
|
|
9007
|
+
* @maxLength 80
|
|
9008
|
+
*/
|
|
8783
9009
|
name: string;
|
|
9010
|
+
/** The name per locale. A locale left out shows `name`. Omitted stores none. */
|
|
9011
|
+
translations?: ArticleTranslationsInputDto;
|
|
8784
9012
|
description?: string;
|
|
8785
9013
|
unit?: string;
|
|
8786
9014
|
articleCategory?: string;
|
|
@@ -8788,12 +9016,20 @@ export interface CreateArticleDto {
|
|
|
8788
9016
|
vatInclusiveDefault?: boolean;
|
|
8789
9017
|
rutEligible?: boolean;
|
|
8790
9018
|
isActive?: boolean;
|
|
9019
|
+
/** Leave this article's rows off the customer's copy of an invoice (the Stripe or the Fortnox invoice) when they were priced at nothing: zero in both amounts, not reduced by a campaign, a code or a discount rule, not added or reworded by staff, carrying no labour hours, and with another line of the invoice still printed. The invoice itself keeps every row, so totals do not change, and its rows say which ones the customer gets (`shownToCustomer`). Read when an invoice is pushed: a change reaches every invoice not yet pushed, and one already pushed keeps its lines. Omitted stores false. */
|
|
9020
|
+
hideOnInvoiceWhenZero?: boolean;
|
|
8791
9021
|
/** Default VAT rate, a percentage (numeric column → string): 25.0000 for 25 %, 25.5000 for 25.5 %. Invoice rows priced on this article take their VAT from it. */
|
|
8792
9022
|
vatRateDefault: string;
|
|
8793
9023
|
}
|
|
8794
9024
|
export interface UpdateArticleDto {
|
|
8795
9025
|
code?: string;
|
|
9026
|
+
/**
|
|
9027
|
+
* The default name, shown on an invoice row for a locale with no entry in `translations`.
|
|
9028
|
+
* @maxLength 80
|
|
9029
|
+
*/
|
|
8796
9030
|
name?: string;
|
|
9031
|
+
/** Replaces the article's per-locale names WHOLE: a locale left out loses its entry, and `{}` removes them all. Omitted leaves them alone. */
|
|
9032
|
+
translations?: ArticleTranslationsInputDto;
|
|
8797
9033
|
description?: string;
|
|
8798
9034
|
unit?: string;
|
|
8799
9035
|
articleCategory?: string;
|
|
@@ -8801,6 +9037,8 @@ export interface UpdateArticleDto {
|
|
|
8801
9037
|
vatInclusiveDefault?: boolean;
|
|
8802
9038
|
rutEligible?: boolean;
|
|
8803
9039
|
isActive?: boolean;
|
|
9040
|
+
/** Leave this article's rows off the customer's copy of an invoice (the Stripe or the Fortnox invoice) when they were priced at nothing: zero in both amounts, not reduced by a campaign, a code or a discount rule, not added or reworded by staff, carrying no labour hours, and with another line of the invoice still printed. The invoice itself keeps every row, so totals do not change, and its rows say which ones the customer gets (`shownToCustomer`). Read when an invoice is pushed: a change reaches every invoice not yet pushed, and one already pushed keeps its lines. Omitted leaves it as it is. */
|
|
9041
|
+
hideOnInvoiceWhenZero?: boolean;
|
|
8804
9042
|
/** Default VAT rate (numeric column → string, e.g. 25.0000). */
|
|
8805
9043
|
vatRateDefault?: string;
|
|
8806
9044
|
}
|
|
@@ -8844,6 +9082,8 @@ export interface TenantBillingConfigDto {
|
|
|
8844
9082
|
timezone: string;
|
|
8845
9083
|
/** When one-off charges (a transport, its start fee, a failed-transport or packaging fee) are invoiced: `per_charge` (on an invoice of their own, the day after they are incurred) or `monthly` (on the calendar month's invoice beside storage, once the month has closed). Storage, subscription and recurring charges are invoiced monthly either way. Defaults to `per_charge`. Written by platform admins only. */
|
|
8846
9084
|
oneOffInvoicing: TenantBillingConfigDtoOneOffInvoicing;
|
|
9085
|
+
/** Whether the tenant's prices are written including VAT: the basis every price book price, per-customer price and merchandise price written from now on is stated in. A price of 29,90 € including VAT at 25,5 % bills 23,82 € and 6,08 € VAT. Each price keeps the basis it was written in (`pricesIncludeVat` on each rule), so changing this re-prices nothing. Defaults to false. Changed by a tenant admin. */
|
|
9086
|
+
pricesIncludeVat: boolean;
|
|
8847
9087
|
createdAt: string;
|
|
8848
9088
|
updatedAt: string;
|
|
8849
9089
|
enabledCurrencies: EnabledCurrencyDto[];
|
|
@@ -8867,6 +9107,8 @@ export interface UpdateTenantBillingConfigDto {
|
|
|
8867
9107
|
timezone?: string;
|
|
8868
9108
|
/** When one-off charges are invoiced (see the read model). **Changed by platform admins only**: anyone else sending a value that differs from the current one gets 403 and nothing is written. Sending the current value back — a form that round-trips the object — is accepted. A change applies to the charges not yet invoiced; nothing already invoiced moves. */
|
|
8869
9109
|
oneOffInvoicing?: UpdateTenantBillingConfigDtoOneOffInvoicing;
|
|
9110
|
+
/** Whether prices are written including VAT from now on (see the read model). Nothing already written is re-priced: switch the price book with a change set effective on the 1st of a month after setting this. **Changed by tenant admins only**: anyone else sending a value that differs from the current one gets 403. A change is refused with 409 while a price book draft is open (`prices_include_vat_price_book_draft_open`: publish or discard it first, since its prices were written in the old basis), and turning it on is refused while the tenant's default accounting provider or any billing account's is Fortnox (`prices_include_vat_fortnox_in_use`: the Fortnox push sends prices ex VAT). Sending the current value back is accepted. */
|
|
9111
|
+
pricesIncludeVat?: boolean;
|
|
8870
9112
|
changeReason?: string;
|
|
8871
9113
|
}
|
|
8872
9114
|
export interface EnabledCurrencyInputDto {
|
|
@@ -8879,6 +9121,208 @@ export interface EnabledCurrencyInputDto {
|
|
|
8879
9121
|
export interface ReplaceEnabledCurrenciesDto {
|
|
8880
9122
|
currencies: EnabledCurrencyInputDto[];
|
|
8881
9123
|
}
|
|
9124
|
+
export type InvoiceTextLocaleDtoLocale = typeof InvoiceTextLocaleDtoLocale[keyof typeof InvoiceTextLocaleDtoLocale];
|
|
9125
|
+
export declare const InvoiceTextLocaleDtoLocale: {
|
|
9126
|
+
readonly 'sv-SE': "sv-SE";
|
|
9127
|
+
readonly 'en-GB': "en-GB";
|
|
9128
|
+
readonly 'fi-FI': "fi-FI";
|
|
9129
|
+
};
|
|
9130
|
+
export interface InvoiceTextLocaleDto {
|
|
9131
|
+
locale: InvoiceTextLocaleDtoLocale;
|
|
9132
|
+
/** What an invoice built now is labelled with in this locale: the tenant's text, else the platform's. */
|
|
9133
|
+
text: string;
|
|
9134
|
+
/** The platform's text in this locale, which a cleared text goes back to. */
|
|
9135
|
+
platformDefault: string;
|
|
9136
|
+
/** Whether the tenant has its own text in this locale. */
|
|
9137
|
+
overridden: boolean;
|
|
9138
|
+
}
|
|
9139
|
+
/**
|
|
9140
|
+
* floor_quantity / floor_fee: a contracted minimum quantity or charge applied; minimum_period: days billed for the minimum storage period; carried: a correction for an earlier month; clawback: a campaign benefit charged back, followed by the campaign's title; minimum_monthly_fee: the lift to the minimum monthly storage fee.
|
|
9141
|
+
*/
|
|
9142
|
+
export type InvoiceTextDtoKey = typeof InvoiceTextDtoKey[keyof typeof InvoiceTextDtoKey];
|
|
9143
|
+
export declare const InvoiceTextDtoKey: {
|
|
9144
|
+
readonly floor_quantity: "floor_quantity";
|
|
9145
|
+
readonly floor_fee: "floor_fee";
|
|
9146
|
+
readonly minimum_period: "minimum_period";
|
|
9147
|
+
readonly carried: "carried";
|
|
9148
|
+
readonly clawback: "clawback";
|
|
9149
|
+
readonly minimum_monthly_fee: "minimum_monthly_fee";
|
|
9150
|
+
};
|
|
9151
|
+
export interface InvoiceTextDto {
|
|
9152
|
+
/** floor_quantity / floor_fee: a contracted minimum quantity or charge applied; minimum_period: days billed for the minimum storage period; carried: a correction for an earlier month; clawback: a campaign benefit charged back, followed by the campaign's title; minimum_monthly_fee: the lift to the minimum monthly storage fee. */
|
|
9153
|
+
key: InvoiceTextDtoKey;
|
|
9154
|
+
/** The longest text accepted for this label. It leaves room on the 200-character invoice line for an article name of up to 80 characters, and for clawback also a campaign title. A campaign or code title after another label is cut when a long label leaves it no room. */
|
|
9155
|
+
maxLength: number;
|
|
9156
|
+
locales: InvoiceTextLocaleDto[];
|
|
9157
|
+
}
|
|
9158
|
+
export interface InvoiceTextLocalesInputDto {
|
|
9159
|
+
/**
|
|
9160
|
+
* Omitted or null: the platform's text in this locale.
|
|
9161
|
+
* @maxLength 119
|
|
9162
|
+
* @nullable
|
|
9163
|
+
*/
|
|
9164
|
+
'sv-SE'?: string | null;
|
|
9165
|
+
/**
|
|
9166
|
+
* Omitted or null: the platform's text in this locale.
|
|
9167
|
+
* @maxLength 119
|
|
9168
|
+
* @nullable
|
|
9169
|
+
*/
|
|
9170
|
+
'en-GB'?: string | null;
|
|
9171
|
+
/**
|
|
9172
|
+
* Omitted or null: the platform's text in this locale.
|
|
9173
|
+
* @maxLength 119
|
|
9174
|
+
* @nullable
|
|
9175
|
+
*/
|
|
9176
|
+
'fi-FI'?: string | null;
|
|
9177
|
+
}
|
|
9178
|
+
export interface ClawbackInvoiceTextLocalesInputDto {
|
|
9179
|
+
/**
|
|
9180
|
+
* Omitted or null: the platform's text in this locale.
|
|
9181
|
+
* @maxLength 38
|
|
9182
|
+
* @nullable
|
|
9183
|
+
*/
|
|
9184
|
+
'sv-SE'?: string | null;
|
|
9185
|
+
/**
|
|
9186
|
+
* Omitted or null: the platform's text in this locale.
|
|
9187
|
+
* @maxLength 38
|
|
9188
|
+
* @nullable
|
|
9189
|
+
*/
|
|
9190
|
+
'en-GB'?: string | null;
|
|
9191
|
+
/**
|
|
9192
|
+
* Omitted or null: the platform's text in this locale.
|
|
9193
|
+
* @maxLength 38
|
|
9194
|
+
* @nullable
|
|
9195
|
+
*/
|
|
9196
|
+
'fi-FI'?: string | null;
|
|
9197
|
+
}
|
|
9198
|
+
export interface InvoiceTextsInputDto {
|
|
9199
|
+
/**
|
|
9200
|
+
* Omitted or null: the platform's text in every locale.
|
|
9201
|
+
* @nullable
|
|
9202
|
+
*/
|
|
9203
|
+
floor_quantity?: InvoiceTextLocalesInputDto | null;
|
|
9204
|
+
/**
|
|
9205
|
+
* Omitted or null: the platform's text in every locale.
|
|
9206
|
+
* @nullable
|
|
9207
|
+
*/
|
|
9208
|
+
floor_fee?: InvoiceTextLocalesInputDto | null;
|
|
9209
|
+
/**
|
|
9210
|
+
* Omitted or null: the platform's text in every locale.
|
|
9211
|
+
* @nullable
|
|
9212
|
+
*/
|
|
9213
|
+
minimum_period?: InvoiceTextLocalesInputDto | null;
|
|
9214
|
+
/**
|
|
9215
|
+
* Omitted or null: the platform's text in every locale.
|
|
9216
|
+
* @nullable
|
|
9217
|
+
*/
|
|
9218
|
+
carried?: InvoiceTextLocalesInputDto | null;
|
|
9219
|
+
/**
|
|
9220
|
+
* Omitted or null: the platform's text in every locale.
|
|
9221
|
+
* @nullable
|
|
9222
|
+
*/
|
|
9223
|
+
clawback?: ClawbackInvoiceTextLocalesInputDto | null;
|
|
9224
|
+
/**
|
|
9225
|
+
* Omitted or null: the platform's text in every locale.
|
|
9226
|
+
* @nullable
|
|
9227
|
+
*/
|
|
9228
|
+
minimum_monthly_fee?: InvoiceTextLocalesInputDto | null;
|
|
9229
|
+
}
|
|
9230
|
+
export interface ReplaceInvoiceTextsDto {
|
|
9231
|
+
/** The tenant's text for each label and locale, replacing every text it had. A label or locale left out, or null, reads the platform's text in that locale; `{}` resets every label. */
|
|
9232
|
+
texts: InvoiceTextsInputDto;
|
|
9233
|
+
}
|
|
9234
|
+
/**
|
|
9235
|
+
* The mode in force. `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE.
|
|
9236
|
+
*/
|
|
9237
|
+
export type InvoiceAutoChargeModeDtoMode = typeof InvoiceAutoChargeModeDtoMode[keyof typeof InvoiceAutoChargeModeDtoMode];
|
|
9238
|
+
export declare const InvoiceAutoChargeModeDtoMode: {
|
|
9239
|
+
readonly off: "off";
|
|
9240
|
+
readonly shadow: "shadow";
|
|
9241
|
+
readonly live: "live";
|
|
9242
|
+
};
|
|
9243
|
+
export interface InvoiceAutoChargeModeDto {
|
|
9244
|
+
/** The mode in force. `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE. */
|
|
9245
|
+
mode: InvoiceAutoChargeModeDtoMode;
|
|
9246
|
+
/** Whether the tenant has a stored mode. False means `mode` is the `shadow` default, which nobody has chosen. */
|
|
9247
|
+
configured: boolean;
|
|
9248
|
+
/**
|
|
9249
|
+
* Keycloak `sub` of whoever set the stored mode through this API. Null when nothing is stored, and when the stored mode is not the one the newest change through this API set: it was then set directly in the database, which records no actor.
|
|
9250
|
+
* @nullable
|
|
9251
|
+
*/
|
|
9252
|
+
changedByUserSub: string | null;
|
|
9253
|
+
/**
|
|
9254
|
+
* When that change was made. Null whenever `changedByUserSub` is.
|
|
9255
|
+
* @nullable
|
|
9256
|
+
*/
|
|
9257
|
+
changedAt: string | null;
|
|
9258
|
+
/**
|
|
9259
|
+
* The reason recorded with that change. Null whenever `changedByUserSub` is.
|
|
9260
|
+
* @nullable
|
|
9261
|
+
*/
|
|
9262
|
+
changeReason: string | null;
|
|
9263
|
+
}
|
|
9264
|
+
/**
|
|
9265
|
+
* `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE.
|
|
9266
|
+
*/
|
|
9267
|
+
export type SetInvoiceAutoChargeModeDtoMode = typeof SetInvoiceAutoChargeModeDtoMode[keyof typeof SetInvoiceAutoChargeModeDtoMode];
|
|
9268
|
+
export declare const SetInvoiceAutoChargeModeDtoMode: {
|
|
9269
|
+
readonly off: "off";
|
|
9270
|
+
readonly shadow: "shadow";
|
|
9271
|
+
readonly live: "live";
|
|
9272
|
+
};
|
|
9273
|
+
export interface SetInvoiceAutoChargeModeDto {
|
|
9274
|
+
/** `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE. */
|
|
9275
|
+
mode: SetInvoiceAutoChargeModeDtoMode;
|
|
9276
|
+
/** Why the mode is changing. Recorded in the admin action. */
|
|
9277
|
+
reason: string;
|
|
9278
|
+
}
|
|
9279
|
+
/**
|
|
9280
|
+
* The mode in force. `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE.
|
|
9281
|
+
*/
|
|
9282
|
+
export type SetInvoiceAutoChargeModeResultDtoMode = typeof SetInvoiceAutoChargeModeResultDtoMode[keyof typeof SetInvoiceAutoChargeModeResultDtoMode];
|
|
9283
|
+
export declare const SetInvoiceAutoChargeModeResultDtoMode: {
|
|
9284
|
+
readonly off: "off";
|
|
9285
|
+
readonly shadow: "shadow";
|
|
9286
|
+
readonly live: "live";
|
|
9287
|
+
};
|
|
9288
|
+
/**
|
|
9289
|
+
* The mode this call replaced. Null when the tenant had no stored mode, i.e. it was on the `shadow` default.
|
|
9290
|
+
* @nullable
|
|
9291
|
+
*/
|
|
9292
|
+
export type SetInvoiceAutoChargeModeResultDtoPreviousMode = typeof SetInvoiceAutoChargeModeResultDtoPreviousMode[keyof typeof SetInvoiceAutoChargeModeResultDtoPreviousMode] | null;
|
|
9293
|
+
export declare const SetInvoiceAutoChargeModeResultDtoPreviousMode: {
|
|
9294
|
+
readonly off: "off";
|
|
9295
|
+
readonly shadow: "shadow";
|
|
9296
|
+
readonly live: "live";
|
|
9297
|
+
};
|
|
9298
|
+
export interface SetInvoiceAutoChargeModeResultDto {
|
|
9299
|
+
/** The mode in force. `off` — the job does nothing for the tenant: no charge, no move to OVERDUE. Invoices keep their schedule and are acted on, late, once the mode is `live` again. `shadow` (the default) — it logs what it would do and calls nothing in Stripe and writes nothing. `live` — it charges the saved card on the due date and moves an invoice still unpaid afterwards to OVERDUE. */
|
|
9300
|
+
mode: SetInvoiceAutoChargeModeResultDtoMode;
|
|
9301
|
+
/** Whether the tenant has a stored mode. False means `mode` is the `shadow` default, which nobody has chosen. */
|
|
9302
|
+
configured: boolean;
|
|
9303
|
+
/**
|
|
9304
|
+
* Keycloak `sub` of whoever set the stored mode through this API. Null when nothing is stored, and when the stored mode is not the one the newest change through this API set: it was then set directly in the database, which records no actor.
|
|
9305
|
+
* @nullable
|
|
9306
|
+
*/
|
|
9307
|
+
changedByUserSub: string | null;
|
|
9308
|
+
/**
|
|
9309
|
+
* When that change was made. Null whenever `changedByUserSub` is.
|
|
9310
|
+
* @nullable
|
|
9311
|
+
*/
|
|
9312
|
+
changedAt: string | null;
|
|
9313
|
+
/**
|
|
9314
|
+
* The reason recorded with that change. Null whenever `changedByUserSub` is.
|
|
9315
|
+
* @nullable
|
|
9316
|
+
*/
|
|
9317
|
+
changeReason: string | null;
|
|
9318
|
+
/**
|
|
9319
|
+
* The mode this call replaced. Null when the tenant had no stored mode, i.e. it was on the `shadow` default.
|
|
9320
|
+
* @nullable
|
|
9321
|
+
*/
|
|
9322
|
+
previousMode: SetInvoiceAutoChargeModeResultDtoPreviousMode;
|
|
9323
|
+
/** True when this call replayed a prior result for the same Idempotency-Key and wrote nothing. */
|
|
9324
|
+
idempotent: boolean;
|
|
9325
|
+
}
|
|
8882
9326
|
export interface CustomerSubscriptionConfigDto {
|
|
8883
9327
|
customerSubscriptionConfigId: string;
|
|
8884
9328
|
tenantId: string;
|
|
@@ -9833,6 +10277,8 @@ export interface PricingRuleDto {
|
|
|
9833
10277
|
calculationMethod: string;
|
|
9834
10278
|
/** Method-specific parameters (JSON). */
|
|
9835
10279
|
parameters: PricingRuleDtoParameters;
|
|
10280
|
+
/** Whether the amounts in `parameters` include VAT (BE-2298): stamped from the tenant's `pricesIncludeVat` whenever the parameters are written, and kept when the tenant's changes. A price that includes VAT bills its amount with the VAT taken out of it (29,90 € at 25,5 % is 23,82 € and 6,08 € VAT); one that excludes it is taxed on top. */
|
|
10281
|
+
pricesIncludeVat: boolean;
|
|
9836
10282
|
/** Rule scope: order / product / shipment / storage / time / material. */
|
|
9837
10283
|
ruleScope: string;
|
|
9838
10284
|
/** Engine stage (lower runs first; layered rules differ). */
|
|
@@ -9954,7 +10400,10 @@ export interface SimulatedBasisRowDto {
|
|
|
9954
10400
|
quantity: number;
|
|
9955
10401
|
unitOfMeasureId: string;
|
|
9956
10402
|
unitCode: string;
|
|
9957
|
-
/**
|
|
10403
|
+
/**
|
|
10404
|
+
* The rule's unit price, in the row's basis (`pricesIncludeVat`).
|
|
10405
|
+
* @nullable
|
|
10406
|
+
*/
|
|
9958
10407
|
unitPriceMinor: number | null;
|
|
9959
10408
|
/** Amount excl. VAT in minor currency units. */
|
|
9960
10409
|
amountExVatMinor: number;
|
|
@@ -9962,6 +10411,8 @@ export interface SimulatedBasisRowDto {
|
|
|
9962
10411
|
vatRate: number;
|
|
9963
10412
|
/** Pre-discount VAT in minor currency units. */
|
|
9964
10413
|
vatAmountMinor: number;
|
|
10414
|
+
/** Whether the row's price includes VAT (BE-2298): its amount is then `amountExVatMinor + vatAmountMinor`, split out of the price, and a reduction applies to the two together. A template is simulated in the tenant's basis, which is what applying it would stamp; a self-cost-plus-markup row is ex VAT whatever the basis. */
|
|
10415
|
+
pricesIncludeVat: boolean;
|
|
9965
10416
|
currencyCode: string;
|
|
9966
10417
|
ruleScope: string;
|
|
9967
10418
|
componentCode: string;
|
|
@@ -9979,6 +10430,8 @@ export interface ProjectedInvoiceRowDto {
|
|
|
9979
10430
|
amountExVatMinor: number;
|
|
9980
10431
|
/** VAT amount in minor currency units, BEFORE discounts. */
|
|
9981
10432
|
vatAmountMinor: number;
|
|
10433
|
+
/** Whether the row's price includes VAT (BE-2298). Rows of one article in the two bases are projected onto separate invoice rows, as the invoice bills them. */
|
|
10434
|
+
pricesIncludeVat: boolean;
|
|
9982
10435
|
rutEligible: boolean;
|
|
9983
10436
|
/** @nullable */
|
|
9984
10437
|
periodStart: string | null;
|
|
@@ -10079,7 +10532,7 @@ export interface SimulatedQuoteDeferralDto {
|
|
|
10079
10532
|
export interface SimulatedQuoteDto {
|
|
10080
10533
|
/** ISO 4217 — the currency all amounts are expressed in */
|
|
10081
10534
|
currencyCode: string;
|
|
10082
|
-
/** One line per priced component, as the cart lists them: the transport base, a zone surcharge, a window surcharge, the start fee, storage, and each floor (`floorKind` quantity or fee) on a line of its own. Each campaign's reduction is on the line it reduces (`campaignDiscountExVatMinor`). */
|
|
10535
|
+
/** One line per priced component, as the cart lists them: the transport base, a zone surcharge, a window surcharge, the start fee, storage, and each floor (`floorKind` quantity or fee) on a line of its own. Each campaign's reduction is on the line it reduces (`campaignDiscountExVatMinor`). A preview has no cart lines, so no line carries `floorItems`. */
|
|
10083
10536
|
lines: QuoteLineDto[];
|
|
10084
10537
|
volume: QuoteVolumeDto;
|
|
10085
10538
|
/** The automatic campaigns applied (newCustomerInCampaignWindow); status is qualifies. */
|
|
@@ -10541,6 +10994,8 @@ export interface PriceBookDto {
|
|
|
10541
10994
|
* @nullable
|
|
10542
10995
|
*/
|
|
10543
10996
|
currencyCode: string | null;
|
|
10997
|
+
/** Whether the tenant's prices are written including VAT (the tenant billing config's `pricesIncludeVat`, BE-2298): the basis a section written now is stated in. Each rule carries its own basis (`pricesIncludeVat`), which differs from this one for a rule written before the tenant's changed. */
|
|
10998
|
+
pricesIncludeVat: boolean;
|
|
10544
10999
|
sections: PriceBookSectionDto[];
|
|
10545
11000
|
/**
|
|
10546
11001
|
* The tenant's open draft, or null.
|
|
@@ -12841,10 +13296,20 @@ export interface TenantGoodsDto {
|
|
|
12841
13296
|
/** The SKU's text per locale, keyed by BCP-47 tag (sv-SE, en-GB, fi-FI). `name` and `description` are the default: show `translations[locale]?.name ?? name` and `translations[locale]?.description ?? description`, each field on its own. `{}` when the SKU has no translations. */
|
|
12842
13297
|
translations: TenantGoodsTranslationsDto;
|
|
12843
13298
|
/**
|
|
12844
|
-
* The SKU's price ex VAT as a decimal string, read from its pricing rule: the open-ended rule, which is the latest price set even when it starts in the future. Null when the SKU has no open-ended price.
|
|
13299
|
+
* The SKU's price ex VAT as a decimal string, read from its pricing rule: the open-ended rule, which is the latest price set even when it starts in the future. A price entered including VAT shows its net part (2,99 € at 25,5 % → "2.38"), which does not multiply back to it. Null when the SKU has no open-ended price.
|
|
12845
13300
|
* @nullable
|
|
12846
13301
|
*/
|
|
12847
13302
|
retailPriceExVat?: string | null;
|
|
13303
|
+
/**
|
|
13304
|
+
* The same price including VAT, as a decimal string: as entered when the price includes VAT (`pricesIncludeVat`), else the ex-VAT price with its VAT. Null when the SKU has no open-ended price.
|
|
13305
|
+
* @nullable
|
|
13306
|
+
*/
|
|
13307
|
+
retailPriceIncVat?: string | null;
|
|
13308
|
+
/**
|
|
13309
|
+
* Whether the price was entered including VAT (`unitPriceIncVatMinor`). Null when the SKU has no open-ended price.
|
|
13310
|
+
* @nullable
|
|
13311
|
+
*/
|
|
13312
|
+
pricesIncludeVat?: boolean | null;
|
|
12848
13313
|
/** @nullable */
|
|
12849
13314
|
currencyCode?: string | null;
|
|
12850
13315
|
/** The billing.article this SKU prices through. Created by the SKU command; not caller-supplied. */
|
|
@@ -12909,10 +13374,15 @@ export interface CreateTenantGoodsDto {
|
|
|
12909
13374
|
/** The name and description per locale (sv-SE, en-GB, fi-FI); `name` and `description` above stay the default for a locale with none. Defaults to none. */
|
|
12910
13375
|
translations?: TenantGoodsTranslationsInputDto;
|
|
12911
13376
|
/**
|
|
12912
|
-
* Price per unit ex VAT, in minor units (öre/cent). 0 is allowed — a free item still needs a rule so the sale produces an invoice line.
|
|
13377
|
+
* Price per unit ex VAT, in minor units (öre/cent). 0 is allowed — a free item still needs a rule so the sale produces an invoice line. Required on a tenant whose prices exclude VAT; on one whose prices include VAT (`pricesIncludeVat` on the tenant billing config) it is refused with 400 `merchandise_price_basis_mismatch`: give `unitPriceIncVatMinor` instead.
|
|
12913
13378
|
* @minimum 0
|
|
12914
13379
|
*/
|
|
12915
|
-
unitPriceExVatMinor
|
|
13380
|
+
unitPriceExVatMinor?: number;
|
|
13381
|
+
/**
|
|
13382
|
+
* Price per unit INCLUDING VAT, in minor units, on a tenant whose prices include VAT: 10 at 299 bill 29,90 € (23,82 € and 6,08 € VAT at 25,5 %). Required there and refused with 400 `merchandise_price_basis_mismatch` anywhere else.
|
|
13383
|
+
* @minimum 0
|
|
13384
|
+
*/
|
|
13385
|
+
unitPriceIncVatMinor?: number;
|
|
12916
13386
|
/** ISO 4217. Required even though the SKU column is nullable: the pricing rule's currency is NOT NULL and must be enabled for the tenant (billing.tenant_enabled_currency), so a SKU without one could not be priced. */
|
|
12917
13387
|
currencyCode: string;
|
|
12918
13388
|
/** VAT rate for the SKU's article, a percentage (numeric → string): 25.0000 for 25 %, 25.5000 for 25.5 %. A code that restores a deleted SKU keeps that SKU's article, and so its rate; change it through PATCH /v1/billing/articles/:id. */
|
|
@@ -12954,10 +13424,15 @@ export interface UpdateTenantGoodsDto {
|
|
|
12954
13424
|
/** Replaces the SKU's per-locale texts WHOLE: a locale left out loses its entry, and `{}` removes them all. Omitted leaves them alone. */
|
|
12955
13425
|
translations?: TenantGoodsTranslationsInputDto;
|
|
12956
13426
|
/**
|
|
12957
|
-
* New price per unit ex VAT in minor units. Equal to the current price is a no-op; different closes the live rule's window and opens a new one.
|
|
13427
|
+
* New price per unit ex VAT in minor units. Equal to the current price is a no-op; different closes the live rule's window and opens a new one. On a tenant whose prices include VAT it is refused with 400 `merchandise_price_basis_mismatch`: give `unitPriceIncVatMinor` instead.
|
|
12958
13428
|
* @minimum 0
|
|
12959
13429
|
*/
|
|
12960
13430
|
unitPriceExVatMinor?: number;
|
|
13431
|
+
/**
|
|
13432
|
+
* New price per unit INCLUDING VAT in minor units, on a tenant whose prices include VAT. Equal to the current price, in the same basis, is a no-op; anything else, including the same amount on a price that was entered ex VAT, closes the live rule's window and opens a new one. Refused with 400 `merchandise_price_basis_mismatch` on a tenant whose prices exclude VAT.
|
|
13433
|
+
* @minimum 0
|
|
13434
|
+
*/
|
|
13435
|
+
unitPriceIncVatMinor?: number;
|
|
12961
13436
|
/** Date the new price takes effect (YYYY-MM-DD). Defaults to today. Must be strictly AFTER the live rule's effective_from: an earlier date would build an inverted date range and a same-day one an empty range, which the EXCLUDE constraint silently accepts and nothing can ever price. */
|
|
12962
13437
|
effectiveFrom?: string;
|
|
12963
13438
|
category?: string;
|
|
@@ -13476,6 +13951,28 @@ export interface AnalyticsVolumePerCustomerDto {
|
|
|
13476
13951
|
/** @nullable */
|
|
13477
13952
|
estimatedM3: number | null;
|
|
13478
13953
|
}
|
|
13954
|
+
export interface AnalyticsVolumeBucketDto {
|
|
13955
|
+
/** Customers in the bucket. */
|
|
13956
|
+
count: number;
|
|
13957
|
+
/**
|
|
13958
|
+
* Average over the bucket's customers of the measured m³ each held over their stored nights. Null for an empty bucket.
|
|
13959
|
+
* @nullable
|
|
13960
|
+
*/
|
|
13961
|
+
measuredM3: number | null;
|
|
13962
|
+
/**
|
|
13963
|
+
* The same, estimated. A stay's estimate is its average over the nights that carry one, as the stays dataset reports it; a stay with none counts at its measured average. Null for an empty bucket, or when no stay of its customers carries an estimate.
|
|
13964
|
+
* @nullable
|
|
13965
|
+
*/
|
|
13966
|
+
estimatedM3: number | null;
|
|
13967
|
+
}
|
|
13968
|
+
export interface AnalyticsVolumeByStatusDto {
|
|
13969
|
+
/** Latest stay stored on the night. */
|
|
13970
|
+
active: AnalyticsVolumeBucketDto;
|
|
13971
|
+
/** Latest stay ended: empty for `stayGapNights` consecutive nights. */
|
|
13972
|
+
ended: AnalyticsVolumeBucketDto;
|
|
13973
|
+
/** Every customer who has stored, including those between stays, who are in neither bucket above. */
|
|
13974
|
+
all: AnalyticsVolumeBucketDto;
|
|
13975
|
+
}
|
|
13479
13976
|
export interface AnalyticsNightsBucketDto {
|
|
13480
13977
|
/** Stays, or customers, in the bucket. */
|
|
13481
13978
|
count: number;
|
|
@@ -13517,12 +14014,17 @@ export interface AnalyticsLifetimeValueDto {
|
|
|
13517
14014
|
*/
|
|
13518
14015
|
currencyCode: string | null;
|
|
13519
14016
|
/**
|
|
13520
|
-
* Average invoiced revenue ex VAT, minor units, of the customers whose latest stay
|
|
14017
|
+
* Average invoiced revenue ex VAT, minor units, of the customers whose latest stay is stored on the night.
|
|
14018
|
+
* @nullable
|
|
14019
|
+
*/
|
|
14020
|
+
activeCustomersMinor: number | null;
|
|
14021
|
+
/**
|
|
14022
|
+
* The same over the customers whose latest stay has ended.
|
|
13521
14023
|
* @nullable
|
|
13522
14024
|
*/
|
|
13523
14025
|
endedCustomersMinor: number | null;
|
|
13524
14026
|
/**
|
|
13525
|
-
* The same over every customer who has stored.
|
|
14027
|
+
* The same over every customer who has stored, including those between stays.
|
|
13526
14028
|
* @nullable
|
|
13527
14029
|
*/
|
|
13528
14030
|
storingCustomersMinor: number | null;
|
|
@@ -13534,6 +14036,8 @@ export interface AnalyticsPointInTimeDto {
|
|
|
13534
14036
|
activeCustomers: number;
|
|
13535
14037
|
storedVolume: AnalyticsStoredVolumeDto;
|
|
13536
14038
|
averageVolumePerActiveCustomer: AnalyticsVolumePerCustomerDto;
|
|
14039
|
+
/** Per customer, the average m³ they held over their stored nights across every stay, by the status of their latest stay. An active customer's is their average so far, not the night's volume, which averageVolumePerActiveCustomer gives. */
|
|
14040
|
+
averageVolumeWhileStoring: AnalyticsVolumeByStatusDto;
|
|
13537
14041
|
/** Customers registered on or before the night, cumulative. */
|
|
13538
14042
|
registeredCustomers: number;
|
|
13539
14043
|
/** Customers who had stored by the night, cumulative. */
|
|
@@ -13548,6 +14052,8 @@ export interface AnalyticsPointInTimeSetDto {
|
|
|
13548
14052
|
previousMonthEnd: AnalyticsPointInTimeDto;
|
|
13549
14053
|
/** asOf a month earlier, clamped to that month's last day (31 Oct → 30 Sep). */
|
|
13550
14054
|
sameDayLastMonth: AnalyticsPointInTimeDto;
|
|
14055
|
+
/** The last night of the range the requested one is compared with, `range.previous.to`: the night to compare a point-in-time figure with, range against range. */
|
|
14056
|
+
previousRangeEnd: AnalyticsPointInTimeDto;
|
|
13551
14057
|
}
|
|
13552
14058
|
export interface AnalyticsRevenueCategoryDto {
|
|
13553
14059
|
/**
|
|
@@ -13566,7 +14072,10 @@ export interface AnalyticsRevenueArticleDto {
|
|
|
13566
14072
|
articleId: string | null;
|
|
13567
14073
|
/** @nullable */
|
|
13568
14074
|
code: string | null;
|
|
13569
|
-
/**
|
|
14075
|
+
/**
|
|
14076
|
+
* The article's name in the requested `locale`, else its default name. Null for a row with no article.
|
|
14077
|
+
* @nullable
|
|
14078
|
+
*/
|
|
13570
14079
|
name: string | null;
|
|
13571
14080
|
/** @nullable */
|
|
13572
14081
|
category: string | null;
|
|
@@ -13601,6 +14110,46 @@ export interface AnalyticsPeriodSetDto {
|
|
|
13601
14110
|
/** The month before that. */
|
|
13602
14111
|
monthBefore: AnalyticsPeriodDto;
|
|
13603
14112
|
}
|
|
14113
|
+
export interface AnalyticsCohortLifetimeValueDto {
|
|
14114
|
+
/**
|
|
14115
|
+
* The tenant's default currency, which lifetime revenue is counted in; revenue in any other currency is not in it. Null before the first build or for a tenant with no default currency.
|
|
14116
|
+
* @nullable
|
|
14117
|
+
*/
|
|
14118
|
+
currencyCode: string | null;
|
|
14119
|
+
/**
|
|
14120
|
+
* Average invoiced revenue ex VAT to date, minor units, of the cohort's customers whose latest stay is stored as of the latest nightly build. Revenue invoiced after the range counts, so an earlier range's cohort has had longer to earn. Null when none is.
|
|
14121
|
+
* @nullable
|
|
14122
|
+
*/
|
|
14123
|
+
activeCustomersMinor: number | null;
|
|
14124
|
+
/**
|
|
14125
|
+
* The same over the cohort's customers whose latest stay has ended.
|
|
14126
|
+
* @nullable
|
|
14127
|
+
*/
|
|
14128
|
+
endedCustomersMinor: number | null;
|
|
14129
|
+
/**
|
|
14130
|
+
* The same over the whole cohort, including customers between stays. Null when the cohort is empty.
|
|
14131
|
+
* @nullable
|
|
14132
|
+
*/
|
|
14133
|
+
storingCustomersMinor: number | null;
|
|
14134
|
+
}
|
|
14135
|
+
export interface AnalyticsRangePeriodDto {
|
|
14136
|
+
from: string;
|
|
14137
|
+
/** Included. */
|
|
14138
|
+
to: string;
|
|
14139
|
+
/** Customers registered in the window. */
|
|
14140
|
+
newRegisteredCustomers: number;
|
|
14141
|
+
/** Customers whose first stay started in the window. */
|
|
14142
|
+
newStoringCustomers: number;
|
|
14143
|
+
/** Invoiced revenue by invoice date, one entry per currency, never summed across currencies. Invoices sent, paid, overdue or written off; credit notes net against them. */
|
|
14144
|
+
revenue: AnalyticsRevenueDto[];
|
|
14145
|
+
cohortLifetimeValue: AnalyticsCohortLifetimeValueDto;
|
|
14146
|
+
}
|
|
14147
|
+
export interface AnalyticsRangeSetDto {
|
|
14148
|
+
/** The range asked for, `from` through `to`. */
|
|
14149
|
+
current: AnalyticsRangePeriodDto;
|
|
14150
|
+
/** The range it is compared with. A range starting on a 1st compares with the same span as many calendar months earlier as it spans, ending on a month's last day when it does: October with September, a quarter with the quarter before, 1–10 Nov with 1–10 Oct. Any other range compares with as many days immediately before it. */
|
|
14151
|
+
previous: AnalyticsRangePeriodDto;
|
|
14152
|
+
}
|
|
13604
14153
|
export interface AnalyticsRevenueTotalDto {
|
|
13605
14154
|
currencyCode: string;
|
|
13606
14155
|
/** Revenue ex VAT, minor units. */
|
|
@@ -13644,6 +14193,36 @@ export interface AnalyticsPricePerM3Dto {
|
|
|
13644
14193
|
/** The service month before it. */
|
|
13645
14194
|
monthBefore: AnalyticsPricePerM3MonthDto;
|
|
13646
14195
|
}
|
|
14196
|
+
export interface AnalyticsPricePerM3TrendMonthDto {
|
|
14197
|
+
/** First day of the service month. */
|
|
14198
|
+
serviceMonth: string;
|
|
14199
|
+
/** Storage-category revenue ex VAT for the service month, minor units. */
|
|
14200
|
+
storageRevenueMinor: number;
|
|
14201
|
+
/** Average m³ stored over the month's nights, measured. */
|
|
14202
|
+
averageMeasuredM3: number;
|
|
14203
|
+
/**
|
|
14204
|
+
* The same, estimated; null when no night of the month carries an estimate.
|
|
14205
|
+
* @nullable
|
|
14206
|
+
*/
|
|
14207
|
+
averageEstimatedM3: number | null;
|
|
14208
|
+
/**
|
|
14209
|
+
* Minor units per measured m³; null when nothing measured was stored.
|
|
14210
|
+
* @nullable
|
|
14211
|
+
*/
|
|
14212
|
+
pricePerMeasuredM3Minor: number | null;
|
|
14213
|
+
/**
|
|
14214
|
+
* Minor units per estimated m³.
|
|
14215
|
+
* @nullable
|
|
14216
|
+
*/
|
|
14217
|
+
pricePerEstimatedM3Minor: number | null;
|
|
14218
|
+
/** None of the month's storage charges in this currency is still unbilled or on a draft — the rule lastInvoicedServiceMonth is chosen by. Both prices are null unless the month is fully invoiced and has storage revenue in this currency: never estimated. Until then storageRevenueMinor is what has been invoiced so far. Revenue is as of the latest nightly build, so on the day a month's last storage invoices are sent its price can read short until the next build. */
|
|
14219
|
+
fullyInvoiced: boolean;
|
|
14220
|
+
}
|
|
14221
|
+
export interface AnalyticsPricePerM3TrendDto {
|
|
14222
|
+
currencyCode: string;
|
|
14223
|
+
/** The twelve service months before asOf's, oldest first, every one listed. averagePricePerM3's lastInvoicedServiceMonth can be older than all of them. */
|
|
14224
|
+
months: AnalyticsPricePerM3TrendMonthDto[];
|
|
14225
|
+
}
|
|
13647
14226
|
export interface AnalyticsEstimateCategoryDto {
|
|
13648
14227
|
/** @nullable */
|
|
13649
14228
|
category: string | null;
|
|
@@ -13674,6 +14253,57 @@ export interface AnalyticsEstimateCurrencyDto {
|
|
|
13674
14253
|
lastMonthActualMinor: number;
|
|
13675
14254
|
byCategory: AnalyticsEstimateCategoryDto[];
|
|
13676
14255
|
}
|
|
14256
|
+
/**
|
|
14257
|
+
* `cold_start` when fewer than `minPods` pods were measured in the window, so the ratio is 1 and no correction was applied.
|
|
14258
|
+
*/
|
|
14259
|
+
export type AnalyticsForecastRatioDtoSource = typeof AnalyticsForecastRatioDtoSource[keyof typeof AnalyticsForecastRatioDtoSource];
|
|
14260
|
+
export declare const AnalyticsForecastRatioDtoSource: {
|
|
14261
|
+
readonly measured: "measured";
|
|
14262
|
+
readonly cold_start: "cold_start";
|
|
14263
|
+
};
|
|
14264
|
+
export interface AnalyticsForecastRatioDto {
|
|
14265
|
+
/** What an estimated volume is multiplied by to read as the warehouse will measure it: measured volume over estimated volume of the pods measured in the window, four decimals. Not clamped: above 1 means estimates run short. Exactly 1 when `source` is `cold_start`. */
|
|
14266
|
+
value: number;
|
|
14267
|
+
/** `cold_start` when fewer than `minPods` pods were measured in the window, so the ratio is 1 and no correction was applied. */
|
|
14268
|
+
source: AnalyticsForecastRatioDtoSource;
|
|
14269
|
+
/** Pods measured in the window that carry both a measurement and an estimate. */
|
|
14270
|
+
measuredPods: number;
|
|
14271
|
+
/** The fewest measured pods the ratio is computed from. */
|
|
14272
|
+
minPods: number;
|
|
14273
|
+
/** Days of measurements the ratio reads, ending at `windowTo`. */
|
|
14274
|
+
windowDays: number;
|
|
14275
|
+
windowFrom: string;
|
|
14276
|
+
windowTo: string;
|
|
14277
|
+
}
|
|
14278
|
+
export interface AnalyticsInvoiceForecastCategoryDto {
|
|
14279
|
+
/** @nullable */
|
|
14280
|
+
category: string | null;
|
|
14281
|
+
/** Net ex-VAT of the booked pickups' charges in this category, minor units, after campaigns, binding discounts and codes. */
|
|
14282
|
+
bookedPickupsMinor: number;
|
|
14283
|
+
}
|
|
14284
|
+
export interface AnalyticsInvoiceForecastCurrencyDto {
|
|
14285
|
+
currencyCode: string;
|
|
14286
|
+
/** Net ex-VAT of what the booked pickups add to the window's invoices, minor units: the sum of the categories'. Not part of `estimateMinor`. */
|
|
14287
|
+
bookedPickupsMinor: number;
|
|
14288
|
+
/** Pickups priced into this currency. */
|
|
14289
|
+
pickupsPriced: number;
|
|
14290
|
+
byCategory: AnalyticsInvoiceForecastCategoryDto[];
|
|
14291
|
+
}
|
|
14292
|
+
export interface AnalyticsInvoiceForecastDto {
|
|
14293
|
+
/** Always true: what live pickups booked for the rest of the window will add if they go ahead, priced through the pricing engine as their checkout quote was. Separate from the accrued figures and never added to them. */
|
|
14294
|
+
isForecast: boolean;
|
|
14295
|
+
ratio: AnalyticsForecastRatioDto;
|
|
14296
|
+
/** Live pickups planned in the window after `asOf`, not yet at the warehouse. A pickup planned earlier and still open counts from the day after `asOf`. */
|
|
14297
|
+
pickupsBooked: number;
|
|
14298
|
+
/** How many of them are priced into `currencies`. */
|
|
14299
|
+
pickupsPriced: number;
|
|
14300
|
+
/** Booked pickups left out because nothing could price them: no currency, a price book with no base rule for them, or the limit on how many are priced in one request (`truncated`). */
|
|
14301
|
+
pickupsUnpriced: number;
|
|
14302
|
+
/** True when pricing stopped at the limit on pickups or on time, so `currencies` is short by the pickups it did not reach. */
|
|
14303
|
+
truncated: boolean;
|
|
14304
|
+
/** One entry per currency. */
|
|
14305
|
+
currencies: AnalyticsInvoiceForecastCurrencyDto[];
|
|
14306
|
+
}
|
|
13677
14307
|
export interface AnalyticsInvoiceEstimateDto {
|
|
13678
14308
|
/** Always true: these are projections, not invoices. */
|
|
13679
14309
|
isEstimate: boolean;
|
|
@@ -13691,9 +14321,11 @@ export interface AnalyticsInvoiceEstimateDto {
|
|
|
13691
14321
|
lastMonthComplete: boolean;
|
|
13692
14322
|
/** One entry per currency. */
|
|
13693
14323
|
currencies: AnalyticsEstimateCurrencyDto[];
|
|
14324
|
+
/** What live pickups booked for the rest of the window add on top of this estimate, priced through the pricing engine. Never part of `estimateMinor` or any figure above: the client shows it beside them, or adds it up. */
|
|
14325
|
+
forecast: AnalyticsInvoiceForecastDto;
|
|
13694
14326
|
}
|
|
13695
14327
|
export interface AnalyticsOverviewDto {
|
|
13696
|
-
/** The night the figures describe
|
|
14328
|
+
/** The night the figures describe: the range's last night, `to`. */
|
|
13697
14329
|
asOf: string;
|
|
13698
14330
|
/**
|
|
13699
14331
|
* When the nightly analytics build these figures read was computed; null before the first.
|
|
@@ -13704,11 +14336,54 @@ export interface AnalyticsOverviewDto {
|
|
|
13704
14336
|
stayGapNights: number;
|
|
13705
14337
|
pointInTime: AnalyticsPointInTimeSetDto;
|
|
13706
14338
|
periods: AnalyticsPeriodSetDto;
|
|
14339
|
+
/** The period figures over the requested range and the range it is compared with, each with the lifetime value of its acquisition cohort. */
|
|
14340
|
+
range: AnalyticsRangeSetDto;
|
|
13707
14341
|
revenueYearToDate: AnalyticsRevenueYearToDateDto;
|
|
13708
14342
|
/** One entry per currency with a fully invoiced storage month. */
|
|
13709
14343
|
averagePricePerM3: AnalyticsPricePerM3Dto[];
|
|
14344
|
+
/** The price per m³ month by month, one entry per currency with storage revenue in any of the twelve service months before asOf's, including a currency with no fully invoiced month yet. */
|
|
14345
|
+
averagePricePerM3Trend: AnalyticsPricePerM3TrendDto[];
|
|
13710
14346
|
estimatedInvoicesThisMonth: AnalyticsInvoiceEstimateDto;
|
|
13711
14347
|
}
|
|
14348
|
+
export interface AnalyticsStorageForecastDayDto {
|
|
14349
|
+
date: string;
|
|
14350
|
+
/** m³ in storage when the day ends: the day before's, plus what booked pickups bring on the day, less what booked deliveries take out. Never below 0. */
|
|
14351
|
+
projectedM3: number;
|
|
14352
|
+
/** m³ the pickups planned on the day bring in, estimated volume times the correction ratio. */
|
|
14353
|
+
incomingM3: number;
|
|
14354
|
+
/** m³ the deliveries planned on the day take out. */
|
|
14355
|
+
outgoingM3: number;
|
|
14356
|
+
/** Pickups planned on the day. */
|
|
14357
|
+
bookedPickups: number;
|
|
14358
|
+
/** Deliveries planned on the day. */
|
|
14359
|
+
bookedDeliveries: number;
|
|
14360
|
+
}
|
|
14361
|
+
/**
|
|
14362
|
+
* Which volume `startM3` is: the estimated volume the dashboard charts, or the measured volume when no night carries an estimate.
|
|
14363
|
+
*/
|
|
14364
|
+
export type AnalyticsStorageForecastDtoStartBasis = typeof AnalyticsStorageForecastDtoStartBasis[keyof typeof AnalyticsStorageForecastDtoStartBasis];
|
|
14365
|
+
export declare const AnalyticsStorageForecastDtoStartBasis: {
|
|
14366
|
+
readonly estimated: "estimated";
|
|
14367
|
+
readonly measured: "measured";
|
|
14368
|
+
};
|
|
14369
|
+
export interface AnalyticsStorageForecastDto {
|
|
14370
|
+
/** The latest night built: the forecast starts from how it ended. */
|
|
14371
|
+
asOf: string;
|
|
14372
|
+
/**
|
|
14373
|
+
* When the nightly analytics build these figures read was computed; null before the first.
|
|
14374
|
+
* @nullable
|
|
14375
|
+
*/
|
|
14376
|
+
computedAt: string | null;
|
|
14377
|
+
/** Days forecast, from the day after `asOf`. */
|
|
14378
|
+
horizonDays: number;
|
|
14379
|
+
/** m³ in storage when `asOf` ended, the figure the forecast continues from. */
|
|
14380
|
+
startM3: number;
|
|
14381
|
+
/** Which volume `startM3` is: the estimated volume the dashboard charts, or the measured volume when no night carries an estimate. */
|
|
14382
|
+
startBasis: AnalyticsStorageForecastDtoStartBasis;
|
|
14383
|
+
ratio: AnalyticsForecastRatioDto;
|
|
14384
|
+
/** One entry per day, in date order, every day listed. */
|
|
14385
|
+
days: AnalyticsStorageForecastDayDto[];
|
|
14386
|
+
}
|
|
13712
14387
|
export interface AnalyticsDailyRowDto {
|
|
13713
14388
|
date: string;
|
|
13714
14389
|
/** Customers with goods in storage that night. */
|
|
@@ -14038,12 +14713,38 @@ export type OrganizationsControllerListV1Params = {
|
|
|
14038
14713
|
*/
|
|
14039
14714
|
type?: OrganizationsControllerListV1Type;
|
|
14040
14715
|
/**
|
|
14041
|
-
* Case-insensitive substring search
|
|
14716
|
+
* Case-insensitive substring search. Always matches the organization name, its corporate identity number (orgnr) and, given a whole id, the organization id. For tenant staff with `member:read`, and platform-admin, it also matches any live member's email, display name, first name, last name, "first last", and phone, and the billing account's invoice email; the member matched need not be the one shown as `owner`. Other callers, org users included, are not matched on those fields.
|
|
14042
14717
|
* @maxLength 200
|
|
14043
14718
|
*/
|
|
14044
14719
|
search?: string;
|
|
14045
14720
|
/**
|
|
14046
|
-
*
|
|
14721
|
+
* Filter by service tier.
|
|
14722
|
+
*/
|
|
14723
|
+
serviceTier?: OrganizationsControllerListV1ServiceTier;
|
|
14724
|
+
/**
|
|
14725
|
+
* Created at or after this instant, inclusive: a date (YYYY-MM-DD) or an ISO-8601 date-time with its offset, to the millisecond. A date alone is midnight UTC at the start of that day.
|
|
14726
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
14727
|
+
*/
|
|
14728
|
+
createdFrom?: string;
|
|
14729
|
+
/**
|
|
14730
|
+
* Created at or before this instant, inclusive: a date (YYYY-MM-DD) or an ISO-8601 date-time with its offset, to the millisecond. A date alone is midnight UTC at the start of that day, so `2026-11-11` leaves out what was created later that day: send the next day, or a full timestamp, to include it.
|
|
14731
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
14732
|
+
*/
|
|
14733
|
+
createdTo?: string;
|
|
14734
|
+
/**
|
|
14735
|
+
* Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
|
|
14736
|
+
*/
|
|
14737
|
+
warehouseId?: string;
|
|
14738
|
+
/**
|
|
14739
|
+
* Sort key. Rows that tie on it are ordered by organization id, in the same direction.
|
|
14740
|
+
*/
|
|
14741
|
+
sort?: OrganizationsControllerListV1Sort;
|
|
14742
|
+
/**
|
|
14743
|
+
* Sort direction. When omitted: `asc` for `sort=name`, `desc` for `sort=createdAt` (newest first). Without `sort`, it applies to `createdAt`.
|
|
14744
|
+
*/
|
|
14745
|
+
order?: OrganizationsControllerListV1Order;
|
|
14746
|
+
/**
|
|
14747
|
+
* Batch-fetch by id (repeatable — ?ids=a&ids=b, max 100). When present this is the ONLY filter applied (every filter above is ignored) and pagination (limit/offset) and sort/order are ignored — every matching, RLS-visible organization is returned, in no particular order (callers key by id). An id that doesn't exist, or isn't visible to the caller, is silently omitted rather than causing an error.
|
|
14047
14748
|
*/
|
|
14048
14749
|
ids?: string[];
|
|
14049
14750
|
};
|
|
@@ -14052,22 +14753,62 @@ export declare const OrganizationsControllerListV1Type: {
|
|
|
14052
14753
|
readonly business: "business";
|
|
14053
14754
|
readonly personal: "personal";
|
|
14054
14755
|
};
|
|
14756
|
+
export type OrganizationsControllerListV1ServiceTier = typeof OrganizationsControllerListV1ServiceTier[keyof typeof OrganizationsControllerListV1ServiceTier];
|
|
14757
|
+
export declare const OrganizationsControllerListV1ServiceTier: {
|
|
14758
|
+
readonly PRO: "PRO";
|
|
14759
|
+
readonly CORE: "CORE";
|
|
14760
|
+
readonly LIGHT: "LIGHT";
|
|
14761
|
+
};
|
|
14762
|
+
export type OrganizationsControllerListV1Sort = typeof OrganizationsControllerListV1Sort[keyof typeof OrganizationsControllerListV1Sort];
|
|
14763
|
+
export declare const OrganizationsControllerListV1Sort: {
|
|
14764
|
+
readonly name: "name";
|
|
14765
|
+
readonly createdAt: "createdAt";
|
|
14766
|
+
};
|
|
14767
|
+
export type OrganizationsControllerListV1Order = typeof OrganizationsControllerListV1Order[keyof typeof OrganizationsControllerListV1Order];
|
|
14768
|
+
export declare const OrganizationsControllerListV1Order: {
|
|
14769
|
+
readonly asc: "asc";
|
|
14770
|
+
readonly desc: "desc";
|
|
14771
|
+
};
|
|
14055
14772
|
export type OrganizationsControllerStatsV1Params = {
|
|
14056
14773
|
/**
|
|
14057
14774
|
* Filter by organization type.
|
|
14058
14775
|
*/
|
|
14059
14776
|
type?: OrganizationsControllerStatsV1Type;
|
|
14060
14777
|
/**
|
|
14061
|
-
* Case-insensitive substring search
|
|
14778
|
+
* Case-insensitive substring search. Always matches the organization name, its corporate identity number (orgnr) and, given a whole id, the organization id. For tenant staff with `member:read`, and platform-admin, it also matches any live member's email, display name, first name, last name, "first last", and phone, and the billing account's invoice email; the member matched need not be the one shown as `owner`. Other callers, org users included, are not matched on those fields.
|
|
14062
14779
|
* @maxLength 200
|
|
14063
14780
|
*/
|
|
14064
14781
|
search?: string;
|
|
14782
|
+
/**
|
|
14783
|
+
* Filter by service tier.
|
|
14784
|
+
*/
|
|
14785
|
+
serviceTier?: OrganizationsControllerStatsV1ServiceTier;
|
|
14786
|
+
/**
|
|
14787
|
+
* Created at or after this instant, inclusive: a date (YYYY-MM-DD) or an ISO-8601 date-time with its offset, to the millisecond. A date alone is midnight UTC at the start of that day.
|
|
14788
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
14789
|
+
*/
|
|
14790
|
+
createdFrom?: string;
|
|
14791
|
+
/**
|
|
14792
|
+
* Created at or before this instant, inclusive: a date (YYYY-MM-DD) or an ISO-8601 date-time with its offset, to the millisecond. A date alone is midnight UTC at the start of that day, so `2026-11-11` leaves out what was created later that day: send the next day, or a full timestamp, to include it.
|
|
14793
|
+
* @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?(Z|[+-]\d{2}:\d{2}))?$
|
|
14794
|
+
*/
|
|
14795
|
+
createdTo?: string;
|
|
14796
|
+
/**
|
|
14797
|
+
* Filter by the organization's preferred warehouse (`preferredWarehouseId`), not by where its goods are stored.
|
|
14798
|
+
*/
|
|
14799
|
+
warehouseId?: string;
|
|
14065
14800
|
};
|
|
14066
14801
|
export type OrganizationsControllerStatsV1Type = typeof OrganizationsControllerStatsV1Type[keyof typeof OrganizationsControllerStatsV1Type];
|
|
14067
14802
|
export declare const OrganizationsControllerStatsV1Type: {
|
|
14068
14803
|
readonly business: "business";
|
|
14069
14804
|
readonly personal: "personal";
|
|
14070
14805
|
};
|
|
14806
|
+
export type OrganizationsControllerStatsV1ServiceTier = typeof OrganizationsControllerStatsV1ServiceTier[keyof typeof OrganizationsControllerStatsV1ServiceTier];
|
|
14807
|
+
export declare const OrganizationsControllerStatsV1ServiceTier: {
|
|
14808
|
+
readonly PRO: "PRO";
|
|
14809
|
+
readonly CORE: "CORE";
|
|
14810
|
+
readonly LIGHT: "LIGHT";
|
|
14811
|
+
};
|
|
14071
14812
|
export type CarriersControllerListProvidersV1Params = {
|
|
14072
14813
|
/**
|
|
14073
14814
|
* Max rows to return (1–100).
|
|
@@ -14958,6 +15699,28 @@ export type InvoicesControllerListCorrectionsV1Params = {
|
|
|
14958
15699
|
*/
|
|
14959
15700
|
offset?: number;
|
|
14960
15701
|
};
|
|
15702
|
+
export type CollectionHoldsControllerListCollectionHoldsV1Params = {
|
|
15703
|
+
/**
|
|
15704
|
+
* Max rows to return (1–100).
|
|
15705
|
+
* @minimum 1
|
|
15706
|
+
* @maximum 100
|
|
15707
|
+
*/
|
|
15708
|
+
limit?: number;
|
|
15709
|
+
/**
|
|
15710
|
+
* Rows to skip.
|
|
15711
|
+
* @minimum 0
|
|
15712
|
+
*/
|
|
15713
|
+
offset?: number;
|
|
15714
|
+
/**
|
|
15715
|
+
* Only the invoices held for this reason.
|
|
15716
|
+
*/
|
|
15717
|
+
reason?: CollectionHoldsControllerListCollectionHoldsV1Reason;
|
|
15718
|
+
};
|
|
15719
|
+
export type CollectionHoldsControllerListCollectionHoldsV1Reason = typeof CollectionHoldsControllerListCollectionHoldsV1Reason[keyof typeof CollectionHoldsControllerListCollectionHoldsV1Reason];
|
|
15720
|
+
export declare const CollectionHoldsControllerListCollectionHoldsV1Reason: {
|
|
15721
|
+
readonly DRAFT_CREDIT_NOTE: "DRAFT_CREDIT_NOTE";
|
|
15722
|
+
readonly CREDITED: "CREDITED";
|
|
15723
|
+
};
|
|
14961
15724
|
export type ArticlesControllerListArticlesV1Params = {
|
|
14962
15725
|
/**
|
|
14963
15726
|
* Max rows to return (1–100).
|
|
@@ -15684,9 +16447,35 @@ export type TransportOptionsControllerListV1Params = {
|
|
|
15684
16447
|
};
|
|
15685
16448
|
export type AnalyticsControllerOverviewV1Params = {
|
|
15686
16449
|
/**
|
|
15687
|
-
* The night the figures describe (YYYY-MM-DD), in the tenant's billing calendar. Defaults to the latest night the nightly analytics build covers, normally last night. A later night is 400 as_of_not_built.
|
|
16450
|
+
* The night the figures describe (YYYY-MM-DD), in the tenant's billing calendar: the range's last night, `to` by its older name, so give one or the other (400 as_of_and_to_exclusive). Defaults to the latest night the nightly analytics build covers, normally last night. A later night is 400 as_of_not_built.
|
|
15688
16451
|
*/
|
|
15689
16452
|
asOf?: string;
|
|
16453
|
+
/**
|
|
16454
|
+
* First day of the range (YYYY-MM-DD), in the billing calendar. Defaults to the 1st of `to`'s month, so the range is the month to date. 400 date_range_required when it is after `to`; the range may span at most 25 calendar months (400 date_range_too_wide).
|
|
16455
|
+
*/
|
|
16456
|
+
from?: string;
|
|
16457
|
+
/**
|
|
16458
|
+
* Last day of the range, included, and the night the point-in-time figures are read at. Defaults to, and may not be after, the latest night the nightly build covers (400 date_range_not_built).
|
|
16459
|
+
*/
|
|
16460
|
+
to?: string;
|
|
16461
|
+
/**
|
|
16462
|
+
* Language of the article names in `byArticle`: the page's language. Each name is the article's name in this locale, or its default name when it has none. Omit it to get every article's default name.
|
|
16463
|
+
*/
|
|
16464
|
+
locale?: AnalyticsControllerOverviewV1Locale;
|
|
16465
|
+
};
|
|
16466
|
+
export type AnalyticsControllerOverviewV1Locale = typeof AnalyticsControllerOverviewV1Locale[keyof typeof AnalyticsControllerOverviewV1Locale];
|
|
16467
|
+
export declare const AnalyticsControllerOverviewV1Locale: {
|
|
16468
|
+
readonly 'sv-SE': "sv-SE";
|
|
16469
|
+
readonly 'en-GB': "en-GB";
|
|
16470
|
+
readonly 'fi-FI': "fi-FI";
|
|
16471
|
+
};
|
|
16472
|
+
export type AnalyticsControllerStorageForecastV1Params = {
|
|
16473
|
+
/**
|
|
16474
|
+
* Days to forecast, from the day after the latest night built (1–60).
|
|
16475
|
+
* @minimum 1
|
|
16476
|
+
* @maximum 60
|
|
16477
|
+
*/
|
|
16478
|
+
days?: number;
|
|
15690
16479
|
};
|
|
15691
16480
|
export type AnalyticsControllerDailyV1Params = {
|
|
15692
16481
|
/**
|