@meowpanel/api 0.1.0-alpha.11 → 1.0.0-beta.2
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/LICENSE +1 -1
- package/README.md +40 -0
- package/esm/mod.d.ts +87 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +85 -1
- package/esm/src/client.d.ts +248 -0
- package/esm/src/client.d.ts.map +1 -0
- package/esm/src/client.js +235 -0
- package/esm/src/emitter.d.ts +53 -0
- package/esm/src/emitter.d.ts.map +1 -0
- package/esm/src/emitter.js +55 -0
- package/esm/src/errors.d.ts +42 -0
- package/esm/src/errors.d.ts.map +1 -0
- package/esm/src/errors.js +45 -0
- package/esm/src/http.d.ts +157 -0
- package/esm/src/http.d.ts.map +1 -0
- package/esm/src/http.js +317 -0
- package/esm/src/namespace.d.ts +59 -0
- package/esm/src/namespace.d.ts.map +1 -0
- package/esm/src/namespace.js +79 -0
- package/esm/src/reactive.d.ts +29 -0
- package/esm/src/reactive.d.ts.map +1 -0
- package/esm/src/reactive.js +35 -0
- package/esm/src/resources/account.d.ts +125 -0
- package/esm/src/resources/account.d.ts.map +1 -0
- package/esm/src/resources/account.js +151 -0
- package/esm/src/resources/api-keys.d.ts +116 -0
- package/esm/src/resources/api-keys.d.ts.map +1 -0
- package/esm/src/resources/api-keys.js +105 -0
- package/esm/src/resources/auth.d.ts +57 -0
- package/esm/src/resources/auth.d.ts.map +1 -0
- package/esm/src/resources/auth.js +39 -0
- package/esm/src/resources/eggs.d.ts +238 -0
- package/esm/src/resources/eggs.d.ts.map +1 -0
- package/esm/src/resources/eggs.js +187 -0
- package/esm/src/resources/hosts.d.ts +62 -0
- package/esm/src/resources/hosts.d.ts.map +1 -0
- package/esm/src/resources/hosts.js +62 -0
- package/esm/src/resources/members.d.ts +138 -0
- package/esm/src/resources/members.d.ts.map +1 -0
- package/esm/src/resources/members.js +122 -0
- package/esm/src/resources/nodes.d.ts +397 -0
- package/esm/src/resources/nodes.d.ts.map +1 -0
- package/esm/src/resources/nodes.js +352 -0
- package/esm/src/resources/server-groups.d.ts +150 -0
- package/esm/src/resources/server-groups.d.ts.map +1 -0
- package/esm/src/resources/server-groups.js +111 -0
- package/esm/src/resources/servers/activity.d.ts +120 -0
- package/esm/src/resources/servers/activity.d.ts.map +1 -0
- package/esm/src/resources/servers/activity.js +163 -0
- package/esm/src/resources/servers/allocations.d.ts +125 -0
- package/esm/src/resources/servers/allocations.d.ts.map +1 -0
- package/esm/src/resources/servers/allocations.js +137 -0
- package/esm/src/resources/servers/connection.d.ts +108 -0
- package/esm/src/resources/servers/connection.d.ts.map +1 -0
- package/esm/src/resources/servers/connection.js +169 -0
- package/esm/src/resources/servers/files.d.ts +164 -0
- package/esm/src/resources/servers/files.d.ts.map +1 -0
- package/esm/src/resources/servers/files.js +281 -0
- package/esm/src/resources/servers/index.d.ts +126 -0
- package/esm/src/resources/servers/index.d.ts.map +1 -0
- package/esm/src/resources/servers/index.js +135 -0
- package/esm/src/resources/servers/profiles.d.ts +138 -0
- package/esm/src/resources/servers/profiles.d.ts.map +1 -0
- package/esm/src/resources/servers/profiles.js +177 -0
- package/esm/src/resources/servers/server.d.ts +136 -0
- package/esm/src/resources/servers/server.d.ts.map +1 -0
- package/esm/src/resources/servers/server.js +202 -0
- package/esm/src/resources/servers/sftp.d.ts +147 -0
- package/esm/src/resources/servers/sftp.d.ts.map +1 -0
- package/esm/src/resources/servers/sftp.js +153 -0
- package/esm/src/resources/servers/types.d.ts +199 -0
- package/esm/src/resources/servers/types.d.ts.map +1 -0
- package/esm/src/resources/servers/types.js +1 -0
- package/esm/src/sse.d.ts +53 -0
- package/esm/src/sse.d.ts.map +1 -0
- package/esm/src/sse.js +133 -0
- package/esm/src/types.d.ts +126 -0
- package/esm/src/types.d.ts.map +1 -0
- package/esm/src/types.js +21 -0
- package/package.json +4 -92
- package/script/mod.d.ts +87 -1
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +132 -3
- package/script/src/client.d.ts +248 -0
- package/script/src/client.d.ts.map +1 -0
- package/script/src/client.js +239 -0
- package/script/src/emitter.d.ts +53 -0
- package/script/src/emitter.d.ts.map +1 -0
- package/script/src/emitter.js +59 -0
- package/script/src/errors.d.ts +42 -0
- package/script/src/errors.d.ts.map +1 -0
- package/script/src/errors.js +49 -0
- package/script/src/http.d.ts +157 -0
- package/script/src/http.d.ts.map +1 -0
- package/script/src/http.js +321 -0
- package/script/src/namespace.d.ts +59 -0
- package/script/src/namespace.d.ts.map +1 -0
- package/script/src/namespace.js +83 -0
- package/script/src/reactive.d.ts +29 -0
- package/script/src/reactive.d.ts.map +1 -0
- package/script/src/reactive.js +39 -0
- package/script/src/resources/account.d.ts +125 -0
- package/script/src/resources/account.d.ts.map +1 -0
- package/script/src/resources/account.js +158 -0
- package/script/src/resources/api-keys.d.ts +116 -0
- package/script/src/resources/api-keys.d.ts.map +1 -0
- package/script/src/resources/api-keys.js +110 -0
- package/script/src/resources/auth.d.ts +57 -0
- package/script/src/resources/auth.d.ts.map +1 -0
- package/script/src/resources/auth.js +43 -0
- package/script/src/resources/eggs.d.ts +238 -0
- package/script/src/resources/eggs.d.ts.map +1 -0
- package/script/src/resources/eggs.js +193 -0
- package/script/src/resources/hosts.d.ts +62 -0
- package/script/src/resources/hosts.d.ts.map +1 -0
- package/script/src/resources/hosts.js +67 -0
- package/script/src/resources/members.d.ts +138 -0
- package/script/src/resources/members.d.ts.map +1 -0
- package/script/src/resources/members.js +127 -0
- package/script/src/resources/nodes.d.ts +397 -0
- package/script/src/resources/nodes.d.ts.map +1 -0
- package/script/src/resources/nodes.js +362 -0
- package/script/src/resources/server-groups.d.ts +150 -0
- package/script/src/resources/server-groups.d.ts.map +1 -0
- package/script/src/resources/server-groups.js +116 -0
- package/script/src/resources/servers/activity.d.ts +120 -0
- package/script/src/resources/servers/activity.d.ts.map +1 -0
- package/script/src/resources/servers/activity.js +170 -0
- package/script/src/resources/servers/allocations.d.ts +125 -0
- package/script/src/resources/servers/allocations.d.ts.map +1 -0
- package/script/src/resources/servers/allocations.js +142 -0
- package/script/src/resources/servers/connection.d.ts +108 -0
- package/script/src/resources/servers/connection.d.ts.map +1 -0
- package/script/src/resources/servers/connection.js +173 -0
- package/script/src/resources/servers/files.d.ts +164 -0
- package/script/src/resources/servers/files.d.ts.map +1 -0
- package/script/src/resources/servers/files.js +286 -0
- package/script/src/resources/servers/index.d.ts +126 -0
- package/script/src/resources/servers/index.d.ts.map +1 -0
- package/script/src/resources/servers/index.js +139 -0
- package/script/src/resources/servers/profiles.d.ts +138 -0
- package/script/src/resources/servers/profiles.d.ts.map +1 -0
- package/script/src/resources/servers/profiles.js +182 -0
- package/script/src/resources/servers/server.d.ts +136 -0
- package/script/src/resources/servers/server.d.ts.map +1 -0
- package/script/src/resources/servers/server.js +206 -0
- package/script/src/resources/servers/sftp.d.ts +147 -0
- package/script/src/resources/servers/sftp.d.ts.map +1 -0
- package/script/src/resources/servers/sftp.js +158 -0
- package/script/src/resources/servers/types.d.ts +199 -0
- package/script/src/resources/servers/types.d.ts.map +1 -0
- package/script/src/resources/servers/types.js +2 -0
- package/script/src/sse.d.ts +53 -0
- package/script/src/sse.d.ts.map +1 -0
- package/script/src/sse.js +137 -0
- package/script/src/types.d.ts +126 -0
- package/script/src/types.d.ts.map +1 -0
- package/script/src/types.js +25 -0
- package/esm/api.d.ts +0 -76
- package/esm/api.d.ts.map +0 -1
- package/esm/api.js +0 -187
- package/esm/components/auth.d.ts +0 -15
- package/esm/components/auth.d.ts.map +0 -1
- package/esm/components/auth.js +0 -13
- package/esm/components/connection/abstract.d.ts +0 -23
- package/esm/components/connection/abstract.d.ts.map +0 -1
- package/esm/components/connection/abstract.js +0 -43
- package/esm/components/connection/sse.d.ts +0 -20
- package/esm/components/connection/sse.d.ts.map +0 -1
- package/esm/components/connection/sse.js +0 -65
- package/esm/components/egg/egg.d.ts +0 -32
- package/esm/components/egg/egg.d.ts.map +0 -1
- package/esm/components/egg/egg.js +0 -70
- package/esm/components/group.d.ts +0 -14
- package/esm/components/group.d.ts.map +0 -1
- package/esm/components/group.js +0 -33
- package/esm/components/member_2.d.ts +0 -69
- package/esm/components/member_2.d.ts.map +0 -1
- package/esm/components/member_2.js +0 -140
- package/esm/components/node.d.ts +0 -78
- package/esm/components/node.d.ts.map +0 -1
- package/esm/components/node.js +0 -342
- package/esm/components/server/activity.d.ts +0 -45
- package/esm/components/server/activity.d.ts.map +0 -1
- package/esm/components/server/activity.js +0 -158
- package/esm/components/server/allocations.d.ts +0 -45
- package/esm/components/server/allocations.d.ts.map +0 -1
- package/esm/components/server/allocations.js +0 -146
- package/esm/components/server/files.d.ts +0 -50
- package/esm/components/server/files.d.ts.map +0 -1
- package/esm/components/server/files.js +0 -90
- package/esm/components/server/power.d.ts +0 -21
- package/esm/components/server/power.d.ts.map +0 -1
- package/esm/components/server/power.js +0 -43
- package/esm/components/server/profiles.d.ts +0 -63
- package/esm/components/server/profiles.d.ts.map +0 -1
- package/esm/components/server/profiles.js +0 -163
- package/esm/components/server/server.d.ts +0 -141
- package/esm/components/server/server.d.ts.map +0 -1
- package/esm/components/server/server.js +0 -358
- package/esm/components/server/sftp.d.ts +0 -31
- package/esm/components/server/sftp.d.ts.map +0 -1
- package/esm/components/server/sftp.js +0 -84
- package/esm/components/server/startup.d.ts +0 -17
- package/esm/components/server/startup.d.ts.map +0 -1
- package/esm/components/server/startup.js +0 -21
- package/esm/components/server/stats.d.ts +0 -19
- package/esm/components/server/stats.d.ts.map +0 -1
- package/esm/components/server/stats.js +0 -46
- package/esm/utils/cache.d.ts +0 -20
- package/esm/utils/cache.d.ts.map +0 -1
- package/esm/utils/cache.js +0 -66
- package/esm/utils/event.d.ts +0 -38
- package/esm/utils/event.d.ts.map +0 -1
- package/esm/utils/event.js +0 -71
- package/esm/utils/object.d.ts +0 -58
- package/esm/utils/object.d.ts.map +0 -1
- package/esm/utils/object.js +0 -86
- package/esm/utils/subscribe.d.ts +0 -37
- package/esm/utils/subscribe.d.ts.map +0 -1
- package/esm/utils/subscribe.js +0 -29
- package/esm/utils/timer.d.ts +0 -13
- package/esm/utils/timer.d.ts.map +0 -1
- package/esm/utils/timer.js +0 -32
- package/esm/utils/units.d.ts +0 -18
- package/esm/utils/units.d.ts.map +0 -1
- package/esm/utils/units.js +0 -82
- package/script/api.d.ts +0 -76
- package/script/api.d.ts.map +0 -1
- package/script/api.js +0 -192
- package/script/components/auth.d.ts +0 -15
- package/script/components/auth.d.ts.map +0 -1
- package/script/components/auth.js +0 -17
- package/script/components/connection/abstract.d.ts +0 -23
- package/script/components/connection/abstract.d.ts.map +0 -1
- package/script/components/connection/abstract.js +0 -47
- package/script/components/connection/sse.d.ts +0 -20
- package/script/components/connection/sse.d.ts.map +0 -1
- package/script/components/connection/sse.js +0 -69
- package/script/components/egg/egg.d.ts +0 -32
- package/script/components/egg/egg.d.ts.map +0 -1
- package/script/components/egg/egg.js +0 -74
- package/script/components/group.d.ts +0 -14
- package/script/components/group.d.ts.map +0 -1
- package/script/components/group.js +0 -37
- package/script/components/member_2.d.ts +0 -69
- package/script/components/member_2.d.ts.map +0 -1
- package/script/components/member_2.js +0 -146
- package/script/components/node.d.ts +0 -78
- package/script/components/node.d.ts.map +0 -1
- package/script/components/node.js +0 -349
- package/script/components/server/activity.d.ts +0 -45
- package/script/components/server/activity.d.ts.map +0 -1
- package/script/components/server/activity.js +0 -164
- package/script/components/server/allocations.d.ts +0 -45
- package/script/components/server/allocations.d.ts.map +0 -1
- package/script/components/server/allocations.js +0 -152
- package/script/components/server/files.d.ts +0 -50
- package/script/components/server/files.d.ts.map +0 -1
- package/script/components/server/files.js +0 -94
- package/script/components/server/power.d.ts +0 -21
- package/script/components/server/power.d.ts.map +0 -1
- package/script/components/server/power.js +0 -47
- package/script/components/server/profiles.d.ts +0 -63
- package/script/components/server/profiles.d.ts.map +0 -1
- package/script/components/server/profiles.js +0 -168
- package/script/components/server/server.d.ts +0 -141
- package/script/components/server/server.d.ts.map +0 -1
- package/script/components/server/server.js +0 -362
- package/script/components/server/sftp.d.ts +0 -31
- package/script/components/server/sftp.d.ts.map +0 -1
- package/script/components/server/sftp.js +0 -88
- package/script/components/server/startup.d.ts +0 -17
- package/script/components/server/startup.d.ts.map +0 -1
- package/script/components/server/startup.js +0 -25
- package/script/components/server/stats.d.ts +0 -19
- package/script/components/server/stats.d.ts.map +0 -1
- package/script/components/server/stats.js +0 -50
- package/script/utils/cache.d.ts +0 -20
- package/script/utils/cache.d.ts.map +0 -1
- package/script/utils/cache.js +0 -70
- package/script/utils/event.d.ts +0 -38
- package/script/utils/event.d.ts.map +0 -1
- package/script/utils/event.js +0 -75
- package/script/utils/object.d.ts +0 -58
- package/script/utils/object.d.ts.map +0 -1
- package/script/utils/object.js +0 -90
- package/script/utils/subscribe.d.ts +0 -37
- package/script/utils/subscribe.d.ts.map +0 -1
- package/script/utils/subscribe.js +0 -32
- package/script/utils/timer.d.ts +0 -13
- package/script/utils/timer.d.ts.map +0 -1
- package/script/utils/timer.js +0 -36
- package/script/utils/units.d.ts +0 -18
- package/script/utils/units.d.ts.map +0 -1
- package/script/utils/units.js +0 -86
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { MeowPanelApi, Page } from '../../api.js';
|
|
2
|
-
import { CachedRelation } from '../../utils/cache.js';
|
|
3
|
-
import { UpdatableObject } from '../../utils/object.js';
|
|
4
|
-
import type { Subscription } from '../../utils/subscribe.js';
|
|
5
|
-
import type { Extended } from '../../utils/types';
|
|
6
|
-
export type EggInclude = 'app_background_url';
|
|
7
|
-
interface Modified {
|
|
8
|
-
app_background_url: CachedRelation<string | null>;
|
|
9
|
-
}
|
|
10
|
-
export declare class Egg extends UpdatableObject<EggResponse, Modified, EggInclude> implements Subscription<Egg> {
|
|
11
|
-
static getPaged(api: MeowPanelApi, page: number, include?: EggInclude[]): Promise<{
|
|
12
|
-
groups: Egg[];
|
|
13
|
-
page: Page;
|
|
14
|
-
}>;
|
|
15
|
-
static get(api: MeowPanelApi, id: string, include?: EggInclude[]): Promise<Egg>;
|
|
16
|
-
constructor(api: MeowPanelApi, data: EggResponse);
|
|
17
|
-
protected applyResponse(oldData: Extended<EggResponse, Modified> | undefined, _newData: EggResponse): Modified;
|
|
18
|
-
subscribe(_fn: (value: Egg) => void): () => void;
|
|
19
|
-
get id(): string;
|
|
20
|
-
get name(): string;
|
|
21
|
-
get description(): string;
|
|
22
|
-
get appBackgroundUrl(): CachedRelation<string | null>;
|
|
23
|
-
get nest(): string;
|
|
24
|
-
get images(): EggDockerImage[];
|
|
25
|
-
get startupCommand(): string;
|
|
26
|
-
get stopCommand(): string;
|
|
27
|
-
get forceOutgoingIp(): boolean;
|
|
28
|
-
get createdAt(): string;
|
|
29
|
-
get updatedAt(): string;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
32
|
-
//# sourceMappingURL=egg.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"egg.d.ts","sourceRoot":"","sources":["../../../src/components/egg/egg.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC;AAE9C,UAAU,QAAQ;IACjB,kBAAkB,EAAE,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAClD;AAED,qBAAa,GAAI,SAAQ,eAAe,CAAC,WAAW,EAAE,QAAQ,EAAE,UAAU,CAAE,YAAW,YAAY,CAAC,GAAG,CAAC;WACnF,QAAQ,CAC3B,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,UAAU,EAAO,GACxB,OAAO,CAAC;QAAE,MAAM,EAAE,GAAG,EAAE,CAAC;QAAC,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC;WAYrB,GAAG,CACtB,GAAG,EAAE,YAAY,EACjB,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,UAAU,EAAO,GACxB,OAAO,CAAC,GAAG,CAAC;gBAQI,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW;cAIpC,aAAa,CAC/B,OAAO,EAAE,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,SAAS,EACpD,QAAQ,EAAE,WAAW,GACnB,QAAQ;IAWJ,SAAS,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,MAAM,IAAI;IAIvD,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,IAAW,gBAAgB,IAAI,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAE3D;IAED,IAAW,IAAI,IAAI,MAAM,CAExB;IAED,IAAW,MAAM,IAAI,cAAc,EAAE,CAEpC;IAED,IAAW,cAAc,IAAI,MAAM,CAElC;IAED,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;CACD"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/// <reference path="./egg.d.ts" />
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Egg = void 0;
|
|
5
|
-
const cache_js_1 = require("../../utils/cache.js");
|
|
6
|
-
const object_js_1 = require("../../utils/object.js");
|
|
7
|
-
class Egg extends object_js_1.UpdatableObject {
|
|
8
|
-
static async getPaged(api, page, include = []) {
|
|
9
|
-
const response = await api.request('GET', `/v1/eggs`, {
|
|
10
|
-
pagination: { page },
|
|
11
|
-
params: { include: include?.join(',') },
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
groups: response.data.map((data) => new Egg(api, data)),
|
|
15
|
-
page: response.page,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
static async get(api, id, include = []) {
|
|
19
|
-
const response = await api.request('GET', `/v1/eggs/${id}`, {
|
|
20
|
-
params: { include: include?.join(',') },
|
|
21
|
-
});
|
|
22
|
-
return new Egg(api, response.data);
|
|
23
|
-
}
|
|
24
|
-
constructor(api, data) {
|
|
25
|
-
super(api, data, `/v1/eggs/${data.id}`);
|
|
26
|
-
}
|
|
27
|
-
applyResponse(oldData, _newData) {
|
|
28
|
-
const response = {
|
|
29
|
-
app_background_url: oldData?.app_background_url ??
|
|
30
|
-
new cache_js_1.CachedRelation(async () => {
|
|
31
|
-
const response = await this.fetchSelf(['app_background_url']);
|
|
32
|
-
return response.app_background_url;
|
|
33
|
-
}),
|
|
34
|
-
};
|
|
35
|
-
return response;
|
|
36
|
-
}
|
|
37
|
-
subscribe(_fn) {
|
|
38
|
-
throw new Error('Method not implemented.');
|
|
39
|
-
}
|
|
40
|
-
get id() {
|
|
41
|
-
return this.response.id;
|
|
42
|
-
}
|
|
43
|
-
get name() {
|
|
44
|
-
return this.response.name;
|
|
45
|
-
}
|
|
46
|
-
get description() {
|
|
47
|
-
return this.response.description;
|
|
48
|
-
}
|
|
49
|
-
get appBackgroundUrl() {
|
|
50
|
-
return this.response.app_background_url;
|
|
51
|
-
}
|
|
52
|
-
get nest() {
|
|
53
|
-
return this.response.nest;
|
|
54
|
-
}
|
|
55
|
-
get images() {
|
|
56
|
-
return this.response.images;
|
|
57
|
-
}
|
|
58
|
-
get startupCommand() {
|
|
59
|
-
return this.response.startup_command;
|
|
60
|
-
}
|
|
61
|
-
get stopCommand() {
|
|
62
|
-
return this.response.stop_command;
|
|
63
|
-
}
|
|
64
|
-
get forceOutgoingIp() {
|
|
65
|
-
return this.response.force_outgoing_ip;
|
|
66
|
-
}
|
|
67
|
-
get createdAt() {
|
|
68
|
-
return this.response.created_at;
|
|
69
|
-
}
|
|
70
|
-
get updatedAt() {
|
|
71
|
-
return this.response.updated_at;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.Egg = Egg;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MeowPanelApi, Page } from '../api.js';
|
|
2
|
-
import { CachedRelation } from '../utils/cache.js';
|
|
3
|
-
import { Node } from './node.js';
|
|
4
|
-
export declare class ServerGroup {
|
|
5
|
-
protected readonly api: MeowPanelApi;
|
|
6
|
-
static getPaged(api: MeowPanelApi, page: number): Promise<{
|
|
7
|
-
groups: ServerGroup[];
|
|
8
|
-
page: Page;
|
|
9
|
-
}>;
|
|
10
|
-
static get(api: MeowPanelApi, id: string): Promise<ServerGroup>;
|
|
11
|
-
constructor(api: MeowPanelApi, data: Record<string, never>);
|
|
12
|
-
readonly node: CachedRelation<Node>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../src/components/group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,qBAAa,WAAW;IA0BtB,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,YAAY;WAzBjB,QAAQ,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,WAAW,EAAE,CAAC;QAAC,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC;WAezF,GAAG,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;gBAUxD,GAAG,EAAE,YAAY,EACpC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAM5B,SAAgB,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;CAC3C"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServerGroup = void 0;
|
|
4
|
-
const cache_js_1 = require("../utils/cache.js");
|
|
5
|
-
const node_js_1 = require("./node.js");
|
|
6
|
-
class ServerGroup {
|
|
7
|
-
static async getPaged(api, page) {
|
|
8
|
-
const response = await api.request('GET', `/v1/servers/groups`, {
|
|
9
|
-
pagination: { page },
|
|
10
|
-
});
|
|
11
|
-
return {
|
|
12
|
-
groups: response.data.map((data) => new ServerGroup(api, data)),
|
|
13
|
-
page: response.page,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
static async get(api, id) {
|
|
17
|
-
const response = await api.request('GET', `/v1/servers/groups/${id}`);
|
|
18
|
-
return new ServerGroup(api, response.data);
|
|
19
|
-
}
|
|
20
|
-
constructor(api, data) {
|
|
21
|
-
Object.defineProperty(this, "api", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
configurable: true,
|
|
24
|
-
writable: true,
|
|
25
|
-
value: api
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(this, "node", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true,
|
|
30
|
-
writable: true,
|
|
31
|
-
value: void 0
|
|
32
|
-
});
|
|
33
|
-
this.node = new cache_js_1.CachedRelation(() => node_js_1.Node.get(api, data.node_id, ['connection']));
|
|
34
|
-
this.node.setCache(data.node);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.ServerGroup = ServerGroup;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { MeowPanelApi, Page, Pagination } from '../api.js';
|
|
2
|
-
import { CachedRelation } from '../utils/cache.js';
|
|
3
|
-
import { type EventFunction, EventManager, type EventManagerListener } from '../utils/event.js';
|
|
4
|
-
import { UpdatableObject } from '../utils/object.js';
|
|
5
|
-
import type { Extended } from '../utils/types';
|
|
6
|
-
interface AdjustedResponse {
|
|
7
|
-
display: CachedRelation<Display | null>;
|
|
8
|
-
permissions: CachedRelation<PermissionsList>;
|
|
9
|
-
}
|
|
10
|
-
export type MemberInclude = 'display' | 'permissions';
|
|
11
|
-
export declare class Member extends UpdatableObject<MemberResponse, AdjustedResponse, MemberInclude> implements EventManagerListener<MemberEvents> {
|
|
12
|
-
static list(api: MeowPanelApi, pagination: Pagination): Promise<{
|
|
13
|
-
data: Member[];
|
|
14
|
-
page: Page | undefined;
|
|
15
|
-
}>;
|
|
16
|
-
static get(api: MeowPanelApi, id: string): Promise<Member>;
|
|
17
|
-
constructor(api: MeowPanelApi, data: MemberResponse);
|
|
18
|
-
protected applyResponse(oldData: Extended<MemberResponse, AdjustedResponse> | undefined, newData: MemberResponse): AdjustedResponse;
|
|
19
|
-
protected readonly eventManager: EventManager<MemberEvents>;
|
|
20
|
-
on<K extends keyof MemberEvents>(event: K, func: EventFunction<MemberEvents, K>): number;
|
|
21
|
-
off<K extends keyof MemberEvents>(event: K | number, func?: EventFunction<MemberEvents, K> | number): boolean;
|
|
22
|
-
get name(): string;
|
|
23
|
-
update(data: {
|
|
24
|
-
email?: string;
|
|
25
|
-
firstName?: string;
|
|
26
|
-
lastName?: string;
|
|
27
|
-
nickname?: string;
|
|
28
|
-
display?: {
|
|
29
|
-
language?: string | null;
|
|
30
|
-
theme?: string | null;
|
|
31
|
-
};
|
|
32
|
-
}): Promise<void>;
|
|
33
|
-
get id(): string;
|
|
34
|
-
get email(): string;
|
|
35
|
-
get firstName(): string;
|
|
36
|
-
get lastName(): string;
|
|
37
|
-
get nickname(): string;
|
|
38
|
-
get avatarUri(): string;
|
|
39
|
-
get createdAt(): Date;
|
|
40
|
-
get updatedAt(): Date;
|
|
41
|
-
get display(): CachedRelation<Display | null>;
|
|
42
|
-
get permissions(): CachedRelation<PermissionsList>;
|
|
43
|
-
}
|
|
44
|
-
interface DisplayResponse {
|
|
45
|
-
language: string | null;
|
|
46
|
-
theme: string | null;
|
|
47
|
-
}
|
|
48
|
-
export declare class Display {
|
|
49
|
-
protected readonly api: MeowPanelApi;
|
|
50
|
-
protected readonly member: Member;
|
|
51
|
-
protected response: DisplayResponse;
|
|
52
|
-
get language(): string | null;
|
|
53
|
-
get theme(): string | null;
|
|
54
|
-
constructor(api: MeowPanelApi, member: Member, response: DisplayResponse);
|
|
55
|
-
update(data: {
|
|
56
|
-
language?: string | null;
|
|
57
|
-
theme?: string | null;
|
|
58
|
-
}): Promise<void>;
|
|
59
|
-
}
|
|
60
|
-
export declare class PermissionsList {
|
|
61
|
-
protected readonly permissions: string[];
|
|
62
|
-
constructor(permissions: string[]);
|
|
63
|
-
has(permission: string): boolean;
|
|
64
|
-
}
|
|
65
|
-
interface MemberEvents {
|
|
66
|
-
update: Member;
|
|
67
|
-
}
|
|
68
|
-
export {};
|
|
69
|
-
//# sourceMappingURL=member_2.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member_2.d.ts","sourceRoot":"","sources":["../../src/components/member_2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,KAAK,aAAa,EAAE,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,UAAU,gBAAgB;IACzB,OAAO,EAAE,cAAc,CAAC,OAAO,GAAG,IAAI,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,WAAW,EAAE,MAAM,EAAE;IAEpD,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;CAGvC;AAED,UAAU,YAAY;IACrB,MAAM,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PermissionsList = exports.Display = exports.Member = void 0;
|
|
4
|
-
const cache_js_1 = require("../utils/cache.js");
|
|
5
|
-
const event_js_1 = require("../utils/event.js");
|
|
6
|
-
const object_js_1 = require("../utils/object.js");
|
|
7
|
-
class Member extends object_js_1.UpdatableObject {
|
|
8
|
-
static async list(api, pagination) {
|
|
9
|
-
const response = await api.request('GET', '/v1/members', {
|
|
10
|
-
pagination,
|
|
11
|
-
});
|
|
12
|
-
return {
|
|
13
|
-
data: response.data.map((v) => new Member(api, v)),
|
|
14
|
-
page: response.page,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
static async get(api, id) {
|
|
18
|
-
const response = await api.request('GET', `/v1/members/${id}`);
|
|
19
|
-
return new Member(api, response.data);
|
|
20
|
-
}
|
|
21
|
-
constructor(api, data) {
|
|
22
|
-
super(api, data, `/v1/members/${data.id}`);
|
|
23
|
-
Object.defineProperty(this, "eventManager", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
writable: true,
|
|
27
|
-
value: new event_js_1.EventManager()
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
applyResponse(oldData, newData) {
|
|
31
|
-
const response = {
|
|
32
|
-
// TODO: CachedRelation should fetch data on access if undefined
|
|
33
|
-
display: oldData?.display ??
|
|
34
|
-
new cache_js_1.CachedRelation(() => new Display(this.api, this, newData.display)),
|
|
35
|
-
permissions: oldData?.permissions ??
|
|
36
|
-
new cache_js_1.CachedRelation(() => new PermissionsList(newData.permissions)),
|
|
37
|
-
};
|
|
38
|
-
if (newData.display) {
|
|
39
|
-
response.display.setCache(new Display(this.api, this, newData.display));
|
|
40
|
-
}
|
|
41
|
-
if (newData.permissions) {
|
|
42
|
-
response.permissions.setCache(new PermissionsList(newData.permissions));
|
|
43
|
-
}
|
|
44
|
-
return response;
|
|
45
|
-
}
|
|
46
|
-
on(event, func) {
|
|
47
|
-
return this.eventManager.on(event, func);
|
|
48
|
-
}
|
|
49
|
-
off(event, func) {
|
|
50
|
-
return this.eventManager.off(event, func);
|
|
51
|
-
}
|
|
52
|
-
get name() {
|
|
53
|
-
return this.nickname || `${this.firstName} ${this.lastName}`;
|
|
54
|
-
}
|
|
55
|
-
async update(data) {
|
|
56
|
-
const response = await this.api.request('PATCH', `/v1/members/${this.id}`, {
|
|
57
|
-
body: {
|
|
58
|
-
email: data.email,
|
|
59
|
-
first_name: data.firstName,
|
|
60
|
-
last_name: data.lastName,
|
|
61
|
-
nickname: data.nickname,
|
|
62
|
-
display: data.display,
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
this.updateSelf(response.data);
|
|
66
|
-
this.eventManager.dispatch('update', this);
|
|
67
|
-
}
|
|
68
|
-
//> Accessors
|
|
69
|
-
get id() {
|
|
70
|
-
return this.response.id;
|
|
71
|
-
}
|
|
72
|
-
get email() {
|
|
73
|
-
return this.response.email;
|
|
74
|
-
}
|
|
75
|
-
get firstName() {
|
|
76
|
-
return this.response.first_name;
|
|
77
|
-
}
|
|
78
|
-
get lastName() {
|
|
79
|
-
return this.response.last_name;
|
|
80
|
-
}
|
|
81
|
-
get nickname() {
|
|
82
|
-
return this.response.nickname;
|
|
83
|
-
}
|
|
84
|
-
get avatarUri() {
|
|
85
|
-
return this.response.avatar_uri;
|
|
86
|
-
}
|
|
87
|
-
get createdAt() {
|
|
88
|
-
return new Date(this.response.created_at);
|
|
89
|
-
}
|
|
90
|
-
get updatedAt() {
|
|
91
|
-
return new Date(this.response.created_at);
|
|
92
|
-
}
|
|
93
|
-
get display() {
|
|
94
|
-
return this.response.display;
|
|
95
|
-
}
|
|
96
|
-
get permissions() {
|
|
97
|
-
return this.response.permissions;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.Member = Member;
|
|
101
|
-
class Display {
|
|
102
|
-
get language() {
|
|
103
|
-
return this.response.language;
|
|
104
|
-
}
|
|
105
|
-
get theme() {
|
|
106
|
-
return this.response.theme;
|
|
107
|
-
}
|
|
108
|
-
constructor(api, member, response) {
|
|
109
|
-
Object.defineProperty(this, "api", {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
configurable: true,
|
|
112
|
-
writable: true,
|
|
113
|
-
value: api
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(this, "member", {
|
|
116
|
-
enumerable: true,
|
|
117
|
-
configurable: true,
|
|
118
|
-
writable: true,
|
|
119
|
-
value: member
|
|
120
|
-
});
|
|
121
|
-
Object.defineProperty(this, "response", {
|
|
122
|
-
enumerable: true,
|
|
123
|
-
configurable: true,
|
|
124
|
-
writable: true,
|
|
125
|
-
value: response
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
async update(data) {
|
|
129
|
-
await this.member.update({ display: data });
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
exports.Display = Display;
|
|
133
|
-
class PermissionsList {
|
|
134
|
-
constructor(permissions) {
|
|
135
|
-
Object.defineProperty(this, "permissions", {
|
|
136
|
-
enumerable: true,
|
|
137
|
-
configurable: true,
|
|
138
|
-
writable: true,
|
|
139
|
-
value: permissions
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
has(permission) {
|
|
143
|
-
return this.permissions.includes(permission);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
exports.PermissionsList = PermissionsList;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { MeowPanelApi, Page } from '../api.js';
|
|
2
|
-
import { CachedRelation } from '../utils/cache.js';
|
|
3
|
-
import { Member } from './member_2.js';
|
|
4
|
-
export type NodeInclude = 'location' | 'type' | 'connection';
|
|
5
|
-
export declare class Node {
|
|
6
|
-
protected readonly api: MeowPanelApi;
|
|
7
|
-
static getPaged(api: MeowPanelApi, page: number, include?: NodeInclude[]): Promise<{
|
|
8
|
-
servers: Node[];
|
|
9
|
-
page: Page;
|
|
10
|
-
}>;
|
|
11
|
-
static get(api: MeowPanelApi, id: string, include?: NodeInclude[]): Promise<Node>;
|
|
12
|
-
constructor(api: MeowPanelApi, data: Record<string, never>);
|
|
13
|
-
readonly id: string;
|
|
14
|
-
readonly name: string;
|
|
15
|
-
readonly description: string;
|
|
16
|
-
readonly owner: CachedRelation<Member>;
|
|
17
|
-
readonly location: CachedRelation<NodeLocation>;
|
|
18
|
-
readonly host: CachedRelation<NodeHost>;
|
|
19
|
-
readonly type: CachedRelation<NodeType>;
|
|
20
|
-
readonly num: number;
|
|
21
|
-
readonly limits: Limits;
|
|
22
|
-
readonly connection: {
|
|
23
|
-
url: string;
|
|
24
|
-
scheme: string;
|
|
25
|
-
fqdn: string;
|
|
26
|
-
port: string;
|
|
27
|
-
};
|
|
28
|
-
readonly isUnderMaintance: boolean;
|
|
29
|
-
readonly canAutoDeploy: boolean;
|
|
30
|
-
readonly isBehindProxy: boolean;
|
|
31
|
-
readonly createdAt: Date;
|
|
32
|
-
readonly updatedAt: Date;
|
|
33
|
-
readonly fqdn: string | undefined;
|
|
34
|
-
readonly notes: string | undefined;
|
|
35
|
-
}
|
|
36
|
-
interface Limits {
|
|
37
|
-
memory_mb: number;
|
|
38
|
-
memory_overallocate_mb: number;
|
|
39
|
-
disk_mb: number;
|
|
40
|
-
disk_overallocate_mb: number;
|
|
41
|
-
upload_size_mb: number;
|
|
42
|
-
}
|
|
43
|
-
export declare class NodeLocation {
|
|
44
|
-
protected readonly api: MeowPanelApi;
|
|
45
|
-
constructor(api: MeowPanelApi, data: Record<string, never>);
|
|
46
|
-
readonly id: string;
|
|
47
|
-
readonly name: string;
|
|
48
|
-
readonly short: string;
|
|
49
|
-
readonly notes: string | null | undefined;
|
|
50
|
-
readonly owner: CachedRelation<Member>;
|
|
51
|
-
readonly createdAt: Date;
|
|
52
|
-
readonly updatedAt: Date;
|
|
53
|
-
}
|
|
54
|
-
export declare class NodeHost {
|
|
55
|
-
protected readonly api: MeowPanelApi;
|
|
56
|
-
constructor(api: MeowPanelApi, data: Record<string, never>);
|
|
57
|
-
readonly id: string;
|
|
58
|
-
readonly name: string;
|
|
59
|
-
readonly hostname: string;
|
|
60
|
-
readonly color: string;
|
|
61
|
-
readonly notes: string | null | undefined;
|
|
62
|
-
readonly owner: CachedRelation<Member>;
|
|
63
|
-
readonly createdAt: Date;
|
|
64
|
-
readonly updatedAt: Date;
|
|
65
|
-
}
|
|
66
|
-
export declare class NodeType {
|
|
67
|
-
protected readonly api: MeowPanelApi;
|
|
68
|
-
constructor(api: MeowPanelApi, data: Record<string, never>);
|
|
69
|
-
readonly id: string;
|
|
70
|
-
readonly name: string;
|
|
71
|
-
readonly short: string;
|
|
72
|
-
readonly notes: string | null | undefined;
|
|
73
|
-
readonly owner: CachedRelation<Member>;
|
|
74
|
-
readonly createdAt: Date;
|
|
75
|
-
readonly updatedAt: Date;
|
|
76
|
-
}
|
|
77
|
-
export {};
|
|
78
|
-
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/components/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,CAAC;AAE7D,qBAAa,IAAI;IA0Cf,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,YAAY;WAzCjB,QAAQ,CAC3B,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,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