partnermax 0.4.0 → 0.4.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1 (2026-06-28)
4
+
5
+ Full Changelog: [v0.4.0...v0.4.1](https://github.com/DealerMax-app/partnermax-node/compare/v0.4.0...v0.4.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * regenerate SDK from openapi 1.5.10 upload schema ([515e635](https://github.com/DealerMax-app/partnermax-node/commit/515e63504bffe2f7b50abad54e177940bee7cc6e))
10
+
3
11
  ## 0.4.0 (2026-06-28)
4
12
 
5
13
  Full Changelog: [v0.3.0...v0.4.0](https://github.com/DealerMax-app/partnermax-node/compare/v0.3.0...v0.4.0)
package/README.md CHANGED
@@ -51,6 +51,50 @@ const [dealerSummary]: [Partnermax.DealerSummary] = await client.dealers.list();
51
51
 
52
52
  Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
53
53
 
54
+ ## File uploads
55
+
56
+ Request parameters that correspond to file uploads can be passed in many different forms:
57
+
58
+ - `File` (or an object with the same structure)
59
+ - a `fetch` `Response` (or an object with the same structure)
60
+ - an `fs.ReadStream`
61
+ - the return value of our `toFile` helper
62
+
63
+ ```ts
64
+ import fs from 'fs';
65
+ import Partnermax, { toFile } from 'partnermax';
66
+
67
+ const client = new Partnermax();
68
+
69
+ // If you have access to Node `fs` we recommend using `fs.createReadStream()`:
70
+ await client.dealers.vehicles.images.create('vehicle_id', {
71
+ dealer_id: 'dealer_id',
72
+ file: fs.createReadStream('/path/to/file'),
73
+ });
74
+
75
+ // Or if you have the web `File` API you can pass a `File` instance:
76
+ await client.dealers.vehicles.images.create('vehicle_id', {
77
+ dealer_id: 'dealer_id',
78
+ file: new File(['my bytes'], 'file'),
79
+ });
80
+
81
+ // You can also pass a `fetch` `Response`:
82
+ await client.dealers.vehicles.images.create('vehicle_id', {
83
+ dealer_id: 'dealer_id',
84
+ file: await fetch('https://somesite/file'),
85
+ });
86
+
87
+ // Finally, if none of the above are convenient, you can use our `toFile` helper:
88
+ await client.dealers.vehicles.images.create('vehicle_id', {
89
+ dealer_id: 'dealer_id',
90
+ file: await toFile(Buffer.from('my bytes'), 'file'),
91
+ });
92
+ await client.dealers.vehicles.images.create('vehicle_id', {
93
+ dealer_id: 'dealer_id',
94
+ file: await toFile(new Uint8Array([0, 1, 2]), 'file'),
95
+ });
96
+ ```
97
+
54
98
  ## Handling errors
55
99
 
56
100
  When the library is unable to connect to the API,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "partnermax",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "The official TypeScript library for the Partnermax API",
5
5
  "author": "Partnermax <support@dealermax.app>",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { type Uploadable } from "../../../core/uploads.mjs";
3
4
  import { RequestOptions } from "../../../internal/request-options.mjs";
4
5
  /**
5
6
  * Used-vehicle stock management for partner-owned dealers. The partner uploads each used vehicle by its canonical Motornet UNI code; DealerMAX joins the partner-provided pricing and stock metadata with the catalog master so the resulting listing is immediately indexed by the AI surfaces (MCP server, ChatGPT Custom GPT, NLWeb /ask, and the SEO/JSON-LD layer).
@@ -99,7 +100,7 @@ export interface ImageCreateParams {
99
100
  * Body param: The photo file. JPEG, PNG, or WebP, up to 15 MB. WebP is converted
100
101
  * to PNG server-side.
101
102
  */
102
- file: string;
103
+ file: Uploadable;
103
104
  }
104
105
  export interface ImageListParams {
105
106
  dealer_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"images.d.mts","sourceRoot":"","sources":["../../../src/resources/dealers/vehicles/images.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UA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I,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
2
  import { APIPromise } from "../../../core/api-promise.js";
3
+ import { type Uploadable } from "../../../core/uploads.js";
3
4
  import { RequestOptions } from "../../../internal/request-options.js";
4
5
  /**
5
6
  * Used-vehicle stock management for partner-owned dealers. The partner uploads each used vehicle by its canonical Motornet UNI code; DealerMAX joins the partner-provided pricing and stock metadata with the catalog master so the resulting listing is immediately indexed by the AI surfaces (MCP server, ChatGPT Custom GPT, NLWeb /ask, and the SEO/JSON-LD layer).
@@ -99,7 +100,7 @@ export interface ImageCreateParams {
99
100
  * Body param: The photo file. JPEG, PNG, or WebP, up to 15 MB. WebP is converted
100
101
  * to PNG server-side.
101
102
  */
102
- file: string;
103
+ file: Uploadable;
103
104
  }
104
105
  export interface ImageListParams {
105
106
  dealer_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/resources/dealers/vehicles/images.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,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AAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"images.js","sourceRoot":"","sources":["../../../src/resources/dealers/vehicles/images.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAwE;AACxE,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,SAAiB,EAAE,MAAyB,EAAE,OAAwB;QAC3E,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,eAAe,SAAS,aAAa,SAAS,SAAS,EAC3D,IAAA,qCAA2B,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,SAAiB,EAAE,MAAuB,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,GAAG,MAA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AG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAChE,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,SAAiB,EAAE,MAAuB,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,SAAS,aAAa,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,SAAS,aAAa,UAAU,WAAW,OAAO,EAAE,EAAE;YAClG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -297,8 +297,8 @@ export interface VehicleCreateParams {
297
297
  certified_km: number;
298
298
  /**
299
299
  * Body param: Motornet UNI code identifying the exact vehicle configuration. Must
300
- * exist in the used-vehicle catalogue at submission time; otherwise the call
301
- * returns 422 `motornet_code_not_in_catalogue`. Partners may send a code from
300
+ * exist in the DealerMAX auto/VCOM catalogue at submission time; otherwise the
301
+ * call returns 422 `motornet_code_not_in_catalogue`. Partners may send a code from
302
302
  * their own Motornet agreement or use the paid control-plane targa/VIN resolver
303
303
  * before creating the vehicle.
304
304
  */
@@ -498,7 +498,7 @@ export declare namespace VehicleBulkParams {
498
498
  certified_km: number;
499
499
  /**
500
500
  * Motornet UNI code identifying the exact vehicle configuration. Must exist in the
501
- * used-vehicle catalogue at submission time; otherwise the call returns 422
501
+ * DealerMAX auto/VCOM catalogue at submission time; otherwise the call returns 422
502
502
  * `motornet_code_not_in_catalogue`. Partners may send a code from their own
503
503
  * Motornet agreement or use the paid control-plane targa/VIN resolver before
504
504
  * creating the vehicle.
@@ -297,8 +297,8 @@ export interface VehicleCreateParams {
297
297
  certified_km: number;
298
298
  /**
299
299
  * Body param: Motornet UNI code identifying the exact vehicle configuration. Must
300
- * exist in the used-vehicle catalogue at submission time; otherwise the call
301
- * returns 422 `motornet_code_not_in_catalogue`. Partners may send a code from
300
+ * exist in the DealerMAX auto/VCOM catalogue at submission time; otherwise the
301
+ * call returns 422 `motornet_code_not_in_catalogue`. Partners may send a code from
302
302
  * their own Motornet agreement or use the paid control-plane targa/VIN resolver
303
303
  * before creating the vehicle.
304
304
  */
@@ -498,7 +498,7 @@ export declare namespace VehicleBulkParams {
498
498
  certified_km: number;
499
499
  /**
500
500
  * Motornet UNI code identifying the exact vehicle configuration. Must exist in the
501
- * used-vehicle catalogue at submission time; otherwise the call returns 422
501
+ * DealerMAX auto/VCOM catalogue at submission time; otherwise the call returns 422
502
502
  * `motornet_code_not_in_catalogue`. Partners may send a code from their own
503
503
  * Motornet agreement or use the paid control-plane targa/VIN resolver before
504
504
  * creating the vehicle.
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import { APIPromise } from '../../../core/api-promise';
5
+ import { type Uploadable } from '../../../core/uploads';
5
6
  import { buildHeaders } from '../../../internal/headers';
6
7
  import { RequestOptions } from '../../../internal/request-options';
7
8
  import { multipartFormRequestOptions } from '../../../internal/uploads';
@@ -130,7 +131,7 @@ export interface ImageCreateParams {
130
131
  * Body param: The photo file. JPEG, PNG, or WebP, up to 15 MB. WebP is converted
131
132
  * to PNG server-side.
132
133
  */
133
- file: string;
134
+ file: Uploadable;
134
135
  }
135
136
 
136
137
  export interface ImageListParams {
@@ -440,8 +440,8 @@ export interface VehicleCreateParams {
440
440
 
441
441
  /**
442
442
  * Body param: Motornet UNI code identifying the exact vehicle configuration. Must
443
- * exist in the used-vehicle catalogue at submission time; otherwise the call
444
- * returns 422 `motornet_code_not_in_catalogue`. Partners may send a code from
443
+ * exist in the DealerMAX auto/VCOM catalogue at submission time; otherwise the
444
+ * call returns 422 `motornet_code_not_in_catalogue`. Partners may send a code from
445
445
  * their own Motornet agreement or use the paid control-plane targa/VIN resolver
446
446
  * before creating the vehicle.
447
447
  */
@@ -682,7 +682,7 @@ export namespace VehicleBulkParams {
682
682
 
683
683
  /**
684
684
  * Motornet UNI code identifying the exact vehicle configuration. Must exist in the
685
- * used-vehicle catalogue at submission time; otherwise the call returns 422
685
+ * DealerMAX auto/VCOM catalogue at submission time; otherwise the call returns 422
686
686
  * `motornet_code_not_in_catalogue`. Partners may send a code from their own
687
687
  * Motornet agreement or use the paid control-plane targa/VIN resolver before
688
688
  * creating the vehicle.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.4.0'; // x-release-please-version
1
+ export const VERSION = '0.4.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.0";
1
+ export declare const VERSION = "0.4.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.0";
1
+ export declare const VERSION = "0.4.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.4.0'; // x-release-please-version
4
+ exports.VERSION = '0.4.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.4.0'; // x-release-please-version
1
+ export const VERSION = '0.4.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map