@kinevolution/appwrite-functions-shared-utils 0.1.26 → 0.1.28
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 +36 -39
- package/dist/appwrite.js +7 -7
- package/dist/functionsInputsOutputs.d.ts +7 -7
- package/package.json +1 -1
package/dist/appwrite.d.ts
CHANGED
|
@@ -5,6 +5,12 @@ export declare enum Role {
|
|
|
5
5
|
REQUESTER = "requester",
|
|
6
6
|
COMPANION = "companion"
|
|
7
7
|
}
|
|
8
|
+
export declare enum Sex {
|
|
9
|
+
FEMALE = "female",
|
|
10
|
+
MALE = "male",
|
|
11
|
+
PREFER_NOT_SAY = "prefer_not_say",
|
|
12
|
+
OTHER = "other"
|
|
13
|
+
}
|
|
8
14
|
export declare enum Activities {
|
|
9
15
|
CHAT = "chat",
|
|
10
16
|
WALK = "walk",
|
|
@@ -13,57 +19,48 @@ export declare enum Activities {
|
|
|
13
19
|
READING = "reading",
|
|
14
20
|
SHOPPING = "shopping"
|
|
15
21
|
}
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
export type Roles = Models.Row & {
|
|
23
|
+
userId: string;
|
|
24
|
+
role: Role;
|
|
25
|
+
};
|
|
26
|
+
export type Cores = Models.Row & {
|
|
27
|
+
role: string;
|
|
28
|
+
firstName: string;
|
|
29
|
+
lastName: string;
|
|
30
|
+
sex: Sex;
|
|
31
|
+
birthDate: string;
|
|
32
|
+
termsAcceptedAt: string;
|
|
33
|
+
pushTokens: string[] | null;
|
|
34
|
+
};
|
|
35
|
+
export type Extras = Models.Row & {
|
|
36
|
+
role: string;
|
|
37
|
+
activities: Activities[] | null;
|
|
38
|
+
bio: string | null;
|
|
39
|
+
photoIds: string[] | null;
|
|
40
|
+
locale: string | null;
|
|
41
|
+
timezone: string | null;
|
|
42
|
+
marketingOptIn: boolean;
|
|
43
|
+
};
|
|
44
|
+
export type Requesters = Models.Row & {
|
|
45
|
+
role: string;
|
|
23
46
|
phone: string;
|
|
24
47
|
contactByPhone: boolean;
|
|
25
|
-
approxLocationLabel: string;
|
|
26
|
-
homeLocation: Point;
|
|
27
|
-
notesForCompanions: string | null;
|
|
28
48
|
emergencyContactName: string | null;
|
|
29
49
|
emergencyContactPhone: string | null;
|
|
30
|
-
user: string;
|
|
31
50
|
};
|
|
32
|
-
export type
|
|
51
|
+
export type Companions = Models.Row & {
|
|
52
|
+
role: string;
|
|
33
53
|
hasVehicle: boolean;
|
|
34
54
|
ratingCount: number;
|
|
35
55
|
ratingAvg: number;
|
|
36
|
-
user: string;
|
|
37
56
|
};
|
|
38
|
-
export type
|
|
57
|
+
export type Zones = Models.Row & {
|
|
58
|
+
role: string;
|
|
39
59
|
label: string;
|
|
40
60
|
priority: number;
|
|
41
61
|
active: boolean;
|
|
62
|
+
radius: number | null;
|
|
42
63
|
notes: string | null;
|
|
43
|
-
zone: Zone | null;
|
|
44
|
-
profilesCompanion: string;
|
|
45
64
|
center: Point | null;
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
export type Roles = Models.Row & {
|
|
49
|
-
userId: string;
|
|
50
|
-
role: Role;
|
|
51
|
-
};
|
|
52
|
-
export type ProfilesExtras = Models.Row & {
|
|
53
|
-
user: string;
|
|
54
|
-
bio: string | null;
|
|
55
|
-
photoIds: string[] | null;
|
|
56
|
-
activities: Activities[] | null;
|
|
57
|
-
locale: string | null;
|
|
58
|
-
timezone: string | null;
|
|
59
|
-
marketingOptIn: boolean;
|
|
60
|
-
};
|
|
61
|
-
export type ProfilesCore = Models.Row & {
|
|
62
|
-
pushTokens: string[] | null;
|
|
63
|
-
termsAcceptedAt: string;
|
|
64
|
-
birthDate: string;
|
|
65
|
-
firstName: string;
|
|
66
|
-
lastName: string;
|
|
67
|
-
sex: Sex;
|
|
68
|
-
user: string;
|
|
65
|
+
zone: Zone | null;
|
|
69
66
|
};
|
package/dist/appwrite.js
CHANGED
|
@@ -3,6 +3,13 @@ export var Role;
|
|
|
3
3
|
Role["REQUESTER"] = "requester";
|
|
4
4
|
Role["COMPANION"] = "companion";
|
|
5
5
|
})(Role || (Role = {}));
|
|
6
|
+
export var Sex;
|
|
7
|
+
(function (Sex) {
|
|
8
|
+
Sex["FEMALE"] = "female";
|
|
9
|
+
Sex["MALE"] = "male";
|
|
10
|
+
Sex["PREFER_NOT_SAY"] = "prefer_not_say";
|
|
11
|
+
Sex["OTHER"] = "other";
|
|
12
|
+
})(Sex || (Sex = {}));
|
|
6
13
|
export var Activities;
|
|
7
14
|
(function (Activities) {
|
|
8
15
|
Activities["CHAT"] = "chat";
|
|
@@ -12,10 +19,3 @@ export var Activities;
|
|
|
12
19
|
Activities["READING"] = "reading";
|
|
13
20
|
Activities["SHOPPING"] = "shopping";
|
|
14
21
|
})(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 = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Models, Users } from 'node-appwrite';
|
|
2
|
-
import {
|
|
2
|
+
import { Companions, Cores, Extras, Requesters, Roles, Zones } from './appwrite.js';
|
|
3
3
|
import type { Response } from './utils.js';
|
|
4
4
|
export interface GetAllUsersInput {
|
|
5
5
|
offset?: number;
|
|
@@ -40,12 +40,12 @@ export declare const GetAllUsersConfig: {
|
|
|
40
40
|
export interface GetAllUsersDataType {
|
|
41
41
|
totalUsers: number;
|
|
42
42
|
users: Models.User<Users>[];
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
roles: Roles[];
|
|
44
|
+
cores: Cores[];
|
|
45
|
+
extras: Extras[];
|
|
46
|
+
requesters: Requesters[];
|
|
47
|
+
companions: Companions[];
|
|
48
|
+
zones: Zones[];
|
|
49
49
|
}
|
|
50
50
|
export type GetAllUsersResponse = Response<GetAllUsersDataType>;
|
|
51
51
|
export interface RemoveUserInput {
|