@unsource/ui 2.8.7 → 2.8.10

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 (62) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +24 -9
  3. package/dist/runtime/assets/main.css +1 -1
  4. package/dist/runtime/components/UnAuth.d.vue.ts +2 -2
  5. package/dist/runtime/components/UnAuth.vue +2 -2
  6. package/dist/runtime/components/UnAuth.vue.d.ts +2 -2
  7. package/dist/runtime/components/UnCard.d.vue.ts +16 -14
  8. package/dist/runtime/components/UnCard.vue +26 -2
  9. package/dist/runtime/components/UnCard.vue.d.ts +16 -14
  10. package/dist/runtime/components/UnCheckboxItem.d.vue.ts +1 -5
  11. package/dist/runtime/components/UnCheckboxItem.vue +4 -5
  12. package/dist/runtime/components/UnCheckboxItem.vue.d.ts +1 -5
  13. package/dist/runtime/components/UnCollapsible.d.vue.ts +2 -2
  14. package/dist/runtime/components/UnCollapsible.vue.d.ts +2 -2
  15. package/dist/runtime/components/UnFormItem.vue +1 -1
  16. package/dist/runtime/components/UnIRDatePicker.d.vue.ts +1 -1
  17. package/dist/runtime/components/UnIRDatePicker.vue +1 -2
  18. package/dist/runtime/components/UnIRDatePicker.vue.d.ts +1 -1
  19. package/dist/runtime/components/UnLabel.d.vue.ts +13 -13
  20. package/dist/runtime/components/UnLabel.vue +5 -5
  21. package/dist/runtime/components/UnLabel.vue.d.ts +13 -13
  22. package/dist/runtime/components/UnMap.vue +1 -1
  23. package/dist/runtime/components/UnMobileHeader.vue +0 -1
  24. package/dist/runtime/components/UnModal.vue +1 -1
  25. package/dist/runtime/components/UnMultiUploader.vue +0 -1
  26. package/dist/runtime/components/UnNavbar.vue +1 -1
  27. package/dist/runtime/components/UnNormalInput.d.vue.ts +1 -21
  28. package/dist/runtime/components/UnNormalInput.vue.d.ts +1 -21
  29. package/dist/runtime/components/UnNumberInput.vue +0 -1
  30. package/dist/runtime/components/UnNuxtIcon.d.vue.ts +0 -1
  31. package/dist/runtime/components/UnNuxtIcon.vue +1 -3
  32. package/dist/runtime/components/UnNuxtIcon.vue.d.ts +0 -1
  33. package/dist/runtime/components/UnProfile.d.vue.ts +2 -2
  34. package/dist/runtime/components/UnProfile.vue.d.ts +2 -2
  35. package/dist/runtime/components/UnRadioItem.d.vue.ts +1 -0
  36. package/dist/runtime/components/UnRadioItem.vue +8 -7
  37. package/dist/runtime/components/UnRadioItem.vue.d.ts +1 -0
  38. package/dist/runtime/components/UnSelect.d.vue.ts +0 -2
  39. package/dist/runtime/components/UnSelect.vue +2 -4
  40. package/dist/runtime/components/UnSelect.vue.d.ts +0 -2
  41. package/dist/runtime/components/UnSwiperControl.vue +0 -4
  42. package/dist/runtime/components/UnSwiperSlider.d.vue.ts +2 -2
  43. package/dist/runtime/components/UnSwiperSlider.vue.d.ts +2 -2
  44. package/dist/runtime/components/UnTransaction.vue +1 -0
  45. package/dist/runtime/components/UnUploadFile.d.vue.ts +2 -2
  46. package/dist/runtime/components/UnUploadFile.vue +1 -1
  47. package/dist/runtime/components/UnUploadFile.vue.d.ts +2 -2
  48. package/dist/runtime/components/UnWallet.vue +1 -0
  49. package/dist/runtime/composables/fetch.d.ts +38 -17
  50. package/dist/runtime/composables/fetch.js +20 -11
  51. package/dist/runtime/composables/global.d.ts +26 -24
  52. package/dist/runtime/composables/global.js +15 -33
  53. package/dist/runtime/composables/reuseable.d.ts +3 -16
  54. package/dist/runtime/composables/reuseable.js +7 -24
  55. package/dist/runtime/composables/services.js +3 -2
  56. package/dist/runtime/plugins/floating.client.d.ts +3 -0
  57. package/dist/runtime/plugins/floating.client.js +6 -0
  58. package/dist/runtime/plugins/toast.client.d.ts +14 -14
  59. package/dist/runtime/types/models.d.ts +476 -402
  60. package/package.json +8 -7
  61. package/dist/runtime/uno.config.d.ts +0 -2
  62. package/dist/runtime/uno.config.js +0 -60
@@ -1,42 +1,3 @@
1
- export interface Book {
2
- user?: User;
3
- profile?: Profile;
4
- provider?: Provider;
5
- place?: Place;
6
- bookingSetting?: BookingSetting;
7
- bookingService?: BookingService;
8
- holiday?: Holiday;
9
- serviceSetting?: ServiceSetting;
10
- booking?: Booking;
11
- comment?: Comment;
12
- discountCode?: DiscountCode;
13
- transaction?: Transaction;
14
- banner?: Banner;
15
- slider?: Slider;
16
- section?: Section;
17
- input?: Input;
18
- inputOption?: InputOption;
19
- form?: Form;
20
- policy?: Policy;
21
- setting?: Setting;
22
- appSetting?: AppSetting;
23
- contactUs?: ContactUs;
24
- question?: Question;
25
- wallet?: Wallet;
26
- gateway?: Gateway;
27
- coin?: Coin;
28
- coinGateway?: CoinGateway;
29
- role?: Role;
30
- otp?: Otp;
31
- file?: File;
32
- bookmark?: Bookmark;
33
- lang?: Lang;
34
- tableTemplate?: TableTemplate;
35
- systemAlarm?: SystemAlarm;
36
- subRequest?: SubRequest;
37
- appConfig?: AppConfig;
38
- log?: Log;
39
- }
40
1
  export interface User {
41
2
  id?: string;
42
3
  email?: string | null;
@@ -46,30 +7,29 @@ export interface User {
46
7
  inviteCode?: string | null;
47
8
  rememberMeToken?: string | null;
48
9
  supervisorCode?: string | null;
49
- type?: "USER" | "ADMIN" | "COURIER" | null;
50
- authStatus?: "PENDING" | "AUTHORIZED" | "REJECTED" | null;
10
+ tags?: string[] | object;
11
+ type?: 'USER' | 'ADMIN' | 'COURIER' | null;
12
+ authStatus?: 'PENDING' | 'AUTHORIZED' | 'REJECTED' | null;
51
13
  isBlocked?: boolean | null;
52
14
  createdAt?: string;
53
15
  updatedAt?: string | null;
54
- OTPs?: Otp[];
55
- invitedUsers?: User[];
16
+ OTPs?: Otp[] | object;
17
+ invitedUsers?: User[] | object;
56
18
  supervisor?: User | null;
57
19
  profile?: Profile | null;
58
20
  role?: Role | null;
59
21
  roleId?: string | null;
60
- discountCodes?: DiscountCode[];
61
- transactions?: Transaction[];
62
- wallets?: Wallet[];
63
- bookmarks?: Bookmark[];
64
- comments?: Comment[];
65
- providers?: Provider[];
66
- bookings?: Booking[];
67
- places?: Place[];
22
+ roleName?: string | null;
23
+ wallets?: Wallet[] | object;
24
+ addresses?: Address[] | object;
25
+ discountCodes?: DiscountCode[] | object;
26
+ transactions?: Transaction[] | object;
27
+ giftCards?: GiftCard[] | object;
68
28
  }
69
29
  export interface Otp {
70
30
  id?: string;
71
31
  userId: string;
72
- type: "EMAIL" | "PHONE";
32
+ type: 'EMAIL' | 'PHONE';
73
33
  value: string;
74
34
  createdAt?: string | null;
75
35
  updatedAt?: string | null;
@@ -81,8 +41,11 @@ export interface Profile {
81
41
  firstName?: string | null;
82
42
  lastName?: string | null;
83
43
  idCard?: string | null;
84
- lat?: number | {} | null;
85
- lng?: number | {} | null;
44
+ card?: string | null;
45
+ iban?: string | null;
46
+ birthday?: string | null;
47
+ lat?: number | object | null;
48
+ lng?: number | object | null;
86
49
  user?: User;
87
50
  createdAt?: string | null;
88
51
  updatedAt?: string | null;
@@ -94,34 +57,386 @@ export interface Role {
94
57
  label?: string | null;
95
58
  color?: string | null;
96
59
  icon?: string | null;
97
- privileges?: Privilege[];
98
- user?: User[];
60
+ privileges?: Privilege[] | object;
61
+ user?: User[] | object;
62
+ dashboardTemplates?: DashboardTemplate[] | object;
63
+ createdAt?: string | null;
64
+ updatedAt?: string | null;
99
65
  }
100
66
  export interface Privilege {
101
67
  model: string;
102
68
  func: string;
103
- schema?: number | string | boolean | {} | unknown[] | null;
69
+ schema?: number | string | boolean | object | unknown[] | null;
70
+ details?: number | string | boolean | object | unknown[] | null;
71
+ }
72
+ export interface DashboardTemplate {
73
+ id?: string;
74
+ title: string;
75
+ role?: Role;
76
+ layout?: number | string | boolean | object | unknown[] | null;
77
+ chartIds: string[] | object;
78
+ listIds: string[] | object;
79
+ createdAt?: string | null;
80
+ updatedAt?: string | null;
81
+ roleName: string;
82
+ }
83
+ export interface Wallet {
84
+ id?: string;
85
+ balance?: number | object | null;
86
+ blocked?: number | object | null;
87
+ address?: string | null;
88
+ userId: string;
89
+ coinId: string;
90
+ createdAt?: string | null;
91
+ updatedAt?: string | null;
92
+ user?: User;
93
+ coin?: Coin;
94
+ transactions?: Transaction[] | object;
95
+ toTransactions?: Transaction[] | object;
96
+ }
97
+ export interface Coin {
98
+ id?: string;
99
+ name: string;
100
+ key?: string | null;
101
+ unit?: string | null;
102
+ icon?: string | null;
103
+ color?: string | null;
104
+ price?: number | object | null;
105
+ sellPrice?: number | object | null;
106
+ buyFeePercent?: number | object | null;
107
+ sellFeePercent?: number | object | null;
108
+ buyFee?: number | object | null;
109
+ sellFee?: number | object | null;
110
+ minWithdraw?: number | object | null;
111
+ withdrawStep?: number | object | null;
112
+ precision?: number | object | null;
113
+ walletable?: boolean | null;
114
+ depositable?: boolean | null;
115
+ withdrawable?: boolean | null;
116
+ transferable?: boolean | null;
117
+ active?: boolean | null;
118
+ isFiat?: boolean | null;
119
+ platforms?: string[] | object;
120
+ categories?: string[] | object;
121
+ expiredAt?: string | null;
122
+ createdAt?: string | null;
123
+ updatedAt?: string | null;
124
+ gateways?: CoinGateway[] | object;
125
+ wallets?: Wallet[] | object;
126
+ giftCards?: GiftCard[] | object;
127
+ }
128
+ export interface CoinGateway {
129
+ id?: string;
130
+ decimal?: number | null;
131
+ identity?: string | null;
132
+ withdrawFee?: string | null;
133
+ minWithdraw?: string | null;
134
+ active?: boolean | null;
135
+ gateway?: Gateway;
136
+ coin?: Coin;
137
+ createdAt?: string | null;
138
+ updatedAt?: string | null;
139
+ gatewayId: string;
140
+ coinId: string;
141
+ Transaction?: Transaction[] | object;
142
+ }
143
+ export interface Gateway {
144
+ id?: string;
145
+ name: string;
146
+ type?: 'zarinpal' | 'zarinpalApi' | 'behpardakht' | 'idpay' | 'nextpay' | 'nextpayApi' | 'parsian' | 'pasargad' | 'payir' | 'payping' | 'sadad' | 'saman' | 'zibal' | 'payfa' | 'vandar' | 'novin' | null;
147
+ label?: string | null;
148
+ address?: string | null;
149
+ iban?: string | null;
150
+ icon?: string | null;
151
+ color?: string | null;
152
+ keys?: string[] | object;
153
+ params?: number | string | boolean | object | unknown[] | null;
154
+ checkUrl?: string | null;
155
+ payable?: boolean | null;
156
+ active?: boolean | null;
157
+ details?: number | string | boolean | object | unknown[] | null;
158
+ createdAt?: string | null;
159
+ updatedAt?: string | null;
160
+ coins?: CoinGateway[] | object;
161
+ }
162
+ export interface Transaction {
163
+ id?: string;
164
+ paymentId?: string | null;
165
+ amount: number | object;
166
+ type: 'WITHDRAW' | 'DEPOSIT' | 'PAYMENT' | 'TRANSFER';
167
+ paymentSource?: 'WALLET' | 'GATEWAY' | null;
168
+ status?: 'PENDING' | 'ACTIVE' | 'ACCEPTED' | 'SUCCESS' | 'FAILED' | 'REJECTED' | 'DEACTIVE' | 'SETTLED' | null;
169
+ txId?: string | null;
170
+ paymentUrl?: string | null;
171
+ redirectUrl?: string | null;
172
+ target?: string | null;
173
+ targetDetails?: number | string | boolean | object | unknown[] | null;
174
+ discountAmount?: number | object | null;
175
+ commission?: number | object | null;
176
+ settleAmount?: string | null;
177
+ settleId?: string | null;
178
+ settleBank?: string | null;
179
+ settledAt?: string | null;
180
+ sourceAccount?: string | null;
181
+ avatar?: string | null;
182
+ title?: string | null;
183
+ description?: string | null;
184
+ platform?: 'PARAND' | 'STORE' | 'DOCTOR' | 'BOOK' | 'GOLD' | 'CORE' | null;
185
+ gateway?: CoinGateway | null;
186
+ wallet?: Wallet | null;
187
+ toWallet?: Wallet | null;
188
+ user?: User | null;
189
+ discount?: DiscountCode | null;
190
+ createdAt?: string | null;
191
+ updatedAt?: string | null;
192
+ userId?: string | null;
193
+ gatewayId?: string | null;
194
+ discountCode?: string | null;
195
+ foodOrderId?: string | null;
196
+ storeOrderId?: string | null;
197
+ bookingId?: string | null;
198
+ doctorBookingId?: string | null;
199
+ walletId?: string | null;
200
+ toWalletId?: string | null;
104
201
  }
105
202
  export interface DiscountCode {
106
203
  id?: string;
107
204
  code: string;
108
- percent: number | {};
109
- minPrice?: number | {} | null;
110
- maxPrice?: number | {} | null;
111
- allTimes?: number | {} | null;
112
- perUserTimes?: number | {} | null;
205
+ percent: number | object;
206
+ minPrice?: number | object | null;
207
+ maxPrice?: number | object | null;
208
+ allTimes?: number | null;
209
+ perUserTimes?: number | null;
113
210
  user?: User | null;
114
- category?: InputOption | null;
115
211
  expiredAt?: string | null;
116
212
  createdAt?: string | null;
117
213
  updatedAt?: string | null;
118
214
  userId?: string | null;
119
215
  categoryKey?: string | null;
120
- transactions?: Transaction[];
216
+ appCode?: string | null;
217
+ transactions?: Transaction[] | object;
218
+ }
219
+ export interface GiftCard {
220
+ id?: string;
221
+ code: string;
222
+ amount: number | object;
223
+ coin?: Coin;
224
+ user?: User | null;
225
+ status?: 'PENDING' | 'ACTIVE' | 'ACCEPTED' | 'SUCCESS' | 'FAILED' | 'REJECTED' | 'DEACTIVE' | 'SETTLED' | null;
226
+ createdAt?: string | null;
227
+ updatedAt?: string | null;
228
+ coinId: string;
229
+ userId?: string | null;
230
+ }
231
+ export interface Address {
232
+ id?: string;
233
+ key?: number | null;
234
+ title?: string | null;
235
+ location?: Location;
236
+ address: string;
237
+ description?: string | null;
238
+ phoneNumber?: string | null;
239
+ user?: User | null;
240
+ createdAt?: string | null;
241
+ updatedAt?: string | null;
242
+ userId?: string | null;
243
+ areaKey?: string | null;
244
+ cityKey?: string | null;
245
+ }
246
+ export interface Location {
247
+ lat: number | object;
248
+ lng: number | object;
249
+ exact?: boolean | null;
250
+ }
251
+ export interface Module {
252
+ id?: string;
253
+ title?: string | null;
254
+ icon?: string | null;
255
+ link: string;
256
+ priority: number | object;
257
+ side?: 'USER' | 'PROVIDER' | 'COLLEAGUE' | null;
258
+ class?: string | null;
259
+ status?: 'PENDING' | 'ACTIVE' | 'ACCEPTED' | 'SUCCESS' | 'FAILED' | 'REJECTED' | 'DEACTIVE' | 'SETTLED' | null;
260
+ createdAt?: string;
261
+ updatedAt?: string | null;
262
+ }
263
+ export interface Banner {
264
+ id?: string;
265
+ key: string;
266
+ title?: string | null;
267
+ description?: string | null;
268
+ links?: Link[] | object;
269
+ createdAt?: string;
270
+ updatedAt?: string | null;
271
+ sections?: Section[] | object;
272
+ }
273
+ export interface Link {
274
+ title?: string | null;
275
+ description?: string | null;
276
+ image?: string | null;
277
+ link: string;
278
+ }
279
+ export interface Section {
280
+ id?: string;
281
+ priority?: number | object | null;
282
+ key: string;
283
+ banner?: Banner | null;
284
+ slider?: Slider | null;
285
+ createdAt?: string | null;
286
+ updatedAt?: string | null;
287
+ bannerId?: string | null;
288
+ sliderId?: string | null;
289
+ }
290
+ export interface Slider {
291
+ id?: string;
292
+ type: 'category' | 'shop' | 'provider';
293
+ title?: string | null;
294
+ description?: string | null;
295
+ query?: string | null;
296
+ appCode: string;
297
+ createdAt?: string;
298
+ updatedAt?: string | null;
299
+ sections?: Section[] | object;
300
+ }
301
+ export interface File {
302
+ id?: string;
303
+ path: string;
304
+ drive?: 'S3' | 'LOCAL' | 'GCS' | null;
305
+ url: string;
306
+ baseUrl?: string | null;
307
+ createdAt?: string | null;
308
+ updatedAt?: string | null;
309
+ }
310
+ export interface Lang {
311
+ id?: string;
312
+ title: string;
313
+ code: string;
314
+ dir: 'ltr' | 'rtl';
315
+ image?: string | null;
316
+ dateTimeFormat?: string | null;
317
+ json: number | string | boolean | object | unknown[] | null;
318
+ createdAt?: string | null;
319
+ updatedAt?: string | null;
320
+ }
321
+ export interface TableTemplate {
322
+ id?: string;
323
+ title: string;
324
+ coll?: string | null;
325
+ selected?: string[] | object;
326
+ relQuery?: number | string | boolean | object | unknown[] | null;
327
+ targets?: string[] | object;
328
+ createdAt?: string | null;
329
+ updatedAt?: string | null;
330
+ listTemplates?: ListTemplate[] | object;
331
+ }
332
+ export interface ListTemplate {
333
+ id?: string;
334
+ title: string;
335
+ coll: string;
336
+ filterTemplate?: FilterTemplate;
337
+ tableTemplate?: TableTemplate;
338
+ sort?: string | null;
339
+ sortType?: 'ASC' | 'DESC' | null;
340
+ limit?: number | null;
341
+ skip: number;
342
+ createdAt?: string | null;
343
+ updatedAt?: string | null;
344
+ filterTemplateId: string;
345
+ tableTemplateId: string;
346
+ }
347
+ export interface FilterTemplate {
348
+ id?: string;
349
+ title: string;
350
+ coll?: string | null;
351
+ query?: number | string | boolean | object | unknown[] | null;
352
+ createdAt?: string | null;
353
+ updatedAt?: string | null;
354
+ listTemplates?: ListTemplate[] | object;
355
+ }
356
+ export interface ChartTemplate {
357
+ id?: string;
358
+ title: string;
359
+ inputData?: number | string | boolean | object | unknown[] | null;
360
+ mapData?: number | string | boolean | object | unknown[] | null;
361
+ options?: number | string | boolean | object | unknown[] | null;
362
+ baseDataRaw?: string | null;
363
+ createdAt?: string | null;
364
+ updatedAt?: string | null;
365
+ }
366
+ export interface SystemAlarm {
367
+ id?: string;
368
+ priority?: number | object | null;
369
+ model?: string | null;
370
+ func?: string | null;
371
+ schema?: number | string | boolean | object | unknown[] | null;
372
+ query?: number | string | boolean | object | unknown[] | null;
373
+ notification?: NotificationBody;
374
+ createdAt?: string | null;
375
+ updatedAt?: string | null;
376
+ }
377
+ export interface NotificationBody {
378
+ type?: string | null;
379
+ userId?: string | null;
380
+ phoneNumber?: string | null;
381
+ username?: string | null;
382
+ email?: string | null;
383
+ template?: string | null;
384
+ message?: string | null;
385
+ sender?: string | null;
386
+ token?: string | null;
387
+ tokens?: string[] | object;
388
+ messageObject?: NotificationOptions | null;
389
+ }
390
+ export interface NotificationOptions {
391
+ title?: string | null;
392
+ body?: string | null;
393
+ badge?: string | null;
394
+ data?: number | string | boolean | object | unknown[] | null;
395
+ dir?: 'auto' | 'ltr' | 'rtl' | null;
396
+ icon?: string | null;
397
+ lang?: string | null;
398
+ requireInteraction?: boolean | null;
399
+ silent?: boolean | null;
400
+ tag?: string | null;
401
+ imageUrl?: string | null;
402
+ }
403
+ export interface SubRequest {
404
+ id?: string;
405
+ priority?: number | object | null;
406
+ model?: string | null;
407
+ func?: string | null;
408
+ schema?: number | string | boolean | object | unknown[] | null;
409
+ query?: number | string | boolean | object | unknown[] | null;
410
+ forOn?: string | null;
411
+ fetch?: number | string | boolean | object | unknown[] | null;
412
+ createdAt?: string | null;
413
+ updatedAt?: string | null;
414
+ }
415
+ export interface AppConfig {
416
+ id?: string;
417
+ name: string;
418
+ schema: number | string | boolean | object | unknown[] | null;
419
+ createdAt?: string | null;
420
+ updatedAt?: string | null;
421
+ }
422
+ export interface Log {
423
+ id?: string;
424
+ method?: string | null;
425
+ coll?: string | null;
426
+ url?: string | null;
427
+ token?: string | null;
428
+ ip?: string | null;
429
+ userAgent?: string | null;
430
+ user?: number | string | boolean | object | unknown[] | null;
431
+ query?: number | string | boolean | object | unknown[] | null;
432
+ body?: number | string | boolean | object | unknown[] | null;
433
+ result?: number | string | boolean | object | unknown[] | null;
434
+ createdAt?: string | null;
435
+ updatedAt?: string | null;
121
436
  }
122
437
  export interface InputOption {
123
438
  id?: string;
124
- priority?: number | {} | null;
439
+ priority?: number | object | null;
125
440
  icon?: string | null;
126
441
  key: string;
127
442
  title: string;
@@ -129,25 +444,25 @@ export interface InputOption {
129
444
  mainOption?: InputOption | null;
130
445
  filterByInput?: Input | null;
131
446
  filterByOption?: InputOption | null;
132
- subOptions?: InputOption[];
447
+ subOptions?: InputOption[] | object;
133
448
  createdAt?: string | null;
134
449
  updatedAt?: string | null;
135
450
  filteredByKey?: string | null;
136
451
  filterOptionKey?: string | null;
137
452
  inputId?: string | null;
138
453
  mainOptionId?: string | null;
139
- nextInputOption?: InputOption[];
140
- banners?: Banner[];
141
- discountCodes?: DiscountCode[];
142
- cityProviders?: Provider[];
143
- provinceProviders?: Provider[];
144
- areaProviders?: Provider[];
145
- categoryProviders?: Provider[];
146
- places?: Place[];
147
- serviceSettings?: ServiceSetting[];
148
- cityPlaces?: Place[];
149
- provincePlace?: Place[];
150
- areaPlace?: Place[];
454
+ nextInputOption?: InputOption[] | object;
455
+ banners?: Banner[] | object;
456
+ discountCodes?: DiscountCode[] | object;
457
+ cityProviders?: Provider[] | object;
458
+ provinceProviders?: Provider[] | object;
459
+ areaProviders?: Provider[] | object;
460
+ categoryProviders?: Provider[] | object;
461
+ places?: Place[] | object;
462
+ serviceSettings?: ServiceSetting[] | object;
463
+ cityPlaces?: Place[] | object;
464
+ provincePlace?: Place[] | object;
465
+ areaPlace?: Place[] | object;
151
466
  }
152
467
  export interface Input {
153
468
  id?: string;
@@ -155,26 +470,26 @@ export interface Input {
155
470
  title: string;
156
471
  description?: string | null;
157
472
  hint?: string | null;
158
- type?: "text" | "description" | "switch" | "select" | "number" | "dateTime" | "date" | "time" | "location" | "image" | "file" | "none";
473
+ type?: 'text' | 'description' | 'switch' | 'select' | 'number' | 'dateTime' | 'date' | 'time' | 'location' | 'image' | 'file' | 'none';
159
474
  placeholder?: string | null;
160
475
  icon?: string | null;
161
476
  append?: string | null;
162
477
  extendInput?: Input | null;
163
478
  externalOptions?: string | null;
164
479
  externalOptionsKeys?: ExternalOptionsKeys | null;
165
- options?: InputOption[];
480
+ options?: InputOption[] | object;
166
481
  multiSelect?: boolean | null;
167
- keyboadType?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url" | null;
168
- min?: number | {} | null;
169
- max?: number | {} | null;
482
+ keyboadType?: 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | null;
483
+ min?: number | object | null;
484
+ max?: number | object | null;
170
485
  extendedInputKey?: string | null;
171
486
  createdAt?: string | null;
172
487
  updatedAt?: string | null;
173
- forms?: Form[];
174
- requiredForms?: Form[];
175
- activatedForms?: Form[];
176
- filterOptions?: InputOption[];
177
- extendedInputs?: Input[];
488
+ forms?: Form[] | object;
489
+ requiredForms?: Form[] | object;
490
+ activatedForms?: Form[] | object;
491
+ filterOptions?: InputOption[] | object;
492
+ extendedInputs?: Input[] | object;
178
493
  }
179
494
  export interface ExternalOptionsKeys {
180
495
  id?: string | null;
@@ -189,67 +504,28 @@ export interface Form {
189
504
  id?: string;
190
505
  name: string;
191
506
  input?: Input;
192
- priority?: number | {} | null;
507
+ priority?: number | object | null;
193
508
  required?: boolean;
194
509
  requiredby?: string | null;
195
510
  activatedByInput?: Input | null;
196
- activatedByValues?: string[];
511
+ activatedByValues?: string[] | object;
197
512
  requiredByInput?: Input | null;
198
- requiredByValues?: string[];
513
+ requiredByValues?: string[] | object;
199
514
  createdAt?: string | null;
200
515
  updatedAt?: string | null;
201
516
  activatedBy?: string | null;
202
517
  inputId: string;
203
518
  }
204
- export interface Banner {
205
- id?: string;
206
- key: string;
207
- title?: string | null;
208
- description?: string | null;
209
- links?: Link[];
210
- category?: InputOption | null;
211
- createdAt?: string;
212
- updatedAt?: string | null;
213
- sections?: Section[];
214
- categoryKey?: string | null;
215
- }
216
- export interface Link {
217
- title?: string | null;
218
- description?: string | null;
219
- image?: string | null;
220
- link: string;
221
- }
222
- export interface Section {
223
- id?: string;
224
- priority?: number | {} | null;
225
- key: string;
226
- banner?: Banner | null;
227
- slider?: Slider | null;
228
- createdAt?: string | null;
229
- updatedAt?: string | null;
230
- bannerId?: string | null;
231
- sliderId?: string | null;
232
- }
233
- export interface Slider {
234
- id?: string;
235
- type: "category" | "provider" | "place";
236
- title?: string | null;
237
- description?: string | null;
238
- query?: string | null;
239
- createdAt?: string;
240
- updatedAt?: string | null;
241
- sections?: Section[];
242
- }
243
519
  export interface Provider {
244
520
  id?: string;
245
521
  fullName: string;
246
522
  avatar?: string | null;
247
523
  description: string;
248
- specialties?: string[];
249
- experiences?: string[];
250
- achievements?: string[];
524
+ specialties?: string[] | object;
525
+ experiences?: string[] | object;
526
+ achievements?: string[] | object;
251
527
  shortDescription?: string | null;
252
- gender?: "MALE" | "FEMALE" | null;
528
+ gender?: 'MALE' | 'FEMALE' | null;
253
529
  nationalCode: string;
254
530
  phone?: string | null;
255
531
  secondPhone?: string | null;
@@ -259,8 +535,8 @@ export interface Provider {
259
535
  licenseNumber?: string | null;
260
536
  address?: string | null;
261
537
  location?: Location | null;
262
- score?: number | {} | null;
263
- authStatus?: "PENDING" | "AUTHORIZED" | "REJECTED" | null;
538
+ score?: number | object | null;
539
+ authStatus?: 'PENDING' | 'AUTHORIZED' | 'REJECTED' | null;
264
540
  earliestBookingTime?: string | null;
265
541
  tag?: string | null;
266
542
  city?: InputOption;
@@ -275,22 +551,22 @@ export interface Provider {
275
551
  provinceKey: string;
276
552
  areaKey?: string | null;
277
553
  categoryKey: string;
278
- subCategoriesKey?: string[];
279
- comments?: Comment[];
280
- bookmarks?: Bookmark[];
281
- bookings?: Booking[];
282
- holidays?: Holiday[];
283
- bookingSettings?: BookingSetting[];
284
- serviceSettings?: ServiceSetting[];
554
+ subCategoriesKey?: string[] | object;
555
+ comments?: Comment[] | object;
556
+ bookmarks?: Bookmark[] | object;
557
+ bookings?: Booking[] | object;
558
+ holidays?: Holiday[] | object;
559
+ bookingSettings?: BookingSetting[] | object;
560
+ serviceSettings?: ServiceSetting[] | object;
285
561
  }
286
562
  export interface Location {
287
- lat: number | {};
288
- lng: number | {};
563
+ lat: number | object;
564
+ lng: number | object;
289
565
  exact?: boolean | null;
290
566
  }
291
567
  export interface Comment {
292
568
  id?: string;
293
- number?: number | {} | null;
569
+ number?: number | null;
294
570
  text?: string | null;
295
571
  providerReply?: string | null;
296
572
  adminReply?: string | null;
@@ -299,7 +575,6 @@ export interface Comment {
299
575
  provider?: Provider;
300
576
  booking?: Booking;
301
577
  place?: Place;
302
- productIds: string[];
303
578
  createdAt?: string;
304
579
  updatedAt?: string | null;
305
580
  userId?: string | null;
@@ -311,13 +586,13 @@ export interface Booking {
311
586
  id?: string;
312
587
  description?: string | null;
313
588
  dateTime?: string | null;
314
- paymentSource?: "WALLET" | "GATEWAY" | null;
315
- status?: "PENDING" | "PAID" | "ACCEPTED" | "REJECTED" | "CANCELLED" | "COMPLETED" | null;
589
+ paymentSource?: 'WALLET' | 'GATEWAY' | null;
590
+ status?: 'PENDING' | 'PAID' | 'ACCEPTED' | 'REJECTED' | 'CANCELLED' | 'COMPLETED' | null;
316
591
  address?: string | null;
317
592
  location?: Location | null;
318
- type: "IN_PERSON" | "REMOTE";
593
+ type: 'IN_PERSON' | 'REMOTE' | 'CHAT';
319
594
  user?: User;
320
- services?: ServiceSettingType[];
595
+ services?: ServiceSettingType[] | object;
321
596
  wallet?: Wallet | null;
322
597
  booking?: BookingSetting | null;
323
598
  place?: Place | null;
@@ -325,7 +600,7 @@ export interface Booking {
325
600
  comment?: Comment | null;
326
601
  acceptedAt?: string | null;
327
602
  completedAt?: string | null;
328
- transactions?: Transaction[];
603
+ transactions?: Transaction[] | object;
329
604
  createdAt?: string;
330
605
  updatedAt?: string | null;
331
606
  userId: string;
@@ -333,131 +608,39 @@ export interface Booking {
333
608
  bookingSettingId?: string | null;
334
609
  placeId?: string | null;
335
610
  providerId: string;
611
+ messages?: Message[] | object;
336
612
  }
337
613
  export interface ServiceSettingType {
338
614
  id: string;
339
- price: number | {};
340
- discount?: number | {} | null;
615
+ price: number | object;
616
+ discount?: number | object | null;
341
617
  duration: string;
342
618
  subCategoryKey: string;
343
619
  title: string;
344
620
  description?: string | null;
345
621
  icon?: string | null;
346
622
  }
347
- export interface Wallet {
348
- id?: string;
349
- balance?: number | {} | null;
350
- blocked?: number | {} | null;
351
- address?: string | null;
352
- userId: string;
353
- coinId: string;
354
- createdAt?: string | null;
355
- updatedAt?: string | null;
356
- user?: User;
357
- coin?: Coin;
358
- transactions?: Transaction[];
359
- toTransactions?: Transaction[];
360
- bookings?: Booking[];
361
- }
362
- export interface Coin {
363
- id?: string;
364
- name: string;
365
- unit?: string | null;
366
- icon?: string | null;
367
- color?: string | null;
368
- price?: number | {} | null;
369
- walletable?: boolean | null;
370
- active?: boolean | null;
371
- isFiat?: boolean | null;
372
- gateways?: CoinGateway[];
373
- Wallet?: Wallet[];
374
- }
375
- export interface CoinGateway {
376
- id?: string;
377
- decimal?: number | {} | null;
378
- identity?: string | null;
379
- withdrawFee?: string | null;
380
- minWithdraw?: string | null;
381
- active?: boolean | null;
382
- gateway?: Gateway;
383
- coin?: Coin;
384
- gatewayId: string;
385
- coinId: string;
386
- transactions?: Transaction[];
387
- }
388
- export interface Gateway {
389
- id?: string;
390
- name: string;
391
- type?: "zarinpal" | "zarinpalApi" | "behpardakht" | "idpay" | "nextpay" | "nextpayApi" | "parsian" | "pasargad" | "payir" | "payping" | "sadad" | "saman" | "zibal" | "payfa" | "vandar" | null;
392
- label?: string | null;
393
- address?: string | null;
394
- iban?: string | null;
395
- icon?: string | null;
396
- color?: string | null;
397
- keys?: string[];
398
- params?: number | string | boolean | {} | unknown[] | null;
399
- checkUrl?: string | null;
400
- payable?: boolean | null;
401
- active?: boolean | null;
402
- details?: number | string | boolean | {} | unknown[] | null;
403
- coins?: CoinGateway[];
404
- }
405
- export interface Transaction {
406
- id?: string;
407
- paymentId?: string | null;
408
- amount: number | {};
409
- type: "WITHDRAW" | "DEPOSIT" | "PAYMENT" | "TRANSFER";
410
- paymentSource?: "WALLET" | "GATEWAY" | null;
411
- status?: "PENDING" | "ACTIVE" | "ACCEPTED" | "SUCCESS" | "FAILED" | "REJECTED" | "DEACTIVE" | "SETTLED" | null;
412
- txId?: string | null;
413
- paymentUrl?: string | null;
414
- redirectUrl?: string | null;
415
- target?: string | null;
416
- targetDetails?: number | string | boolean | {} | unknown[] | null;
417
- discountAmount?: number | {} | null;
418
- commission?: number | {} | null;
419
- settleAmount?: string | null;
420
- settleId?: string | null;
421
- settleBank?: string | null;
422
- settledAt?: string | null;
423
- sourceAccount?: string | null;
424
- description?: string | null;
425
- gateway?: CoinGateway | null;
426
- wallet?: Wallet | null;
427
- toWallet?: Wallet | null;
428
- user?: User | null;
429
- booking?: Booking | null;
430
- discount?: DiscountCode | null;
431
- createdAt?: string | null;
432
- updatedAt?: string | null;
433
- userId?: string | null;
434
- gatewayId?: string | null;
435
- discountCode?: string | null;
436
- walletId?: string | null;
437
- toWalletId?: string | null;
438
- bookingId?: string | null;
439
- }
440
623
  export interface BookingSetting {
441
624
  id?: string;
442
- type: "IN_PERSON" | "REMOTE";
625
+ type: 'IN_PERSON' | 'REMOTE' | 'CHAT';
443
626
  timeStep?: string | null;
444
- minPrice?: number | {} | null;
627
+ minPrice?: number | object | null;
445
628
  morningFromTime?: string | null;
446
629
  morningToTime?: string | null;
447
630
  noonFromTime?: string | null;
448
631
  noonToTime?: string | null;
449
632
  eveningFromTime?: string | null;
450
633
  eveningToTime?: string | null;
451
- place?: Place;
634
+ place?: Place | null;
452
635
  provider?: Provider | null;
453
- activeDays: string[];
454
- status?: "PENDING" | "ACTIVE" | "ACCEPTED" | "SUCCESS" | "FAILED" | "REJECTED" | "DEACTIVE" | "SETTLED" | null;
636
+ activeDays: string[] | object;
637
+ status?: 'PENDING' | 'ACTIVE' | 'ACCEPTED' | 'SUCCESS' | 'FAILED' | 'REJECTED' | 'DEACTIVE' | 'SETTLED' | null;
455
638
  createdAt?: string;
456
639
  updatedAt?: string | null;
457
- placeId: string;
640
+ placeId?: string | null;
458
641
  providerId?: string | null;
459
- bookings?: Booking[];
460
- bookingServices?: BookingService[];
642
+ bookings?: Booking[] | object;
643
+ bookingServices?: BookingService[] | object;
461
644
  }
462
645
  export interface Place {
463
646
  id?: string;
@@ -469,9 +652,9 @@ export interface Place {
469
652
  location?: Location;
470
653
  licenseImage?: string | null;
471
654
  licenseNumber?: string | null;
472
- phoneNumbers?: string[];
473
- images?: string[];
474
- authStatus?: "PENDING" | "AUTHORIZED" | "REJECTED" | null;
655
+ phoneNumbers?: string[] | object;
656
+ images?: string[] | object;
657
+ authStatus?: 'PENDING' | 'AUTHORIZED' | 'REJECTED' | null;
475
658
  city?: InputOption;
476
659
  province?: InputOption;
477
660
  area?: InputOption | null;
@@ -481,13 +664,13 @@ export interface Place {
481
664
  areaKey?: string | null;
482
665
  category?: InputOption;
483
666
  categoryKey: string;
484
- subCategoriesKey?: string[];
667
+ subCategoriesKey?: string[] | object;
485
668
  createdAt?: string;
486
669
  updatedAt?: string | null;
487
670
  userId: string;
488
- bookings?: Booking[];
489
- bookingSettings?: BookingSetting[];
490
- Comment?: Comment[];
671
+ bookings?: Booking[] | object;
672
+ bookingSettings?: BookingSetting[] | object;
673
+ Comment?: Comment[] | object;
491
674
  }
492
675
  export interface BookingService {
493
676
  id?: string;
@@ -495,7 +678,7 @@ export interface BookingService {
495
678
  serviceSetting?: ServiceSetting;
496
679
  bookingSettingId: string;
497
680
  serviceSettingId: string;
498
- status?: "PENDING" | "ACTIVE" | "ACCEPTED" | "SUCCESS" | "FAILED" | "REJECTED" | "DEACTIVE" | "SETTLED" | null;
681
+ status?: 'PENDING' | 'ACTIVE' | 'ACCEPTED' | 'SUCCESS' | 'FAILED' | 'REJECTED' | 'DEACTIVE' | 'SETTLED' | null;
499
682
  createdAt?: string;
500
683
  updatedAt?: string | null;
501
684
  }
@@ -503,40 +686,15 @@ export interface ServiceSetting {
503
686
  id?: string;
504
687
  subCategory?: InputOption;
505
688
  description?: string | null;
506
- price: number | {};
507
- discount?: number | {} | null;
689
+ price: number | object;
690
+ discount?: number | object | null;
508
691
  duration: string;
509
692
  user?: Provider;
510
693
  subCategoryKey: string;
511
694
  createdAt?: string;
512
695
  updatedAt?: string | null;
513
696
  providerId: string;
514
- bookingServices?: BookingService[];
515
- }
516
- export interface Bookmark {
517
- id?: string;
518
- user?: User;
519
- createdAt?: string | null;
520
- updatedAt?: string | null;
521
- userId: string;
522
- provider?: Provider | null;
523
- providerId?: string | null;
524
- }
525
- export interface Holiday {
526
- id?: string;
527
- from: string;
528
- to: string;
529
- provider?: Provider;
530
- createdAt?: string;
531
- updatedAt?: string | null;
532
- providerId: string;
533
- }
534
- export interface Policy {
535
- id?: string;
536
- title: string;
537
- content: string;
538
- createdAt?: string;
539
- updatedAt?: string | null;
697
+ bookingServices?: BookingService[] | object;
540
698
  }
541
699
  export interface Setting {
542
700
  id?: string;
@@ -551,132 +709,48 @@ export interface Setting {
551
709
  export interface AppSetting {
552
710
  id?: string;
553
711
  noCourierPrice?: boolean | null;
554
- courierPrice?: number | {} | null;
555
- courierPriceArea?: number | {} | null;
712
+ courierPrice?: number | object | null;
713
+ courierPriceArea?: number | object | null;
556
714
  courierLeadPhoneNumber?: string | null;
557
715
  providerImage?: string | null;
558
- invitePrize?: number | {} | null;
716
+ invitePrize?: number | object | null;
559
717
  createdAt?: string;
560
718
  updatedAt?: string | null;
561
719
  }
562
- export interface ContactUs {
720
+ export interface Bookmark {
563
721
  id?: string;
564
- priority?: number | {} | null;
565
- title?: string | null;
566
- description?: string | null;
567
- link?: string | null;
568
- createdAt?: string;
722
+ user?: User;
723
+ createdAt?: string | null;
569
724
  updatedAt?: string | null;
725
+ userId: string;
726
+ provider?: Provider | null;
727
+ providerId?: string | null;
570
728
  }
571
- export interface Question {
729
+ export interface Holiday {
572
730
  id?: string;
573
- title: string;
574
- content: string;
575
- priority?: number | {} | null;
576
- topQuestion?: Question;
731
+ from: string;
732
+ to: string;
733
+ provider?: Provider;
577
734
  createdAt?: string;
578
735
  updatedAt?: string | null;
579
- subQuestions?: Question[];
580
- questionId: string;
581
- }
582
- export interface File {
583
- id?: string;
584
- path: string;
585
- drive?: "S3" | "LOCAL" | "GCS" | null;
586
- url: string;
587
- baseUrl?: string | null;
588
- createdAt?: string | null;
589
- updatedAt?: string | null;
736
+ providerId: string;
590
737
  }
591
- export interface Lang {
738
+ export interface Message {
592
739
  id?: string;
593
- title: string;
594
- code: string;
595
- dir: "ltr" | "rtl";
740
+ text?: string | null;
741
+ file?: string | null;
596
742
  image?: string | null;
597
- dateTimeFormat?: string | null;
598
- json: number | string | boolean | {} | unknown[] | null;
599
- createdAt?: string | null;
600
- updatedAt?: string | null;
601
- }
602
- export interface TableTemplate {
603
- id?: string;
604
- title: string;
605
- coll?: string | null;
606
- selected?: string[];
607
- relQuery?: number | string | boolean | {} | unknown[] | null;
608
- targets?: string[];
609
- createdAt?: string | null;
610
- updatedAt?: string | null;
611
- }
612
- export interface SystemAlarm {
613
- id?: string;
614
- priority?: number | {} | null;
615
- model?: string | null;
616
- func?: string | null;
617
- schema?: number | string | boolean | {} | unknown[] | null;
618
- query?: number | string | boolean | {} | unknown[] | null;
619
- notification?: NotificationBody;
743
+ location?: Location | null;
744
+ phone?: string | null;
745
+ key?: string | null;
746
+ booking?: Booking | null;
747
+ user?: User | null;
748
+ reply?: Message | null;
620
749
  createdAt?: string | null;
621
750
  updatedAt?: string | null;
622
- }
623
- export interface NotificationBody {
624
- type?: string | null;
625
751
  userId?: string | null;
626
- phoneNumber?: string | null;
627
- username?: string | null;
628
- email?: string | null;
629
- template?: string | null;
630
- message?: string | null;
631
- sender?: string | null;
632
- token?: string | null;
633
- tokens?: string[];
634
- messageObject?: NotificationOptions | null;
635
- }
636
- export interface NotificationOptions {
637
- title?: string | null;
638
- body?: string | null;
639
- badge?: string | null;
640
- data?: number | string | boolean | {} | unknown[] | null;
641
- dir?: "auto" | "ltr" | "rtl" | null;
642
- icon?: string | null;
643
- lang?: string | null;
644
- requireInteraction?: boolean | null;
645
- silent?: boolean | null;
646
- tag?: string | null;
647
- imageUrl?: string | null;
648
- }
649
- export interface SubRequest {
650
- id?: string;
651
- priority?: number | {} | null;
652
- model?: string | null;
653
- func?: string | null;
654
- schema?: number | string | boolean | {} | unknown[] | null;
655
- query?: number | string | boolean | {} | unknown[] | null;
656
- forOn?: string | null;
657
- fetch?: number | string | boolean | {} | unknown[] | null;
658
- createdAt?: string | null;
659
- updatedAt?: string | null;
660
- }
661
- export interface AppConfig {
662
- id?: string;
663
- name: string;
664
- schema: number | string | boolean | {} | unknown[] | null;
665
- createdAt?: string | null;
666
- updatedAt?: string | null;
667
- }
668
- export interface Log {
669
- id?: string;
670
- method?: string | null;
671
- coll?: string | null;
672
- url?: string | null;
673
- token?: string | null;
674
- ip?: string | null;
675
- userAgent?: string | null;
676
- user?: number | string | boolean | {} | unknown[] | null;
677
- query?: number | string | boolean | {} | unknown[] | null;
678
- body?: number | string | boolean | {} | unknown[] | null;
679
- result?: number | string | boolean | {} | unknown[] | null;
680
- createdAt?: string | null;
681
- updatedAt?: string | null;
752
+ productId?: string | null;
753
+ replies?: Message[] | object;
754
+ messageId?: string | null;
755
+ bookingId?: string | null;
682
756
  }