@komune-io/im-privilege-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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
41
|
-
readonly specversion
|
|
42
|
-
readonly source
|
|
43
|
-
readonly time
|
|
44
|
-
|
|
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?:
|
|
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
|
-
|
|
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
|
|
47
|
+
readonly id?: string;
|
|
64
48
|
readonly timestamp: string;
|
|
65
49
|
readonly code: number;
|
|
66
|
-
readonly requestId
|
|
50
|
+
readonly requestId?: string;
|
|
67
51
|
readonly message: string;
|
|
68
|
-
|
|
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?:
|
|
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
|
-
|
|
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?:
|
|
67
|
+
constructor(error: f2.dsl.cqrs.error.F2ErrorDTO, cause?: Error);
|
|
88
68
|
get error(): f2.dsl.cqrs.error.F2ErrorDTO;
|
|
89
|
-
|
|
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
|
-
|
|
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
|
|
111
|
-
|
|
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:
|
|
120
|
-
|
|
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:
|
|
97
|
+
constructor(total: number, items: OBJECT[]);
|
|
126
98
|
get total(): number;
|
|
127
|
-
get items():
|
|
128
|
-
|
|
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
|
|
137
|
-
|
|
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:
|
|
144
|
-
readonly pagination
|
|
145
|
-
|
|
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
|
|
115
|
+
constructor(pagination?: f2.dsl.cqrs.page.OffsetPaginationDTO);
|
|
151
116
|
get pagination(): Nullable<f2.dsl.cqrs.page.OffsetPaginationDTO>;
|
|
152
|
-
|
|
153
|
-
static get Companion(): {
|
|
154
|
-
};
|
|
117
|
+
|
|
155
118
|
}
|
|
156
119
|
class PageQueryResult<OBJECT> implements f2.dsl.cqrs.page.PageQueryResultDTO<OBJECT> {
|
|
157
|
-
constructor(pagination
|
|
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():
|
|
161
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
182
|
-
readonly size
|
|
183
|
-
|
|
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
|
-
|
|
192
|
-
static get Companion(): {
|
|
193
|
-
};
|
|
145
|
+
|
|
194
146
|
}
|
|
195
147
|
class PagePagination implements f2.dsl.cqrs.page.PagePaginationDTO {
|
|
196
|
-
constructor(page
|
|
148
|
+
constructor(page?: number, size?: number);
|
|
197
149
|
get page(): Nullable<number>;
|
|
198
150
|
get size(): Nullable<number>;
|
|
199
|
-
|
|
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
|
|
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
|
|
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
|
|
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?:
|
|
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
|
|
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
|
|
243
|
-
readonly memberOf
|
|
192
|
+
readonly identifier?: string;
|
|
193
|
+
readonly memberOf?: string;
|
|
244
194
|
readonly roles: Array<string>;
|
|
245
|
-
|
|
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
|
-
|
|
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,35 +208,25 @@ export declare namespace io.komune.im.commons.model {
|
|
|
323
208
|
readonly street: string;
|
|
324
209
|
readonly postalCode: string;
|
|
325
210
|
readonly city: string;
|
|
326
|
-
|
|
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
|
-
|
|
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
|
-
|
|
341
|
-
readonly "f2.dsl.fnc.F2Consumer": unique symbol;
|
|
342
|
-
};
|
|
221
|
+
|
|
343
222
|
}
|
|
344
223
|
interface F2Supplier<R> {
|
|
345
224
|
invokePromise(): Promise<Array<R>>;
|
|
346
|
-
|
|
347
|
-
readonly "f2.dsl.fnc.F2Supplier": unique symbol;
|
|
348
|
-
};
|
|
225
|
+
|
|
349
226
|
}
|
|
350
227
|
interface F2SupplierSingle<R> {
|
|
351
228
|
invokePromise(): Promise<R>;
|
|
352
|
-
|
|
353
|
-
readonly "f2.dsl.fnc.F2SupplierSingle": unique symbol;
|
|
354
|
-
};
|
|
229
|
+
|
|
355
230
|
}
|
|
356
231
|
}
|
|
357
232
|
export declare namespace io.komune.im.f2.privilege.domain {
|
|
@@ -365,15 +240,11 @@ export declare namespace io.komune.im.f2.privilege.domain.feature.command {
|
|
|
365
240
|
interface FeatureDefineCommandDTO {
|
|
366
241
|
readonly identifier: string;
|
|
367
242
|
readonly description: string;
|
|
368
|
-
|
|
369
|
-
readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefineCommandDTO": unique symbol;
|
|
370
|
-
};
|
|
243
|
+
|
|
371
244
|
}
|
|
372
245
|
interface FeatureDefinedEventDTO extends f2.dsl.cqrs.Event {
|
|
373
246
|
readonly identifier: string;
|
|
374
|
-
|
|
375
|
-
readonly "io.komune.im.f2.privilege.domain.feature.command.FeatureDefinedEventDTO": unique symbol;
|
|
376
|
-
} & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
|
|
247
|
+
|
|
377
248
|
}
|
|
378
249
|
}
|
|
379
250
|
export declare namespace io.komune.im.f2.privilege.domain.feature.model {
|
|
@@ -382,36 +253,26 @@ export declare namespace io.komune.im.f2.privilege.domain.feature.model {
|
|
|
382
253
|
readonly type: string;
|
|
383
254
|
readonly identifier: string;
|
|
384
255
|
readonly description: string;
|
|
385
|
-
|
|
386
|
-
readonly "io.komune.im.f2.privilege.domain.feature.model.FeatureDTO": unique symbol;
|
|
387
|
-
} & io.komune.im.f2.privilege.domain.model.PrivilegeDTO["__doNotUseOrImplementIt"];
|
|
256
|
+
|
|
388
257
|
}
|
|
389
258
|
}
|
|
390
259
|
export declare namespace io.komune.im.f2.privilege.domain.feature.query {
|
|
391
260
|
interface FeatureGetQueryDTO {
|
|
392
261
|
readonly identifier: string;
|
|
393
|
-
|
|
394
|
-
readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetQueryDTO": unique symbol;
|
|
395
|
-
};
|
|
262
|
+
|
|
396
263
|
}
|
|
397
264
|
interface FeatureGetResultDTO {
|
|
398
|
-
readonly item
|
|
399
|
-
|
|
400
|
-
readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureGetResultDTO": unique symbol;
|
|
401
|
-
};
|
|
265
|
+
readonly item?: io.komune.im.f2.privilege.domain.feature.model.FeatureDTO;
|
|
266
|
+
|
|
402
267
|
}
|
|
403
268
|
}
|
|
404
269
|
export declare namespace io.komune.im.f2.privilege.domain.feature.query {
|
|
405
270
|
interface FeatureListQueryDTO {
|
|
406
|
-
|
|
407
|
-
readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListQueryDTO": unique symbol;
|
|
408
|
-
};
|
|
271
|
+
|
|
409
272
|
}
|
|
410
273
|
interface FeatureListResultDTO {
|
|
411
|
-
readonly items:
|
|
412
|
-
|
|
413
|
-
readonly "io.komune.im.f2.privilege.domain.feature.query.FeatureListResultDTO": unique symbol;
|
|
414
|
-
};
|
|
274
|
+
readonly items: io.komune.im.f2.privilege.domain.feature.model.FeatureDTO[];
|
|
275
|
+
|
|
415
276
|
}
|
|
416
277
|
}
|
|
417
278
|
export declare namespace io.komune.im.f2.privilege.domain.model {
|
|
@@ -420,25 +281,19 @@ export declare namespace io.komune.im.f2.privilege.domain.model {
|
|
|
420
281
|
readonly identifier: string;
|
|
421
282
|
readonly description: string;
|
|
422
283
|
readonly type: string;
|
|
423
|
-
|
|
424
|
-
readonly "io.komune.im.f2.privilege.domain.model.PrivilegeDTO": unique symbol;
|
|
425
|
-
};
|
|
284
|
+
|
|
426
285
|
}
|
|
427
286
|
}
|
|
428
287
|
export declare namespace io.komune.im.f2.privilege.domain.permission.command {
|
|
429
288
|
interface PermissionDefineCommandDTO {
|
|
430
289
|
readonly identifier: string;
|
|
431
290
|
readonly description: string;
|
|
432
|
-
readonly features
|
|
433
|
-
|
|
434
|
-
readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefineCommandDTO": unique symbol;
|
|
435
|
-
};
|
|
291
|
+
readonly features?: string[][];
|
|
292
|
+
|
|
436
293
|
}
|
|
437
294
|
interface PermissionDefinedEventDTO extends f2.dsl.cqrs.Event {
|
|
438
295
|
readonly identifier: string;
|
|
439
|
-
|
|
440
|
-
readonly "io.komune.im.f2.privilege.domain.permission.command.PermissionDefinedEventDTO": unique symbol;
|
|
441
|
-
} & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
|
|
296
|
+
|
|
442
297
|
}
|
|
443
298
|
}
|
|
444
299
|
export declare namespace io.komune.im.f2.privilege.domain.permission.model {
|
|
@@ -447,56 +302,42 @@ export declare namespace io.komune.im.f2.privilege.domain.permission.model {
|
|
|
447
302
|
readonly type: string;
|
|
448
303
|
readonly identifier: string;
|
|
449
304
|
readonly description: string;
|
|
450
|
-
readonly features
|
|
451
|
-
|
|
452
|
-
readonly "io.komune.im.f2.privilege.domain.permission.model.PermissionDTO": unique symbol;
|
|
453
|
-
} & io.komune.im.f2.privilege.domain.model.PrivilegeDTO["__doNotUseOrImplementIt"];
|
|
305
|
+
readonly features?: string[][];
|
|
306
|
+
|
|
454
307
|
}
|
|
455
308
|
}
|
|
456
309
|
export declare namespace io.komune.im.f2.privilege.domain.permission.query {
|
|
457
310
|
interface PermissionGetQueryDTO {
|
|
458
311
|
readonly identifier: string;
|
|
459
|
-
|
|
460
|
-
readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetQueryDTO": unique symbol;
|
|
461
|
-
};
|
|
312
|
+
|
|
462
313
|
}
|
|
463
314
|
interface PermissionGetResultDTO {
|
|
464
|
-
readonly item
|
|
465
|
-
|
|
466
|
-
readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionGetResultDTO": unique symbol;
|
|
467
|
-
};
|
|
315
|
+
readonly item?: io.komune.im.f2.privilege.domain.permission.model.PermissionDTO;
|
|
316
|
+
|
|
468
317
|
}
|
|
469
318
|
}
|
|
470
319
|
export declare namespace io.komune.im.f2.privilege.domain.permission.query {
|
|
471
320
|
interface PermissionListQueryDTO {
|
|
472
|
-
|
|
473
|
-
readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListQueryDTO": unique symbol;
|
|
474
|
-
};
|
|
321
|
+
|
|
475
322
|
}
|
|
476
323
|
interface PermissionListResultDTO {
|
|
477
|
-
readonly items:
|
|
478
|
-
|
|
479
|
-
readonly "io.komune.im.f2.privilege.domain.permission.query.PermissionListResultDTO": unique symbol;
|
|
480
|
-
};
|
|
324
|
+
readonly items: io.komune.im.f2.privilege.domain.permission.model.PermissionDTO[];
|
|
325
|
+
|
|
481
326
|
}
|
|
482
327
|
}
|
|
483
328
|
export declare namespace io.komune.im.f2.privilege.domain.role.command {
|
|
484
329
|
interface RoleDefineCommandDTO {
|
|
485
330
|
readonly identifier: string;
|
|
486
331
|
readonly description: string;
|
|
487
|
-
readonly targets:
|
|
488
|
-
readonly locale:
|
|
489
|
-
readonly bindings
|
|
490
|
-
readonly permissions
|
|
491
|
-
|
|
492
|
-
readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefineCommandDTO": unique symbol;
|
|
493
|
-
};
|
|
332
|
+
readonly targets: string[];
|
|
333
|
+
readonly locale: Record<string, string>;
|
|
334
|
+
readonly bindings?: Record<string, string[]>;
|
|
335
|
+
readonly permissions?: string[];
|
|
336
|
+
|
|
494
337
|
}
|
|
495
338
|
interface RoleDefinedEventDTO extends f2.dsl.cqrs.Event {
|
|
496
339
|
readonly identifier: string;
|
|
497
|
-
|
|
498
|
-
readonly "io.komune.im.f2.privilege.domain.role.command.RoleDefinedEventDTO": unique symbol;
|
|
499
|
-
} & f2.dsl.cqrs.Event["__doNotUseOrImplementIt"];
|
|
340
|
+
|
|
500
341
|
}
|
|
501
342
|
}
|
|
502
343
|
export declare namespace io.komune.im.f2.privilege.domain.role.model {
|
|
@@ -505,13 +346,11 @@ export declare namespace io.komune.im.f2.privilege.domain.role.model {
|
|
|
505
346
|
readonly type: string;
|
|
506
347
|
readonly identifier: string;
|
|
507
348
|
readonly description: string;
|
|
508
|
-
readonly targets:
|
|
509
|
-
readonly locale:
|
|
510
|
-
readonly bindings:
|
|
511
|
-
readonly permissions:
|
|
512
|
-
|
|
513
|
-
readonly "io.komune.im.f2.privilege.domain.role.model.RoleDTO": unique symbol;
|
|
514
|
-
} & io.komune.im.f2.privilege.domain.model.PrivilegeDTO["__doNotUseOrImplementIt"];
|
|
349
|
+
readonly targets: string[];
|
|
350
|
+
readonly locale: Record<string, string>;
|
|
351
|
+
readonly bindings: Record<string, io.komune.im.f2.privilege.domain.role.model.RoleDTO[]>;
|
|
352
|
+
readonly permissions: string[];
|
|
353
|
+
|
|
515
354
|
}
|
|
516
355
|
}
|
|
517
356
|
export declare namespace io.komune.im.f2.privilege.domain.role.model {
|
|
@@ -524,29 +363,21 @@ export declare namespace io.komune.im.f2.privilege.domain.role.model {
|
|
|
524
363
|
export declare namespace io.komune.im.f2.privilege.domain.role.query {
|
|
525
364
|
interface RoleGetQueryDTO {
|
|
526
365
|
readonly identifier: string;
|
|
527
|
-
|
|
528
|
-
readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetQueryDTO": unique symbol;
|
|
529
|
-
};
|
|
366
|
+
|
|
530
367
|
}
|
|
531
368
|
interface RoleGetResultDTO {
|
|
532
|
-
readonly item
|
|
533
|
-
|
|
534
|
-
readonly "io.komune.im.f2.privilege.domain.role.query.RoleGetResultDTO": unique symbol;
|
|
535
|
-
};
|
|
369
|
+
readonly item?: io.komune.im.f2.privilege.domain.role.model.RoleDTO;
|
|
370
|
+
|
|
536
371
|
}
|
|
537
372
|
}
|
|
538
373
|
export declare namespace io.komune.im.f2.privilege.domain.role.query {
|
|
539
374
|
interface RoleListQueryDTO {
|
|
540
|
-
readonly target
|
|
541
|
-
|
|
542
|
-
readonly "io.komune.im.f2.privilege.domain.role.query.RoleListQueryDTO": unique symbol;
|
|
543
|
-
};
|
|
375
|
+
readonly target?: string;
|
|
376
|
+
|
|
544
377
|
}
|
|
545
378
|
interface RoleListResultDTO {
|
|
546
|
-
readonly items:
|
|
547
|
-
|
|
548
|
-
readonly "io.komune.im.f2.privilege.domain.role.query.RoleListResultDTO": unique symbol;
|
|
549
|
-
};
|
|
379
|
+
readonly items: io.komune.im.f2.privilege.domain.role.model.RoleDTO[];
|
|
380
|
+
|
|
550
381
|
}
|
|
551
382
|
}
|
|
552
383
|
export as namespace io_komune_im_im_privilege_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,
|
|
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, Set, Collection]);
|
|
89
89
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
90
|
-
setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList,
|
|
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, [Set, Collection, AbstractMutableSet]);
|
|
93
93
|
setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Set, Collection, 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, [
|
|
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);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"main": "connect-im-im-f2-privilege-im-privilege-domain.js",
|
|
3
3
|
"types": "connect-im-im-f2-privilege-im-privilege-domain.d.ts",
|
|
4
|
-
"version": "0.19.0
|
|
4
|
+
"version": "0.19.0",
|
|
5
5
|
"name": "@komune-io/im-privilege-domain",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@js-joda/core": "3.2.0",
|