@sokol111/ecommerce-image-service-api 1.0.0 → 1.0.2

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/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Image Service API
3
3
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -54,7 +54,7 @@ export interface ConfirmRequest {
54
54
  * @type {string}
55
55
  * @memberof ConfirmRequest
56
56
  */
57
- 'mime'?: string;
57
+ 'mime'?: ConfirmRequestMimeEnum;
58
58
  /**
59
59
  *
60
60
  * @type {ImageRole}
@@ -68,6 +68,13 @@ export interface ConfirmRequest {
68
68
  */
69
69
  'checksum'?: string | null;
70
70
  }
71
+ export declare const ConfirmRequestMimeEnum: {
72
+ readonly ImageJpeg: "image/jpeg";
73
+ readonly ImagePng: "image/png";
74
+ readonly ImageWebp: "image/webp";
75
+ readonly ImageAvif: "image/avif";
76
+ };
77
+ export type ConfirmRequestMimeEnum = typeof ConfirmRequestMimeEnum[keyof typeof ConfirmRequestMimeEnum];
71
78
  /**
72
79
  *
73
80
  * @export
@@ -87,19 +94,6 @@ export interface GetDeliveryUrl200Response {
87
94
  */
88
95
  'expiresAt'?: string | null;
89
96
  }
90
- /**
91
- *
92
- * @export
93
- * @interface Healthz200Response
94
- */
95
- export interface Healthz200Response {
96
- /**
97
- *
98
- * @type {string}
99
- * @memberof Healthz200Response
100
- */
101
- 'status'?: string;
102
- }
103
97
  /**
104
98
  *
105
99
  * @export
@@ -312,7 +306,7 @@ export interface PresignRequest {
312
306
  * @type {string}
313
307
  * @memberof PresignRequest
314
308
  */
315
- 'contentType': string;
309
+ 'contentType': PresignRequestContentTypeEnum;
316
310
  /**
317
311
  * Size in bytes
318
312
  * @type {number}
@@ -326,6 +320,13 @@ export interface PresignRequest {
326
320
  */
327
321
  'role'?: ImageRole;
328
322
  }
323
+ export declare const PresignRequestContentTypeEnum: {
324
+ readonly ImageJpeg: "image/jpeg";
325
+ readonly ImagePng: "image/png";
326
+ readonly ImageWebp: "image/webp";
327
+ readonly ImageAvif: "image/avif";
328
+ };
329
+ export type PresignRequestContentTypeEnum = typeof PresignRequestContentTypeEnum[keyof typeof PresignRequestContentTypeEnum];
329
330
  /**
330
331
  *
331
332
  * @export
@@ -672,61 +673,6 @@ export declare const GetDeliveryUrlFormatEnum: {
672
673
  readonly Png: "png";
673
674
  };
674
675
  export type GetDeliveryUrlFormatEnum = typeof GetDeliveryUrlFormatEnum[keyof typeof GetDeliveryUrlFormatEnum];
675
- /**
676
- * HealthApi - axios parameter creator
677
- * @export
678
- */
679
- export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
680
- /**
681
- *
682
- * @summary Health check
683
- * @param {*} [options] Override http request option.
684
- * @throws {RequiredError}
685
- */
686
- healthz: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
687
- };
688
- /**
689
- * HealthApi - functional programming interface
690
- * @export
691
- */
692
- export declare const HealthApiFp: (configuration?: Configuration) => {
693
- /**
694
- *
695
- * @summary Health check
696
- * @param {*} [options] Override http request option.
697
- * @throws {RequiredError}
698
- */
699
- healthz(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Healthz200Response>>;
700
- };
701
- /**
702
- * HealthApi - factory interface
703
- * @export
704
- */
705
- export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
706
- /**
707
- *
708
- * @summary Health check
709
- * @param {*} [options] Override http request option.
710
- * @throws {RequiredError}
711
- */
712
- healthz(options?: RawAxiosRequestConfig): AxiosPromise<Healthz200Response>;
713
- };
714
- /**
715
- * HealthApi - object-oriented interface
716
- * @export
717
- * @class HealthApi
718
- * @extends {BaseAPI}
719
- */
720
- export declare class HealthApi extends BaseAPI {
721
- /**
722
- *
723
- * @summary Health check
724
- * @param {*} [options] Override http request option.
725
- * @throws {RequiredError}
726
- * @memberof HealthApi
727
- */
728
- healthz(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Healthz200Response, any, {}>>;
729
- }
730
676
  /**
731
677
  * ImagesApi - axios parameter creator
732
678
  * @export
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Image Service API
5
5
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
7
+ * The version of the OpenAPI document: 1.0.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,6 +26,12 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const ConfirmRequestMimeEnum = {
30
+ ImageJpeg: 'image/jpeg',
31
+ ImagePng: 'image/png',
32
+ ImageWebp: 'image/webp',
33
+ ImageAvif: 'image/avif'
34
+ };
29
35
  /**
30
36
  *
31
37
  * @export
@@ -59,6 +65,12 @@ export const OwnerType = {
59
65
  Product: 'product',
60
66
  User: 'user'
61
67
  };
68
+ export const PresignRequestContentTypeEnum = {
69
+ ImageJpeg: 'image/jpeg',
70
+ ImagePng: 'image/png',
71
+ ImageWebp: 'image/webp',
72
+ ImageAvif: 'image/avif'
73
+ };
62
74
  /**
63
75
  * DeliveryApi - axios parameter creator
64
76
  * @export
@@ -219,99 +231,6 @@ export const GetDeliveryUrlFormatEnum = {
219
231
  Jpeg: 'jpeg',
220
232
  Png: 'png'
221
233
  };
222
- /**
223
- * HealthApi - axios parameter creator
224
- * @export
225
- */
226
- export const HealthApiAxiosParamCreator = function (configuration) {
227
- return {
228
- /**
229
- *
230
- * @summary Health check
231
- * @param {*} [options] Override http request option.
232
- * @throws {RequiredError}
233
- */
234
- healthz: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
235
- const localVarPath = `/healthz`;
236
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
237
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
238
- let baseOptions;
239
- if (configuration) {
240
- baseOptions = configuration.baseOptions;
241
- }
242
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
243
- const localVarHeaderParameter = {};
244
- const localVarQueryParameter = {};
245
- setSearchParams(localVarUrlObj, localVarQueryParameter);
246
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
248
- return {
249
- url: toPathString(localVarUrlObj),
250
- options: localVarRequestOptions,
251
- };
252
- }),
253
- };
254
- };
255
- /**
256
- * HealthApi - functional programming interface
257
- * @export
258
- */
259
- export const HealthApiFp = function (configuration) {
260
- const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration);
261
- return {
262
- /**
263
- *
264
- * @summary Health check
265
- * @param {*} [options] Override http request option.
266
- * @throws {RequiredError}
267
- */
268
- healthz(options) {
269
- return __awaiter(this, void 0, void 0, function* () {
270
- var _a, _b, _c;
271
- const localVarAxiosArgs = yield localVarAxiosParamCreator.healthz(options);
272
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
273
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.healthz']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
274
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
275
- });
276
- },
277
- };
278
- };
279
- /**
280
- * HealthApi - factory interface
281
- * @export
282
- */
283
- export const HealthApiFactory = function (configuration, basePath, axios) {
284
- const localVarFp = HealthApiFp(configuration);
285
- return {
286
- /**
287
- *
288
- * @summary Health check
289
- * @param {*} [options] Override http request option.
290
- * @throws {RequiredError}
291
- */
292
- healthz(options) {
293
- return localVarFp.healthz(options).then((request) => request(axios, basePath));
294
- },
295
- };
296
- };
297
- /**
298
- * HealthApi - object-oriented interface
299
- * @export
300
- * @class HealthApi
301
- * @extends {BaseAPI}
302
- */
303
- export class HealthApi extends BaseAPI {
304
- /**
305
- *
306
- * @summary Health check
307
- * @param {*} [options] Override http request option.
308
- * @throws {RequiredError}
309
- * @memberof HealthApi
310
- */
311
- healthz(options) {
312
- return HealthApiFp(this.configuration).healthz(options).then((request) => request(this.axios, this.basePath));
313
- }
314
- }
315
234
  /**
316
235
  * ImagesApi - axios parameter creator
317
236
  * @export
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Image Service API
3
3
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Image Service API
5
5
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
7
+ * The version of the OpenAPI document: 1.0.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Image Service API
3
3
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Image Service API
5
5
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
7
+ * The version of the OpenAPI document: 1.0.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Image Service API
3
3
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Image Service API
5
5
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
7
+ * The version of the OpenAPI document: 1.0.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Image Service API
3
3
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Image Service API
5
5
  * API for image management in an e-commerce system using the **Draft → Promote** pattern. Responsibilities: - Generate presigned URLs for direct PUT uploads to MinIO/S3. - Confirm uploads and persist image metadata to the database. - Promote/attach images from a product draft to a final product. - Read/update/delete image metadata. - Generate signed delivery URLs for imgproxy. Notes: - No authentication is configured yet (public API for now). Add auth later when ready. - Idempotency is supported via the `Idempotency-Key` header for POST/DELETE operations.
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
7
+ * The version of the OpenAPI document: 1.0.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sokol111/ecommerce-image-service-api",
3
3
  "description": "Generated TypeScript Axios client from OpenAPI for ecommerce-image-service-api",
4
- "version": "v1.0.0",
4
+ "version": "v1.0.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "module": "dist/index.js",