@ibiliaze/global-vars 1.176.0 → 1.177.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.
@@ -755,6 +755,9 @@ export interface ItemBase<Id, TDate> {
755
755
  createdAt?: TDate;
756
756
  updatedAt?: TDate;
757
757
  }
758
+ export type ItemWithTimeLeftType<TId, TDate> = ItemBase<TId, TDate> & {
759
+ timeLeft: number;
760
+ };
758
761
  export interface SaleBase<Id, TDate> {
759
762
  _id?: Id;
760
763
  userId: Id;
@@ -1,13 +1,11 @@
1
- import type { ItemBase } from '../inputsDefault';
1
+ import type { ItemWithTimeLeftType } from '../inputsDefault';
2
2
  export declare const itemRoleDefs: <TId, TDate>() => readonly [{
3
3
  readonly method: "get";
4
4
  readonly path: "/item";
5
5
  readonly role: "getItems";
6
6
  readonly name: "Get items";
7
7
  readonly response_200: {
8
- itemsWithTimeLeft: (ItemBase<TId, TDate> & {
9
- timeLeft: number;
10
- })[];
8
+ itemsWithTimeLeft: ItemWithTimeLeftType<TId, TDate>[];
11
9
  count: number;
12
10
  };
13
11
  readonly response_500: {
@@ -504,9 +504,7 @@ export declare const apis: <TId, TDate>() => readonly [{
504
504
  readonly role: "getItems";
505
505
  readonly name: "Get items";
506
506
  readonly response_200: {
507
- itemsWithTimeLeft: (import("./inputsDefault").ItemBase<TId_5, TDate_5> & {
508
- timeLeft: number;
509
- })[];
507
+ itemsWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftType<TId_5, TDate_5>[];
510
508
  count: number;
511
509
  };
512
510
  readonly response_500: {
@@ -3111,9 +3109,7 @@ declare const allApis: readonly [{
3111
3109
  readonly role: "getItems";
3112
3110
  readonly name: "Get items";
3113
3111
  readonly response_200: {
3114
- itemsWithTimeLeft: (import("./inputsDefault").ItemBase<TId_4, TDate_4> & {
3115
- timeLeft: number;
3116
- })[];
3112
+ itemsWithTimeLeft: import("./inputsDefault").ItemWithTimeLeftType<TId_4, TDate_4>[];
3117
3113
  count: number;
3118
3114
  };
3119
3115
  readonly response_500: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiliaze/global-vars",
3
- "version": "1.176.0",
3
+ "version": "1.177.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.176.0 -m 'v1.176.0'; git push origin v1.176.0; git push",
25
+ "git": "git add .; git commit -m 'changes'; git tag -a v1.177.0 -m 'v1.177.0'; git push origin v1.177.0; git push",
26
26
  "push": "npm run build; npm run git; npm run pub"
27
27
  },
28
28
  "author": "Ibi Hasanli",