@sokol111/ecommerce-image-service-api 1.0.16 → 1.0.18
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 +3 -505
- package/dist/api.js +1 -37
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -38
- package/dist/common.js +1 -38
- package/dist/configuration.d.ts +25 -18
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Image Service API
|
|
5
5
|
* API for managing images
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.18
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -32,21 +32,11 @@ export const ConfirmRequestMimeEnum = {
|
|
|
32
32
|
ImageWebp: 'image/webp',
|
|
33
33
|
ImageAvif: 'image/avif'
|
|
34
34
|
};
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @enum {string}
|
|
39
|
-
*/
|
|
40
35
|
export const ImageRole = {
|
|
41
36
|
Main: 'main',
|
|
42
37
|
Gallery: 'gallery',
|
|
43
38
|
Other: 'other'
|
|
44
39
|
};
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @enum {string}
|
|
49
|
-
*/
|
|
50
40
|
export const ImageStatus = {
|
|
51
41
|
Pending: 'pending',
|
|
52
42
|
Uploaded: 'uploaded',
|
|
@@ -55,11 +45,6 @@ export const ImageStatus = {
|
|
|
55
45
|
Failed: 'failed',
|
|
56
46
|
Deleted: 'deleted'
|
|
57
47
|
};
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @export
|
|
61
|
-
* @enum {string}
|
|
62
|
-
*/
|
|
63
48
|
export const OwnerType = {
|
|
64
49
|
ProductDraft: 'productDraft',
|
|
65
50
|
Product: 'product',
|
|
@@ -73,7 +58,6 @@ export const PresignRequestContentTypeEnum = {
|
|
|
73
58
|
};
|
|
74
59
|
/**
|
|
75
60
|
* DefaultApi - axios parameter creator
|
|
76
|
-
* @export
|
|
77
61
|
*/
|
|
78
62
|
export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
79
63
|
return {
|
|
@@ -403,7 +387,6 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
403
387
|
};
|
|
404
388
|
/**
|
|
405
389
|
* DefaultApi - functional programming interface
|
|
406
|
-
* @export
|
|
407
390
|
*/
|
|
408
391
|
export const DefaultApiFp = function (configuration) {
|
|
409
392
|
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
|
|
@@ -570,7 +553,6 @@ export const DefaultApiFp = function (configuration) {
|
|
|
570
553
|
};
|
|
571
554
|
/**
|
|
572
555
|
* DefaultApi - factory interface
|
|
573
|
-
* @export
|
|
574
556
|
*/
|
|
575
557
|
export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
576
558
|
const localVarFp = DefaultApiFp(configuration);
|
|
@@ -669,9 +651,6 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
669
651
|
};
|
|
670
652
|
/**
|
|
671
653
|
* DefaultApi - object-oriented interface
|
|
672
|
-
* @export
|
|
673
|
-
* @class DefaultApi
|
|
674
|
-
* @extends {BaseAPI}
|
|
675
654
|
*/
|
|
676
655
|
export class DefaultApi extends BaseAPI {
|
|
677
656
|
/**
|
|
@@ -680,7 +659,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
680
659
|
* @param {DefaultApiConfirmUploadRequest} requestParameters Request parameters.
|
|
681
660
|
* @param {*} [options] Override http request option.
|
|
682
661
|
* @throws {RequiredError}
|
|
683
|
-
* @memberof DefaultApi
|
|
684
662
|
*/
|
|
685
663
|
confirmUpload(requestParameters, options) {
|
|
686
664
|
return DefaultApiFp(this.configuration).confirmUpload(requestParameters.confirmRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -691,7 +669,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
691
669
|
* @param {DefaultApiCreatePresignRequest} requestParameters Request parameters.
|
|
692
670
|
* @param {*} [options] Override http request option.
|
|
693
671
|
* @throws {RequiredError}
|
|
694
|
-
* @memberof DefaultApi
|
|
695
672
|
*/
|
|
696
673
|
createPresign(requestParameters, options) {
|
|
697
674
|
return DefaultApiFp(this.configuration).createPresign(requestParameters.presignRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -702,7 +679,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
702
679
|
* @param {DefaultApiDeleteImageRequest} requestParameters Request parameters.
|
|
703
680
|
* @param {*} [options] Override http request option.
|
|
704
681
|
* @throws {RequiredError}
|
|
705
|
-
* @memberof DefaultApi
|
|
706
682
|
*/
|
|
707
683
|
deleteImage(requestParameters, options) {
|
|
708
684
|
return DefaultApiFp(this.configuration).deleteImage(requestParameters.id, requestParameters.hard, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -713,7 +689,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
713
689
|
* @param {DefaultApiGetDeliveryUrlRequest} requestParameters Request parameters.
|
|
714
690
|
* @param {*} [options] Override http request option.
|
|
715
691
|
* @throws {RequiredError}
|
|
716
|
-
* @memberof DefaultApi
|
|
717
692
|
*/
|
|
718
693
|
getDeliveryUrl(requestParameters, options) {
|
|
719
694
|
return DefaultApiFp(this.configuration).getDeliveryUrl(requestParameters.id, requestParameters.variant, requestParameters.w, requestParameters.h, requestParameters.fit, requestParameters.format, requestParameters.quality, requestParameters.dpr, requestParameters.ttlSeconds, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -724,7 +699,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
724
699
|
* @param {DefaultApiGetImageRequest} requestParameters Request parameters.
|
|
725
700
|
* @param {*} [options] Override http request option.
|
|
726
701
|
* @throws {RequiredError}
|
|
727
|
-
* @memberof DefaultApi
|
|
728
702
|
*/
|
|
729
703
|
getImage(requestParameters, options) {
|
|
730
704
|
return DefaultApiFp(this.configuration).getImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -735,7 +709,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
735
709
|
* @param {DefaultApiListImagesRequest} requestParameters Request parameters.
|
|
736
710
|
* @param {*} [options] Override http request option.
|
|
737
711
|
* @throws {RequiredError}
|
|
738
|
-
* @memberof DefaultApi
|
|
739
712
|
*/
|
|
740
713
|
listImages(requestParameters = {}, options) {
|
|
741
714
|
return DefaultApiFp(this.configuration).listImages(requestParameters.ownerType, requestParameters.ownerId, requestParameters.status, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -746,7 +719,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
746
719
|
* @param {DefaultApiProcessImageRequest} requestParameters Request parameters.
|
|
747
720
|
* @param {*} [options] Override http request option.
|
|
748
721
|
* @throws {RequiredError}
|
|
749
|
-
* @memberof DefaultApi
|
|
750
722
|
*/
|
|
751
723
|
processImage(requestParameters, options) {
|
|
752
724
|
return DefaultApiFp(this.configuration).processImage(requestParameters.processImageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -757,7 +729,6 @@ export class DefaultApi extends BaseAPI {
|
|
|
757
729
|
* @param {DefaultApiPromoteImagesRequest} requestParameters Request parameters.
|
|
758
730
|
* @param {*} [options] Override http request option.
|
|
759
731
|
* @throws {RequiredError}
|
|
760
|
-
* @memberof DefaultApi
|
|
761
732
|
*/
|
|
762
733
|
promoteImages(requestParameters, options) {
|
|
763
734
|
return DefaultApiFp(this.configuration).promoteImages(requestParameters.promoteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -768,15 +739,11 @@ export class DefaultApi extends BaseAPI {
|
|
|
768
739
|
* @param {DefaultApiUpdateImageRequest} requestParameters Request parameters.
|
|
769
740
|
* @param {*} [options] Override http request option.
|
|
770
741
|
* @throws {RequiredError}
|
|
771
|
-
* @memberof DefaultApi
|
|
772
742
|
*/
|
|
773
743
|
updateImage(requestParameters, options) {
|
|
774
744
|
return DefaultApiFp(this.configuration).updateImage(requestParameters.id, requestParameters.imagePatch, options).then((request) => request(this.axios, this.basePath));
|
|
775
745
|
}
|
|
776
746
|
}
|
|
777
|
-
/**
|
|
778
|
-
* @export
|
|
779
|
-
*/
|
|
780
747
|
export const GetDeliveryUrlFitEnum = {
|
|
781
748
|
Cover: 'cover',
|
|
782
749
|
Contain: 'contain',
|
|
@@ -784,9 +751,6 @@ export const GetDeliveryUrlFitEnum = {
|
|
|
784
751
|
Inside: 'inside',
|
|
785
752
|
Outside: 'outside'
|
|
786
753
|
};
|
|
787
|
-
/**
|
|
788
|
-
* @export
|
|
789
|
-
*/
|
|
790
754
|
export const GetDeliveryUrlFormatEnum = {
|
|
791
755
|
Original: 'original',
|
|
792
756
|
Webp: 'webp',
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Image Service API
|
|
3
3
|
* API for managing images
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.18
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Image Service API
|
|
5
5
|
* API for managing images
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.18
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,21 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
15
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
16
|
export const COLLECTION_FORMATS = {
|
|
21
17
|
csv: ",",
|
|
22
18
|
ssv: " ",
|
|
23
19
|
tsv: "\t",
|
|
24
20
|
pipes: "|",
|
|
25
21
|
};
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @class BaseAPI
|
|
30
|
-
*/
|
|
31
22
|
export class BaseAPI {
|
|
32
23
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
24
|
var _a;
|
|
@@ -40,12 +31,6 @@ export class BaseAPI {
|
|
|
40
31
|
}
|
|
41
32
|
}
|
|
42
33
|
;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @export
|
|
46
|
-
* @class RequiredError
|
|
47
|
-
* @extends {Error}
|
|
48
|
-
*/
|
|
49
34
|
export class RequiredError extends Error {
|
|
50
35
|
constructor(field, msg) {
|
|
51
36
|
super(msg);
|
|
@@ -53,8 +38,4 @@ export class RequiredError extends Error {
|
|
|
53
38
|
this.name = "RequiredError";
|
|
54
39
|
}
|
|
55
40
|
}
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
41
|
export const operationServerMap = {};
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Image Service API
|
|
3
3
|
* API for managing images
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.18
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,54 +12,17 @@
|
|
|
12
12
|
import type { Configuration } from "./configuration";
|
|
13
13
|
import type { RequestArgs } from "./base";
|
|
14
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
21
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
22
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
23
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
24
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
25
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
26
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
27
|
export declare const toPathString: (url: URL) => string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
28
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Image Service API
|
|
5
5
|
* API for managing images
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.18
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,25 +21,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import { RequiredError } from "./base";
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
24
|
export const DUMMY_BASE_URL = 'https://example.com';
|
|
29
25
|
/**
|
|
30
26
|
*
|
|
31
27
|
* @throws {RequiredError}
|
|
32
|
-
* @export
|
|
33
28
|
*/
|
|
34
29
|
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
35
30
|
if (paramValue === null || paramValue === undefined) {
|
|
36
31
|
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
37
32
|
}
|
|
38
33
|
};
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @export
|
|
42
|
-
*/
|
|
43
34
|
export const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
44
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
36
|
if (configuration && configuration.apiKey) {
|
|
@@ -50,19 +41,11 @@ export const setApiKeyToObject = function (object, keyParamName, configuration)
|
|
|
50
41
|
}
|
|
51
42
|
});
|
|
52
43
|
};
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @export
|
|
56
|
-
*/
|
|
57
44
|
export const setBasicAuthToObject = function (object, configuration) {
|
|
58
45
|
if (configuration && (configuration.username || configuration.password)) {
|
|
59
46
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
60
47
|
}
|
|
61
48
|
};
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @export
|
|
65
|
-
*/
|
|
66
49
|
export const setBearerAuthToObject = function (object, configuration) {
|
|
67
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
51
|
if (configuration && configuration.accessToken) {
|
|
@@ -73,10 +56,6 @@ export const setBearerAuthToObject = function (object, configuration) {
|
|
|
73
56
|
}
|
|
74
57
|
});
|
|
75
58
|
};
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @export
|
|
79
|
-
*/
|
|
80
59
|
export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
81
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
61
|
if (configuration && configuration.accessToken) {
|
|
@@ -107,19 +86,11 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
107
86
|
}
|
|
108
87
|
}
|
|
109
88
|
}
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @export
|
|
113
|
-
*/
|
|
114
89
|
export const setSearchParams = function (url, ...objects) {
|
|
115
90
|
const searchParams = new URLSearchParams(url.search);
|
|
116
91
|
setFlattenedQueryParams(searchParams, objects);
|
|
117
92
|
url.search = searchParams.toString();
|
|
118
93
|
};
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @export
|
|
122
|
-
*/
|
|
123
94
|
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
124
95
|
const nonString = typeof value !== 'string';
|
|
125
96
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
@@ -129,17 +100,9 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
|
|
|
129
100
|
? JSON.stringify(value !== undefined ? value : {})
|
|
130
101
|
: (value || "");
|
|
131
102
|
};
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @export
|
|
135
|
-
*/
|
|
136
103
|
export const toPathString = function (url) {
|
|
137
104
|
return url.pathname + url.search + url.hash;
|
|
138
105
|
};
|
|
139
|
-
/**
|
|
140
|
-
*
|
|
141
|
-
* @export
|
|
142
|
-
*/
|
|
143
106
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
144
107
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
145
108
|
var _a;
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,18 +2,30 @@
|
|
|
2
2
|
* Image Service API
|
|
3
3
|
* API for managing images
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.18
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -23,49 +35,43 @@ export declare class Configuration {
|
|
|
23
35
|
/**
|
|
24
36
|
* parameter for apiKey security
|
|
25
37
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
38
|
*/
|
|
28
39
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
40
|
/**
|
|
30
41
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
42
|
*/
|
|
35
43
|
username?: string;
|
|
36
44
|
/**
|
|
37
45
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
46
|
*/
|
|
42
47
|
password?: string;
|
|
43
48
|
/**
|
|
44
49
|
* parameter for oauth2 security
|
|
45
50
|
* @param name security name
|
|
46
51
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
52
|
*/
|
|
49
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* @
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
54
62
|
* @memberof Configuration
|
|
55
63
|
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
65
|
+
/**
|
|
66
|
+
* override base path
|
|
67
|
+
*/
|
|
56
68
|
basePath?: string;
|
|
57
69
|
/**
|
|
58
70
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
71
|
*/
|
|
63
72
|
serverIndex?: number;
|
|
64
73
|
/**
|
|
65
74
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
75
|
*/
|
|
70
76
|
baseOptions?: any;
|
|
71
77
|
/**
|
|
@@ -89,3 +95,4 @@ export declare class Configuration {
|
|
|
89
95
|
*/
|
|
90
96
|
isJsonMime(mime: string): boolean;
|
|
91
97
|
}
|
|
98
|
+
export {};
|
package/dist/configuration.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Image Service API
|
|
5
4
|
* API for managing images
|
|
6
5
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
6
|
+
* The version of the OpenAPI document: 1.0.18
|
|
8
7
|
*
|
|
9
8
|
*
|
|
10
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -18,6 +17,7 @@ export class Configuration {
|
|
|
18
17
|
this.username = param.username;
|
|
19
18
|
this.password = param.password;
|
|
20
19
|
this.accessToken = param.accessToken;
|
|
20
|
+
this.awsv4 = param.awsv4;
|
|
21
21
|
this.basePath = param.basePath;
|
|
22
22
|
this.serverIndex = param.serverIndex;
|
|
23
23
|
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
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": "
|
|
4
|
+
"version": "1.0.18",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
]
|
|
31
|
-
}
|
|
31
|
+
}
|