@shoppexio/storefront 1.0.109 → 1.0.110
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 +6 -0
- package/dist/{chunk-RA26HK3B.js → chunk-ZO3MHBVV.js} +12 -1
- package/dist/{chunk-RA26HK3B.js.map → chunk-ZO3MHBVV.js.map} +1 -1
- package/dist/customer.cjs +11 -0
- package/dist/customer.cjs.map +1 -1
- package/dist/customer.js +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -353,6 +353,8 @@ interface Product {
|
|
|
353
353
|
terms_of_service?: string | null;
|
|
354
354
|
warranty?: number;
|
|
355
355
|
warranty_text?: string | null;
|
|
356
|
+
/** The warranty a buyer claims per purchase in their account, in days; null for none. */
|
|
357
|
+
warranty_period_days?: number | null;
|
|
356
358
|
sort_priority?: number;
|
|
357
359
|
pay_what_you_want?: boolean | number;
|
|
358
360
|
video_link?: string | null;
|
|
@@ -363,6 +365,10 @@ interface ProductFeedback {
|
|
|
363
365
|
neutral: number;
|
|
364
366
|
negative: number;
|
|
365
367
|
numbers?: Record<number, number>;
|
|
368
|
+
/** Reviews among `total` written on a delivered order; absent from an API that predates it. */
|
|
369
|
+
verified?: number;
|
|
370
|
+
/** The `verified` reviews' own average, one decimal; null when none is verified. */
|
|
371
|
+
verified_average?: number | null;
|
|
366
372
|
list?: Array<{
|
|
367
373
|
score: number;
|
|
368
374
|
message: string | null;
|
|
@@ -493,6 +499,10 @@ interface ShopReviewsSummary {
|
|
|
493
499
|
neutral: number;
|
|
494
500
|
negative: number;
|
|
495
501
|
average_score: number | null;
|
|
502
|
+
/** Reviews among `total` written on a delivered order; absent from an API that predates it. */
|
|
503
|
+
verified?: number;
|
|
504
|
+
/** The `verified` reviews' own 1-5 average, null when none is verified. */
|
|
505
|
+
verified_average_score?: number | null;
|
|
496
506
|
}
|
|
497
507
|
interface ShopReviewsPage {
|
|
498
508
|
feedback: Feedback[];
|
|
@@ -813,6 +823,8 @@ interface StorefrontOnlineUsers {
|
|
|
813
823
|
}
|
|
814
824
|
interface StorefrontRecentSaleEntry {
|
|
815
825
|
product_title: string;
|
|
826
|
+
/** The sold product's public id (`Product.uniqid`), to link the sale; absent until the API that sends it is deployed. */
|
|
827
|
+
product_uniqid?: string;
|
|
816
828
|
seconds_ago: number;
|
|
817
829
|
}
|
|
818
830
|
interface StorefrontRecentSales {
|
package/dist/index.d.ts
CHANGED
|
@@ -353,6 +353,8 @@ interface Product {
|
|
|
353
353
|
terms_of_service?: string | null;
|
|
354
354
|
warranty?: number;
|
|
355
355
|
warranty_text?: string | null;
|
|
356
|
+
/** The warranty a buyer claims per purchase in their account, in days; null for none. */
|
|
357
|
+
warranty_period_days?: number | null;
|
|
356
358
|
sort_priority?: number;
|
|
357
359
|
pay_what_you_want?: boolean | number;
|
|
358
360
|
video_link?: string | null;
|
|
@@ -363,6 +365,10 @@ interface ProductFeedback {
|
|
|
363
365
|
neutral: number;
|
|
364
366
|
negative: number;
|
|
365
367
|
numbers?: Record<number, number>;
|
|
368
|
+
/** Reviews among `total` written on a delivered order; absent from an API that predates it. */
|
|
369
|
+
verified?: number;
|
|
370
|
+
/** The `verified` reviews' own average, one decimal; null when none is verified. */
|
|
371
|
+
verified_average?: number | null;
|
|
366
372
|
list?: Array<{
|
|
367
373
|
score: number;
|
|
368
374
|
message: string | null;
|
|
@@ -493,6 +499,10 @@ interface ShopReviewsSummary {
|
|
|
493
499
|
neutral: number;
|
|
494
500
|
negative: number;
|
|
495
501
|
average_score: number | null;
|
|
502
|
+
/** Reviews among `total` written on a delivered order; absent from an API that predates it. */
|
|
503
|
+
verified?: number;
|
|
504
|
+
/** The `verified` reviews' own 1-5 average, null when none is verified. */
|
|
505
|
+
verified_average_score?: number | null;
|
|
496
506
|
}
|
|
497
507
|
interface ShopReviewsPage {
|
|
498
508
|
feedback: Feedback[];
|
|
@@ -813,6 +823,8 @@ interface StorefrontOnlineUsers {
|
|
|
813
823
|
}
|
|
814
824
|
interface StorefrontRecentSaleEntry {
|
|
815
825
|
product_title: string;
|
|
826
|
+
/** The sold product's public id (`Product.uniqid`), to link the sale; absent until the API that sends it is deployed. */
|
|
827
|
+
product_uniqid?: string;
|
|
816
828
|
seconds_ago: number;
|
|
817
829
|
}
|
|
818
830
|
interface StorefrontRecentSales {
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
customerWarrantyClaimSchema,
|
|
11
11
|
customerWarrantyListSchema,
|
|
12
12
|
storefrontStorageKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZO3MHBVV.js";
|
|
14
14
|
|
|
15
15
|
// ../sdk/src/core/errors.ts
|
|
16
16
|
var CURRENCY_UNAVAILABLE_ERROR_CODE = "errors.storefront.currency_unavailable";
|