@la-main-verte/shared-types 1.0.59 → 1.0.61
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/src/plant.d.ts +9 -1
- package/src/users.api.d.ts +16 -0
package/package.json
CHANGED
package/src/plant.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import type { TaxonFamilyI } from './taxonFamily'
|
|
2
|
+
/**
|
|
3
|
+
* Range filter value for min/max filters
|
|
4
|
+
*/
|
|
5
|
+
export interface RangeFilterValueI {
|
|
6
|
+
min: number
|
|
7
|
+
max: number
|
|
8
|
+
}
|
|
9
|
+
|
|
2
10
|
/**
|
|
3
11
|
* Plant filter value types
|
|
4
12
|
* Represents the possible values for a single filter
|
|
5
13
|
*/
|
|
6
|
-
export type PlantFilterValueI = string | string[] | number | boolean
|
|
14
|
+
export type PlantFilterValueI = string | string[] | number | boolean | RangeFilterValueI
|
|
7
15
|
|
|
8
16
|
/**
|
|
9
17
|
* Plant attributes for filtering
|
package/src/users.api.d.ts
CHANGED
|
@@ -87,4 +87,20 @@ export namespace USERS {
|
|
|
87
87
|
|
|
88
88
|
export type Response = RecommendationI[]
|
|
89
89
|
}
|
|
90
|
+
export namespace GIFT_CARDS {
|
|
91
|
+
export namespace REDEEM {
|
|
92
|
+
export interface Request {
|
|
93
|
+
headers: RequestHeaders
|
|
94
|
+
body: {
|
|
95
|
+
code: string
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export interface Response {
|
|
99
|
+
success: boolean
|
|
100
|
+
message?: string
|
|
101
|
+
error?: string
|
|
102
|
+
error_message?: string
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
90
106
|
}
|