@akis05/akis 0.1.12 β 0.1.13
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/README.md +38 -0
- package/dist/cli/akis.js +11 -1
- package/dist/cli/akis.js.map +1 -1
- package/dist/cli/commands/resetdb.d.ts +7 -0
- package/dist/cli/commands/resetdb.d.ts.map +1 -0
- package/dist/cli/commands/resetdb.js +169 -0
- package/dist/cli/commands/resetdb.js.map +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -297,6 +297,43 @@ npx akis delete --name clients -f # Delete without confirmation
|
|
|
297
297
|
|
|
298
298
|
---
|
|
299
299
|
|
|
300
|
+
### `akis resetdb`
|
|
301
|
+
|
|
302
|
+
Deletes all documents from collections without deleting the collections themselves.
|
|
303
|
+
|
|
304
|
+
```bash
|
|
305
|
+
npx akis resetdb # Purge all collections
|
|
306
|
+
npx akis resetdb --name clients # Purge a specific collection
|
|
307
|
+
npx akis resetdb --force # Purge without confirmation
|
|
308
|
+
npx akis resetdb --name clients -f # Purge specific collection without confirmation
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**Options:**
|
|
312
|
+
| Option | Description |
|
|
313
|
+
|--------|-------------|
|
|
314
|
+
| `-n, --name <name>` | Name of the collection to purge |
|
|
315
|
+
| `-f, --force` | Purge without asking for confirmation |
|
|
316
|
+
|
|
317
|
+
**Example output:**
|
|
318
|
+
```
|
|
319
|
+
π§Ή AKIS ResetDB - Purging all collections data
|
|
320
|
+
|
|
321
|
+
π‘ Connecting to Appwrite...
|
|
322
|
+
5 collection(s) found
|
|
323
|
+
|
|
324
|
+
π§Ή Purging data...
|
|
325
|
+
|
|
326
|
+
ποΈ clients... 12 document(s) deleted
|
|
327
|
+
ποΈ products... 34 document(s) deleted
|
|
328
|
+
ποΈ orders... 8 document(s) deleted
|
|
329
|
+
|
|
330
|
+
β¨ Reset complete: 3 collection(s) purged, 54 document(s) deleted, 0 error(s)
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
β οΈ **Warning**: This deletes all data but keeps the collection structure intact.
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
300
337
|
## Supported TypeScript Types
|
|
301
338
|
|
|
302
339
|
AKIS automatically recognizes the following types:
|
|
@@ -381,6 +418,7 @@ Then use:
|
|
|
381
418
|
pnpm akis status
|
|
382
419
|
pnpm akis migrate
|
|
383
420
|
pnpm akis update
|
|
421
|
+
pnpm akis resetdb
|
|
384
422
|
```
|
|
385
423
|
|
|
386
424
|
---
|
package/dist/cli/akis.js
CHANGED
|
@@ -6,6 +6,7 @@ const init_1 = require("./commands/init");
|
|
|
6
6
|
const migrate_1 = require("./commands/migrate");
|
|
7
7
|
const update_1 = require("./commands/update");
|
|
8
8
|
const delete_1 = require("./commands/delete");
|
|
9
|
+
const resetdb_1 = require("./commands/resetdb");
|
|
9
10
|
const status_1 = require("./commands/status");
|
|
10
11
|
const program = new commander_1.Command();
|
|
11
12
|
program
|
|
@@ -27,7 +28,7 @@ program
|
|
|
27
28
|
β APPWRITE_DATABASE_ID, APPWRITE_API_KEY β
|
|
28
29
|
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
29
30
|
`)
|
|
30
|
-
.version("0.1.
|
|
31
|
+
.version("0.1.13");
|
|
31
32
|
program
|
|
32
33
|
.command("init")
|
|
33
34
|
.description("Initialize project with core/appwrite-model/ structure")
|
|
@@ -51,6 +52,12 @@ program
|
|
|
51
52
|
.option("-f, --force", "Delete without confirmation")
|
|
52
53
|
.option("-n, --name <name>", "Name of the collection to delete (otherwise all)")
|
|
53
54
|
.action(delete_1.deleteAll);
|
|
55
|
+
program
|
|
56
|
+
.command("resetdb")
|
|
57
|
+
.description("Delete all documents from collections (keeps collections intact)")
|
|
58
|
+
.option("-f, --force", "Reset without confirmation")
|
|
59
|
+
.option("-n, --name <name>", "Name of the collection to purge (otherwise all)")
|
|
60
|
+
.action(resetdb_1.resetDb);
|
|
54
61
|
program
|
|
55
62
|
.command("status")
|
|
56
63
|
.description("Compare local types with Appwrite collections")
|
|
@@ -66,6 +73,9 @@ Examples:
|
|
|
66
73
|
$ npx akis status # View sync status
|
|
67
74
|
$ npx akis delete --name clients # Delete "clients"
|
|
68
75
|
$ npx akis delete --force # Delete all collections
|
|
76
|
+
$ npx akis resetdb # Purge all documents from all collections
|
|
77
|
+
$ npx akis resetdb --name clients # Purge documents from "clients" only
|
|
78
|
+
$ npx akis resetdb --force # Purge without confirmation
|
|
69
79
|
`);
|
|
70
80
|
program.parse();
|
|
71
81
|
//# sourceMappingURL=akis.js.map
|
package/dist/cli/akis.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"akis.js","sourceRoot":"","sources":["../../src/cli/akis.ts"],"names":[],"mappings":";;;AACA,yCAAoC;AACpC,0CAAuC;AACvC,gDAA6C;AAC7C,8CAA2C;AAC3C,8CAA8C;AAC9C,8CAA2C;AAE3C,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,MAAM,CAAC;KACZ,WAAW,CAAC;;;;;;;;;;;;;;;;CAgBd,CAAC;KACC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"akis.js","sourceRoot":"","sources":["../../src/cli/akis.ts"],"names":[],"mappings":";;;AACA,yCAAoC;AACpC,0CAAuC;AACvC,gDAA6C;AAC7C,8CAA2C;AAC3C,8CAA8C;AAC9C,gDAA6C;AAC7C,8CAA2C;AAE3C,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,MAAM,CAAC;KACZ,WAAW,CAAC;;;;;;;;;;;;;;;;CAgBd,CAAC;KACC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAErB,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,wDAAwD,CAAC;KACrE,MAAM,CAAC,aAAa,EAAE,0BAA0B,CAAC;KAC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"],"names":[],"mappings":"AAcA,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAmDD,wBAAsB,OAAO,CAAC,OAAO,EAAE,cAAc,iBA+FpD"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.resetDb = resetDb;
|
|
37
|
+
const node_appwrite_1 = require("node-appwrite");
|
|
38
|
+
const path = __importStar(require("path"));
|
|
39
|
+
const dotenv = __importStar(require("dotenv"));
|
|
40
|
+
const readline = __importStar(require("readline"));
|
|
41
|
+
// Load env
|
|
42
|
+
dotenv.config({ path: path.resolve(process.cwd(), ".env") });
|
|
43
|
+
dotenv.config({ path: path.resolve(process.cwd(), ".env.local") });
|
|
44
|
+
const APPWRITE_ENDPOINT = process.env.APPWRITE_ENDPOINT || "https://cloud.appwrite.io/v1";
|
|
45
|
+
const APPWRITE_PROJECT_ID = process.env.APPWRITE_PROJECT_ID || "";
|
|
46
|
+
const APPWRITE_API_KEY = process.env.APPWRITE_API_KEY || "";
|
|
47
|
+
const APPWRITE_DATABASE_ID = process.env.APPWRITE_DATABASE_ID || "";
|
|
48
|
+
async function delay(ms) {
|
|
49
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
50
|
+
}
|
|
51
|
+
async function confirm(message) {
|
|
52
|
+
const rl = readline.createInterface({
|
|
53
|
+
input: process.stdin,
|
|
54
|
+
output: process.stdout,
|
|
55
|
+
});
|
|
56
|
+
return new Promise((resolve) => {
|
|
57
|
+
rl.question(message, (answer) => {
|
|
58
|
+
rl.close();
|
|
59
|
+
resolve(answer.toLowerCase() === "y" || answer.toLowerCase() === "yes");
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
async function deleteAllDocuments(databases, databaseId, collectionId) {
|
|
64
|
+
let totalDeleted = 0;
|
|
65
|
+
while (true) {
|
|
66
|
+
const response = await databases.listDocuments({
|
|
67
|
+
databaseId,
|
|
68
|
+
collectionId,
|
|
69
|
+
queries: [node_appwrite_1.Query.limit(100)],
|
|
70
|
+
});
|
|
71
|
+
if (response.documents.length === 0)
|
|
72
|
+
break;
|
|
73
|
+
for (const doc of response.documents) {
|
|
74
|
+
await databases.deleteDocument({
|
|
75
|
+
databaseId,
|
|
76
|
+
collectionId,
|
|
77
|
+
documentId: doc.$id,
|
|
78
|
+
});
|
|
79
|
+
totalDeleted++;
|
|
80
|
+
}
|
|
81
|
+
await delay(200);
|
|
82
|
+
}
|
|
83
|
+
return totalDeleted;
|
|
84
|
+
}
|
|
85
|
+
async function resetDb(options) {
|
|
86
|
+
const targetName = options.name;
|
|
87
|
+
console.log(`\nπ§Ή AKIS ResetDB - ${targetName ? `Purging data from "${targetName}"` : "Purging all collections data"}\n`);
|
|
88
|
+
if (!APPWRITE_API_KEY) {
|
|
89
|
+
console.error("β APPWRITE_API_KEY not configured in .env");
|
|
90
|
+
process.exit(1);
|
|
91
|
+
}
|
|
92
|
+
if (!APPWRITE_DATABASE_ID) {
|
|
93
|
+
console.error("β APPWRITE_DATABASE_ID not configured in .env");
|
|
94
|
+
process.exit(1);
|
|
95
|
+
}
|
|
96
|
+
// Connect to Appwrite
|
|
97
|
+
const client = new node_appwrite_1.Client()
|
|
98
|
+
.setEndpoint(APPWRITE_ENDPOINT)
|
|
99
|
+
.setProject(APPWRITE_PROJECT_ID)
|
|
100
|
+
.setKey(APPWRITE_API_KEY);
|
|
101
|
+
const databases = new node_appwrite_1.Databases(client);
|
|
102
|
+
// Get existing collections
|
|
103
|
+
console.log("π‘ Connecting to Appwrite...");
|
|
104
|
+
let collections = [];
|
|
105
|
+
try {
|
|
106
|
+
const response = await databases.listCollections({
|
|
107
|
+
databaseId: APPWRITE_DATABASE_ID,
|
|
108
|
+
queries: [node_appwrite_1.Query.limit(100)],
|
|
109
|
+
});
|
|
110
|
+
if (targetName) {
|
|
111
|
+
collections = response.collections.filter((c) => c.name === targetName);
|
|
112
|
+
if (collections.length === 0) {
|
|
113
|
+
console.error(`β Collection "${targetName}" not found in Appwrite`);
|
|
114
|
+
console.log(` Available collections: ${response.collections.map((c) => c.name).join(", ")}`);
|
|
115
|
+
process.exit(1);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
collections = response.collections;
|
|
120
|
+
}
|
|
121
|
+
console.log(` ${collections.length} collection(s) found\n`);
|
|
122
|
+
}
|
|
123
|
+
catch (error) {
|
|
124
|
+
console.error("β Connection error:", error);
|
|
125
|
+
process.exit(1);
|
|
126
|
+
}
|
|
127
|
+
if (collections.length === 0) {
|
|
128
|
+
console.log("β¨ No collections found\n");
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
// Confirm reset
|
|
132
|
+
if (!options.force) {
|
|
133
|
+
console.log("Collection(s) to purge:");
|
|
134
|
+
for (const col of collections) {
|
|
135
|
+
console.log(` - ${col.name}`);
|
|
136
|
+
}
|
|
137
|
+
console.log("");
|
|
138
|
+
const confirmMsg = targetName
|
|
139
|
+
? `β οΈ Are you sure you want to delete ALL documents from "${targetName}"? (y/N) `
|
|
140
|
+
: "β οΈ Are you sure you want to delete ALL documents from ALL collections? (y/N) ";
|
|
141
|
+
const confirmed = await confirm(confirmMsg);
|
|
142
|
+
if (!confirmed) {
|
|
143
|
+
console.log("\nβ Reset cancelled\n");
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
// Delete all documents from each collection
|
|
148
|
+
let totalCollections = 0;
|
|
149
|
+
let totalDocuments = 0;
|
|
150
|
+
let errors = 0;
|
|
151
|
+
console.log("\nπ§Ή Purging data...\n");
|
|
152
|
+
for (const col of collections) {
|
|
153
|
+
try {
|
|
154
|
+
process.stdout.write(` ποΈ ${col.name}...`);
|
|
155
|
+
const deleted = await deleteAllDocuments(databases, APPWRITE_DATABASE_ID, col.$id);
|
|
156
|
+
console.log(` ${deleted} document(s) deleted`);
|
|
157
|
+
totalDocuments += deleted;
|
|
158
|
+
totalCollections++;
|
|
159
|
+
await delay(200);
|
|
160
|
+
}
|
|
161
|
+
catch (error) {
|
|
162
|
+
const err = error;
|
|
163
|
+
console.log(` β Error: ${err.message || error}`);
|
|
164
|
+
errors++;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
console.log(`\n⨠Reset complete: ${totalCollections} collection(s) purged, ${totalDocuments} document(s) deleted, ${errors} error(s)\n`);
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=resetdb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resetdb.js","sourceRoot":"","sources":["../../../src/cli/commands/resetdb.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,0BA+FC;AAnKD,iDAAyD;AACzD,2CAA6B;AAC7B,+CAAiC;AACjC,mDAAqC;AAErC,WAAW;AACX,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC;AAEnE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,8BAA8B,CAAC;AAC1F,MAAM,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,EAAE,CAAC;AAClE,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;AAC5D,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,EAAE,CAAC;AAOpE,KAAK,UAAU,KAAK,CAAC,EAAU;IAC7B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,KAAK,UAAU,OAAO,CAAC,OAAe;IACpC,MAAM,EAAE,GAAG,QAAQ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C,IAAI,gBAAgB,GAAG,CAAC,CAAC;IACzB,IAAI,cAAc,GAAG,CAAC,CAAC;IACvB,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IAEtC,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QAC9B,IAAI,CAAC;YACH,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC;YAC/C,MAAM,OAAO,GAAG,MAAM,kBAAkB,CAAC,SAAS,EAAE,oBAAoB,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;YACnF,OAAO,CAAC,GAAG,CAAC,IAAI,OAAO,sBAAsB,CAAC,CAAC;YAC/C,cAAc,IAAI,OAAO,CAAC;YAC1B,gBAAgB,EAAE,CAAC;YACnB,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,MAAM,GAAG,GAAG,KAA6B,CAAC;YAC1C,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,CAAC,OAAO,IAAI,KAAK,EAAE,CAAC,CAAC;YACjD,MAAM,EAAE,CAAC;QACX,CAAC;IACH,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,uBAAuB,gBAAgB,0BAA0B,cAAc,yBAAyB,MAAM,aAAa,CAAC,CAAC;AAC3I,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akis05/akis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "CLI pour gΓ©rer les collections Appwrite depuis les types TypeScript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@akis05/akis": "0.1.13",
|
|
24
25
|
"commander": "^12.0.0",
|
|
25
26
|
"dotenv": "^16.4.0",
|
|
26
27
|
"node-appwrite": "^23.0.0"
|