@ddd-ts-kit/openfga 0.22.0 → 0.23.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/README.fr.md +6 -8
- package/README.md +5 -7
- package/package.json +4 -4
package/README.fr.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[English](README.md) · **Français**
|
|
2
|
-
<!-- translation-of: README.md sha256:
|
|
2
|
+
<!-- translation-of: README.md sha256:903eebf3bd591305 -->
|
|
3
3
|
|
|
4
4
|
# @ddd-ts-kit/openfga
|
|
5
5
|
|
|
@@ -245,19 +245,17 @@ export class RelationshipsOnAppointmentBooked { /* ... */ }
|
|
|
245
245
|
|
|
246
246
|
<!-- checked sample -->
|
|
247
247
|
```ts
|
|
248
|
-
import
|
|
248
|
+
import { NamedDomainEvent } from '@ddd-ts-kit/kernel';
|
|
249
249
|
import { DomainEventHandler } from '@ddd-ts-kit/kernel/declarations';
|
|
250
250
|
|
|
251
|
-
export class AppointmentBooked
|
|
252
|
-
static readonly eventName = 'scheduling.appointment.booked';
|
|
253
|
-
|
|
254
|
-
readonly name = AppointmentBooked.eventName;
|
|
255
|
-
|
|
251
|
+
export class AppointmentBooked extends NamedDomainEvent('scheduling.appointment.booked') {
|
|
256
252
|
constructor(
|
|
257
253
|
readonly aggregateId: string,
|
|
258
254
|
readonly occurredAt: Date,
|
|
259
255
|
readonly booking: { readonly calendarId: string; readonly patientId: string },
|
|
260
|
-
) {
|
|
256
|
+
) {
|
|
257
|
+
super();
|
|
258
|
+
}
|
|
261
259
|
}
|
|
262
260
|
|
|
263
261
|
// Le port du contexte, dans ses propres mots ; son adaptateur écrit les tuples dans OpenFgaRelationTupleStore.
|
package/README.md
CHANGED
|
@@ -242,19 +242,17 @@ export class RelationshipsOnAppointmentBooked { /* ... */ }
|
|
|
242
242
|
|
|
243
243
|
<!-- checked sample -->
|
|
244
244
|
```ts
|
|
245
|
-
import
|
|
245
|
+
import { NamedDomainEvent } from '@ddd-ts-kit/kernel';
|
|
246
246
|
import { DomainEventHandler } from '@ddd-ts-kit/kernel/declarations';
|
|
247
247
|
|
|
248
|
-
export class AppointmentBooked
|
|
249
|
-
static readonly eventName = 'scheduling.appointment.booked';
|
|
250
|
-
|
|
251
|
-
readonly name = AppointmentBooked.eventName;
|
|
252
|
-
|
|
248
|
+
export class AppointmentBooked extends NamedDomainEvent('scheduling.appointment.booked') {
|
|
253
249
|
constructor(
|
|
254
250
|
readonly aggregateId: string,
|
|
255
251
|
readonly occurredAt: Date,
|
|
256
252
|
readonly booking: { readonly calendarId: string; readonly patientId: string },
|
|
257
|
-
) {
|
|
253
|
+
) {
|
|
254
|
+
super();
|
|
255
|
+
}
|
|
258
256
|
}
|
|
259
257
|
|
|
260
258
|
// The port of the context, in its own words; its adapter writes the tuples to OpenFgaRelationTupleStore.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-ts-kit/openfga",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "The relation tuple store and the authorizer of @ddd-ts-kit/auth on OpenFGA, with the authorization model generated from the relationship schema.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ddd",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ddd-ts-kit/auth": "0.
|
|
46
|
-
"@ddd-ts-kit/kernel": "0.
|
|
45
|
+
"@ddd-ts-kit/auth": "0.23.0",
|
|
46
|
+
"@ddd-ts-kit/kernel": "0.23.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@openfga/sdk": "^0.9.7"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@ddd-ts-kit/testing": "0.
|
|
57
|
+
"@ddd-ts-kit/testing": "0.23.0",
|
|
58
58
|
"@openfga/sdk": "0.9.7"
|
|
59
59
|
}
|
|
60
60
|
}
|