@luna-park/plugin 1.3.0 → 1.3.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/bin/preview.js +50 -50
- package/dist/extractor.d.ts +0 -246
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -1463
- package/dist/index.js +79 -78
- package/dist/preview.d.ts +0 -6
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -2185,7 +2185,8 @@ var Type = /* @__PURE__ */ __export$1({
|
|
|
2185
2185
|
return J && __defProp(Y, Symbol.toStringTag, { value: "Module" }), Y;
|
|
2186
2186
|
}, config = {
|
|
2187
2187
|
backendUrl: "https://luna-park.app",
|
|
2188
|
-
hostUrl: "https://host.luna-park.app"
|
|
2188
|
+
hostUrl: "https://host.luna-park.app",
|
|
2189
|
+
webSocketUrl: "wss://luna-park.app"
|
|
2189
2190
|
}, baseConfig = {
|
|
2190
2191
|
credentials: "include",
|
|
2191
2192
|
headers: {
|
|
@@ -2480,15 +2481,6 @@ var user = Type.Object({
|
|
|
2480
2481
|
}),
|
|
2481
2482
|
response: { 200: Type.Object({ client_name: Type.String() }) },
|
|
2482
2483
|
url: "/auth/client"
|
|
2483
|
-
}, integrations_exports = /* @__PURE__ */ __export({ googleAuth: () => googleAuth }, 1), googleAuth = {
|
|
2484
|
-
type: ERouteType.Get,
|
|
2485
|
-
querystring: Type.Object({
|
|
2486
|
-
code: Type.Optional(Type.String()),
|
|
2487
|
-
scope: Type.Optional(Type.String()),
|
|
2488
|
-
state: Type.Optional(Type.String())
|
|
2489
|
-
}),
|
|
2490
|
-
response: { 200: Type.Object({ token: Type.Optional(Type.String()) }) },
|
|
2491
|
-
url: "/integrations/google/auth"
|
|
2492
2484
|
}, compiler_exports = /* @__PURE__ */ __export({
|
|
2493
2485
|
build: () => build,
|
|
2494
2486
|
compile: () => compile$1,
|
|
@@ -2572,11 +2564,76 @@ var user = Type.Object({
|
|
|
2572
2564
|
version: Type.String()
|
|
2573
2565
|
}) },
|
|
2574
2566
|
url: "/desktop/release/latest"
|
|
2567
|
+
}, file_exports = /* @__PURE__ */ __export({
|
|
2568
|
+
list: () => list$3,
|
|
2569
|
+
remove: () => remove$2,
|
|
2570
|
+
status: () => status,
|
|
2571
|
+
upload: () => upload
|
|
2572
|
+
}, 1), upload = {
|
|
2573
|
+
type: ERouteType.Post,
|
|
2574
|
+
body: Type.Object({
|
|
2575
|
+
file: Type.Object({
|
|
2576
|
+
filename: Type.String(),
|
|
2577
|
+
mimetype: Type.String()
|
|
2578
|
+
}),
|
|
2579
|
+
project: Type.Object({ value: Type.String() })
|
|
2580
|
+
}),
|
|
2581
|
+
multipart: !0,
|
|
2582
|
+
response: { 200: Type.Object({
|
|
2583
|
+
name: Type.String(),
|
|
2584
|
+
mimeType: Type.String(),
|
|
2585
|
+
target: Type.String()
|
|
2586
|
+
}) },
|
|
2587
|
+
url: "/file/upload"
|
|
2588
|
+
}, remove$2 = {
|
|
2589
|
+
type: ERouteType.Post,
|
|
2590
|
+
body: Type.Object({ target: Type.String() }),
|
|
2591
|
+
response: { 200: Type.Object({ message: Type.String() }) },
|
|
2592
|
+
url: "/file/remove"
|
|
2593
|
+
}, list$3 = {
|
|
2594
|
+
type: ERouteType.Get,
|
|
2595
|
+
querystring: Type.Object({
|
|
2596
|
+
limit: Type.Optional(Type.String()),
|
|
2597
|
+
search: Type.Optional(Type.String()),
|
|
2598
|
+
skip: Type.Optional(Type.String())
|
|
2599
|
+
}),
|
|
2600
|
+
response: { 200: Type.Object({
|
|
2601
|
+
result: Type.Array(Type.Object({
|
|
2602
|
+
id: Type.String(),
|
|
2603
|
+
name: Type.String(),
|
|
2604
|
+
mimeType: Type.String(),
|
|
2605
|
+
project: Type.Object({
|
|
2606
|
+
id: Type.String(),
|
|
2607
|
+
name: Type.String(),
|
|
2608
|
+
icon: Type.String()
|
|
2609
|
+
}),
|
|
2610
|
+
size: Type.Number(),
|
|
2611
|
+
target: Type.String()
|
|
2612
|
+
})),
|
|
2613
|
+
total: Type.Number()
|
|
2614
|
+
}) },
|
|
2615
|
+
url: "/file/list"
|
|
2616
|
+
}, status = {
|
|
2617
|
+
type: ERouteType.Get,
|
|
2618
|
+
response: { 200: Type.Object({
|
|
2619
|
+
limit: Type.Number(),
|
|
2620
|
+
total: Type.Number()
|
|
2621
|
+
}) },
|
|
2622
|
+
url: "/file/status"
|
|
2623
|
+
}, integrations_exports = /* @__PURE__ */ __export({ googleAuth: () => googleAuth }, 1), googleAuth = {
|
|
2624
|
+
type: ERouteType.Get,
|
|
2625
|
+
querystring: Type.Object({
|
|
2626
|
+
code: Type.Optional(Type.String()),
|
|
2627
|
+
scope: Type.Optional(Type.String()),
|
|
2628
|
+
state: Type.Optional(Type.String())
|
|
2629
|
+
}),
|
|
2630
|
+
response: { 200: Type.Object({ token: Type.Optional(Type.String()) }) },
|
|
2631
|
+
url: "/integrations/google/auth"
|
|
2575
2632
|
}, keyConfig_exports = /* @__PURE__ */ __export({
|
|
2576
2633
|
check: () => check$1,
|
|
2577
2634
|
create: () => create$2,
|
|
2578
|
-
list: () => list$
|
|
2579
|
-
remove: () => remove$
|
|
2635
|
+
list: () => list$2,
|
|
2636
|
+
remove: () => remove$1
|
|
2580
2637
|
}, 1), create$2 = {
|
|
2581
2638
|
type: ERouteType.Post,
|
|
2582
2639
|
body: Type.Object({ domain: Type.String() }),
|
|
@@ -2585,11 +2642,11 @@ var user = Type.Object({
|
|
|
2585
2642
|
message: Type.String()
|
|
2586
2643
|
}) },
|
|
2587
2644
|
url: "/key-config"
|
|
2588
|
-
}, list$
|
|
2645
|
+
}, list$2 = {
|
|
2589
2646
|
type: ERouteType.Get,
|
|
2590
2647
|
response: { 200: Type.Array(types.keyConfig) },
|
|
2591
2648
|
url: "/key-config"
|
|
2592
|
-
}, remove$
|
|
2649
|
+
}, remove$1 = {
|
|
2593
2650
|
type: ERouteType.Delete,
|
|
2594
2651
|
params: Type.Object({ id: Type.String() }),
|
|
2595
2652
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
@@ -2606,7 +2663,7 @@ var user = Type.Object({
|
|
|
2606
2663
|
}, license_exports = /* @__PURE__ */ __export({
|
|
2607
2664
|
check: () => check,
|
|
2608
2665
|
link: () => link,
|
|
2609
|
-
list: () => list$
|
|
2666
|
+
list: () => list$1,
|
|
2610
2667
|
reset: () => reset
|
|
2611
2668
|
}, 1), reset = {
|
|
2612
2669
|
type: ERouteType.Post,
|
|
@@ -2636,7 +2693,7 @@ var user = Type.Object({
|
|
|
2636
2693
|
version: Type.Optional(Type.String())
|
|
2637
2694
|
}) },
|
|
2638
2695
|
url: "/license/check"
|
|
2639
|
-
}, list$
|
|
2696
|
+
}, list$1 = {
|
|
2640
2697
|
type: ERouteType.Get,
|
|
2641
2698
|
response: { 200: Type.Array(Type.Object({
|
|
2642
2699
|
id: Type.String(),
|
|
@@ -2696,14 +2753,13 @@ var user = Type.Object({
|
|
|
2696
2753
|
}, project_exports = /* @__PURE__ */ __export({
|
|
2697
2754
|
create: () => create,
|
|
2698
2755
|
edit: () => edit,
|
|
2699
|
-
list: () => list
|
|
2756
|
+
list: () => list,
|
|
2700
2757
|
proxy: () => proxy,
|
|
2701
|
-
remove: () => remove
|
|
2758
|
+
remove: () => remove,
|
|
2702
2759
|
star: () => star
|
|
2703
2760
|
}, 1), create = {
|
|
2704
2761
|
type: ERouteType.Post,
|
|
2705
2762
|
body: Type.Object({
|
|
2706
|
-
title: Type.String(),
|
|
2707
2763
|
icon: Type.String(),
|
|
2708
2764
|
template: Type.Union([
|
|
2709
2765
|
Type.Literal("default"),
|
|
@@ -2712,14 +2768,15 @@ var user = Type.Object({
|
|
|
2712
2768
|
Type.Literal("backend"),
|
|
2713
2769
|
Type.Literal("database"),
|
|
2714
2770
|
Type.Literal("testing")
|
|
2715
|
-
])
|
|
2771
|
+
]),
|
|
2772
|
+
title: Type.String()
|
|
2716
2773
|
}),
|
|
2717
2774
|
response: { 200: Type.Object({
|
|
2718
2775
|
message: Type.String(),
|
|
2719
2776
|
project: types.publicProject
|
|
2720
2777
|
}) },
|
|
2721
2778
|
url: "/project/create"
|
|
2722
|
-
}, list
|
|
2779
|
+
}, list = {
|
|
2723
2780
|
type: ERouteType.Get,
|
|
2724
2781
|
params: Type.Object({ type: Type.Union([
|
|
2725
2782
|
Type.Literal("mine"),
|
|
@@ -2735,7 +2792,7 @@ var user = Type.Object({
|
|
|
2735
2792
|
}),
|
|
2736
2793
|
response: { 200: Type.Object({ projects: Type.Array(types.publicProject) }) },
|
|
2737
2794
|
url: "/project/list/:type"
|
|
2738
|
-
}, remove
|
|
2795
|
+
}, remove = {
|
|
2739
2796
|
type: ERouteType.Delete,
|
|
2740
2797
|
params: Type.Object({ id: Type.String() }),
|
|
2741
2798
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
@@ -2797,62 +2854,6 @@ var user = Type.Object({
|
|
|
2797
2854
|
}),
|
|
2798
2855
|
response: { 200: Type.Object({ message: Type.String() }) },
|
|
2799
2856
|
url: "/script/:id/:script/update"
|
|
2800
|
-
}, file_exports = /* @__PURE__ */ __export({
|
|
2801
|
-
list: () => list,
|
|
2802
|
-
remove: () => remove,
|
|
2803
|
-
status: () => status,
|
|
2804
|
-
upload: () => upload
|
|
2805
|
-
}, 1), upload = {
|
|
2806
|
-
type: ERouteType.Post,
|
|
2807
|
-
body: Type.Object({
|
|
2808
|
-
file: Type.Object({
|
|
2809
|
-
filename: Type.String(),
|
|
2810
|
-
mimetype: Type.String()
|
|
2811
|
-
}),
|
|
2812
|
-
project: Type.Object({ value: Type.String() })
|
|
2813
|
-
}),
|
|
2814
|
-
multipart: !0,
|
|
2815
|
-
response: { 200: Type.Object({
|
|
2816
|
-
name: Type.String(),
|
|
2817
|
-
mimeType: Type.String(),
|
|
2818
|
-
target: Type.String()
|
|
2819
|
-
}) },
|
|
2820
|
-
url: "/file/upload"
|
|
2821
|
-
}, remove = {
|
|
2822
|
-
type: ERouteType.Post,
|
|
2823
|
-
body: Type.Object({ target: Type.String() }),
|
|
2824
|
-
response: { 200: Type.Object({ message: Type.String() }) },
|
|
2825
|
-
url: "/file/remove"
|
|
2826
|
-
}, list = {
|
|
2827
|
-
type: ERouteType.Get,
|
|
2828
|
-
querystring: Type.Object({
|
|
2829
|
-
limit: Type.Optional(Type.String()),
|
|
2830
|
-
search: Type.Optional(Type.String()),
|
|
2831
|
-
skip: Type.Optional(Type.String())
|
|
2832
|
-
}),
|
|
2833
|
-
response: { 200: Type.Object({
|
|
2834
|
-
result: Type.Array(Type.Object({
|
|
2835
|
-
id: Type.String(),
|
|
2836
|
-
name: Type.String(),
|
|
2837
|
-
mimeType: Type.String(),
|
|
2838
|
-
project: Type.Object({
|
|
2839
|
-
id: Type.String(),
|
|
2840
|
-
name: Type.String(),
|
|
2841
|
-
icon: Type.String()
|
|
2842
|
-
}),
|
|
2843
|
-
size: Type.Number(),
|
|
2844
|
-
target: Type.String()
|
|
2845
|
-
})),
|
|
2846
|
-
total: Type.Number()
|
|
2847
|
-
}) },
|
|
2848
|
-
url: "/file/list"
|
|
2849
|
-
}, status = {
|
|
2850
|
-
type: ERouteType.Get,
|
|
2851
|
-
response: { 200: Type.Object({
|
|
2852
|
-
limit: Type.Number(),
|
|
2853
|
-
total: Type.Number()
|
|
2854
|
-
}) },
|
|
2855
|
-
url: "/file/status"
|
|
2856
2857
|
}, turnstile_exports = /* @__PURE__ */ __export({ tick: () => tick }, 1), tick = {
|
|
2857
2858
|
type: ERouteType.Post,
|
|
2858
2859
|
body: Type.Object({
|
package/dist/preview.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luna-park/plugin",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Plugin helper for Luna Park.",
|
|
6
6
|
"homepage": "https://luna-park.app",
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
"@fastify/cors": "^11.2.0",
|
|
40
40
|
"@fastify/static": "^9.0.0",
|
|
41
41
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
42
|
-
"@luna-park/eslint-config": "^1.2.
|
|
43
|
-
"@microsoft/api-extractor": "^7.57.
|
|
44
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
45
|
-
"@vitest/ui": "^4.
|
|
46
|
-
"eslint": "^10.0
|
|
47
|
-
"fastify": "^5.
|
|
42
|
+
"@luna-park/eslint-config": "^1.2.4",
|
|
43
|
+
"@microsoft/api-extractor": "^7.57.7",
|
|
44
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
45
|
+
"@vitest/ui": "^4.1.2",
|
|
46
|
+
"eslint": "^10.1.0",
|
|
47
|
+
"fastify": "^5.8.4",
|
|
48
48
|
"rimraf": "^6.1.3",
|
|
49
|
-
"typescript": "^
|
|
50
|
-
"typescript-eslint": "^8.
|
|
49
|
+
"typescript": "^6.0.2",
|
|
50
|
+
"typescript-eslint": "^8.58.0",
|
|
51
51
|
"unplugin-dts": "1.0.0-beta.6",
|
|
52
|
-
"vite": "
|
|
53
|
-
"vitest": "^4.
|
|
54
|
-
"vue": "^3.5.
|
|
55
|
-
"@luna-park/logicnodes": "^2.0.0",
|
|
52
|
+
"vite": "npm:rolldown-vite@7.3.1",
|
|
53
|
+
"vitest": "^4.1.2",
|
|
54
|
+
"vue": "^3.5.31",
|
|
56
55
|
"@luna-park/shared": "^1.0.0",
|
|
56
|
+
"@luna-park/logicnodes": "^2.0.0",
|
|
57
57
|
"@luna-park/utils": "^2.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|