appwrite-utils-cli 0.9.97 → 0.9.981

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 (47) hide show
  1. package/README.md +2 -0
  2. package/dist/main.js +17 -17
  3. package/dist/migrations/dataLoader.d.ts +56 -39
  4. package/dist/migrations/dataLoader.js +15 -6
  5. package/dist/migrations/databases.js +2 -0
  6. package/dist/migrations/importController.js +1 -0
  7. package/dist/utils/helperFunctions.js +10 -3
  8. package/dist/utils/loadConfigs.js +4 -0
  9. package/package.json +1 -1
  10. package/src/main.ts +25 -24
  11. package/src/migrations/dataLoader.ts +29 -8
  12. package/src/migrations/databases.ts +1 -0
  13. package/src/migrations/importController.ts +1 -0
  14. package/src/utils/helperFunctions.ts +9 -3
  15. package/src/utils/loadConfigs.ts +4 -0
  16. package/src/utilsController.ts +0 -1
  17. package/tsconfig.json +1 -1
  18. package/dist/appwrite/appwriteConfig.d.ts +0 -3
  19. package/dist/appwrite/appwriteConfig.js +0 -40
  20. package/dist/appwrite/collections/Album.d.ts +0 -3
  21. package/dist/appwrite/collections/Album.js +0 -58
  22. package/dist/appwrite/collections/Artist.d.ts +0 -3
  23. package/dist/appwrite/collections/Artist.js +0 -65
  24. package/dist/appwrite/collections/Genre.d.ts +0 -3
  25. package/dist/appwrite/collections/Genre.js +0 -33
  26. package/dist/appwrite/collections/Playlist.d.ts +0 -3
  27. package/dist/appwrite/collections/Playlist.js +0 -55
  28. package/dist/appwrite/collections/Song.d.ts +0 -3
  29. package/dist/appwrite/collections/Song.js +0 -88
  30. package/dist/appwrite/collections/UserActivity.d.ts +0 -3
  31. package/dist/appwrite/collections/UserActivity.js +0 -51
  32. package/dist/appwrite/collections/UserData.d.ts +0 -3
  33. package/dist/appwrite/collections/UserData.js +0 -33
  34. package/dist/appwrite/schemas/album.d.ts +0 -32
  35. package/dist/appwrite/schemas/album.js +0 -12
  36. package/dist/appwrite/schemas/artist.d.ts +0 -35
  37. package/dist/appwrite/schemas/artist.js +0 -13
  38. package/dist/appwrite/schemas/genre.d.ts +0 -23
  39. package/dist/appwrite/schemas/genre.js +0 -9
  40. package/dist/appwrite/schemas/playlist.d.ts +0 -32
  41. package/dist/appwrite/schemas/playlist.js +0 -12
  42. package/dist/appwrite/schemas/song.d.ts +0 -47
  43. package/dist/appwrite/schemas/song.js +0 -17
  44. package/dist/appwrite/schemas/userActivity.d.ts +0 -29
  45. package/dist/appwrite/schemas/userActivity.js +0 -11
  46. package/dist/appwrite/schemas/userData.d.ts +0 -23
  47. package/dist/appwrite/schemas/userData.js +0 -9
@@ -1,3 +0,0 @@
1
- import type { CollectionCreate } from "appwrite-utils";
2
- declare const Artist: Partial<CollectionCreate>;
3
- export default Artist;
@@ -1,65 +0,0 @@
1
- const Artist = {
2
- $id: '01JASCJ8AZ9V1Y5758ZXCWEA8Q',
3
- documentSecurity: false,
4
- enabled: true,
5
- name: 'Artist',
6
- $permissions: [
7
- { permission: 'read', target: 'any' },
8
- { permission: 'create', target: 'users' },
9
- { permission: 'update', target: 'users' },
10
- { permission: 'delete', target: 'users' }
11
- ],
12
- attributes: [
13
- {
14
- key: 'name',
15
- type: 'string',
16
- size: 256,
17
- required: true,
18
- },
19
- {
20
- key: 'bio',
21
- type: 'string',
22
- size: 1024,
23
- required: false,
24
- },
25
- {
26
- key: 'genreIds',
27
- type: 'string',
28
- size: 36,
29
- array: true,
30
- required: false,
31
- },
32
- {
33
- key: 'profileImageId',
34
- type: 'string',
35
- size: 36,
36
- required: false,
37
- },
38
- {
39
- key: 'socialLinks',
40
- type: 'string',
41
- size: 256,
42
- array: true,
43
- required: false,
44
- },
45
- {
46
- key: 'userId',
47
- type: 'string',
48
- size: 36,
49
- required: true,
50
- },
51
- ],
52
- indexes: [
53
- {
54
- key: 'name',
55
- type: 'fulltext',
56
- attributes: ['name'],
57
- },
58
- {
59
- key: 'userId',
60
- type: 'key',
61
- attributes: ['userId'],
62
- },
63
- ],
64
- };
65
- export default Artist;
@@ -1,3 +0,0 @@
1
- import type { CollectionCreate } from "appwrite-utils";
2
- declare const Genre: Partial<CollectionCreate>;
3
- export default Genre;
@@ -1,33 +0,0 @@
1
- const Genre = {
2
- $id: '01JASDXQDKAPCQBDW3NR5D9SBX',
3
- documentSecurity: false,
4
- enabled: true,
5
- name: 'Genre',
6
- $permissions: [
7
- { permission: 'read', target: 'any' },
8
- { permission: 'create', target: 'users' },
9
- { permission: 'update', target: 'users' },
10
- { permission: 'delete', target: 'users' }
11
- ],
12
- attributes: [
13
- {
14
- key: 'name',
15
- type: 'string',
16
- size: 64,
17
- required: true,
18
- },
19
- {
20
- key: 'description',
21
- type: 'string',
22
- size: 256,
23
- },
24
- ],
25
- indexes: [
26
- {
27
- key: 'name',
28
- type: 'fulltext',
29
- attributes: ['name'],
30
- },
31
- ],
32
- };
33
- export default Genre;
@@ -1,3 +0,0 @@
1
- import type { CollectionCreate } from "appwrite-utils";
2
- declare const Playlist: Partial<CollectionCreate>;
3
- export default Playlist;
@@ -1,55 +0,0 @@
1
- const Playlist = {
2
- $id: '01JASDR2H46MJQJZNS65T9B138',
3
- documentSecurity: false,
4
- enabled: true,
5
- name: 'Playlist',
6
- $permissions: [
7
- { permission: 'read', target: 'any' },
8
- { permission: 'create', target: 'users' },
9
- { permission: 'update', target: 'users' },
10
- { permission: 'delete', target: 'users' }
11
- ],
12
- attributes: [
13
- {
14
- key: 'name',
15
- type: 'string',
16
- size: 256,
17
- required: true,
18
- },
19
- {
20
- key: 'userId',
21
- type: 'string',
22
- size: 36,
23
- required: true,
24
- },
25
- {
26
- key: 'description',
27
- type: 'string',
28
- size: 1024,
29
- },
30
- {
31
- key: 'isPublic',
32
- type: 'boolean',
33
- required: true,
34
- },
35
- {
36
- key: 'songIds',
37
- type: 'string',
38
- size: 36,
39
- array: true,
40
- },
41
- ],
42
- indexes: [
43
- {
44
- key: 'name',
45
- type: 'fulltext',
46
- attributes: ['name'],
47
- },
48
- {
49
- key: 'userId',
50
- type: 'key',
51
- attributes: ['userId'],
52
- },
53
- ],
54
- };
55
- export default Playlist;
@@ -1,3 +0,0 @@
1
- import type { CollectionCreate } from "appwrite-utils";
2
- declare const Song: Partial<CollectionCreate>;
3
- export default Song;
@@ -1,88 +0,0 @@
1
- const Song = {
2
- $id: '01JASCJBWTMDS9K742CKDYD7S3',
3
- documentSecurity: false,
4
- enabled: true,
5
- name: 'Song',
6
- $permissions: [
7
- { permission: 'read', target: 'any' },
8
- { permission: 'create', target: 'users' },
9
- { permission: 'update', target: 'users' },
10
- { permission: 'delete', target: 'users' }
11
- ],
12
- attributes: [
13
- {
14
- key: 'title',
15
- type: 'string',
16
- size: 256,
17
- required: true,
18
- },
19
- {
20
- key: 'artistId',
21
- type: 'string',
22
- size: 36,
23
- required: true,
24
- },
25
- {
26
- key: 'featuredArtistIds',
27
- type: 'string',
28
- size: 36,
29
- array: true,
30
- },
31
- {
32
- key: 'albumId',
33
- type: 'string',
34
- size: 36,
35
- },
36
- {
37
- key: 'duration',
38
- type: 'float',
39
- min: 0,
40
- required: true,
41
- },
42
- {
43
- key: 'genre',
44
- type: 'string',
45
- size: 64,
46
- },
47
- {
48
- key: 'releaseDate',
49
- type: 'float',
50
- min: 0,
51
- required: true,
52
- },
53
- {
54
- key: 'audioFileId',
55
- type: 'string',
56
- size: 36,
57
- required: true,
58
- },
59
- {
60
- key: 'coverArtId',
61
- type: 'string',
62
- size: 36,
63
- },
64
- {
65
- key: 'lyrics',
66
- type: 'string',
67
- size: 100000,
68
- },
69
- ],
70
- indexes: [
71
- {
72
- key: 'title',
73
- type: 'fulltext',
74
- attributes: ['title'],
75
- },
76
- {
77
- key: 'artistId',
78
- type: 'key',
79
- attributes: ['artistId'],
80
- },
81
- {
82
- key: 'albumId',
83
- type: 'key',
84
- attributes: ['albumId'],
85
- },
86
- ],
87
- };
88
- export default Song;
@@ -1,3 +0,0 @@
1
- import type { CollectionCreate } from "appwrite-utils";
2
- declare const UserActivity: Partial<CollectionCreate>;
3
- export default UserActivity;
@@ -1,51 +0,0 @@
1
- const UserActivity = {
2
- $id: '01JASDSEY956GTW8K4JWRV10G8',
3
- documentSecurity: false,
4
- enabled: true,
5
- name: 'UserActivity',
6
- $permissions: [
7
- { permission: 'read', target: 'users' },
8
- { permission: 'create', target: 'users' },
9
- { permission: 'update', target: 'users' },
10
- { permission: 'delete', target: 'users' }
11
- ],
12
- attributes: [
13
- {
14
- key: 'userId',
15
- type: 'string',
16
- size: 36,
17
- required: true,
18
- },
19
- {
20
- key: 'activityType',
21
- type: 'string',
22
- size: 64,
23
- required: true,
24
- },
25
- {
26
- key: 'targetId',
27
- type: 'string',
28
- size: 36,
29
- required: true,
30
- },
31
- {
32
- key: 'timestamp',
33
- type: 'float',
34
- min: 0,
35
- required: true,
36
- },
37
- ],
38
- indexes: [
39
- {
40
- key: 'userId',
41
- type: 'key',
42
- attributes: ['userId'],
43
- },
44
- {
45
- key: 'activityType',
46
- type: 'key',
47
- attributes: ['activityType'],
48
- },
49
- ],
50
- };
51
- export default UserActivity;
@@ -1,3 +0,0 @@
1
- import type { CollectionCreate } from "appwrite-utils";
2
- declare const UserData: Partial<CollectionCreate>;
3
- export default UserData;
@@ -1,33 +0,0 @@
1
- const UserData = {
2
- $id: '01JASCH88CF1CVXBXY488WFF2Z',
3
- documentSecurity: false,
4
- enabled: true,
5
- name: 'UserData',
6
- $permissions: [
7
- { permission: 'read', target: 'any' },
8
- { permission: 'create', target: 'any' },
9
- { permission: 'update', target: 'label:admin' },
10
- { permission: 'delete', target: 'label:admin' }
11
- ],
12
- attributes: [
13
- {
14
- key: 'address',
15
- type: 'string',
16
- size: 256,
17
- required: true
18
- },
19
- {
20
- key: 'bio',
21
- type: 'string',
22
- size: 1024,
23
- }
24
- ],
25
- indexes: [
26
- {
27
- key: 'UniqueAddress',
28
- type: 'unique',
29
- attributes: ['address']
30
- }
31
- ],
32
- };
33
- export default UserData;
@@ -1,32 +0,0 @@
1
- import { z } from "zod";
2
- export declare const AlbumSchemaBase: z.ZodObject<{
3
- $id: z.ZodOptional<z.ZodString>;
4
- $createdAt: z.ZodOptional<z.ZodString>;
5
- $updatedAt: z.ZodOptional<z.ZodString>;
6
- title: z.ZodString;
7
- artistId: z.ZodString;
8
- releaseDate: z.ZodNumber;
9
- coverArtId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- genreIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
11
- }, "strip", z.ZodTypeAny, {
12
- title: string;
13
- artistId: string;
14
- releaseDate: number;
15
- $id?: string | undefined;
16
- $createdAt?: string | undefined;
17
- $updatedAt?: string | undefined;
18
- coverArtId?: string | null | undefined;
19
- genreIds?: string[] | null | undefined;
20
- }, {
21
- title: string;
22
- artistId: string;
23
- releaseDate: number;
24
- $id?: string | undefined;
25
- $createdAt?: string | undefined;
26
- $updatedAt?: string | undefined;
27
- coverArtId?: string | null | undefined;
28
- genreIds?: string[] | null | undefined;
29
- }>;
30
- export type AlbumBase = z.infer<typeof AlbumSchemaBase>;
31
- export declare const AlbumSchema: z.ZodType<AlbumBase>;
32
- export type Album = z.infer<typeof AlbumSchema>;
@@ -1,12 +0,0 @@
1
- import { z } from "zod";
2
- export const AlbumSchemaBase = z.object({
3
- $id: z.string().optional(),
4
- $createdAt: z.string().optional(),
5
- $updatedAt: z.string().optional(),
6
- title: z.string().max(256, "Maximum length of 256 characters exceeded"),
7
- artistId: z.string().max(36, "Maximum length of 36 characters exceeded"),
8
- releaseDate: z.number().min(0, "Minimum value of 0 not met"),
9
- coverArtId: z.string().max(36, "Maximum length of 36 characters exceeded").nullish(),
10
- genreIds: z.array(z.string().max(36, "Maximum length of 36 characters exceeded")).nullish(),
11
- });
12
- export const AlbumSchema = AlbumSchemaBase;
@@ -1,35 +0,0 @@
1
- import { z } from "zod";
2
- export declare const ArtistSchemaBase: z.ZodObject<{
3
- $id: z.ZodOptional<z.ZodString>;
4
- $createdAt: z.ZodOptional<z.ZodString>;
5
- $updatedAt: z.ZodOptional<z.ZodString>;
6
- name: z.ZodString;
7
- bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- genreIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
9
- profileImageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- socialLinks: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
11
- userId: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- name: string;
14
- userId: string;
15
- $id?: string | undefined;
16
- $createdAt?: string | undefined;
17
- $updatedAt?: string | undefined;
18
- genreIds?: string[] | null | undefined;
19
- bio?: string | null | undefined;
20
- profileImageId?: string | null | undefined;
21
- socialLinks?: string[] | null | undefined;
22
- }, {
23
- name: string;
24
- userId: string;
25
- $id?: string | undefined;
26
- $createdAt?: string | undefined;
27
- $updatedAt?: string | undefined;
28
- genreIds?: string[] | null | undefined;
29
- bio?: string | null | undefined;
30
- profileImageId?: string | null | undefined;
31
- socialLinks?: string[] | null | undefined;
32
- }>;
33
- export type ArtistBase = z.infer<typeof ArtistSchemaBase>;
34
- export declare const ArtistSchema: z.ZodType<ArtistBase>;
35
- export type Artist = z.infer<typeof ArtistSchema>;
@@ -1,13 +0,0 @@
1
- import { z } from "zod";
2
- export const ArtistSchemaBase = z.object({
3
- $id: z.string().optional(),
4
- $createdAt: z.string().optional(),
5
- $updatedAt: z.string().optional(),
6
- name: z.string().max(256, "Maximum length of 256 characters exceeded"),
7
- bio: z.string().max(1024, "Maximum length of 1024 characters exceeded").nullish(),
8
- genreIds: z.array(z.string().max(36, "Maximum length of 36 characters exceeded")).nullish(),
9
- profileImageId: z.string().max(36, "Maximum length of 36 characters exceeded").nullish(),
10
- socialLinks: z.array(z.string().max(256, "Maximum length of 256 characters exceeded")).nullish(),
11
- userId: z.string().max(36, "Maximum length of 36 characters exceeded"),
12
- });
13
- export const ArtistSchema = ArtistSchemaBase;
@@ -1,23 +0,0 @@
1
- import { z } from "zod";
2
- export declare const GenreSchemaBase: z.ZodObject<{
3
- $id: z.ZodOptional<z.ZodString>;
4
- $createdAt: z.ZodOptional<z.ZodString>;
5
- $updatedAt: z.ZodOptional<z.ZodString>;
6
- name: z.ZodString;
7
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- }, "strip", z.ZodTypeAny, {
9
- name: string;
10
- $id?: string | undefined;
11
- $createdAt?: string | undefined;
12
- $updatedAt?: string | undefined;
13
- description?: string | null | undefined;
14
- }, {
15
- name: string;
16
- $id?: string | undefined;
17
- $createdAt?: string | undefined;
18
- $updatedAt?: string | undefined;
19
- description?: string | null | undefined;
20
- }>;
21
- export type GenreBase = z.infer<typeof GenreSchemaBase>;
22
- export declare const GenreSchema: z.ZodType<GenreBase>;
23
- export type Genre = z.infer<typeof GenreSchema>;
@@ -1,9 +0,0 @@
1
- import { z } from "zod";
2
- export const GenreSchemaBase = z.object({
3
- $id: z.string().optional(),
4
- $createdAt: z.string().optional(),
5
- $updatedAt: z.string().optional(),
6
- name: z.string().max(64, "Maximum length of 64 characters exceeded"),
7
- description: z.string().max(256, "Maximum length of 256 characters exceeded").nullish(),
8
- });
9
- export const GenreSchema = GenreSchemaBase;
@@ -1,32 +0,0 @@
1
- import { z } from "zod";
2
- export declare const PlaylistSchemaBase: z.ZodObject<{
3
- $id: z.ZodOptional<z.ZodString>;
4
- $createdAt: z.ZodOptional<z.ZodString>;
5
- $updatedAt: z.ZodOptional<z.ZodString>;
6
- name: z.ZodString;
7
- userId: z.ZodString;
8
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
- isPublic: z.ZodBoolean;
10
- songIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
11
- }, "strip", z.ZodTypeAny, {
12
- name: string;
13
- userId: string;
14
- isPublic: boolean;
15
- $id?: string | undefined;
16
- $createdAt?: string | undefined;
17
- $updatedAt?: string | undefined;
18
- description?: string | null | undefined;
19
- songIds?: string[] | null | undefined;
20
- }, {
21
- name: string;
22
- userId: string;
23
- isPublic: boolean;
24
- $id?: string | undefined;
25
- $createdAt?: string | undefined;
26
- $updatedAt?: string | undefined;
27
- description?: string | null | undefined;
28
- songIds?: string[] | null | undefined;
29
- }>;
30
- export type PlaylistBase = z.infer<typeof PlaylistSchemaBase>;
31
- export declare const PlaylistSchema: z.ZodType<PlaylistBase>;
32
- export type Playlist = z.infer<typeof PlaylistSchema>;
@@ -1,12 +0,0 @@
1
- import { z } from "zod";
2
- export const PlaylistSchemaBase = z.object({
3
- $id: z.string().optional(),
4
- $createdAt: z.string().optional(),
5
- $updatedAt: z.string().optional(),
6
- name: z.string().max(256, "Maximum length of 256 characters exceeded"),
7
- userId: z.string().max(36, "Maximum length of 36 characters exceeded"),
8
- description: z.string().max(1024, "Maximum length of 1024 characters exceeded").nullish(),
9
- isPublic: z.boolean(),
10
- songIds: z.array(z.string().max(36, "Maximum length of 36 characters exceeded")).nullish(),
11
- });
12
- export const PlaylistSchema = PlaylistSchemaBase;
@@ -1,47 +0,0 @@
1
- import { z } from "zod";
2
- export declare const SongSchemaBase: z.ZodObject<{
3
- $id: z.ZodOptional<z.ZodString>;
4
- $createdAt: z.ZodOptional<z.ZodString>;
5
- $updatedAt: z.ZodOptional<z.ZodString>;
6
- title: z.ZodString;
7
- artistId: z.ZodString;
8
- featuredArtistIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
9
- albumId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
- duration: z.ZodNumber;
11
- genre: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- releaseDate: z.ZodNumber;
13
- audioFileId: z.ZodString;
14
- coverArtId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- lyrics: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- }, "strip", z.ZodTypeAny, {
17
- title: string;
18
- artistId: string;
19
- releaseDate: number;
20
- duration: number;
21
- audioFileId: string;
22
- $id?: string | undefined;
23
- $createdAt?: string | undefined;
24
- $updatedAt?: string | undefined;
25
- coverArtId?: string | null | undefined;
26
- featuredArtistIds?: string[] | null | undefined;
27
- albumId?: string | null | undefined;
28
- genre?: string | null | undefined;
29
- lyrics?: string | null | undefined;
30
- }, {
31
- title: string;
32
- artistId: string;
33
- releaseDate: number;
34
- duration: number;
35
- audioFileId: string;
36
- $id?: string | undefined;
37
- $createdAt?: string | undefined;
38
- $updatedAt?: string | undefined;
39
- coverArtId?: string | null | undefined;
40
- featuredArtistIds?: string[] | null | undefined;
41
- albumId?: string | null | undefined;
42
- genre?: string | null | undefined;
43
- lyrics?: string | null | undefined;
44
- }>;
45
- export type SongBase = z.infer<typeof SongSchemaBase>;
46
- export declare const SongSchema: z.ZodType<SongBase>;
47
- export type Song = z.infer<typeof SongSchema>;
@@ -1,17 +0,0 @@
1
- import { z } from "zod";
2
- export const SongSchemaBase = z.object({
3
- $id: z.string().optional(),
4
- $createdAt: z.string().optional(),
5
- $updatedAt: z.string().optional(),
6
- title: z.string().max(256, "Maximum length of 256 characters exceeded"),
7
- artistId: z.string().max(36, "Maximum length of 36 characters exceeded"),
8
- featuredArtistIds: z.array(z.string().max(36, "Maximum length of 36 characters exceeded")).nullish(),
9
- albumId: z.string().max(36, "Maximum length of 36 characters exceeded").nullish(),
10
- duration: z.number().min(0, "Minimum value of 0 not met"),
11
- genre: z.string().max(64, "Maximum length of 64 characters exceeded").nullish(),
12
- releaseDate: z.number().min(0, "Minimum value of 0 not met"),
13
- audioFileId: z.string().max(36, "Maximum length of 36 characters exceeded"),
14
- coverArtId: z.string().max(36, "Maximum length of 36 characters exceeded").nullish(),
15
- lyrics: z.string().max(100000, "Maximum length of 100000 characters exceeded").nullish(),
16
- });
17
- export const SongSchema = SongSchemaBase;
@@ -1,29 +0,0 @@
1
- import { z } from "zod";
2
- export declare const UserActivitySchemaBase: z.ZodObject<{
3
- $id: z.ZodOptional<z.ZodString>;
4
- $createdAt: z.ZodOptional<z.ZodString>;
5
- $updatedAt: z.ZodOptional<z.ZodString>;
6
- userId: z.ZodString;
7
- activityType: z.ZodString;
8
- targetId: z.ZodString;
9
- timestamp: z.ZodNumber;
10
- }, "strip", z.ZodTypeAny, {
11
- userId: string;
12
- activityType: string;
13
- targetId: string;
14
- timestamp: number;
15
- $id?: string | undefined;
16
- $createdAt?: string | undefined;
17
- $updatedAt?: string | undefined;
18
- }, {
19
- userId: string;
20
- activityType: string;
21
- targetId: string;
22
- timestamp: number;
23
- $id?: string | undefined;
24
- $createdAt?: string | undefined;
25
- $updatedAt?: string | undefined;
26
- }>;
27
- export type UserActivityBase = z.infer<typeof UserActivitySchemaBase>;
28
- export declare const UserActivitySchema: z.ZodType<UserActivityBase>;
29
- export type UserActivity = z.infer<typeof UserActivitySchema>;
@@ -1,11 +0,0 @@
1
- import { z } from "zod";
2
- export const UserActivitySchemaBase = z.object({
3
- $id: z.string().optional(),
4
- $createdAt: z.string().optional(),
5
- $updatedAt: z.string().optional(),
6
- userId: z.string().max(36, "Maximum length of 36 characters exceeded"),
7
- activityType: z.string().max(64, "Maximum length of 64 characters exceeded"),
8
- targetId: z.string().max(36, "Maximum length of 36 characters exceeded"),
9
- timestamp: z.number().min(0, "Minimum value of 0 not met"),
10
- });
11
- export const UserActivitySchema = UserActivitySchemaBase;
@@ -1,23 +0,0 @@
1
- import { z } from "zod";
2
- export declare const UserDataSchemaBase: z.ZodObject<{
3
- $id: z.ZodOptional<z.ZodString>;
4
- $createdAt: z.ZodOptional<z.ZodString>;
5
- $updatedAt: z.ZodOptional<z.ZodString>;
6
- address: z.ZodString;
7
- bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- }, "strip", z.ZodTypeAny, {
9
- address: string;
10
- $id?: string | undefined;
11
- $createdAt?: string | undefined;
12
- $updatedAt?: string | undefined;
13
- bio?: string | null | undefined;
14
- }, {
15
- address: string;
16
- $id?: string | undefined;
17
- $createdAt?: string | undefined;
18
- $updatedAt?: string | undefined;
19
- bio?: string | null | undefined;
20
- }>;
21
- export type UserDataBase = z.infer<typeof UserDataSchemaBase>;
22
- export declare const UserDataSchema: z.ZodType<UserDataBase>;
23
- export type UserData = z.infer<typeof UserDataSchema>;