@komune-io/im-privilege-domain 0.16.5 → 0.17.0-alpha.20c6ff6
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,25 +1,3 @@
|
|
|
1
|
-
export declare namespace f2.dsl.fnc {
|
|
2
|
-
interface F2Function<T, R> {
|
|
3
|
-
invoke(cmd: Array<T>): Promise<Array<R>>;
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
interface F2Supplier<R> {
|
|
7
|
-
invoke(): Promise<Array<R>>;
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
interface F2Consumer<T> {
|
|
11
|
-
invoke(cmd: Array<T>): Promise<void>;
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export declare namespace f2.client {
|
|
16
|
-
interface F2Client {
|
|
17
|
-
supplier<RESPONSE>(route: string, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Supplier<RESPONSE>;
|
|
18
|
-
function<QUERY, RESPONSE>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Function<QUERY, RESPONSE>;
|
|
19
|
-
consumer<QUERY>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Consumer<QUERY>;
|
|
20
|
-
readonly type: f2.client.F2ClientType;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
1
|
export declare namespace f2.dsl.cqrs {
|
|
24
2
|
interface Command extends f2.dsl.cqrs.Message {
|
|
25
3
|
|
|
@@ -35,13 +13,37 @@ export declare namespace f2.dsl.cqrs {
|
|
|
35
13
|
|
|
36
14
|
}
|
|
37
15
|
}
|
|
16
|
+
export declare namespace f2.dsl.cqrs {
|
|
17
|
+
interface Problem extends f2.dsl.cqrs.Message {
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
}
|
|
38
21
|
export declare namespace f2.dsl.cqrs {
|
|
39
22
|
interface Query extends f2.dsl.cqrs.Message {
|
|
40
23
|
|
|
41
24
|
}
|
|
42
25
|
}
|
|
26
|
+
export declare namespace f2.dsl.cqrs.envelope {
|
|
27
|
+
interface EnvelopeDTO<T> /* extends f2.dsl.cqrs.envelope.WithEnvelopeId, f2.dsl.cqrs.envelope.WithEnvelopeData<T> */ {
|
|
28
|
+
readonly type: string;
|
|
29
|
+
readonly datacontenttype?: string;
|
|
30
|
+
readonly specversion?: string;
|
|
31
|
+
readonly source?: string;
|
|
32
|
+
readonly time?: string;
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
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);
|
|
37
|
+
get type(): string;
|
|
38
|
+
get datacontenttype(): Nullable<string>;
|
|
39
|
+
get specversion(): Nullable<string>;
|
|
40
|
+
get source(): Nullable<string>;
|
|
41
|
+
get time(): Nullable<string>;
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
}
|
|
43
45
|
export declare namespace f2.dsl.cqrs.error {
|
|
44
|
-
interface F2ErrorDTO {
|
|
46
|
+
interface F2ErrorDTO extends f2.dsl.cqrs.Problem {
|
|
45
47
|
readonly id?: string;
|
|
46
48
|
readonly timestamp: string;
|
|
47
49
|
readonly code: number;
|
|
@@ -149,6 +151,32 @@ export declare namespace f2.dsl.cqrs.page {
|
|
|
149
151
|
|
|
150
152
|
}
|
|
151
153
|
}
|
|
154
|
+
export declare namespace f2.dsl.fnc {
|
|
155
|
+
interface F2Function<T, R> {
|
|
156
|
+
invokePromise(cmds: Array<T>): Promise<Array<R>>;
|
|
157
|
+
|
|
158
|
+
}
|
|
159
|
+
interface F2Consumer<T> {
|
|
160
|
+
invokePromise(cmds: Array<T>): Promise<void>;
|
|
161
|
+
|
|
162
|
+
}
|
|
163
|
+
interface F2Supplier<R> {
|
|
164
|
+
invokePromise(): Promise<Array<R>>;
|
|
165
|
+
|
|
166
|
+
}
|
|
167
|
+
interface F2SupplierSingle<R> {
|
|
168
|
+
invokePromise(): Promise<R>;
|
|
169
|
+
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
export declare namespace f2.client {
|
|
173
|
+
interface F2Client {
|
|
174
|
+
supplier<RESPONSE>(route: string, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Supplier<RESPONSE>;
|
|
175
|
+
function<QUERY, RESPONSE>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Function<QUERY, RESPONSE>;
|
|
176
|
+
consumer<QUERY>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Consumer<QUERY>;
|
|
177
|
+
readonly type: f2.client.F2ClientType;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
152
180
|
export declare namespace f2.client.ktor.http.plugin.model {
|
|
153
181
|
abstract class AuthRealm {
|
|
154
182
|
protected constructor(serverUrl: string, realmId: string, clientId: string, redirectUrl?: string);
|
|
@@ -186,9 +214,25 @@ export declare namespace f2.client.ktor.http.plugin.model {
|
|
|
186
214
|
}
|
|
187
215
|
export declare namespace f2.client.ktor.http {
|
|
188
216
|
class HttpClientBuilder {
|
|
189
|
-
constructor(
|
|
190
|
-
build(urlBase: string): f2.client.
|
|
191
|
-
|
|
217
|
+
constructor(config?: Nullable<(p0: io.ktor.client.HttpClientConfig<io.ktor.client.engine.HttpClientEngineConfig>) => void>);
|
|
218
|
+
build(urlBase: string): f2.client.ktor.http.HttpF2Client;
|
|
219
|
+
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
export declare namespace f2.client.ktor.http {
|
|
223
|
+
function httpClientBuilderDefault(): f2.client.ktor.http.HttpClientBuilder;
|
|
224
|
+
function httpClientBuilderGenerics(config?: Nullable<(p0: any/* io.ktor.client.HttpClientConfig<UnknownType *> */) => void>): f2.client.ktor.http.HttpClientBuilder;
|
|
225
|
+
}
|
|
226
|
+
export declare namespace f2.client.ktor.http {
|
|
227
|
+
class HttpF2Client implements f2.client.F2Client {
|
|
228
|
+
constructor(httpClient: io.ktor.client.HttpClient, urlBase: string, json?: kotlinx.serialization.json.Json);
|
|
229
|
+
get httpClient(): io.ktor.client.HttpClient;
|
|
230
|
+
get urlBase(): string;
|
|
231
|
+
get json(): kotlinx.serialization.json.Json;
|
|
232
|
+
get type(): f2.client.F2ClientType;
|
|
233
|
+
supplier<RESPONSE>(route: string, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Supplier<RESPONSE>;
|
|
234
|
+
function<MSG, RESPONSE>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo, responseTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Function<MSG, RESPONSE>;
|
|
235
|
+
consumer<MSG>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Consumer<MSG>;
|
|
192
236
|
}
|
|
193
237
|
}
|
|
194
238
|
export declare namespace f2.client.ktor.rsocket {
|
|
@@ -200,6 +244,20 @@ export declare namespace f2.client.ktor.rsocket {
|
|
|
200
244
|
consumer<QUERY>(route: string, queryTypeInfo: io.ktor.util.reflect.TypeInfo): f2.dsl.fnc.F2Consumer<QUERY>;
|
|
201
245
|
}
|
|
202
246
|
}
|
|
247
|
+
export declare namespace f2.client.ktor.rsocket.builder {
|
|
248
|
+
class RSocketF2ClientBuilder {
|
|
249
|
+
constructor(config?: Nullable<(p0: io.ktor.client.HttpClientConfig<io.ktor.client.engine.HttpClientEngineConfig>) => void>);
|
|
250
|
+
buildPromise(url: string, secure: boolean): Promise<f2.client.ktor.rsocket.RSocketF2Client>;
|
|
251
|
+
}
|
|
252
|
+
namespace RSocketF2ClientBuilder {
|
|
253
|
+
class $buildCOROUTINE$5 /* extends kotlin.coroutines.CoroutineImpl */ {
|
|
254
|
+
constructor(_this_: f2.client.ktor.rsocket.builder.RSocketF2ClientBuilder, url: string, secure: boolean, resultContinuation: kotlin.coroutines.Continuation<f2.client.ktor.rsocket.RSocketF2Client>);
|
|
255
|
+
}
|
|
256
|
+
class $rsocketClientCOROUTINE$6 /* extends kotlin.coroutines.CoroutineImpl */ {
|
|
257
|
+
constructor(_this_: f2.client.ktor.rsocket.builder.RSocketF2ClientBuilder, baseUrl: string, bearerJwt?: string, resultContinuation: kotlin.coroutines.Continuation<f2.client.ktor.rsocket.RSocketClient>);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
203
261
|
export declare namespace f2.client.ktor {
|
|
204
262
|
abstract class Protocol {
|
|
205
263
|
protected constructor();
|
|
@@ -247,6 +305,45 @@ export declare namespace io.komune.im.f2.privilege.domain {
|
|
|
247
305
|
canDefine(authedUser: io.komune.im.commons.auth.AuthedUserDTO): boolean;
|
|
248
306
|
};
|
|
249
307
|
}
|
|
308
|
+
export declare namespace io.komune.im.f2.privilege.domain.feature.command {
|
|
309
|
+
interface FeatureDefineCommandDTO {
|
|
310
|
+
readonly identifier: string;
|
|
311
|
+
readonly description: string;
|
|
312
|
+
|
|
313
|
+
}
|
|
314
|
+
interface FeatureDefinedEventDTO extends f2.dsl.cqrs.Event {
|
|
315
|
+
readonly identifier: string;
|
|
316
|
+
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
export declare namespace io.komune.im.f2.privilege.domain.feature.model {
|
|
320
|
+
interface FeatureDTO extends io.komune.im.f2.privilege.domain.model.PrivilegeDTO {
|
|
321
|
+
readonly id: string;
|
|
322
|
+
readonly type: string;
|
|
323
|
+
readonly identifier: string;
|
|
324
|
+
readonly description: string;
|
|
325
|
+
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
export declare namespace io.komune.im.f2.privilege.domain.feature.query {
|
|
329
|
+
interface FeatureGetQueryDTO {
|
|
330
|
+
readonly identifier: string;
|
|
331
|
+
|
|
332
|
+
}
|
|
333
|
+
interface FeatureGetResultDTO {
|
|
334
|
+
readonly item?: io.komune.im.f2.privilege.domain.feature.model.FeatureDTO;
|
|
335
|
+
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
export declare namespace io.komune.im.f2.privilege.domain.feature.query {
|
|
339
|
+
interface FeatureListQueryDTO {
|
|
340
|
+
|
|
341
|
+
}
|
|
342
|
+
interface FeatureListResultDTO {
|
|
343
|
+
readonly items: io.komune.im.f2.privilege.domain.feature.model.FeatureDTO[];
|
|
344
|
+
|
|
345
|
+
}
|
|
346
|
+
}
|
|
250
347
|
export declare namespace io.komune.im.f2.privilege.domain.model {
|
|
251
348
|
interface PrivilegeDTO {
|
|
252
349
|
readonly id: string;
|
|
@@ -260,6 +357,7 @@ export declare namespace io.komune.im.f2.privilege.domain.permission.command {
|
|
|
260
357
|
interface PermissionDefineCommandDTO {
|
|
261
358
|
readonly identifier: string;
|
|
262
359
|
readonly description: string;
|
|
360
|
+
readonly features?: string[][];
|
|
263
361
|
|
|
264
362
|
}
|
|
265
363
|
interface PermissionDefinedEventDTO extends f2.dsl.cqrs.Event {
|
|
@@ -273,6 +371,7 @@ export declare namespace io.komune.im.f2.privilege.domain.permission.model {
|
|
|
273
371
|
readonly type: string;
|
|
274
372
|
readonly identifier: string;
|
|
275
373
|
readonly description: string;
|
|
374
|
+
readonly features?: string[][];
|
|
276
375
|
|
|
277
376
|
}
|
|
278
377
|
}
|