appwrite-cli 12.0.0 → 13.0.0-rc.1
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.
- package/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +145 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/client.d.ts +89 -0
- package/dist/lib/client.d.ts.map +1 -0
- package/dist/lib/client.js +227 -0
- package/dist/lib/client.js.map +1 -0
- package/dist/lib/commands/account.d.ts +379 -0
- package/dist/lib/commands/account.d.ts.map +1 -0
- package/dist/lib/commands/account.js +1228 -0
- package/dist/lib/commands/account.js.map +1 -0
- package/dist/lib/commands/console.d.ts +20 -0
- package/dist/lib/commands/console.d.ts.map +1 -0
- package/dist/lib/commands/console.js +78 -0
- package/dist/lib/commands/console.js.map +1 -0
- package/dist/lib/commands/databases.d.ts +732 -0
- package/dist/lib/commands/databases.d.ts.map +1 -0
- package/dist/lib/commands/databases.js +2196 -0
- package/dist/lib/commands/databases.js.map +1 -0
- package/dist/lib/commands/functions.d.ts +310 -0
- package/dist/lib/commands/functions.d.ts.map +1 -0
- package/dist/lib/commands/functions.js +1100 -0
- package/dist/lib/commands/functions.js.map +1 -0
- package/dist/lib/commands/generic.d.ts +17 -0
- package/dist/lib/commands/generic.d.ts.map +1 -0
- package/dist/lib/commands/generic.js +279 -0
- package/dist/lib/commands/generic.js.map +1 -0
- package/dist/lib/commands/graphql.d.ts +19 -0
- package/dist/lib/commands/graphql.d.ts.map +1 -0
- package/dist/lib/commands/graphql.js +77 -0
- package/dist/lib/commands/graphql.js.map +1 -0
- package/dist/lib/commands/health.d.ts +153 -0
- package/dist/lib/commands/health.d.ts.map +1 -0
- package/dist/lib/commands/health.js +464 -0
- package/dist/lib/commands/health.js.map +1 -0
- package/dist/lib/commands/init.d.ts +3 -0
- package/dist/lib/commands/init.d.ts.map +1 -0
- package/dist/lib/commands/init.js +518 -0
- package/dist/lib/commands/init.js.map +1 -0
- package/dist/lib/commands/locale.d.ts +53 -0
- package/dist/lib/commands/locale.d.ts.map +1 -0
- package/dist/lib/commands/locale.js +165 -0
- package/dist/lib/commands/locale.js.map +1 -0
- package/dist/lib/commands/messaging.d.ts +588 -0
- package/dist/lib/commands/messaging.d.ts.map +1 -0
- package/dist/lib/commands/messaging.js +2042 -0
- package/dist/lib/commands/messaging.js.map +1 -0
- package/dist/lib/commands/migrations.d.ts +150 -0
- package/dist/lib/commands/migrations.d.ts.map +1 -0
- package/dist/lib/commands/migrations.js +524 -0
- package/dist/lib/commands/migrations.js.map +1 -0
- package/dist/lib/commands/organizations.d.ts +11 -0
- package/dist/lib/commands/organizations.d.ts.map +1 -0
- package/dist/lib/commands/organizations.js +31 -0
- package/dist/lib/commands/organizations.js.map +1 -0
- package/dist/lib/commands/project.d.ts +53 -0
- package/dist/lib/commands/project.d.ts.map +1 -0
- package/dist/lib/commands/project.js +176 -0
- package/dist/lib/commands/project.js.map +1 -0
- package/dist/lib/commands/projects.d.ts +516 -0
- package/dist/lib/commands/projects.d.ts.map +1 -0
- package/dist/lib/commands/projects.js +1590 -0
- package/dist/lib/commands/projects.js.map +1 -0
- package/dist/lib/commands/proxy.d.ts +71 -0
- package/dist/lib/commands/proxy.d.ts.map +1 -0
- package/dist/lib/commands/proxy.js +240 -0
- package/dist/lib/commands/proxy.js.map +1 -0
- package/dist/lib/commands/pull.d.ts +8 -0
- package/dist/lib/commands/pull.d.ts.map +1 -0
- package/dist/lib/commands/pull.js +455 -0
- package/dist/lib/commands/pull.js.map +1 -0
- package/dist/lib/commands/push.d.ts +4 -0
- package/dist/lib/commands/push.d.ts.map +1 -0
- package/dist/lib/commands/push.js +2154 -0
- package/dist/lib/commands/push.js.map +1 -0
- package/dist/lib/commands/run.d.ts +3 -0
- package/dist/lib/commands/run.d.ts.map +1 -0
- package/dist/lib/commands/run.js +287 -0
- package/dist/lib/commands/run.js.map +1 -0
- package/dist/lib/commands/sites.d.ts +296 -0
- package/dist/lib/commands/sites.d.ts.map +1 -0
- package/dist/lib/commands/sites.js +1046 -0
- package/dist/lib/commands/sites.js.map +1 -0
- package/dist/lib/commands/storage.d.ts +170 -0
- package/dist/lib/commands/storage.d.ts.map +1 -0
- package/dist/lib/commands/storage.js +651 -0
- package/dist/lib/commands/storage.js.map +1 -0
- package/dist/lib/commands/tables-db.d.ts +728 -0
- package/dist/lib/commands/tables-db.d.ts.map +1 -0
- package/dist/lib/commands/tables-db.js +2198 -0
- package/dist/lib/commands/tables-db.js.map +1 -0
- package/dist/lib/commands/teams.d.ts +129 -0
- package/dist/lib/commands/teams.d.ts.map +1 -0
- package/dist/lib/commands/teams.js +403 -0
- package/dist/lib/commands/teams.js.map +1 -0
- package/dist/lib/commands/tokens.d.ts +48 -0
- package/dist/lib/commands/tokens.d.ts.map +1 -0
- package/dist/lib/commands/tokens.js +156 -0
- package/dist/lib/commands/tokens.js.map +1 -0
- package/dist/lib/commands/types.d.ts +3 -0
- package/dist/lib/commands/types.d.ts.map +1 -0
- package/dist/lib/commands/types.js +155 -0
- package/dist/lib/commands/types.js.map +1 -0
- package/dist/lib/commands/update.d.ts +3 -0
- package/dist/lib/commands/update.d.ts.map +1 -0
- package/dist/lib/commands/update.js +202 -0
- package/dist/lib/commands/update.js.map +1 -0
- package/dist/lib/commands/users.d.ts +382 -0
- package/dist/lib/commands/users.d.ts.map +1 -0
- package/dist/lib/commands/users.js +1195 -0
- package/dist/lib/commands/users.js.map +1 -0
- package/dist/lib/commands/vcs.d.ts +92 -0
- package/dist/lib/commands/vcs.d.ts.map +1 -0
- package/dist/lib/commands/vcs.js +276 -0
- package/dist/lib/commands/vcs.js.map +1 -0
- package/dist/lib/config.d.ts +118 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/{lib → dist/lib}/config.js +204 -325
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/emulation/docker.d.ts +15 -0
- package/dist/lib/emulation/docker.d.ts.map +1 -0
- package/dist/lib/emulation/docker.js +220 -0
- package/dist/lib/emulation/docker.js.map +1 -0
- package/dist/lib/emulation/utils.d.ts +29 -0
- package/dist/lib/emulation/utils.d.ts.map +1 -0
- package/dist/lib/emulation/utils.js +168 -0
- package/dist/lib/emulation/utils.js.map +1 -0
- package/dist/lib/exception.d.ts +8 -0
- package/dist/lib/exception.d.ts.map +1 -0
- package/dist/lib/exception.js +16 -0
- package/dist/lib/exception.js.map +1 -0
- package/dist/lib/id.d.ts +7 -0
- package/dist/lib/id.d.ts.map +1 -0
- package/dist/lib/id.js +32 -0
- package/dist/lib/id.js.map +1 -0
- package/dist/lib/paginate.d.ts +10 -0
- package/dist/lib/paginate.d.ts.map +1 -0
- package/{lib → dist/lib}/paginate.js +9 -15
- package/dist/lib/paginate.js.map +1 -0
- package/dist/lib/parser.d.ts +18 -0
- package/dist/lib/parser.d.ts.map +1 -0
- package/dist/lib/parser.js +237 -0
- package/dist/lib/parser.js.map +1 -0
- package/dist/lib/questions.d.ts +59 -0
- package/dist/lib/questions.d.ts.map +1 -0
- package/dist/lib/questions.js +995 -0
- package/dist/lib/questions.js.map +1 -0
- package/dist/lib/sdks.d.ts +4 -0
- package/dist/lib/sdks.d.ts.map +1 -0
- package/dist/lib/sdks.js +51 -0
- package/dist/lib/sdks.js.map +1 -0
- package/dist/lib/spinner.d.ts +28 -0
- package/dist/lib/spinner.d.ts.map +1 -0
- package/{lib → dist/lib}/spinner.js +34 -45
- package/dist/lib/spinner.js.map +1 -0
- package/dist/lib/type-generation/attribute.d.ts +17 -0
- package/dist/lib/type-generation/attribute.d.ts.map +1 -0
- package/dist/lib/type-generation/attribute.js +19 -0
- package/dist/lib/type-generation/attribute.js.map +1 -0
- package/dist/lib/type-generation/languages/csharp.d.ts +7 -0
- package/dist/lib/type-generation/languages/csharp.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/csharp.js +180 -0
- package/dist/lib/type-generation/languages/csharp.js.map +1 -0
- package/dist/lib/type-generation/languages/dart.d.ts +8 -0
- package/dist/lib/type-generation/languages/dart.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/dart.js +197 -0
- package/dist/lib/type-generation/languages/dart.js.map +1 -0
- package/dist/lib/type-generation/languages/java.d.ts +7 -0
- package/dist/lib/type-generation/languages/java.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/java.js +140 -0
- package/dist/lib/type-generation/languages/java.js.map +1 -0
- package/dist/lib/type-generation/languages/javascript.d.ts +9 -0
- package/dist/lib/type-generation/languages/javascript.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/javascript.js +108 -0
- package/dist/lib/type-generation/languages/javascript.js.map +1 -0
- package/dist/lib/type-generation/languages/kotlin.d.ts +7 -0
- package/dist/lib/type-generation/languages/kotlin.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/kotlin.js +95 -0
- package/dist/lib/type-generation/languages/kotlin.js.map +1 -0
- package/dist/lib/type-generation/languages/language.d.ts +43 -0
- package/dist/lib/type-generation/languages/language.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/language.js +82 -0
- package/dist/lib/type-generation/languages/language.js.map +1 -0
- package/dist/lib/type-generation/languages/php.d.ts +7 -0
- package/dist/lib/type-generation/languages/php.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/php.js +116 -0
- package/dist/lib/type-generation/languages/php.js.map +1 -0
- package/dist/lib/type-generation/languages/swift.d.ts +7 -0
- package/dist/lib/type-generation/languages/swift.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/swift.js +179 -0
- package/dist/lib/type-generation/languages/swift.js.map +1 -0
- package/dist/lib/type-generation/languages/typescript.d.ts +9 -0
- package/dist/lib/type-generation/languages/typescript.d.ts.map +1 -0
- package/dist/lib/type-generation/languages/typescript.js +112 -0
- package/dist/lib/type-generation/languages/typescript.js.map +1 -0
- package/dist/lib/types.d.ts +133 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +3 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/utils.d.ts +15 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/{lib → dist/lib}/utils.js +74 -120
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/validations.d.ts +2 -0
- package/dist/lib/validations.d.ts.map +1 -0
- package/dist/lib/validations.js +20 -0
- package/dist/lib/validations.js.map +1 -0
- package/docs/examples/databases/upsert-document.md +1 -2
- package/index.ts +152 -0
- package/install.ps1 +2 -5
- package/install.sh +1 -2
- package/lib/client.ts +259 -0
- package/lib/commands/{account.js → account.ts} +410 -664
- package/lib/commands/console.ts +112 -0
- package/lib/commands/{databases.js → databases.ts} +818 -1136
- package/lib/commands/{functions.js → functions.ts} +381 -526
- package/lib/commands/{generic.js → generic.ts} +47 -39
- package/lib/commands/graphql.ts +110 -0
- package/lib/commands/{health.js → health.ts} +168 -284
- package/lib/commands/{init.js → init.ts} +68 -66
- package/lib/commands/{locale.js → locale.ts} +75 -121
- package/lib/commands/{messaging.js → messaging.ts} +699 -937
- package/lib/commands/{migrations.js → migrations.ts} +182 -258
- package/lib/commands/organizations.ts +46 -0
- package/lib/commands/{project.js → project.ts} +75 -111
- package/lib/commands/{projects.js → projects.ts} +587 -843
- package/lib/commands/{proxy.js → proxy.ts} +94 -140
- package/lib/commands/{pull.js → pull.ts} +54 -44
- package/lib/commands/{push.js → push.ts} +235 -191
- package/lib/commands/{run.js → run.ts} +61 -55
- package/lib/commands/{sites.js → sites.ts} +364 -504
- package/lib/commands/{storage.js → storage.ts} +216 -292
- package/lib/commands/{tables-db.js → tables-db.ts} +817 -1126
- package/lib/commands/{teams.js → teams.ts} +162 -236
- package/lib/commands/{tokens.js → tokens.ts} +70 -99
- package/lib/commands/{types.js → types.ts} +37 -35
- package/lib/commands/{update.js → update.ts} +25 -27
- package/lib/commands/{users.js → users.ts} +426 -644
- package/lib/commands/{vcs.js → vcs.ts} +122 -173
- package/lib/config.ts +854 -0
- package/lib/emulation/{docker.js → docker.ts} +39 -38
- package/lib/emulation/utils.ts +193 -0
- package/lib/exception.ts +20 -0
- package/lib/{id.js → id.ts} +5 -5
- package/lib/paginate.ts +63 -0
- package/lib/parser.ts +238 -0
- package/lib/{questions.js → questions.ts} +148 -156
- package/lib/sdks.ts +55 -0
- package/lib/spinner.ts +118 -0
- package/lib/type-generation/attribute.ts +17 -0
- package/lib/type-generation/languages/{csharp.js → csharp.ts} +59 -48
- package/lib/type-generation/languages/{dart.js → dart.ts} +91 -80
- package/lib/type-generation/languages/{java.js → java.ts} +58 -47
- package/lib/type-generation/languages/javascript.ts +111 -0
- package/lib/type-generation/languages/kotlin.ts +96 -0
- package/lib/type-generation/languages/language.ts +119 -0
- package/lib/type-generation/languages/{php.js → php.ts} +55 -48
- package/lib/type-generation/languages/{swift.js → swift.ts} +59 -48
- package/lib/type-generation/languages/typescript.ts +116 -0
- package/lib/types.ts +150 -0
- package/lib/utils.ts +322 -0
- package/lib/validations.ts +17 -0
- package/package.json +21 -12
- package/scoop/appwrite.config.json +3 -3
- package/tsconfig.json +30 -0
- package/index.js +0 -147
- package/lib/client.js +0 -254
- package/lib/commands/console.js +0 -127
- package/lib/commands/graphql.js +0 -126
- package/lib/commands/organizations.js +0 -48
- package/lib/emulation/utils.js +0 -186
- package/lib/exception.js +0 -9
- package/lib/parser.js +0 -250
- package/lib/sdks.js +0 -60
- package/lib/type-generation/attribute.js +0 -16
- package/lib/type-generation/languages/javascript.js +0 -102
- package/lib/type-generation/languages/kotlin.js +0 -85
- package/lib/type-generation/languages/language.js +0 -125
- package/lib/type-generation/languages/typescript.js +0 -107
- package/lib/validations.js +0 -17
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.migrationsDelete = exports.migrationsRetry = exports.migrationsGet = exports.migrationsGetSupabaseReport = exports.migrationsCreateSupabaseMigration = exports.migrationsGetNHostReport = exports.migrationsCreateNHostMigration = exports.migrationsGetFirebaseReport = exports.migrationsCreateFirebaseMigration = exports.migrationsCreateCSVImport = exports.migrationsCreateCSVExport = exports.migrationsGetAppwriteReport = exports.migrationsCreateAppwriteMigration = exports.migrationsList = exports.migrations = void 0;
|
|
4
|
+
const commander_1 = require("commander");
|
|
5
|
+
const sdks_1 = require("../sdks");
|
|
6
|
+
const parser_1 = require("../parser");
|
|
7
|
+
const web_1 = require("stream/web");
|
|
8
|
+
function convertReadStreamToReadableStream(readStream) {
|
|
9
|
+
return new web_1.ReadableStream({
|
|
10
|
+
start(controller) {
|
|
11
|
+
readStream.on("data", (chunk) => {
|
|
12
|
+
controller.enqueue(chunk);
|
|
13
|
+
});
|
|
14
|
+
readStream.on("end", () => {
|
|
15
|
+
controller.close();
|
|
16
|
+
});
|
|
17
|
+
readStream.on("error", (err) => {
|
|
18
|
+
controller.error(err);
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
cancel() {
|
|
22
|
+
readStream.destroy();
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
exports.migrations = new commander_1.Command("migrations").description(parser_1.commandDescriptions['migrations'] ?? '').configureHelp({
|
|
27
|
+
helpWidth: process.stdout.columns || 80
|
|
28
|
+
});
|
|
29
|
+
const migrationsList = async ({ queries, search, total, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
30
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
31
|
+
sdk;
|
|
32
|
+
let apiPath = '/migrations';
|
|
33
|
+
let payload = {};
|
|
34
|
+
if (typeof queries !== 'undefined') {
|
|
35
|
+
payload['queries'] = queries;
|
|
36
|
+
}
|
|
37
|
+
if (typeof search !== 'undefined') {
|
|
38
|
+
payload['search'] = search;
|
|
39
|
+
}
|
|
40
|
+
if (typeof total !== 'undefined') {
|
|
41
|
+
payload['total'] = total;
|
|
42
|
+
}
|
|
43
|
+
let response = undefined;
|
|
44
|
+
response = await client.call('get', apiPath, {}, payload);
|
|
45
|
+
if (parseOutput) {
|
|
46
|
+
(0, parser_1.parse)(response);
|
|
47
|
+
}
|
|
48
|
+
return response;
|
|
49
|
+
};
|
|
50
|
+
exports.migrationsList = migrationsList;
|
|
51
|
+
const migrationsCreateAppwriteMigration = async ({ resources, endpoint, projectId, apiKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
52
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
53
|
+
sdk;
|
|
54
|
+
let apiPath = '/migrations/appwrite';
|
|
55
|
+
let payload = {};
|
|
56
|
+
resources = resources === true ? [] : resources;
|
|
57
|
+
if (typeof resources !== 'undefined') {
|
|
58
|
+
payload['resources'] = resources;
|
|
59
|
+
}
|
|
60
|
+
if (typeof endpoint !== 'undefined') {
|
|
61
|
+
payload['endpoint'] = endpoint;
|
|
62
|
+
}
|
|
63
|
+
if (typeof projectId !== 'undefined') {
|
|
64
|
+
payload['projectId'] = projectId;
|
|
65
|
+
}
|
|
66
|
+
if (typeof apiKey !== 'undefined') {
|
|
67
|
+
payload['apiKey'] = apiKey;
|
|
68
|
+
}
|
|
69
|
+
let response = undefined;
|
|
70
|
+
response = await client.call('post', apiPath, {
|
|
71
|
+
'content-type': 'application/json',
|
|
72
|
+
}, payload);
|
|
73
|
+
if (parseOutput) {
|
|
74
|
+
(0, parser_1.parse)(response);
|
|
75
|
+
}
|
|
76
|
+
return response;
|
|
77
|
+
};
|
|
78
|
+
exports.migrationsCreateAppwriteMigration = migrationsCreateAppwriteMigration;
|
|
79
|
+
const migrationsGetAppwriteReport = async ({ resources, endpoint, projectID, key, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
80
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
81
|
+
sdk;
|
|
82
|
+
let apiPath = '/migrations/appwrite/report';
|
|
83
|
+
let payload = {};
|
|
84
|
+
if (typeof resources !== 'undefined') {
|
|
85
|
+
payload['resources'] = resources;
|
|
86
|
+
}
|
|
87
|
+
if (typeof endpoint !== 'undefined') {
|
|
88
|
+
payload['endpoint'] = endpoint;
|
|
89
|
+
}
|
|
90
|
+
if (typeof projectID !== 'undefined') {
|
|
91
|
+
payload['projectID'] = projectID;
|
|
92
|
+
}
|
|
93
|
+
if (typeof key !== 'undefined') {
|
|
94
|
+
payload['key'] = key;
|
|
95
|
+
}
|
|
96
|
+
let response = undefined;
|
|
97
|
+
response = await client.call('get', apiPath, {}, payload);
|
|
98
|
+
if (parseOutput) {
|
|
99
|
+
(0, parser_1.parse)(response);
|
|
100
|
+
}
|
|
101
|
+
return response;
|
|
102
|
+
};
|
|
103
|
+
exports.migrationsGetAppwriteReport = migrationsGetAppwriteReport;
|
|
104
|
+
const migrationsCreateCSVExport = async ({ resourceId, filename, columns, queries, delimiter, enclosure, escape, header, notify, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
105
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
106
|
+
sdk;
|
|
107
|
+
let apiPath = '/migrations/csv/exports';
|
|
108
|
+
let payload = {};
|
|
109
|
+
if (typeof resourceId !== 'undefined') {
|
|
110
|
+
payload['resourceId'] = resourceId;
|
|
111
|
+
}
|
|
112
|
+
if (typeof filename !== 'undefined') {
|
|
113
|
+
payload['filename'] = filename;
|
|
114
|
+
}
|
|
115
|
+
columns = columns === true ? [] : columns;
|
|
116
|
+
if (typeof columns !== 'undefined') {
|
|
117
|
+
payload['columns'] = columns;
|
|
118
|
+
}
|
|
119
|
+
queries = queries === true ? [] : queries;
|
|
120
|
+
if (typeof queries !== 'undefined') {
|
|
121
|
+
payload['queries'] = queries;
|
|
122
|
+
}
|
|
123
|
+
if (typeof delimiter !== 'undefined') {
|
|
124
|
+
payload['delimiter'] = delimiter;
|
|
125
|
+
}
|
|
126
|
+
if (typeof enclosure !== 'undefined') {
|
|
127
|
+
payload['enclosure'] = enclosure;
|
|
128
|
+
}
|
|
129
|
+
if (typeof escape !== 'undefined') {
|
|
130
|
+
payload['escape'] = escape;
|
|
131
|
+
}
|
|
132
|
+
if (typeof header !== 'undefined') {
|
|
133
|
+
payload['header'] = header;
|
|
134
|
+
}
|
|
135
|
+
if (typeof notify !== 'undefined') {
|
|
136
|
+
payload['notify'] = notify;
|
|
137
|
+
}
|
|
138
|
+
let response = undefined;
|
|
139
|
+
response = await client.call('post', apiPath, {
|
|
140
|
+
'content-type': 'application/json',
|
|
141
|
+
}, payload);
|
|
142
|
+
if (parseOutput) {
|
|
143
|
+
(0, parser_1.parse)(response);
|
|
144
|
+
}
|
|
145
|
+
return response;
|
|
146
|
+
};
|
|
147
|
+
exports.migrationsCreateCSVExport = migrationsCreateCSVExport;
|
|
148
|
+
const migrationsCreateCSVImport = async ({ bucketId, fileId, resourceId, internalFile, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
149
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
150
|
+
sdk;
|
|
151
|
+
let apiPath = '/migrations/csv/imports';
|
|
152
|
+
let payload = {};
|
|
153
|
+
if (typeof bucketId !== 'undefined') {
|
|
154
|
+
payload['bucketId'] = bucketId;
|
|
155
|
+
}
|
|
156
|
+
if (typeof fileId !== 'undefined') {
|
|
157
|
+
payload['fileId'] = fileId;
|
|
158
|
+
}
|
|
159
|
+
if (typeof resourceId !== 'undefined') {
|
|
160
|
+
payload['resourceId'] = resourceId;
|
|
161
|
+
}
|
|
162
|
+
if (typeof internalFile !== 'undefined') {
|
|
163
|
+
payload['internalFile'] = internalFile;
|
|
164
|
+
}
|
|
165
|
+
let response = undefined;
|
|
166
|
+
response = await client.call('post', apiPath, {
|
|
167
|
+
'content-type': 'application/json',
|
|
168
|
+
}, payload);
|
|
169
|
+
if (parseOutput) {
|
|
170
|
+
(0, parser_1.parse)(response);
|
|
171
|
+
}
|
|
172
|
+
return response;
|
|
173
|
+
};
|
|
174
|
+
exports.migrationsCreateCSVImport = migrationsCreateCSVImport;
|
|
175
|
+
const migrationsCreateFirebaseMigration = async ({ resources, serviceAccount, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
176
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
177
|
+
sdk;
|
|
178
|
+
let apiPath = '/migrations/firebase';
|
|
179
|
+
let payload = {};
|
|
180
|
+
resources = resources === true ? [] : resources;
|
|
181
|
+
if (typeof resources !== 'undefined') {
|
|
182
|
+
payload['resources'] = resources;
|
|
183
|
+
}
|
|
184
|
+
if (typeof serviceAccount !== 'undefined') {
|
|
185
|
+
payload['serviceAccount'] = serviceAccount;
|
|
186
|
+
}
|
|
187
|
+
let response = undefined;
|
|
188
|
+
response = await client.call('post', apiPath, {
|
|
189
|
+
'content-type': 'application/json',
|
|
190
|
+
}, payload);
|
|
191
|
+
if (parseOutput) {
|
|
192
|
+
(0, parser_1.parse)(response);
|
|
193
|
+
}
|
|
194
|
+
return response;
|
|
195
|
+
};
|
|
196
|
+
exports.migrationsCreateFirebaseMigration = migrationsCreateFirebaseMigration;
|
|
197
|
+
const migrationsGetFirebaseReport = async ({ resources, serviceAccount, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
198
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
199
|
+
sdk;
|
|
200
|
+
let apiPath = '/migrations/firebase/report';
|
|
201
|
+
let payload = {};
|
|
202
|
+
if (typeof resources !== 'undefined') {
|
|
203
|
+
payload['resources'] = resources;
|
|
204
|
+
}
|
|
205
|
+
if (typeof serviceAccount !== 'undefined') {
|
|
206
|
+
payload['serviceAccount'] = serviceAccount;
|
|
207
|
+
}
|
|
208
|
+
let response = undefined;
|
|
209
|
+
response = await client.call('get', apiPath, {}, payload);
|
|
210
|
+
if (parseOutput) {
|
|
211
|
+
(0, parser_1.parse)(response);
|
|
212
|
+
}
|
|
213
|
+
return response;
|
|
214
|
+
};
|
|
215
|
+
exports.migrationsGetFirebaseReport = migrationsGetFirebaseReport;
|
|
216
|
+
const migrationsCreateNHostMigration = async ({ resources, subdomain, region, adminSecret, database, username, password, port, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
217
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
218
|
+
sdk;
|
|
219
|
+
let apiPath = '/migrations/nhost';
|
|
220
|
+
let payload = {};
|
|
221
|
+
resources = resources === true ? [] : resources;
|
|
222
|
+
if (typeof resources !== 'undefined') {
|
|
223
|
+
payload['resources'] = resources;
|
|
224
|
+
}
|
|
225
|
+
if (typeof subdomain !== 'undefined') {
|
|
226
|
+
payload['subdomain'] = subdomain;
|
|
227
|
+
}
|
|
228
|
+
if (typeof region !== 'undefined') {
|
|
229
|
+
payload['region'] = region;
|
|
230
|
+
}
|
|
231
|
+
if (typeof adminSecret !== 'undefined') {
|
|
232
|
+
payload['adminSecret'] = adminSecret;
|
|
233
|
+
}
|
|
234
|
+
if (typeof database !== 'undefined') {
|
|
235
|
+
payload['database'] = database;
|
|
236
|
+
}
|
|
237
|
+
if (typeof username !== 'undefined') {
|
|
238
|
+
payload['username'] = username;
|
|
239
|
+
}
|
|
240
|
+
if (typeof password !== 'undefined') {
|
|
241
|
+
payload['password'] = password;
|
|
242
|
+
}
|
|
243
|
+
if (typeof port !== 'undefined') {
|
|
244
|
+
payload['port'] = port;
|
|
245
|
+
}
|
|
246
|
+
let response = undefined;
|
|
247
|
+
response = await client.call('post', apiPath, {
|
|
248
|
+
'content-type': 'application/json',
|
|
249
|
+
}, payload);
|
|
250
|
+
if (parseOutput) {
|
|
251
|
+
(0, parser_1.parse)(response);
|
|
252
|
+
}
|
|
253
|
+
return response;
|
|
254
|
+
};
|
|
255
|
+
exports.migrationsCreateNHostMigration = migrationsCreateNHostMigration;
|
|
256
|
+
const migrationsGetNHostReport = async ({ resources, subdomain, region, adminSecret, database, username, password, port, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
257
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
258
|
+
sdk;
|
|
259
|
+
let apiPath = '/migrations/nhost/report';
|
|
260
|
+
let payload = {};
|
|
261
|
+
if (typeof resources !== 'undefined') {
|
|
262
|
+
payload['resources'] = resources;
|
|
263
|
+
}
|
|
264
|
+
if (typeof subdomain !== 'undefined') {
|
|
265
|
+
payload['subdomain'] = subdomain;
|
|
266
|
+
}
|
|
267
|
+
if (typeof region !== 'undefined') {
|
|
268
|
+
payload['region'] = region;
|
|
269
|
+
}
|
|
270
|
+
if (typeof adminSecret !== 'undefined') {
|
|
271
|
+
payload['adminSecret'] = adminSecret;
|
|
272
|
+
}
|
|
273
|
+
if (typeof database !== 'undefined') {
|
|
274
|
+
payload['database'] = database;
|
|
275
|
+
}
|
|
276
|
+
if (typeof username !== 'undefined') {
|
|
277
|
+
payload['username'] = username;
|
|
278
|
+
}
|
|
279
|
+
if (typeof password !== 'undefined') {
|
|
280
|
+
payload['password'] = password;
|
|
281
|
+
}
|
|
282
|
+
if (typeof port !== 'undefined') {
|
|
283
|
+
payload['port'] = port;
|
|
284
|
+
}
|
|
285
|
+
let response = undefined;
|
|
286
|
+
response = await client.call('get', apiPath, {}, payload);
|
|
287
|
+
if (parseOutput) {
|
|
288
|
+
(0, parser_1.parse)(response);
|
|
289
|
+
}
|
|
290
|
+
return response;
|
|
291
|
+
};
|
|
292
|
+
exports.migrationsGetNHostReport = migrationsGetNHostReport;
|
|
293
|
+
const migrationsCreateSupabaseMigration = async ({ resources, endpoint, apiKey, databaseHost, username, password, port, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
294
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
295
|
+
sdk;
|
|
296
|
+
let apiPath = '/migrations/supabase';
|
|
297
|
+
let payload = {};
|
|
298
|
+
resources = resources === true ? [] : resources;
|
|
299
|
+
if (typeof resources !== 'undefined') {
|
|
300
|
+
payload['resources'] = resources;
|
|
301
|
+
}
|
|
302
|
+
if (typeof endpoint !== 'undefined') {
|
|
303
|
+
payload['endpoint'] = endpoint;
|
|
304
|
+
}
|
|
305
|
+
if (typeof apiKey !== 'undefined') {
|
|
306
|
+
payload['apiKey'] = apiKey;
|
|
307
|
+
}
|
|
308
|
+
if (typeof databaseHost !== 'undefined') {
|
|
309
|
+
payload['databaseHost'] = databaseHost;
|
|
310
|
+
}
|
|
311
|
+
if (typeof username !== 'undefined') {
|
|
312
|
+
payload['username'] = username;
|
|
313
|
+
}
|
|
314
|
+
if (typeof password !== 'undefined') {
|
|
315
|
+
payload['password'] = password;
|
|
316
|
+
}
|
|
317
|
+
if (typeof port !== 'undefined') {
|
|
318
|
+
payload['port'] = port;
|
|
319
|
+
}
|
|
320
|
+
let response = undefined;
|
|
321
|
+
response = await client.call('post', apiPath, {
|
|
322
|
+
'content-type': 'application/json',
|
|
323
|
+
}, payload);
|
|
324
|
+
if (parseOutput) {
|
|
325
|
+
(0, parser_1.parse)(response);
|
|
326
|
+
}
|
|
327
|
+
return response;
|
|
328
|
+
};
|
|
329
|
+
exports.migrationsCreateSupabaseMigration = migrationsCreateSupabaseMigration;
|
|
330
|
+
const migrationsGetSupabaseReport = async ({ resources, endpoint, apiKey, databaseHost, username, password, port, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
331
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
332
|
+
sdk;
|
|
333
|
+
let apiPath = '/migrations/supabase/report';
|
|
334
|
+
let payload = {};
|
|
335
|
+
if (typeof resources !== 'undefined') {
|
|
336
|
+
payload['resources'] = resources;
|
|
337
|
+
}
|
|
338
|
+
if (typeof endpoint !== 'undefined') {
|
|
339
|
+
payload['endpoint'] = endpoint;
|
|
340
|
+
}
|
|
341
|
+
if (typeof apiKey !== 'undefined') {
|
|
342
|
+
payload['apiKey'] = apiKey;
|
|
343
|
+
}
|
|
344
|
+
if (typeof databaseHost !== 'undefined') {
|
|
345
|
+
payload['databaseHost'] = databaseHost;
|
|
346
|
+
}
|
|
347
|
+
if (typeof username !== 'undefined') {
|
|
348
|
+
payload['username'] = username;
|
|
349
|
+
}
|
|
350
|
+
if (typeof password !== 'undefined') {
|
|
351
|
+
payload['password'] = password;
|
|
352
|
+
}
|
|
353
|
+
if (typeof port !== 'undefined') {
|
|
354
|
+
payload['port'] = port;
|
|
355
|
+
}
|
|
356
|
+
let response = undefined;
|
|
357
|
+
response = await client.call('get', apiPath, {}, payload);
|
|
358
|
+
if (parseOutput) {
|
|
359
|
+
(0, parser_1.parse)(response);
|
|
360
|
+
}
|
|
361
|
+
return response;
|
|
362
|
+
};
|
|
363
|
+
exports.migrationsGetSupabaseReport = migrationsGetSupabaseReport;
|
|
364
|
+
const migrationsGet = async ({ migrationId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
365
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
366
|
+
sdk;
|
|
367
|
+
let apiPath = '/migrations/{migrationId}'.replace('{migrationId}', migrationId);
|
|
368
|
+
let payload = {};
|
|
369
|
+
let response = undefined;
|
|
370
|
+
response = await client.call('get', apiPath, {}, payload);
|
|
371
|
+
if (parseOutput) {
|
|
372
|
+
(0, parser_1.parse)(response);
|
|
373
|
+
}
|
|
374
|
+
return response;
|
|
375
|
+
};
|
|
376
|
+
exports.migrationsGet = migrationsGet;
|
|
377
|
+
const migrationsRetry = async ({ migrationId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
378
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
379
|
+
sdk;
|
|
380
|
+
let apiPath = '/migrations/{migrationId}'.replace('{migrationId}', migrationId);
|
|
381
|
+
let payload = {};
|
|
382
|
+
let response = undefined;
|
|
383
|
+
response = await client.call('patch', apiPath, {
|
|
384
|
+
'content-type': 'application/json',
|
|
385
|
+
}, payload);
|
|
386
|
+
if (parseOutput) {
|
|
387
|
+
(0, parser_1.parse)(response);
|
|
388
|
+
}
|
|
389
|
+
return response;
|
|
390
|
+
};
|
|
391
|
+
exports.migrationsRetry = migrationsRetry;
|
|
392
|
+
const migrationsDelete = async ({ migrationId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
|
|
393
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() :
|
|
394
|
+
sdk;
|
|
395
|
+
let apiPath = '/migrations/{migrationId}'.replace('{migrationId}', migrationId);
|
|
396
|
+
let payload = {};
|
|
397
|
+
let response = undefined;
|
|
398
|
+
response = await client.call('delete', apiPath, {
|
|
399
|
+
'content-type': 'application/json',
|
|
400
|
+
}, payload);
|
|
401
|
+
if (parseOutput) {
|
|
402
|
+
(0, parser_1.parse)(response);
|
|
403
|
+
}
|
|
404
|
+
return response;
|
|
405
|
+
};
|
|
406
|
+
exports.migrationsDelete = migrationsDelete;
|
|
407
|
+
exports.migrations
|
|
408
|
+
.command(`list`)
|
|
409
|
+
.description(`List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.`)
|
|
410
|
+
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: status, stage, source, destination, resources, statusCounters, resourceData, errors`)
|
|
411
|
+
.option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
|
|
412
|
+
.option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
413
|
+
.action((0, parser_1.actionRunner)(exports.migrationsList));
|
|
414
|
+
exports.migrations
|
|
415
|
+
.command(`create-appwrite-migration`)
|
|
416
|
+
.description(`Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project. `)
|
|
417
|
+
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
418
|
+
.requiredOption(`--endpoint <endpoint>`, `Source Appwrite endpoint`)
|
|
419
|
+
.requiredOption(`--project-id <project-id>`, `Source Project ID`)
|
|
420
|
+
.requiredOption(`--api-key <api-key>`, `Source API Key`)
|
|
421
|
+
.action((0, parser_1.actionRunner)(exports.migrationsCreateAppwriteMigration));
|
|
422
|
+
exports.migrations
|
|
423
|
+
.command(`get-appwrite-report`)
|
|
424
|
+
.description(`Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.`)
|
|
425
|
+
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
426
|
+
.requiredOption(`--endpoint <endpoint>`, `Source's Appwrite Endpoint`)
|
|
427
|
+
.requiredOption(`--project-id <project-id>`, `Source's Project ID`)
|
|
428
|
+
.requiredOption(`--key <key>`, `Source's API Key`)
|
|
429
|
+
.action((0, parser_1.actionRunner)(exports.migrationsGetAppwriteReport));
|
|
430
|
+
exports.migrations
|
|
431
|
+
.command(`create-csv-export`)
|
|
432
|
+
.description(`Export documents to a CSV file from your Appwrite database. This endpoint allows you to export documents to a CSV file stored in a secure internal bucket. You'll receive an email with a download link when the export is complete.`)
|
|
433
|
+
.requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.`)
|
|
434
|
+
.requiredOption(`--filename <filename>`, `The name of the file to be created for the export, excluding the .csv extension.`)
|
|
435
|
+
.option(`--columns [columns...]`, `List of attributes to export. If empty, all attributes will be exported. You can use the '*' wildcard to export all attributes from the collection.`)
|
|
436
|
+
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
437
|
+
.option(`--delimiter <delimiter>`, `The character that separates each column value. Default is comma.`)
|
|
438
|
+
.option(`--enclosure <enclosure>`, `The character that encloses each column value. Default is double quotes.`)
|
|
439
|
+
.option(`--escape <escape>`, `The escape character for the enclosure character. Default is double quotes.`)
|
|
440
|
+
.option(`--header [value]`, `Whether to include the header row with column names. Default is true.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
441
|
+
.option(`--notify [value]`, `Set to true to receive an email when the export is complete. Default is true.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
442
|
+
.action((0, parser_1.actionRunner)(exports.migrationsCreateCSVExport));
|
|
443
|
+
exports.migrations
|
|
444
|
+
.command(`create-csv-import`)
|
|
445
|
+
.description(`Import documents from a CSV file into your Appwrite database. This endpoint allows you to import documents from a CSV file uploaded to Appwrite Storage bucket.`)
|
|
446
|
+
.requiredOption(`--bucket-id <bucket-id>`, `Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).`)
|
|
447
|
+
.requiredOption(`--file-id <file-id>`, `File ID.`)
|
|
448
|
+
.requiredOption(`--resource-id <resource-id>`, `Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.`)
|
|
449
|
+
.option(`--internal-file [value]`, `Is the file stored in an internal bucket?`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
|
|
450
|
+
.action((0, parser_1.actionRunner)(exports.migrationsCreateCSVImport));
|
|
451
|
+
exports.migrations
|
|
452
|
+
.command(`create-firebase-migration`)
|
|
453
|
+
.description(`Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project. `)
|
|
454
|
+
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
455
|
+
.requiredOption(`--service-account <service-account>`, `JSON of the Firebase service account credentials`)
|
|
456
|
+
.action((0, parser_1.actionRunner)(exports.migrationsCreateFirebaseMigration));
|
|
457
|
+
exports.migrations
|
|
458
|
+
.command(`get-firebase-report`)
|
|
459
|
+
.description(`Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.`)
|
|
460
|
+
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
461
|
+
.requiredOption(`--service-account <service-account>`, `JSON of the Firebase service account credentials`)
|
|
462
|
+
.action((0, parser_1.actionRunner)(exports.migrationsGetFirebaseReport));
|
|
463
|
+
exports.migrations
|
|
464
|
+
.command(`create-n-host-migration`)
|
|
465
|
+
.description(`Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project. `)
|
|
466
|
+
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
467
|
+
.requiredOption(`--subdomain <subdomain>`, `Source's Subdomain`)
|
|
468
|
+
.requiredOption(`--region <region>`, `Source's Region`)
|
|
469
|
+
.requiredOption(`--admin-secret <admin-secret>`, `Source's Admin Secret`)
|
|
470
|
+
.requiredOption(`--database <database>`, `Source's Database Name`)
|
|
471
|
+
.requiredOption(`--username <username>`, `Source's Database Username`)
|
|
472
|
+
.requiredOption(`--password <password>`, `Source's Database Password`)
|
|
473
|
+
.option(`--port <port>`, `Source's Database Port`, parser_1.parseInteger)
|
|
474
|
+
.action((0, parser_1.actionRunner)(exports.migrationsCreateNHostMigration));
|
|
475
|
+
exports.migrations
|
|
476
|
+
.command(`get-n-host-report`)
|
|
477
|
+
.description(`Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. `)
|
|
478
|
+
.requiredOption(`--resources [resources...]`, `List of resources to migrate.`)
|
|
479
|
+
.requiredOption(`--subdomain <subdomain>`, `Source's Subdomain.`)
|
|
480
|
+
.requiredOption(`--region <region>`, `Source's Region.`)
|
|
481
|
+
.requiredOption(`--admin-secret <admin-secret>`, `Source's Admin Secret.`)
|
|
482
|
+
.requiredOption(`--database <database>`, `Source's Database Name.`)
|
|
483
|
+
.requiredOption(`--username <username>`, `Source's Database Username.`)
|
|
484
|
+
.requiredOption(`--password <password>`, `Source's Database Password.`)
|
|
485
|
+
.option(`--port <port>`, `Source's Database Port.`, parser_1.parseInteger)
|
|
486
|
+
.action((0, parser_1.actionRunner)(exports.migrationsGetNHostReport));
|
|
487
|
+
exports.migrations
|
|
488
|
+
.command(`create-supabase-migration`)
|
|
489
|
+
.description(`Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project. `)
|
|
490
|
+
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
491
|
+
.requiredOption(`--endpoint <endpoint>`, `Source's Supabase Endpoint`)
|
|
492
|
+
.requiredOption(`--api-key <api-key>`, `Source's API Key`)
|
|
493
|
+
.requiredOption(`--database-host <database-host>`, `Source's Database Host`)
|
|
494
|
+
.requiredOption(`--username <username>`, `Source's Database Username`)
|
|
495
|
+
.requiredOption(`--password <password>`, `Source's Database Password`)
|
|
496
|
+
.option(`--port <port>`, `Source's Database Port`, parser_1.parseInteger)
|
|
497
|
+
.action((0, parser_1.actionRunner)(exports.migrationsCreateSupabaseMigration));
|
|
498
|
+
exports.migrations
|
|
499
|
+
.command(`get-supabase-report`)
|
|
500
|
+
.description(`Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated. `)
|
|
501
|
+
.requiredOption(`--resources [resources...]`, `List of resources to migrate`)
|
|
502
|
+
.requiredOption(`--endpoint <endpoint>`, `Source's Supabase Endpoint.`)
|
|
503
|
+
.requiredOption(`--api-key <api-key>`, `Source's API Key.`)
|
|
504
|
+
.requiredOption(`--database-host <database-host>`, `Source's Database Host.`)
|
|
505
|
+
.requiredOption(`--username <username>`, `Source's Database Username.`)
|
|
506
|
+
.requiredOption(`--password <password>`, `Source's Database Password.`)
|
|
507
|
+
.option(`--port <port>`, `Source's Database Port.`, parser_1.parseInteger)
|
|
508
|
+
.action((0, parser_1.actionRunner)(exports.migrationsGetSupabaseReport));
|
|
509
|
+
exports.migrations
|
|
510
|
+
.command(`get`)
|
|
511
|
+
.description(`Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process. `)
|
|
512
|
+
.requiredOption(`--migration-id <migration-id>`, `Migration unique ID.`)
|
|
513
|
+
.action((0, parser_1.actionRunner)(exports.migrationsGet));
|
|
514
|
+
exports.migrations
|
|
515
|
+
.command(`retry`)
|
|
516
|
+
.description(`Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.`)
|
|
517
|
+
.requiredOption(`--migration-id <migration-id>`, `Migration unique ID.`)
|
|
518
|
+
.action((0, parser_1.actionRunner)(exports.migrationsRetry));
|
|
519
|
+
exports.migrations
|
|
520
|
+
.command(`delete`)
|
|
521
|
+
.description(`Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history. `)
|
|
522
|
+
.requiredOption(`--migration-id <migration-id>`, `Migration ID.`)
|
|
523
|
+
.action((0, parser_1.actionRunner)(exports.migrationsDelete));
|
|
524
|
+
//# sourceMappingURL=migrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../lib/commands/migrations.ts"],"names":[],"mappings":";;;AAOA,yCAAoC;AACpC,kCAAuD;AACvD,sCAAkH;AAGlH,oCAA4C;AAE5C,SAAS,iCAAiC,CAAC,UAAyB;IAClE,OAAO,IAAI,oBAAc,CAAC;QACxB,KAAK,CAAC,UAAU;YACd,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAa,EAAE,EAAE;gBACtC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC,CAAC,CAAC;YACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBACxB,UAAU,CAAC,KAAK,EAAE,CAAC;YACrB,CAAC,CAAC,CAAC;YACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAU,EAAE,EAAE;gBACpC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC,CAAC,CAAC;QACL,CAAC;QACD,MAAM;YACJ,UAAU,CAAC,OAAO,EAAE,CAAC;QACvB,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAEY,QAAA,UAAU,GAAG,IAAI,mBAAO,CAAC,YAAY,CAAC,CAAC,WAAW,CAAC,4BAAmB,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,aAAa,CAAC;IACnH,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE;CAC1C,CAAC,CAAA;AAWK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
|
6
|
+
sdk?: Client;
|
|
7
|
+
console?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const organizationsList: ({ queries, search, parseOutput, sdk, console: showConsole }: OrganizationsListRequestParams) => Promise<any>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../lib/commands/organizations.ts"],"names":[],"mappings":"AAGA,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,UAAU,8BAA8B;IACpC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,GAAU,6DAMrC,8BAA8B,KAAG,OAAO,CAAC,GAAG,CAyB9C,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.organizationsList = void 0;
|
|
4
|
+
const sdks_1 = require("../sdks");
|
|
5
|
+
const parser_1 = require("../parser");
|
|
6
|
+
const utils_1 = require("../utils");
|
|
7
|
+
const organizationsList = async ({ queries, search, parseOutput = true, sdk = undefined, console: showConsole }) => {
|
|
8
|
+
let client = !sdk ? await (0, sdks_1.sdkForProject)() : sdk;
|
|
9
|
+
let apiPath = '/organizations';
|
|
10
|
+
let payload = {};
|
|
11
|
+
if (typeof queries !== 'undefined') {
|
|
12
|
+
payload['queries'] = queries;
|
|
13
|
+
}
|
|
14
|
+
if (typeof search !== 'undefined') {
|
|
15
|
+
payload['search'] = search;
|
|
16
|
+
}
|
|
17
|
+
let response = await client.call('get', apiPath, {
|
|
18
|
+
'content-type': 'application/json',
|
|
19
|
+
}, payload);
|
|
20
|
+
if (parseOutput) {
|
|
21
|
+
if (showConsole) {
|
|
22
|
+
(0, utils_1.showConsoleLink)('organizations', 'list');
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
(0, parser_1.parse)(response);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return response;
|
|
29
|
+
};
|
|
30
|
+
exports.organizationsList = organizationsList;
|
|
31
|
+
//# sourceMappingURL=organizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../lib/commands/organizations.ts"],"names":[],"mappings":";;;AAAA,kCAAwC;AACxC,sCAAkC;AAClC,oCAA2C;AAWpC,MAAM,iBAAiB,GAAG,KAAK,EAAE,EACpC,OAAO,EACP,MAAM,EACN,WAAW,GAAG,IAAI,EAClB,GAAG,GAAG,SAAS,EACf,OAAO,EAAE,WAAW,EACS,EAAgB,EAAE;IAC/C,IAAI,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,IAAA,oBAAa,GAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAChD,IAAI,OAAO,GAAG,gBAAgB,CAAC;IAC/B,IAAI,OAAO,GAAwB,EAAE,CAAC;IAEtC,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;QACjC,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC;IACjC,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;IAC/B,CAAC;IAED,IAAI,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE;QAC7C,cAAc,EAAE,kBAAkB;KACrC,EAAE,OAAO,CAAC,CAAC;IAEZ,IAAI,WAAW,EAAE,CAAC;QACd,IAAG,WAAW,EAAE,CAAC;YACb,IAAA,uBAAe,EAAC,eAAe,EAAE,MAAM,CAAC,CAAC;QAC7C,CAAC;aAAM,CAAC;YACJ,IAAA,cAAK,EAAC,QAAQ,CAAC,CAAA;QACnB,CAAC;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAA;AA/BY,QAAA,iBAAiB,qBA+B7B"}
|