randmar-api-client 1.497.0 → 1.499.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.
@@ -2467,10 +2467,10 @@ export type PostV4PartnerByRouteApplicationIdProductAndRandmarSkuGenerateImageAp
2467
2467
  routeApplicationId: string;
2468
2468
  /** The Randmar SKU whose primary image is used as the reference. */
2469
2469
  randmarSku: string;
2470
- /** A description of the image to generate. */
2471
- prompt: string;
2472
2470
  /** The generated image's aspect ratio. Allowed values: 21:9, 16:9, 4:3, 3:2, 1:1, 9:16, 3:4, 2:3, 5:4, and 4:5. Defaults to 1:1. */
2473
2471
  aspectRatio?: string;
2472
+ /** The request body containing the image-generation prompt. */
2473
+ randmarApiControllersV4PartnerProductControllerGenerateProductMediaRequest: RandmarApiControllersV4PartnerProductControllerGenerateProductMediaRequest;
2474
2474
  };
2475
2475
  export type PostV4PartnerByRouteApplicationIdProductAndRandmarSkuGenerateVideoApiResponse =
2476
2476
  /** status 200 A short-lived staging URL for the generated video. */ string;
@@ -2479,8 +2479,8 @@ export type PostV4PartnerByRouteApplicationIdProductAndRandmarSkuGenerateVideoAp
2479
2479
  routeApplicationId: string;
2480
2480
  /** The Randmar SKU whose primary image is used as the reference. */
2481
2481
  randmarSku: string;
2482
- /** A description of the video to generate. */
2483
- prompt: string;
2482
+ /** The request body containing the video-generation prompt. */
2483
+ randmarApiControllersV4PartnerProductControllerGenerateProductMediaRequest: RandmarApiControllersV4PartnerProductControllerGenerateProductMediaRequest;
2484
2484
  };
2485
2485
  export type GetV4PartnerByRouteApplicationIdProductAndRandmarSkuLocationDetailsWarehouseIdApiResponse = unknown;
2486
2486
  export type GetV4PartnerByRouteApplicationIdProductAndRandmarSkuLocationDetailsWarehouseIdApiArg = {
@@ -6722,6 +6722,10 @@ export type ShipViaEstimate = {
6722
6722
  Price?: number;
6723
6723
  IsResidential?: boolean | null;
6724
6724
  };
6725
+ export type RandmarApiControllersV4PartnerProductControllerGenerateProductMediaRequest = {
6726
+ /** The description of the image or video to generate. */
6727
+ Prompt: string;
6728
+ };
6725
6729
  export type InsertProductInput = {
6726
6730
  UPC?: string | null;
6727
6731
  Category?: string | null;
@@ -1768,8 +1768,8 @@ const injectedRtkApi = api.injectEndpoints({
1768
1768
  query: (queryArg) => ({
1769
1769
  url: `/V4/Partner/${queryArg.routeApplicationId}/Product/${queryArg.randmarSku}/Generate/Image`,
1770
1770
  method: "POST",
1771
+ body: queryArg.randmarApiControllersV4PartnerProductControllerGenerateProductMediaRequest,
1771
1772
  params: {
1772
- prompt: queryArg.prompt,
1773
1773
  aspectRatio: queryArg.aspectRatio,
1774
1774
  },
1775
1775
  }),
@@ -1778,9 +1778,7 @@ const injectedRtkApi = api.injectEndpoints({
1778
1778
  query: (queryArg) => ({
1779
1779
  url: `/V4/Partner/${queryArg.routeApplicationId}/Product/${queryArg.randmarSku}/Generate/Video`,
1780
1780
  method: "POST",
1781
- params: {
1782
- prompt: queryArg.prompt,
1783
- },
1781
+ body: queryArg.randmarApiControllersV4PartnerProductControllerGenerateProductMediaRequest,
1784
1782
  }),
1785
1783
  }),
1786
1784
  getV4PartnerByRouteApplicationIdProductAndRandmarSkuLocationDetailsWarehouseId: build.query({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "randmar-api-client",
3
- "version": "1.497.0",
3
+ "version": "1.499.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",