@kinevolution/appwrite-functions-shared-utils 0.1.30 → 0.1.31
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 +14 -12
- package/dist/appwrite.js +14 -11
- package/dist/functionsInputsOutputs.d.ts +7 -7
- package/package.json +1 -1
package/dist/appwrite.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { Models } from 'appwrite';
|
|
2
2
|
type Point = [number, number];
|
|
3
3
|
type Polygon = Point[][];
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export declare namespace Role {
|
|
5
|
+
enum Type {
|
|
6
|
+
REQUESTER = "requester",
|
|
7
|
+
COMPANION = "companion"
|
|
8
|
+
}
|
|
7
9
|
}
|
|
8
10
|
declare enum Sex {
|
|
9
11
|
FEMALE = "female",
|
|
@@ -11,7 +13,7 @@ declare enum Sex {
|
|
|
11
13
|
PREFER_NOT_SAY = "prefer_not_say",
|
|
12
14
|
OTHER = "other"
|
|
13
15
|
}
|
|
14
|
-
declare enum
|
|
16
|
+
declare enum Activity {
|
|
15
17
|
CHAT = "chat",
|
|
16
18
|
WALK = "walk",
|
|
17
19
|
GAMES = "games",
|
|
@@ -19,11 +21,11 @@ declare enum Activities {
|
|
|
19
21
|
READING = "reading",
|
|
20
22
|
SHOPPING = "shopping"
|
|
21
23
|
}
|
|
22
|
-
export type
|
|
24
|
+
export type Role = Models.Row & {
|
|
23
25
|
userId: string;
|
|
24
|
-
role: Role;
|
|
26
|
+
role: Role.Type;
|
|
25
27
|
};
|
|
26
|
-
export type
|
|
28
|
+
export type Core = Models.Row & {
|
|
27
29
|
role: string;
|
|
28
30
|
firstName: string;
|
|
29
31
|
lastName: string;
|
|
@@ -32,29 +34,29 @@ export type Cores = Models.Row & {
|
|
|
32
34
|
termsAcceptedAt: string;
|
|
33
35
|
pushTokens: string[] | null;
|
|
34
36
|
};
|
|
35
|
-
export type
|
|
37
|
+
export type Extra = Models.Row & {
|
|
36
38
|
role: string;
|
|
37
|
-
activities:
|
|
39
|
+
activities: Activity[] | null;
|
|
38
40
|
bio: string | null;
|
|
39
41
|
photoIds: string[] | null;
|
|
40
42
|
locale: string | null;
|
|
41
43
|
timezone: string | null;
|
|
42
44
|
marketingOptIn: boolean;
|
|
43
45
|
};
|
|
44
|
-
export type
|
|
46
|
+
export type Requester = Models.Row & {
|
|
45
47
|
role: string;
|
|
46
48
|
phone: string;
|
|
47
49
|
contactByPhone: boolean;
|
|
48
50
|
emergencyContactName: string | null;
|
|
49
51
|
emergencyContactPhone: string | null;
|
|
50
52
|
};
|
|
51
|
-
export type
|
|
53
|
+
export type Companion = Models.Row & {
|
|
52
54
|
role: string;
|
|
53
55
|
hasVehicle: boolean;
|
|
54
56
|
ratingCount: number;
|
|
55
57
|
ratingAvg: number;
|
|
56
58
|
};
|
|
57
|
-
export type
|
|
59
|
+
export type Zone = Models.Row & {
|
|
58
60
|
role: string;
|
|
59
61
|
label: string;
|
|
60
62
|
priority: number;
|
package/dist/appwrite.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export var Role;
|
|
2
2
|
(function (Role) {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
let Type;
|
|
4
|
+
(function (Type) {
|
|
5
|
+
Type["REQUESTER"] = "requester";
|
|
6
|
+
Type["COMPANION"] = "companion";
|
|
7
|
+
})(Type = Role.Type || (Role.Type = {}));
|
|
5
8
|
})(Role || (Role = {}));
|
|
6
9
|
var Sex;
|
|
7
10
|
(function (Sex) {
|
|
@@ -10,12 +13,12 @@ var Sex;
|
|
|
10
13
|
Sex["PREFER_NOT_SAY"] = "prefer_not_say";
|
|
11
14
|
Sex["OTHER"] = "other";
|
|
12
15
|
})(Sex || (Sex = {}));
|
|
13
|
-
var
|
|
14
|
-
(function (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})(
|
|
16
|
+
var Activity;
|
|
17
|
+
(function (Activity) {
|
|
18
|
+
Activity["CHAT"] = "chat";
|
|
19
|
+
Activity["WALK"] = "walk";
|
|
20
|
+
Activity["GAMES"] = "games";
|
|
21
|
+
Activity["HOME_HELP"] = "home_help";
|
|
22
|
+
Activity["READING"] = "reading";
|
|
23
|
+
Activity["SHOPPING"] = "shopping";
|
|
24
|
+
})(Activity || (Activity = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Models, Users } from 'node-appwrite';
|
|
2
|
-
import {
|
|
2
|
+
import { Companion, Core, Extra, Requester, Role, Zone } 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
|
-
roles:
|
|
44
|
-
cores:
|
|
45
|
-
extras:
|
|
46
|
-
zones:
|
|
47
|
-
requesters:
|
|
48
|
-
companions:
|
|
43
|
+
roles: Role[];
|
|
44
|
+
cores: Core[];
|
|
45
|
+
extras: Extra[];
|
|
46
|
+
zones: Zone[];
|
|
47
|
+
requesters: Requester[];
|
|
48
|
+
companions: Companion[];
|
|
49
49
|
}
|
|
50
50
|
export type GetAllUsersResponse = Response<GetAllUsersDataType>;
|
|
51
51
|
export interface RemoveUserInput {
|