@kinevolution/appwrite-functions-shared-utils 0.1.37 → 0.1.39
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
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
import type { Models } from 'appwrite';
|
|
2
|
-
type Point = [number, number];
|
|
3
|
-
type Polygon = Point[][];
|
|
4
|
-
export declare enum Role {
|
|
5
|
-
REQUESTER = "requester",
|
|
6
|
-
COMPANION = "companion"
|
|
7
|
-
}
|
|
8
|
-
export declare enum Sex {
|
|
9
|
-
FEMALE = "female",
|
|
10
|
-
MALE = "male",
|
|
11
|
-
PREFER_NOT_SAY = "prefer_not_say",
|
|
12
|
-
OTHER = "other"
|
|
13
|
-
}
|
|
14
|
-
export declare enum Activity {
|
|
15
|
-
CHAT = "chat",
|
|
16
|
-
WALK = "walk",
|
|
17
|
-
GAMES = "games",
|
|
18
|
-
HOME_HELP = "home_help",
|
|
19
|
-
READING = "reading",
|
|
20
|
-
SHOPPING = "shopping"
|
|
21
|
-
}
|
|
22
2
|
export type Core = Models.Row & {
|
|
23
3
|
userId: string;
|
|
24
4
|
role: Role;
|
|
@@ -26,7 +6,6 @@ export type Core = Models.Row & {
|
|
|
26
6
|
lastName: string;
|
|
27
7
|
sex: Sex;
|
|
28
8
|
birthDate: string;
|
|
29
|
-
phone: string;
|
|
30
9
|
contactByPhone: boolean;
|
|
31
10
|
termsAcceptedAt: string;
|
|
32
11
|
pushTokens: string[] | null;
|
|
@@ -66,4 +45,24 @@ export type PolygonZone = Models.Row & {
|
|
|
66
45
|
notes: string | null;
|
|
67
46
|
zone: Polygon;
|
|
68
47
|
};
|
|
48
|
+
type Point = [number, number];
|
|
49
|
+
type Polygon = Point[][];
|
|
50
|
+
export declare enum Role {
|
|
51
|
+
REQUESTER = "requester",
|
|
52
|
+
COMPANION = "companion"
|
|
53
|
+
}
|
|
54
|
+
export declare enum Sex {
|
|
55
|
+
FEMALE = "female",
|
|
56
|
+
MALE = "male",
|
|
57
|
+
PREFER_NOT_SAY = "prefer_not_say",
|
|
58
|
+
OTHER = "other"
|
|
59
|
+
}
|
|
60
|
+
export declare enum Activity {
|
|
61
|
+
CHAT = "chat",
|
|
62
|
+
WALK = "walk",
|
|
63
|
+
GAMES = "games",
|
|
64
|
+
HOME_HELP = "home_help",
|
|
65
|
+
READING = "reading",
|
|
66
|
+
SHOPPING = "shopping"
|
|
67
|
+
}
|
|
69
68
|
export {};
|
|
@@ -5,7 +5,7 @@ export const GetAllUsersConfig = {
|
|
|
5
5
|
{ key: 'limit', type: 'number', required: false, default: 50 },
|
|
6
6
|
{ key: 'search', type: 'string', required: false, default: '' },
|
|
7
7
|
{ key: 'order', type: 'string', required: false, default: 'ASC' },
|
|
8
|
-
{ key: 'orderBy', type: 'string', required: false, default: '
|
|
8
|
+
{ key: 'orderBy', type: 'string', required: false, default: 'phone' },
|
|
9
9
|
],
|
|
10
10
|
};
|
|
11
11
|
export const RemoveUserConfig = {
|
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.39",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"author": "Nicolas Forêt <nicolas4@gmail.com>",
|
|
9
9
|
"description": "Shared utilities for Appwrite functions",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"npm-update": "npx npkill && del package-lock.json && ncu -u && npm i"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/node": "
|
|
34
|
+
"@types/node": "25.0.3",
|
|
35
35
|
"gulp": "5.0.1",
|
|
36
36
|
"gulp-replace": "1.1.4",
|
|
37
37
|
"minimist": "1.2.8",
|