@zeitvu97/cms-sdk 0.1.0
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/LICENSE +21 -0
- package/README.md +478 -0
- package/dist/chunks/_shared-48T7q0V3.js +26 -0
- package/dist/chunks/_shared-48T7q0V3.js.map +1 -0
- package/dist/chunks/auth.constant-DO7ZmsKg.js +68 -0
- package/dist/chunks/auth.constant-DO7ZmsKg.js.map +1 -0
- package/dist/chunks/mt5Retcode-DlZLQOLA.js +178 -0
- package/dist/chunks/mt5Retcode-DlZLQOLA.js.map +1 -0
- package/dist/chunks/storage.constant--64BDSPW.js +44 -0
- package/dist/chunks/storage.constant--64BDSPW.js.map +1 -0
- package/dist/common/constants/auth.constant.d.ts +54 -0
- package/dist/common/constants/auth.constant.d.ts.map +1 -0
- package/dist/common/constants/bars.constant.d.ts +15 -0
- package/dist/common/constants/bars.constant.d.ts.map +1 -0
- package/dist/common/constants/content-types.constant.d.ts +29 -0
- package/dist/common/constants/content-types.constant.d.ts.map +1 -0
- package/dist/common/constants/content.constant.d.ts +114 -0
- package/dist/common/constants/content.constant.d.ts.map +1 -0
- package/dist/common/constants/executions.constant.d.ts +56 -0
- package/dist/common/constants/executions.constant.d.ts.map +1 -0
- package/dist/common/constants/gov.constant.d.ts +118 -0
- package/dist/common/constants/gov.constant.d.ts.map +1 -0
- package/dist/common/constants/history.constant.d.ts +108 -0
- package/dist/common/constants/history.constant.d.ts.map +1 -0
- package/dist/common/constants/http.constant.d.ts +46 -0
- package/dist/common/constants/http.constant.d.ts.map +1 -0
- package/dist/common/constants/index.d.ts +16 -0
- package/dist/common/constants/index.d.ts.map +1 -0
- package/dist/common/constants/kalshi.constant.d.ts +35 -0
- package/dist/common/constants/kalshi.constant.d.ts.map +1 -0
- package/dist/common/constants/llm.constant.d.ts +37 -0
- package/dist/common/constants/llm.constant.d.ts.map +1 -0
- package/dist/common/constants/mt5-action.constant.d.ts +131 -0
- package/dist/common/constants/mt5-action.constant.d.ts.map +1 -0
- package/dist/common/constants/mt5.constant.d.ts +254 -0
- package/dist/common/constants/mt5.constant.d.ts.map +1 -0
- package/dist/common/constants/notifications.constant.d.ts +45 -0
- package/dist/common/constants/notifications.constant.d.ts.map +1 -0
- package/dist/common/constants/people.constant.d.ts +269 -0
- package/dist/common/constants/people.constant.d.ts.map +1 -0
- package/dist/common/constants/rules.constant.d.ts +14 -0
- package/dist/common/constants/rules.constant.d.ts.map +1 -0
- package/dist/common/constants/settings.constant.d.ts +17 -0
- package/dist/common/constants/settings.constant.d.ts.map +1 -0
- package/dist/common/constants/sort.constant.d.ts +14 -0
- package/dist/common/constants/sort.constant.d.ts.map +1 -0
- package/dist/common/constants/storage.constant.d.ts +74 -0
- package/dist/common/constants/storage.constant.d.ts.map +1 -0
- package/dist/common/helpers/format.d.ts +7 -0
- package/dist/common/helpers/format.d.ts.map +1 -0
- package/dist/common/helpers/format.js +20 -0
- package/dist/common/helpers/format.js.map +1 -0
- package/dist/common/helpers/mt5Retcode.d.ts +18 -0
- package/dist/common/helpers/mt5Retcode.d.ts.map +1 -0
- package/dist/common/helpers/mt5Retcode.js +2 -0
- package/dist/common/helpers/mt5Retcode.js.map +1 -0
- package/dist/common/utils/case.d.ts +12 -0
- package/dist/common/utils/case.d.ts.map +1 -0
- package/dist/common/utils/clone.d.ts +9 -0
- package/dist/common/utils/clone.d.ts.map +1 -0
- package/dist/composables/cbsStateKey.d.ts +27 -0
- package/dist/composables/cbsStateKey.d.ts.map +1 -0
- package/dist/core/createApi.d.ts +69 -0
- package/dist/core/createApi.d.ts.map +1 -0
- package/dist/core/createCmsSDK.d.ts +19 -0
- package/dist/core/createCmsSDK.d.ts.map +1 -0
- package/dist/core/credentials/TokenManager.d.ts +38 -0
- package/dist/core/credentials/TokenManager.d.ts.map +1 -0
- package/dist/core/credentials/credential.type.d.ts +16 -0
- package/dist/core/credentials/credential.type.d.ts.map +1 -0
- package/dist/core/credentials/resolveStorage.d.ts +6 -0
- package/dist/core/credentials/resolveStorage.d.ts.map +1 -0
- package/dist/core/credentials/storages/cookieStorage.d.ts +18 -0
- package/dist/core/credentials/storages/cookieStorage.d.ts.map +1 -0
- package/dist/core/credentials/storages/localStorageAdapter.d.ts +8 -0
- package/dist/core/credentials/storages/localStorageAdapter.d.ts.map +1 -0
- package/dist/core/credentials/storages/memoryStorage.d.ts +7 -0
- package/dist/core/credentials/storages/memoryStorage.d.ts.map +1 -0
- package/dist/core/errors.d.ts +26 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/sdk.type.d.ts +115 -0
- package/dist/core/sdk.type.d.ts.map +1 -0
- package/dist/core/ws/createEaeraWebSocket.d.ts +21 -0
- package/dist/core/ws/createEaeraWebSocket.d.ts.map +1 -0
- package/dist/core/ws/index.d.ts +4 -0
- package/dist/core/ws/index.d.ts.map +1 -0
- package/dist/core/ws/ws.constants.d.ts +246 -0
- package/dist/core/ws/ws.constants.d.ts.map +1 -0
- package/dist/core/ws/ws.events.d.ts +264 -0
- package/dist/core/ws/ws.events.d.ts.map +1 -0
- package/dist/core/ws/ws.type.d.ts +225 -0
- package/dist/core/ws/ws.type.d.ts.map +1 -0
- package/dist/index.d.ts +130 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8416 -0
- package/dist/index.js.map +1 -0
- package/dist/nuxt.d.ts +49 -0
- package/dist/nuxt.d.ts.map +1 -0
- package/dist/nuxt.js +47 -0
- package/dist/nuxt.js.map +1 -0
- package/dist/runtime/plugin.d.ts +6 -0
- package/dist/runtime/plugin.js +188 -0
- package/dist/runtime/plugin.js.map +1 -0
- package/dist/server/auth/cbs-callback.post.js +42 -0
- package/dist/server/auth/cbs-callback.post.js.map +1 -0
- package/dist/server/auth/cbs-start.post.js +34 -0
- package/dist/server/auth/cbs-start.post.js.map +1 -0
- package/dist/server/auth/idp-callback.get.js +52 -0
- package/dist/server/auth/idp-callback.get.js.map +1 -0
- package/dist/server/auth/idp-link.post.js +38 -0
- package/dist/server/auth/idp-link.post.js.map +1 -0
- package/dist/server/auth/idp-login.get.js +42 -0
- package/dist/server/auth/idp-login.get.js.map +1 -0
- package/dist/server/auth/idp-unlink.delete.js +38 -0
- package/dist/server/auth/idp-unlink.delete.js.map +1 -0
- package/dist/server/auth/login.post.js +42 -0
- package/dist/server/auth/login.post.js.map +1 -0
- package/dist/server/auth/logout.post.js +31 -0
- package/dist/server/auth/logout.post.js.map +1 -0
- package/dist/server/auth/refresh.post.js +46 -0
- package/dist/server/auth/refresh.post.js.map +1 -0
- package/dist/server/clear-token.delete.js +12 -0
- package/dist/server/clear-token.delete.js.map +1 -0
- package/dist/server/persist.post.js +31 -0
- package/dist/server/persist.post.js.map +1 -0
- package/dist/server/set-token.post.js +27 -0
- package/dist/server/set-token.post.js.map +1 -0
- package/dist/services/auth/auth.type.d.ts +66 -0
- package/dist/services/auth/auth.type.d.ts.map +1 -0
- package/dist/services/auth/index.d.ts +127 -0
- package/dist/services/auth/index.d.ts.map +1 -0
- package/dist/services/auth/mock.d.ts +13 -0
- package/dist/services/auth/mock.d.ts.map +1 -0
- package/dist/services/bars/bars.type.d.ts +78 -0
- package/dist/services/bars/bars.type.d.ts.map +1 -0
- package/dist/services/bars/index.d.ts +24 -0
- package/dist/services/bars/index.d.ts.map +1 -0
- package/dist/services/bars/mock.d.ts +23 -0
- package/dist/services/bars/mock.d.ts.map +1 -0
- package/dist/services/content/content.type.d.ts +832 -0
- package/dist/services/content/content.type.d.ts.map +1 -0
- package/dist/services/content/filter.d.ts +46 -0
- package/dist/services/content/filter.d.ts.map +1 -0
- package/dist/services/content/index.d.ts +35 -0
- package/dist/services/content/index.d.ts.map +1 -0
- package/dist/services/content/mock.d.ts +16 -0
- package/dist/services/content/mock.d.ts.map +1 -0
- package/dist/services/content-types/content-types.type.d.ts +70 -0
- package/dist/services/content-types/content-types.type.d.ts.map +1 -0
- package/dist/services/content-types/index.d.ts +18 -0
- package/dist/services/content-types/index.d.ts.map +1 -0
- package/dist/services/content-types/mock.d.ts +15 -0
- package/dist/services/content-types/mock.d.ts.map +1 -0
- package/dist/services/executions/executions.type.d.ts +67 -0
- package/dist/services/executions/executions.type.d.ts.map +1 -0
- package/dist/services/executions/index.d.ts +30 -0
- package/dist/services/executions/index.d.ts.map +1 -0
- package/dist/services/executions/mock.d.ts +29 -0
- package/dist/services/executions/mock.d.ts.map +1 -0
- package/dist/services/gov/gov.type.d.ts +740 -0
- package/dist/services/gov/gov.type.d.ts.map +1 -0
- package/dist/services/gov/index.d.ts +84 -0
- package/dist/services/gov/index.d.ts.map +1 -0
- package/dist/services/history/history.type.d.ts +167 -0
- package/dist/services/history/history.type.d.ts.map +1 -0
- package/dist/services/history/index.d.ts +38 -0
- package/dist/services/history/index.d.ts.map +1 -0
- package/dist/services/history/mock.d.ts +21 -0
- package/dist/services/history/mock.d.ts.map +1 -0
- package/dist/services/kalshi/index.d.ts +19 -0
- package/dist/services/kalshi/index.d.ts.map +1 -0
- package/dist/services/kalshi/kalshi.type.d.ts +99 -0
- package/dist/services/kalshi/kalshi.type.d.ts.map +1 -0
- package/dist/services/kalshi/mock.d.ts +5 -0
- package/dist/services/kalshi/mock.d.ts.map +1 -0
- package/dist/services/llm/index.d.ts +38 -0
- package/dist/services/llm/index.d.ts.map +1 -0
- package/dist/services/llm/llm.type.d.ts +106 -0
- package/dist/services/llm/llm.type.d.ts.map +1 -0
- package/dist/services/notifications/index.d.ts +38 -0
- package/dist/services/notifications/index.d.ts.map +1 -0
- package/dist/services/notifications/mock.d.ts +39 -0
- package/dist/services/notifications/mock.d.ts.map +1 -0
- package/dist/services/notifications/notifications.type.d.ts +75 -0
- package/dist/services/notifications/notifications.type.d.ts.map +1 -0
- package/dist/services/people/_invoke.d.ts +26 -0
- package/dist/services/people/_invoke.d.ts.map +1 -0
- package/dist/services/people/copilot/index.d.ts +132 -0
- package/dist/services/people/copilot/index.d.ts.map +1 -0
- package/dist/services/people/identity/actions.d.ts +116 -0
- package/dist/services/people/identity/actions.d.ts.map +1 -0
- package/dist/services/people/identity/ct.types.d.ts +133 -0
- package/dist/services/people/identity/ct.types.d.ts.map +1 -0
- package/dist/services/people/identity/index.d.ts +14 -0
- package/dist/services/people/identity/index.d.ts.map +1 -0
- package/dist/services/people/identity/projections.d.ts +63 -0
- package/dist/services/people/identity/projections.d.ts.map +1 -0
- package/dist/services/people/index.d.ts +31 -0
- package/dist/services/people/index.d.ts.map +1 -0
- package/dist/services/people/legal/actions.d.ts +161 -0
- package/dist/services/people/legal/actions.d.ts.map +1 -0
- package/dist/services/people/legal/ct.types.d.ts +186 -0
- package/dist/services/people/legal/ct.types.d.ts.map +1 -0
- package/dist/services/people/legal/index.d.ts +15 -0
- package/dist/services/people/legal/index.d.ts.map +1 -0
- package/dist/services/people/packops/index.d.ts +70 -0
- package/dist/services/people/packops/index.d.ts.map +1 -0
- package/dist/services/people/packops/packops.type.d.ts +183 -0
- package/dist/services/people/packops/packops.type.d.ts.map +1 -0
- package/dist/services/people/perms/actions.d.ts +214 -0
- package/dist/services/people/perms/actions.d.ts.map +1 -0
- package/dist/services/people/perms/ct.types.d.ts +140 -0
- package/dist/services/people/perms/ct.types.d.ts.map +1 -0
- package/dist/services/people/perms/index.d.ts +14 -0
- package/dist/services/people/perms/index.d.ts.map +1 -0
- package/dist/services/people/perms/projections.d.ts +47 -0
- package/dist/services/people/perms/projections.d.ts.map +1 -0
- package/dist/services/people/process/actions.d.ts +154 -0
- package/dist/services/people/process/actions.d.ts.map +1 -0
- package/dist/services/people/process/ct.types.d.ts +304 -0
- package/dist/services/people/process/ct.types.d.ts.map +1 -0
- package/dist/services/people/process/index.d.ts +12 -0
- package/dist/services/people/process/index.d.ts.map +1 -0
- package/dist/services/people/shared.types.d.ts +36 -0
- package/dist/services/people/shared.types.d.ts.map +1 -0
- package/dist/services/rules/conditions.d.ts +264 -0
- package/dist/services/rules/conditions.d.ts.map +1 -0
- package/dist/services/rules/index.d.ts +49 -0
- package/dist/services/rules/index.d.ts.map +1 -0
- package/dist/services/rules/llm-rule.constant.d.ts +84 -0
- package/dist/services/rules/llm-rule.constant.d.ts.map +1 -0
- package/dist/services/rules/mock.d.ts +20 -0
- package/dist/services/rules/mock.d.ts.map +1 -0
- package/dist/services/rules/rules.type.d.ts +262 -0
- package/dist/services/rules/rules.type.d.ts.map +1 -0
- package/dist/services/rules/triggers.d.ts +140 -0
- package/dist/services/rules/triggers.d.ts.map +1 -0
- package/dist/services/settings/index.d.ts +36 -0
- package/dist/services/settings/index.d.ts.map +1 -0
- package/dist/services/settings/mock.d.ts +14 -0
- package/dist/services/settings/mock.d.ts.map +1 -0
- package/dist/services/settings/settings.type.d.ts +39 -0
- package/dist/services/settings/settings.type.d.ts.map +1 -0
- package/dist/stores/auth.d.ts +192 -0
- package/dist/stores/auth.d.ts.map +1 -0
- package/dist/stores/bars.d.ts +288 -0
- package/dist/stores/bars.d.ts.map +1 -0
- package/dist/stores/content.d.ts +4101 -0
- package/dist/stores/content.d.ts.map +1 -0
- package/dist/stores/executions.d.ts +249 -0
- package/dist/stores/executions.d.ts.map +1 -0
- package/dist/stores/gov.d.ts +238 -0
- package/dist/stores/gov.d.ts.map +1 -0
- package/dist/stores/history.d.ts +833 -0
- package/dist/stores/history.d.ts.map +1 -0
- package/dist/stores/index.d.ts +15 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/kalshi.d.ts +728 -0
- package/dist/stores/kalshi.d.ts.map +1 -0
- package/dist/stores/llm-providers.d.ts +97 -0
- package/dist/stores/llm-providers.d.ts.map +1 -0
- package/dist/stores/llm.d.ts +102 -0
- package/dist/stores/llm.d.ts.map +1 -0
- package/dist/stores/people.d.ts +596 -0
- package/dist/stores/people.d.ts.map +1 -0
- package/dist/stores/persist.d.ts +58 -0
- package/dist/stores/persist.d.ts.map +1 -0
- package/dist/stores/rules.d.ts +485 -0
- package/dist/stores/rules.d.ts.map +1 -0
- package/dist/stores/settings.d.ts +36 -0
- package/dist/stores/settings.d.ts.map +1 -0
- package/dist/stores/ws.d.ts +66 -0
- package/dist/stores/ws.d.ts.map +1 -0
- package/package.json +90 -0
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
import { ICmsSDK } from '../core/sdk.type';
|
|
2
|
+
import { ContentRule, ContentRuleListResponse, RuleCreatePayload, RuleListQuery, RuleUpdatePayload, SignalFireContext, SignalFireResponse } from '../services/rules/rules.type';
|
|
3
|
+
/**
|
|
4
|
+
* Rules store — `ContentRule` CRUD (`/api/v1/rules`). Serves both FEAT-002
|
|
5
|
+
* (`conditionType: 'llm_agent'` skills) and FEAT-004 (expression/chain).
|
|
6
|
+
*
|
|
7
|
+
* All field names use camelCase to match the backend API response.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useRulesStore: import('pinia').StoreDefinition<"cms-rules", Pick<{
|
|
10
|
+
items: import('vue').Ref<{
|
|
11
|
+
id: number;
|
|
12
|
+
uuid: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string | null | undefined;
|
|
15
|
+
typeName?: string | null | undefined;
|
|
16
|
+
codeType: string;
|
|
17
|
+
conditionCode?: string | null | undefined;
|
|
18
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
19
|
+
conditionExpr?: string | null | undefined;
|
|
20
|
+
trigger: Record<string, unknown>;
|
|
21
|
+
executionType: import('..').RuleExecutionType;
|
|
22
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
23
|
+
priority: number;
|
|
24
|
+
isActive: boolean;
|
|
25
|
+
timeoutSeconds: number;
|
|
26
|
+
cronSchedule?: string | null | undefined;
|
|
27
|
+
cronTimezone?: string | null | undefined;
|
|
28
|
+
nextTriggerAt?: string | null | undefined;
|
|
29
|
+
lastFiredAt?: string | null | undefined;
|
|
30
|
+
packId?: string | null | undefined;
|
|
31
|
+
createdBy?: number | null | undefined;
|
|
32
|
+
updatedBy?: number | null | undefined;
|
|
33
|
+
createdAt?: string | null | undefined;
|
|
34
|
+
updatedAt?: string | null | undefined;
|
|
35
|
+
}[], ContentRule[] | {
|
|
36
|
+
id: number;
|
|
37
|
+
uuid: string;
|
|
38
|
+
name: string;
|
|
39
|
+
description?: string | null | undefined;
|
|
40
|
+
typeName?: string | null | undefined;
|
|
41
|
+
codeType: string;
|
|
42
|
+
conditionCode?: string | null | undefined;
|
|
43
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
44
|
+
conditionExpr?: string | null | undefined;
|
|
45
|
+
trigger: Record<string, unknown>;
|
|
46
|
+
executionType: import('..').RuleExecutionType;
|
|
47
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
48
|
+
priority: number;
|
|
49
|
+
isActive: boolean;
|
|
50
|
+
timeoutSeconds: number;
|
|
51
|
+
cronSchedule?: string | null | undefined;
|
|
52
|
+
cronTimezone?: string | null | undefined;
|
|
53
|
+
nextTriggerAt?: string | null | undefined;
|
|
54
|
+
lastFiredAt?: string | null | undefined;
|
|
55
|
+
packId?: string | null | undefined;
|
|
56
|
+
createdBy?: number | null | undefined;
|
|
57
|
+
updatedBy?: number | null | undefined;
|
|
58
|
+
createdAt?: string | null | undefined;
|
|
59
|
+
updatedAt?: string | null | undefined;
|
|
60
|
+
}[]>;
|
|
61
|
+
total: import('vue').Ref<number, number>;
|
|
62
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
63
|
+
loadError: import('vue').Ref<Error | null, Error | null>;
|
|
64
|
+
lastQuery: import('vue').Ref<{
|
|
65
|
+
sourceType?: string | undefined;
|
|
66
|
+
executionType?: import('..').RuleExecutionType | undefined;
|
|
67
|
+
typeName?: string | undefined;
|
|
68
|
+
isActive?: boolean | undefined;
|
|
69
|
+
packId?: string | undefined;
|
|
70
|
+
format?: import('..').SerializationFormat | undefined;
|
|
71
|
+
}, Partial<RuleListQuery> | {
|
|
72
|
+
sourceType?: string | undefined;
|
|
73
|
+
executionType?: import('..').RuleExecutionType | undefined;
|
|
74
|
+
typeName?: string | undefined;
|
|
75
|
+
isActive?: boolean | undefined;
|
|
76
|
+
packId?: string | undefined;
|
|
77
|
+
format?: import('..').SerializationFormat | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
selectedRule: import('vue').Ref<{
|
|
80
|
+
id: number;
|
|
81
|
+
uuid: string;
|
|
82
|
+
name: string;
|
|
83
|
+
description?: string | null | undefined;
|
|
84
|
+
typeName?: string | null | undefined;
|
|
85
|
+
codeType: string;
|
|
86
|
+
conditionCode?: string | null | undefined;
|
|
87
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
88
|
+
conditionExpr?: string | null | undefined;
|
|
89
|
+
trigger: Record<string, unknown>;
|
|
90
|
+
executionType: import('..').RuleExecutionType;
|
|
91
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
92
|
+
priority: number;
|
|
93
|
+
isActive: boolean;
|
|
94
|
+
timeoutSeconds: number;
|
|
95
|
+
cronSchedule?: string | null | undefined;
|
|
96
|
+
cronTimezone?: string | null | undefined;
|
|
97
|
+
nextTriggerAt?: string | null | undefined;
|
|
98
|
+
lastFiredAt?: string | null | undefined;
|
|
99
|
+
packId?: string | null | undefined;
|
|
100
|
+
createdBy?: number | null | undefined;
|
|
101
|
+
updatedBy?: number | null | undefined;
|
|
102
|
+
createdAt?: string | null | undefined;
|
|
103
|
+
updatedAt?: string | null | undefined;
|
|
104
|
+
} | null, ContentRule | {
|
|
105
|
+
id: number;
|
|
106
|
+
uuid: string;
|
|
107
|
+
name: string;
|
|
108
|
+
description?: string | null | undefined;
|
|
109
|
+
typeName?: string | null | undefined;
|
|
110
|
+
codeType: string;
|
|
111
|
+
conditionCode?: string | null | undefined;
|
|
112
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
113
|
+
conditionExpr?: string | null | undefined;
|
|
114
|
+
trigger: Record<string, unknown>;
|
|
115
|
+
executionType: import('..').RuleExecutionType;
|
|
116
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
117
|
+
priority: number;
|
|
118
|
+
isActive: boolean;
|
|
119
|
+
timeoutSeconds: number;
|
|
120
|
+
cronSchedule?: string | null | undefined;
|
|
121
|
+
cronTimezone?: string | null | undefined;
|
|
122
|
+
nextTriggerAt?: string | null | undefined;
|
|
123
|
+
lastFiredAt?: string | null | undefined;
|
|
124
|
+
packId?: string | null | undefined;
|
|
125
|
+
createdBy?: number | null | undefined;
|
|
126
|
+
updatedBy?: number | null | undefined;
|
|
127
|
+
createdAt?: string | null | undefined;
|
|
128
|
+
updatedAt?: string | null | undefined;
|
|
129
|
+
} | null>;
|
|
130
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
131
|
+
activeRules: import('vue').ComputedRef<{
|
|
132
|
+
id: number;
|
|
133
|
+
uuid: string;
|
|
134
|
+
name: string;
|
|
135
|
+
description?: string | null | undefined;
|
|
136
|
+
typeName?: string | null | undefined;
|
|
137
|
+
codeType: string;
|
|
138
|
+
conditionCode?: string | null | undefined;
|
|
139
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
140
|
+
conditionExpr?: string | null | undefined;
|
|
141
|
+
trigger: Record<string, unknown>;
|
|
142
|
+
executionType: import('..').RuleExecutionType;
|
|
143
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
144
|
+
priority: number;
|
|
145
|
+
isActive: boolean;
|
|
146
|
+
timeoutSeconds: number;
|
|
147
|
+
cronSchedule?: string | null | undefined;
|
|
148
|
+
cronTimezone?: string | null | undefined;
|
|
149
|
+
nextTriggerAt?: string | null | undefined;
|
|
150
|
+
lastFiredAt?: string | null | undefined;
|
|
151
|
+
packId?: string | null | undefined;
|
|
152
|
+
createdBy?: number | null | undefined;
|
|
153
|
+
updatedBy?: number | null | undefined;
|
|
154
|
+
createdAt?: string | null | undefined;
|
|
155
|
+
updatedAt?: string | null | undefined;
|
|
156
|
+
}[]>;
|
|
157
|
+
setSdk: (instance: ICmsSDK) => void;
|
|
158
|
+
fetch: (query?: Partial<RuleListQuery>) => Promise<void>;
|
|
159
|
+
select: (uuid: string | null) => void;
|
|
160
|
+
create: (payload: RuleCreatePayload) => Promise<void>;
|
|
161
|
+
update: (uuid: string, payload: RuleUpdatePayload) => Promise<void>;
|
|
162
|
+
toggle: (uuid: string, active: boolean) => Promise<void>;
|
|
163
|
+
remove: (uuid: string) => Promise<void>;
|
|
164
|
+
signalFire: (signalName: string, context: SignalFireContext, options?: {
|
|
165
|
+
timeoutMs?: number;
|
|
166
|
+
}) => Promise<SignalFireResponse>;
|
|
167
|
+
}, "total" | "items" | "isLoading" | "loadError" | "lastQuery" | "selectedRule">, Pick<{
|
|
168
|
+
items: import('vue').Ref<{
|
|
169
|
+
id: number;
|
|
170
|
+
uuid: string;
|
|
171
|
+
name: string;
|
|
172
|
+
description?: string | null | undefined;
|
|
173
|
+
typeName?: string | null | undefined;
|
|
174
|
+
codeType: string;
|
|
175
|
+
conditionCode?: string | null | undefined;
|
|
176
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
177
|
+
conditionExpr?: string | null | undefined;
|
|
178
|
+
trigger: Record<string, unknown>;
|
|
179
|
+
executionType: import('..').RuleExecutionType;
|
|
180
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
181
|
+
priority: number;
|
|
182
|
+
isActive: boolean;
|
|
183
|
+
timeoutSeconds: number;
|
|
184
|
+
cronSchedule?: string | null | undefined;
|
|
185
|
+
cronTimezone?: string | null | undefined;
|
|
186
|
+
nextTriggerAt?: string | null | undefined;
|
|
187
|
+
lastFiredAt?: string | null | undefined;
|
|
188
|
+
packId?: string | null | undefined;
|
|
189
|
+
createdBy?: number | null | undefined;
|
|
190
|
+
updatedBy?: number | null | undefined;
|
|
191
|
+
createdAt?: string | null | undefined;
|
|
192
|
+
updatedAt?: string | null | undefined;
|
|
193
|
+
}[], ContentRule[] | {
|
|
194
|
+
id: number;
|
|
195
|
+
uuid: string;
|
|
196
|
+
name: string;
|
|
197
|
+
description?: string | null | undefined;
|
|
198
|
+
typeName?: string | null | undefined;
|
|
199
|
+
codeType: string;
|
|
200
|
+
conditionCode?: string | null | undefined;
|
|
201
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
202
|
+
conditionExpr?: string | null | undefined;
|
|
203
|
+
trigger: Record<string, unknown>;
|
|
204
|
+
executionType: import('..').RuleExecutionType;
|
|
205
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
206
|
+
priority: number;
|
|
207
|
+
isActive: boolean;
|
|
208
|
+
timeoutSeconds: number;
|
|
209
|
+
cronSchedule?: string | null | undefined;
|
|
210
|
+
cronTimezone?: string | null | undefined;
|
|
211
|
+
nextTriggerAt?: string | null | undefined;
|
|
212
|
+
lastFiredAt?: string | null | undefined;
|
|
213
|
+
packId?: string | null | undefined;
|
|
214
|
+
createdBy?: number | null | undefined;
|
|
215
|
+
updatedBy?: number | null | undefined;
|
|
216
|
+
createdAt?: string | null | undefined;
|
|
217
|
+
updatedAt?: string | null | undefined;
|
|
218
|
+
}[]>;
|
|
219
|
+
total: import('vue').Ref<number, number>;
|
|
220
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
221
|
+
loadError: import('vue').Ref<Error | null, Error | null>;
|
|
222
|
+
lastQuery: import('vue').Ref<{
|
|
223
|
+
sourceType?: string | undefined;
|
|
224
|
+
executionType?: import('..').RuleExecutionType | undefined;
|
|
225
|
+
typeName?: string | undefined;
|
|
226
|
+
isActive?: boolean | undefined;
|
|
227
|
+
packId?: string | undefined;
|
|
228
|
+
format?: import('..').SerializationFormat | undefined;
|
|
229
|
+
}, Partial<RuleListQuery> | {
|
|
230
|
+
sourceType?: string | undefined;
|
|
231
|
+
executionType?: import('..').RuleExecutionType | undefined;
|
|
232
|
+
typeName?: string | undefined;
|
|
233
|
+
isActive?: boolean | undefined;
|
|
234
|
+
packId?: string | undefined;
|
|
235
|
+
format?: import('..').SerializationFormat | undefined;
|
|
236
|
+
}>;
|
|
237
|
+
selectedRule: import('vue').Ref<{
|
|
238
|
+
id: number;
|
|
239
|
+
uuid: string;
|
|
240
|
+
name: string;
|
|
241
|
+
description?: string | null | undefined;
|
|
242
|
+
typeName?: string | null | undefined;
|
|
243
|
+
codeType: string;
|
|
244
|
+
conditionCode?: string | null | undefined;
|
|
245
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
246
|
+
conditionExpr?: string | null | undefined;
|
|
247
|
+
trigger: Record<string, unknown>;
|
|
248
|
+
executionType: import('..').RuleExecutionType;
|
|
249
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
250
|
+
priority: number;
|
|
251
|
+
isActive: boolean;
|
|
252
|
+
timeoutSeconds: number;
|
|
253
|
+
cronSchedule?: string | null | undefined;
|
|
254
|
+
cronTimezone?: string | null | undefined;
|
|
255
|
+
nextTriggerAt?: string | null | undefined;
|
|
256
|
+
lastFiredAt?: string | null | undefined;
|
|
257
|
+
packId?: string | null | undefined;
|
|
258
|
+
createdBy?: number | null | undefined;
|
|
259
|
+
updatedBy?: number | null | undefined;
|
|
260
|
+
createdAt?: string | null | undefined;
|
|
261
|
+
updatedAt?: string | null | undefined;
|
|
262
|
+
} | null, ContentRule | {
|
|
263
|
+
id: number;
|
|
264
|
+
uuid: string;
|
|
265
|
+
name: string;
|
|
266
|
+
description?: string | null | undefined;
|
|
267
|
+
typeName?: string | null | undefined;
|
|
268
|
+
codeType: string;
|
|
269
|
+
conditionCode?: string | null | undefined;
|
|
270
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
271
|
+
conditionExpr?: string | null | undefined;
|
|
272
|
+
trigger: Record<string, unknown>;
|
|
273
|
+
executionType: import('..').RuleExecutionType;
|
|
274
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
275
|
+
priority: number;
|
|
276
|
+
isActive: boolean;
|
|
277
|
+
timeoutSeconds: number;
|
|
278
|
+
cronSchedule?: string | null | undefined;
|
|
279
|
+
cronTimezone?: string | null | undefined;
|
|
280
|
+
nextTriggerAt?: string | null | undefined;
|
|
281
|
+
lastFiredAt?: string | null | undefined;
|
|
282
|
+
packId?: string | null | undefined;
|
|
283
|
+
createdBy?: number | null | undefined;
|
|
284
|
+
updatedBy?: number | null | undefined;
|
|
285
|
+
createdAt?: string | null | undefined;
|
|
286
|
+
updatedAt?: string | null | undefined;
|
|
287
|
+
} | null>;
|
|
288
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
289
|
+
activeRules: import('vue').ComputedRef<{
|
|
290
|
+
id: number;
|
|
291
|
+
uuid: string;
|
|
292
|
+
name: string;
|
|
293
|
+
description?: string | null | undefined;
|
|
294
|
+
typeName?: string | null | undefined;
|
|
295
|
+
codeType: string;
|
|
296
|
+
conditionCode?: string | null | undefined;
|
|
297
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
298
|
+
conditionExpr?: string | null | undefined;
|
|
299
|
+
trigger: Record<string, unknown>;
|
|
300
|
+
executionType: import('..').RuleExecutionType;
|
|
301
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
302
|
+
priority: number;
|
|
303
|
+
isActive: boolean;
|
|
304
|
+
timeoutSeconds: number;
|
|
305
|
+
cronSchedule?: string | null | undefined;
|
|
306
|
+
cronTimezone?: string | null | undefined;
|
|
307
|
+
nextTriggerAt?: string | null | undefined;
|
|
308
|
+
lastFiredAt?: string | null | undefined;
|
|
309
|
+
packId?: string | null | undefined;
|
|
310
|
+
createdBy?: number | null | undefined;
|
|
311
|
+
updatedBy?: number | null | undefined;
|
|
312
|
+
createdAt?: string | null | undefined;
|
|
313
|
+
updatedAt?: string | null | undefined;
|
|
314
|
+
}[]>;
|
|
315
|
+
setSdk: (instance: ICmsSDK) => void;
|
|
316
|
+
fetch: (query?: Partial<RuleListQuery>) => Promise<void>;
|
|
317
|
+
select: (uuid: string | null) => void;
|
|
318
|
+
create: (payload: RuleCreatePayload) => Promise<void>;
|
|
319
|
+
update: (uuid: string, payload: RuleUpdatePayload) => Promise<void>;
|
|
320
|
+
toggle: (uuid: string, active: boolean) => Promise<void>;
|
|
321
|
+
remove: (uuid: string) => Promise<void>;
|
|
322
|
+
signalFire: (signalName: string, context: SignalFireContext, options?: {
|
|
323
|
+
timeoutMs?: number;
|
|
324
|
+
}) => Promise<SignalFireResponse>;
|
|
325
|
+
}, "isEmpty" | "activeRules">, Pick<{
|
|
326
|
+
items: import('vue').Ref<{
|
|
327
|
+
id: number;
|
|
328
|
+
uuid: string;
|
|
329
|
+
name: string;
|
|
330
|
+
description?: string | null | undefined;
|
|
331
|
+
typeName?: string | null | undefined;
|
|
332
|
+
codeType: string;
|
|
333
|
+
conditionCode?: string | null | undefined;
|
|
334
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
335
|
+
conditionExpr?: string | null | undefined;
|
|
336
|
+
trigger: Record<string, unknown>;
|
|
337
|
+
executionType: import('..').RuleExecutionType;
|
|
338
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
339
|
+
priority: number;
|
|
340
|
+
isActive: boolean;
|
|
341
|
+
timeoutSeconds: number;
|
|
342
|
+
cronSchedule?: string | null | undefined;
|
|
343
|
+
cronTimezone?: string | null | undefined;
|
|
344
|
+
nextTriggerAt?: string | null | undefined;
|
|
345
|
+
lastFiredAt?: string | null | undefined;
|
|
346
|
+
packId?: string | null | undefined;
|
|
347
|
+
createdBy?: number | null | undefined;
|
|
348
|
+
updatedBy?: number | null | undefined;
|
|
349
|
+
createdAt?: string | null | undefined;
|
|
350
|
+
updatedAt?: string | null | undefined;
|
|
351
|
+
}[], ContentRule[] | {
|
|
352
|
+
id: number;
|
|
353
|
+
uuid: string;
|
|
354
|
+
name: string;
|
|
355
|
+
description?: string | null | undefined;
|
|
356
|
+
typeName?: string | null | undefined;
|
|
357
|
+
codeType: string;
|
|
358
|
+
conditionCode?: string | null | undefined;
|
|
359
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
360
|
+
conditionExpr?: string | null | undefined;
|
|
361
|
+
trigger: Record<string, unknown>;
|
|
362
|
+
executionType: import('..').RuleExecutionType;
|
|
363
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
364
|
+
priority: number;
|
|
365
|
+
isActive: boolean;
|
|
366
|
+
timeoutSeconds: number;
|
|
367
|
+
cronSchedule?: string | null | undefined;
|
|
368
|
+
cronTimezone?: string | null | undefined;
|
|
369
|
+
nextTriggerAt?: string | null | undefined;
|
|
370
|
+
lastFiredAt?: string | null | undefined;
|
|
371
|
+
packId?: string | null | undefined;
|
|
372
|
+
createdBy?: number | null | undefined;
|
|
373
|
+
updatedBy?: number | null | undefined;
|
|
374
|
+
createdAt?: string | null | undefined;
|
|
375
|
+
updatedAt?: string | null | undefined;
|
|
376
|
+
}[]>;
|
|
377
|
+
total: import('vue').Ref<number, number>;
|
|
378
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
379
|
+
loadError: import('vue').Ref<Error | null, Error | null>;
|
|
380
|
+
lastQuery: import('vue').Ref<{
|
|
381
|
+
sourceType?: string | undefined;
|
|
382
|
+
executionType?: import('..').RuleExecutionType | undefined;
|
|
383
|
+
typeName?: string | undefined;
|
|
384
|
+
isActive?: boolean | undefined;
|
|
385
|
+
packId?: string | undefined;
|
|
386
|
+
format?: import('..').SerializationFormat | undefined;
|
|
387
|
+
}, Partial<RuleListQuery> | {
|
|
388
|
+
sourceType?: string | undefined;
|
|
389
|
+
executionType?: import('..').RuleExecutionType | undefined;
|
|
390
|
+
typeName?: string | undefined;
|
|
391
|
+
isActive?: boolean | undefined;
|
|
392
|
+
packId?: string | undefined;
|
|
393
|
+
format?: import('..').SerializationFormat | undefined;
|
|
394
|
+
}>;
|
|
395
|
+
selectedRule: import('vue').Ref<{
|
|
396
|
+
id: number;
|
|
397
|
+
uuid: string;
|
|
398
|
+
name: string;
|
|
399
|
+
description?: string | null | undefined;
|
|
400
|
+
typeName?: string | null | undefined;
|
|
401
|
+
codeType: string;
|
|
402
|
+
conditionCode?: string | null | undefined;
|
|
403
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
404
|
+
conditionExpr?: string | null | undefined;
|
|
405
|
+
trigger: Record<string, unknown>;
|
|
406
|
+
executionType: import('..').RuleExecutionType;
|
|
407
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
408
|
+
priority: number;
|
|
409
|
+
isActive: boolean;
|
|
410
|
+
timeoutSeconds: number;
|
|
411
|
+
cronSchedule?: string | null | undefined;
|
|
412
|
+
cronTimezone?: string | null | undefined;
|
|
413
|
+
nextTriggerAt?: string | null | undefined;
|
|
414
|
+
lastFiredAt?: string | null | undefined;
|
|
415
|
+
packId?: string | null | undefined;
|
|
416
|
+
createdBy?: number | null | undefined;
|
|
417
|
+
updatedBy?: number | null | undefined;
|
|
418
|
+
createdAt?: string | null | undefined;
|
|
419
|
+
updatedAt?: string | null | undefined;
|
|
420
|
+
} | null, ContentRule | {
|
|
421
|
+
id: number;
|
|
422
|
+
uuid: string;
|
|
423
|
+
name: string;
|
|
424
|
+
description?: string | null | undefined;
|
|
425
|
+
typeName?: string | null | undefined;
|
|
426
|
+
codeType: string;
|
|
427
|
+
conditionCode?: string | null | undefined;
|
|
428
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
429
|
+
conditionExpr?: string | null | undefined;
|
|
430
|
+
trigger: Record<string, unknown>;
|
|
431
|
+
executionType: import('..').RuleExecutionType;
|
|
432
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
433
|
+
priority: number;
|
|
434
|
+
isActive: boolean;
|
|
435
|
+
timeoutSeconds: number;
|
|
436
|
+
cronSchedule?: string | null | undefined;
|
|
437
|
+
cronTimezone?: string | null | undefined;
|
|
438
|
+
nextTriggerAt?: string | null | undefined;
|
|
439
|
+
lastFiredAt?: string | null | undefined;
|
|
440
|
+
packId?: string | null | undefined;
|
|
441
|
+
createdBy?: number | null | undefined;
|
|
442
|
+
updatedBy?: number | null | undefined;
|
|
443
|
+
createdAt?: string | null | undefined;
|
|
444
|
+
updatedAt?: string | null | undefined;
|
|
445
|
+
} | null>;
|
|
446
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
447
|
+
activeRules: import('vue').ComputedRef<{
|
|
448
|
+
id: number;
|
|
449
|
+
uuid: string;
|
|
450
|
+
name: string;
|
|
451
|
+
description?: string | null | undefined;
|
|
452
|
+
typeName?: string | null | undefined;
|
|
453
|
+
codeType: string;
|
|
454
|
+
conditionCode?: string | null | undefined;
|
|
455
|
+
conditionType?: import('..').ConditionType | undefined;
|
|
456
|
+
conditionExpr?: string | null | undefined;
|
|
457
|
+
trigger: Record<string, unknown>;
|
|
458
|
+
executionType: import('..').RuleExecutionType;
|
|
459
|
+
executionParams?: (Record<string, unknown> | null) | undefined;
|
|
460
|
+
priority: number;
|
|
461
|
+
isActive: boolean;
|
|
462
|
+
timeoutSeconds: number;
|
|
463
|
+
cronSchedule?: string | null | undefined;
|
|
464
|
+
cronTimezone?: string | null | undefined;
|
|
465
|
+
nextTriggerAt?: string | null | undefined;
|
|
466
|
+
lastFiredAt?: string | null | undefined;
|
|
467
|
+
packId?: string | null | undefined;
|
|
468
|
+
createdBy?: number | null | undefined;
|
|
469
|
+
updatedBy?: number | null | undefined;
|
|
470
|
+
createdAt?: string | null | undefined;
|
|
471
|
+
updatedAt?: string | null | undefined;
|
|
472
|
+
}[]>;
|
|
473
|
+
setSdk: (instance: ICmsSDK) => void;
|
|
474
|
+
fetch: (query?: Partial<RuleListQuery>) => Promise<void>;
|
|
475
|
+
select: (uuid: string | null) => void;
|
|
476
|
+
create: (payload: RuleCreatePayload) => Promise<void>;
|
|
477
|
+
update: (uuid: string, payload: RuleUpdatePayload) => Promise<void>;
|
|
478
|
+
toggle: (uuid: string, active: boolean) => Promise<void>;
|
|
479
|
+
remove: (uuid: string) => Promise<void>;
|
|
480
|
+
signalFire: (signalName: string, context: SignalFireContext, options?: {
|
|
481
|
+
timeoutMs?: number;
|
|
482
|
+
}) => Promise<SignalFireResponse>;
|
|
483
|
+
}, "create" | "select" | "toggle" | "remove" | "setSdk" | "update" | "fetch" | "signalFire">>;
|
|
484
|
+
export type { ContentRuleListResponse };
|
|
485
|
+
//# sourceMappingURL=rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/stores/rules.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EACV,WAAW,EACX,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAeI,OAAO,KAAG,IAAI;oBASZ,OAAO,CAAC,aAAa,CAAC,KAAQ,OAAO,CAAC,IAAI,CAAC;mBAkBjD,MAAM,GAAG,IAAI,KAAG,IAAI;sBAIX,iBAAiB,KAAG,OAAO,CAAC,IAAI,CAAC;mBAWpC,MAAM,WAAW,iBAAiB,KAAG,OAAO,CAAC,IAAI,CAAC;mBAWlD,MAAM,UAAU,OAAO,KAAG,OAAO,CAAC,IAAI,CAAC;mBAWvC,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;6BAmBpC,MAAM,WACT,iBAAiB,YAChB;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,KAC/B,OAAO,CAAC,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAtFJ,OAAO,KAAG,IAAI;oBASZ,OAAO,CAAC,aAAa,CAAC,KAAQ,OAAO,CAAC,IAAI,CAAC;mBAkBjD,MAAM,GAAG,IAAI,KAAG,IAAI;sBAIX,iBAAiB,KAAG,OAAO,CAAC,IAAI,CAAC;mBAWpC,MAAM,WAAW,iBAAiB,KAAG,OAAO,CAAC,IAAI,CAAC;mBAWlD,MAAM,UAAU,OAAO,KAAG,OAAO,CAAC,IAAI,CAAC;mBAWvC,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;6BAmBpC,MAAM,WACT,iBAAiB,YAChB;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,KAC/B,OAAO,CAAC,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAtFJ,OAAO,KAAG,IAAI;oBASZ,OAAO,CAAC,aAAa,CAAC,KAAQ,OAAO,CAAC,IAAI,CAAC;mBAkBjD,MAAM,GAAG,IAAI,KAAG,IAAI;sBAIX,iBAAiB,KAAG,OAAO,CAAC,IAAI,CAAC;mBAWpC,MAAM,WAAW,iBAAiB,KAAG,OAAO,CAAC,IAAI,CAAC;mBAWlD,MAAM,UAAU,OAAO,KAAG,OAAO,CAAC,IAAI,CAAC;mBAWvC,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;6BAmBpC,MAAM,WACT,iBAAiB,YAChB;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,KAC/B,OAAO,CAAC,kBAAkB,CAAC;6FAsCjC,CAAC;AAEF,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ICmsSDK } from '../core/sdk.type';
|
|
2
|
+
/**
|
|
3
|
+
* Settings store — monitored-groups list (FEAT-006). The CMS is the source of
|
|
4
|
+
* truth; the store mirrors it locally for fast UI and writes changes back
|
|
5
|
+
* through `addGroup` / `removeGroup`. The mirrored list is persisted so the UI
|
|
6
|
+
* is fast on reload (it is non-credential UI state).
|
|
7
|
+
*/
|
|
8
|
+
export declare const useSettingsStore: import('pinia').StoreDefinition<"cms-settings", Pick<{
|
|
9
|
+
monitoredGroups: import('vue').Ref<string[], string[]>;
|
|
10
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
11
|
+
loadError: import('vue').Ref<Error | null, Error | null>;
|
|
12
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
13
|
+
setSdk: (instance: ICmsSDK) => void;
|
|
14
|
+
fetchGroups: () => Promise<void>;
|
|
15
|
+
addGroup: (group: string) => Promise<void>;
|
|
16
|
+
removeGroup: (group: string) => Promise<void>;
|
|
17
|
+
}, "isLoading" | "loadError" | "monitoredGroups">, Pick<{
|
|
18
|
+
monitoredGroups: import('vue').Ref<string[], string[]>;
|
|
19
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
20
|
+
loadError: import('vue').Ref<Error | null, Error | null>;
|
|
21
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
22
|
+
setSdk: (instance: ICmsSDK) => void;
|
|
23
|
+
fetchGroups: () => Promise<void>;
|
|
24
|
+
addGroup: (group: string) => Promise<void>;
|
|
25
|
+
removeGroup: (group: string) => Promise<void>;
|
|
26
|
+
}, "isEmpty">, Pick<{
|
|
27
|
+
monitoredGroups: import('vue').Ref<string[], string[]>;
|
|
28
|
+
isLoading: import('vue').Ref<boolean, boolean>;
|
|
29
|
+
loadError: import('vue').Ref<Error | null, Error | null>;
|
|
30
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
31
|
+
setSdk: (instance: ICmsSDK) => void;
|
|
32
|
+
fetchGroups: () => Promise<void>;
|
|
33
|
+
addGroup: (group: string) => Promise<void>;
|
|
34
|
+
removeGroup: (group: string) => Promise<void>;
|
|
35
|
+
}, "setSdk" | "fetchGroups" | "addGroup" | "removeGroup">>;
|
|
36
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/stores/settings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;uBAWC,OAAO,KAAG,IAAI;uBASV,OAAO,CAAC,IAAI,CAAC;sBAyBZ,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;yBAanB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;uBA/C9B,OAAO,KAAG,IAAI;uBASV,OAAO,CAAC,IAAI,CAAC;sBAyBZ,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;yBAanB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;uBA/C9B,OAAO,KAAG,IAAI;uBASV,OAAO,CAAC,IAAI,CAAC;sBAyBZ,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;yBAanB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC;0DAiC3D,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ICmsSDK } from '../core/sdk.type';
|
|
2
|
+
import { WsConnectionState } from '../core/ws/ws.type';
|
|
3
|
+
/**
|
|
4
|
+
* WebSocket store — thin reactive facade over {@link IWsClient}. The SDK's
|
|
5
|
+
* Nuxt module wires the SDK facade (which holds the WS client); standalone
|
|
6
|
+
* consumers call {@link useWsStore.setSdk} once.
|
|
7
|
+
*
|
|
8
|
+
* The store is intentionally **non-persistent**: the WS connection is
|
|
9
|
+
* per-session; subscriptions are rebuilt on every reconnect.
|
|
10
|
+
*
|
|
11
|
+
* Consumers typically do one of:
|
|
12
|
+
*
|
|
13
|
+
* - subscribe declaratively:
|
|
14
|
+
* `useWsStore().subscribe(['risk:executions'])`
|
|
15
|
+
* - listen for live events (via the Nuxt-injected WS client):
|
|
16
|
+
* `useNuxtApp().$ws?.onEvent((e) => { ... })`
|
|
17
|
+
* - dispatch an action:
|
|
18
|
+
* `useWsStore().invokeAction(uuid, 'place_market_order', { ... })`
|
|
19
|
+
*/
|
|
20
|
+
export declare const useWsStore: import('pinia').StoreDefinition<"cms-ws", Pick<{
|
|
21
|
+
connectionState: import('vue').Ref<WsConnectionState, WsConnectionState>;
|
|
22
|
+
lastEventAt: import('vue').Ref<string | null, string | null>;
|
|
23
|
+
subscribed: import('vue').Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
|
|
24
|
+
isOpen: import('vue').ComputedRef<boolean>;
|
|
25
|
+
isReady: import('vue').ComputedRef<boolean>;
|
|
26
|
+
setSdk: (instance: ICmsSDK) => void;
|
|
27
|
+
open: () => void;
|
|
28
|
+
reopen: () => void;
|
|
29
|
+
close: (reason?: string) => void;
|
|
30
|
+
subscribe: (topics: string[]) => void;
|
|
31
|
+
unsubscribe: (topics: string[]) => void;
|
|
32
|
+
unsubscribeAll: () => void;
|
|
33
|
+
invokeAction: (contentUuid: string, action: string, params?: Record<string, unknown>) => string | null;
|
|
34
|
+
fetchResult: (requestId: string) => void;
|
|
35
|
+
}, "connectionState" | "lastEventAt" | "subscribed">, Pick<{
|
|
36
|
+
connectionState: import('vue').Ref<WsConnectionState, WsConnectionState>;
|
|
37
|
+
lastEventAt: import('vue').Ref<string | null, string | null>;
|
|
38
|
+
subscribed: import('vue').Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
|
|
39
|
+
isOpen: import('vue').ComputedRef<boolean>;
|
|
40
|
+
isReady: import('vue').ComputedRef<boolean>;
|
|
41
|
+
setSdk: (instance: ICmsSDK) => void;
|
|
42
|
+
open: () => void;
|
|
43
|
+
reopen: () => void;
|
|
44
|
+
close: (reason?: string) => void;
|
|
45
|
+
subscribe: (topics: string[]) => void;
|
|
46
|
+
unsubscribe: (topics: string[]) => void;
|
|
47
|
+
unsubscribeAll: () => void;
|
|
48
|
+
invokeAction: (contentUuid: string, action: string, params?: Record<string, unknown>) => string | null;
|
|
49
|
+
fetchResult: (requestId: string) => void;
|
|
50
|
+
}, "isOpen" | "isReady">, Pick<{
|
|
51
|
+
connectionState: import('vue').Ref<WsConnectionState, WsConnectionState>;
|
|
52
|
+
lastEventAt: import('vue').Ref<string | null, string | null>;
|
|
53
|
+
subscribed: import('vue').Ref<Set<string> & Omit<Set<string>, keyof Set<any>>, Set<string> | (Set<string> & Omit<Set<string>, keyof Set<any>>)>;
|
|
54
|
+
isOpen: import('vue').ComputedRef<boolean>;
|
|
55
|
+
isReady: import('vue').ComputedRef<boolean>;
|
|
56
|
+
setSdk: (instance: ICmsSDK) => void;
|
|
57
|
+
open: () => void;
|
|
58
|
+
reopen: () => void;
|
|
59
|
+
close: (reason?: string) => void;
|
|
60
|
+
subscribe: (topics: string[]) => void;
|
|
61
|
+
unsubscribe: (topics: string[]) => void;
|
|
62
|
+
unsubscribeAll: () => void;
|
|
63
|
+
invokeAction: (contentUuid: string, action: string, params?: Record<string, unknown>) => string | null;
|
|
64
|
+
fetchResult: (requestId: string) => void;
|
|
65
|
+
}, "open" | "subscribe" | "unsubscribe" | "close" | "setSdk" | "invokeAction" | "reopen" | "unsubscribeAll" | "fetchResult">>;
|
|
66
|
+
//# sourceMappingURL=ws.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../../src/stores/ws.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAa,iBAAiB,EAAY,MAAM,oBAAoB,CAAC;AAGjF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU;;;;;;uBAiBO,OAAO,KAAG,IAAI;gBAcvB,IAAI;kBAUF,IAAI;qBAIC,MAAM,KAAG,IAAI;wBAIV,MAAM,EAAE,KAAG,IAAI;0BAQb,MAAM,EAAE,KAAG,IAAI;0BAQjB,IAAI;gCAMhB,MAAM,UACX,MAAM,WACL,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC/B,MAAM,GAAG,IAAI;6BAKgB,MAAM,KAAG,IAAI;;;;;;;uBA9DnB,OAAO,KAAG,IAAI;gBAcvB,IAAI;kBAUF,IAAI;qBAIC,MAAM,KAAG,IAAI;wBAIV,MAAM,EAAE,KAAG,IAAI;0BAQb,MAAM,EAAE,KAAG,IAAI;0BAQjB,IAAI;gCAMhB,MAAM,UACX,MAAM,WACL,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC/B,MAAM,GAAG,IAAI;6BAKgB,MAAM,KAAG,IAAI;;;;;;;uBA9DnB,OAAO,KAAG,IAAI;gBAcvB,IAAI;kBAUF,IAAI;qBAIC,MAAM,KAAG,IAAI;wBAIV,MAAM,EAAE,KAAG,IAAI;0BAQb,MAAM,EAAE,KAAG,IAAI;0BAQjB,IAAI;gCAMhB,MAAM,UACX,MAAM,WACL,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC/B,MAAM,GAAG,IAAI;6BAKgB,MAAM,KAAG,IAAI;6HA4BhD,CAAC"}
|