@infisale-client/api 1.2.64 → 1.2.66
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 +20 -12
- package/dist/api/api.js +17 -16
- package/dist/api/api.mjs +13 -12
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -5431,10 +5431,10 @@ export interface IOrderReturnPostRequest {
|
|
|
5431
5431
|
export interface IOrderReturnUpdatePostRequest {
|
|
5432
5432
|
/**
|
|
5433
5433
|
*
|
|
5434
|
-
* @type {
|
|
5434
|
+
* @type {IOrderReturnUpdatePostRequestStatus}
|
|
5435
5435
|
* @memberof IOrderReturnUpdatePostRequest
|
|
5436
5436
|
*/
|
|
5437
|
-
'status'?:
|
|
5437
|
+
'status'?: IOrderReturnUpdatePostRequestStatus;
|
|
5438
5438
|
/**
|
|
5439
5439
|
*
|
|
5440
5440
|
* @type {string}
|
|
@@ -5478,6 +5478,13 @@ export interface IOrderReturnUpdatePostRequest {
|
|
|
5478
5478
|
*/
|
|
5479
5479
|
'refund': boolean;
|
|
5480
5480
|
}
|
|
5481
|
+
/**
|
|
5482
|
+
*
|
|
5483
|
+
* @export
|
|
5484
|
+
* @interface IOrderReturnUpdatePostRequestStatus
|
|
5485
|
+
*/
|
|
5486
|
+
export interface IOrderReturnUpdatePostRequestStatus {
|
|
5487
|
+
}
|
|
5481
5488
|
/**
|
|
5482
5489
|
*
|
|
5483
5490
|
* @export
|
|
@@ -8113,6 +8120,15 @@ export declare const OrderReturnStatusEnum: {
|
|
|
8113
8120
|
readonly RETURNED: "returned";
|
|
8114
8121
|
};
|
|
8115
8122
|
export type OrderReturnStatusEnum = typeof OrderReturnStatusEnum[keyof typeof OrderReturnStatusEnum];
|
|
8123
|
+
/**
|
|
8124
|
+
*
|
|
8125
|
+
* @export
|
|
8126
|
+
* @enum {string}
|
|
8127
|
+
*/
|
|
8128
|
+
export declare const OrderReturnStatusEnumREJECTED: {
|
|
8129
|
+
readonly REJECTED: "rejected";
|
|
8130
|
+
};
|
|
8131
|
+
export type OrderReturnStatusEnumREJECTED = typeof OrderReturnStatusEnumREJECTED[keyof typeof OrderReturnStatusEnumREJECTED];
|
|
8116
8132
|
/**
|
|
8117
8133
|
*
|
|
8118
8134
|
* @export
|
|
@@ -10722,12 +10738,11 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
10722
10738
|
login: (domain: string, iLoginRequest: ILoginRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10723
10739
|
/**
|
|
10724
10740
|
*
|
|
10725
|
-
* @param {string} domain
|
|
10726
10741
|
* @param {IRefreshTokenRequest} iRefreshTokenRequest
|
|
10727
10742
|
* @param {*} [options] Override http request option.
|
|
10728
10743
|
* @throws {RequiredError}
|
|
10729
10744
|
*/
|
|
10730
|
-
refreshToken: (
|
|
10745
|
+
refreshToken: (iRefreshTokenRequest: IRefreshTokenRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
10731
10746
|
/**
|
|
10732
10747
|
*
|
|
10733
10748
|
* @param {string} domain
|
|
@@ -10791,12 +10806,11 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
|
|
|
10791
10806
|
login(domain: string, iLoginRequest: ILoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ILoginResponse>>;
|
|
10792
10807
|
/**
|
|
10793
10808
|
*
|
|
10794
|
-
* @param {string} domain
|
|
10795
10809
|
* @param {IRefreshTokenRequest} iRefreshTokenRequest
|
|
10796
10810
|
* @param {*} [options] Override http request option.
|
|
10797
10811
|
* @throws {RequiredError}
|
|
10798
10812
|
*/
|
|
10799
|
-
refreshToken(
|
|
10813
|
+
refreshToken(iRefreshTokenRequest: IRefreshTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ILoginResponse>>;
|
|
10800
10814
|
/**
|
|
10801
10815
|
*
|
|
10802
10816
|
* @param {string} domain
|
|
@@ -10943,12 +10957,6 @@ export interface AuthApiLoginRequest {
|
|
|
10943
10957
|
* @interface AuthApiRefreshTokenRequest
|
|
10944
10958
|
*/
|
|
10945
10959
|
export interface AuthApiRefreshTokenRequest {
|
|
10946
|
-
/**
|
|
10947
|
-
*
|
|
10948
|
-
* @type {string}
|
|
10949
|
-
* @memberof AuthApiRefreshToken
|
|
10950
|
-
*/
|
|
10951
|
-
readonly domain: string;
|
|
10952
10960
|
/**
|
|
10953
10961
|
*
|
|
10954
10962
|
* @type {IRefreshTokenRequest}
|
package/dist/api/api.js
CHANGED
|
@@ -16,10 +16,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.GetUsersDateFieldEnum = void 0;
|
|
19
|
+
exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = exports.OrderShippedStatusEnum = exports.OrderReturnStatusEnumWAITINGRETURN = exports.OrderReturnStatusEnumRETURNED = exports.OrderReturnStatusEnumREJECTED = exports.OrderReturnStatusEnum = exports.OrderPaymentStatusEnum = exports.OrderEnum = exports.OperationStatusEnum = exports.NotificationStatusEnum = exports.NotificationMessageEnum = exports.NavigationUrlTargetEnum = exports.LanguageEnum = exports.IUserCollectionQueryParamsDateFieldEnum = exports.IProductCollectionQueryParamsDateFieldEnum = exports.IPlanCollectionQueryParamsDateFieldEnum = exports.IPageCollectionQueryParamsDateFieldEnum = exports.IOrderCollectionQueryParamsDateFieldEnum = exports.IOperationCollectionQueryParamsDateFieldEnum = exports.INotificationCollectionQueryParamsDateFieldEnum = exports.IMyOrderCollectionQueryParamsDateFieldEnum = exports.IFileCollectionQueryParamsDateFieldEnum = exports.IContactFormCollectionQueryParamsDateFieldEnum = exports.ICompanyUsersCollectionQueryParamsDateFieldEnum = exports.ICompanyCollectionQueryParamsDateFieldEnum = exports.ICollectionCollectionsQueryParamsDateFieldEnum = exports.ICategoryCollectionQueryParamsDateFieldEnum = exports.IBrandCollectionQueryParamsDateFieldEnum = exports.FontSizeEnum = exports.FileTypeEnum = exports.FileStatusEnum = exports.FileKeywordEnum = exports.EmailConfigDnsRecordTypeEnum = exports.CurrencyRateTypeEnum = exports.CurrencyEnum = exports.CountryEnum = exports.ContentStatusEnum = exports.ContentPositionYEnum = exports.ContentPositionXEnum = exports.ComponentTypeEnum = exports.ComponentProductTypeEnum = exports.ComponentProductOrderEnum = exports.ComponentProductListTypeEnum = exports.ComponentContentTypeEnum = exports.CompanyUserStatusEnum = exports.CompanyTypeEnum = exports.CompanyStatusEnum = exports.ButtonVariantEnum = void 0;
|
|
20
|
+
exports.FileApiAxiosParamCreator = exports.GetContactFormsDateFieldEnum = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.GetCompanyCustomersDateFieldEnum = exports.GetCompaniesDateFieldEnum = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.GetCategoriesDateFieldEnum = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.GetBrandsDateFieldEnum = exports.BrandApi = exports.BrandApiFactory = exports.BrandApiFp = exports.BrandApiAxiosParamCreator = exports.BasketApi = exports.BasketApiFactory = exports.BasketApiFp = exports.BasketApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AddressApi = exports.AddressApiFactory = exports.AddressApiFp = exports.AddressApiAxiosParamCreator = exports.UserStatusEnum = exports.UserRoleEnum = exports.TimezoneEnum = exports.TemplateTypeEnum = exports.SitemapTypeEnum = exports.ShippingPricingTypeEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaymentMethodEnum = void 0;
|
|
21
|
+
exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.ThemeApi = exports.ThemeApiFactory = exports.ThemeApiFp = exports.ThemeApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPlansDateFieldEnum = exports.PlanApi = exports.PlanApiFactory = exports.PlanApiFp = exports.PlanApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.GetOperationsDateFieldEnum = exports.OperationApi = exports.OperationApiFactory = exports.OperationApiFp = exports.OperationApiAxiosParamCreator = exports.GetNotificationsDateFieldEnum = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.GetFilesDateFieldEnum = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = void 0;
|
|
22
|
+
exports.GetUsersDateFieldEnum = exports.UserApi = void 0;
|
|
23
23
|
const axios_1 = __importDefault(require("axios"));
|
|
24
24
|
// Some imports not used depending on template conditions
|
|
25
25
|
// @ts-ignore
|
|
@@ -648,6 +648,14 @@ exports.OrderReturnStatusEnum = {
|
|
|
648
648
|
WAITING_RETURN: 'waiting_return',
|
|
649
649
|
RETURNED: 'returned'
|
|
650
650
|
};
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @export
|
|
654
|
+
* @enum {string}
|
|
655
|
+
*/
|
|
656
|
+
exports.OrderReturnStatusEnumREJECTED = {
|
|
657
|
+
REJECTED: 'rejected'
|
|
658
|
+
};
|
|
651
659
|
/**
|
|
652
660
|
*
|
|
653
661
|
* @export
|
|
@@ -1086,14 +1094,11 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1086
1094
|
},
|
|
1087
1095
|
/**
|
|
1088
1096
|
*
|
|
1089
|
-
* @param {string} domain
|
|
1090
1097
|
* @param {IRefreshTokenRequest} iRefreshTokenRequest
|
|
1091
1098
|
* @param {*} [options] Override http request option.
|
|
1092
1099
|
* @throws {RequiredError}
|
|
1093
1100
|
*/
|
|
1094
|
-
refreshToken: async (
|
|
1095
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1096
|
-
(0, common_1.assertParamExists)('refreshToken', 'domain', domain);
|
|
1101
|
+
refreshToken: async (iRefreshTokenRequest, options = {}) => {
|
|
1097
1102
|
// verify required parameter 'iRefreshTokenRequest' is not null or undefined
|
|
1098
1103
|
(0, common_1.assertParamExists)('refreshToken', 'iRefreshTokenRequest', iRefreshTokenRequest);
|
|
1099
1104
|
const localVarPath = `/api/auth/refresh-token`;
|
|
@@ -1106,9 +1111,6 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1106
1111
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1107
1112
|
const localVarHeaderParameter = {};
|
|
1108
1113
|
const localVarQueryParameter = {};
|
|
1109
|
-
if (domain !== undefined) {
|
|
1110
|
-
localVarQueryParameter['domain'] = domain;
|
|
1111
|
-
}
|
|
1112
1114
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1113
1115
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1114
1116
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1325,13 +1327,12 @@ const AuthApiFp = function (configuration) {
|
|
|
1325
1327
|
},
|
|
1326
1328
|
/**
|
|
1327
1329
|
*
|
|
1328
|
-
* @param {string} domain
|
|
1329
1330
|
* @param {IRefreshTokenRequest} iRefreshTokenRequest
|
|
1330
1331
|
* @param {*} [options] Override http request option.
|
|
1331
1332
|
* @throws {RequiredError}
|
|
1332
1333
|
*/
|
|
1333
|
-
async refreshToken(
|
|
1334
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(
|
|
1334
|
+
async refreshToken(iRefreshTokenRequest, options) {
|
|
1335
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(iRefreshTokenRequest, options);
|
|
1335
1336
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1336
1337
|
const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.refreshToken']?.[localVarOperationServerIndex]?.url;
|
|
1337
1338
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1435,7 +1436,7 @@ const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1435
1436
|
* @throws {RequiredError}
|
|
1436
1437
|
*/
|
|
1437
1438
|
refreshToken(requestParameters, options) {
|
|
1438
|
-
return localVarFp.refreshToken(requestParameters.
|
|
1439
|
+
return localVarFp.refreshToken(requestParameters.iRefreshTokenRequest, options).then((request) => request(axios, basePath));
|
|
1439
1440
|
},
|
|
1440
1441
|
/**
|
|
1441
1442
|
*
|
|
@@ -1520,7 +1521,7 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1520
1521
|
* @memberof AuthApi
|
|
1521
1522
|
*/
|
|
1522
1523
|
refreshToken(requestParameters, options) {
|
|
1523
|
-
return (0, exports.AuthApiFp)(this.configuration).refreshToken(requestParameters.
|
|
1524
|
+
return (0, exports.AuthApiFp)(this.configuration).refreshToken(requestParameters.iRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1524
1525
|
}
|
|
1525
1526
|
/**
|
|
1526
1527
|
*
|
package/dist/api/api.mjs
CHANGED
|
@@ -636,6 +636,14 @@ export const OrderReturnStatusEnum = {
|
|
|
636
636
|
WAITING_RETURN: 'waiting_return',
|
|
637
637
|
RETURNED: 'returned'
|
|
638
638
|
};
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @export
|
|
642
|
+
* @enum {string}
|
|
643
|
+
*/
|
|
644
|
+
export const OrderReturnStatusEnumREJECTED = {
|
|
645
|
+
REJECTED: 'rejected'
|
|
646
|
+
};
|
|
639
647
|
/**
|
|
640
648
|
*
|
|
641
649
|
* @export
|
|
@@ -1070,14 +1078,11 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1070
1078
|
},
|
|
1071
1079
|
/**
|
|
1072
1080
|
*
|
|
1073
|
-
* @param {string} domain
|
|
1074
1081
|
* @param {IRefreshTokenRequest} iRefreshTokenRequest
|
|
1075
1082
|
* @param {*} [options] Override http request option.
|
|
1076
1083
|
* @throws {RequiredError}
|
|
1077
1084
|
*/
|
|
1078
|
-
refreshToken: async (
|
|
1079
|
-
// verify required parameter 'domain' is not null or undefined
|
|
1080
|
-
assertParamExists('refreshToken', 'domain', domain);
|
|
1085
|
+
refreshToken: async (iRefreshTokenRequest, options = {}) => {
|
|
1081
1086
|
// verify required parameter 'iRefreshTokenRequest' is not null or undefined
|
|
1082
1087
|
assertParamExists('refreshToken', 'iRefreshTokenRequest', iRefreshTokenRequest);
|
|
1083
1088
|
const localVarPath = `/api/auth/refresh-token`;
|
|
@@ -1090,9 +1095,6 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1090
1095
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1091
1096
|
const localVarHeaderParameter = {};
|
|
1092
1097
|
const localVarQueryParameter = {};
|
|
1093
|
-
if (domain !== undefined) {
|
|
1094
|
-
localVarQueryParameter['domain'] = domain;
|
|
1095
|
-
}
|
|
1096
1098
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1097
1099
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1098
1100
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1308,13 +1310,12 @@ export const AuthApiFp = function (configuration) {
|
|
|
1308
1310
|
},
|
|
1309
1311
|
/**
|
|
1310
1312
|
*
|
|
1311
|
-
* @param {string} domain
|
|
1312
1313
|
* @param {IRefreshTokenRequest} iRefreshTokenRequest
|
|
1313
1314
|
* @param {*} [options] Override http request option.
|
|
1314
1315
|
* @throws {RequiredError}
|
|
1315
1316
|
*/
|
|
1316
|
-
async refreshToken(
|
|
1317
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(
|
|
1317
|
+
async refreshToken(iRefreshTokenRequest, options) {
|
|
1318
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshToken(iRefreshTokenRequest, options);
|
|
1318
1319
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1319
1320
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.refreshToken']?.[localVarOperationServerIndex]?.url;
|
|
1320
1321
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1417,7 +1418,7 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1417
1418
|
* @throws {RequiredError}
|
|
1418
1419
|
*/
|
|
1419
1420
|
refreshToken(requestParameters, options) {
|
|
1420
|
-
return localVarFp.refreshToken(requestParameters.
|
|
1421
|
+
return localVarFp.refreshToken(requestParameters.iRefreshTokenRequest, options).then((request) => request(axios, basePath));
|
|
1421
1422
|
},
|
|
1422
1423
|
/**
|
|
1423
1424
|
*
|
|
@@ -1501,7 +1502,7 @@ export class AuthApi extends BaseAPI {
|
|
|
1501
1502
|
* @memberof AuthApi
|
|
1502
1503
|
*/
|
|
1503
1504
|
refreshToken(requestParameters, options) {
|
|
1504
|
-
return AuthApiFp(this.configuration).refreshToken(requestParameters.
|
|
1505
|
+
return AuthApiFp(this.configuration).refreshToken(requestParameters.iRefreshTokenRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1505
1506
|
}
|
|
1506
1507
|
/**
|
|
1507
1508
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.66",
|
|
4
4
|
"description": "api-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": "6744fe2416ab048f512075ad0763e82a50297bdb"
|
|
41
41
|
}
|