@escapenavigator/services 1.4.68 → 1.4.69
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,7 +1,7 @@
|
|
|
1
|
-
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
1
|
import { CheckUserTokendDto } from '@escapenavigator/types/dist/user/check-user-token.dto';
|
|
2
|
+
import { UserRO } from '@escapenavigator/types/dist/user/user.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = CheckUserTokendDto;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = UserRO;
|
|
6
6
|
export declare const checkToken: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
package/dist/utils/tz-date.js
CHANGED
|
@@ -19,7 +19,9 @@ var convertDateAndTimeToUTCString = function (_a) {
|
|
|
19
19
|
return (0, date_fns_1.addHours)((0, date_fns_tz_1.zonedTimeToUtc)(new Date("".concat(date, "T").concat(time)), timezone), offset).toISOString();
|
|
20
20
|
};
|
|
21
21
|
exports.convertDateAndTimeToUTCString = convertDateAndTimeToUTCString;
|
|
22
|
-
var convertDateAndTimeToOrderDate = function (props) {
|
|
22
|
+
var convertDateAndTimeToOrderDate = function (props) {
|
|
23
|
+
return (0, exports.convertDateAndTimeToUTCString)(props).split('.')[0];
|
|
24
|
+
};
|
|
23
25
|
exports.convertDateAndTimeToOrderDate = convertDateAndTimeToOrderDate;
|
|
24
26
|
var convertUTCDateToZonedDate = function (_a) {
|
|
25
27
|
var date = _a.date, timezone = _a.timezone, _b = _a.offset, offset = _b === void 0 ? 0 : _b, _c = _a.format, format = _c === void 0 ? 'dd.MM.yyyy, HH:mm' : _c, _d = _a.showTZ, showTZ = _d === void 0 ? false : _d;
|
|
@@ -29,5 +31,7 @@ var convertUTCDateToZonedDate = function (_a) {
|
|
|
29
31
|
return showTZ ? "".concat(res, " (").concat(timezone, ")") : res;
|
|
30
32
|
};
|
|
31
33
|
exports.convertUTCDateToZonedDate = convertUTCDateToZonedDate;
|
|
32
|
-
var convertOrderDateToZonedDate = function (props) {
|
|
34
|
+
var convertOrderDateToZonedDate = function (props) {
|
|
35
|
+
return (0, exports.convertUTCDateToZonedDate)(__assign(__assign({}, props), { date: "".concat(props.date, ".000Z") }));
|
|
36
|
+
};
|
|
33
37
|
exports.convertOrderDateToZonedDate = convertOrderDateToZonedDate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.69",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "73e657651a44988a3110789211c97aaae4c21db6",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.4.
|
|
17
|
+
"@escapenavigator/types": "^1.4.69",
|
|
18
18
|
"@paypal/react-paypal-js": "^7.8.3",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|