appwrite-utils-cli 0.0.286 → 0.9.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 (109) hide show
  1. package/README.md +122 -96
  2. package/dist/collections/attributes.d.ts +4 -0
  3. package/dist/collections/attributes.js +224 -0
  4. package/dist/collections/indexes.d.ts +4 -0
  5. package/dist/collections/indexes.js +27 -0
  6. package/dist/collections/methods.d.ts +16 -0
  7. package/dist/collections/methods.js +216 -0
  8. package/dist/databases/methods.d.ts +6 -0
  9. package/dist/databases/methods.js +33 -0
  10. package/dist/interactiveCLI.d.ts +19 -0
  11. package/dist/interactiveCLI.js +555 -0
  12. package/dist/main.js +227 -62
  13. package/dist/migrations/afterImportActions.js +37 -40
  14. package/dist/migrations/appwriteToX.d.ts +26 -25
  15. package/dist/migrations/appwriteToX.js +42 -6
  16. package/dist/migrations/attributes.js +21 -20
  17. package/dist/migrations/backup.d.ts +93 -87
  18. package/dist/migrations/collections.d.ts +6 -0
  19. package/dist/migrations/collections.js +149 -20
  20. package/dist/migrations/converters.d.ts +2 -18
  21. package/dist/migrations/converters.js +13 -2
  22. package/dist/migrations/dataLoader.d.ts +276 -161
  23. package/dist/migrations/dataLoader.js +535 -292
  24. package/dist/migrations/databases.js +8 -2
  25. package/dist/migrations/helper.d.ts +3 -0
  26. package/dist/migrations/helper.js +21 -0
  27. package/dist/migrations/importController.d.ts +5 -2
  28. package/dist/migrations/importController.js +125 -88
  29. package/dist/migrations/importDataActions.d.ts +9 -1
  30. package/dist/migrations/importDataActions.js +15 -3
  31. package/dist/migrations/indexes.js +3 -2
  32. package/dist/migrations/logging.js +20 -8
  33. package/dist/migrations/migrationHelper.d.ts +9 -4
  34. package/dist/migrations/migrationHelper.js +6 -5
  35. package/dist/migrations/openapi.d.ts +1 -1
  36. package/dist/migrations/openapi.js +33 -18
  37. package/dist/migrations/queue.js +3 -2
  38. package/dist/migrations/relationships.d.ts +2 -2
  39. package/dist/migrations/schemaStrings.js +53 -41
  40. package/dist/migrations/setupDatabase.d.ts +2 -4
  41. package/dist/migrations/setupDatabase.js +24 -105
  42. package/dist/migrations/storage.d.ts +3 -1
  43. package/dist/migrations/storage.js +110 -16
  44. package/dist/migrations/transfer.d.ts +30 -0
  45. package/dist/migrations/transfer.js +337 -0
  46. package/dist/migrations/users.d.ts +2 -1
  47. package/dist/migrations/users.js +78 -43
  48. package/dist/schemas/authUser.d.ts +2 -2
  49. package/dist/storage/methods.d.ts +15 -0
  50. package/dist/storage/methods.js +207 -0
  51. package/dist/storage/schemas.d.ts +687 -0
  52. package/dist/storage/schemas.js +175 -0
  53. package/dist/utils/getClientFromConfig.d.ts +4 -0
  54. package/dist/utils/getClientFromConfig.js +16 -0
  55. package/dist/utils/helperFunctions.d.ts +11 -1
  56. package/dist/utils/helperFunctions.js +38 -0
  57. package/dist/utils/retryFailedPromises.d.ts +2 -0
  58. package/dist/utils/retryFailedPromises.js +21 -0
  59. package/dist/utils/schemaStrings.d.ts +13 -0
  60. package/dist/utils/schemaStrings.js +403 -0
  61. package/dist/utils/setupFiles.js +110 -61
  62. package/dist/utilsController.d.ts +40 -22
  63. package/dist/utilsController.js +164 -84
  64. package/package.json +13 -15
  65. package/src/collections/attributes.ts +483 -0
  66. package/src/collections/indexes.ts +53 -0
  67. package/src/collections/methods.ts +331 -0
  68. package/src/databases/methods.ts +47 -0
  69. package/src/init.ts +64 -64
  70. package/src/interactiveCLI.ts +767 -0
  71. package/src/main.ts +292 -83
  72. package/src/migrations/afterImportActions.ts +553 -490
  73. package/src/migrations/appwriteToX.ts +237 -174
  74. package/src/migrations/attributes.ts +483 -422
  75. package/src/migrations/backup.ts +205 -205
  76. package/src/migrations/collections.ts +545 -300
  77. package/src/migrations/converters.ts +161 -150
  78. package/src/migrations/dataLoader.ts +1615 -1304
  79. package/src/migrations/databases.ts +44 -25
  80. package/src/migrations/dbHelpers.ts +92 -92
  81. package/src/migrations/helper.ts +40 -0
  82. package/src/migrations/importController.ts +448 -384
  83. package/src/migrations/importDataActions.ts +315 -307
  84. package/src/migrations/indexes.ts +40 -37
  85. package/src/migrations/logging.ts +29 -16
  86. package/src/migrations/migrationHelper.ts +207 -201
  87. package/src/migrations/openapi.ts +83 -70
  88. package/src/migrations/queue.ts +118 -119
  89. package/src/migrations/relationships.ts +324 -324
  90. package/src/migrations/schemaStrings.ts +472 -460
  91. package/src/migrations/setupDatabase.ts +118 -219
  92. package/src/migrations/storage.ts +538 -358
  93. package/src/migrations/transfer.ts +608 -0
  94. package/src/migrations/users.ts +362 -285
  95. package/src/migrations/validationRules.ts +63 -63
  96. package/src/schemas/authUser.ts +23 -23
  97. package/src/setup.ts +8 -8
  98. package/src/storage/methods.ts +371 -0
  99. package/src/storage/schemas.ts +205 -0
  100. package/src/types.ts +9 -9
  101. package/src/utils/getClientFromConfig.ts +17 -0
  102. package/src/utils/helperFunctions.ts +181 -127
  103. package/src/utils/index.ts +2 -2
  104. package/src/utils/loadConfigs.ts +59 -59
  105. package/src/utils/retryFailedPromises.ts +27 -0
  106. package/src/utils/schemaStrings.ts +473 -0
  107. package/src/utils/setupFiles.ts +228 -182
  108. package/src/utilsController.ts +325 -194
  109. package/tsconfig.json +37 -37
@@ -1,33 +1,51 @@
1
+ import { Client, Databases, Storage, type Models } from "node-appwrite";
2
+ import { type AppwriteConfig } from "appwrite-utils";
1
3
  import { type AfterImportActions, type ConverterFunctions, type ValidationRules } from "appwrite-utils";
4
+ import { type TransferOptions } from "./migrations/transfer.js";
2
5
  export interface SetupOptions {
3
- sync: boolean;
4
- runProd: boolean;
5
- runStaging: boolean;
6
- runDev: boolean;
7
- doBackup: boolean;
8
- wipeDatabases: boolean;
9
- wipeDocumentStorage: boolean;
10
- wipeUsers: boolean;
11
- generateSchemas: boolean;
12
- generateMockData: boolean;
13
- importData: boolean;
14
- checkDuplicates: boolean;
15
- shouldWriteFile: boolean;
16
- endpoint?: string;
17
- project?: string;
18
- key?: string;
6
+ databases?: Models.Database[];
7
+ collections?: string[];
8
+ doBackup?: boolean;
9
+ wipeDatabase?: boolean;
10
+ wipeDocumentStorage?: boolean;
11
+ wipeUsers?: boolean;
12
+ generateSchemas?: boolean;
13
+ importData?: boolean;
14
+ checkDuplicates?: boolean;
15
+ shouldWriteFile?: boolean;
19
16
  }
20
17
  export declare class UtilsController {
21
18
  private appwriteFolderPath;
22
19
  private appwriteConfigPath;
23
- private config?;
24
- private appwriteServer?;
25
- private database?;
26
- private storage?;
20
+ config?: AppwriteConfig;
21
+ appwriteServer?: Client;
22
+ database?: Databases;
23
+ storage?: Storage;
27
24
  converterDefinitions: ConverterFunctions;
28
25
  validityRuleDefinitions: ValidationRules;
29
26
  afterImportActionsDefinitions: AfterImportActions;
30
27
  constructor(currentUserDir: string);
31
- init(setupOptions: SetupOptions): Promise<void>;
32
- run(options: SetupOptions): Promise<void>;
28
+ init(): Promise<void>;
29
+ setupMigrationDatabase(): Promise<void>;
30
+ ensureDatabasesExist(databases?: Models.Database[]): Promise<void>;
31
+ getDatabasesByIds(ids: string[]): Promise<Models.Database[]>;
32
+ wipeOtherDatabases(databasesToKeep: Models.Database[]): Promise<void>;
33
+ wipeUsers(): Promise<void>;
34
+ backupDatabase(database: Models.Database): Promise<void>;
35
+ wipeDatabase(database: Models.Database): Promise<{
36
+ collectionId: string;
37
+ collectionName: string;
38
+ }[]>;
39
+ wipeDocumentStorage(bucketId: string): Promise<void>;
40
+ createOrUpdateCollectionsForDatabases(databases: Models.Database[]): Promise<void>;
41
+ createOrUpdateCollections(database: Models.Database, deletedCollections?: {
42
+ collectionId: string;
43
+ collectionName: string;
44
+ }[]): Promise<void>;
45
+ generateSchemas(): Promise<void>;
46
+ importData(options: SetupOptions): Promise<void>;
47
+ synchronizeConfigurations(databases?: Models.Database[], config?: AppwriteConfig): Promise<void>;
48
+ syncDb(): Promise<void>;
49
+ getAppwriteFolderPath(): string;
50
+ transferData(options: TransferOptions): Promise<void>;
33
51
  }
@@ -1,17 +1,19 @@
1
- import { Client, Databases, Storage } from "node-appwrite";
2
- import { startSetup } from "./migrations/setupDatabase.js";
3
- import path from "path";
4
- import fs from "fs";
5
- import { load } from "js-yaml";
1
+ import { Client, Databases, Query, Storage } from "node-appwrite";
2
+ import {} from "appwrite-utils";
3
+ import { loadConfig, findAppwriteConfig } from "./utils/loadConfigs.js";
4
+ import { UsersController } from "./migrations/users.js";
5
+ import { AppwriteToX } from "./migrations/appwriteToX.js";
6
+ import { ImportController } from "./migrations/importController.js";
6
7
  import { ImportDataActions } from "./migrations/importDataActions.js";
7
- import { readFileSync } from "./utils/helperFunctions.js";
8
+ import { setupMigrationDatabase, ensureDatabasesExist, wipeOtherDatabases, } from "./migrations/setupDatabase.js";
9
+ import { createOrUpdateCollections, wipeDatabase, generateSchemas, fetchAllCollections, } from "./collections/methods.js";
10
+ import { backupDatabase, initOrGetBackupStorage, wipeDocumentStorage, } from "./storage/methods.js";
11
+ import path from "path";
12
+ import { converterFunctions, validationRules, } from "appwrite-utils";
8
13
  import { afterImportActions } from "./migrations/afterImportActions.js";
9
- import { converterFunctions, validationRules, AppwriteConfigSchema, } from "appwrite-utils";
10
- import { ImportController } from "./migrations/importController.js";
11
- import _ from "lodash";
12
- import { AppwriteToX } from "./migrations/appwriteToX.js";
13
- import { loadConfig as loadTsConfig } from "./utils/loadConfigs.js";
14
- import { findAppwriteConfig } from "./utils/loadConfigs.js";
14
+ import { transferDatabaseLocalToLocal, transferDatabaseLocalToRemote, transferStorageLocalToLocal, transferStorageLocalToRemote, } from "./migrations/transfer.js";
15
+ import { getClient } from "./utils/getClientFromConfig.js";
16
+ import { fetchAllDatabases } from "./migrations/databases.js";
15
17
  export class UtilsController {
16
18
  appwriteFolderPath;
17
19
  appwriteConfigPath;
@@ -23,7 +25,7 @@ export class UtilsController {
23
25
  validityRuleDefinitions = validationRules;
24
26
  afterImportActionsDefinitions = afterImportActions;
25
27
  constructor(currentUserDir) {
26
- const basePath = currentUserDir; // Gets the current working directory
28
+ const basePath = currentUserDir;
27
29
  const appwriteConfigFound = findAppwriteConfig(basePath);
28
30
  if (!appwriteConfigFound) {
29
31
  throw new Error("Failed to find appwriteConfig.ts");
@@ -34,91 +36,169 @@ export class UtilsController {
34
36
  throw new Error("Failed to get appwriteFolderPath");
35
37
  }
36
38
  }
37
- // async loadCustomDefinitions(): Promise<void> {
38
- // try {
39
- // const customDefinitionsPath = path.join(
40
- // this.appwriteFolderPath,
41
- // "customDefinitions.ts"
42
- // );
43
- // if (fs.existsSync(customDefinitionsPath)) {
44
- // // Dynamically import custom definitions
45
- // const customDefinitions = (await import(
46
- // customDefinitionsPath
47
- // )) as typeof import("customDefinitions");
48
- // this.converterDefinitions = {
49
- // ...this.converterDefinitions,
50
- // ...customDefinitions.converterDefinitions,
51
- // };
52
- // this.validityRuleDefinitions = {
53
- // ...this.validityRuleDefinitions,
54
- // ...customDefinitions.validityRuleDefinitions,
55
- // };
56
- // this.afterImportActionsDefinitions = {
57
- // ...this.afterImportActionsDefinitions,
58
- // ...customDefinitions.afterImportActionsDefinitions,
59
- // };
60
- // }
61
- // } catch (error) {
62
- // console.error("Failed to load custom definitions:", error);
63
- // }
64
- // }
65
- async init(setupOptions) {
39
+ async init() {
66
40
  if (!this.config) {
67
41
  console.log("Initializing appwrite client & loading config...");
68
- this.config = await loadTsConfig(this.appwriteFolderPath);
42
+ this.config = await loadConfig(this.appwriteFolderPath);
69
43
  if (!this.config) {
70
44
  throw new Error("Failed to load config");
71
45
  }
72
46
  this.appwriteServer = new Client();
73
- if (setupOptions.endpoint) {
74
- if (!setupOptions.project || !setupOptions.key) {
75
- throw new Error("Project ID and API key required when setting endpoint");
76
- }
77
- this.appwriteServer
78
- .setEndpoint(setupOptions.endpoint)
79
- .setProject(setupOptions.project)
80
- .setKey(setupOptions.key);
81
- }
82
- else {
83
- this.appwriteServer
84
- .setEndpoint(this.config.appwriteEndpoint)
85
- .setProject(this.config.appwriteProject)
86
- .setKey(this.config.appwriteKey);
87
- }
47
+ this.appwriteServer
48
+ .setEndpoint(this.config.appwriteEndpoint)
49
+ .setProject(this.config.appwriteProject)
50
+ .setKey(this.config.appwriteKey);
88
51
  this.database = new Databases(this.appwriteServer);
89
52
  this.storage = new Storage(this.appwriteServer);
90
53
  this.config.appwriteClient = this.appwriteServer;
91
- // await this.loadCustomDefinitions();
92
54
  }
93
55
  }
94
- async run(options) {
95
- await this.init(options); // Ensure initialization is done
96
- if (!this.database || !this.storage || !this.config) {
97
- throw new Error("Database or storage not initialized");
56
+ async setupMigrationDatabase() {
57
+ await this.init();
58
+ if (!this.config)
59
+ throw new Error("Config not initialized");
60
+ await setupMigrationDatabase(this.config);
61
+ }
62
+ async ensureDatabasesExist(databases) {
63
+ await this.init();
64
+ if (!this.config)
65
+ throw new Error("Config not initialized");
66
+ await this.setupMigrationDatabase();
67
+ await ensureDatabasesExist(this.config);
68
+ }
69
+ async getDatabasesByIds(ids) {
70
+ await this.init();
71
+ if (!this.database)
72
+ throw new Error("Database not initialized");
73
+ const dbs = await this.database.list([
74
+ Query.limit(500),
75
+ Query.equal("$id", ids),
76
+ ]);
77
+ return dbs.databases;
78
+ }
79
+ async wipeOtherDatabases(databasesToKeep) {
80
+ await this.init();
81
+ if (!this.database)
82
+ throw new Error("Database not initialized");
83
+ await wipeOtherDatabases(this.database, databasesToKeep);
84
+ }
85
+ async wipeUsers() {
86
+ await this.init();
87
+ if (!this.config || !this.database)
88
+ throw new Error("Config or database not initialized");
89
+ const usersController = new UsersController(this.config, this.database);
90
+ await usersController.wipeUsers();
91
+ }
92
+ async backupDatabase(database) {
93
+ await this.init();
94
+ if (!this.database || !this.storage || !this.config)
95
+ throw new Error("Database, storage, or config not initialized");
96
+ await backupDatabase(this.config, this.database, database.$id, this.storage);
97
+ }
98
+ async wipeDatabase(database) {
99
+ await this.init();
100
+ if (!this.database)
101
+ throw new Error("Database not initialized");
102
+ return await wipeDatabase(this.database, database.$id);
103
+ }
104
+ async wipeDocumentStorage(bucketId) {
105
+ await this.init();
106
+ if (!this.storage)
107
+ throw new Error("Storage not initialized");
108
+ await wipeDocumentStorage(this.storage, bucketId);
109
+ }
110
+ async createOrUpdateCollectionsForDatabases(databases) {
111
+ await this.init();
112
+ if (!this.database || !this.config)
113
+ throw new Error("Database or config not initialized");
114
+ for (const database of databases) {
115
+ await this.createOrUpdateCollections(database);
116
+ }
117
+ }
118
+ async createOrUpdateCollections(database, deletedCollections) {
119
+ await this.init();
120
+ if (!this.database || !this.config)
121
+ throw new Error("Database or config not initialized");
122
+ await createOrUpdateCollections(this.database, database.$id, this.config, deletedCollections);
123
+ }
124
+ async generateSchemas() {
125
+ await this.init();
126
+ if (!this.config)
127
+ throw new Error("Config not initialized");
128
+ await generateSchemas(this.config, this.appwriteFolderPath);
129
+ }
130
+ async importData(options) {
131
+ await this.init();
132
+ if (!this.config || !this.database || !this.storage)
133
+ throw new Error("Config, database, or storage not initialized");
134
+ const importDataActions = new ImportDataActions(this.database, this.storage, this.config, this.converterDefinitions, this.validityRuleDefinitions, this.afterImportActionsDefinitions);
135
+ const importController = new ImportController(this.config, this.database, this.storage, this.appwriteFolderPath, importDataActions, options);
136
+ await importController.run();
137
+ }
138
+ async synchronizeConfigurations(databases, config) {
139
+ await this.init();
140
+ if (!this.storage)
141
+ throw new Error("Storage not initialized");
142
+ const configToUse = config || this.config;
143
+ if (!configToUse)
144
+ throw new Error("Config not initialized");
145
+ const appwriteToX = new AppwriteToX(configToUse, this.appwriteFolderPath, this.storage);
146
+ await appwriteToX.toSchemas(databases);
147
+ }
148
+ async syncDb() {
149
+ await this.init();
150
+ if (!this.database)
151
+ throw new Error("Database not initialized");
152
+ const databases = await fetchAllDatabases(this.database);
153
+ await this.ensureDatabasesExist(databases);
154
+ await this.createOrUpdateCollectionsForDatabases(databases);
155
+ }
156
+ getAppwriteFolderPath() {
157
+ return this.appwriteFolderPath;
158
+ }
159
+ async transferData(options) {
160
+ if (!this.database) {
161
+ throw new Error("Database is not initialized, is the config file correct & created?");
162
+ }
163
+ let sourceClient = this.database;
164
+ let targetClient;
165
+ let sourceDatabases;
166
+ let targetDatabases;
167
+ if (options.isRemote) {
168
+ if (!options.transferEndpoint ||
169
+ !options.transferProject ||
170
+ !options.transferKey) {
171
+ throw new Error("Remote transfer options are missing");
172
+ }
173
+ const remoteClient = getClient(options.transferEndpoint, options.transferProject, options.transferKey);
174
+ targetClient = new Databases(remoteClient);
175
+ sourceDatabases = await fetchAllDatabases(sourceClient);
176
+ targetDatabases = await fetchAllDatabases(targetClient);
98
177
  }
99
- if (options.sync) {
100
- console.log("Starting synchronization with server...");
101
- const appwriteToX = new AppwriteToX(this.config, this.appwriteFolderPath);
102
- await appwriteToX.toSchemas();
103
- console.log("Synchronization complete, YAML and Schemas updated");
178
+ else {
179
+ targetClient = sourceClient;
180
+ sourceDatabases = targetDatabases = await fetchAllDatabases(sourceClient);
104
181
  }
105
- // Start the setup
106
- console.log("Starting setup, this step sets up migrations, runs backup, wipes databases, and updates schemas (depending on your options)...");
107
- await startSetup(this.database, this.storage, this.config, options, this.appwriteFolderPath);
108
- console.log("Setup complete.");
109
- if (options.generateMockData) {
110
- // TODO: Figure out how to do this dynamically
111
- // await this.generateMockData();
182
+ // Validate that the provided databases exist in the fetched lists
183
+ const fromDb = sourceDatabases.find((db) => db.$id === options.fromDb.$id);
184
+ const targetDb = targetDatabases.find((db) => db.$id === options.targetDb.$id);
185
+ if (!fromDb || !targetDb) {
186
+ throw new Error("Source or target database not found");
112
187
  }
113
- if (options.importData) {
114
- console.log("Starting import data...");
115
- const importDataActions = new ImportDataActions(this.database, this.storage, this.config, this.converterDefinitions, this.validityRuleDefinitions, this.afterImportActionsDefinitions);
116
- const importController = new ImportController(this.config, this.database, this.storage, this.appwriteFolderPath, importDataActions, options);
117
- await importController.run();
118
- console.log("Import data complete.");
188
+ if (options.isRemote) {
189
+ // Remote transfer
190
+ await transferDatabaseLocalToRemote(sourceClient, options.transferEndpoint, options.transferProject, options.transferKey, fromDb.$id, targetDb.$id);
191
+ if (this.storage && options.sourceBucket && options.targetBucket) {
192
+ await transferStorageLocalToRemote(this.storage, options.transferEndpoint, options.transferProject, options.transferKey, options.sourceBucket.$id, options.targetBucket.$id);
193
+ }
194
+ }
195
+ else {
196
+ // Local transfer
197
+ await transferDatabaseLocalToLocal(sourceClient, fromDb.$id, targetDb.$id);
198
+ if (this.storage && options.sourceBucket && options.targetBucket) {
199
+ await transferStorageLocalToLocal(this.storage, options.sourceBucket.$id, options.targetBucket.$id);
200
+ }
119
201
  }
120
- // if (options.checkDuplicates) {
121
- // await this.checkDuplicates();
122
- // }
202
+ console.log("Data transfer completed");
123
203
  }
124
204
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "appwrite-utils-cli",
3
3
  "description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
4
- "version": "0.0.286",
4
+ "version": "0.9.0",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
@@ -21,35 +21,33 @@
21
21
  "utility"
22
22
  ],
23
23
  "bin": {
24
- "appwrite-init": "./dist/init.js",
25
24
  "appwrite-migrate": "./dist/main.js"
26
25
  },
27
26
  "scripts": {
28
27
  "build": "bun run tsc",
29
- "init": "tsx --no-cache src/init.ts",
30
- "migrate": "tsx --no-cache src/main.ts",
28
+ "start": "tsx --no-cache src/main.ts migrate",
31
29
  "deploy": "bun run build && npm publish --access public",
32
30
  "postinstall": "echo 'This package is intended for CLI use only and should not be added as a dependency in other projects.'"
33
31
  },
34
32
  "dependencies": {
35
- "@asteasolutions/zod-to-openapi": "^7.0.0",
36
33
  "@types/inquirer": "^9.0.7",
37
- "appwrite-utils": "^0.2.1",
38
- "commander": "^12.0.0",
39
- "inquirer": "^9.2.20",
34
+ "appwrite-utils": "^0.3.8",
35
+ "commander": "^12.1.0",
36
+ "inquirer": "^9.3.6",
40
37
  "js-yaml": "^4.1.0",
41
38
  "lodash": "^4.17.21",
42
- "luxon": "^3.4.4",
39
+ "luxon": "^3.5.0",
43
40
  "nanostores": "^0.10.3",
44
- "node-appwrite": "^12.0.1",
45
- "tsx": "^4.9.3",
46
- "winston": "^3.13.0",
47
- "zod": "^3.22.4"
41
+ "node-appwrite": "^13.0.0",
42
+ "tsx": "^4.17.0",
43
+ "ulidx": "^2.4.0",
44
+ "winston": "^3.14.1",
45
+ "zod": "^3.23.8"
48
46
  },
49
47
  "devDependencies": {
50
48
  "@types/js-yaml": "^4.0.9",
51
- "@types/lodash": "^4.17.0",
49
+ "@types/lodash": "^4.17.7",
52
50
  "@types/luxon": "^3.4.2",
53
- "typescript": "^5.0.0"
51
+ "typescript": "^5.5.4"
54
52
  }
55
53
  }