@infisale-client/api 1.3.18 → 1.3.20

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.mjs CHANGED
@@ -411,6 +411,10 @@ export const IMyOrderCollectionQueryParamsDateFieldEnum = {
411
411
  CREATED_AT: 'createdAt',
412
412
  UPDATED_AT: 'updatedAt'
413
413
  };
414
+ export const INavigationCollectionQueryParamsDateFieldEnum = {
415
+ CREATED_AT: 'createdAt',
416
+ UPDATED_AT: 'updatedAt'
417
+ };
414
418
  export const INotificationCollectionQueryParamsDateFieldEnum = {
415
419
  CREATED_AT: 'createdAt',
416
420
  UPDATED_AT: 'updatedAt'
@@ -464,6 +468,22 @@ export const LanguageEnum = {
464
468
  EN: 'en',
465
469
  DE: 'de'
466
470
  };
471
+ /**
472
+ *
473
+ * @export
474
+ * @enum {string}
475
+ */
476
+ export const NavigationLinkTypeEnum = {
477
+ BLOG_LINK: 'blog_link',
478
+ COLLECTION_LINK: 'collection_link',
479
+ CATEGORY_LINK: 'category_link',
480
+ CUSTOMER_ACCOUNT_PAGE_LINK: 'customer_account_page_link',
481
+ HTTP_LINK: 'http_link',
482
+ PAGE_LINK: 'page_link',
483
+ POLICY_LINK: 'policy_link',
484
+ PRODUCT_LINK: 'product_link',
485
+ UNIQUE_PAGE_LINK: 'unique_page_link'
486
+ };
467
487
  export const NavigationUrlTargetEnum = {
468
488
  BLANK: '_blank'
469
489
  };
@@ -6992,6 +7012,468 @@ export const GetFilesDateFieldEnum = {
6992
7012
  CREATED_AT: 'createdAt',
6993
7013
  UPDATED_AT: 'updatedAt'
6994
7014
  };
7015
+ /**
7016
+ * NavigationApi - axios parameter creator
7017
+ * @export
7018
+ */
7019
+ export const NavigationApiAxiosParamCreator = function (configuration) {
7020
+ return {
7021
+ /**
7022
+ *
7023
+ * @param {INavigationPostRequest} iNavigationPostRequest
7024
+ * @param {*} [options] Override http request option.
7025
+ * @throws {RequiredError}
7026
+ */
7027
+ createNavigation: async (iNavigationPostRequest, options = {}) => {
7028
+ // verify required parameter 'iNavigationPostRequest' is not null or undefined
7029
+ assertParamExists('createNavigation', 'iNavigationPostRequest', iNavigationPostRequest);
7030
+ const localVarPath = `/api/navigations`;
7031
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7032
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7033
+ let baseOptions;
7034
+ if (configuration) {
7035
+ baseOptions = configuration.baseOptions;
7036
+ }
7037
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
7038
+ const localVarHeaderParameter = {};
7039
+ const localVarQueryParameter = {};
7040
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7041
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7043
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7044
+ localVarRequestOptions.data = serializeDataIfNeeded(iNavigationPostRequest, localVarRequestOptions, configuration);
7045
+ return {
7046
+ url: toPathString(localVarUrlObj),
7047
+ options: localVarRequestOptions,
7048
+ };
7049
+ },
7050
+ /**
7051
+ *
7052
+ * @param {string} id
7053
+ * @param {*} [options] Override http request option.
7054
+ * @throws {RequiredError}
7055
+ */
7056
+ deleteNavigation: async (id, options = {}) => {
7057
+ // verify required parameter 'id' is not null or undefined
7058
+ assertParamExists('deleteNavigation', 'id', id);
7059
+ const localVarPath = `/api/navigations/{id}`
7060
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7061
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7062
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7063
+ let baseOptions;
7064
+ if (configuration) {
7065
+ baseOptions = configuration.baseOptions;
7066
+ }
7067
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
7068
+ const localVarHeaderParameter = {};
7069
+ const localVarQueryParameter = {};
7070
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7071
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7072
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7073
+ return {
7074
+ url: toPathString(localVarUrlObj),
7075
+ options: localVarRequestOptions,
7076
+ };
7077
+ },
7078
+ /**
7079
+ *
7080
+ * @param {string} id
7081
+ * @param {string} companyId
7082
+ * @param {*} [options] Override http request option.
7083
+ * @throws {RequiredError}
7084
+ */
7085
+ getNavigationById: async (id, companyId, options = {}) => {
7086
+ // verify required parameter 'id' is not null or undefined
7087
+ assertParamExists('getNavigationById', 'id', id);
7088
+ // verify required parameter 'companyId' is not null or undefined
7089
+ assertParamExists('getNavigationById', 'companyId', companyId);
7090
+ const localVarPath = `/api/navigations/{id}`
7091
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7092
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7093
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7094
+ let baseOptions;
7095
+ if (configuration) {
7096
+ baseOptions = configuration.baseOptions;
7097
+ }
7098
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7099
+ const localVarHeaderParameter = {};
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
+ }
7138
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7140
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7141
+ return {
7142
+ url: toPathString(localVarUrlObj),
7143
+ options: localVarRequestOptions,
7144
+ };
7145
+ },
7146
+ /**
7147
+ *
7148
+ * @param {string} companyId
7149
+ * @param {number} [page]
7150
+ * @param {number} [itemsPerPage]
7151
+ * @param {string} [search]
7152
+ * @param {string} [startDate]
7153
+ * @param {string} [endDate]
7154
+ * @param {GetNavigationsDateFieldEnum} [dateField]
7155
+ * @param {OrderEnum} [order]
7156
+ * @param {string} [sort]
7157
+ * @param {*} [options] Override http request option.
7158
+ * @throws {RequiredError}
7159
+ */
7160
+ getNavigations: async (companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options = {}) => {
7161
+ // verify required parameter 'companyId' is not null or undefined
7162
+ assertParamExists('getNavigations', 'companyId', companyId);
7163
+ const localVarPath = `/api/navigations`;
7164
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7165
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7166
+ let baseOptions;
7167
+ if (configuration) {
7168
+ baseOptions = configuration.baseOptions;
7169
+ }
7170
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7171
+ const localVarHeaderParameter = {};
7172
+ const localVarQueryParameter = {};
7173
+ if (page !== undefined) {
7174
+ localVarQueryParameter['page'] = page;
7175
+ }
7176
+ if (itemsPerPage !== undefined) {
7177
+ localVarQueryParameter['itemsPerPage'] = itemsPerPage;
7178
+ }
7179
+ if (search !== undefined) {
7180
+ localVarQueryParameter['search'] = search;
7181
+ }
7182
+ if (startDate !== undefined) {
7183
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
7184
+ startDate.toISOString() :
7185
+ startDate;
7186
+ }
7187
+ if (endDate !== undefined) {
7188
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
7189
+ endDate.toISOString() :
7190
+ endDate;
7191
+ }
7192
+ if (dateField !== undefined) {
7193
+ localVarQueryParameter['dateField'] = dateField;
7194
+ }
7195
+ if (order !== undefined) {
7196
+ localVarQueryParameter['order'] = order;
7197
+ }
7198
+ if (sort !== undefined) {
7199
+ localVarQueryParameter['sort'] = sort;
7200
+ }
7201
+ if (companyId !== undefined) {
7202
+ localVarQueryParameter['companyId'] = companyId;
7203
+ }
7204
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7205
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7206
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7207
+ return {
7208
+ url: toPathString(localVarUrlObj),
7209
+ options: localVarRequestOptions,
7210
+ };
7211
+ },
7212
+ /**
7213
+ *
7214
+ * @param {string} id
7215
+ * @param {INavigationPostRequest} iNavigationPostRequest
7216
+ * @param {*} [options] Override http request option.
7217
+ * @throws {RequiredError}
7218
+ */
7219
+ patchNavigation: async (id, iNavigationPostRequest, options = {}) => {
7220
+ // verify required parameter 'id' is not null or undefined
7221
+ assertParamExists('patchNavigation', 'id', id);
7222
+ // verify required parameter 'iNavigationPostRequest' is not null or undefined
7223
+ assertParamExists('patchNavigation', 'iNavigationPostRequest', iNavigationPostRequest);
7224
+ const localVarPath = `/api/navigations/{id}`
7225
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7226
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7227
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7228
+ let baseOptions;
7229
+ if (configuration) {
7230
+ baseOptions = configuration.baseOptions;
7231
+ }
7232
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
7233
+ const localVarHeaderParameter = {};
7234
+ const localVarQueryParameter = {};
7235
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7236
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7238
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7239
+ localVarRequestOptions.data = serializeDataIfNeeded(iNavigationPostRequest, localVarRequestOptions, configuration);
7240
+ return {
7241
+ url: toPathString(localVarUrlObj),
7242
+ options: localVarRequestOptions,
7243
+ };
7244
+ },
7245
+ };
7246
+ };
7247
+ /**
7248
+ * NavigationApi - functional programming interface
7249
+ * @export
7250
+ */
7251
+ export const NavigationApiFp = function (configuration) {
7252
+ const localVarAxiosParamCreator = NavigationApiAxiosParamCreator(configuration);
7253
+ return {
7254
+ /**
7255
+ *
7256
+ * @param {INavigationPostRequest} iNavigationPostRequest
7257
+ * @param {*} [options] Override http request option.
7258
+ * @throws {RequiredError}
7259
+ */
7260
+ async createNavigation(iNavigationPostRequest, options) {
7261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createNavigation(iNavigationPostRequest, options);
7262
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7263
+ const localVarOperationServerBasePath = operationServerMap['NavigationApi.createNavigation']?.[localVarOperationServerIndex]?.url;
7264
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7265
+ },
7266
+ /**
7267
+ *
7268
+ * @param {string} id
7269
+ * @param {*} [options] Override http request option.
7270
+ * @throws {RequiredError}
7271
+ */
7272
+ async deleteNavigation(id, options) {
7273
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNavigation(id, options);
7274
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7275
+ const localVarOperationServerBasePath = operationServerMap['NavigationApi.deleteNavigation']?.[localVarOperationServerIndex]?.url;
7276
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7277
+ },
7278
+ /**
7279
+ *
7280
+ * @param {string} id
7281
+ * @param {string} companyId
7282
+ * @param {*} [options] Override http request option.
7283
+ * @throws {RequiredError}
7284
+ */
7285
+ async getNavigationById(id, companyId, options) {
7286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigationById(id, companyId, options);
7287
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7288
+ const localVarOperationServerBasePath = operationServerMap['NavigationApi.getNavigationById']?.[localVarOperationServerIndex]?.url;
7289
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
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
+ },
7304
+ /**
7305
+ *
7306
+ * @param {string} companyId
7307
+ * @param {number} [page]
7308
+ * @param {number} [itemsPerPage]
7309
+ * @param {string} [search]
7310
+ * @param {string} [startDate]
7311
+ * @param {string} [endDate]
7312
+ * @param {GetNavigationsDateFieldEnum} [dateField]
7313
+ * @param {OrderEnum} [order]
7314
+ * @param {string} [sort]
7315
+ * @param {*} [options] Override http request option.
7316
+ * @throws {RequiredError}
7317
+ */
7318
+ async getNavigations(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options) {
7319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNavigations(companyId, page, itemsPerPage, search, startDate, endDate, dateField, order, sort, options);
7320
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7321
+ const localVarOperationServerBasePath = operationServerMap['NavigationApi.getNavigations']?.[localVarOperationServerIndex]?.url;
7322
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7323
+ },
7324
+ /**
7325
+ *
7326
+ * @param {string} id
7327
+ * @param {INavigationPostRequest} iNavigationPostRequest
7328
+ * @param {*} [options] Override http request option.
7329
+ * @throws {RequiredError}
7330
+ */
7331
+ async patchNavigation(id, iNavigationPostRequest, options) {
7332
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchNavigation(id, iNavigationPostRequest, options);
7333
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7334
+ const localVarOperationServerBasePath = operationServerMap['NavigationApi.patchNavigation']?.[localVarOperationServerIndex]?.url;
7335
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7336
+ },
7337
+ };
7338
+ };
7339
+ /**
7340
+ * NavigationApi - factory interface
7341
+ * @export
7342
+ */
7343
+ export const NavigationApiFactory = function (configuration, basePath, axios) {
7344
+ const localVarFp = NavigationApiFp(configuration);
7345
+ return {
7346
+ /**
7347
+ *
7348
+ * @param {NavigationApiCreateNavigationRequest} requestParameters Request parameters.
7349
+ * @param {*} [options] Override http request option.
7350
+ * @throws {RequiredError}
7351
+ */
7352
+ createNavigation(requestParameters, options) {
7353
+ return localVarFp.createNavigation(requestParameters.iNavigationPostRequest, options).then((request) => request(axios, basePath));
7354
+ },
7355
+ /**
7356
+ *
7357
+ * @param {NavigationApiDeleteNavigationRequest} requestParameters Request parameters.
7358
+ * @param {*} [options] Override http request option.
7359
+ * @throws {RequiredError}
7360
+ */
7361
+ deleteNavigation(requestParameters, options) {
7362
+ return localVarFp.deleteNavigation(requestParameters.id, options).then((request) => request(axios, basePath));
7363
+ },
7364
+ /**
7365
+ *
7366
+ * @param {NavigationApiGetNavigationByIdRequest} requestParameters Request parameters.
7367
+ * @param {*} [options] Override http request option.
7368
+ * @throws {RequiredError}
7369
+ */
7370
+ getNavigationById(requestParameters, options) {
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));
7381
+ },
7382
+ /**
7383
+ *
7384
+ * @param {NavigationApiGetNavigationsRequest} requestParameters Request parameters.
7385
+ * @param {*} [options] Override http request option.
7386
+ * @throws {RequiredError}
7387
+ */
7388
+ getNavigations(requestParameters, options) {
7389
+ return localVarFp.getNavigations(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(axios, basePath));
7390
+ },
7391
+ /**
7392
+ *
7393
+ * @param {NavigationApiPatchNavigationRequest} requestParameters Request parameters.
7394
+ * @param {*} [options] Override http request option.
7395
+ * @throws {RequiredError}
7396
+ */
7397
+ patchNavigation(requestParameters, options) {
7398
+ return localVarFp.patchNavigation(requestParameters.id, requestParameters.iNavigationPostRequest, options).then((request) => request(axios, basePath));
7399
+ },
7400
+ };
7401
+ };
7402
+ /**
7403
+ * NavigationApi - object-oriented interface
7404
+ * @export
7405
+ * @class NavigationApi
7406
+ * @extends {BaseAPI}
7407
+ */
7408
+ export class NavigationApi extends BaseAPI {
7409
+ /**
7410
+ *
7411
+ * @param {NavigationApiCreateNavigationRequest} requestParameters Request parameters.
7412
+ * @param {*} [options] Override http request option.
7413
+ * @throws {RequiredError}
7414
+ * @memberof NavigationApi
7415
+ */
7416
+ createNavigation(requestParameters, options) {
7417
+ return NavigationApiFp(this.configuration).createNavigation(requestParameters.iNavigationPostRequest, options).then((request) => request(this.axios, this.basePath));
7418
+ }
7419
+ /**
7420
+ *
7421
+ * @param {NavigationApiDeleteNavigationRequest} requestParameters Request parameters.
7422
+ * @param {*} [options] Override http request option.
7423
+ * @throws {RequiredError}
7424
+ * @memberof NavigationApi
7425
+ */
7426
+ deleteNavigation(requestParameters, options) {
7427
+ return NavigationApiFp(this.configuration).deleteNavigation(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7428
+ }
7429
+ /**
7430
+ *
7431
+ * @param {NavigationApiGetNavigationByIdRequest} requestParameters Request parameters.
7432
+ * @param {*} [options] Override http request option.
7433
+ * @throws {RequiredError}
7434
+ * @memberof NavigationApi
7435
+ */
7436
+ getNavigationById(requestParameters, options) {
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));
7448
+ }
7449
+ /**
7450
+ *
7451
+ * @param {NavigationApiGetNavigationsRequest} requestParameters Request parameters.
7452
+ * @param {*} [options] Override http request option.
7453
+ * @throws {RequiredError}
7454
+ * @memberof NavigationApi
7455
+ */
7456
+ getNavigations(requestParameters, options) {
7457
+ return NavigationApiFp(this.configuration).getNavigations(requestParameters.companyId, requestParameters.page, requestParameters.itemsPerPage, requestParameters.search, requestParameters.startDate, requestParameters.endDate, requestParameters.dateField, requestParameters.order, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
7458
+ }
7459
+ /**
7460
+ *
7461
+ * @param {NavigationApiPatchNavigationRequest} requestParameters Request parameters.
7462
+ * @param {*} [options] Override http request option.
7463
+ * @throws {RequiredError}
7464
+ * @memberof NavigationApi
7465
+ */
7466
+ patchNavigation(requestParameters, options) {
7467
+ return NavigationApiFp(this.configuration).patchNavigation(requestParameters.id, requestParameters.iNavigationPostRequest, options).then((request) => request(this.axios, this.basePath));
7468
+ }
7469
+ }
7470
+ /**
7471
+ * @export
7472
+ */
7473
+ export const GetNavigationsDateFieldEnum = {
7474
+ CREATED_AT: 'createdAt',
7475
+ UPDATED_AT: 'updatedAt'
7476
+ };
6995
7477
  /**
6996
7478
  * NotificationApi - axios parameter creator
6997
7479
  * @export
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.18",
3
+ "version": "1.3.20",
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": "4cbc93aea8b664f10be3385f450a1986d198eaa0"
40
+ "gitHead": "17f94551e23afbdf2b6104c0a6b659cc804eab99"
41
41
  }