@daocloud-proto/leopard 0.1.0-dev3 → 0.1.0-dev31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/leopard",
3
- "version":"0.1.0-dev3",
3
+ "version":"0.1.0-dev31",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -0,0 +1,77 @@
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 fm from "../fetch.pb"
8
+
9
+ export enum BillingType {
10
+ PAY_AS_YOU_GO = "PAY_AS_YOU_GO",
11
+ SUBSCRIPTION_DAILY = "SUBSCRIPTION_DAILY",
12
+ SUBSCRIPTION_WEEKLY = "SUBSCRIPTION_WEEKLY",
13
+ SUBSCRIPTION_MONTHLY = "SUBSCRIPTION_MONTHLY",
14
+ SUBSCRIPTION_YEARLY = "SUBSCRIPTION_YEARLY",
15
+ }
16
+
17
+ export enum UnitType {
18
+ HOUR = "HOUR",
19
+ THOUSAND_TOKENS = "THOUSAND_TOKENS",
20
+ GB_DAY = "GB_DAY",
21
+ COMPUTE_UNIT = "COMPUTE_UNIT",
22
+ }
23
+
24
+ export type ListBillsRequest = {
25
+ start?: string
26
+ end?: string
27
+ page?: number
28
+ pageSize?: number
29
+ billId?: string
30
+ orderId?: string
31
+ resourceId?: string
32
+ billingType?: string
33
+ productName?: string
34
+ }
35
+
36
+ export type ListBillsResponse = {
37
+ items?: bill[]
38
+ pagination?: Pagination
39
+ }
40
+
41
+ export type Pagination = {
42
+ total?: number
43
+ page?: number
44
+ pageSize?: number
45
+ }
46
+
47
+ export type bill = {
48
+ username?: string
49
+ billId?: string
50
+ billingCycle?: BillingCycle
51
+ billingMonth?: string
52
+ productName?: string
53
+ resources?: Resource[]
54
+ billingType?: BillingType
55
+ unitPrice?: string
56
+ unit?: UnitType
57
+ orderId?: string
58
+ orderPrice?: string
59
+ couponPayment?: string
60
+ amountDue?: string
61
+ }
62
+
63
+ export type BillingCycle = {
64
+ startTimestamp?: string
65
+ endTimestamp?: string
66
+ }
67
+
68
+ export type Resource = {
69
+ name?: string
70
+ id?: string
71
+ }
72
+
73
+ export class Bill {
74
+ static ListBills(req: ListBillsRequest, initReq?: fm.InitReq): Promise<ListBillsResponse> {
75
+ return fm.fetchReq<ListBillsRequest, ListBillsResponse>(`/apis/leopard.io/v1alpha1/bills?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
76
+ }
77
+ }
@@ -0,0 +1,40 @@
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 fm from "../fetch.pb"
8
+
9
+ export enum Action {
10
+ AddOrUpdate = "AddOrUpdate",
11
+ Delete = "Delete",
12
+ }
13
+
14
+ export type UpdateInventoryRequest = {
15
+ action?: Action
16
+ inventory?: inventory
17
+ }
18
+
19
+ export type inventory = {
20
+ region?: string
21
+ node?: string
22
+ resources?: resource[]
23
+ }
24
+
25
+ export type resource = {
26
+ specFieldKey?: string
27
+ specFieldValue?: string
28
+ total?: number
29
+ free?: number
30
+ serial?: string
31
+ }
32
+
33
+ export type UpdateInventoryResponse = {
34
+ }
35
+
36
+ export class Inventory {
37
+ static UpdateInventory(req: UpdateInventoryRequest, initReq?: fm.InitReq): Promise<UpdateInventoryResponse> {
38
+ return fm.fetchReq<UpdateInventoryRequest, UpdateInventoryResponse>(`/v1alpha1.inventory.Inventory/UpdateInventory`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
39
+ }
40
+ }
@@ -7,31 +7,39 @@
7
7
  import * as fm from "../fetch.pb"
8
8
 
9
9
  export enum OrderType {
10
- Purchase = "Purchase",
11
- Refund = "Refund",
12
- Upgrade = "Upgrade",
13
- Downgrade = "Downgrade",
10
+ PURCHASE = "PURCHASE",
11
+ REFUND = "REFUND",
12
+ UPGRADE = "UPGRADE",
13
+ DOWNGRADE = "DOWNGRADE",
14
14
  }
15
15
 
16
16
  export enum BillingType {
17
- PayAsYouGo = "PayAsYouGo",
18
- SubscriptionDaily = "SubscriptionDaily",
19
- SubscriptionWeekly = "SubscriptionWeekly",
20
- SubscriptionMonthly = "SubscriptionMonthly",
21
- SubscriptionYearly = "SubscriptionYearly",
17
+ PAY_AS_YOU_GO = "PAY_AS_YOU_GO",
18
+ SUBSCRIPTION_DAILY = "SUBSCRIPTION_DAILY",
19
+ SUBSCRIPTION_WEEKLY = "SUBSCRIPTION_WEEKLY",
20
+ SUBSCRIPTION_MONTHLY = "SUBSCRIPTION_MONTHLY",
21
+ SUBSCRIPTION_YEARLY = "SUBSCRIPTION_YEARLY",
22
22
  }
23
23
 
24
24
  export enum OrderStatus {
25
- Paid = "Paid",
26
- Partial = "Partial",
27
- Refunded = "Refunded",
25
+ PAID = "PAID",
26
+ PARTIAL = "PARTIAL",
27
+ REFUNDED = "REFUNDED",
28
28
  }
29
29
 
30
30
  export enum UnitType {
31
- Hour = "Hour",
32
- ThousandTokens = "ThousandTokens",
33
- GBDay = "GBDay",
34
- ComputeUnit = "ComputeUnit",
31
+ HOUR = "HOUR",
32
+ THOUSAND_TOKENS = "THOUSAND_TOKENS",
33
+ GB_DAY = "GB_DAY",
34
+ COMPUTE_UNIT = "COMPUTE_UNIT",
35
+ }
36
+
37
+ export enum CreateOrderStatus {
38
+ SUCCESS = "SUCCESS",
39
+ SKU_NOT_FIND = "SKU_NOT_FIND",
40
+ RESOURCE_NOT_EXIST = "RESOURCE_NOT_EXIST",
41
+ RESOURCE_EXIST = "RESOURCE_EXIST",
42
+ INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE",
35
43
  }
36
44
 
37
45
  export type Pagination = {
@@ -42,34 +50,31 @@ export type Pagination = {
42
50
 
43
51
  export type ListOrdersRequest = {
44
52
  orderId?: string
45
- instanceId?: string
46
- orderType?: OrderType
53
+ resourceId?: string
54
+ orderType?: string
47
55
  productName?: string
48
- payType?: BillingType
49
- orderStatus?: OrderStatus
56
+ orderStatus?: string
50
57
  start?: string
51
58
  end?: string
52
59
  page?: number
53
60
  pageSize?: number
61
+ resourceName?: string
54
62
  }
55
63
 
56
- export type OrderItem = {
64
+ export type Orders = {
57
65
  userName?: string
58
66
  orderId?: string
59
67
  createdAtTimestamp?: string
60
68
  orderType?: OrderType
61
69
  productName?: string
62
- instances?: Instance[]
70
+ resources?: Resource[]
63
71
  orderStatus?: OrderStatus
64
- billingType?: BillingType
65
- unitPrice?: number
66
- unit?: UnitType
67
72
  orderPrice?: string
68
73
  amountDue?: string
69
74
  }
70
75
 
71
76
  export type ListOrdersResponse = {
72
- items?: OrderItem[]
77
+ items?: Orders[]
73
78
  pagination?: Pagination
74
79
  }
75
80
 
@@ -77,22 +82,20 @@ export type OrderInfo = {
77
82
  orderId?: string
78
83
  createdAtTimestamp?: string
79
84
  orderType?: OrderType
80
- billingType?: BillingType
81
85
  orderStatus?: OrderStatus
82
- region?: string
83
86
  orderPrice?: string
84
87
  amountDue?: string
85
88
  }
86
89
 
87
- export type Instance = {
90
+ export type Resource = {
88
91
  name?: string
89
92
  id?: string
90
93
  }
91
94
 
92
95
  export type ProductInfo = {
93
- instances?: Instance[]
96
+ resources?: Resource[]
94
97
  productName?: string
95
- instanceNum?: number
98
+ resourceNum?: number
96
99
  specification?: string
97
100
  billingType?: BillingType
98
101
  start?: string
@@ -105,14 +108,77 @@ export type GetOrderRequest = {
105
108
 
106
109
  export type GetOrderResponse = {
107
110
  orderInfo?: OrderInfo
108
- productInfo?: ProductInfo
111
+ productInfo?: ProductInfo[]
112
+ }
113
+
114
+ export type Product = {
115
+ id?: string
116
+ name?: string
109
117
  }
110
118
 
111
119
  export type GetProductsRequest = {
112
120
  }
113
121
 
114
122
  export type GetProductsResponse = {
115
- items?: string[]
123
+ products?: Product[]
124
+ }
125
+
126
+ export type OrderItem = {
127
+ productName?: string
128
+ skuId?: string
129
+ quantity?: number
130
+ resources?: Resource[]
131
+ }
132
+
133
+ export type CreateNewPurchaseOrderRequest = {
134
+ username?: string
135
+ userId?: string
136
+ orderItems?: OrderItem[]
137
+ }
138
+
139
+ export type CreateNewPurchaseOrderResponse = {
140
+ orderId?: string
141
+ createOrderStatus?: CreateOrderStatus
142
+ }
143
+
144
+ export type CreateQuantityChangeOrderRequest = {
145
+ username?: string
146
+ userId?: string
147
+ productName?: string
148
+ quantity?: number
149
+ resourceId?: string
150
+ }
151
+
152
+ export type CreateQuantityChangeOrderResponse = {
153
+ orderId?: string
154
+ createOrderStatus?: CreateOrderStatus
155
+ }
156
+
157
+ export type IsResourceOrderNextBillBalanceSufficientRequest = {
158
+ username?: string
159
+ userId?: string
160
+ productName?: string
161
+ resourceId?: string
162
+ }
163
+
164
+ export type IsResourceOrderNextBillBalanceSufficientResponse = {
165
+ sufficient?: boolean
166
+ }
167
+
168
+ export type GetResourceOrderInfoByResourceIDRequest = {
169
+ resourceId?: string
170
+ }
171
+
172
+ export type GetResourceOrderInfoByResourceIDResponse = {
173
+ resourceId?: string
174
+ resourceName?: string
175
+ username?: string
176
+ skuId?: string
177
+ productName?: string
178
+ billingType?: BillingType
179
+ meteringUnit?: UnitType
180
+ unitPrice?: string
181
+ quantity?: number
116
182
  }
117
183
 
118
184
  export class Order {
@@ -122,7 +188,19 @@ export class Order {
122
188
  static GetOrder(req: GetOrderRequest, initReq?: fm.InitReq): Promise<GetOrderResponse> {
123
189
  return fm.fetchReq<GetOrderRequest, GetOrderResponse>(`/apis/leopard.io/v1alpha1/orders/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
124
190
  }
191
+ static GetResourceOrderInfoByResourceID(req: GetResourceOrderInfoByResourceIDRequest, initReq?: fm.InitReq): Promise<GetResourceOrderInfoByResourceIDResponse> {
192
+ return fm.fetchReq<GetResourceOrderInfoByResourceIDRequest, GetResourceOrderInfoByResourceIDResponse>(`/apis/leopard.io/v1alpha1/orders/resources-info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
193
+ }
125
194
  static GetProducts(req: GetProductsRequest, initReq?: fm.InitReq): Promise<GetProductsResponse> {
126
195
  return fm.fetchReq<GetProductsRequest, GetProductsResponse>(`/apis/leopard.io/v1alpha1/orders/products?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
127
196
  }
197
+ static CreateNewPurchaseOrder(req: CreateNewPurchaseOrderRequest, initReq?: fm.InitReq): Promise<CreateNewPurchaseOrderResponse> {
198
+ return fm.fetchReq<CreateNewPurchaseOrderRequest, CreateNewPurchaseOrderResponse>(`/apis/leopard.io/v1alpha1/orders/new-purchase`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
199
+ }
200
+ static CreateQuantityChangeOrder(req: CreateQuantityChangeOrderRequest, initReq?: fm.InitReq): Promise<CreateQuantityChangeOrderResponse> {
201
+ return fm.fetchReq<CreateQuantityChangeOrderRequest, CreateQuantityChangeOrderResponse>(`/apis/leopard.io/v1alpha1/orders/quantity-change`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
202
+ }
203
+ static IsResourceOrderNextBillBalanceSufficient(req: IsResourceOrderNextBillBalanceSufficientRequest, initReq?: fm.InitReq): Promise<IsResourceOrderNextBillBalanceSufficientResponse> {
204
+ return fm.fetchReq<IsResourceOrderNextBillBalanceSufficientRequest, IsResourceOrderNextBillBalanceSufficientResponse>(`/apis/leopard.io/v1alpha1/orders/is-resource-balance-sufficient`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
205
+ }
128
206
  }
@@ -0,0 +1,133 @@
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 fm from "../fetch.pb"
8
+
9
+ export enum BillingType {
10
+ PAY_AS_YOU_GO = "PAY_AS_YOU_GO",
11
+ }
12
+
13
+ export enum UnitType {
14
+ HOUR = "HOUR",
15
+ THOUSAND_TOKENS = "THOUSAND_TOKENS",
16
+ GB_DAY = "GB_DAY",
17
+ COMPUTE_UNIT = "COMPUTE_UNIT",
18
+ }
19
+
20
+ export enum QuantityUnit {
21
+ EMPTY = "EMPTY",
22
+ }
23
+
24
+ export type Pagination = {
25
+ total?: number
26
+ page?: number
27
+ pageSize?: number
28
+ }
29
+
30
+ export type FilterStringArr = {
31
+ values?: string[]
32
+ }
33
+
34
+ export type ListProductSKUsRequest = {
35
+ product?: string
36
+ regionId?: string
37
+ filter?: {[key: string]: FilterStringArr}
38
+ page?: number
39
+ pageSize?: number
40
+ filterByAnd?: boolean
41
+ }
42
+
43
+ export type SkuItem = {
44
+ id?: string
45
+ saleable?: boolean
46
+ billingType?: BillingType
47
+ meteringUnit?: UnitType
48
+ quantityUnit?: QuantityUnit
49
+ price?: string
50
+ region?: string
51
+ specId?: number
52
+ specName?: string
53
+ specFields?: SpecField[]
54
+ inventory?: number
55
+ }
56
+
57
+ export type ListProductSKUsResponse = {
58
+ items?: SkuItem[]
59
+ pagination?: Pagination
60
+ }
61
+
62
+ export type GetSKURequest = {
63
+ id?: string
64
+ }
65
+
66
+ export type SpecField = {
67
+ specId?: number
68
+ key?: string
69
+ value?: string
70
+ keyName?: string
71
+ }
72
+
73
+ export type ListRegionsRequest = {
74
+ }
75
+
76
+ export type Region = {
77
+ regionId?: string
78
+ regionName?: string
79
+ }
80
+
81
+ export type ListRegionsResponse = {
82
+ items?: Region[]
83
+ }
84
+
85
+ export type GetSKUResponse = {
86
+ id?: string
87
+ saleable?: boolean
88
+ billingType?: BillingType
89
+ meteringUnit?: UnitType
90
+ quantityUnit?: QuantityUnit
91
+ price?: string
92
+ region?: string
93
+ specId?: number
94
+ specName?: string
95
+ specFields?: SpecField[]
96
+ inventory?: number
97
+ }
98
+
99
+ export type GetSKUPriceRequest = {
100
+ id?: string
101
+ }
102
+
103
+ export type GetSKUPriceResponse = {
104
+ price?: string
105
+ }
106
+
107
+ export type ListProductSpecFieldRequest = {
108
+ regionId?: string
109
+ specKey?: string
110
+ product?: string
111
+ }
112
+
113
+ export type ListProductSpecFieldResponse = {
114
+ specFields?: SpecField[]
115
+ }
116
+
117
+ export class Product {
118
+ static ListProductSKUs(req: ListProductSKUsRequest, initReq?: fm.InitReq): Promise<ListProductSKUsResponse> {
119
+ return fm.fetchReq<ListProductSKUsRequest, ListProductSKUsResponse>(`/apis/leopard.io/v1alpha1/products/skus`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
120
+ }
121
+ static GetSKU(req: GetSKURequest, initReq?: fm.InitReq): Promise<GetSKUResponse> {
122
+ return fm.fetchReq<GetSKURequest, GetSKUResponse>(`/apis/leopard.io/v1alpha1/products/skus/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
123
+ }
124
+ static GetSKUPrice(req: GetSKUPriceRequest, initReq?: fm.InitReq): Promise<GetSKUPriceResponse> {
125
+ return fm.fetchReq<GetSKUPriceRequest, GetSKUPriceResponse>(`/apis/leopard.io/v1alpha1/products/skus/${req["id"]}/price?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
126
+ }
127
+ static ListRegions(req: ListRegionsRequest, initReq?: fm.InitReq): Promise<ListRegionsResponse> {
128
+ return fm.fetchReq<ListRegionsRequest, ListRegionsResponse>(`/apis/leopard.io/v1alpha1/products/regions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
129
+ }
130
+ static ListProductSpecFieldValues(req: ListProductSpecFieldRequest, initReq?: fm.InitReq): Promise<ListProductSpecFieldResponse> {
131
+ return fm.fetchReq<ListProductSpecFieldRequest, ListProductSpecFieldResponse>(`/apis/leopard.io/v1alpha1/products/specs?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
132
+ }
133
+ }
@@ -29,9 +29,9 @@ export type ListTransactionsRequest = {
29
29
  pageSize?: number
30
30
  serialNumber?: string
31
31
  billingId?: string
32
- paymentType?: PaymentType
33
- transactionType?: TransactionType
34
- transactionChannel?: TransactionChannel
32
+ paymentType?: string
33
+ transactionType?: string
34
+ transactionChannel?: string
35
35
  }
36
36
 
37
37
  export type ListTransactionsRequestResponse = {
@@ -7,20 +7,20 @@
7
7
  import * as fm from "../fetch.pb"
8
8
 
9
9
  export enum PaymentChannel {
10
- Alipay = "Alipay",
11
- Wechat = "Wechat",
10
+ ALIPAY = "ALIPAY",
11
+ WECHAT = "WECHAT",
12
12
  }
13
13
 
14
14
  export enum PaymentType {
15
- QrCode = "QrCode",
16
- Redirect = "Redirect",
15
+ QR_CODE = "QR_CODE",
16
+ REDIRECT = "REDIRECT",
17
17
  }
18
18
 
19
19
  export type BalanceRequest = {
20
20
  }
21
21
 
22
22
  export type BalanceResponse = {
23
- balance?: number
23
+ balance?: string
24
24
  }
25
25
 
26
26
  export type RechargeRequest = {
@@ -35,11 +35,12 @@ export type RechargeResponse = {
35
35
  redirectUrl?: string
36
36
  }
37
37
 
38
- export type AlipayNotifyRequest = {
38
+ export type UserStateRequest = {
39
+ userId?: string
39
40
  }
40
41
 
41
- export type AlipayNotifyResponse = {
42
- message?: string
42
+ export type UserStateResponse = {
43
+ amount?: string
43
44
  }
44
45
 
45
46
  export class Wallet {
@@ -49,7 +50,7 @@ export class Wallet {
49
50
  static Recharge(req: RechargeRequest, initReq?: fm.InitReq): Promise<RechargeResponse> {
50
51
  return fm.fetchReq<RechargeRequest, RechargeResponse>(`/apis/leopard.io/v1alpha1/wallet/recharge`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
51
52
  }
52
- static AlipayNotify(req: AlipayNotifyRequest, initReq?: fm.InitReq): Promise<AlipayNotifyResponse> {
53
- return fm.fetchReq<AlipayNotifyRequest, AlipayNotifyResponse>(`/apis/leopard.io/v1alpha1/wallet/alipay/notify`, {...initReq, method: "POST"})
53
+ static UserState(req: UserStateRequest, initReq?: fm.InitReq): Promise<UserStateResponse> {
54
+ return fm.fetchReq<UserStateRequest, UserStateResponse>(`/v1alpha1.wallet.Wallet/UserState`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
54
55
  }
55
56
  }
@@ -1,75 +0,0 @@
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 fm from "../fetch.pb"
8
-
9
- export enum BillingType {
10
- PayAsYouGo = "PayAsYouGo",
11
- SubscriptionDaily = "SubscriptionDaily",
12
- SubscriptionWeekly = "SubscriptionWeekly",
13
- SubscriptionMonthly = "SubscriptionMonthly",
14
- SubscriptionYearly = "SubscriptionYearly",
15
- }
16
-
17
- export enum UnitType {
18
- Hour = "Hour",
19
- ThousandTokens = "ThousandTokens",
20
- GBDay = "GBDay",
21
- ComputeUnit = "ComputeUnit",
22
- }
23
-
24
- export type ListBillingsRequest = {
25
- start?: string
26
- end?: string
27
- page?: number
28
- pageSize?: number
29
- billingId?: string
30
- orderId?: string
31
- instanceId?: string
32
- }
33
-
34
- export type ListBillingsResponse = {
35
- items?: billing[]
36
- pagination?: Pagination
37
- }
38
-
39
- export type Pagination = {
40
- total?: number
41
- page?: number
42
- pageSize?: number
43
- }
44
-
45
- export type billing = {
46
- username?: string
47
- billingId?: string
48
- billingCycle?: BillingCycle
49
- billingMonth?: string
50
- productName?: string
51
- instances?: Instance[]
52
- billingType?: BillingType
53
- unitPrice?: number
54
- unit?: UnitType
55
- orderId?: string
56
- orderPrice?: string
57
- couponPayment?: string
58
- amountDue?: string
59
- }
60
-
61
- export type BillingCycle = {
62
- startTimestamp?: string
63
- endTimestamp?: string
64
- }
65
-
66
- export type Instance = {
67
- name?: string
68
- id?: string
69
- }
70
-
71
- export class Billing {
72
- static ListBillings(req: ListBillingsRequest, initReq?: fm.InitReq): Promise<ListBillingsResponse> {
73
- return fm.fetchReq<ListBillingsRequest, ListBillingsResponse>(`/apis/leopard.io/v1alpha1/billings?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
74
- }
75
- }
@@ -1,19 +0,0 @@
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 fm from "../fetch.pb"
8
- export type HelloRequest = {
9
- }
10
-
11
- export type HelloResponse = {
12
- message?: string
13
- }
14
-
15
- export class Hello {
16
- static Hello(req: HelloRequest, initReq?: fm.InitReq): Promise<HelloResponse> {
17
- return fm.fetchReq<HelloRequest, HelloResponse>(`/apis/leopard.io/v1alpha1/hello?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
18
- }
19
- }