@escapenavigator/services 2.0.14 → 2.0.16

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.
@@ -0,0 +1,79 @@
1
+ import { CityAttractionRO } from '@escapenavigator/types/dist/city-attraction/city-attraction.ro';
2
+ import { CreateCityAttractionDto } from '@escapenavigator/types/dist/city-attraction/create-city-attraction.dto';
3
+ 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
+ import { UpdateCityAttractionDto } from '@escapenavigator/types/dist/city-attraction/update-city-attraction.dto';
7
+ import { AttractionTriageReportRO, TriageAttractionsDto } from '@escapenavigator/types/dist/city-attraction/attraction-triage';
8
+ import { CityPipelineRunRO, StartCityPipelineDto } from '@escapenavigator/types/dist/shared/city-pipeline';
9
+ import { CityResearchDto, CityResearchReportRO } from '@escapenavigator/types/dist/shared/city-research';
10
+ import { GenerateAiCoverDto } from '@escapenavigator/types/dist/shared/ai-cover';
11
+ import { ContentBatchReportRO, GenerateContentBatchDto } from '@escapenavigator/types/dist/shared/content-batch';
12
+ import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
13
+ import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
14
+ import { EnrichWikidataDto, WikidataEnrichmentReportRO } from '@escapenavigator/types/dist/shared/wikidata-enrichment';
15
+ import { WikidataCityImportDto, WikidataCityImportReportRO } from '@escapenavigator/types/dist/shared/wikidata-import';
16
+ import { ApiMethodDeclaration } from '..';
17
+ export declare const cityAttractionsApiDeclaration: {
18
+ query: ApiMethodDeclaration<QueryDto, QueryRO<CityAttractionRO>>;
19
+ getOne: ApiMethodDeclaration<number, CityAttractionRO>;
20
+ create: ApiMethodDeclaration<{
21
+ data: CreateCityAttractionDto;
22
+ }, CityAttractionRO>;
23
+ update: ApiMethodDeclaration<{
24
+ id: number;
25
+ data: UpdateCityAttractionDto;
26
+ }, CityAttractionRO>;
27
+ moderate: ApiMethodDeclaration<{
28
+ id: number;
29
+ data: ModerateCityAttractionDto;
30
+ }, CityAttractionRO>;
31
+ generateContent: ApiMethodDeclaration<{
32
+ id: number;
33
+ data: GenerateAttractionContentDto;
34
+ }, CityAttractionRO>;
35
+ upsertLocale: ApiMethodDeclaration<{
36
+ id: number;
37
+ data: UpsertCityAttractionLocaleDto;
38
+ }, CityAttractionRO>;
39
+ replaceArtifacts: ApiMethodDeclaration<{
40
+ id: number;
41
+ data: {
42
+ artifacts: UpsertCityAttractionArtifactDto[];
43
+ };
44
+ }, CityAttractionRO>;
45
+ enrichWikidata: ApiMethodDeclaration<{
46
+ data: EnrichWikidataDto;
47
+ }, WikidataEnrichmentReportRO>;
48
+ importWikidataCity: ApiMethodDeclaration<{
49
+ data: WikidataCityImportDto;
50
+ }, WikidataCityImportReportRO>;
51
+ startPipeline: ApiMethodDeclaration<{
52
+ data: StartCityPipelineDto;
53
+ }, CityPipelineRunRO>;
54
+ pipelineStatus: ApiMethodDeclaration<number, CityPipelineRunRO>;
55
+ cancelPipeline: ApiMethodDeclaration<number, CityPipelineRunRO>;
56
+ latestPipeline: ApiMethodDeclaration<void, CityPipelineRunRO>;
57
+ researchCity: ApiMethodDeclaration<{
58
+ data: CityResearchDto;
59
+ }, CityResearchReportRO>;
60
+ generateContentBatch: ApiMethodDeclaration<{
61
+ data: GenerateContentBatchDto;
62
+ }, ContentBatchReportRO>;
63
+ generateCover: ApiMethodDeclaration<{
64
+ id: number;
65
+ data: GenerateAiCoverDto;
66
+ }, CityAttractionRO>;
67
+ triage: ApiMethodDeclaration<{
68
+ data: TriageAttractionsDto;
69
+ }, AttractionTriageReportRO>;
70
+ remove: ApiMethodDeclaration<number, {
71
+ success: boolean;
72
+ }>;
73
+ archive: ApiMethodDeclaration<{
74
+ id: number;
75
+ data: {
76
+ archived?: boolean;
77
+ };
78
+ }, CityAttractionRO>;
79
+ };
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cityAttractionsApiDeclaration = void 0;
4
+ var query = function (params) { return ({
5
+ url: '/admin/city-attractions',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ var getOne = function (id) { return ({
10
+ url: "/admin/city-attractions/".concat(id),
11
+ method: 'GET',
12
+ }); };
13
+ var create = function (_a) {
14
+ var data = _a.data;
15
+ return ({
16
+ url: '/admin/city-attractions',
17
+ method: 'POST',
18
+ data: data,
19
+ });
20
+ };
21
+ var update = function (_a) {
22
+ var id = _a.id, data = _a.data;
23
+ return ({
24
+ url: "/admin/city-attractions/".concat(id),
25
+ method: 'PATCH',
26
+ data: data,
27
+ });
28
+ };
29
+ var moderate = function (_a) {
30
+ var id = _a.id, data = _a.data;
31
+ return ({
32
+ url: "/admin/city-attractions/".concat(id, "/moderate"),
33
+ method: 'POST',
34
+ data: data,
35
+ });
36
+ };
37
+ var generateContent = function (_a) {
38
+ var id = _a.id, data = _a.data;
39
+ return ({
40
+ url: "/admin/city-attractions/".concat(id, "/generate-content"),
41
+ method: 'POST',
42
+ data: data,
43
+ });
44
+ };
45
+ var upsertLocale = function (_a) {
46
+ var id = _a.id, data = _a.data;
47
+ return ({
48
+ url: "/admin/city-attractions/".concat(id, "/locales"),
49
+ method: 'PATCH',
50
+ data: data,
51
+ });
52
+ };
53
+ var replaceArtifacts = function (_a) {
54
+ var id = _a.id, data = _a.data;
55
+ return ({
56
+ url: "/admin/city-attractions/".concat(id, "/artifacts"),
57
+ method: 'PUT',
58
+ data: data,
59
+ });
60
+ };
61
+ var enrichWikidata = function (_a) {
62
+ var data = _a.data;
63
+ return ({
64
+ url: '/admin/city-attractions/maintenance/enrich-wikidata',
65
+ method: 'POST',
66
+ data: data,
67
+ });
68
+ };
69
+ var importWikidataCity = function (_a) {
70
+ var data = _a.data;
71
+ return ({
72
+ url: '/admin/city-attractions/maintenance/import-wikidata-city',
73
+ method: 'POST',
74
+ data: data,
75
+ });
76
+ };
77
+ var generateContentBatch = function (_a) {
78
+ var data = _a.data;
79
+ return ({
80
+ url: '/admin/city-attractions/maintenance/generate-content-batch',
81
+ method: 'POST',
82
+ data: data,
83
+ });
84
+ };
85
+ var generateCover = function (_a) {
86
+ var id = _a.id, data = _a.data;
87
+ return ({
88
+ url: "/admin/city-attractions/".concat(id, "/generate-cover"),
89
+ method: 'POST',
90
+ data: data,
91
+ });
92
+ };
93
+ var startPipeline = function (_a) {
94
+ var data = _a.data;
95
+ return ({
96
+ url: '/admin/city-attractions/maintenance/pipeline',
97
+ method: 'POST',
98
+ data: data,
99
+ });
100
+ };
101
+ var pipelineStatus = function (id) { return ({
102
+ url: "/admin/city-attractions/maintenance/pipeline/".concat(id),
103
+ method: 'GET',
104
+ }); };
105
+ var cancelPipeline = function (id) { return ({
106
+ url: "/admin/city-attractions/maintenance/pipeline/".concat(id, "/cancel"),
107
+ method: 'POST',
108
+ }); };
109
+ var latestPipeline = function () { return ({
110
+ url: '/admin/city-attractions/maintenance/pipeline/latest',
111
+ method: 'GET',
112
+ }); };
113
+ var researchCity = function (_a) {
114
+ var data = _a.data;
115
+ return ({
116
+ url: '/admin/city-attractions/maintenance/research-city',
117
+ method: 'POST',
118
+ data: data,
119
+ });
120
+ };
121
+ var triage = function (_a) {
122
+ var data = _a.data;
123
+ return ({
124
+ url: '/admin/city-attractions/maintenance/triage',
125
+ method: 'POST',
126
+ data: data,
127
+ });
128
+ };
129
+ var remove = function (id) { return ({
130
+ url: "/admin/city-attractions/".concat(id),
131
+ method: 'DELETE',
132
+ }); };
133
+ var archive = function (_a) {
134
+ var id = _a.id, data = _a.data;
135
+ return ({
136
+ url: "/admin/city-attractions/".concat(id, "/archive"),
137
+ method: 'POST',
138
+ data: data,
139
+ });
140
+ };
141
+ exports.cityAttractionsApiDeclaration = {
142
+ query: query,
143
+ getOne: getOne,
144
+ create: create,
145
+ update: update,
146
+ moderate: moderate,
147
+ generateContent: generateContent,
148
+ upsertLocale: upsertLocale,
149
+ replaceArtifacts: replaceArtifacts,
150
+ enrichWikidata: enrichWikidata,
151
+ importWikidataCity: importWikidataCity,
152
+ startPipeline: startPipeline,
153
+ pipelineStatus: pipelineStatus,
154
+ cancelPipeline: cancelPipeline,
155
+ latestPipeline: latestPipeline,
156
+ researchCity: researchCity,
157
+ generateContentBatch: generateContentBatch,
158
+ generateCover: generateCover,
159
+ triage: triage,
160
+ remove: remove,
161
+ archive: archive,
162
+ };
@@ -0,0 +1,52 @@
1
+ import { CityPersonRO } from '@escapenavigator/types/dist/city-person/city-person.ro';
2
+ import { CreateCityPersonDto } from '@escapenavigator/types/dist/city-person/create-city-person.dto';
3
+ import { UpdateCityPersonDto } from '@escapenavigator/types/dist/city-person/update-city-person.dto';
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
+ import { AutolinkDto, WikidataAutolinkReportRO } from '@escapenavigator/types/dist/city-person/wikidata-autolink';
8
+ import { GenerateAiCoverDto } from '@escapenavigator/types/dist/shared/ai-cover';
9
+ import { ContentBatchReportRO, GenerateContentBatchDto } from '@escapenavigator/types/dist/shared/content-batch';
10
+ import { EnrichWikidataDto, WikidataEnrichmentReportRO } from '@escapenavigator/types/dist/shared/wikidata-enrichment';
11
+ import { ApiMethodDeclaration } from '..';
12
+ export declare const cityPeopleApiDeclaration: {
13
+ query: ApiMethodDeclaration<QueryDto, QueryRO<CityPersonRO>>;
14
+ getOne: ApiMethodDeclaration<number, CityPersonRO>;
15
+ create: ApiMethodDeclaration<{
16
+ data: CreateCityPersonDto;
17
+ }, CityPersonRO>;
18
+ update: ApiMethodDeclaration<{
19
+ id: number;
20
+ data: UpdateCityPersonDto;
21
+ }, CityPersonRO>;
22
+ generateContent: ApiMethodDeclaration<{
23
+ id: number;
24
+ data: GeneratePersonContentDto;
25
+ }, CityPersonRO>;
26
+ upsertLocale: ApiMethodDeclaration<{
27
+ id: number;
28
+ data: UpsertCityPersonLocaleDto;
29
+ }, CityPersonRO>;
30
+ enrichWikidata: ApiMethodDeclaration<{
31
+ data: EnrichWikidataDto;
32
+ }, WikidataEnrichmentReportRO>;
33
+ autolink: ApiMethodDeclaration<{
34
+ data: AutolinkDto;
35
+ }, WikidataAutolinkReportRO>;
36
+ generateContentBatch: ApiMethodDeclaration<{
37
+ data: GenerateContentBatchDto;
38
+ }, ContentBatchReportRO>;
39
+ generateCover: ApiMethodDeclaration<{
40
+ id: number;
41
+ data: GenerateAiCoverDto;
42
+ }, CityPersonRO>;
43
+ remove: ApiMethodDeclaration<number, {
44
+ success: boolean;
45
+ }>;
46
+ archive: ApiMethodDeclaration<{
47
+ id: number;
48
+ data: {
49
+ archived?: boolean;
50
+ };
51
+ }, CityPersonRO>;
52
+ };
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cityPeopleApiDeclaration = void 0;
4
+ var query = function (params) { return ({
5
+ url: '/admin/city-people',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ var getOne = function (id) { return ({
10
+ url: "/admin/city-people/".concat(id),
11
+ method: 'GET',
12
+ }); };
13
+ var create = function (_a) {
14
+ var data = _a.data;
15
+ return ({
16
+ url: '/admin/city-people',
17
+ method: 'POST',
18
+ data: data,
19
+ });
20
+ };
21
+ var update = function (_a) {
22
+ var id = _a.id, data = _a.data;
23
+ return ({
24
+ url: "/admin/city-people/".concat(id),
25
+ method: 'PATCH',
26
+ data: data,
27
+ });
28
+ };
29
+ var generateContent = function (_a) {
30
+ var id = _a.id, data = _a.data;
31
+ return ({
32
+ url: "/admin/city-people/".concat(id, "/generate-content"),
33
+ method: 'POST',
34
+ data: data,
35
+ });
36
+ };
37
+ var upsertLocale = function (_a) {
38
+ var id = _a.id, data = _a.data;
39
+ return ({
40
+ url: "/admin/city-people/".concat(id, "/locales"),
41
+ method: 'PATCH',
42
+ data: data,
43
+ });
44
+ };
45
+ var enrichWikidata = function (_a) {
46
+ var data = _a.data;
47
+ return ({
48
+ url: '/admin/city-people/maintenance/enrich-wikidata',
49
+ method: 'POST',
50
+ data: data,
51
+ });
52
+ };
53
+ var autolink = function (_a) {
54
+ var data = _a.data;
55
+ return ({
56
+ url: '/admin/city-people/maintenance/autolink',
57
+ method: 'POST',
58
+ data: data,
59
+ });
60
+ };
61
+ var generateContentBatch = function (_a) {
62
+ var data = _a.data;
63
+ return ({
64
+ url: '/admin/city-people/maintenance/generate-content-batch',
65
+ method: 'POST',
66
+ data: data,
67
+ });
68
+ };
69
+ var generateCover = function (_a) {
70
+ var id = _a.id, data = _a.data;
71
+ return ({
72
+ url: "/admin/city-people/".concat(id, "/generate-cover"),
73
+ method: 'POST',
74
+ data: data,
75
+ });
76
+ };
77
+ var remove = function (id) { return ({
78
+ url: "/admin/city-people/".concat(id),
79
+ method: 'DELETE',
80
+ }); };
81
+ var archive = function (_a) {
82
+ var id = _a.id, data = _a.data;
83
+ return ({
84
+ url: "/admin/city-people/".concat(id, "/archive"),
85
+ method: 'POST',
86
+ data: data,
87
+ });
88
+ };
89
+ exports.cityPeopleApiDeclaration = {
90
+ query: query,
91
+ getOne: getOne,
92
+ create: create,
93
+ update: update,
94
+ generateContent: generateContent,
95
+ upsertLocale: upsertLocale,
96
+ enrichWikidata: enrichWikidata,
97
+ autolink: autolink,
98
+ generateContentBatch: generateContentBatch,
99
+ generateCover: generateCover,
100
+ remove: remove,
101
+ archive: archive,
102
+ };
@@ -1,8 +1,9 @@
1
+ import { CityPlayerCatalogRO, CityPlayerGameRO, CityPlayerLoginRO, CityPlayerQuestPreviewRO, CityPlayerRequestCodeRO, CityPlayerRO, CityPlayerVerifyCodeRO } from '@escapenavigator/types/dist/openapi/city-player/city-player.ro';
1
2
  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';
2
4
  import { CityPlayerLoginDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-login.dto';
3
5
  import { CityPlayerRequestCodeDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-request-code.dto';
4
6
  import { CityPlayerVerifyCodeDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-verify-code.dto';
5
- import { CityPlayerCatalogRO, CityPlayerGameRO, CityPlayerLoginRO, CityPlayerRequestCodeRO, CityPlayerRO, CityPlayerVerifyCodeRO } from '@escapenavigator/types/dist/openapi/city-player/city-player.ro';
6
7
  import { ApiMethodDeclaration } from '..';
7
8
  export declare const cityPlayerApiDeclaration: {
8
9
  ping: ApiMethodDeclaration<void, {
@@ -24,4 +25,12 @@ export declare const cityPlayerApiDeclaration: {
24
25
  me: ApiMethodDeclaration<void, CityPlayerRO>;
25
26
  games: ApiMethodDeclaration<void, CityPlayerGameRO[]>;
26
27
  catalog: ApiMethodDeclaration<void, CityPlayerCatalogRO>;
28
+ questPreview: ApiMethodDeclaration<number, CityPlayerQuestPreviewRO>;
29
+ freeRoute: ApiMethodDeclaration<{
30
+ cityId: number;
31
+ personId?: number;
32
+ maxStops?: number;
33
+ maxDurationMin?: number;
34
+ language?: string;
35
+ }, CityPlayerFreeRouteRO>;
27
36
  };
@@ -54,6 +54,15 @@ var catalog = function () { return ({
54
54
  url: '/openapi/city-player/catalog',
55
55
  method: 'GET',
56
56
  }); };
57
+ var questPreview = function (id) { return ({
58
+ url: "/openapi/city-player/quests/".concat(id),
59
+ method: 'GET',
60
+ }); };
61
+ var freeRoute = function (params) { return ({
62
+ url: '/openapi/city-player/free-route',
63
+ method: 'GET',
64
+ params: params,
65
+ }); };
57
66
  exports.cityPlayerApiDeclaration = {
58
67
  ping: ping,
59
68
  login: login,
@@ -63,4 +72,6 @@ exports.cityPlayerApiDeclaration = {
63
72
  me: me,
64
73
  games: games,
65
74
  catalog: catalog,
75
+ questPreview: questPreview,
76
+ freeRoute: freeRoute,
66
77
  };
@@ -1,8 +1,12 @@
1
1
  import { BindCityQuestDto } from '@escapenavigator/types/dist/city-quest/bind-city-quest.dto';
2
2
  import { CityQuestAssetRO, CityQuestRO } from '@escapenavigator/types/dist/city-quest/city-quest.ro';
3
3
  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';
4
5
  import { UpdateCityQuestDto } from '@escapenavigator/types/dist/city-quest/update-city-quest.dto';
6
+ import { UpdateCityQuestStopDto } from '@escapenavigator/types/dist/city-quest/update-city-quest-stop.dto';
5
7
  import { UpsertCityQuestAssetDto } from '@escapenavigator/types/dist/city-quest/upsert-city-quest-asset.dto';
8
+ 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';
6
10
  import { ApiMethodDeclaration } from '..';
7
11
  export type CityQuestAnalyticsRO = {
8
12
  sessionsTotal: number;
@@ -28,12 +32,19 @@ export declare const cityQuestsApiDeclaration: {
28
32
  getOne: ApiMethodDeclaration<number, CityQuestRO>;
29
33
  getContent: ApiMethodDeclaration<number, {
30
34
  content: Record<string, unknown> | null;
35
+ attractionsById: Record<string, CityAttractionRO>;
31
36
  }>;
32
- getVersions: ApiMethodDeclaration<number, {
37
+ updateContent: ApiMethodDeclaration<{
33
38
  id: number;
34
- version: number;
35
- createdAt: string;
36
- }[]>;
39
+ data: UpdateCityQuestContentDto;
40
+ }, {
41
+ content: Record<string, unknown> | null;
42
+ attractionsById: Record<string, CityAttractionRO>;
43
+ }>;
44
+ upsertLocale: ApiMethodDeclaration<{
45
+ id: number;
46
+ data: UpsertCityQuestLocaleDto;
47
+ }, CityQuestRO>;
37
48
  importGame: ApiMethodDeclaration<{
38
49
  data: ImportCityQuestDto;
39
50
  }, CityQuestRO>;
@@ -41,6 +52,12 @@ export declare const cityQuestsApiDeclaration: {
41
52
  id: number;
42
53
  data: UpdateCityQuestDto;
43
54
  }, CityQuestRO>;
55
+ updateStop: ApiMethodDeclaration<{
56
+ id: number;
57
+ stopId: string;
58
+ data: UpdateCityQuestStopDto;
59
+ }, CityQuestRO>;
60
+ markReady: ApiMethodDeclaration<number, CityQuestRO>;
44
61
  publish: ApiMethodDeclaration<number, CityQuestRO>;
45
62
  listAssets: ApiMethodDeclaration<number, CityQuestAssetRO[]>;
46
63
  upsertAsset: ApiMethodDeclaration<{
@@ -68,4 +85,13 @@ export declare const cityQuestsApiDeclaration: {
68
85
  success: boolean;
69
86
  }>;
70
87
  analytics: ApiMethodDeclaration<number, CityQuestAnalyticsRO>;
88
+ backfillCities: ApiMethodDeclaration<undefined, {
89
+ matched: number;
90
+ unmatched: number;
91
+ recounted: number;
92
+ }>;
93
+ migrateStatusContent: ApiMethodDeclaration<undefined, {
94
+ updated: number;
95
+ columnRenamed: boolean;
96
+ }>;
71
97
  };
@@ -14,10 +14,22 @@ var getContent = function (id) { return ({
14
14
  url: "/admin/city-quests/".concat(id, "/content"),
15
15
  method: 'GET',
16
16
  }); };
17
- var getVersions = function (id) { return ({
18
- url: "/admin/city-quests/".concat(id, "/versions"),
19
- method: 'GET',
20
- }); };
17
+ var updateContent = function (_a) {
18
+ var id = _a.id, data = _a.data;
19
+ return ({
20
+ url: "/admin/city-quests/".concat(id, "/content"),
21
+ method: 'PATCH',
22
+ data: data,
23
+ });
24
+ };
25
+ var upsertLocale = function (_a) {
26
+ var id = _a.id, data = _a.data;
27
+ return ({
28
+ url: "/admin/city-quests/".concat(id, "/locales"),
29
+ method: 'PATCH',
30
+ data: data,
31
+ });
32
+ };
21
33
  var importGame = function (_a) {
22
34
  var data = _a.data;
23
35
  return ({
@@ -34,8 +46,21 @@ var update = function (_a) {
34
46
  data: data,
35
47
  });
36
48
  };
49
+ var updateStop = function (_a) {
50
+ var id = _a.id, stopId = _a.stopId, data = _a.data;
51
+ return ({
52
+ url: "/admin/city-quests/".concat(id, "/stops/").concat(stopId),
53
+ method: 'PATCH',
54
+ data: data,
55
+ });
56
+ };
57
+ var markReady = function (id) { return ({
58
+ url: "/admin/city-quests/".concat(id, "/mark-ready"),
59
+ method: 'POST',
60
+ }); };
61
+ /** @deprecated Use markReady */
37
62
  var publish = function (id) { return ({
38
- url: "/admin/city-quests/".concat(id, "/publish"),
63
+ url: "/admin/city-quests/".concat(id, "/mark-ready"),
39
64
  method: 'POST',
40
65
  }); };
41
66
  var listAssets = function (id) { return ({
@@ -76,13 +101,24 @@ var analytics = function (id) { return ({
76
101
  url: "/admin/city-quests/".concat(id, "/analytics"),
77
102
  method: 'GET',
78
103
  }); };
104
+ var backfillCities = function () { return ({
105
+ url: '/admin/city-quests/maintenance/backfill-cities',
106
+ method: 'POST',
107
+ }); };
108
+ var migrateStatusContent = function () { return ({
109
+ url: '/admin/city-quests/maintenance/migrate-status-content',
110
+ method: 'POST',
111
+ }); };
79
112
  exports.cityQuestsApiDeclaration = {
80
113
  query: query,
81
114
  getOne: getOne,
82
115
  getContent: getContent,
83
- getVersions: getVersions,
116
+ updateContent: updateContent,
117
+ upsertLocale: upsertLocale,
84
118
  importGame: importGame,
85
119
  update: update,
120
+ updateStop: updateStop,
121
+ markReady: markReady,
86
122
  publish: publish,
87
123
  listAssets: listAssets,
88
124
  upsertAsset: upsertAsset,
@@ -90,4 +126,6 @@ exports.cityQuestsApiDeclaration = {
90
126
  bind: bind,
91
127
  unbind: unbind,
92
128
  analytics: analytics,
129
+ backfillCities: backfillCities,
130
+ migrateStatusContent: migrateStatusContent,
93
131
  };
@@ -0,0 +1,10 @@
1
+ import { ApplyGooglePlacesMatchDto } from '@escapenavigator/types/dist/google-places/apply-google-places-match.dto';
2
+ import { GooglePlacesRO } from '@escapenavigator/types/dist/google-places/google-places.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ type ParamsData = {
5
+ id: number;
6
+ data: ApplyGooglePlacesMatchDto;
7
+ };
8
+ type ResponseData = GooglePlacesRO;
9
+ export declare const applyMatchGooglePlace: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.applyMatchGooglePlace = void 0;
4
+ var applyMatchGooglePlace = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/google-places/".concat(id, "/apply-match"),
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.applyMatchGooglePlace = applyMatchGooglePlace;
@@ -1,15 +1,23 @@
1
+ import { applyMatchGooglePlace } from './apply-match';
1
2
  import { countGooglePlaces } from './count';
2
3
  import { createCompanyFromPlace } from './create-company';
3
4
  import { createLocationFromPlace } from './create-location';
4
5
  import { exportGooglePlaces } from './export';
5
6
  import { getGooglePlace } from './get-one';
7
+ import { matchPreviewGooglePlace } from './match-preview';
6
8
  import { queryGooglePlaces } from './query';
7
9
  import { relinkGooglePlace } from './relink';
8
10
  import { getGooglePlaceSiblings } from './siblings';
11
+ import { statsByCountryGooglePlaces } from './stats-by-country';
12
+ import { unlinkGooglePlace } from './unlink';
13
+ import { unlinkGooglePlaceLocation } from './unlink-location';
9
14
  import { updateGooglePlace } from './update';
10
15
  type ApiDeclaration = {
11
16
  query: typeof queryGooglePlaces;
12
17
  getOne: typeof getGooglePlace;
18
+ matchPreview: typeof matchPreviewGooglePlace;
19
+ applyMatch: typeof applyMatchGooglePlace;
20
+ statsByCountry: typeof statsByCountryGooglePlaces;
13
21
  update: typeof updateGooglePlace;
14
22
  exportGooglePlaces: typeof exportGooglePlaces;
15
23
  count: typeof countGooglePlaces;
@@ -17,6 +25,8 @@ type ApiDeclaration = {
17
25
  createCompany: typeof createCompanyFromPlace;
18
26
  createLocation: typeof createLocationFromPlace;
19
27
  relink: typeof relinkGooglePlace;
28
+ unlink: typeof unlinkGooglePlace;
29
+ unlinkLocation: typeof unlinkGooglePlaceLocation;
20
30
  };
21
31
  export declare const googlePlacesApiDeclaration: ApiDeclaration;
22
32
  export {};
@@ -1,18 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.googlePlacesApiDeclaration = void 0;
4
+ var apply_match_1 = require("./apply-match");
4
5
  var count_1 = require("./count");
5
6
  var create_company_1 = require("./create-company");
6
7
  var create_location_1 = require("./create-location");
7
8
  var export_1 = require("./export");
8
9
  var get_one_1 = require("./get-one");
10
+ var match_preview_1 = require("./match-preview");
9
11
  var query_1 = require("./query");
10
12
  var relink_1 = require("./relink");
11
13
  var siblings_1 = require("./siblings");
14
+ var stats_by_country_1 = require("./stats-by-country");
15
+ var unlink_1 = require("./unlink");
16
+ var unlink_location_1 = require("./unlink-location");
12
17
  var update_1 = require("./update");
13
18
  exports.googlePlacesApiDeclaration = {
14
19
  query: query_1.queryGooglePlaces,
15
20
  getOne: get_one_1.getGooglePlace,
21
+ matchPreview: match_preview_1.matchPreviewGooglePlace,
22
+ applyMatch: apply_match_1.applyMatchGooglePlace,
23
+ statsByCountry: stats_by_country_1.statsByCountryGooglePlaces,
16
24
  update: update_1.updateGooglePlace,
17
25
  exportGooglePlaces: export_1.exportGooglePlaces,
18
26
  count: count_1.countGooglePlaces,
@@ -20,4 +28,6 @@ exports.googlePlacesApiDeclaration = {
20
28
  createCompany: create_company_1.createCompanyFromPlace,
21
29
  createLocation: create_location_1.createLocationFromPlace,
22
30
  relink: relink_1.relinkGooglePlace,
31
+ unlink: unlink_1.unlinkGooglePlace,
32
+ unlinkLocation: unlink_location_1.unlinkGooglePlaceLocation,
23
33
  };
@@ -0,0 +1,8 @@
1
+ import { GooglePlacesMatchPreviewRO } from '@escapenavigator/types/dist/google-places/google-places-match-preview.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = {
4
+ id: number;
5
+ };
6
+ type ResponseData = GooglePlacesMatchPreviewRO;
7
+ export declare const matchPreviewGooglePlace: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.matchPreviewGooglePlace = void 0;
4
+ var matchPreviewGooglePlace = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/google-places/".concat(id, "/match-preview"),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.matchPreviewGooglePlace = matchPreviewGooglePlace;
@@ -0,0 +1,5 @@
1
+ import { GooglePlacesCountryStatsRO } from '@escapenavigator/types/dist/google-places/google-places-country-stats.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ResponseData = GooglePlacesCountryStatsRO[];
4
+ export declare const statsByCountryGooglePlaces: ApiMethodDeclaration<void, ResponseData>;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.statsByCountryGooglePlaces = void 0;
4
+ var statsByCountryGooglePlaces = function () { return ({
5
+ url: '/google-places/stats-by-country',
6
+ method: 'GET',
7
+ }); };
8
+ exports.statsByCountryGooglePlaces = statsByCountryGooglePlaces;
@@ -0,0 +1,8 @@
1
+ import { GooglePlacesRO } from '@escapenavigator/types/dist/google-places/google-places.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = {
4
+ id: number;
5
+ };
6
+ type ResponseData = GooglePlacesRO;
7
+ export declare const unlinkGooglePlaceLocation: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unlinkGooglePlaceLocation = void 0;
4
+ var unlinkGooglePlaceLocation = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/google-places/".concat(id, "/unlink-location"),
8
+ method: 'POST',
9
+ });
10
+ };
11
+ exports.unlinkGooglePlaceLocation = unlinkGooglePlaceLocation;
@@ -0,0 +1,8 @@
1
+ import { GooglePlacesRO } from '@escapenavigator/types/dist/google-places/google-places.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = {
4
+ id: number;
5
+ };
6
+ type ResponseData = GooglePlacesRO;
7
+ export declare const unlinkGooglePlace: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unlinkGooglePlace = void 0;
4
+ var unlinkGooglePlace = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/google-places/".concat(id, "/unlink"),
8
+ method: 'POST',
9
+ });
10
+ };
11
+ exports.unlinkGooglePlace = unlinkGooglePlace;
@@ -17,6 +17,8 @@ import { certificatesaleDiscountsApiDeclaration } from './certificatesales-disco
17
17
  import { certificateUploadsApiDeclaration } from './certificateuploads-api';
18
18
  import { checklistApiDeclaration } from './checklist-api';
19
19
  import { citiesApiDeclaration } from './cities-api';
20
+ import { cityAttractionsApiDeclaration } from './city-attractions-api';
21
+ import { cityPeopleApiDeclaration } from './city-people-api';
20
22
  import { cityPlayerApiDeclaration } from './city-player-api';
21
23
  import { cityQuestsApiDeclaration } from './city-quest-api';
22
24
  import { cityQuestPlayApiDeclaration } from './city-quest-play-api';
@@ -96,6 +98,8 @@ export type InitApiDeclaration = {
96
98
  questroomDeviceApi: Api<typeof questroomDeviceApiDeclaration>;
97
99
  gameSessionApi: Api<typeof gameSessionApiDeclaration>;
98
100
  cityQuestsApi: Api<typeof cityQuestsApiDeclaration>;
101
+ cityAttractionsApi: Api<typeof cityAttractionsApiDeclaration>;
102
+ cityPeopleApi: Api<typeof cityPeopleApiDeclaration>;
99
103
  cityQuestPlayApi: Api<typeof cityQuestPlayApiDeclaration>;
100
104
  cityPlayerApi: Api<typeof cityPlayerApiDeclaration>;
101
105
  checklistApi: Api<typeof checklistApiDeclaration>;
@@ -20,6 +20,8 @@ var certificatesales_discounts_api_1 = require("./certificatesales-discounts-api
20
20
  var certificateuploads_api_1 = require("./certificateuploads-api");
21
21
  var checklist_api_1 = require("./checklist-api");
22
22
  var cities_api_1 = require("./cities-api");
23
+ var city_attractions_api_1 = require("./city-attractions-api");
24
+ var city_people_api_1 = require("./city-people-api");
23
25
  var city_player_api_1 = require("./city-player-api");
24
26
  var city_quest_api_1 = require("./city-quest-api");
25
27
  var city_quest_play_api_1 = require("./city-quest-play-api");
@@ -101,6 +103,8 @@ var initClientApi = function (url, clientOptions) { return ({
101
103
  questroomDeviceApi: (0, _1.initApi)(questroom_device_api_1.questroomDeviceApiDeclaration, url, clientOptions),
102
104
  gameSessionApi: (0, _1.initApi)(game_session_api_1.gameSessionApiDeclaration, url, clientOptions),
103
105
  cityQuestsApi: (0, _1.initApi)(city_quest_api_1.cityQuestsApiDeclaration, url, clientOptions),
106
+ cityAttractionsApi: (0, _1.initApi)(city_attractions_api_1.cityAttractionsApiDeclaration, url, clientOptions),
107
+ cityPeopleApi: (0, _1.initApi)(city_people_api_1.cityPeopleApiDeclaration, url, clientOptions),
104
108
  cityQuestPlayApi: (0, _1.initApi)(city_quest_play_api_1.cityQuestPlayApiDeclaration, url, clientOptions),
105
109
  cityPlayerApi: (0, _1.initApi)(city_player_api_1.cityPlayerApiDeclaration, url, clientOptions),
106
110
  checklistApi: (0, _1.initApi)(checklist_api_1.checklistApiDeclaration, url, clientOptions),
@@ -1,14 +1,11 @@
1
- import { AdminModeratePortalStoryDto } from '@escapenavigator/types/dist/partners-portal/admin/admin-moderate-portal-story.dto';
2
1
  import { AdminPortalPartnerRO } from '@escapenavigator/types/dist/partners-portal/admin/admin-portal-partner.ro';
3
2
  import { AdminUpdatePortalMaterialOrderDto } from '@escapenavigator/types/dist/partners-portal/admin/admin-update-portal-material-order.dto';
4
3
  import { AdminUpdatePortalPartnerDto } from '@escapenavigator/types/dist/partners-portal/admin/admin-update-portal-partner.dto';
5
4
  import { PortalMaterialOrderStatusEnum } from '@escapenavigator/types/dist/partners-portal/enum/portal-material-order-status.enum';
6
5
  import { PortalPartnerTypeEnum } from '@escapenavigator/types/dist/partners-portal/enum/portal-partner-type.enum';
7
- import { PortalStoryStatusEnum } from '@escapenavigator/types/dist/partners-portal/enum/portal-story-status.enum';
8
6
  import { PortalMaterialOrderRO } from '@escapenavigator/types/dist/partners-portal/portal-material-order.ro';
9
7
  import { PortalPartnerRO } from '@escapenavigator/types/dist/partners-portal/portal-partner.ro';
10
8
  import { PortalPartnerStatsRO } from '@escapenavigator/types/dist/partners-portal/portal-stats.ro';
11
- import { PortalStoryRO } from '@escapenavigator/types/dist/partners-portal/portal-story.ro';
12
9
  import { ApiMethodDeclaration } from '..';
13
10
  export declare const partnersPortalAdminApiDeclaration: {
14
11
  partners: ApiMethodDeclaration<{
@@ -19,15 +16,6 @@ export declare const partnersPortalAdminApiDeclaration: {
19
16
  data: AdminUpdatePortalPartnerDto;
20
17
  }, AdminPortalPartnerRO>;
21
18
  partnerStats: ApiMethodDeclaration<number, PortalPartnerStatsRO>;
22
- stories: ApiMethodDeclaration<{
23
- status?: PortalStoryStatusEnum;
24
- }, (PortalStoryRO & {
25
- partner?: PortalPartnerRO;
26
- })[]>;
27
- moderateStory: ApiMethodDeclaration<{
28
- id: number;
29
- data: AdminModeratePortalStoryDto;
30
- }, PortalStoryRO>;
31
19
  materialOrders: ApiMethodDeclaration<{
32
20
  status?: PortalMaterialOrderStatusEnum;
33
21
  }, (PortalMaterialOrderRO & {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.partnersPortalAdminApiDeclaration = void 0;
4
- /** Админский API партнёрского портала (авторы сюжетов и площадки). */
4
+ /** Админский API партнёрского портала (авторы квестов и площадки). */
5
5
  var partners = function (params) { return ({
6
6
  url: '/partners-portal/admin/partners',
7
7
  method: 'GET',
@@ -19,19 +19,6 @@ var partnerStats = function (id) { return ({
19
19
  url: "/partners-portal/admin/partners/".concat(id, "/stats"),
20
20
  method: 'GET',
21
21
  }); };
22
- var stories = function (params) { return ({
23
- url: '/partners-portal/admin/stories',
24
- method: 'GET',
25
- params: params,
26
- }); };
27
- var moderateStory = function (_a) {
28
- var id = _a.id, data = _a.data;
29
- return ({
30
- url: "/partners-portal/admin/stories/".concat(id, "/moderate"),
31
- method: 'PATCH',
32
- data: data,
33
- });
34
- };
35
22
  var materialOrders = function (params) { return ({
36
23
  url: '/partners-portal/admin/material-orders',
37
24
  method: 'GET',
@@ -49,8 +36,6 @@ exports.partnersPortalAdminApiDeclaration = {
49
36
  partners: partners,
50
37
  updatePartner: updatePartner,
51
38
  partnerStats: partnerStats,
52
- stories: stories,
53
- moderateStory: moderateStory,
54
39
  materialOrders: materialOrders,
55
40
  updateMaterialOrder: updateMaterialOrder,
56
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
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": "d1cfc59b706d0fa0de15b7c5d79934b353f49cc8",
15
+ "gitHead": "fd9c7763c491702b9dd7ebb53f4463b73dee7e40",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^2.0.13",
18
- "@escapenavigator/utils": "^2.0.14",
17
+ "@escapenavigator/types": "^2.0.15",
18
+ "@escapenavigator/utils": "^2.0.16",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",