@aouda/client 0.0.1 → 0.0.2
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 +2 -0
- package/dist/cli/index.cjs +74 -0
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +74 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/{client-DXT2ZAeO.d.cts → client-otKeBYQG.d.cts} +121 -0
- package/dist/{client-DXT2ZAeO.d.ts → client-otKeBYQG.d.ts} +121 -0
- package/dist/index.cjs +75 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +75 -1
- package/dist/index.js.map +1 -1
- package/package.json +16 -2
package/dist/cli/index.d.cts
CHANGED
package/dist/cli/index.d.ts
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -4412,6 +4412,79 @@ function parseSseLogEvent(rawEvent) {
|
|
|
4412
4412
|
return null;
|
|
4413
4413
|
}
|
|
4414
4414
|
|
|
4415
|
+
// src/admin/notifications.ts
|
|
4416
|
+
var BASE_PATH7 = "/admin/notifications";
|
|
4417
|
+
var NotificationsAdminApi = class {
|
|
4418
|
+
constructor(transport) {
|
|
4419
|
+
this.transport = transport;
|
|
4420
|
+
}
|
|
4421
|
+
/**
|
|
4422
|
+
* Get current notification provider state.
|
|
4423
|
+
* GET /admin/notifications
|
|
4424
|
+
*/
|
|
4425
|
+
async get() {
|
|
4426
|
+
return this.transport.get(BASE_PATH7);
|
|
4427
|
+
}
|
|
4428
|
+
/**
|
|
4429
|
+
* Set or update the email notification provider.
|
|
4430
|
+
* PUT /admin/notifications/email
|
|
4431
|
+
*/
|
|
4432
|
+
async putEmail(request) {
|
|
4433
|
+
return this.transport.put(
|
|
4434
|
+
`${BASE_PATH7}/email`,
|
|
4435
|
+
request
|
|
4436
|
+
);
|
|
4437
|
+
}
|
|
4438
|
+
/**
|
|
4439
|
+
* Remove the email notification provider (reverts to env/appsettings).
|
|
4440
|
+
* DELETE /admin/notifications/email
|
|
4441
|
+
*/
|
|
4442
|
+
async deleteEmail() {
|
|
4443
|
+
return this.transport.delete(
|
|
4444
|
+
`${BASE_PATH7}/email`
|
|
4445
|
+
);
|
|
4446
|
+
}
|
|
4447
|
+
/**
|
|
4448
|
+
* Set or update the SMS notification provider.
|
|
4449
|
+
* PUT /admin/notifications/sms
|
|
4450
|
+
*/
|
|
4451
|
+
async putSms(request) {
|
|
4452
|
+
return this.transport.put(
|
|
4453
|
+
`${BASE_PATH7}/sms`,
|
|
4454
|
+
request
|
|
4455
|
+
);
|
|
4456
|
+
}
|
|
4457
|
+
/**
|
|
4458
|
+
* Remove the SMS notification provider (reverts to env/appsettings).
|
|
4459
|
+
* DELETE /admin/notifications/sms
|
|
4460
|
+
*/
|
|
4461
|
+
async deleteSms() {
|
|
4462
|
+
return this.transport.delete(
|
|
4463
|
+
`${BASE_PATH7}/sms`
|
|
4464
|
+
);
|
|
4465
|
+
}
|
|
4466
|
+
/**
|
|
4467
|
+
* Send a test email via the currently configured provider.
|
|
4468
|
+
* POST /admin/notifications/email/test
|
|
4469
|
+
*/
|
|
4470
|
+
async testEmail(request) {
|
|
4471
|
+
return this.transport.post(
|
|
4472
|
+
`${BASE_PATH7}/email/test`,
|
|
4473
|
+
request
|
|
4474
|
+
);
|
|
4475
|
+
}
|
|
4476
|
+
/**
|
|
4477
|
+
* Send a test SMS via the currently configured provider.
|
|
4478
|
+
* POST /admin/notifications/sms/test
|
|
4479
|
+
*/
|
|
4480
|
+
async testSms(request) {
|
|
4481
|
+
return this.transport.post(
|
|
4482
|
+
`${BASE_PATH7}/sms/test`,
|
|
4483
|
+
request
|
|
4484
|
+
);
|
|
4485
|
+
}
|
|
4486
|
+
};
|
|
4487
|
+
|
|
4415
4488
|
// src/admin/index.ts
|
|
4416
4489
|
var AdminApi = class {
|
|
4417
4490
|
constructor(transport) {
|
|
@@ -4423,6 +4496,7 @@ var AdminApi = class {
|
|
|
4423
4496
|
this.backup = new BackupAdminApi(transport);
|
|
4424
4497
|
this.config = new ConfigAdminApi(transport);
|
|
4425
4498
|
this.node = new NodeAdminApi(transport);
|
|
4499
|
+
this.notifications = new NotificationsAdminApi(transport);
|
|
4426
4500
|
}
|
|
4427
4501
|
};
|
|
4428
4502
|
|