@komune-io/im-space-domain 0.19.0-alpha.ddb2e67 → 0.19.0-alpha.f340596

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,72 +1,94 @@
1
+ type Nullable<T> = T | null | undefined
1
2
  export declare namespace f2.dsl.cqrs {
2
3
  interface Command extends f2.dsl.cqrs.Message {
3
-
4
+ readonly __doNotUseOrImplementIt: {
5
+ readonly "f2.dsl.cqrs.Command": unique symbol;
6
+ } & f2.dsl.cqrs.Message["__doNotUseOrImplementIt"];
4
7
  }
5
8
  }
6
9
  export declare namespace f2.dsl.cqrs {
7
10
  interface Event extends f2.dsl.cqrs.Message {
8
-
11
+ readonly __doNotUseOrImplementIt: {
12
+ readonly "f2.dsl.cqrs.Event": unique symbol;
13
+ } & f2.dsl.cqrs.Message["__doNotUseOrImplementIt"];
9
14
  }
10
15
  }
11
16
  export declare namespace f2.dsl.cqrs {
12
17
  interface Message {
13
-
18
+ readonly __doNotUseOrImplementIt: {
19
+ readonly "f2.dsl.cqrs.Message": unique symbol;
20
+ };
14
21
  }
15
22
  }
16
23
  export declare namespace f2.dsl.cqrs {
17
24
  interface Problem extends f2.dsl.cqrs.Message {
18
-
25
+ readonly __doNotUseOrImplementIt: {
26
+ readonly "f2.dsl.cqrs.Problem": unique symbol;
27
+ } & f2.dsl.cqrs.Message["__doNotUseOrImplementIt"];
19
28
  }
20
29
  }
21
30
  export declare namespace f2.dsl.cqrs {
22
31
  interface Query extends f2.dsl.cqrs.Message {
23
-
32
+ readonly __doNotUseOrImplementIt: {
33
+ readonly "f2.dsl.cqrs.Query": unique symbol;
34
+ } & f2.dsl.cqrs.Message["__doNotUseOrImplementIt"];
24
35
  }
25
36
  }
26
37
  export declare namespace f2.dsl.cqrs.envelope {
27
38
  interface EnvelopeDTO<T> /* extends f2.dsl.cqrs.envelope.WithEnvelopeId, f2.dsl.cqrs.envelope.WithEnvelopeData<T> */ {
28
39
  readonly type: string;
29
- readonly datacontenttype?: string;
30
- readonly specversion?: string;
31
- readonly source?: string;
32
- readonly time?: string;
33
-
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
+ };
34
47
  }
35
48
  class Envelope<T> implements f2.dsl.cqrs.envelope.EnvelopeDTO<T> {
36
- constructor(id: string, data: T, type: string, datacontenttype?: string, specversion?: string, source?: string, time?: string);
49
+ constructor(id: string, data: T, type: string, datacontenttype?: Nullable<string>, specversion?: Nullable<string>, source?: Nullable<string>, time?: Nullable<string>);
37
50
  get type(): string;
38
51
  get datacontenttype(): Nullable<string>;
39
52
  get specversion(): Nullable<string>;
40
53
  get source(): Nullable<string>;
41
54
  get time(): Nullable<string>;
42
-
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 */;
43
59
  }
44
60
  }
45
61
  export declare namespace f2.dsl.cqrs.error {
46
62
  interface F2ErrorDTO extends f2.dsl.cqrs.Problem {
47
- readonly id?: string;
63
+ readonly id: Nullable<string>;
48
64
  readonly timestamp: string;
49
65
  readonly code: number;
50
- readonly requestId?: string;
66
+ readonly requestId: Nullable<string>;
51
67
  readonly message: string;
52
-
68
+ readonly __doNotUseOrImplementIt: {
69
+ readonly "f2.dsl.cqrs.error.F2ErrorDTO": unique symbol;
70
+ } & f2.dsl.cqrs.Problem["__doNotUseOrImplementIt"];
53
71
  }
54
72
  class F2Error implements f2.dsl.cqrs.error.F2ErrorDTO {
55
- constructor(message: string, id?: string, timestamp?: string, code?: number, requestId?: string);
73
+ constructor(message: string, id?: Nullable<string>, timestamp?: string, code?: number, requestId?: Nullable<string>);
56
74
  get message(): string;
57
75
  get id(): Nullable<string>;
58
76
  get timestamp(): string;
59
77
  get code(): number;
60
78
  get requestId(): Nullable<string>;
61
79
  toString(): string;
62
-
80
+ readonly __doNotUseOrImplementIt: f2.dsl.cqrs.error.F2ErrorDTO["__doNotUseOrImplementIt"];
81
+ static get Companion(): {
82
+ };
63
83
  }
64
84
  }
65
85
  export declare namespace f2.dsl.cqrs.exception {
66
86
  class F2Exception /* extends kotlin.RuntimeException */ {
67
- constructor(error: f2.dsl.cqrs.error.F2ErrorDTO, cause?: Error);
87
+ constructor(error: f2.dsl.cqrs.error.F2ErrorDTO, cause?: Nullable<Error>);
68
88
  get error(): f2.dsl.cqrs.error.F2ErrorDTO;
69
-
89
+ static get Companion(): {
90
+ invoke(message: string, id?: string, requestId?: string, code?: number, cause?: Nullable<Error>): f2.dsl.cqrs.exception.F2Exception;
91
+ };
70
92
  }
71
93
  }
72
94
  export declare namespace f2.dsl.cqrs.filter {
@@ -76,84 +98,112 @@ export declare namespace f2.dsl.cqrs.filter {
76
98
  not(): f2.dsl.cqrs.filter.Match<T>;
77
99
  and(match: f2.dsl.cqrs.filter.Match<T>): f2.dsl.cqrs.filter.Match<T>;
78
100
  or(match: f2.dsl.cqrs.filter.Match<T>): f2.dsl.cqrs.filter.Match<T>;
79
-
101
+ readonly __doNotUseOrImplementIt: {
102
+ readonly "f2.dsl.cqrs.filter.Match": unique symbol;
103
+ };
80
104
  }
81
105
  }
82
106
  export declare namespace f2.dsl.cqrs.filter {
83
107
  interface SortDTO {
84
108
  readonly property: string;
85
109
  readonly ascending: boolean;
86
- readonly nullsFirst?: boolean;
87
-
110
+ readonly nullsFirst: Nullable<boolean>;
111
+ readonly __doNotUseOrImplementIt: {
112
+ readonly "f2.dsl.cqrs.filter.SortDTO": unique symbol;
113
+ };
88
114
  }
89
115
  }
90
116
  export declare namespace f2.dsl.cqrs.page {
91
117
  interface PageDTO<OBJECT> {
92
118
  readonly total: number;
93
- readonly items: OBJECT[];
94
-
119
+ readonly items: any/* kotlin.collections.List<OBJECT> */;
120
+ readonly __doNotUseOrImplementIt: {
121
+ readonly "f2.dsl.cqrs.page.PageDTO": unique symbol;
122
+ };
95
123
  }
96
124
  class Page<OBJECT> implements f2.dsl.cqrs.page.PageDTO<OBJECT> {
97
- constructor(total: number, items: OBJECT[]);
125
+ constructor(total: number, items: any/* kotlin.collections.List<OBJECT> */);
98
126
  get total(): number;
99
- get items(): OBJECT[];
100
-
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 */;
101
132
  }
102
133
  }
103
134
  export declare namespace f2.dsl.cqrs.page {
104
135
  interface PageQueryDTO extends f2.dsl.cqrs.Query {
105
- readonly pagination?: f2.dsl.cqrs.page.OffsetPaginationDTO;
106
-
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"];
107
140
  }
108
141
  interface PageQueryResultDTO<OBJECT> extends f2.dsl.cqrs.Event, f2.dsl.cqrs.page.PageDTO<OBJECT> {
109
142
  readonly total: number;
110
- readonly items: OBJECT[];
111
- readonly pagination?: f2.dsl.cqrs.page.OffsetPaginationDTO;
112
-
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"];
113
148
  }
114
149
  class PageQuery implements f2.dsl.cqrs.page.PageQueryDTO {
115
- constructor(pagination?: f2.dsl.cqrs.page.OffsetPaginationDTO);
150
+ constructor(pagination: Nullable<f2.dsl.cqrs.page.OffsetPaginationDTO>);
116
151
  get pagination(): Nullable<f2.dsl.cqrs.page.OffsetPaginationDTO>;
117
-
152
+ readonly __doNotUseOrImplementIt: f2.dsl.cqrs.page.PageQueryDTO["__doNotUseOrImplementIt"];
153
+ static get Companion(): {
154
+ };
118
155
  }
119
156
  class PageQueryResult<OBJECT> implements f2.dsl.cqrs.page.PageQueryResultDTO<OBJECT> {
120
- constructor(pagination?: f2.dsl.cqrs.page.OffsetPagination, total: number, items: OBJECT[]);
157
+ constructor(pagination: Nullable<f2.dsl.cqrs.page.OffsetPagination>, total: number, items: any/* kotlin.collections.List<OBJECT> */);
121
158
  get pagination(): Nullable<f2.dsl.cqrs.page.OffsetPagination>;
122
159
  get total(): number;
123
- get items(): OBJECT[];
124
-
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 */;
125
165
  }
126
166
  }
127
167
  export declare namespace f2.dsl.cqrs.page {
128
168
  interface Pagination {
129
-
169
+ readonly __doNotUseOrImplementIt: {
170
+ readonly "f2.dsl.cqrs.page.Pagination": unique symbol;
171
+ };
130
172
  }
131
173
  interface OffsetPaginationDTO extends f2.dsl.cqrs.page.Pagination {
132
174
  readonly offset: number;
133
175
  readonly limit: number;
134
-
176
+ readonly __doNotUseOrImplementIt: {
177
+ readonly "f2.dsl.cqrs.page.OffsetPaginationDTO": unique symbol;
178
+ } & f2.dsl.cqrs.page.Pagination["__doNotUseOrImplementIt"];
135
179
  }
136
180
  interface PagePaginationDTO extends f2.dsl.cqrs.page.Pagination {
137
- readonly page?: number;
138
- readonly size?: number;
139
-
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"];
140
186
  }
141
187
  class OffsetPagination implements f2.dsl.cqrs.page.OffsetPaginationDTO {
142
188
  constructor(offset: number, limit: number);
143
189
  get offset(): number;
144
190
  get limit(): number;
145
-
191
+ readonly __doNotUseOrImplementIt: f2.dsl.cqrs.page.OffsetPaginationDTO["__doNotUseOrImplementIt"];
192
+ static get Companion(): {
193
+ };
146
194
  }
147
195
  class PagePagination implements f2.dsl.cqrs.page.PagePaginationDTO {
148
- constructor(page?: number, size?: number);
196
+ constructor(page: Nullable<number>, size: Nullable<number>);
149
197
  get page(): Nullable<number>;
150
198
  get size(): Nullable<number>;
151
-
199
+ readonly __doNotUseOrImplementIt: f2.dsl.cqrs.page.PagePaginationDTO["__doNotUseOrImplementIt"];
200
+ static get Companion(): {
201
+ };
152
202
  }
153
203
  }
154
204
  export declare namespace f2.client.domain {
155
205
  abstract class AuthRealm {
156
- protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string);
206
+ protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string>);
157
207
  get serverUrl(): string;
158
208
  get realmId(): string;
159
209
  get clientId(): string;
@@ -170,33 +220,98 @@ export declare namespace f2.client.domain {
170
220
  copy(serverUrl?: string, realmId?: string, redirectUrl?: string, clientId?: string, username?: string, password?: string): f2.client.domain.AuthRealmPassword;
171
221
  toString(): string;
172
222
  hashCode(): number;
173
- equals(other?: any): boolean;
223
+ equals(other: Nullable<any>): boolean;
174
224
  }
175
225
  class AuthRealmClientSecret extends f2.client.domain.AuthRealm {
176
- constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string | undefined, clientSecret: string, isPublic?: boolean);
226
+ constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl: Nullable<string> | undefined, clientSecret: string, isPublic?: boolean);
177
227
  get serverUrl(): string;
178
228
  get realmId(): string;
179
229
  get clientId(): string;
180
230
  get redirectUrl(): Nullable<string>;
181
231
  get clientSecret(): string;
182
232
  get isPublic(): boolean;
183
- copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: string, clientSecret?: string, isPublic?: boolean): f2.client.domain.AuthRealmClientSecret;
233
+ copy(serverUrl?: string, realmId?: string, clientId?: string, redirectUrl?: Nullable<string>, clientSecret?: string, isPublic?: boolean): f2.client.domain.AuthRealmClientSecret;
184
234
  toString(): string;
185
235
  hashCode(): number;
186
- equals(other?: any): boolean;
236
+ equals(other: Nullable<any>): boolean;
187
237
  }
188
238
  }
189
239
  export declare namespace io.komune.im.commons.auth {
190
240
  interface AuthedUserDTO {
191
241
  readonly id: string;
192
- readonly identifier?: string;
193
- readonly memberOf?: string;
242
+ readonly identifier: Nullable<string>;
243
+ readonly memberOf: Nullable<string>;
194
244
  readonly roles: Array<string>;
195
-
245
+ readonly __doNotUseOrImplementIt: {
246
+ readonly "io.komune.im.commons.auth.AuthedUserDTO": unique symbol;
247
+ };
196
248
  }
197
249
  }
198
250
  export declare namespace io.komune.im.commons.auth {
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";
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
+ }
200
315
  }
201
316
  export declare namespace io.komune.im.commons.exception {
202
317
  const ExceptionCodes: {
@@ -208,57 +323,77 @@ export declare namespace io.komune.im.commons.model {
208
323
  readonly street: string;
209
324
  readonly postalCode: string;
210
325
  readonly city: string;
211
-
326
+ readonly __doNotUseOrImplementIt: {
327
+ readonly "io.komune.im.commons.model.AddressDTO": unique symbol;
328
+ };
212
329
  }
213
330
  }
214
331
  export declare namespace f2.dsl.fnc {
215
332
  interface F2Function<T, R> {
216
333
  invokePromise(cmds: Array<T>): Promise<Array<R>>;
217
-
334
+ readonly __doNotUseOrImplementIt: {
335
+ readonly "f2.dsl.fnc.F2Function": unique symbol;
336
+ };
218
337
  }
219
338
  interface F2Consumer<T> {
220
339
  invokePromise(cmds: Array<T>): Promise<void>;
221
-
340
+ readonly __doNotUseOrImplementIt: {
341
+ readonly "f2.dsl.fnc.F2Consumer": unique symbol;
342
+ };
222
343
  }
223
344
  interface F2Supplier<R> {
224
345
  invokePromise(): Promise<Array<R>>;
225
-
346
+ readonly __doNotUseOrImplementIt: {
347
+ readonly "f2.dsl.fnc.F2Supplier": unique symbol;
348
+ };
226
349
  }
227
350
  interface F2SupplierSingle<R> {
228
351
  invokePromise(): Promise<R>;
229
-
352
+ readonly __doNotUseOrImplementIt: {
353
+ readonly "f2.dsl.fnc.F2SupplierSingle": unique symbol;
354
+ };
230
355
  }
231
356
  }
232
357
  export declare namespace io.komune.im.f2.space.domain.command {
233
358
  interface SpaceDefineCommandDTO extends f2.dsl.cqrs.Command {
234
359
  readonly identifier: string;
235
- readonly theme?: string;
236
- readonly smtp?: Record<string, string>;
237
- readonly locales?: string[];
238
-
360
+ readonly theme: Nullable<string>;
361
+ readonly smtp: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
362
+ readonly locales: Nullable<any>/* Nullable<kotlin.collections.List<string>> */;
363
+ readonly __doNotUseOrImplementIt: {
364
+ readonly "io.komune.im.f2.space.domain.command.SpaceDefineCommandDTO": unique symbol;
365
+ } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
239
366
  }
240
367
  interface SpaceDefinedEventDTO extends f2.dsl.cqrs.Event {
241
368
  readonly identifier: string;
242
-
369
+ readonly __doNotUseOrImplementIt: {
370
+ readonly "io.komune.im.f2.space.domain.command.SpaceDefinedEventDTO": unique symbol;
371
+ } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
243
372
  }
244
373
  }
245
374
  export declare namespace io.komune.im.f2.space.domain.command {
246
375
  interface SpaceDeleteCommandDTO extends f2.dsl.cqrs.Command {
247
376
  readonly id: string;
248
-
377
+ readonly __doNotUseOrImplementIt: {
378
+ readonly "io.komune.im.f2.space.domain.command.SpaceDeleteCommandDTO": unique symbol;
379
+ } & f2.dsl.cqrs.Command["__doNotUseOrImplementIt"];
249
380
  }
250
381
  interface SpaceDeletedEventDTO extends f2.dsl.cqrs.Event {
251
382
  readonly id: string;
252
-
383
+ readonly __doNotUseOrImplementIt: {
384
+ readonly "io.komune.im.f2.space.domain.command.SpaceDeletedEventDTO": unique symbol;
385
+ } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
253
386
  }
254
387
  }
255
388
  export declare namespace io.komune.im.f2.space.domain.model {
256
389
  interface SpaceDTO {
257
- readonly identifier?: string;
258
- readonly smtp?: Record<string, string>;
259
- readonly theme?: string;
260
- readonly locales?: string[];
261
-
390
+ readonly identifier: Nullable<string>;
391
+ readonly smtp: Nullable<any>/* Nullable<kotlin.collections.Map<string, string>> */;
392
+ readonly theme: Nullable<string>;
393
+ readonly locales: Nullable<any>/* Nullable<kotlin.collections.List<string>> */;
394
+ readonly __doNotUseOrImplementIt: {
395
+ readonly "io.komune.im.f2.space.domain.model.SpaceDTO": unique symbol;
396
+ };
262
397
  }
263
398
  }
264
399
  export declare namespace io.komune.im.f2.space.domain.policies {
@@ -266,30 +401,38 @@ export declare namespace io.komune.im.f2.space.domain.policies {
266
401
  canGet(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
267
402
  canPage(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
268
403
  canDefine(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
269
- canDelete(authedUser: io.komune.im.commons.auth.AuthedUserDTO, spaceIdentifier: string): boolean;
404
+ canDelete(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
270
405
  };
271
406
  }
272
407
  export declare namespace io.komune.im.f2.space.domain.query {
273
408
  interface SpaceGetQueryDTO extends f2.dsl.cqrs.Query {
274
409
  readonly id: string;
275
-
410
+ readonly __doNotUseOrImplementIt: {
411
+ readonly "io.komune.im.f2.space.domain.query.SpaceGetQueryDTO": unique symbol;
412
+ } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
276
413
  }
277
414
  interface SpaceGetResultDTO extends f2.dsl.cqrs.Event {
278
- readonly item?: io.komune.im.f2.space.domain.model.SpaceDTO;
279
-
415
+ readonly item: Nullable<io.komune.im.f2.space.domain.model.SpaceDTO>;
416
+ readonly __doNotUseOrImplementIt: {
417
+ readonly "io.komune.im.f2.space.domain.query.SpaceGetResultDTO": unique symbol;
418
+ } & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
280
419
  }
281
420
  }
282
421
  export declare namespace io.komune.im.f2.space.domain.query {
283
422
  interface SpacePageQueryDTO extends f2.dsl.cqrs.Query {
284
- readonly search?: string;
285
- readonly page?: number;
286
- readonly size?: number;
287
-
423
+ readonly search: Nullable<string>;
424
+ readonly page: Nullable<number>;
425
+ readonly size: Nullable<number>;
426
+ readonly __doNotUseOrImplementIt: {
427
+ readonly "io.komune.im.f2.space.domain.query.SpacePageQueryDTO": unique symbol;
428
+ } & f2.dsl.cqrs.Query["__doNotUseOrImplementIt"];
288
429
  }
289
430
  interface SpacePageResultDTO extends f2.dsl.cqrs.page.PageDTO<io.komune.im.f2.space.domain.model.SpaceDTO> {
290
431
  readonly total: number;
291
- readonly items: io.komune.im.f2.space.domain.model.SpaceDTO[];
292
-
432
+ readonly items: any/* kotlin.collections.List<io.komune.im.f2.space.domain.model.SpaceDTO> */;
433
+ readonly __doNotUseOrImplementIt: {
434
+ readonly "io.komune.im.f2.space.domain.query.SpacePageResultDTO": unique symbol;
435
+ } & f2.dsl.cqrs.page.PageDTO<io.komune.im.f2.space.domain.model.SpaceDTO>["__doNotUseOrImplementIt"];
293
436
  }
294
437
  }
295
438
  export as namespace io_komune_im_im_space_domain;
@@ -80,14 +80,14 @@ if (typeof Math.imul === 'undefined') {
80
80
  setMetadataFor(AbstractMutableCollection, 'AbstractMutableCollection', classMeta, AbstractCollection, [AbstractCollection, Collection]);
81
81
  setMetadataFor(IteratorImpl, 'IteratorImpl', classMeta);
82
82
  setMetadataFor(List, 'List', interfaceMeta, VOID, [Collection]);
83
- setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, List, Collection]);
83
+ setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, List]);
84
84
  setMetadataFor(Map_0, 'Map', interfaceMeta);
85
85
  setMetadataFor(AbstractMap, 'AbstractMap', classMeta, VOID, [Map_0]);
86
86
  setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, AbstractMap, [AbstractMap, Map_0]);
87
87
  setMetadataFor(Set, 'Set', interfaceMeta, VOID, [Collection]);
88
88
  setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, Set]);
89
89
  setMetadataFor(Companion, 'Companion', objectMeta);
90
- setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, List, Collection], ArrayList_init_$Create$);
90
+ setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, Collection, List], ArrayList_init_$Create$);
91
91
  setMetadataFor(HashMap, 'HashMap', classMeta, AbstractMutableMap, [AbstractMutableMap, Map_0], HashMap_init_$Create$);
92
92
  setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
93
93
  setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
@@ -382,7 +382,7 @@ if (typeof Math.imul === 'undefined') {
382
382
  setMetadataFor(Symbol_0, 'Symbol', classMeta);
383
383
  setMetadataFor(SetTimeoutBasedDispatcher, 'SetTimeoutBasedDispatcher', classMeta, CoroutineDispatcher, VOID, VOID, VOID, VOID, [1]);
384
384
  setMetadataFor(NodeDispatcher, 'NodeDispatcher', objectMeta, SetTimeoutBasedDispatcher, VOID, VOID, VOID, VOID, [1]);
385
- setMetadataFor(MessageQueue, 'MessageQueue', classMeta, VOID, [List, Collection]);
385
+ setMetadataFor(MessageQueue, 'MessageQueue', classMeta, VOID, [Collection, List]);
386
386
  setMetadataFor(ScheduledMessageQueue, 'ScheduledMessageQueue', classMeta, MessageQueue);
387
387
  setMetadataFor(WindowMessageQueue, 'WindowMessageQueue', classMeta, MessageQueue);
388
388
  setMetadataFor(Dispatchers, 'Dispatchers', objectMeta);
@@ -11754,7 +11754,7 @@ if (typeof Math.imul === 'undefined') {
11754
11754
  protoOf(SpacePolicies).canDefine = function (authedUser) {
11755
11755
  return hasRole(authedUser, ImRole_IM_SPACE_WRITE_getInstance());
11756
11756
  };
11757
- protoOf(SpacePolicies).canDelete = function (authedUser, spaceIdentifier) {
11757
+ protoOf(SpacePolicies).canDelete = function (authedUser) {
11758
11758
  return hasRole(authedUser, ImRole_IM_SPACE_WRITE_getInstance());
11759
11759
  };
11760
11760
  var SpacePolicies_instance;