@antcde/connect-ts 0.4.15 → 0.4.16-rc.64ce643
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/README.md +550 -0
- package/build/AntConnect.d.ts +4 -0
- package/build/AntConnect.d.ts.map +1 -1
- package/build/AntConnect.js +4 -0
- package/build/comms/client.d.ts.map +1 -1
- package/build/comms/client.js +62 -18
- package/build/comms/host.d.ts +5 -4
- package/build/comms/host.d.ts.map +1 -1
- package/build/comms/host.js +37 -9
- package/build/comms/models.d.ts +2 -1
- package/build/comms/models.d.ts.map +1 -1
- package/build/comms/signal.d.ts +112 -12
- package/build/comms/signal.d.ts.map +1 -1
- package/build/comms/signal.js +25 -9
- package/build/index.d.ts +14 -10
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -1
- package/build/services/AppService.d.ts +1 -10
- package/build/services/AppService.d.ts.map +1 -1
- package/build/services/AppService.js +0 -1
- package/build/services/ColumnService.d.ts +60 -3
- package/build/services/ColumnService.d.ts.map +1 -1
- package/build/services/ColumnService.js +1 -0
- package/build/services/DmsService.d.ts +122 -21
- package/build/services/DmsService.d.ts.map +1 -1
- package/build/services/DmsService.js +60 -16
- package/build/services/LabelService.d.ts +4 -2
- package/build/services/LabelService.d.ts.map +1 -1
- package/build/services/LabelService.js +1 -1
- package/build/services/LicenseService.d.ts +42 -0
- package/build/services/LicenseService.d.ts.map +1 -1
- package/build/services/LicenseService.js +1 -0
- package/build/services/ProjectService.d.ts +20 -1
- package/build/services/ProjectService.d.ts.map +1 -1
- package/build/services/PropagationService.d.ts +128 -0
- package/build/services/PropagationService.d.ts.map +1 -0
- package/build/services/PropagationService.js +31 -0
- package/build/services/RBAC/PermissionService.d.ts +10 -3
- package/build/services/RBAC/PermissionService.d.ts.map +1 -1
- package/build/services/RBAC/PermissionService.js +1 -0
- package/build/services/RBAC/RoleService.d.ts +0 -3
- package/build/services/RBAC/RoleService.d.ts.map +1 -1
- package/build/services/RecordLockService.d.ts +132 -0
- package/build/services/RecordLockService.d.ts.map +1 -0
- package/build/services/RecordLockService.js +12 -0
- package/build/services/RecordService.d.ts +193 -7
- package/build/services/RecordService.d.ts.map +1 -1
- package/build/services/RecordService.js +23 -9
- package/build/services/TableService.d.ts +61 -16
- package/build/services/TableService.d.ts.map +1 -1
- package/build/services/TableService.js +3 -0
- package/build/services/TaskService.d.ts +16 -8
- package/build/services/TaskService.d.ts.map +1 -1
- package/build/services/TaskService.js +1 -3
- package/build/services/TaskServiceQueries.d.ts +3 -2
- package/build/services/TaskServiceQueries.d.ts.map +1 -1
- package/build/services/TaskServiceQueries.js +5 -2
- package/build/services/UserService.d.ts +0 -2
- package/build/services/UserService.d.ts.map +1 -1
- package/build/services/Websockets/DmsEvents.d.ts +25 -0
- package/build/services/Websockets/DmsEvents.d.ts.map +1 -0
- package/build/services/Websockets/DmsEvents.js +6 -0
- package/build/services/WorkflowServiceQueries.js +1 -1
- package/build/tsconfig.esm.tsbuildinfo +1 -1
- package/build/types.d.ts +169 -0
- package/build/types.d.ts.map +1 -1
- package/build/types.js +19 -1
- package/package.json +10 -13
package/build/comms/client.js
CHANGED
|
@@ -8,16 +8,46 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { send } from 'post-robot';
|
|
11
|
-
import { BehaviorSubject, combineLatest, concatMap, filter, first, firstValueFrom, identity, map, share, shareReplay, Subscription, switchMap, take, tap, } from 'rxjs';
|
|
11
|
+
import { BehaviorSubject, combineLatest, concatMap, filter, first, firstValueFrom, identity, map, merge, share, shareReplay, Subscription, switchMap, take, tap, } from 'rxjs';
|
|
12
12
|
import { notificationTypes } from './models';
|
|
13
13
|
import { newSignaler } from './signal';
|
|
14
14
|
import { clone, newId, newScope, takeUntilClosed } from './utils';
|
|
15
15
|
export function newCommsClient(params) {
|
|
16
16
|
var _a;
|
|
17
17
|
const scope = newScope();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
// Two initialization paths:
|
|
19
|
+
// 1. Initial load: Host sends 'ant/comms/init' with clientId + context after iframe @load
|
|
20
|
+
// 2. HMR recovery: Client sends 'ready', host responds with clientId + context
|
|
21
|
+
const initData = new BehaviorSubject(null);
|
|
22
|
+
// Send ready message for HMR recovery (host's listener is scoped to our window)
|
|
23
|
+
// For initial load, this will timeout (expected) because host's listener isn't set up until @load
|
|
24
|
+
send(params.parent, 'ant/comms/ready', {}, { fireAndForget: false })
|
|
25
|
+
.then((response) => {
|
|
26
|
+
const { clientId, context } = response.data;
|
|
27
|
+
initData.next({ clientId, context });
|
|
28
|
+
})
|
|
29
|
+
.catch(() => {
|
|
30
|
+
// Timeout is expected for initial load (host's ready listener sets up after @load)
|
|
31
|
+
// The init message will come through separately
|
|
32
|
+
});
|
|
33
|
+
// Listen for host-initiated init (primary method for initial load)
|
|
34
|
+
// The init message now includes context, so we have it immediately
|
|
35
|
+
// IMPORTANT: We use scope.once WITH a handler so that initData.next() runs
|
|
36
|
+
// BEFORE the ACK is sent to the host. This ensures all RxJS subscriptions
|
|
37
|
+
// (which set up post-robot listeners) have processed before the host
|
|
38
|
+
// marks connectionInitialized and starts sending messages.
|
|
39
|
+
scope
|
|
40
|
+
.once('ant/comms/init', (message) => {
|
|
41
|
+
var _a;
|
|
42
|
+
if (!initData.value) {
|
|
43
|
+
initData.next({ clientId: message.data.clientId, context: (_a = message.data.context) !== null && _a !== void 0 ? _a : {} });
|
|
44
|
+
}
|
|
45
|
+
return Promise.resolve(); // Return value becomes ACK
|
|
46
|
+
})
|
|
47
|
+
.subscribe();
|
|
48
|
+
const clientIdChanges = initData.asObservable().pipe(filter((data) => data !== null), map(data => data.clientId), shareReplay(1));
|
|
49
|
+
// Initial context from the ready response (avoids delay waiting for separate context message)
|
|
50
|
+
const initialContext = initData.asObservable().pipe(filter((data) => data !== null), map(data => data.context), shareReplay(1));
|
|
21
51
|
const box = {
|
|
22
52
|
clientIdChanges,
|
|
23
53
|
scope,
|
|
@@ -27,7 +57,7 @@ export function newCommsClient(params) {
|
|
|
27
57
|
notepad: newNotepad(box),
|
|
28
58
|
notifications: newNotifications(box),
|
|
29
59
|
connect: (_a = params.connect) !== null && _a !== void 0 ? _a : newAntConnectFacade(box),
|
|
30
|
-
context:
|
|
60
|
+
context: newContextObservableWithInitial(box, initialContext),
|
|
31
61
|
toolbar: handleToolbarChanges(box),
|
|
32
62
|
appState: handleAppStateChanges(box),
|
|
33
63
|
signal: getSignal(box),
|
|
@@ -53,19 +83,22 @@ function handleToolbarChanges({ scope, parent, clientIdChanges }) {
|
|
|
53
83
|
toolbar.next(value);
|
|
54
84
|
}
|
|
55
85
|
};
|
|
86
|
+
// Send toolbar state to host whenever toolbar or clientId changes
|
|
56
87
|
combineLatest([
|
|
57
88
|
toolbar.asObservable(),
|
|
58
89
|
clientIdChanges,
|
|
59
90
|
])
|
|
60
|
-
.pipe(tap(([toolbar, clientId]) => send(parent, `ant/${clientId}/toolbar`, { toolbar })),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
scope.on(`ant/${clientId}/toolbar/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
91
|
+
.pipe(tap(([toolbar, clientId]) => send(parent, `ant/${clientId}/toolbar`, { toolbar })), takeUntilClosed(scope))
|
|
92
|
+
.subscribe();
|
|
93
|
+
// Set up listeners once per clientId — NOT inside switchMap keyed on toolbar,
|
|
94
|
+
// which would tear down and recreate listeners on every toolbar change
|
|
95
|
+
clientIdChanges
|
|
96
|
+
.pipe(switchMap(clientId => merge(scope.on(`ant/${clientId}/toolbar/click`).pipe(tap(({ data }) => {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
(_b = (_a = toolbar.value.menu[data.index]) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
99
|
+
})), scope.on(`ant/${clientId}/toolbar/search`).pipe(tap(({ data }) => {
|
|
100
|
+
set(t => (Object.assign(Object.assign({}, t), { search: Object.assign(Object.assign({}, t.search), { input: data.value }) })));
|
|
101
|
+
})))), takeUntilClosed(scope))
|
|
69
102
|
.subscribe();
|
|
70
103
|
return Object.assign(toolbar.asObservable().pipe(takeUntilClosed(scope)), { set, get: () => toolbar.value });
|
|
71
104
|
}
|
|
@@ -91,8 +124,17 @@ export function newNotifications({ parent, scope, clientIdChanges }) {
|
|
|
91
124
|
},
|
|
92
125
|
}), {});
|
|
93
126
|
}
|
|
94
|
-
|
|
95
|
-
|
|
127
|
+
/**
|
|
128
|
+
* Creates a context observable that starts with initial context from the ready response,
|
|
129
|
+
* then merges with subsequent context updates from the host.
|
|
130
|
+
* This eliminates the delay between app start and receiving context.
|
|
131
|
+
*/
|
|
132
|
+
function newContextObservableWithInitial(box, initialContext) {
|
|
133
|
+
const { scope, clientIdChanges } = box;
|
|
134
|
+
// Subsequent context updates from the host
|
|
135
|
+
const contextUpdates = clientIdChanges.pipe(switchMap(clientId => scope.on(`ant/${clientId}/context`)), map(e => clone(e.data.context)));
|
|
136
|
+
// Merge initial context with subsequent updates
|
|
137
|
+
return merge(initialContext, contextUpdates).pipe(shareReplay(1));
|
|
96
138
|
}
|
|
97
139
|
function newAntConnectFacade({ scope, parent, clientIdChanges }) {
|
|
98
140
|
return new Proxy({}, {
|
|
@@ -114,9 +156,11 @@ function newAntConnectFacade({ scope, parent, clientIdChanges }) {
|
|
|
114
156
|
}),
|
|
115
157
|
});
|
|
116
158
|
}
|
|
117
|
-
function getSignal({ clientIdChanges, scope }) {
|
|
159
|
+
function getSignal({ clientIdChanges, scope, parent }) {
|
|
118
160
|
return newSignaler({
|
|
119
|
-
send: signals
|
|
161
|
+
send: (signals) => {
|
|
162
|
+
return firstValueFrom(clientIdChanges.pipe(take(1), concatMap(clientId => scope.send(parent, `ant/${clientId}/signal`, signals, { fireAndForget: false })), map(e => e.data)));
|
|
163
|
+
},
|
|
120
164
|
receiver: clientIdChanges.pipe(switchMap(clientId => scope.on(`ant/${clientId}/signal`)), share()),
|
|
121
165
|
});
|
|
122
166
|
}
|
package/build/comms/host.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { Observable, Subject, SubscriptionLike } from 'rxjs';
|
|
2
2
|
import type { Context, Notepad, Notification, Toolbar } from './models';
|
|
3
|
-
import type { Change, ChangeSignal, SignalReceiver, SignalSender } from './signal';
|
|
3
|
+
import type { Change, ChangeSignal, Signal, SignalReceiver, SignalSender } from './signal';
|
|
4
4
|
import type { Scope } from './utils';
|
|
5
5
|
import type { AntConnect } from "../AntConnect";
|
|
6
|
-
import { Subscription } from 'rxjs';
|
|
6
|
+
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
7
|
+
export type SignalObserverFactory = (type: keyof ChangeSignal | (string & {}), id: string | undefined | null, actions: Change[], callback: (...signal: Signal[]) => void, scope?: ('project' | 'license')[]) => () => void;
|
|
7
8
|
export interface HostParams {
|
|
8
9
|
windowChanges: Observable<Window>;
|
|
9
|
-
contextChanges:
|
|
10
|
+
contextChanges: BehaviorSubject<Context>;
|
|
10
11
|
addNotification: (notification: Notification) => void;
|
|
11
12
|
connect: AntConnect;
|
|
12
13
|
notepad: Notepad;
|
|
13
14
|
appState?: string;
|
|
14
|
-
newSignalObserver:
|
|
15
|
+
newSignalObserver: SignalObserverFactory;
|
|
15
16
|
}
|
|
16
17
|
export interface Box {
|
|
17
18
|
params: HostParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/comms/host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE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;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,KAAK,CAAA;IACZ,qBAAqB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;CACrC;AAED,MAAM,WAAW,IAAK,SAAQ,gBAAgB;IAC5C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG;QAAE,GAAG,EAAE,MAAM,OAAO,CAAC;QAAC,GAAG,EAAE;YAAE,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;SAAE,CAAA;KAAE,CAAA;IAC3G,uBAAuB,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAC5C,MAAM,EAAE,cAAc,GAAG,YAAY,CAAA;IACrC,QAAQ,EAAE;QACR,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;QAC3B,GAAG,EAAE,MAAM,MAAM,CAAA;QACjB,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;KAC7B,CAAA;IACD,KAAK,EAAE,YAAY,CAAA;CACpB;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAsCrD;AAiED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,EAAE,GAAG,EAAE,CAAA;CACZ;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA"}
|
package/build/comms/host.js
CHANGED
|
@@ -21,6 +21,7 @@ export function newCommsHost(params) {
|
|
|
21
21
|
const toolbar = handleToolbarChanges(box);
|
|
22
22
|
const appState = handleAppStateChanges(box);
|
|
23
23
|
handleInit(box);
|
|
24
|
+
handleReady(box); // Client-initiated connection (fixes HMR and context delay)
|
|
24
25
|
handleContextChanges(box);
|
|
25
26
|
handleNotificationChanges(box);
|
|
26
27
|
handleConnectChanges(box);
|
|
@@ -43,12 +44,37 @@ export function newCommsHost(params) {
|
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
46
|
function handleInit({ scope, params, clientId, connectionInitialized }) {
|
|
46
|
-
//
|
|
47
|
+
// Init message includes context so client has it immediately (no delay waiting for separate context message)
|
|
48
|
+
// The client uses a handler in scope.once, ensuring initData.next() runs BEFORE the ACK is sent.
|
|
49
|
+
// This means all RxJS subscriptions (which set up listeners) have processed before we get here.
|
|
47
50
|
params.windowChanges
|
|
48
|
-
.pipe(switchMap(window => send(window, 'ant/comms/init', { clientId }, { fireAndForget: false })), retry({
|
|
49
|
-
delay: (error, attempt) => of(error).pipe(delay(
|
|
51
|
+
.pipe(switchMap(window => send(window, 'ant/comms/init', { clientId, context: params.contextChanges.value }, { fireAndForget: false })), retry({
|
|
52
|
+
delay: (error, attempt) => of(error).pipe(delay(500), tap(error => console.info('retrying connection initialization', { attempt, error }))),
|
|
50
53
|
}), tap(() => console.info('connection initialized')), takeUntilClosed(scope))
|
|
51
|
-
.subscribe(
|
|
54
|
+
.subscribe(() => connectionInitialized.next(undefined));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Client-initiated connection handler for HMR recovery.
|
|
58
|
+
* When the client sends "ant/comms/ready", respond with clientId + current context.
|
|
59
|
+
*
|
|
60
|
+
* This is scoped to our specific iframe window (via post-robot's { window } option)
|
|
61
|
+
* to prevent multiple hosts from all responding to a single client's ready message.
|
|
62
|
+
*
|
|
63
|
+
* Note: For initial load, handleInit provides context with the init message.
|
|
64
|
+
* This handler is specifically for HMR where client JS restarts but iframe doesn't reload.
|
|
65
|
+
*/
|
|
66
|
+
function handleReady({ scope, params, clientId, connectionInitialized }) {
|
|
67
|
+
// Wait for window reference (from @load event), then set up HMR recovery listener
|
|
68
|
+
// The listener is scoped to our specific iframe window
|
|
69
|
+
params.windowChanges.pipe(filter(Boolean), take(1), takeUntilClosed(scope)).subscribe((iframeWindow) => {
|
|
70
|
+
const canceller = on('ant/comms/ready', { window: iframeWindow }, () => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
console.info('ready message received (client-initiated, HMR recovery)');
|
|
72
|
+
// Small delay to ensure client's RxJS subscriptions have processed after receiving response
|
|
73
|
+
setTimeout(() => connectionInitialized.next(undefined), 50);
|
|
74
|
+
return { clientId, context: params.contextChanges.value };
|
|
75
|
+
}));
|
|
76
|
+
scope.add({ unsubscribe: () => canceller.cancel() });
|
|
77
|
+
});
|
|
52
78
|
}
|
|
53
79
|
function handleNotificationChanges({ scope, params, clientId }) {
|
|
54
80
|
scope
|
|
@@ -121,9 +147,11 @@ function handleToolbarChanges({ scope, clientId, connectionInitialized, params }
|
|
|
121
147
|
return Object.assign(toolbar.asObservable(), {
|
|
122
148
|
get: () => toolbar.value,
|
|
123
149
|
set: {
|
|
124
|
-
search: (value) =>
|
|
125
|
-
|
|
126
|
-
|
|
150
|
+
search: (value) => {
|
|
151
|
+
return combineLatest([params.windowChanges, connectionInitialized])
|
|
152
|
+
.pipe(take(1), switchMap(([source]) => send(source, `ant/${clientId}/toolbar/search`, { value })))
|
|
153
|
+
.forEach(identity);
|
|
154
|
+
},
|
|
127
155
|
},
|
|
128
156
|
});
|
|
129
157
|
}
|
|
@@ -152,8 +180,8 @@ function installSignalObservers(signal, { scope, params }) {
|
|
|
152
180
|
const unsubscribe = signal.receive((s) => {
|
|
153
181
|
var _a;
|
|
154
182
|
if (s.observe && !subscription.closed) {
|
|
155
|
-
const { actions, id, random, type } = s.observe;
|
|
156
|
-
const unobserve = params.newSignalObserver(type, id, actions !== null && actions !== void 0 ? actions : [...changes], signal.send);
|
|
183
|
+
const { actions, id, random, type, scope: observeScope } = s.observe;
|
|
184
|
+
const unobserve = params.newSignalObserver(type, id, actions !== null && actions !== void 0 ? actions : [...changes], signal.send, observeScope);
|
|
157
185
|
Object.assign(observers, { [random]: unobserve });
|
|
158
186
|
}
|
|
159
187
|
else if (s.unobserve) {
|
package/build/comms/models.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface Context {
|
|
|
18
18
|
code: string;
|
|
19
19
|
} | null;
|
|
20
20
|
darkMode?: boolean | null;
|
|
21
|
-
selectedLabels
|
|
21
|
+
selectedLabels?: LabelFilterState;
|
|
22
22
|
}
|
|
23
23
|
export interface ToolbarItem {
|
|
24
24
|
icon: string;
|
|
@@ -28,6 +28,7 @@ export interface ToolbarItem {
|
|
|
28
28
|
}
|
|
29
29
|
export interface Toolbar {
|
|
30
30
|
title?: string;
|
|
31
|
+
subtitle?: string;
|
|
31
32
|
search: {
|
|
32
33
|
enabled: boolean;
|
|
33
34
|
input: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/comms/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAA+B;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,mCAAiC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,mCAAiC;AAC7D,OAAO,KAAK,EAAE,IAAI,EAAE,gCAA8B;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,gCAA8B;AAElD,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAC1B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;IAC7B,GAAG,CAAC,EAAE;QAAE,IAAI,EAAE,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AAM,CAAA;IACjB,MAAM,EAAE;QACN,OAAO,EAAE,OAAO,CAAA;QAChB,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,IAAI,EAAE,WAAW,EAAE,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;AAEjF,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,qBAAqB,KAAK,WAAW,CAAC,OAAO,CAAC,CAAA;IAC3D;;;;OAIG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,CAAC,EAAE,IAAI,KAAK,WAAW,CAAC,OAAO,CAAC,CAAA;IACvE,IAAI,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,CAAA;IAChC,SAAS,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,WAAW,CAAC,OAAO,CAAC,CAAA;CAC5D;AAED,eAAO,MAAM,iBAAiB,kDAAmD,CAAA;AACjF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,CAAA;AAE1H,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAA;IACtC,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
package/build/comms/signal.d.ts
CHANGED
|
@@ -4,10 +4,12 @@ import type { Column } from "../services/ColumnService";
|
|
|
4
4
|
import type { DmsFile } from "../services/DmsService";
|
|
5
5
|
import type { License } from "../services/LicenseService";
|
|
6
6
|
import type { Project } from "../services/ProjectService";
|
|
7
|
+
import type { ImportProgressEvent } from "../services/RecordService";
|
|
7
8
|
import type { SbsRecord } from "../services/SbsService";
|
|
8
9
|
import type { Table } from "../services/TableService";
|
|
9
10
|
import type { Task, TaskAppendix } from "../services/TaskService";
|
|
10
11
|
import type { User } from "../services/UserService";
|
|
12
|
+
import type { JobProgressEvent, LimitChangeEvent } from "../types";
|
|
11
13
|
export declare const changes: readonly ["created", "updated", "deleted", "trashed", "restored"];
|
|
12
14
|
export type Change = typeof changes[number];
|
|
13
15
|
/**
|
|
@@ -28,13 +30,12 @@ export type Change = typeof changes[number];
|
|
|
28
30
|
*
|
|
29
31
|
* NOTE: Prefer to add non-truthy/falsey values in order to support the above pattern-matching behavior.
|
|
30
32
|
*/
|
|
31
|
-
export interface Cause<T
|
|
32
|
-
id: string;
|
|
33
|
-
}> {
|
|
33
|
+
export interface Cause<T = any> {
|
|
34
34
|
id: string;
|
|
35
35
|
action?: Change;
|
|
36
|
-
data?: Partial<T
|
|
37
|
-
|
|
36
|
+
data?: Partial<T>;
|
|
37
|
+
meta?: {
|
|
38
|
+
source: 'resource' | 'local' | 'timeseries';
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
export type TaskLike = Pick<Task, 'id'>;
|
|
@@ -67,6 +68,18 @@ interface Navigate {
|
|
|
67
68
|
} | NavigateToApp;
|
|
68
69
|
method?: 'push' | 'replace';
|
|
69
70
|
}
|
|
71
|
+
export interface DmsFileBatchChange {
|
|
72
|
+
id: string;
|
|
73
|
+
action: string;
|
|
74
|
+
data: Partial<DmsFile> & {
|
|
75
|
+
id: string;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export interface DmsFileBatchSignal {
|
|
79
|
+
type: 'dmsFileBatch';
|
|
80
|
+
changes: DmsFileBatchChange[];
|
|
81
|
+
actor_id: string | null;
|
|
82
|
+
}
|
|
70
83
|
export interface ChangeSignal {
|
|
71
84
|
user?: Cause<User>;
|
|
72
85
|
license?: Cause<License>;
|
|
@@ -75,6 +88,8 @@ export interface ChangeSignal {
|
|
|
75
88
|
sbs?: Cause<SbsRecord>;
|
|
76
89
|
table?: Cause<Table>;
|
|
77
90
|
column?: Cause<Column>;
|
|
91
|
+
dmsFile?: Cause<DmsFile>;
|
|
92
|
+
projectTask?: Cause<Task>;
|
|
78
93
|
}
|
|
79
94
|
/**
|
|
80
95
|
* This is the core message that can be sent and received by host and client. It made to be is simple to add your own ones.
|
|
@@ -92,8 +107,9 @@ export interface Signal extends ChangeSignal {
|
|
|
92
107
|
};
|
|
93
108
|
navigate?: Navigate;
|
|
94
109
|
select?: {
|
|
95
|
-
project?: string;
|
|
96
|
-
task?: string;
|
|
110
|
+
project?: string | null;
|
|
111
|
+
task?: string | null;
|
|
112
|
+
sbs?: string | null;
|
|
97
113
|
};
|
|
98
114
|
notepad?: {
|
|
99
115
|
action: boolean | 'toggle';
|
|
@@ -110,15 +126,95 @@ export interface Signal extends ChangeSignal {
|
|
|
110
126
|
};
|
|
111
127
|
ping?: true;
|
|
112
128
|
pong?: true;
|
|
129
|
+
dmsFileBatch?: DmsFileBatchSignal;
|
|
113
130
|
observe?: {
|
|
114
131
|
random: string;
|
|
115
|
-
type: keyof ChangeSignal;
|
|
116
|
-
id
|
|
132
|
+
type: keyof ChangeSignal | (string & {});
|
|
133
|
+
id?: string;
|
|
117
134
|
actions?: Change[];
|
|
135
|
+
scope?: ('project' | 'license')[];
|
|
118
136
|
};
|
|
119
137
|
unobserve?: {
|
|
120
138
|
random: string;
|
|
121
139
|
};
|
|
140
|
+
/**
|
|
141
|
+
* Import progress events relayed from WebSocket
|
|
142
|
+
* Sent by ant-os when async import progress is received
|
|
143
|
+
*/
|
|
144
|
+
importProgress?: ImportProgressEvent;
|
|
145
|
+
/**
|
|
146
|
+
* Generic job progress events relayed from WebSocket
|
|
147
|
+
* Sent by ant-os when async job progress is received (generation, export, validation, etc.)
|
|
148
|
+
*/
|
|
149
|
+
jobProgress?: JobProgressEvent;
|
|
150
|
+
/**
|
|
151
|
+
* Resource limit change events relayed from WebSocket
|
|
152
|
+
* Sent by ant-os when resource limits change (record created/deleted, project created, etc.)
|
|
153
|
+
*/
|
|
154
|
+
limitChange?: LimitChangeEvent;
|
|
155
|
+
/**
|
|
156
|
+
* Request ant-os to subscribe to an Echo channel on behalf of the app.
|
|
157
|
+
* Events received on the channel will be relayed back via signals.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* // Subscribe to table limit changes
|
|
162
|
+
* host.signal({
|
|
163
|
+
* subscribeChannel: {
|
|
164
|
+
* channel: `App.Table.${tableId}.Limits`,
|
|
165
|
+
* events: ['limit.change']
|
|
166
|
+
* }
|
|
167
|
+
* })
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
subscribeChannel?: {
|
|
171
|
+
/** The Echo channel name (e.g., "App.Table.{id}.Limits") */
|
|
172
|
+
channel: string;
|
|
173
|
+
/** Event names to listen for on this channel */
|
|
174
|
+
events: string[];
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Request ant-os to unsubscribe from an Echo channel.
|
|
178
|
+
*/
|
|
179
|
+
unsubscribeChannel?: {
|
|
180
|
+
/** The Echo channel name to unsubscribe from */
|
|
181
|
+
channel: string;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Arbitrary entity change signals for app-defined resource types.
|
|
185
|
+
* Observed via `signal.with('homeowner', id, actions, scope)`.
|
|
186
|
+
* Echo-backed through a generic `App.Project.{id}.Resources` channel.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```typescript
|
|
190
|
+
* signal.send({ resource: { homeowner: { id: '123', action: 'updated' } } })
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
193
|
+
resource?: Record<string, Cause>;
|
|
194
|
+
/**
|
|
195
|
+
* Request ant-os to open an app in split-screen mode alongside the current app.
|
|
196
|
+
* The current app stays in pane 0; the requested app opens in pane 1 by default.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```typescript
|
|
200
|
+
* // Open app by ID in a vertical (side-by-side) split
|
|
201
|
+
* signal.send({ openSplit: { app: { id: 'some-app-id' } } })
|
|
202
|
+
*
|
|
203
|
+
* // Open app by title in a horizontal (stacked) split on the left pane
|
|
204
|
+
* signal.send({ openSplit: { app: { title: 'My App' }, layout: 'h', pane: 0 } })
|
|
205
|
+
* ```
|
|
206
|
+
*/
|
|
207
|
+
openSplit?: {
|
|
208
|
+
/** App to open in the split pane — resolve by id or title (case-insensitive) */
|
|
209
|
+
app: {
|
|
210
|
+
id?: string;
|
|
211
|
+
title?: string;
|
|
212
|
+
};
|
|
213
|
+
/** Which pane: 0 = left/top, 1 = right/bottom. Defaults to 1. */
|
|
214
|
+
pane?: 0 | 1;
|
|
215
|
+
/** Split direction: 'v' = side-by-side (default), 'h' = stacked */
|
|
216
|
+
layout?: 'h' | 'v';
|
|
217
|
+
};
|
|
122
218
|
}
|
|
123
219
|
export interface SendSignal {
|
|
124
220
|
(...value: Signal[]): Promise<unknown>;
|
|
@@ -133,20 +229,24 @@ export type Unsubscribe = () => void;
|
|
|
133
229
|
export interface SignalReceiver<S = Signal> {
|
|
134
230
|
/**
|
|
135
231
|
* The Signal type is simplified to a multi-prop object, but you will receive multiple single-prop objects.
|
|
232
|
+
* @param next callback receives the signal data and metadata
|
|
136
233
|
*/
|
|
137
234
|
receive: (next: (signal: S) => void) => Unsubscribe;
|
|
138
235
|
/**
|
|
139
236
|
* Creates a filter for the next receive.
|
|
140
|
-
*
|
|
141
|
-
* @param
|
|
237
|
+
* Supports both known ChangeSignal types (Echo-backed) and arbitrary entity types (via `signal.change`).
|
|
238
|
+
* @param type the resource type to listen for — known types or arbitrary strings like 'homeowner'
|
|
239
|
+
* @param id optional resource id - omit for wildcard (all resources of this type)
|
|
142
240
|
* @param actions if no action is supplied, you will receive all actions
|
|
241
|
+
* @param scope optional array of specificity for wildcards - default undefined resolves to ['project', 'license']
|
|
143
242
|
*/
|
|
144
|
-
with: <K extends keyof ChangeSignal>(type: K, id
|
|
243
|
+
with: <K extends keyof ChangeSignal | (string & {})>(type: K, id?: string, actions?: Change[], scope?: ('project' | 'license')[]) => SignalReceiver<K extends keyof ChangeSignal ? ChangeSignal[K] : Cause>;
|
|
145
244
|
}
|
|
146
245
|
interface NewSignalInput {
|
|
147
246
|
receiver: Observable<Message<Array<Signal>>>;
|
|
148
247
|
send: (data: Signal[]) => Promise<unknown>;
|
|
149
248
|
}
|
|
150
249
|
export declare function newSignaler(input: NewSignalInput): SignalSender & SignalReceiver;
|
|
250
|
+
export declare const changeSignalKeys: ReadonlySet<string>;
|
|
151
251
|
export {};
|
|
152
252
|
//# sourceMappingURL=signal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../src/comms/signal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,kCAAgC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,+BAA6B;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,mCAAiC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,mCAAiC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA6B;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,iCAA+B;AACpD,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,gCAA8B;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,gCAA8B;
|
|
1
|
+
{"version":3,"file":"signal.d.ts","sourceRoot":"","sources":["../../src/comms/signal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,kCAAgC;A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CAAA;AAEpC,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM;IACxC;;;OAGG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,KAAK,WAAW,CAAA;IAEnD;;;;;;;OAOG;IACH,IAAI,EAAE,CAAC,CAAC,SAAS,MAAM,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC,EAAE,KAAK,cAAc,CAAC,CAAC,SAAS,MAAM,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAA;CAC5M;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IAC5C,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;CAC3C;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,YAAY,GAAG,cAAc,CAkBhF;AAED,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAA2H,CAAA"}
|
package/build/comms/signal.js
CHANGED
|
@@ -7,7 +7,7 @@ export function newSignaler(input) {
|
|
|
7
7
|
const data = Array.of();
|
|
8
8
|
const toSingleEntrySignals = (s) => Object.entries(s).map(([key, value]) => ({ [key]: value }));
|
|
9
9
|
const send = (...signal) => {
|
|
10
|
-
const values = data
|
|
10
|
+
const values = [...data, ...signal].flatMap(toSingleEntrySignals);
|
|
11
11
|
data.splice(0, data.length);
|
|
12
12
|
return input.send(values);
|
|
13
13
|
};
|
|
@@ -21,21 +21,37 @@ export function newSignaler(input) {
|
|
|
21
21
|
const receiver = newReceiver(input, send);
|
|
22
22
|
return Object.assign(send, builder, receiver);
|
|
23
23
|
}
|
|
24
|
+
export const changeSignalKeys = new Set(['user', 'license', 'project', 'task', 'sbs', 'table', 'column', 'dmsFile', 'projectTask']);
|
|
24
25
|
function newReceiver(input, send) {
|
|
25
26
|
const observable = input.receiver.pipe(concatMap(e => e.data));
|
|
26
|
-
const newChild = (type, id, actions) => ({
|
|
27
|
+
const newChild = (type, id, actions, scope) => ({
|
|
27
28
|
with: newChild,
|
|
28
29
|
receive: (next) => {
|
|
30
|
+
const isKnownType = changeSignalKeys.has(type);
|
|
29
31
|
const subscription = new Subscription();
|
|
32
|
+
const setupSubscription = () => {
|
|
33
|
+
const child = observable
|
|
34
|
+
.pipe(concatMap((s) => {
|
|
35
|
+
var _a;
|
|
36
|
+
const cause = isKnownType
|
|
37
|
+
? s[type]
|
|
38
|
+
: (_a = s.resource) === null || _a === void 0 ? void 0 : _a[type];
|
|
39
|
+
if (!cause)
|
|
40
|
+
return [];
|
|
41
|
+
if (id && cause.id !== id)
|
|
42
|
+
return [];
|
|
43
|
+
if ((actions === null || actions === void 0 ? void 0 : actions.length) && (!cause.action || !actions.includes(cause.action)))
|
|
44
|
+
return [];
|
|
45
|
+
return [cause];
|
|
46
|
+
}))
|
|
47
|
+
.subscribe(data => next(data));
|
|
48
|
+
subscription.add(child);
|
|
49
|
+
};
|
|
30
50
|
const random = crypto.randomUUID();
|
|
31
|
-
|
|
51
|
+
// Send observe signal to backend and setup local subscription
|
|
52
|
+
send({ observe: { type, id, actions, scope, random } }).then(() => {
|
|
32
53
|
if (!subscription.closed) {
|
|
33
|
-
|
|
34
|
-
.pipe(concatMap(s => s[type] && s[type].id === id && (!(actions === null || actions === void 0 ? void 0 : actions.length) || actions.includes(s[type].action))
|
|
35
|
-
? [s[type]]
|
|
36
|
-
: []))
|
|
37
|
-
.subscribe(next);
|
|
38
|
-
subscription.add(child);
|
|
54
|
+
setupSubscription();
|
|
39
55
|
subscription.add(() => send({ unobserve: { random } }));
|
|
40
56
|
}
|
|
41
57
|
});
|
package/build/index.d.ts
CHANGED
|
@@ -3,28 +3,31 @@ export { type AntConnect, newAntConnectChain, type PartialAntConnect } from './A
|
|
|
3
3
|
export { AntHttpClient, newAntHttpClient, type NewAntHttpClientConfig } from './AntHttpClient';
|
|
4
4
|
export { type Client, newCommsClient } from './comms/client';
|
|
5
5
|
export { newNotepad } from './comms/client';
|
|
6
|
-
export { type Host, type HostParams, newCommsHost } from './comms/host';
|
|
6
|
+
export { type Host, type HostParams, newCommsHost, type SignalObserverFactory } from './comms/host';
|
|
7
7
|
export type { Context, Notepad, NotepadVisibilityTabs, Notification, Notifications, Toolbar, ToolbarItem, } from './comms/models';
|
|
8
8
|
export type { Cause, Change, ChangeSignal, DmsGallery, NavigateToApp, RouteSignal, SendSignal, ShowOverlay, Signal, SignalReceiver, SignalSender, TaskLike, } from './comms/signal';
|
|
9
|
-
export { changes, isDmsGallery } from './comms/signal';
|
|
9
|
+
export { changes, changeSignalKeys, isDmsGallery } from './comms/signal';
|
|
10
10
|
export { clone, newScope, type Scope } from './comms/utils';
|
|
11
11
|
export type { App, AppCategory, AppFormData, AppMedia, AppMediaFormData, AppTemplate, AppVersion, AppVersionFormData, AttachVersionToAppFormData, CategorizedList, FetchAppsParams, ListApp, Subscriber, UpdateAppMediaFormData, } from './services/AppService';
|
|
12
|
-
export type { Column, ColumnRequestBody } from './services/ColumnService';
|
|
13
|
-
export type { DmsFile, FileData, UploadFinishPayload } from './services/DmsService';
|
|
12
|
+
export type { Column, ColumnRequestBody, ColumnType, DuplicateColumnValuesError } from './services/ColumnService';
|
|
13
|
+
export type { DmsBulkDeleteResponse, DmsBulkLabelResponse, DmsBulkRestoreResponse, DmsCheckDuplicatesResponse, DmsDownloadUrlResponse, DmsDuplicateAction, DmsDuplicateInfo, DmsEffectivePermissionsResponse, DmsFile, DmsFilePermissions, DmsLabelAttachResponse, DmsLabelDetachResponse, DmsLabelSyncResponse, DmsListParams, DmsPaginatedResponse, DmsPermissionChainItem, DmsSearchParams, DmsSortColumn, DmsSortDirection, FileData, PaginationLinks, PaginationMeta, UploadFinishPayload, } from './services/DmsService';
|
|
14
14
|
export type { AttachTarget, CreateLabelPayload, Label, LabelFilterParams, LabelFilterState, LabelOperator, LabelTargetType, ResourceLabel, ResourceType, UpdateLabelPayload, } from './services/LabelService';
|
|
15
|
-
export type { InviteUserData, License, LicensePermissionMap, LicenseQueryParams, LicenseUsersResponse } from './services/LicenseService';
|
|
15
|
+
export type { InviteUserData, License, LicenseLimits, LicensePermissionMap, LicenseQueryParams, LicenseUserAccess, LicenseUserProjectAccess, LicenseUserResourcePermission, LicenseUserRoleDetail, LicenseUsersResponse } from './services/LicenseService';
|
|
16
16
|
export type { NotificationEvent, NotificationFrequency, NotificationRule, NotificationTopic } from './services/Notifications/NotificationService';
|
|
17
17
|
export type { ProjectMember } from './services/ProjectService';
|
|
18
|
-
export type { FileResponse, Project, ProjectPermissionMap, ProjectQueryParams, ProjectRequestBody, ProjectShort } from './services/ProjectService';
|
|
19
|
-
export type {
|
|
18
|
+
export type { FileResponse, Project, ProjectLimits, ProjectPermissionMap, ProjectQueryParams, ProjectRequestBody, ProjectShort } from './services/ProjectService';
|
|
19
|
+
export type { ApplyPropagationTemplateBody, ApplyPropagationTemplateResponse, CreatePropagationTemplateBody, CreatePropagationTemplateItemBody, PropagationResourceType, PropagationRun, PropagationRunItem, PropagationRunItemStatus, PropagationRunStatus, PropagationService, PropagationTemplate, PropagationTemplateItem, PropagationTemplateItemPayload, PropagationTemplateItemPayloadApp, PropagationTemplateItemPayloadTable, ReorderPropagationTemplateItemsBody, UpdatePropagationTemplateBody, UpdatePropagationTemplateItemBody, } from './services/PropagationService';
|
|
20
|
+
export type { BatchPermissionData, Permission, PermissionData, PermissionGroup, PermissionGroupItem, PermissionResourceType, UserPermission, UserRoleAndPermission, } from './services/RBAC/PermissionService';
|
|
20
21
|
export type { RBACRoleService, Role, RoleData, RoleUpdate, UserRoleData } from './services/RBAC/RoleService';
|
|
21
|
-
export type {
|
|
22
|
+
export type { RecordLockInfo } from './services/RecordLockService';
|
|
23
|
+
export type { Base64Container, BulkUpdateRequest, BulkUpdateResponse, ImportAsyncResponse, ImportProgressEvent, ImportProgressStatus, ImportResponse, ImportSyncResponse, RecordCreateRequest, RecordDeleteRequest, RecordsImportData, } from './services/RecordService';
|
|
24
|
+
export { isAsyncImport } from './services/RecordService';
|
|
22
25
|
export type { Reseller, ResellerForm, ResellerService } from './services/ResellerService';
|
|
23
|
-
export type { SbsRecord, SbsRecordUpdateRequest } from './services/SbsService';
|
|
26
|
+
export type { SbsFiltersQueryParams, SbsRecord, SbsRecordUpdateRequest } from './services/SbsService';
|
|
24
27
|
export type { PublicationScript, Script, ScriptItem } from './services/ScriptsService';
|
|
25
28
|
export type { ColumnRelation, RelatedEntity, StoreRelationRequestData } from './services/Table/ColumnRelationService';
|
|
26
29
|
export type { ColumnState, QueryState, TableQuery, TableQueryColumn, TableQueryService, TableQueryShort, } from './services/TableQueryService';
|
|
27
|
-
export type { Stats, Table, TableList, TablePermissions, TableRecord, TableRecords, TableRelation, TableRevision, } from './services/TableService';
|
|
30
|
+
export type { SingleTableQuery, Stats, Table, TableLimits, TableList, TablePermissions, TableRecord, TableRecords, TableRelation, TableRevision, TablesQuery, } from './services/TableService';
|
|
28
31
|
export type { Task, TaskActivity, TaskAppendix, TaskCheck, TaskCheckUpdateRequest, TaskDetail, TaskPriority, TaskRelation, TaskRequestBody, TaskService, TaskStatus, } from './services/TaskService';
|
|
29
32
|
export { taskStatuses } from './services/TaskService';
|
|
30
33
|
export { defaultGetTaskQuery, defaultGetTasksQuery } from './services/TaskServiceQueries';
|
|
@@ -34,6 +37,7 @@ export type { ActionOperation, AuthType, ConfigResponse, HTTPMethod, } from './s
|
|
|
34
37
|
export type { Event } from './services/Webhook/EventService';
|
|
35
38
|
export type { ExecutionHistoryFilters, TriggerExecutionHistory, TriggerExecutionHistoryDetail, } from './services/Webhook/TriggerHistoryService';
|
|
36
39
|
export type { Trigger, TriggerableType, TriggerExecutionResult, TriggerRequestBody, } from './services/Webhook/TriggerService';
|
|
40
|
+
export type { DmsFileAction, DmsFileBatchChangeItem, DmsFileChangedEvent, DmsFileEventData, DmsFilesBatchChangedEvent, DmsWebSocketEvent, } from './services/Websockets/DmsEvents';
|
|
37
41
|
export type { Blueprint, BlueprintRequest, BlueprintResult } from './services/WorkflowService';
|
|
38
42
|
export * from './types';
|
|
39
43
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,KAAK,UAAU,EAAE,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC1F,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAC9F,OAAO,EAAE,KAAK,MAAM,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,KAAK,UAAU,EAAE,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC1F,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAC9F,OAAO,EAAE,KAAK,MAAM,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OA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wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,IAAI,EACJ,SAAS,GACV,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EACV,eAAe,EACf,QAAQ,EACR,cAAc,EACd,UAAU,GACX,MAAM,kCAAkC,CAAA;AAEzC,YAAY,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAA;AAE5D,YAAY,EACV,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,0CAA0C,CAAA;AAEjD,YAAY,EACV,OAAO,EACP,eAAe,EACf,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,mCAAmC,CAAA;AAE1C,YAAY,EACV,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,iCAAiC,CAAA;AAExC,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE9F,cAAc,SAAS,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -4,8 +4,9 @@ export { AntHttpClient, newAntHttpClient } from './AntHttpClient';
|
|
|
4
4
|
export { newCommsClient } from './comms/client';
|
|
5
5
|
export { newNotepad } from './comms/client';
|
|
6
6
|
export { newCommsHost } from './comms/host';
|
|
7
|
-
export { changes, isDmsGallery } from './comms/signal';
|
|
7
|
+
export { changes, changeSignalKeys, isDmsGallery } from './comms/signal';
|
|
8
8
|
export { clone, newScope } from './comms/utils';
|
|
9
|
+
export { isAsyncImport } from './services/RecordService';
|
|
9
10
|
export { taskStatuses } from './services/TaskService';
|
|
10
11
|
export { defaultGetTaskQuery, defaultGetTasksQuery } from './services/TaskServiceQueries';
|
|
11
12
|
export * from './types';
|