@newfold/huapi-js 1.2.6 → 1.2.8-alpha.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/handlers/sites/data/sites.d.ts +19 -0
- package/dist/handlers/sites/data/sites.js +178 -0
- package/dist/handlers/sites/getHostingSitesHandler.d.ts +9 -0
- package/dist/handlers/sites/getHostingSitesHandler.js +17 -0
- package/{src/msw/handlers/index.js → dist/handlers.msw.d.ts} +1 -1
- package/dist/handlers.msw.js +21 -0
- package/dist/index.d.ts +114 -0
- package/dist/index.js +146 -0
- package/dist/index.msw.d.ts +42 -0
- package/dist/index.msw.js +44 -0
- package/dist/models/getAddonsCodeguardWebsiteListV1200.d.ts +11 -0
- package/dist/models/getAddonsCodeguardWebsiteListV1200.js +2 -0
- package/dist/models/getAddonsCodeguardWebsiteListV1200WebsiteListItem.d.ts +11 -0
- package/dist/models/getAddonsCodeguardWebsiteListV1200WebsiteListItem.js +2 -0
- package/dist/models/getAddonsCodeguardWebsiteListV1200WebsiteListItemWebsite.d.ts +10 -0
- package/dist/models/getAddonsCodeguardWebsiteListV1200WebsiteListItemWebsite.js +9 -0
- package/dist/models/getAddonsCodeguardWebsitesV1200.d.ts +9 -0
- package/dist/models/getAddonsCodeguardWebsitesV1200.js +2 -0
- package/dist/models/getAddonsCodeguardWebsitesV1200WebsiteListItem.d.ts +9 -0
- package/dist/models/getAddonsCodeguardWebsitesV1200WebsiteListItem.js +2 -0
- package/dist/models/getAddonsCodeguardWebsitesV1200WebsiteListItemWebsite.d.ts +9 -0
- package/dist/models/getAddonsCodeguardWebsitesV1200WebsiteListItemWebsite.js +7 -0
- package/dist/models/getHostingFtpV1200.d.ts +11 -0
- package/dist/models/getHostingFtpV1200.js +2 -0
- package/dist/models/getHostingFtpV1200FtpAccountItem.d.ts +11 -0
- package/dist/models/getHostingFtpV1200FtpAccountItem.js +9 -0
- package/dist/models/getHostingInfoV1200.d.ts +8 -0
- package/dist/models/getHostingInfoV1200.js +7 -0
- package/dist/models/getHostingSitesV1200.d.ts +9 -0
- package/dist/models/getHostingSitesV1200.js +2 -0
- package/dist/models/getHostingSitesV1200RowsItem.d.ts +10 -0
- package/dist/models/getHostingSitesV1200RowsItem.js +7 -0
- package/dist/models/getSitesInfoV1200.d.ts +18 -0
- package/dist/models/getSitesInfoV1200.js +9 -0
- package/dist/models/getSitesSsoV1200.d.ts +8 -0
- package/dist/models/getSitesSsoV1200.js +7 -0
- package/dist/models/hostingInfo200.d.ts +10 -0
- package/dist/models/hostingInfo200.js +9 -0
- package/dist/models/hostingSites200.d.ts +11 -0
- package/dist/models/hostingSites200.js +2 -0
- package/dist/models/hostingSites200RowsItem.d.ts +12 -0
- package/dist/models/hostingSites200RowsItem.js +9 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +38 -0
- package/dist/models/postHostingFtpV1200.d.ts +11 -0
- package/dist/models/postHostingFtpV1200.js +9 -0
- package/dist/models/postHostingFtpV1Body.d.ts +11 -0
- package/dist/models/postHostingFtpV1Body.js +9 -0
- package/dist/models/site.d.ts +18 -0
- package/dist/models/site.js +9 -0
- package/dist/models/siteList.d.ts +23 -0
- package/dist/models/siteList.js +2 -0
- package/dist/models/siteSso.d.ts +14 -0
- package/dist/models/siteSso.js +9 -0
- package/dist/models/sitesSso200.d.ts +10 -0
- package/dist/models/sitesSso200.js +9 -0
- package/package.json +11 -6
- package/openapi.json +0 -209
- package/orval.config.js +0 -22
- package/prettier.config.js +0 -4
- package/src/msw/handlers/sites/data/sites.js +0 -172
- package/src/msw/handlers/sites/getHostingSitesHandler.js +0 -24
- package/src/msw/sites.js +0 -153
- package/tsconfig.json +0 -101
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.7.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
5
|
+
*/
|
|
6
|
+
import type { GetAddonsCodeguardWebsitesV1200WebsiteListItem } from './getAddonsCodeguardWebsitesV1200WebsiteListItem';
|
|
7
|
+
export declare type GetAddonsCodeguardWebsitesV1200 = {
|
|
8
|
+
website_list?: GetAddonsCodeguardWebsitesV1200WebsiteListItem[];
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.7.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
5
|
+
*/
|
|
6
|
+
import type { GetAddonsCodeguardWebsitesV1200WebsiteListItemWebsite } from './getAddonsCodeguardWebsitesV1200WebsiteListItemWebsite';
|
|
7
|
+
export declare type GetAddonsCodeguardWebsitesV1200WebsiteListItem = {
|
|
8
|
+
website?: GetAddonsCodeguardWebsitesV1200WebsiteListItemWebsite;
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.7.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
5
|
+
* Hosting UAPI
|
|
6
|
+
* OpenAPI spec version: 0.0.1
|
|
7
|
+
*/
|
|
8
|
+
import type { GetHostingFtpV1200FtpAccountItem } from './getHostingFtpV1200FtpAccountItem';
|
|
9
|
+
export declare type GetHostingFtpV1200 = {
|
|
10
|
+
ftp_account?: GetHostingFtpV1200FtpAccountItem[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.7.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
5
|
+
* Hosting UAPI
|
|
6
|
+
* OpenAPI spec version: 0.0.1
|
|
7
|
+
*/
|
|
8
|
+
export declare type GetSitesInfoV1200 = {
|
|
9
|
+
docroot: string;
|
|
10
|
+
uuid: string;
|
|
11
|
+
date_added: string;
|
|
12
|
+
date_modified: string;
|
|
13
|
+
type: string;
|
|
14
|
+
subtype: string;
|
|
15
|
+
status: string;
|
|
16
|
+
url: string;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.7.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
5
|
+
* Hosting UAPI
|
|
6
|
+
* OpenAPI spec version: 0.0.1
|
|
7
|
+
*/
|
|
8
|
+
import type { HostingSites200RowsItem } from './hostingSites200RowsItem';
|
|
9
|
+
export declare type HostingSites200 = {
|
|
10
|
+
rows?: HostingSites200RowsItem[];
|
|
11
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './site';
|
|
2
|
+
export * from './siteList';
|
|
3
|
+
export * from './siteSso';
|
|
4
|
+
export * from './getAddonsCodeguardWebsitesV1200WebsiteListItem';
|
|
5
|
+
export * from './getAddonsCodeguardWebsitesV1200WebsiteListItemWebsite';
|
|
6
|
+
export * from './getAddonsCodeguardWebsitesV1200';
|
|
7
|
+
export * from './getHostingFtpV1200FtpAccountItem';
|
|
8
|
+
export * from './postHostingFtpV1Body';
|
|
9
|
+
export * from './getHostingFtpV1200';
|
|
10
|
+
export * from './getHostingInfoV1200';
|
|
11
|
+
export * from './getSitesSsoV1200';
|
|
12
|
+
export * from './postHostingFtpV1200';
|
|
13
|
+
export * from './getHostingSitesV1200RowsItem';
|
|
14
|
+
export * from './getHostingSitesV1200';
|
|
15
|
+
export * from './getAddonsCodeguardWebsiteListV1200WebsiteListItem';
|
|
16
|
+
export * from './getAddonsCodeguardWebsiteListV1200';
|
|
17
|
+
export * from './getAddonsCodeguardWebsiteListV1200WebsiteListItemWebsite';
|
|
18
|
+
export * from './getSitesInfoV1200';
|
|
19
|
+
export * from './hostingInfo200';
|
|
20
|
+
export * from './sitesSso200';
|
|
21
|
+
export * from './hostingSites200';
|
|
22
|
+
export * from './hostingSites200RowsItem';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./site"), exports);
|
|
18
|
+
__exportStar(require("./siteList"), exports);
|
|
19
|
+
__exportStar(require("./siteSso"), exports);
|
|
20
|
+
__exportStar(require("./getAddonsCodeguardWebsitesV1200WebsiteListItem"), exports);
|
|
21
|
+
__exportStar(require("./getAddonsCodeguardWebsitesV1200WebsiteListItemWebsite"), exports);
|
|
22
|
+
__exportStar(require("./getAddonsCodeguardWebsitesV1200"), exports);
|
|
23
|
+
__exportStar(require("./getHostingFtpV1200FtpAccountItem"), exports);
|
|
24
|
+
__exportStar(require("./postHostingFtpV1Body"), exports);
|
|
25
|
+
__exportStar(require("./getHostingFtpV1200"), exports);
|
|
26
|
+
__exportStar(require("./getHostingInfoV1200"), exports);
|
|
27
|
+
__exportStar(require("./getSitesSsoV1200"), exports);
|
|
28
|
+
__exportStar(require("./postHostingFtpV1200"), exports);
|
|
29
|
+
__exportStar(require("./getHostingSitesV1200RowsItem"), exports);
|
|
30
|
+
__exportStar(require("./getHostingSitesV1200"), exports);
|
|
31
|
+
__exportStar(require("./getAddonsCodeguardWebsiteListV1200WebsiteListItem"), exports);
|
|
32
|
+
__exportStar(require("./getAddonsCodeguardWebsiteListV1200"), exports);
|
|
33
|
+
__exportStar(require("./getAddonsCodeguardWebsiteListV1200WebsiteListItemWebsite"), exports);
|
|
34
|
+
__exportStar(require("./getSitesInfoV1200"), exports);
|
|
35
|
+
__exportStar(require("./hostingInfo200"), exports);
|
|
36
|
+
__exportStar(require("./sitesSso200"), exports);
|
|
37
|
+
__exportStar(require("./hostingSites200"), exports);
|
|
38
|
+
__exportStar(require("./hostingSites200RowsItem"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.7.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
5
|
+
* Hosting UAPI
|
|
6
|
+
* OpenAPI spec version: 0.0.1
|
|
7
|
+
*/
|
|
8
|
+
export declare type PostHostingFtpV1Body = {
|
|
9
|
+
/** Optional username. If not included then type is required and will generate a random username. Good for temp ftp user. Do not append domain. */
|
|
10
|
+
user?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.7.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
5
|
+
* Hosting UAPI
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* A site
|
|
10
|
+
*/
|
|
11
|
+
export interface Site {
|
|
12
|
+
/** TODO */
|
|
13
|
+
id: string;
|
|
14
|
+
/** TODO */
|
|
15
|
+
name: string;
|
|
16
|
+
/** TODO */
|
|
17
|
+
url: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.7.1 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Hosting UAPI
|
|
5
|
+
* Hosting UAPI
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { Site } from './site';
|
|
9
|
+
/**
|
|
10
|
+
* List of sites
|
|
11
|
+
*/
|
|
12
|
+
export interface SiteList {
|
|
13
|
+
/** Max number of sites included in response */
|
|
14
|
+
limit: number;
|
|
15
|
+
/** TODO */
|
|
16
|
+
n_pages: number;
|
|
17
|
+
/** TODO */
|
|
18
|
+
n_rows: number;
|
|
19
|
+
/** TODO */
|
|
20
|
+
page: number;
|
|
21
|
+
/** TODO */
|
|
22
|
+
rows: Site[];
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newfold/huapi-js",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"main": "dist/huapi.js",
|
|
3
|
+
"version": "1.2.8-alpha.1",
|
|
5
4
|
"license": "MIT",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
6
10
|
"dependencies": {
|
|
7
11
|
"@faker-js/faker": "^6.1.2",
|
|
8
12
|
"axios": "^0.26.1",
|
|
@@ -15,12 +19,13 @@
|
|
|
15
19
|
"typescript": "^4.6.3"
|
|
16
20
|
},
|
|
17
21
|
"peerDependencies": {
|
|
18
|
-
"react": "^17.0.0 || ^18.0.0"
|
|
19
|
-
"react-query": "^3.34.19"
|
|
22
|
+
"react": "^17.0.0 || ^18.0.0"
|
|
20
23
|
},
|
|
21
24
|
"scripts": {
|
|
25
|
+
"get-schema": "curl -O https://beta-hosting-uapi.apps.provo1.endurancemb.com/openapi.json",
|
|
26
|
+
"clean": "rm -rf ./dist",
|
|
22
27
|
"orval": "orval",
|
|
23
|
-
"
|
|
24
|
-
"build": "yarn orval && yarn
|
|
28
|
+
"typescript": "npx tsc",
|
|
29
|
+
"build": "yarn clean && yarn get-schema && yarn orval && yarn typescript"
|
|
25
30
|
}
|
|
26
31
|
}
|