@kinevolution/appwrite-functions-shared-utils 0.1.51 → 0.1.53

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.
@@ -11,7 +11,6 @@ export type Core = Models.Row & {
11
11
  };
12
12
  export type Extra = Models.Row & {
13
13
  core: string;
14
- activities: Activity[] | null;
15
14
  bio: string | null;
16
15
  photoIds: string[] | null;
17
16
  };
@@ -37,10 +36,10 @@ export type RadiusZone = Models.Row & {
37
36
  };
38
37
  export type MunicipalityZone = Models.Row & {
39
38
  core: string;
39
+ municipality: string;
40
40
  label: string;
41
41
  active: boolean;
42
42
  notes: string | null;
43
- municipalityId: string;
44
43
  };
45
44
  export type Municipality = Models.Row & {
46
45
  regionCode: RegionCode;
@@ -51,14 +50,21 @@ export type Municipality = Models.Row & {
51
50
  shape: Polygon;
52
51
  };
53
52
  export type MunicipalityCell = Models.Row & {
53
+ municipality: string;
54
54
  cellId: string;
55
- municipalityId: string;
56
55
  };
57
56
  export type RadiusZoneCell = Models.Row & {
58
- radiusZoneId: string;
57
+ radiusZone: string;
59
58
  h3Resolution: number;
60
59
  cellId: string;
61
60
  };
61
+ export type Activity = Models.Row & {
62
+ name: string;
63
+ };
64
+ export type UserActivity = Models.Row & {
65
+ core: string;
66
+ activity: string;
67
+ };
62
68
  type Point = [number, number];
63
69
  type Polygon = Point[][];
64
70
  export declare enum Role {
@@ -71,14 +77,6 @@ export declare enum Sex {
71
77
  PREFER_NOT_SAY = "prefer_not_say",
72
78
  OTHER = "other"
73
79
  }
74
- export declare enum Activity {
75
- CHAT = "chat",
76
- WALK = "walk",
77
- GAMES = "games",
78
- HOME_HELP = "home_help",
79
- READING = "reading",
80
- SHOPPING = "shopping"
81
- }
82
80
  export declare enum RegionCode {
83
81
  REGION_2000 = "2000",
84
82
  REGION_3000 = "3000",
package/dist/appwrite.js CHANGED
@@ -10,15 +10,6 @@ export var Sex;
10
10
  Sex["PREFER_NOT_SAY"] = "prefer_not_say";
11
11
  Sex["OTHER"] = "other";
12
12
  })(Sex || (Sex = {}));
13
- export var Activity;
14
- (function (Activity) {
15
- Activity["CHAT"] = "chat";
16
- Activity["WALK"] = "walk";
17
- Activity["GAMES"] = "games";
18
- Activity["HOME_HELP"] = "home_help";
19
- Activity["READING"] = "reading";
20
- Activity["SHOPPING"] = "shopping";
21
- })(Activity || (Activity = {}));
22
13
  export var RegionCode;
23
14
  (function (RegionCode) {
24
15
  RegionCode["REGION_2000"] = "2000";
package/dist/utils.d.ts CHANGED
@@ -4,6 +4,8 @@ export declare const APPWRITE_TABLE_IDS: {
4
4
  EXTRAS_TABLE_ID: string;
5
5
  REQUESTERS_TABLE_ID: string;
6
6
  COMPANIONS_TABLE_ID: string;
7
+ ACTIVITIES_TABLE_ID: string;
8
+ USER_ACTIVITIES_TABLE_ID: string;
7
9
  RADIUS_ZONES_TABLE_ID: string;
8
10
  RADIUS_ZONE_CELLS_TABLE_ID: string;
9
11
  MUNICIPALITY_ZONES_TABLE_ID: string;
package/dist/utils.js CHANGED
@@ -4,6 +4,8 @@ export const APPWRITE_TABLE_IDS = {
4
4
  EXTRAS_TABLE_ID: 'extras',
5
5
  REQUESTERS_TABLE_ID: 'requesters',
6
6
  COMPANIONS_TABLE_ID: 'companions',
7
+ ACTIVITIES_TABLE_ID: 'activities',
8
+ USER_ACTIVITIES_TABLE_ID: 'userActivities',
7
9
  RADIUS_ZONES_TABLE_ID: 'radiusZones',
8
10
  RADIUS_ZONE_CELLS_TABLE_ID: 'radiusZoneCells',
9
11
  MUNICIPALITY_ZONES_TABLE_ID: 'municipalityZones',
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.51",
6
+ "version": "0.1.53",
7
7
  "license": "ISC",
8
8
  "author": "Nicolas Forêt <nicolas4@gmail.com>",
9
9
  "description": "Shared utilities for Appwrite functions",
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "bat-update": "cd .. && shared-update.bat",
25
- "build": "tsc -p tsconfig.json",
25
+ "build": "node ./node_modules/typescript/bin/tsc -p tsconfig.json",
26
26
  "bump-version": "npm run bump-version:patch",
27
27
  "bump-version:major": "gulp bump-version --type=major",
28
28
  "bump-version:minor": "gulp bump-version --type=minor",
@@ -31,13 +31,13 @@
31
31
  "npm-update": "npx npkill && del package-lock.json && ncu -u && npm i"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/node": "25.0.9",
34
+ "@types/node": "25.3.0",
35
35
  "gulp": "5.0.1",
36
36
  "gulp-replace": "1.1.4",
37
37
  "minimist": "1.2.8",
38
38
  "typescript": "5.9.3"
39
39
  },
40
40
  "dependencies": {
41
- "appwrite": "21.5.0"
41
+ "appwrite": "22.4.0"
42
42
  }
43
43
  }