@komune-io/im-user-domain 0.19.0-alpha.f340596 → 0.19.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.
@@ -1,94 +1,72 @@
1
- type Nullable<T> = T | null | undefined
2
1
  export declare namespace f2.dsl.cqrs {
3
2
  interface Command extends f2.dsl.cqrs.Message {
4
- readonly __doNotUseOrImplementIt: {
5
- readonly "f2.dsl.cqrs.Command": unique symbol;
6
- } & f2.dsl.cqrs.Message["__doNotUseOrImplementIt"];
3
+
7
4
  }
8
5
  }
9
6
  export declare namespace f2.dsl.cqrs {
10
7
  interface Event extends f2.dsl.cqrs.Message {
11
- readonly __doNotUseOrImplementIt: {
12
- readonly "f2.dsl.cqrs.Event": unique symbol;
13
- } & f2.dsl.cqrs.Message["__doNotUseOrImplementIt"];
8
+
14
9
  }
15
10
  }
16
11
  export declare namespace f2.dsl.cqrs {
17
12
  interface Message {
18
- readonly __doNotUseOrImplementIt: {
19
- readonly "f2.dsl.cqrs.Message": unique symbol;
20
- };
13
+
21
14
  }
22
15
  }
23
16
  export declare namespace f2.dsl.cqrs {
24
17
  interface Problem extends f2.dsl.cqrs.Message {
25
- readonly __doNotUseOrImplementIt: {
26
- readonly "f2.dsl.cqrs.Problem": unique symbol;
27
- } & f2.dsl.cqrs.Message["__doNotUseOrImplementIt"];
18
+
28
19
  }
29
20
  }
30
21
  export declare namespace f2.dsl.cqrs {
31
22
  interface Query extends f2.dsl.cqrs.Message {
32
- readonly __doNotUseOrImplementIt: {
33
- readonly "f2.dsl.cqrs.Query": unique symbol;
34
- } & f2.dsl.cqrs.Message["__doNotUseOrImplementIt"];
23
+
35
24
  }
36
25
  }
37
26
  export declare namespace f2.dsl.cqrs.envelope {
38
27
  interface EnvelopeDTO<T> /* extends f2.dsl.cqrs.envelope.WithEnvelopeId, f2.dsl.cqrs.envelope.WithEnvelopeData<T> */ {
39
28
  readonly type: string;
40
- readonly datacontenttype: Nullable<string>;
41
- readonly specversion: Nullable<string>;
42
- readonly source: Nullable<string>;
43
- readonly time: Nullable<string>;
44
- readonly __doNotUseOrImplementIt: {
45
- readonly "f2.dsl.cqrs.envelope.EnvelopeDTO": unique symbol;
46
- };
29
+ readonly datacontenttype?: string;
30
+ readonly specversion?: string;
31
+ readonly source?: string;
32
+ readonly time?: string;
33
+
47
34
  }
48
35
  class Envelope<T> implements f2.dsl.cqrs.envelope.EnvelopeDTO<T> {
49
- constructor(id: string, data: T, type: string, datacontenttype?: Nullable<string>, specversion?: Nullable<string>, source?: Nullable<string>, time?: Nullable<string>);
36
+ constructor(id: string, data: T, type: string, datacontenttype?: string, specversion?: string, source?: string, time?: string);
50
37
  get type(): string;
51
38
  get datacontenttype(): Nullable<string>;
52
39
  get specversion(): Nullable<string>;
53
40
  get source(): Nullable<string>;
54
41
  get time(): Nullable<string>;
55
- readonly __doNotUseOrImplementIt: f2.dsl.cqrs.envelope.EnvelopeDTO<T>["__doNotUseOrImplementIt"];
56
- static get Companion(): {
57
- get $cachedDescriptor(): any/* kotlinx.serialization.descriptors.SerialDescriptor */;
58
- } & any/* kotlinx.serialization.internal.SerializerFactory */;
42
+
59
43
  }
60
44
  }
61
45
  export declare namespace f2.dsl.cqrs.error {
62
46
  interface F2ErrorDTO extends f2.dsl.cqrs.Problem {
63
- readonly id: Nullable<string>;
47
+ readonly id?: string;
64
48
  readonly timestamp: string;
65
49
  readonly code: number;
66
- readonly requestId: Nullable<string>;
50
+ readonly requestId?: string;
67
51
  readonly message: string;
68
- readonly __doNotUseOrImplementIt: {
69
- readonly "f2.dsl.cqrs.error.F2ErrorDTO": unique symbol;
70
- } & f2.dsl.cqrs.Problem["__doNotUseOrImplementIt"];
52
+
71
53
  }
72
54
  class F2Error implements f2.dsl.cqrs.error.F2ErrorDTO {
73
- constructor(message: string, id?: Nullable<string>, timestamp?: string, code?: number, requestId?: Nullable<string>);
55
+ constructor(message: string, id?: string, timestamp?: string, code?: number, requestId?: string);
74
56
  get message(): string;
75
57
  get id(): Nullable<string>;
76
58
  get timestamp(): string;
77
59
  get code(): number;
78
60
  get requestId(): Nullable<string>;
79
61
  toString(): string;
80
- readonly __doNotUseOrImplementIt: f2.dsl.cqrs.error.F2ErrorDTO["__doNotUseOrImplementIt"];
81
- static get Companion(): {
82
- };
62
+
83
63
  }
84
64
  }
85
65
  export declare namespace f2.dsl.cqrs.exception {
86
66
  class F2Exception /* extends kotlin.RuntimeException */ {
87
- constructor(error: f2.dsl.cqrs.error.F2ErrorDTO, cause?: Nullable<Error>);
67
+ constructor(error: f2.dsl.cqrs.error.F2ErrorDTO, cause?: Error);
88
68
  get error(): f2.dsl.cqrs.error.F2ErrorDTO;
89
- static get Companion(): {
90
- invoke(message: string, id?: string, requestId?: string, code?: number, cause?: Nullable<Error>): f2.dsl.cqrs.exception.F2Exception;
91
- };
69
+
92
70
  }
93
71
  }
94
72
  export declare namespace f2.dsl.cqrs.filter {
@@ -98,112 +76,84 @@ export declare namespace f2.dsl.cqrs.filter {
98
76
  not(): f2.dsl.cqrs.filter.Match<T>;
99
77
  and(match: f2.dsl.cqrs.filter.Match<T>): f2.dsl.cqrs.filter.Match<T>;
100
78
  or(match: f2.dsl.cqrs.filter.Match<T>): f2.dsl.cqrs.filter.Match<T>;
101
- readonly __doNotUseOrImplementIt: {
102
- readonly "f2.dsl.cqrs.filter.Match": unique symbol;
103
- };
79
+
104
80
  }
105
81
  }
106
82
  export declare namespace f2.dsl.cqrs.filter {
107
83
  interface SortDTO {
108
84
  readonly property: string;
109
85
  readonly ascending: boolean;
110
- readonly nullsFirst: Nullable<boolean>;
111
- readonly __doNotUseOrImplementIt: {
112
- readonly "f2.dsl.cqrs.filter.SortDTO": unique symbol;
113
- };
86
+ readonly nullsFirst?: boolean;
87
+
114
88
  }
115
89
  }
116
90
  export declare namespace f2.dsl.cqrs.page {
117
91
  interface PageDTO<OBJECT> {
118
92
  readonly total: number;
119
- readonly items: any/* kotlin.collections.List<OBJECT> */;
120
- readonly __doNotUseOrImplementIt: {
121
- readonly "f2.dsl.cqrs.page.PageDTO": unique symbol;
122
- };
93
+ readonly items: OBJECT[];
94
+
123
95
  }
124
96
  class Page<OBJECT> implements f2.dsl.cqrs.page.PageDTO<OBJECT> {
125
- constructor(total: number, items: any/* kotlin.collections.List<OBJECT> */);
97
+ constructor(total: number, items: OBJECT[]);
126
98
  get total(): number;
127
- get items(): any/* kotlin.collections.List<OBJECT> */;
128
- readonly __doNotUseOrImplementIt: f2.dsl.cqrs.page.PageDTO<OBJECT>["__doNotUseOrImplementIt"];
129
- static get Companion(): {
130
- get $cachedDescriptor(): any/* kotlinx.serialization.descriptors.SerialDescriptor */;
131
- } & any/* kotlinx.serialization.internal.SerializerFactory */;
99
+ get items(): OBJECT[];
100
+
132
101
  }
133
102
  }
134
103
  export declare namespace f2.dsl.cqrs.page {
135
104
  interface PageQueryDTO extends f2.dsl.cqrs.Query {
136
- readonly pagination: Nullable<f2.dsl.cqrs.page.OffsetPaginationDTO>;
137
- readonly __doNotUseOrImplementIt: {
138
- readonly "f2.dsl.cqrs.page.PageQueryDTO": unique symbol;
139
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
105
+ readonly pagination?: f2.dsl.cqrs.page.OffsetPaginationDTO;
106
+
140
107
  }
141
108
  interface PageQueryResultDTO<OBJECT> extends f2.dsl.cqrs.Event, f2.dsl.cqrs.page.PageDTO<OBJECT> {
142
109
  readonly total: number;
143
- readonly items: any/* kotlin.collections.List<OBJECT> */;
144
- readonly pagination: Nullable<f2.dsl.cqrs.page.OffsetPaginationDTO>;
145
- readonly __doNotUseOrImplementIt: {
146
- readonly "f2.dsl.cqrs.page.PageQueryResultDTO": unique symbol;
147
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"] & f2.dsl.cqrs.page.PageDTO<OBJECT>["__doNotUseOrImplementIt"];
110
+ readonly items: OBJECT[];
111
+ readonly pagination?: f2.dsl.cqrs.page.OffsetPaginationDTO;
112
+
148
113
  }
149
114
  class PageQuery implements f2.dsl.cqrs.page.PageQueryDTO {
150
- constructor(pagination: Nullable<f2.dsl.cqrs.page.OffsetPaginationDTO>);
115
+ constructor(pagination?: f2.dsl.cqrs.page.OffsetPaginationDTO);
151
116
  get pagination(): Nullable<f2.dsl.cqrs.page.OffsetPaginationDTO>;
152
- readonly __doNotUseOrImplementIt: f2.dsl.cqrs.page.PageQueryDTO["__doNotUseOrImplementIt"];
153
- static get Companion(): {
154
- };
117
+
155
118
  }
156
119
  class PageQueryResult<OBJECT> implements f2.dsl.cqrs.page.PageQueryResultDTO<OBJECT> {
157
- constructor(pagination: Nullable<f2.dsl.cqrs.page.OffsetPagination>, total: number, items: any/* kotlin.collections.List<OBJECT> */);
120
+ constructor(pagination?: f2.dsl.cqrs.page.OffsetPagination, total: number, items: OBJECT[]);
158
121
  get pagination(): Nullable<f2.dsl.cqrs.page.OffsetPagination>;
159
122
  get total(): number;
160
- get items(): any/* kotlin.collections.List<OBJECT> */;
161
- readonly __doNotUseOrImplementIt: f2.dsl.cqrs.page.PageQueryResultDTO<OBJECT>["__doNotUseOrImplementIt"];
162
- static get Companion(): {
163
- get $cachedDescriptor(): any/* kotlinx.serialization.descriptors.SerialDescriptor */;
164
- } & any/* kotlinx.serialization.internal.SerializerFactory */;
123
+ get items(): OBJECT[];
124
+
165
125
  }
166
126
  }
167
127
  export declare namespace f2.dsl.cqrs.page {
168
128
  interface Pagination {
169
- readonly __doNotUseOrImplementIt: {
170
- readonly "f2.dsl.cqrs.page.Pagination": unique symbol;
171
- };
129
+
172
130
  }
173
131
  interface OffsetPaginationDTO extends f2.dsl.cqrs.page.Pagination {
174
132
  readonly offset: number;
175
133
  readonly limit: number;
176
- readonly __doNotUseOrImplementIt: {
177
- readonly "f2.dsl.cqrs.page.OffsetPaginationDTO": unique symbol;
178
- } & f2.dsl.cqrs.page.Pagination["__doNotUseOrImplementIt"];
134
+
179
135
  }
180
136
  interface PagePaginationDTO extends f2.dsl.cqrs.page.Pagination {
181
- readonly page: Nullable<number>;
182
- readonly size: Nullable<number>;
183
- readonly __doNotUseOrImplementIt: {
184
- readonly "f2.dsl.cqrs.page.PagePaginationDTO": unique symbol;
185
- } & f2.dsl.cqrs.page.Pagination["__doNotUseOrImplementIt"];
137
+ readonly page?: number;
138
+ readonly size?: number;
139
+
186
140
  }
187
141
  class OffsetPagination implements f2.dsl.cqrs.page.OffsetPaginationDTO {
188
142
  constructor(offset: number, limit: number);
189
143
  get offset(): number;
190
144
  get limit(): number;
191
- readonly __doNotUseOrImplementIt: f2.dsl.cqrs.page.OffsetPaginationDTO["__doNotUseOrImplementIt"];
192
- static get Companion(): {
193
- };
145
+
194
146
  }
195
147
  class PagePagination implements f2.dsl.cqrs.page.PagePaginationDTO {
196
- constructor(page: Nullable<number>, size: Nullable<number>);
148
+ constructor(page?: number, size?: number);
197
149
  get page(): Nullable<number>;
198
150
  get size(): Nullable<number>;
199
- readonly __doNotUseOrImplementIt: f2.dsl.cqrs.page.PagePaginationDTO["__doNotUseOrImplementIt"];
200
- static get Companion(): {
201
- };
151
+
202
152
  }
203
153
  }
204
154
  export declare namespace f2.client.domain {
205
155
  abstract class AuthRealm {
206
- protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string>);
156
+ protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string);
207
157
  get serverUrl(): string;
208
158
  get realmId(): string;
209
159
  get clientId(): string;
@@ -220,98 +170,33 @@ export declare namespace f2.client.domain {
220
170
  copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string): f2.client.domain.AuthRealmPassword;
221
171
  toString(): string;
222
172
  hashCode(): number;
223
- equals(other: Nullable<any>): boolean;
173
+ equals(other?: any): boolean;
224
174
  }
225
175
  class AuthRealmClientSecret extends f2.client.domain.AuthRealm {
226
- constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string> | undefined, clientSecret: string, isPublic?: boolean);
176
+ constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string | undefined, clientSecret: string, isPublic?: boolean);
227
177
  get serverUrl(): string;
228
178
  get realmId(): string;
229
179
  get clientId(): string;
230
180
  get redirectUrl(): Nullable<string>;
231
181
  get clientSecret(): string;
232
182
  get isPublic(): boolean;
233
- copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: Nullable<string>, clientSecret?: string, isPublic?: boolean): f2.client.domain.AuthRealmClientSecret;
183
+ copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: string, clientSecret?: string, isPublic?: boolean): f2.client.domain.AuthRealmClientSecret;
234
184
  toString(): string;
235
185
  hashCode(): number;
236
- equals(other: Nullable<any>): boolean;
186
+ equals(other?: any): boolean;
237
187
  }
238
188
  }
239
189
  export declare namespace io.komune.im.commons.auth {
240
190
  interface AuthedUserDTO {
241
191
  readonly id: string;
242
- readonly identifier: Nullable<string>;
243
- readonly memberOf: Nullable<string>;
192
+ readonly identifier?: string;
193
+ readonly memberOf?: string;
244
194
  readonly roles: Array<string>;
245
- readonly __doNotUseOrImplementIt: {
246
- readonly "io.komune.im.commons.auth.AuthedUserDTO": unique symbol;
247
- };
195
+
248
196
  }
249
197
  }
250
198
  export declare namespace io.komune.im.commons.auth {
251
- abstract class ImRole {
252
- private constructor();
253
- get identifier(): string;
254
- static get ORCHESTRATOR(): io.komune.im.commons.auth.ImRole & {
255
- get name(): "ORCHESTRATOR";
256
- get ordinal(): 0;
257
- };
258
- static get ORCHESTRATOR_ADMIN(): io.komune.im.commons.auth.ImRole & {
259
- get name(): "ORCHESTRATOR_ADMIN";
260
- get ordinal(): 1;
261
- };
262
- static get ORCHESTRATOR_USER(): io.komune.im.commons.auth.ImRole & {
263
- get name(): "ORCHESTRATOR_USER";
264
- get ordinal(): 2;
265
- };
266
- static get IM_USER_READ(): io.komune.im.commons.auth.ImRole & {
267
- get name(): "IM_USER_READ";
268
- get ordinal(): 3;
269
- };
270
- static get IM_USER_WRITE(): io.komune.im.commons.auth.ImRole & {
271
- get name(): "IM_USER_WRITE";
272
- get ordinal(): 4;
273
- };
274
- static get IM_ORGANIZATION_READ(): io.komune.im.commons.auth.ImRole & {
275
- get name(): "IM_ORGANIZATION_READ";
276
- get ordinal(): 5;
277
- };
278
- static get IM_ORGANIZATION_WRITE(): io.komune.im.commons.auth.ImRole & {
279
- get name(): "IM_ORGANIZATION_WRITE";
280
- get ordinal(): 6;
281
- };
282
- static get IM_MY_ORGANIZATION_WRITE(): io.komune.im.commons.auth.ImRole & {
283
- get name(): "IM_MY_ORGANIZATION_WRITE";
284
- get ordinal(): 7;
285
- };
286
- static get IM_APIKEY_READ(): io.komune.im.commons.auth.ImRole & {
287
- get name(): "IM_APIKEY_READ";
288
- get ordinal(): 8;
289
- };
290
- static get IM_APIKEY_WRITE(): io.komune.im.commons.auth.ImRole & {
291
- get name(): "IM_APIKEY_WRITE";
292
- get ordinal(): 9;
293
- };
294
- static get IM_SPACE_READ(): io.komune.im.commons.auth.ImRole & {
295
- get name(): "IM_SPACE_READ";
296
- get ordinal(): 10;
297
- };
298
- static get IM_SPACE_WRITE(): io.komune.im.commons.auth.ImRole & {
299
- get name(): "IM_SPACE_WRITE";
300
- get ordinal(): 11;
301
- };
302
- static get IM_ROLE_READ(): io.komune.im.commons.auth.ImRole & {
303
- get name(): "IM_ROLE_READ";
304
- get ordinal(): 12;
305
- };
306
- static get IM_ROLE_WRITE(): io.komune.im.commons.auth.ImRole & {
307
- get name(): "IM_ROLE_WRITE";
308
- get ordinal(): 13;
309
- };
310
- static values(): Array<io.komune.im.commons.auth.ImRole>;
311
- static valueOf(value: string): io.komune.im.commons.auth.ImRole;
312
- get name(): "ORCHESTRATOR" | "ORCHESTRATOR_ADMIN" | "ORCHESTRATOR_USER" | "IM_USER_READ" | "IM_USER_WRITE" | "IM_ORGANIZATION_READ" | "IM_ORGANIZATION_WRITE" | "IM_MY_ORGANIZATION_WRITE" | "IM_APIKEY_READ" | "IM_APIKEY_WRITE" | "IM_SPACE_READ" | "IM_SPACE_WRITE" | "IM_ROLE_READ" | "IM_ROLE_WRITE";
313
- get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13;
314
- }
199
+ type ImRole = "ORCHESTRATOR" | "ORCHESTRATOR_ADMIN" | "ORCHESTRATOR_USER" | "IM_USER_READ" | "IM_USER_WRITE" | "IM_ORGANIZATION_READ" | "IM_ORGANIZATION_WRITE" | "IM_MY_ORGANIZATION_WRITE" | "IM_APIKEY_READ" | "IM_APIKEY_WRITE" | "IM_SPACE_READ" | "IM_SPACE_WRITE" | "IM_ROLE_READ" | "IM_ROLE_WRITE";
315
200
  }
316
201
  export declare namespace io.komune.im.commons.exception {
317
202
  const ExceptionCodes: {
@@ -323,63 +208,45 @@ export declare namespace io.komune.im.commons.model {
323
208
  readonly street: string;
324
209
  readonly postalCode: string;
325
210
  readonly city: string;
326
- readonly __doNotUseOrImplementIt: {
327
- readonly "io.komune.im.commons.model.AddressDTO": unique symbol;
328
- };
211
+
329
212
  }
330
213
  }
331
214
  export declare namespace f2.dsl.fnc {
332
215
  interface F2Function<T, R> {
333
216
  invokePromise(cmds: Array<T>): Promise<Array<R>>;
334
- readonly __doNotUseOrImplementIt: {
335
- readonly "f2.dsl.fnc.F2Function": unique symbol;
336
- };
217
+
337
218
  }
338
219
  interface F2Consumer<T> {
339
220
  invokePromise(cmds: Array<T>): Promise<void>;
340
- readonly __doNotUseOrImplementIt: {
341
- readonly "f2.dsl.fnc.F2Consumer": unique symbol;
342
- };
221
+
343
222
  }
344
223
  interface F2Supplier<R> {
345
224
  invokePromise(): Promise<Array<R>>;
346
- readonly __doNotUseOrImplementIt: {
347
- readonly "f2.dsl.fnc.F2Supplier": unique symbol;
348
- };
225
+
349
226
  }
350
227
  interface F2SupplierSingle<R> {
351
228
  invokePromise(): Promise<R>;
352
- readonly __doNotUseOrImplementIt: {
353
- readonly "f2.dsl.fnc.F2SupplierSingle": unique symbol;
354
- };
229
+
355
230
  }
356
231
  }
357
232
  export declare namespace io.komune.im.core.user.domain.command {
358
233
  interface UserDeleteCommandDTO {
359
234
  readonly id: string;
360
- readonly __doNotUseOrImplementIt: {
361
- readonly "io.komune.im.core.user.domain.command.UserDeleteCommandDTO": unique symbol;
362
- };
235
+
363
236
  }
364
237
  interface UserDeletedEventDTO {
365
238
  readonly id: string;
366
- readonly __doNotUseOrImplementIt: {
367
- readonly "io.komune.im.core.user.domain.command.UserDeletedEventDTO": unique symbol;
368
- };
239
+
369
240
  }
370
241
  }
371
242
  export declare namespace io.komune.im.core.organization.domain.command {
372
243
  interface OrganizationDeleteCommandDTO extends f2.dsl.cqrs.Command {
373
244
  readonly id: string;
374
- readonly __doNotUseOrImplementIt: {
375
- readonly "io.komune.im.core.organization.domain.command.OrganizationDeleteCommandDTO": unique symbol;
376
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
245
+
377
246
  }
378
247
  interface OrganizationDeletedEventDTO extends f2.dsl.cqrs.Event {
379
248
  readonly id: string;
380
- readonly __doNotUseOrImplementIt: {
381
- readonly "io.komune.im.core.organization.domain.command.OrganizationDeletedEventDTO": unique symbol;
382
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
249
+
383
250
  }
384
251
  }
385
252
  export declare namespace io.komune.im.f2.privilege.domain {
@@ -393,15 +260,11 @@ export declare namespace io.komune.im.f2.privilege.domain.feature.command {
393
260
  interface FeatureDefineCommandDTO {
394
261
  readonly identifier: string;
395
262
  readonly description: string;
396
- readonly __doNotUseOrImplementIt: {
397
- readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefineCommandDTO": unique symbol;
398
- };
263
+
399
264
  }
400
265
  interface FeatureDefinedEventDTO extends f2.dsl.cqrs.Event {
401
266
  readonly identifier: string;
402
- readonly __doNotUseOrImplementIt: {
403
- readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefinedEventDTO": unique symbol;
404
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
267
+
405
268
  }
406
269
  }
407
270
  export declare namespace io.komune.im.f2.privilege.domain.feature.model {
@@ -410,36 +273,26 @@ export declare namespace io.komune.im.f2.privilege.domain.feature.model {
410
273
  readonly type: string;
411
274
  readonly identifier: string;
412
275
  readonly description: string;
413
- readonly __doNotUseOrImplementIt: {
414
- readonly "io.komune.im.f2.privilege.domain.feature.model.FeatureDTO": unique symbol;
415
- } & io.komune.im.f2.privilege.domain.model.PrivilegeDTO["__doNotUseOrImplementIt"];
276
+
416
277
  }
417
278
  }
418
279
  export declare namespace io.komune.im.f2.privilege.domain.feature.query {
419
280
  interface FeatureGetQueryDTO {
420
281
  readonly identifier: string;
421
- readonly __doNotUseOrImplementIt: {
422
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetQueryDTO": unique symbol;
423
- };
282
+
424
283
  }
425
284
  interface FeatureGetResultDTO {
426
- readonly item: Nullable<io.komune.im.f2.privilege.domain.feature.model.FeatureDTO>;
427
- readonly __doNotUseOrImplementIt: {
428
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetResultDTO": unique symbol;
429
- };
285
+ readonly item?: io.komune.im.f2.privilege.domain.feature.model.FeatureDTO;
286
+
430
287
  }
431
288
  }
432
289
  export declare namespace io.komune.im.f2.privilege.domain.feature.query {
433
290
  interface FeatureListQueryDTO {
434
- readonly __doNotUseOrImplementIt: {
435
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListQueryDTO": unique symbol;
436
- };
291
+
437
292
  }
438
293
  interface FeatureListResultDTO {
439
- readonly items: any/* kotlin.collections.List<io.komune.im.f2.privilege.domain.feature.model.FeatureDTO> */;
440
- readonly __doNotUseOrImplementIt: {
441
- readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListResultDTO": unique symbol;
442
- };
294
+ readonly items: io.komune.im.f2.privilege.domain.feature.model.FeatureDTO[];
295
+
443
296
  }
444
297
  }
445
298
  export declare namespace io.komune.im.f2.privilege.domain.model {
@@ -448,25 +301,19 @@ export declare namespace io.komune.im.f2.privilege.domain.model {
448
301
  readonly identifier: string;
449
302
  readonly description: string;
450
303
  readonly type: string;
451
- readonly __doNotUseOrImplementIt: {
452
- readonly "io.komune.im.f2.privilege.domain.model.PrivilegeDTO": unique symbol;
453
- };
304
+
454
305
  }
455
306
  }
456
307
  export declare namespace io.komune.im.f2.privilege.domain.permission.command {
457
308
  interface PermissionDefineCommandDTO {
458
309
  readonly identifier: string;
459
310
  readonly description: string;
460
- readonly features: Nullable<any>/* Nullable<kotlin.collections.List<kotlin.collections.List<string>>> */;
461
- readonly __doNotUseOrImplementIt: {
462
- readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefineCommandDTO": unique symbol;
463
- };
311
+ readonly features?: string[][];
312
+
464
313
  }
465
314
  interface PermissionDefinedEventDTO extends f2.dsl.cqrs.Event {
466
315
  readonly identifier: string;
467
- readonly __doNotUseOrImplementIt: {
468
- readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefinedEventDTO": unique symbol;
469
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
316
+
470
317
  }
471
318
  }
472
319
  export declare namespace io.komune.im.f2.privilege.domain.permission.model {
@@ -475,56 +322,42 @@ export declare namespace io.komune.im.f2.privilege.domain.permission.model {
475
322
  readonly type: string;
476
323
  readonly identifier: string;
477
324
  readonly description: string;
478
- readonly features: Nullable<any>/* Nullable<kotlin.collections.List<kotlin.collections.List<string>>> */;
479
- readonly __doNotUseOrImplementIt: {
480
- readonly "io.komune.im.f2.privilege.domain.permission.model.PermissionDTO": unique symbol;
481
- } & io.komune.im.f2.privilege.domain.model.PrivilegeDTO["__doNotUseOrImplementIt"];
325
+ readonly features?: string[][];
326
+
482
327
  }
483
328
  }
484
329
  export declare namespace io.komune.im.f2.privilege.domain.permission.query {
485
330
  interface PermissionGetQueryDTO {
486
331
  readonly identifier: string;
487
- readonly __doNotUseOrImplementIt: {
488
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetQueryDTO": unique symbol;
489
- };
332
+
490
333
  }
491
334
  interface PermissionGetResultDTO {
492
- readonly item: Nullable<io.komune.im.f2.privilege.domain.permission.model.PermissionDTO>;
493
- readonly __doNotUseOrImplementIt: {
494
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetResultDTO": unique symbol;
495
- };
335
+ readonly item?: io.komune.im.f2.privilege.domain.permission.model.PermissionDTO;
336
+
496
337
  }
497
338
  }
498
339
  export declare namespace io.komune.im.f2.privilege.domain.permission.query {
499
340
  interface PermissionListQueryDTO {
500
- readonly __doNotUseOrImplementIt: {
501
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListQueryDTO": unique symbol;
502
- };
341
+
503
342
  }
504
343
  interface PermissionListResultDTO {
505
- readonly items: any/* kotlin.collections.List<io.komune.im.f2.privilege.domain.permission.model.PermissionDTO> */;
506
- readonly __doNotUseOrImplementIt: {
507
- readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListResultDTO": unique symbol;
508
- };
344
+ readonly items: io.komune.im.f2.privilege.domain.permission.model.PermissionDTO[];
345
+
509
346
  }
510
347
  }
511
348
  export declare namespace io.komune.im.f2.privilege.domain.role.command {
512
349
  interface RoleDefineCommandDTO {
513
350
  readonly identifier: string;
514
351
  readonly description: string;
515
- readonly targets: any/* kotlin.collections.List<string> */;
516
- readonly locale: any/* kotlin.collections.Map<string, string> */;
517
- readonly bindings: Nullable<any>/* Nullable<kotlin.collections.Map<string, kotlin.collections.List<string>>> */;
518
- readonly permissions: Nullable<any>/* Nullable<kotlin.collections.List<string>> */;
519
- readonly __doNotUseOrImplementIt: {
520
- readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefineCommandDTO": unique symbol;
521
- };
352
+ readonly targets: string[];
353
+ readonly locale: Record<string, string>;
354
+ readonly bindings?: Record<string, string[]>;
355
+ readonly permissions?: string[];
356
+
522
357
  }
523
358
  interface RoleDefinedEventDTO extends f2.dsl.cqrs.Event {
524
359
  readonly identifier: string;
525
- readonly __doNotUseOrImplementIt: {
526
- readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefinedEventDTO": unique symbol;
527
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
360
+
528
361
  }
529
362
  }
530
363
  export declare namespace io.komune.im.f2.privilege.domain.role.model {
@@ -533,13 +366,11 @@ export declare namespace io.komune.im.f2.privilege.domain.role.model {
533
366
  readonly type: string;
534
367
  readonly identifier: string;
535
368
  readonly description: string;
536
- readonly targets: any/* kotlin.collections.List<string> */;
537
- readonly locale: any/* kotlin.collections.Map<string, string> */;
538
- readonly bindings: any/* kotlin.collections.Map<string, kotlin.collections.List<io.komune.im.f2.privilege.domain.role.model.RoleDTO>> */;
539
- readonly permissions: any/* kotlin.collections.List<string> */;
540
- readonly __doNotUseOrImplementIt: {
541
- readonly "io.komune.im.f2.privilege.domain.role.model.RoleDTO": unique symbol;
542
- } & io.komune.im.f2.privilege.domain.model.PrivilegeDTO["__doNotUseOrImplementIt"];
369
+ readonly targets: string[];
370
+ readonly locale: Record<string, string>;
371
+ readonly bindings: Record<string, io.komune.im.f2.privilege.domain.role.model.RoleDTO[]>;
372
+ readonly permissions: string[];
373
+
543
374
  }
544
375
  }
545
376
  export declare namespace io.komune.im.f2.privilege.domain.role.model {
@@ -552,152 +383,120 @@ export declare namespace io.komune.im.f2.privilege.domain.role.model {
552
383
  export declare namespace io.komune.im.f2.privilege.domain.role.query {
553
384
  interface RoleGetQueryDTO {
554
385
  readonly identifier: string;
555
- readonly __doNotUseOrImplementIt: {
556
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetQueryDTO": unique symbol;
557
- };
386
+
558
387
  }
559
388
  interface RoleGetResultDTO {
560
- readonly item: Nullable<io.komune.im.f2.privilege.domain.role.model.RoleDTO>;
561
- readonly __doNotUseOrImplementIt: {
562
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetResultDTO": unique symbol;
563
- };
389
+ readonly item?: io.komune.im.f2.privilege.domain.role.model.RoleDTO;
390
+
564
391
  }
565
392
  }
566
393
  export declare namespace io.komune.im.f2.privilege.domain.role.query {
567
394
  interface RoleListQueryDTO {
568
- readonly target: Nullable<string>;
569
- readonly __doNotUseOrImplementIt: {
570
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleListQueryDTO": unique symbol;
571
- };
395
+ readonly target?: string;
396
+
572
397
  }
573
398
  interface RoleListResultDTO {
574
- readonly items: any/* kotlin.collections.List<io.komune.im.f2.privilege.domain.role.model.RoleDTO> */;
575
- readonly __doNotUseOrImplementIt: {
576
- readonly "io.komune.im.f2.privilege.domain.role.query.RoleListResultDTO": unique symbol;
577
- };
399
+ readonly items: io.komune.im.f2.privilege.domain.role.model.RoleDTO[];
400
+
578
401
  }
579
402
  }
580
403
  export declare namespace io.komune.im.f2.organization.domain.command {
581
404
  interface OrganizationCreateCommandDTO extends f2.dsl.cqrs.Command {
582
- readonly siret: Nullable<string>;
405
+ readonly siret?: string;
583
406
  readonly name: string;
584
- readonly description: Nullable<string>;
585
- readonly address: Nullable<io.komune.im.commons.model.AddressDTO>;
586
- readonly website: Nullable<string>;
587
- readonly roles: Nullable<any>/* Nullable<kotlin.collections.List<string>> */;
588
- readonly parentOrganizationId: Nullable<string>;
589
- readonly attributes: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
590
- readonly status: Nullable<string>;
591
- readonly __doNotUseOrImplementIt: {
592
- readonly "io.komune.im.f2.organization.domain.command.OrganizationCreateCommandDTO": unique symbol;
593
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
407
+ readonly description?: string;
408
+ readonly address?: io.komune.im.commons.model.AddressDTO;
409
+ readonly website?: string;
410
+ readonly roles?: string[];
411
+ readonly parentOrganizationId?: string;
412
+ readonly attributes?: Record<string, string>;
413
+ readonly status?: string;
414
+
594
415
  }
595
416
  interface OrganizationCreatedEventDTO extends f2.dsl.cqrs.Event {
596
417
  readonly id: string;
597
- readonly parentOrganization: Nullable<string>;
598
- readonly __doNotUseOrImplementIt: {
599
- readonly "io.komune.im.f2.organization.domain.command.OrganizationCreatedEventDTO": unique symbol;
600
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
418
+ readonly parentOrganization?: string;
419
+
601
420
  }
602
421
  }
603
422
  export declare namespace io.komune.im.f2.organization.domain.command {
604
423
  interface OrganizationDeleteCommandDTO extends io.komune.im.core.organization.domain.command.OrganizationDeleteCommandDTO {
605
424
  readonly id: string;
606
- readonly __doNotUseOrImplementIt: {
607
- readonly "io.komune.im.f2.organization.domain.command.OrganizationDeleteCommandDTO": unique symbol;
608
- } & io.komune.im.core.organization.domain.command.OrganizationDeleteCommandDTO["__doNotUseOrImplementIt"];
425
+
609
426
  }
610
427
  interface OrganizationDeletedEventDTO extends f2.dsl.cqrs.Event, io.komune.im.core.organization.domain.command.OrganizationDeletedEventDTO {
611
428
  readonly id: string;
612
- readonly __doNotUseOrImplementIt: {
613
- readonly "io.komune.im.f2.organization.domain.command.OrganizationDeletedEventDTO": unique symbol;
614
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"] & io.komune.im.core.organization.domain.command.OrganizationDeletedEventDTO["__doNotUseOrImplementIt"];
429
+
615
430
  }
616
431
  }
617
432
  export declare namespace io.komune.im.f2.organization.domain.command {
618
433
  interface OrganizationDisableCommandDTO extends f2.dsl.cqrs.Command {
619
434
  readonly id: string;
620
- readonly disabledBy: Nullable<string>;
435
+ readonly disabledBy?: string;
621
436
  readonly anonymize: boolean;
622
- readonly attributes: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
623
- readonly userAttributes: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
624
- readonly __doNotUseOrImplementIt: {
625
- readonly "io.komune.im.f2.organization.domain.command.OrganizationDisableCommandDTO": unique symbol;
626
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
437
+ readonly attributes?: Record<string, string>;
438
+ readonly userAttributes?: Record<string, string>;
439
+
627
440
  }
628
441
  interface OrganizationDisabledEventDTO extends f2.dsl.cqrs.Event {
629
442
  readonly id: string;
630
- readonly userIds: any/* kotlin.collections.List<string> */;
631
- readonly __doNotUseOrImplementIt: {
632
- readonly "io.komune.im.f2.organization.domain.command.OrganizationDisabledEventDTO": unique symbol;
633
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
443
+ readonly userIds: string[];
444
+
634
445
  }
635
446
  }
636
447
  export declare namespace io.komune.im.f2.organization.domain.command {
637
448
  interface OrganizationUpdateCommandDTO extends f2.dsl.cqrs.Command {
638
449
  readonly id: string;
639
450
  readonly name: string;
640
- readonly description: Nullable<string>;
641
- readonly address: Nullable<io.komune.im.commons.model.AddressDTO>;
642
- readonly website: Nullable<string>;
643
- readonly roles: Nullable<any>/* Nullable<kotlin.collections.List<string>> */;
644
- readonly attributes: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
645
- readonly status: Nullable<string>;
646
- readonly __doNotUseOrImplementIt: {
647
- readonly "io.komune.im.f2.organization.domain.command.OrganizationUpdateCommandDTO": unique symbol;
648
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
451
+ readonly description?: string;
452
+ readonly address?: io.komune.im.commons.model.AddressDTO;
453
+ readonly website?: string;
454
+ readonly roles?: string[];
455
+ readonly attributes?: Record<string, string>;
456
+ readonly status?: string;
457
+
649
458
  }
650
459
  interface OrganizationUpdatedResultDTO extends f2.dsl.cqrs.Event {
651
460
  readonly id: string;
652
- readonly __doNotUseOrImplementIt: {
653
- readonly "io.komune.im.f2.organization.domain.command.OrganizationUpdatedResultDTO": unique symbol;
654
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
461
+
655
462
  }
656
463
  }
657
464
  export declare namespace io.komune.im.f2.organization.domain.command {
658
465
  interface OrganizationUploadLogoCommandDTO extends f2.dsl.cqrs.Command {
659
466
  readonly id: string;
660
- readonly __doNotUseOrImplementIt: {
661
- readonly "io.komune.im.f2.organization.domain.command.OrganizationUploadLogoCommandDTO": unique symbol;
662
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
467
+
663
468
  }
664
469
  interface OrganizationUploadedLogoEventDTO extends f2.dsl.cqrs.Event {
665
470
  readonly id: string;
666
471
  readonly url: string;
667
- readonly __doNotUseOrImplementIt: {
668
- readonly "io.komune.im.f2.organization.domain.command.OrganizationUploadedLogoEventDTO": unique symbol;
669
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
472
+
670
473
  }
671
474
  }
672
475
  export declare namespace io.komune.im.f2.organization.domain.model {
673
476
  interface OrganizationDTO {
674
477
  readonly id: string;
675
- readonly siret: Nullable<string>;
478
+ readonly siret?: string;
676
479
  readonly name: string;
677
- readonly description: Nullable<string>;
678
- readonly address: Nullable<io.komune.im.commons.model.AddressDTO>;
679
- readonly website: Nullable<string>;
680
- readonly attributes: any/* kotlin.collections.Map<string, string> */;
681
- readonly roles: any/* kotlin.collections.List<io.komune.im.f2.privilege.domain.role.model.RoleDTO> */;
682
- readonly logo: Nullable<string>;
480
+ readonly description?: string;
481
+ readonly address?: io.komune.im.commons.model.AddressDTO;
482
+ readonly website?: string;
483
+ readonly attributes: Record<string, string>;
484
+ readonly roles: io.komune.im.f2.privilege.domain.role.model.RoleDTO[];
485
+ readonly logo?: string;
683
486
  readonly enabled: boolean;
684
487
  readonly status: string;
685
- readonly disabledBy: Nullable<string>;
686
- readonly creationDate: any/* kotlin.Long */;
687
- readonly disabledDate: Nullable<any>/* Nullable<kotlin.Long> */;
688
- readonly __doNotUseOrImplementIt: {
689
- readonly "io.komune.im.f2.organization.domain.model.OrganizationDTO": unique symbol;
690
- };
488
+ readonly disabledBy?: string;
489
+ readonly creationDate: number;
490
+ readonly disabledDate?: number;
491
+
691
492
  }
692
493
  }
693
494
  export declare namespace io.komune.im.f2.organization.domain.model {
694
495
  interface OrganizationRefDTO {
695
496
  readonly id: string;
696
497
  readonly name: string;
697
- readonly roles: any/* kotlin.collections.List<string> */;
698
- readonly __doNotUseOrImplementIt: {
699
- readonly "io.komune.im.f2.organization.domain.model.OrganizationRefDTO": unique symbol;
700
- };
498
+ readonly roles: string[];
499
+
701
500
  }
702
501
  }
703
502
  export declare namespace io.komune.im.f2.organization.domain.model {
@@ -711,7 +510,7 @@ export declare namespace io.komune.im.f2.organization.domain.policies {
711
510
  const OrganizationPolicies: {
712
511
  canGet(authedUser: io.komune.im.commons.auth.AuthedUserDTO, organizationId: string): boolean;
713
512
  canList(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
714
- checkRefList(authedUser: Nullable<io.komune.im.commons.auth.AuthedUserDTO>): boolean;
513
+ checkRefList(authedUser?: io.komune.im.commons.auth.AuthedUserDTO): boolean;
715
514
  canCreate(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
716
515
  canUpdate(authedUser: io.komune.im.commons.auth.AuthedUserDTO, organizationId: string): boolean;
717
516
  canUpdateStatus(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
@@ -722,150 +521,114 @@ export declare namespace io.komune.im.f2.organization.domain.policies {
722
521
  export declare namespace io.komune.im.f2.organization.domain.query {
723
522
  interface OrganizationGetFromInseeQueryDTO extends f2.dsl.cqrs.Query {
724
523
  readonly siret: string;
725
- readonly __doNotUseOrImplementIt: {
726
- readonly "io.komune.im.f2.organization.domain.query.OrganizationGetFromInseeQueryDTO": unique symbol;
727
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
524
+
728
525
  }
729
526
  interface OrganizationGetFromInseeResultDTO extends f2.dsl.cqrs.Event {
730
- readonly item: Nullable<io.komune.im.f2.organization.domain.model.OrganizationDTO>;
731
- readonly __doNotUseOrImplementIt: {
732
- readonly "io.komune.im.f2.organization.domain.query.OrganizationGetFromInseeResultDTO": unique symbol;
733
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
527
+ readonly item?: io.komune.im.f2.organization.domain.model.OrganizationDTO;
528
+
734
529
  }
735
530
  }
736
531
  export declare namespace io.komune.im.f2.organization.domain.query {
737
532
  interface OrganizationGetQueryDTO extends f2.dsl.cqrs.Query {
738
533
  readonly id: string;
739
- readonly __doNotUseOrImplementIt: {
740
- readonly "io.komune.im.f2.organization.domain.query.OrganizationGetQueryDTO": unique symbol;
741
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
534
+
742
535
  }
743
536
  interface OrganizationGetResultDTO extends f2.dsl.cqrs.Event {
744
- readonly item: Nullable<io.komune.im.f2.organization.domain.model.OrganizationDTO>;
745
- readonly __doNotUseOrImplementIt: {
746
- readonly "io.komune.im.f2.organization.domain.query.OrganizationGetResultDTO": unique symbol;
747
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
537
+ readonly item?: io.komune.im.f2.organization.domain.model.OrganizationDTO;
538
+
748
539
  }
749
540
  }
750
541
  export declare namespace io.komune.im.f2.organization.domain.query {
751
542
  interface OrganizationPageQueryDTO extends f2.dsl.cqrs.Query {
752
- readonly name: Nullable<string>;
753
- readonly role: Nullable<string>;
754
- readonly roles: Nullable<any>/* Nullable<kotlin.collections.List<string>> */;
755
- readonly attributes: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
756
- readonly status: Nullable<any>/* Nullable<kotlin.collections.List<string>> */;
757
- readonly withDisabled: Nullable<boolean>;
758
- readonly offset: Nullable<number>;
759
- readonly limit: Nullable<number>;
760
- readonly __doNotUseOrImplementIt: {
761
- readonly "io.komune.im.f2.organization.domain.query.OrganizationPageQueryDTO": unique symbol;
762
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
543
+ readonly name?: string;
544
+ readonly role?: string;
545
+ readonly roles?: string[];
546
+ readonly attributes?: Record<string, string>;
547
+ readonly status?: string[];
548
+ readonly withDisabled?: boolean;
549
+ readonly offset?: number;
550
+ readonly limit?: number;
551
+
763
552
  }
764
553
  interface OrganizationPageResultDTO extends f2.dsl.cqrs.page.PageDTO<io.komune.im.f2.organization.domain.model.OrganizationDTO> {
765
- readonly items: any/* kotlin.collections.List<io.komune.im.f2.organization.domain.model.OrganizationDTO> */;
554
+ readonly items: io.komune.im.f2.organization.domain.model.OrganizationDTO[];
766
555
  readonly total: number;
767
- readonly __doNotUseOrImplementIt: {
768
- readonly "io.komune.im.f2.organization.domain.query.OrganizationPageResultDTO": unique symbol;
769
- } & f2.dsl.cqrs.page.PageDTO<io.komune.im.f2.organization.domain.model.OrganizationDTO>["__doNotUseOrImplementIt"];
556
+
770
557
  }
771
558
  }
772
559
  export declare namespace io.komune.im.f2.organization.domain.query {
773
560
  interface OrganizationRefGetQueryDTO extends f2.dsl.cqrs.Query {
774
561
  readonly id: string;
775
- readonly __doNotUseOrImplementIt: {
776
- readonly "io.komune.im.f2.organization.domain.query.OrganizationRefGetQueryDTO": unique symbol;
777
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
562
+
778
563
  }
779
564
  interface OrganizationRefGetResultDTO extends f2.dsl.cqrs.Event {
780
- readonly item: Nullable<io.komune.im.f2.organization.domain.model.OrganizationRefDTO>;
781
- readonly __doNotUseOrImplementIt: {
782
- readonly "io.komune.im.f2.organization.domain.query.OrganizationRefGetResultDTO": unique symbol;
783
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
565
+ readonly item?: io.komune.im.f2.organization.domain.model.OrganizationRefDTO;
566
+
784
567
  }
785
568
  }
786
569
  export declare namespace io.komune.im.f2.organization.domain.query {
787
570
  interface OrganizationRefListQueryDTO extends f2.dsl.cqrs.Query {
788
571
  readonly withDisabled: boolean;
789
- readonly __doNotUseOrImplementIt: {
790
- readonly "io.komune.im.f2.organization.domain.query.OrganizationRefListQueryDTO": unique symbol;
791
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
572
+
792
573
  }
793
574
  interface OrganizationRefListResultDTO extends f2.dsl.cqrs.Event {
794
- readonly items: any/* kotlin.collections.List<io.komune.im.f2.organization.domain.model.OrganizationRefDTO> */;
795
- readonly __doNotUseOrImplementIt: {
796
- readonly "io.komune.im.f2.organization.domain.query.OrganizationRefListResultDTO": unique symbol;
797
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
575
+ readonly items: io.komune.im.f2.organization.domain.model.OrganizationRefDTO[];
576
+
798
577
  }
799
578
  }
800
579
  export declare namespace io.komune.im.f2.user.domain.command {
801
580
  interface UserCreateCommandDTO extends f2.dsl.cqrs.Command {
802
581
  readonly email: string;
803
- readonly password: Nullable<string>;
582
+ readonly password?: string;
804
583
  readonly givenName: string;
805
584
  readonly familyName: string;
806
- readonly address: Nullable<io.komune.im.commons.model.AddressDTO>/* Nullable<io.komune.im.commons.model.Address> */;
807
- readonly phone: Nullable<string>;
808
- readonly roles: any/* kotlin.collections.List<string> */;
809
- readonly memberOf: Nullable<string>;
810
- readonly attributes: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
585
+ readonly address?: io.komune.im.commons.model.AddressDTO/* Nullable<io.komune.im.commons.model.Address> */;
586
+ readonly phone?: string;
587
+ readonly roles: string[];
588
+ readonly memberOf?: string;
589
+ readonly attributes?: Record<string, string>;
811
590
  readonly isEmailVerified: boolean;
812
591
  readonly isPasswordTemporary: boolean;
813
592
  readonly sendResetPassword: boolean;
814
593
  readonly sendVerifyEmail: boolean;
815
- readonly __doNotUseOrImplementIt: {
816
- readonly "io.komune.im.f2.user.domain.command.UserCreateCommandDTO": unique symbol;
817
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
594
+
818
595
  }
819
596
  interface UserCreatedEventDTO extends f2.dsl.cqrs.Event {
820
597
  readonly id: string;
821
- readonly __doNotUseOrImplementIt: {
822
- readonly "io.komune.im.f2.user.domain.command.UserCreatedEventDTO": unique symbol;
823
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
598
+
824
599
  }
825
600
  }
826
601
  export declare namespace io.komune.im.f2.user.domain.command {
827
602
  interface UserDeleteCommandDTO extends io.komune.im.core.user.domain.command.UserDeleteCommandDTO, f2.dsl.cqrs.Command {
828
603
  readonly id: string;
829
- readonly __doNotUseOrImplementIt: {
830
- readonly "io.komune.im.f2.user.domain.command.UserDeleteCommandDTO": unique symbol;
831
- } & io.komune.im.core.user.domain.command.UserDeleteCommandDTO["__doNotUseOrImplementIt"] & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
604
+
832
605
  }
833
606
  interface UserDeletedEventDTO extends io.komune.im.core.user.domain.command.UserDeletedEventDTO, f2.dsl.cqrs.Event {
834
607
  readonly id: string;
835
- readonly __doNotUseOrImplementIt: {
836
- readonly "io.komune.im.f2.user.domain.command.UserDeletedEventDTO": unique symbol;
837
- } & io.komune.im.core.user.domain.command.UserDeletedEventDTO["__doNotUseOrImplementIt"] & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
608
+
838
609
  }
839
610
  }
840
611
  export declare namespace io.komune.im.f2.user.domain.command {
841
612
  interface UserDisableCommandDTO extends f2.dsl.cqrs.Command {
842
613
  readonly id: string;
843
- readonly disabledBy: Nullable<string>;
614
+ readonly disabledBy?: string;
844
615
  readonly anonymize: boolean;
845
- readonly attributes: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
846
- readonly __doNotUseOrImplementIt: {
847
- readonly "io.komune.im.f2.user.domain.command.UserDisableCommandDTO": unique symbol;
848
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
616
+ readonly attributes?: Record<string, string>;
617
+
849
618
  }
850
619
  interface UserDisabledEventDTO extends f2.dsl.cqrs.Event {
851
620
  readonly id: string;
852
- readonly __doNotUseOrImplementIt: {
853
- readonly "io.komune.im.f2.user.domain.command.UserDisabledEventDTO": unique symbol;
854
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
621
+
855
622
  }
856
623
  }
857
624
  export declare namespace io.komune.im.f2.user.domain.command {
858
625
  interface UserResetPasswordCommandDTO extends f2.dsl.cqrs.Command {
859
626
  readonly id: string;
860
- readonly __doNotUseOrImplementIt: {
861
- readonly "io.komune.im.f2.user.domain.command.UserResetPasswordCommandDTO": unique symbol;
862
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
627
+
863
628
  }
864
629
  interface UserResetPasswordEventDTO extends f2.dsl.cqrs.Event {
865
630
  readonly id: string;
866
- readonly __doNotUseOrImplementIt: {
867
- readonly "io.komune.im.f2.user.domain.command.UserResetPasswordEventDTO": unique symbol;
868
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
631
+
869
632
  }
870
633
  }
871
634
  export declare namespace io.komune.im.f2.user.domain.command {
@@ -873,20 +636,16 @@ export declare namespace io.komune.im.f2.user.domain.command {
873
636
  readonly id: string;
874
637
  readonly givenName: string;
875
638
  readonly familyName: string;
876
- readonly address: Nullable<io.komune.im.commons.model.AddressDTO>;
877
- readonly phone: Nullable<string>;
878
- readonly roles: any/* kotlin.collections.List<string> */;
879
- readonly memberOf: Nullable<string>;
880
- readonly attributes: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
881
- readonly __doNotUseOrImplementIt: {
882
- readonly "io.komune.im.f2.user.domain.command.UserUpdateCommandDTO": unique symbol;
883
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
639
+ readonly address?: io.komune.im.commons.model.AddressDTO;
640
+ readonly phone?: string;
641
+ readonly roles: string[];
642
+ readonly memberOf?: string;
643
+ readonly attributes?: Record<string, string>;
644
+
884
645
  }
885
646
  interface UserUpdatedEventDTO extends f2.dsl.cqrs.Event {
886
647
  readonly id: string;
887
- readonly __doNotUseOrImplementIt: {
888
- readonly "io.komune.im.f2.user.domain.command.UserUpdatedEventDTO": unique symbol;
889
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
648
+
890
649
  }
891
650
  }
892
651
  export declare namespace io.komune.im.f2.user.domain.command {
@@ -894,58 +653,48 @@ export declare namespace io.komune.im.f2.user.domain.command {
894
653
  readonly id: string;
895
654
  readonly email: string;
896
655
  readonly sendVerificationEmail: boolean;
897
- readonly __doNotUseOrImplementIt: {
898
- readonly "io.komune.im.f2.user.domain.command.UserUpdateEmailCommandDTO": unique symbol;
899
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
656
+
900
657
  }
901
658
  interface UserUpdatedEmailEventDTO extends f2.dsl.cqrs.Event {
902
659
  readonly id: string;
903
- readonly __doNotUseOrImplementIt: {
904
- readonly "io.komune.im.f2.user.domain.command.UserUpdatedEmailEventDTO": unique symbol;
905
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
660
+
906
661
  }
907
662
  }
908
663
  export declare namespace io.komune.im.f2.user.domain.command {
909
664
  interface UserUpdatePasswordCommandDTO extends f2.dsl.cqrs.Command {
910
665
  readonly id: string;
911
666
  readonly password: string;
912
- readonly __doNotUseOrImplementIt: {
913
- readonly "io.komune.im.f2.user.domain.command.UserUpdatePasswordCommandDTO": unique symbol;
914
- } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
667
+
915
668
  }
916
669
  interface UserUpdatedPasswordEventDTO extends f2.dsl.cqrs.Event {
917
670
  readonly id: string;
918
- readonly __doNotUseOrImplementIt: {
919
- readonly "io.komune.im.f2.user.domain.command.UserUpdatedPasswordEventDTO": unique symbol;
920
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
671
+
921
672
  }
922
673
  }
923
674
  export declare namespace io.komune.im.f2.user.domain.model {
924
675
  interface UserDTO {
925
676
  readonly id: string;
926
- readonly memberOf: Nullable<io.komune.im.f2.organization.domain.model.OrganizationRefDTO>;
677
+ readonly memberOf?: io.komune.im.f2.organization.domain.model.OrganizationRefDTO;
927
678
  readonly email: string;
928
679
  readonly givenName: string;
929
680
  readonly familyName: string;
930
- readonly address: Nullable<io.komune.im.commons.model.AddressDTO>;
931
- readonly phone: Nullable<string>;
932
- readonly roles: any/* kotlin.collections.List<io.komune.im.f2.privilege.domain.role.model.RoleDTO> */;
933
- readonly attributes: any/* kotlin.collections.Map<string, string> */;
681
+ readonly address?: io.komune.im.commons.model.AddressDTO;
682
+ readonly phone?: string;
683
+ readonly roles: io.komune.im.f2.privilege.domain.role.model.RoleDTO[];
684
+ readonly attributes: Record<string, string>;
934
685
  readonly enabled: boolean;
935
- readonly disabledBy: Nullable<string>;
936
- readonly creationDate: any/* kotlin.Long */;
937
- readonly disabledDate: Nullable<any>/* Nullable<kotlin.Long> */;
938
- readonly __doNotUseOrImplementIt: {
939
- readonly "io.komune.im.f2.user.domain.model.UserDTO": unique symbol;
940
- };
686
+ readonly disabledBy?: string;
687
+ readonly creationDate: number;
688
+ readonly disabledDate?: number;
689
+
941
690
  }
942
691
  }
943
692
  export declare namespace io.komune.im.f2.user.domain.policies {
944
693
  const UserPolicies: {
945
- canGet(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user: Nullable<io.komune.im.f2.user.domain.model.UserDTO>): boolean;
694
+ canGet(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user?: io.komune.im.f2.user.domain.model.UserDTO): boolean;
946
695
  canPage(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
947
696
  checkRefList(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
948
- canCreate(authedUser: io.komune.im.commons.auth.AuthedUserDTO, organizationId: Nullable<string>): boolean;
697
+ canCreate(authedUser: io.komune.im.commons.auth.AuthedUserDTO, organizationId?: string): boolean;
949
698
  canUpdate(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user: io.komune.im.f2.user.domain.model.UserDTO): boolean;
950
699
  canUpdateMemberOf(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
951
700
  canDisable(authedUser: io.komune.im.commons.auth.AuthedUserDTO, user: io.komune.im.f2.user.domain.model.UserDTO): boolean;
@@ -955,67 +704,51 @@ export declare namespace io.komune.im.f2.user.domain.policies {
955
704
  export declare namespace io.komune.im.f2.user.domain.query {
956
705
  interface UserExistsByEmailQueryDTO extends f2.dsl.cqrs.Query {
957
706
  readonly email: string;
958
- readonly __doNotUseOrImplementIt: {
959
- readonly "io.komune.im.f2.user.domain.query.UserExistsByEmailQueryDTO": unique symbol;
960
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
707
+
961
708
  }
962
709
  interface UserExistsByEmailResultDTO extends f2.dsl.cqrs.Event {
963
710
  readonly item: boolean;
964
- readonly __doNotUseOrImplementIt: {
965
- readonly "io.komune.im.f2.user.domain.query.UserExistsByEmailResultDTO": unique symbol;
966
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
711
+
967
712
  }
968
713
  }
969
714
  export declare namespace io.komune.im.f2.user.domain.query {
970
715
  interface UserGetByEmailQueryDTO extends f2.dsl.cqrs.Query {
971
716
  readonly email: string;
972
- readonly __doNotUseOrImplementIt: {
973
- readonly "io.komune.im.f2.user.domain.query.UserGetByEmailQueryDTO": unique symbol;
974
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
717
+
975
718
  }
976
719
  interface UserGetByEmailResultDTO extends f2.dsl.cqrs.Event {
977
- readonly item: Nullable<io.komune.im.f2.user.domain.model.UserDTO>;
978
- readonly __doNotUseOrImplementIt: {
979
- readonly "io.komune.im.f2.user.domain.query.UserGetByEmailResultDTO": unique symbol;
980
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
720
+ readonly item?: io.komune.im.f2.user.domain.model.UserDTO;
721
+
981
722
  }
982
723
  }
983
724
  export declare namespace io.komune.im.f2.user.domain.query {
984
725
  interface UserGetQueryDTO extends f2.dsl.cqrs.Query {
985
726
  readonly id: string;
986
- readonly __doNotUseOrImplementIt: {
987
- readonly "io.komune.im.f2.user.domain.query.UserGetQueryDTO": unique symbol;
988
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
727
+
989
728
  }
990
729
  interface UserGetResultDTO extends f2.dsl.cqrs.Event {
991
- readonly item: Nullable<io.komune.im.f2.user.domain.model.UserDTO>;
992
- readonly __doNotUseOrImplementIt: {
993
- readonly "io.komune.im.f2.user.domain.query.UserGetResultDTO": unique symbol;
994
- } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
730
+ readonly item?: io.komune.im.f2.user.domain.model.UserDTO;
731
+
995
732
  }
996
733
  }
997
734
  export declare namespace io.komune.im.f2.user.domain.query {
998
735
  interface UserPageQueryDTO extends f2.dsl.cqrs.Query {
999
- readonly organizationId: Nullable<string>;
1000
- readonly organizationName: Nullable<string>;
1001
- readonly name: Nullable<string>;
1002
- readonly email: Nullable<string>;
1003
- readonly role: Nullable<string>;
1004
- readonly roles: Nullable<any>/* Nullable<kotlin.collections.List<string>> */;
1005
- readonly attributes: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
736
+ readonly organizationId?: string;
737
+ readonly organizationName?: string;
738
+ readonly name?: string;
739
+ readonly email?: string;
740
+ readonly role?: string;
741
+ readonly roles?: string[];
742
+ readonly attributes?: Record<string, string>;
1006
743
  readonly withDisabled: boolean;
1007
- readonly offset: Nullable<number>;
1008
- readonly limit: Nullable<number>;
1009
- readonly __doNotUseOrImplementIt: {
1010
- readonly "io.komune.im.f2.user.domain.query.UserPageQueryDTO": unique symbol;
1011
- } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
744
+ readonly offset?: number;
745
+ readonly limit?: number;
746
+
1012
747
  }
1013
748
  interface UserPageResultDTO extends f2.dsl.cqrs.page.PageDTO<io.komune.im.f2.user.domain.model.UserDTO> {
1014
- readonly items: any/* kotlin.collections.List<io.komune.im.f2.user.domain.model.UserDTO> */;
749
+ readonly items: io.komune.im.f2.user.domain.model.UserDTO[];
1015
750
  readonly total: number;
1016
- readonly __doNotUseOrImplementIt: {
1017
- readonly "io.komune.im.f2.user.domain.query.UserPageResultDTO": unique symbol;
1018
- } & f2.dsl.cqrs.page.PageDTO<io.komune.im.f2.user.domain.model.UserDTO>["__doNotUseOrImplementIt"];
751
+
1019
752
  }
1020
753
  }
1021
754
  export as namespace io_komune_im_im_user_domain;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main": "connect-im-im-f2-user-im-user-domain.js",
3
3
  "types": "connect-im-im-f2-user-im-user-domain.d.ts",
4
- "version": "0.19.0-alpha.f340596",
4
+ "version": "0.19.0",
5
5
  "name": "@komune-io/im-user-domain",
6
6
  "dependencies": {
7
7
  "@js-joda/core": "3.2.0",