@applite/js-sdk 0.0.14 → 0.0.15

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 CHANGED
@@ -2505,6 +2505,7 @@ interface Testimony {
2505
2505
  status: TestimonyStatus;
2506
2506
  sortOrder: number;
2507
2507
  isFeatured: boolean;
2508
+ productId: string | null;
2508
2509
  createdAt: string;
2509
2510
  updatedAt: string;
2510
2511
  }
@@ -2517,6 +2518,7 @@ interface PublicTestimony {
2517
2518
  rating: number;
2518
2519
  comment: string;
2519
2520
  isFeatured: boolean;
2521
+ productId: string | null;
2520
2522
  createdAt: string;
2521
2523
  }
2522
2524
  interface CreateTestimonyParams extends AppScopedParams {
@@ -2530,6 +2532,7 @@ interface CreateTestimonyParams extends AppScopedParams {
2530
2532
  status?: TestimonyStatus;
2531
2533
  sortOrder?: number;
2532
2534
  isFeatured?: boolean;
2535
+ productId?: string | null;
2533
2536
  }
2534
2537
  interface EditTestimonyParams extends AppScopedParams {
2535
2538
  id: string;
@@ -2543,6 +2546,7 @@ interface EditTestimonyParams extends AppScopedParams {
2543
2546
  status?: TestimonyStatus | null;
2544
2547
  sortOrder?: number | null;
2545
2548
  isFeatured?: boolean | null;
2549
+ productId?: string | null;
2546
2550
  }
2547
2551
  interface UpdateTestimonyStatusParams extends AppScopedParams {
2548
2552
  id: string;
@@ -2560,6 +2564,7 @@ interface DeleteTestimonyParams extends AppScopedParams {
2560
2564
  id: string;
2561
2565
  }
2562
2566
  interface CustomerSubmitTestimonyParams {
2567
+ appId: string;
2563
2568
  appApiKey: string;
2564
2569
  customerApiKey: string;
2565
2570
  name: string;
@@ -2569,11 +2574,14 @@ interface CustomerSubmitTestimonyParams {
2569
2574
  role?: string | null;
2570
2575
  rating?: number;
2571
2576
  comment: string;
2577
+ productId?: string | null;
2572
2578
  }
2573
2579
  interface PublicListTestimoniesParams {
2580
+ appId: string;
2574
2581
  appApiKey: string;
2575
2582
  isFeatured?: boolean | null;
2576
2583
  limit?: number;
2584
+ productId?: string | null;
2577
2585
  }
2578
2586
 
2579
2587
  interface TestimonyListResponse {
package/dist/index.d.ts CHANGED
@@ -2505,6 +2505,7 @@ interface Testimony {
2505
2505
  status: TestimonyStatus;
2506
2506
  sortOrder: number;
2507
2507
  isFeatured: boolean;
2508
+ productId: string | null;
2508
2509
  createdAt: string;
2509
2510
  updatedAt: string;
2510
2511
  }
@@ -2517,6 +2518,7 @@ interface PublicTestimony {
2517
2518
  rating: number;
2518
2519
  comment: string;
2519
2520
  isFeatured: boolean;
2521
+ productId: string | null;
2520
2522
  createdAt: string;
2521
2523
  }
2522
2524
  interface CreateTestimonyParams extends AppScopedParams {
@@ -2530,6 +2532,7 @@ interface CreateTestimonyParams extends AppScopedParams {
2530
2532
  status?: TestimonyStatus;
2531
2533
  sortOrder?: number;
2532
2534
  isFeatured?: boolean;
2535
+ productId?: string | null;
2533
2536
  }
2534
2537
  interface EditTestimonyParams extends AppScopedParams {
2535
2538
  id: string;
@@ -2543,6 +2546,7 @@ interface EditTestimonyParams extends AppScopedParams {
2543
2546
  status?: TestimonyStatus | null;
2544
2547
  sortOrder?: number | null;
2545
2548
  isFeatured?: boolean | null;
2549
+ productId?: string | null;
2546
2550
  }
2547
2551
  interface UpdateTestimonyStatusParams extends AppScopedParams {
2548
2552
  id: string;
@@ -2560,6 +2564,7 @@ interface DeleteTestimonyParams extends AppScopedParams {
2560
2564
  id: string;
2561
2565
  }
2562
2566
  interface CustomerSubmitTestimonyParams {
2567
+ appId: string;
2563
2568
  appApiKey: string;
2564
2569
  customerApiKey: string;
2565
2570
  name: string;
@@ -2569,11 +2574,14 @@ interface CustomerSubmitTestimonyParams {
2569
2574
  role?: string | null;
2570
2575
  rating?: number;
2571
2576
  comment: string;
2577
+ productId?: string | null;
2572
2578
  }
2573
2579
  interface PublicListTestimoniesParams {
2580
+ appId: string;
2574
2581
  appApiKey: string;
2575
2582
  isFeatured?: boolean | null;
2576
2583
  limit?: number;
2584
+ productId?: string | null;
2577
2585
  }
2578
2586
 
2579
2587
  interface TestimonyListResponse {
package/dist/index.js CHANGED
@@ -552,8 +552,8 @@ var _TestimonyApi = class _TestimonyApi {
552
552
  * Customer: Submit a new testimony (status will be PENDING)
553
553
  */
554
554
  async submit(params) {
555
- const { appApiKey, ...rest } = params;
556
- return this.http.post(`/testimony/submit`, {
555
+ const { appId, appApiKey, ...rest } = params;
556
+ return this.http.post(`/app/${appId}/testimony/submit`, {
557
557
  appApiKey,
558
558
  ...rest
559
559
  });
@@ -562,7 +562,8 @@ var _TestimonyApi = class _TestimonyApi {
562
562
  * Public: List approved testimonies
563
563
  */
564
564
  async listPublic(params) {
565
- return this.http.post(`/testimony/public`, params);
565
+ const { appId, ...rest } = params;
566
+ return this.http.post(`/app/${appId}/testimony/public`, rest);
566
567
  }
567
568
  };
568
569
  __name(_TestimonyApi, "TestimonyApi");