@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 CHANGED
@@ -373,10 +373,10 @@ export declare namespace AuthApi {
373
373
  endDate?: string;
374
374
  };
375
375
  type PaginationInfo = {
376
- total: number;
376
+ total?: number;
377
377
  page: number;
378
378
  itemsPerPage: number;
379
- totalPages: number;
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 = objects.LocalUser[];
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authenty/authapi-types",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Shared types for Authenty API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -421,10 +421,10 @@ export namespace AuthApi {
421
421
  }
422
422
 
423
423
  export type PaginationInfo = {
424
- total: number;
424
+ total?: number; //quando undefined, considerar "de muitos"
425
425
  page: number;
426
426
  itemsPerPage: number;
427
- totalPages: number;
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 = objects.LocalUser[];
458
+ export type GET = {
459
+ users: objects.LocalUser[],
460
+ pagination: auxiliarTypes.PaginationInfo
461
+ };
459
462
  }
460
463
 
461
464
  export namespace user {