@mitumba/sdk 2.1.0 → 3.0.0
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/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2077,7 +2077,9 @@ interface Review {
|
|
|
2077
2077
|
interface CreateReviewInput {
|
|
2078
2078
|
rating: number;
|
|
2079
2079
|
comment?: string;
|
|
2080
|
-
|
|
2080
|
+
/** The delivered/completed order being reviewed. Required: the server rejects a review without it,
|
|
2081
|
+
* and each order may be reviewed at most once. */
|
|
2082
|
+
order_id: string;
|
|
2081
2083
|
}
|
|
2082
2084
|
interface ReviewableOrder {
|
|
2083
2085
|
order_id: string;
|
|
@@ -2995,7 +2997,11 @@ declare class ReviewsModule {
|
|
|
2995
2997
|
page: number;
|
|
2996
2998
|
}>;
|
|
2997
2999
|
/**
|
|
2998
|
-
* Create a review for a store (authenticated).
|
|
3000
|
+
* Create a review for a store (authenticated). `input.order_id` is required.
|
|
3001
|
+
*
|
|
3002
|
+
* @throws {APIError} `review_not_allowed` when the order is not the caller's delivered/completed
|
|
3003
|
+
* purchase from this store, and `already_reviewed` when the order already has a review (one
|
|
3004
|
+
* review per order, enforced atomically server-side).
|
|
2999
3005
|
*/
|
|
3000
3006
|
create(storeId: string, input: CreateReviewInput, options?: RequestOptions): Promise<{
|
|
3001
3007
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2077,7 +2077,9 @@ interface Review {
|
|
|
2077
2077
|
interface CreateReviewInput {
|
|
2078
2078
|
rating: number;
|
|
2079
2079
|
comment?: string;
|
|
2080
|
-
|
|
2080
|
+
/** The delivered/completed order being reviewed. Required: the server rejects a review without it,
|
|
2081
|
+
* and each order may be reviewed at most once. */
|
|
2082
|
+
order_id: string;
|
|
2081
2083
|
}
|
|
2082
2084
|
interface ReviewableOrder {
|
|
2083
2085
|
order_id: string;
|
|
@@ -2995,7 +2997,11 @@ declare class ReviewsModule {
|
|
|
2995
2997
|
page: number;
|
|
2996
2998
|
}>;
|
|
2997
2999
|
/**
|
|
2998
|
-
* Create a review for a store (authenticated).
|
|
3000
|
+
* Create a review for a store (authenticated). `input.order_id` is required.
|
|
3001
|
+
*
|
|
3002
|
+
* @throws {APIError} `review_not_allowed` when the order is not the caller's delivered/completed
|
|
3003
|
+
* purchase from this store, and `already_reviewed` when the order already has a review (one
|
|
3004
|
+
* review per order, enforced atomically server-side).
|
|
2999
3005
|
*/
|
|
3000
3006
|
create(storeId: string, input: CreateReviewInput, options?: RequestOptions): Promise<{
|
|
3001
3007
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -1737,7 +1737,11 @@ var ReviewsModule = class {
|
|
|
1737
1737
|
);
|
|
1738
1738
|
}
|
|
1739
1739
|
/**
|
|
1740
|
-
* Create a review for a store (authenticated).
|
|
1740
|
+
* Create a review for a store (authenticated). `input.order_id` is required.
|
|
1741
|
+
*
|
|
1742
|
+
* @throws {APIError} `review_not_allowed` when the order is not the caller's delivered/completed
|
|
1743
|
+
* purchase from this store, and `already_reviewed` when the order already has a review (one
|
|
1744
|
+
* review per order, enforced atomically server-side).
|
|
1741
1745
|
*/
|
|
1742
1746
|
async create(storeId, input, options) {
|
|
1743
1747
|
return this.client.post(`/listings/stores/${storeId}/reviews`, input, options);
|