@community-kitchens/apiinterfaces 1.0.18 → 1.0.19

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/auth/types.ts CHANGED
@@ -34,7 +34,7 @@ export interface CreateUserArgs {
34
34
  salesforceId: string;
35
35
  }
36
36
 
37
- export type EditUserArgs = CreateUserArgs & {
37
+ export type EditUserArgs = Partial<CreateUserArgs> & {
38
38
  userId: string;
39
39
  busDriver?: boolean;
40
40
  };
package/homeChef/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Job, Shift, VolunteerHours } from "../volunteer/types";
1
+ import { Job, VolunteerShift, VolunteerHours } from "../volunteer/types";
2
2
 
3
3
  export interface NotificationPayload {
4
4
  title: string;
@@ -22,7 +22,7 @@ export interface HomeChefJob extends Omit<Job, "shifts"> {
22
22
  }
23
23
 
24
24
  export interface JobShiftsState {
25
- shifts: Record<string, Shift>;
25
+ shifts: Record<string, VolunteerShift>;
26
26
  jobs: Job[];
27
27
  }
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@community-kitchens/apiinterfaces",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
package/text/types.ts CHANGED
@@ -9,8 +9,7 @@ export type LowercaseRegion =
9
9
  export interface SendTextBody {
10
10
  message?: string;
11
11
  region: Region | LowercaseRegion | "all";
12
- photo?: string;
13
- // | File | FileList;
12
+ photo?: string | File | FileList;
14
13
  feedbackId?: string;
15
14
  number?: string;
16
15
  }
@@ -23,7 +23,7 @@ export interface JobForCheckIn {
23
23
 
24
24
  export interface CheckInArgs {
25
25
  hoursId: string;
26
- duration: string;
26
+ duration: number;
27
27
  }
28
28
 
29
29
  export type CheckInShiftsResponse = {