@authup/client-web-kit 1.0.0-beta.16 → 1.0.1-beta.17

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.
@@ -22,7 +22,7 @@ declare const AEntityDelete: import("vue").DefineComponent<{
22
22
  required: true;
23
23
  };
24
24
  entityType: {
25
- type: PropType<"scope" | "realm" | "user" | "client" | "clientScope" | "identityProvider" | "identityProviderAccount" | "identityProviderAttribute" | "identityProviderRole" | "permission" | "robot" | "robotPermission" | "robotRole" | "role" | "roleAttribute" | "rolePermission" | "userAttribute" | "userPermission" | "userRole">;
25
+ type: PropType<"scope" | "realm" | "user" | "client" | "clientScope" | "identityProvider" | "identityProviderAccount" | "identityProviderAttribute" | "identityProviderRoleMapping" | "permission" | "robot" | "robotPermission" | "robotRole" | "role" | "roleAttribute" | "rolePermission" | "userAttribute" | "userPermission" | "userRole">;
26
26
  required: true;
27
27
  };
28
28
  hint: {
@@ -49,7 +49,7 @@ declare const AEntityDelete: import("vue").DefineComponent<{
49
49
  required: true;
50
50
  };
51
51
  entityType: {
52
- type: PropType<"scope" | "realm" | "user" | "client" | "clientScope" | "identityProvider" | "identityProviderAccount" | "identityProviderAttribute" | "identityProviderRole" | "permission" | "robot" | "robotPermission" | "robotRole" | "role" | "roleAttribute" | "rolePermission" | "userAttribute" | "userPermission" | "userRole">;
52
+ type: PropType<"scope" | "realm" | "user" | "client" | "clientScope" | "identityProvider" | "identityProviderAccount" | "identityProviderAttribute" | "identityProviderRoleMapping" | "permission" | "robot" | "robotPermission" | "robotRole" | "role" | "roleAttribute" | "rolePermission" | "userAttribute" | "userPermission" | "userRole">;
53
53
  required: true;
54
54
  };
55
55
  hint: {
@@ -1 +1 @@
1
- {"version":3,"file":"AEntityDelete.d.ts","sourceRoot":"","sources":["../../src/components/AEntityDelete.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAER,QAAQ,EAGX,MAAM,KAAK,CAAC;AAab,aAAK,WAAW;IACZ,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,cAAc,iBAAiB;CAClC;AAED,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsHjB,CAAC;AAEH,OAAO,EACH,aAAa,GAChB,CAAC"}
1
+ {"version":3,"file":"AEntityDelete.d.ts","sourceRoot":"","sources":["../../src/components/AEntityDelete.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAER,QAAQ,EAGX,MAAM,KAAK,CAAC;AAab,aAAK,WAAW;IACZ,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,cAAc,iBAAiB;CAClC;AAED,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqHjB,CAAC;AAEH,OAAO,EACH,aAAa,GAChB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { PropType } from 'vue';
2
- import type { IdentityProviderRole, Role } from '@authup/core-kit';
2
+ import type { IdentityProviderRoleMapping, Role } from '@authup/core-kit';
3
3
  export declare const AIdentityProviderRoleAssignment: import("vue").DefineComponent<{
4
4
  role: {
5
5
  type: PropType<Role>;
@@ -11,7 +11,7 @@ export declare const AIdentityProviderRoleAssignment: import("vue").DefineCompon
11
11
  };
12
12
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
13
  [key: string]: any;
14
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("../../core").EntityManagerEventsType<IdentityProviderRole>, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("../../core").EntityManagerEventsType<IdentityProviderRoleMapping>, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  role: {
16
16
  type: PropType<Role>;
17
17
  required: true;
@@ -22,10 +22,10 @@ export declare const AIdentityProviderRoleAssignment: import("vue").DefineCompon
22
22
  };
23
23
  }>> & {
24
24
  onFailed?: (item: Error) => any;
25
- onCreated?: (item: IdentityProviderRole) => any;
26
- onDeleted?: (item: IdentityProviderRole) => any;
27
- onUpdated?: (item: IdentityProviderRole) => any;
28
- onResolved?: (_item?: IdentityProviderRole) => any;
25
+ onCreated?: (item: IdentityProviderRoleMapping) => any;
26
+ onDeleted?: (item: IdentityProviderRoleMapping) => any;
27
+ onUpdated?: (item: IdentityProviderRoleMapping) => any;
28
+ onResolved?: (_item?: IdentityProviderRoleMapping) => any;
29
29
  }, {}, {}>;
30
30
  export default AIdentityProviderRoleAssignment;
31
31
  //# sourceMappingURL=AIdentityProviderRoleAssignment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AIdentityProviderRoleAssignment.d.ts","sourceRoot":"","sources":["../../../src/components/identity-provider-role/AIdentityProviderRoleAssignment.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAsB,MAAM,KAAK,CAAC;AAIxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AASnE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;UA0L1C,CAAC;AAEH,eAAe,+BAA+B,CAAC"}
1
+ {"version":3,"file":"AIdentityProviderRoleAssignment.d.ts","sourceRoot":"","sources":["../../../src/components/identity-provider-role/AIdentityProviderRoleAssignment.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAsB,MAAM,KAAK,CAAC;AAIxD,OAAO,KAAK,EAAE,2BAA2B,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAa1E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;UA2N1C,CAAC;AAEH,eAAe,+BAA+B,CAAC"}
@@ -1,4 +1,6 @@
1
+ import type { Pinia } from 'pinia';
1
2
  export type HTTPClientInstallOptions = {
2
3
  baseURL?: string;
4
+ pinia?: Pinia;
3
5
  };
4
6
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/http-client/types.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,wBAAwB,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/http-client/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,MAAM,wBAAwB,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAA;CAChB,CAAC"}
@@ -1,5 +1,7 @@
1
+ import type { Pinia } from 'pinia';
1
2
  import type { App } from 'vue';
2
3
  export type SocketManagerInstallOptions = {
4
+ pinia?: Pinia;
3
5
  baseURL: string;
4
6
  };
5
7
  export declare function installSocketManager(app: App, options: SocketManagerInstallOptions): void;
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/core/socket-manager/install.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAK/B,MAAM,MAAM,2BAA2B,GAAG;IACtC,OAAO,EAAE,MAAM,CAAA;CAClB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAG,2BAA2B,QAwBnF"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/core/socket-manager/install.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAK/B,MAAM,MAAM,2BAA2B,GAAG;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,CAAA;CAClB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAG,2BAA2B,QAyBnF"}
@@ -13,69 +13,7 @@ export declare function createStore(context?: StoreCreateContext): {
13
13
  handleTokenGrantResponse: (response: OAuth2TokenGrantResponse) => void;
14
14
  accessToken: import("vue").Ref<string>;
15
15
  setAccessToken: (input?: string) => void;
16
- accessTokenExpireDate: import("vue").Ref<{
17
- toString: () => string;
18
- toDateString: () => string;
19
- toTimeString: () => string;
20
- toLocaleString: {
21
- (): string;
22
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
23
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
24
- };
25
- toLocaleDateString: {
26
- (): string;
27
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
28
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
29
- };
30
- toLocaleTimeString: {
31
- (): string;
32
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
33
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
34
- };
35
- valueOf: () => number;
36
- getTime: () => number;
37
- getFullYear: () => number;
38
- getUTCFullYear: () => number;
39
- getMonth: () => number;
40
- getUTCMonth: () => number;
41
- getDate: () => number;
42
- getUTCDate: () => number;
43
- getDay: () => number;
44
- getUTCDay: () => number;
45
- getHours: () => number;
46
- getUTCHours: () => number;
47
- getMinutes: () => number;
48
- getUTCMinutes: () => number;
49
- getSeconds: () => number;
50
- getUTCSeconds: () => number;
51
- getMilliseconds: () => number;
52
- getUTCMilliseconds: () => number;
53
- getTimezoneOffset: () => number;
54
- setTime: (time: number) => number;
55
- setMilliseconds: (ms: number) => number;
56
- setUTCMilliseconds: (ms: number) => number;
57
- setSeconds: (sec: number, ms?: number) => number;
58
- setUTCSeconds: (sec: number, ms?: number) => number;
59
- setMinutes: (min: number, sec?: number, ms?: number) => number;
60
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
61
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
62
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
63
- setDate: (date: number) => number;
64
- setUTCDate: (date: number) => number;
65
- setMonth: (month: number, date?: number) => number;
66
- setUTCMonth: (month: number, date?: number) => number;
67
- setFullYear: (year: number, month?: number, date?: number) => number;
68
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
69
- toUTCString: () => string;
70
- toISOString: () => string;
71
- toJSON: (key?: any) => string;
72
- [Symbol.toPrimitive]: {
73
- (hint: "default"): string;
74
- (hint: "string"): string;
75
- (hint: "number"): number;
76
- (hint: string): string | number;
77
- };
78
- }>;
16
+ accessTokenExpireDate: import("vue").Ref<Date>;
79
17
  setAccessTokenExpireDate: (input?: Date | number | string) => void;
80
18
  refreshToken: import("vue").Ref<string>;
81
19
  setRefreshToken: (input?: string) => void;
@@ -99,18 +37,12 @@ export declare function createStore(context?: StoreCreateContext): {
99
37
  active: boolean;
100
38
  permissions?: {
101
39
  name: string;
102
- inverse?: boolean;
103
- condition?: {
40
+ realmId?: string;
41
+ decisionStrategy?: "affirmative" | "unanimous" | "consensus";
42
+ policy?: {
104
43
  [x: string]: any;
105
- $and?: any[];
106
- $or?: any[];
107
- $nor?: any[];
108
- $where?: (this: Record<string, any>) => boolean;
44
+ type: string;
109
45
  };
110
- fields?: string[];
111
- target?: string;
112
- power?: number;
113
- realmId?: string;
114
46
  }[];
115
47
  }>;
116
48
  setTokenInfo: (entity?: OAuth2TokenIntrospectionResponse) => void;
@@ -148,131 +80,33 @@ export declare function createStore(context?: StoreCreateContext): {
148
80
  status_message: string;
149
81
  active: boolean;
150
82
  activate_hash: string;
151
- created_at: {
152
- toString: () => string;
153
- toDateString: () => string;
154
- toTimeString: () => string;
155
- toLocaleString: {
156
- (): string;
157
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
158
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
159
- };
160
- toLocaleDateString: {
161
- (): string;
162
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
163
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
164
- };
165
- toLocaleTimeString: {
166
- (): string;
167
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
168
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
169
- };
170
- valueOf: () => number;
171
- getTime: () => number;
172
- getFullYear: () => number;
173
- getUTCFullYear: () => number;
174
- getMonth: () => number;
175
- getUTCMonth: () => number;
176
- getDate: () => number;
177
- getUTCDate: () => number;
178
- getDay: () => number;
179
- getUTCDay: () => number;
180
- getHours: () => number;
181
- getUTCHours: () => number;
182
- getMinutes: () => number;
183
- getUTCMinutes: () => number;
184
- getSeconds: () => number;
185
- getUTCSeconds: () => number;
186
- getMilliseconds: () => number;
187
- getUTCMilliseconds: () => number;
188
- getTimezoneOffset: () => number;
189
- setTime: (time: number) => number;
190
- setMilliseconds: (ms: number) => number;
191
- setUTCMilliseconds: (ms: number) => number;
192
- setSeconds: (sec: number, ms?: number) => number;
193
- setUTCSeconds: (sec: number, ms?: number) => number;
194
- setMinutes: (min: number, sec?: number, ms?: number) => number;
195
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
196
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
197
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
198
- setDate: (date: number) => number;
199
- setUTCDate: (date: number) => number;
200
- setMonth: (month: number, date?: number) => number;
201
- setUTCMonth: (month: number, date?: number) => number;
202
- setFullYear: (year: number, month?: number, date?: number) => number;
203
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
204
- toUTCString: () => string;
205
- toISOString: () => string;
206
- toJSON: (key?: any) => string;
207
- [Symbol.toPrimitive]: {
208
- (hint: "default"): string;
209
- (hint: "string"): string;
210
- (hint: "number"): number;
211
- (hint: string): string | number;
212
- };
213
- };
214
- updated_at: {
215
- toString: () => string;
216
- toDateString: () => string;
217
- toTimeString: () => string;
218
- toLocaleString: {
219
- (): string;
220
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
221
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
222
- };
223
- toLocaleDateString: {
224
- (): string;
225
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
226
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
227
- };
228
- toLocaleTimeString: {
229
- (): string;
230
- (locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
231
- (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
232
- };
233
- valueOf: () => number;
234
- getTime: () => number;
235
- getFullYear: () => number;
236
- getUTCFullYear: () => number;
237
- getMonth: () => number;
238
- getUTCMonth: () => number;
239
- getDate: () => number;
240
- getUTCDate: () => number;
241
- getDay: () => number;
242
- getUTCDay: () => number;
243
- getHours: () => number;
244
- getUTCHours: () => number;
245
- getMinutes: () => number;
246
- getUTCMinutes: () => number;
247
- getSeconds: () => number;
248
- getUTCSeconds: () => number;
249
- getMilliseconds: () => number;
250
- getUTCMilliseconds: () => number;
251
- getTimezoneOffset: () => number;
252
- setTime: (time: number) => number;
253
- setMilliseconds: (ms: number) => number;
254
- setUTCMilliseconds: (ms: number) => number;
255
- setSeconds: (sec: number, ms?: number) => number;
256
- setUTCSeconds: (sec: number, ms?: number) => number;
257
- setMinutes: (min: number, sec?: number, ms?: number) => number;
258
- setUTCMinutes: (min: number, sec?: number, ms?: number) => number;
259
- setHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
260
- setUTCHours: (hours: number, min?: number, sec?: number, ms?: number) => number;
261
- setDate: (date: number) => number;
262
- setUTCDate: (date: number) => number;
263
- setMonth: (month: number, date?: number) => number;
264
- setUTCMonth: (month: number, date?: number) => number;
265
- setFullYear: (year: number, month?: number, date?: number) => number;
266
- setUTCFullYear: (year: number, month?: number, date?: number) => number;
267
- toUTCString: () => string;
268
- toISOString: () => string;
269
- toJSON: (key?: any) => string;
270
- [Symbol.toPrimitive]: {
271
- (hint: "default"): string;
272
- (hint: "string"): string;
273
- (hint: "number"): number;
274
- (hint: string): string | number;
83
+ created_at: Date;
84
+ updated_at: Date;
85
+ client_id: string;
86
+ client: {
87
+ id: string;
88
+ name: string;
89
+ description: string;
90
+ secret: string;
91
+ redirect_uri: string;
92
+ grant_types: string;
93
+ scope: string;
94
+ base_url: string;
95
+ root_url: string;
96
+ is_confidential: boolean;
97
+ created_at: string | Date;
98
+ updated_at: string | Date;
99
+ realm_id: string;
100
+ realm: {
101
+ id: string;
102
+ name: string;
103
+ description: string;
104
+ built_in: boolean;
105
+ created_at: string;
106
+ updated_at: string;
275
107
  };
108
+ user_id: string;
109
+ user: any;
276
110
  };
277
111
  realm_id: string;
278
112
  realm: {
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/core/store/create.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACR,wBAAwB,EACxB,gCAAgC,EACnC,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACR,KAAK,EACL,IAAI,EACP,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EACH,SAAS,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE1F,wBAAgB,WAAW,CAAC,OAAO,GAAE,kBAAuB;;4BAMzB,OAAO;;iBA2LZ,iBAAiB;;;oBAzCf,mBAAmB;yCAlHH,wBAAwB;;6BAzBpC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAOI,IAAI,GAAG,MAAM,GAAG,MAAM;;8BAY/B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAkFR,gCAAgC;;;;;;;;wBAhBpC,KAAK,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC;;;;;;;kCAQhB,KAAK,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA1BrC,IAAI;EAgLjC"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/core/store/create.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACR,wBAAwB,EACxB,gCAAgC,EACnC,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACR,KAAK,EACL,IAAI,EACP,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EACH,SAAS,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE1F,wBAAgB,WAAW,CAAC,OAAO,GAAE,kBAAuB;;4BAMzB,OAAO;;iBA2LZ,iBAAiB;;;oBAzCf,mBAAmB;yCAlHH,wBAAwB;;6BAzBpC,MAAM;;uCAOI,IAAI,GAAG,MAAM,GAAG,MAAM;;8BAY/B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAkFR,gCAAgC;;;;;;;;wBAhBpC,KAAK,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC;;;;;;;kCAQhB,KAAK,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA1BrC,IAAI;EAgLjC"}
@@ -1,4 +1,4 @@
1
- import type { Store as BaseStore, StoreDefinition as BaseStoreDefinition, _ExtractActionsFromSetupStore, _ExtractGettersFromSetupStore, _ExtractStateFromSetupStore } from 'pinia';
1
+ import type { Store as BaseStore, StoreDefinition as BaseStoreDefinition, Pinia, _ExtractActionsFromSetupStore, _ExtractGettersFromSetupStore, _ExtractStateFromSetupStore } from 'pinia';
2
2
  import type { CookieGetFn, CookieSetFn, CookieUnsetFn } from '../../types';
3
3
  import type { createStore } from './create';
4
4
  type StoreData = ReturnType<typeof createStore>;
@@ -21,6 +21,7 @@ export type StoreInstallOptions = {
21
21
  cookieSet?: CookieSetFn;
22
22
  cookieUnset?: CookieUnsetFn;
23
23
  cookieGet?: CookieGetFn;
24
+ pinia?: Pinia;
24
25
  };
25
26
  export {};
26
27
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/store/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACR,KAAK,IAAI,SAAS,EAClB,eAAe,IAAI,mBAAmB,EACtC,6BAA6B,EAC7B,6BAA6B,EAAE,2BAA2B,EAC7D,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,KAAK,GAAG,SAAS,CAC7B,MAAM,EACN,2BAA2B,CAAC,SAAS,CAAC,EACtC,6BAA6B,CAAC,SAAS,CAAC,EACxC,6BAA6B,CAAC,SAAS,CAAC,CACvC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,mBAAmB,CACjD,MAAM,EACN,2BAA2B,CAAC,SAAS,CAAC,EACtC,6BAA6B,CAAC,SAAS,CAAC,EACxC,6BAA6B,CAAC,SAAS,CAAC,CACvC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/store/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACR,KAAK,IAAI,SAAS,EAClB,eAAe,IAAI,mBAAmB,EACtC,KAAK,EACL,6BAA6B,EAAE,6BAA6B,EAAE,2BAA2B,EAC5F,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,KAAK,GAAG,SAAS,CAC7B,MAAM,EACN,2BAA2B,CAAC,SAAS,CAAC,EACtC,6BAA6B,CAAC,SAAS,CAAC,EACxC,6BAA6B,CAAC,SAAS,CAAC,CACvC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,mBAAmB,CACjD,MAAM,EACN,2BAA2B,CAAC,SAAS,CAAC,EACtC,6BAA6B,CAAC,SAAS,CAAC,EACxC,6BAA6B,CAAC,SAAS,CAAC,CACvC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAA;CAChB,CAAC"}
@@ -23,6 +23,7 @@ export declare enum TranslatorTranslationDefaultKey {
23
23
  INACTIVE = "inactive",
24
24
  LOCKED = "locked",
25
25
  NOT_LOCKED = "notLocked",
26
+ VALUE_IS_REGEX = "valueIsRegex",
26
27
  CLIENT = "client",
27
28
  CLIENTS = "clients",
28
29
  CLIENT_SCOPES = "clientScopes",
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/translator/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,0BAA0B;IAClC,OAAO,YAAY;IAEnB,MAAM,iBAAiB;IAEvB,KAAK,UAAU;IACf,SAAS,cAAc;CAC1B;AAED,oBAAY,6BAA6B;IACrC,OAAO,WAAW;CACrB;AAED,oBAAY,8BAA8B;IACtC,SAAS,aAAa;IACtB,gBAAgB,oBAAoB;IACpC,iBAAiB,oBAAoB;IACrC,eAAe,mBAAmB;CACrC;AAED,oBAAY,+BAA+B;IACvC,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IAEjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IAErB,MAAM,WAAW;IACjB,UAAU,cAAc;IAExB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,aAAa,iBAAiB;IAC9B,YAAY,gBAAgB;IAC5B,KAAK,UAAU;IACf,WAAW,eAAe;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,kBAAkB,sBAAsB;IACxC,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,aAAa,iBAAiB;IAC9B,KAAK,UAAU;CAClB"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/translator/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,0BAA0B;IAClC,OAAO,YAAY;IAEnB,MAAM,iBAAiB;IAEvB,KAAK,UAAU;IACf,SAAS,cAAc;CAC1B;AAED,oBAAY,6BAA6B;IACrC,OAAO,WAAW;CACrB;AAED,oBAAY,8BAA8B;IACtC,SAAS,aAAa;IACtB,gBAAgB,oBAAoB;IACpC,iBAAiB,oBAAoB;IACrC,eAAe,mBAAmB;CACrC;AAED,oBAAY,+BAA+B;IACvC,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IAEjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IAErB,MAAM,WAAW;IACjB,UAAU,cAAc;IAExB,cAAc,iBAAiB;IAE/B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,aAAa,iBAAiB;IAC9B,YAAY,gBAAgB;IAC5B,KAAK,UAAU;IACf,WAAW,eAAe;IAC1B,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,kBAAkB,sBAAsB;IACxC,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,aAAa,iBAAiB;IAC9B,KAAK,UAAU;CAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../src/core/translator/de/default.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAG1C,eAAO,MAAM,kCAAkC,EAAE,WAgChD,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../src/core/translator/de/default.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAG1C,eAAO,MAAM,kCAAkC,EAAE,WAkChD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../src/core/translator/en/default.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAG1C,eAAO,MAAM,mCAAmC,EAAG,WAgClD,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../src/core/translator/en/default.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAG1C,eAAO,MAAM,mCAAmC,EAAG,WAkClD,CAAC"}
package/dist/index.cjs CHANGED
@@ -271,7 +271,6 @@ function tryOnScopeDispose(fn) {
271
271
  return false;
272
272
  }
273
273
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
274
- const noop = ()=>{};
275
274
 
276
275
  function useCookies(dependencies, { doNotParse = false, autoUpdateDependencies = false } = {}, cookies = new Cookie()) {
277
276
  const watchingDependencies = autoUpdateDependencies ? [
@@ -285,7 +284,9 @@ function useCookies(dependencies, { doNotParse = false, autoUpdateDependencies =
285
284
  const newCookies = cookies.getAll({
286
285
  doNotParse: true
287
286
  });
288
- if (shouldUpdate(watchingDependencies || null, newCookies, previousCookies)) touches.value++;
287
+ if (shouldUpdate(watchingDependencies || null, newCookies, previousCookies)) {
288
+ touches.value++;
289
+ }
289
290
  previousCookies = newCookies;
290
291
  };
291
292
  cookies.addChangeListener(onChange);
@@ -355,7 +356,7 @@ function installStore(app, options = {}) {
355
356
  const storeCreator = pinia.defineStore(STORE_ID, ()=>createStore({
356
357
  baseURL: options.baseURL
357
358
  }));
358
- const store = storeCreator();
359
+ const store = storeCreator(options.pinia);
359
360
  const cookies = useCookies();
360
361
  let cookieGet;
361
362
  if (options.cookieGet) {
@@ -486,7 +487,7 @@ function installHTTPClient(app, options = {}) {
486
487
  baseURL: options.baseURL
487
488
  });
488
489
  const storeCreator = injectStore(app);
489
- const store = storeCreator();
490
+ const store = storeCreator(options.pinia);
490
491
  const { refreshToken } = pinia.storeToRefs(store);
491
492
  const tokenHook = new coreHttpKit.ClientResponseErrorTokenHook(client, {
492
493
  baseURL: options.baseURL,
@@ -740,7 +741,8 @@ function injectSocketManager(app) {
740
741
  }
741
742
 
742
743
  function installSocketManager(app, options) {
743
- const store = useStore();
744
+ const storeCreator = injectStore(app);
745
+ const store = storeCreator(options.pinia);
744
746
  const { accessToken } = storeToRefs(store);
745
747
  const manager = new coreRealtimeKit.ClientManager({
746
748
  url: options.baseURL,
@@ -1534,6 +1536,7 @@ exports.TranslatorTranslationDefaultKey = void 0;
1534
1536
  TranslatorTranslationDefaultKey["INACTIVE"] = "inactive";
1535
1537
  TranslatorTranslationDefaultKey["LOCKED"] = "locked";
1536
1538
  TranslatorTranslationDefaultKey["NOT_LOCKED"] = "notLocked";
1539
+ TranslatorTranslationDefaultKey["VALUE_IS_REGEX"] = "valueIsRegex";
1537
1540
  TranslatorTranslationDefaultKey["CLIENT"] = "client";
1538
1541
  TranslatorTranslationDefaultKey["CLIENTS"] = "clients";
1539
1542
  TranslatorTranslationDefaultKey["CLIENT_SCOPES"] = "clientScopes";
@@ -1613,6 +1616,9 @@ class MemoryStore {
1613
1616
  }
1614
1617
  }
1615
1618
 
1619
+ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
1620
+ const noop = ()=>{};
1621
+
1616
1622
  function computedAsync(evaluationCallback, initialState, optionsOrRef) {
1617
1623
  let options;
1618
1624
  if (vue.isRef(optionsOrRef)) {
@@ -1781,6 +1787,7 @@ const TranslatorTranslationDefaultGerman = {
1781
1787
  [exports.TranslatorTranslationDefaultKey.INACTIVE]: 'inaktiv',
1782
1788
  [exports.TranslatorTranslationDefaultKey.LOCKED]: 'gesperrt',
1783
1789
  [exports.TranslatorTranslationDefaultKey.NOT_LOCKED]: 'nicht gesperrt',
1790
+ [exports.TranslatorTranslationDefaultKey.VALUE_IS_REGEX]: 'Wert ist regex pattern?',
1784
1791
  [exports.TranslatorTranslationDefaultKey.CLIENT]: 'Client',
1785
1792
  [exports.TranslatorTranslationDefaultKey.CLIENTS]: 'Clients',
1786
1793
  [exports.TranslatorTranslationDefaultKey.CLIENT_SCOPES]: 'Client-Bereiche',
@@ -1855,6 +1862,7 @@ const TranslatorTranslationDefaultEnglish = {
1855
1862
  [exports.TranslatorTranslationDefaultKey.INACTIVE]: 'inactive',
1856
1863
  [exports.TranslatorTranslationDefaultKey.LOCKED]: 'locked',
1857
1864
  [exports.TranslatorTranslationDefaultKey.NOT_LOCKED]: 'not locked',
1865
+ [exports.TranslatorTranslationDefaultKey.VALUE_IS_REGEX]: 'Value is regex pattern?',
1858
1866
  [exports.TranslatorTranslationDefaultKey.CLIENT]: 'update',
1859
1867
  [exports.TranslatorTranslationDefaultKey.CLIENTS]: 'clients',
1860
1868
  [exports.TranslatorTranslationDefaultKey.CLIENT_SCOPES]: 'client scopes',
@@ -4613,23 +4621,29 @@ const AIdentityProviderRoleAssignment = vue.defineComponent({
4613
4621
  display.value = !display.value;
4614
4622
  };
4615
4623
  const form = vue.reactive({
4616
- external_id: ''
4624
+ name: '',
4625
+ value: '',
4626
+ value_is_regex: false
4617
4627
  });
4618
4628
  const $v = useVuelidate({
4619
- external_id: {
4620
- required: validators.required,
4629
+ name: {
4630
+ minLength: validators.minLength(3),
4631
+ maxLength: validators.maxLength(32)
4632
+ },
4633
+ value: {
4621
4634
  minLength: validators.minLength(3),
4622
4635
  maxLength: validators.maxLength(128)
4623
- }
4636
+ },
4637
+ value_is_regex: {}
4624
4638
  }, form);
4625
- const validationMessages = useTranslationsForBaseValidation($v.value.external_id);
4626
- const translationExternalID = useTranslation({
4627
- group: exports.TranslatorTranslationGroup.DEFAULT,
4628
- key: exports.TranslatorTranslationDefaultKey.EXTERNAL_ID
4629
- });
4630
- const isExternalIDDefined = vue.computed(()=>form.external_id && form.external_id.length > 0);
4639
+ const validationMessages = useTranslationsForNestedValidation($v.value);
4640
+ const translationsDefault = useTranslationsForGroup(exports.TranslatorTranslationGroup.DEFAULT, [
4641
+ {
4642
+ key: exports.TranslatorTranslationDefaultKey.VALUE_IS_REGEX
4643
+ }
4644
+ ]);
4631
4645
  const manager = createEntityManager({
4632
- type: `${coreKit.DomainType.IDENTITY_PROVIDER_ROLE}`,
4646
+ type: `${coreKit.DomainType.IDENTITY_PROVIDER_ROLE_MAPPING}`,
4633
4647
  setup,
4634
4648
  socket: {
4635
4649
  processEvent (event) {
@@ -4699,7 +4713,6 @@ const AIdentityProviderRoleAssignment = vue.defineComponent({
4699
4713
  'btn-dark': !!manager.data.value
4700
4714
  }
4701
4715
  ],
4702
- disabled: !isExternalIDDefined.value,
4703
4716
  onClick ($event) {
4704
4717
  $event.preventDefault();
4705
4718
  if (manager.data.value) {
@@ -4753,13 +4766,39 @@ const AIdentityProviderRoleAssignment = vue.defineComponent({
4753
4766
  }, [
4754
4767
  formControls.buildFormGroup({
4755
4768
  label: true,
4756
- labelContent: translationExternalID.value,
4757
- validationMessages: validationMessages.value,
4758
- validationSeverity: getVuelidateSeverity($v.value.external_id),
4769
+ labelContent: 'Name',
4770
+ validationMessages: validationMessages.name.value,
4771
+ validationSeverity: getVuelidateSeverity($v.value.name),
4759
4772
  content: formControls.buildFormInput({
4760
- value: $v.value.external_id.$model,
4773
+ value: $v.value.name.$model,
4761
4774
  onChange (input) {
4762
- $v.value.external_id.$model = input;
4775
+ $v.value.name.$model = input;
4776
+ }
4777
+ })
4778
+ }),
4779
+ formControls.buildFormGroup({
4780
+ label: true,
4781
+ labelContent: 'Value',
4782
+ validationMessages: validationMessages.value.value,
4783
+ validationSeverity: getVuelidateSeverity($v.value.value),
4784
+ content: formControls.buildFormInput({
4785
+ value: $v.value.value.$model,
4786
+ onChange (input) {
4787
+ $v.value.value.$model = input;
4788
+ }
4789
+ })
4790
+ }),
4791
+ formControls.buildFormGroup({
4792
+ validationMessages: validationMessages.value_is_regex.value,
4793
+ validationSeverity: getVuelidateSeverity($v.value.value_is_regex),
4794
+ label: true,
4795
+ labelContent: 'Regex',
4796
+ content: formControls.buildFormInputCheckbox({
4797
+ groupClass: 'form-switch',
4798
+ labelContent: translationsDefault.valueIsRegex.value,
4799
+ value: $v.value.value_is_regex.$model,
4800
+ onChange (input) {
4801
+ $v.value.value_is_regex.$model = input;
4763
4802
  }
4764
4803
  })
4765
4804
  })
@@ -6561,11 +6600,11 @@ const AEntityDelete = vue.defineComponent({
6561
6600
  const instance = vue.getCurrentInstance();
6562
6601
  const busy = vue.ref(false);
6563
6602
  const submit = wrapFnWithBusyState(busy, async ()=>{
6564
- let domainAPI;
6565
- if (kit.hasOwnProperty(apiClient, props.entityType) && kit.isObject(apiClient[props.entityType]) && kit.hasOwnProperty(apiClient[props.entityType], 'delete')) {
6566
- domainAPI = apiClient[props.entityType];
6603
+ const domainAPI = apiClient[props.entityType];
6604
+ if (!kit.isObject(domainAPI)) {
6605
+ return;
6567
6606
  }
6568
- if (!domainAPI) {
6607
+ if (typeof domainAPI.delete !== 'function') {
6569
6608
  return;
6570
6609
  }
6571
6610
  try {
@@ -6709,16 +6748,19 @@ function installComponents(input) {
6709
6748
  function install(app1, options) {
6710
6749
  if (options.realtime) {
6711
6750
  installSocketManager(app1, {
6751
+ pinia: options.pinia,
6712
6752
  baseURL: options.realtimeURL || options.baseURL
6713
6753
  });
6714
6754
  }
6715
6755
  installStore(app1, {
6756
+ pinia: options.pinia,
6716
6757
  baseURL: options.baseURL,
6717
6758
  cookieSet: options.cookieSet,
6718
6759
  cookieGet: options.cookieGet,
6719
6760
  cookieUnset: options.cookieUnset
6720
6761
  });
6721
6762
  installHTTPClient(app1, {
6763
+ pinia: options.pinia,
6722
6764
  baseURL: options.baseURL
6723
6765
  });
6724
6766
  installTranslator(app1, {