@kinevolution/appwrite-functions-shared-utils 0.1.24 → 0.1.26

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,4 +1,6 @@
1
1
  import type { Models } from 'appwrite';
2
+ export type Point = [number, number];
3
+ export type Zone = Point[][];
2
4
  export declare enum Role {
3
5
  REQUESTER = "requester",
4
6
  COMPANION = "companion"
@@ -21,7 +23,7 @@ export type ProfilesRequester = Models.Row & {
21
23
  phone: string;
22
24
  contactByPhone: boolean;
23
25
  approxLocationLabel: string;
24
- homeLocation: string;
26
+ homeLocation: Point;
25
27
  notesForCompanions: string | null;
26
28
  emergencyContactName: string | null;
27
29
  emergencyContactPhone: string | null;
@@ -38,9 +40,9 @@ export type CompanionZones = Models.Row & {
38
40
  priority: number;
39
41
  active: boolean;
40
42
  notes: string | null;
41
- zone: string | null;
43
+ zone: Zone | null;
42
44
  profilesCompanion: string;
43
- center: string | null;
45
+ center: Point | null;
44
46
  radius: number | null;
45
47
  };
46
48
  export type Roles = Models.Row & {
package/dist/appwrite.js CHANGED
@@ -1,5 +1,3 @@
1
- // This file is auto-generated by the Appwrite CLI.
2
- // You can regenerate it by running `appwrite types -l ts appwrite.ts`.
3
1
  export var Role;
4
2
  (function (Role) {
5
3
  Role["REQUESTER"] = "requester";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.24",
6
+ "version": "0.1.26",
7
7
  "license": "ISC",
8
8
  "author": "Nicolas Forêt <nicolas4@gmail.com>",
9
9
  "description": "Shared utilities for Appwrite functions",