@luna-park/plugin 2.2.0 → 2.3.0
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/index.d.mts +7 -1
- package/dist/index.mjs +41 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -39,6 +39,7 @@ type TComponent<TProps extends Record<string, TSchema> = Record<string, TSchema>
|
|
|
39
39
|
link?: string;
|
|
40
40
|
};
|
|
41
41
|
emits?: Record<string, TSchema> | ((attributes: TAttributes<TProps, TInternals>) => Record<string, TSchema>);
|
|
42
|
+
guides?: Array<string>;
|
|
42
43
|
icon?: IconDefinition | string;
|
|
43
44
|
internals?: TInternals;
|
|
44
45
|
llm?: string;
|
|
@@ -1153,6 +1154,7 @@ type TBasePlugin<TConfig extends TSchema = TSchema, TInternals = unknown> = {
|
|
|
1153
1154
|
attributes?: Record<string, unknown>;
|
|
1154
1155
|
};
|
|
1155
1156
|
};
|
|
1157
|
+
guides?: Record<string, TPluginGuide>;
|
|
1156
1158
|
hooks?: { [THook in EPluginHooks]?: (params: THookParams[THook]) => MaybePromise<void>; };
|
|
1157
1159
|
icon: string;
|
|
1158
1160
|
id: string;
|
|
@@ -1175,6 +1177,10 @@ type TBasePlugin<TConfig extends TSchema = TSchema, TInternals = unknown> = {
|
|
|
1175
1177
|
sections: Array<TPluginWorkspaceSection>;
|
|
1176
1178
|
};
|
|
1177
1179
|
};
|
|
1180
|
+
type TPluginGuide = {
|
|
1181
|
+
content: string;
|
|
1182
|
+
description: string;
|
|
1183
|
+
};
|
|
1178
1184
|
type TPluginWorkspaceSection = {
|
|
1179
1185
|
component: Component;
|
|
1180
1186
|
description?: string;
|
|
@@ -1223,4 +1229,4 @@ export declare function loadPlugin<TConfig extends TSchema, TInternal>(plugin: T
|
|
|
1223
1229
|
export declare function sortPlugins<T extends Pick<TBasePlugin, "dependencies" | "id">>(plugins: Array<T>): Array<T>;
|
|
1224
1230
|
export declare function getPluginApi<TApi = unknown>(plugin: Pick<TBasePlugin, "api" | "config" | "id"> | undefined, env: Partial<TEnv>): Promise<TApi | undefined>;
|
|
1225
1231
|
export declare function getPluginParam<T>(target: TOption<TEnv, T>, env: Partial<TEnv>): Promise<T>;
|
|
1226
|
-
export { EDBCondition, EDBOperation, EElementType, ELogicScope, ELogicType, ETokenType, EVarType, _default as LSettingsStoryWrapper, LogicType, LogicUtil, type Static, type TAnyLogic, type TAnyLogicExport, type TApplication, type TApplicationExport, type TBasePlugin, type TComponent, type TDBCondition, type TDBOperation, type TElementPanel, type TElementPanelAction, type TElementPanelProps, type TEnv, type TFile, type TFileComponent, type TFileComponentExport, type TFileConfig, type TFileConfigExport, type TFileCron, type TFileCronExport, type TFileDatabase, type TFileDatabaseExport, type TFileExport, type TFileMedia, type TFileMediaExport, type TFileRoute, type TFileRouteExport, type TFileScript, type TFileScriptExport, type TFileStore, type TFileStoreExport, type TFileText, type TFileTextExport, type TFileType, type TFileTypeExport, type TFolder, type TFolderExport, type THookParams, type THost, type TInterface, type TInterfaceEditorProps, type TLayoutSchema, type TLayoutSchemaExport, type TLogic, type TLogicExport, type TLogicMain, type TLogicMainExport, type TLogicNode, type TOption, type TPanels, type TPlugin, type TPluginElement, type TPluginWorkspaceSection, type TProxyPlugin, type TRouteGuard, type TSchema, type TSlot, type TTemplate, type TToken, makeLogicNode };
|
|
1232
|
+
export { EDBCondition, EDBOperation, EElementType, ELogicScope, ELogicType, ETokenType, EVarType, _default as LSettingsStoryWrapper, LogicType, LogicUtil, type Static, type TAnyLogic, type TAnyLogicExport, type TApplication, type TApplicationExport, type TBasePlugin, type TComponent, type TDBCondition, type TDBOperation, type TElementPanel, type TElementPanelAction, type TElementPanelProps, type TEnv, type TFile, type TFileComponent, type TFileComponentExport, type TFileConfig, type TFileConfigExport, type TFileCron, type TFileCronExport, type TFileDatabase, type TFileDatabaseExport, type TFileExport, type TFileMedia, type TFileMediaExport, type TFileRoute, type TFileRouteExport, type TFileScript, type TFileScriptExport, type TFileStore, type TFileStoreExport, type TFileText, type TFileTextExport, type TFileType, type TFileTypeExport, type TFolder, type TFolderExport, type THookParams, type THost, type TInterface, type TInterfaceEditorProps, type TLayoutSchema, type TLayoutSchemaExport, type TLogic, type TLogicExport, type TLogicMain, type TLogicMainExport, type TLogicNode, type TOption, type TPanels, type TPlugin, type TPluginElement, type TPluginGuide, type TPluginWorkspaceSection, type TProxyPlugin, type TRouteGuard, type TSchema, type TSlot, type TTemplate, type TToken, makeLogicNode };
|
package/dist/index.mjs
CHANGED
|
@@ -448,6 +448,7 @@ var deploy_exports = /* @__PURE__ */ __exportAll({
|
|
|
448
448
|
getVariables: () => getVariables,
|
|
449
449
|
listArchives: () => listArchives,
|
|
450
450
|
listDomains: () => listDomains,
|
|
451
|
+
listServerAlerts: () => listServerAlerts,
|
|
451
452
|
listServerMembers: () => listServerMembers,
|
|
452
453
|
listServerTiers: () => listServerTiers,
|
|
453
454
|
listServers: () => listServers,
|
|
@@ -465,6 +466,7 @@ var deploy_exports = /* @__PURE__ */ __exportAll({
|
|
|
465
466
|
serverBackups: () => serverBackups,
|
|
466
467
|
setAutoUpdate: () => setAutoUpdate,
|
|
467
468
|
setEnvironmentAccess: () => setEnvironmentAccess,
|
|
469
|
+
setServerIpv4: () => setServerIpv4,
|
|
468
470
|
setVariables: () => setVariables,
|
|
469
471
|
updateServer: () => updateServer,
|
|
470
472
|
verifyDomain: () => verifyDomain
|
|
@@ -541,7 +543,23 @@ const listServers = {
|
|
|
541
543
|
readyAt: Type.Union([Type.String(), Type.Null()]),
|
|
542
544
|
role: Type.Union([Type.Literal("member"), Type.Literal("owner")]),
|
|
543
545
|
status: Type.String(),
|
|
544
|
-
url: Type.Union([Type.String(), Type.Null()])
|
|
546
|
+
url: Type.Union([Type.String(), Type.Null()]),
|
|
547
|
+
capacity: Type.Object({
|
|
548
|
+
disk: Type.Union([Type.Object({
|
|
549
|
+
free: Type.Number(),
|
|
550
|
+
total: Type.Number()
|
|
551
|
+
}), Type.Null()]),
|
|
552
|
+
environments: Type.Integer(),
|
|
553
|
+
maxEnvironments: Type.Union([Type.Integer(), Type.Null()])
|
|
554
|
+
}),
|
|
555
|
+
ipv4: Type.Union([Type.String(), Type.Null()]),
|
|
556
|
+
ipv4Requested: Type.Boolean(),
|
|
557
|
+
ipv4Status: Type.Union([
|
|
558
|
+
Type.Literal("attaching"),
|
|
559
|
+
Type.Literal("detaching"),
|
|
560
|
+
Type.Null()
|
|
561
|
+
]),
|
|
562
|
+
tier: Type.Union([Type.String(), Type.Null()])
|
|
545
563
|
})) },
|
|
546
564
|
url: "/deploy/servers"
|
|
547
565
|
};
|
|
@@ -765,6 +783,26 @@ const updateServer = {
|
|
|
765
783
|
response: { 200: messageResponse },
|
|
766
784
|
url: "/deploy/servers/:serverId"
|
|
767
785
|
};
|
|
786
|
+
const setServerIpv4 = {
|
|
787
|
+
type: "put",
|
|
788
|
+
body: Type.Object({ enabled: Type.Boolean() }),
|
|
789
|
+
params: serverParams,
|
|
790
|
+
response: { 200: messageResponse },
|
|
791
|
+
url: "/deploy/servers/:serverId/ipv4"
|
|
792
|
+
};
|
|
793
|
+
const listServerAlerts = {
|
|
794
|
+
type: "get",
|
|
795
|
+
params: serverParams,
|
|
796
|
+
response: { 200: Type.Array(Type.Object({
|
|
797
|
+
id: Type.String({ format: "uuid" }),
|
|
798
|
+
key: Type.String(),
|
|
799
|
+
level: Type.Union([Type.Literal("critical"), Type.Literal("warning")]),
|
|
800
|
+
message: Type.String(),
|
|
801
|
+
openedAt: Type.String(),
|
|
802
|
+
resolvedAt: Type.Union([Type.String(), Type.Null()])
|
|
803
|
+
})) },
|
|
804
|
+
url: "/deploy/servers/:serverId/alerts"
|
|
805
|
+
};
|
|
768
806
|
const serverBackups = {
|
|
769
807
|
type: "get",
|
|
770
808
|
params: Type.Object({ serverId: Type.String({ format: "uuid" }) }),
|
|
@@ -788,9 +826,9 @@ const renameServer = {
|
|
|
788
826
|
const listArchives = {
|
|
789
827
|
type: "get",
|
|
790
828
|
response: { 200: Type.Array(Type.Object({
|
|
829
|
+
id: Type.String({ format: "uuid" }),
|
|
791
830
|
createdAt: Type.String(),
|
|
792
831
|
expiresAt: Type.Union([Type.String(), Type.Null()]),
|
|
793
|
-
id: Type.String({ format: "uuid" }),
|
|
794
832
|
serverName: Type.String(),
|
|
795
833
|
size: Type.Union([Type.Number(), Type.Null()]),
|
|
796
834
|
status: Type.String()
|
|
@@ -1087,9 +1125,9 @@ const serverCheckout = {
|
|
|
1087
1125
|
url: "/payment/server/checkout"
|
|
1088
1126
|
};
|
|
1089
1127
|
const serverSubscription = Type.Object({
|
|
1128
|
+
id: Type.String({ format: "uuid" }),
|
|
1090
1129
|
cancelAt: Type.Union([Type.String(), Type.Null()]),
|
|
1091
1130
|
currentPeriodEnd: Type.Union([Type.String(), Type.Null()]),
|
|
1092
|
-
id: Type.String({ format: "uuid" }),
|
|
1093
1131
|
ipv4: Type.Boolean(),
|
|
1094
1132
|
provisioningError: Type.Union([Type.String(), Type.Null()]),
|
|
1095
1133
|
serverId: Type.Union([Type.String({ format: "uuid" }), Type.Null()]),
|