appwrite-utils-cli 0.10.68 → 0.10.69

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.
@@ -29,7 +29,4 @@ export declare const transferDocumentsBetweenDbsLocalToRemote: (localDb: Databas
29
29
  */
30
30
  export declare const transferDatabaseLocalToLocal: (localDb: Databases, fromDbId: string, targetDbId: string) => Promise<void>;
31
31
  export declare const transferDatabaseLocalToRemote: (localDb: Databases, endpoint: string, projectId: string, apiKey: string, fromDbId: string, toDbId: string) => Promise<void>;
32
- export declare const transferUsersLocalToRemote: (localUsers: Users, endpoint: string, projectId: string, apiKey: string, options?: {
33
- limit?: number;
34
- offset?: number;
35
- }) => Promise<void>;
32
+ export declare const transferUsersLocalToRemote: (localUsers: Users, endpoint: string, projectId: string, apiKey: string) => Promise<void>;
@@ -378,9 +378,9 @@ export const transferDatabaseLocalToRemote = async (localDb, endpoint, projectId
378
378
  }
379
379
  }
380
380
  };
381
- export const transferUsersLocalToRemote = async (localUsers, endpoint, projectId, apiKey, options = {}) => {
381
+ export const transferUsersLocalToRemote = async (localUsers, endpoint, projectId, apiKey) => {
382
382
  console.log(chalk.blue("Starting user transfer to remote instance..."));
383
- const client = getClient(endpoint, apiKey, projectId);
383
+ const client = getClient(endpoint, projectId, apiKey);
384
384
  const remoteUsers = new Users(client);
385
385
  let totalTransferred = 0;
386
386
  let lastId;
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.10.68",
4
+ "version": "0.10.69",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
@@ -774,15 +774,11 @@ export const transferUsersLocalToRemote = async (
774
774
  localUsers: Users,
775
775
  endpoint: string,
776
776
  projectId: string,
777
- apiKey: string,
778
- options: {
779
- limit?: number;
780
- offset?: number;
781
- } = {}
777
+ apiKey: string
782
778
  ) => {
783
779
  console.log(chalk.blue("Starting user transfer to remote instance..."));
784
780
 
785
- const client = getClient(endpoint, apiKey, projectId);
781
+ const client = getClient(endpoint, projectId, apiKey);
786
782
  const remoteUsers = new Users(client);
787
783
 
788
784
  let totalTransferred = 0;