@kinevolution/appwrite-functions-shared-utils 0.1.37 → 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.
@@ -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 {};
@@ -34,7 +34,7 @@ export declare const GetAllUsersConfig: {
34
34
  readonly key: "orderBy";
35
35
  readonly type: "string";
36
36
  readonly required: false;
37
- readonly default: "email";
37
+ readonly default: "phone";
38
38
  }];
39
39
  };
40
40
  export interface GetAllUsersDataType {
@@ -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: 'email' },
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.37",
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": "24.10.2",
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",