@escapenavigator/services 1.9.0 → 1.9.1
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/reviews-social-api/create-emotion.d.ts +9 -0
- package/dist/api/reviews-social-api/create-emotion.js +12 -0
- package/dist/api/reviews-social-api/{create.d.ts → create-review.d.ts} +1 -1
- package/dist/api/reviews-social-api/{create.js → create-review.js} +4 -4
- package/dist/api/reviews-social-api/index.d.ts +8 -4
- package/dist/api/reviews-social-api/index.js +8 -4
- package/dist/api/reviews-social-api/remove-emotion.d.ts +7 -0
- package/dist/api/reviews-social-api/remove-emotion.js +8 -0
- package/dist/api/reviews-social-api/{remove.d.ts → remove-review.d.ts} +1 -1
- package/dist/api/reviews-social-api/remove-review.js +8 -0
- package/package.json +4 -4
- package/dist/api/reviews-social-api/remove.js +0 -8
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateEmotionDto } from '@escapenavigator/types/dist/review/emotions/create-emotion.dto';
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateEmotionDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = SuccessRO;
|
|
8
|
+
export declare const createEmotion: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createEmotion = void 0;
|
|
4
|
+
var createEmotion = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/reviews/emotion',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createEmotion = createEmotion;
|
|
@@ -5,5 +5,5 @@ declare type ParamsData = {
|
|
|
5
5
|
data: CreateSocialReviewDto;
|
|
6
6
|
};
|
|
7
7
|
declare type ResponseData = SocialReviewRO;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const createReview: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.createReview = void 0;
|
|
4
|
+
var createReview = function (_a) {
|
|
5
5
|
var data = _a.data;
|
|
6
6
|
return ({
|
|
7
|
-
url: '/reviews',
|
|
7
|
+
url: '/reviews/review',
|
|
8
8
|
method: 'POST',
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.createReview = createReview;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { answer } from './answer';
|
|
2
2
|
import { approve } from './approve';
|
|
3
|
-
import {
|
|
3
|
+
import { createEmotion } from './create-emotion';
|
|
4
|
+
import { createReview } from './create-review';
|
|
4
5
|
import { queryAdmin } from './query-admin';
|
|
5
6
|
import { queryProfile } from './query-profile';
|
|
6
|
-
import {
|
|
7
|
+
import { removeEmotion } from './remove-emotion';
|
|
8
|
+
import { removeReview } from './remove-review';
|
|
7
9
|
import { unapprove } from './unapprove';
|
|
8
10
|
import { update } from './update';
|
|
9
11
|
declare type ApiDeclaration = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
createReview: typeof createReview;
|
|
13
|
+
createEmotion: typeof createEmotion;
|
|
14
|
+
removeReview: typeof removeReview;
|
|
15
|
+
removeEmotion: typeof removeEmotion;
|
|
12
16
|
approve: typeof approve;
|
|
13
17
|
queryProfile: typeof queryProfile;
|
|
14
18
|
unapprove: typeof unapprove;
|
|
@@ -3,16 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.socialReviewsApiDeclaration = void 0;
|
|
4
4
|
var answer_1 = require("./answer");
|
|
5
5
|
var approve_1 = require("./approve");
|
|
6
|
-
var
|
|
6
|
+
var create_emotion_1 = require("./create-emotion");
|
|
7
|
+
var create_review_1 = require("./create-review");
|
|
7
8
|
var query_admin_1 = require("./query-admin");
|
|
8
9
|
var query_profile_1 = require("./query-profile");
|
|
9
|
-
var
|
|
10
|
+
var remove_emotion_1 = require("./remove-emotion");
|
|
11
|
+
var remove_review_1 = require("./remove-review");
|
|
10
12
|
var unapprove_1 = require("./unapprove");
|
|
11
13
|
var update_1 = require("./update");
|
|
12
14
|
exports.socialReviewsApiDeclaration = {
|
|
13
|
-
|
|
15
|
+
createReview: create_review_1.createReview,
|
|
16
|
+
createEmotion: create_emotion_1.createEmotion,
|
|
17
|
+
removeEmotion: remove_emotion_1.removeEmotion,
|
|
14
18
|
update: update_1.update,
|
|
15
|
-
|
|
19
|
+
removeReview: remove_review_1.removeReview,
|
|
16
20
|
queryAdmin: query_admin_1.queryAdmin,
|
|
17
21
|
approve: approve_1.approve,
|
|
18
22
|
queryProfile: query_profile_1.queryProfile,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID партнера */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = SuccessRO;
|
|
6
|
+
export declare const removeEmotion: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeEmotion = void 0;
|
|
4
|
+
var removeEmotion = function (id) { return ({
|
|
5
|
+
url: "/reviews/emotions/".concat(id),
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
}); };
|
|
8
|
+
exports.removeEmotion = removeEmotion;
|
|
@@ -3,5 +3,5 @@ import { ApiMethodDeclaration } from '..';
|
|
|
3
3
|
/** ID партнера */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
5
|
declare type ResponseData = SocialReviewRO;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const removeReview: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
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": "5a66ea93882c9e8b72fa520a779e0c056a15d996",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.9.
|
|
18
|
-
"@escapenavigator/utils": "^1.9.
|
|
17
|
+
"@escapenavigator/types": "^1.9.1",
|
|
18
|
+
"@escapenavigator/utils": "^1.9.1",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|