@community-kitchens/apiinterfaces 1.0.15 → 1.0.17

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/d4j/types.ts CHANGED
@@ -2,3 +2,16 @@ export interface EventConfig {
2
2
  contestActive: boolean;
3
3
  styleMonthActive: boolean;
4
4
  }
5
+
6
+ export interface EventCampaign {
7
+ id: string;
8
+ name: string;
9
+ startDate: string;
10
+ endDate?: string;
11
+ venue?: string;
12
+ description?: string;
13
+ address?: string;
14
+ city?: string;
15
+ url?: string;
16
+ photo?: string;
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@community-kitchens/apiinterfaces",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
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
  }
@@ -21,6 +21,11 @@ export interface JobForCheckIn {
21
21
  id: string;
22
22
  }
23
23
 
24
+ export interface CheckInArgs {
25
+ hoursId: string;
26
+ duration: string;
27
+ }
28
+
24
29
  export type CheckInShiftsResponse = {
25
30
  jobs: Record<string, JobForCheckIn>;
26
31
  shifts: Record<string, ShiftForCheckIn>;
@@ -53,7 +58,7 @@ export type Campaign = {
53
58
  mealsDonated: number;
54
59
  };
55
60
 
56
- export interface Shift {
61
+ export interface VolunteerShift {
57
62
  id: string;
58
63
  startTime: string;
59
64
  open: boolean;
@@ -77,7 +82,7 @@ export interface Job {
77
82
  location?: string;
78
83
  locationInfo?: string;
79
84
  locationCity?: string;
80
- shifts: Shift[];
85
+ shifts: VolunteerShift[];
81
86
  active: boolean;
82
87
  ongoing: boolean;
83
88
  description?: string;
@@ -98,7 +103,7 @@ export interface DriverJob extends Job {
98
103
 
99
104
  export interface GetShiftsResponse {
100
105
  jobs: Job[];
101
- shifts: Shift[];
106
+ shifts: VolunteerShift[];
102
107
  }
103
108
 
104
109
  export interface VolunteerCampaign {
@@ -130,11 +135,11 @@ export interface EditHoursArgs {
130
135
  mealType: "Soup" | "Entree";
131
136
  }
132
137
 
133
- export interface SignUpForVolunteerShiftArgs {
138
+ export interface CreateVolunteerHoursArgs {
134
139
  shiftId: string;
135
140
  jobId: string;
136
141
  date: string;
137
- contactSalesforceId?: string;
142
+ contactSalesforceId: string;
138
143
  reserved?: boolean;
139
144
  }
140
145