@daocloud-proto/ghippo 0.44.0-dev2 → 0.44.0-dev3

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.44.0-dev2",
3
+ "version":"0.44.0-dev3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -211,6 +211,22 @@ export type GetSubAccountByUsernameRequest = {
211
211
  username?: string
212
212
  }
213
213
 
214
+ export type ListConciseSubAccountsRequest = {
215
+ search?: string
216
+ pageSize?: number
217
+ page?: number
218
+ }
219
+
220
+ export type ConciseSubAccount = {
221
+ id?: string
222
+ name?: string
223
+ }
224
+
225
+ export type ListConciseSubAccountsResponse = {
226
+ items?: ConciseSubAccount[]
227
+ pagination?: Pagination
228
+ }
229
+
214
230
  export class Accounts {
215
231
  static TransferToMainAccount(req: TransferToMainAccountRequest, initReq?: fm.InitReq): Promise<TransferToMainAccountResponse> {
216
232
  return fm.fetchReq<TransferToMainAccountRequest, TransferToMainAccountResponse>(`/apis/ghippo.io/v1alpha1/accounts/transfer-main`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -218,6 +234,9 @@ export class Accounts {
218
234
  static ListSubAccounts(req: ListSubAccountsRequest, initReq?: fm.InitReq): Promise<ListSubAccountsResponse> {
219
235
  return fm.fetchReq<ListSubAccountsRequest, ListSubAccountsResponse>(`/apis/ghippo.io/v1alpha1/sub-accounts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
220
236
  }
237
+ static ListConciseSubAccounts(req: ListConciseSubAccountsRequest, initReq?: fm.InitReq): Promise<ListConciseSubAccountsResponse> {
238
+ return fm.fetchReq<ListConciseSubAccountsRequest, ListConciseSubAccountsResponse>(`/apis/ghippo.io/v1alpha1/concise-sub-accounts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
239
+ }
221
240
  static CheckSubAccount(req: CheckSubAccountRequest, initReq?: fm.InitReq): Promise<CheckSubAccountResponse> {
222
241
  return fm.fetchReq<CheckSubAccountRequest, CheckSubAccountResponse>(`/v1alpha1.account.Accounts/CheckSubAccount`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
223
242
  }
@@ -67,6 +67,20 @@ export type ListSmsTemplateResponse = {
67
67
  items?: SmsTemplate[]
68
68
  }
69
69
 
70
+ export type BatchTemplate = {
71
+ template?: string
72
+ channelTemplate?: string
73
+ }
74
+
75
+ export type BatchCreateSmsTemplatesByDomainRequest = {
76
+ templates?: BatchTemplate[]
77
+ domain?: string
78
+ channel?: string
79
+ }
80
+
81
+ export type BatchCreateSmsTemplatesByDomainResponse = {
82
+ }
83
+
70
84
  export class Sms {
71
85
  static SendVerificationCode(req: SendVerificationCodeRequest, initReq?: fm.InitReq): Promise<SendVerificationCodeResponse> {
72
86
  return fm.fetchReq<SendVerificationCodeRequest, SendVerificationCodeResponse>(`/apis/ghippo.io/v1alpha1/sms/verification`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -80,4 +94,7 @@ export class Sms {
80
94
  static CreateSmsTemplate(req: CreateSmsTemplateRequest, initReq?: fm.InitReq): Promise<CreateSmsTemplateResponse> {
81
95
  return fm.fetchReq<CreateSmsTemplateRequest, CreateSmsTemplateResponse>(`/apis/ghippo.io/v1alpha1/sms/template`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
82
96
  }
97
+ static BatchCreateSmsTemplatesByDomain(req: BatchCreateSmsTemplatesByDomainRequest, initReq?: fm.InitReq): Promise<BatchCreateSmsTemplatesByDomainResponse> {
98
+ return fm.fetchReq<BatchCreateSmsTemplatesByDomainRequest, BatchCreateSmsTemplatesByDomainResponse>(`/apis/ghippo.io/v1alpha1/sms/template/batch-by-domain`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
99
+ }
83
100
  }