@infisale-client/api-client 1.2.41 → 1.2.43
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 +784 -734
- package/dist/api/api.js +61 -14
- package/dist/api/api.mjs +59 -12
- package/package.json +2 -2
package/dist/api/api.js
CHANGED
|
@@ -17,8 +17,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.SitemapTypeEnum = exports.ProductDetailImageZoomTypeEnum = exports.PlanTypeEnum = exports.PlanStatusEnum = exports.PlanCurrencyEnum = exports.PaymentMethodEnum = exports.PaymentGatewayEnum = exports.PageTypeEnum = exports.OrderStatusEnum = 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.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = 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.
|
|
21
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp =
|
|
20
|
+
exports.UserApiAxiosParamCreator = exports.SitemapApi = exports.SitemapApiFactory = exports.SitemapApiFp = exports.SitemapApiAxiosParamCreator = exports.GetProductsDateFieldEnum = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.GetPagesDateFieldEnum = exports.PageApi = exports.PageApiFactory = exports.PageApiFp = exports.PageApiAxiosParamCreator = exports.GetOrdersDateFieldEnum = exports.GetMyOrdersDateFieldEnum = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.ContactFormApi = exports.ContactFormApiFactory = exports.ContactFormApiFp = exports.ContactFormApiAxiosParamCreator = exports.CompanyApi = exports.CompanyApiFactory = exports.CompanyApiFp = exports.CompanyApiAxiosParamCreator = exports.GetCollectionsDateFieldEnum = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = 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 = void 0;
|
|
21
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = void 0;
|
|
22
22
|
const axios_1 = __importDefault(require("axios"));
|
|
23
23
|
// Some imports not used depending on template conditions
|
|
24
24
|
// @ts-ignore
|
|
@@ -741,18 +741,6 @@ exports.TemplateTypeEnum = {
|
|
|
741
741
|
NOT_FOUND: 'not-found',
|
|
742
742
|
BLOG: 'blog'
|
|
743
743
|
};
|
|
744
|
-
/**
|
|
745
|
-
*
|
|
746
|
-
* @export
|
|
747
|
-
* @enum {string}
|
|
748
|
-
*/
|
|
749
|
-
exports.ThemeTypeEnum = {
|
|
750
|
-
FASHION: 'fashion',
|
|
751
|
-
FOOD: 'food',
|
|
752
|
-
ELECTRONICS: 'electronics',
|
|
753
|
-
COSMETICS: 'cosmetics',
|
|
754
|
-
FURNITURE: 'furniture'
|
|
755
|
-
};
|
|
756
744
|
/**
|
|
757
745
|
*
|
|
758
746
|
* @export
|
|
@@ -1221,6 +1209,34 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1221
1209
|
options: localVarRequestOptions,
|
|
1222
1210
|
};
|
|
1223
1211
|
},
|
|
1212
|
+
/**
|
|
1213
|
+
*
|
|
1214
|
+
* @param {string} code
|
|
1215
|
+
* @param {*} [options] Override http request option.
|
|
1216
|
+
* @throws {RequiredError}
|
|
1217
|
+
*/
|
|
1218
|
+
verifyCode: async (code, options = {}) => {
|
|
1219
|
+
// verify required parameter 'code' is not null or undefined
|
|
1220
|
+
(0, common_1.assertParamExists)('verifyCode', 'code', code);
|
|
1221
|
+
const localVarPath = `/api/auth/verify-code/{code}`
|
|
1222
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
1223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1224
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1225
|
+
let baseOptions;
|
|
1226
|
+
if (configuration) {
|
|
1227
|
+
baseOptions = configuration.baseOptions;
|
|
1228
|
+
}
|
|
1229
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1230
|
+
const localVarHeaderParameter = {};
|
|
1231
|
+
const localVarQueryParameter = {};
|
|
1232
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1234
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1235
|
+
return {
|
|
1236
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1237
|
+
options: localVarRequestOptions,
|
|
1238
|
+
};
|
|
1239
|
+
},
|
|
1224
1240
|
};
|
|
1225
1241
|
};
|
|
1226
1242
|
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
@@ -1322,6 +1338,18 @@ const AuthApiFp = function (configuration) {
|
|
|
1322
1338
|
const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.socialLogin']?.[localVarOperationServerIndex]?.url;
|
|
1323
1339
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1324
1340
|
},
|
|
1341
|
+
/**
|
|
1342
|
+
*
|
|
1343
|
+
* @param {string} code
|
|
1344
|
+
* @param {*} [options] Override http request option.
|
|
1345
|
+
* @throws {RequiredError}
|
|
1346
|
+
*/
|
|
1347
|
+
async verifyCode(code, options) {
|
|
1348
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyCode(code, options);
|
|
1349
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1350
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.verifyCode']?.[localVarOperationServerIndex]?.url;
|
|
1351
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1352
|
+
},
|
|
1325
1353
|
};
|
|
1326
1354
|
};
|
|
1327
1355
|
exports.AuthApiFp = AuthApiFp;
|
|
@@ -1395,6 +1423,15 @@ const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1395
1423
|
socialLogin(requestParameters, options) {
|
|
1396
1424
|
return localVarFp.socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(axios, basePath));
|
|
1397
1425
|
},
|
|
1426
|
+
/**
|
|
1427
|
+
*
|
|
1428
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1429
|
+
* @param {*} [options] Override http request option.
|
|
1430
|
+
* @throws {RequiredError}
|
|
1431
|
+
*/
|
|
1432
|
+
verifyCode(requestParameters, options) {
|
|
1433
|
+
return localVarFp.verifyCode(requestParameters.code, options).then((request) => request(axios, basePath));
|
|
1434
|
+
},
|
|
1398
1435
|
};
|
|
1399
1436
|
};
|
|
1400
1437
|
exports.AuthApiFactory = AuthApiFactory;
|
|
@@ -1475,6 +1512,16 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1475
1512
|
socialLogin(requestParameters, options) {
|
|
1476
1513
|
return (0, exports.AuthApiFp)(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1477
1514
|
}
|
|
1515
|
+
/**
|
|
1516
|
+
*
|
|
1517
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1518
|
+
* @param {*} [options] Override http request option.
|
|
1519
|
+
* @throws {RequiredError}
|
|
1520
|
+
* @memberof AuthApi
|
|
1521
|
+
*/
|
|
1522
|
+
verifyCode(requestParameters, options) {
|
|
1523
|
+
return (0, exports.AuthApiFp)(this.configuration).verifyCode(requestParameters.code, options).then((request) => request(this.axios, this.basePath));
|
|
1524
|
+
}
|
|
1478
1525
|
}
|
|
1479
1526
|
exports.AuthApi = AuthApi;
|
|
1480
1527
|
/**
|
package/dist/api/api.mjs
CHANGED
|
@@ -730,18 +730,6 @@ export const TemplateTypeEnum = {
|
|
|
730
730
|
NOT_FOUND: 'not-found',
|
|
731
731
|
BLOG: 'blog'
|
|
732
732
|
};
|
|
733
|
-
/**
|
|
734
|
-
*
|
|
735
|
-
* @export
|
|
736
|
-
* @enum {string}
|
|
737
|
-
*/
|
|
738
|
-
export const ThemeTypeEnum = {
|
|
739
|
-
FASHION: 'fashion',
|
|
740
|
-
FOOD: 'food',
|
|
741
|
-
ELECTRONICS: 'electronics',
|
|
742
|
-
COSMETICS: 'cosmetics',
|
|
743
|
-
FURNITURE: 'furniture'
|
|
744
|
-
};
|
|
745
733
|
/**
|
|
746
734
|
*
|
|
747
735
|
* @export
|
|
@@ -1206,6 +1194,34 @@ export const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
1206
1194
|
options: localVarRequestOptions,
|
|
1207
1195
|
};
|
|
1208
1196
|
},
|
|
1197
|
+
/**
|
|
1198
|
+
*
|
|
1199
|
+
* @param {string} code
|
|
1200
|
+
* @param {*} [options] Override http request option.
|
|
1201
|
+
* @throws {RequiredError}
|
|
1202
|
+
*/
|
|
1203
|
+
verifyCode: async (code, options = {}) => {
|
|
1204
|
+
// verify required parameter 'code' is not null or undefined
|
|
1205
|
+
assertParamExists('verifyCode', 'code', code);
|
|
1206
|
+
const localVarPath = `/api/auth/verify-code/{code}`
|
|
1207
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
1208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1210
|
+
let baseOptions;
|
|
1211
|
+
if (configuration) {
|
|
1212
|
+
baseOptions = configuration.baseOptions;
|
|
1213
|
+
}
|
|
1214
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1215
|
+
const localVarHeaderParameter = {};
|
|
1216
|
+
const localVarQueryParameter = {};
|
|
1217
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1219
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1220
|
+
return {
|
|
1221
|
+
url: toPathString(localVarUrlObj),
|
|
1222
|
+
options: localVarRequestOptions,
|
|
1223
|
+
};
|
|
1224
|
+
},
|
|
1209
1225
|
};
|
|
1210
1226
|
};
|
|
1211
1227
|
/**
|
|
@@ -1306,6 +1322,18 @@ export const AuthApiFp = function (configuration) {
|
|
|
1306
1322
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.socialLogin']?.[localVarOperationServerIndex]?.url;
|
|
1307
1323
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1308
1324
|
},
|
|
1325
|
+
/**
|
|
1326
|
+
*
|
|
1327
|
+
* @param {string} code
|
|
1328
|
+
* @param {*} [options] Override http request option.
|
|
1329
|
+
* @throws {RequiredError}
|
|
1330
|
+
*/
|
|
1331
|
+
async verifyCode(code, options) {
|
|
1332
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyCode(code, options);
|
|
1333
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1334
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.verifyCode']?.[localVarOperationServerIndex]?.url;
|
|
1335
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1336
|
+
},
|
|
1309
1337
|
};
|
|
1310
1338
|
};
|
|
1311
1339
|
/**
|
|
@@ -1378,6 +1406,15 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1378
1406
|
socialLogin(requestParameters, options) {
|
|
1379
1407
|
return localVarFp.socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(axios, basePath));
|
|
1380
1408
|
},
|
|
1409
|
+
/**
|
|
1410
|
+
*
|
|
1411
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1412
|
+
* @param {*} [options] Override http request option.
|
|
1413
|
+
* @throws {RequiredError}
|
|
1414
|
+
*/
|
|
1415
|
+
verifyCode(requestParameters, options) {
|
|
1416
|
+
return localVarFp.verifyCode(requestParameters.code, options).then((request) => request(axios, basePath));
|
|
1417
|
+
},
|
|
1381
1418
|
};
|
|
1382
1419
|
};
|
|
1383
1420
|
/**
|
|
@@ -1457,6 +1494,16 @@ export class AuthApi extends BaseAPI {
|
|
|
1457
1494
|
socialLogin(requestParameters, options) {
|
|
1458
1495
|
return AuthApiFp(this.configuration).socialLogin(requestParameters.domain, requestParameters.iSocialLoginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1459
1496
|
}
|
|
1497
|
+
/**
|
|
1498
|
+
*
|
|
1499
|
+
* @param {AuthApiVerifyCodeRequest} requestParameters Request parameters.
|
|
1500
|
+
* @param {*} [options] Override http request option.
|
|
1501
|
+
* @throws {RequiredError}
|
|
1502
|
+
* @memberof AuthApi
|
|
1503
|
+
*/
|
|
1504
|
+
verifyCode(requestParameters, options) {
|
|
1505
|
+
return AuthApiFp(this.configuration).verifyCode(requestParameters.code, options).then((request) => request(this.axios, this.basePath));
|
|
1506
|
+
}
|
|
1460
1507
|
}
|
|
1461
1508
|
/**
|
|
1462
1509
|
* BasketApi - axios parameter creator
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.43",
|
|
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": "adb7271aca127ae767d65f4ca6b980e19bf2c452"
|
|
41
41
|
}
|