@daocloud-proto/leopard 0.11.0-dev1 → 0.11.0-rc1

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.11.0-dev1",
3
+ "version":"0.11.0-rc1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -362,6 +362,20 @@ export type CreateRegionDomainRequest = {
362
362
  export type CreateRegionDomainResponse = {
363
363
  }
364
364
 
365
+ export type ListRegionsDomainsRequest = {
366
+ region?: string
367
+ domain?: string
368
+ }
369
+
370
+ export type RegionDomain = {
371
+ region?: string
372
+ domain?: string
373
+ }
374
+
375
+ export type ListRegionsDomainsResponse = {
376
+ items?: RegionDomain[]
377
+ }
378
+
365
379
  export class Product {
366
380
  static ListProductSKUs(req: ListProductSKUsRequest, initReq?: fm.InitReq): Promise<ListProductSKUsResponse> {
367
381
  return fm.fetchReq<ListProductSKUsRequest, ListProductSKUsResponse>(`/apis/leopard.io/v1alpha1/products/skus`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -429,4 +443,7 @@ export class Product {
429
443
  static CreateRegionDomain(req: CreateRegionDomainRequest, initReq?: fm.InitReq): Promise<CreateRegionDomainResponse> {
430
444
  return fm.fetchReq<CreateRegionDomainRequest, CreateRegionDomainResponse>(`/apis/leopard.io/v1alpha1/products/region-domain`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
431
445
  }
446
+ static ListRegionsDomains(req: ListRegionsDomainsRequest, initReq?: fm.InitReq): Promise<ListRegionsDomainsResponse> {
447
+ return fm.fetchReq<ListRegionsDomainsRequest, ListRegionsDomainsResponse>(`/apis/leopard.io/v1alpha1/products/region-domain?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
448
+ }
432
449
  }
@@ -80,6 +80,7 @@ export type BalanceResponse = {
80
80
  balance?: string
81
81
  isVirtual?: boolean
82
82
  alertsEnabled?: boolean
83
+ mainAccountInArrears?: boolean
83
84
  }
84
85
 
85
86
  export type RechargeRequest = {