@shoppexio/storefront 1.0.89 → 1.0.90
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/CHANGELOG.md +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -155,6 +155,12 @@ interface Shop {
|
|
|
155
155
|
feedback?: ShopFeedback;
|
|
156
156
|
trusted_checks?: TrustedChecks | null;
|
|
157
157
|
available_gateways?: string[];
|
|
158
|
+
payment_methods?: Array<{
|
|
159
|
+
id: string;
|
|
160
|
+
label: string;
|
|
161
|
+
kind: 'card' | 'wallet' | 'crypto';
|
|
162
|
+
}>;
|
|
163
|
+
stock_alerts_enabled?: boolean;
|
|
158
164
|
payment_gateways_fees?: unknown[];
|
|
159
165
|
reward_program_summary?: RewardProgramSummary | null;
|
|
160
166
|
}
|
|
@@ -221,6 +227,20 @@ interface Product {
|
|
|
221
227
|
title: string;
|
|
222
228
|
slug?: string | null;
|
|
223
229
|
description?: string | null;
|
|
230
|
+
/** One plain-text line the merchant wrote for under the title; null when unset. */
|
|
231
|
+
short_description?: string | null;
|
|
232
|
+
/** The merchant's word for one / several delivered units of a SERIALS product ("License key"); null when unset. */
|
|
233
|
+
label_singular?: string | null;
|
|
234
|
+
label_plural?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* The merchant's explicit service status for storefront `/status` pages; null
|
|
237
|
+
* when they set none (the product is then not listed there).
|
|
238
|
+
*/
|
|
239
|
+
service_status?: {
|
|
240
|
+
state: 'operational' | 'updating' | 'detected' | 'offline';
|
|
241
|
+
note: string | null;
|
|
242
|
+
updated_at: string;
|
|
243
|
+
} | null;
|
|
224
244
|
/** Merchant-defined description tabs; present when the shop configured them. */
|
|
225
245
|
description_tabs?: ProductDescriptionTab[];
|
|
226
246
|
product_highlights?: string[];
|
|
@@ -409,6 +429,8 @@ interface PriceVariant {
|
|
|
409
429
|
id: string;
|
|
410
430
|
label?: string;
|
|
411
431
|
title?: string;
|
|
432
|
+
/** The merchant's one-line note on this option ("1 seat"); absent when unset. */
|
|
433
|
+
description?: string;
|
|
412
434
|
price: number;
|
|
413
435
|
/**
|
|
414
436
|
* RAW local stock for this price variant only. `-1` (or any negative value)
|
package/dist/index.d.ts
CHANGED
|
@@ -155,6 +155,12 @@ interface Shop {
|
|
|
155
155
|
feedback?: ShopFeedback;
|
|
156
156
|
trusted_checks?: TrustedChecks | null;
|
|
157
157
|
available_gateways?: string[];
|
|
158
|
+
payment_methods?: Array<{
|
|
159
|
+
id: string;
|
|
160
|
+
label: string;
|
|
161
|
+
kind: 'card' | 'wallet' | 'crypto';
|
|
162
|
+
}>;
|
|
163
|
+
stock_alerts_enabled?: boolean;
|
|
158
164
|
payment_gateways_fees?: unknown[];
|
|
159
165
|
reward_program_summary?: RewardProgramSummary | null;
|
|
160
166
|
}
|
|
@@ -221,6 +227,20 @@ interface Product {
|
|
|
221
227
|
title: string;
|
|
222
228
|
slug?: string | null;
|
|
223
229
|
description?: string | null;
|
|
230
|
+
/** One plain-text line the merchant wrote for under the title; null when unset. */
|
|
231
|
+
short_description?: string | null;
|
|
232
|
+
/** The merchant's word for one / several delivered units of a SERIALS product ("License key"); null when unset. */
|
|
233
|
+
label_singular?: string | null;
|
|
234
|
+
label_plural?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* The merchant's explicit service status for storefront `/status` pages; null
|
|
237
|
+
* when they set none (the product is then not listed there).
|
|
238
|
+
*/
|
|
239
|
+
service_status?: {
|
|
240
|
+
state: 'operational' | 'updating' | 'detected' | 'offline';
|
|
241
|
+
note: string | null;
|
|
242
|
+
updated_at: string;
|
|
243
|
+
} | null;
|
|
224
244
|
/** Merchant-defined description tabs; present when the shop configured them. */
|
|
225
245
|
description_tabs?: ProductDescriptionTab[];
|
|
226
246
|
product_highlights?: string[];
|
|
@@ -409,6 +429,8 @@ interface PriceVariant {
|
|
|
409
429
|
id: string;
|
|
410
430
|
label?: string;
|
|
411
431
|
title?: string;
|
|
432
|
+
/** The merchant's one-line note on this option ("1 seat"); absent when unset. */
|
|
433
|
+
description?: string;
|
|
412
434
|
price: number;
|
|
413
435
|
/**
|
|
414
436
|
* RAW local stock for this price variant only. `-1` (or any negative value)
|