hostinger-api-sdk 1.30.2 → 1.30.4
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/README.md +2 -2
- package/api.ts +21 -19
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +19 -14
- package/dist/api.js +21 -14
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +19 -14
- package/dist/esm/api.js +17 -10
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingFilesApi.md +3 -4
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter.md +0 -18
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## hostinger-api-sdk@1.30.
|
|
1
|
+
## hostinger-api-sdk@1.30.4
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install hostinger-api-sdk@1.30.
|
|
8
|
+
npm install hostinger-api-sdk@1.30.4 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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
|
|
@@ -4313,12 +4313,6 @@ export interface HostingListOrdersV1200Response {
|
|
|
4313
4313
|
*/
|
|
4314
4314
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
4315
4315
|
}
|
|
4316
|
-
/**
|
|
4317
|
-
* @type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter
|
|
4318
|
-
* @export
|
|
4319
|
-
*/
|
|
4320
|
-
export type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter = Array<string> | string;
|
|
4321
|
-
|
|
4322
4316
|
/**
|
|
4323
4317
|
*
|
|
4324
4318
|
* @export
|
|
@@ -22773,11 +22767,11 @@ export const HostingFilesApiAxiosParamCreator = function (configuration?: Config
|
|
|
22773
22767
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
22774
22768
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
22775
22769
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
22776
|
-
* @param {
|
|
22770
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
22777
22771
|
* @param {*} [options] Override http request option.
|
|
22778
22772
|
* @throws {RequiredError}
|
|
22779
22773
|
*/
|
|
22780
|
-
listWebsiteFilesAndDirectoriesV1: async (username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
22774
|
+
listWebsiteFilesAndDirectoriesV1: async (username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22781
22775
|
// verify required parameter 'username' is not null or undefined
|
|
22782
22776
|
assertParamExists('listWebsiteFilesAndDirectoriesV1', 'username', username)
|
|
22783
22777
|
// verify required parameter 'domain' is not null or undefined
|
|
@@ -22816,10 +22810,8 @@ export const HostingFilesApiAxiosParamCreator = function (configuration?: Config
|
|
|
22816
22810
|
localVarQueryParameter['offset'] = offset;
|
|
22817
22811
|
}
|
|
22818
22812
|
|
|
22819
|
-
if (fileTypes
|
|
22820
|
-
|
|
22821
|
-
localVarQueryParameter[key] = value;
|
|
22822
|
-
}
|
|
22813
|
+
if (fileTypes) {
|
|
22814
|
+
localVarQueryParameter['file_types'] = fileTypes.join(COLLECTION_FORMATS.csv);
|
|
22823
22815
|
}
|
|
22824
22816
|
|
|
22825
22817
|
|
|
@@ -22868,11 +22860,11 @@ export const HostingFilesApiFp = function(configuration?: Configuration) {
|
|
|
22868
22860
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
22869
22861
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
22870
22862
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
22871
|
-
* @param {
|
|
22863
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
22872
22864
|
* @param {*} [options] Override http request option.
|
|
22873
22865
|
* @throws {RequiredError}
|
|
22874
22866
|
*/
|
|
22875
|
-
async listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
22867
|
+
async listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1FilesFilesResource>> {
|
|
22876
22868
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options);
|
|
22877
22869
|
const localVarOperationServerBasePath = operationServerMap['HostingFilesApi.listWebsiteFilesAndDirectoriesV1']?.[0]?.url;
|
|
22878
22870
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -22910,11 +22902,11 @@ export const HostingFilesApiFactory = function (configuration?: Configuration, b
|
|
|
22910
22902
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
22911
22903
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
22912
22904
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
22913
|
-
* @param {
|
|
22905
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
22914
22906
|
* @param {*} [options] Override http request option.
|
|
22915
22907
|
* @throws {RequiredError}
|
|
22916
22908
|
*/
|
|
22917
|
-
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
22909
|
+
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1FilesFilesResource> {
|
|
22918
22910
|
return localVarFp.listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(axios, basePath));
|
|
22919
22911
|
},
|
|
22920
22912
|
};
|
|
@@ -22952,16 +22944,26 @@ export class HostingFilesApi extends BaseAPI {
|
|
|
22952
22944
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
22953
22945
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
22954
22946
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
22955
|
-
* @param {
|
|
22947
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
22956
22948
|
* @param {*} [options] Override http request option.
|
|
22957
22949
|
* @throws {RequiredError}
|
|
22958
22950
|
* @memberof HostingFilesApi
|
|
22959
22951
|
*/
|
|
22960
|
-
public listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
22952
|
+
public listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig) {
|
|
22961
22953
|
return HostingFilesApiFp(this.configuration).listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(this.axios, this.basePath));
|
|
22962
22954
|
}
|
|
22963
22955
|
}
|
|
22964
22956
|
|
|
22957
|
+
/**
|
|
22958
|
+
* @export
|
|
22959
|
+
*/
|
|
22960
|
+
export const ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
|
|
22961
|
+
File: 'file',
|
|
22962
|
+
Directory: 'directory',
|
|
22963
|
+
Symlink: 'symlink',
|
|
22964
|
+
Other: 'other'
|
|
22965
|
+
} as const;
|
|
22966
|
+
export type ListWebsiteFilesAndDirectoriesV1FileTypesEnum = typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum[keyof typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum];
|
|
22965
22967
|
|
|
22966
22968
|
|
|
22967
22969
|
/**
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.30.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.30.4",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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
|
|
@@ -4214,11 +4214,6 @@ export interface HostingListOrdersV1200Response {
|
|
|
4214
4214
|
*/
|
|
4215
4215
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
4216
4216
|
}
|
|
4217
|
-
/**
|
|
4218
|
-
* @type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter
|
|
4219
|
-
* @export
|
|
4220
|
-
*/
|
|
4221
|
-
export type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter = Array<string> | string;
|
|
4222
4217
|
/**
|
|
4223
4218
|
*
|
|
4224
4219
|
* @export
|
|
@@ -16906,11 +16901,11 @@ export declare const HostingFilesApiAxiosParamCreator: (configuration?: Configur
|
|
|
16906
16901
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
16907
16902
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
16908
16903
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
16909
|
-
* @param {
|
|
16904
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
16910
16905
|
* @param {*} [options] Override http request option.
|
|
16911
16906
|
* @throws {RequiredError}
|
|
16912
16907
|
*/
|
|
16913
|
-
listWebsiteFilesAndDirectoriesV1: (username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
16908
|
+
listWebsiteFilesAndDirectoriesV1: (username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16914
16909
|
};
|
|
16915
16910
|
/**
|
|
16916
16911
|
* HostingFilesApi - functional programming interface
|
|
@@ -16938,11 +16933,11 @@ export declare const HostingFilesApiFp: (configuration?: Configuration) => {
|
|
|
16938
16933
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
16939
16934
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
16940
16935
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
16941
|
-
* @param {
|
|
16936
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
16942
16937
|
* @param {*} [options] Override http request option.
|
|
16943
16938
|
* @throws {RequiredError}
|
|
16944
16939
|
*/
|
|
16945
|
-
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
16940
|
+
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1FilesFilesResource>>;
|
|
16946
16941
|
};
|
|
16947
16942
|
/**
|
|
16948
16943
|
* HostingFilesApi - factory interface
|
|
@@ -16970,11 +16965,11 @@ export declare const HostingFilesApiFactory: (configuration?: Configuration, bas
|
|
|
16970
16965
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
16971
16966
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
16972
16967
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
16973
|
-
* @param {
|
|
16968
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
16974
16969
|
* @param {*} [options] Override http request option.
|
|
16975
16970
|
* @throws {RequiredError}
|
|
16976
16971
|
*/
|
|
16977
|
-
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
16972
|
+
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1FilesFilesResource>;
|
|
16978
16973
|
};
|
|
16979
16974
|
/**
|
|
16980
16975
|
* HostingFilesApi - object-oriented interface
|
|
@@ -17005,13 +17000,23 @@ export declare class HostingFilesApi extends BaseAPI {
|
|
|
17005
17000
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
17006
17001
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
17007
17002
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
17008
|
-
* @param {
|
|
17003
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
17009
17004
|
* @param {*} [options] Override http request option.
|
|
17010
17005
|
* @throws {RequiredError}
|
|
17011
17006
|
* @memberof HostingFilesApi
|
|
17012
17007
|
*/
|
|
17013
|
-
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
17008
|
+
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1FilesFilesResource, any, {}, any>>;
|
|
17014
17009
|
}
|
|
17010
|
+
/**
|
|
17011
|
+
* @export
|
|
17012
|
+
*/
|
|
17013
|
+
export declare const ListWebsiteFilesAndDirectoriesV1FileTypesEnum: {
|
|
17014
|
+
readonly File: "file";
|
|
17015
|
+
readonly Directory: "directory";
|
|
17016
|
+
readonly Symlink: "symlink";
|
|
17017
|
+
readonly Other: "other";
|
|
17018
|
+
};
|
|
17019
|
+
export type ListWebsiteFilesAndDirectoriesV1FileTypesEnum = typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum[keyof typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum];
|
|
17015
17020
|
/**
|
|
17016
17021
|
* HostingNodeJSApi - axios parameter creator
|
|
17017
17022
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.32.
|
|
7
|
+
* API Version: 1.32.3
|
|
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
|
|
@@ -23,11 +23,11 @@ exports.MailV1SchemaCreateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaC
|
|
|
23
23
|
exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsUpdateRequestSubscriptionStatusEnum = exports.ReachV1ContactsTagsTagResourceTypeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsSegmentsProfileUpdateRequestLogicEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsProfileStoreRequestLogicEnum = exports.ReachV1ContactsProfileContactUpdateResourceSubscriptionStatusEnum = exports.ReachV1ContactsProfileContactResourceSourceEnum = exports.ReachV1ContactsProfileContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsFieldsStoreRequestTypeEnum = exports.ReachV1ContactsFieldsContactFieldValueResourceTypeEnum = exports.ReachV1ContactsFieldsContactFieldResourceTypeEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactDetailsResourceSourceEnum = exports.ReachV1ContactsContactDetailsResourceSubscriptionStatusEnum = exports.MailV1WebhooksWebhookSecretResourceStatusEnum = exports.MailV1WebhooksWebhookSecretResourceEventsEnum = exports.MailV1WebhooksWebhookResourceStatusEnum = exports.MailV1WebhooksWebhookResourceEventsEnum = exports.MailV1WebhooksWebhookCreatedResourceStatusEnum = exports.MailV1WebhooksWebhookCreatedResourceEventsEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaStatusEnum = exports.MailV1SchemaUpdateWebhookRequestSchemaEventsEnum = void 0;
|
|
24
24
|
exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.AgencyHostingWordPressApi = exports.AgencyHostingWordPressApiFactory = exports.AgencyHostingWordPressApiFp = exports.AgencyHostingWordPressApiAxiosParamCreator = exports.AgencyHostingWebsitesApi = exports.AgencyHostingWebsitesApiFactory = exports.AgencyHostingWebsitesApiFp = exports.AgencyHostingWebsitesApiAxiosParamCreator = exports.AgencyHostingWebsiteSetupsApi = exports.AgencyHostingWebsiteSetupsApiFactory = exports.AgencyHostingWebsiteSetupsApiFp = exports.AgencyHostingWebsiteSetupsApiAxiosParamCreator = exports.AgencyHostingOrdersApi = exports.AgencyHostingOrdersApiFactory = exports.AgencyHostingOrdersApiFp = exports.AgencyHostingOrdersApiAxiosParamCreator = exports.AgencyHostingFilesApi = exports.AgencyHostingFilesApiFactory = exports.AgencyHostingFilesApiFp = exports.AgencyHostingFilesApiAxiosParamCreator = exports.AgencyHostingDomainsApi = exports.AgencyHostingDomainsApiFactory = exports.AgencyHostingDomainsApiFp = exports.AgencyHostingDomainsApiAxiosParamCreator = exports.AgencyHostingDatacentersApi = exports.AgencyHostingDatacentersApiFactory = exports.AgencyHostingDatacentersApiFp = exports.AgencyHostingDatacentersApiAxiosParamCreator = exports.AgencyHostingDatabasesApi = exports.AgencyHostingDatabasesApiFactory = exports.AgencyHostingDatabasesApiFp = exports.AgencyHostingDatabasesApiAxiosParamCreator = exports.AgencyHostingCronJobsApi = exports.AgencyHostingCronJobsApiFactory = exports.AgencyHostingCronJobsApiFp = exports.AgencyHostingCronJobsApiAxiosParamCreator = exports.AgencyHostingCacheApi = exports.AgencyHostingCacheApiFactory = exports.AgencyHostingCacheApiFp = exports.AgencyHostingCacheApiAxiosParamCreator = void 0;
|
|
25
25
|
exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsTransferApi = exports.DomainsTransferApiFactory = exports.DomainsTransferApiFp = exports.DomainsTransferApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsMoveApi = exports.DomainsMoveApiFactory = exports.DomainsMoveApiFp = exports.DomainsMoveApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = void 0;
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = void 0;
|
|
26
|
+
exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = exports.HostingFilesApi = exports.HostingFilesApiFactory = exports.HostingFilesApiFp = exports.HostingFilesApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = void 0;
|
|
27
|
+
exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = void 0;
|
|
28
|
+
exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = void 0;
|
|
29
|
+
exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = void 0;
|
|
30
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = void 0;
|
|
31
31
|
const axios_1 = require("axios");
|
|
32
32
|
// Some imports not used depending on template conditions
|
|
33
33
|
// @ts-ignore
|
|
@@ -10964,7 +10964,7 @@ const HostingFilesApiAxiosParamCreator = function (configuration) {
|
|
|
10964
10964
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10965
10965
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10966
10966
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10967
|
-
* @param {
|
|
10967
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
10968
10968
|
* @param {*} [options] Override http request option.
|
|
10969
10969
|
* @throws {RequiredError}
|
|
10970
10970
|
*/
|
|
@@ -11000,10 +11000,8 @@ const HostingFilesApiAxiosParamCreator = function (configuration) {
|
|
|
11000
11000
|
if (offset !== undefined) {
|
|
11001
11001
|
localVarQueryParameter['offset'] = offset;
|
|
11002
11002
|
}
|
|
11003
|
-
if (fileTypes
|
|
11004
|
-
|
|
11005
|
-
localVarQueryParameter[key] = value;
|
|
11006
|
-
}
|
|
11003
|
+
if (fileTypes) {
|
|
11004
|
+
localVarQueryParameter['file_types'] = fileTypes.join(base_1.COLLECTION_FORMATS.csv);
|
|
11007
11005
|
}
|
|
11008
11006
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11009
11007
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -11051,7 +11049,7 @@ const HostingFilesApiFp = function (configuration) {
|
|
|
11051
11049
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
11052
11050
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
11053
11051
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
11054
|
-
* @param {
|
|
11052
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
11055
11053
|
* @param {*} [options] Override http request option.
|
|
11056
11054
|
* @throws {RequiredError}
|
|
11057
11055
|
*/
|
|
@@ -11096,7 +11094,7 @@ const HostingFilesApiFactory = function (configuration, basePath, axios) {
|
|
|
11096
11094
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
11097
11095
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
11098
11096
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
11099
|
-
* @param {
|
|
11097
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
11100
11098
|
* @param {*} [options] Override http request option.
|
|
11101
11099
|
* @throws {RequiredError}
|
|
11102
11100
|
*/
|
|
@@ -11137,7 +11135,7 @@ class HostingFilesApi extends base_1.BaseAPI {
|
|
|
11137
11135
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
11138
11136
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
11139
11137
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
11140
|
-
* @param {
|
|
11138
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
11141
11139
|
* @param {*} [options] Override http request option.
|
|
11142
11140
|
* @throws {RequiredError}
|
|
11143
11141
|
* @memberof HostingFilesApi
|
|
@@ -11147,6 +11145,15 @@ class HostingFilesApi extends base_1.BaseAPI {
|
|
|
11147
11145
|
}
|
|
11148
11146
|
}
|
|
11149
11147
|
exports.HostingFilesApi = HostingFilesApi;
|
|
11148
|
+
/**
|
|
11149
|
+
* @export
|
|
11150
|
+
*/
|
|
11151
|
+
exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
|
|
11152
|
+
File: 'file',
|
|
11153
|
+
Directory: 'directory',
|
|
11154
|
+
Symlink: 'symlink',
|
|
11155
|
+
Other: 'other'
|
|
11156
|
+
};
|
|
11150
11157
|
/**
|
|
11151
11158
|
* HostingNodeJSApi - axios parameter creator
|
|
11152
11159
|
* @export
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.32.
|
|
7
|
+
* API Version: 1.32.3
|
|
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.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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.32.
|
|
7
|
+
* API Version: 1.32.3
|
|
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/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.32.
|
|
7
|
+
* API Version: 1.32.3
|
|
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.30.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.4" }, (_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.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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
|
|
@@ -4214,11 +4214,6 @@ export interface HostingListOrdersV1200Response {
|
|
|
4214
4214
|
*/
|
|
4215
4215
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
4216
4216
|
}
|
|
4217
|
-
/**
|
|
4218
|
-
* @type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter
|
|
4219
|
-
* @export
|
|
4220
|
-
*/
|
|
4221
|
-
export type HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter = Array<string> | string;
|
|
4222
4217
|
/**
|
|
4223
4218
|
*
|
|
4224
4219
|
* @export
|
|
@@ -16906,11 +16901,11 @@ export declare const HostingFilesApiAxiosParamCreator: (configuration?: Configur
|
|
|
16906
16901
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
16907
16902
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
16908
16903
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
16909
|
-
* @param {
|
|
16904
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
16910
16905
|
* @param {*} [options] Override http request option.
|
|
16911
16906
|
* @throws {RequiredError}
|
|
16912
16907
|
*/
|
|
16913
|
-
listWebsiteFilesAndDirectoriesV1: (username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
16908
|
+
listWebsiteFilesAndDirectoriesV1: (username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
16914
16909
|
};
|
|
16915
16910
|
/**
|
|
16916
16911
|
* HostingFilesApi - functional programming interface
|
|
@@ -16938,11 +16933,11 @@ export declare const HostingFilesApiFp: (configuration?: Configuration) => {
|
|
|
16938
16933
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
16939
16934
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
16940
16935
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
16941
|
-
* @param {
|
|
16936
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
16942
16937
|
* @param {*} [options] Override http request option.
|
|
16943
16938
|
* @throws {RequiredError}
|
|
16944
16939
|
*/
|
|
16945
|
-
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
16940
|
+
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1FilesFilesResource>>;
|
|
16946
16941
|
};
|
|
16947
16942
|
/**
|
|
16948
16943
|
* HostingFilesApi - factory interface
|
|
@@ -16970,11 +16965,11 @@ export declare const HostingFilesApiFactory: (configuration?: Configuration, bas
|
|
|
16970
16965
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
16971
16966
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
16972
16967
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
16973
|
-
* @param {
|
|
16968
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
16974
16969
|
* @param {*} [options] Override http request option.
|
|
16975
16970
|
* @throws {RequiredError}
|
|
16976
16971
|
*/
|
|
16977
|
-
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
16972
|
+
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1FilesFilesResource>;
|
|
16978
16973
|
};
|
|
16979
16974
|
/**
|
|
16980
16975
|
* HostingFilesApi - object-oriented interface
|
|
@@ -17005,13 +17000,23 @@ export declare class HostingFilesApi extends BaseAPI {
|
|
|
17005
17000
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
17006
17001
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
17007
17002
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
17008
|
-
* @param {
|
|
17003
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
17009
17004
|
* @param {*} [options] Override http request option.
|
|
17010
17005
|
* @throws {RequiredError}
|
|
17011
17006
|
* @memberof HostingFilesApi
|
|
17012
17007
|
*/
|
|
17013
|
-
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?:
|
|
17008
|
+
listWebsiteFilesAndDirectoriesV1(username: string, domain: string, directory?: string, maxDepth?: number | null, maxItems?: number | null, offset?: number | null, fileTypes?: Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1FilesFilesResource, any, {}, any>>;
|
|
17014
17009
|
}
|
|
17010
|
+
/**
|
|
17011
|
+
* @export
|
|
17012
|
+
*/
|
|
17013
|
+
export declare const ListWebsiteFilesAndDirectoriesV1FileTypesEnum: {
|
|
17014
|
+
readonly File: "file";
|
|
17015
|
+
readonly Directory: "directory";
|
|
17016
|
+
readonly Symlink: "symlink";
|
|
17017
|
+
readonly Other: "other";
|
|
17018
|
+
};
|
|
17019
|
+
export type ListWebsiteFilesAndDirectoriesV1FileTypesEnum = typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum[keyof typeof ListWebsiteFilesAndDirectoriesV1FileTypesEnum];
|
|
17015
17020
|
/**
|
|
17016
17021
|
* HostingNodeJSApi - axios parameter creator
|
|
17017
17022
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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
|
|
@@ -22,7 +22,7 @@ import globalAxios from 'axios';
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
24
24
|
// @ts-ignore
|
|
25
|
-
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
25
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from './base';
|
|
26
26
|
export const AgencyHostingV1SetupsCreateSetupRequestTypeEnum = {
|
|
27
27
|
Horizons: 'horizons',
|
|
28
28
|
NodeStatic: 'node-static'
|
|
@@ -10813,7 +10813,7 @@ export const HostingFilesApiAxiosParamCreator = function (configuration) {
|
|
|
10813
10813
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10814
10814
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10815
10815
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10816
|
-
* @param {
|
|
10816
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
10817
10817
|
* @param {*} [options] Override http request option.
|
|
10818
10818
|
* @throws {RequiredError}
|
|
10819
10819
|
*/
|
|
@@ -10849,10 +10849,8 @@ export const HostingFilesApiAxiosParamCreator = function (configuration) {
|
|
|
10849
10849
|
if (offset !== undefined) {
|
|
10850
10850
|
localVarQueryParameter['offset'] = offset;
|
|
10851
10851
|
}
|
|
10852
|
-
if (fileTypes
|
|
10853
|
-
|
|
10854
|
-
localVarQueryParameter[key] = value;
|
|
10855
|
-
}
|
|
10852
|
+
if (fileTypes) {
|
|
10853
|
+
localVarQueryParameter['file_types'] = fileTypes.join(COLLECTION_FORMATS.csv);
|
|
10856
10854
|
}
|
|
10857
10855
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10858
10856
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -10899,7 +10897,7 @@ export const HostingFilesApiFp = function (configuration) {
|
|
|
10899
10897
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10900
10898
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10901
10899
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10902
|
-
* @param {
|
|
10900
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
10903
10901
|
* @param {*} [options] Override http request option.
|
|
10904
10902
|
* @throws {RequiredError}
|
|
10905
10903
|
*/
|
|
@@ -10943,7 +10941,7 @@ export const HostingFilesApiFactory = function (configuration, basePath, axios)
|
|
|
10943
10941
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10944
10942
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10945
10943
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10946
|
-
* @param {
|
|
10944
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
10947
10945
|
* @param {*} [options] Override http request option.
|
|
10948
10946
|
* @throws {RequiredError}
|
|
10949
10947
|
*/
|
|
@@ -10983,7 +10981,7 @@ export class HostingFilesApi extends BaseAPI {
|
|
|
10983
10981
|
* @param {number | null} [maxDepth] How many directory levels deep to recurse.
|
|
10984
10982
|
* @param {number | null} [maxItems] Max number of entries to return in this page.
|
|
10985
10983
|
* @param {number | null} [offset] Number of entries to skip. Page with offset + item count until reaching total_items.
|
|
10986
|
-
* @param {
|
|
10984
|
+
* @param {Array<ListWebsiteFilesAndDirectoriesV1FileTypesEnum>} [fileTypes] Filter by entry type, e.g. file,directory. Omit for all types.
|
|
10987
10985
|
* @param {*} [options] Override http request option.
|
|
10988
10986
|
* @throws {RequiredError}
|
|
10989
10987
|
* @memberof HostingFilesApi
|
|
@@ -10992,6 +10990,15 @@ export class HostingFilesApi extends BaseAPI {
|
|
|
10992
10990
|
return HostingFilesApiFp(this.configuration).listWebsiteFilesAndDirectoriesV1(username, domain, directory, maxDepth, maxItems, offset, fileTypes, options).then((request) => request(this.axios, this.basePath));
|
|
10993
10991
|
}
|
|
10994
10992
|
}
|
|
10993
|
+
/**
|
|
10994
|
+
* @export
|
|
10995
|
+
*/
|
|
10996
|
+
export const ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
|
|
10997
|
+
File: 'file',
|
|
10998
|
+
Directory: 'directory',
|
|
10999
|
+
Symlink: 'symlink',
|
|
11000
|
+
Other: 'other'
|
|
11001
|
+
};
|
|
10995
11002
|
/**
|
|
10996
11003
|
* HostingNodeJSApi - axios parameter creator
|
|
10997
11004
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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.30.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.4" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.3
|
|
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/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.32.
|
|
7
|
+
* API Version: 1.32.3
|
|
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/docs/HostingFilesApi.md
CHANGED
|
@@ -83,8 +83,7 @@ List files and directories under a website\'s document root. Use `directory` to
|
|
|
83
83
|
```typescript
|
|
84
84
|
import {
|
|
85
85
|
HostingFilesApi,
|
|
86
|
-
Configuration
|
|
87
|
-
HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter
|
|
86
|
+
Configuration
|
|
88
87
|
} from 'hostinger-api-sdk';
|
|
89
88
|
|
|
90
89
|
const configuration = new Configuration();
|
|
@@ -96,7 +95,7 @@ let directory: string; //Directory path to check (optional) (default to '')
|
|
|
96
95
|
let maxDepth: number; //How many directory levels deep to recurse. (optional) (default to 5)
|
|
97
96
|
let maxItems: number; //Max number of entries to return in this page. (optional) (default to 1000)
|
|
98
97
|
let offset: number; //Number of entries to skip. Page with offset + item count until reaching total_items. (optional) (default to 0)
|
|
99
|
-
let fileTypes:
|
|
98
|
+
let fileTypes: Array<'file' | 'directory' | 'symlink' | 'other'>; //Filter by entry type, e.g. file,directory. Omit for all types. (optional) (default to undefined)
|
|
100
99
|
|
|
101
100
|
const { status, data } = await apiInstance.listWebsiteFilesAndDirectoriesV1(
|
|
102
101
|
username,
|
|
@@ -119,7 +118,7 @@ const { status, data } = await apiInstance.listWebsiteFilesAndDirectoriesV1(
|
|
|
119
118
|
| **maxDepth** | [**number**] | How many directory levels deep to recurse. | (optional) defaults to 5|
|
|
120
119
|
| **maxItems** | [**number**] | Max number of entries to return in this page. | (optional) defaults to 1000|
|
|
121
120
|
| **offset** | [**number**] | Number of entries to skip. Page with offset + item count until reaching total_items. | (optional) defaults to 0|
|
|
122
|
-
| **fileTypes** | **
|
|
121
|
+
| **fileTypes** | **Array<'file' | 'directory' | 'symlink' | 'other'>** | Filter by entry type, e.g. file,directory. Omit for all types. | (optional) defaults to undefined|
|
|
123
122
|
|
|
124
123
|
|
|
125
124
|
### Return type
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.3
|
|
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
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
import { HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter } from 'hostinger-api-sdk';
|
|
13
|
-
|
|
14
|
-
const instance: HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter = {
|
|
15
|
-
};
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|