@infisale-client/api 1.3.56 → 1.3.58

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
@@ -9006,6 +9006,12 @@ export interface IThemePatchRequest {
9006
9006
  'config'?: {
9007
9007
  [key: string]: any;
9008
9008
  };
9009
+ /**
9010
+ *
9011
+ * @type {string}
9012
+ * @memberof IThemePatchRequest
9013
+ */
9014
+ 'demoUrl'?: string;
9009
9015
  }
9010
9016
  /**
9011
9017
  *
@@ -22896,6 +22902,16 @@ export declare const TemplateApiAxiosParamCreator: (configuration?: Configuratio
22896
22902
  * @throws {RequiredError}
22897
22903
  */
22898
22904
  getTemplateById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22905
+ /**
22906
+ *
22907
+ * @param {string} title
22908
+ * @param {string} companyId
22909
+ * @param {string} themeId
22910
+ * @param {string} type
22911
+ * @param {*} [options] Override http request option.
22912
+ * @throws {RequiredError}
22913
+ */
22914
+ getTemplateByTitle: (title: string, companyId: string, themeId: string, type: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22899
22915
  /**
22900
22916
  *
22901
22917
  * @param {string} companyId
@@ -22934,6 +22950,16 @@ export declare const TemplateApiFp: (configuration?: Configuration) => {
22934
22950
  * @throws {RequiredError}
22935
22951
  */
22936
22952
  getTemplateById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ITemplateResponse>>;
22953
+ /**
22954
+ *
22955
+ * @param {string} title
22956
+ * @param {string} companyId
22957
+ * @param {string} themeId
22958
+ * @param {string} type
22959
+ * @param {*} [options] Override http request option.
22960
+ * @throws {RequiredError}
22961
+ */
22962
+ getTemplateByTitle(title: string, companyId: string, themeId: string, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ITemplateResponse>>;
22937
22963
  /**
22938
22964
  *
22939
22965
  * @param {string} companyId
@@ -22972,6 +22998,13 @@ export declare const TemplateApiFactory: (configuration?: Configuration, basePat
22972
22998
  * @throws {RequiredError}
22973
22999
  */
22974
23000
  getTemplateById(requestParameters: TemplateApiGetTemplateByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ITemplateResponse>;
23001
+ /**
23002
+ *
23003
+ * @param {TemplateApiGetTemplateByTitleRequest} requestParameters Request parameters.
23004
+ * @param {*} [options] Override http request option.
23005
+ * @throws {RequiredError}
23006
+ */
23007
+ getTemplateByTitle(requestParameters: TemplateApiGetTemplateByTitleRequest, options?: RawAxiosRequestConfig): AxiosPromise<ITemplateResponse>;
22975
23008
  /**
22976
23009
  *
22977
23010
  * @param {TemplateApiGetTemplatesRequest} requestParameters Request parameters.
@@ -23013,6 +23046,37 @@ export interface TemplateApiGetTemplateByIdRequest {
23013
23046
  */
23014
23047
  readonly id: string;
23015
23048
  }
23049
+ /**
23050
+ * Request parameters for getTemplateByTitle operation in TemplateApi.
23051
+ * @export
23052
+ * @interface TemplateApiGetTemplateByTitleRequest
23053
+ */
23054
+ export interface TemplateApiGetTemplateByTitleRequest {
23055
+ /**
23056
+ *
23057
+ * @type {string}
23058
+ * @memberof TemplateApiGetTemplateByTitle
23059
+ */
23060
+ readonly title: string;
23061
+ /**
23062
+ *
23063
+ * @type {string}
23064
+ * @memberof TemplateApiGetTemplateByTitle
23065
+ */
23066
+ readonly companyId: string;
23067
+ /**
23068
+ *
23069
+ * @type {string}
23070
+ * @memberof TemplateApiGetTemplateByTitle
23071
+ */
23072
+ readonly themeId: string;
23073
+ /**
23074
+ *
23075
+ * @type {string}
23076
+ * @memberof TemplateApiGetTemplateByTitle
23077
+ */
23078
+ readonly type: string;
23079
+ }
23016
23080
  /**
23017
23081
  * Request parameters for getTemplates operation in TemplateApi.
23018
23082
  * @export
@@ -23086,6 +23150,14 @@ export declare class TemplateApi extends BaseAPI {
23086
23150
  * @memberof TemplateApi
23087
23151
  */
23088
23152
  getTemplateById(requestParameters: TemplateApiGetTemplateByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ITemplateResponse, any>>;
23153
+ /**
23154
+ *
23155
+ * @param {TemplateApiGetTemplateByTitleRequest} requestParameters Request parameters.
23156
+ * @param {*} [options] Override http request option.
23157
+ * @throws {RequiredError}
23158
+ * @memberof TemplateApi
23159
+ */
23160
+ getTemplateByTitle(requestParameters: TemplateApiGetTemplateByTitleRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ITemplateResponse, any>>;
23089
23161
  /**
23090
23162
  *
23091
23163
  * @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.58",
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": "2e90cff37e5e1e4f38bcef8f1d1e991b3b420f0c"
41
41
  }