@community-kitchens/apiinterfaces 1.0.16 → 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 +13 -0
- package/package.json +1 -1
- package/volunteer/types.ts +9 -4
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
package/volunteer/types.ts
CHANGED
|
@@ -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
|
|
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:
|
|
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:
|
|
106
|
+
shifts: VolunteerShift[];
|
|
102
107
|
}
|
|
103
108
|
|
|
104
109
|
export interface VolunteerCampaign {
|
|
@@ -134,7 +139,7 @@ export interface CreateVolunteerHoursArgs {
|
|
|
134
139
|
shiftId: string;
|
|
135
140
|
jobId: string;
|
|
136
141
|
date: string;
|
|
137
|
-
contactSalesforceId
|
|
142
|
+
contactSalesforceId: string;
|
|
138
143
|
reserved?: boolean;
|
|
139
144
|
}
|
|
140
145
|
|