@infisale-client/api-client 1.1.24 → 1.1.25
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 +6 -6
- package/dist/api/api.js +11 -11
- package/dist/api/api.mjs +11 -11
- package/package.json +2 -2
package/dist/api/api.d.ts
CHANGED
|
@@ -1426,7 +1426,7 @@ export interface ICollectionCollectionsQueryParams {
|
|
|
1426
1426
|
* @type {string}
|
|
1427
1427
|
* @memberof ICollectionCollectionsQueryParams
|
|
1428
1428
|
*/
|
|
1429
|
-
'
|
|
1429
|
+
'company_id': string;
|
|
1430
1430
|
/**
|
|
1431
1431
|
*
|
|
1432
1432
|
* @type {ContentStatusEnum}
|
|
@@ -8530,7 +8530,7 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
8530
8530
|
getCollectionBySlug: (slug: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8531
8531
|
/**
|
|
8532
8532
|
*
|
|
8533
|
-
* @param {string}
|
|
8533
|
+
* @param {string} companyId
|
|
8534
8534
|
* @param {number} [page]
|
|
8535
8535
|
* @param {number} [itemsPerPage]
|
|
8536
8536
|
* @param {string} [search]
|
|
@@ -8543,7 +8543,7 @@ export declare const CollectionApiAxiosParamCreator: (configuration?: Configurat
|
|
|
8543
8543
|
* @param {*} [options] Override http request option.
|
|
8544
8544
|
* @throws {RequiredError}
|
|
8545
8545
|
*/
|
|
8546
|
-
getCollections: (
|
|
8546
|
+
getCollections: (companyId: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
8547
8547
|
};
|
|
8548
8548
|
/**
|
|
8549
8549
|
* CollectionApi - functional programming interface
|
|
@@ -8560,7 +8560,7 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
8560
8560
|
getCollectionBySlug(slug: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionResponse>>;
|
|
8561
8561
|
/**
|
|
8562
8562
|
*
|
|
8563
|
-
* @param {string}
|
|
8563
|
+
* @param {string} companyId
|
|
8564
8564
|
* @param {number} [page]
|
|
8565
8565
|
* @param {number} [itemsPerPage]
|
|
8566
8566
|
* @param {string} [search]
|
|
@@ -8573,7 +8573,7 @@ export declare const CollectionApiFp: (configuration?: Configuration) => {
|
|
|
8573
8573
|
* @param {*} [options] Override http request option.
|
|
8574
8574
|
* @throws {RequiredError}
|
|
8575
8575
|
*/
|
|
8576
|
-
getCollections(
|
|
8576
|
+
getCollections(companyId: string, page?: number, itemsPerPage?: number, search?: string, startDate?: string, endDate?: string, dateField?: string, order?: OrderEnum, sort?: string, status?: ContentStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ICollectionsResponse>>;
|
|
8577
8577
|
};
|
|
8578
8578
|
/**
|
|
8579
8579
|
* CollectionApi - factory interface
|
|
@@ -8625,7 +8625,7 @@ export interface CollectionApiGetCollectionsRequest {
|
|
|
8625
8625
|
* @type {string}
|
|
8626
8626
|
* @memberof CollectionApiGetCollections
|
|
8627
8627
|
*/
|
|
8628
|
-
readonly
|
|
8628
|
+
readonly companyId: string;
|
|
8629
8629
|
/**
|
|
8630
8630
|
*
|
|
8631
8631
|
* @type {number}
|
package/dist/api/api.js
CHANGED
|
@@ -1365,7 +1365,7 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
1365
1365
|
},
|
|
1366
1366
|
/**
|
|
1367
1367
|
*
|
|
1368
|
-
* @param {string}
|
|
1368
|
+
* @param {string} companyId
|
|
1369
1369
|
* @param {number} [page]
|
|
1370
1370
|
* @param {number} [itemsPerPage]
|
|
1371
1371
|
* @param {string} [search]
|
|
@@ -1378,9 +1378,9 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
1378
1378
|
* @param {*} [options] Override http request option.
|
|
1379
1379
|
* @throws {RequiredError}
|
|
1380
1380
|
*/
|
|
1381
|
-
getCollections: async (
|
|
1382
|
-
// verify required parameter '
|
|
1383
|
-
(0, common_1.assertParamExists)('getCollections', '
|
|
1381
|
+
getCollections: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
1382
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1383
|
+
(0, common_1.assertParamExists)('getCollections', 'companyId', companyId);
|
|
1384
1384
|
const localVarPath = `/api/collections`;
|
|
1385
1385
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1386
1386
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1419,8 +1419,8 @@ const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
1419
1419
|
if (sort !== undefined) {
|
|
1420
1420
|
localVarQueryParameter['sort'] = sort;
|
|
1421
1421
|
}
|
|
1422
|
-
if (
|
|
1423
|
-
localVarQueryParameter['
|
|
1422
|
+
if (companyId !== undefined) {
|
|
1423
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1424
1424
|
}
|
|
1425
1425
|
if (status !== undefined) {
|
|
1426
1426
|
localVarQueryParameter['status'] = status;
|
|
@@ -1458,7 +1458,7 @@ const CollectionApiFp = function (configuration) {
|
|
|
1458
1458
|
},
|
|
1459
1459
|
/**
|
|
1460
1460
|
*
|
|
1461
|
-
* @param {string}
|
|
1461
|
+
* @param {string} companyId
|
|
1462
1462
|
* @param {number} [page]
|
|
1463
1463
|
* @param {number} [itemsPerPage]
|
|
1464
1464
|
* @param {string} [search]
|
|
@@ -1471,8 +1471,8 @@ const CollectionApiFp = function (configuration) {
|
|
|
1471
1471
|
* @param {*} [options] Override http request option.
|
|
1472
1472
|
* @throws {RequiredError}
|
|
1473
1473
|
*/
|
|
1474
|
-
async getCollections(
|
|
1475
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(
|
|
1474
|
+
async getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
1475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
1476
1476
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1477
1477
|
const localVarOperationServerBasePath = base_1.operationServerMap['CollectionApi.getCollections']?.[localVarOperationServerIndex]?.url;
|
|
1478
1478
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1503,7 +1503,7 @@ const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
1503
1503
|
* @throws {RequiredError}
|
|
1504
1504
|
*/
|
|
1505
1505
|
getCollections(requestParameters, options) {
|
|
1506
|
-
return localVarFp.getCollections(requestParameters.
|
|
1506
|
+
return localVarFp.getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
1507
1507
|
},
|
|
1508
1508
|
};
|
|
1509
1509
|
};
|
|
@@ -1533,7 +1533,7 @@ class CollectionApi extends base_1.BaseAPI {
|
|
|
1533
1533
|
* @memberof CollectionApi
|
|
1534
1534
|
*/
|
|
1535
1535
|
getCollections(requestParameters, options) {
|
|
1536
|
-
return (0, exports.CollectionApiFp)(this.configuration).getCollections(requestParameters.
|
|
1536
|
+
return (0, exports.CollectionApiFp)(this.configuration).getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
exports.CollectionApi = CollectionApi;
|
package/dist/api/api.mjs
CHANGED
|
@@ -1347,7 +1347,7 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
1347
1347
|
},
|
|
1348
1348
|
/**
|
|
1349
1349
|
*
|
|
1350
|
-
* @param {string}
|
|
1350
|
+
* @param {string} companyId
|
|
1351
1351
|
* @param {number} [page]
|
|
1352
1352
|
* @param {number} [itemsPerPage]
|
|
1353
1353
|
* @param {string} [search]
|
|
@@ -1360,9 +1360,9 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
1360
1360
|
* @param {*} [options] Override http request option.
|
|
1361
1361
|
* @throws {RequiredError}
|
|
1362
1362
|
*/
|
|
1363
|
-
getCollections: async (
|
|
1364
|
-
// verify required parameter '
|
|
1365
|
-
assertParamExists('getCollections', '
|
|
1363
|
+
getCollections: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options = {}) => {
|
|
1364
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
1365
|
+
assertParamExists('getCollections', 'companyId', companyId);
|
|
1366
1366
|
const localVarPath = `/api/collections`;
|
|
1367
1367
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1368
1368
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1401,8 +1401,8 @@ export const CollectionApiAxiosParamCreator = function (configuration) {
|
|
|
1401
1401
|
if (sort !== undefined) {
|
|
1402
1402
|
localVarQueryParameter['sort'] = sort;
|
|
1403
1403
|
}
|
|
1404
|
-
if (
|
|
1405
|
-
localVarQueryParameter['
|
|
1404
|
+
if (companyId !== undefined) {
|
|
1405
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
1406
1406
|
}
|
|
1407
1407
|
if (status !== undefined) {
|
|
1408
1408
|
localVarQueryParameter['status'] = status;
|
|
@@ -1439,7 +1439,7 @@ export const CollectionApiFp = function (configuration) {
|
|
|
1439
1439
|
},
|
|
1440
1440
|
/**
|
|
1441
1441
|
*
|
|
1442
|
-
* @param {string}
|
|
1442
|
+
* @param {string} companyId
|
|
1443
1443
|
* @param {number} [page]
|
|
1444
1444
|
* @param {number} [itemsPerPage]
|
|
1445
1445
|
* @param {string} [search]
|
|
@@ -1452,8 +1452,8 @@ export const CollectionApiFp = function (configuration) {
|
|
|
1452
1452
|
* @param {*} [options] Override http request option.
|
|
1453
1453
|
* @throws {RequiredError}
|
|
1454
1454
|
*/
|
|
1455
|
-
async getCollections(
|
|
1456
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(
|
|
1455
|
+
async getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options) {
|
|
1456
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollections(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, status, options);
|
|
1457
1457
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1458
1458
|
const localVarOperationServerBasePath = operationServerMap['CollectionApi.getCollections']?.[localVarOperationServerIndex]?.url;
|
|
1459
1459
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1483,7 +1483,7 @@ export const CollectionApiFactory = function (configuration, basePath, axios) {
|
|
|
1483
1483
|
* @throws {RequiredError}
|
|
1484
1484
|
*/
|
|
1485
1485
|
getCollections(requestParameters, options) {
|
|
1486
|
-
return localVarFp.getCollections(requestParameters.
|
|
1486
|
+
return localVarFp.getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
1487
1487
|
},
|
|
1488
1488
|
};
|
|
1489
1489
|
};
|
|
@@ -1512,7 +1512,7 @@ export class CollectionApi extends BaseAPI {
|
|
|
1512
1512
|
* @memberof CollectionApi
|
|
1513
1513
|
*/
|
|
1514
1514
|
getCollections(requestParameters, options) {
|
|
1515
|
-
return CollectionApiFp(this.configuration).getCollections(requestParameters.
|
|
1515
|
+
return CollectionApiFp(this.configuration).getCollections(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
1518
|
/**
|
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.25",
|
|
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",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bugs": {
|
|
37
37
|
"url": "https://github.com/infisale/infisale-client/issues"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "48cae91737103ce6d0d0ecf70c248c48e87d60ba"
|
|
40
40
|
}
|