@daocloud-proto/leopard 0.11.0-dev1 → 0.11.0-rc2
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/product.pb.ts +17 -0
- package/v1alpha1/wallet.pb.ts +1 -0
package/package.json
CHANGED
package/v1alpha1/product.pb.ts
CHANGED
|
@@ -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
|
}
|