@kinevolution/appwrite-functions-shared-utils 0.1.9 → 0.1.11

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.
Files changed (2) hide show
  1. package/dist/appwrite.d.ts +86 -79
  2. package/package.json +1 -4
@@ -1,79 +1,86 @@
1
- import type { Models } from 'appwrite';
2
-
3
- // This file is auto-generated by the Appwrite CLI.
4
- // You can regenerate it by running `appwrite types -l ts types`.
5
-
6
- export enum Role {
7
- REQUESTER = 'requester',
8
- COMPANION = 'companion',
9
- }
10
-
11
- export enum Activities {
12
- CHAT = 'chat',
13
- WALK = 'walk',
14
- GAMES = 'games',
15
- HOME_HELP = 'home_help',
16
- READING = 'reading',
17
- SHOPPING = 'shopping',
18
- }
19
-
20
- export enum Sex {
21
- FEMALE = 'female',
22
- MALE = 'male',
23
- PREFER_NOT_SAY = 'prefer_not_say',
24
- OTHER = 'other',
25
- }
26
-
27
- export type ProfilesRequester = Models.Row & {
28
- phone: string;
29
- contactByPhone: boolean;
30
- approxLocationLabel: string;
31
- homeLocation: string;
32
- notesForCompanions: string | null;
33
- emergencyContactName: string | null;
34
- emergencyContactPhone: string | null;
35
- user: Roles;
36
- };
37
-
38
- export type ProfilesCompanion = Models.Row & {
39
- hasVehicle: boolean;
40
- ratingCount: number;
41
- ratingAvg: number;
42
- user: Roles;
43
- };
44
-
45
- export type CompanionZones = Models.Row & {
46
- label: string;
47
- priority: number;
48
- active: boolean;
49
- notes: string | null;
50
- zone: string | null;
51
- profilesCompanion: ProfilesCompanion;
52
- center: string | null;
53
- radius: number | null;
54
- };
55
-
56
- export type Roles = Models.Row & {
57
- userId: string;
58
- role: Role;
59
- };
60
-
61
- export type ProfilesExtras = Models.Row & {
62
- user: Roles;
63
- bio: string | null;
64
- photoIds: string[] | null;
65
- activities: Activities[] | null;
66
- locale: string | null;
67
- timezone: string | null;
68
- marketingOptIn: boolean;
69
- };
70
-
71
- export type ProfilesCore = Models.Row & {
72
- pushTokens: string[] | null;
73
- termsAcceptedAt: string;
74
- birthDate: string;
75
- firstName: string;
76
- lastName: string;
77
- sex: Sex;
78
- user: Roles;
79
- };
1
+ // This file is auto-generated by the Appwrite CLI.
2
+ // You can regenerate it by running `appwrite types -l ts types`.
3
+
4
+ interface BaseRow {
5
+ $id: string;
6
+ $createdAt: string;
7
+ $updatedAt: string;
8
+ $permissions: string[];
9
+ $databaseId: string;
10
+ $collectionId: string;
11
+ }
12
+
13
+ export enum Role {
14
+ REQUESTER = 'requester',
15
+ COMPANION = 'companion',
16
+ }
17
+
18
+ export enum Activities {
19
+ CHAT = 'chat',
20
+ WALK = 'walk',
21
+ GAMES = 'games',
22
+ HOME_HELP = 'home_help',
23
+ READING = 'reading',
24
+ SHOPPING = 'shopping',
25
+ }
26
+
27
+ export enum Sex {
28
+ FEMALE = 'female',
29
+ MALE = 'male',
30
+ PREFER_NOT_SAY = 'prefer_not_say',
31
+ OTHER = 'other',
32
+ }
33
+
34
+ export type ProfilesRequester = BaseRow & {
35
+ phone: string;
36
+ contactByPhone: boolean;
37
+ approxLocationLabel: string;
38
+ homeLocation: string;
39
+ notesForCompanions: string | null;
40
+ emergencyContactName: string | null;
41
+ emergencyContactPhone: string | null;
42
+ user: Roles;
43
+ };
44
+
45
+ export type ProfilesCompanion = BaseRow & {
46
+ hasVehicle: boolean;
47
+ ratingCount: number;
48
+ ratingAvg: number;
49
+ user: Roles;
50
+ };
51
+
52
+ export type CompanionZones = BaseRow & {
53
+ label: string;
54
+ priority: number;
55
+ active: boolean;
56
+ notes: string | null;
57
+ zone: string | null;
58
+ profilesCompanion: ProfilesCompanion;
59
+ center: string | null;
60
+ radius: number | null;
61
+ };
62
+
63
+ export type Roles = BaseRow & {
64
+ userId: string;
65
+ role: Role;
66
+ };
67
+
68
+ export type ProfilesExtras = BaseRow & {
69
+ user: Roles;
70
+ bio: string | null;
71
+ photoIds: string[] | null;
72
+ activities: Activities[] | null;
73
+ locale: string | null;
74
+ timezone: string | null;
75
+ marketingOptIn: boolean;
76
+ };
77
+
78
+ export type ProfilesCore = BaseRow & {
79
+ pushTokens: string[] | null;
80
+ termsAcceptedAt: string;
81
+ birthDate: string;
82
+ firstName: string;
83
+ lastName: string;
84
+ sex: Sex;
85
+ user: Roles;
86
+ };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.9",
6
+ "version": "0.1.11",
7
7
  "license": "ISC",
8
8
  "author": "Nicolas Forêt <nicolas4@gmail.com>",
9
9
  "description": "Shared utilities for Appwrite functions",
@@ -35,8 +35,5 @@
35
35
  "gulp-replace": "1.1.4",
36
36
  "minimist": "1.2.8",
37
37
  "typescript": "5.9.3"
38
- },
39
- "dependencies": {
40
- "appwrite": "21.4.0"
41
38
  }
42
39
  }