@infisale-client/api 1.3.19 → 1.3.21

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
@@ -5077,6 +5077,12 @@ export type INavigationCollectionQueryParamsDateFieldEnum = typeof INavigationCo
5077
5077
  * @interface INavigationLink
5078
5078
  */
5079
5079
  export interface INavigationLink {
5080
+ /**
5081
+ *
5082
+ * @type {string}
5083
+ * @memberof INavigationLink
5084
+ */
5085
+ '_id': string;
5080
5086
  /**
5081
5087
  *
5082
5088
  * @type {string}
@@ -5095,6 +5101,12 @@ export interface INavigationLink {
5095
5101
  * @memberof INavigationLink
5096
5102
  */
5097
5103
  'type': NavigationLinkTypeEnum;
5104
+ /**
5105
+ *
5106
+ * @type {Array<INavigationLink>}
5107
+ * @memberof INavigationLink
5108
+ */
5109
+ 'links': Array<INavigationLink>;
5098
5110
  /**
5099
5111
  *
5100
5112
  * @type {any}
@@ -5102,12 +5114,43 @@ export interface INavigationLink {
5102
5114
  */
5103
5115
  'object': any;
5104
5116
  }
5117
+ /**
5118
+ *
5119
+ * @export
5120
+ * @interface INavigationPatchRequest
5121
+ */
5122
+ export interface INavigationPatchRequest {
5123
+ /**
5124
+ *
5125
+ * @type {string}
5126
+ * @memberof INavigationPatchRequest
5127
+ */
5128
+ 'title'?: string;
5129
+ /**
5130
+ *
5131
+ * @type {LanguageEnum}
5132
+ * @memberof INavigationPatchRequest
5133
+ */
5134
+ 'locale'?: LanguageEnum;
5135
+ /**
5136
+ *
5137
+ * @type {Array<INavigationLink>}
5138
+ * @memberof INavigationPatchRequest
5139
+ */
5140
+ 'links'?: Array<INavigationLink>;
5141
+ }
5105
5142
  /**
5106
5143
  *
5107
5144
  * @export
5108
5145
  * @interface INavigationPostRequest
5109
5146
  */
5110
5147
  export interface INavigationPostRequest {
5148
+ /**
5149
+ *
5150
+ * @type {string}
5151
+ * @memberof INavigationPostRequest
5152
+ */
5153
+ 'company': string;
5111
5154
  /**
5112
5155
  *
5113
5156
  * @type {string}
@@ -10584,31 +10627,37 @@ export interface PickIContactFormExcludeKeyofIContactFormKeyofMongoResponseOrCom
10584
10627
  /**
10585
10628
  * From T, pick a set of properties whose keys are in the union K
10586
10629
  * @export
10587
- * @interface PickINavigationExcludeKeyofINavigationKeyofMongoResponseOrCompany
10630
+ * @interface PickINavigationExcludeKeyofINavigationKeyofMongoResponse
10588
10631
  */
10589
- export interface PickINavigationExcludeKeyofINavigationKeyofMongoResponseOrCompany {
10632
+ export interface PickINavigationExcludeKeyofINavigationKeyofMongoResponse {
10633
+ /**
10634
+ *
10635
+ * @type {string}
10636
+ * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponse
10637
+ */
10638
+ 'company': string;
10590
10639
  /**
10591
10640
  *
10592
10641
  * @type {string}
10593
- * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponseOrCompany
10642
+ * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponse
10594
10643
  */
10595
10644
  'title': string;
10596
10645
  /**
10597
10646
  *
10598
10647
  * @type {string}
10599
- * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponseOrCompany
10648
+ * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponse
10600
10649
  */
10601
10650
  'slug': string;
10602
10651
  /**
10603
10652
  *
10604
10653
  * @type {LanguageEnum}
10605
- * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponseOrCompany
10654
+ * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponse
10606
10655
  */
10607
10656
  'locale': LanguageEnum;
10608
10657
  /**
10609
10658
  *
10610
10659
  * @type {Array<INavigationLink>}
10611
- * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponseOrCompany
10660
+ * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponse
10612
10661
  */
10613
10662
  'links': Array<INavigationLink>;
10614
10663
  }
@@ -17578,10 +17627,19 @@ export declare const NavigationApiAxiosParamCreator: (configuration?: Configurat
17578
17627
  /**
17579
17628
  *
17580
17629
  * @param {string} id
17630
+ * @param {string} companyId
17631
+ * @param {*} [options] Override http request option.
17632
+ * @throws {RequiredError}
17633
+ */
17634
+ getNavigationById: (id: string, companyId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17635
+ /**
17636
+ *
17637
+ * @param {string} companyId
17638
+ * @param {string} slug
17581
17639
  * @param {*} [options] Override http request option.
17582
17640
  * @throws {RequiredError}
17583
17641
  */
17584
- getNavigationById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17642
+ getNavigationBySlug: (companyId: string, slug: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17585
17643
  /**
17586
17644
  *
17587
17645
  * @param {string} companyId
@@ -17600,11 +17658,11 @@ export declare const NavigationApiAxiosParamCreator: (configuration?: Configurat
17600
17658
  /**
17601
17659
  *
17602
17660
  * @param {string} id
17603
- * @param {INavigationPostRequest} iNavigationPostRequest
17661
+ * @param {INavigationPatchRequest} iNavigationPatchRequest
17604
17662
  * @param {*} [options] Override http request option.
17605
17663
  * @throws {RequiredError}
17606
17664
  */
17607
- patchNavigation: (id: string, iNavigationPostRequest: INavigationPostRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17665
+ patchNavigation: (id: string, iNavigationPatchRequest: INavigationPatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17608
17666
  };
17609
17667
  /**
17610
17668
  * NavigationApi - functional programming interface
@@ -17628,10 +17686,19 @@ export declare const NavigationApiFp: (configuration?: Configuration) => {
17628
17686
  /**
17629
17687
  *
17630
17688
  * @param {string} id
17689
+ * @param {string} companyId
17690
+ * @param {*} [options] Override http request option.
17691
+ * @throws {RequiredError}
17692
+ */
17693
+ getNavigationById(id: string, companyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<INavigationResponse>>;
17694
+ /**
17695
+ *
17696
+ * @param {string} companyId
17697
+ * @param {string} slug
17631
17698
  * @param {*} [options] Override http request option.
17632
17699
  * @throws {RequiredError}
17633
17700
  */
17634
- getNavigationById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<INavigationResponse>>;
17701
+ getNavigationBySlug(companyId: string, slug: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<INavigationResponse>>;
17635
17702
  /**
17636
17703
  *
17637
17704
  * @param {string} companyId
@@ -17650,11 +17717,11 @@ export declare const NavigationApiFp: (configuration?: Configuration) => {
17650
17717
  /**
17651
17718
  *
17652
17719
  * @param {string} id
17653
- * @param {INavigationPostRequest} iNavigationPostRequest
17720
+ * @param {INavigationPatchRequest} iNavigationPatchRequest
17654
17721
  * @param {*} [options] Override http request option.
17655
17722
  * @throws {RequiredError}
17656
17723
  */
17657
- patchNavigation(id: string, iNavigationPostRequest: INavigationPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<INavigationResponse>>;
17724
+ patchNavigation(id: string, iNavigationPatchRequest: INavigationPatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<INavigationResponse>>;
17658
17725
  };
17659
17726
  /**
17660
17727
  * NavigationApi - factory interface
@@ -17682,6 +17749,13 @@ export declare const NavigationApiFactory: (configuration?: Configuration, baseP
17682
17749
  * @throws {RequiredError}
17683
17750
  */
17684
17751
  getNavigationById(requestParameters: NavigationApiGetNavigationByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<INavigationResponse>;
17752
+ /**
17753
+ *
17754
+ * @param {NavigationApiGetNavigationBySlugRequest} requestParameters Request parameters.
17755
+ * @param {*} [options] Override http request option.
17756
+ * @throws {RequiredError}
17757
+ */
17758
+ getNavigationBySlug(requestParameters: NavigationApiGetNavigationBySlugRequest, options?: RawAxiosRequestConfig): AxiosPromise<INavigationResponse>;
17685
17759
  /**
17686
17760
  *
17687
17761
  * @param {NavigationApiGetNavigationsRequest} requestParameters Request parameters.
@@ -17735,6 +17809,31 @@ export interface NavigationApiGetNavigationByIdRequest {
17735
17809
  * @memberof NavigationApiGetNavigationById
17736
17810
  */
17737
17811
  readonly id: string;
17812
+ /**
17813
+ *
17814
+ * @type {string}
17815
+ * @memberof NavigationApiGetNavigationById
17816
+ */
17817
+ readonly companyId: string;
17818
+ }
17819
+ /**
17820
+ * Request parameters for getNavigationBySlug operation in NavigationApi.
17821
+ * @export
17822
+ * @interface NavigationApiGetNavigationBySlugRequest
17823
+ */
17824
+ export interface NavigationApiGetNavigationBySlugRequest {
17825
+ /**
17826
+ *
17827
+ * @type {string}
17828
+ * @memberof NavigationApiGetNavigationBySlug
17829
+ */
17830
+ readonly companyId: string;
17831
+ /**
17832
+ *
17833
+ * @type {string}
17834
+ * @memberof NavigationApiGetNavigationBySlug
17835
+ */
17836
+ readonly slug: string;
17738
17837
  }
17739
17838
  /**
17740
17839
  * Request parameters for getNavigations operation in NavigationApi.
@@ -17811,10 +17910,10 @@ export interface NavigationApiPatchNavigationRequest {
17811
17910
  readonly id: string;
17812
17911
  /**
17813
17912
  *
17814
- * @type {INavigationPostRequest}
17913
+ * @type {INavigationPatchRequest}
17815
17914
  * @memberof NavigationApiPatchNavigation
17816
17915
  */
17817
- readonly iNavigationPostRequest: INavigationPostRequest;
17916
+ readonly iNavigationPatchRequest: INavigationPatchRequest;
17818
17917
  }
17819
17918
  /**
17820
17919
  * NavigationApi - object-oriented interface
@@ -17847,6 +17946,14 @@ export declare class NavigationApi extends BaseAPI {
17847
17946
  * @memberof NavigationApi
17848
17947
  */
17849
17948
  getNavigationById(requestParameters: NavigationApiGetNavigationByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<INavigationResponse, any>>;
17949
+ /**
17950
+ *
17951
+ * @param {NavigationApiGetNavigationBySlugRequest} requestParameters Request parameters.
17952
+ * @param {*} [options] Override http request option.
17953
+ * @throws {RequiredError}
17954
+ * @memberof NavigationApi
17955
+ */
17956
+ getNavigationBySlug(requestParameters: NavigationApiGetNavigationBySlugRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<INavigationResponse, any>>;
17850
17957
  /**
17851
17958
  *
17852
17959
  * @param {NavigationApiGetNavigationsRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -7126,12 +7126,15 @@ const NavigationApiAxiosParamCreator = function (configuration) {
7126
7126
  /**
7127
7127
  *
7128
7128
  * @param {string} id
7129
+ * @param {string} companyId
7129
7130
  * @param {*} [options] Override http request option.
7130
7131
  * @throws {RequiredError}
7131
7132
  */
7132
- getNavigationById: async (id, options = {}) => {
7133
+ getNavigationById: async (id, companyId, options = {}) => {
7133
7134
  // verify required parameter 'id' is not null or undefined
7134
7135
  (0, common_1.assertParamExists)('getNavigationById', 'id', id);
7136
+ // verify required parameter 'companyId' is not null or undefined
7137
+ (0, common_1.assertParamExists)('getNavigationById', 'companyId', companyId);
7135
7138
  const localVarPath = `/api/navigations/{id}`
7136
7139
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7137
7140
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -7143,6 +7146,43 @@ const NavigationApiAxiosParamCreator = function (configuration) {
7143
7146
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7144
7147
  const localVarHeaderParameter = {};
7145
7148
  const localVarQueryParameter = {};
7149
+ if (companyId !== undefined) {
7150
+ localVarQueryParameter['companyId'] = companyId;
7151
+ }
7152
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7154
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7155
+ return {
7156
+ url: (0, common_1.toPathString)(localVarUrlObj),
7157
+ options: localVarRequestOptions,
7158
+ };
7159
+ },
7160
+ /**
7161
+ *
7162
+ * @param {string} companyId
7163
+ * @param {string} slug
7164
+ * @param {*} [options] Override http request option.
7165
+ * @throws {RequiredError}
7166
+ */
7167
+ getNavigationBySlug: async (companyId, slug, options = {}) => {
7168
+ // verify required parameter 'companyId' is not null or undefined
7169
+ (0, common_1.assertParamExists)('getNavigationBySlug', 'companyId', companyId);
7170
+ // verify required parameter 'slug' is not null or undefined
7171
+ (0, common_1.assertParamExists)('getNavigationBySlug', 'slug', slug);
7172
+ const localVarPath = `/api/navigations/slug/{slug}`
7173
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
7174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7175
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7176
+ let baseOptions;
7177
+ if (configuration) {
7178
+ baseOptions = configuration.baseOptions;
7179
+ }
7180
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7181
+ const localVarHeaderParameter = {};
7182
+ const localVarQueryParameter = {};
7183
+ if (companyId !== undefined) {
7184
+ localVarQueryParameter['companyId'] = companyId;
7185
+ }
7146
7186
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7147
7187
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7148
7188
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -7220,15 +7260,15 @@ const NavigationApiAxiosParamCreator = function (configuration) {
7220
7260
  /**
7221
7261
  *
7222
7262
  * @param {string} id
7223
- * @param {INavigationPostRequest} iNavigationPostRequest
7263
+ * @param {INavigationPatchRequest} iNavigationPatchRequest
7224
7264
  * @param {*} [options] Override http request option.
7225
7265
  * @throws {RequiredError}
7226
7266
  */
7227
- patchNavigation: async (id, iNavigationPostRequest, options = {}) => {
7267
+ patchNavigation: async (id, iNavigationPatchRequest, options = {}) => {
7228
7268
  // verify required parameter 'id' is not null or undefined
7229
7269
  (0, common_1.assertParamExists)('patchNavigation', 'id', id);
7230
- // verify required parameter 'iNavigationPostRequest' is not null or undefined
7231
- (0, common_1.assertParamExists)('patchNavigation', 'iNavigationPostRequest', iNavigationPostRequest);
7270
+ // verify required parameter 'iNavigationPatchRequest' is not null or undefined
7271
+ (0, common_1.assertParamExists)('patchNavigation', 'iNavigationPatchRequest', iNavigationPatchRequest);
7232
7272
  const localVarPath = `/api/navigations/{id}`
7233
7273
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7234
7274
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -7244,7 +7284,7 @@ const NavigationApiAxiosParamCreator = function (configuration) {
7244
7284
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7245
7285
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7246
7286
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7247
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iNavigationPostRequest, localVarRequestOptions, configuration);
7287
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(iNavigationPatchRequest, localVarRequestOptions, configuration);
7248
7288
  return {
7249
7289
  url: (0, common_1.toPathString)(localVarUrlObj),
7250
7290
  options: localVarRequestOptions,
@@ -7287,15 +7327,29 @@ const NavigationApiFp = function (configuration) {
7287
7327
  /**
7288
7328
  *
7289
7329
  * @param {string} id
7330
+ * @param {string} companyId
7290
7331
  * @param {*} [options] Override http request option.
7291
7332
  * @throws {RequiredError}
7292
7333
  */
7293
- async getNavigationById(id, options) {
7294
- const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigationById(id, options);
7334
+ async getNavigationById(id, companyId, options) {
7335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigationById(id, companyId, options);
7295
7336
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7296
7337
  const localVarOperationServerBasePath = base_1.operationServerMap['NavigationApi.getNavigationById']?.[localVarOperationServerIndex]?.url;
7297
7338
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7298
7339
  },
7340
+ /**
7341
+ *
7342
+ * @param {string} companyId
7343
+ * @param {string} slug
7344
+ * @param {*} [options] Override http request option.
7345
+ * @throws {RequiredError}
7346
+ */
7347
+ async getNavigationBySlug(companyId, slug, options) {
7348
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigationBySlug(companyId, slug, options);
7349
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7350
+ const localVarOperationServerBasePath = base_1.operationServerMap['NavigationApi.getNavigationBySlug']?.[localVarOperationServerIndex]?.url;
7351
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7352
+ },
7299
7353
  /**
7300
7354
  *
7301
7355
  * @param {string} companyId
@@ -7319,12 +7373,12 @@ const NavigationApiFp = function (configuration) {
7319
7373
  /**
7320
7374
  *
7321
7375
  * @param {string} id
7322
- * @param {INavigationPostRequest} iNavigationPostRequest
7376
+ * @param {INavigationPatchRequest} iNavigationPatchRequest
7323
7377
  * @param {*} [options] Override http request option.
7324
7378
  * @throws {RequiredError}
7325
7379
  */
7326
- async patchNavigation(id, iNavigationPostRequest, options) {
7327
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchNavigation(id, iNavigationPostRequest, options);
7380
+ async patchNavigation(id, iNavigationPatchRequest, options) {
7381
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchNavigation(id, iNavigationPatchRequest, options);
7328
7382
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7329
7383
  const localVarOperationServerBasePath = base_1.operationServerMap['NavigationApi.patchNavigation']?.[localVarOperationServerIndex]?.url;
7330
7384
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7364,7 +7418,16 @@ const NavigationApiFactory = function (configuration, basePath, axios) {
7364
7418
  * @throws {RequiredError}
7365
7419
  */
7366
7420
  getNavigationById(requestParameters, options) {
7367
- return localVarFp.getNavigationById(requestParameters.id, options).then((request) => request(axios, basePath));
7421
+ return localVarFp.getNavigationById(requestParameters.id, requestParameters.companyId, options).then((request) => request(axios, basePath));
7422
+ },
7423
+ /**
7424
+ *
7425
+ * @param {NavigationApiGetNavigationBySlugRequest} requestParameters Request parameters.
7426
+ * @param {*} [options] Override http request option.
7427
+ * @throws {RequiredError}
7428
+ */
7429
+ getNavigationBySlug(requestParameters, options) {
7430
+ return localVarFp.getNavigationBySlug(requestParameters.companyId, requestParameters.slug, options).then((request) => request(axios, basePath));
7368
7431
  },
7369
7432
  /**
7370
7433
  *
@@ -7382,7 +7445,7 @@ const NavigationApiFactory = function (configuration, basePath, axios) {
7382
7445
  * @throws {RequiredError}
7383
7446
  */
7384
7447
  patchNavigation(requestParameters, options) {
7385
- return localVarFp.patchNavigation(requestParameters.id, requestParameters.iNavigationPostRequest, options).then((request) => request(axios, basePath));
7448
+ return localVarFp.patchNavigation(requestParameters.id, requestParameters.iNavigationPatchRequest, options).then((request) => request(axios, basePath));
7386
7449
  },
7387
7450
  };
7388
7451
  };
@@ -7422,7 +7485,17 @@ class NavigationApi extends base_1.BaseAPI {
7422
7485
  * @memberof NavigationApi
7423
7486
  */
7424
7487
  getNavigationById(requestParameters, options) {
7425
- return (0, exports.NavigationApiFp)(this.configuration).getNavigationById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7488
+ return (0, exports.NavigationApiFp)(this.configuration).getNavigationById(requestParameters.id, requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
7489
+ }
7490
+ /**
7491
+ *
7492
+ * @param {NavigationApiGetNavigationBySlugRequest} requestParameters Request parameters.
7493
+ * @param {*} [options] Override http request option.
7494
+ * @throws {RequiredError}
7495
+ * @memberof NavigationApi
7496
+ */
7497
+ getNavigationBySlug(requestParameters, options) {
7498
+ return (0, exports.NavigationApiFp)(this.configuration).getNavigationBySlug(requestParameters.companyId, requestParameters.slug, options).then((request) => request(this.axios, this.basePath));
7426
7499
  }
7427
7500
  /**
7428
7501
  *
@@ -7442,7 +7515,7 @@ class NavigationApi extends base_1.BaseAPI {
7442
7515
  * @memberof NavigationApi
7443
7516
  */
7444
7517
  patchNavigation(requestParameters, options) {
7445
- return (0, exports.NavigationApiFp)(this.configuration).patchNavigation(requestParameters.id, requestParameters.iNavigationPostRequest, options).then((request) => request(this.axios, this.basePath));
7518
+ return (0, exports.NavigationApiFp)(this.configuration).patchNavigation(requestParameters.id, requestParameters.iNavigationPatchRequest, options).then((request) => request(this.axios, this.basePath));
7446
7519
  }
7447
7520
  }
7448
7521
  exports.NavigationApi = NavigationApi;
package/dist/api/api.mjs CHANGED
@@ -7078,12 +7078,15 @@ export const NavigationApiAxiosParamCreator = function (configuration) {
7078
7078
  /**
7079
7079
  *
7080
7080
  * @param {string} id
7081
+ * @param {string} companyId
7081
7082
  * @param {*} [options] Override http request option.
7082
7083
  * @throws {RequiredError}
7083
7084
  */
7084
- getNavigationById: async (id, options = {}) => {
7085
+ getNavigationById: async (id, companyId, options = {}) => {
7085
7086
  // verify required parameter 'id' is not null or undefined
7086
7087
  assertParamExists('getNavigationById', 'id', id);
7088
+ // verify required parameter 'companyId' is not null or undefined
7089
+ assertParamExists('getNavigationById', 'companyId', companyId);
7087
7090
  const localVarPath = `/api/navigations/{id}`
7088
7091
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7089
7092
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -7095,6 +7098,43 @@ export const NavigationApiAxiosParamCreator = function (configuration) {
7095
7098
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7096
7099
  const localVarHeaderParameter = {};
7097
7100
  const localVarQueryParameter = {};
7101
+ if (companyId !== undefined) {
7102
+ localVarQueryParameter['companyId'] = companyId;
7103
+ }
7104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7106
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7107
+ return {
7108
+ url: toPathString(localVarUrlObj),
7109
+ options: localVarRequestOptions,
7110
+ };
7111
+ },
7112
+ /**
7113
+ *
7114
+ * @param {string} companyId
7115
+ * @param {string} slug
7116
+ * @param {*} [options] Override http request option.
7117
+ * @throws {RequiredError}
7118
+ */
7119
+ getNavigationBySlug: async (companyId, slug, options = {}) => {
7120
+ // verify required parameter 'companyId' is not null or undefined
7121
+ assertParamExists('getNavigationBySlug', 'companyId', companyId);
7122
+ // verify required parameter 'slug' is not null or undefined
7123
+ assertParamExists('getNavigationBySlug', 'slug', slug);
7124
+ const localVarPath = `/api/navigations/slug/{slug}`
7125
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
7126
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7127
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7128
+ let baseOptions;
7129
+ if (configuration) {
7130
+ baseOptions = configuration.baseOptions;
7131
+ }
7132
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7133
+ const localVarHeaderParameter = {};
7134
+ const localVarQueryParameter = {};
7135
+ if (companyId !== undefined) {
7136
+ localVarQueryParameter['companyId'] = companyId;
7137
+ }
7098
7138
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7099
7139
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7100
7140
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -7172,15 +7212,15 @@ export const NavigationApiAxiosParamCreator = function (configuration) {
7172
7212
  /**
7173
7213
  *
7174
7214
  * @param {string} id
7175
- * @param {INavigationPostRequest} iNavigationPostRequest
7215
+ * @param {INavigationPatchRequest} iNavigationPatchRequest
7176
7216
  * @param {*} [options] Override http request option.
7177
7217
  * @throws {RequiredError}
7178
7218
  */
7179
- patchNavigation: async (id, iNavigationPostRequest, options = {}) => {
7219
+ patchNavigation: async (id, iNavigationPatchRequest, options = {}) => {
7180
7220
  // verify required parameter 'id' is not null or undefined
7181
7221
  assertParamExists('patchNavigation', 'id', id);
7182
- // verify required parameter 'iNavigationPostRequest' is not null or undefined
7183
- assertParamExists('patchNavigation', 'iNavigationPostRequest', iNavigationPostRequest);
7222
+ // verify required parameter 'iNavigationPatchRequest' is not null or undefined
7223
+ assertParamExists('patchNavigation', 'iNavigationPatchRequest', iNavigationPatchRequest);
7184
7224
  const localVarPath = `/api/navigations/{id}`
7185
7225
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7186
7226
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -7196,7 +7236,7 @@ export const NavigationApiAxiosParamCreator = function (configuration) {
7196
7236
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7197
7237
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7198
7238
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7199
- localVarRequestOptions.data = serializeDataIfNeeded(iNavigationPostRequest, localVarRequestOptions, configuration);
7239
+ localVarRequestOptions.data = serializeDataIfNeeded(iNavigationPatchRequest, localVarRequestOptions, configuration);
7200
7240
  return {
7201
7241
  url: toPathString(localVarUrlObj),
7202
7242
  options: localVarRequestOptions,
@@ -7238,15 +7278,29 @@ export const NavigationApiFp = function (configuration) {
7238
7278
  /**
7239
7279
  *
7240
7280
  * @param {string} id
7281
+ * @param {string} companyId
7241
7282
  * @param {*} [options] Override http request option.
7242
7283
  * @throws {RequiredError}
7243
7284
  */
7244
- async getNavigationById(id, options) {
7245
- const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigationById(id, options);
7285
+ async getNavigationById(id, companyId, options) {
7286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigationById(id, companyId, options);
7246
7287
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7247
7288
  const localVarOperationServerBasePath = operationServerMap['NavigationApi.getNavigationById']?.[localVarOperationServerIndex]?.url;
7248
7289
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7249
7290
  },
7291
+ /**
7292
+ *
7293
+ * @param {string} companyId
7294
+ * @param {string} slug
7295
+ * @param {*} [options] Override http request option.
7296
+ * @throws {RequiredError}
7297
+ */
7298
+ async getNavigationBySlug(companyId, slug, options) {
7299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigationBySlug(companyId, slug, options);
7300
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7301
+ const localVarOperationServerBasePath = operationServerMap['NavigationApi.getNavigationBySlug']?.[localVarOperationServerIndex]?.url;
7302
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7303
+ },
7250
7304
  /**
7251
7305
  *
7252
7306
  * @param {string} companyId
@@ -7270,12 +7324,12 @@ export const NavigationApiFp = function (configuration) {
7270
7324
  /**
7271
7325
  *
7272
7326
  * @param {string} id
7273
- * @param {INavigationPostRequest} iNavigationPostRequest
7327
+ * @param {INavigationPatchRequest} iNavigationPatchRequest
7274
7328
  * @param {*} [options] Override http request option.
7275
7329
  * @throws {RequiredError}
7276
7330
  */
7277
- async patchNavigation(id, iNavigationPostRequest, options) {
7278
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchNavigation(id, iNavigationPostRequest, options);
7331
+ async patchNavigation(id, iNavigationPatchRequest, options) {
7332
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchNavigation(id, iNavigationPatchRequest, options);
7279
7333
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7280
7334
  const localVarOperationServerBasePath = operationServerMap['NavigationApi.patchNavigation']?.[localVarOperationServerIndex]?.url;
7281
7335
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7314,7 +7368,16 @@ export const NavigationApiFactory = function (configuration, basePath, axios) {
7314
7368
  * @throws {RequiredError}
7315
7369
  */
7316
7370
  getNavigationById(requestParameters, options) {
7317
- return localVarFp.getNavigationById(requestParameters.id, options).then((request) => request(axios, basePath));
7371
+ return localVarFp.getNavigationById(requestParameters.id, requestParameters.companyId, options).then((request) => request(axios, basePath));
7372
+ },
7373
+ /**
7374
+ *
7375
+ * @param {NavigationApiGetNavigationBySlugRequest} requestParameters Request parameters.
7376
+ * @param {*} [options] Override http request option.
7377
+ * @throws {RequiredError}
7378
+ */
7379
+ getNavigationBySlug(requestParameters, options) {
7380
+ return localVarFp.getNavigationBySlug(requestParameters.companyId, requestParameters.slug, options).then((request) => request(axios, basePath));
7318
7381
  },
7319
7382
  /**
7320
7383
  *
@@ -7332,7 +7395,7 @@ export const NavigationApiFactory = function (configuration, basePath, axios) {
7332
7395
  * @throws {RequiredError}
7333
7396
  */
7334
7397
  patchNavigation(requestParameters, options) {
7335
- return localVarFp.patchNavigation(requestParameters.id, requestParameters.iNavigationPostRequest, options).then((request) => request(axios, basePath));
7398
+ return localVarFp.patchNavigation(requestParameters.id, requestParameters.iNavigationPatchRequest, options).then((request) => request(axios, basePath));
7336
7399
  },
7337
7400
  };
7338
7401
  };
@@ -7371,7 +7434,17 @@ export class NavigationApi extends BaseAPI {
7371
7434
  * @memberof NavigationApi
7372
7435
  */
7373
7436
  getNavigationById(requestParameters, options) {
7374
- return NavigationApiFp(this.configuration).getNavigationById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7437
+ return NavigationApiFp(this.configuration).getNavigationById(requestParameters.id, requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
7438
+ }
7439
+ /**
7440
+ *
7441
+ * @param {NavigationApiGetNavigationBySlugRequest} requestParameters Request parameters.
7442
+ * @param {*} [options] Override http request option.
7443
+ * @throws {RequiredError}
7444
+ * @memberof NavigationApi
7445
+ */
7446
+ getNavigationBySlug(requestParameters, options) {
7447
+ return NavigationApiFp(this.configuration).getNavigationBySlug(requestParameters.companyId, requestParameters.slug, options).then((request) => request(this.axios, this.basePath));
7375
7448
  }
7376
7449
  /**
7377
7450
  *
@@ -7391,7 +7464,7 @@ export class NavigationApi extends BaseAPI {
7391
7464
  * @memberof NavigationApi
7392
7465
  */
7393
7466
  patchNavigation(requestParameters, options) {
7394
- return NavigationApiFp(this.configuration).patchNavigation(requestParameters.id, requestParameters.iNavigationPostRequest, options).then((request) => request(this.axios, this.basePath));
7467
+ return NavigationApiFp(this.configuration).patchNavigation(requestParameters.id, requestParameters.iNavigationPatchRequest, options).then((request) => request(this.axios, this.basePath));
7395
7468
  }
7396
7469
  }
7397
7470
  /**
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ interface IApiClient {
21
21
  BasketApi: doc.BasketApi;
22
22
  OrderApi: doc.OrderApi;
23
23
  UniquePageApi: doc.UniquePageApi;
24
+ NavigationApi: doc.NavigationApi;
24
25
  interceptors: {
25
26
  request: AxiosInterceptorManager<InternalAxiosRequestConfig>;
26
27
  response: AxiosInterceptorManager<AxiosResponse>;
@@ -55,6 +56,7 @@ export declare class ApiClient implements IApiClient {
55
56
  BasketApi: doc.BasketApi;
56
57
  OrderApi: doc.OrderApi;
57
58
  UniquePageApi: doc.UniquePageApi;
59
+ NavigationApi: doc.NavigationApi;
58
60
  constructor(baseURL: string, options?: {
59
61
  headers?: Record<string, string>;
60
62
  } | undefined);
package/dist/index.js CHANGED
@@ -65,6 +65,7 @@ class ApiClient {
65
65
  this.BasketApi = new doc.BasketApi(undefined, this.baseURL, this.api);
66
66
  this.OrderApi = new doc.OrderApi(undefined, this.baseURL, this.api);
67
67
  this.UniquePageApi = new doc.UniquePageApi(undefined, this.baseURL, this.api);
68
+ this.NavigationApi = new doc.NavigationApi(undefined, this.baseURL, this.api);
68
69
  this.interceptors = {
69
70
  request: this.api.interceptors.request,
70
71
  response: this.api.interceptors.response,
package/dist/index.mjs CHANGED
@@ -33,6 +33,7 @@ export class ApiClient {
33
33
  this.BasketApi = new doc.BasketApi(undefined, this.baseURL, this.api);
34
34
  this.OrderApi = new doc.OrderApi(undefined, this.baseURL, this.api);
35
35
  this.UniquePageApi = new doc.UniquePageApi(undefined, this.baseURL, this.api);
36
+ this.NavigationApi = new doc.NavigationApi(undefined, this.baseURL, this.api);
36
37
  this.interceptors = {
37
38
  request: this.api.interceptors.request,
38
39
  response: this.api.interceptors.response,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.3.19",
3
+ "version": "1.3.21",
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": "ab2a2d0253bff294e342c7f3c545f8657f47ea11"
40
+ "gitHead": "34cae509a953fd0510fc20c973a4f6d2d55d79fe"
41
41
  }