@xemahq/org-database-pool-internal-api-client 0.3.6 → 0.3.8
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.
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const getOrgErasureControllerEraseUrl: (orgId: string) => string;
|
|
2
|
+
/**
|
|
3
|
+
* @summary Erase every row belonging to an org across this service's org-scoped models
|
|
4
|
+
*/
|
|
5
|
+
export declare const orgErasureControllerErase: (orgId: string, options?: RequestInit) => Promise<void>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orgErasureControllerErase = exports.getOrgErasureControllerEraseUrl = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generated by @xemahq/api-client-generator — do not edit manually.
|
|
6
|
+
* Org Database Pool API
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
10
|
+
const getOrgErasureControllerEraseUrl = (orgId) => {
|
|
11
|
+
return `/internal/org-erasure/${orgId}`;
|
|
12
|
+
};
|
|
13
|
+
exports.getOrgErasureControllerEraseUrl = getOrgErasureControllerEraseUrl;
|
|
14
|
+
/**
|
|
15
|
+
* @summary Erase every row belonging to an org across this service's org-scoped models
|
|
16
|
+
*/
|
|
17
|
+
const orgErasureControllerErase = async (orgId, options) => {
|
|
18
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getOrgErasureControllerEraseUrl)(orgId), {
|
|
19
|
+
...options,
|
|
20
|
+
method: 'POST'
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.orgErasureControllerErase = orgErasureControllerErase;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -25,3 +25,4 @@ __exportStar(require("./models"), exports);
|
|
|
25
25
|
__exportStar(require("./endpoints/admin-schema-access/admin-schema-access"), exports);
|
|
26
26
|
__exportStar(require("./endpoints/connections/connections"), exports);
|
|
27
27
|
__exportStar(require("./endpoints/internal/internal"), exports);
|
|
28
|
+
__exportStar(require("./endpoints/org-erasure/org-erasure"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xemahq/org-database-pool-internal-api-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/xema-dev/xema-base.git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"service": "org-database-pool-api",
|
|
25
25
|
"biome": "org-database-pool",
|
|
26
26
|
"target": "server",
|
|
27
|
-
"generator": "@xemahq/api-client-generator@0.
|
|
27
|
+
"generator": "@xemahq/api-client-generator@0.15.2",
|
|
28
28
|
"source": "openapi.internal.json"
|
|
29
29
|
},
|
|
30
30
|
"license": "LicenseRef-Xema-BSL-1.1",
|