entity-client 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +362 -362
- package/dist/EntityAppServerApi.d.ts +384 -416
- package/dist/EntityAppServerApi.js.map +1 -1
- package/dist/EntityServerApi.d.ts +204 -216
- package/dist/EntityServerApi.js.map +1 -1
- package/dist/client/base.d.ts +27 -40
- package/dist/client/base.js +1 -1
- package/dist/client/base.js.map +3 -3
- package/dist/client/hmac.js.map +1 -1
- package/dist/client/packet.js.map +1 -1
- package/dist/client/request.js.map +1 -1
- package/dist/client/utils.js.map +1 -1
- package/dist/hooks/useEntityAppServer.js.map +1 -1
- package/dist/hooks/useEntityClient.js.map +1 -1
- package/dist/hooks/useEntityServer.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/mixins/app/index.js.map +1 -1
- package/dist/mixins/app/plugins/alimtalk.d.ts +24 -26
- package/dist/mixins/app/plugins/alimtalk.js.map +1 -1
- package/dist/mixins/app/plugins/friendtalk.d.ts +24 -26
- package/dist/mixins/app/plugins/friendtalk.js.map +1 -1
- package/dist/mixins/app/plugins/holidays.d.ts +24 -26
- package/dist/mixins/app/plugins/holidays.js.map +1 -1
- package/dist/mixins/app/plugins/identity.d.ts +24 -26
- package/dist/mixins/app/plugins/identity.js.map +1 -1
- package/dist/mixins/app/plugins/index.js.map +1 -1
- package/dist/mixins/app/plugins/llm.d.ts +24 -26
- package/dist/mixins/app/plugins/llm.js.map +1 -1
- package/dist/mixins/app/plugins/ocr.d.ts +24 -26
- package/dist/mixins/app/plugins/ocr.js.map +1 -1
- package/dist/mixins/app/plugins/pg.d.ts +24 -26
- package/dist/mixins/app/plugins/pg.js.map +1 -1
- package/dist/mixins/app/plugins/push.d.ts +24 -26
- package/dist/mixins/app/plugins/push.js.map +1 -1
- package/dist/mixins/app/plugins/sms.d.ts +24 -26
- package/dist/mixins/app/plugins/sms.js.map +1 -1
- package/dist/mixins/app/plugins/taxinvoice.d.ts +24 -26
- package/dist/mixins/app/plugins/taxinvoice.js.map +1 -1
- package/dist/mixins/app/routes/account.d.ts +24 -26
- package/dist/mixins/app/routes/account.js.map +1 -1
- package/dist/mixins/app/routes/board.d.ts +24 -26
- package/dist/mixins/app/routes/board.js.map +2 -2
- package/dist/mixins/app/routes/email-verify.d.ts +24 -26
- package/dist/mixins/app/routes/email-verify.js.map +1 -1
- package/dist/mixins/app/routes/oauth.d.ts +24 -26
- package/dist/mixins/app/routes/oauth.js.map +1 -1
- package/dist/mixins/app/routes/password-reset.d.ts +24 -26
- package/dist/mixins/app/routes/password-reset.js.map +1 -1
- package/dist/mixins/app/routes/two-factor.d.ts +24 -26
- package/dist/mixins/app/routes/two-factor.js.map +1 -1
- package/dist/mixins/server/admin.d.ts +30 -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 +30 -28
- package/dist/mixins/server/auth.js +1 -1
- package/dist/mixins/server/auth.js.map +3 -3
- package/dist/mixins/server/entity.d.ts +24 -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 +24 -26
- package/dist/mixins/server/file.js +1 -1
- package/dist/mixins/server/file.js.map +2 -2
- package/dist/mixins/server/index.js.map +1 -1
- package/dist/mixins/server/push.d.ts +24 -26
- package/dist/mixins/server/push.js.map +1 -1
- package/dist/mixins/server/smtp.d.ts +24 -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 +24 -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 +24 -26
- package/dist/mixins/server/utils.js +1 -1
- package/dist/mixins/server/utils.js.map +2 -2
- package/dist/packet.js.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +3 -3
- package/dist/types.d.ts +1 -1
- package/package.json +57 -57
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/mixins/app/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { AccountAppMixin } from \"./routes/account.js\";\nexport { BoardMixin } from \"./routes/board.js\";\nexport { EmailVerifyMixin } from \"./routes/email-verify.js\";\nexport { OAuthMixin } from \"./routes/oauth.js\";\nexport { PasswordResetMixin } from \"./routes/password-reset.js\";\nexport { TwoFactorMixin } from \"./routes/two-factor.js\";\n"],
|
|
4
|
+
"sourcesContent": ["export { AccountAppMixin } from \"./routes/account.js\";\r\nexport { BoardMixin } from \"./routes/board.js\";\r\nexport { EmailVerifyMixin } from \"./routes/email-verify.js\";\r\nexport { OAuthMixin } from \"./routes/oauth.js\";\r\nexport { PasswordResetMixin } from \"./routes/password-reset.js\";\r\nexport { TwoFactorMixin } from \"./routes/two-factor.js\";\r\n"],
|
|
5
5
|
"mappings": "AAAA,OAAS,mBAAAA,MAAuB,sBAChC,OAAS,cAAAC,MAAkB,oBAC3B,OAAS,oBAAAC,MAAwB,2BACjC,OAAS,cAAAC,MAAkB,oBAC3B,OAAS,sBAAAC,MAA0B,6BACnC,OAAS,kBAAAC,MAAsB",
|
|
6
6
|
"names": ["AccountAppMixin", "BoardMixin", "EmailVerifyMixin", "OAuthMixin", "PasswordResetMixin", "TwoFactorMixin"]
|
|
7
7
|
}
|
|
@@ -18,30 +18,30 @@ export declare function AlimtalkMixin<TBase extends GConstructor<EntityServerCli
|
|
|
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,22 @@ export declare function AlimtalkMixin<TBase extends GConstructor<EntityServerCli
|
|
|
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
|
+
prepareRequest(_withAuth: boolean): Promise<void>;
|
|
80
81
|
get http(): {
|
|
81
82
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
82
83
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -84,12 +85,9 @@ export declare function AlimtalkMixin<TBase extends GConstructor<EntityServerCli
|
|
|
84
85
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
85
86
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
86
87
|
};
|
|
88
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
87
89
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
88
90
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
89
91
|
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
92
|
};
|
|
95
93
|
} & TBase;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/mixins/app/plugins/alimtalk.ts"],
|
|
4
|
-
"sourcesContent": ["import type {\n GConstructor,\n EntityServerClientBase,\n} from \"../../../client/base.js\";\n\nexport function AlimtalkMixin<\n TBase extends GConstructor<EntityServerClientBase>,\n>(Base: TBase) {\n return class AlimtalkMixinClass extends Base {\n /** \uC54C\uB9BC\uD1A1\uC744 \uBC1C\uC1A1\uD569\uB2C8\uB2E4. */\n alimtalkSend<T = unknown>(body: Record<string, unknown>): Promise<T> {\n return this.http.post(\"/v1/alimtalk/send\", body);\n }\n\n /** \uC54C\uB9BC\uD1A1 \uBC1C\uC1A1 \uC0C1\uD0DC\uB97C \uC870\uD68C\uD569\uB2C8\uB2E4. */\n alimtalkStatus<T = unknown>(seq: number): Promise<T> {\n return this.http.get(\n `/v1/alimtalk/status/${seq}`,\n false,\n );\n }\n\n /** \uC54C\uB9BC\uD1A1 \uD15C\uD50C\uB9BF \uBAA9\uB85D\uC744 \uC870\uD68C\uD569\uB2C8\uB2E4. */\n listAlimtalkTemplates<T = unknown>(): Promise<T> {\n return this.http.get(\n \"/v1/alimtalk/templates\",\n false,\n );\n }\n\n /** \uC54C\uB9BC\uD1A1 \uC6F9\uD6C5\uC744 \uC218\uC2E0\uD569\uB2C8\uB2E4. */\n alimtalkWebhook<T = unknown>(\n provider: string,\n body: Record<string, unknown>,\n ): Promise<T> {\n return this.http.post(\n `/v1/alimtalk/webhook/${encodeURIComponent(provider)}`,\n body,\n false,\n );\n }\n };\n}\n"],
|
|
4
|
+
"sourcesContent": ["import type {\r\n GConstructor,\r\n EntityServerClientBase,\r\n} from \"../../../client/base.js\";\r\n\r\nexport function AlimtalkMixin<\r\n TBase extends GConstructor<EntityServerClientBase>,\r\n>(Base: TBase) {\r\n return class AlimtalkMixinClass extends Base {\r\n /** \uC54C\uB9BC\uD1A1\uC744 \uBC1C\uC1A1\uD569\uB2C8\uB2E4. */\r\n alimtalkSend<T = unknown>(body: Record<string, unknown>): Promise<T> {\r\n return this.http.post(\"/v1/alimtalk/send\", body);\r\n }\r\n\r\n /** \uC54C\uB9BC\uD1A1 \uBC1C\uC1A1 \uC0C1\uD0DC\uB97C \uC870\uD68C\uD569\uB2C8\uB2E4. */\r\n alimtalkStatus<T = unknown>(seq: number): Promise<T> {\r\n return this.http.get(\r\n `/v1/alimtalk/status/${seq}`,\r\n false,\r\n );\r\n }\r\n\r\n /** \uC54C\uB9BC\uD1A1 \uD15C\uD50C\uB9BF \uBAA9\uB85D\uC744 \uC870\uD68C\uD569\uB2C8\uB2E4. */\r\n listAlimtalkTemplates<T = unknown>(): Promise<T> {\r\n return this.http.get(\r\n \"/v1/alimtalk/templates\",\r\n false,\r\n );\r\n }\r\n\r\n /** \uC54C\uB9BC\uD1A1 \uC6F9\uD6C5\uC744 \uC218\uC2E0\uD569\uB2C8\uB2E4. */\r\n alimtalkWebhook<T = unknown>(\r\n provider: string,\r\n body: Record<string, unknown>,\r\n ): Promise<T> {\r\n return this.http.post(\r\n `/v1/alimtalk/webhook/${encodeURIComponent(provider)}`,\r\n body,\r\n false,\r\n );\r\n }\r\n };\r\n}\r\n"],
|
|
5
5
|
"mappings": "AAKO,SAASA,EAEdC,EAAa,CACX,OAAO,cAAiCA,CAAK,CAEzC,aAA0BC,EAA2C,CACjE,OAAO,KAAK,KAAK,KAAK,oBAAqBA,CAAI,CACnD,CAGA,eAA4BC,EAAyB,CACjD,OAAO,KAAK,KAAK,IACb,uBAAuBA,CAAG,GAC1B,EACJ,CACJ,CAGA,uBAAiD,CAC7C,OAAO,KAAK,KAAK,IACb,yBACA,EACJ,CACJ,CAGA,gBACIC,EACAF,EACU,CACV,OAAO,KAAK,KAAK,KACb,wBAAwB,mBAAmBE,CAAQ,CAAC,GACpDF,EACA,EACJ,CACJ,CACJ,CACJ",
|
|
6
6
|
"names": ["AlimtalkMixin", "Base", "body", "seq", "provider"]
|
|
7
7
|
}
|
|
@@ -12,30 +12,30 @@ export declare function FriendtalkMixin<TBase extends GConstructor<EntityServerC
|
|
|
12
12
|
csrfEnabled: boolean;
|
|
13
13
|
csrfHeaderName: string;
|
|
14
14
|
csrfCookieName: string;
|
|
15
|
-
|
|
15
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
16
16
|
activeTxId: string | null;
|
|
17
17
|
keepSession: boolean;
|
|
18
18
|
refreshBuffer: number;
|
|
19
19
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
20
20
|
onSessionExpired?: (error: Error) => void;
|
|
21
21
|
onHealthChange?: (online: boolean) => void;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
sessionRefreshToken: string | null;
|
|
23
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
24
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
25
|
+
healthTickPromise: Promise<unknown> | null;
|
|
26
26
|
realtimeEnabled: boolean;
|
|
27
27
|
realtimePath: string;
|
|
28
28
|
realtimeAutoConnect: boolean;
|
|
29
29
|
realtimeAutoReconnect: boolean;
|
|
30
30
|
realtimeReconnectDelayMs: number;
|
|
31
31
|
realtimeStatus: import("../../../types.js").RealtimeConnectionStatus;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
realtimeSocket: WebSocket | null;
|
|
33
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
34
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
35
|
+
realtimeShouldReconnect: boolean;
|
|
36
|
+
realtimeMessageListeners: Set<import("../../../types.js").RealtimeMessageListener>;
|
|
37
|
+
realtimeStatusListeners: Set<import("../../../types.js").RealtimeStatusListener>;
|
|
38
|
+
realtimeEventListeners: Map<string, Set<import("../../../types.js").RealtimeMessageListener>>;
|
|
39
39
|
configure(options: Partial<import("../../../types.js").EntityServerClientOptions>): void;
|
|
40
40
|
setToken(token: string): void;
|
|
41
41
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -56,21 +56,22 @@ export declare function FriendtalkMixin<TBase extends GConstructor<EntityServerC
|
|
|
56
56
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
57
57
|
startHealthTick(intervalMs?: number): void;
|
|
58
58
|
stopHealthTick(): void;
|
|
59
|
-
|
|
59
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
60
60
|
access_token: string;
|
|
61
61
|
expires_in: number;
|
|
62
62
|
}>): void;
|
|
63
|
-
|
|
63
|
+
clearRefreshTimer(): void;
|
|
64
64
|
stopKeepSession(): void;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
applyRealtimeOptions(options?: boolean | import("../../../types.js").RealtimeClientOptions): void;
|
|
66
|
+
buildRealtimeUrl(): string;
|
|
67
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
68
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
69
|
+
clearRealtimeReconnectTimer(): void;
|
|
70
|
+
setRealtimeStatus(status: import("../../../types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
71
|
+
applyCsrfHealth(): void;
|
|
72
72
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
73
|
-
get
|
|
73
|
+
get reqOpts(): import("../../../client/request.js").RequestOptions;
|
|
74
|
+
prepareRequest(_withAuth: boolean): Promise<void>;
|
|
74
75
|
get http(): {
|
|
75
76
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
76
77
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -78,12 +79,9 @@ export declare function FriendtalkMixin<TBase extends GConstructor<EntityServerC
|
|
|
78
79
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
79
80
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
80
81
|
};
|
|
82
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
81
83
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
82
84
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
83
85
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
84
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
85
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
86
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
87
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
88
86
|
};
|
|
89
87
|
} & TBase;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/mixins/app/plugins/friendtalk.ts"],
|
|
4
|
-
"sourcesContent": ["import type {\n GConstructor,\n EntityServerClientBase,\n} from \"../../../client/base.js\";\n\nexport function FriendtalkMixin<\n TBase extends GConstructor<EntityServerClientBase>,\n>(Base: TBase) {\n return class FriendtalkMixinClass extends Base {\n /** \uCE5C\uAD6C\uD1A1\uC744 \uBC1C\uC1A1\uD569\uB2C8\uB2E4. */\n friendtalkSend<T = unknown>(body: Record<string, unknown>): Promise<T> {\n return this.http.post(\"/v1/friendtalk/send\", body);\n }\n };\n}\n"],
|
|
4
|
+
"sourcesContent": ["import type {\r\n GConstructor,\r\n EntityServerClientBase,\r\n} from \"../../../client/base.js\";\r\n\r\nexport function FriendtalkMixin<\r\n TBase extends GConstructor<EntityServerClientBase>,\r\n>(Base: TBase) {\r\n return class FriendtalkMixinClass extends Base {\r\n /** \uCE5C\uAD6C\uD1A1\uC744 \uBC1C\uC1A1\uD569\uB2C8\uB2E4. */\r\n friendtalkSend<T = unknown>(body: Record<string, unknown>): Promise<T> {\r\n return this.http.post(\"/v1/friendtalk/send\", body);\r\n }\r\n };\r\n}\r\n"],
|
|
5
5
|
"mappings": "AAKO,SAASA,EAEdC,EAAa,CACX,OAAO,cAAmCA,CAAK,CAE3C,eAA4BC,EAA2C,CACnE,OAAO,KAAK,KAAK,KAAK,sBAAuBA,CAAI,CACrD,CACJ,CACJ",
|
|
6
6
|
"names": ["FriendtalkMixin", "Base", "body"]
|
|
7
7
|
}
|
|
@@ -20,30 +20,30 @@ export declare function HolidaysMixin<TBase extends GConstructor<EntityServerCli
|
|
|
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,22 @@ export declare function HolidaysMixin<TBase extends GConstructor<EntityServerCli
|
|
|
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
|
+
prepareRequest(_withAuth: boolean): Promise<void>;
|
|
82
83
|
get http(): {
|
|
83
84
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
84
85
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -86,12 +87,9 @@ export declare function HolidaysMixin<TBase extends GConstructor<EntityServerCli
|
|
|
86
87
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
87
88
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
88
89
|
};
|
|
90
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
89
91
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
90
92
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
91
93
|
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
94
|
};
|
|
97
95
|
} & TBase;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/mixins/app/plugins/holidays.ts"],
|
|
4
|
-
"sourcesContent": ["import { buildQuery } from \"../../../client/utils.js\";\nimport type {\n GConstructor,\n EntityServerClientBase,\n} from \"../../../client/base.js\";\n\nexport function HolidaysMixin<\n TBase extends GConstructor<EntityServerClientBase>,\n>(Base: TBase) {\n return class HolidaysMixinClass extends Base {\n /** \uACF5\uD734\uC77C \uBAA9\uB85D\uC744 \uC870\uD68C\uD569\uB2C8\uB2E4. */\n listHolidays<T = unknown>(\n query: {\n year?: number;\n month?: number;\n is_holiday?: \"Y\" | \"N\";\n } = {},\n ): Promise<T> {\n const qs = buildQuery(query as Record<string, unknown>);\n return this.http.get(\n `/v1/holidays${qs ? `?${qs}` : \"\"}`,\n false,\n );\n }\n\n /** \uD2B9\uC815 \uB0A0\uC9DC\uC758 \uACF5\uD734\uC77C \uC815\uBCF4\uB97C \uC870\uD68C\uD569\uB2C8\uB2E4. (e.g. \"20250101\") */\n getHolidayByDate<T = unknown>(locdate: string): Promise<T> {\n return this.http.get(\n `/v1/holidays/${encodeURIComponent(locdate)}`,\n false,\n );\n }\n\n /** \uACF5\uD734\uC77C \uB370\uC774\uD130\uB97C \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4. (\uAD00\uB9AC\uC790 \uC804\uC6A9) */\n syncHolidays<T = unknown>(body?: Record<string, unknown>): Promise<T> {\n return this.http.post(\"/v1/holidays/sync\", body);\n }\n };\n}\n"],
|
|
4
|
+
"sourcesContent": ["import { buildQuery } from \"../../../client/utils.js\";\r\nimport type {\r\n GConstructor,\r\n EntityServerClientBase,\r\n} from \"../../../client/base.js\";\r\n\r\nexport function HolidaysMixin<\r\n TBase extends GConstructor<EntityServerClientBase>,\r\n>(Base: TBase) {\r\n return class HolidaysMixinClass extends Base {\r\n /** \uACF5\uD734\uC77C \uBAA9\uB85D\uC744 \uC870\uD68C\uD569\uB2C8\uB2E4. */\r\n listHolidays<T = unknown>(\r\n query: {\r\n year?: number;\r\n month?: number;\r\n is_holiday?: \"Y\" | \"N\";\r\n } = {},\r\n ): Promise<T> {\r\n const qs = buildQuery(query as Record<string, unknown>);\r\n return this.http.get(\r\n `/v1/holidays${qs ? `?${qs}` : \"\"}`,\r\n false,\r\n );\r\n }\r\n\r\n /** \uD2B9\uC815 \uB0A0\uC9DC\uC758 \uACF5\uD734\uC77C \uC815\uBCF4\uB97C \uC870\uD68C\uD569\uB2C8\uB2E4. (e.g. \"20250101\") */\r\n getHolidayByDate<T = unknown>(locdate: string): Promise<T> {\r\n return this.http.get(\r\n `/v1/holidays/${encodeURIComponent(locdate)}`,\r\n false,\r\n );\r\n }\r\n\r\n /** \uACF5\uD734\uC77C \uB370\uC774\uD130\uB97C \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4. (\uAD00\uB9AC\uC790 \uC804\uC6A9) */\r\n syncHolidays<T = unknown>(body?: Record<string, unknown>): Promise<T> {\r\n return this.http.post(\"/v1/holidays/sync\", body);\r\n }\r\n };\r\n}\r\n"],
|
|
5
5
|
"mappings": "AAAA,OAAS,cAAAA,MAAkB,2BAMpB,SAASC,EAEdC,EAAa,CACX,OAAO,cAAiCA,CAAK,CAEzC,aACIC,EAII,CAAC,EACK,CACV,MAAMC,EAAKJ,EAAWG,CAAgC,EACtD,OAAO,KAAK,KAAK,IACb,eAAeC,EAAK,IAAIA,CAAE,GAAK,EAAE,GACjC,EACJ,CACJ,CAGA,iBAA8BC,EAA6B,CACvD,OAAO,KAAK,KAAK,IACb,gBAAgB,mBAAmBA,CAAO,CAAC,GAC3C,EACJ,CACJ,CAGA,aAA0BC,EAA4C,CAClE,OAAO,KAAK,KAAK,KAAK,oBAAqBA,CAAI,CACnD,CACJ,CACJ",
|
|
6
6
|
"names": ["buildQuery", "HolidaysMixin", "Base", "query", "qs", "locdate", "body"]
|
|
7
7
|
}
|
|
@@ -18,30 +18,30 @@ export declare function IdentityMixin<TBase extends GConstructor<EntityServerCli
|
|
|
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,22 @@ export declare function IdentityMixin<TBase extends GConstructor<EntityServerCli
|
|
|
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
|
+
prepareRequest(_withAuth: boolean): Promise<void>;
|
|
80
81
|
get http(): {
|
|
81
82
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
82
83
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -84,12 +85,9 @@ export declare function IdentityMixin<TBase extends GConstructor<EntityServerCli
|
|
|
84
85
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
85
86
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
86
87
|
};
|
|
88
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
87
89
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
88
90
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
89
91
|
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
92
|
};
|
|
95
93
|
} & TBase;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/mixins/app/plugins/identity.ts"],
|
|
4
|
-
"sourcesContent": ["import type {\n GConstructor,\n EntityServerClientBase,\n} from \"../../../client/base.js\";\n\nexport function IdentityMixin<\n TBase extends GConstructor<EntityServerClientBase>,\n>(Base: TBase) {\n return class IdentityMixinClass extends Base {\n /** \uBCF8\uC778\uC778\uC99D \uC694\uCCAD\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4. */\n identityRequest<T = unknown>(\n body: Record<string, unknown>,\n ): Promise<T> {\n return this.http.post(\n \"/v1/identity/request\",\n body,\n false,\n );\n }\n\n /** \uBCF8\uC778\uC778\uC99D \uC911\uACC4\uC0AC \uCF5C\uBC31\uC744 \uC218\uC2E0\uD569\uB2C8\uB2E4. */\n identityCallback<T = unknown>(\n body: Record<string, unknown>,\n ): Promise<T> {\n return this.http.post(\n \"/v1/identity/callback\",\n body,\n false,\n );\n }\n\n /** \uBCF8\uC778\uC778\uC99D \uACB0\uACFC\uB97C \uC870\uD68C\uD569\uB2C8\uB2E4. */\n identityResult<T = unknown>(requestId: string): Promise<T> {\n return this.http.get(\n `/v1/identity/result/${encodeURIComponent(requestId)}`,\n false,\n );\n }\n\n /** CI \uC911\uBCF5 \uC5EC\uBD80\uB97C \uD655\uC778\uD569\uB2C8\uB2E4. (JWT \uD544\uC694) */\n identityVerifyCI<T = unknown>(\n body: Record<string, unknown>,\n ): Promise<T> {\n return this.http.post(\"/v1/identity/verify-ci\", body);\n }\n };\n}\n"],
|
|
4
|
+
"sourcesContent": ["import type {\r\n GConstructor,\r\n EntityServerClientBase,\r\n} from \"../../../client/base.js\";\r\n\r\nexport function IdentityMixin<\r\n TBase extends GConstructor<EntityServerClientBase>,\r\n>(Base: TBase) {\r\n return class IdentityMixinClass extends Base {\r\n /** \uBCF8\uC778\uC778\uC99D \uC694\uCCAD\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4. */\r\n identityRequest<T = unknown>(\r\n body: Record<string, unknown>,\r\n ): Promise<T> {\r\n return this.http.post(\r\n \"/v1/identity/request\",\r\n body,\r\n false,\r\n );\r\n }\r\n\r\n /** \uBCF8\uC778\uC778\uC99D \uC911\uACC4\uC0AC \uCF5C\uBC31\uC744 \uC218\uC2E0\uD569\uB2C8\uB2E4. */\r\n identityCallback<T = unknown>(\r\n body: Record<string, unknown>,\r\n ): Promise<T> {\r\n return this.http.post(\r\n \"/v1/identity/callback\",\r\n body,\r\n false,\r\n );\r\n }\r\n\r\n /** \uBCF8\uC778\uC778\uC99D \uACB0\uACFC\uB97C \uC870\uD68C\uD569\uB2C8\uB2E4. */\r\n identityResult<T = unknown>(requestId: string): Promise<T> {\r\n return this.http.get(\r\n `/v1/identity/result/${encodeURIComponent(requestId)}`,\r\n false,\r\n );\r\n }\r\n\r\n /** CI \uC911\uBCF5 \uC5EC\uBD80\uB97C \uD655\uC778\uD569\uB2C8\uB2E4. (JWT \uD544\uC694) */\r\n identityVerifyCI<T = unknown>(\r\n body: Record<string, unknown>,\r\n ): Promise<T> {\r\n return this.http.post(\"/v1/identity/verify-ci\", body);\r\n }\r\n };\r\n}\r\n"],
|
|
5
5
|
"mappings": "AAKO,SAASA,EAEdC,EAAa,CACX,OAAO,cAAiCA,CAAK,CAEzC,gBACIC,EACU,CACV,OAAO,KAAK,KAAK,KACb,uBACAA,EACA,EACJ,CACJ,CAGA,iBACIA,EACU,CACV,OAAO,KAAK,KAAK,KACb,wBACAA,EACA,EACJ,CACJ,CAGA,eAA4BC,EAA+B,CACvD,OAAO,KAAK,KAAK,IACb,uBAAuB,mBAAmBA,CAAS,CAAC,GACpD,EACJ,CACJ,CAGA,iBACID,EACU,CACV,OAAO,KAAK,KAAK,KAAK,yBAA0BA,CAAI,CACxD,CACJ,CACJ",
|
|
6
6
|
"names": ["IdentityMixin", "Base", "body", "requestId"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/mixins/app/plugins/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { AlimtalkMixin } from \"./alimtalk.js\";\nexport { FriendtalkMixin } from \"./friendtalk.js\";\nexport { HolidaysMixin } from \"./holidays.js\";\nexport { IdentityMixin } from \"./identity.js\";\nexport { LlmMixin } from \"./llm.js\";\nexport { OcrMixin } from \"./ocr.js\";\nexport { PgMixin } from \"./pg.js\";\nexport { AppPushMixin } from \"./push.js\";\nexport { SmsMixin } from \"./sms.js\";\nexport { TaxinvoiceMixin } from \"./taxinvoice.js\";\n"],
|
|
4
|
+
"sourcesContent": ["export { AlimtalkMixin } from \"./alimtalk.js\";\r\nexport { FriendtalkMixin } from \"./friendtalk.js\";\r\nexport { HolidaysMixin } from \"./holidays.js\";\r\nexport { IdentityMixin } from \"./identity.js\";\r\nexport { LlmMixin } from \"./llm.js\";\r\nexport { OcrMixin } from \"./ocr.js\";\r\nexport { PgMixin } from \"./pg.js\";\r\nexport { AppPushMixin } from \"./push.js\";\r\nexport { SmsMixin } from \"./sms.js\";\r\nexport { TaxinvoiceMixin } from \"./taxinvoice.js\";\r\n"],
|
|
5
5
|
"mappings": "AAAA,OAAS,iBAAAA,MAAqB,gBAC9B,OAAS,mBAAAC,MAAuB,kBAChC,OAAS,iBAAAC,MAAqB,gBAC9B,OAAS,iBAAAC,MAAqB,gBAC9B,OAAS,YAAAC,MAAgB,WACzB,OAAS,YAAAC,MAAgB,WACzB,OAAS,WAAAC,MAAe,UACxB,OAAS,gBAAAC,MAAoB,YAC7B,OAAS,YAAAC,MAAgB,WACzB,OAAS,mBAAAC,MAAuB",
|
|
6
6
|
"names": ["AlimtalkMixin", "FriendtalkMixin", "HolidaysMixin", "IdentityMixin", "LlmMixin", "OcrMixin", "PgMixin", "AppPushMixin", "SmsMixin", "TaxinvoiceMixin"]
|
|
7
7
|
}
|
|
@@ -80,30 +80,30 @@ export declare function LlmMixin<TBase extends GConstructor<EntityServerClientBa
|
|
|
80
80
|
csrfEnabled: boolean;
|
|
81
81
|
csrfHeaderName: string;
|
|
82
82
|
csrfCookieName: string;
|
|
83
|
-
|
|
83
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
84
84
|
activeTxId: string | null;
|
|
85
85
|
keepSession: boolean;
|
|
86
86
|
refreshBuffer: number;
|
|
87
87
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
88
88
|
onSessionExpired?: (error: Error) => void;
|
|
89
89
|
onHealthChange?: (online: boolean) => void;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
sessionRefreshToken: string | null;
|
|
91
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
92
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
93
|
+
healthTickPromise: Promise<unknown> | null;
|
|
94
94
|
realtimeEnabled: boolean;
|
|
95
95
|
realtimePath: string;
|
|
96
96
|
realtimeAutoConnect: boolean;
|
|
97
97
|
realtimeAutoReconnect: boolean;
|
|
98
98
|
realtimeReconnectDelayMs: number;
|
|
99
99
|
realtimeStatus: import("../../../types.js").RealtimeConnectionStatus;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
realtimeSocket: WebSocket | null;
|
|
101
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
102
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
103
|
+
realtimeShouldReconnect: boolean;
|
|
104
|
+
realtimeMessageListeners: Set<import("../../../types.js").RealtimeMessageListener>;
|
|
105
|
+
realtimeStatusListeners: Set<import("../../../types.js").RealtimeStatusListener>;
|
|
106
|
+
realtimeEventListeners: Map<string, Set<import("../../../types.js").RealtimeMessageListener>>;
|
|
107
107
|
configure(options: Partial<import("../../../types.js").EntityServerClientOptions>): void;
|
|
108
108
|
setToken(token: string): void;
|
|
109
109
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -124,21 +124,22 @@ export declare function LlmMixin<TBase extends GConstructor<EntityServerClientBa
|
|
|
124
124
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
125
125
|
startHealthTick(intervalMs?: number): void;
|
|
126
126
|
stopHealthTick(): void;
|
|
127
|
-
|
|
127
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
128
128
|
access_token: string;
|
|
129
129
|
expires_in: number;
|
|
130
130
|
}>): void;
|
|
131
|
-
|
|
131
|
+
clearRefreshTimer(): void;
|
|
132
132
|
stopKeepSession(): void;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
133
|
+
applyRealtimeOptions(options?: boolean | import("../../../types.js").RealtimeClientOptions): void;
|
|
134
|
+
buildRealtimeUrl(): string;
|
|
135
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
136
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
137
|
+
clearRealtimeReconnectTimer(): void;
|
|
138
|
+
setRealtimeStatus(status: import("../../../types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
139
|
+
applyCsrfHealth(): void;
|
|
140
140
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
141
|
-
get
|
|
141
|
+
get reqOpts(): import("../../../client/request.js").RequestOptions;
|
|
142
|
+
prepareRequest(_withAuth: boolean): Promise<void>;
|
|
142
143
|
get http(): {
|
|
143
144
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
144
145
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -146,12 +147,9 @@ export declare function LlmMixin<TBase extends GConstructor<EntityServerClientBa
|
|
|
146
147
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
147
148
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
148
149
|
};
|
|
150
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
149
151
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
150
152
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
151
153
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
152
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
153
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
154
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
155
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
156
154
|
};
|
|
157
155
|
} & TBase;
|