@daocloud-proto/ghippo 0.43.0-rc1 → 0.43.0-rc3

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.43.0-rc3",
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
  }
@@ -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
  }