@daocloud-proto/leopard 0.1.0-dev36 → 0.1.0-dev38

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.1.0-dev36",
3
+ "version":"0.1.0-dev38",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -5,7 +5,14 @@
5
5
  */
6
6
 
7
7
  import * as fm from "../fetch.pb"
8
+
9
+ export enum Action {
10
+ AddOrUpdate = "AddOrUpdate",
11
+ Delete = "Delete",
12
+ }
13
+
8
14
  export type UpdateInventoryRequest = {
15
+ action?: Action
9
16
  inventory?: inventory
10
17
  }
11
18
 
@@ -21,6 +21,11 @@ export enum QuantityUnit {
21
21
  EMPTY = "EMPTY",
22
22
  }
23
23
 
24
+ export enum SortOrder {
25
+ ASC = "ASC",
26
+ DESC = "DESC",
27
+ }
28
+
24
29
  export type Pagination = {
25
30
  total?: number
26
31
  page?: number
@@ -38,6 +43,8 @@ export type ListProductSKUsRequest = {
38
43
  page?: number
39
44
  pageSize?: number
40
45
  filterByAnd?: boolean
46
+ sortType?: string
47
+ sortOrder?: SortOrder
41
48
  }
42
49
 
43
50
  export type SkuItem = {
@@ -68,6 +75,7 @@ export type SpecField = {
68
75
  key?: string
69
76
  value?: string
70
77
  keyName?: string
78
+ valueName?: string
71
79
  }
72
80
 
73
81
  export type ListRegionsRequest = {
@@ -20,6 +20,7 @@ export type BatchCreateVouchersRequest = {
20
20
  }
21
21
 
22
22
  export type BatchCreateVouchersResponse = {
23
+ voucherIds?: string[]
23
24
  }
24
25
 
25
26
  export type ListActiveVouchersByCurrentUserRequest = {