create-disposabl-app 0.3.3 → 0.4.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.
Files changed (46) hide show
  1. package/dist/index.js +32 -6
  2. package/dist/templates/default/.github/workflows/pipeline.yml.example +55 -1
  3. package/dist/templates/default/apps/web/src/routeTree.gen.ts +49 -5
  4. package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.api-keys.tsx +154 -0
  5. package/dist/templates/default/apps/web/src/router/_authenticated/dashboard.tsx +23 -5
  6. package/dist/templates/default/bun.lock +319 -89
  7. package/dist/templates/default/disposabl.json +3 -1
  8. package/dist/templates/default/package.json +4 -2
  9. package/dist/templates/default/packages/backend/generate.ts +9 -0
  10. package/dist/templates/default/packages/cli/README.md +17 -0
  11. package/dist/templates/default/packages/cli/auth.ts +301 -0
  12. package/dist/templates/default/packages/cli/build.ts +9 -0
  13. package/dist/templates/default/packages/cli/index.ts +146 -0
  14. package/dist/templates/default/packages/cli/package.json +44 -0
  15. package/dist/templates/default/packages/cli/release.config.mjs +6 -0
  16. package/dist/templates/default/packages/cli/tsconfig.json +15 -0
  17. package/dist/templates/default/packages/disposabl-kit/package.json +3 -1
  18. package/dist/templates/default/packages/disposabl-kit/platforms.ts +4 -4
  19. package/dist/templates/default/packages/disposabl-kit/server/http.ts +24 -5
  20. package/dist/templates/default/packages/disposabl-kit/server/release/README.md +13 -0
  21. package/dist/templates/default/packages/disposabl-kit/server/release/clients.mjs +99 -0
  22. package/dist/templates/default/packages/sdk/README.md +20 -0
  23. package/dist/templates/default/packages/sdk/openapi-ts.config.ts +10 -0
  24. package/dist/templates/default/packages/sdk/package.json +40 -0
  25. package/dist/templates/default/packages/sdk/release.config.mjs +6 -0
  26. package/dist/templates/default/packages/sdk/src/config.ts +11 -0
  27. package/dist/templates/default/packages/sdk/src/generated/client/client.gen.ts +300 -0
  28. package/dist/templates/default/packages/sdk/src/generated/client/index.ts +27 -0
  29. package/dist/templates/default/packages/sdk/src/generated/client/types.gen.ts +238 -0
  30. package/dist/templates/default/packages/sdk/src/generated/client/utils.gen.ts +337 -0
  31. package/dist/templates/default/packages/sdk/src/generated/client.gen.ts +28 -0
  32. package/dist/templates/default/packages/sdk/src/generated/core/auth.gen.ts +49 -0
  33. package/dist/templates/default/packages/sdk/src/generated/core/bodySerializer.gen.ts +96 -0
  34. package/dist/templates/default/packages/sdk/src/generated/core/params.gen.ts +188 -0
  35. package/dist/templates/default/packages/sdk/src/generated/core/pathSerializer.gen.ts +186 -0
  36. package/dist/templates/default/packages/sdk/src/generated/core/queryKeySerializer.gen.ts +134 -0
  37. package/dist/templates/default/packages/sdk/src/generated/core/serverSentEvents.gen.ts +265 -0
  38. package/dist/templates/default/packages/sdk/src/generated/core/types.gen.ts +126 -0
  39. package/dist/templates/default/packages/sdk/src/generated/core/utils.gen.ts +146 -0
  40. package/dist/templates/default/packages/sdk/src/generated/index.ts +18 -0
  41. package/dist/templates/default/packages/sdk/src/generated/sdk.gen.ts +82 -0
  42. package/dist/templates/default/packages/sdk/src/generated/types.gen.ts +134 -0
  43. package/dist/templates/default/packages/sdk/src/index.ts +3 -0
  44. package/dist/templates/default/packages/sdk/tsconfig.build.json +10 -0
  45. package/dist/templates/default/packages/sdk/tsconfig.json +12 -0
  46. package/package.json +1 -1
@@ -0,0 +1,134 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ export type ClientOptions = {
4
+ baseUrl: `${string}://${string}` | (string & {});
5
+ };
6
+
7
+ export type TodosCreateData = {
8
+ body: {
9
+ title: string;
10
+ };
11
+ path?: never;
12
+ query?: never;
13
+ url: "/api/todos/create";
14
+ };
15
+
16
+ export type TodosCreateErrors = {
17
+ /**
18
+ * Invalid arguments
19
+ */
20
+ 400: unknown;
21
+ /**
22
+ * Authentication required
23
+ */
24
+ 401: unknown;
25
+ /**
26
+ * Insufficient scope
27
+ */
28
+ 403: unknown;
29
+ /**
30
+ * Internal error
31
+ */
32
+ 500: unknown;
33
+ };
34
+
35
+ export type TodosCreateResponses = {
36
+ /**
37
+ * ID of a document in "todos"
38
+ */
39
+ 200: string;
40
+ };
41
+
42
+ export type TodosCreateResponse =
43
+ TodosCreateResponses[keyof TodosCreateResponses];
44
+
45
+ export type TodosGetData = {
46
+ body?: never;
47
+ path?: never;
48
+ query: {
49
+ /**
50
+ * ID of a document in "todos"
51
+ */
52
+ id: string;
53
+ };
54
+ url: "/api/todos/get";
55
+ };
56
+
57
+ export type TodosGetErrors = {
58
+ /**
59
+ * Invalid arguments
60
+ */
61
+ 400: unknown;
62
+ /**
63
+ * Authentication required
64
+ */
65
+ 401: unknown;
66
+ /**
67
+ * Insufficient scope
68
+ */
69
+ 403: unknown;
70
+ /**
71
+ * Internal error
72
+ */
73
+ 500: unknown;
74
+ };
75
+
76
+ export type TodosGetResponses = {
77
+ /**
78
+ * Success
79
+ */
80
+ 200: {
81
+ userId: string;
82
+ title: string;
83
+ /**
84
+ * ID of a document in "todos"
85
+ */
86
+ _id: string;
87
+ _creationTime: number;
88
+ } | null;
89
+ };
90
+
91
+ export type TodosGetResponse = TodosGetResponses[keyof TodosGetResponses];
92
+
93
+ export type TodosListData = {
94
+ body?: never;
95
+ path?: never;
96
+ query?: never;
97
+ url: "/api/todos/list";
98
+ };
99
+
100
+ export type TodosListErrors = {
101
+ /**
102
+ * Invalid arguments
103
+ */
104
+ 400: unknown;
105
+ /**
106
+ * Authentication required
107
+ */
108
+ 401: unknown;
109
+ /**
110
+ * Insufficient scope
111
+ */
112
+ 403: unknown;
113
+ /**
114
+ * Internal error
115
+ */
116
+ 500: unknown;
117
+ };
118
+
119
+ export type TodosListResponses = {
120
+ /**
121
+ * Success
122
+ */
123
+ 200: Array<{
124
+ userId: string;
125
+ title: string;
126
+ /**
127
+ * ID of a document in "todos"
128
+ */
129
+ _id: string;
130
+ _creationTime: number;
131
+ }>;
132
+ };
133
+
134
+ export type TodosListResponse = TodosListResponses[keyof TodosListResponses];
@@ -0,0 +1,3 @@
1
+ export * from "./generated/sdk.gen.js";
2
+ export * from "./generated/types.gen.js";
3
+ export { client } from "./generated/client.gen.js";
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "noEmit": false,
5
+ "declaration": true,
6
+ "outDir": "dist",
7
+ "rootDir": "src"
8
+ },
9
+ "include": ["src/**/*.ts"]
10
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "strict": true,
7
+ "skipLibCheck": true,
8
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
9
+ "noEmit": true
10
+ },
11
+ "include": ["src/**/*.ts", "openapi-ts.config.ts"]
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-disposabl-app",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Create a Disposabl app",
5
5
  "type": "module",
6
6
  "license": "MIT",