@authenty/authapi-types 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -3
- package/package.json +1 -1
- package/src/index.ts +6 -3
package/dist/index.d.ts
CHANGED
|
@@ -373,10 +373,10 @@ export declare namespace AuthApi {
|
|
|
373
373
|
endDate?: string;
|
|
374
374
|
};
|
|
375
375
|
type PaginationInfo = {
|
|
376
|
-
total
|
|
376
|
+
total?: number;
|
|
377
377
|
page: number;
|
|
378
378
|
itemsPerPage: number;
|
|
379
|
-
totalPages
|
|
379
|
+
totalPages?: number;
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
@@ -408,7 +408,10 @@ export declare namespace AuthApi {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
namespace users {
|
|
411
|
-
type GET =
|
|
411
|
+
type GET = {
|
|
412
|
+
users: objects.LocalUser[];
|
|
413
|
+
pagination: auxiliarTypes.PaginationInfo;
|
|
414
|
+
};
|
|
412
415
|
}
|
|
413
416
|
namespace user {
|
|
414
417
|
type POST = objects.LocalUser;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -421,10 +421,10 @@ export namespace AuthApi {
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
export type PaginationInfo = {
|
|
424
|
-
total
|
|
424
|
+
total?: number; //quando undefined, considerar "de muitos"
|
|
425
425
|
page: number;
|
|
426
426
|
itemsPerPage: number;
|
|
427
|
-
totalPages
|
|
427
|
+
totalPages?: number;//quando undefined, considerar "de muitos"
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
|
|
@@ -455,7 +455,10 @@ export namespace AuthApi {
|
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
export namespace users {
|
|
458
|
-
export type GET =
|
|
458
|
+
export type GET = {
|
|
459
|
+
users: objects.LocalUser[],
|
|
460
|
+
pagination: auxiliarTypes.PaginationInfo
|
|
461
|
+
};
|
|
459
462
|
}
|
|
460
463
|
|
|
461
464
|
export namespace user {
|