@infisale-client/api 1.3.71 → 1.3.73

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.js CHANGED
@@ -1582,6 +1582,30 @@ const AuthApiAxiosParamCreator = function (configuration) {
1582
1582
  options: localVarRequestOptions,
1583
1583
  };
1584
1584
  },
1585
+ /**
1586
+ *
1587
+ * @param {*} [options] Override http request option.
1588
+ * @throws {RequiredError}
1589
+ */
1590
+ generateCliToken: async (options = {}) => {
1591
+ const localVarPath = `/api/auth/cli-token`;
1592
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1593
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1594
+ let baseOptions;
1595
+ if (configuration) {
1596
+ baseOptions = configuration.baseOptions;
1597
+ }
1598
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1599
+ const localVarHeaderParameter = {};
1600
+ const localVarQueryParameter = {};
1601
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1602
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1603
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1604
+ return {
1605
+ url: (0, common_1.toPathString)(localVarUrlObj),
1606
+ options: localVarRequestOptions,
1607
+ };
1608
+ },
1585
1609
  /**
1586
1610
  *
1587
1611
  * @param {string} domain
@@ -1837,6 +1861,17 @@ const AuthApiFp = function (configuration) {
1837
1861
  const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.forgotPassword']?.[localVarOperationServerIndex]?.url;
1838
1862
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1839
1863
  },
1864
+ /**
1865
+ *
1866
+ * @param {*} [options] Override http request option.
1867
+ * @throws {RequiredError}
1868
+ */
1869
+ async generateCliToken(options) {
1870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateCliToken(options);
1871
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1872
+ const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.generateCliToken']?.[localVarOperationServerIndex]?.url;
1873
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1874
+ },
1840
1875
  /**
1841
1876
  *
1842
1877
  * @param {string} domain
@@ -1945,6 +1980,14 @@ const AuthApiFactory = function (configuration, basePath, axios) {
1945
1980
  forgotPassword(requestParameters, options) {
1946
1981
  return localVarFp.forgotPassword(requestParameters.domain, requestParameters.iForgotPasswordRequest, options).then((request) => request(axios, basePath));
1947
1982
  },
1983
+ /**
1984
+ *
1985
+ * @param {*} [options] Override http request option.
1986
+ * @throws {RequiredError}
1987
+ */
1988
+ generateCliToken(options) {
1989
+ return localVarFp.generateCliToken(options).then((request) => request(axios, basePath));
1990
+ },
1948
1991
  /**
1949
1992
  *
1950
1993
  * @param {AuthApiLoginRequest} requestParameters Request parameters.
@@ -2028,6 +2071,15 @@ class AuthApi extends base_1.BaseAPI {
2028
2071
  forgotPassword(requestParameters, options) {
2029
2072
  return (0, exports.AuthApiFp)(this.configuration).forgotPassword(requestParameters.domain, requestParameters.iForgotPasswordRequest, options).then((request) => request(this.axios, this.basePath));
2030
2073
  }
2074
+ /**
2075
+ *
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ * @memberof AuthApi
2079
+ */
2080
+ generateCliToken(options) {
2081
+ return (0, exports.AuthApiFp)(this.configuration).generateCliToken(options).then((request) => request(this.axios, this.basePath));
2082
+ }
2031
2083
  /**
2032
2084
  *
2033
2085
  * @param {AuthApiLoginRequest} requestParameters Request parameters.
@@ -7638,6 +7690,34 @@ const ContentPlanApiAxiosParamCreator = function (configuration) {
7638
7690
  options: localVarRequestOptions,
7639
7691
  };
7640
7692
  },
7693
+ /**
7694
+ *
7695
+ * @param {string} id
7696
+ * @param {*} [options] Override http request option.
7697
+ * @throws {RequiredError}
7698
+ */
7699
+ generateContentPlan: async (id, options = {}) => {
7700
+ // verify required parameter 'id' is not null or undefined
7701
+ (0, common_1.assertParamExists)('generateContentPlan', 'id', id);
7702
+ const localVarPath = `/api/content-plans/{id}/generate`
7703
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7705
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7706
+ let baseOptions;
7707
+ if (configuration) {
7708
+ baseOptions = configuration.baseOptions;
7709
+ }
7710
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
7711
+ const localVarHeaderParameter = {};
7712
+ const localVarQueryParameter = {};
7713
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7714
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7715
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7716
+ return {
7717
+ url: (0, common_1.toPathString)(localVarUrlObj),
7718
+ options: localVarRequestOptions,
7719
+ };
7720
+ },
7641
7721
  /**
7642
7722
  *
7643
7723
  * @param {string} id
@@ -7813,6 +7893,18 @@ const ContentPlanApiFp = function (configuration) {
7813
7893
  const localVarOperationServerBasePath = base_1.operationServerMap['ContentPlanApi.deleteContentPlan']?.[localVarOperationServerIndex]?.url;
7814
7894
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7815
7895
  },
7896
+ /**
7897
+ *
7898
+ * @param {string} id
7899
+ * @param {*} [options] Override http request option.
7900
+ * @throws {RequiredError}
7901
+ */
7902
+ async generateContentPlan(id, options) {
7903
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateContentPlan(id, options);
7904
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7905
+ const localVarOperationServerBasePath = base_1.operationServerMap['ContentPlanApi.generateContentPlan']?.[localVarOperationServerIndex]?.url;
7906
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7907
+ },
7816
7908
  /**
7817
7909
  *
7818
7910
  * @param {string} id
@@ -7890,6 +7982,15 @@ const ContentPlanApiFactory = function (configuration, basePath, axios) {
7890
7982
  deleteContentPlan(requestParameters, options) {
7891
7983
  return localVarFp.deleteContentPlan(requestParameters.id, options).then((request) => request(axios, basePath));
7892
7984
  },
7985
+ /**
7986
+ *
7987
+ * @param {ContentPlanApiGenerateContentPlanRequest} requestParameters Request parameters.
7988
+ * @param {*} [options] Override http request option.
7989
+ * @throws {RequiredError}
7990
+ */
7991
+ generateContentPlan(requestParameters, options) {
7992
+ return localVarFp.generateContentPlan(requestParameters.id, options).then((request) => request(axios, basePath));
7993
+ },
7893
7994
  /**
7894
7995
  *
7895
7996
  * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
@@ -7947,6 +8048,16 @@ class ContentPlanApi extends base_1.BaseAPI {
7947
8048
  deleteContentPlan(requestParameters, options) {
7948
8049
  return (0, exports.ContentPlanApiFp)(this.configuration).deleteContentPlan(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7949
8050
  }
8051
+ /**
8052
+ *
8053
+ * @param {ContentPlanApiGenerateContentPlanRequest} requestParameters Request parameters.
8054
+ * @param {*} [options] Override http request option.
8055
+ * @throws {RequiredError}
8056
+ * @memberof ContentPlanApi
8057
+ */
8058
+ generateContentPlan(requestParameters, options) {
8059
+ return (0, exports.ContentPlanApiFp)(this.configuration).generateContentPlan(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
8060
+ }
7950
8061
  /**
7951
8062
  *
7952
8063
  * @param {ContentPlanApiGetContentPlanByIdRequest} requestParameters Request parameters.
@@ -12809,6 +12920,48 @@ const SEOApiAxiosParamCreator = function (configuration) {
12809
12920
  options: localVarRequestOptions,
12810
12921
  };
12811
12922
  },
12923
+ /**
12924
+ *
12925
+ * @param {string} companyId
12926
+ * @param {string} [keyword]
12927
+ * @param {string} [startDate]
12928
+ * @param {string} [endDate]
12929
+ * @param {*} [options] Override http request option.
12930
+ * @throws {RequiredError}
12931
+ */
12932
+ listSeoRankResults: async (companyId, keyword, startDate, endDate, options = {}) => {
12933
+ // verify required parameter 'companyId' is not null or undefined
12934
+ (0, common_1.assertParamExists)('listSeoRankResults', 'companyId', companyId);
12935
+ const localVarPath = `/api/seo/rank-results`;
12936
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12937
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12938
+ let baseOptions;
12939
+ if (configuration) {
12940
+ baseOptions = configuration.baseOptions;
12941
+ }
12942
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
12943
+ const localVarHeaderParameter = {};
12944
+ const localVarQueryParameter = {};
12945
+ if (companyId !== undefined) {
12946
+ localVarQueryParameter['companyId'] = companyId;
12947
+ }
12948
+ if (keyword !== undefined) {
12949
+ localVarQueryParameter['keyword'] = keyword;
12950
+ }
12951
+ if (startDate !== undefined) {
12952
+ localVarQueryParameter['startDate'] = startDate;
12953
+ }
12954
+ if (endDate !== undefined) {
12955
+ localVarQueryParameter['endDate'] = endDate;
12956
+ }
12957
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12958
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12959
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
12960
+ return {
12961
+ url: (0, common_1.toPathString)(localVarUrlObj),
12962
+ options: localVarRequestOptions,
12963
+ };
12964
+ },
12812
12965
  /**
12813
12966
  *
12814
12967
  * @param {string} [companyId]
@@ -12916,6 +13069,21 @@ const SEOApiFp = function (configuration) {
12916
13069
  const localVarOperationServerBasePath = base_1.operationServerMap['SEOApi.getSeoRankTrack']?.[localVarOperationServerIndex]?.url;
12917
13070
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12918
13071
  },
13072
+ /**
13073
+ *
13074
+ * @param {string} companyId
13075
+ * @param {string} [keyword]
13076
+ * @param {string} [startDate]
13077
+ * @param {string} [endDate]
13078
+ * @param {*} [options] Override http request option.
13079
+ * @throws {RequiredError}
13080
+ */
13081
+ async listSeoRankResults(companyId, keyword, startDate, endDate, options) {
13082
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeoRankResults(companyId, keyword, startDate, endDate, options);
13083
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13084
+ const localVarOperationServerBasePath = base_1.operationServerMap['SEOApi.listSeoRankResults']?.[localVarOperationServerIndex]?.url;
13085
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13086
+ },
12919
13087
  /**
12920
13088
  *
12921
13089
  * @param {string} [companyId]
@@ -12978,6 +13146,15 @@ const SEOApiFactory = function (configuration, basePath, axios) {
12978
13146
  getSeoRankTrack(requestParameters, options) {
12979
13147
  return localVarFp.getSeoRankTrack(requestParameters.id, options).then((request) => request(axios, basePath));
12980
13148
  },
13149
+ /**
13150
+ *
13151
+ * @param {SEOApiListSeoRankResultsRequest} requestParameters Request parameters.
13152
+ * @param {*} [options] Override http request option.
13153
+ * @throws {RequiredError}
13154
+ */
13155
+ listSeoRankResults(requestParameters, options) {
13156
+ return localVarFp.listSeoRankResults(requestParameters.companyId, requestParameters.keyword, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
13157
+ },
12981
13158
  /**
12982
13159
  *
12983
13160
  * @param {SEOApiListSeoRankTracksRequest} requestParameters Request parameters.
@@ -13036,6 +13213,16 @@ class SEOApi extends base_1.BaseAPI {
13036
13213
  getSeoRankTrack(requestParameters, options) {
13037
13214
  return (0, exports.SEOApiFp)(this.configuration).getSeoRankTrack(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
13038
13215
  }
13216
+ /**
13217
+ *
13218
+ * @param {SEOApiListSeoRankResultsRequest} requestParameters Request parameters.
13219
+ * @param {*} [options] Override http request option.
13220
+ * @throws {RequiredError}
13221
+ * @memberof SEOApi
13222
+ */
13223
+ listSeoRankResults(requestParameters, options) {
13224
+ return (0, exports.SEOApiFp)(this.configuration).listSeoRankResults(requestParameters.companyId, requestParameters.keyword, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
13225
+ }
13039
13226
  /**
13040
13227
  *
13041
13228
  * @param {SEOApiListSeoRankTracksRequest} requestParameters Request parameters.
@@ -14058,6 +14245,34 @@ const ThemeApiAxiosParamCreator = function (configuration) {
14058
14245
  options: localVarRequestOptions,
14059
14246
  };
14060
14247
  },
14248
+ /**
14249
+ *
14250
+ * @param {string} id
14251
+ * @param {*} [options] Override http request option.
14252
+ * @throws {RequiredError}
14253
+ */
14254
+ getThemeLastVersion: async (id, options = {}) => {
14255
+ // verify required parameter 'id' is not null or undefined
14256
+ (0, common_1.assertParamExists)('getThemeLastVersion', 'id', id);
14257
+ const localVarPath = `/api/themes/{id}/last-version`
14258
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
14259
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14260
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14261
+ let baseOptions;
14262
+ if (configuration) {
14263
+ baseOptions = configuration.baseOptions;
14264
+ }
14265
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
14266
+ const localVarHeaderParameter = {};
14267
+ const localVarQueryParameter = {};
14268
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14270
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
14271
+ return {
14272
+ url: (0, common_1.toPathString)(localVarUrlObj),
14273
+ options: localVarRequestOptions,
14274
+ };
14275
+ },
14061
14276
  /**
14062
14277
  *
14063
14278
  * @param {CompanyTypeEnum} [type]
@@ -14262,6 +14477,18 @@ const ThemeApiFp = function (configuration) {
14262
14477
  const localVarOperationServerBasePath = base_1.operationServerMap['ThemeApi.getThemeById']?.[localVarOperationServerIndex]?.url;
14263
14478
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14264
14479
  },
14480
+ /**
14481
+ *
14482
+ * @param {string} id
14483
+ * @param {*} [options] Override http request option.
14484
+ * @throws {RequiredError}
14485
+ */
14486
+ async getThemeLastVersion(id, options) {
14487
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getThemeLastVersion(id, options);
14488
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14489
+ const localVarOperationServerBasePath = base_1.operationServerMap['ThemeApi.getThemeLastVersion']?.[localVarOperationServerIndex]?.url;
14490
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14491
+ },
14265
14492
  /**
14266
14493
  *
14267
14494
  * @param {CompanyTypeEnum} [type]
@@ -14369,6 +14596,15 @@ const ThemeApiFactory = function (configuration, basePath, axios) {
14369
14596
  getThemeById(requestParameters, options) {
14370
14597
  return localVarFp.getThemeById(requestParameters.id, options).then((request) => request(axios, basePath));
14371
14598
  },
14599
+ /**
14600
+ *
14601
+ * @param {ThemeApiGetThemeLastVersionRequest} requestParameters Request parameters.
14602
+ * @param {*} [options] Override http request option.
14603
+ * @throws {RequiredError}
14604
+ */
14605
+ getThemeLastVersion(requestParameters, options) {
14606
+ return localVarFp.getThemeLastVersion(requestParameters.id, options).then((request) => request(axios, basePath));
14607
+ },
14372
14608
  /**
14373
14609
  *
14374
14610
  * @param {ThemeApiGetThemesRequest} requestParameters Request parameters.
@@ -14466,6 +14702,16 @@ class ThemeApi extends base_1.BaseAPI {
14466
14702
  getThemeById(requestParameters, options) {
14467
14703
  return (0, exports.ThemeApiFp)(this.configuration).getThemeById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
14468
14704
  }
14705
+ /**
14706
+ *
14707
+ * @param {ThemeApiGetThemeLastVersionRequest} requestParameters Request parameters.
14708
+ * @param {*} [options] Override http request option.
14709
+ * @throws {RequiredError}
14710
+ * @memberof ThemeApi
14711
+ */
14712
+ getThemeLastVersion(requestParameters, options) {
14713
+ return (0, exports.ThemeApiFp)(this.configuration).getThemeLastVersion(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
14714
+ }
14469
14715
  /**
14470
14716
  *
14471
14717
  * @param {ThemeApiGetThemesRequest} requestParameters Request parameters.