@@ -153,23 +153,27 @@ export const useLogin = (
153
153
invalidateQueries : [ 'getSession' ] ,
154
154
...args ,
155
155
} ) ;
156
+
156
157
export const useRegister = (
157
158
args ?: UseAsyncOptions < IntlayerAPI [ 'auth' ] [ 'register' ] >
158
159
) =>
159
160
useAppAsync ( 'register' , useIntlayerAuth ( ) . auth . register , {
160
161
invalidateQueries : [ 'getSession' ] ,
161
162
...args ,
162
163
} ) ;
164
+
163
165
export const useLogout = (
164
166
args ?: UseAsyncOptions < IntlayerAPI [ 'auth' ] [ 'logout' ] >
165
167
) =>
166
168
useAppAsync ( 'logout' , useIntlayerAuth ( ) . auth . logout , {
167
169
invalidateQueries : [ 'getSession' ] ,
168
170
...args ,
169
171
} ) ;
172
+
170
173
export const useChangePassword = (
171
174
args ?: UseAsyncOptions < IntlayerAPI [ 'auth' ] [ 'changePassword' ] >
172
175
) => useAppAsync ( 'changePassword' , useIntlayerAuth ( ) . auth . changePassword , args ) ;
176
+
173
177
export const useAskResetPassword = (
174
178
args ?: UseAsyncOptions < IntlayerAPI [ 'auth' ] [ 'askResetPassword' ] >
175
179
) =>
@@ -179,6 +183,15 @@ export const useAskResetPassword = (
179
183
args
180
184
) ;
181
185
186
+ export const useDefineNewPassword = (
187
+ args ?: UseAsyncOptions < IntlayerAPI [ 'auth' ] [ 'defineNewPassword' ] >
188
+ ) =>
189
+ useAppAsync (
190
+ 'defineNewPassword' ,
191
+ useIntlayerAuth ( ) . auth . defineNewPassword ,
192
+ args
193
+ ) ;
194
+
182
195
export const useCheckIfUserHasPassword = (
183
196
args ?: UseAsyncOptions < IntlayerAPI [ 'auth' ] [ 'checkIfUserHasPassword' ] >
184
197
) =>
@@ -190,6 +203,7 @@ export const useCheckIfUserHasPassword = (
190
203
requireUser : true ,
191
204
}
192
205
) ;
206
+
193
207
export const useVerifyEmail = (
194
208
args ?: UseAsyncOptions < IntlayerAPI [ 'auth' ] [ 'verifyEmail' ] >
195
209
) => useAppAsync ( 'verifyEmail' , useIntlayerAuth ( ) . auth . verifyEmail , args ) ;
@@ -225,20 +239,23 @@ export const useGetUsers = (
225
239
requireUser : true ,
226
240
}
227
241
) ;
242
+
228
243
export const useCreateUser = (
229
244
args ?: UseAsyncOptions < IntlayerAPI [ 'user' ] [ 'createUser' ] >
230
245
) =>
231
246
useAppAsync ( 'createUser' , useIntlayerAuth ( ) . user . createUser , {
232
247
invalidateQueries : [ 'getUsers' ] ,
233
248
...args ,
234
249
} ) ;
250
+
235
251
export const useUpdateUser = (
236
252
args ?: UseAsyncOptions < IntlayerAPI [ 'user' ] [ 'updateUser' ] >
237
253
) =>
238
254
useAppAsync ( 'updateUser' , useIntlayerAuth ( ) . user . updateUser , {
239
255
invalidateQueries : [ 'getSession' ] ,
240
256
...args ,
241
257
} ) ;
258
+
242
259
export const useDeleteUser = (
243
260
args ?: UseAsyncOptions < IntlayerAPI [ 'user' ] [ 'deleteUser' ] >
244
261
) =>
@@ -282,6 +299,7 @@ export const useAddOrganization = (
282
299
...args ,
283
300
}
284
301
) ;
302
+
285
303
export const useUpdateOrganization = (
286
304
args ?: UseAsyncOptions < IntlayerAPI [ 'organization' ] [ 'updateOrganization' ] >
287
305
) =>
@@ -293,6 +311,7 @@ export const useUpdateOrganization = (
293
311
...args ,
294
312
}
295
313
) ;
314
+
296
315
export const useUpdateOrganizationMembers = (
297
316
args ?: UseAsyncOptions <
298
317
IntlayerAPI [ 'organization' ] [ 'updateOrganizationMembers' ]
@@ -306,6 +325,7 @@ export const useUpdateOrganizationMembers = (
306
325
...args ,
307
326
}
308
327
) ;
328
+
309
329
export const useAddOrganizationMember = (
310
330
args ?: UseAsyncOptions < IntlayerAPI [ 'organization' ] [ 'addOrganizationMember' ] >
311
331
) =>
@@ -317,6 +337,7 @@ export const useAddOrganizationMember = (
317
337
...args ,
318
338
}
319
339
) ;
340
+
320
341
export const useDeleteOrganization = (
321
342
args ?: UseAsyncOptions < IntlayerAPI [ 'organization' ] [ 'deleteOrganization' ] >
322
343
) =>
@@ -328,6 +349,7 @@ export const useDeleteOrganization = (
328
349
...args ,
329
350
}
330
351
) ;
352
+
331
353
export const useSelectOrganization = (
332
354
args ?: UseAsyncOptions < IntlayerAPI [ 'organization' ] [ 'selectOrganization' ] >
333
355
) =>
@@ -339,6 +361,7 @@ export const useSelectOrganization = (
339
361
...args ,
340
362
}
341
363
) ;
364
+
342
365
export const useUnselectOrganization = (
343
366
args ?: UseAsyncOptions < IntlayerAPI [ 'organization' ] [ 'unselectOrganization' ] >
344
367
) =>
@@ -375,20 +398,23 @@ export const useGetProjects = (
375
398
requireOrganization : true ,
376
399
}
377
400
) ;
401
+
378
402
export const useAddProject = (
379
403
args ?: UseAsyncOptions < IntlayerAPI [ 'project' ] [ 'addProject' ] >
380
404
) =>
381
405
useAppAsync ( 'addProject' , useIntlayerAuth ( ) . project . addProject , {
382
406
invalidateQueries : [ 'getProjects' ] ,
383
407
...args ,
384
408
} ) ;
409
+
385
410
export const useUpdateProject = (
386
411
args ?: UseAsyncOptions < IntlayerAPI [ 'project' ] [ 'updateProject' ] >
387
412
) =>
388
413
useAppAsync ( 'updateProject' , useIntlayerAuth ( ) . project . updateProject , {
389
414
invalidateQueries : [ 'getSession' ] ,
390
415
...args ,
391
416
} ) ;
417
+
392
418
export const useUpdateProjectMembers = (
393
419
args ?: UseAsyncOptions < IntlayerAPI [ 'project' ] [ 'updateProjectMembers' ] >
394
420
) =>
@@ -400,41 +426,47 @@ export const useUpdateProjectMembers = (
400
426
...args ,
401
427
}
402
428
) ;
429
+
403
430
export const useDeleteProject = (
404
431
args ?: UseAsyncOptions < IntlayerAPI [ 'project' ] [ 'deleteProject' ] >
405
432
) =>
406
433
useAppAsync ( 'deleteProject' , useIntlayerAuth ( ) . project . deleteProject , {
407
434
invalidateQueries : [ 'getProjects' , 'getSession' ] ,
408
435
...args ,
409
436
} ) ;
437
+
410
438
export const useSelectProject = (
411
439
args ?: UseAsyncOptions < IntlayerAPI [ 'project' ] [ 'selectProject' ] >
412
440
) =>
413
441
useAppAsync ( 'selectProject' , useIntlayerAuth ( ) . project . selectProject , {
414
442
invalidateQueries : [ 'getSession' ] ,
415
443
...args ,
416
444
} ) ;
445
+
417
446
export const useUnselectProject = (
418
447
args ?: UseAsyncOptions < IntlayerAPI [ 'project' ] [ 'unselectProject' ] >
419
448
) =>
420
449
useAppAsync ( 'unselectProject' , useIntlayerAuth ( ) . project . unselectProject , {
421
450
invalidateQueries : [ 'getSession' ] ,
422
451
...args ,
423
452
} ) ;
453
+
424
454
export const useAddNewAccessKey = (
425
455
args ?: UseAsyncOptions < IntlayerAPI [ 'project' ] [ 'addNewAccessKey' ] >
426
456
) =>
427
457
useAppAsync ( 'addNewAccessKey' , useIntlayerAuth ( ) . project . addNewAccessKey , {
428
458
invalidateQueries : [ 'getSession' ] ,
429
459
...args ,
430
460
} ) ;
461
+
431
462
export const useDeleteAccessKey = (
432
463
args ?: UseAsyncOptions < IntlayerAPI [ 'project' ] [ 'deleteAccessKey' ] >
433
464
) =>
434
465
useAppAsync ( 'deleteAccessKey' , useIntlayerAuth ( ) . project . deleteAccessKey , {
435
466
invalidateQueries : [ 'getSession' ] ,
436
467
...args ,
437
468
} ) ;
469
+
438
470
export const useRefreshAccessKey = (
439
471
args ?: UseAsyncOptions < IntlayerAPI [ 'project' ] [ 'refreshAccessKey' ] >
440
472
) =>
@@ -511,6 +543,7 @@ export const useGetDictionary = (
511
543
requireProject : true ,
512
544
}
513
545
) ;
546
+
514
547
export const useAddDictionary = (
515
548
args ?: UseAsyncOptions < IntlayerAPI [ 'dictionary' ] [ 'addDictionary' ] >
516
549
) =>
@@ -534,6 +567,7 @@ export const usePushDictionaries = (
534
567
...args ,
535
568
}
536
569
) ;
570
+
537
571
export const useUpdateDictionary = (
538
572
args ?: UseAsyncOptions < IntlayerAPI [ 'dictionary' ] [ 'updateDictionary' ] >
539
573
) =>
@@ -545,6 +579,7 @@ export const useUpdateDictionary = (
545
579
...args ,
546
580
}
547
581
) ;
582
+
548
583
export const useDeleteDictionary = (
549
584
args ?: UseAsyncOptions < IntlayerAPI [ 'dictionary' ] [ 'deleteDictionary' ] >
550
585
) =>
@@ -585,20 +620,23 @@ export const useGetTags = (
585
620
requireOrganization : true ,
586
621
}
587
622
) ;
623
+
588
624
export const useAddTag = (
589
625
args ?: UseAsyncOptions < IntlayerAPI [ 'tag' ] [ 'addTag' ] >
590
626
) =>
591
627
useAppAsync ( 'addTag' , useIntlayerAuth ( ) . tag . addTag , {
592
628
invalidateQueries : [ 'getTags' ] ,
593
629
...args ,
594
630
} ) ;
631
+
595
632
export const useUpdateTag = (
596
633
args ?: UseAsyncOptions < IntlayerAPI [ 'tag' ] [ 'updateTag' ] >
597
634
) =>
598
635
useAppAsync ( 'updateTag' , useIntlayerAuth ( ) . tag . updateTag , {
599
636
invalidateQueries : [ 'getTags' ] ,
600
637
...args ,
601
638
} ) ;
639
+
602
640
export const useDeleteTag = (
603
641
args ?: UseAsyncOptions < IntlayerAPI [ 'tag' ] [ 'deleteTag' ] >
604
642
) =>
0 commit comments