@community-kitchens/apiinterfaces 1.0.14 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@community-kitchens/apiinterfaces",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
package/sign/types.ts CHANGED
@@ -1,5 +1,7 @@
1
+ export type DocType = "HC" | "CKK";
2
+
1
3
  export interface SignArgs {
2
- doc?: string;
4
+ doc?: DocType;
3
5
  contactId?: string;
4
6
  hoursId?: string;
5
7
  }
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 | "East Oakland" | "West Oakland" | "Berkeley" | "all";
6
- photo?: string | File | FileList;
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: string;
53
- region: Region;
59
+ message?: string;
60
+ region: Region | "ALL";
54
61
  photoUrl?: string;
55
- number: string;
62
+ number?: string;
56
63
  }
@@ -130,7 +130,7 @@ export interface EditHoursArgs {
130
130
  mealType: "Soup" | "Entree";
131
131
  }
132
132
 
133
- export interface SignUpForVolunteerShiftArgs {
133
+ export interface CreateVolunteerHoursArgs {
134
134
  shiftId: string;
135
135
  jobId: string;
136
136
  date: string;