@infisale-client/api 1.2.12 → 1.2.15
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 +64 -1
- package/dist/api/api.js +62 -1
- package/dist/api/api.mjs +62 -1
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -128,7 +128,9 @@ export declare const ComponentTypeEnum: {
|
|
|
128
128
|
readonly FOOTER: "footer";
|
|
129
129
|
readonly EMAIL_SIGNUP: "email-signup";
|
|
130
130
|
readonly CONTACT_FORM: "contact-form";
|
|
131
|
-
readonly
|
|
131
|
+
readonly CART_DETAIL: "cart-detail";
|
|
132
|
+
readonly CHECKOUT_DETAIL: "checkout-detail";
|
|
133
|
+
readonly NOT_FOUND_DETAIL: "not-found-detail";
|
|
132
134
|
};
|
|
133
135
|
export type ComponentTypeEnum = typeof ComponentTypeEnum[keyof typeof ComponentTypeEnum];
|
|
134
136
|
/**
|
|
@@ -622,6 +624,19 @@ export interface IAllProductsResponse {
|
|
|
622
624
|
*/
|
|
623
625
|
'data': Array<PickIProductIdOrContentsOrCollectionsOrCategory>;
|
|
624
626
|
}
|
|
627
|
+
/**
|
|
628
|
+
*
|
|
629
|
+
* @export
|
|
630
|
+
* @interface IBasketCountResponse
|
|
631
|
+
*/
|
|
632
|
+
export interface IBasketCountResponse {
|
|
633
|
+
/**
|
|
634
|
+
*
|
|
635
|
+
* @type {number}
|
|
636
|
+
* @memberof IBasketCountResponse
|
|
637
|
+
*/
|
|
638
|
+
'productCount': number;
|
|
639
|
+
}
|
|
625
640
|
/**
|
|
626
641
|
*
|
|
627
642
|
* @export
|
|
@@ -8420,6 +8435,12 @@ export interface PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdmin
|
|
|
8420
8435
|
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8421
8436
|
*/
|
|
8422
8437
|
'title': string;
|
|
8438
|
+
/**
|
|
8439
|
+
*
|
|
8440
|
+
* @type {string}
|
|
8441
|
+
* @memberof PickIUserExcludeKeyofIUserPasswordOrSaltOrIsAdminOrIsSuperAdminOrCodeOrTAddressesInner
|
|
8442
|
+
*/
|
|
8443
|
+
'_id': string;
|
|
8423
8444
|
}
|
|
8424
8445
|
/**
|
|
8425
8446
|
*
|
|
@@ -9310,6 +9331,13 @@ export declare const BasketApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
9310
9331
|
* @throws {RequiredError}
|
|
9311
9332
|
*/
|
|
9312
9333
|
getBasket: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9334
|
+
/**
|
|
9335
|
+
*
|
|
9336
|
+
* @param {string} [id]
|
|
9337
|
+
* @param {*} [options] Override http request option.
|
|
9338
|
+
* @throws {RequiredError}
|
|
9339
|
+
*/
|
|
9340
|
+
getBasketCount: (id?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9313
9341
|
/**
|
|
9314
9342
|
*
|
|
9315
9343
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -9353,6 +9381,13 @@ export declare const BasketApiFp: (configuration?: Configuration) => {
|
|
|
9353
9381
|
* @throws {RequiredError}
|
|
9354
9382
|
*/
|
|
9355
9383
|
getBasket(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketResponse>>;
|
|
9384
|
+
/**
|
|
9385
|
+
*
|
|
9386
|
+
* @param {string} [id]
|
|
9387
|
+
* @param {*} [options] Override http request option.
|
|
9388
|
+
* @throws {RequiredError}
|
|
9389
|
+
*/
|
|
9390
|
+
getBasketCount(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IBasketCountResponse>>;
|
|
9356
9391
|
/**
|
|
9357
9392
|
*
|
|
9358
9393
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -9395,6 +9430,13 @@ export declare const BasketApiFactory: (configuration?: Configuration, basePath?
|
|
|
9395
9430
|
* @throws {RequiredError}
|
|
9396
9431
|
*/
|
|
9397
9432
|
getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketResponse>;
|
|
9433
|
+
/**
|
|
9434
|
+
*
|
|
9435
|
+
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
9436
|
+
* @param {*} [options] Override http request option.
|
|
9437
|
+
* @throws {RequiredError}
|
|
9438
|
+
*/
|
|
9439
|
+
getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<IBasketCountResponse>;
|
|
9398
9440
|
/**
|
|
9399
9441
|
*
|
|
9400
9442
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
@@ -9455,6 +9497,19 @@ export interface BasketApiGetBasketRequest {
|
|
|
9455
9497
|
*/
|
|
9456
9498
|
readonly id?: string;
|
|
9457
9499
|
}
|
|
9500
|
+
/**
|
|
9501
|
+
* Request parameters for getBasketCount operation in BasketApi.
|
|
9502
|
+
* @export
|
|
9503
|
+
* @interface BasketApiGetBasketCountRequest
|
|
9504
|
+
*/
|
|
9505
|
+
export interface BasketApiGetBasketCountRequest {
|
|
9506
|
+
/**
|
|
9507
|
+
*
|
|
9508
|
+
* @type {string}
|
|
9509
|
+
* @memberof BasketApiGetBasketCount
|
|
9510
|
+
*/
|
|
9511
|
+
readonly id?: string;
|
|
9512
|
+
}
|
|
9458
9513
|
/**
|
|
9459
9514
|
* Request parameters for mergeBasket operation in BasketApi.
|
|
9460
9515
|
* @export
|
|
@@ -9518,6 +9573,14 @@ export declare class BasketApi extends BaseAPI {
|
|
|
9518
9573
|
* @memberof BasketApi
|
|
9519
9574
|
*/
|
|
9520
9575
|
getBasket(requestParameters?: BasketApiGetBasketRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketResponse, any>>;
|
|
9576
|
+
/**
|
|
9577
|
+
*
|
|
9578
|
+
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
9579
|
+
* @param {*} [options] Override http request option.
|
|
9580
|
+
* @throws {RequiredError}
|
|
9581
|
+
* @memberof BasketApi
|
|
9582
|
+
*/
|
|
9583
|
+
getBasketCount(requestParameters?: BasketApiGetBasketCountRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IBasketCountResponse, any>>;
|
|
9521
9584
|
/**
|
|
9522
9585
|
*
|
|
9523
9586
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
package/dist/api/api.js
CHANGED
|
@@ -133,7 +133,9 @@ exports.ComponentTypeEnum = {
|
|
|
133
133
|
FOOTER: 'footer',
|
|
134
134
|
EMAIL_SIGNUP: 'email-signup',
|
|
135
135
|
CONTACT_FORM: 'contact-form',
|
|
136
|
-
|
|
136
|
+
CART_DETAIL: 'cart-detail',
|
|
137
|
+
CHECKOUT_DETAIL: 'checkout-detail',
|
|
138
|
+
NOT_FOUND_DETAIL: 'not-found-detail'
|
|
137
139
|
};
|
|
138
140
|
/**
|
|
139
141
|
*
|
|
@@ -1503,6 +1505,34 @@ const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1503
1505
|
options: localVarRequestOptions,
|
|
1504
1506
|
};
|
|
1505
1507
|
},
|
|
1508
|
+
/**
|
|
1509
|
+
*
|
|
1510
|
+
* @param {string} [id]
|
|
1511
|
+
* @param {*} [options] Override http request option.
|
|
1512
|
+
* @throws {RequiredError}
|
|
1513
|
+
*/
|
|
1514
|
+
getBasketCount: async (id, options = {}) => {
|
|
1515
|
+
const localVarPath = `/api/baskets/count`;
|
|
1516
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1517
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1518
|
+
let baseOptions;
|
|
1519
|
+
if (configuration) {
|
|
1520
|
+
baseOptions = configuration.baseOptions;
|
|
1521
|
+
}
|
|
1522
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1523
|
+
const localVarHeaderParameter = {};
|
|
1524
|
+
const localVarQueryParameter = {};
|
|
1525
|
+
if (id !== undefined) {
|
|
1526
|
+
localVarQueryParameter['id'] = id;
|
|
1527
|
+
}
|
|
1528
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1529
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1530
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1531
|
+
return {
|
|
1532
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1533
|
+
options: localVarRequestOptions,
|
|
1534
|
+
};
|
|
1535
|
+
},
|
|
1506
1536
|
/**
|
|
1507
1537
|
*
|
|
1508
1538
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -1612,6 +1642,18 @@ const BasketApiFp = function (configuration) {
|
|
|
1612
1642
|
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1613
1643
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1614
1644
|
},
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @param {string} [id]
|
|
1648
|
+
* @param {*} [options] Override http request option.
|
|
1649
|
+
* @throws {RequiredError}
|
|
1650
|
+
*/
|
|
1651
|
+
async getBasketCount(id, options) {
|
|
1652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
|
|
1653
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1654
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
|
|
1655
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1656
|
+
},
|
|
1615
1657
|
/**
|
|
1616
1658
|
*
|
|
1617
1659
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -1674,6 +1716,15 @@ const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1674
1716
|
getBasket(requestParameters = {}, options) {
|
|
1675
1717
|
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1676
1718
|
},
|
|
1719
|
+
/**
|
|
1720
|
+
*
|
|
1721
|
+
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
1722
|
+
* @param {*} [options] Override http request option.
|
|
1723
|
+
* @throws {RequiredError}
|
|
1724
|
+
*/
|
|
1725
|
+
getBasketCount(requestParameters = {}, options) {
|
|
1726
|
+
return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1727
|
+
},
|
|
1677
1728
|
/**
|
|
1678
1729
|
*
|
|
1679
1730
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
@@ -1732,6 +1783,16 @@ class BasketApi extends base_1.BaseAPI {
|
|
|
1732
1783
|
getBasket(requestParameters = {}, options) {
|
|
1733
1784
|
return (0, exports.BasketApiFp)(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1734
1785
|
}
|
|
1786
|
+
/**
|
|
1787
|
+
*
|
|
1788
|
+
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
1789
|
+
* @param {*} [options] Override http request option.
|
|
1790
|
+
* @throws {RequiredError}
|
|
1791
|
+
* @memberof BasketApi
|
|
1792
|
+
*/
|
|
1793
|
+
getBasketCount(requestParameters = {}, options) {
|
|
1794
|
+
return (0, exports.BasketApiFp)(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1795
|
+
}
|
|
1735
1796
|
/**
|
|
1736
1797
|
*
|
|
1737
1798
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
package/dist/api/api.mjs
CHANGED
|
@@ -122,7 +122,9 @@ export const ComponentTypeEnum = {
|
|
|
122
122
|
FOOTER: 'footer',
|
|
123
123
|
EMAIL_SIGNUP: 'email-signup',
|
|
124
124
|
CONTACT_FORM: 'contact-form',
|
|
125
|
-
|
|
125
|
+
CART_DETAIL: 'cart-detail',
|
|
126
|
+
CHECKOUT_DETAIL: 'checkout-detail',
|
|
127
|
+
NOT_FOUND_DETAIL: 'not-found-detail'
|
|
126
128
|
};
|
|
127
129
|
/**
|
|
128
130
|
*
|
|
@@ -1484,6 +1486,34 @@ export const BasketApiAxiosParamCreator = function (configuration) {
|
|
|
1484
1486
|
options: localVarRequestOptions,
|
|
1485
1487
|
};
|
|
1486
1488
|
},
|
|
1489
|
+
/**
|
|
1490
|
+
*
|
|
1491
|
+
* @param {string} [id]
|
|
1492
|
+
* @param {*} [options] Override http request option.
|
|
1493
|
+
* @throws {RequiredError}
|
|
1494
|
+
*/
|
|
1495
|
+
getBasketCount: async (id, options = {}) => {
|
|
1496
|
+
const localVarPath = `/api/baskets/count`;
|
|
1497
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1498
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1499
|
+
let baseOptions;
|
|
1500
|
+
if (configuration) {
|
|
1501
|
+
baseOptions = configuration.baseOptions;
|
|
1502
|
+
}
|
|
1503
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1504
|
+
const localVarHeaderParameter = {};
|
|
1505
|
+
const localVarQueryParameter = {};
|
|
1506
|
+
if (id !== undefined) {
|
|
1507
|
+
localVarQueryParameter['id'] = id;
|
|
1508
|
+
}
|
|
1509
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1511
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1512
|
+
return {
|
|
1513
|
+
url: toPathString(localVarUrlObj),
|
|
1514
|
+
options: localVarRequestOptions,
|
|
1515
|
+
};
|
|
1516
|
+
},
|
|
1487
1517
|
/**
|
|
1488
1518
|
*
|
|
1489
1519
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -1592,6 +1622,18 @@ export const BasketApiFp = function (configuration) {
|
|
|
1592
1622
|
const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasket']?.[localVarOperationServerIndex]?.url;
|
|
1593
1623
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1594
1624
|
},
|
|
1625
|
+
/**
|
|
1626
|
+
*
|
|
1627
|
+
* @param {string} [id]
|
|
1628
|
+
* @param {*} [options] Override http request option.
|
|
1629
|
+
* @throws {RequiredError}
|
|
1630
|
+
*/
|
|
1631
|
+
async getBasketCount(id, options) {
|
|
1632
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBasketCount(id, options);
|
|
1633
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1634
|
+
const localVarOperationServerBasePath = operationServerMap['BasketApi.getBasketCount']?.[localVarOperationServerIndex]?.url;
|
|
1635
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1636
|
+
},
|
|
1595
1637
|
/**
|
|
1596
1638
|
*
|
|
1597
1639
|
* @param {IBasketMergeRequest} iBasketMergeRequest
|
|
@@ -1653,6 +1695,15 @@ export const BasketApiFactory = function (configuration, basePath, axios) {
|
|
|
1653
1695
|
getBasket(requestParameters = {}, options) {
|
|
1654
1696
|
return localVarFp.getBasket(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1655
1697
|
},
|
|
1698
|
+
/**
|
|
1699
|
+
*
|
|
1700
|
+
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
1701
|
+
* @param {*} [options] Override http request option.
|
|
1702
|
+
* @throws {RequiredError}
|
|
1703
|
+
*/
|
|
1704
|
+
getBasketCount(requestParameters = {}, options) {
|
|
1705
|
+
return localVarFp.getBasketCount(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
1706
|
+
},
|
|
1656
1707
|
/**
|
|
1657
1708
|
*
|
|
1658
1709
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
|
@@ -1710,6 +1761,16 @@ export class BasketApi extends BaseAPI {
|
|
|
1710
1761
|
getBasket(requestParameters = {}, options) {
|
|
1711
1762
|
return BasketApiFp(this.configuration).getBasket(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1712
1763
|
}
|
|
1764
|
+
/**
|
|
1765
|
+
*
|
|
1766
|
+
* @param {BasketApiGetBasketCountRequest} requestParameters Request parameters.
|
|
1767
|
+
* @param {*} [options] Override http request option.
|
|
1768
|
+
* @throws {RequiredError}
|
|
1769
|
+
* @memberof BasketApi
|
|
1770
|
+
*/
|
|
1771
|
+
getBasketCount(requestParameters = {}, options) {
|
|
1772
|
+
return BasketApiFp(this.configuration).getBasketCount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
1773
|
+
}
|
|
1713
1774
|
/**
|
|
1714
1775
|
*
|
|
1715
1776
|
* @param {BasketApiMergeBasketRequest} requestParameters Request parameters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infisale-client/api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
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": "7b84bcf1d93842548df7dc000cc0be467c121850"
|
|
41
41
|
}
|