@infisale-client/api 1.3.55 → 1.3.57

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
@@ -5090,12 +5090,55 @@ export interface INavigationLink {
5090
5090
  * @memberof INavigationLink
5091
5091
  */
5092
5092
  'object': any;
5093
+ }
5094
+ /**
5095
+ *
5096
+ * @export
5097
+ * @interface INavigationLinkResponse
5098
+ */
5099
+ export interface INavigationLinkResponse {
5100
+ /**
5101
+ *
5102
+ * @type {any}
5103
+ * @memberof INavigationLinkResponse
5104
+ */
5105
+ 'object': any;
5106
+ /**
5107
+ *
5108
+ * @type {string}
5109
+ * @memberof INavigationLinkResponse
5110
+ */
5111
+ '_id': string;
5112
+ /**
5113
+ *
5114
+ * @type {string}
5115
+ * @memberof INavigationLinkResponse
5116
+ */
5117
+ 'title': string;
5118
+ /**
5119
+ *
5120
+ * @type {string}
5121
+ * @memberof INavigationLinkResponse
5122
+ */
5123
+ 'type': string;
5124
+ /**
5125
+ *
5126
+ * @type {string}
5127
+ * @memberof INavigationLinkResponse
5128
+ */
5129
+ 'url': string;
5093
5130
  /**
5094
5131
  *
5095
5132
  * @type {number}
5096
- * @memberof INavigationLink
5133
+ * @memberof INavigationLinkResponse
5097
5134
  */
5098
5135
  'levels': number;
5136
+ /**
5137
+ *
5138
+ * @type {Array<INavigationLinkResponse>}
5139
+ * @memberof INavigationLinkResponse
5140
+ */
5141
+ 'links': Array<INavigationLinkResponse>;
5099
5142
  }
5100
5143
  /**
5101
5144
  *
@@ -5111,16 +5154,16 @@ export interface INavigationPatchRequest {
5111
5154
  'title'?: string;
5112
5155
  /**
5113
5156
  *
5114
- * @type {LanguageEnum}
5157
+ * @type {Array<INavigationLink>}
5115
5158
  * @memberof INavigationPatchRequest
5116
5159
  */
5117
- 'locale'?: LanguageEnum;
5160
+ 'links'?: Array<INavigationLink>;
5118
5161
  /**
5119
5162
  *
5120
- * @type {Array<INavigationLink>}
5163
+ * @type {LanguageEnum}
5121
5164
  * @memberof INavigationPatchRequest
5122
5165
  */
5123
- 'links'?: Array<INavigationLink>;
5166
+ 'locale'?: LanguageEnum;
5124
5167
  }
5125
5168
  /**
5126
5169
  *
@@ -5148,16 +5191,16 @@ export interface INavigationPostRequest {
5148
5191
  'slug': string;
5149
5192
  /**
5150
5193
  *
5151
- * @type {LanguageEnum}
5194
+ * @type {Array<INavigationLink>}
5152
5195
  * @memberof INavigationPostRequest
5153
5196
  */
5154
- 'locale': LanguageEnum;
5197
+ 'links': Array<INavigationLink>;
5155
5198
  /**
5156
5199
  *
5157
- * @type {Array<INavigationLink>}
5200
+ * @type {LanguageEnum}
5158
5201
  * @memberof INavigationPostRequest
5159
5202
  */
5160
- 'links': Array<INavigationLink>;
5203
+ 'locale': LanguageEnum;
5161
5204
  }
5162
5205
  /**
5163
5206
  *
@@ -5165,6 +5208,12 @@ export interface INavigationPostRequest {
5165
5208
  * @interface INavigationResponse
5166
5209
  */
5167
5210
  export interface INavigationResponse {
5211
+ /**
5212
+ *
5213
+ * @type {string}
5214
+ * @memberof INavigationResponse
5215
+ */
5216
+ 'company': string;
5168
5217
  /**
5169
5218
  *
5170
5219
  * @type {string}
@@ -5194,31 +5243,25 @@ export interface INavigationResponse {
5194
5243
  * @type {string}
5195
5244
  * @memberof INavigationResponse
5196
5245
  */
5197
- 'company': string;
5198
- /**
5199
- *
5200
- * @type {LanguageEnum}
5201
- * @memberof INavigationResponse
5202
- */
5203
- 'locale': LanguageEnum;
5246
+ 'title': string;
5204
5247
  /**
5205
5248
  *
5206
5249
  * @type {string}
5207
5250
  * @memberof INavigationResponse
5208
5251
  */
5209
- 'title': string;
5252
+ 'slug': string;
5210
5253
  /**
5211
5254
  *
5212
- * @type {string}
5255
+ * @type {LanguageEnum}
5213
5256
  * @memberof INavigationResponse
5214
5257
  */
5215
- 'slug': string;
5258
+ 'locale': LanguageEnum;
5216
5259
  /**
5217
5260
  *
5218
- * @type {Array<INavigationLink>}
5261
+ * @type {Array<INavigationLinkResponse>}
5219
5262
  * @memberof INavigationResponse
5220
5263
  */
5221
- 'links': Array<INavigationLink>;
5264
+ 'links': Array<INavigationLinkResponse>;
5222
5265
  }
5223
5266
  /**
5224
5267
  *
@@ -11553,18 +11596,110 @@ export interface PickINavigationExcludeKeyofINavigationKeyofMongoResponse {
11553
11596
  * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponse
11554
11597
  */
11555
11598
  'slug': string;
11599
+ /**
11600
+ *
11601
+ * @type {Array<INavigationLink>}
11602
+ * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponse
11603
+ */
11604
+ 'links': Array<INavigationLink>;
11556
11605
  /**
11557
11606
  *
11558
11607
  * @type {LanguageEnum}
11559
11608
  * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponse
11560
11609
  */
11561
11610
  'locale': LanguageEnum;
11611
+ }
11612
+ /**
11613
+ * From T, pick a set of properties whose keys are in the union K
11614
+ * @export
11615
+ * @interface PickINavigationExcludeKeyofINavigationLinks
11616
+ */
11617
+ export interface PickINavigationExcludeKeyofINavigationLinks {
11562
11618
  /**
11563
11619
  *
11564
- * @type {Array<INavigationLink>}
11565
- * @memberof PickINavigationExcludeKeyofINavigationKeyofMongoResponse
11620
+ * @type {string}
11621
+ * @memberof PickINavigationExcludeKeyofINavigationLinks
11566
11622
  */
11567
- 'links': Array<INavigationLink>;
11623
+ 'company': string;
11624
+ /**
11625
+ *
11626
+ * @type {string}
11627
+ * @memberof PickINavigationExcludeKeyofINavigationLinks
11628
+ */
11629
+ '_id': string;
11630
+ /**
11631
+ *
11632
+ * @type {number}
11633
+ * @memberof PickINavigationExcludeKeyofINavigationLinks
11634
+ */
11635
+ '__v': number;
11636
+ /**
11637
+ *
11638
+ * @type {string}
11639
+ * @memberof PickINavigationExcludeKeyofINavigationLinks
11640
+ */
11641
+ 'createdAt': string;
11642
+ /**
11643
+ *
11644
+ * @type {string}
11645
+ * @memberof PickINavigationExcludeKeyofINavigationLinks
11646
+ */
11647
+ 'updatedAt': string;
11648
+ /**
11649
+ *
11650
+ * @type {string}
11651
+ * @memberof PickINavigationExcludeKeyofINavigationLinks
11652
+ */
11653
+ 'title': string;
11654
+ /**
11655
+ *
11656
+ * @type {string}
11657
+ * @memberof PickINavigationExcludeKeyofINavigationLinks
11658
+ */
11659
+ 'slug': string;
11660
+ /**
11661
+ *
11662
+ * @type {LanguageEnum}
11663
+ * @memberof PickINavigationExcludeKeyofINavigationLinks
11664
+ */
11665
+ 'locale': LanguageEnum;
11666
+ }
11667
+ /**
11668
+ * From T, pick a set of properties whose keys are in the union K
11669
+ * @export
11670
+ * @interface PickINavigationLinkExcludeKeyofINavigationLinkLinks
11671
+ */
11672
+ export interface PickINavigationLinkExcludeKeyofINavigationLinkLinks {
11673
+ /**
11674
+ *
11675
+ * @type {any}
11676
+ * @memberof PickINavigationLinkExcludeKeyofINavigationLinkLinks
11677
+ */
11678
+ 'object': any;
11679
+ /**
11680
+ *
11681
+ * @type {string}
11682
+ * @memberof PickINavigationLinkExcludeKeyofINavigationLinkLinks
11683
+ */
11684
+ '_id': string;
11685
+ /**
11686
+ *
11687
+ * @type {string}
11688
+ * @memberof PickINavigationLinkExcludeKeyofINavigationLinkLinks
11689
+ */
11690
+ 'title': string;
11691
+ /**
11692
+ *
11693
+ * @type {string}
11694
+ * @memberof PickINavigationLinkExcludeKeyofINavigationLinkLinks
11695
+ */
11696
+ 'type': string;
11697
+ /**
11698
+ *
11699
+ * @type {string}
11700
+ * @memberof PickINavigationLinkExcludeKeyofINavigationLinkLinks
11701
+ */
11702
+ 'url': string;
11568
11703
  }
11569
11704
  /**
11570
11705
  * From T, pick a set of properties whose keys are in the union K
@@ -22761,17 +22896,26 @@ export declare const TemplateApiAxiosParamCreator: (configuration?: Configuratio
22761
22896
  * @throws {RequiredError}
22762
22897
  */
22763
22898
  getTemplateById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22899
+ /**
22900
+ *
22901
+ * @param {string} title
22902
+ * @param {string} companyId
22903
+ * @param {string} themeId
22904
+ * @param {string} type
22905
+ * @param {*} [options] Override http request option.
22906
+ * @throws {RequiredError}
22907
+ */
22908
+ getTemplateByTitle: (title: string, companyId: string, themeId: string, type: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22764
22909
  /**
22765
22910
  *
22766
22911
  * @param {string} companyId
22767
22912
  * @param {string} [type]
22768
22913
  * @param {string} [search]
22769
22914
  * @param {string} [theme]
22770
- * @param {boolean} [unique]
22771
22915
  * @param {*} [options] Override http request option.
22772
22916
  * @throws {RequiredError}
22773
22917
  */
22774
- getTemplates: (companyId: string, type?: string, search?: string, theme?: string, unique?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22918
+ getTemplates: (companyId: string, type?: string, search?: string, theme?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22775
22919
  /**
22776
22920
  *
22777
22921
  * @param {string} id
@@ -22800,17 +22944,26 @@ export declare const TemplateApiFp: (configuration?: Configuration) => {
22800
22944
  * @throws {RequiredError}
22801
22945
  */
22802
22946
  getTemplateById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ITemplateResponse>>;
22947
+ /**
22948
+ *
22949
+ * @param {string} title
22950
+ * @param {string} companyId
22951
+ * @param {string} themeId
22952
+ * @param {string} type
22953
+ * @param {*} [options] Override http request option.
22954
+ * @throws {RequiredError}
22955
+ */
22956
+ getTemplateByTitle(title: string, companyId: string, themeId: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ITemplateResponse>>;
22803
22957
  /**
22804
22958
  *
22805
22959
  * @param {string} companyId
22806
22960
  * @param {string} [type]
22807
22961
  * @param {string} [search]
22808
22962
  * @param {string} [theme]
22809
- * @param {boolean} [unique]
22810
22963
  * @param {*} [options] Override http request option.
22811
22964
  * @throws {RequiredError}
22812
22965
  */
22813
- getTemplates(companyId: string, type?: string, search?: string, theme?: string, unique?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ITemplatesResponse>>;
22966
+ getTemplates(companyId: string, type?: string, search?: string, theme?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ITemplatesResponse>>;
22814
22967
  /**
22815
22968
  *
22816
22969
  * @param {string} id
@@ -22839,6 +22992,13 @@ export declare const TemplateApiFactory: (configuration?: Configuration, basePat
22839
22992
  * @throws {RequiredError}
22840
22993
  */
22841
22994
  getTemplateById(requestParameters: TemplateApiGetTemplateByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ITemplateResponse>;
22995
+ /**
22996
+ *
22997
+ * @param {TemplateApiGetTemplateByTitleRequest} requestParameters Request parameters.
22998
+ * @param {*} [options] Override http request option.
22999
+ * @throws {RequiredError}
23000
+ */
23001
+ getTemplateByTitle(requestParameters: TemplateApiGetTemplateByTitleRequest, options?: RawAxiosRequestConfig): AxiosPromise<ITemplateResponse>;
22842
23002
  /**
22843
23003
  *
22844
23004
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
@@ -22880,6 +23040,37 @@ export interface TemplateApiGetTemplateByIdRequest {
22880
23040
  */
22881
23041
  readonly id: string;
22882
23042
  }
23043
+ /**
23044
+ * Request parameters for getTemplateByTitle operation in TemplateApi.
23045
+ * @export
23046
+ * @interface TemplateApiGetTemplateByTitleRequest
23047
+ */
23048
+ export interface TemplateApiGetTemplateByTitleRequest {
23049
+ /**
23050
+ *
23051
+ * @type {string}
23052
+ * @memberof TemplateApiGetTemplateByTitle
23053
+ */
23054
+ readonly title: string;
23055
+ /**
23056
+ *
23057
+ * @type {string}
23058
+ * @memberof TemplateApiGetTemplateByTitle
23059
+ */
23060
+ readonly companyId: string;
23061
+ /**
23062
+ *
23063
+ * @type {string}
23064
+ * @memberof TemplateApiGetTemplateByTitle
23065
+ */
23066
+ readonly themeId: string;
23067
+ /**
23068
+ *
23069
+ * @type {string}
23070
+ * @memberof TemplateApiGetTemplateByTitle
23071
+ */
23072
+ readonly type: string;
23073
+ }
22883
23074
  /**
22884
23075
  * Request parameters for getTemplates operation in TemplateApi.
22885
23076
  * @export
@@ -22910,12 +23101,6 @@ export interface TemplateApiGetTemplatesRequest {
22910
23101
  * @memberof TemplateApiGetTemplates
22911
23102
  */
22912
23103
  readonly theme?: string;
22913
- /**
22914
- *
22915
- * @type {boolean}
22916
- * @memberof TemplateApiGetTemplates
22917
- */
22918
- readonly unique?: boolean;
22919
23104
  }
22920
23105
  /**
22921
23106
  * Request parameters for updateTemplate operation in TemplateApi.
@@ -22959,6 +23144,14 @@ export declare class TemplateApi extends BaseAPI {
22959
23144
  * @memberof TemplateApi
22960
23145
  */
22961
23146
  getTemplateById(requestParameters: TemplateApiGetTemplateByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ITemplateResponse, any>>;
23147
+ /**
23148
+ *
23149
+ * @param {TemplateApiGetTemplateByTitleRequest} requestParameters Request parameters.
23150
+ * @param {*} [options] Override http request option.
23151
+ * @throws {RequiredError}
23152
+ * @memberof TemplateApi
23153
+ */
23154
+ getTemplateByTitle(requestParameters: TemplateApiGetTemplateByTitleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ITemplateResponse, any>>;
22962
23155
  /**
22963
23156
  *
22964
23157
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -11756,17 +11756,62 @@ const TemplateApiAxiosParamCreator = function (configuration) {
11756
11756
  options: localVarRequestOptions,
11757
11757
  };
11758
11758
  },
11759
+ /**
11760
+ *
11761
+ * @param {string} title
11762
+ * @param {string} companyId
11763
+ * @param {string} themeId
11764
+ * @param {string} type
11765
+ * @param {*} [options] Override http request option.
11766
+ * @throws {RequiredError}
11767
+ */
11768
+ getTemplateByTitle: async (title, companyId, themeId, type, options = {}) => {
11769
+ // verify required parameter 'title' is not null or undefined
11770
+ (0, common_1.assertParamExists)('getTemplateByTitle', 'title', title);
11771
+ // verify required parameter 'companyId' is not null or undefined
11772
+ (0, common_1.assertParamExists)('getTemplateByTitle', 'companyId', companyId);
11773
+ // verify required parameter 'themeId' is not null or undefined
11774
+ (0, common_1.assertParamExists)('getTemplateByTitle', 'themeId', themeId);
11775
+ // verify required parameter 'type' is not null or undefined
11776
+ (0, common_1.assertParamExists)('getTemplateByTitle', 'type', type);
11777
+ const localVarPath = `/api/templates/title/{title}`
11778
+ .replace(`{${"title"}}`, encodeURIComponent(String(title)));
11779
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11780
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11781
+ let baseOptions;
11782
+ if (configuration) {
11783
+ baseOptions = configuration.baseOptions;
11784
+ }
11785
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
11786
+ const localVarHeaderParameter = {};
11787
+ const localVarQueryParameter = {};
11788
+ if (companyId !== undefined) {
11789
+ localVarQueryParameter['companyId'] = companyId;
11790
+ }
11791
+ if (themeId !== undefined) {
11792
+ localVarQueryParameter['themeId'] = themeId;
11793
+ }
11794
+ if (type !== undefined) {
11795
+ localVarQueryParameter['type'] = type;
11796
+ }
11797
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11798
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11799
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11800
+ return {
11801
+ url: (0, common_1.toPathString)(localVarUrlObj),
11802
+ options: localVarRequestOptions,
11803
+ };
11804
+ },
11759
11805
  /**
11760
11806
  *
11761
11807
  * @param {string} companyId
11762
11808
  * @param {string} [type]
11763
11809
  * @param {string} [search]
11764
11810
  * @param {string} [theme]
11765
- * @param {boolean} [unique]
11766
11811
  * @param {*} [options] Override http request option.
11767
11812
  * @throws {RequiredError}
11768
11813
  */
11769
- getTemplates: async (companyId, type, search, theme, unique, options = {}) => {
11814
+ getTemplates: async (companyId, type, search, theme, options = {}) => {
11770
11815
  // verify required parameter 'companyId' is not null or undefined
11771
11816
  (0, common_1.assertParamExists)('getTemplates', 'companyId', companyId);
11772
11817
  const localVarPath = `/api/templates`;
@@ -11791,9 +11836,6 @@ const TemplateApiAxiosParamCreator = function (configuration) {
11791
11836
  if (theme !== undefined) {
11792
11837
  localVarQueryParameter['theme'] = theme;
11793
11838
  }
11794
- if (unique !== undefined) {
11795
- localVarQueryParameter['unique'] = unique;
11796
- }
11797
11839
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11798
11840
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11799
11841
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -11869,18 +11911,32 @@ const TemplateApiFp = function (configuration) {
11869
11911
  const localVarOperationServerBasePath = base_1.operationServerMap['TemplateApi.getTemplateById']?.[localVarOperationServerIndex]?.url;
11870
11912
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11871
11913
  },
11914
+ /**
11915
+ *
11916
+ * @param {string} title
11917
+ * @param {string} companyId
11918
+ * @param {string} themeId
11919
+ * @param {string} type
11920
+ * @param {*} [options] Override http request option.
11921
+ * @throws {RequiredError}
11922
+ */
11923
+ async getTemplateByTitle(title, companyId, themeId, type, options) {
11924
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplateByTitle(title, companyId, themeId, type, options);
11925
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11926
+ const localVarOperationServerBasePath = base_1.operationServerMap['TemplateApi.getTemplateByTitle']?.[localVarOperationServerIndex]?.url;
11927
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11928
+ },
11872
11929
  /**
11873
11930
  *
11874
11931
  * @param {string} companyId
11875
11932
  * @param {string} [type]
11876
11933
  * @param {string} [search]
11877
11934
  * @param {string} [theme]
11878
- * @param {boolean} [unique]
11879
11935
  * @param {*} [options] Override http request option.
11880
11936
  * @throws {RequiredError}
11881
11937
  */
11882
- async getTemplates(companyId, type, search, theme, unique, options) {
11883
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, theme, unique, options);
11938
+ async getTemplates(companyId, type, search, theme, options) {
11939
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, theme, options);
11884
11940
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11885
11941
  const localVarOperationServerBasePath = base_1.operationServerMap['TemplateApi.getTemplates']?.[localVarOperationServerIndex]?.url;
11886
11942
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -11926,6 +11982,15 @@ const TemplateApiFactory = function (configuration, basePath, axios) {
11926
11982
  getTemplateById(requestParameters, options) {
11927
11983
  return localVarFp.getTemplateById(requestParameters.id, options).then((request) => request(axios, basePath));
11928
11984
  },
11985
+ /**
11986
+ *
11987
+ * @param {TemplateApiGetTemplateByTitleRequest} requestParameters Request parameters.
11988
+ * @param {*} [options] Override http request option.
11989
+ * @throws {RequiredError}
11990
+ */
11991
+ getTemplateByTitle(requestParameters, options) {
11992
+ return localVarFp.getTemplateByTitle(requestParameters.title, requestParameters.companyId, requestParameters.themeId, requestParameters.type, options).then((request) => request(axios, basePath));
11993
+ },
11929
11994
  /**
11930
11995
  *
11931
11996
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
@@ -11933,7 +11998,7 @@ const TemplateApiFactory = function (configuration, basePath, axios) {
11933
11998
  * @throws {RequiredError}
11934
11999
  */
11935
12000
  getTemplates(requestParameters, options) {
11936
- return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, requestParameters.unique, options).then((request) => request(axios, basePath));
12001
+ return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, options).then((request) => request(axios, basePath));
11937
12002
  },
11938
12003
  /**
11939
12004
  *
@@ -11974,6 +12039,16 @@ class TemplateApi extends base_1.BaseAPI {
11974
12039
  getTemplateById(requestParameters, options) {
11975
12040
  return (0, exports.TemplateApiFp)(this.configuration).getTemplateById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
11976
12041
  }
12042
+ /**
12043
+ *
12044
+ * @param {TemplateApiGetTemplateByTitleRequest} requestParameters Request parameters.
12045
+ * @param {*} [options] Override http request option.
12046
+ * @throws {RequiredError}
12047
+ * @memberof TemplateApi
12048
+ */
12049
+ getTemplateByTitle(requestParameters, options) {
12050
+ return (0, exports.TemplateApiFp)(this.configuration).getTemplateByTitle(requestParameters.title, requestParameters.companyId, requestParameters.themeId, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
12051
+ }
11977
12052
  /**
11978
12053
  *
11979
12054
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
@@ -11982,7 +12057,7 @@ class TemplateApi extends base_1.BaseAPI {
11982
12057
  * @memberof TemplateApi
11983
12058
  */
11984
12059
  getTemplates(requestParameters, options) {
11985
- return (0, exports.TemplateApiFp)(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, requestParameters.unique, options).then((request) => request(this.axios, this.basePath));
12060
+ return (0, exports.TemplateApiFp)(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
11986
12061
  }
11987
12062
  /**
11988
12063
  *
package/dist/api/api.mjs CHANGED
@@ -11676,17 +11676,62 @@ export const TemplateApiAxiosParamCreator = function (configuration) {
11676
11676
  options: localVarRequestOptions,
11677
11677
  };
11678
11678
  },
11679
+ /**
11680
+ *
11681
+ * @param {string} title
11682
+ * @param {string} companyId
11683
+ * @param {string} themeId
11684
+ * @param {string} type
11685
+ * @param {*} [options] Override http request option.
11686
+ * @throws {RequiredError}
11687
+ */
11688
+ getTemplateByTitle: async (title, companyId, themeId, type, options = {}) => {
11689
+ // verify required parameter 'title' is not null or undefined
11690
+ assertParamExists('getTemplateByTitle', 'title', title);
11691
+ // verify required parameter 'companyId' is not null or undefined
11692
+ assertParamExists('getTemplateByTitle', 'companyId', companyId);
11693
+ // verify required parameter 'themeId' is not null or undefined
11694
+ assertParamExists('getTemplateByTitle', 'themeId', themeId);
11695
+ // verify required parameter 'type' is not null or undefined
11696
+ assertParamExists('getTemplateByTitle', 'type', type);
11697
+ const localVarPath = `/api/templates/title/{title}`
11698
+ .replace(`{${"title"}}`, encodeURIComponent(String(title)));
11699
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11700
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11701
+ let baseOptions;
11702
+ if (configuration) {
11703
+ baseOptions = configuration.baseOptions;
11704
+ }
11705
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
11706
+ const localVarHeaderParameter = {};
11707
+ const localVarQueryParameter = {};
11708
+ if (companyId !== undefined) {
11709
+ localVarQueryParameter['companyId'] = companyId;
11710
+ }
11711
+ if (themeId !== undefined) {
11712
+ localVarQueryParameter['themeId'] = themeId;
11713
+ }
11714
+ if (type !== undefined) {
11715
+ localVarQueryParameter['type'] = type;
11716
+ }
11717
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11718
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11719
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11720
+ return {
11721
+ url: toPathString(localVarUrlObj),
11722
+ options: localVarRequestOptions,
11723
+ };
11724
+ },
11679
11725
  /**
11680
11726
  *
11681
11727
  * @param {string} companyId
11682
11728
  * @param {string} [type]
11683
11729
  * @param {string} [search]
11684
11730
  * @param {string} [theme]
11685
- * @param {boolean} [unique]
11686
11731
  * @param {*} [options] Override http request option.
11687
11732
  * @throws {RequiredError}
11688
11733
  */
11689
- getTemplates: async (companyId, type, search, theme, unique, options = {}) => {
11734
+ getTemplates: async (companyId, type, search, theme, options = {}) => {
11690
11735
  // verify required parameter 'companyId' is not null or undefined
11691
11736
  assertParamExists('getTemplates', 'companyId', companyId);
11692
11737
  const localVarPath = `/api/templates`;
@@ -11711,9 +11756,6 @@ export const TemplateApiAxiosParamCreator = function (configuration) {
11711
11756
  if (theme !== undefined) {
11712
11757
  localVarQueryParameter['theme'] = theme;
11713
11758
  }
11714
- if (unique !== undefined) {
11715
- localVarQueryParameter['unique'] = unique;
11716
- }
11717
11759
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11718
11760
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11719
11761
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -11788,18 +11830,32 @@ export const TemplateApiFp = function (configuration) {
11788
11830
  const localVarOperationServerBasePath = operationServerMap['TemplateApi.getTemplateById']?.[localVarOperationServerIndex]?.url;
11789
11831
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11790
11832
  },
11833
+ /**
11834
+ *
11835
+ * @param {string} title
11836
+ * @param {string} companyId
11837
+ * @param {string} themeId
11838
+ * @param {string} type
11839
+ * @param {*} [options] Override http request option.
11840
+ * @throws {RequiredError}
11841
+ */
11842
+ async getTemplateByTitle(title, companyId, themeId, type, options) {
11843
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplateByTitle(title, companyId, themeId, type, options);
11844
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11845
+ const localVarOperationServerBasePath = operationServerMap['TemplateApi.getTemplateByTitle']?.[localVarOperationServerIndex]?.url;
11846
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11847
+ },
11791
11848
  /**
11792
11849
  *
11793
11850
  * @param {string} companyId
11794
11851
  * @param {string} [type]
11795
11852
  * @param {string} [search]
11796
11853
  * @param {string} [theme]
11797
- * @param {boolean} [unique]
11798
11854
  * @param {*} [options] Override http request option.
11799
11855
  * @throws {RequiredError}
11800
11856
  */
11801
- async getTemplates(companyId, type, search, theme, unique, options) {
11802
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, theme, unique, options);
11857
+ async getTemplates(companyId, type, search, theme, options) {
11858
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(companyId, type, search, theme, options);
11803
11859
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11804
11860
  const localVarOperationServerBasePath = operationServerMap['TemplateApi.getTemplates']?.[localVarOperationServerIndex]?.url;
11805
11861
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -11844,6 +11900,15 @@ export const TemplateApiFactory = function (configuration, basePath, axios) {
11844
11900
  getTemplateById(requestParameters, options) {
11845
11901
  return localVarFp.getTemplateById(requestParameters.id, options).then((request) => request(axios, basePath));
11846
11902
  },
11903
+ /**
11904
+ *
11905
+ * @param {TemplateApiGetTemplateByTitleRequest} requestParameters Request parameters.
11906
+ * @param {*} [options] Override http request option.
11907
+ * @throws {RequiredError}
11908
+ */
11909
+ getTemplateByTitle(requestParameters, options) {
11910
+ return localVarFp.getTemplateByTitle(requestParameters.title, requestParameters.companyId, requestParameters.themeId, requestParameters.type, options).then((request) => request(axios, basePath));
11911
+ },
11847
11912
  /**
11848
11913
  *
11849
11914
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
@@ -11851,7 +11916,7 @@ export const TemplateApiFactory = function (configuration, basePath, axios) {
11851
11916
  * @throws {RequiredError}
11852
11917
  */
11853
11918
  getTemplates(requestParameters, options) {
11854
- return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, requestParameters.unique, options).then((request) => request(axios, basePath));
11919
+ return localVarFp.getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, options).then((request) => request(axios, basePath));
11855
11920
  },
11856
11921
  /**
11857
11922
  *
@@ -11891,6 +11956,16 @@ export class TemplateApi extends BaseAPI {
11891
11956
  getTemplateById(requestParameters, options) {
11892
11957
  return TemplateApiFp(this.configuration).getTemplateById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
11893
11958
  }
11959
+ /**
11960
+ *
11961
+ * @param {TemplateApiGetTemplateByTitleRequest} requestParameters Request parameters.
11962
+ * @param {*} [options] Override http request option.
11963
+ * @throws {RequiredError}
11964
+ * @memberof TemplateApi
11965
+ */
11966
+ getTemplateByTitle(requestParameters, options) {
11967
+ return TemplateApiFp(this.configuration).getTemplateByTitle(requestParameters.title, requestParameters.companyId, requestParameters.themeId, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
11968
+ }
11894
11969
  /**
11895
11970
  *
11896
11971
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
@@ -11899,7 +11974,7 @@ export class TemplateApi extends BaseAPI {
11899
11974
  * @memberof TemplateApi
11900
11975
  */
11901
11976
  getTemplates(requestParameters, options) {
11902
- return TemplateApiFp(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, requestParameters.unique, options).then((request) => request(this.axios, this.basePath));
11977
+ return TemplateApiFp(this.configuration).getTemplates(requestParameters.companyId, requestParameters.type, requestParameters.search, requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
11903
11978
  }
11904
11979
  /**
11905
11980
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.3.55",
3
+ "version": "1.3.57",
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": "a1464e90c026cd04549482c0200787d645397c81"
40
+ "gitHead": "1c8dca81e6fa5c604aca36a827321fdf5f5473a0"
41
41
  }