@hot-updater/supabase 0.17.0 → 0.18.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/iac/index.cjs +7771 -8209
- package/dist/iac/index.d.cts +25 -21
- package/dist/iac/index.d.ts +25 -21
- package/dist/iac/index.js +7772 -8211
- package/dist/index.cjs +1445 -255
- package/dist/index.d.cts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +1428 -225
- package/package.json +6 -6
- package/supabase/edge-functions/index.ts +331 -0
- package/supabase/migrations/20250516000000_hot-updater_0.18.0.sql +194 -0
- package/supabase/functions/update-server/index.ts +0 -140
package/dist/iac/index.d.cts
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { BuildType } from
|
|
1
|
+
import { BuildType } from "@hot-updater/plugin-core";
|
|
2
2
|
|
|
3
|
+
//#region iac/supabaseApi.d.ts
|
|
3
4
|
interface SupabaseApi {
|
|
4
|
-
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
isPublic: boolean;
|
|
8
|
-
createdAt: string;
|
|
9
|
-
}[]>;
|
|
10
|
-
createBucket: (bucketName: string, options: {
|
|
11
|
-
public: boolean;
|
|
12
|
-
}) => Promise<{
|
|
13
|
-
name: string;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare const selectProject: () => Promise<{
|
|
5
|
+
listBuckets: () => Promise<{
|
|
18
6
|
id: string;
|
|
19
7
|
name: string;
|
|
20
|
-
|
|
8
|
+
isPublic: boolean;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
}[]>;
|
|
11
|
+
createBucket: (bucketName: string, options: {
|
|
12
|
+
public: boolean;
|
|
13
|
+
}) => Promise<{
|
|
14
|
+
name: string;
|
|
15
|
+
}>;
|
|
16
|
+
} //#endregion
|
|
17
|
+
//#region iac/index.d.ts
|
|
18
|
+
declare const selectProject: () => Promise<{
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
region: string;
|
|
21
22
|
}>;
|
|
22
23
|
declare const selectBucket: (api: SupabaseApi) => Promise<{
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
25
26
|
}>;
|
|
26
|
-
declare const runInit: ({
|
|
27
|
-
|
|
27
|
+
declare const runInit: ({
|
|
28
|
+
build
|
|
29
|
+
}: {
|
|
30
|
+
build: BuildType;
|
|
28
31
|
}) => Promise<void>;
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
//#endregion
|
|
34
|
+
export { runInit, selectBucket, selectProject };
|
package/dist/iac/index.d.ts
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
import { BuildType } from
|
|
1
|
+
import { BuildType } from "@hot-updater/plugin-core";
|
|
2
2
|
|
|
3
|
+
//#region iac/supabaseApi.d.ts
|
|
3
4
|
interface SupabaseApi {
|
|
4
|
-
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
isPublic: boolean;
|
|
8
|
-
createdAt: string;
|
|
9
|
-
}[]>;
|
|
10
|
-
createBucket: (bucketName: string, options: {
|
|
11
|
-
public: boolean;
|
|
12
|
-
}) => Promise<{
|
|
13
|
-
name: string;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare const selectProject: () => Promise<{
|
|
5
|
+
listBuckets: () => Promise<{
|
|
18
6
|
id: string;
|
|
19
7
|
name: string;
|
|
20
|
-
|
|
8
|
+
isPublic: boolean;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
}[]>;
|
|
11
|
+
createBucket: (bucketName: string, options: {
|
|
12
|
+
public: boolean;
|
|
13
|
+
}) => Promise<{
|
|
14
|
+
name: string;
|
|
15
|
+
}>;
|
|
16
|
+
} //#endregion
|
|
17
|
+
//#region iac/index.d.ts
|
|
18
|
+
declare const selectProject: () => Promise<{
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
region: string;
|
|
21
22
|
}>;
|
|
22
23
|
declare const selectBucket: (api: SupabaseApi) => Promise<{
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
25
26
|
}>;
|
|
26
|
-
declare const runInit: ({
|
|
27
|
-
|
|
27
|
+
declare const runInit: ({
|
|
28
|
+
build
|
|
29
|
+
}: {
|
|
30
|
+
build: BuildType;
|
|
28
31
|
}) => Promise<void>;
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
//#endregion
|
|
34
|
+
export { runInit, selectBucket, selectProject };
|