@daocloud-proto/leopard 0.17.1 → 0.18.0-dev2
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 +26 -5
package/package.json
CHANGED
package/v1alpha1/product.pb.ts
CHANGED
|
@@ -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 = {
|
|
@@ -344,7 +348,14 @@ export type SpecFieldKey = {
|
|
|
344
348
|
id?: number
|
|
345
349
|
key?: string
|
|
346
350
|
keyI18N?: {[key: string]: string}
|
|
347
|
-
|
|
351
|
+
"x-visible"?: {[key: string]: string}
|
|
352
|
+
unit?: string
|
|
353
|
+
unitBase?: number
|
|
354
|
+
required?: boolean
|
|
355
|
+
options?: string[]
|
|
356
|
+
valueType?: string
|
|
357
|
+
min?: number | null
|
|
358
|
+
max?: number | null
|
|
348
359
|
}
|
|
349
360
|
|
|
350
361
|
export type ProductSpecFieldKeys = {
|
|
@@ -383,9 +394,17 @@ export type GetSKUInfoResponse = {
|
|
|
383
394
|
price?: string
|
|
384
395
|
freeQuantity?: number
|
|
385
396
|
description?: string
|
|
386
|
-
available?:
|
|
397
|
+
available?: boolean
|
|
387
398
|
discountInfo?: SkuDiscountInfo
|
|
388
399
|
paymentPolicy?: SkuPaymentPolicy
|
|
400
|
+
billingPolicyId?: number
|
|
401
|
+
displayOrder?: number
|
|
402
|
+
discountRuleId?: string
|
|
403
|
+
specName?: string
|
|
404
|
+
specFields?: SpecField[]
|
|
405
|
+
billingType?: BillingType
|
|
406
|
+
meteringUnit?: UnitType
|
|
407
|
+
quantityUnit?: QuantityUnit
|
|
389
408
|
}
|
|
390
409
|
|
|
391
410
|
export type CreateSKUInfoRequest = {
|
|
@@ -396,7 +415,7 @@ export type CreateSKUInfoRequest = {
|
|
|
396
415
|
price?: string
|
|
397
416
|
freeQuantity?: number
|
|
398
417
|
description?: string
|
|
399
|
-
available?:
|
|
418
|
+
available?: boolean
|
|
400
419
|
displayOrder?: number
|
|
401
420
|
discountRuleId?: string
|
|
402
421
|
}
|
|
@@ -415,12 +434,12 @@ type BaseUpdateSKUInfoRequest = {
|
|
|
415
434
|
price?: string
|
|
416
435
|
freeQuantity?: number
|
|
417
436
|
description?: string
|
|
418
|
-
available?: number
|
|
419
437
|
displayOrder?: number
|
|
420
438
|
discountRuleId?: string
|
|
421
439
|
}
|
|
422
440
|
|
|
423
441
|
export type UpdateSKUInfoRequest = BaseUpdateSKUInfoRequest
|
|
442
|
+
& OneOf<{ available: boolean }>
|
|
424
443
|
& OneOf<{ paymentPolicy: SkuPaymentPolicy }>
|
|
425
444
|
|
|
426
445
|
export type UpdateSKUInfoResponse = {
|
|
@@ -459,13 +478,15 @@ export type ListBillingPoliciesRequest = {
|
|
|
459
478
|
product?: string
|
|
460
479
|
page?: number
|
|
461
480
|
pageSize?: number
|
|
481
|
+
billingType?: string
|
|
462
482
|
}
|
|
463
483
|
|
|
464
484
|
export type BillingPolicy = {
|
|
465
485
|
id?: string
|
|
466
486
|
product?: string
|
|
467
487
|
billingType?: BillingType
|
|
468
|
-
|
|
488
|
+
meteringUnit?: UnitType
|
|
489
|
+
quantityUnit?: QuantityUnit
|
|
469
490
|
}
|
|
470
491
|
|
|
471
492
|
export type ListBillingPoliciesResponse = {
|