@infisale-client/api 1.1.17 → 1.1.18

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 CHANGED
@@ -4605,6 +4605,31 @@ export interface IPageCollectionQueryParams {
4605
4605
  */
4606
4606
  'status'?: ContentStatusEnum;
4607
4607
  }
4608
+ /**
4609
+ *
4610
+ * @export
4611
+ * @interface IPageGetAllQueryParams
4612
+ */
4613
+ export interface IPageGetAllQueryParams {
4614
+ /**
4615
+ *
4616
+ * @type {string}
4617
+ * @memberof IPageGetAllQueryParams
4618
+ */
4619
+ 'company'?: string;
4620
+ /**
4621
+ *
4622
+ * @type {string}
4623
+ * @memberof IPageGetAllQueryParams
4624
+ */
4625
+ 'domain'?: string;
4626
+ /**
4627
+ *
4628
+ * @type {Array<PageTypeEnum>}
4629
+ * @memberof IPageGetAllQueryParams
4630
+ */
4631
+ 'type'?: Array<PageTypeEnum>;
4632
+ }
4608
4633
  /**
4609
4634
  *
4610
4635
  * @export
@@ -6565,12 +6590,6 @@ export interface NavigationUrl {
6565
6590
  * @memberof NavigationUrl
6566
6591
  */
6567
6592
  '_id': string;
6568
- /**
6569
- *
6570
- * @type {string}
6571
- * @memberof NavigationUrl
6572
- */
6573
- 'page'?: string;
6574
6593
  /**
6575
6594
  *
6576
6595
  * @type {Array<NavigationUrl>}
@@ -11470,6 +11489,15 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
11470
11489
  * @throws {RequiredError}
11471
11490
  */
11472
11491
  deletePage: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11492
+ /**
11493
+ *
11494
+ * @param {string} [company]
11495
+ * @param {string} [domain]
11496
+ * @param {Array<PageTypeEnum>} [type]
11497
+ * @param {*} [options] Override http request option.
11498
+ * @throws {RequiredError}
11499
+ */
11500
+ getAllPages: (company?: string, domain?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11473
11501
  /**
11474
11502
  *
11475
11503
  * @param {string} id
@@ -11548,6 +11576,15 @@ export declare const PageApiFp: (configuration?: Configuration) => {
11548
11576
  * @throws {RequiredError}
11549
11577
  */
11550
11578
  deletePage(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
11579
+ /**
11580
+ *
11581
+ * @param {string} [company]
11582
+ * @param {string} [domain]
11583
+ * @param {Array<PageTypeEnum>} [type]
11584
+ * @param {*} [options] Override http request option.
11585
+ * @throws {RequiredError}
11586
+ */
11587
+ getAllPages(company?: string, domain?: string, type?: Array<PageTypeEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPagesResponse>>;
11551
11588
  /**
11552
11589
  *
11553
11590
  * @param {string} id
@@ -11626,6 +11663,13 @@ export declare const PageApiFactory: (configuration?: Configuration, basePath?:
11626
11663
  * @throws {RequiredError}
11627
11664
  */
11628
11665
  deletePage(requestParameters: PageApiDeletePageRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
11666
+ /**
11667
+ *
11668
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
11669
+ * @param {*} [options] Override http request option.
11670
+ * @throws {RequiredError}
11671
+ */
11672
+ getAllPages(requestParameters?: PageApiGetAllPagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<IPagesResponse>;
11629
11673
  /**
11630
11674
  *
11631
11675
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
@@ -11695,6 +11739,31 @@ export interface PageApiDeletePageRequest {
11695
11739
  */
11696
11740
  readonly id: string;
11697
11741
  }
11742
+ /**
11743
+ * Request parameters for getAllPages operation in PageApi.
11744
+ * @export
11745
+ * @interface PageApiGetAllPagesRequest
11746
+ */
11747
+ export interface PageApiGetAllPagesRequest {
11748
+ /**
11749
+ *
11750
+ * @type {string}
11751
+ * @memberof PageApiGetAllPages
11752
+ */
11753
+ readonly company?: string;
11754
+ /**
11755
+ *
11756
+ * @type {string}
11757
+ * @memberof PageApiGetAllPages
11758
+ */
11759
+ readonly domain?: string;
11760
+ /**
11761
+ *
11762
+ * @type {Array<PageTypeEnum>}
11763
+ * @memberof PageApiGetAllPages
11764
+ */
11765
+ readonly type?: Array<PageTypeEnum>;
11766
+ }
11698
11767
  /**
11699
11768
  * Request parameters for getPageById operation in PageApi.
11700
11769
  * @export
@@ -11892,6 +11961,14 @@ export declare class PageApi extends BaseAPI {
11892
11961
  * @memberof PageApi
11893
11962
  */
11894
11963
  deletePage(requestParameters: PageApiDeletePageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
11964
+ /**
11965
+ *
11966
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
11967
+ * @param {*} [options] Override http request option.
11968
+ * @throws {RequiredError}
11969
+ * @memberof PageApi
11970
+ */
11971
+ getAllPages(requestParameters?: PageApiGetAllPagesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IPagesResponse, any>>;
11895
11972
  /**
11896
11973
  *
11897
11974
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -5938,6 +5938,42 @@ const PageApiAxiosParamCreator = function (configuration) {
5938
5938
  options: localVarRequestOptions,
5939
5939
  };
5940
5940
  },
5941
+ /**
5942
+ *
5943
+ * @param {string} [company]
5944
+ * @param {string} [domain]
5945
+ * @param {Array<PageTypeEnum>} [type]
5946
+ * @param {*} [options] Override http request option.
5947
+ * @throws {RequiredError}
5948
+ */
5949
+ getAllPages: async (company, domain, type, options = {}) => {
5950
+ const localVarPath = `/api/pages/get/all`;
5951
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5952
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5953
+ let baseOptions;
5954
+ if (configuration) {
5955
+ baseOptions = configuration.baseOptions;
5956
+ }
5957
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5958
+ const localVarHeaderParameter = {};
5959
+ const localVarQueryParameter = {};
5960
+ if (company !== undefined) {
5961
+ localVarQueryParameter['company'] = company;
5962
+ }
5963
+ if (domain !== undefined) {
5964
+ localVarQueryParameter['domain'] = domain;
5965
+ }
5966
+ if (type) {
5967
+ localVarQueryParameter['type'] = type;
5968
+ }
5969
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5970
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5971
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5972
+ return {
5973
+ url: (0, common_1.toPathString)(localVarUrlObj),
5974
+ options: localVarRequestOptions,
5975
+ };
5976
+ },
5941
5977
  /**
5942
5978
  *
5943
5979
  * @param {string} id
@@ -6213,6 +6249,20 @@ const PageApiFp = function (configuration) {
6213
6249
  const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.deletePage']?.[localVarOperationServerIndex]?.url;
6214
6250
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6215
6251
  },
6252
+ /**
6253
+ *
6254
+ * @param {string} [company]
6255
+ * @param {string} [domain]
6256
+ * @param {Array<PageTypeEnum>} [type]
6257
+ * @param {*} [options] Override http request option.
6258
+ * @throws {RequiredError}
6259
+ */
6260
+ async getAllPages(company, domain, type, options) {
6261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(company, domain, type, options);
6262
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6263
+ const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
6264
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6265
+ },
6216
6266
  /**
6217
6267
  *
6218
6268
  * @param {string} id
@@ -6329,6 +6379,15 @@ const PageApiFactory = function (configuration, basePath, axios) {
6329
6379
  deletePage(requestParameters, options) {
6330
6380
  return localVarFp.deletePage(requestParameters.id, options).then((request) => request(axios, basePath));
6331
6381
  },
6382
+ /**
6383
+ *
6384
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
6385
+ * @param {*} [options] Override http request option.
6386
+ * @throws {RequiredError}
6387
+ */
6388
+ getAllPages(requestParameters = {}, options) {
6389
+ return localVarFp.getAllPages(requestParameters.company, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
6390
+ },
6332
6391
  /**
6333
6392
  *
6334
6393
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
@@ -6413,6 +6472,16 @@ class PageApi extends base_1.BaseAPI {
6413
6472
  deletePage(requestParameters, options) {
6414
6473
  return (0, exports.PageApiFp)(this.configuration).deletePage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6415
6474
  }
6475
+ /**
6476
+ *
6477
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
6478
+ * @param {*} [options] Override http request option.
6479
+ * @throws {RequiredError}
6480
+ * @memberof PageApi
6481
+ */
6482
+ getAllPages(requestParameters = {}, options) {
6483
+ return (0, exports.PageApiFp)(this.configuration).getAllPages(requestParameters.company, requestParameters.domain, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
6484
+ }
6416
6485
  /**
6417
6486
  *
6418
6487
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -5888,6 +5888,42 @@ export const PageApiAxiosParamCreator = function (configuration) {
5888
5888
  options: localVarRequestOptions,
5889
5889
  };
5890
5890
  },
5891
+ /**
5892
+ *
5893
+ * @param {string} [company]
5894
+ * @param {string} [domain]
5895
+ * @param {Array<PageTypeEnum>} [type]
5896
+ * @param {*} [options] Override http request option.
5897
+ * @throws {RequiredError}
5898
+ */
5899
+ getAllPages: async (company, domain, type, options = {}) => {
5900
+ const localVarPath = `/api/pages/get/all`;
5901
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5902
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5903
+ let baseOptions;
5904
+ if (configuration) {
5905
+ baseOptions = configuration.baseOptions;
5906
+ }
5907
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5908
+ const localVarHeaderParameter = {};
5909
+ const localVarQueryParameter = {};
5910
+ if (company !== undefined) {
5911
+ localVarQueryParameter['company'] = company;
5912
+ }
5913
+ if (domain !== undefined) {
5914
+ localVarQueryParameter['domain'] = domain;
5915
+ }
5916
+ if (type) {
5917
+ localVarQueryParameter['type'] = type;
5918
+ }
5919
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5920
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5921
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5922
+ return {
5923
+ url: toPathString(localVarUrlObj),
5924
+ options: localVarRequestOptions,
5925
+ };
5926
+ },
5891
5927
  /**
5892
5928
  *
5893
5929
  * @param {string} id
@@ -6162,6 +6198,20 @@ export const PageApiFp = function (configuration) {
6162
6198
  const localVarOperationServerBasePath = operationServerMap['PageApi.deletePage']?.[localVarOperationServerIndex]?.url;
6163
6199
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6164
6200
  },
6201
+ /**
6202
+ *
6203
+ * @param {string} [company]
6204
+ * @param {string} [domain]
6205
+ * @param {Array<PageTypeEnum>} [type]
6206
+ * @param {*} [options] Override http request option.
6207
+ * @throws {RequiredError}
6208
+ */
6209
+ async getAllPages(company, domain, type, options) {
6210
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPages(company, domain, type, options);
6211
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6212
+ const localVarOperationServerBasePath = operationServerMap['PageApi.getAllPages']?.[localVarOperationServerIndex]?.url;
6213
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6214
+ },
6165
6215
  /**
6166
6216
  *
6167
6217
  * @param {string} id
@@ -6277,6 +6327,15 @@ export const PageApiFactory = function (configuration, basePath, axios) {
6277
6327
  deletePage(requestParameters, options) {
6278
6328
  return localVarFp.deletePage(requestParameters.id, options).then((request) => request(axios, basePath));
6279
6329
  },
6330
+ /**
6331
+ *
6332
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
6333
+ * @param {*} [options] Override http request option.
6334
+ * @throws {RequiredError}
6335
+ */
6336
+ getAllPages(requestParameters = {}, options) {
6337
+ return localVarFp.getAllPages(requestParameters.company, requestParameters.domain, requestParameters.type, options).then((request) => request(axios, basePath));
6338
+ },
6280
6339
  /**
6281
6340
  *
6282
6341
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
@@ -6360,6 +6419,16 @@ export class PageApi extends BaseAPI {
6360
6419
  deletePage(requestParameters, options) {
6361
6420
  return PageApiFp(this.configuration).deletePage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6362
6421
  }
6422
+ /**
6423
+ *
6424
+ * @param {PageApiGetAllPagesRequest} requestParameters Request parameters.
6425
+ * @param {*} [options] Override http request option.
6426
+ * @throws {RequiredError}
6427
+ * @memberof PageApi
6428
+ */
6429
+ getAllPages(requestParameters = {}, options) {
6430
+ return PageApiFp(this.configuration).getAllPages(requestParameters.company, requestParameters.domain, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
6431
+ }
6363
6432
  /**
6364
6433
  *
6365
6434
  * @param {PageApiGetPageByIdRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
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",
@@ -36,5 +36,5 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/infisale/infisale-client/issues"
38
38
  },
39
- "gitHead": "e2a6048bb5132be2c67a5d03931fa2e8f06ec1f4"
39
+ "gitHead": "b82699a1ff281029c72965d9842251b4a2ff20e9"
40
40
  }