@daocloud-proto/leopard 0.17.0 → 0.18.0-dev1

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.17.0",
3
+ "version":"0.18.0-dev1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -39,6 +39,8 @@ export enum UnitType {
39
39
 
40
40
  export enum QuantityUnit {
41
41
  EMPTY = "EMPTY",
42
+ GB = "GB",
43
+ INSTANCE_NUM = "INSTANCE_NUM",
42
44
  }
43
45
 
44
46
  export enum SortOrder {
@@ -157,6 +159,8 @@ export type SkuItem = {
157
159
  transferSkuId?: string
158
160
  discountInfo?: SkuDiscountInfo
159
161
  paymentPolicy?: SkuPaymentPolicy
162
+ billingPolicyId?: number
163
+ freeQuantity?: number
160
164
  }
161
165
 
162
166
  export type ListProductSKUsResponse = {
@@ -383,9 +387,17 @@ export type GetSKUInfoResponse = {
383
387
  price?: string
384
388
  freeQuantity?: number
385
389
  description?: string
386
- available?: number
390
+ available?: boolean
387
391
  discountInfo?: SkuDiscountInfo
388
392
  paymentPolicy?: SkuPaymentPolicy
393
+ billingPolicyId?: number
394
+ displayOrder?: number
395
+ discountRuleId?: string
396
+ specName?: string
397
+ specFields?: SpecField[]
398
+ billingType?: BillingType
399
+ meteringUnit?: UnitType
400
+ quantityUnit?: QuantityUnit
389
401
  }
390
402
 
391
403
  export type CreateSKUInfoRequest = {
@@ -396,7 +408,7 @@ export type CreateSKUInfoRequest = {
396
408
  price?: string
397
409
  freeQuantity?: number
398
410
  description?: string
399
- available?: number
411
+ available?: boolean
400
412
  displayOrder?: number
401
413
  discountRuleId?: string
402
414
  }
@@ -415,12 +427,12 @@ type BaseUpdateSKUInfoRequest = {
415
427
  price?: string
416
428
  freeQuantity?: number
417
429
  description?: string
418
- available?: number
419
430
  displayOrder?: number
420
431
  discountRuleId?: string
421
432
  }
422
433
 
423
434
  export type UpdateSKUInfoRequest = BaseUpdateSKUInfoRequest
435
+ & OneOf<{ available: boolean }>
424
436
  & OneOf<{ paymentPolicy: SkuPaymentPolicy }>
425
437
 
426
438
  export type UpdateSKUInfoResponse = {
@@ -459,13 +471,15 @@ export type ListBillingPoliciesRequest = {
459
471
  product?: string
460
472
  page?: number
461
473
  pageSize?: number
474
+ billingType?: string
462
475
  }
463
476
 
464
477
  export type BillingPolicy = {
465
478
  id?: string
466
479
  product?: string
467
480
  billingType?: BillingType
468
- meteringType?: string
481
+ meteringUnit?: UnitType
482
+ quantityUnit?: QuantityUnit
469
483
  }
470
484
 
471
485
  export type ListBillingPoliciesResponse = {