@tsed/directus-sdk 8.26.0 → 8.26.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/.barrelsby.json
CHANGED
|
@@ -10,7 +10,7 @@ import { type InterceptorContext, type InterceptorMethods } from "@tsed/di";
|
|
|
10
10
|
*/
|
|
11
11
|
export type DirectusCacheOptions = {
|
|
12
12
|
ttl?: number;
|
|
13
|
-
keyGenerator?: (...args:
|
|
13
|
+
keyGenerator?: (...args: any[]) => string;
|
|
14
14
|
namespace?: string;
|
|
15
15
|
useSystemCache?: boolean;
|
|
16
16
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineEndpoint as oDefineEndpoint } from "@directus/extensions-sdk";
|
|
2
|
+
type EndpointConfig = Parameters<typeof oDefineEndpoint>[0];
|
|
3
|
+
type EndpointResult = ReturnType<typeof oDefineEndpoint>;
|
|
2
4
|
/**
|
|
3
5
|
* Defines a Directus endpoint with Ts.ED dependency injection support.
|
|
4
6
|
*
|
|
@@ -70,4 +72,5 @@ import type { EndpointConfig } from "@directus/types";
|
|
|
70
72
|
* @see {@link wrapEndpoint} for the underlying wrapper implementation
|
|
71
73
|
* @see {@link https://docs.directus.io/extensions/endpoints.html} Directus Endpoints Documentation
|
|
72
74
|
*/
|
|
73
|
-
export declare function defineEndpoint(config: EndpointConfig):
|
|
75
|
+
export declare function defineEndpoint(config: EndpointConfig): EndpointResult;
|
|
76
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineOperationApi as oDefineOperationApi } from "@directus/extensions-sdk";
|
|
2
|
+
type OperationApiConfig = Parameters<typeof oDefineOperationApi>[0];
|
|
3
|
+
type OperationApiResult = ReturnType<typeof oDefineOperationApi>;
|
|
2
4
|
/**
|
|
3
5
|
* Defines a Directus operation with Ts.ED dependency injection support.
|
|
4
6
|
*
|
|
@@ -111,4 +113,5 @@ import { OperationApiConfig } from "@directus/types";
|
|
|
111
113
|
* @see {@link DirectusContextService} to access Directus context
|
|
112
114
|
* @see {@link https://docs.directus.io/extensions/operations.html} Directus Operations Documentation
|
|
113
115
|
*/
|
|
114
|
-
export declare function defineOperationApi
|
|
116
|
+
export declare function defineOperationApi(config: OperationApiConfig): OperationApiResult;
|
|
117
|
+
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/directus-sdk",
|
|
3
3
|
"description": "A library to integrate Directus SDK with Ts.ED, facilitating the creation of extensions (endpoints, hooks, operations) and the use of Directus services.",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.26.
|
|
5
|
+
"version": "8.26.1",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"tslib": "2.8.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@directus/api": "
|
|
43
|
-
"@directus/extensions-sdk": "
|
|
44
|
-
"@directus/sdk": "
|
|
45
|
-
"@directus/types": "
|
|
46
|
-
"@tsed/barrels": "8.26.
|
|
42
|
+
"@directus/api": "35.0.1",
|
|
43
|
+
"@directus/extensions-sdk": "17.1.1",
|
|
44
|
+
"@directus/sdk": "21.2.2",
|
|
45
|
+
"@directus/types": "15.0.1",
|
|
46
|
+
"@tsed/barrels": "8.26.1",
|
|
47
47
|
"@tsed/logger-connect": "8.0.4",
|
|
48
48
|
"@types/express": "4.17.21",
|
|
49
|
-
"typescript": "
|
|
49
|
+
"typescript": "6.0.2",
|
|
50
50
|
"vitest": "3.2.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|