@niledatabase/server 3.0.0-alpha.2 → 3.0.0-alpha.3
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/dist/api/routes/tenants/[tenantId]/users/PUT.d.ts +1 -2
- package/dist/api/routes/tenants/[tenantId]/users/[userId]/DELETE.d.ts +2 -2
- package/dist/server.cjs.development.js +9 -7
- package/dist/server.cjs.development.js.map +1 -1
- package/dist/server.cjs.production.min.js +1 -1
- package/dist/server.cjs.production.min.js.map +1 -1
- package/dist/server.esm.js +9 -7
- package/dist/server.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -15,8 +15,7 @@ import { ActiveSession } from '../../../../utils/auth';
|
|
|
15
15
|
* type: string
|
|
16
16
|
* requestBody:
|
|
17
17
|
* description: |
|
|
18
|
-
* The email
|
|
19
|
-
* The `name` is optional; if provided it will be recorded in the `users` table.
|
|
18
|
+
* The email of the user you want to add to a tenant.
|
|
20
19
|
* content:
|
|
21
20
|
* application/json:
|
|
22
21
|
* schema:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActiveSession } from '../../../../../utils/auth';
|
|
2
2
|
/**
|
|
3
3
|
* @swagger
|
|
4
|
-
* /api/tenants/{tenantId}/users/{
|
|
4
|
+
* /api/tenants/{tenantId}/users/{email}:
|
|
5
5
|
* delete:
|
|
6
6
|
* tags:
|
|
7
7
|
* - tenants
|
|
@@ -15,7 +15,7 @@ import { ActiveSession } from '../../../../../utils/auth';
|
|
|
15
15
|
* required: true
|
|
16
16
|
* schema:
|
|
17
17
|
* type: string
|
|
18
|
-
* - name:
|
|
18
|
+
* - name: email
|
|
19
19
|
* in: path
|
|
20
20
|
* required: true
|
|
21
21
|
* schema:
|
|
@@ -2730,7 +2730,7 @@ function _POST$1() {
|
|
|
2730
2730
|
|
|
2731
2731
|
/**
|
|
2732
2732
|
* @swagger
|
|
2733
|
-
* /api/tenants/{tenantId}/users/{
|
|
2733
|
+
* /api/tenants/{tenantId}/users/{email}:
|
|
2734
2734
|
* delete:
|
|
2735
2735
|
* tags:
|
|
2736
2736
|
* - tenants
|
|
@@ -2744,7 +2744,7 @@ function _POST$1() {
|
|
|
2744
2744
|
* required: true
|
|
2745
2745
|
* schema:
|
|
2746
2746
|
* type: string
|
|
2747
|
-
* - name:
|
|
2747
|
+
* - name: email
|
|
2748
2748
|
* in: path
|
|
2749
2749
|
* required: true
|
|
2750
2750
|
* schema:
|
|
@@ -2774,13 +2774,16 @@ function _DELETE$1() {
|
|
|
2774
2774
|
}));
|
|
2775
2775
|
case 4:
|
|
2776
2776
|
init.method = 'DELETE';
|
|
2777
|
+
init.body = JSON.stringify({
|
|
2778
|
+
email: userId
|
|
2779
|
+
});
|
|
2777
2780
|
url = "" + apiRoutes.TENANT_USER(tenantId, userId);
|
|
2778
2781
|
log('[DELETE]', url);
|
|
2779
|
-
_context.next =
|
|
2782
|
+
_context.next = 10;
|
|
2780
2783
|
return request(url, init);
|
|
2781
|
-
case 9:
|
|
2782
|
-
return _context.abrupt("return", _context.sent);
|
|
2783
2784
|
case 10:
|
|
2785
|
+
return _context.abrupt("return", _context.sent);
|
|
2786
|
+
case 11:
|
|
2784
2787
|
case "end":
|
|
2785
2788
|
return _context.stop();
|
|
2786
2789
|
}
|
|
@@ -2805,8 +2808,7 @@ function _DELETE$1() {
|
|
|
2805
2808
|
* type: string
|
|
2806
2809
|
* requestBody:
|
|
2807
2810
|
* description: |
|
|
2808
|
-
* The email
|
|
2809
|
-
* The `name` is optional; if provided it will be recorded in the `users` table.
|
|
2811
|
+
* The email of the user you want to add to a tenant.
|
|
2810
2812
|
* content:
|
|
2811
2813
|
* application/json:
|
|
2812
2814
|
* schema:
|