@escapenavigator/services 1.6.75 → 1.6.76
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/api/agregator-api/find-city-by-slug.d.ts +5 -1
- package/dist/api/agregator-api/find-city-by-slug.js +7 -4
- package/dist/api/reviews-social-api/index.d.ts +2 -0
- package/dist/api/reviews-social-api/index.js +2 -0
- package/dist/api/reviews-social-api/update.d.ts +10 -0
- package/dist/api/reviews-social-api/update.js +12 -0
- package/package.json +4 -4
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { AgregatorCityRO } from '@escapenavigator/types/dist/agregator/agregator-city.ro';
|
|
2
|
+
import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
|
|
2
3
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
declare type ParamsData =
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
slug: string;
|
|
6
|
+
country: CountriesEnum;
|
|
7
|
+
};
|
|
4
8
|
declare type ResponseData = AgregatorCityRO;
|
|
5
9
|
export declare const findCityBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
10
|
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.findCityBySlug = void 0;
|
|
4
|
-
var findCityBySlug = function (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var findCityBySlug = function (_a) {
|
|
5
|
+
var country = _a.country, slug = _a.slug;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/agregator/city/slug/".concat(country, "/").concat(slug),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
8
11
|
exports.findCityBySlug = findCityBySlug;
|
|
@@ -5,6 +5,7 @@ import { queryAdmin } from './query-admin';
|
|
|
5
5
|
import { queryProfile } from './query-profile';
|
|
6
6
|
import { remove } from './remove';
|
|
7
7
|
import { unapprove } from './unapprove';
|
|
8
|
+
import { update } from './update';
|
|
8
9
|
declare type ApiDeclaration = {
|
|
9
10
|
create: typeof create;
|
|
10
11
|
remove: typeof remove;
|
|
@@ -13,6 +14,7 @@ declare type ApiDeclaration = {
|
|
|
13
14
|
unapprove: typeof unapprove;
|
|
14
15
|
queryAdmin: typeof queryAdmin;
|
|
15
16
|
answer: typeof answer;
|
|
17
|
+
update: typeof update;
|
|
16
18
|
};
|
|
17
19
|
export declare const socialReviewsApiDeclaration: ApiDeclaration;
|
|
18
20
|
export {};
|
|
@@ -8,8 +8,10 @@ var query_admin_1 = require("./query-admin");
|
|
|
8
8
|
var query_profile_1 = require("./query-profile");
|
|
9
9
|
var remove_1 = require("./remove");
|
|
10
10
|
var unapprove_1 = require("./unapprove");
|
|
11
|
+
var update_1 = require("./update");
|
|
11
12
|
exports.socialReviewsApiDeclaration = {
|
|
12
13
|
create: create_1.create,
|
|
14
|
+
update: update_1.update,
|
|
13
15
|
remove: remove_1.remove,
|
|
14
16
|
queryAdmin: query_admin_1.queryAdmin,
|
|
15
17
|
approve: approve_1.approve,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SocialReviewRO } from '@escapenavigator/types/dist/review/social-review.ro';
|
|
2
|
+
import { UpdateSocialReviewDto } from '@escapenavigator/types/dist/review/update-social-review.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateSocialReviewDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = SocialReviewRO;
|
|
9
|
+
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update = void 0;
|
|
4
|
+
var update = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/reviews/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.76",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "7dc365de4b7b3d5221de7b073cfa17549a943399",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.71",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.73",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1",
|