@escapenavigator/utils 1.10.19 → 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.
- package/dist/convert-to-options.d.ts +2 -2
- package/dist/get-increase-by-type.d.ts +1 -1
- package/dist/get-order-cancelation-date/index.d.ts +1 -1
- package/dist/get-order-cancelation-state/index.d.ts +1 -1
- package/dist/get-service-error.d.ts +2 -2
- package/dist/get-slot-cancelation-date/index.d.ts +1 -1
- package/dist/round-decimal-amount.d.ts +1 -0
- package/dist/round-decimal-amount.js +5 -0
- package/dist/serialize-slot.d.ts +1 -1
- package/dist/tz-date.d.ts +3 -3
- package/dist/validate-promocode.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type OptionsType<T> = Array<{
|
|
2
2
|
key: T;
|
|
3
3
|
content: any;
|
|
4
4
|
}>;
|
|
5
|
-
|
|
5
|
+
type ConvertToOptions = <T extends {
|
|
6
6
|
id: string | number;
|
|
7
7
|
[field: string]: any;
|
|
8
8
|
}>(data: T[]) => Array<{
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
14
|
+
export type ServiceError = {
|
|
15
15
|
code: string;
|
|
16
16
|
message: string;
|
|
17
17
|
errorType: ErrorType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const roundDecimalAmount: (amount: number) => number;
|
package/dist/serialize-slot.d.ts
CHANGED
package/dist/tz-date.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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": "
|
|
58
|
+
"gitHead": "8a9bf10098c7cf81c6f6eacde65dd0ef2a5def6f"
|
|
59
59
|
}
|