@kinevolution/appwrite-functions-shared-utils 0.1.36 → 0.1.38
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 +20 -20
- package/dist/functionsInputsOutputs.d.ts +1 -1
- package/dist/functionsInputsOutputs.js +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +2 -2
- package/package.json +2 -2
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;
|
|
@@ -66,4 +46,24 @@ export type PolygonZone = Models.Row & {
|
|
|
66
46
|
notes: string | null;
|
|
67
47
|
zone: Polygon;
|
|
68
48
|
};
|
|
49
|
+
type Point = [number, number];
|
|
50
|
+
type Polygon = Point[][];
|
|
51
|
+
export declare enum Role {
|
|
52
|
+
REQUESTER = "requester",
|
|
53
|
+
COMPANION = "companion"
|
|
54
|
+
}
|
|
55
|
+
export declare enum Sex {
|
|
56
|
+
FEMALE = "female",
|
|
57
|
+
MALE = "male",
|
|
58
|
+
PREFER_NOT_SAY = "prefer_not_say",
|
|
59
|
+
OTHER = "other"
|
|
60
|
+
}
|
|
61
|
+
export declare enum Activity {
|
|
62
|
+
CHAT = "chat",
|
|
63
|
+
WALK = "walk",
|
|
64
|
+
GAMES = "games",
|
|
65
|
+
HOME_HELP = "home_help",
|
|
66
|
+
READING = "reading",
|
|
67
|
+
SHOPPING = "shopping"
|
|
68
|
+
}
|
|
69
69
|
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/dist/utils.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const APPWRITE_TABLE_IDS: {
|
|
2
2
|
DATABASE_ID: string;
|
|
3
|
-
ROLES_TABLE_ID: string;
|
|
4
3
|
CORES_TABLE_ID: string;
|
|
5
4
|
EXTRAS_TABLE_ID: string;
|
|
6
|
-
|
|
5
|
+
RADIUS_ZONES_TABLE_ID: string;
|
|
6
|
+
POLYGON_ZONES_TABLE_ID: string;
|
|
7
7
|
REQUESTERS_TABLE_ID: string;
|
|
8
8
|
COMPANIONS_TABLE_ID: string;
|
|
9
9
|
};
|
package/dist/utils.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const APPWRITE_TABLE_IDS = {
|
|
2
2
|
DATABASE_ID: '68cd8148000f7e778732',
|
|
3
|
-
ROLES_TABLE_ID: 'roles',
|
|
4
3
|
CORES_TABLE_ID: 'cores',
|
|
5
4
|
EXTRAS_TABLE_ID: 'extras',
|
|
6
|
-
|
|
5
|
+
RADIUS_ZONES_TABLE_ID: 'radiusZones',
|
|
6
|
+
POLYGON_ZONES_TABLE_ID: 'polygonZones',
|
|
7
7
|
REQUESTERS_TABLE_ID: 'requesters',
|
|
8
8
|
COMPANIONS_TABLE_ID: 'companions',
|
|
9
9
|
};
|
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.38",
|
|
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",
|