@community-kitchens/apiinterfaces 1.0.15 → 1.0.16
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/text/types.ts +12 -5
- package/volunteer/types.ts +1 -1
package/package.json
CHANGED
package/text/types.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export type Region = "WEST_OAKLAND" | "EAST_OAKLAND" | "BERKELEY";
|
|
2
2
|
|
|
3
|
+
export type LowercaseRegion =
|
|
4
|
+
| "East Oakland"
|
|
5
|
+
| "West Oakland"
|
|
6
|
+
| "Berkeley"
|
|
7
|
+
| "CK Kitchen";
|
|
8
|
+
|
|
3
9
|
export interface SendTextBody {
|
|
4
10
|
message?: string;
|
|
5
|
-
region: Region |
|
|
6
|
-
photo?: string
|
|
11
|
+
region: Region | LowercaseRegion | "all";
|
|
12
|
+
photo?: string;
|
|
13
|
+
// | File | FileList;
|
|
7
14
|
feedbackId?: string;
|
|
8
15
|
number?: string;
|
|
9
16
|
}
|
|
@@ -49,8 +56,8 @@ export interface TextRecord {
|
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
export interface SendTextResponse {
|
|
52
|
-
message
|
|
53
|
-
region: Region;
|
|
59
|
+
message?: string;
|
|
60
|
+
region: Region | "ALL";
|
|
54
61
|
photoUrl?: string;
|
|
55
|
-
number
|
|
62
|
+
number?: string;
|
|
56
63
|
}
|
package/volunteer/types.ts
CHANGED