@daocloud-proto/ghippo 0.43.0-rc1 → 0.44.0-dev1

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/ghippo",
3
- "version":"0.43.0-rc1",
3
+ "version":"0.44.0-dev1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -230,9 +230,6 @@ export class Accounts {
230
230
  static CreateSubAccount(req: CreateSubAccountRequest, initReq?: fm.InitReq): Promise<CreateSubAccountResponse> {
231
231
  return fm.fetchReq<CreateSubAccountRequest, CreateSubAccountResponse>(`/apis/ghippo.io/v1alpha1/sub-accounts`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
232
232
  }
233
- static DeleteSubAccount(req: DeleteSubAccountRequest, initReq?: fm.InitReq): Promise<DeleteSubAccountResponse> {
234
- return fm.fetchReq<DeleteSubAccountRequest, DeleteSubAccountResponse>(`/apis/ghippo.io/v1alpha1/sub-accounts/${req["id"]}`, {...initReq, method: "DELETE"})
235
- }
236
233
  static UpdateSubAccount(req: UpdateSubAccountRequest, initReq?: fm.InitReq): Promise<UpdateSubAccountResponse> {
237
234
  return fm.fetchReq<UpdateSubAccountRequest, UpdateSubAccountResponse>(`/apis/ghippo.io/v1alpha1/sub-accounts/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
238
235
  }
@@ -5,6 +5,18 @@
5
5
  */
6
6
 
7
7
  import * as fm from "../fetch.pb"
8
+ export type CreateDomainRequest = {
9
+ name?: string
10
+ appId?: string
11
+ appPrivateKey?: string
12
+ alipayPublicKey?: string
13
+ isProduction?: boolean
14
+ subject?: string
15
+ }
16
+
17
+ export type CreateDomainResponse = {
18
+ }
19
+
8
20
  export type GetDomainDetailRequest = {
9
21
  name?: string
10
22
  }
@@ -23,7 +35,10 @@ export type Alipay = {
23
35
  }
24
36
 
25
37
  export class Domain {
38
+ static CreateDomain(req: CreateDomainRequest, initReq?: fm.InitReq): Promise<CreateDomainResponse> {
39
+ return fm.fetchReq<CreateDomainRequest, CreateDomainResponse>(`/apis/ghippo.io/v1alpha1/domain`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
40
+ }
26
41
  static GetDomainDetail(req: GetDomainDetailRequest, initReq?: fm.InitReq): Promise<GetDomainDetailResponse> {
27
- return fm.fetchReq<GetDomainDetailRequest, GetDomainDetailResponse>(`/apis/leopard.io/v1alpha1/domain/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
42
+ return fm.fetchReq<GetDomainDetailRequest, GetDomainDetailResponse>(`/v1alpha1.domain.Domain/GetDomainDetail`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
28
43
  }
29
44
  }