@fatehan/tsrp 1.0.2
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/fatehan/areas/area.d.ts +51 -0
- package/dist/fatehan/areas/area.js +401 -0
- package/dist/fatehan/google/protobuf/timestamp.d.ts +128 -0
- package/dist/fatehan/google/protobuf/timestamp.js +93 -0
- package/dist/fatehan/models/fusion.d.ts +70 -0
- package/dist/fatehan/models/fusion.js +802 -0
- package/dist/fatehan/models/models.d.ts +65 -0
- package/dist/fatehan/models/models.js +701 -0
- package/dist/fatehan/models/operation.d.ts +81 -0
- package/dist/fatehan/models/operation.js +874 -0
- package/dist/fatehan/notifies/notify.d.ts +147 -0
- package/dist/fatehan/notifies/notify.js +1634 -0
- package/dist/fatehan/packets/dataModel.d.ts +1254 -0
- package/dist/fatehan/packets/dataModel.js +16880 -0
- package/dist/fatehan/packets/messages.d.ts +52 -0
- package/dist/fatehan/packets/messages.js +402 -0
- package/dist/fatehan/reports/ReportServiceClientPb.js +265 -0
- package/dist/fatehan/reports/report.d.ts +916 -0
- package/dist/fatehan/reports/report.js +12050 -0
- package/dist/fatehan/trips/trip.d.ts +358 -0
- package/dist/fatehan/trips/trip.js +3752 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +59 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +38 -0
- package/package.json +32 -0
- package/readme.md +11 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Alert } from "../packets/dataModel";
|
|
3
|
+
export declare const protobufPackage = "fatehan";
|
|
4
|
+
export declare enum Via {
|
|
5
|
+
NONE = 0,
|
|
6
|
+
SMS = 1,
|
|
7
|
+
FCM = 2,
|
|
8
|
+
EMAIL = 3,
|
|
9
|
+
DATABASE = 4,
|
|
10
|
+
CALL = 5,
|
|
11
|
+
UNRECOGNIZED = -1
|
|
12
|
+
}
|
|
13
|
+
export declare function viaFromJSON(object: any): Via;
|
|
14
|
+
export declare function viaToJSON(object: Via): string;
|
|
15
|
+
export declare enum ObjectType {
|
|
16
|
+
UNKNOWN = 0,
|
|
17
|
+
DEVICE = 1,
|
|
18
|
+
USER = 2,
|
|
19
|
+
UNRECOGNIZED = -1
|
|
20
|
+
}
|
|
21
|
+
export declare function objectTypeFromJSON(object: any): ObjectType;
|
|
22
|
+
export declare function objectTypeToJSON(object: ObjectType): string;
|
|
23
|
+
export interface NotifyJob {
|
|
24
|
+
id: number;
|
|
25
|
+
userId: number;
|
|
26
|
+
alertId: number;
|
|
27
|
+
alertType: Alert;
|
|
28
|
+
retries: number;
|
|
29
|
+
priority: NotifyJob_Priority;
|
|
30
|
+
notify: Notify | undefined;
|
|
31
|
+
via: Via[];
|
|
32
|
+
}
|
|
33
|
+
export declare enum NotifyJob_Priority {
|
|
34
|
+
LOW = 0,
|
|
35
|
+
MEDIUM = 1,
|
|
36
|
+
HIGH = 2,
|
|
37
|
+
UNRECOGNIZED = -1
|
|
38
|
+
}
|
|
39
|
+
export declare function notifyJob_PriorityFromJSON(object: any): NotifyJob_Priority;
|
|
40
|
+
export declare function notifyJob_PriorityToJSON(object: NotifyJob_Priority): string;
|
|
41
|
+
export interface UserDeviceAlert {
|
|
42
|
+
id: number;
|
|
43
|
+
userId: number;
|
|
44
|
+
deviceId: number;
|
|
45
|
+
alertId: number;
|
|
46
|
+
condition: {
|
|
47
|
+
[key: number]: UserDeviceAlert_ConditionList;
|
|
48
|
+
};
|
|
49
|
+
status: boolean;
|
|
50
|
+
format: string;
|
|
51
|
+
alert: Alert;
|
|
52
|
+
unit?: string | undefined;
|
|
53
|
+
}
|
|
54
|
+
export interface UserDeviceAlert_Condition {
|
|
55
|
+
fromTime?: string | undefined;
|
|
56
|
+
toTime?: string | undefined;
|
|
57
|
+
soundId?: number | undefined;
|
|
58
|
+
text?: string | undefined;
|
|
59
|
+
value?: string | undefined;
|
|
60
|
+
type: Via[];
|
|
61
|
+
}
|
|
62
|
+
export interface UserDeviceAlert_ConditionList {
|
|
63
|
+
condition: UserDeviceAlert_Condition[];
|
|
64
|
+
}
|
|
65
|
+
export interface UserDeviceAlert_ConditionEntry {
|
|
66
|
+
key: number;
|
|
67
|
+
value: UserDeviceAlert_ConditionList | undefined;
|
|
68
|
+
}
|
|
69
|
+
export interface UserDeviceAlertList {
|
|
70
|
+
list: UserDeviceAlert[];
|
|
71
|
+
}
|
|
72
|
+
export interface Receiver {
|
|
73
|
+
phone?: number | undefined;
|
|
74
|
+
email?: string | undefined;
|
|
75
|
+
token: string[];
|
|
76
|
+
}
|
|
77
|
+
export interface Notify {
|
|
78
|
+
title: string;
|
|
79
|
+
body: string;
|
|
80
|
+
sound?: number | undefined;
|
|
81
|
+
image?: string | undefined;
|
|
82
|
+
icon?: string | undefined;
|
|
83
|
+
receiver: Receiver | undefined;
|
|
84
|
+
objectId?: number | undefined;
|
|
85
|
+
objectType: ObjectType;
|
|
86
|
+
timestamp: Date | undefined;
|
|
87
|
+
data: {
|
|
88
|
+
[key: string]: string;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export interface Notify_DataEntry {
|
|
92
|
+
key: string;
|
|
93
|
+
value: string;
|
|
94
|
+
}
|
|
95
|
+
export interface Notification {
|
|
96
|
+
uuid: string;
|
|
97
|
+
userId: number;
|
|
98
|
+
objectId?: number | undefined;
|
|
99
|
+
objectType: ObjectType;
|
|
100
|
+
title: string;
|
|
101
|
+
body?: string | undefined;
|
|
102
|
+
alertId: number;
|
|
103
|
+
alertType: number;
|
|
104
|
+
via: Via[];
|
|
105
|
+
data: {
|
|
106
|
+
[key: string]: string;
|
|
107
|
+
};
|
|
108
|
+
image?: string | undefined;
|
|
109
|
+
icon?: string | undefined;
|
|
110
|
+
sound?: number | undefined;
|
|
111
|
+
createdAt: Date | undefined;
|
|
112
|
+
readAt: Date | undefined;
|
|
113
|
+
}
|
|
114
|
+
export interface Notification_DataEntry {
|
|
115
|
+
key: string;
|
|
116
|
+
value: string;
|
|
117
|
+
}
|
|
118
|
+
export declare const NotifyJob: MessageFns<NotifyJob>;
|
|
119
|
+
export declare const UserDeviceAlert: MessageFns<UserDeviceAlert>;
|
|
120
|
+
export declare const UserDeviceAlert_Condition: MessageFns<UserDeviceAlert_Condition>;
|
|
121
|
+
export declare const UserDeviceAlert_ConditionList: MessageFns<UserDeviceAlert_ConditionList>;
|
|
122
|
+
export declare const UserDeviceAlert_ConditionEntry: MessageFns<UserDeviceAlert_ConditionEntry>;
|
|
123
|
+
export declare const UserDeviceAlertList: MessageFns<UserDeviceAlertList>;
|
|
124
|
+
export declare const Receiver: MessageFns<Receiver>;
|
|
125
|
+
export declare const Notify: MessageFns<Notify>;
|
|
126
|
+
export declare const Notify_DataEntry: MessageFns<Notify_DataEntry>;
|
|
127
|
+
export declare const Notification: MessageFns<Notification>;
|
|
128
|
+
export declare const Notification_DataEntry: MessageFns<Notification_DataEntry>;
|
|
129
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
130
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
131
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
132
|
+
} : Partial<T>;
|
|
133
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
134
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
135
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
136
|
+
} & {
|
|
137
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
138
|
+
};
|
|
139
|
+
export interface MessageFns<T> {
|
|
140
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
141
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
142
|
+
fromJSON(object: any): T;
|
|
143
|
+
toJSON(message: T): unknown;
|
|
144
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
145
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
146
|
+
}
|
|
147
|
+
export {};
|