@ibiliaze/global-vars 1.146.0 → 1.147.0

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.
@@ -814,6 +814,9 @@ export interface StaffBase<Id, TDate> {
814
814
  createdAt?: TDate;
815
815
  updatedAt?: TDate;
816
816
  }
817
+ export type StaffTypeWithPopulatedRolesBase<Id, TDate> = StaffBase<Id, TDate> & {
818
+ populatedRoles: RoleBase<Id, TDate>[];
819
+ };
817
820
  export interface UserTokenBase<Id> {
818
821
  _id?: Id;
819
822
  token: string;
@@ -1,4 +1,4 @@
1
- import type { StaffBase } from '../inputsDefault';
1
+ import type { StaffBase, StaffTypeWithPopulatedRolesBase } from '../inputsDefault';
2
2
  export declare const staffRoleDefs: <TId, TDate>() => readonly [{
3
3
  readonly method: "post";
4
4
  readonly path: "/staff/admin";
@@ -82,7 +82,7 @@ export declare const staffRoleDefs: <TId, TDate>() => readonly [{
82
82
  readonly role: "getStaff";
83
83
  readonly name: "Get current staff";
84
84
  readonly response_200: {
85
- staff: StaffBase<TId, TDate>;
85
+ staff: StaffTypeWithPopulatedRolesBase<TId, TDate>;
86
86
  };
87
87
  readonly response_500: {
88
88
  message: string;
@@ -2232,7 +2232,7 @@ export declare const apis: <TId, TDate>() => readonly [{
2232
2232
  readonly role: "getStaff";
2233
2233
  readonly name: "Get current staff";
2234
2234
  readonly response_200: {
2235
- staff: import("./inputsDefault").StaffBase<TId_23, TDate_23>;
2235
+ staff: import("./inputsDefault").StaffTypeWithPopulatedRolesBase<TId_23, TDate_23>;
2236
2236
  };
2237
2237
  readonly response_500: {
2238
2238
  message: string;
@@ -4831,7 +4831,7 @@ declare const allApis: readonly [{
4831
4831
  readonly role: "getStaff";
4832
4832
  readonly name: "Get current staff";
4833
4833
  readonly response_200: {
4834
- staff: import("./inputsDefault").StaffBase<TId_22, TDate_22>;
4834
+ staff: import("./inputsDefault").StaffTypeWithPopulatedRolesBase<TId_22, TDate_22>;
4835
4835
  };
4836
4836
  readonly response_500: {
4837
4837
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.146.0",
3
+ "version": "1.147.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  "scripts": {
23
23
  "build": "tsc",
24
24
  "pub": "npm publish --access public",
25
- "git": "git add .; git commit -m 'changes'; git tag -a v1.146.0 -m 'v1.146.0'; git push origin v1.146.0; git push",
25
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.147.0 -m 'v1.147.0'; git push origin v1.147.0; git push",
26
26
  "push": "npm run build; npm run git; npm run pub"
27
27
  },
28
28
  "author": "Ibi Hasanli",