@reviza/api-client 0.0.0 → 0.0.1-SNAPSHOT-7a83b30d

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 (68) hide show
  1. package/README.md +1 -0
  2. package/dist/App/Data/ActionLog/index.d.ts +25 -0
  3. package/dist/App/Data/ActionLog/index.js +1 -0
  4. package/dist/App/Data/Auth/index.d.ts +36 -0
  5. package/dist/App/Data/Auth/index.js +1 -0
  6. package/dist/App/Data/Category/index.d.ts +67 -0
  7. package/dist/App/Data/Category/index.js +1 -0
  8. package/dist/App/Data/Config/index.d.ts +36 -0
  9. package/dist/App/Data/Config/index.js +1 -0
  10. package/dist/App/Data/Demo/index.d.ts +20 -0
  11. package/dist/App/Data/Demo/index.js +1 -0
  12. package/dist/App/Data/Document/index.d.ts +22 -0
  13. package/dist/App/Data/Document/index.js +1 -0
  14. package/dist/App/Data/Facility/index.d.ts +108 -0
  15. package/dist/App/Data/Facility/index.js +1 -0
  16. package/dist/App/Data/FrontendRoute/index.d.ts +6 -0
  17. package/dist/App/Data/FrontendRoute/index.js +1 -0
  18. package/dist/App/Data/Map/index.d.ts +25 -0
  19. package/dist/App/Data/Map/index.js +1 -0
  20. package/dist/App/Data/Me/index.d.ts +29 -0
  21. package/dist/App/Data/Me/index.js +1 -0
  22. package/dist/App/Data/Notification/index.d.ts +32 -0
  23. package/dist/App/Data/Notification/index.js +1 -0
  24. package/dist/App/Data/Organization/index.d.ts +57 -0
  25. package/dist/App/Data/Organization/index.js +1 -0
  26. package/dist/App/Data/Permission/index.d.ts +32 -0
  27. package/dist/App/Data/Permission/index.js +1 -0
  28. package/dist/App/Data/Revision/index.d.ts +72 -0
  29. package/dist/App/Data/Revision/index.js +1 -0
  30. package/dist/App/Data/Search/index.d.ts +24 -0
  31. package/dist/App/Data/Search/index.js +1 -0
  32. package/dist/App/Data/Subscription/index.d.ts +25 -0
  33. package/dist/App/Data/Subscription/index.js +1 -0
  34. package/dist/App/Data/User/index.d.ts +31 -0
  35. package/dist/App/Data/User/index.js +1 -0
  36. package/dist/App/Data/index.d.ts +4 -0
  37. package/dist/App/Data/index.js +1 -0
  38. package/dist/App/Enum/Notifications/index.d.ts +11 -0
  39. package/dist/App/Enum/Notifications/index.js +13 -0
  40. package/dist/App/Enum/Permissions/index.d.ts +11 -0
  41. package/dist/App/Enum/Permissions/index.js +13 -0
  42. package/dist/App/Enum/index.d.ts +55 -0
  43. package/dist/App/Enum/index.js +62 -0
  44. package/dist/Carbon/index.d.ts +44 -0
  45. package/dist/Carbon/index.js +47 -0
  46. package/dist/Illuminate/Http/index.d.ts +1 -0
  47. package/dist/Illuminate/Http/index.js +1 -0
  48. package/dist/Illuminate/index.d.ts +39 -0
  49. package/dist/Illuminate/index.js +1 -0
  50. package/dist/Spatie/LaravelData/Enums/index.d.ts +27 -0
  51. package/dist/Spatie/LaravelData/Enums/index.js +30 -0
  52. package/dist/Spatie/LaravelData/Support/Creation/index.d.ts +6 -0
  53. package/dist/Spatie/LaravelData/Support/Creation/index.js +7 -0
  54. package/dist/Spatie/LaravelData/Support/Partials/index.d.ts +6 -0
  55. package/dist/Spatie/LaravelData/Support/Partials/index.js +7 -0
  56. package/dist/Spatie/LaravelData/Support/Wrapping/index.d.ts +10 -0
  57. package/dist/Spatie/LaravelData/Support/Wrapping/index.js +12 -0
  58. package/dist/Spatie/LaravelData/index.d.ts +7 -0
  59. package/dist/Spatie/LaravelData/index.js +1 -0
  60. package/dist/Symfony/Component/HttpFoundation/index.d.ts +1 -0
  61. package/dist/Symfony/Component/HttpFoundation/index.js +1 -0
  62. package/dist/controllers/System/index.d.ts +253 -0
  63. package/dist/controllers/System/index.js +42 -0
  64. package/dist/controllers/index.d.ts +627 -0
  65. package/dist/controllers/index.js +159 -0
  66. package/dist/index.d.ts +184 -0
  67. package/dist/index.js +433 -0
  68. package/package.json +1 -1
@@ -0,0 +1,627 @@
1
+ import { LoginPayload, LoginData, RegistrationTokenData, RegisterPayload, ForgotPasswordPayload, PasswordPayload, InvitationPayload } from '../App/Data/Auth';
2
+ import { RevizaResponseData } from '../App/Data';
3
+ import { DataCollection } from '../Spatie/LaravelData';
4
+ import { CategoryData, CategoryCreatePayload, CategoryUpdatePayload, CategoryTreeData } from '../App/Data/Category';
5
+ import { ConfigData } from '../App/Data/Config';
6
+ import { FacilityListData, FacilityData, FacilityCreatePayload, FacilityUpdatePayload, FacilityPicturePayload, FacilityIssueResolvedPayload, RelatedFacilityCreatePayload } from '../App/Data/Facility';
7
+ import { DemoRequestCreatePayload, DemoRequestData } from '../App/Data/Demo';
8
+ import { MapExtentData, MapData } from '../App/Data/Map';
9
+ import { DocumentData, DocumentCreatePayload, DocumentUpdatePayload } from '../App/Data/Document';
10
+ import { FrontendRouteRedirectRequest, FrontendRouteRedirectData } from '../App/Data/FrontendRoute';
11
+ import { MeData, MeUpdatePayload } from '../App/Data/Me';
12
+ import { UserSettingsPayload, UserData } from '../App/Data/User';
13
+ import { NotificationSettingsData, NotificationSettingsPayload } from '../App/Data/Notification';
14
+ import { OrganizationData, OrganizationUpdatePayload } from '../App/Data/Organization';
15
+ import { SubscriptionData } from '../App/Data/Subscription';
16
+ import { UserPermissionData, UserPermissionPayload } from '../App/Data/Permission';
17
+ import { RevisionData, RevisionCreatePayload, RevisionUpdatePayload, RevisionIssueData } from '../App/Data/Revision';
18
+ import { SearchData } from '../App/Data/Search';
19
+ type ActionFunction<P extends RouteParams | undefined> = P extends undefined ? (options?: RouteOptions) => ActionResult : (params: P, options?: RouteOptions) => ActionResult;
20
+ type ActionResult = RouteDefinition & {
21
+ url: string;
22
+ };
23
+ type ActionWithMethods<P extends RouteParams | undefined, M extends string> = ActionFunction<P> & {
24
+ [K in M]: ActionFunction<P>;
25
+ };
26
+ export declare const AuthController: {
27
+ readonly login: ActionWithMethods<undefined, string>;
28
+ readonly logout: ActionWithMethods<undefined, string>;
29
+ readonly verifyRegistrationToken: ActionWithMethods<{
30
+ token: string | number;
31
+ }, string>;
32
+ readonly register: ActionWithMethods<{
33
+ token: string | number;
34
+ }, string>;
35
+ readonly forgotPassword: ActionWithMethods<undefined, string>;
36
+ readonly resetPassword: ActionWithMethods<{
37
+ token: string | number;
38
+ }, string>;
39
+ };
40
+ export declare namespace AuthController {
41
+ namespace login {
42
+ type Request = LoginPayload;
43
+ type Response = RevizaResponseData<LoginData>;
44
+ }
45
+ namespace logout {
46
+ type Request = object;
47
+ type Response = RevizaResponseData<null>;
48
+ }
49
+ namespace verifyRegistrationToken {
50
+ type Request = object;
51
+ type Response = RevizaResponseData<RegistrationTokenData>;
52
+ }
53
+ namespace register {
54
+ type Request = RegisterPayload;
55
+ type Response = RevizaResponseData<LoginData>;
56
+ }
57
+ namespace forgotPassword {
58
+ type Request = ForgotPasswordPayload;
59
+ type Response = RevizaResponseData<null>;
60
+ }
61
+ namespace resetPassword {
62
+ type Request = PasswordPayload;
63
+ type Response = RevizaResponseData<null>;
64
+ }
65
+ }
66
+ export declare const CategoryController: {
67
+ readonly index: ActionWithMethods<undefined, string>;
68
+ readonly store: ActionWithMethods<undefined, string>;
69
+ readonly show: ActionWithMethods<{
70
+ category: string | number;
71
+ }, string>;
72
+ readonly update: ActionWithMethods<{
73
+ category: string | number;
74
+ }, string>;
75
+ readonly destroy: ActionWithMethods<{
76
+ category: string | number;
77
+ }, string>;
78
+ };
79
+ export declare namespace CategoryController {
80
+ namespace index {
81
+ type Request = object;
82
+ type Response = RevizaResponseData<DataCollection<number, CategoryData>>;
83
+ }
84
+ namespace store {
85
+ type Request = CategoryCreatePayload;
86
+ type Response = RevizaResponseData<CategoryData>;
87
+ }
88
+ namespace show {
89
+ type Request = object;
90
+ type Response = RevizaResponseData<CategoryData | null>;
91
+ }
92
+ namespace update {
93
+ type Request = CategoryUpdatePayload;
94
+ type Response = RevizaResponseData<CategoryData>;
95
+ }
96
+ namespace destroy {
97
+ type Request = object;
98
+ type Response = RevizaResponseData<null>;
99
+ }
100
+ }
101
+ export declare const ConfigController: {
102
+ readonly config: ActionWithMethods<undefined, string>;
103
+ };
104
+ export declare namespace ConfigController {
105
+ namespace config {
106
+ type Request = object;
107
+ type Response = RevizaResponseData<ConfigData>;
108
+ }
109
+ }
110
+ export declare const DashboardController: {
111
+ readonly categoryTree: ActionWithMethods<undefined, string>;
112
+ readonly facilityList: ActionWithMethods<undefined, string>;
113
+ };
114
+ export declare namespace DashboardController {
115
+ namespace categoryTree {
116
+ type Request = object;
117
+ type Response = RevizaResponseData<DataCollection<number, CategoryTreeData>>;
118
+ }
119
+ namespace facilityList {
120
+ type Request = object;
121
+ type Response = RevizaResponseData<DataCollection<number, FacilityListData>>;
122
+ }
123
+ }
124
+ export declare const DemoRequestController: {
125
+ readonly store: ActionWithMethods<undefined, string>;
126
+ readonly index: ActionWithMethods<undefined, string>;
127
+ };
128
+ export declare namespace DemoRequestController {
129
+ namespace store {
130
+ type Request = DemoRequestCreatePayload;
131
+ type Response = RevizaResponseData<null>;
132
+ }
133
+ namespace index {
134
+ type Request = object;
135
+ type Response = RevizaResponseData<DataCollection<number, DemoRequestData>>;
136
+ }
137
+ }
138
+ export declare const FacilityController: {
139
+ readonly getMapExtent: ActionWithMethods<{
140
+ facility: string | number;
141
+ map: string | number;
142
+ }, string>;
143
+ readonly index: ActionWithMethods<{
144
+ category: string | number;
145
+ }, string>;
146
+ readonly store: ActionWithMethods<{
147
+ category: string | number;
148
+ }, string>;
149
+ readonly show: ActionWithMethods<{
150
+ category: string | number;
151
+ facility: string | number;
152
+ }, string>;
153
+ readonly update: ActionWithMethods<{
154
+ category: string | number;
155
+ facility: string | number;
156
+ }, string>;
157
+ readonly destroy: ActionWithMethods<{
158
+ category: string | number;
159
+ facility: string | number;
160
+ }, string>;
161
+ readonly storePicture: ActionWithMethods<{
162
+ category: string | number;
163
+ facility: string | number;
164
+ }, string>;
165
+ readonly viewPicture: ActionWithMethods<{
166
+ category: string | number;
167
+ facility: string | number;
168
+ }, string>;
169
+ readonly deletePicture: ActionWithMethods<{
170
+ category: string | number;
171
+ facility: string | number;
172
+ }, string>;
173
+ readonly viewQrCode: ActionWithMethods<{
174
+ category: string | number;
175
+ facility: string | number;
176
+ }, string>;
177
+ readonly resolveIssue: ActionWithMethods<{
178
+ category: string | number;
179
+ facility: string | number;
180
+ issue: string | number;
181
+ }, string>;
182
+ };
183
+ export declare namespace FacilityController {
184
+ namespace getMapExtent {
185
+ type Request = object;
186
+ type Response = RevizaResponseData<MapExtentData | null>;
187
+ }
188
+ namespace index {
189
+ type Request = object;
190
+ type Response = RevizaResponseData<DataCollection<number, FacilityData>>;
191
+ }
192
+ namespace store {
193
+ type Request = FacilityCreatePayload;
194
+ type Response = RevizaResponseData<FacilityData>;
195
+ }
196
+ namespace show {
197
+ type Request = object;
198
+ type Response = RevizaResponseData<FacilityData>;
199
+ }
200
+ namespace update {
201
+ type Request = FacilityUpdatePayload;
202
+ type Response = RevizaResponseData<FacilityData>;
203
+ }
204
+ namespace destroy {
205
+ type Request = object;
206
+ type Response = RevizaResponseData<null>;
207
+ }
208
+ namespace storePicture {
209
+ type Request = FacilityPicturePayload;
210
+ type Response = RevizaResponseData<FacilityData | null>;
211
+ }
212
+ namespace viewPicture {
213
+ type Request = object;
214
+ type Response = object;
215
+ }
216
+ namespace deletePicture {
217
+ type Request = object;
218
+ type Response = RevizaResponseData<FacilityData | null>;
219
+ }
220
+ namespace viewQrCode {
221
+ type Request = object;
222
+ type Response = object;
223
+ }
224
+ namespace resolveIssue {
225
+ type Request = FacilityIssueResolvedPayload;
226
+ type Response = RevizaResponseData<FacilityData | null>;
227
+ }
228
+ }
229
+ export declare const FacilityDocumentController: {
230
+ readonly index: ActionWithMethods<{
231
+ category: string | number;
232
+ facility: string | number;
233
+ }, string>;
234
+ readonly store: ActionWithMethods<{
235
+ category: string | number;
236
+ facility: string | number;
237
+ }, string>;
238
+ readonly destroy: ActionWithMethods<{
239
+ category: string | number;
240
+ facility: string | number;
241
+ document: string | number;
242
+ }, string>;
243
+ readonly update: ActionWithMethods<{
244
+ category: string | number;
245
+ facility: string | number;
246
+ document: string | number;
247
+ }, string>;
248
+ readonly download: ActionWithMethods<{
249
+ category: string | number;
250
+ facility: string | number;
251
+ document: string | number;
252
+ }, string>;
253
+ };
254
+ export declare namespace FacilityDocumentController {
255
+ namespace index {
256
+ type Request = object;
257
+ type Response = RevizaResponseData<DataCollection<number, DocumentData>>;
258
+ }
259
+ namespace store {
260
+ type Request = DocumentCreatePayload;
261
+ type Response = RevizaResponseData<DocumentData>;
262
+ }
263
+ namespace destroy {
264
+ type Request = object;
265
+ type Response = RevizaResponseData<null>;
266
+ }
267
+ namespace update {
268
+ type Request = DocumentUpdatePayload;
269
+ type Response = RevizaResponseData<DocumentData | null>;
270
+ }
271
+ namespace download {
272
+ type Request = object;
273
+ type Response = object;
274
+ }
275
+ }
276
+ export declare const FrontendErrorController: {
277
+ readonly logError: ActionWithMethods<undefined, string>;
278
+ };
279
+ export declare namespace FrontendErrorController {
280
+ namespace logError {
281
+ type Request = object;
282
+ type Response = RevizaResponseData<null>;
283
+ }
284
+ }
285
+ export declare const FrontendRouteController: {
286
+ readonly redirect: ActionWithMethods<undefined, string>;
287
+ };
288
+ export declare namespace FrontendRouteController {
289
+ namespace redirect {
290
+ type Request = FrontendRouteRedirectRequest;
291
+ type Response = RevizaResponseData<FrontendRouteRedirectData | null>;
292
+ }
293
+ }
294
+ export declare const MapController: {
295
+ readonly index: ActionWithMethods<{
296
+ category: string | number;
297
+ }, string>;
298
+ readonly getTile: ActionWithMethods<{
299
+ category: string | number;
300
+ map: string | number;
301
+ x: string | number;
302
+ y: string | number;
303
+ z: string | number;
304
+ }, string>;
305
+ };
306
+ export declare namespace MapController {
307
+ namespace index {
308
+ type Request = object;
309
+ type Response = RevizaResponseData<DataCollection<number, MapData>>;
310
+ }
311
+ namespace getTile {
312
+ type Request = object;
313
+ type Response = object;
314
+ }
315
+ }
316
+ export declare const MeController: {
317
+ readonly me: ActionWithMethods<undefined, string>;
318
+ readonly update: ActionWithMethods<undefined, string>;
319
+ readonly tutorial: ActionWithMethods<undefined, string>;
320
+ readonly changePassword: ActionWithMethods<undefined, string>;
321
+ readonly updateSettings: ActionWithMethods<undefined, string>;
322
+ };
323
+ export declare namespace MeController {
324
+ namespace me {
325
+ type Request = object;
326
+ type Response = RevizaResponseData<MeData>;
327
+ }
328
+ namespace update {
329
+ type Request = MeUpdatePayload;
330
+ type Response = RevizaResponseData<MeData>;
331
+ }
332
+ namespace tutorial {
333
+ type Request = object;
334
+ type Response = RevizaResponseData<null>;
335
+ }
336
+ namespace changePassword {
337
+ type Request = PasswordPayload;
338
+ type Response = RevizaResponseData<null>;
339
+ }
340
+ namespace updateSettings {
341
+ type Request = UserSettingsPayload;
342
+ type Response = RevizaResponseData<MeData>;
343
+ }
344
+ }
345
+ export type MethodRoute = {
346
+ method: 'get' | 'post' | 'put' | 'patch' | 'delete';
347
+ url: string;
348
+ };
349
+ export declare const NotificationSettingsController: {
350
+ readonly show: ActionWithMethods<undefined, string>;
351
+ readonly update: ActionWithMethods<undefined, string>;
352
+ };
353
+ export declare namespace NotificationSettingsController {
354
+ namespace show {
355
+ type Request = object;
356
+ type Response = RevizaResponseData<NotificationSettingsData>;
357
+ }
358
+ namespace update {
359
+ type Request = NotificationSettingsPayload;
360
+ type Response = RevizaResponseData<NotificationSettingsData>;
361
+ }
362
+ }
363
+ export declare const OrganizationController: {
364
+ readonly index: ActionWithMethods<undefined, string>;
365
+ readonly show: ActionWithMethods<{
366
+ organization: string | number;
367
+ }, string>;
368
+ readonly update: ActionWithMethods<{
369
+ organization: string | number;
370
+ }, string>;
371
+ readonly getSubscriptions: ActionWithMethods<{
372
+ organization: string | number;
373
+ }, string>;
374
+ };
375
+ export declare namespace OrganizationController {
376
+ namespace index {
377
+ type Request = object;
378
+ type Response = RevizaResponseData<DataCollection<number, OrganizationData>>;
379
+ }
380
+ namespace show {
381
+ type Request = object;
382
+ type Response = RevizaResponseData<OrganizationData>;
383
+ }
384
+ namespace update {
385
+ type Request = OrganizationUpdatePayload;
386
+ type Response = RevizaResponseData<OrganizationData>;
387
+ }
388
+ namespace getSubscriptions {
389
+ type Request = object;
390
+ type Response = RevizaResponseData<DataCollection<number, SubscriptionData>>;
391
+ }
392
+ }
393
+ export declare const PermissionController: {
394
+ readonly show: ActionWithMethods<{
395
+ organization: string | number;
396
+ user: string | number;
397
+ }, string>;
398
+ readonly update: ActionWithMethods<{
399
+ organization: string | number;
400
+ user: string | number;
401
+ }, string>;
402
+ };
403
+ export declare namespace PermissionController {
404
+ namespace show {
405
+ type Request = object;
406
+ type Response = RevizaResponseData<UserPermissionData | null>;
407
+ }
408
+ namespace update {
409
+ type Request = UserPermissionPayload;
410
+ type Response = RevizaResponseData<null>;
411
+ }
412
+ }
413
+ export type QueryParams = Record<string, string | number | boolean | null | undefined | (string | number | boolean)[]>;
414
+ export declare const RelatedFacilityController: {
415
+ readonly options: ActionWithMethods<{
416
+ category: string | number;
417
+ facility: string | number;
418
+ }, string>;
419
+ readonly store: ActionWithMethods<{
420
+ category: string | number;
421
+ facility: string | number;
422
+ }, string>;
423
+ readonly destroy: ActionWithMethods<{
424
+ category: string | number;
425
+ facility: string | number;
426
+ relatedFacility: string | number;
427
+ }, string>;
428
+ };
429
+ export declare namespace RelatedFacilityController {
430
+ namespace options {
431
+ type Request = object;
432
+ type Response = RevizaResponseData<DataCollection<number, FacilityData>>;
433
+ }
434
+ namespace store {
435
+ type Request = RelatedFacilityCreatePayload;
436
+ type Response = RevizaResponseData<FacilityData>;
437
+ }
438
+ namespace destroy {
439
+ type Request = object;
440
+ type Response = RevizaResponseData<FacilityData | null>;
441
+ }
442
+ }
443
+ export declare const RevisionController: {
444
+ readonly index: ActionWithMethods<{
445
+ category: string | number;
446
+ facility: string | number;
447
+ }, string>;
448
+ readonly store: ActionWithMethods<{
449
+ category: string | number;
450
+ facility: string | number;
451
+ }, string>;
452
+ readonly show: ActionWithMethods<{
453
+ category: string | number;
454
+ facility: string | number;
455
+ revision: string | number;
456
+ }, string>;
457
+ readonly update: ActionWithMethods<{
458
+ category: string | number;
459
+ facility: string | number;
460
+ revision: string | number;
461
+ }, string>;
462
+ readonly destroy: ActionWithMethods<{
463
+ category: string | number;
464
+ facility: string | number;
465
+ revision: string | number;
466
+ }, string>;
467
+ };
468
+ export declare namespace RevisionController {
469
+ namespace index {
470
+ type Request = object;
471
+ type Response = RevizaResponseData<DataCollection<number, RevisionData> | null>;
472
+ }
473
+ namespace store {
474
+ type Request = RevisionCreatePayload;
475
+ type Response = RevizaResponseData<RevisionData>;
476
+ }
477
+ namespace show {
478
+ type Request = object;
479
+ type Response = RevizaResponseData<RevisionData | null>;
480
+ }
481
+ namespace update {
482
+ type Request = RevisionUpdatePayload;
483
+ type Response = RevizaResponseData<RevisionData>;
484
+ }
485
+ namespace destroy {
486
+ type Request = object;
487
+ type Response = RevizaResponseData<null>;
488
+ }
489
+ }
490
+ export declare const RevisionDocumentController: {
491
+ readonly index: ActionWithMethods<{
492
+ category: string | number;
493
+ facility: string | number;
494
+ revision: string | number;
495
+ }, string>;
496
+ readonly store: ActionWithMethods<{
497
+ category: string | number;
498
+ facility: string | number;
499
+ revision: string | number;
500
+ }, string>;
501
+ readonly destroy: ActionWithMethods<{
502
+ category: string | number;
503
+ facility: string | number;
504
+ revision: string | number;
505
+ document: string | number;
506
+ }, string>;
507
+ readonly update: ActionWithMethods<{
508
+ category: string | number;
509
+ facility: string | number;
510
+ revision: string | number;
511
+ document: string | number;
512
+ }, string>;
513
+ readonly download: ActionWithMethods<{
514
+ category: string | number;
515
+ facility: string | number;
516
+ revision: string | number;
517
+ document: string | number;
518
+ }, string>;
519
+ };
520
+ export declare namespace RevisionDocumentController {
521
+ namespace index {
522
+ type Request = object;
523
+ type Response = RevizaResponseData<DataCollection<number, DocumentData> | null>;
524
+ }
525
+ namespace store {
526
+ type Request = DocumentCreatePayload;
527
+ type Response = RevizaResponseData<DocumentData>;
528
+ }
529
+ namespace destroy {
530
+ type Request = object;
531
+ type Response = RevizaResponseData<null>;
532
+ }
533
+ namespace update {
534
+ type Request = DocumentUpdatePayload;
535
+ type Response = RevizaResponseData<DocumentData | null>;
536
+ }
537
+ namespace download {
538
+ type Request = object;
539
+ type Response = object;
540
+ }
541
+ }
542
+ export declare const RevisionIssueController: {
543
+ readonly getForCategory: ActionWithMethods<{
544
+ category: string | number;
545
+ }, string>;
546
+ readonly index: ActionWithMethods<{
547
+ category: string | number;
548
+ facility: string | number;
549
+ revision: string | number;
550
+ }, string>;
551
+ readonly show: ActionWithMethods<{
552
+ category: string | number;
553
+ facility: string | number;
554
+ revision: string | number;
555
+ issue: string | number;
556
+ }, string>;
557
+ readonly destroy: ActionWithMethods<{
558
+ category: string | number;
559
+ facility: string | number;
560
+ revision: string | number;
561
+ issue: string | number;
562
+ }, string>;
563
+ };
564
+ export declare namespace RevisionIssueController {
565
+ namespace getForCategory {
566
+ type Request = object;
567
+ type Response = RevizaResponseData<DataCollection<number, RevisionIssueData> | null>;
568
+ }
569
+ namespace index {
570
+ type Request = object;
571
+ type Response = RevizaResponseData<DataCollection<number, RevisionIssueData> | null>;
572
+ }
573
+ namespace show {
574
+ type Request = object;
575
+ type Response = RevizaResponseData<RevisionIssueData | null>;
576
+ }
577
+ namespace destroy {
578
+ type Request = object;
579
+ type Response = RevizaResponseData<null>;
580
+ }
581
+ }
582
+ export type RouteDefinition = {
583
+ url: string;
584
+ method: 'get' | 'post' | 'put' | 'patch' | 'delete';
585
+ };
586
+ export type RouteOptions = {
587
+ query?: QueryParams;
588
+ };
589
+ export type RouteParams = Record<string, string | number>;
590
+ export declare const SearchController: {
591
+ readonly search: ActionWithMethods<undefined, string>;
592
+ };
593
+ export declare namespace SearchController {
594
+ namespace search {
595
+ type Request = object;
596
+ type Response = RevizaResponseData<DataCollection<number, SearchData>>;
597
+ }
598
+ }
599
+ export declare const UserController: {
600
+ readonly organizationUsers: ActionWithMethods<{
601
+ organization: string | number;
602
+ }, string>;
603
+ readonly invite: ActionWithMethods<{
604
+ organization: string | number;
605
+ }, string>;
606
+ readonly destroy: ActionWithMethods<{
607
+ organization: string | number;
608
+ user: string | number;
609
+ }, string>;
610
+ };
611
+ export declare namespace UserController {
612
+ namespace organizationUsers {
613
+ type Request = object;
614
+ type Response = RevizaResponseData<DataCollection<number, UserData>>;
615
+ }
616
+ namespace invite {
617
+ type Request = InvitationPayload;
618
+ type Response = RevizaResponseData<null>;
619
+ }
620
+ namespace destroy {
621
+ type Request = object;
622
+ type Response = RevizaResponseData<null>;
623
+ }
624
+ }
625
+ export declare function buildUrl(path: string, params?: RouteParams, options?: RouteOptions): string;
626
+ export declare function createActionWithMethods<P extends RouteParams | undefined = undefined, M extends string = string>(routes: MethodRoute[]): ActionWithMethods<P, M>;
627
+ export {};