appwrite-utils-cli 0.0.51 → 0.0.52

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.
@@ -192,7 +192,14 @@ export declare const CollectionImportDataSchema: z.ZodObject<{
192
192
  type: z.ZodLiteral<"ip">;
193
193
  error: z.ZodOptional<z.ZodDefault<z.ZodString>>;
194
194
  required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
195
- array: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
195
+ array: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; /**
196
+ * Prepares the data for creating documents in a collection.
197
+ * This involves loading the data, transforming it, and handling ID mappings.
198
+ *
199
+ * @param db - The database configuration.
200
+ * @param collection - The collection configuration.
201
+ * @param importDef - The import definition containing the attribute mappings and other relevant info.
202
+ */
196
203
  xdefault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
204
  description: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>>;
198
205
  }, "strip", z.ZodTypeAny, {
@@ -334,7 +334,7 @@ export class DataLoader {
334
334
  }
335
335
  }
336
336
  console.log("Running update references");
337
- this.dealWithMergedUsers();
337
+ // this.dealWithMergedUsers();
338
338
  this.updateOldReferencesForNew();
339
339
  console.log("Done running update references");
340
340
  }
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.51",
4
+ "version": "0.0.52",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
@@ -413,7 +413,7 @@ export class DataLoader {
413
413
  }
414
414
  }
415
415
  console.log("Running update references");
416
- this.dealWithMergedUsers();
416
+ // this.dealWithMergedUsers();
417
417
  this.updateOldReferencesForNew();
418
418
  console.log("Done running update references");
419
419
  }