@infisale-client/api 1.2.42 → 1.2.44

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
@@ -730,18 +730,6 @@ export const TemplateTypeEnum = {
730
730
  NOT_FOUND: 'not-found',
731
731
  BLOG: 'blog'
732
732
  };
733
- /**
734
- *
735
- * @export
736
- * @enum {string}
737
- */
738
- export const ThemeTypeEnum = {
739
- FASHION: 'fashion',
740
- FOOD: 'food',
741
- ELECTRONICS: 'electronics',
742
- COSMETICS: 'cosmetics',
743
- FURNITURE: 'furniture'
744
- };
745
733
  /**
746
734
  *
747
735
  * @export
@@ -9117,10 +9105,11 @@ export const TemplateApiAxiosParamCreator = function (configuration) {
9117
9105
  * @param {string} companyId
9118
9106
  * @param {TemplateTypeEnum} [type]
9119
9107
  * @param {string} [search]
9108
+ * @param {string} [theme]
9120
9109
  * @param {*} [options] Override http request option.
9121
9110
  * @throws {RequiredError}
9122
9111
  */
9123
- getTemplates: async (companyId, type, search, options = {}) => {
9112
+ getTemplates: async (companyId, type, search, theme, options = {}) => {
9124
9113
  // verify required parameter 'companyId' is not null or undefined
9125
9114
  assertParamExists('getTemplates', 'companyId', companyId);
9126
9115
  const localVarPath = `/api/templates`;
@@ -9142,6 +9131,9 @@ export const TemplateApiAxiosParamCreator = function (configuration) {
9142
9131
  if (search !== undefined) {
9143
9132
  localVarQueryParameter['search'] = search;
9144
9133
  }
9134
+ if (theme !== undefined) {
9135
+ localVarQueryParameter['theme'] = theme;
9136
+ }
9145
9137
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9146
9138
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9147
9139
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -9221,11 +9213,12 @@ export const TemplateApiFp = function (configuration) {
9221
9213
  * @param {string} companyId
9222
9214
  * @param {TemplateTypeEnum} [type]
9223
9215
  * @param {string} [search]
9216
+ * @param {string} [theme]
9224
9217
  * @param {*} [options] Override http request option.
9225
9218
  * @throws {RequiredError}
9226
9219
  */
9227
- async getTemplates(companyId, type, search, options) {
9228
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, options);
9220
+ async getTemplates(companyId, type, search, theme, options) {
9221
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, theme, options);
9229
9222
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9230
9223
  const localVarOperationServerBasePath = operationServerMap['TemplateApi.getTemplates']?.[localVarOperationServerIndex]?.url;
9231
9224
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9277,7 +9270,7 @@ export const TemplateApiFactory = function (configuration, basePath, axios) {
9277
9270
  * @throws {RequiredError}
9278
9271
  */
9279
9272
  getTemplates(requestParameters, options) {
9280
- return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, options).then((request) => request(axios, basePath));
9273
+ return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, options).then((request) => request(axios, basePath));
9281
9274
  },
9282
9275
  /**
9283
9276
  *
@@ -9325,7 +9318,7 @@ export class TemplateApi extends BaseAPI {
9325
9318
  * @memberof TemplateApi
9326
9319
  */
9327
9320
  getTemplates(requestParameters, options) {
9328
- return TemplateApiFp(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
9321
+ return TemplateApiFp(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
9329
9322
  }
9330
9323
  /**
9331
9324
  *
@@ -9344,6 +9337,35 @@ export class TemplateApi extends BaseAPI {
9344
9337
  */
9345
9338
  export const ThemeApiAxiosParamCreator = function (configuration) {
9346
9339
  return {
9340
+ /**
9341
+ *
9342
+ * @param {IThemeCloneRequest} iThemeCloneRequest
9343
+ * @param {*} [options] Override http request option.
9344
+ * @throws {RequiredError}
9345
+ */
9346
+ cloneTheme: async (iThemeCloneRequest, options = {}) => {
9347
+ // verify required parameter 'iThemeCloneRequest' is not null or undefined
9348
+ assertParamExists('cloneTheme', 'iThemeCloneRequest', iThemeCloneRequest);
9349
+ const localVarPath = `/api/themes/clone`;
9350
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9351
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9352
+ let baseOptions;
9353
+ if (configuration) {
9354
+ baseOptions = configuration.baseOptions;
9355
+ }
9356
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
9357
+ const localVarHeaderParameter = {};
9358
+ const localVarQueryParameter = {};
9359
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9360
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9361
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9362
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
9363
+ localVarRequestOptions.data = serializeDataIfNeeded(iThemeCloneRequest, localVarRequestOptions, configuration);
9364
+ return {
9365
+ url: toPathString(localVarUrlObj),
9366
+ options: localVarRequestOptions,
9367
+ };
9368
+ },
9347
9369
  /**
9348
9370
  *
9349
9371
  * @param {IThemePostRequest} iThemePostRequest
@@ -9403,15 +9425,14 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
9403
9425
  },
9404
9426
  /**
9405
9427
  *
9406
- * @param {string} id
9428
+ * @param {string} companyId
9407
9429
  * @param {*} [options] Override http request option.
9408
9430
  * @throws {RequiredError}
9409
9431
  */
9410
- getThemeById: async (id, options = {}) => {
9411
- // verify required parameter 'id' is not null or undefined
9412
- assertParamExists('getThemeById', 'id', id);
9413
- const localVarPath = `/api/themes/{id}`
9414
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9432
+ getCompanyThemes: async (companyId, options = {}) => {
9433
+ // verify required parameter 'companyId' is not null or undefined
9434
+ assertParamExists('getCompanyThemes', 'companyId', companyId);
9435
+ const localVarPath = `/api/themes/get/company`;
9415
9436
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9416
9437
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9417
9438
  let baseOptions;
@@ -9421,6 +9442,9 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
9421
9442
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
9422
9443
  const localVarHeaderParameter = {};
9423
9444
  const localVarQueryParameter = {};
9445
+ if (companyId !== undefined) {
9446
+ localVarQueryParameter['companyId'] = companyId;
9447
+ }
9424
9448
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9425
9449
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9426
9450
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -9431,15 +9455,15 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
9431
9455
  },
9432
9456
  /**
9433
9457
  *
9434
- * @param {string} type
9458
+ * @param {string} id
9435
9459
  * @param {*} [options] Override http request option.
9436
9460
  * @throws {RequiredError}
9437
9461
  */
9438
- getThemeByType: async (type, options = {}) => {
9439
- // verify required parameter 'type' is not null or undefined
9440
- assertParamExists('getThemeByType', 'type', type);
9441
- const localVarPath = `/api/themes/type/{type}`
9442
- .replace(`{${"type"}}`, encodeURIComponent(String(type)));
9462
+ getThemeById: async (id, options = {}) => {
9463
+ // verify required parameter 'id' is not null or undefined
9464
+ assertParamExists('getThemeById', 'id', id);
9465
+ const localVarPath = `/api/themes/{id}`
9466
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9443
9467
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9444
9468
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9445
9469
  let baseOptions;
@@ -9459,13 +9483,10 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
9459
9483
  },
9460
9484
  /**
9461
9485
  *
9462
- * @param {string} company
9463
9486
  * @param {*} [options] Override http request option.
9464
9487
  * @throws {RequiredError}
9465
9488
  */
9466
- getThemes: async (company, options = {}) => {
9467
- // verify required parameter 'company' is not null or undefined
9468
- assertParamExists('getThemes', 'company', company);
9489
+ getThemes: async (options = {}) => {
9469
9490
  const localVarPath = `/api/themes`;
9470
9491
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9471
9492
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -9476,9 +9497,6 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
9476
9497
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
9477
9498
  const localVarHeaderParameter = {};
9478
9499
  const localVarQueryParameter = {};
9479
- if (company !== undefined) {
9480
- localVarQueryParameter['company'] = company;
9481
- }
9482
9500
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9483
9501
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9484
9502
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -9529,6 +9547,18 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
9529
9547
  export const ThemeApiFp = function (configuration) {
9530
9548
  const localVarAxiosParamCreator = ThemeApiAxiosParamCreator(configuration);
9531
9549
  return {
9550
+ /**
9551
+ *
9552
+ * @param {IThemeCloneRequest} iThemeCloneRequest
9553
+ * @param {*} [options] Override http request option.
9554
+ * @throws {RequiredError}
9555
+ */
9556
+ async cloneTheme(iThemeCloneRequest, options) {
9557
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloneTheme(iThemeCloneRequest, options);
9558
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9559
+ const localVarOperationServerBasePath = operationServerMap['ThemeApi.cloneTheme']?.[localVarOperationServerIndex]?.url;
9560
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9561
+ },
9532
9562
  /**
9533
9563
  *
9534
9564
  * @param {IThemePostRequest} iThemePostRequest
@@ -9555,36 +9585,35 @@ export const ThemeApiFp = function (configuration) {
9555
9585
  },
9556
9586
  /**
9557
9587
  *
9558
- * @param {string} id
9588
+ * @param {string} companyId
9559
9589
  * @param {*} [options] Override http request option.
9560
9590
  * @throws {RequiredError}
9561
9591
  */
9562
- async getThemeById(id, options) {
9563
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeById(id, options);
9592
+ async getCompanyThemes(companyId, options) {
9593
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyThemes(companyId, options);
9564
9594
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9565
- const localVarOperationServerBasePath = operationServerMap['ThemeApi.getThemeById']?.[localVarOperationServerIndex]?.url;
9595
+ const localVarOperationServerBasePath = operationServerMap['ThemeApi.getCompanyThemes']?.[localVarOperationServerIndex]?.url;
9566
9596
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9567
9597
  },
9568
9598
  /**
9569
9599
  *
9570
- * @param {string} type
9600
+ * @param {string} id
9571
9601
  * @param {*} [options] Override http request option.
9572
9602
  * @throws {RequiredError}
9573
9603
  */
9574
- async getThemeByType(type, options) {
9575
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeByType(type, options);
9604
+ async getThemeById(id, options) {
9605
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeById(id, options);
9576
9606
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9577
- const localVarOperationServerBasePath = operationServerMap['ThemeApi.getThemeByType']?.[localVarOperationServerIndex]?.url;
9607
+ const localVarOperationServerBasePath = operationServerMap['ThemeApi.getThemeById']?.[localVarOperationServerIndex]?.url;
9578
9608
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9579
9609
  },
9580
9610
  /**
9581
9611
  *
9582
- * @param {string} company
9583
9612
  * @param {*} [options] Override http request option.
9584
9613
  * @throws {RequiredError}
9585
9614
  */
9586
- async getThemes(company, options) {
9587
- const localVarAxiosArgs = await localVarAxiosParamCreator.getThemes(company, options);
9615
+ async getThemes(options) {
9616
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThemes(options);
9588
9617
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9589
9618
  const localVarOperationServerBasePath = operationServerMap['ThemeApi.getThemes']?.[localVarOperationServerIndex]?.url;
9590
9619
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -9611,6 +9640,15 @@ export const ThemeApiFp = function (configuration) {
9611
9640
  export const ThemeApiFactory = function (configuration, basePath, axios) {
9612
9641
  const localVarFp = ThemeApiFp(configuration);
9613
9642
  return {
9643
+ /**
9644
+ *
9645
+ * @param {ThemeApiCloneThemeRequest} requestParameters Request parameters.
9646
+ * @param {*} [options] Override http request option.
9647
+ * @throws {RequiredError}
9648
+ */
9649
+ cloneTheme(requestParameters, options) {
9650
+ return localVarFp.cloneTheme(requestParameters.iThemeCloneRequest, options).then((request) => request(axios, basePath));
9651
+ },
9614
9652
  /**
9615
9653
  *
9616
9654
  * @param {ThemeApiCreateThemeRequest} requestParameters Request parameters.
@@ -9631,30 +9669,29 @@ export const ThemeApiFactory = function (configuration, basePath, axios) {
9631
9669
  },
9632
9670
  /**
9633
9671
  *
9634
- * @param {ThemeApiGetThemeByIdRequest} requestParameters Request parameters.
9672
+ * @param {ThemeApiGetCompanyThemesRequest} requestParameters Request parameters.
9635
9673
  * @param {*} [options] Override http request option.
9636
9674
  * @throws {RequiredError}
9637
9675
  */
9638
- getThemeById(requestParameters, options) {
9639
- return localVarFp.getThemeById(requestParameters.id, options).then((request) => request(axios, basePath));
9676
+ getCompanyThemes(requestParameters, options) {
9677
+ return localVarFp.getCompanyThemes(requestParameters.companyId, options).then((request) => request(axios, basePath));
9640
9678
  },
9641
9679
  /**
9642
9680
  *
9643
- * @param {ThemeApiGetThemeByTypeRequest} requestParameters Request parameters.
9681
+ * @param {ThemeApiGetThemeByIdRequest} requestParameters Request parameters.
9644
9682
  * @param {*} [options] Override http request option.
9645
9683
  * @throws {RequiredError}
9646
9684
  */
9647
- getThemeByType(requestParameters, options) {
9648
- return localVarFp.getThemeByType(requestParameters.type, options).then((request) => request(axios, basePath));
9685
+ getThemeById(requestParameters, options) {
9686
+ return localVarFp.getThemeById(requestParameters.id, options).then((request) => request(axios, basePath));
9649
9687
  },
9650
9688
  /**
9651
9689
  *
9652
- * @param {ThemeApiGetThemesRequest} requestParameters Request parameters.
9653
9690
  * @param {*} [options] Override http request option.
9654
9691
  * @throws {RequiredError}
9655
9692
  */
9656
- getThemes(requestParameters, options) {
9657
- return localVarFp.getThemes(requestParameters.company, options).then((request) => request(axios, basePath));
9693
+ getThemes(options) {
9694
+ return localVarFp.getThemes(options).then((request) => request(axios, basePath));
9658
9695
  },
9659
9696
  /**
9660
9697
  *
@@ -9674,6 +9711,16 @@ export const ThemeApiFactory = function (configuration, basePath, axios) {
9674
9711
  * @extends {BaseAPI}
9675
9712
  */
9676
9713
  export class ThemeApi extends BaseAPI {
9714
+ /**
9715
+ *
9716
+ * @param {ThemeApiCloneThemeRequest} requestParameters Request parameters.
9717
+ * @param {*} [options] Override http request option.
9718
+ * @throws {RequiredError}
9719
+ * @memberof ThemeApi
9720
+ */
9721
+ cloneTheme(requestParameters, options) {
9722
+ return ThemeApiFp(this.configuration).cloneTheme(requestParameters.iThemeCloneRequest, options).then((request) => request(this.axios, this.basePath));
9723
+ }
9677
9724
  /**
9678
9725
  *
9679
9726
  * @param {ThemeApiCreateThemeRequest} requestParameters Request parameters.
@@ -9696,33 +9743,32 @@ export class ThemeApi extends BaseAPI {
9696
9743
  }
9697
9744
  /**
9698
9745
  *
9699
- * @param {ThemeApiGetThemeByIdRequest} requestParameters Request parameters.
9746
+ * @param {ThemeApiGetCompanyThemesRequest} requestParameters Request parameters.
9700
9747
  * @param {*} [options] Override http request option.
9701
9748
  * @throws {RequiredError}
9702
9749
  * @memberof ThemeApi
9703
9750
  */
9704
- getThemeById(requestParameters, options) {
9705
- return ThemeApiFp(this.configuration).getThemeById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
9751
+ getCompanyThemes(requestParameters, options) {
9752
+ return ThemeApiFp(this.configuration).getCompanyThemes(requestParameters.companyId, options).then((request) => request(this.axios, this.basePath));
9706
9753
  }
9707
9754
  /**
9708
9755
  *
9709
- * @param {ThemeApiGetThemeByTypeRequest} requestParameters Request parameters.
9756
+ * @param {ThemeApiGetThemeByIdRequest} requestParameters Request parameters.
9710
9757
  * @param {*} [options] Override http request option.
9711
9758
  * @throws {RequiredError}
9712
9759
  * @memberof ThemeApi
9713
9760
  */
9714
- getThemeByType(requestParameters, options) {
9715
- return ThemeApiFp(this.configuration).getThemeByType(requestParameters.type, options).then((request) => request(this.axios, this.basePath));
9761
+ getThemeById(requestParameters, options) {
9762
+ return ThemeApiFp(this.configuration).getThemeById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
9716
9763
  }
9717
9764
  /**
9718
9765
  *
9719
- * @param {ThemeApiGetThemesRequest} requestParameters Request parameters.
9720
9766
  * @param {*} [options] Override http request option.
9721
9767
  * @throws {RequiredError}
9722
9768
  * @memberof ThemeApi
9723
9769
  */
9724
- getThemes(requestParameters, options) {
9725
- return ThemeApiFp(this.configuration).getThemes(requestParameters.company, options).then((request) => request(this.axios, this.basePath));
9770
+ getThemes(options) {
9771
+ return ThemeApiFp(this.configuration).getThemes(options).then((request) => request(this.axios, this.basePath));
9726
9772
  }
9727
9773
  /**
9728
9774
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.42",
3
+ "version": "1.2.44",
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": "980840ea651d348c27afd8bf83721d6e21554bff"
40
+ "gitHead": "9777d7b05e07a588e72e9409d510a1db4faadbf4"
41
41
  }