@infisale-client/api 1.3.56 → 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
@@ -22896,6 +22896,16 @@ export declare const TemplateApiAxiosParamCreator: (configuration?: Configuratio
22896
22896
  * @throws {RequiredError}
22897
22897
  */
22898
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>;
22899
22909
  /**
22900
22910
  *
22901
22911
  * @param {string} companyId
@@ -22934,6 +22944,16 @@ export declare const TemplateApiFp: (configuration?: Configuration) => {
22934
22944
  * @throws {RequiredError}
22935
22945
  */
22936
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>>;
22937
22957
  /**
22938
22958
  *
22939
22959
  * @param {string} companyId
@@ -22972,6 +22992,13 @@ export declare const TemplateApiFactory: (configuration?: Configuration, basePat
22972
22992
  * @throws {RequiredError}
22973
22993
  */
22974
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>;
22975
23002
  /**
22976
23003
  *
22977
23004
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
@@ -23013,6 +23040,37 @@ export interface TemplateApiGetTemplateByIdRequest {
23013
23040
  */
23014
23041
  readonly id: string;
23015
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
+ }
23016
23074
  /**
23017
23075
  * Request parameters for getTemplates operation in TemplateApi.
23018
23076
  * @export
@@ -23086,6 +23144,14 @@ export declare class TemplateApi extends BaseAPI {
23086
23144
  * @memberof TemplateApi
23087
23145
  */
23088
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>>;
23089
23155
  /**
23090
23156
  *
23091
23157
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
package/dist/api/api.js CHANGED
@@ -11756,6 +11756,52 @@ 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
@@ -11865,6 +11911,21 @@ const TemplateApiFp = function (configuration) {
11865
11911
  const localVarOperationServerBasePath = base_1.operationServerMap['TemplateApi.getTemplateById']?.[localVarOperationServerIndex]?.url;
11866
11912
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11867
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
+ },
11868
11929
  /**
11869
11930
  *
11870
11931
  * @param {string} companyId
@@ -11921,6 +11982,15 @@ const TemplateApiFactory = function (configuration, basePath, axios) {
11921
11982
  getTemplateById(requestParameters, options) {
11922
11983
  return localVarFp.getTemplateById(requestParameters.id, options).then((request) => request(axios, basePath));
11923
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
+ },
11924
11994
  /**
11925
11995
  *
11926
11996
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
@@ -11969,6 +12039,16 @@ class TemplateApi extends base_1.BaseAPI {
11969
12039
  getTemplateById(requestParameters, options) {
11970
12040
  return (0, exports.TemplateApiFp)(this.configuration).getTemplateById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
11971
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
+ }
11972
12052
  /**
11973
12053
  *
11974
12054
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -11676,6 +11676,52 @@ 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
@@ -11784,6 +11830,21 @@ export const TemplateApiFp = function (configuration) {
11784
11830
  const localVarOperationServerBasePath = operationServerMap['TemplateApi.getTemplateById']?.[localVarOperationServerIndex]?.url;
11785
11831
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11786
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
+ },
11787
11848
  /**
11788
11849
  *
11789
11850
  * @param {string} companyId
@@ -11839,6 +11900,15 @@ export const TemplateApiFactory = function (configuration, basePath, axios) {
11839
11900
  getTemplateById(requestParameters, options) {
11840
11901
  return localVarFp.getTemplateById(requestParameters.id, options).then((request) => request(axios, basePath));
11841
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
+ },
11842
11912
  /**
11843
11913
  *
11844
11914
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
@@ -11886,6 +11956,16 @@ export class TemplateApi extends BaseAPI {
11886
11956
  getTemplateById(requestParameters, options) {
11887
11957
  return TemplateApiFp(this.configuration).getTemplateById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
11888
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
+ }
11889
11969
  /**
11890
11970
  *
11891
11971
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.3.56",
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": "e29435b92aaa8ec010c486a6f3ed37019f3065cd"
40
+ "gitHead": "1c8dca81e6fa5c604aca36a827321fdf5f5473a0"
41
41
  }