@ximatai/muyun-web-app 0.26.23 → 0.26.25
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/dist/{BusinessActivityLogView-IWGZiPLo.js → BusinessActivityLogView-a6oZ2t9t.js} +2 -2
- package/dist/{BusinessLogListDrawer-UCsg6psI.js → BusinessLogListDrawer-DtSXpK6g.js} +135 -131
- package/dist/{CodeConfigurationView-Calkazua.js → CodeConfigurationView-BVu1ZnH-.js} +366 -366
- package/dist/{ConfigurationTranslationView-fZrlRAMy.js → ConfigurationTranslationView-Cd8ezR4t.js} +44 -44
- package/dist/{LoginAuditLogView-B6J7t__0.js → LoginAuditLogView-DyvHTCXH.js} +2 -2
- package/dist/ModuleActionManagementView-y3t2YHKF.js +780 -0
- package/dist/{ModuleGovernanceView-D8ONs78K.js → ModuleGovernanceView-BqJq2Pxm.js} +3521 -3521
- package/dist/{RequestErrorLogView-poMgx4_6.js → RequestErrorLogView-2iPeAi3b.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-6Bs1eKbm.js → RoleDetailWorkspaceView-G-5VAV_B.js} +54 -54
- package/dist/{RuntimeLogView-Co-Z86bt.js → RuntimeLogView-CulSgS0l.js} +61 -61
- package/dist/WorkflowAdministrationView-y8VBYMLZ.js +650 -0
- package/dist/{WorkflowConfigurationView-mSyL_-We.js → WorkflowConfigurationView-DpONX2nN.js} +290 -290
- package/dist/{WorkflowWorkbenchView-DBMh3ycN.js → WorkflowWorkbenchView-CGo1eZjr.js} +215 -215
- package/dist/{codeConfiguration-D1zrxzoW.js → codeConfiguration-fZiz0PNC.js} +27 -27
- package/dist/index.css +1 -1
- package/dist/index.js +2407 -1222
- package/dist/{moduleMenuWorkspace-lIVrTaOB.js → moduleMenuWorkspace-AZ4G9BpZ.js} +222 -222
- package/dist/{platform-components-D0T03KGl.js → platform-components-D98pyZ77.js} +4296 -3497
- package/dist/{platform-workbench-CobObbuz.js → platform-workbench-BBLDvT9V.js} +6311 -6111
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +9 -0
- package/dist/types/app/ExternalIdentityBindings.vue.d.ts +8 -0
- package/dist/types/app/ExternalProvisioningConfirmation.vue.d.ts +15 -0
- package/dist/types/app/LoginView.vue.d.ts +3 -1
- package/dist/types/app/PersonalAccessTokenDialog.vue.d.ts +15 -0
- package/dist/types/app/PersonalAccessTokens.vue.d.ts +8 -0
- package/dist/types/app/WeLinkQrCode.vue.d.ts +11 -0
- package/dist/types/app/WorkbenchAccountCenter.vue.d.ts +40 -0
- package/dist/types/app/externalLoginReturn.d.ts +38 -0
- package/dist/types/app/themeSkinPreference.d.ts +2 -2
- package/dist/types/app/useCurrentUserProfile.d.ts +1 -0
- package/dist/types/app/useExternalLoginHost.d.ts +27 -0
- package/dist/types/app/usePersonalAccessTokenAccess.d.ts +11 -0
- package/dist/types/app/weLinkQrCode.d.ts +22 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +20 -4
- package/dist/types/consumer/index.d.ts +16 -2
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +11 -15
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/formCreateDefaults.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
- package/dist/types/platform-admin-runtime/authSession.d.ts +2 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- package/dist/types/platform-admin-runtime/job/ScheduledActionTargetFields.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/scheduledActionPlanPageEnhancement.d.ts +3 -0
- package/dist/types/platform-components/BusinessNotificationCard.vue.d.ts +30 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +4 -39
- package/dist/types/platform-components/CronExpressionInput.vue.d.ts +12 -0
- package/dist/types/platform-components/DurationSecondsInput.vue.d.ts +10 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +8 -17
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +4 -0
- package/dist/types/platform-components/cronExpression.d.ts +36 -0
- package/dist/types/platform-components/durationSeconds.d.ts +31 -0
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +9 -2
- package/dist/types/platform-components/index.d.ts +6 -0
- package/dist/types/platform-components/managementWorkspaceContext.d.ts +2 -1
- package/dist/types/platform-components/useNotificationDeckMotion.d.ts +7 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +5 -0
- package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +11 -1
- package/dist/types/platform-workbench/index.d.ts +3 -0
- package/dist/types/platform-workbench/workbenchAccountMenu.d.ts +33 -0
- package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +1 -1
- package/dist/types/views/businessLogClient.d.ts +2 -0
- package/dist/types/views/businessRuleGovernance.d.ts +1 -0
- package/dist/types/vue-ui-antdv/components/UiInputGroup.vue.d.ts +20 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +87 -2
- package/dist/types/web-core/clients.d.ts +25 -1
- package/dist/{useWorkflowConfigurationContext-BkcNPU2H.js → useWorkflowConfigurationContext-BcK19EXl.js} +6 -6
- package/dist/{workspaceViews-BtqO8rU0.js → workspaceViews-Dr7RZXvX.js} +1139 -983
- package/package.json +1 -1
- package/dist/ModuleActionManagementView-BZ89Woex.js +0 -755
- package/dist/WorkflowAdministrationView-D7QpRHDp.js +0 -650
|
@@ -126,7 +126,7 @@ export interface WebBusinessNotification {
|
|
|
126
126
|
content: string;
|
|
127
127
|
dismissible: boolean;
|
|
128
128
|
actions: WebBusinessNotificationAction[];
|
|
129
|
-
/** Persistent cards remain above ordinary overlays
|
|
129
|
+
/** Persistent floating cards remain actionable above ordinary overlays; all reminders share the current collection. */
|
|
130
130
|
displayPolicy?: 'standard' | 'persistent';
|
|
131
131
|
/** Optional absolute action deadline, in ISO-8601 format. */
|
|
132
132
|
expiresAt?: string;
|
|
@@ -203,6 +203,20 @@ export interface CurrentUser {
|
|
|
203
203
|
passwordChangeRequired?: boolean;
|
|
204
204
|
timeZone?: string;
|
|
205
205
|
}
|
|
206
|
+
/** User-owned tool credential metadata; full secret is only returned on issuance. */
|
|
207
|
+
export interface PersonalAccessTokenView {
|
|
208
|
+
id: string;
|
|
209
|
+
name: string;
|
|
210
|
+
displayPrefix: string;
|
|
211
|
+
createdAt: string;
|
|
212
|
+
expiresAt: string;
|
|
213
|
+
revokedAt?: string;
|
|
214
|
+
lastUsedAt?: string;
|
|
215
|
+
}
|
|
216
|
+
export interface IssuedPersonalAccessToken {
|
|
217
|
+
token: string;
|
|
218
|
+
accessToken: PersonalAccessTokenView;
|
|
219
|
+
}
|
|
206
220
|
export interface CurrentUserProfilePosition {
|
|
207
221
|
id?: string;
|
|
208
222
|
title?: string;
|
|
@@ -247,6 +261,71 @@ export interface TenantBranding {
|
|
|
247
261
|
export interface TenantLoginContext {
|
|
248
262
|
tenantId: string;
|
|
249
263
|
branding?: TenantBranding;
|
|
264
|
+
/** External identity providers the tenant offers on its sign-in entry; empty when federation is off. */
|
|
265
|
+
externalLoginMethods?: ExternalLoginMethod[];
|
|
266
|
+
}
|
|
267
|
+
export interface ExternalLoginMethod {
|
|
268
|
+
providerId: string;
|
|
269
|
+
title: string;
|
|
270
|
+
providerType: string;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* A started external sign-in or bind transaction. `state` and `browserProof` must stay in the initiating
|
|
274
|
+
* browser; only that browser can complete the transaction, and the proof is never put into a URL.
|
|
275
|
+
*/
|
|
276
|
+
export interface ExternalLoginStart {
|
|
277
|
+
transactionId: string;
|
|
278
|
+
state: string;
|
|
279
|
+
authorizationUrl: string;
|
|
280
|
+
browserProof: string;
|
|
281
|
+
expiresAt: string;
|
|
282
|
+
qrCode?: {
|
|
283
|
+
providerType: string;
|
|
284
|
+
scriptUrl: string;
|
|
285
|
+
authorizationUrl: string;
|
|
286
|
+
clientId: string;
|
|
287
|
+
redirectUri: string;
|
|
288
|
+
state: string;
|
|
289
|
+
scope: string;
|
|
290
|
+
messageOrigin: string;
|
|
291
|
+
} | null;
|
|
292
|
+
}
|
|
293
|
+
export type ExternalLoginStatus = 'succeeded' | 'denied' | 'expired' | 'confirmationRequired' | 'reviewPending' | 'reviewRejected';
|
|
294
|
+
export type ExternalLoginFailure = 'admissionRejected' | 'identityNotBound' | 'identityConflict' | 'alreadyBound' | 'enterpriseMismatch' | 'policyDisabled' | 'accountUnavailable' | 'sessionEnded' | 'providerRejected' | 'providerUnavailable' | 'internalError';
|
|
295
|
+
export type ExternalLoginPurpose = 'login' | 'bind';
|
|
296
|
+
export interface ExternalIdentityView {
|
|
297
|
+
id: string;
|
|
298
|
+
providerId: string;
|
|
299
|
+
providerTitle: string;
|
|
300
|
+
externalUserId: string;
|
|
301
|
+
displayName?: string;
|
|
302
|
+
boundAt: string;
|
|
303
|
+
lastAuthenticatedAt?: string;
|
|
304
|
+
}
|
|
305
|
+
/** What the initiating browser submits after the provider returned it to the workbench. */
|
|
306
|
+
export interface ExternalLoginCompleteRequest {
|
|
307
|
+
state: string;
|
|
308
|
+
browserProof: string;
|
|
309
|
+
/** Every provider parameter on the return address, verified on the server. */
|
|
310
|
+
parameters: Record<string, string>;
|
|
311
|
+
}
|
|
312
|
+
export interface ExternalProvisioningProfile {
|
|
313
|
+
displayName: string;
|
|
314
|
+
tenantId: string;
|
|
315
|
+
departmentIds: string[];
|
|
316
|
+
placements?: string[];
|
|
317
|
+
}
|
|
318
|
+
export interface ExternalLoginCompletion {
|
|
319
|
+
status: ExternalLoginStatus;
|
|
320
|
+
purpose: ExternalLoginPurpose;
|
|
321
|
+
failure?: ExternalLoginFailure;
|
|
322
|
+
login?: LoginResult;
|
|
323
|
+
binding?: ExternalIdentityView;
|
|
324
|
+
confirmation?: ExternalProvisioningProfile;
|
|
325
|
+
}
|
|
326
|
+
export interface OwnExternalIdentities {
|
|
327
|
+
bindings: ExternalIdentityView[];
|
|
328
|
+
bindableProviders: ExternalLoginMethod[];
|
|
250
329
|
}
|
|
251
330
|
export interface LoginRequest {
|
|
252
331
|
tenantId?: string;
|
|
@@ -1119,6 +1198,8 @@ export interface ResolvedViewDescriptor {
|
|
|
1119
1198
|
fields: ResolvedViewFieldDescriptor[];
|
|
1120
1199
|
/** Dynamic-page provenance used to select the view configured by a menu entry. */
|
|
1121
1200
|
sourceUiConfigId?: string;
|
|
1201
|
+
/** Model literals in standard wire types; seed new records before context bindings and calculations. */
|
|
1202
|
+
createDefaults?: Record<string, unknown>;
|
|
1122
1203
|
formGroups?: FormGroupDescriptor[];
|
|
1123
1204
|
formComputeRules?: ResolvedFormComputeRuleDescriptor[];
|
|
1124
1205
|
formValidationRules?: ResolvedFormValidationRuleDescriptor[];
|
|
@@ -1411,6 +1492,8 @@ export interface UserSessionView {
|
|
|
1411
1492
|
maxExpiresAt?: string;
|
|
1412
1493
|
lastSeenAt?: string;
|
|
1413
1494
|
passwordChangeRequired?: boolean;
|
|
1495
|
+
/** How the session was authenticated, for example `password`. */
|
|
1496
|
+
authenticationMethod?: string;
|
|
1414
1497
|
loginIp?: string;
|
|
1415
1498
|
loginUserAgent?: string;
|
|
1416
1499
|
terminalType?: string;
|
|
@@ -1433,7 +1516,8 @@ export interface UserSessionStatusView {
|
|
|
1433
1516
|
presentSessionCount?: number;
|
|
1434
1517
|
idleSessionCount?: number;
|
|
1435
1518
|
}
|
|
1436
|
-
|
|
1519
|
+
/** `none` marks an account that has no local password and signs in through another method. */
|
|
1520
|
+
export type UserPasswordStatus = 'normal' | 'initial' | 'resetRequired' | 'expired' | 'none';
|
|
1437
1521
|
export interface ResetPasswordResponse {
|
|
1438
1522
|
count: number;
|
|
1439
1523
|
temporaryPassword?: string;
|
|
@@ -1586,6 +1670,7 @@ export interface PlatformModule extends StandardEnabledTreeEntity {
|
|
|
1586
1670
|
}
|
|
1587
1671
|
/** A governed operation exposed by one platform module. */
|
|
1588
1672
|
export interface PlatformModuleAction extends StandardEnabledSortableEntity {
|
|
1673
|
+
schedulable?: boolean;
|
|
1589
1674
|
bindingPending?: boolean;
|
|
1590
1675
|
formSupported?: boolean;
|
|
1591
1676
|
moduleAlias?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChangeOwnPasswordRequest, CurrentUserProfile, CurrentUser, LoginRequest, LoginResult, UpdateCurrentUserProfileRequest, MenuMineResponse, PageBootstrap, TenantBranding, TenantLoginContext } from '../web-contracts/index';
|
|
1
|
+
import type { ChangeOwnPasswordRequest, PersonalAccessTokenView, IssuedPersonalAccessToken, CurrentUserProfile, CurrentUser, ExternalLoginCompleteRequest, ExternalLoginCompletion, ExternalLoginStart, LoginRequest, LoginResult, UpdateCurrentUserProfileRequest, MenuMineResponse, OwnExternalIdentities, PageBootstrap, TenantBranding, TenantLoginContext } from '../web-contracts/index';
|
|
2
2
|
import type { HttpClient } from './http';
|
|
3
3
|
export interface SessionClient {
|
|
4
4
|
current(): Promise<CurrentUser>;
|
|
@@ -18,6 +18,15 @@ export interface AuthClient {
|
|
|
18
18
|
updateCurrentProfile(request: UpdateCurrentUserProfileRequest, token: string): Promise<CurrentUserProfile>;
|
|
19
19
|
logout(token?: string): Promise<void>;
|
|
20
20
|
}
|
|
21
|
+
/** External identity sign-in and the current user's bindings; available only when federation is enabled. */
|
|
22
|
+
export interface ExternalLoginClient {
|
|
23
|
+
startLogin(providerId: string, tenantId: string): Promise<ExternalLoginStart>;
|
|
24
|
+
startBind(providerId: string, token: string): Promise<ExternalLoginStart>;
|
|
25
|
+
complete(providerId: string, request: ExternalLoginCompleteRequest): Promise<ExternalLoginCompletion>;
|
|
26
|
+
confirm(providerId: string, request: Omit<ExternalLoginCompleteRequest, 'parameters'>): Promise<ExternalLoginCompletion>;
|
|
27
|
+
identities(token: string): Promise<OwnExternalIdentities>;
|
|
28
|
+
unbind(identityId: string, token: string): Promise<void>;
|
|
29
|
+
}
|
|
21
30
|
/** Resolves the public context used by a tenant-locked login entry. */
|
|
22
31
|
export interface LoginContextClient {
|
|
23
32
|
loginContext(tenantId: string): Promise<TenantLoginContext>;
|
|
@@ -33,4 +42,19 @@ export declare function createPageBootstrapClient(http: HttpClient): PageBootstr
|
|
|
33
42
|
* contract instead of requiring application-level compatibility code.
|
|
34
43
|
*/
|
|
35
44
|
export declare function normalizeMenuMineResponse(response: unknown): MenuMineResponse;
|
|
45
|
+
/** Personal access token management uses an explicit interactive session, without a business tenant. */
|
|
46
|
+
export interface PersonalAccessTokenClient {
|
|
47
|
+
capabilities(sessionToken: string): Promise<{
|
|
48
|
+
canCreate: boolean;
|
|
49
|
+
}>;
|
|
50
|
+
list(sessionToken: string): Promise<PersonalAccessTokenView[]>;
|
|
51
|
+
create(sessionToken: string, request: {
|
|
52
|
+
name: string;
|
|
53
|
+
validDays: number;
|
|
54
|
+
}): Promise<IssuedPersonalAccessToken>;
|
|
55
|
+
revoke(sessionToken: string, id: string): Promise<void>;
|
|
56
|
+
remove(sessionToken: string, id: string): Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
export declare function createPersonalAccessTokenClient(http: HttpClient): PersonalAccessTokenClient;
|
|
59
|
+
export declare function createExternalLoginClient(http: HttpClient): ExternalLoginClient;
|
|
36
60
|
export declare function createAuthClient(http: HttpClient): AuthClient;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as e, y as t } from "./platform-workbench-
|
|
2
|
-
import {
|
|
1
|
+
import { E as e, y as t } from "./platform-workbench-BBLDvT9V.js";
|
|
2
|
+
import { $r as n, Vt as r, Xr as i, bn as a, ni as o, no as s, zr as c } from "./platform-components-D98pyZ77.js";
|
|
3
3
|
import { computed as l, onMounted as u } from "vue";
|
|
4
4
|
//#region src/views/useWorkflowConfigurationContext.ts
|
|
5
5
|
function d(d) {
|
|
6
|
-
let f =
|
|
6
|
+
let f = s(), p = n({ moduleAlias: "platform.workflow.definition" }), m = c(p.http, d), h = {
|
|
7
7
|
loadFunctions: async () => (await m.formulaFunctions()).map((e) => ({
|
|
8
8
|
name: e.name,
|
|
9
9
|
title: e.title,
|
|
@@ -30,14 +30,14 @@ function d(d) {
|
|
|
30
30
|
try {
|
|
31
31
|
await g.runtime.refreshTexts?.();
|
|
32
32
|
} catch (e) {
|
|
33
|
-
|
|
33
|
+
a(e, {
|
|
34
34
|
source: "workflow-design",
|
|
35
35
|
phase: "load"
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
let y = l(() => o(g.runtime)), b = l(() => [...
|
|
40
|
+
let y = l(() => o(g.runtime)), b = l(() => [...r(y.value?.uiDescriptor)].map(([e, t]) => ({
|
|
41
41
|
name: e,
|
|
42
42
|
label: t.label ?? e,
|
|
43
43
|
valueType: t.valueType,
|
|
@@ -47,7 +47,7 @@ function d(d) {
|
|
|
47
47
|
try {
|
|
48
48
|
await g.runtime.ready;
|
|
49
49
|
} catch (e) {
|
|
50
|
-
|
|
50
|
+
a(e, {
|
|
51
51
|
source: "workflow-design",
|
|
52
52
|
phase: "load"
|
|
53
53
|
});
|