@timothyw/pat-common 1.0.78 → 1.0.80

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.
@@ -1,8 +1,9 @@
1
1
  export interface VersionQuery {
2
- clientVersion?: number;
2
+ iOSBuildVersion?: number;
3
+ androidBuildVersion?: number;
3
4
  }
4
5
  export interface VersionResponse {
5
- serverVersion: number;
6
- minClientVersion: number;
6
+ minIOSBuildVersion: number;
7
+ minAndroidBuildVersion: number;
7
8
  updateRequired: boolean;
8
9
  }
@@ -13,21 +13,21 @@ export declare const updatePersonRequestSchema: z.ZodObject<{
13
13
  value: string;
14
14
  key: string;
15
15
  }>, "many">>;
16
- notes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PersonNoteId, string>, "many">>;
16
+ noteIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PersonNoteId, string>, "many">>;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  name?: string | undefined;
19
- notes?: PersonNoteId[] | undefined;
20
19
  properties?: {
21
20
  value: string;
22
21
  key: string;
23
22
  }[] | undefined;
23
+ noteIds?: PersonNoteId[] | undefined;
24
24
  }, {
25
25
  name?: string | undefined;
26
- notes?: string[] | undefined;
27
26
  properties?: {
28
27
  value: string;
29
28
  key: string;
30
29
  }[] | undefined;
30
+ noteIds?: string[] | undefined;
31
31
  }>;
32
32
  export type UpdatePersonRequest = z.infer<typeof updatePersonRequestSchema>;
33
33
  export interface UpdatePersonResponse {
@@ -9,5 +9,5 @@ exports.updatePersonRequestSchema = zod_1.z.object({
9
9
  key: zod_1.z.string().min(1),
10
10
  value: zod_1.z.string().min(1)
11
11
  })).optional(),
12
- notes: zod_1.z.array(id_types_1.personNoteIdSchema).optional()
12
+ noteIds: zod_1.z.array(id_types_1.personNoteIdSchema).optional()
13
13
  });
@@ -1,4 +1,8 @@
1
1
  export interface ProgramConfigData {
2
+ _requiredBuildVersions: {
3
+ iOS: number;
4
+ android: number;
5
+ };
2
6
  dev: {
3
7
  authorizedEmails: string[];
4
8
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@timothyw/pat-common",
3
3
  "description": "",
4
4
  "author": "Timothy Washburn",
5
- "version": "1.0.78",
5
+ "version": "1.0.80",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -1,9 +1,10 @@
1
1
  export interface VersionQuery {
2
- clientVersion?: number;
2
+ iOSBuildVersion?: number;
3
+ androidBuildVersion?: number;
3
4
  }
4
5
 
5
6
  export interface VersionResponse {
6
- serverVersion: number;
7
- minClientVersion: number;
7
+ minIOSBuildVersion: number;
8
+ minAndroidBuildVersion: number;
8
9
  updateRequired: boolean;
9
10
  }
@@ -8,7 +8,7 @@ export const updatePersonRequestSchema = z.object({
8
8
  key: z.string().min(1),
9
9
  value: z.string().min(1)
10
10
  })).optional(),
11
- notes: z.array(personNoteIdSchema).optional()
11
+ noteIds: z.array(personNoteIdSchema).optional()
12
12
  });
13
13
 
14
14
  export type UpdatePersonRequest = z.infer<typeof updatePersonRequestSchema>;
@@ -1,4 +1,8 @@
1
1
  export interface ProgramConfigData {
2
+ _requiredBuildVersions: {
3
+ iOS: number;
4
+ android: number;
5
+ }
2
6
  dev: {
3
7
  authorizedEmails: string[]
4
8
  };