@escapenavigator/services 2.0.16 → 2.0.18
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/city-attractions-api/index.d.ts +10 -4
- package/dist/api/city-attractions-api/index.js +9 -0
- package/dist/api/city-people-api/index.d.ts +2 -2
- package/dist/api/city-player-api/index.d.ts +19 -2
- package/dist/api/city-player-api/index.js +29 -1
- package/dist/api/city-quest-api/index.d.ts +2 -2
- package/dist/api/profiles-api/index.d.ts +2 -0
- package/dist/api/profiles-api/index.js +2 -0
- package/dist/api/profiles-api/notification-chanel/test.d.ts +11 -0
- package/dist/api/profiles-api/notification-chanel/test.js +24 -0
- package/package.json +4 -4
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { AttractionTriageReportRO, TriageAttractionsDto } from '@escapenavigator/types/dist/city-attraction/attraction-triage';
|
|
1
2
|
import { CityAttractionRO } from '@escapenavigator/types/dist/city-attraction/city-attraction.ro';
|
|
2
3
|
import { CreateCityAttractionDto } from '@escapenavigator/types/dist/city-attraction/create-city-attraction.dto';
|
|
4
|
+
import { GenerateAttractionAudioDto } from '@escapenavigator/types/dist/city-attraction/generate-attraction-audio.dto';
|
|
5
|
+
import { GenerateAttractionAudioRO } from '@escapenavigator/types/dist/city-attraction/generate-attraction-audio.ro';
|
|
3
6
|
import { ModerateCityAttractionDto } from '@escapenavigator/types/dist/city-attraction/moderate-city-attraction.dto';
|
|
4
|
-
import { GenerateAttractionContentDto, UpsertCityAttractionLocaleDto } from '@escapenavigator/types/dist/city-attraction/upsert-city-attraction-locale.dto';
|
|
5
|
-
import { UpsertCityAttractionArtifactDto } from '@escapenavigator/types/dist/city-attraction/upsert-city-attraction-artifact.dto';
|
|
6
7
|
import { UpdateCityAttractionDto } from '@escapenavigator/types/dist/city-attraction/update-city-attraction.dto';
|
|
7
|
-
import {
|
|
8
|
+
import { UpsertCityAttractionArtifactDto } from '@escapenavigator/types/dist/city-attraction/upsert-city-attraction-artifact.dto';
|
|
9
|
+
import { GenerateAttractionContentDto, UpsertCityAttractionLocaleDto } from '@escapenavigator/types/dist/city-attraction/upsert-city-attraction-locale.dto';
|
|
10
|
+
import { GenerateAiCoverDto } from '@escapenavigator/types/dist/shared/ai-cover';
|
|
8
11
|
import { CityPipelineRunRO, StartCityPipelineDto } from '@escapenavigator/types/dist/shared/city-pipeline';
|
|
9
12
|
import { CityResearchDto, CityResearchReportRO } from '@escapenavigator/types/dist/shared/city-research';
|
|
10
|
-
import { GenerateAiCoverDto } from '@escapenavigator/types/dist/shared/ai-cover';
|
|
11
13
|
import { ContentBatchReportRO, GenerateContentBatchDto } from '@escapenavigator/types/dist/shared/content-batch';
|
|
12
14
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
13
15
|
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
@@ -32,6 +34,10 @@ export declare const cityAttractionsApiDeclaration: {
|
|
|
32
34
|
id: number;
|
|
33
35
|
data: GenerateAttractionContentDto;
|
|
34
36
|
}, CityAttractionRO>;
|
|
37
|
+
generateAudio: ApiMethodDeclaration<{
|
|
38
|
+
id: number;
|
|
39
|
+
data: GenerateAttractionAudioDto;
|
|
40
|
+
}, GenerateAttractionAudioRO>;
|
|
35
41
|
upsertLocale: ApiMethodDeclaration<{
|
|
36
42
|
id: number;
|
|
37
43
|
data: UpsertCityAttractionLocaleDto;
|
|
@@ -42,6 +42,14 @@ var generateContent = function (_a) {
|
|
|
42
42
|
data: data,
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var generateAudio = function (_a) {
|
|
46
|
+
var id = _a.id, data = _a.data;
|
|
47
|
+
return ({
|
|
48
|
+
url: "/admin/city-attractions/".concat(id, "/generate-audio"),
|
|
49
|
+
method: 'POST',
|
|
50
|
+
data: data,
|
|
51
|
+
});
|
|
52
|
+
};
|
|
45
53
|
var upsertLocale = function (_a) {
|
|
46
54
|
var id = _a.id, data = _a.data;
|
|
47
55
|
return ({
|
|
@@ -145,6 +153,7 @@ exports.cityAttractionsApiDeclaration = {
|
|
|
145
153
|
update: update,
|
|
146
154
|
moderate: moderate,
|
|
147
155
|
generateContent: generateContent,
|
|
156
|
+
generateAudio: generateAudio,
|
|
148
157
|
upsertLocale: upsertLocale,
|
|
149
158
|
replaceArtifacts: replaceArtifacts,
|
|
150
159
|
enrichWikidata: enrichWikidata,
|
|
@@ -2,11 +2,11 @@ import { CityPersonRO } from '@escapenavigator/types/dist/city-person/city-perso
|
|
|
2
2
|
import { CreateCityPersonDto } from '@escapenavigator/types/dist/city-person/create-city-person.dto';
|
|
3
3
|
import { UpdateCityPersonDto } from '@escapenavigator/types/dist/city-person/update-city-person.dto';
|
|
4
4
|
import { GeneratePersonContentDto, UpsertCityPersonLocaleDto } from '@escapenavigator/types/dist/city-person/upsert-city-person-locale.dto';
|
|
5
|
-
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
6
|
-
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
7
5
|
import { AutolinkDto, WikidataAutolinkReportRO } from '@escapenavigator/types/dist/city-person/wikidata-autolink';
|
|
8
6
|
import { GenerateAiCoverDto } from '@escapenavigator/types/dist/shared/ai-cover';
|
|
9
7
|
import { ContentBatchReportRO, GenerateContentBatchDto } from '@escapenavigator/types/dist/shared/content-batch';
|
|
8
|
+
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
9
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
10
10
|
import { EnrichWikidataDto, WikidataEnrichmentReportRO } from '@escapenavigator/types/dist/shared/wikidata-enrichment';
|
|
11
11
|
import { ApiMethodDeclaration } from '..';
|
|
12
12
|
export declare const cityPeopleApiDeclaration: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CityPlayerCatalogRO, CityPlayerGameRO, CityPlayerLoginRO, CityPlayerQuestPreviewRO, CityPlayerRequestCodeRO, CityPlayerRO, CityPlayerVerifyCodeRO } from '@escapenavigator/types/dist/openapi/city-player/city-player.ro';
|
|
2
|
+
import { CityPlayerAttractionsMapRO, CityPlayerPeopleRO, CityPlayerPersonDetailRO } from '@escapenavigator/types/dist/openapi/city-player/city-explore.ro';
|
|
2
3
|
import { CityPlayerAppleLoginDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-apple-login.dto';
|
|
3
|
-
import { CityPlayerFreeRouteRO } from '@escapenavigator/types/dist/openapi/city-player/free-route';
|
|
4
4
|
import { CityPlayerLoginDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-login.dto';
|
|
5
5
|
import { CityPlayerRequestCodeDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-request-code.dto';
|
|
6
6
|
import { CityPlayerVerifyCodeDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-verify-code.dto';
|
|
7
|
+
import { CityPlayerFreeRouteRO } from '@escapenavigator/types/dist/openapi/city-player/free-route';
|
|
7
8
|
import { ApiMethodDeclaration } from '..';
|
|
8
9
|
export declare const cityPlayerApiDeclaration: {
|
|
9
10
|
ping: ApiMethodDeclaration<void, {
|
|
@@ -24,7 +25,23 @@ export declare const cityPlayerApiDeclaration: {
|
|
|
24
25
|
}, CityPlayerVerifyCodeRO>;
|
|
25
26
|
me: ApiMethodDeclaration<void, CityPlayerRO>;
|
|
26
27
|
games: ApiMethodDeclaration<void, CityPlayerGameRO[]>;
|
|
27
|
-
catalog: ApiMethodDeclaration<void
|
|
28
|
+
catalog: ApiMethodDeclaration<void | {
|
|
29
|
+
lat?: number;
|
|
30
|
+
lng?: number;
|
|
31
|
+
}, CityPlayerCatalogRO>;
|
|
32
|
+
cityPeople: ApiMethodDeclaration<{
|
|
33
|
+
cityId: number;
|
|
34
|
+
language?: string;
|
|
35
|
+
}, CityPlayerPeopleRO>;
|
|
36
|
+
cityAttractions: ApiMethodDeclaration<{
|
|
37
|
+
cityId: number;
|
|
38
|
+
language?: string;
|
|
39
|
+
}, CityPlayerAttractionsMapRO>;
|
|
40
|
+
personDetail: ApiMethodDeclaration<{
|
|
41
|
+
personId: number;
|
|
42
|
+
cityId?: number;
|
|
43
|
+
language?: string;
|
|
44
|
+
}, CityPlayerPersonDetailRO>;
|
|
28
45
|
questPreview: ApiMethodDeclaration<number, CityPlayerQuestPreviewRO>;
|
|
29
46
|
freeRoute: ApiMethodDeclaration<{
|
|
30
47
|
cityId: number;
|
|
@@ -50,10 +50,35 @@ var games = function () { return ({
|
|
|
50
50
|
url: '/openapi/city-player/games',
|
|
51
51
|
method: 'GET',
|
|
52
52
|
}); };
|
|
53
|
-
var catalog = function () { return ({
|
|
53
|
+
var catalog = function (params) { return ({
|
|
54
54
|
url: '/openapi/city-player/catalog',
|
|
55
55
|
method: 'GET',
|
|
56
|
+
params: params || undefined,
|
|
56
57
|
}); };
|
|
58
|
+
var cityPeople = function (_a) {
|
|
59
|
+
var cityId = _a.cityId, language = _a.language;
|
|
60
|
+
return ({
|
|
61
|
+
url: "/openapi/city-player/cities/".concat(cityId, "/people"),
|
|
62
|
+
method: 'GET',
|
|
63
|
+
params: { language: language },
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
var cityAttractions = function (_a) {
|
|
67
|
+
var cityId = _a.cityId, language = _a.language;
|
|
68
|
+
return ({
|
|
69
|
+
url: "/openapi/city-player/cities/".concat(cityId, "/attractions"),
|
|
70
|
+
method: 'GET',
|
|
71
|
+
params: { language: language },
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
var personDetail = function (_a) {
|
|
75
|
+
var personId = _a.personId, cityId = _a.cityId, language = _a.language;
|
|
76
|
+
return ({
|
|
77
|
+
url: "/openapi/city-player/people/".concat(personId),
|
|
78
|
+
method: 'GET',
|
|
79
|
+
params: { cityId: cityId, language: language },
|
|
80
|
+
});
|
|
81
|
+
};
|
|
57
82
|
var questPreview = function (id) { return ({
|
|
58
83
|
url: "/openapi/city-player/quests/".concat(id),
|
|
59
84
|
method: 'GET',
|
|
@@ -72,6 +97,9 @@ exports.cityPlayerApiDeclaration = {
|
|
|
72
97
|
me: me,
|
|
73
98
|
games: games,
|
|
74
99
|
catalog: catalog,
|
|
100
|
+
cityPeople: cityPeople,
|
|
101
|
+
cityAttractions: cityAttractions,
|
|
102
|
+
personDetail: personDetail,
|
|
75
103
|
questPreview: questPreview,
|
|
76
104
|
freeRoute: freeRoute,
|
|
77
105
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { CityAttractionRO } from '@escapenavigator/types/dist/city-attraction/city-attraction.ro';
|
|
1
2
|
import { BindCityQuestDto } from '@escapenavigator/types/dist/city-quest/bind-city-quest.dto';
|
|
2
3
|
import { CityQuestAssetRO, CityQuestRO } from '@escapenavigator/types/dist/city-quest/city-quest.ro';
|
|
3
4
|
import { ImportCityQuestDto } from '@escapenavigator/types/dist/city-quest/import-city-quest.dto';
|
|
4
|
-
import { UpdateCityQuestContentDto } from '@escapenavigator/types/dist/city-quest/update-city-quest-content.dto';
|
|
5
5
|
import { UpdateCityQuestDto } from '@escapenavigator/types/dist/city-quest/update-city-quest.dto';
|
|
6
|
+
import { UpdateCityQuestContentDto } from '@escapenavigator/types/dist/city-quest/update-city-quest-content.dto';
|
|
6
7
|
import { UpdateCityQuestStopDto } from '@escapenavigator/types/dist/city-quest/update-city-quest-stop.dto';
|
|
7
8
|
import { UpsertCityQuestAssetDto } from '@escapenavigator/types/dist/city-quest/upsert-city-quest-asset.dto';
|
|
8
9
|
import { UpsertCityQuestLocaleDto } from '@escapenavigator/types/dist/city-quest/upsert-city-quest-locale.dto';
|
|
9
|
-
import { CityAttractionRO } from '@escapenavigator/types/dist/city-attraction/city-attraction.ro';
|
|
10
10
|
import { ApiMethodDeclaration } from '..';
|
|
11
11
|
export type CityQuestAnalyticsRO = {
|
|
12
12
|
sessionsTotal: number;
|
|
@@ -80,6 +80,7 @@ import { createNotificationChanel } from './notification-chanel/create';
|
|
|
80
80
|
import { getClientNotifications } from './notification-chanel/get-client-notofocations';
|
|
81
81
|
import { queryNotificationChanels } from './notification-chanel/query';
|
|
82
82
|
import { removeNotificationChanel } from './notification-chanel/remove';
|
|
83
|
+
import { testNotificationChanel } from './notification-chanel/test';
|
|
83
84
|
import { updateNotificationChanel } from './notification-chanel/update';
|
|
84
85
|
import { webHookApi } from './notification-chanel/webhook-api';
|
|
85
86
|
import { createOtherCrm } from './other-crm/create-other-crm';
|
|
@@ -238,6 +239,7 @@ type ApiDeclaration = {
|
|
|
238
239
|
createNotificationChanel: typeof createNotificationChanel;
|
|
239
240
|
removeNotificationChanel: typeof removeNotificationChanel;
|
|
240
241
|
queryNotificationChanels: typeof queryNotificationChanels;
|
|
242
|
+
testNotificationChanel: typeof testNotificationChanel;
|
|
241
243
|
webHookApi: typeof webHookApi;
|
|
242
244
|
getClientNotifications: typeof getClientNotifications;
|
|
243
245
|
sendOrderClientSms: typeof sendOrderClientSms;
|
|
@@ -83,6 +83,7 @@ var create_3 = require("./notification-chanel/create");
|
|
|
83
83
|
var get_client_notofocations_1 = require("./notification-chanel/get-client-notofocations");
|
|
84
84
|
var query_2 = require("./notification-chanel/query");
|
|
85
85
|
var remove_1 = require("./notification-chanel/remove");
|
|
86
|
+
var test_1 = require("./notification-chanel/test");
|
|
86
87
|
var update_1 = require("./notification-chanel/update");
|
|
87
88
|
var webhook_api_1 = require("./notification-chanel/webhook-api");
|
|
88
89
|
var create_other_crm_1 = require("./other-crm/create-other-crm");
|
|
@@ -134,6 +135,7 @@ exports.profilesApiDeclaration = {
|
|
|
134
135
|
createNotificationChanel: create_3.createNotificationChanel,
|
|
135
136
|
removeNotificationChanel: remove_1.removeNotificationChanel,
|
|
136
137
|
queryNotificationChanels: query_2.queryNotificationChanels,
|
|
138
|
+
testNotificationChanel: test_1.testNotificationChanel,
|
|
137
139
|
webHookApi: webhook_api_1.webHookApi,
|
|
138
140
|
getClientNotifications: get_client_notofocations_1.getClientNotifications,
|
|
139
141
|
sendOrderClientSms: send_order_client_sms_1.sendOrderClientSms,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NotificationTriggerEnum } from '@escapenavigator/types/dist/profile/notification-chanel/notification-chanel-action.enum';
|
|
2
|
+
import { WebhookTestResultRO } from '@escapenavigator/types/dist/profile/notification-chanel/webhook-test-result.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
orderId: number;
|
|
7
|
+
trigger?: NotificationTriggerEnum;
|
|
8
|
+
};
|
|
9
|
+
/** Ручной тест webhook-канала: шлёт боевой payload по заказу с `test: true`. */
|
|
10
|
+
export declare const testNotificationChanel: ApiMethodDeclaration<ParamsData, WebhookTestResultRO>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.testNotificationChanel = void 0;
|
|
15
|
+
/** Ручной тест webhook-канала: шлёт боевой payload по заказу с `test: true`. */
|
|
16
|
+
var testNotificationChanel = function (_a) {
|
|
17
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
18
|
+
return ({
|
|
19
|
+
url: "/notification-chanel/".concat(id, "/test"),
|
|
20
|
+
method: 'POST',
|
|
21
|
+
data: data,
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
exports.testNotificationChanel = testNotificationChanel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.18",
|
|
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": "38923f4b8d67b6f00321a16994251085cea3ed24",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.17",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.18",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|