@kinevolution/appwrite-functions-shared-utils 0.1.10 → 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.
- package/dist/appwrite.d.ts +15 -8
- package/package.json +1 -4
package/dist/appwrite.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { Models } from 'appwrite';
|
|
2
|
-
|
|
3
1
|
// This file is auto-generated by the Appwrite CLI.
|
|
4
2
|
// You can regenerate it by running `appwrite types -l ts types`.
|
|
5
3
|
|
|
4
|
+
interface BaseRow {
|
|
5
|
+
$id: string;
|
|
6
|
+
$createdAt: string;
|
|
7
|
+
$updatedAt: string;
|
|
8
|
+
$permissions: string[];
|
|
9
|
+
$databaseId: string;
|
|
10
|
+
$collectionId: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
export enum Role {
|
|
7
14
|
REQUESTER = 'requester',
|
|
8
15
|
COMPANION = 'companion',
|
|
@@ -24,7 +31,7 @@ export enum Sex {
|
|
|
24
31
|
OTHER = 'other',
|
|
25
32
|
}
|
|
26
33
|
|
|
27
|
-
export type ProfilesRequester =
|
|
34
|
+
export type ProfilesRequester = BaseRow & {
|
|
28
35
|
phone: string;
|
|
29
36
|
contactByPhone: boolean;
|
|
30
37
|
approxLocationLabel: string;
|
|
@@ -35,14 +42,14 @@ export type ProfilesRequester = Models.Row & {
|
|
|
35
42
|
user: Roles;
|
|
36
43
|
};
|
|
37
44
|
|
|
38
|
-
export type ProfilesCompanion =
|
|
45
|
+
export type ProfilesCompanion = BaseRow & {
|
|
39
46
|
hasVehicle: boolean;
|
|
40
47
|
ratingCount: number;
|
|
41
48
|
ratingAvg: number;
|
|
42
49
|
user: Roles;
|
|
43
50
|
};
|
|
44
51
|
|
|
45
|
-
export type CompanionZones =
|
|
52
|
+
export type CompanionZones = BaseRow & {
|
|
46
53
|
label: string;
|
|
47
54
|
priority: number;
|
|
48
55
|
active: boolean;
|
|
@@ -53,12 +60,12 @@ export type CompanionZones = Models.Row & {
|
|
|
53
60
|
radius: number | null;
|
|
54
61
|
};
|
|
55
62
|
|
|
56
|
-
export type Roles =
|
|
63
|
+
export type Roles = BaseRow & {
|
|
57
64
|
userId: string;
|
|
58
65
|
role: Role;
|
|
59
66
|
};
|
|
60
67
|
|
|
61
|
-
export type ProfilesExtras =
|
|
68
|
+
export type ProfilesExtras = BaseRow & {
|
|
62
69
|
user: Roles;
|
|
63
70
|
bio: string | null;
|
|
64
71
|
photoIds: string[] | null;
|
|
@@ -68,7 +75,7 @@ export type ProfilesExtras = Models.Row & {
|
|
|
68
75
|
marketingOptIn: boolean;
|
|
69
76
|
};
|
|
70
77
|
|
|
71
|
-
export type ProfilesCore =
|
|
78
|
+
export type ProfilesCore = BaseRow & {
|
|
72
79
|
pushTokens: string[] | null;
|
|
73
80
|
termsAcceptedAt: string;
|
|
74
81
|
birthDate: string;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
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
|
}
|