@opencxh/domain 1.130.0 → 1.132.0
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/entities/activity/catalog.d.ts +123 -0
- package/dist/entities/activity/catalog.test.d.ts +1 -0
- package/dist/entities/activity/descriptor.d.ts +79 -0
- package/dist/entities/activity/descriptor.test.d.ts +1 -0
- package/dist/entities/activity/index.d.ts +4 -0
- package/dist/entities/activity/preview.d.ts +13 -2
- package/dist/entities/activity/resolve.d.ts +59 -0
- package/dist/entities/activity/timestamp.d.ts +15 -0
- package/dist/entities/interaction/types.d.ts +19 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +754 -345
- package/dist/platform/sdk.d.ts +8 -1
- package/dist/platform/services.d.ts +7 -1
- package/package.json +3 -3
package/dist/platform/sdk.d.ts
CHANGED
|
@@ -30,7 +30,14 @@ export interface InternalSDK<LocalServices extends ServiceMap = {}, TranslationK
|
|
|
30
30
|
get<T = any>(appName: string, resourceKey: string): Promise<T>;
|
|
31
31
|
};
|
|
32
32
|
readonly localization: {
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Vertaal een sleutel.
|
|
35
|
+
*
|
|
36
|
+
* Zonder `:` is het een sleutel van deze app zelf. Mét `:` is hij al genamespaced
|
|
37
|
+
* (`"helpdesk:ticket.added.text"`) en wordt hij ongewijzigd opgezocht — nodig om tekst
|
|
38
|
+
* te tonen die een andere app meestuurde bij iets wat wij renderen.
|
|
39
|
+
*/
|
|
40
|
+
t(key: TranslationKeys | `${string}:${string}`, params?: Record<string, any>): string;
|
|
34
41
|
};
|
|
35
42
|
readonly ui: {
|
|
36
43
|
modals: {
|
|
@@ -36,7 +36,13 @@ export type ServiceHandlerMetadata<P = any, T = any, R = any> = {
|
|
|
36
36
|
appId: string;
|
|
37
37
|
fn: ServiceHandlerFn<P, T, R>;
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* `T` defaults to `unknown` because most handlers only care about `params`.
|
|
41
|
+
* Spelling it `never` instead makes the handler unassignable to
|
|
42
|
+
* {@link ServiceHandlerFn} (whose `payload` is `any`), which is a confusing error
|
|
43
|
+
* for a service that simply takes no payload.
|
|
44
|
+
*/
|
|
45
|
+
export type ServiceCallOptions<P, T = unknown> = {
|
|
40
46
|
params?: P;
|
|
41
47
|
payload?: T;
|
|
42
48
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencxh/domain",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.132.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"rxjs": "^7.8.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"typescript": "
|
|
22
|
+
"typescript": "6.0.3",
|
|
23
23
|
"vite": "7.1.7",
|
|
24
|
-
"vite-plugin-dts": "^
|
|
24
|
+
"vite-plugin-dts": "^5.0.3",
|
|
25
25
|
"vitest": "^4.0.18"
|
|
26
26
|
}
|
|
27
27
|
}
|