@daocloud-proto/skoala 0.27.2-140 → 0.27.2-144

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.
@@ -0,0 +1,123 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+
9
+ export enum TxStatus {
10
+ Tx_Unspecified = "Tx_Unspecified",
11
+ Begin = "Begin",
12
+ Committing = "Committing",
13
+ CommitRetrying = "CommitRetrying",
14
+ Rollbacking = "Rollbacking",
15
+ RollbackRetrying = "RollbackRetrying",
16
+ TimeoutRollbacking = "TimeoutRollbacking",
17
+ TimeoutRollbackRetrying = "TimeoutRollbackRetrying",
18
+ AsyncCommitting = "AsyncCommitting",
19
+ Committed = "Committed",
20
+ CommitFailed = "CommitFailed",
21
+ Rollbacked = "Rollbacked",
22
+ RollbackFailed = "RollbackFailed",
23
+ TimeoutRollbacked = "TimeoutRollbacked",
24
+ TimeoutRollbackFailed = "TimeoutRollbackFailed",
25
+ Finished = "Finished",
26
+ CommitRetryTimeout = "CommitRetryTimeout",
27
+ RollbackRetryTimeout = "RollbackRetryTimeout",
28
+ UnKnown = "UnKnown",
29
+ }
30
+
31
+ export enum BranchTxStatus {
32
+ Branch_Unspecified = "Branch_Unspecified",
33
+ Registered = "Registered",
34
+ PhaseOne_Done = "PhaseOne_Done",
35
+ PhaseOne_Failed = "PhaseOne_Failed",
36
+ PhaseOne_Timeout = "PhaseOne_Timeout",
37
+ PhaseTwo_Committed = "PhaseTwo_Committed",
38
+ PhaseTwo_CommitFailed_Retryable = "PhaseTwo_CommitFailed_Retryable",
39
+ PhaseTwo_CommitFailed_Unretryable = "PhaseTwo_CommitFailed_Unretryable",
40
+ PhaseTwo_Rollbacked = "PhaseTwo_Rollbacked",
41
+ PhaseTwo_RollbackFailed_Retryable = "PhaseTwo_RollbackFailed_Retryable",
42
+ PhaseTwo_RollbackFailed_Unretryable = "PhaseTwo_RollbackFailed_Unretryable",
43
+ Branch_UnKnown = "Branch_UnKnown",
44
+ }
45
+
46
+ export type ListTxReq = {
47
+ workspaceId?: string
48
+ clusterName?: string
49
+ namespaceName?: string
50
+ seataName?: string
51
+ page?: number
52
+ pageSize?: number
53
+ withBranch?: boolean
54
+ accessToken?: string
55
+ authorization?: string[]
56
+ xid?: string
57
+ applicationId?: string
58
+ timeStart?: string
59
+ timeEnd?: string
60
+ status?: TxStatus
61
+ }
62
+
63
+ export type ListTxRes = {
64
+ items?: Tx[]
65
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
66
+ }
67
+
68
+ export type Tx = {
69
+ xid?: string
70
+ transactionId?: string
71
+ applicationId?: string
72
+ transactionServiceGroup?: string
73
+ transactionName?: string
74
+ status?: TxStatus
75
+ timeout?: string
76
+ beginTime?: string
77
+ applicationData?: string
78
+ branchSessionVOs?: BranchSessionVOs[]
79
+ }
80
+
81
+ export type BranchSessionVOs = {
82
+ transactionId?: string
83
+ branchId?: string
84
+ resourceGroupId?: string
85
+ branchType?: string
86
+ status?: BranchTxStatus
87
+ resourceId?: string
88
+ clientId?: string
89
+ applicationData?: string
90
+ }
91
+
92
+ export type ListLockReq = {
93
+ workspaceId?: string
94
+ clusterName?: string
95
+ namespaceName?: string
96
+ seataName?: string
97
+ page?: number
98
+ pageSize?: number
99
+ timeStart?: string
100
+ timeEnd?: string
101
+ xid?: string
102
+ tableName?: string
103
+ transactionId?: string
104
+ branchId?: string
105
+ authorization?: string[]
106
+ }
107
+
108
+ export type ListLockRes = {
109
+ items?: Lock[]
110
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
111
+ }
112
+
113
+ export type Lock = {
114
+ xid?: string
115
+ transactionId?: string
116
+ branchId?: string
117
+ resourceId?: string
118
+ tableName?: string
119
+ pk?: string
120
+ rowKey?: string
121
+ gmtCreate?: string
122
+ gmtModified?: string
123
+ }
@@ -23,6 +23,7 @@ import * as SkoalaApiHostedV1alpha1Lane from "../../hosted/v1alpha1/lane.pb"
23
23
  import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
24
24
  import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
25
25
  import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
26
+ import * as SkoalaApiHostedV1alpha1Seata from "../../hosted/v1alpha1/seata.pb"
26
27
  import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
27
28
  import * as SkoalaApiHostedV1alpha1Skoala_plugins from "../../hosted/v1alpha1/skoala_plugins.pb"
28
29
  import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtualhost.pb"
@@ -412,6 +413,14 @@ export class Sentinel {
412
413
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
413
414
  }
414
415
  }
416
+ export class Seata {
417
+ static ListTx(req: SkoalaApiHostedV1alpha1Seata.ListTxReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Seata.ListTxRes> {
418
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Seata.ListTxReq, SkoalaApiHostedV1alpha1Seata.ListTxRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/seatas/${req["seataName"]}/tx?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "seataName"])}`, {...initReq, method: "GET"})
419
+ }
420
+ static ListLock(req: SkoalaApiHostedV1alpha1Seata.ListLockReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Seata.ListLockRes> {
421
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Seata.ListLockReq, SkoalaApiHostedV1alpha1Seata.ListLockRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/seatas/${req["seataName"]}/locks?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "seataName"])}`, {...initReq, method: "GET"})
422
+ }
423
+ }
415
424
  export class Grafana {
416
425
  static GetSentinelDashGrafana(req: SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaRes> {
417
426
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaReq, SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.27.2-140",
3
+ "version": "0.27.2-144",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {