@kinevolution/appwrite-functions-shared-utils 0.1.12 → 0.1.14

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,79 +1,67 @@
1
- import { Models } from "node-appwrite";
2
-
3
- // This file is auto-generated by the Appwrite CLI.
4
- // You can regenerate it by running `appwrite types -l ts types`.
5
-
6
- export enum Role {
7
- REQUESTER = 'requester',
8
- COMPANION = 'companion',
9
- }
10
-
11
- export enum Activities {
12
- CHAT = 'chat',
13
- WALK = 'walk',
14
- GAMES = 'games',
15
- HOME_HELP = 'home_help',
16
- READING = 'reading',
17
- SHOPPING = 'shopping',
18
- }
19
-
20
- export enum Sex {
21
- FEMALE = 'female',
22
- MALE = 'male',
23
- PREFER_NOT_SAY = 'prefer_not_say',
24
- OTHER = 'other',
25
- }
26
-
27
- export type ProfilesRequester = Models.Row & {
28
- phone: string;
29
- contactByPhone: boolean;
30
- approxLocationLabel: string;
31
- homeLocation: string;
32
- notesForCompanions: string | null;
33
- emergencyContactName: string | null;
34
- emergencyContactPhone: string | null;
35
- user: Roles;
36
- };
37
-
38
- export type ProfilesCompanion = Models.Row & {
39
- hasVehicle: boolean;
40
- ratingCount: number;
41
- ratingAvg: number;
42
- user: Roles;
43
- };
44
-
45
- export type CompanionZones = Models.Row & {
46
- label: string;
47
- priority: number;
48
- active: boolean;
49
- notes: string | null;
50
- zone: string | null;
51
- profilesCompanion: ProfilesCompanion;
52
- center: string | null;
53
- radius: number | null;
54
- };
55
-
56
- export type Roles = Models.Row & {
57
- userId: string;
58
- role: Role;
59
- };
60
-
61
- export type ProfilesExtras = Models.Row & {
62
- user: Roles;
63
- bio: string | null;
64
- photoIds: string[] | null;
65
- activities: Activities[] | null;
66
- locale: string | null;
67
- timezone: string | null;
68
- marketingOptIn: boolean;
69
- };
70
-
71
- export type ProfilesCore = Models.Row & {
72
- pushTokens: string[] | null;
73
- termsAcceptedAt: string;
74
- birthDate: string;
75
- firstName: string;
76
- lastName: string;
77
- sex: Sex;
78
- user: Roles;
79
- };
1
+ import type { Models } from 'appwrite';
2
+ export declare enum Role {
3
+ REQUESTER = "requester",
4
+ COMPANION = "companion"
5
+ }
6
+ export declare enum Activities {
7
+ CHAT = "chat",
8
+ WALK = "walk",
9
+ GAMES = "games",
10
+ HOME_HELP = "home_help",
11
+ READING = "reading",
12
+ SHOPPING = "shopping"
13
+ }
14
+ export declare enum Sex {
15
+ FEMALE = "female",
16
+ MALE = "male",
17
+ PREFER_NOT_SAY = "prefer_not_say",
18
+ OTHER = "other"
19
+ }
20
+ export type ProfilesRequester = Models.Row & {
21
+ phone: string;
22
+ contactByPhone: boolean;
23
+ approxLocationLabel: string;
24
+ homeLocation: string;
25
+ notesForCompanions: string | null;
26
+ emergencyContactName: string | null;
27
+ emergencyContactPhone: string | null;
28
+ user: Roles;
29
+ };
30
+ export type ProfilesCompanion = Models.Row & {
31
+ hasVehicle: boolean;
32
+ ratingCount: number;
33
+ ratingAvg: number;
34
+ user: Roles;
35
+ };
36
+ export type CompanionZones = Models.Row & {
37
+ label: string;
38
+ priority: number;
39
+ active: boolean;
40
+ notes: string | null;
41
+ zone: string | null;
42
+ profilesCompanion: ProfilesCompanion;
43
+ center: string | null;
44
+ radius: number | null;
45
+ };
46
+ export type Roles = Models.Row & {
47
+ userId: string;
48
+ role: Role;
49
+ };
50
+ export type ProfilesExtras = Models.Row & {
51
+ user: Roles;
52
+ bio: string | null;
53
+ photoIds: string[] | null;
54
+ activities: Activities[] | null;
55
+ locale: string | null;
56
+ timezone: string | null;
57
+ marketingOptIn: boolean;
58
+ };
59
+ export type ProfilesCore = Models.Row & {
60
+ pushTokens: string[] | null;
61
+ termsAcceptedAt: string;
62
+ birthDate: string;
63
+ firstName: string;
64
+ lastName: string;
65
+ sex: Sex;
66
+ user: Roles;
67
+ };
@@ -0,0 +1,21 @@
1
+ export var Role;
2
+ (function (Role) {
3
+ Role["REQUESTER"] = "requester";
4
+ Role["COMPANION"] = "companion";
5
+ })(Role || (Role = {}));
6
+ export var Activities;
7
+ (function (Activities) {
8
+ Activities["CHAT"] = "chat";
9
+ Activities["WALK"] = "walk";
10
+ Activities["GAMES"] = "games";
11
+ Activities["HOME_HELP"] = "home_help";
12
+ Activities["READING"] = "reading";
13
+ Activities["SHOPPING"] = "shopping";
14
+ })(Activities || (Activities = {}));
15
+ export var Sex;
16
+ (function (Sex) {
17
+ Sex["FEMALE"] = "female";
18
+ Sex["MALE"] = "male";
19
+ Sex["PREFER_NOT_SAY"] = "prefer_not_say";
20
+ Sex["OTHER"] = "other";
21
+ })(Sex || (Sex = {}));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.12",
6
+ "version": "0.1.14",
7
7
  "license": "ISC",
8
8
  "author": "Nicolas Forêt <nicolas4@gmail.com>",
9
9
  "description": "Shared utilities for Appwrite functions",
@@ -14,14 +14,14 @@
14
14
  "exports": {
15
15
  ".": "./dist/utils.js",
16
16
  "./utils": "./dist/utils.js",
17
- "./appwrite": "./dist/appwrite.d.ts"
17
+ "./appwrite": "./dist/appwrite.js"
18
18
  },
19
19
  "files": [
20
20
  "dist"
21
21
  ],
22
22
  "scripts": {
23
23
  "bat-update": "cd .. && shared-update.bat",
24
- "build": "tsc -p tsconfig.json && powershell -Command \"Copy-Item appwrite.d.ts dist/appwrite.d.ts\"",
24
+ "build": "tsc -p tsconfig.json",
25
25
  "bump-version": "npm run bump-version:patch",
26
26
  "bump-version:major": "gulp bump-version --type=major",
27
27
  "bump-version:minor": "gulp bump-version --type=minor",
@@ -37,6 +37,6 @@
37
37
  "typescript": "5.9.3"
38
38
  },
39
39
  "dependencies": {
40
- "node-appwrite": "20.3.0"
40
+ "appwrite": "21.4.0"
41
41
  }
42
42
  }