@escapenavigator/utils 1.10.20 → 1.10.24

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.
@@ -1,8 +1,8 @@
1
- export declare type OptionsType<T> = Array<{
1
+ export type OptionsType<T> = Array<{
2
2
  key: T;
3
3
  content: any;
4
4
  }>;
5
- declare type ConvertToOptions = <T extends {
5
+ type ConvertToOptions = <T extends {
6
6
  id: string | number;
7
7
  [field: string]: any;
8
8
  }>(data: T[]) => Array<{
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  increase: number;
3
3
  increaseType: 'fixed' | 'percent' | 'no';
4
4
  sum: number;
@@ -1,5 +1,5 @@
1
1
  import { QuestroomCancelationTypeEnum } from '@escapenavigator/types/dist/questroom/enum/questroom-cancelation-type.enum';
2
- declare type Props = {
2
+ type Props = {
3
3
  utcDate: string;
4
4
  minHoursForFreeCanceling: number;
5
5
  cancelationRule: QuestroomCancelationTypeEnum;
@@ -1,7 +1,7 @@
1
1
  import { OrderCancelReasonEnum } from '@escapenavigator/types/dist/order/enum/order-cancel-reson.enum';
2
2
  import { QuestroomCancelationTypeEnum } from '@escapenavigator/types/dist/questroom/enum/questroom-cancelation-type.enum';
3
3
  import { TransactionTypeEnum } from '@escapenavigator/types/dist/transaction/enum/transaction-type.enum';
4
- declare type Props = {
4
+ type Props = {
5
5
  date: string;
6
6
  minHoursForFreeCanceling: number;
7
7
  minHoursForFullFine: number;
@@ -1,5 +1,5 @@
1
1
  import { AxiosError } from 'axios';
2
- declare type ErrorData = {
2
+ type ErrorData = {
3
3
  errorId: string;
4
4
  application: string;
5
5
  errorCode: string;
@@ -11,7 +11,7 @@ export declare enum ErrorType {
11
11
  BUSINESS = "BUSINESS",
12
12
  INTERNAL = "INTERNAL"
13
13
  }
14
- export declare type ServiceError = {
14
+ export type ServiceError = {
15
15
  code: string;
16
16
  message: string;
17
17
  errorType: ErrorType;
@@ -1,5 +1,5 @@
1
1
  import { QuestroomCancelationTypeEnum } from '@escapenavigator/types/dist/questroom/enum/questroom-cancelation-type.enum';
2
- declare type Props = {
2
+ type Props = {
3
3
  date: string;
4
4
  time: string;
5
5
  minHoursForFreeCanceling: number;
@@ -1,6 +1,6 @@
1
1
  import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
2
2
  import { SlotRO } from '@escapenavigator/types/dist/slot/slot.ro';
3
- declare type Props = {
3
+ type Props = {
4
4
  slot: any;
5
5
  order?: OrderRO;
6
6
  };
package/dist/tz-date.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- declare type Timezone = string;
2
- declare type ToUTC = {
1
+ type Timezone = string;
2
+ type ToUTC = {
3
3
  timeZone: Timezone;
4
4
  date: string | Date;
5
5
  time?: string;
6
6
  offset?: number;
7
7
  };
8
- declare type ToZoned = {
8
+ type ToZoned = {
9
9
  timeZone: Timezone;
10
10
  date: string;
11
11
  offset?: number;
@@ -1,5 +1,5 @@
1
1
  import { PromocodeRO } from '@escapenavigator/types/dist/promocode/promocode.ro';
2
- declare type Cert = {
2
+ type Cert = {
3
3
  questroomId?: never;
4
4
  players?: never;
5
5
  hasCertificates?: never;
@@ -7,7 +7,7 @@ declare type Cert = {
7
7
  timeZone: string;
8
8
  type: 'certificate';
9
9
  };
10
- declare type Order = {
10
+ type Order = {
11
11
  questroomId: number;
12
12
  players: number;
13
13
  hasCertificates: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/utils",
3
- "version": "1.10.20",
3
+ "version": "1.10.24",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -14,7 +14,7 @@
14
14
  "test": "jest"
15
15
  },
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.10.19",
17
+ "@escapenavigator/types": "^1.10.23",
18
18
  "axios": "^0.21.4",
19
19
  "class-transformer": "^0.5.1",
20
20
  "class-validator": "^0.13.2",
@@ -55,5 +55,5 @@
55
55
  "node_modules"
56
56
  ]
57
57
  },
58
- "gitHead": "d9d5696eda348006ef4c37fc7c2280590e2a128a"
58
+ "gitHead": "8a9bf10098c7cf81c6f6eacde65dd0ef2a5def6f"
59
59
  }