@fatehan/tsrp 1.0.45 → 1.1.1

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.
Files changed (55) hide show
  1. package/dist/api.d.ts +10 -0
  2. package/dist/api.d.ts.map +1 -0
  3. package/dist/api.js +51 -0
  4. package/dist/api.test.d.ts +2 -0
  5. package/dist/api.test.d.ts.map +1 -0
  6. package/dist/api.test.js +20 -0
  7. package/dist/fatehan/apis/client.d.ts +213 -266
  8. package/dist/fatehan/apis/client.d.ts.map +1 -1
  9. package/dist/fatehan/apis/client.js +2277 -3223
  10. package/dist/fatehan/areas/area.d.ts +14 -0
  11. package/dist/fatehan/areas/area.d.ts.map +1 -1
  12. package/dist/fatehan/areas/area.js +212 -1
  13. package/dist/fatehan/devices/devices.d.ts +278 -0
  14. package/dist/fatehan/devices/devices.d.ts.map +1 -0
  15. package/dist/fatehan/devices/devices.js +3564 -0
  16. package/dist/fatehan/financial/financial.d.ts +45 -0
  17. package/dist/fatehan/financial/financial.d.ts.map +1 -0
  18. package/dist/fatehan/financial/financial.js +385 -0
  19. package/dist/fatehan/identities/identities.d.ts +154 -0
  20. package/dist/fatehan/identities/identities.d.ts.map +1 -0
  21. package/dist/fatehan/identities/identities.js +2068 -0
  22. package/dist/fatehan/models/models.d.ts +14 -80
  23. package/dist/fatehan/models/models.d.ts.map +1 -1
  24. package/dist/fatehan/models/models.js +478 -1401
  25. package/dist/fatehan/notifies/notify.d.ts +27 -0
  26. package/dist/fatehan/notifies/notify.d.ts.map +1 -1
  27. package/dist/fatehan/notifies/notify.js +419 -7
  28. package/dist/fatehan/reports/report.d.ts +1 -1
  29. package/dist/fatehan/reports/report.d.ts.map +1 -1
  30. package/dist/fatehan/reports/report.js +6 -6
  31. package/dist/fatehan/services/api.d.ts +60 -0
  32. package/dist/fatehan/services/api.d.ts.map +1 -0
  33. package/dist/fatehan/services/api.js +529 -0
  34. package/dist/fatehan/services/repositories.d.ts +49 -0
  35. package/dist/fatehan/services/repositories.d.ts.map +1 -0
  36. package/dist/fatehan/services/repositories.js +358 -0
  37. package/dist/{index.d.ts → report.d.ts} +2 -2
  38. package/dist/report.d.ts.map +1 -0
  39. package/dist/{index.js → report.js} +12 -12
  40. package/dist/report.test.d.ts +2 -0
  41. package/dist/report.test.d.ts.map +1 -0
  42. package/dist/{index.test.js → report.test.js} +14 -16
  43. package/dist/store/system.io.d.ts +1 -1
  44. package/dist/store/system.io.d.ts.map +1 -1
  45. package/dist/system.io.d.ts +1 -1
  46. package/dist/system.io.d.ts.map +1 -1
  47. package/dist/system.io.js +10 -14
  48. package/package.json +4 -4
  49. package/dist/fatehan/google/protobuf/any.d.ts +0 -146
  50. package/dist/fatehan/google/protobuf/any.d.ts.map +0 -1
  51. package/dist/fatehan/google/protobuf/any.js +0 -108
  52. package/dist/fatehan/reports/ReportServiceClientPb.js +0 -265
  53. package/dist/index.d.ts.map +0 -1
  54. package/dist/index.test.d.ts +0 -2
  55. package/dist/index.test.d.ts.map +0 -1
package/dist/api.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { AreaIndexRequest, AreaIndexResponse, MeRequest, MeResponse } from "./fatehan/services/api";
2
+ export declare class ApiService {
3
+ private readonly url;
4
+ private readonly namespace;
5
+ private readonly headers;
6
+ constructor(url: string, authorization?: string, organizationId?: string);
7
+ MeIndex(request: MeRequest): Promise<MeResponse>;
8
+ AreaIndex(request: AreaIndexRequest): Promise<AreaIndexResponse>;
9
+ }
10
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpG,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6C;IACvE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;gBAE1B,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;IAcjE,OAAO,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC;IAoBhD,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAwBxE"}
package/dist/api.js ADDED
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiService = void 0;
4
+ const api_1 = require("./fatehan/services/api");
5
+ class ApiService {
6
+ constructor(url, authorization, organizationId) {
7
+ this.namespace = "com.fatehan.services.ApiService";
8
+ this.url = url;
9
+ this.headers = {
10
+ "Content-Type": "application/octet-stream",
11
+ Accept: "application/octet-stream",
12
+ };
13
+ if (authorization) {
14
+ this.headers["Authorization"] = "Bearer " + authorization;
15
+ }
16
+ if (organizationId) {
17
+ this.headers["Organization-Id"] = organizationId;
18
+ }
19
+ }
20
+ MeIndex(request) {
21
+ return new Promise(async (resolve, reject) => {
22
+ const response = await fetch(`${this.url}/${this.namespace}/MeIndex`, {
23
+ method: "POST",
24
+ headers: this.headers,
25
+ body: new Uint8Array(api_1.MeRequest.encode(request).finish()),
26
+ });
27
+ if (response.ok) {
28
+ resolve(api_1.MeResponse.decode(new Uint8Array(await response.arrayBuffer())));
29
+ }
30
+ else {
31
+ reject(await response.text());
32
+ }
33
+ });
34
+ }
35
+ AreaIndex(request) {
36
+ return new Promise(async (resolve, reject) => {
37
+ const response = await fetch(`${this.url}/${this.namespace}/AreaIndex`, {
38
+ method: "POST",
39
+ headers: this.headers,
40
+ body: new Uint8Array(api_1.AreaIndexRequest.encode(request).finish()),
41
+ });
42
+ if (response.ok) {
43
+ resolve(api_1.AreaIndexResponse.decode(new Uint8Array(await response.arrayBuffer())));
44
+ }
45
+ else {
46
+ reject(await response.text());
47
+ }
48
+ });
49
+ }
50
+ }
51
+ exports.ApiService = ApiService;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=api.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../src/api.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const vitest_1 = require("vitest");
7
+ const api_1 = require("./api");
8
+ const long_1 = __importDefault(require("long"));
9
+ (0, vitest_1.describe)("ApiService", () => {
10
+ let url = "https://beta.myavl.ir/gapi";
11
+ let token = "31|SFKSJVSvIONIfsrEl6507EM0sCKgJj9iBbeQnv3m97ceea15";
12
+ let organization = "1000001";
13
+ let c = new api_1.ApiService(url, token, organization);
14
+ (0, vitest_1.it)("MeIndex", async () => {
15
+ let res = await c.MeIndex({
16
+ deviceId: long_1.default.fromInt(119926),
17
+ });
18
+ console.log("MeIndex", res);
19
+ });
20
+ });
@@ -1,64 +1,25 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import Long from "long";
3
+ import { Device } from "../devices/devices";
4
+ import { Currency } from "../financial/financial";
5
+ import { Organization, Permission, Person, User } from "../identities/identities";
6
+ import { AlertModel, UserDeviceAlert } from "../notifies/notify";
3
7
  export declare const protobufPackage = "com.fatehan.apis";
4
8
  export interface MessageOnly {
5
9
  message: string;
6
10
  }
7
- export interface User {
8
- id: Long;
9
- email?: string | undefined;
10
- telegramId?: string | undefined;
11
- phone: string;
12
- status: number;
13
- createdBy?: Long | undefined;
14
- updatedBy?: Long | undefined;
15
- createdAt?: Date | undefined;
16
- updatedAt?: Date | undefined;
17
- persons: Person[];
18
- token?: string | undefined;
19
- }
20
- export interface Person {
21
- id: Long;
22
- type: number;
23
- organizationId: Long;
24
- roleId: Long;
25
- userId: Long;
26
- partnerId: Long;
27
- createdBy: Long;
28
- updatedBy: Long;
29
- isComplete: number;
30
- name?: string | undefined;
31
- image?: string | undefined;
32
- nationalId?: string | undefined;
33
- economicalId?: string | undefined;
34
- identificationNumber?: string | undefined;
35
- postalCode?: string | undefined;
36
- address?: string | undefined;
37
- birthDate?: Date | undefined;
38
- contactMobile?: string | undefined;
39
- contactPhone?: string | undefined;
40
- createdAt?: Date | undefined;
41
- updatedAt?: Date | undefined;
42
- organization?: Organization | undefined;
43
- wallet?: Wallet | undefined;
44
- }
45
- export interface Organization {
46
- id: Long;
47
- name: string;
48
- number?: string | undefined;
49
- picture?: string | undefined;
50
- status: boolean;
51
- isPartner: boolean;
52
- metadata: string[];
53
- domains: string[];
54
- generation: string;
55
- parentId?: Long | undefined;
56
- level: number;
57
- ownerId?: Long | undefined;
58
- createdBy: Long;
59
- deletedAt?: Date | undefined;
60
- createdAt?: Date | undefined;
61
- updatedAt?: Date | undefined;
11
+ export interface UserPagination {
12
+ currentPage: number;
13
+ firstPageUrl: string;
14
+ lastPageUrl: string;
15
+ nextPageUrl: string;
16
+ prevPageUrl: string;
17
+ path: string;
18
+ from: number;
19
+ lastPage: number;
20
+ perPage: number;
21
+ to: number;
22
+ data: User[];
62
23
  }
63
24
  export interface VersionCheck {
64
25
  status: boolean;
@@ -68,15 +29,6 @@ export interface VersionCheck {
68
29
  partnerVersion: string;
69
30
  userVersion: string;
70
31
  }
71
- export interface Wallet {
72
- id: Long;
73
- userId?: Long | undefined;
74
- organizationId: Long;
75
- currencyId: number;
76
- remaining: string;
77
- createdAt?: Date | undefined;
78
- updatedAt?: Date | undefined;
79
- }
80
32
  export interface Me {
81
33
  user?: User | undefined;
82
34
  person: Person[];
@@ -85,257 +37,252 @@ export interface Me {
85
37
  device?: Device | undefined;
86
38
  deviceCount?: number | undefined;
87
39
  }
88
- export interface Currency {
89
- id: Long;
90
- name: string;
91
- code: string;
92
- leftSign: string;
93
- rightSign?: string | undefined;
94
- default: number;
95
- ratioToDefault: number;
96
- createdAt?: Date | undefined;
97
- updatedAt?: Date | undefined;
98
- }
99
- export interface Permission {
100
- id: Long;
101
- name: string;
40
+ export interface DevicePagination {
41
+ currentPage: number;
42
+ firstPageUrl: string;
43
+ lastPageUrl: string;
44
+ nextPageUrl: string;
45
+ prevPageUrl: string;
46
+ path: string;
47
+ from: number;
48
+ lastPage: number;
49
+ perPage: number;
50
+ to: number;
51
+ data: Device[];
102
52
  }
103
- export interface UserDeviceIO {
104
- id: Long;
105
- deviceId: Long;
106
- unit: string;
107
- type: number;
108
- name: string;
109
- additional?: Additional | undefined;
110
- formula: string;
53
+ export interface Config {
54
+ id: number;
111
55
  organizationId: Long;
112
- createdBy: Long;
56
+ createdBy?: Long | undefined;
113
57
  updatedBy?: Long | undefined;
58
+ key: string;
59
+ value: string;
114
60
  createdAt?: Date | undefined;
115
61
  updatedAt?: Date | undefined;
116
62
  }
117
- export interface Additional {
118
- picture?: string | undefined;
119
- textTrue?: string | undefined;
120
- textFalse?: string | undefined;
63
+ export interface ConfigList {
64
+ configs: Config[];
121
65
  }
122
- export interface Driver {
123
- id: Long;
124
- organizationId: Long;
125
- createdBy: Long;
126
- updatedBy?: Long | undefined;
127
- carId: Long;
128
- driverId: Long;
129
- driverType: number;
130
- fromDate: string;
131
- toDate?: string | undefined;
132
- createdAt?: Date | undefined;
133
- updatedAt?: Date | undefined;
134
- driver?: Driver_Info | undefined;
66
+ export interface TransactionPagination {
67
+ currentPage: number;
68
+ firstPageUrl: string;
69
+ lastPageUrl: string;
70
+ nextPageUrl: string;
71
+ prevPageUrl: string;
72
+ path: string;
73
+ from: number;
74
+ lastPage: number;
75
+ perPage: number;
76
+ to: number;
77
+ data: Transaction[];
135
78
  }
136
- export interface Driver_Info {
79
+ export interface Transaction {
137
80
  id: Long;
138
81
  organizationId: Long;
139
- createdBy: Long;
82
+ fromUserId?: Long | undefined;
83
+ createdBy?: Long | undefined;
140
84
  updatedBy?: Long | undefined;
141
- personId: Long;
142
- driverIdentify: string;
143
- licenseNumber?: string | undefined;
144
- hiringDate?: string | undefined;
145
- monthlySalary: number;
146
- licenseType: number;
147
- licenseExpire?: string | undefined;
148
- commissionPercentage?: number | undefined;
149
- status: number;
150
- mobileNumber?: string | undefined;
151
- phoneNumber?: string | undefined;
152
- address?: string | undefined;
153
- postalCode?: string | undefined;
154
- createdAt?: Date | undefined;
155
- updatedAt?: Date | undefined;
156
- person?: Person | undefined;
157
- }
158
- export interface Device {
159
- id: Long;
160
- organizationId: Long;
161
- partnerId: Long;
162
- generation?: Long | undefined;
163
- deviceId: string;
164
- objectId: Long;
165
- objectType: string;
166
- trackerId: Long;
167
- ownerId: Long;
168
- warehouseId?: Long | undefined;
169
- createdBy: Long;
170
- simCard?: string | undefined;
171
- simProvider?: Long | undefined;
172
- idChanged: Long;
173
- iccId?: string | undefined;
174
- smsUsername?: string | undefined;
175
- smsPassword?: string | undefined;
176
- configPassword?: string | undefined;
177
- test?: Long | undefined;
178
- simCardId?: string | undefined;
179
- timezone: string;
180
- isUnlimited: Long;
181
- tripType?: string | undefined;
182
- receiveAt?: Date | undefined;
183
- expiresAt?: Date | undefined;
184
- connectAt?: Date | undefined;
85
+ transactionReason?: string | undefined;
86
+ picture?: string | undefined;
87
+ description?: string | undefined;
88
+ fromCurrencyId: Long;
89
+ toCurrencyId: Long;
90
+ price: string;
91
+ type: string;
185
92
  createdAt?: Date | undefined;
186
93
  updatedAt?: Date | undefined;
187
- iconId: Long;
188
- active: boolean;
189
- icon?: Icon | undefined;
190
- tracker?: Tracker | undefined;
191
- car?: Car | undefined;
192
- drivers: Driver[];
94
+ currency?: Currency | undefined;
95
+ organization?: Organization | undefined;
193
96
  }
194
- export interface Icon {
97
+ export interface PaymentGateway {
195
98
  id: Long;
196
99
  organizationId: Long;
197
- createdBy: Long;
198
- updatedBy: Long;
199
- iconType: Long;
200
- imageType: Long;
100
+ createdBy?: Long | undefined;
101
+ updatedBy?: Long | undefined;
102
+ gateway: string;
201
103
  name: string;
202
- images?: Icon_Image | undefined;
203
- isDefault: Long;
104
+ default: boolean;
105
+ status: boolean;
106
+ config: Config[];
204
107
  createdAt?: Date | undefined;
205
108
  updatedAt?: Date | undefined;
206
- fullImages?: Icon_Image | undefined;
207
109
  }
208
- export interface Icon_Image {
209
- imgCelo?: string | undefined;
210
- imgMove?: string | undefined;
211
- imgStop?: string | undefined;
212
- imgTowing?: string | undefined;
213
- imgTimeout?: string | undefined;
110
+ export interface Partner {
111
+ id: Long;
112
+ name?: string | undefined;
113
+ domains: string[];
214
114
  }
215
- export interface Tracker {
115
+ export interface ProductType {
216
116
  id: Long;
217
117
  name?: string | undefined;
118
+ description?: string | undefined;
119
+ months?: number | undefined;
120
+ keyType: string;
218
121
  picture?: string | undefined;
219
- metadata?: Tracker_Metadata | undefined;
220
- generation?: string | undefined;
221
- level?: Long | undefined;
222
- parentId?: Long | undefined;
223
122
  createdBy?: Long | undefined;
123
+ updatedBy?: Long | undefined;
224
124
  createdAt?: Date | undefined;
225
125
  updatedAt?: Date | undefined;
226
- documents: Tracker_Document[];
227
126
  }
228
- export interface Tracker_Metadata {
229
- port?: string | undefined;
230
- tags?: string | undefined;
231
- type?: string | undefined;
232
- idType?: string | undefined;
233
- idStart?: string | undefined;
234
- odoType?: string | undefined;
235
- callType?: string | undefined;
236
- idLength?: string | undefined;
237
- sendType?: string | undefined;
238
- analogInput?: Long | undefined;
239
- smsPassword?: string | undefined;
240
- smsUsername?: string | undefined;
241
- digitalInput?: Long | undefined;
242
- digitalOutput?: Long | undefined;
243
- movementSensor?: boolean | undefined;
244
- smsCredentials?: Tracker_Metadata_SmsCredentials | undefined;
245
- deviceConfigCommands?: string | undefined;
127
+ export interface OrderPagination {
128
+ currentPage: number;
129
+ firstPageUrl: string;
130
+ lastPageUrl: string;
131
+ nextPageUrl: string;
132
+ prevPageUrl: string;
133
+ path: string;
134
+ from: number;
135
+ lastPage: number;
136
+ perPage: number;
137
+ to: number;
138
+ data: Order[];
246
139
  }
247
- export interface Tracker_Metadata_SmsCredentials {
248
- password?: string | undefined;
249
- username?: string | undefined;
250
- }
251
- export interface Tracker_Document {
252
- objectId?: Long | undefined;
253
- createdBy?: Long | undefined;
254
- organizationId?: Long | undefined;
255
- url?: string | undefined;
256
- visibility?: string | undefined;
257
- objectType?: string | undefined;
258
- }
259
- export interface Car {
140
+ export interface Order {
260
141
  id: Long;
142
+ uuid: string;
261
143
  organizationId: Long;
262
144
  createdBy?: Long | undefined;
263
- updatedBy?: Long | undefined;
264
- name: string;
265
- picture?: string | undefined;
266
- plateNumber?: string | undefined;
267
- carGroupId?: Long | undefined;
268
- carType?: Long | undefined;
269
- code?: string | undefined;
270
- tonnage?: number | undefined;
271
- maxSpeed?: number | undefined;
272
- vin?: string | undefined;
273
- engineNumber?: string | undefined;
274
- chassisNumber?: string | undefined;
275
- modelYear?: number | undefined;
276
- fuelUsage?: number | undefined;
277
- fuelUsagePerHour?: number | undefined;
278
- fuelType?: string | undefined;
279
- fuelCapacity?: number | undefined;
280
- description?: string | undefined;
281
- guarantyExpirationDate?: Date | undefined;
282
- guarantyExpirationKm?: Long | undefined;
283
- color?: string | undefined;
145
+ paymentGatewayId?: Long | undefined;
146
+ currencyId?: Long | undefined;
147
+ partnerId?: Long | undefined;
148
+ totalPrice: number;
149
+ tax: number;
150
+ taxPercent: number;
151
+ discount: number;
152
+ subtotal: number;
153
+ paymentUrl?: string | undefined;
154
+ transactionId?: string | undefined;
155
+ refId?: string | undefined;
156
+ paidAt?: Date | undefined;
157
+ months?: number | undefined;
158
+ status: string;
284
159
  createdAt?: Date | undefined;
285
160
  updatedAt?: Date | undefined;
286
- model?: Car_Model | undefined;
161
+ products: OrderProduct[];
162
+ partner?: Partner | undefined;
163
+ paymentGateway?: PaymentGateway | undefined;
164
+ currency?: Currency | undefined;
165
+ person?: Person | undefined;
287
166
  }
288
- export interface Car_Model {
167
+ export interface OrderProduct {
289
168
  id: Long;
290
- carBrandId: Long;
291
- name: string;
292
- picture?: string | undefined;
293
- description?: string | undefined;
294
- sord?: number | undefined;
295
- isActive: boolean;
296
- createdBy?: Long | undefined;
297
- updatedBy?: Long | undefined;
298
- metadata?: string | undefined;
169
+ orderId?: Long | undefined;
170
+ productId?: Long | undefined;
171
+ productType: string;
172
+ productName: string;
173
+ productDetail: string;
174
+ currencyId?: Long | undefined;
175
+ discountPercent?: number | undefined;
176
+ taxPrice: number;
177
+ discount: number;
178
+ price: number;
179
+ months?: number | undefined;
299
180
  createdAt?: Date | undefined;
300
181
  updatedAt?: Date | undefined;
301
- carBrand?: Car_Brand | undefined;
182
+ product?: Product | undefined;
302
183
  }
303
- export interface Car_Brand {
184
+ export interface Product {
304
185
  id: Long;
305
- carCategoryId: Long;
186
+ organizationId?: Long | undefined;
187
+ productTypeId?: Long | undefined;
188
+ createdBy?: Long | undefined;
189
+ updatedBy?: Long | undefined;
306
190
  name: string;
191
+ displayName?: string | undefined;
307
192
  description?: string | undefined;
193
+ properties?: string | undefined;
308
194
  picture?: string | undefined;
309
- sord?: number | undefined;
310
- isActive?: boolean | undefined;
311
- createdBy?: Long | undefined;
312
- updatedBy?: Long | undefined;
195
+ slug?: string | undefined;
196
+ uuid?: string | undefined;
197
+ objectType?: string | undefined;
198
+ objectId?: Long | undefined;
199
+ currencyId: Long;
200
+ price: Long;
201
+ createdAt?: Date | undefined;
202
+ updatedAt?: Date | undefined;
203
+ components: Product[];
204
+ currency?: Currency | undefined;
205
+ productType?: ProductType | undefined;
206
+ }
207
+ export interface Channel {
208
+ name: string;
209
+ count: Long;
210
+ }
211
+ export interface Statistics {
212
+ total: Long;
213
+ read: Long;
214
+ unread: Long;
215
+ channelsUsed: Channel[];
216
+ }
217
+ export interface TopRepeatedNotification {
218
+ title: string;
219
+ count: Long;
220
+ }
221
+ export interface NotificationFull {
222
+ uuid: string;
223
+ userId: Long;
224
+ objectId?: Long | undefined;
225
+ objectType?: string | undefined;
226
+ title: string;
227
+ body?: string | undefined;
228
+ alertId?: Long | undefined;
229
+ userAlertId?: Long | undefined;
230
+ alert: number;
231
+ via: number[];
232
+ image?: string | undefined;
233
+ sound?: Long | undefined;
234
+ readAt?: Date | undefined;
313
235
  createdAt?: Date | undefined;
314
236
  updatedAt?: Date | undefined;
237
+ alertModel?: AlertModel | undefined;
238
+ userAlert?: UserDeviceAlert | undefined;
239
+ data?: NotificationFull_RawData | undefined;
240
+ channels: Channel[];
241
+ }
242
+ export interface NotificationFull_RawData {
243
+ latitude?: number | undefined;
244
+ longitude?: number | undefined;
245
+ areaId?: Long | undefined;
246
+ areaName?: string | undefined;
247
+ deviceId?: Long | undefined;
248
+ alertValue?: Long | undefined;
249
+ gpsTime?: Date | undefined;
250
+ }
251
+ export interface NotificationPagination {
252
+ currentPage: number;
253
+ firstPageUrl: string;
254
+ lastPageUrl: string;
255
+ nextPageUrl: string;
256
+ prevPageUrl: string;
257
+ path: string;
258
+ from: number;
259
+ lastPage: number;
260
+ perPage: number;
261
+ to: number;
262
+ data: NotificationFull[];
315
263
  }
316
264
  export declare const MessageOnly: MessageFns<MessageOnly>;
317
- export declare const User: MessageFns<User>;
318
- export declare const Person: MessageFns<Person>;
319
- export declare const Organization: MessageFns<Organization>;
265
+ export declare const UserPagination: MessageFns<UserPagination>;
320
266
  export declare const VersionCheck: MessageFns<VersionCheck>;
321
- export declare const Wallet: MessageFns<Wallet>;
322
267
  export declare const Me: MessageFns<Me>;
323
- export declare const Currency: MessageFns<Currency>;
324
- export declare const Permission: MessageFns<Permission>;
325
- export declare const UserDeviceIO: MessageFns<UserDeviceIO>;
326
- export declare const Additional: MessageFns<Additional>;
327
- export declare const Driver: MessageFns<Driver>;
328
- export declare const Driver_Info: MessageFns<Driver_Info>;
329
- export declare const Device: MessageFns<Device>;
330
- export declare const Icon: MessageFns<Icon>;
331
- export declare const Icon_Image: MessageFns<Icon_Image>;
332
- export declare const Tracker: MessageFns<Tracker>;
333
- export declare const Tracker_Metadata: MessageFns<Tracker_Metadata>;
334
- export declare const Tracker_Metadata_SmsCredentials: MessageFns<Tracker_Metadata_SmsCredentials>;
335
- export declare const Tracker_Document: MessageFns<Tracker_Document>;
336
- export declare const Car: MessageFns<Car>;
337
- export declare const Car_Model: MessageFns<Car_Model>;
338
- export declare const Car_Brand: MessageFns<Car_Brand>;
268
+ export declare const DevicePagination: MessageFns<DevicePagination>;
269
+ export declare const Config: MessageFns<Config>;
270
+ export declare const ConfigList: MessageFns<ConfigList>;
271
+ export declare const TransactionPagination: MessageFns<TransactionPagination>;
272
+ export declare const Transaction: MessageFns<Transaction>;
273
+ export declare const PaymentGateway: MessageFns<PaymentGateway>;
274
+ export declare const Partner: MessageFns<Partner>;
275
+ export declare const ProductType: MessageFns<ProductType>;
276
+ export declare const OrderPagination: MessageFns<OrderPagination>;
277
+ export declare const Order: MessageFns<Order>;
278
+ export declare const OrderProduct: MessageFns<OrderProduct>;
279
+ export declare const Product: MessageFns<Product>;
280
+ export declare const Channel: MessageFns<Channel>;
281
+ export declare const Statistics: MessageFns<Statistics>;
282
+ export declare const TopRepeatedNotification: MessageFns<TopRepeatedNotification>;
283
+ export declare const NotificationFull: MessageFns<NotificationFull>;
284
+ export declare const NotificationFull_RawData: MessageFns<NotificationFull_RawData>;
285
+ export declare const NotificationPagination: MessageFns<NotificationPagination>;
339
286
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
340
287
  export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
341
288
  [K in keyof T]?: DeepPartial<T[K]>;