feeef 0.12.2 → 0.12.4
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/build/index.js
CHANGED
|
@@ -3009,6 +3009,31 @@ var StoreTemplatesRepository = class extends ModelRepository {
|
|
|
3009
3009
|
const res = await this.client.post(`/${this.resource}/${templateId}/releases`, input);
|
|
3010
3010
|
return res.data;
|
|
3011
3011
|
}
|
|
3012
|
+
/** Public render payload for historical / marketing preview (no auth required for public listings). */
|
|
3013
|
+
async renderRelease(templateId, releaseId) {
|
|
3014
|
+
const res = await this.client.get(
|
|
3015
|
+
`/${this.resource}/${templateId}/releases/${releaseId}/render`
|
|
3016
|
+
);
|
|
3017
|
+
return res.data;
|
|
3018
|
+
}
|
|
3019
|
+
async listReviews(templateId, options) {
|
|
3020
|
+
const res = await this.client.get(`/${this.resource}/${templateId}/reviews`, {
|
|
3021
|
+
params: options
|
|
3022
|
+
});
|
|
3023
|
+
return res.data;
|
|
3024
|
+
}
|
|
3025
|
+
async upsertReview(options) {
|
|
3026
|
+
const res = await this.client.post(`/${this.resource}/${options.templateId}/reviews`, {
|
|
3027
|
+
storeId: options.storeId,
|
|
3028
|
+
rating: options.rating,
|
|
3029
|
+
body: options.body ?? null
|
|
3030
|
+
});
|
|
3031
|
+
return res.data;
|
|
3032
|
+
}
|
|
3033
|
+
async earnings() {
|
|
3034
|
+
const res = await this.client.get(`/store_templates_earnings`);
|
|
3035
|
+
return res.data;
|
|
3036
|
+
}
|
|
3012
3037
|
/** GET locales bundle (`defaultLocale`, `locales`, `messages`). */
|
|
3013
3038
|
async listLocales(templateId) {
|
|
3014
3039
|
const res = await this.client.get(`/${this.resource}/${templateId}/locales`);
|