@komune-io/im-organization-domain 0.24.0-alpha.f3d42d4 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{connect-im-im-f2-organization-im-organization-domain.d.mts → im-0.26.0-im-f2-organization-im-organization-domain.d.mts} +58 -22
- package/{connect-im-im-f2-organization-im-organization-domain.mjs → im-0.26.0-im-f2-organization-im-organization-domain.mjs} +2457 -2349
- package/im-0.26.0-im-f2-organization-im-organization-domain.mjs.map +1 -0
- package/package.json +2 -2
- package/connect-im-im-f2-organization-im-organization-domain.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
2
|
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
-
export declare interface KtList<E> /* extends Collection<E> */ {
|
|
3
|
+
export declare interface KtList<out E> /* extends Collection<E> */ {
|
|
4
4
|
asJsReadonlyArrayView(): ReadonlyArray<E>;
|
|
5
5
|
readonly __doNotUseOrImplementIt: {
|
|
6
6
|
readonly "kotlin.collections.KtList": unique symbol;
|
|
@@ -9,7 +9,7 @@ export declare interface KtList<E> /* extends Collection<E> */ {
|
|
|
9
9
|
export declare namespace KtList {
|
|
10
10
|
function fromJsArray<E>(array: ReadonlyArray<E>): KtList<E>;
|
|
11
11
|
}
|
|
12
|
-
export declare interface KtMap<K, V> {
|
|
12
|
+
export declare interface KtMap<K, out V> {
|
|
13
13
|
asJsReadonlyMapView(): ReadonlyMap<K, V>;
|
|
14
14
|
readonly __doNotUseOrImplementIt: {
|
|
15
15
|
readonly "kotlin.collections.KtMap": unique symbol;
|
|
@@ -43,7 +43,9 @@ export declare interface Query extends Message {
|
|
|
43
43
|
readonly "f2.dsl.cqrs.Query": unique symbol;
|
|
44
44
|
} & Message["__doNotUseOrImplementIt"];
|
|
45
45
|
}
|
|
46
|
-
export declare interface EnvelopeDTO<T> extends
|
|
46
|
+
export declare interface EnvelopeDTO<T> extends WithEnvelopeId, WithEnvelopeData<T>, Message {
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly data: T;
|
|
47
49
|
readonly type: string;
|
|
48
50
|
readonly datacontenttype: Nullable<string>;
|
|
49
51
|
readonly specversion: Nullable<string>;
|
|
@@ -51,16 +53,18 @@ export declare interface EnvelopeDTO<T> extends Message/*, WithEnvelopeId, WithE
|
|
|
51
53
|
readonly time: Nullable<string>;
|
|
52
54
|
readonly __doNotUseOrImplementIt: {
|
|
53
55
|
readonly "f2.dsl.cqrs.envelope.EnvelopeDTO": unique symbol;
|
|
54
|
-
} & Message["__doNotUseOrImplementIt"];
|
|
56
|
+
} & Message["__doNotUseOrImplementIt"] & WithEnvelopeData<any>["__doNotUseOrImplementIt"] & WithEnvelopeId["__doNotUseOrImplementIt"];
|
|
55
57
|
}
|
|
56
58
|
export declare class Envelope<T> implements EnvelopeDTO<T> {
|
|
57
59
|
constructor(id: string, data: T, type: string, datacontenttype?: Nullable<string>, specversion?: Nullable<string>, source?: Nullable<string>, time?: Nullable<string>);
|
|
60
|
+
get id(): string;
|
|
61
|
+
get data(): T;
|
|
58
62
|
get type(): string;
|
|
59
63
|
get datacontenttype(): Nullable<string>;
|
|
60
64
|
get specversion(): Nullable<string>;
|
|
61
65
|
get source(): Nullable<string>;
|
|
62
66
|
get time(): Nullable<string>;
|
|
63
|
-
readonly __doNotUseOrImplementIt: EnvelopeDTO<
|
|
67
|
+
readonly __doNotUseOrImplementIt: EnvelopeDTO<any>["__doNotUseOrImplementIt"];
|
|
64
68
|
}
|
|
65
69
|
export declare namespace Envelope {
|
|
66
70
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -80,6 +84,18 @@ export declare namespace Envelope {
|
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
}
|
|
87
|
+
export declare interface WithEnvelopeData<T> {
|
|
88
|
+
readonly data: T;
|
|
89
|
+
readonly __doNotUseOrImplementIt: {
|
|
90
|
+
readonly "f2.dsl.cqrs.envelope.WithEnvelopeData": unique symbol;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export declare interface WithEnvelopeId {
|
|
94
|
+
readonly id: string;
|
|
95
|
+
readonly __doNotUseOrImplementIt: {
|
|
96
|
+
readonly "f2.dsl.cqrs.envelope.WithEnvelopeId": unique symbol;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
83
99
|
export declare interface F2ErrorDTO extends Problem {
|
|
84
100
|
readonly id: Nullable<string>;
|
|
85
101
|
readonly timestamp: string;
|
|
@@ -130,7 +146,7 @@ export declare namespace F2Exception {
|
|
|
130
146
|
}
|
|
131
147
|
export declare interface Match<T> {
|
|
132
148
|
readonly negative: boolean;
|
|
133
|
-
map<R>(transform: (
|
|
149
|
+
map<R>(transform: (value: T) => R): Match<R>;
|
|
134
150
|
not(): Match<T>;
|
|
135
151
|
and(match: Match<T>): Match<T>;
|
|
136
152
|
or(match: Match<T>): Match<T>;
|
|
@@ -146,18 +162,18 @@ export declare interface SortDTO {
|
|
|
146
162
|
readonly "f2.dsl.cqrs.filter.SortDTO": unique symbol;
|
|
147
163
|
};
|
|
148
164
|
}
|
|
149
|
-
export declare interface PageDTO<OBJECT> {
|
|
165
|
+
export declare interface PageDTO<out OBJECT> {
|
|
150
166
|
readonly total: number;
|
|
151
167
|
readonly items: KtList<OBJECT>;
|
|
152
168
|
readonly __doNotUseOrImplementIt: {
|
|
153
169
|
readonly "f2.dsl.cqrs.page.PageDTO": unique symbol;
|
|
154
170
|
};
|
|
155
171
|
}
|
|
156
|
-
export declare class Page<OBJECT> implements PageDTO<OBJECT> {
|
|
172
|
+
export declare class Page<out OBJECT> implements PageDTO<OBJECT> {
|
|
157
173
|
constructor(total: number, items: KtList<OBJECT>);
|
|
158
174
|
get total(): number;
|
|
159
175
|
get items(): KtList<OBJECT>;
|
|
160
|
-
readonly __doNotUseOrImplementIt: PageDTO<
|
|
176
|
+
readonly __doNotUseOrImplementIt: PageDTO<any>["__doNotUseOrImplementIt"];
|
|
161
177
|
}
|
|
162
178
|
export declare namespace Page {
|
|
163
179
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -171,13 +187,13 @@ export declare interface PageQueryDTO extends Query {
|
|
|
171
187
|
readonly "f2.dsl.cqrs.page.PageQueryDTO": unique symbol;
|
|
172
188
|
} & Query["__doNotUseOrImplementIt"];
|
|
173
189
|
}
|
|
174
|
-
export declare interface PageQueryResultDTO<OBJECT> extends Event, PageDTO<OBJECT> {
|
|
190
|
+
export declare interface PageQueryResultDTO<out OBJECT> extends Event, PageDTO<OBJECT> {
|
|
175
191
|
readonly total: number;
|
|
176
192
|
readonly items: KtList<OBJECT>;
|
|
177
193
|
readonly pagination: Nullable<OffsetPaginationDTO>;
|
|
178
194
|
readonly __doNotUseOrImplementIt: {
|
|
179
195
|
readonly "f2.dsl.cqrs.page.PageQueryResultDTO": unique symbol;
|
|
180
|
-
} &
|
|
196
|
+
} & PageDTO<any>["__doNotUseOrImplementIt"] & Event["__doNotUseOrImplementIt"];
|
|
181
197
|
}
|
|
182
198
|
export declare class PageQuery implements PageQueryDTO {
|
|
183
199
|
constructor(pagination: Nullable<OffsetPaginationDTO>);
|
|
@@ -190,12 +206,12 @@ export declare namespace PageQuery {
|
|
|
190
206
|
const constructor: abstract new () => PageQuery;
|
|
191
207
|
}
|
|
192
208
|
}
|
|
193
|
-
export declare class PageQueryResult<OBJECT> implements PageQueryResultDTO<OBJECT> {
|
|
209
|
+
export declare class PageQueryResult<out OBJECT> implements PageQueryResultDTO<OBJECT> {
|
|
194
210
|
constructor(pagination: Nullable<OffsetPagination>, total: number, items: KtList<OBJECT>);
|
|
195
211
|
get pagination(): Nullable<OffsetPagination>;
|
|
196
212
|
get total(): number;
|
|
197
213
|
get items(): KtList<OBJECT>;
|
|
198
|
-
readonly __doNotUseOrImplementIt: PageQueryResultDTO<
|
|
214
|
+
readonly __doNotUseOrImplementIt: PageQueryResultDTO<any>["__doNotUseOrImplementIt"];
|
|
199
215
|
}
|
|
200
216
|
export declare namespace PageQueryResult {
|
|
201
217
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -278,8 +294,8 @@ export declare abstract class ImPermission {
|
|
|
278
294
|
get name(): "IM_USER_READ";
|
|
279
295
|
get ordinal(): 1;
|
|
280
296
|
};
|
|
281
|
-
static get
|
|
282
|
-
get name(): "
|
|
297
|
+
static get IM_USER_ROLE_WRITE(): ImPermission & {
|
|
298
|
+
get name(): "IM_USER_ROLE_WRITE";
|
|
283
299
|
get ordinal(): 2;
|
|
284
300
|
};
|
|
285
301
|
static get IM_USER_WRITE(): ImPermission & {
|
|
@@ -330,11 +346,11 @@ export declare abstract class ImPermission {
|
|
|
330
346
|
get name(): "IM_ROLE_WRITE";
|
|
331
347
|
get ordinal(): 14;
|
|
332
348
|
};
|
|
333
|
-
|
|
349
|
+
static values(): [typeof ImPermission.IM_FORCE_MFA_OTP, typeof ImPermission.IM_USER_READ, typeof ImPermission.IM_USER_ROLE_WRITE, typeof ImPermission.IM_USER_WRITE, typeof ImPermission.IM_ORGANIZATION_READ, typeof ImPermission.IM_ORGANIZATION_WRITE, typeof ImPermission.IM_MY_ORGANIZATION_WRITE, typeof ImPermission.IM_ORGANIZATION_API_KEY_READ, typeof ImPermission.IM_ORGANIZATION_STATUS_WRITE, typeof ImPermission.IM_APIKEY_READ, typeof ImPermission.IM_APIKEY_WRITE, typeof ImPermission.IM_SPACE_READ, typeof ImPermission.IM_SPACE_WRITE, typeof ImPermission.IM_ROLE_READ, typeof ImPermission.IM_ROLE_WRITE];
|
|
350
|
+
static valueOf(value: string): ImPermission;
|
|
351
|
+
get name(): "IM_FORCE_MFA_OTP" | "IM_USER_READ" | "IM_USER_ROLE_WRITE" | "IM_USER_WRITE" | "IM_ORGANIZATION_READ" | "IM_ORGANIZATION_WRITE" | "IM_MY_ORGANIZATION_WRITE" | "IM_ORGANIZATION_API_KEY_READ" | "IM_ORGANIZATION_STATUS_WRITE" | "IM_APIKEY_READ" | "IM_APIKEY_WRITE" | "IM_SPACE_READ" | "IM_SPACE_WRITE" | "IM_ROLE_READ" | "IM_ROLE_WRITE";
|
|
334
352
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14;
|
|
335
353
|
get identifier(): string;
|
|
336
|
-
static values(): Array<ImPermission>;
|
|
337
|
-
static valueOf(value: string): ImPermission;
|
|
338
354
|
}
|
|
339
355
|
export declare namespace ImPermission {
|
|
340
356
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -562,7 +578,7 @@ export declare interface F2Consumer<T> {
|
|
|
562
578
|
readonly "f2.dsl.fnc.F2Consumer": unique symbol;
|
|
563
579
|
};
|
|
564
580
|
}
|
|
565
|
-
export declare interface F2Function<T, R> {
|
|
581
|
+
export declare interface F2Function<in T, out R> {
|
|
566
582
|
readonly __doNotUseOrImplementIt: {
|
|
567
583
|
readonly "f2.dsl.fnc.F2Function": unique symbol;
|
|
568
584
|
};
|
|
@@ -593,7 +609,7 @@ export declare namespace Batch {
|
|
|
593
609
|
}
|
|
594
610
|
}
|
|
595
611
|
export declare abstract class AuthRealm {
|
|
596
|
-
|
|
612
|
+
private constructor();
|
|
597
613
|
get serverUrl(): string;
|
|
598
614
|
get realmId(): string;
|
|
599
615
|
get clientId(): string;
|
|
@@ -643,6 +659,26 @@ export declare namespace AuthRealmClientSecret {
|
|
|
643
659
|
const constructor: abstract new () => AuthRealmClientSecret;
|
|
644
660
|
}
|
|
645
661
|
}
|
|
662
|
+
export declare class TokenInfo {
|
|
663
|
+
constructor(accessToken: string, expiresIn: number, refreshExpiresIn: Nullable<number> | undefined, tokenType: string, scope: Nullable<string>, idToken?: Nullable<string>, refreshToken?: Nullable<string>);
|
|
664
|
+
get accessToken(): string;
|
|
665
|
+
get expiresIn(): number;
|
|
666
|
+
get refreshExpiresIn(): Nullable<number>;
|
|
667
|
+
get tokenType(): string;
|
|
668
|
+
get scope(): Nullable<string>;
|
|
669
|
+
get idToken(): Nullable<string>;
|
|
670
|
+
get refreshToken(): Nullable<string>;
|
|
671
|
+
copy(accessToken?: string, expiresIn?: number, refreshExpiresIn?: Nullable<number>, tokenType?: string, scope?: Nullable<string>, idToken?: Nullable<string>, refreshToken?: Nullable<string>): TokenInfo;
|
|
672
|
+
toString(): string;
|
|
673
|
+
hashCode(): number;
|
|
674
|
+
equals(other: Nullable<any>): boolean;
|
|
675
|
+
}
|
|
676
|
+
export declare namespace TokenInfo {
|
|
677
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
678
|
+
namespace $metadata$ {
|
|
679
|
+
const constructor: abstract new () => TokenInfo;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
646
682
|
export declare interface OrganizationCreateCommandDTO extends Command {
|
|
647
683
|
readonly siret: Nullable<string>;
|
|
648
684
|
readonly name: string;
|
|
@@ -672,7 +708,7 @@ export declare interface OrganizationDeleteCommandDTO extends OrganizationDelete
|
|
|
672
708
|
export declare interface OrganizationDeletedEventDTO extends Event, OrganizationDeletedEventDTO {
|
|
673
709
|
readonly __doNotUseOrImplementIt: {
|
|
674
710
|
readonly "io.komune.im.f2.organization.domain.command.OrganizationDeletedEventDTO": unique symbol;
|
|
675
|
-
} &
|
|
711
|
+
} & OrganizationDeletedEventDTO["__doNotUseOrImplementIt"] & Event["__doNotUseOrImplementIt"];
|
|
676
712
|
}
|
|
677
713
|
export declare interface OrganizationDisableCommandDTO extends Command {
|
|
678
714
|
readonly id: string;
|
|
@@ -833,7 +869,7 @@ export declare interface OrganizationPageResultDTO extends PageDTO<OrganizationD
|
|
|
833
869
|
readonly total: number;
|
|
834
870
|
readonly __doNotUseOrImplementIt: {
|
|
835
871
|
readonly "io.komune.im.f2.organization.domain.query.OrganizationPageResultDTO": unique symbol;
|
|
836
|
-
} & PageDTO<
|
|
872
|
+
} & PageDTO<any>["__doNotUseOrImplementIt"];
|
|
837
873
|
}
|
|
838
874
|
export declare interface OrganizationRefGetQueryDTO extends Query {
|
|
839
875
|
readonly id: string;
|