@vindentech/api-client 0.3.0-next.15 → 0.3.0-next.16
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 +61 -1
- package/dist/generated/_permissions.d.ts.map +1 -1
- package/dist/generated/_permissions.js +15 -0
- package/dist/generated/_permissions.js.map +1 -1
- package/dist/generated/index.schemas.d.ts +504 -3
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +86 -0
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/notification-rules/notification-rules.d.ts +143 -1
- package/dist/generated/notification-rules/notification-rules.d.ts.map +1 -1
- package/dist/generated/notification-rules/notification-rules.js +60 -0
- package/dist/generated/notification-rules/notification-rules.js.map +1 -1
- package/dist/generated/notification-templates/notification-templates.d.ts +242 -2
- package/dist/generated/notification-templates/notification-templates.d.ts.map +1 -1
- package/dist/generated/notification-templates/notification-templates.js +84 -0
- package/dist/generated/notification-templates/notification-templates.js.map +1 -1
- package/dist/generated/service-points/service-points.d.ts +23 -0
- package/dist/generated/service-points/service-points.d.ts.map +1 -0
- package/dist/generated/service-points/service-points.js +18 -0
- package/dist/generated/service-points/service-points.js.map +1 -0
- package/package.json +1 -1
|
@@ -165,6 +165,13 @@ export interface OrderLegDto {
|
|
|
165
165
|
city: string | null;
|
|
166
166
|
/** @nullable */
|
|
167
167
|
countryCode: string | null;
|
|
168
|
+
/**
|
|
169
|
+
* Opaque provider-specific service-point (parcel locker) id; DELIVERY legs only.
|
|
170
|
+
* @nullable
|
|
171
|
+
*/
|
|
172
|
+
servicePointId: string | null;
|
|
173
|
+
/** @nullable */
|
|
174
|
+
servicePointProvider: string | null;
|
|
168
175
|
/** @nullable */
|
|
169
176
|
floorLevel: number | null;
|
|
170
177
|
/** @nullable */
|
|
@@ -258,6 +265,11 @@ export interface OrderDetailDto {
|
|
|
258
265
|
/** @nullable */
|
|
259
266
|
estimate: OrderDetailDtoEstimate;
|
|
260
267
|
legs: OrderLegDto[];
|
|
268
|
+
/**
|
|
269
|
+
* The transport_slot id of this order's material:delivery reservation, if any — derived from the originating cart, not a stored column.
|
|
270
|
+
* @nullable
|
|
271
|
+
*/
|
|
272
|
+
materialsTimeslotId: string | null;
|
|
261
273
|
}
|
|
262
274
|
export type OrderTimelineEventDtoKind = typeof OrderTimelineEventDtoKind[keyof typeof OrderTimelineEventDtoKind];
|
|
263
275
|
export declare const OrderTimelineEventDtoKind: {
|
|
@@ -1656,6 +1668,41 @@ export interface CartLocationDto {
|
|
|
1656
1668
|
/** @nullable */
|
|
1657
1669
|
extraStorageM2: number | null;
|
|
1658
1670
|
}
|
|
1671
|
+
/**
|
|
1672
|
+
* @nullable
|
|
1673
|
+
*/
|
|
1674
|
+
export type CartDeliveryLocationDtoServicePointProvider = typeof CartDeliveryLocationDtoServicePointProvider[keyof typeof CartDeliveryLocationDtoServicePointProvider] | null;
|
|
1675
|
+
export declare const CartDeliveryLocationDtoServicePointProvider: {
|
|
1676
|
+
readonly POSTI: "POSTI";
|
|
1677
|
+
};
|
|
1678
|
+
export interface CartDeliveryLocationDto {
|
|
1679
|
+
/** @nullable */
|
|
1680
|
+
addressLine1: string | null;
|
|
1681
|
+
/** @nullable */
|
|
1682
|
+
addressLine2: string | null;
|
|
1683
|
+
/** @nullable */
|
|
1684
|
+
zipCode: string | null;
|
|
1685
|
+
/** @nullable */
|
|
1686
|
+
city: string | null;
|
|
1687
|
+
/** @nullable */
|
|
1688
|
+
countryCode: string | null;
|
|
1689
|
+
/** @nullable */
|
|
1690
|
+
squareMeters: number | null;
|
|
1691
|
+
/** @nullable */
|
|
1692
|
+
numberOfRooms: number | null;
|
|
1693
|
+
/** @nullable */
|
|
1694
|
+
floor: number | null;
|
|
1695
|
+
/** @nullable */
|
|
1696
|
+
elevatorType: string | null;
|
|
1697
|
+
/** @nullable */
|
|
1698
|
+
isBackyardHouse: boolean | null;
|
|
1699
|
+
/** @nullable */
|
|
1700
|
+
extraStorageM2: number | null;
|
|
1701
|
+
/** @nullable */
|
|
1702
|
+
servicePointId: string | null;
|
|
1703
|
+
/** @nullable */
|
|
1704
|
+
servicePointProvider: CartDeliveryLocationDtoServicePointProvider;
|
|
1705
|
+
}
|
|
1659
1706
|
/**
|
|
1660
1707
|
* @nullable
|
|
1661
1708
|
*/
|
|
@@ -1707,6 +1754,11 @@ export interface CartHoldDto {
|
|
|
1707
1754
|
reservationId: string;
|
|
1708
1755
|
/** @nullable */
|
|
1709
1756
|
slotId: string | null;
|
|
1757
|
+
/**
|
|
1758
|
+
* Which cart component this hold is for (move:pickup | move:delivery | material:delivery); null = legacy single-component cart.
|
|
1759
|
+
* @nullable
|
|
1760
|
+
*/
|
|
1761
|
+
componentKey: string | null;
|
|
1710
1762
|
/** HELD | CONFIRMED | EXPIRED | CANCELLED */
|
|
1711
1763
|
status: string;
|
|
1712
1764
|
/** @nullable */
|
|
@@ -1754,9 +1806,14 @@ export interface CartDto {
|
|
|
1754
1806
|
customer: CartContactDto;
|
|
1755
1807
|
contact: CartContactDto;
|
|
1756
1808
|
pickup: CartLocationDto;
|
|
1757
|
-
delivery:
|
|
1809
|
+
delivery: CartDeliveryLocationDto;
|
|
1758
1810
|
/** @nullable */
|
|
1759
1811
|
estimatedHours: string | null;
|
|
1812
|
+
/**
|
|
1813
|
+
* The transport_slot id of this cart's material:delivery hold, if any — derived from holds[], not a stored column.
|
|
1814
|
+
* @nullable
|
|
1815
|
+
*/
|
|
1816
|
+
materialsTimeslotId: string | null;
|
|
1760
1817
|
/**
|
|
1761
1818
|
* Versioned pricing payload (schema_version tracked server-side)
|
|
1762
1819
|
* @nullable
|
|
@@ -1881,7 +1938,7 @@ export interface QuoteResponseDto {
|
|
|
1881
1938
|
*/
|
|
1882
1939
|
rutDeductionMinor: number | null;
|
|
1883
1940
|
totals: QuoteTotalsDto;
|
|
1884
|
-
/** Components present on the cart that this quote did not price, or reductions it did not apply. Their absence from `totals` is intentional, never a zero charge. Values: GOODS, SERVICE, START_FEE, TRANSPORT (no configured article, price row, or computable rate), INSURANCE (no plan catalogue exists yet), TRANSPORT_RUT (the line is RUT-eligible but its price source carries no post-deduction price to derive the amount from), BINDING_DISCOUNT (the plan carries rates in `discounts` that invoicing does not yet honour, so the totals exclude them). */
|
|
1941
|
+
/** Components present on the cart that this quote did not price, or reductions it did not apply. Their absence from `totals` is intentional, never a zero charge. Values: GOODS, SERVICE, START_FEE, TRANSPORT (no configured article, price row, or computable rate — no line is emitted at all), INSURANCE (no plan catalogue exists yet), TRANSPORT_PARTIAL (a transport line IS priced from the rate card but excludes a component the cart carries no quantity for — a per-hour rate with no `estimatedHours`, or a per-unit rate with no shipment manifest — so the transport amount is a floor, not the final charge), TRANSPORT_RUT (the line is RUT-eligible but its price source carries no post-deduction price to derive the amount from), BINDING_DISCOUNT (the plan carries rates in `discounts` that invoicing does not yet honour, so the totals exclude them), MATERIAL_DELIVERY (the cart holds a material:delivery timeslot; its underlying slot may carry a real price, but materials pricing is not yet designed, so it is excluded from `totals` rather than priced as ordinary transport). */
|
|
1885
1942
|
deferred: string[];
|
|
1886
1943
|
}
|
|
1887
1944
|
/**
|
|
@@ -2008,6 +2065,129 @@ export interface CartLocationInputDto {
|
|
|
2008
2065
|
/** @nullable */
|
|
2009
2066
|
extraStorageM2?: CartLocationInputDtoExtraStorageM2;
|
|
2010
2067
|
}
|
|
2068
|
+
/**
|
|
2069
|
+
* @nullable
|
|
2070
|
+
*/
|
|
2071
|
+
export type CartDeliveryLocationInputDtoAddressLine1 = {
|
|
2072
|
+
[key: string]: unknown;
|
|
2073
|
+
} | null;
|
|
2074
|
+
/**
|
|
2075
|
+
* @nullable
|
|
2076
|
+
*/
|
|
2077
|
+
export type CartDeliveryLocationInputDtoAddressLine2 = {
|
|
2078
|
+
[key: string]: unknown;
|
|
2079
|
+
} | null;
|
|
2080
|
+
/**
|
|
2081
|
+
* @nullable
|
|
2082
|
+
*/
|
|
2083
|
+
export type CartDeliveryLocationInputDtoZipCode = {
|
|
2084
|
+
[key: string]: unknown;
|
|
2085
|
+
} | null;
|
|
2086
|
+
/**
|
|
2087
|
+
* @nullable
|
|
2088
|
+
*/
|
|
2089
|
+
export type CartDeliveryLocationInputDtoCity = {
|
|
2090
|
+
[key: string]: unknown;
|
|
2091
|
+
} | null;
|
|
2092
|
+
/**
|
|
2093
|
+
* ISO 3166-1 alpha-2
|
|
2094
|
+
* @nullable
|
|
2095
|
+
*/
|
|
2096
|
+
export type CartDeliveryLocationInputDtoCountryCode = {
|
|
2097
|
+
[key: string]: unknown;
|
|
2098
|
+
} | null;
|
|
2099
|
+
/**
|
|
2100
|
+
* @nullable
|
|
2101
|
+
*/
|
|
2102
|
+
export type CartDeliveryLocationInputDtoSquareMeters = {
|
|
2103
|
+
[key: string]: unknown;
|
|
2104
|
+
} | null;
|
|
2105
|
+
/**
|
|
2106
|
+
* @nullable
|
|
2107
|
+
*/
|
|
2108
|
+
export type CartDeliveryLocationInputDtoNumberOfRooms = {
|
|
2109
|
+
[key: string]: unknown;
|
|
2110
|
+
} | null;
|
|
2111
|
+
/**
|
|
2112
|
+
* @nullable
|
|
2113
|
+
*/
|
|
2114
|
+
export type CartDeliveryLocationInputDtoFloor = {
|
|
2115
|
+
[key: string]: unknown;
|
|
2116
|
+
} | null;
|
|
2117
|
+
/**
|
|
2118
|
+
* Value from the elevator_type lookup (e.g. NONE, SMALL, BIG)
|
|
2119
|
+
* @nullable
|
|
2120
|
+
*/
|
|
2121
|
+
export type CartDeliveryLocationInputDtoElevatorType = {
|
|
2122
|
+
[key: string]: unknown;
|
|
2123
|
+
} | null;
|
|
2124
|
+
/**
|
|
2125
|
+
* @nullable
|
|
2126
|
+
*/
|
|
2127
|
+
export type CartDeliveryLocationInputDtoIsBackyardHouse = {
|
|
2128
|
+
[key: string]: unknown;
|
|
2129
|
+
} | null;
|
|
2130
|
+
/**
|
|
2131
|
+
* @nullable
|
|
2132
|
+
*/
|
|
2133
|
+
export type CartDeliveryLocationInputDtoExtraStorageM2 = {
|
|
2134
|
+
[key: string]: unknown;
|
|
2135
|
+
} | null;
|
|
2136
|
+
/**
|
|
2137
|
+
* Opaque provider-specific id; requires servicePointProvider alongside it.
|
|
2138
|
+
* @nullable
|
|
2139
|
+
*/
|
|
2140
|
+
export type CartDeliveryLocationInputDtoServicePointId = {
|
|
2141
|
+
[key: string]: unknown;
|
|
2142
|
+
} | null;
|
|
2143
|
+
/**
|
|
2144
|
+
* Required alongside servicePointId.
|
|
2145
|
+
* @nullable
|
|
2146
|
+
*/
|
|
2147
|
+
export type CartDeliveryLocationInputDtoServicePointProvider = typeof CartDeliveryLocationInputDtoServicePointProvider[keyof typeof CartDeliveryLocationInputDtoServicePointProvider] | null;
|
|
2148
|
+
export declare const CartDeliveryLocationInputDtoServicePointProvider: {
|
|
2149
|
+
readonly POSTI: "POSTI";
|
|
2150
|
+
};
|
|
2151
|
+
export interface CartDeliveryLocationInputDto {
|
|
2152
|
+
/** @nullable */
|
|
2153
|
+
addressLine1?: CartDeliveryLocationInputDtoAddressLine1;
|
|
2154
|
+
/** @nullable */
|
|
2155
|
+
addressLine2?: CartDeliveryLocationInputDtoAddressLine2;
|
|
2156
|
+
/** @nullable */
|
|
2157
|
+
zipCode?: CartDeliveryLocationInputDtoZipCode;
|
|
2158
|
+
/** @nullable */
|
|
2159
|
+
city?: CartDeliveryLocationInputDtoCity;
|
|
2160
|
+
/**
|
|
2161
|
+
* ISO 3166-1 alpha-2
|
|
2162
|
+
* @nullable
|
|
2163
|
+
*/
|
|
2164
|
+
countryCode?: CartDeliveryLocationInputDtoCountryCode;
|
|
2165
|
+
/** @nullable */
|
|
2166
|
+
squareMeters?: CartDeliveryLocationInputDtoSquareMeters;
|
|
2167
|
+
/** @nullable */
|
|
2168
|
+
numberOfRooms?: CartDeliveryLocationInputDtoNumberOfRooms;
|
|
2169
|
+
/** @nullable */
|
|
2170
|
+
floor?: CartDeliveryLocationInputDtoFloor;
|
|
2171
|
+
/**
|
|
2172
|
+
* Value from the elevator_type lookup (e.g. NONE, SMALL, BIG)
|
|
2173
|
+
* @nullable
|
|
2174
|
+
*/
|
|
2175
|
+
elevatorType?: CartDeliveryLocationInputDtoElevatorType;
|
|
2176
|
+
/** @nullable */
|
|
2177
|
+
isBackyardHouse?: CartDeliveryLocationInputDtoIsBackyardHouse;
|
|
2178
|
+
/** @nullable */
|
|
2179
|
+
extraStorageM2?: CartDeliveryLocationInputDtoExtraStorageM2;
|
|
2180
|
+
/**
|
|
2181
|
+
* Opaque provider-specific id; requires servicePointProvider alongside it.
|
|
2182
|
+
* @nullable
|
|
2183
|
+
*/
|
|
2184
|
+
servicePointId?: CartDeliveryLocationInputDtoServicePointId;
|
|
2185
|
+
/**
|
|
2186
|
+
* Required alongside servicePointId.
|
|
2187
|
+
* @nullable
|
|
2188
|
+
*/
|
|
2189
|
+
servicePointProvider?: CartDeliveryLocationInputDtoServicePointProvider;
|
|
2190
|
+
}
|
|
2011
2191
|
/**
|
|
2012
2192
|
* @nullable
|
|
2013
2193
|
*/
|
|
@@ -2139,7 +2319,7 @@ export type UpdateCartDtoPickup = CartLocationInputDto | null;
|
|
|
2139
2319
|
/**
|
|
2140
2320
|
* @nullable
|
|
2141
2321
|
*/
|
|
2142
|
-
export type UpdateCartDtoDelivery =
|
|
2322
|
+
export type UpdateCartDtoDelivery = CartDeliveryLocationInputDto | null;
|
|
2143
2323
|
/**
|
|
2144
2324
|
* @nullable
|
|
2145
2325
|
*/
|
|
@@ -2187,6 +2367,15 @@ export interface ClaimCartDto {
|
|
|
2187
2367
|
/** Staff claim-on-behalf target organization. Org users always claim into their own organization. */
|
|
2188
2368
|
organizationId?: string;
|
|
2189
2369
|
}
|
|
2370
|
+
/**
|
|
2371
|
+
* Which cart component this hold is for. Omit for the legacy single-component behavior (the move itself) — a cart's leg-producing holds must be either all omitted or all explicit, never mixed.
|
|
2372
|
+
*/
|
|
2373
|
+
export type HoldTimeslotDtoComponentKey = typeof HoldTimeslotDtoComponentKey[keyof typeof HoldTimeslotDtoComponentKey];
|
|
2374
|
+
export declare const HoldTimeslotDtoComponentKey: {
|
|
2375
|
+
readonly 'move:pickup': "move:pickup";
|
|
2376
|
+
readonly 'move:delivery': "move:delivery";
|
|
2377
|
+
readonly 'material:delivery': "material:delivery";
|
|
2378
|
+
};
|
|
2190
2379
|
/**
|
|
2191
2380
|
* @nullable
|
|
2192
2381
|
*/
|
|
@@ -2203,6 +2392,8 @@ export interface HoldTimeslotDto {
|
|
|
2203
2392
|
expectedRevision: number;
|
|
2204
2393
|
/** transport_slot id to draw capacity from */
|
|
2205
2394
|
timeslotId: string;
|
|
2395
|
+
/** Which cart component this hold is for. Omit for the legacy single-component behavior (the move itself) — a cart's leg-producing holds must be either all omitted or all explicit, never mixed. */
|
|
2396
|
+
componentKey?: HoldTimeslotDtoComponentKey;
|
|
2206
2397
|
/** @minimum 1 */
|
|
2207
2398
|
quantityOrders?: number;
|
|
2208
2399
|
/** @nullable */
|
|
@@ -7372,6 +7563,95 @@ export interface NotificationRuleDto {
|
|
|
7372
7563
|
createdAt: string;
|
|
7373
7564
|
updatedAt: string;
|
|
7374
7565
|
}
|
|
7566
|
+
export type CreateNotificationRuleDtoChannel = typeof CreateNotificationRuleDtoChannel[keyof typeof CreateNotificationRuleDtoChannel];
|
|
7567
|
+
export declare const CreateNotificationRuleDtoChannel: {
|
|
7568
|
+
readonly email: "email";
|
|
7569
|
+
readonly sms: "sms";
|
|
7570
|
+
readonly push: "push";
|
|
7571
|
+
readonly webhook: "webhook";
|
|
7572
|
+
};
|
|
7573
|
+
/**
|
|
7574
|
+
* Defaults to the event's category. Only operational ↔ transactional relabelling is permitted (02 §3).
|
|
7575
|
+
*/
|
|
7576
|
+
export type CreateNotificationRuleDtoCategory = typeof CreateNotificationRuleDtoCategory[keyof typeof CreateNotificationRuleDtoCategory];
|
|
7577
|
+
export declare const CreateNotificationRuleDtoCategory: {
|
|
7578
|
+
readonly marketing: "marketing";
|
|
7579
|
+
readonly operational: "operational";
|
|
7580
|
+
readonly transactional: "transactional";
|
|
7581
|
+
readonly billing: "billing";
|
|
7582
|
+
readonly security: "security";
|
|
7583
|
+
readonly system: "system";
|
|
7584
|
+
};
|
|
7585
|
+
/**
|
|
7586
|
+
* NULL falls back to the platform system template for (event, channel, locale).
|
|
7587
|
+
*/
|
|
7588
|
+
export type CreateNotificationRuleDtoNotificationTemplateId = {
|
|
7589
|
+
[key: string]: unknown;
|
|
7590
|
+
};
|
|
7591
|
+
export interface CreateNotificationRuleDto {
|
|
7592
|
+
/** Must exist in the event catalog and not be retired. */
|
|
7593
|
+
eventKey: string;
|
|
7594
|
+
/** The contract version to pin to. Defaults to the event's active version — the rule stays on it until an explicit migration. */
|
|
7595
|
+
eventVersion?: number;
|
|
7596
|
+
channel: CreateNotificationRuleDtoChannel;
|
|
7597
|
+
/** Defaults to the event's category. Only operational ↔ transactional relabelling is permitted (02 §3). */
|
|
7598
|
+
category?: CreateNotificationRuleDtoCategory;
|
|
7599
|
+
/** NULL falls back to the platform system template for (event, channel, locale). */
|
|
7600
|
+
notificationTemplateId?: CreateNotificationRuleDtoNotificationTemplateId;
|
|
7601
|
+
/** Validated against the pinned version's contractPaths at save (02 §5). */
|
|
7602
|
+
recipients: RecipientSpecDto[];
|
|
7603
|
+
}
|
|
7604
|
+
export type UpdateNotificationRuleDtoCategory = typeof UpdateNotificationRuleDtoCategory[keyof typeof UpdateNotificationRuleDtoCategory];
|
|
7605
|
+
export declare const UpdateNotificationRuleDtoCategory: {
|
|
7606
|
+
readonly marketing: "marketing";
|
|
7607
|
+
readonly operational: "operational";
|
|
7608
|
+
readonly transactional: "transactional";
|
|
7609
|
+
readonly billing: "billing";
|
|
7610
|
+
readonly security: "security";
|
|
7611
|
+
readonly system: "system";
|
|
7612
|
+
};
|
|
7613
|
+
export interface UpdateNotificationRuleDto {
|
|
7614
|
+
/** Migrate the rule to another contract version. Rejected (`event_version_migration_invalid`) when a recipient path or a template variable does not exist there. */
|
|
7615
|
+
eventVersion?: number;
|
|
7616
|
+
category?: UpdateNotificationRuleDtoCategory;
|
|
7617
|
+
/** @nullable */
|
|
7618
|
+
notificationTemplateId?: string | null;
|
|
7619
|
+
recipients?: RecipientSpecDto[];
|
|
7620
|
+
}
|
|
7621
|
+
export interface EnableRuleDto {
|
|
7622
|
+
/** The estimate shown in the confirmation panel (from `GET …/recipient-estimate`). */
|
|
7623
|
+
confirmedRecipientEstimate: number;
|
|
7624
|
+
/** Required above the typed-confirmation threshold: the tenant slug, typed by the admin. */
|
|
7625
|
+
typedConfirmation?: string;
|
|
7626
|
+
}
|
|
7627
|
+
export type RecipientSpecEstimateDtoKind = typeof RecipientSpecEstimateDtoKind[keyof typeof RecipientSpecEstimateDtoKind];
|
|
7628
|
+
export declare const RecipientSpecEstimateDtoKind: {
|
|
7629
|
+
readonly event_field: "event_field";
|
|
7630
|
+
readonly org_contact_role: "org_contact_role";
|
|
7631
|
+
readonly tenant_role: "tenant_role";
|
|
7632
|
+
readonly static_email: "static_email";
|
|
7633
|
+
readonly static_phone: "static_phone";
|
|
7634
|
+
};
|
|
7635
|
+
export interface RecipientSpecEstimateDto {
|
|
7636
|
+
/** Index into the rule's recipients array. */
|
|
7637
|
+
specIndex: number;
|
|
7638
|
+
kind: RecipientSpecEstimateDtoKind;
|
|
7639
|
+
/** Addresses this spec resolves to per event. */
|
|
7640
|
+
estimate: number;
|
|
7641
|
+
}
|
|
7642
|
+
export type RecipientEstimateDtoBasis = typeof RecipientEstimateDtoBasis[keyof typeof RecipientEstimateDtoBasis];
|
|
7643
|
+
export declare const RecipientEstimateDtoBasis: {
|
|
7644
|
+
readonly recent_events: "recent_events";
|
|
7645
|
+
readonly preview_data: "preview_data";
|
|
7646
|
+
};
|
|
7647
|
+
export interface RecipientEstimateDto {
|
|
7648
|
+
/** Addresses one firing of this event would reach. */
|
|
7649
|
+
estimate: number;
|
|
7650
|
+
/** How many sample events the estimate averaged over. */
|
|
7651
|
+
sampleSize: number;
|
|
7652
|
+
basis: RecipientEstimateDtoBasis;
|
|
7653
|
+
perSpec: RecipientSpecEstimateDto[];
|
|
7654
|
+
}
|
|
7375
7655
|
export type NotificationTemplateDtoChannel = typeof NotificationTemplateDtoChannel[keyof typeof NotificationTemplateDtoChannel];
|
|
7376
7656
|
export declare const NotificationTemplateDtoChannel: {
|
|
7377
7657
|
readonly email: "email";
|
|
@@ -7411,6 +7691,23 @@ export interface PaginatedNotificationTemplatesDto {
|
|
|
7411
7691
|
/** Effective rows skipped applied. */
|
|
7412
7692
|
offset: number;
|
|
7413
7693
|
}
|
|
7694
|
+
export type CreateNotificationTemplateDtoChannel = typeof CreateNotificationTemplateDtoChannel[keyof typeof CreateNotificationTemplateDtoChannel];
|
|
7695
|
+
export declare const CreateNotificationTemplateDtoChannel: {
|
|
7696
|
+
readonly email: "email";
|
|
7697
|
+
readonly sms: "sms";
|
|
7698
|
+
readonly push: "push";
|
|
7699
|
+
readonly webhook: "webhook";
|
|
7700
|
+
};
|
|
7701
|
+
export interface CreateNotificationTemplateDto {
|
|
7702
|
+
eventKey: string;
|
|
7703
|
+
channel: CreateNotificationTemplateDtoChannel;
|
|
7704
|
+
locale?: string;
|
|
7705
|
+
name: string;
|
|
7706
|
+
/** NULL = the tenant default; set = that organization's override. */
|
|
7707
|
+
organizationId?: string;
|
|
7708
|
+
/** Clone this template's published content into the first draft — the Customize action on a system template, and the tenant-default → org-override path. */
|
|
7709
|
+
sourceTemplateId?: string;
|
|
7710
|
+
}
|
|
7414
7711
|
export type TemplateVersionSummaryDtoLifecycleStatus = typeof TemplateVersionSummaryDtoLifecycleStatus[keyof typeof TemplateVersionSummaryDtoLifecycleStatus];
|
|
7415
7712
|
export declare const TemplateVersionSummaryDtoLifecycleStatus: {
|
|
7416
7713
|
readonly draft: "draft";
|
|
@@ -7459,6 +7756,191 @@ export interface NotificationTemplateDetailDto {
|
|
|
7459
7756
|
updatedAt: string;
|
|
7460
7757
|
versions: TemplateVersionSummaryDto[];
|
|
7461
7758
|
}
|
|
7759
|
+
export interface UpdateNotificationTemplateDto {
|
|
7760
|
+
/** The only mutable field: event, channel, locale and organization are the template's identity. */
|
|
7761
|
+
name: string;
|
|
7762
|
+
}
|
|
7763
|
+
export interface CreateTemplateVersionDto {
|
|
7764
|
+
/** Start from this version's content. Cloning an ARCHIVED version is the rollback-with-edits path; the archived row itself is never mutated. */
|
|
7765
|
+
cloneFromVersionId?: string;
|
|
7766
|
+
/** The contract version to author against. Defaults to the cloned version's, else the event's active version. */
|
|
7767
|
+
eventVersion?: number;
|
|
7768
|
+
}
|
|
7769
|
+
export type TemplateVersionDtoLifecycleStatus = typeof TemplateVersionDtoLifecycleStatus[keyof typeof TemplateVersionDtoLifecycleStatus];
|
|
7770
|
+
export declare const TemplateVersionDtoLifecycleStatus: {
|
|
7771
|
+
readonly draft: "draft";
|
|
7772
|
+
readonly published: "published";
|
|
7773
|
+
readonly archived: "archived";
|
|
7774
|
+
};
|
|
7775
|
+
/**
|
|
7776
|
+
* @nullable
|
|
7777
|
+
*/
|
|
7778
|
+
export type TemplateVersionDtoPreviewData = {
|
|
7779
|
+
[key: string]: unknown;
|
|
7780
|
+
} | null;
|
|
7781
|
+
export interface TemplateVersionDto {
|
|
7782
|
+
notificationTemplateVersionId: string;
|
|
7783
|
+
notificationTemplateId: string;
|
|
7784
|
+
version: number;
|
|
7785
|
+
lifecycleStatus: TemplateVersionDtoLifecycleStatus;
|
|
7786
|
+
eventVersion: number;
|
|
7787
|
+
createdAt: string;
|
|
7788
|
+
/** @nullable */
|
|
7789
|
+
publishedAt: string | null;
|
|
7790
|
+
/** @nullable */
|
|
7791
|
+
archivedAt: string | null;
|
|
7792
|
+
/** @nullable */
|
|
7793
|
+
subject: string | null;
|
|
7794
|
+
/** @nullable */
|
|
7795
|
+
preheader: string | null;
|
|
7796
|
+
/** @nullable */
|
|
7797
|
+
bodyHtml: string | null;
|
|
7798
|
+
/** @nullable */
|
|
7799
|
+
bodyText: string | null;
|
|
7800
|
+
referencedVariables: string[];
|
|
7801
|
+
/** @nullable */
|
|
7802
|
+
previewData: TemplateVersionDtoPreviewData;
|
|
7803
|
+
/** @nullable */
|
|
7804
|
+
fromAddress: string | null;
|
|
7805
|
+
/** @nullable */
|
|
7806
|
+
replyTo: string | null;
|
|
7807
|
+
}
|
|
7808
|
+
/**
|
|
7809
|
+
* Sample payload for preview and test-send — contract-validated against eventVersion.
|
|
7810
|
+
*/
|
|
7811
|
+
export type UpdateTemplateVersionDtoPreviewData = {
|
|
7812
|
+
[key: string]: unknown;
|
|
7813
|
+
};
|
|
7814
|
+
export interface UpdateTemplateVersionDto {
|
|
7815
|
+
/**
|
|
7816
|
+
* @maxLength 500
|
|
7817
|
+
* @nullable
|
|
7818
|
+
*/
|
|
7819
|
+
subject?: string | null;
|
|
7820
|
+
/** @nullable */
|
|
7821
|
+
preheader?: string | null;
|
|
7822
|
+
/**
|
|
7823
|
+
* Raw HTML — requires the `template:author_html` capability (04 §5.1).
|
|
7824
|
+
* @nullable
|
|
7825
|
+
*/
|
|
7826
|
+
bodyHtml?: string | null;
|
|
7827
|
+
/**
|
|
7828
|
+
* The plain-text alternative for email; THE message for SMS.
|
|
7829
|
+
* @nullable
|
|
7830
|
+
*/
|
|
7831
|
+
bodyText?: string | null;
|
|
7832
|
+
/** @nullable */
|
|
7833
|
+
fromAddress?: string | null;
|
|
7834
|
+
/** @nullable */
|
|
7835
|
+
replyTo?: string | null;
|
|
7836
|
+
/** Sample payload for preview and test-send — contract-validated against eventVersion. */
|
|
7837
|
+
previewData?: UpdateTemplateVersionDtoPreviewData;
|
|
7838
|
+
/** Re-target the draft at another contract version. */
|
|
7839
|
+
eventVersion?: number;
|
|
7840
|
+
}
|
|
7841
|
+
/**
|
|
7842
|
+
* Defaults to the version's previewData; a supplied payload is contract-validated first.
|
|
7843
|
+
*/
|
|
7844
|
+
export type PreviewTemplateVersionDtoPayload = {
|
|
7845
|
+
[key: string]: unknown;
|
|
7846
|
+
};
|
|
7847
|
+
export interface PreviewTemplateVersionDto {
|
|
7848
|
+
/** Defaults to the version's previewData; a supplied payload is contract-validated first. */
|
|
7849
|
+
payload?: PreviewTemplateVersionDtoPayload;
|
|
7850
|
+
}
|
|
7851
|
+
export type SanitizationWarningDtoKind = typeof SanitizationWarningDtoKind[keyof typeof SanitizationWarningDtoKind];
|
|
7852
|
+
export declare const SanitizationWarningDtoKind: {
|
|
7853
|
+
readonly stripped_tag: "stripped_tag";
|
|
7854
|
+
readonly stripped_attribute: "stripped_attribute";
|
|
7855
|
+
readonly stripped_style: "stripped_style";
|
|
7856
|
+
};
|
|
7857
|
+
export interface SanitizationWarningDto {
|
|
7858
|
+
kind: SanitizationWarningDtoKind;
|
|
7859
|
+
detail: string;
|
|
7860
|
+
}
|
|
7861
|
+
export interface TemplatePreviewDto {
|
|
7862
|
+
subject: string;
|
|
7863
|
+
html: string;
|
|
7864
|
+
text: string;
|
|
7865
|
+
/** SMS only: the segment count for this render. */
|
|
7866
|
+
smsSegments?: number;
|
|
7867
|
+
sanitizationWarnings: SanitizationWarningDto[];
|
|
7868
|
+
links: string[];
|
|
7869
|
+
/** Engine errors. A non-empty list means the version cannot render this payload. */
|
|
7870
|
+
renderErrors: string[];
|
|
7871
|
+
}
|
|
7872
|
+
/**
|
|
7873
|
+
* Defaults to the version's previewData.
|
|
7874
|
+
*/
|
|
7875
|
+
export type TestSendDtoPayload = {
|
|
7876
|
+
[key: string]: unknown;
|
|
7877
|
+
};
|
|
7878
|
+
export interface TestSendDto {
|
|
7879
|
+
/** Format-validated per channel. */
|
|
7880
|
+
to: string;
|
|
7881
|
+
/** Defaults to the version's previewData. */
|
|
7882
|
+
payload?: TestSendDtoPayload;
|
|
7883
|
+
}
|
|
7884
|
+
/**
|
|
7885
|
+
* `suppressed` when the address carries an active suppression: the row is written terminal, not sent. A test cannot punch through a hard block.
|
|
7886
|
+
*/
|
|
7887
|
+
export type TestSendResultDtoGateOutcome = typeof TestSendResultDtoGateOutcome[keyof typeof TestSendResultDtoGateOutcome];
|
|
7888
|
+
export declare const TestSendResultDtoGateOutcome: {
|
|
7889
|
+
readonly queued: "queued";
|
|
7890
|
+
readonly suppressed: "suppressed";
|
|
7891
|
+
};
|
|
7892
|
+
export interface TestSendResultDto {
|
|
7893
|
+
notificationDispatchId: string;
|
|
7894
|
+
/** `suppressed` when the address carries an active suppression: the row is written terminal, not sent. A test cannot punch through a hard block. */
|
|
7895
|
+
gateOutcome: TestSendResultDtoGateOutcome;
|
|
7896
|
+
}
|
|
7897
|
+
export interface PublishFailureDto {
|
|
7898
|
+
/** The 02 §4.2 check that failed. */
|
|
7899
|
+
gate: string;
|
|
7900
|
+
detail: string;
|
|
7901
|
+
/** The content field the failure is in. */
|
|
7902
|
+
field?: string;
|
|
7903
|
+
}
|
|
7904
|
+
export type PublishedTemplateVersionDtoLifecycleStatus = typeof PublishedTemplateVersionDtoLifecycleStatus[keyof typeof PublishedTemplateVersionDtoLifecycleStatus];
|
|
7905
|
+
export declare const PublishedTemplateVersionDtoLifecycleStatus: {
|
|
7906
|
+
readonly draft: "draft";
|
|
7907
|
+
readonly published: "published";
|
|
7908
|
+
readonly archived: "archived";
|
|
7909
|
+
};
|
|
7910
|
+
/**
|
|
7911
|
+
* @nullable
|
|
7912
|
+
*/
|
|
7913
|
+
export type PublishedTemplateVersionDtoPreviewData = {
|
|
7914
|
+
[key: string]: unknown;
|
|
7915
|
+
} | null;
|
|
7916
|
+
export interface PublishedTemplateVersionDto {
|
|
7917
|
+
notificationTemplateVersionId: string;
|
|
7918
|
+
notificationTemplateId: string;
|
|
7919
|
+
version: number;
|
|
7920
|
+
lifecycleStatus: PublishedTemplateVersionDtoLifecycleStatus;
|
|
7921
|
+
eventVersion: number;
|
|
7922
|
+
createdAt: string;
|
|
7923
|
+
/** @nullable */
|
|
7924
|
+
publishedAt: string | null;
|
|
7925
|
+
/** @nullable */
|
|
7926
|
+
archivedAt: string | null;
|
|
7927
|
+
/** @nullable */
|
|
7928
|
+
subject: string | null;
|
|
7929
|
+
/** @nullable */
|
|
7930
|
+
preheader: string | null;
|
|
7931
|
+
/** @nullable */
|
|
7932
|
+
bodyHtml: string | null;
|
|
7933
|
+
/** @nullable */
|
|
7934
|
+
bodyText: string | null;
|
|
7935
|
+
referencedVariables: string[];
|
|
7936
|
+
/** @nullable */
|
|
7937
|
+
previewData: PublishedTemplateVersionDtoPreviewData;
|
|
7938
|
+
/** @nullable */
|
|
7939
|
+
fromAddress: string | null;
|
|
7940
|
+
/** @nullable */
|
|
7941
|
+
replyTo: string | null;
|
|
7942
|
+
warnings: PublishFailureDto[];
|
|
7943
|
+
}
|
|
7462
7944
|
export type PreferenceDtoCategory = typeof PreferenceDtoCategory[keyof typeof PreferenceDtoCategory];
|
|
7463
7945
|
export declare const PreferenceDtoCategory: {
|
|
7464
7946
|
readonly marketing: "marketing";
|
|
@@ -8767,6 +9249,25 @@ export declare const LookupsControllerListV1Kind: {
|
|
|
8767
9249
|
readonly 'transport-slot-kind': "transport-slot-kind";
|
|
8768
9250
|
readonly 'organization-type': "organization-type";
|
|
8769
9251
|
};
|
|
9252
|
+
export type ServicePointsControllerListV1Params = {
|
|
9253
|
+
/**
|
|
9254
|
+
* Postal code to search near.
|
|
9255
|
+
*/
|
|
9256
|
+
zipCode?: string;
|
|
9257
|
+
/**
|
|
9258
|
+
* ISO 3166-1 alpha-2
|
|
9259
|
+
*/
|
|
9260
|
+
countryCode?: string;
|
|
9261
|
+
provider?: ServicePointsControllerListV1Provider;
|
|
9262
|
+
/**
|
|
9263
|
+
* Provider-specific service-point type filter.
|
|
9264
|
+
*/
|
|
9265
|
+
type?: string;
|
|
9266
|
+
};
|
|
9267
|
+
export type ServicePointsControllerListV1Provider = typeof ServicePointsControllerListV1Provider[keyof typeof ServicePointsControllerListV1Provider];
|
|
9268
|
+
export declare const ServicePointsControllerListV1Provider: {
|
|
9269
|
+
readonly POSTI: "POSTI";
|
|
9270
|
+
};
|
|
8770
9271
|
export type IntegrationsControllerGetByIdV1200 = StripeAccountDto | FortnoxAccountDto;
|
|
8771
9272
|
export type BillingAccountsControllerListAccountsV1Params = {
|
|
8772
9273
|
/**
|