@hostinger/sdk 1.51.0 → 1.52.1

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/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.51.0
7
+ * API Version: 1.52.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.51.0
4
+ * API Version: 1.52.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.51.0
7
+ * API Version: 1.52.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.51.0
4
+ * API Version: 1.52.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.51.0
7
+ * API Version: 1.52.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.51.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.52.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.51.0
4
+ * API Version: 1.52.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -7209,6 +7209,139 @@ export interface HostingV1FilesUploadUrlResource {
7209
7209
  */
7210
7210
  'rest_auth_key': string;
7211
7211
  }
7212
+ /**
7213
+ *
7214
+ * @export
7215
+ * @interface HostingV1GitGitInstallationResource
7216
+ */
7217
+ export interface HostingV1GitGitInstallationResource {
7218
+ /**
7219
+ * Installation identifier. Use it as the path parameter of List Git installation repositories.
7220
+ * @type {string}
7221
+ * @memberof HostingV1GitGitInstallationResource
7222
+ */
7223
+ 'uuid': string;
7224
+ /**
7225
+ * Git provider the account belongs to
7226
+ * @type {string}
7227
+ * @memberof HostingV1GitGitInstallationResource
7228
+ */
7229
+ 'provider': HostingV1GitGitInstallationResourceProviderEnum;
7230
+ /**
7231
+ * Login of the connected provider account (user or organization)
7232
+ * @type {string}
7233
+ * @memberof HostingV1GitGitInstallationResource
7234
+ */
7235
+ 'account_login': string | null;
7236
+ /**
7237
+ * Whether the connected account is a user or an organization
7238
+ * @type {string}
7239
+ * @memberof HostingV1GitGitInstallationResource
7240
+ */
7241
+ 'account_type': HostingV1GitGitInstallationResourceAccountTypeEnum | null;
7242
+ /**
7243
+ * Avatar URL of the connected provider account
7244
+ * @type {string}
7245
+ * @memberof HostingV1GitGitInstallationResource
7246
+ */
7247
+ 'account_avatar_url': string | null;
7248
+ /**
7249
+ * Installation status. Only active installations are listed unless the status filter says otherwise.
7250
+ * @type {string}
7251
+ * @memberof HostingV1GitGitInstallationResource
7252
+ */
7253
+ 'status': HostingV1GitGitInstallationResourceStatusEnum;
7254
+ /**
7255
+ * When the provider app was installed on the account
7256
+ * @type {string}
7257
+ * @memberof HostingV1GitGitInstallationResource
7258
+ */
7259
+ 'installed_at': string | null;
7260
+ /**
7261
+ * When the installation record was created
7262
+ * @type {string}
7263
+ * @memberof HostingV1GitGitInstallationResource
7264
+ */
7265
+ 'created_at': string;
7266
+ /**
7267
+ * True when the GitHub user account has a stored OAuth token whose refresh token is still valid, false when the token is missing or its refresh token expired. Null for organization accounts and for providers other than GitHub.
7268
+ * @type {boolean}
7269
+ * @memberof HostingV1GitGitInstallationResource
7270
+ */
7271
+ 'has_oauth': boolean | null;
7272
+ }
7273
+ export declare const HostingV1GitGitInstallationResourceProviderEnum: {
7274
+ readonly Github: "github";
7275
+ readonly Gitlab: "gitlab";
7276
+ readonly Bitbucket: "bitbucket";
7277
+ };
7278
+ export type HostingV1GitGitInstallationResourceProviderEnum = typeof HostingV1GitGitInstallationResourceProviderEnum[keyof typeof HostingV1GitGitInstallationResourceProviderEnum];
7279
+ export declare const HostingV1GitGitInstallationResourceAccountTypeEnum: {
7280
+ readonly User: "User";
7281
+ readonly Organization: "Organization";
7282
+ };
7283
+ export type HostingV1GitGitInstallationResourceAccountTypeEnum = typeof HostingV1GitGitInstallationResourceAccountTypeEnum[keyof typeof HostingV1GitGitInstallationResourceAccountTypeEnum];
7284
+ export declare const HostingV1GitGitInstallationResourceStatusEnum: {
7285
+ readonly Pending: "pending";
7286
+ readonly Active: "active";
7287
+ readonly Suspended: "suspended";
7288
+ };
7289
+ export type HostingV1GitGitInstallationResourceStatusEnum = typeof HostingV1GitGitInstallationResourceStatusEnum[keyof typeof HostingV1GitGitInstallationResourceStatusEnum];
7290
+ /**
7291
+ *
7292
+ * @export
7293
+ * @interface HostingV1GitGitRepositoryResource
7294
+ */
7295
+ export interface HostingV1GitGitRepositoryResource {
7296
+ /**
7297
+ * Repository identifier assigned by the Git provider
7298
+ * @type {number}
7299
+ * @memberof HostingV1GitGitRepositoryResource
7300
+ */
7301
+ 'id': number;
7302
+ /**
7303
+ * Repository name without the .git suffix
7304
+ * @type {string}
7305
+ * @memberof HostingV1GitGitRepositoryResource
7306
+ */
7307
+ 'name': string;
7308
+ /**
7309
+ * Owner and repository name joined with a slash
7310
+ * @type {string}
7311
+ * @memberof HostingV1GitGitRepositoryResource
7312
+ */
7313
+ 'full_name': string;
7314
+ /**
7315
+ * Repository owner login
7316
+ * @type {string}
7317
+ * @memberof HostingV1GitGitRepositoryResource
7318
+ */
7319
+ 'owner': string;
7320
+ /**
7321
+ * Whether the repository is private
7322
+ * @type {boolean}
7323
+ * @memberof HostingV1GitGitRepositoryResource
7324
+ */
7325
+ 'is_private': boolean;
7326
+ /**
7327
+ * Repository page URL
7328
+ * @type {string}
7329
+ * @memberof HostingV1GitGitRepositoryResource
7330
+ */
7331
+ 'html_url': string;
7332
+ /**
7333
+ * HTTPS clone URL
7334
+ * @type {string}
7335
+ * @memberof HostingV1GitGitRepositoryResource
7336
+ */
7337
+ 'clone_url': string;
7338
+ /**
7339
+ * Default branch of the repository
7340
+ * @type {string}
7341
+ * @memberof HostingV1GitGitRepositoryResource
7342
+ */
7343
+ 'default_branch': string;
7344
+ }
7212
7345
  /**
7213
7346
  *
7214
7347
  * @export
@@ -23065,6 +23198,120 @@ export declare const ListWebsiteFilesAndDirectoriesV1FileTypesEnum: {
23065
23198
  readonly Other: "other";
23066
23199
  };
23067
23200
  export type ListWebsiteFilesAndDirectoriesV1FileTypesEnum = typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum[keyof typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum];
23201
+ /**
23202
+ * HostingGitApi - axios parameter creator
23203
+ * @export
23204
+ */
23205
+ export declare const HostingGitApiAxiosParamCreator: (configuration?: Configuration) => {
23206
+ /**
23207
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
23208
+ * @summary List Git installation repositories
23209
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
23210
+ * @param {*} [options] Override http request option.
23211
+ * @throws {RequiredError}
23212
+ */
23213
+ listGitInstallationRepositoriesV1: (uuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23214
+ /**
23215
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git Repository, Continue with GitHub); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`.
23216
+ * @summary List Git installations
23217
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
23218
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
23219
+ * @param {*} [options] Override http request option.
23220
+ * @throws {RequiredError}
23221
+ */
23222
+ listGitInstallationsV1: (provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23223
+ };
23224
+ /**
23225
+ * HostingGitApi - functional programming interface
23226
+ * @export
23227
+ */
23228
+ export declare const HostingGitApiFp: (configuration?: Configuration) => {
23229
+ /**
23230
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
23231
+ * @summary List Git installation repositories
23232
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
23233
+ * @param {*} [options] Override http request option.
23234
+ * @throws {RequiredError}
23235
+ */
23236
+ listGitInstallationRepositoriesV1(uuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1GitGitRepositoryResource>>>;
23237
+ /**
23238
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git Repository, Continue with GitHub); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`.
23239
+ * @summary List Git installations
23240
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
23241
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
23242
+ * @param {*} [options] Override http request option.
23243
+ * @throws {RequiredError}
23244
+ */
23245
+ listGitInstallationsV1(provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1GitGitInstallationResource>>>;
23246
+ };
23247
+ /**
23248
+ * HostingGitApi - factory interface
23249
+ * @export
23250
+ */
23251
+ export declare const HostingGitApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
23252
+ /**
23253
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
23254
+ * @summary List Git installation repositories
23255
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
23256
+ * @param {*} [options] Override http request option.
23257
+ * @throws {RequiredError}
23258
+ */
23259
+ listGitInstallationRepositoriesV1(uuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1GitGitRepositoryResource>>;
23260
+ /**
23261
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git Repository, Continue with GitHub); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`.
23262
+ * @summary List Git installations
23263
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
23264
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
23265
+ * @param {*} [options] Override http request option.
23266
+ * @throws {RequiredError}
23267
+ */
23268
+ listGitInstallationsV1(provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1GitGitInstallationResource>>;
23269
+ };
23270
+ /**
23271
+ * HostingGitApi - object-oriented interface
23272
+ * @export
23273
+ * @class HostingGitApi
23274
+ * @extends {BaseAPI}
23275
+ */
23276
+ export declare class HostingGitApi extends BaseAPI {
23277
+ /**
23278
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
23279
+ * @summary List Git installation repositories
23280
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
23281
+ * @param {*} [options] Override http request option.
23282
+ * @throws {RequiredError}
23283
+ * @memberof HostingGitApi
23284
+ */
23285
+ listGitInstallationRepositoriesV1(uuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1GitGitRepositoryResource[], any, {}, any>>;
23286
+ /**
23287
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git Repository, Continue with GitHub); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`.
23288
+ * @summary List Git installations
23289
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
23290
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
23291
+ * @param {*} [options] Override http request option.
23292
+ * @throws {RequiredError}
23293
+ * @memberof HostingGitApi
23294
+ */
23295
+ listGitInstallationsV1(provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1GitGitInstallationResource[], any, {}, any>>;
23296
+ }
23297
+ /**
23298
+ * @export
23299
+ */
23300
+ export declare const ListGitInstallationsV1ProviderEnum: {
23301
+ readonly Github: "github";
23302
+ readonly Gitlab: "gitlab";
23303
+ readonly Bitbucket: "bitbucket";
23304
+ };
23305
+ export type ListGitInstallationsV1ProviderEnum = typeof ListGitInstallationsV1ProviderEnum[keyof typeof ListGitInstallationsV1ProviderEnum];
23306
+ /**
23307
+ * @export
23308
+ */
23309
+ export declare const ListGitInstallationsV1StatusEnum: {
23310
+ readonly Pending: "pending";
23311
+ readonly Active: "active";
23312
+ readonly Suspended: "suspended";
23313
+ };
23314
+ export type ListGitInstallationsV1StatusEnum = typeof ListGitInstallationsV1StatusEnum[keyof typeof ListGitInstallationsV1StatusEnum];
23068
23315
  /**
23069
23316
  * HostingNodeJSApi - axios parameter creator
23070
23317
  * @export
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.51.0
6
+ * API Version: 1.52.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -309,6 +309,20 @@ export const HostingV1FilesFilesResourceItemsInnerTypeEnum = {
309
309
  Symlink: 'symlink',
310
310
  Other: 'other'
311
311
  };
312
+ export const HostingV1GitGitInstallationResourceProviderEnum = {
313
+ Github: 'github',
314
+ Gitlab: 'gitlab',
315
+ Bitbucket: 'bitbucket'
316
+ };
317
+ export const HostingV1GitGitInstallationResourceAccountTypeEnum = {
318
+ User: 'User',
319
+ Organization: 'Organization'
320
+ };
321
+ export const HostingV1GitGitInstallationResourceStatusEnum = {
322
+ Pending: 'pending',
323
+ Active: 'active',
324
+ Suspended: 'suspended'
325
+ };
312
326
  export const HostingV1NodeJsBuildOptionsResourceAppTypeEnum = {
313
327
  CreateReactApp: 'create-react-app',
314
328
  Gatsby: 'gatsby',
@@ -14286,6 +14300,199 @@ export const ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
14286
14300
  Symlink: 'symlink',
14287
14301
  Other: 'other'
14288
14302
  };
14303
+ /**
14304
+ * HostingGitApi - axios parameter creator
14305
+ * @export
14306
+ */
14307
+ export const HostingGitApiAxiosParamCreator = function (configuration) {
14308
+ return {
14309
+ /**
14310
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
14311
+ * @summary List Git installation repositories
14312
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
14313
+ * @param {*} [options] Override http request option.
14314
+ * @throws {RequiredError}
14315
+ */
14316
+ listGitInstallationRepositoriesV1: (uuid_1, ...args_1) => __awaiter(this, [uuid_1, ...args_1], void 0, function* (uuid, options = {}) {
14317
+ // verify required parameter 'uuid' is not null or undefined
14318
+ assertParamExists('listGitInstallationRepositoriesV1', 'uuid', uuid);
14319
+ const localVarPath = `/api/hosting/v1/git/installations/{uuid}/repositories`
14320
+ .replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
14321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14322
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14323
+ let baseOptions;
14324
+ if (configuration) {
14325
+ baseOptions = configuration.baseOptions;
14326
+ }
14327
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14328
+ const localVarHeaderParameter = {};
14329
+ const localVarQueryParameter = {};
14330
+ // authentication apiToken required
14331
+ // http bearer authentication required
14332
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14333
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14334
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14335
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14336
+ return {
14337
+ url: toPathString(localVarUrlObj),
14338
+ options: localVarRequestOptions,
14339
+ };
14340
+ }),
14341
+ /**
14342
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git Repository, Continue with GitHub); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`.
14343
+ * @summary List Git installations
14344
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
14345
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
14346
+ * @param {*} [options] Override http request option.
14347
+ * @throws {RequiredError}
14348
+ */
14349
+ listGitInstallationsV1: (provider_1, status_1, ...args_1) => __awaiter(this, [provider_1, status_1, ...args_1], void 0, function* (provider, status, options = {}) {
14350
+ const localVarPath = `/api/hosting/v1/git/installations`;
14351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14352
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14353
+ let baseOptions;
14354
+ if (configuration) {
14355
+ baseOptions = configuration.baseOptions;
14356
+ }
14357
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14358
+ const localVarHeaderParameter = {};
14359
+ const localVarQueryParameter = {};
14360
+ // authentication apiToken required
14361
+ // http bearer authentication required
14362
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
14363
+ if (provider !== undefined) {
14364
+ localVarQueryParameter['provider'] = provider;
14365
+ }
14366
+ if (status !== undefined) {
14367
+ localVarQueryParameter['status'] = status;
14368
+ }
14369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14371
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14372
+ return {
14373
+ url: toPathString(localVarUrlObj),
14374
+ options: localVarRequestOptions,
14375
+ };
14376
+ }),
14377
+ };
14378
+ };
14379
+ /**
14380
+ * HostingGitApi - functional programming interface
14381
+ * @export
14382
+ */
14383
+ export const HostingGitApiFp = function (configuration) {
14384
+ const localVarAxiosParamCreator = HostingGitApiAxiosParamCreator(configuration);
14385
+ return {
14386
+ /**
14387
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
14388
+ * @summary List Git installation repositories
14389
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
14390
+ * @param {*} [options] Override http request option.
14391
+ * @throws {RequiredError}
14392
+ */
14393
+ listGitInstallationRepositoriesV1(uuid, options) {
14394
+ return __awaiter(this, void 0, void 0, function* () {
14395
+ var _a, _b;
14396
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listGitInstallationRepositoriesV1(uuid, options);
14397
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.listGitInstallationRepositoriesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14398
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14399
+ });
14400
+ },
14401
+ /**
14402
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git Repository, Continue with GitHub); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`.
14403
+ * @summary List Git installations
14404
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
14405
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
14406
+ * @param {*} [options] Override http request option.
14407
+ * @throws {RequiredError}
14408
+ */
14409
+ listGitInstallationsV1(provider, status, options) {
14410
+ return __awaiter(this, void 0, void 0, function* () {
14411
+ var _a, _b;
14412
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listGitInstallationsV1(provider, status, options);
14413
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingGitApi.listGitInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
14414
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14415
+ });
14416
+ },
14417
+ };
14418
+ };
14419
+ /**
14420
+ * HostingGitApi - factory interface
14421
+ * @export
14422
+ */
14423
+ export const HostingGitApiFactory = function (configuration, basePath, axios) {
14424
+ const localVarFp = HostingGitApiFp(configuration);
14425
+ return {
14426
+ /**
14427
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
14428
+ * @summary List Git installation repositories
14429
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
14430
+ * @param {*} [options] Override http request option.
14431
+ * @throws {RequiredError}
14432
+ */
14433
+ listGitInstallationRepositoriesV1(uuid, options) {
14434
+ return localVarFp.listGitInstallationRepositoriesV1(uuid, options).then((request) => request(axios, basePath));
14435
+ },
14436
+ /**
14437
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git Repository, Continue with GitHub); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`.
14438
+ * @summary List Git installations
14439
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
14440
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
14441
+ * @param {*} [options] Override http request option.
14442
+ * @throws {RequiredError}
14443
+ */
14444
+ listGitInstallationsV1(provider, status, options) {
14445
+ return localVarFp.listGitInstallationsV1(provider, status, options).then((request) => request(axios, basePath));
14446
+ },
14447
+ };
14448
+ };
14449
+ /**
14450
+ * HostingGitApi - object-oriented interface
14451
+ * @export
14452
+ * @class HostingGitApi
14453
+ * @extends {BaseAPI}
14454
+ */
14455
+ export class HostingGitApi extends BaseAPI {
14456
+ /**
14457
+ * Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and `default_branch` identify a repository and a branch to deploy. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
14458
+ * @summary List Git installation repositories
14459
+ * @param {string} uuid Git installation UUID from the List Git installations endpoint
14460
+ * @param {*} [options] Override http request option.
14461
+ * @throws {RequiredError}
14462
+ * @memberof HostingGitApi
14463
+ */
14464
+ listGitInstallationRepositoriesV1(uuid, options) {
14465
+ return HostingGitApiFp(this.configuration).listGitInstallationRepositoriesV1(uuid, options).then((request) => request(this.axios, this.basePath));
14466
+ }
14467
+ /**
14468
+ * Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git, Connect GitHub; or Add Website, Node.js Web App, Import Git Repository, Continue with GitHub); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`.
14469
+ * @summary List Git installations
14470
+ * @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
14471
+ * @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
14472
+ * @param {*} [options] Override http request option.
14473
+ * @throws {RequiredError}
14474
+ * @memberof HostingGitApi
14475
+ */
14476
+ listGitInstallationsV1(provider, status, options) {
14477
+ return HostingGitApiFp(this.configuration).listGitInstallationsV1(provider, status, options).then((request) => request(this.axios, this.basePath));
14478
+ }
14479
+ }
14480
+ /**
14481
+ * @export
14482
+ */
14483
+ export const ListGitInstallationsV1ProviderEnum = {
14484
+ Github: 'github',
14485
+ Gitlab: 'gitlab',
14486
+ Bitbucket: 'bitbucket'
14487
+ };
14488
+ /**
14489
+ * @export
14490
+ */
14491
+ export const ListGitInstallationsV1StatusEnum = {
14492
+ Pending: 'pending',
14493
+ Active: 'active',
14494
+ Suspended: 'suspended'
14495
+ };
14289
14496
  /**
14290
14497
  * HostingNodeJSApi - axios parameter creator
14291
14498
  * @export
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.51.0
4
+ * API Version: 1.52.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.51.0
6
+ * API Version: 1.52.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.51.0
4
+ * API Version: 1.52.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.51.0
6
+ * API Version: 1.52.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.51.0
4
+ * API Version: 1.52.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.51.0
6
+ * API Version: 1.52.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.51.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.52.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.51.0
4
+ * API Version: 1.52.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.51.0
6
+ * API Version: 1.52.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api