@r2wa-org/eden 0.0.97 → 0.0.100

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 (89) hide show
  1. package/dist/admin/index.d.ts +1460 -86
  2. package/dist/asset/admin/router.d.ts +1 -13
  3. package/dist/asset-convert-product/admin/dto.schemas.d.ts +8 -0
  4. package/dist/asset-convert-product/admin/router.d.ts +25 -13
  5. package/dist/asset-convert-product/admin/service.d.ts +12 -12
  6. package/dist/auth/better-auth.d.ts +19 -1
  7. package/dist/auth/i18n/zh.d.ts +100 -0
  8. package/dist/auth/permissions.d.ts +16 -1
  9. package/dist/auth/roles.d.ts +45 -0
  10. package/dist/check-in/admin/reward.dto.schemas.d.ts +294 -0
  11. package/dist/check-in/admin/reward.router.d.ts +1192 -0
  12. package/dist/check-in/admin/reward.service.d.ts +479 -0
  13. package/dist/check-in/admin/router.d.ts +745 -0
  14. package/dist/check-in/errors/index.d.ts +9 -0
  15. package/dist/check-in/errors/locales/zh.d.ts +9 -0
  16. package/dist/check-in/index.d.ts +5 -0
  17. package/dist/check-in/internal/reward-config.service.d.ts +66 -0
  18. package/dist/check-in/permissions.d.ts +2 -0
  19. package/dist/check-in/reward.db.schemas.d.ts +896 -0
  20. package/dist/check-in/reward.schema.d.ts +477 -0
  21. package/dist/content-video/admin/dto.schemas.d.ts +128 -0
  22. package/dist/content-video/admin/router.d.ts +861 -0
  23. package/dist/content-video/admin/service.d.ts +211 -0
  24. package/dist/content-video/db.schemas.d.ts +486 -0
  25. package/dist/content-video/errors/index.d.ts +17 -0
  26. package/dist/content-video/errors/locales/zh.d.ts +16 -0
  27. package/dist/content-video/index.d.ts +8 -0
  28. package/dist/content-video/internal/service.d.ts +106 -0
  29. package/dist/content-video/permissions.d.ts +4 -0
  30. package/dist/content-video/schema.d.ts +257 -0
  31. package/dist/content-video/user/dto.schemas.d.ts +52 -0
  32. package/dist/content-video/user/router.d.ts +494 -0
  33. package/dist/content-video/user/service.d.ts +36 -0
  34. package/dist/db/schemas.d.ts +2 -0
  35. package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
  36. package/dist/file-storage/admin/router.d.ts +2 -2
  37. package/dist/file-storage/admin/service.d.ts +2 -2
  38. package/dist/file-storage/db.schemas.d.ts +4 -4
  39. package/dist/file-storage/internal/service.d.ts +1 -1
  40. package/dist/file-storage/s3.client.d.ts +22 -0
  41. package/dist/file-storage/schema.d.ts +3 -3
  42. package/dist/file-storage/share/dto.schemas.d.ts +1 -0
  43. package/dist/file-storage/share/router.d.ts +1 -1
  44. package/dist/file-storage/user/dto.schemas.d.ts +6 -4
  45. package/dist/file-storage/user/router.d.ts +3 -3
  46. package/dist/file-storage/user/service.d.ts +2 -2
  47. package/dist/index.d.ts +1875 -215
  48. package/dist/ledger/admin/dto.schemas.d.ts +8 -0
  49. package/dist/ledger/admin/router.d.ts +4 -4
  50. package/dist/ledger/db.schemas.d.ts +8 -8
  51. package/dist/ledger/schema.d.ts +6 -6
  52. package/dist/ledger/user/dto.schemas.d.ts +8 -8
  53. package/dist/ledger/user/router.d.ts +2 -2
  54. package/dist/ledger/user/service.d.ts +2 -2
  55. package/dist/ledger-account-type/admin/router.d.ts +1 -13
  56. package/dist/lock-activity/admin/dto.schemas.d.ts +16 -0
  57. package/dist/lock-activity/admin/participation.dto.schemas.d.ts +52 -0
  58. package/dist/lock-activity/admin/reward.service.d.ts +48 -0
  59. package/dist/lock-activity/admin/router.d.ts +127 -0
  60. package/dist/lock-activity/admin/service.d.ts +134 -8
  61. package/dist/lock-activity/constants.d.ts +2 -0
  62. package/dist/lock-activity/cron.d.ts +6 -0
  63. package/dist/lock-activity/db.schemas.d.ts +34 -0
  64. package/dist/lock-activity/errors/index.d.ts +3 -0
  65. package/dist/lock-activity/errors/locales/zh.d.ts +3 -0
  66. package/dist/lock-activity/internal/reward.service.d.ts +15 -0
  67. package/dist/lock-activity/internal/service.d.ts +41 -0
  68. package/dist/lock-activity/schema.d.ts +18 -0
  69. package/dist/lock-activity/shared.dto.schemas.d.ts +7 -0
  70. package/dist/lock-activity/user/dto.schemas.d.ts +24 -0
  71. package/dist/lock-activity/user/router.d.ts +16 -0
  72. package/dist/lock-activity/user/service.d.ts +39 -3
  73. package/dist/news/admin/dto.schemas.d.ts +26 -26
  74. package/dist/news/admin/router.d.ts +25 -25
  75. package/dist/news/admin/service.d.ts +4 -1
  76. package/dist/news/user/service.d.ts +2 -2
  77. package/dist/referral/admin/dto.schemas.d.ts +597 -0
  78. package/dist/referral/admin/router.d.ts +565 -0
  79. package/dist/referral/admin/service.d.ts +6 -0
  80. package/dist/referral/errors/index.d.ts +15 -0
  81. package/dist/referral/errors/locales/zh.d.ts +14 -0
  82. package/dist/referral/index.d.ts +10 -0
  83. package/dist/referral/internal/service.d.ts +23 -0
  84. package/dist/referral/user/dto.schemas.d.ts +602 -0
  85. package/dist/referral/user/router.d.ts +606 -0
  86. package/dist/referral/user/service.d.ts +21 -0
  87. package/dist/user/internal/avatar.service.d.ts +42 -0
  88. package/dist/withdraw/user/router.d.ts +1 -13
  89. package/package.json +1 -1
@@ -0,0 +1,211 @@
1
+ import type { ContentVideoAdminCreateInputType, ContentVideoAdminListQueryType, ContentVideoAdminUpdateInputType } from './dto.schemas';
2
+ export declare abstract class AdminContentVideoService {
3
+ private static formatAdminRow;
4
+ private static loadDetail;
5
+ private static normalizePublishedAt;
6
+ private static resolvePublishedAt;
7
+ static create(createdBy: string, input: ContentVideoAdminCreateInputType): Promise<{
8
+ videoUrl: string | undefined;
9
+ coverUrl: string | undefined;
10
+ videoFile: {
11
+ id: string;
12
+ fileName: string | null;
13
+ mimeType: string | null;
14
+ fileSize: number | null;
15
+ publicUrl: string | null;
16
+ } | undefined;
17
+ coverFile: {
18
+ id: string;
19
+ fileName: string | null;
20
+ mimeType: string | null;
21
+ fileSize: number | null;
22
+ publicUrl: string | null;
23
+ } | undefined;
24
+ coverFileId: string | null;
25
+ createdAt: Date;
26
+ createdBy: string;
27
+ deletedAt: Date | null;
28
+ description: string | null;
29
+ durationSeconds: number | null;
30
+ id: string;
31
+ isEnabled: boolean;
32
+ publishedAt: Date | null;
33
+ sortOrder: number;
34
+ status: "archived" | "draft" | "published";
35
+ title: string;
36
+ updatedAt: Date;
37
+ videoFileId: string;
38
+ }>;
39
+ static update(id: string, input: ContentVideoAdminUpdateInputType): Promise<{
40
+ videoUrl: string | undefined;
41
+ coverUrl: string | undefined;
42
+ videoFile: {
43
+ id: string;
44
+ fileName: string | null;
45
+ mimeType: string | null;
46
+ fileSize: number | null;
47
+ publicUrl: string | null;
48
+ } | undefined;
49
+ coverFile: {
50
+ id: string;
51
+ fileName: string | null;
52
+ mimeType: string | null;
53
+ fileSize: number | null;
54
+ publicUrl: string | null;
55
+ } | undefined;
56
+ coverFileId: string | null;
57
+ createdAt: Date;
58
+ createdBy: string;
59
+ deletedAt: Date | null;
60
+ description: string | null;
61
+ durationSeconds: number | null;
62
+ id: string;
63
+ isEnabled: boolean;
64
+ publishedAt: Date | null;
65
+ sortOrder: number;
66
+ status: "archived" | "draft" | "published";
67
+ title: string;
68
+ updatedAt: Date;
69
+ videoFileId: string;
70
+ }>;
71
+ static list(query?: ContentVideoAdminListQueryType): Promise<{
72
+ data: {
73
+ videoUrl: string | undefined;
74
+ coverUrl: string | undefined;
75
+ videoFile: {
76
+ id: string;
77
+ fileName: string | null;
78
+ mimeType: string | null;
79
+ fileSize: number | null;
80
+ publicUrl: string | null;
81
+ } | undefined;
82
+ coverFile: {
83
+ id: string;
84
+ fileName: string | null;
85
+ mimeType: string | null;
86
+ fileSize: number | null;
87
+ publicUrl: string | null;
88
+ } | undefined;
89
+ coverFileId: string | null;
90
+ createdAt: Date;
91
+ createdBy: string;
92
+ deletedAt: Date | null;
93
+ description: string | null;
94
+ durationSeconds: number | null;
95
+ id: string;
96
+ isEnabled: boolean;
97
+ publishedAt: Date | null;
98
+ sortOrder: number;
99
+ status: "archived" | "draft" | "published";
100
+ title: string;
101
+ updatedAt: Date;
102
+ videoFileId: string;
103
+ }[];
104
+ pagination: {
105
+ pageSize: number;
106
+ pageIndex: number;
107
+ total: number;
108
+ totalPages: number;
109
+ hasNextPage: boolean;
110
+ };
111
+ }>;
112
+ static get(id: string): Promise<{
113
+ videoUrl: string | undefined;
114
+ coverUrl: string | undefined;
115
+ videoFile: {
116
+ id: string;
117
+ fileName: string | null;
118
+ mimeType: string | null;
119
+ fileSize: number | null;
120
+ publicUrl: string | null;
121
+ } | undefined;
122
+ coverFile: {
123
+ id: string;
124
+ fileName: string | null;
125
+ mimeType: string | null;
126
+ fileSize: number | null;
127
+ publicUrl: string | null;
128
+ } | undefined;
129
+ coverFileId: string | null;
130
+ createdAt: Date;
131
+ createdBy: string;
132
+ deletedAt: Date | null;
133
+ description: string | null;
134
+ durationSeconds: number | null;
135
+ id: string;
136
+ isEnabled: boolean;
137
+ publishedAt: Date | null;
138
+ sortOrder: number;
139
+ status: "archived" | "draft" | "published";
140
+ title: string;
141
+ updatedAt: Date;
142
+ videoFileId: string;
143
+ }>;
144
+ static publish(id: string): Promise<{
145
+ videoUrl: string | undefined;
146
+ coverUrl: string | undefined;
147
+ videoFile: {
148
+ id: string;
149
+ fileName: string | null;
150
+ mimeType: string | null;
151
+ fileSize: number | null;
152
+ publicUrl: string | null;
153
+ } | undefined;
154
+ coverFile: {
155
+ id: string;
156
+ fileName: string | null;
157
+ mimeType: string | null;
158
+ fileSize: number | null;
159
+ publicUrl: string | null;
160
+ } | undefined;
161
+ coverFileId: string | null;
162
+ createdAt: Date;
163
+ createdBy: string;
164
+ deletedAt: Date | null;
165
+ description: string | null;
166
+ durationSeconds: number | null;
167
+ id: string;
168
+ isEnabled: boolean;
169
+ publishedAt: Date | null;
170
+ sortOrder: number;
171
+ status: "archived" | "draft" | "published";
172
+ title: string;
173
+ updatedAt: Date;
174
+ videoFileId: string;
175
+ }>;
176
+ static archive(id: string): Promise<{
177
+ videoUrl: string | undefined;
178
+ coverUrl: string | undefined;
179
+ videoFile: {
180
+ id: string;
181
+ fileName: string | null;
182
+ mimeType: string | null;
183
+ fileSize: number | null;
184
+ publicUrl: string | null;
185
+ } | undefined;
186
+ coverFile: {
187
+ id: string;
188
+ fileName: string | null;
189
+ mimeType: string | null;
190
+ fileSize: number | null;
191
+ publicUrl: string | null;
192
+ } | undefined;
193
+ coverFileId: string | null;
194
+ createdAt: Date;
195
+ createdBy: string;
196
+ deletedAt: Date | null;
197
+ description: string | null;
198
+ durationSeconds: number | null;
199
+ id: string;
200
+ isEnabled: boolean;
201
+ publishedAt: Date | null;
202
+ sortOrder: number;
203
+ status: "archived" | "draft" | "published";
204
+ title: string;
205
+ updatedAt: Date;
206
+ videoFileId: string;
207
+ }>;
208
+ static remove(id: string): Promise<{
209
+ success: boolean;
210
+ }>;
211
+ }
@@ -0,0 +1,486 @@
1
+ export declare const contentVideoSelectSchema: import("drizzle-typebox").BuildSchema<"select", {
2
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
3
+ name: "created_at";
4
+ tableName: "content_video";
5
+ dataType: "date";
6
+ columnType: "PgTimestamp";
7
+ data: Date;
8
+ driverParam: string;
9
+ notNull: true;
10
+ hasDefault: true;
11
+ isPrimaryKey: false;
12
+ isAutoincrement: false;
13
+ hasRuntimeDefault: false;
14
+ enumValues: undefined;
15
+ baseColumn: never;
16
+ identity: undefined;
17
+ generated: undefined;
18
+ }, {}, {}>;
19
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
20
+ name: "updated_at";
21
+ tableName: "content_video";
22
+ dataType: "date";
23
+ columnType: "PgTimestamp";
24
+ data: Date;
25
+ driverParam: string;
26
+ notNull: true;
27
+ hasDefault: true;
28
+ isPrimaryKey: false;
29
+ isAutoincrement: false;
30
+ hasRuntimeDefault: false;
31
+ enumValues: undefined;
32
+ baseColumn: never;
33
+ identity: undefined;
34
+ generated: undefined;
35
+ }, {}, {}>;
36
+ deletedAt: import("drizzle-orm/pg-core").PgColumn<{
37
+ name: "deleted_at";
38
+ tableName: "content_video";
39
+ dataType: "date";
40
+ columnType: "PgTimestamp";
41
+ data: Date;
42
+ driverParam: string;
43
+ notNull: false;
44
+ hasDefault: false;
45
+ isPrimaryKey: false;
46
+ isAutoincrement: false;
47
+ hasRuntimeDefault: false;
48
+ enumValues: undefined;
49
+ baseColumn: never;
50
+ identity: undefined;
51
+ generated: undefined;
52
+ }, {}, {}>;
53
+ id: import("drizzle-orm/pg-core").PgColumn<{
54
+ name: "id";
55
+ tableName: "content_video";
56
+ dataType: "string";
57
+ columnType: "PgUUID";
58
+ data: string;
59
+ driverParam: string;
60
+ notNull: true;
61
+ hasDefault: true;
62
+ isPrimaryKey: true;
63
+ isAutoincrement: false;
64
+ hasRuntimeDefault: false;
65
+ enumValues: undefined;
66
+ baseColumn: never;
67
+ identity: undefined;
68
+ generated: undefined;
69
+ }, {}, {}>;
70
+ title: import("drizzle-orm/pg-core").PgColumn<{
71
+ name: "title";
72
+ tableName: "content_video";
73
+ dataType: "string";
74
+ columnType: "PgVarchar";
75
+ data: string;
76
+ driverParam: string;
77
+ notNull: true;
78
+ hasDefault: false;
79
+ isPrimaryKey: false;
80
+ isAutoincrement: false;
81
+ hasRuntimeDefault: false;
82
+ enumValues: [string, ...string[]];
83
+ baseColumn: never;
84
+ identity: undefined;
85
+ generated: undefined;
86
+ }, {}, {
87
+ length: 255;
88
+ }>;
89
+ description: import("drizzle-orm/pg-core").PgColumn<{
90
+ name: "description";
91
+ tableName: "content_video";
92
+ dataType: "string";
93
+ columnType: "PgText";
94
+ data: string;
95
+ driverParam: string;
96
+ notNull: false;
97
+ hasDefault: false;
98
+ isPrimaryKey: false;
99
+ isAutoincrement: false;
100
+ hasRuntimeDefault: false;
101
+ enumValues: [string, ...string[]];
102
+ baseColumn: never;
103
+ identity: undefined;
104
+ generated: undefined;
105
+ }, {}, {}>;
106
+ videoFileId: import("drizzle-orm/pg-core").PgColumn<{
107
+ name: "video_file_id";
108
+ tableName: "content_video";
109
+ dataType: "string";
110
+ columnType: "PgText";
111
+ data: string;
112
+ driverParam: string;
113
+ notNull: true;
114
+ hasDefault: false;
115
+ isPrimaryKey: false;
116
+ isAutoincrement: false;
117
+ hasRuntimeDefault: false;
118
+ enumValues: [string, ...string[]];
119
+ baseColumn: never;
120
+ identity: undefined;
121
+ generated: undefined;
122
+ }, {}, {}>;
123
+ coverFileId: import("drizzle-orm/pg-core").PgColumn<{
124
+ name: "cover_file_id";
125
+ tableName: "content_video";
126
+ dataType: "string";
127
+ columnType: "PgText";
128
+ data: string;
129
+ driverParam: string;
130
+ notNull: false;
131
+ hasDefault: false;
132
+ isPrimaryKey: false;
133
+ isAutoincrement: false;
134
+ hasRuntimeDefault: false;
135
+ enumValues: [string, ...string[]];
136
+ baseColumn: never;
137
+ identity: undefined;
138
+ generated: undefined;
139
+ }, {}, {}>;
140
+ status: import("drizzle-orm/pg-core").PgColumn<{
141
+ name: "status";
142
+ tableName: "content_video";
143
+ dataType: "string";
144
+ columnType: "PgEnumColumn";
145
+ data: "archived" | "draft" | "published";
146
+ driverParam: string;
147
+ notNull: true;
148
+ hasDefault: true;
149
+ isPrimaryKey: false;
150
+ isAutoincrement: false;
151
+ hasRuntimeDefault: false;
152
+ enumValues: ["draft", "published", "archived"];
153
+ baseColumn: never;
154
+ identity: undefined;
155
+ generated: undefined;
156
+ }, {}, {}>;
157
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
158
+ name: "is_enabled";
159
+ tableName: "content_video";
160
+ dataType: "boolean";
161
+ columnType: "PgBoolean";
162
+ data: boolean;
163
+ driverParam: boolean;
164
+ notNull: true;
165
+ hasDefault: true;
166
+ isPrimaryKey: false;
167
+ isAutoincrement: false;
168
+ hasRuntimeDefault: false;
169
+ enumValues: undefined;
170
+ baseColumn: never;
171
+ identity: undefined;
172
+ generated: undefined;
173
+ }, {}, {}>;
174
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
175
+ name: "sort_order";
176
+ tableName: "content_video";
177
+ dataType: "number";
178
+ columnType: "PgInteger";
179
+ data: number;
180
+ driverParam: string | number;
181
+ notNull: true;
182
+ hasDefault: true;
183
+ isPrimaryKey: false;
184
+ isAutoincrement: false;
185
+ hasRuntimeDefault: false;
186
+ enumValues: undefined;
187
+ baseColumn: never;
188
+ identity: undefined;
189
+ generated: undefined;
190
+ }, {}, {}>;
191
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
192
+ name: "duration_seconds";
193
+ tableName: "content_video";
194
+ dataType: "number";
195
+ columnType: "PgInteger";
196
+ data: number;
197
+ driverParam: string | number;
198
+ notNull: false;
199
+ hasDefault: false;
200
+ isPrimaryKey: false;
201
+ isAutoincrement: false;
202
+ hasRuntimeDefault: false;
203
+ enumValues: undefined;
204
+ baseColumn: never;
205
+ identity: undefined;
206
+ generated: undefined;
207
+ }, {}, {}>;
208
+ publishedAt: import("drizzle-orm/pg-core").PgColumn<{
209
+ name: "published_at";
210
+ tableName: "content_video";
211
+ dataType: "date";
212
+ columnType: "PgTimestamp";
213
+ data: Date;
214
+ driverParam: string;
215
+ notNull: false;
216
+ hasDefault: false;
217
+ isPrimaryKey: false;
218
+ isAutoincrement: false;
219
+ hasRuntimeDefault: false;
220
+ enumValues: undefined;
221
+ baseColumn: never;
222
+ identity: undefined;
223
+ generated: undefined;
224
+ }, {}, {}>;
225
+ createdBy: import("drizzle-orm/pg-core").PgColumn<{
226
+ name: "created_by";
227
+ tableName: "content_video";
228
+ dataType: "string";
229
+ columnType: "PgText";
230
+ data: string;
231
+ driverParam: string;
232
+ notNull: true;
233
+ hasDefault: false;
234
+ isPrimaryKey: false;
235
+ isAutoincrement: false;
236
+ hasRuntimeDefault: false;
237
+ enumValues: [string, ...string[]];
238
+ baseColumn: never;
239
+ identity: undefined;
240
+ generated: undefined;
241
+ }, {}, {}>;
242
+ }, undefined>;
243
+ export type ContentVideoSelectSchemaType = typeof contentVideoSelectSchema.static;
244
+ export declare const contentVideoInsertSchema: import("drizzle-typebox").BuildSchema<"insert", {
245
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
246
+ name: "created_at";
247
+ tableName: "content_video";
248
+ dataType: "date";
249
+ columnType: "PgTimestamp";
250
+ data: Date;
251
+ driverParam: string;
252
+ notNull: true;
253
+ hasDefault: true;
254
+ isPrimaryKey: false;
255
+ isAutoincrement: false;
256
+ hasRuntimeDefault: false;
257
+ enumValues: undefined;
258
+ baseColumn: never;
259
+ identity: undefined;
260
+ generated: undefined;
261
+ }, {}, {}>;
262
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
263
+ name: "updated_at";
264
+ tableName: "content_video";
265
+ dataType: "date";
266
+ columnType: "PgTimestamp";
267
+ data: Date;
268
+ driverParam: string;
269
+ notNull: true;
270
+ hasDefault: true;
271
+ isPrimaryKey: false;
272
+ isAutoincrement: false;
273
+ hasRuntimeDefault: false;
274
+ enumValues: undefined;
275
+ baseColumn: never;
276
+ identity: undefined;
277
+ generated: undefined;
278
+ }, {}, {}>;
279
+ deletedAt: import("drizzle-orm/pg-core").PgColumn<{
280
+ name: "deleted_at";
281
+ tableName: "content_video";
282
+ dataType: "date";
283
+ columnType: "PgTimestamp";
284
+ data: Date;
285
+ driverParam: string;
286
+ notNull: false;
287
+ hasDefault: false;
288
+ isPrimaryKey: false;
289
+ isAutoincrement: false;
290
+ hasRuntimeDefault: false;
291
+ enumValues: undefined;
292
+ baseColumn: never;
293
+ identity: undefined;
294
+ generated: undefined;
295
+ }, {}, {}>;
296
+ id: import("drizzle-orm/pg-core").PgColumn<{
297
+ name: "id";
298
+ tableName: "content_video";
299
+ dataType: "string";
300
+ columnType: "PgUUID";
301
+ data: string;
302
+ driverParam: string;
303
+ notNull: true;
304
+ hasDefault: true;
305
+ isPrimaryKey: true;
306
+ isAutoincrement: false;
307
+ hasRuntimeDefault: false;
308
+ enumValues: undefined;
309
+ baseColumn: never;
310
+ identity: undefined;
311
+ generated: undefined;
312
+ }, {}, {}>;
313
+ title: import("drizzle-orm/pg-core").PgColumn<{
314
+ name: "title";
315
+ tableName: "content_video";
316
+ dataType: "string";
317
+ columnType: "PgVarchar";
318
+ data: string;
319
+ driverParam: string;
320
+ notNull: true;
321
+ hasDefault: false;
322
+ isPrimaryKey: false;
323
+ isAutoincrement: false;
324
+ hasRuntimeDefault: false;
325
+ enumValues: [string, ...string[]];
326
+ baseColumn: never;
327
+ identity: undefined;
328
+ generated: undefined;
329
+ }, {}, {
330
+ length: 255;
331
+ }>;
332
+ description: import("drizzle-orm/pg-core").PgColumn<{
333
+ name: "description";
334
+ tableName: "content_video";
335
+ dataType: "string";
336
+ columnType: "PgText";
337
+ data: string;
338
+ driverParam: string;
339
+ notNull: false;
340
+ hasDefault: false;
341
+ isPrimaryKey: false;
342
+ isAutoincrement: false;
343
+ hasRuntimeDefault: false;
344
+ enumValues: [string, ...string[]];
345
+ baseColumn: never;
346
+ identity: undefined;
347
+ generated: undefined;
348
+ }, {}, {}>;
349
+ videoFileId: import("drizzle-orm/pg-core").PgColumn<{
350
+ name: "video_file_id";
351
+ tableName: "content_video";
352
+ dataType: "string";
353
+ columnType: "PgText";
354
+ data: string;
355
+ driverParam: string;
356
+ notNull: true;
357
+ hasDefault: false;
358
+ isPrimaryKey: false;
359
+ isAutoincrement: false;
360
+ hasRuntimeDefault: false;
361
+ enumValues: [string, ...string[]];
362
+ baseColumn: never;
363
+ identity: undefined;
364
+ generated: undefined;
365
+ }, {}, {}>;
366
+ coverFileId: import("drizzle-orm/pg-core").PgColumn<{
367
+ name: "cover_file_id";
368
+ tableName: "content_video";
369
+ dataType: "string";
370
+ columnType: "PgText";
371
+ data: string;
372
+ driverParam: string;
373
+ notNull: false;
374
+ hasDefault: false;
375
+ isPrimaryKey: false;
376
+ isAutoincrement: false;
377
+ hasRuntimeDefault: false;
378
+ enumValues: [string, ...string[]];
379
+ baseColumn: never;
380
+ identity: undefined;
381
+ generated: undefined;
382
+ }, {}, {}>;
383
+ status: import("drizzle-orm/pg-core").PgColumn<{
384
+ name: "status";
385
+ tableName: "content_video";
386
+ dataType: "string";
387
+ columnType: "PgEnumColumn";
388
+ data: "archived" | "draft" | "published";
389
+ driverParam: string;
390
+ notNull: true;
391
+ hasDefault: true;
392
+ isPrimaryKey: false;
393
+ isAutoincrement: false;
394
+ hasRuntimeDefault: false;
395
+ enumValues: ["draft", "published", "archived"];
396
+ baseColumn: never;
397
+ identity: undefined;
398
+ generated: undefined;
399
+ }, {}, {}>;
400
+ isEnabled: import("drizzle-orm/pg-core").PgColumn<{
401
+ name: "is_enabled";
402
+ tableName: "content_video";
403
+ dataType: "boolean";
404
+ columnType: "PgBoolean";
405
+ data: boolean;
406
+ driverParam: boolean;
407
+ notNull: true;
408
+ hasDefault: true;
409
+ isPrimaryKey: false;
410
+ isAutoincrement: false;
411
+ hasRuntimeDefault: false;
412
+ enumValues: undefined;
413
+ baseColumn: never;
414
+ identity: undefined;
415
+ generated: undefined;
416
+ }, {}, {}>;
417
+ sortOrder: import("drizzle-orm/pg-core").PgColumn<{
418
+ name: "sort_order";
419
+ tableName: "content_video";
420
+ dataType: "number";
421
+ columnType: "PgInteger";
422
+ data: number;
423
+ driverParam: string | number;
424
+ notNull: true;
425
+ hasDefault: true;
426
+ isPrimaryKey: false;
427
+ isAutoincrement: false;
428
+ hasRuntimeDefault: false;
429
+ enumValues: undefined;
430
+ baseColumn: never;
431
+ identity: undefined;
432
+ generated: undefined;
433
+ }, {}, {}>;
434
+ durationSeconds: import("drizzle-orm/pg-core").PgColumn<{
435
+ name: "duration_seconds";
436
+ tableName: "content_video";
437
+ dataType: "number";
438
+ columnType: "PgInteger";
439
+ data: number;
440
+ driverParam: string | number;
441
+ notNull: false;
442
+ hasDefault: false;
443
+ isPrimaryKey: false;
444
+ isAutoincrement: false;
445
+ hasRuntimeDefault: false;
446
+ enumValues: undefined;
447
+ baseColumn: never;
448
+ identity: undefined;
449
+ generated: undefined;
450
+ }, {}, {}>;
451
+ publishedAt: import("drizzle-orm/pg-core").PgColumn<{
452
+ name: "published_at";
453
+ tableName: "content_video";
454
+ dataType: "date";
455
+ columnType: "PgTimestamp";
456
+ data: Date;
457
+ driverParam: string;
458
+ notNull: false;
459
+ hasDefault: false;
460
+ isPrimaryKey: false;
461
+ isAutoincrement: false;
462
+ hasRuntimeDefault: false;
463
+ enumValues: undefined;
464
+ baseColumn: never;
465
+ identity: undefined;
466
+ generated: undefined;
467
+ }, {}, {}>;
468
+ createdBy: import("drizzle-orm/pg-core").PgColumn<{
469
+ name: "created_by";
470
+ tableName: "content_video";
471
+ dataType: "string";
472
+ columnType: "PgText";
473
+ data: string;
474
+ driverParam: string;
475
+ notNull: true;
476
+ hasDefault: false;
477
+ isPrimaryKey: false;
478
+ isAutoincrement: false;
479
+ hasRuntimeDefault: false;
480
+ enumValues: [string, ...string[]];
481
+ baseColumn: never;
482
+ identity: undefined;
483
+ generated: undefined;
484
+ }, {}, {}>;
485
+ }, undefined>;
486
+ export type ContentVideoInsertSchemaType = typeof contentVideoInsertSchema.static;
@@ -0,0 +1,17 @@
1
+ export * from './locales/zh';
2
+ export declare const ContentVideoErrorCodes: {
3
+ readonly CONTENT_VIDEO_NOT_FOUND: 'CONTENT_VIDEO_NOT_FOUND';
4
+ readonly CONTENT_VIDEO_CREATE_FAILED: 'CONTENT_VIDEO_CREATE_FAILED';
5
+ readonly CONTENT_VIDEO_UPDATE_FAILED: 'CONTENT_VIDEO_UPDATE_FAILED';
6
+ readonly CONTENT_VIDEO_VIDEO_FILE_NOT_FOUND: 'CONTENT_VIDEO_VIDEO_FILE_NOT_FOUND';
7
+ readonly CONTENT_VIDEO_VIDEO_FILE_INVALID: 'CONTENT_VIDEO_VIDEO_FILE_INVALID';
8
+ readonly CONTENT_VIDEO_COVER_FILE_NOT_FOUND: 'CONTENT_VIDEO_COVER_FILE_NOT_FOUND';
9
+ readonly CONTENT_VIDEO_COVER_FILE_INVALID: 'CONTENT_VIDEO_COVER_FILE_INVALID';
10
+ readonly CONTENT_VIDEO_STATUS_INVALID: 'CONTENT_VIDEO_STATUS_INVALID';
11
+ };
12
+ type ContentVideoErrorCodesType = typeof ContentVideoErrorCodes;
13
+ export type ContentVideoErrorCode = keyof ContentVideoErrorCodesType;
14
+ declare module '../../error/errorcode' {
15
+ interface ErrorCodeRegistry extends ContentVideoErrorCodesType {
16
+ }
17
+ }