@daocloud-proto/ghippo 0.44.0-dev2 → 0.44.0-dev4
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 +1 -1
- package/v1alpha1/account.pb.ts +34 -0
- package/v1alpha1/sms.pb.ts +17 -0
package/package.json
CHANGED
package/v1alpha1/account.pb.ts
CHANGED
|
@@ -211,6 +211,34 @@ 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
|
+
|
|
230
|
+
export type ListConciseSubAccountsWithoutTokenRequest = {
|
|
231
|
+
accountId?: string
|
|
232
|
+
search?: string
|
|
233
|
+
pageSize?: number
|
|
234
|
+
page?: number
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export type ListConciseSubAccountsWithoutTokenResponse = {
|
|
238
|
+
items?: ConciseSubAccount[]
|
|
239
|
+
pagination?: Pagination
|
|
240
|
+
}
|
|
241
|
+
|
|
214
242
|
export class Accounts {
|
|
215
243
|
static TransferToMainAccount(req: TransferToMainAccountRequest, initReq?: fm.InitReq): Promise<TransferToMainAccountResponse> {
|
|
216
244
|
return fm.fetchReq<TransferToMainAccountRequest, TransferToMainAccountResponse>(`/apis/ghippo.io/v1alpha1/accounts/transfer-main`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -218,6 +246,12 @@ export class Accounts {
|
|
|
218
246
|
static ListSubAccounts(req: ListSubAccountsRequest, initReq?: fm.InitReq): Promise<ListSubAccountsResponse> {
|
|
219
247
|
return fm.fetchReq<ListSubAccountsRequest, ListSubAccountsResponse>(`/apis/ghippo.io/v1alpha1/sub-accounts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
220
248
|
}
|
|
249
|
+
static ListConciseSubAccounts(req: ListConciseSubAccountsRequest, initReq?: fm.InitReq): Promise<ListConciseSubAccountsResponse> {
|
|
250
|
+
return fm.fetchReq<ListConciseSubAccountsRequest, ListConciseSubAccountsResponse>(`/apis/ghippo.io/v1alpha1/concise-sub-accounts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
251
|
+
}
|
|
252
|
+
static ListConciseSubAccountsWithoutToken(req: ListConciseSubAccountsWithoutTokenRequest, initReq?: fm.InitReq): Promise<ListConciseSubAccountsWithoutTokenResponse> {
|
|
253
|
+
return fm.fetchReq<ListConciseSubAccountsWithoutTokenRequest, ListConciseSubAccountsWithoutTokenResponse>(`/v1alpha1.account.Accounts/ListConciseSubAccountsWithoutToken`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
254
|
+
}
|
|
221
255
|
static CheckSubAccount(req: CheckSubAccountRequest, initReq?: fm.InitReq): Promise<CheckSubAccountResponse> {
|
|
222
256
|
return fm.fetchReq<CheckSubAccountRequest, CheckSubAccountResponse>(`/v1alpha1.account.Accounts/CheckSubAccount`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
223
257
|
}
|
package/v1alpha1/sms.pb.ts
CHANGED
|
@@ -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
|
}
|