@applite/js-sdk 0.0.14 → 0.0.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/index.mjs CHANGED
@@ -550,8 +550,8 @@ var _TestimonyApi = class _TestimonyApi {
550
550
  * Customer: Submit a new testimony (status will be PENDING)
551
551
  */
552
552
  async submit(params) {
553
- const { appApiKey, ...rest } = params;
554
- return this.http.post(`/testimony/submit`, {
553
+ const { appId, appApiKey, ...rest } = params;
554
+ return this.http.post(`/app/${appId}/testimony/submit`, {
555
555
  appApiKey,
556
556
  ...rest
557
557
  });
@@ -560,7 +560,8 @@ var _TestimonyApi = class _TestimonyApi {
560
560
  * Public: List approved testimonies
561
561
  */
562
562
  async listPublic(params) {
563
- return this.http.post(`/testimony/public`, params);
563
+ const { appId, ...rest } = params;
564
+ return this.http.post(`/app/${appId}/testimony/public`, rest);
564
565
  }
565
566
  };
566
567
  __name(_TestimonyApi, "TestimonyApi");