entity-client 1.0.14 → 1.0.16
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/EntityAppServerApi.d.ts +368 -416
- package/dist/EntityServerApi.d.ts +193 -216
- package/dist/client/base.d.ts +26 -40
- package/dist/client/base.js +1 -1
- package/dist/client/base.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/mixins/app/plugins/alimtalk.d.ts +23 -26
- package/dist/mixins/app/plugins/friendtalk.d.ts +23 -26
- package/dist/mixins/app/plugins/holidays.d.ts +23 -26
- package/dist/mixins/app/plugins/identity.d.ts +23 -26
- package/dist/mixins/app/plugins/llm.d.ts +23 -26
- package/dist/mixins/app/plugins/ocr.d.ts +23 -26
- package/dist/mixins/app/plugins/pg.d.ts +23 -26
- package/dist/mixins/app/plugins/push.d.ts +23 -26
- package/dist/mixins/app/plugins/sms.d.ts +23 -26
- package/dist/mixins/app/plugins/taxinvoice.d.ts +23 -26
- package/dist/mixins/app/routes/account.d.ts +23 -26
- package/dist/mixins/app/routes/board.d.ts +23 -26
- package/dist/mixins/app/routes/email-verify.d.ts +23 -26
- package/dist/mixins/app/routes/oauth.d.ts +23 -26
- package/dist/mixins/app/routes/password-reset.d.ts +23 -26
- package/dist/mixins/app/routes/two-factor.d.ts +23 -26
- package/dist/mixins/server/admin.d.ts +29 -32
- package/dist/mixins/server/admin.js +1 -1
- package/dist/mixins/server/admin.js.map +2 -2
- package/dist/mixins/server/auth.d.ts +26 -28
- package/dist/mixins/server/auth.js +1 -1
- package/dist/mixins/server/auth.js.map +2 -2
- package/dist/mixins/server/entity.d.ts +23 -26
- package/dist/mixins/server/entity.js +1 -1
- package/dist/mixins/server/entity.js.map +2 -2
- package/dist/mixins/server/file.d.ts +23 -26
- package/dist/mixins/server/file.js +1 -1
- package/dist/mixins/server/file.js.map +2 -2
- package/dist/mixins/server/push.d.ts +23 -26
- package/dist/mixins/server/smtp.d.ts +23 -26
- package/dist/mixins/server/smtp.js +1 -1
- package/dist/mixins/server/smtp.js.map +2 -2
- package/dist/mixins/server/transaction.d.ts +23 -26
- package/dist/mixins/server/transaction.js +1 -1
- package/dist/mixins/server/transaction.js.map +2 -2
- package/dist/mixins/server/utils.d.ts +23 -26
- package/dist/mixins/server/utils.js +1 -1
- package/dist/mixins/server/utils.js.map +2 -2
- package/dist/react.js +1 -1
- package/dist/react.js.map +3 -3
- package/package.json +1 -1
|
@@ -24,30 +24,30 @@ export declare function PgMixin<TBase extends GConstructor<EntityServerClientBas
|
|
|
24
24
|
csrfEnabled: boolean;
|
|
25
25
|
csrfHeaderName: string;
|
|
26
26
|
csrfCookieName: string;
|
|
27
|
-
|
|
27
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
28
28
|
activeTxId: string | null;
|
|
29
29
|
keepSession: boolean;
|
|
30
30
|
refreshBuffer: number;
|
|
31
31
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
32
32
|
onSessionExpired?: (error: Error) => void;
|
|
33
33
|
onHealthChange?: (online: boolean) => void;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
sessionRefreshToken: string | null;
|
|
35
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
36
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
37
|
+
healthTickPromise: Promise<unknown> | null;
|
|
38
38
|
realtimeEnabled: boolean;
|
|
39
39
|
realtimePath: string;
|
|
40
40
|
realtimeAutoConnect: boolean;
|
|
41
41
|
realtimeAutoReconnect: boolean;
|
|
42
42
|
realtimeReconnectDelayMs: number;
|
|
43
43
|
realtimeStatus: import("../../../types.js").RealtimeConnectionStatus;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
realtimeSocket: WebSocket | null;
|
|
45
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
46
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
47
|
+
realtimeShouldReconnect: boolean;
|
|
48
|
+
realtimeMessageListeners: Set<import("../../../types.js").RealtimeMessageListener>;
|
|
49
|
+
realtimeStatusListeners: Set<import("../../../types.js").RealtimeStatusListener>;
|
|
50
|
+
realtimeEventListeners: Map<string, Set<import("../../../types.js").RealtimeMessageListener>>;
|
|
51
51
|
configure(options: Partial<import("../../../types.js").EntityServerClientOptions>): void;
|
|
52
52
|
setToken(token: string): void;
|
|
53
53
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -68,21 +68,21 @@ export declare function PgMixin<TBase extends GConstructor<EntityServerClientBas
|
|
|
68
68
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
69
69
|
startHealthTick(intervalMs?: number): void;
|
|
70
70
|
stopHealthTick(): void;
|
|
71
|
-
|
|
71
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
72
72
|
access_token: string;
|
|
73
73
|
expires_in: number;
|
|
74
74
|
}>): void;
|
|
75
|
-
|
|
75
|
+
clearRefreshTimer(): void;
|
|
76
76
|
stopKeepSession(): void;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
applyRealtimeOptions(options?: boolean | import("../../../types.js").RealtimeClientOptions): void;
|
|
78
|
+
buildRealtimeUrl(): string;
|
|
79
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
80
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
81
|
+
clearRealtimeReconnectTimer(): void;
|
|
82
|
+
setRealtimeStatus(status: import("../../../types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
83
|
+
applyCsrfHealth(): void;
|
|
84
84
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
85
|
-
get
|
|
85
|
+
get reqOpts(): import("../../../client/request.js").RequestOptions;
|
|
86
86
|
get http(): {
|
|
87
87
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
88
88
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -90,12 +90,9 @@ export declare function PgMixin<TBase extends GConstructor<EntityServerClientBas
|
|
|
90
90
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
91
91
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
92
92
|
};
|
|
93
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
93
94
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
94
95
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
95
96
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
96
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
97
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
98
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
99
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
100
97
|
};
|
|
101
98
|
} & TBase;
|
|
@@ -20,30 +20,30 @@ export declare function AppPushMixin<TBase extends GConstructor<EntityServerClie
|
|
|
20
20
|
csrfEnabled: boolean;
|
|
21
21
|
csrfHeaderName: string;
|
|
22
22
|
csrfCookieName: string;
|
|
23
|
-
|
|
23
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
24
24
|
activeTxId: string | null;
|
|
25
25
|
keepSession: boolean;
|
|
26
26
|
refreshBuffer: number;
|
|
27
27
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
28
28
|
onSessionExpired?: (error: Error) => void;
|
|
29
29
|
onHealthChange?: (online: boolean) => void;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
sessionRefreshToken: string | null;
|
|
31
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
32
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
33
|
+
healthTickPromise: Promise<unknown> | null;
|
|
34
34
|
realtimeEnabled: boolean;
|
|
35
35
|
realtimePath: string;
|
|
36
36
|
realtimeAutoConnect: boolean;
|
|
37
37
|
realtimeAutoReconnect: boolean;
|
|
38
38
|
realtimeReconnectDelayMs: number;
|
|
39
39
|
realtimeStatus: import("../../../types.js").RealtimeConnectionStatus;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
realtimeSocket: WebSocket | null;
|
|
41
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
42
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
43
|
+
realtimeShouldReconnect: boolean;
|
|
44
|
+
realtimeMessageListeners: Set<import("../../../types.js").RealtimeMessageListener>;
|
|
45
|
+
realtimeStatusListeners: Set<import("../../../types.js").RealtimeStatusListener>;
|
|
46
|
+
realtimeEventListeners: Map<string, Set<import("../../../types.js").RealtimeMessageListener>>;
|
|
47
47
|
configure(options: Partial<import("../../../types.js").EntityServerClientOptions>): void;
|
|
48
48
|
setToken(token: string): void;
|
|
49
49
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -64,21 +64,21 @@ export declare function AppPushMixin<TBase extends GConstructor<EntityServerClie
|
|
|
64
64
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
65
65
|
startHealthTick(intervalMs?: number): void;
|
|
66
66
|
stopHealthTick(): void;
|
|
67
|
-
|
|
67
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
68
68
|
access_token: string;
|
|
69
69
|
expires_in: number;
|
|
70
70
|
}>): void;
|
|
71
|
-
|
|
71
|
+
clearRefreshTimer(): void;
|
|
72
72
|
stopKeepSession(): void;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
applyRealtimeOptions(options?: boolean | import("../../../types.js").RealtimeClientOptions): void;
|
|
74
|
+
buildRealtimeUrl(): string;
|
|
75
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
76
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
77
|
+
clearRealtimeReconnectTimer(): void;
|
|
78
|
+
setRealtimeStatus(status: import("../../../types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
79
|
+
applyCsrfHealth(): void;
|
|
80
80
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
81
|
-
get
|
|
81
|
+
get reqOpts(): import("../../../client/request.js").RequestOptions;
|
|
82
82
|
get http(): {
|
|
83
83
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
84
84
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -86,12 +86,9 @@ export declare function AppPushMixin<TBase extends GConstructor<EntityServerClie
|
|
|
86
86
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
87
87
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
88
88
|
};
|
|
89
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
89
90
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
90
91
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
91
92
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
92
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
93
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
94
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
95
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
96
93
|
};
|
|
97
94
|
} & TBase;
|
|
@@ -18,30 +18,30 @@ export declare function SmsMixin<TBase extends GConstructor<EntityServerClientBa
|
|
|
18
18
|
csrfEnabled: boolean;
|
|
19
19
|
csrfHeaderName: string;
|
|
20
20
|
csrfCookieName: string;
|
|
21
|
-
|
|
21
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
22
22
|
activeTxId: string | null;
|
|
23
23
|
keepSession: boolean;
|
|
24
24
|
refreshBuffer: number;
|
|
25
25
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
26
26
|
onSessionExpired?: (error: Error) => void;
|
|
27
27
|
onHealthChange?: (online: boolean) => void;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
sessionRefreshToken: string | null;
|
|
29
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
30
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
31
|
+
healthTickPromise: Promise<unknown> | null;
|
|
32
32
|
realtimeEnabled: boolean;
|
|
33
33
|
realtimePath: string;
|
|
34
34
|
realtimeAutoConnect: boolean;
|
|
35
35
|
realtimeAutoReconnect: boolean;
|
|
36
36
|
realtimeReconnectDelayMs: number;
|
|
37
37
|
realtimeStatus: import("../../../types.js").RealtimeConnectionStatus;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
realtimeSocket: WebSocket | null;
|
|
39
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
40
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
41
|
+
realtimeShouldReconnect: boolean;
|
|
42
|
+
realtimeMessageListeners: Set<import("../../../types.js").RealtimeMessageListener>;
|
|
43
|
+
realtimeStatusListeners: Set<import("../../../types.js").RealtimeStatusListener>;
|
|
44
|
+
realtimeEventListeners: Map<string, Set<import("../../../types.js").RealtimeMessageListener>>;
|
|
45
45
|
configure(options: Partial<import("../../../types.js").EntityServerClientOptions>): void;
|
|
46
46
|
setToken(token: string): void;
|
|
47
47
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -62,21 +62,21 @@ export declare function SmsMixin<TBase extends GConstructor<EntityServerClientBa
|
|
|
62
62
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
63
63
|
startHealthTick(intervalMs?: number): void;
|
|
64
64
|
stopHealthTick(): void;
|
|
65
|
-
|
|
65
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
66
66
|
access_token: string;
|
|
67
67
|
expires_in: number;
|
|
68
68
|
}>): void;
|
|
69
|
-
|
|
69
|
+
clearRefreshTimer(): void;
|
|
70
70
|
stopKeepSession(): void;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
applyRealtimeOptions(options?: boolean | import("../../../types.js").RealtimeClientOptions): void;
|
|
72
|
+
buildRealtimeUrl(): string;
|
|
73
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
74
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
75
|
+
clearRealtimeReconnectTimer(): void;
|
|
76
|
+
setRealtimeStatus(status: import("../../../types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
77
|
+
applyCsrfHealth(): void;
|
|
78
78
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
79
|
-
get
|
|
79
|
+
get reqOpts(): import("../../../client/request.js").RequestOptions;
|
|
80
80
|
get http(): {
|
|
81
81
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
82
82
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -84,12 +84,9 @@ export declare function SmsMixin<TBase extends GConstructor<EntityServerClientBa
|
|
|
84
84
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
85
85
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
86
86
|
};
|
|
87
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
87
88
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
88
89
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
89
90
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
90
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
91
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
92
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
93
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
94
91
|
};
|
|
95
92
|
} & TBase;
|
|
@@ -22,30 +22,30 @@ export declare function TaxinvoiceMixin<TBase extends GConstructor<EntityServerC
|
|
|
22
22
|
csrfEnabled: boolean;
|
|
23
23
|
csrfHeaderName: string;
|
|
24
24
|
csrfCookieName: string;
|
|
25
|
-
|
|
25
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
26
26
|
activeTxId: string | null;
|
|
27
27
|
keepSession: boolean;
|
|
28
28
|
refreshBuffer: number;
|
|
29
29
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
30
30
|
onSessionExpired?: (error: Error) => void;
|
|
31
31
|
onHealthChange?: (online: boolean) => void;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
sessionRefreshToken: string | null;
|
|
33
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
34
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
35
|
+
healthTickPromise: Promise<unknown> | null;
|
|
36
36
|
realtimeEnabled: boolean;
|
|
37
37
|
realtimePath: string;
|
|
38
38
|
realtimeAutoConnect: boolean;
|
|
39
39
|
realtimeAutoReconnect: boolean;
|
|
40
40
|
realtimeReconnectDelayMs: number;
|
|
41
41
|
realtimeStatus: import("../../../types.js").RealtimeConnectionStatus;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
realtimeSocket: WebSocket | null;
|
|
43
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
44
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
45
|
+
realtimeShouldReconnect: boolean;
|
|
46
|
+
realtimeMessageListeners: Set<import("../../../types.js").RealtimeMessageListener>;
|
|
47
|
+
realtimeStatusListeners: Set<import("../../../types.js").RealtimeStatusListener>;
|
|
48
|
+
realtimeEventListeners: Map<string, Set<import("../../../types.js").RealtimeMessageListener>>;
|
|
49
49
|
configure(options: Partial<import("../../../types.js").EntityServerClientOptions>): void;
|
|
50
50
|
setToken(token: string): void;
|
|
51
51
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -66,21 +66,21 @@ export declare function TaxinvoiceMixin<TBase extends GConstructor<EntityServerC
|
|
|
66
66
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
67
67
|
startHealthTick(intervalMs?: number): void;
|
|
68
68
|
stopHealthTick(): void;
|
|
69
|
-
|
|
69
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
70
70
|
access_token: string;
|
|
71
71
|
expires_in: number;
|
|
72
72
|
}>): void;
|
|
73
|
-
|
|
73
|
+
clearRefreshTimer(): void;
|
|
74
74
|
stopKeepSession(): void;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
applyRealtimeOptions(options?: boolean | import("../../../types.js").RealtimeClientOptions): void;
|
|
76
|
+
buildRealtimeUrl(): string;
|
|
77
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
78
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
79
|
+
clearRealtimeReconnectTimer(): void;
|
|
80
|
+
setRealtimeStatus(status: import("../../../types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
81
|
+
applyCsrfHealth(): void;
|
|
82
82
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
83
|
-
get
|
|
83
|
+
get reqOpts(): import("../../../client/request.js").RequestOptions;
|
|
84
84
|
get http(): {
|
|
85
85
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
86
86
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -88,12 +88,9 @@ export declare function TaxinvoiceMixin<TBase extends GConstructor<EntityServerC
|
|
|
88
88
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
89
89
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
90
90
|
};
|
|
91
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
91
92
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
92
93
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
93
94
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
94
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
95
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
96
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
97
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
98
95
|
};
|
|
99
96
|
} & TBase;
|
|
@@ -20,30 +20,30 @@ export declare function AccountAppMixin<TBase extends GConstructor<EntityServerC
|
|
|
20
20
|
csrfEnabled: boolean;
|
|
21
21
|
csrfHeaderName: string;
|
|
22
22
|
csrfCookieName: string;
|
|
23
|
-
|
|
23
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
24
24
|
activeTxId: string | null;
|
|
25
25
|
keepSession: boolean;
|
|
26
26
|
refreshBuffer: number;
|
|
27
27
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
28
28
|
onSessionExpired?: (error: Error) => void;
|
|
29
29
|
onHealthChange?: (online: boolean) => void;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
sessionRefreshToken: string | null;
|
|
31
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
32
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
33
|
+
healthTickPromise: Promise<unknown> | null;
|
|
34
34
|
realtimeEnabled: boolean;
|
|
35
35
|
realtimePath: string;
|
|
36
36
|
realtimeAutoConnect: boolean;
|
|
37
37
|
realtimeAutoReconnect: boolean;
|
|
38
38
|
realtimeReconnectDelayMs: number;
|
|
39
39
|
realtimeStatus: import("../../../types.js").RealtimeConnectionStatus;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
realtimeSocket: WebSocket | null;
|
|
41
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
42
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
43
|
+
realtimeShouldReconnect: boolean;
|
|
44
|
+
realtimeMessageListeners: Set<import("../../../types.js").RealtimeMessageListener>;
|
|
45
|
+
realtimeStatusListeners: Set<import("../../../types.js").RealtimeStatusListener>;
|
|
46
|
+
realtimeEventListeners: Map<string, Set<import("../../../types.js").RealtimeMessageListener>>;
|
|
47
47
|
configure(options: Partial<import("../../../types.js").EntityServerClientOptions>): void;
|
|
48
48
|
setToken(token: string): void;
|
|
49
49
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -64,21 +64,21 @@ export declare function AccountAppMixin<TBase extends GConstructor<EntityServerC
|
|
|
64
64
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
65
65
|
startHealthTick(intervalMs?: number): void;
|
|
66
66
|
stopHealthTick(): void;
|
|
67
|
-
|
|
67
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
68
68
|
access_token: string;
|
|
69
69
|
expires_in: number;
|
|
70
70
|
}>): void;
|
|
71
|
-
|
|
71
|
+
clearRefreshTimer(): void;
|
|
72
72
|
stopKeepSession(): void;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
applyRealtimeOptions(options?: boolean | import("../../../types.js").RealtimeClientOptions): void;
|
|
74
|
+
buildRealtimeUrl(): string;
|
|
75
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
76
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
77
|
+
clearRealtimeReconnectTimer(): void;
|
|
78
|
+
setRealtimeStatus(status: import("../../../types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
79
|
+
applyCsrfHealth(): void;
|
|
80
80
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
81
|
-
get
|
|
81
|
+
get reqOpts(): import("../../../client/request.js").RequestOptions;
|
|
82
82
|
get http(): {
|
|
83
83
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
84
84
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -86,12 +86,9 @@ export declare function AccountAppMixin<TBase extends GConstructor<EntityServerC
|
|
|
86
86
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
87
87
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
88
88
|
};
|
|
89
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
89
90
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
90
91
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
91
92
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
92
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
93
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
94
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
95
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
96
93
|
};
|
|
97
94
|
} & TBase;
|
|
@@ -43,30 +43,30 @@ export declare function BoardMixin<TBase extends GConstructor<EntityServerClient
|
|
|
43
43
|
csrfEnabled: boolean;
|
|
44
44
|
csrfHeaderName: string;
|
|
45
45
|
csrfCookieName: string;
|
|
46
|
-
|
|
46
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
47
47
|
activeTxId: string | null;
|
|
48
48
|
keepSession: boolean;
|
|
49
49
|
refreshBuffer: number;
|
|
50
50
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
51
51
|
onSessionExpired?: (error: Error) => void;
|
|
52
52
|
onHealthChange?: (online: boolean) => void;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
sessionRefreshToken: string | null;
|
|
54
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
55
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
56
|
+
healthTickPromise: Promise<unknown> | null;
|
|
57
57
|
realtimeEnabled: boolean;
|
|
58
58
|
realtimePath: string;
|
|
59
59
|
realtimeAutoConnect: boolean;
|
|
60
60
|
realtimeAutoReconnect: boolean;
|
|
61
61
|
realtimeReconnectDelayMs: number;
|
|
62
62
|
realtimeStatus: import("../../../types.js").RealtimeConnectionStatus;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
realtimeSocket: WebSocket | null;
|
|
64
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
65
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
66
|
+
realtimeShouldReconnect: boolean;
|
|
67
|
+
realtimeMessageListeners: Set<import("../../../types.js").RealtimeMessageListener>;
|
|
68
|
+
realtimeStatusListeners: Set<import("../../../types.js").RealtimeStatusListener>;
|
|
69
|
+
realtimeEventListeners: Map<string, Set<import("../../../types.js").RealtimeMessageListener>>;
|
|
70
70
|
configure(options: Partial<import("../../../types.js").EntityServerClientOptions>): void;
|
|
71
71
|
setToken(token: string): void;
|
|
72
72
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -87,21 +87,21 @@ export declare function BoardMixin<TBase extends GConstructor<EntityServerClient
|
|
|
87
87
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
88
88
|
startHealthTick(intervalMs?: number): void;
|
|
89
89
|
stopHealthTick(): void;
|
|
90
|
-
|
|
90
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
91
91
|
access_token: string;
|
|
92
92
|
expires_in: number;
|
|
93
93
|
}>): void;
|
|
94
|
-
|
|
94
|
+
clearRefreshTimer(): void;
|
|
95
95
|
stopKeepSession(): void;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
applyRealtimeOptions(options?: boolean | import("../../../types.js").RealtimeClientOptions): void;
|
|
97
|
+
buildRealtimeUrl(): string;
|
|
98
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
99
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
100
|
+
clearRealtimeReconnectTimer(): void;
|
|
101
|
+
setRealtimeStatus(status: import("../../../types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
102
|
+
applyCsrfHealth(): void;
|
|
103
103
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
104
|
-
get
|
|
104
|
+
get reqOpts(): import("../../../client/request.js").RequestOptions;
|
|
105
105
|
get http(): {
|
|
106
106
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
107
107
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -109,12 +109,9 @@ export declare function BoardMixin<TBase extends GConstructor<EntityServerClient
|
|
|
109
109
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
110
110
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
111
111
|
};
|
|
112
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
112
113
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
113
114
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
114
115
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
115
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
116
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
117
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
118
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
119
116
|
};
|
|
120
117
|
} & TBase;
|