@infisale-client/api 1.3.51 → 1.3.53

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
@@ -8705,6 +8705,12 @@ export interface ITemplatePatchRequest {
8705
8705
  * @memberof ITemplatePatchRequest
8706
8706
  */
8707
8707
  'unique'?: boolean;
8708
+ /**
8709
+ *
8710
+ * @type {boolean}
8711
+ * @memberof ITemplatePatchRequest
8712
+ */
8713
+ 'default'?: boolean;
8708
8714
  }
8709
8715
  /**
8710
8716
  *
@@ -8748,6 +8754,12 @@ export interface ITemplatePostRequest {
8748
8754
  * @memberof ITemplatePostRequest
8749
8755
  */
8750
8756
  'unique': boolean;
8757
+ /**
8758
+ *
8759
+ * @type {boolean}
8760
+ * @memberof ITemplatePostRequest
8761
+ */
8762
+ 'default'?: boolean;
8751
8763
  }
8752
8764
  /**
8753
8765
  *
@@ -8809,6 +8821,12 @@ export interface ITemplateResponse {
8809
8821
  * @memberof ITemplateResponse
8810
8822
  */
8811
8823
  'unique': boolean;
8824
+ /**
8825
+ *
8826
+ * @type {boolean}
8827
+ * @memberof ITemplateResponse
8828
+ */
8829
+ 'default'?: boolean;
8812
8830
  /**
8813
8831
  *
8814
8832
  * @type {PartialRecordLanguageEnumITemplateComponentResponseArray}
@@ -8929,6 +8947,12 @@ export interface ITheme {
8929
8947
  * @memberof ITheme
8930
8948
  */
8931
8949
  'lastVersion': string;
8950
+ /**
8951
+ *
8952
+ * @type {boolean}
8953
+ * @memberof ITheme
8954
+ */
8955
+ 'deleted': boolean;
8932
8956
  }
8933
8957
  /**
8934
8958
  *
@@ -9125,6 +9149,12 @@ export interface IThemeResponse {
9125
9149
  * @memberof IThemeResponse
9126
9150
  */
9127
9151
  'lastVersion': string;
9152
+ /**
9153
+ *
9154
+ * @type {boolean}
9155
+ * @memberof IThemeResponse
9156
+ */
9157
+ 'deleted': boolean;
9128
9158
  /**
9129
9159
  * Make all properties in T optional
9130
9160
  * @type {{ [key: string]: PartialRecordStringTitleStringComponentsPartialRecordLanguageEnumITemplateComponentResponseArrayValue; }}
@@ -9239,108 +9269,224 @@ export interface IThemeVersion {
9239
9269
  export interface IThemesResponse {
9240
9270
  /**
9241
9271
  *
9242
- * @type {PickIThemeResponseExcludeKeyofIThemeResponseLastVersionOrMain & Array<IThemesResponseDataAllOfInner>}
9272
+ * @type {Array<IThemesResponseData>}
9243
9273
  * @memberof IThemesResponse
9244
9274
  */
9245
- 'data': PickIThemeResponseExcludeKeyofIThemeResponseLastVersionOrMain & Array<IThemesResponseDataAllOfInner>;
9275
+ 'data': Array<IThemesResponseData>;
9246
9276
  }
9247
9277
  /**
9248
9278
  *
9249
9279
  * @export
9250
- * @interface IThemesResponseDataAllOfInner
9280
+ * @interface IThemesResponseData
9251
9281
  */
9252
- export interface IThemesResponseDataAllOfInner {
9282
+ export interface IThemesResponseData {
9253
9283
  /**
9254
9284
  *
9255
- * @type {IThemesResponseDataAllOfInnerMain}
9256
- * @memberof IThemesResponseDataAllOfInner
9285
+ * @type {string}
9286
+ * @memberof IThemesResponseData
9257
9287
  */
9258
- 'main'?: IThemesResponseDataAllOfInnerMain;
9288
+ 'name': string;
9259
9289
  /**
9260
9290
  *
9261
- * @type {IThemeVersion}
9262
- * @memberof IThemesResponseDataAllOfInner
9291
+ * @type {string}
9292
+ * @memberof IThemesResponseData
9263
9293
  */
9264
- 'lastVersion'?: IThemeVersion;
9294
+ 'company'?: string;
9295
+ /**
9296
+ *
9297
+ * @type {string}
9298
+ * @memberof IThemesResponseData
9299
+ */
9300
+ '_id': string;
9301
+ /**
9302
+ *
9303
+ * @type {number}
9304
+ * @memberof IThemesResponseData
9305
+ */
9306
+ '__v': number;
9307
+ /**
9308
+ *
9309
+ * @type {string}
9310
+ * @memberof IThemesResponseData
9311
+ */
9312
+ 'createdAt': string;
9313
+ /**
9314
+ *
9315
+ * @type {string}
9316
+ * @memberof IThemesResponseData
9317
+ */
9318
+ 'updatedAt': string;
9319
+ /**
9320
+ *
9321
+ * @type {IImage}
9322
+ * @memberof IThemesResponseData
9323
+ */
9324
+ 'thumbnail'?: IImage;
9325
+ /**
9326
+ *
9327
+ * @type {CompanyTypeEnum}
9328
+ * @memberof IThemesResponseData
9329
+ */
9330
+ 'type': CompanyTypeEnum;
9331
+ /**
9332
+ * Construct a type with a set of properties K of type T
9333
+ * @type {{ [key: string]: any; }}
9334
+ * @memberof IThemesResponseData
9335
+ */
9336
+ 'config': {
9337
+ [key: string]: any;
9338
+ };
9339
+ /**
9340
+ * Make all properties in T optional
9341
+ * @type {{ [key: string]: PartialRecordStringTitleStringComponentsPartialRecordLanguageEnumITemplateComponentResponseArrayValue; }}
9342
+ * @memberof IThemesResponseData
9343
+ */
9344
+ 'groups': {
9345
+ [key: string]: PartialRecordStringTitleStringComponentsPartialRecordLanguageEnumITemplateComponentResponseArrayValue;
9346
+ };
9347
+ /**
9348
+ *
9349
+ * @type {Array<string>}
9350
+ * @memberof IThemesResponseData
9351
+ */
9352
+ 'companies': Array<string>;
9353
+ /**
9354
+ *
9355
+ * @type {string}
9356
+ * @memberof IThemesResponseData
9357
+ */
9358
+ 'demoUrl'?: string;
9359
+ /**
9360
+ *
9361
+ * @type {string}
9362
+ * @memberof IThemesResponseData
9363
+ */
9364
+ 'creator'?: string;
9365
+ /**
9366
+ *
9367
+ * @type {boolean}
9368
+ * @memberof IThemesResponseData
9369
+ */
9370
+ 'deleted': boolean;
9371
+ /**
9372
+ * Construct a type with a set of properties K of type T
9373
+ * @type {{ [key: string]: any; }}
9374
+ * @memberof IThemesResponseData
9375
+ */
9376
+ 'files': {
9377
+ [key: string]: any;
9378
+ };
9379
+ /**
9380
+ *
9381
+ * @type {string}
9382
+ * @memberof IThemesResponseData
9383
+ */
9384
+ 'assetUrl': string;
9385
+ /**
9386
+ *
9387
+ * @type {number}
9388
+ * @memberof IThemesResponseData
9389
+ */
9390
+ 'assetVersion': number;
9391
+ /**
9392
+ * Construct a type with a set of properties K of type T
9393
+ * @type {{ [key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue; }}
9394
+ * @memberof IThemesResponseData
9395
+ */
9396
+ 'componentConfigIndex': {
9397
+ [key: string]: RecordStringConfigRecordStringConfigIndexTypeEnumContentsRecordStringRecordStringConfigIndexTypeEnumValue;
9398
+ };
9265
9399
  /**
9266
9400
  *
9267
9401
  * @type {IThemeVersion}
9268
- * @memberof IThemesResponseDataAllOfInner
9402
+ * @memberof IThemesResponseData
9269
9403
  */
9270
9404
  'lastUpdate'?: IThemeVersion;
9405
+ /**
9406
+ *
9407
+ * @type {IThemeVersion}
9408
+ * @memberof IThemesResponseData
9409
+ */
9410
+ 'lastVersion'?: IThemeVersion;
9411
+ /**
9412
+ *
9413
+ * @type {IThemesResponseDataMain}
9414
+ * @memberof IThemesResponseData
9415
+ */
9416
+ 'main'?: IThemesResponseDataMain;
9271
9417
  }
9272
9418
  /**
9273
9419
  *
9274
9420
  * @export
9275
- * @interface IThemesResponseDataAllOfInnerMain
9421
+ * @interface IThemesResponseDataMain
9276
9422
  */
9277
- export interface IThemesResponseDataAllOfInnerMain {
9423
+ export interface IThemesResponseDataMain {
9278
9424
  /**
9279
9425
  *
9280
9426
  * @type {string}
9281
- * @memberof IThemesResponseDataAllOfInnerMain
9427
+ * @memberof IThemesResponseDataMain
9282
9428
  */
9283
9429
  'name': string;
9284
9430
  /**
9285
9431
  *
9286
9432
  * @type {string}
9287
- * @memberof IThemesResponseDataAllOfInnerMain
9433
+ * @memberof IThemesResponseDataMain
9288
9434
  */
9289
9435
  'company'?: string;
9290
9436
  /**
9291
9437
  *
9292
9438
  * @type {string}
9293
- * @memberof IThemesResponseDataAllOfInnerMain
9439
+ * @memberof IThemesResponseDataMain
9294
9440
  */
9295
9441
  '_id': string;
9296
9442
  /**
9297
9443
  *
9298
9444
  * @type {number}
9299
- * @memberof IThemesResponseDataAllOfInnerMain
9445
+ * @memberof IThemesResponseDataMain
9300
9446
  */
9301
9447
  '__v': number;
9302
9448
  /**
9303
9449
  *
9304
9450
  * @type {string}
9305
- * @memberof IThemesResponseDataAllOfInnerMain
9451
+ * @memberof IThemesResponseDataMain
9306
9452
  */
9307
9453
  'createdAt': string;
9308
9454
  /**
9309
9455
  *
9310
9456
  * @type {string}
9311
- * @memberof IThemesResponseDataAllOfInnerMain
9457
+ * @memberof IThemesResponseDataMain
9312
9458
  */
9313
9459
  'updatedAt': string;
9314
9460
  /**
9315
9461
  *
9316
9462
  * @type {IImage}
9317
- * @memberof IThemesResponseDataAllOfInnerMain
9463
+ * @memberof IThemesResponseDataMain
9318
9464
  */
9319
9465
  'thumbnail'?: IImage;
9320
9466
  /**
9321
9467
  *
9322
9468
  * @type {string}
9323
- * @memberof IThemesResponseDataAllOfInnerMain
9469
+ * @memberof IThemesResponseDataMain
9324
9470
  */
9325
9471
  'main'?: string;
9326
9472
  /**
9327
9473
  *
9328
9474
  * @type {CompanyTypeEnum}
9329
- * @memberof IThemesResponseDataAllOfInnerMain
9475
+ * @memberof IThemesResponseDataMain
9330
9476
  */
9331
9477
  'type': CompanyTypeEnum;
9332
9478
  /**
9333
9479
  * Construct a type with a set of properties K of type T
9334
- * @type {{ [key: string]: object; }}
9335
- * @memberof IThemesResponseDataAllOfInnerMain
9480
+ * @type {{ [key: string]: any; }}
9481
+ * @memberof IThemesResponseDataMain
9336
9482
  */
9337
9483
  'config': {
9338
- [key: string]: object;
9484
+ [key: string]: any;
9339
9485
  };
9340
9486
  /**
9341
9487
  * Make all properties in T optional
9342
9488
  * @type {{ [key: string]: PartialRecordStringTitleStringComponentsPartialRecordLanguageEnumITemplateComponentArrayValue; }}
9343
- * @memberof IThemesResponseDataAllOfInnerMain
9489
+ * @memberof IThemesResponseDataMain
9344
9490
  */
9345
9491
  'groups': {
9346
9492
  [key: string]: PartialRecordStringTitleStringComponentsPartialRecordLanguageEnumITemplateComponentArrayValue;
@@ -9348,25 +9494,31 @@ export interface IThemesResponseDataAllOfInnerMain {
9348
9494
  /**
9349
9495
  *
9350
9496
  * @type {Array<string>}
9351
- * @memberof IThemesResponseDataAllOfInnerMain
9497
+ * @memberof IThemesResponseDataMain
9352
9498
  */
9353
9499
  'companies': Array<string>;
9354
9500
  /**
9355
9501
  *
9356
9502
  * @type {string}
9357
- * @memberof IThemesResponseDataAllOfInnerMain
9503
+ * @memberof IThemesResponseDataMain
9358
9504
  */
9359
9505
  'demoUrl'?: string;
9360
9506
  /**
9361
9507
  *
9362
9508
  * @type {string}
9363
- * @memberof IThemesResponseDataAllOfInnerMain
9509
+ * @memberof IThemesResponseDataMain
9364
9510
  */
9365
9511
  'creator'?: string;
9512
+ /**
9513
+ *
9514
+ * @type {boolean}
9515
+ * @memberof IThemesResponseDataMain
9516
+ */
9517
+ 'deleted': boolean;
9366
9518
  /**
9367
9519
  *
9368
9520
  * @type {IThemeVersion}
9369
- * @memberof IThemesResponseDataAllOfInnerMain
9521
+ * @memberof IThemesResponseDataMain
9370
9522
  */
9371
9523
  'lastVersion'?: IThemeVersion;
9372
9524
  }
@@ -12498,6 +12650,12 @@ export interface PickITemplateExcludeKeyofITemplateComponents {
12498
12650
  * @memberof PickITemplateExcludeKeyofITemplateComponents
12499
12651
  */
12500
12652
  'unique': boolean;
12653
+ /**
12654
+ *
12655
+ * @type {boolean}
12656
+ * @memberof PickITemplateExcludeKeyofITemplateComponents
12657
+ */
12658
+ 'default'?: boolean;
12501
12659
  }
12502
12660
  /**
12503
12661
  * From T, pick a set of properties whose keys are in the union K
@@ -12541,6 +12699,12 @@ export interface PickITemplateResponseExcludeKeyofITemplateResponseKeyofMongoRes
12541
12699
  * @memberof PickITemplateResponseExcludeKeyofITemplateResponseKeyofMongoResponse
12542
12700
  */
12543
12701
  'unique': boolean;
12702
+ /**
12703
+ *
12704
+ * @type {boolean}
12705
+ * @memberof PickITemplateResponseExcludeKeyofITemplateResponseKeyofMongoResponse
12706
+ */
12707
+ 'default'?: boolean;
12544
12708
  }
12545
12709
  /**
12546
12710
  * From T, pick a set of properties whose keys are in the union K
@@ -12634,6 +12798,12 @@ export interface PickIThemeExcludeKeyofIThemeGroups {
12634
12798
  * @memberof PickIThemeExcludeKeyofIThemeGroups
12635
12799
  */
12636
12800
  'lastVersion': string;
12801
+ /**
12802
+ *
12803
+ * @type {boolean}
12804
+ * @memberof PickIThemeExcludeKeyofIThemeGroups
12805
+ */
12806
+ 'deleted': boolean;
12637
12807
  }
12638
12808
  /**
12639
12809
  * From T, pick a set of properties whose keys are in the union K
@@ -12729,6 +12899,12 @@ export interface PickIThemeExcludeKeyofIThemeLastVersion {
12729
12899
  * @memberof PickIThemeExcludeKeyofIThemeLastVersion
12730
12900
  */
12731
12901
  'creator'?: string;
12902
+ /**
12903
+ *
12904
+ * @type {boolean}
12905
+ * @memberof PickIThemeExcludeKeyofIThemeLastVersion
12906
+ */
12907
+ 'deleted': boolean;
12732
12908
  }
12733
12909
  /**
12734
12910
  * From T, pick a set of properties whose keys are in the union K
@@ -12818,6 +12994,12 @@ export interface PickIThemeResponseExcludeKeyofIThemeResponseLastVersionOrMain {
12818
12994
  * @memberof PickIThemeResponseExcludeKeyofIThemeResponseLastVersionOrMain
12819
12995
  */
12820
12996
  'creator'?: string;
12997
+ /**
12998
+ *
12999
+ * @type {boolean}
13000
+ * @memberof PickIThemeResponseExcludeKeyofIThemeResponseLastVersionOrMain
13001
+ */
13002
+ 'deleted': boolean;
12821
13003
  /**
12822
13004
  * Construct a type with a set of properties K of type T
12823
13005
  * @type {{ [key: string]: any; }}
@@ -22847,6 +23029,13 @@ export declare const ThemeApiAxiosParamCreator: (configuration?: Configuration)
22847
23029
  * @throws {RequiredError}
22848
23030
  */
22849
23031
  deleteTheme: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23032
+ /**
23033
+ *
23034
+ * @param {string} id
23035
+ * @param {*} [options] Override http request option.
23036
+ * @throws {RequiredError}
23037
+ */
23038
+ downloadTemplates: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22850
23039
  /**
22851
23040
  *
22852
23041
  * @param {string} companyId
@@ -22914,6 +23103,13 @@ export declare const ThemeApiFp: (configuration?: Configuration) => {
22914
23103
  * @throws {RequiredError}
22915
23104
  */
22916
23105
  deleteTheme(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
23106
+ /**
23107
+ *
23108
+ * @param {string} id
23109
+ * @param {*} [options] Override http request option.
23110
+ * @throws {RequiredError}
23111
+ */
23112
+ downloadTemplates(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
22917
23113
  /**
22918
23114
  *
22919
23115
  * @param {string} companyId
@@ -22981,6 +23177,13 @@ export declare const ThemeApiFactory: (configuration?: Configuration, basePath?:
22981
23177
  * @throws {RequiredError}
22982
23178
  */
22983
23179
  deleteTheme(requestParameters: ThemeApiDeleteThemeRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
23180
+ /**
23181
+ *
23182
+ * @param {ThemeApiDownloadTemplatesRequest} requestParameters Request parameters.
23183
+ * @param {*} [options] Override http request option.
23184
+ * @throws {RequiredError}
23185
+ */
23186
+ downloadTemplates(requestParameters: ThemeApiDownloadTemplatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
22984
23187
  /**
22985
23188
  *
22986
23189
  * @param {ThemeApiGetCompanyThemesRequest} requestParameters Request parameters.
@@ -23056,6 +23259,19 @@ export interface ThemeApiDeleteThemeRequest {
23056
23259
  */
23057
23260
  readonly id: string;
23058
23261
  }
23262
+ /**
23263
+ * Request parameters for downloadTemplates operation in ThemeApi.
23264
+ * @export
23265
+ * @interface ThemeApiDownloadTemplatesRequest
23266
+ */
23267
+ export interface ThemeApiDownloadTemplatesRequest {
23268
+ /**
23269
+ *
23270
+ * @type {string}
23271
+ * @memberof ThemeApiDownloadTemplates
23272
+ */
23273
+ readonly id: string;
23274
+ }
23059
23275
  /**
23060
23276
  * Request parameters for getCompanyThemes operation in ThemeApi.
23061
23277
  * @export
@@ -23182,6 +23398,14 @@ export declare class ThemeApi extends BaseAPI {
23182
23398
  * @memberof ThemeApi
23183
23399
  */
23184
23400
  deleteTheme(requestParameters: ThemeApiDeleteThemeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
23401
+ /**
23402
+ *
23403
+ * @param {ThemeApiDownloadTemplatesRequest} requestParameters Request parameters.
23404
+ * @param {*} [options] Override http request option.
23405
+ * @throws {RequiredError}
23406
+ * @memberof ThemeApi
23407
+ */
23408
+ downloadTemplates(requestParameters: ThemeApiDownloadTemplatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
23185
23409
  /**
23186
23410
  *
23187
23411
  * @param {ThemeApiGetCompanyThemesRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -12088,6 +12088,34 @@ const ThemeApiAxiosParamCreator = function (configuration) {
12088
12088
  options: localVarRequestOptions,
12089
12089
  };
12090
12090
  },
12091
+ /**
12092
+ *
12093
+ * @param {string} id
12094
+ * @param {*} [options] Override http request option.
12095
+ * @throws {RequiredError}
12096
+ */
12097
+ downloadTemplates: async (id, options = {}) => {
12098
+ // verify required parameter 'id' is not null or undefined
12099
+ (0, common_1.assertParamExists)('downloadTemplates', 'id', id);
12100
+ const localVarPath = `/api/themes/{id}/templates/download`
12101
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12103
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12104
+ let baseOptions;
12105
+ if (configuration) {
12106
+ baseOptions = configuration.baseOptions;
12107
+ }
12108
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
12109
+ const localVarHeaderParameter = {};
12110
+ const localVarQueryParameter = {};
12111
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12112
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12113
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
12114
+ return {
12115
+ url: (0, common_1.toPathString)(localVarUrlObj),
12116
+ options: localVarRequestOptions,
12117
+ };
12118
+ },
12091
12119
  /**
12092
12120
  *
12093
12121
  * @param {string} companyId
@@ -12306,6 +12334,18 @@ const ThemeApiFp = function (configuration) {
12306
12334
  const localVarOperationServerBasePath = base_1.operationServerMap['ThemeApi.deleteTheme']?.[localVarOperationServerIndex]?.url;
12307
12335
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12308
12336
  },
12337
+ /**
12338
+ *
12339
+ * @param {string} id
12340
+ * @param {*} [options] Override http request option.
12341
+ * @throws {RequiredError}
12342
+ */
12343
+ async downloadTemplates(id, options) {
12344
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadTemplates(id, options);
12345
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12346
+ const localVarOperationServerBasePath = base_1.operationServerMap['ThemeApi.downloadTemplates']?.[localVarOperationServerIndex]?.url;
12347
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12348
+ },
12309
12349
  /**
12310
12350
  *
12311
12351
  * @param {string} companyId
@@ -12408,6 +12448,15 @@ const ThemeApiFactory = function (configuration, basePath, axios) {
12408
12448
  deleteTheme(requestParameters, options) {
12409
12449
  return localVarFp.deleteTheme(requestParameters.id, options).then((request) => request(axios, basePath));
12410
12450
  },
12451
+ /**
12452
+ *
12453
+ * @param {ThemeApiDownloadTemplatesRequest} requestParameters Request parameters.
12454
+ * @param {*} [options] Override http request option.
12455
+ * @throws {RequiredError}
12456
+ */
12457
+ downloadTemplates(requestParameters, options) {
12458
+ return localVarFp.downloadTemplates(requestParameters.id, options).then((request) => request(axios, basePath));
12459
+ },
12411
12460
  /**
12412
12461
  *
12413
12462
  * @param {ThemeApiGetCompanyThemesRequest} requestParameters Request parameters.
@@ -12493,6 +12542,16 @@ class ThemeApi extends base_1.BaseAPI {
12493
12542
  deleteTheme(requestParameters, options) {
12494
12543
  return (0, exports.ThemeApiFp)(this.configuration).deleteTheme(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12495
12544
  }
12545
+ /**
12546
+ *
12547
+ * @param {ThemeApiDownloadTemplatesRequest} requestParameters Request parameters.
12548
+ * @param {*} [options] Override http request option.
12549
+ * @throws {RequiredError}
12550
+ * @memberof ThemeApi
12551
+ */
12552
+ downloadTemplates(requestParameters, options) {
12553
+ return (0, exports.ThemeApiFp)(this.configuration).downloadTemplates(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12554
+ }
12496
12555
  /**
12497
12556
  *
12498
12557
  * @param {ThemeApiGetCompanyThemesRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -12004,6 +12004,34 @@ export const ThemeApiAxiosParamCreator = function (configuration) {
12004
12004
  options: localVarRequestOptions,
12005
12005
  };
12006
12006
  },
12007
+ /**
12008
+ *
12009
+ * @param {string} id
12010
+ * @param {*} [options] Override http request option.
12011
+ * @throws {RequiredError}
12012
+ */
12013
+ downloadTemplates: async (id, options = {}) => {
12014
+ // verify required parameter 'id' is not null or undefined
12015
+ assertParamExists('downloadTemplates', 'id', id);
12016
+ const localVarPath = `/api/themes/{id}/templates/download`
12017
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
12018
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12019
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12020
+ let baseOptions;
12021
+ if (configuration) {
12022
+ baseOptions = configuration.baseOptions;
12023
+ }
12024
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
12025
+ const localVarHeaderParameter = {};
12026
+ const localVarQueryParameter = {};
12027
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12029
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
12030
+ return {
12031
+ url: toPathString(localVarUrlObj),
12032
+ options: localVarRequestOptions,
12033
+ };
12034
+ },
12007
12035
  /**
12008
12036
  *
12009
12037
  * @param {string} companyId
@@ -12221,6 +12249,18 @@ export const ThemeApiFp = function (configuration) {
12221
12249
  const localVarOperationServerBasePath = operationServerMap['ThemeApi.deleteTheme']?.[localVarOperationServerIndex]?.url;
12222
12250
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12223
12251
  },
12252
+ /**
12253
+ *
12254
+ * @param {string} id
12255
+ * @param {*} [options] Override http request option.
12256
+ * @throws {RequiredError}
12257
+ */
12258
+ async downloadTemplates(id, options) {
12259
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadTemplates(id, options);
12260
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12261
+ const localVarOperationServerBasePath = operationServerMap['ThemeApi.downloadTemplates']?.[localVarOperationServerIndex]?.url;
12262
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12263
+ },
12224
12264
  /**
12225
12265
  *
12226
12266
  * @param {string} companyId
@@ -12322,6 +12362,15 @@ export const ThemeApiFactory = function (configuration, basePath, axios) {
12322
12362
  deleteTheme(requestParameters, options) {
12323
12363
  return localVarFp.deleteTheme(requestParameters.id, options).then((request) => request(axios, basePath));
12324
12364
  },
12365
+ /**
12366
+ *
12367
+ * @param {ThemeApiDownloadTemplatesRequest} requestParameters Request parameters.
12368
+ * @param {*} [options] Override http request option.
12369
+ * @throws {RequiredError}
12370
+ */
12371
+ downloadTemplates(requestParameters, options) {
12372
+ return localVarFp.downloadTemplates(requestParameters.id, options).then((request) => request(axios, basePath));
12373
+ },
12325
12374
  /**
12326
12375
  *
12327
12376
  * @param {ThemeApiGetCompanyThemesRequest} requestParameters Request parameters.
@@ -12406,6 +12455,16 @@ export class ThemeApi extends BaseAPI {
12406
12455
  deleteTheme(requestParameters, options) {
12407
12456
  return ThemeApiFp(this.configuration).deleteTheme(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12408
12457
  }
12458
+ /**
12459
+ *
12460
+ * @param {ThemeApiDownloadTemplatesRequest} requestParameters Request parameters.
12461
+ * @param {*} [options] Override http request option.
12462
+ * @throws {RequiredError}
12463
+ * @memberof ThemeApi
12464
+ */
12465
+ downloadTemplates(requestParameters, options) {
12466
+ return ThemeApiFp(this.configuration).downloadTemplates(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
12467
+ }
12409
12468
  /**
12410
12469
  *
12411
12470
  * @param {ThemeApiGetCompanyThemesRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.3.51",
3
+ "version": "1.3.53",
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": "c70db2f5d233329a213f8fc1128552711f152592"
40
+ "gitHead": "46152c6dc3db1b90f33cdc5dd45906e2fc82bf0a"
41
41
  }