randmar-api-client 1.496.0 → 1.498.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.
@@ -1505,7 +1505,7 @@ export type GetV4PartnerByApplicationIdGenerationRandmarAssistantInstructionsApi
1505
1505
  applicationId: string;
1506
1506
  };
1507
1507
  export type PostV4PartnerByApplicationIdGenerationUploadApiResponse =
1508
- /** status 200 OK */ string;
1508
+ /** status 200 Short-lived public URL to the uploaded file. */ string;
1509
1509
  export type PostV4PartnerByApplicationIdGenerationUploadApiArg = {
1510
1510
  /** The ID of the partner making the request */
1511
1511
  applicationId: string;
@@ -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 = {
@@ -3926,7 +3926,7 @@ export type PutV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdReceiptRcpNum
3926
3926
  warehouseId: string;
3927
3927
  /** The generated RCP (receipt) number. */
3928
3928
  rcpNumber: string;
3929
- /** The URL of the packing slip to attach (passed via query/form string). */
3929
+ /** Anonymously downloadable packing-slip URL from `Generation/Upload` (not a private Drive link). */
3930
3930
  packingSlipUrl?: string;
3931
3931
  };
3932
3932
  export type GetV4PartnerByRouteApplicationIdWarehouseAndWarehouseIdReceiptRcpNumberApiResponse =
@@ -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;
@@ -6927,7 +6931,8 @@ export type ReceivedPartNumbers = {
6927
6931
  QuantityReceived?: number;
6928
6932
  };
6929
6933
  export type RandmarApiControllersV4PartnerWarehouseControllerReceptionInput = {
6930
- /** The direct public URL or accessible link to the packing slip document. */
6934
+ /** Anonymously downloadable public URL to the packing slip. Obtain via
6935
+ `POST V4/Partner/{applicationId}/Generation/Upload`—never a private Google Drive / login-gated link. */
6931
6936
  PackingSlipURL?: string | null;
6932
6937
  /** A detailed list of the part numbers and their specific quantities being received. */
6933
6938
  PartNumbers?: ReceivedPartNumbers[] | 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.496.0",
3
+ "version": "1.498.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",