@infisale-client/api-client 1.1.37 → 1.1.39
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/api.d.ts +71 -0
- package/dist/api/api.js +73 -1
- package/dist/api/api.mjs +73 -1
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -5874,6 +5874,12 @@ export interface ISearchProductsResponse {
|
|
|
5874
5874
|
* @interface ISitemapResponse
|
|
5875
5875
|
*/
|
|
5876
5876
|
export interface ISitemapResponse {
|
|
5877
|
+
/**
|
|
5878
|
+
*
|
|
5879
|
+
* @type {LanguageEnum}
|
|
5880
|
+
* @memberof ISitemapResponse
|
|
5881
|
+
*/
|
|
5882
|
+
'companyDefaultLanguage': LanguageEnum;
|
|
5877
5883
|
/**
|
|
5878
5884
|
*
|
|
5879
5885
|
* @type {Array<ISitemapResponseSlugsInner>}
|
|
@@ -5887,6 +5893,12 @@ export interface ISitemapResponse {
|
|
|
5887
5893
|
* @interface ISitemapResponseSlugsInner
|
|
5888
5894
|
*/
|
|
5889
5895
|
export interface ISitemapResponseSlugsInner {
|
|
5896
|
+
/**
|
|
5897
|
+
*
|
|
5898
|
+
* @type {string}
|
|
5899
|
+
* @memberof ISitemapResponseSlugsInner
|
|
5900
|
+
*/
|
|
5901
|
+
'updatedAt': string;
|
|
5890
5902
|
/**
|
|
5891
5903
|
*
|
|
5892
5904
|
* @type {string}
|
|
@@ -8448,6 +8460,7 @@ export declare const SitemapTypeEnum: {
|
|
|
8448
8460
|
readonly PRODUCTS: "products";
|
|
8449
8461
|
readonly PAGES: "pages";
|
|
8450
8462
|
readonly COLLECTIONS: "collections";
|
|
8463
|
+
readonly BLOG: "blog";
|
|
8451
8464
|
};
|
|
8452
8465
|
export type SitemapTypeEnum = typeof SitemapTypeEnum[keyof typeof SitemapTypeEnum];
|
|
8453
8466
|
/**
|
|
@@ -9910,6 +9923,15 @@ export declare class ProductApi extends BaseAPI {
|
|
|
9910
9923
|
* @export
|
|
9911
9924
|
*/
|
|
9912
9925
|
export declare const SitemapApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
9926
|
+
/**
|
|
9927
|
+
*
|
|
9928
|
+
* @param {string} type
|
|
9929
|
+
* @param {string} page
|
|
9930
|
+
* @param {string} domain
|
|
9931
|
+
* @param {*} [options] Override http request option.
|
|
9932
|
+
* @throws {RequiredError}
|
|
9933
|
+
*/
|
|
9934
|
+
getSitemapByType: (type: string, page: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9913
9935
|
/**
|
|
9914
9936
|
*
|
|
9915
9937
|
* @param {string} domain
|
|
@@ -9923,6 +9945,15 @@ export declare const SitemapApiAxiosParamCreator: (configuration?: Configuration
|
|
|
9923
9945
|
* @export
|
|
9924
9946
|
*/
|
|
9925
9947
|
export declare const SitemapApiFp: (configuration?: Configuration) => {
|
|
9948
|
+
/**
|
|
9949
|
+
*
|
|
9950
|
+
* @param {string} type
|
|
9951
|
+
* @param {string} page
|
|
9952
|
+
* @param {string} domain
|
|
9953
|
+
* @param {*} [options] Override http request option.
|
|
9954
|
+
* @throws {RequiredError}
|
|
9955
|
+
*/
|
|
9956
|
+
getSitemapByType(type: string, page: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ISitemapResponse>>;
|
|
9926
9957
|
/**
|
|
9927
9958
|
*
|
|
9928
9959
|
* @param {string} domain
|
|
@@ -9936,6 +9967,13 @@ export declare const SitemapApiFp: (configuration?: Configuration) => {
|
|
|
9936
9967
|
* @export
|
|
9937
9968
|
*/
|
|
9938
9969
|
export declare const SitemapApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
9970
|
+
/**
|
|
9971
|
+
*
|
|
9972
|
+
* @param {SitemapApiGetSitemapByTypeRequest} requestParameters Request parameters.
|
|
9973
|
+
* @param {*} [options] Override http request option.
|
|
9974
|
+
* @throws {RequiredError}
|
|
9975
|
+
*/
|
|
9976
|
+
getSitemapByType(requestParameters: SitemapApiGetSitemapByTypeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ISitemapResponse>;
|
|
9939
9977
|
/**
|
|
9940
9978
|
*
|
|
9941
9979
|
* @param {SitemapApiGetSitemapsRequest} requestParameters Request parameters.
|
|
@@ -9944,6 +9982,31 @@ export declare const SitemapApiFactory: (configuration?: Configuration, basePath
|
|
|
9944
9982
|
*/
|
|
9945
9983
|
getSitemaps(requestParameters: SitemapApiGetSitemapsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ISitemapsResponse>;
|
|
9946
9984
|
};
|
|
9985
|
+
/**
|
|
9986
|
+
* Request parameters for getSitemapByType operation in SitemapApi.
|
|
9987
|
+
* @export
|
|
9988
|
+
* @interface SitemapApiGetSitemapByTypeRequest
|
|
9989
|
+
*/
|
|
9990
|
+
export interface SitemapApiGetSitemapByTypeRequest {
|
|
9991
|
+
/**
|
|
9992
|
+
*
|
|
9993
|
+
* @type {string}
|
|
9994
|
+
* @memberof SitemapApiGetSitemapByType
|
|
9995
|
+
*/
|
|
9996
|
+
readonly type: string;
|
|
9997
|
+
/**
|
|
9998
|
+
*
|
|
9999
|
+
* @type {string}
|
|
10000
|
+
* @memberof SitemapApiGetSitemapByType
|
|
10001
|
+
*/
|
|
10002
|
+
readonly page: string;
|
|
10003
|
+
/**
|
|
10004
|
+
*
|
|
10005
|
+
* @type {string}
|
|
10006
|
+
* @memberof SitemapApiGetSitemapByType
|
|
10007
|
+
*/
|
|
10008
|
+
readonly domain: string;
|
|
10009
|
+
}
|
|
9947
10010
|
/**
|
|
9948
10011
|
* Request parameters for getSitemaps operation in SitemapApi.
|
|
9949
10012
|
* @export
|
|
@@ -9964,6 +10027,14 @@ export interface SitemapApiGetSitemapsRequest {
|
|
|
9964
10027
|
* @extends {BaseAPI}
|
|
9965
10028
|
*/
|
|
9966
10029
|
export declare class SitemapApi extends BaseAPI {
|
|
10030
|
+
/**
|
|
10031
|
+
*
|
|
10032
|
+
* @param {SitemapApiGetSitemapByTypeRequest} requestParameters Request parameters.
|
|
10033
|
+
* @param {*} [options] Override http request option.
|
|
10034
|
+
* @throws {RequiredError}
|
|
10035
|
+
* @memberof SitemapApi
|
|
10036
|
+
*/
|
|
10037
|
+
getSitemapByType(requestParameters: SitemapApiGetSitemapByTypeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ISitemapResponse, any>>;
|
|
9967
10038
|
/**
|
|
9968
10039
|
*
|
|
9969
10040
|
* @param {SitemapApiGetSitemapsRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -588,7 +588,8 @@ exports.ProductDetailImageZoomTypeEnum = {
|
|
|
588
588
|
exports.SitemapTypeEnum = {
|
|
589
589
|
PRODUCTS: 'products',
|
|
590
590
|
PAGES: 'pages',
|
|
591
|
-
COLLECTIONS: 'collections'
|
|
591
|
+
COLLECTIONS: 'collections',
|
|
592
|
+
BLOG: 'blog'
|
|
592
593
|
};
|
|
593
594
|
/**
|
|
594
595
|
*
|
|
@@ -2356,6 +2357,44 @@ exports.ProductApi = ProductApi;
|
|
|
2356
2357
|
*/
|
|
2357
2358
|
const SitemapApiAxiosParamCreator = function (configuration) {
|
|
2358
2359
|
return {
|
|
2360
|
+
/**
|
|
2361
|
+
*
|
|
2362
|
+
* @param {string} type
|
|
2363
|
+
* @param {string} page
|
|
2364
|
+
* @param {string} domain
|
|
2365
|
+
* @param {*} [options] Override http request option.
|
|
2366
|
+
* @throws {RequiredError}
|
|
2367
|
+
*/
|
|
2368
|
+
getSitemapByType: async (type, page, domain, options = {}) => {
|
|
2369
|
+
// verify required parameter 'type' is not null or undefined
|
|
2370
|
+
(0, common_1.assertParamExists)('getSitemapByType', 'type', type);
|
|
2371
|
+
// verify required parameter 'page' is not null or undefined
|
|
2372
|
+
(0, common_1.assertParamExists)('getSitemapByType', 'page', page);
|
|
2373
|
+
// verify required parameter 'domain' is not null or undefined
|
|
2374
|
+
(0, common_1.assertParamExists)('getSitemapByType', 'domain', domain);
|
|
2375
|
+
const localVarPath = `/api/sitemaps/{type}/{page}`
|
|
2376
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
2377
|
+
.replace(`{${"page"}}`, encodeURIComponent(String(page)));
|
|
2378
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2379
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2380
|
+
let baseOptions;
|
|
2381
|
+
if (configuration) {
|
|
2382
|
+
baseOptions = configuration.baseOptions;
|
|
2383
|
+
}
|
|
2384
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2385
|
+
const localVarHeaderParameter = {};
|
|
2386
|
+
const localVarQueryParameter = {};
|
|
2387
|
+
if (domain !== undefined) {
|
|
2388
|
+
localVarQueryParameter['domain'] = domain;
|
|
2389
|
+
}
|
|
2390
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2391
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2392
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2393
|
+
return {
|
|
2394
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2395
|
+
options: localVarRequestOptions,
|
|
2396
|
+
};
|
|
2397
|
+
},
|
|
2359
2398
|
/**
|
|
2360
2399
|
*
|
|
2361
2400
|
* @param {string} domain
|
|
@@ -2396,6 +2435,20 @@ exports.SitemapApiAxiosParamCreator = SitemapApiAxiosParamCreator;
|
|
|
2396
2435
|
const SitemapApiFp = function (configuration) {
|
|
2397
2436
|
const localVarAxiosParamCreator = (0, exports.SitemapApiAxiosParamCreator)(configuration);
|
|
2398
2437
|
return {
|
|
2438
|
+
/**
|
|
2439
|
+
*
|
|
2440
|
+
* @param {string} type
|
|
2441
|
+
* @param {string} page
|
|
2442
|
+
* @param {string} domain
|
|
2443
|
+
* @param {*} [options] Override http request option.
|
|
2444
|
+
* @throws {RequiredError}
|
|
2445
|
+
*/
|
|
2446
|
+
async getSitemapByType(type, page, domain, options) {
|
|
2447
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSitemapByType(type, page, domain, options);
|
|
2448
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2449
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SitemapApi.getSitemapByType']?.[localVarOperationServerIndex]?.url;
|
|
2450
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2451
|
+
},
|
|
2399
2452
|
/**
|
|
2400
2453
|
*
|
|
2401
2454
|
* @param {string} domain
|
|
@@ -2418,6 +2471,15 @@ exports.SitemapApiFp = SitemapApiFp;
|
|
|
2418
2471
|
const SitemapApiFactory = function (configuration, basePath, axios) {
|
|
2419
2472
|
const localVarFp = (0, exports.SitemapApiFp)(configuration);
|
|
2420
2473
|
return {
|
|
2474
|
+
/**
|
|
2475
|
+
*
|
|
2476
|
+
* @param {SitemapApiGetSitemapByTypeRequest} requestParameters Request parameters.
|
|
2477
|
+
* @param {*} [options] Override http request option.
|
|
2478
|
+
* @throws {RequiredError}
|
|
2479
|
+
*/
|
|
2480
|
+
getSitemapByType(requestParameters, options) {
|
|
2481
|
+
return localVarFp.getSitemapByType(requestParameters.type, requestParameters.page, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2482
|
+
},
|
|
2421
2483
|
/**
|
|
2422
2484
|
*
|
|
2423
2485
|
* @param {SitemapApiGetSitemapsRequest} requestParameters Request parameters.
|
|
@@ -2437,6 +2499,16 @@ exports.SitemapApiFactory = SitemapApiFactory;
|
|
|
2437
2499
|
* @extends {BaseAPI}
|
|
2438
2500
|
*/
|
|
2439
2501
|
class SitemapApi extends base_1.BaseAPI {
|
|
2502
|
+
/**
|
|
2503
|
+
*
|
|
2504
|
+
* @param {SitemapApiGetSitemapByTypeRequest} requestParameters Request parameters.
|
|
2505
|
+
* @param {*} [options] Override http request option.
|
|
2506
|
+
* @throws {RequiredError}
|
|
2507
|
+
* @memberof SitemapApi
|
|
2508
|
+
*/
|
|
2509
|
+
getSitemapByType(requestParameters, options) {
|
|
2510
|
+
return (0, exports.SitemapApiFp)(this.configuration).getSitemapByType(requestParameters.type, requestParameters.page, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2511
|
+
}
|
|
2440
2512
|
/**
|
|
2441
2513
|
*
|
|
2442
2514
|
* @param {SitemapApiGetSitemapsRequest} requestParameters Request parameters.
|
package/dist/api/api.mjs
CHANGED
|
@@ -578,7 +578,8 @@ export const ProductDetailImageZoomTypeEnum = {
|
|
|
578
578
|
export const SitemapTypeEnum = {
|
|
579
579
|
PRODUCTS: 'products',
|
|
580
580
|
PAGES: 'pages',
|
|
581
|
-
COLLECTIONS: 'collections'
|
|
581
|
+
COLLECTIONS: 'collections',
|
|
582
|
+
BLOG: 'blog'
|
|
582
583
|
};
|
|
583
584
|
/**
|
|
584
585
|
*
|
|
@@ -2318,6 +2319,44 @@ export class ProductApi extends BaseAPI {
|
|
|
2318
2319
|
*/
|
|
2319
2320
|
export const SitemapApiAxiosParamCreator = function (configuration) {
|
|
2320
2321
|
return {
|
|
2322
|
+
/**
|
|
2323
|
+
*
|
|
2324
|
+
* @param {string} type
|
|
2325
|
+
* @param {string} page
|
|
2326
|
+
* @param {string} domain
|
|
2327
|
+
* @param {*} [options] Override http request option.
|
|
2328
|
+
* @throws {RequiredError}
|
|
2329
|
+
*/
|
|
2330
|
+
getSitemapByType: async (type, page, domain, options = {}) => {
|
|
2331
|
+
// verify required parameter 'type' is not null or undefined
|
|
2332
|
+
assertParamExists('getSitemapByType', 'type', type);
|
|
2333
|
+
// verify required parameter 'page' is not null or undefined
|
|
2334
|
+
assertParamExists('getSitemapByType', 'page', page);
|
|
2335
|
+
// verify required parameter 'domain' is not null or undefined
|
|
2336
|
+
assertParamExists('getSitemapByType', 'domain', domain);
|
|
2337
|
+
const localVarPath = `/api/sitemaps/{type}/{page}`
|
|
2338
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
2339
|
+
.replace(`{${"page"}}`, encodeURIComponent(String(page)));
|
|
2340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2341
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2342
|
+
let baseOptions;
|
|
2343
|
+
if (configuration) {
|
|
2344
|
+
baseOptions = configuration.baseOptions;
|
|
2345
|
+
}
|
|
2346
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2347
|
+
const localVarHeaderParameter = {};
|
|
2348
|
+
const localVarQueryParameter = {};
|
|
2349
|
+
if (domain !== undefined) {
|
|
2350
|
+
localVarQueryParameter['domain'] = domain;
|
|
2351
|
+
}
|
|
2352
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2353
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2354
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2355
|
+
return {
|
|
2356
|
+
url: toPathString(localVarUrlObj),
|
|
2357
|
+
options: localVarRequestOptions,
|
|
2358
|
+
};
|
|
2359
|
+
},
|
|
2321
2360
|
/**
|
|
2322
2361
|
*
|
|
2323
2362
|
* @param {string} domain
|
|
@@ -2357,6 +2396,20 @@ export const SitemapApiAxiosParamCreator = function (configuration) {
|
|
|
2357
2396
|
export const SitemapApiFp = function (configuration) {
|
|
2358
2397
|
const localVarAxiosParamCreator = SitemapApiAxiosParamCreator(configuration);
|
|
2359
2398
|
return {
|
|
2399
|
+
/**
|
|
2400
|
+
*
|
|
2401
|
+
* @param {string} type
|
|
2402
|
+
* @param {string} page
|
|
2403
|
+
* @param {string} domain
|
|
2404
|
+
* @param {*} [options] Override http request option.
|
|
2405
|
+
* @throws {RequiredError}
|
|
2406
|
+
*/
|
|
2407
|
+
async getSitemapByType(type, page, domain, options) {
|
|
2408
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSitemapByType(type, page, domain, options);
|
|
2409
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2410
|
+
const localVarOperationServerBasePath = operationServerMap['SitemapApi.getSitemapByType']?.[localVarOperationServerIndex]?.url;
|
|
2411
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2412
|
+
},
|
|
2360
2413
|
/**
|
|
2361
2414
|
*
|
|
2362
2415
|
* @param {string} domain
|
|
@@ -2378,6 +2431,15 @@ export const SitemapApiFp = function (configuration) {
|
|
|
2378
2431
|
export const SitemapApiFactory = function (configuration, basePath, axios) {
|
|
2379
2432
|
const localVarFp = SitemapApiFp(configuration);
|
|
2380
2433
|
return {
|
|
2434
|
+
/**
|
|
2435
|
+
*
|
|
2436
|
+
* @param {SitemapApiGetSitemapByTypeRequest} requestParameters Request parameters.
|
|
2437
|
+
* @param {*} [options] Override http request option.
|
|
2438
|
+
* @throws {RequiredError}
|
|
2439
|
+
*/
|
|
2440
|
+
getSitemapByType(requestParameters, options) {
|
|
2441
|
+
return localVarFp.getSitemapByType(requestParameters.type, requestParameters.page, requestParameters.domain, options).then((request) => request(axios, basePath));
|
|
2442
|
+
},
|
|
2381
2443
|
/**
|
|
2382
2444
|
*
|
|
2383
2445
|
* @param {SitemapApiGetSitemapsRequest} requestParameters Request parameters.
|
|
@@ -2396,6 +2458,16 @@ export const SitemapApiFactory = function (configuration, basePath, axios) {
|
|
|
2396
2458
|
* @extends {BaseAPI}
|
|
2397
2459
|
*/
|
|
2398
2460
|
export class SitemapApi extends BaseAPI {
|
|
2461
|
+
/**
|
|
2462
|
+
*
|
|
2463
|
+
* @param {SitemapApiGetSitemapByTypeRequest} requestParameters Request parameters.
|
|
2464
|
+
* @param {*} [options] Override http request option.
|
|
2465
|
+
* @throws {RequiredError}
|
|
2466
|
+
* @memberof SitemapApi
|
|
2467
|
+
*/
|
|
2468
|
+
getSitemapByType(requestParameters, options) {
|
|
2469
|
+
return SitemapApiFp(this.configuration).getSitemapByType(requestParameters.type, requestParameters.page, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
|
|
2470
|
+
}
|
|
2399
2471
|
/**
|
|
2400
2472
|
*
|
|
2401
2473
|
* @param {SitemapApiGetSitemapsRequest} requestParameters Request parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.39",
|
|
4
4
|
"description": "api-client-sdk",
|
|
5
5
|
"author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
|
|
6
6
|
"homepage": "https://github.com/infisale/infisale-client#readme",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"bugs": {
|
|
38
38
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "910aed4adc0509233b726a1cf12da6866017cfee"
|
|
41
41
|
}
|