@escapenavigator/services 2.0.26 → 2.0.28

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.
Files changed (41) hide show
  1. package/dist/api/init-client-api.d.ts +2 -14
  2. package/dist/api/init-client-api.js +2 -14
  3. package/dist/api/openapi-widget-api/external/index.d.ts +1 -0
  4. package/dist/api/openapi-widget-api/external/index.js +3 -1
  5. package/dist/api/openapi-widget-api/external/partner-order.d.ts +8 -0
  6. package/dist/api/openapi-widget-api/external/partner-order.js +10 -0
  7. package/dist/api/openapi-widget-api/index.d.ts +2 -1
  8. package/dist/api/openapi-widget-api/index.js +1 -0
  9. package/dist/api/orders-api/imports/commit-import.d.ts +6 -0
  10. package/dist/api/orders-api/imports/commit-import.js +8 -0
  11. package/dist/api/orders-api/imports/create-import.d.ts +9 -0
  12. package/dist/api/orders-api/imports/create-import.js +16 -0
  13. package/dist/api/orders-api/imports/get-import.d.ts +6 -0
  14. package/dist/api/orders-api/imports/get-import.js +8 -0
  15. package/dist/api/orders-api/imports/update-import.d.ts +8 -0
  16. package/dist/api/orders-api/imports/update-import.js +23 -0
  17. package/dist/api/orders-api/index.d.ts +8 -0
  18. package/dist/api/orders-api/index.js +8 -0
  19. package/dist/api/partner-systems-api/index.d.ts +132 -0
  20. package/dist/api/partner-systems-api/index.js +87 -0
  21. package/dist/api/profiles-api/index.d.ts +4 -0
  22. package/dist/api/profiles-api/index.js +4 -0
  23. package/dist/api/profiles-api/profile-sms/send-client-email.d.ts +10 -0
  24. package/dist/api/profiles-api/profile-sms/send-client-email.js +13 -0
  25. package/dist/api/profiles-api/profile-sms/send-client-sms.d.ts +13 -0
  26. package/dist/api/profiles-api/profile-sms/send-client-sms.js +16 -0
  27. package/package.json +4 -4
  28. package/dist/api/city-attractions-api/index.d.ts +0 -95
  29. package/dist/api/city-attractions-api/index.js +0 -189
  30. package/dist/api/city-people-api/index.d.ts +0 -67
  31. package/dist/api/city-people-api/index.js +0 -129
  32. package/dist/api/city-player-api/index.d.ts +0 -85
  33. package/dist/api/city-player-api/index.js +0 -151
  34. package/dist/api/city-quest-api/index.d.ts +0 -97
  35. package/dist/api/city-quest-api/index.js +0 -131
  36. package/dist/api/city-quest-play-api/index.d.ts +0 -46
  37. package/dist/api/city-quest-play-api/index.js +0 -107
  38. package/dist/api/city-ready-routes-api/index.d.ts +0 -28
  39. package/dist/api/city-ready-routes-api/index.js +0 -57
  40. package/dist/api/partners-portal-admin-api/index.d.ts +0 -28
  41. package/dist/api/partners-portal-admin-api/index.js +0 -41
@@ -1,151 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cityPlayerApiDeclaration = void 0;
4
- /**
5
- * API потребительского игрока (Routale). Один app — два бека: запросы
6
- * идут через failover-обёртку в приложении, которая при 404/401 ретраит
7
- * второй домен и закрепляет рабочий.
8
- */
9
- var ping = function () { return ({
10
- url: '/openapi/city-player/ping',
11
- method: 'GET',
12
- }); };
13
- var login = function (_a) {
14
- var data = _a.data;
15
- return ({
16
- url: '/openapi/city-player/login',
17
- method: 'POST',
18
- data: data,
19
- });
20
- };
21
- var requestCode = function (_a) {
22
- var data = _a.data;
23
- return ({
24
- url: '/openapi/city-player/request-code',
25
- method: 'POST',
26
- data: data,
27
- });
28
- };
29
- var verifyCode = function (_a) {
30
- var data = _a.data;
31
- return ({
32
- url: '/openapi/city-player/verify-code',
33
- method: 'POST',
34
- data: data,
35
- });
36
- };
37
- var appleLogin = function (_a) {
38
- var data = _a.data;
39
- return ({
40
- url: '/openapi/city-player/apple',
41
- method: 'POST',
42
- data: data,
43
- });
44
- };
45
- var me = function () { return ({
46
- url: '/openapi/city-player/me',
47
- method: 'GET',
48
- }); };
49
- var games = function () { return ({
50
- url: '/openapi/city-player/games',
51
- method: 'GET',
52
- }); };
53
- var catalog = function (params) { return ({
54
- url: '/openapi/city-player/catalog',
55
- method: 'GET',
56
- params: params || undefined,
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
- };
82
- var questPreview = function (params) {
83
- var id = typeof params === 'number' ? params : params.id;
84
- var language = typeof params === 'number' ? undefined : params.language;
85
- return {
86
- url: "/openapi/city-player/quests/".concat(id),
87
- method: 'GET',
88
- params: { language: language },
89
- };
90
- };
91
- var freeRoute = function (params) { return ({
92
- url: '/openapi/city-player/free-route',
93
- method: 'GET',
94
- params: params,
95
- }); };
96
- var cityReadyRoutes = function (_a) {
97
- var cityId = _a.cityId, language = _a.language;
98
- return ({
99
- url: "/openapi/city-player/cities/".concat(cityId, "/ready-routes"),
100
- method: 'GET',
101
- params: { language: language },
102
- });
103
- };
104
- var readyRouteDetail = function (_a) {
105
- var routeId = _a.routeId, language = _a.language;
106
- return ({
107
- url: "/openapi/city-player/ready-routes/".concat(routeId),
108
- method: 'GET',
109
- params: { language: language },
110
- });
111
- };
112
- var entitlements = function () { return ({
113
- url: '/openapi/city-player/entitlements',
114
- method: 'GET',
115
- }); };
116
- var devGrantEntitlement = function (data) { return ({
117
- url: '/openapi/city-player/entitlements/dev-grant',
118
- method: 'POST',
119
- data: data,
120
- }); };
121
- var devRevokeEntitlement = function (data) { return ({
122
- url: '/openapi/city-player/entitlements/dev-revoke',
123
- method: 'POST',
124
- data: data,
125
- }); };
126
- var iapGrantEntitlement = function (data) { return ({
127
- url: '/openapi/city-player/entitlements/iap-grant',
128
- method: 'POST',
129
- data: data,
130
- }); };
131
- exports.cityPlayerApiDeclaration = {
132
- ping: ping,
133
- login: login,
134
- requestCode: requestCode,
135
- verifyCode: verifyCode,
136
- appleLogin: appleLogin,
137
- me: me,
138
- games: games,
139
- catalog: catalog,
140
- cityPeople: cityPeople,
141
- cityAttractions: cityAttractions,
142
- personDetail: personDetail,
143
- questPreview: questPreview,
144
- freeRoute: freeRoute,
145
- cityReadyRoutes: cityReadyRoutes,
146
- readyRouteDetail: readyRouteDetail,
147
- entitlements: entitlements,
148
- devGrantEntitlement: devGrantEntitlement,
149
- devRevokeEntitlement: devRevokeEntitlement,
150
- iapGrantEntitlement: iapGrantEntitlement,
151
- };
@@ -1,97 +0,0 @@
1
- import { CityAttractionRO } from '@escapenavigator/types/dist/city-attraction/city-attraction.ro';
2
- import { BindCityQuestDto } from '@escapenavigator/types/dist/city-quest/bind-city-quest.dto';
3
- import { CityQuestAssetRO, CityQuestRO } from '@escapenavigator/types/dist/city-quest/city-quest.ro';
4
- import { ImportCityQuestDto } from '@escapenavigator/types/dist/city-quest/import-city-quest.dto';
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';
7
- import { UpdateCityQuestStopDto } from '@escapenavigator/types/dist/city-quest/update-city-quest-stop.dto';
8
- import { UpsertCityQuestAssetDto } from '@escapenavigator/types/dist/city-quest/upsert-city-quest-asset.dto';
9
- import { UpsertCityQuestLocaleDto } from '@escapenavigator/types/dist/city-quest/upsert-city-quest-locale.dto';
10
- import { ApiMethodDeclaration } from '..';
11
- export type CityQuestAnalyticsRO = {
12
- sessionsTotal: number;
13
- sessionsFinished: number;
14
- completionRate: number;
15
- medianDurationSec: number;
16
- avgScore: number;
17
- issues: Array<{
18
- id: number;
19
- stopId: string;
20
- text: string;
21
- createdAt: string;
22
- }>;
23
- overrides: Array<{
24
- id: number;
25
- stopId: string;
26
- fallbackForced: boolean;
27
- reason: string | null;
28
- }>;
29
- };
30
- export declare const cityQuestsApiDeclaration: {
31
- query: ApiMethodDeclaration<undefined, CityQuestRO[]>;
32
- getOne: ApiMethodDeclaration<number, CityQuestRO>;
33
- getContent: ApiMethodDeclaration<number, {
34
- content: Record<string, unknown> | null;
35
- attractionsById: Record<string, CityAttractionRO>;
36
- }>;
37
- updateContent: ApiMethodDeclaration<{
38
- id: number;
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>;
48
- importGame: ApiMethodDeclaration<{
49
- data: ImportCityQuestDto;
50
- }, CityQuestRO>;
51
- update: ApiMethodDeclaration<{
52
- id: number;
53
- data: UpdateCityQuestDto;
54
- }, CityQuestRO>;
55
- updateStop: ApiMethodDeclaration<{
56
- id: number;
57
- stopId: string;
58
- data: UpdateCityQuestStopDto;
59
- }, CityQuestRO>;
60
- markReady: ApiMethodDeclaration<number, CityQuestRO>;
61
- publish: ApiMethodDeclaration<number, CityQuestRO>;
62
- listAssets: ApiMethodDeclaration<number, CityQuestAssetRO[]>;
63
- upsertAsset: ApiMethodDeclaration<{
64
- id: number;
65
- data: UpsertCityQuestAssetDto;
66
- }, CityQuestAssetRO>;
67
- deleteAsset: ApiMethodDeclaration<{
68
- id: number;
69
- assetId: number;
70
- }, {
71
- success: boolean;
72
- }>;
73
- bind: ApiMethodDeclaration<{
74
- id: number;
75
- data: BindCityQuestDto;
76
- }, {
77
- id: number;
78
- questroomId: number;
79
- profileId: number;
80
- }>;
81
- unbind: ApiMethodDeclaration<{
82
- id: number;
83
- bindingId: number;
84
- }, {
85
- success: boolean;
86
- }>;
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
- }>;
97
- };
@@ -1,131 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cityQuestsApiDeclaration = void 0;
4
- /** Админский API управления городскими квестами (контент/ассеты/биндинги). */
5
- var query = function () { return ({
6
- url: '/admin/city-quests',
7
- method: 'GET',
8
- }); };
9
- var getOne = function (id) { return ({
10
- url: "/admin/city-quests/".concat(id),
11
- method: 'GET',
12
- }); };
13
- var getContent = function (id) { return ({
14
- url: "/admin/city-quests/".concat(id, "/content"),
15
- method: 'GET',
16
- }); };
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
- };
33
- var importGame = function (_a) {
34
- var data = _a.data;
35
- return ({
36
- url: '/admin/city-quests/import',
37
- method: 'POST',
38
- data: data,
39
- });
40
- };
41
- var update = function (_a) {
42
- var id = _a.id, data = _a.data;
43
- return ({
44
- url: "/admin/city-quests/".concat(id),
45
- method: 'PATCH',
46
- data: data,
47
- });
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 */
62
- var publish = function (id) { return ({
63
- url: "/admin/city-quests/".concat(id, "/mark-ready"),
64
- method: 'POST',
65
- }); };
66
- var listAssets = function (id) { return ({
67
- url: "/admin/city-quests/".concat(id, "/assets"),
68
- method: 'GET',
69
- }); };
70
- var upsertAsset = function (_a) {
71
- var id = _a.id, data = _a.data;
72
- return ({
73
- url: "/admin/city-quests/".concat(id, "/assets"),
74
- method: 'POST',
75
- data: data,
76
- });
77
- };
78
- var deleteAsset = function (_a) {
79
- var id = _a.id, assetId = _a.assetId;
80
- return ({
81
- url: "/admin/city-quests/".concat(id, "/assets/").concat(assetId),
82
- method: 'DELETE',
83
- });
84
- };
85
- var bind = function (_a) {
86
- var id = _a.id, data = _a.data;
87
- return ({
88
- url: "/admin/city-quests/".concat(id, "/bindings"),
89
- method: 'POST',
90
- data: data,
91
- });
92
- };
93
- var unbind = function (_a) {
94
- var id = _a.id, bindingId = _a.bindingId;
95
- return ({
96
- url: "/admin/city-quests/".concat(id, "/bindings/").concat(bindingId),
97
- method: 'DELETE',
98
- });
99
- };
100
- var analytics = function (id) { return ({
101
- url: "/admin/city-quests/".concat(id, "/analytics"),
102
- method: 'GET',
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
- }); };
112
- exports.cityQuestsApiDeclaration = {
113
- query: query,
114
- getOne: getOne,
115
- getContent: getContent,
116
- updateContent: updateContent,
117
- upsertLocale: upsertLocale,
118
- importGame: importGame,
119
- update: update,
120
- updateStop: updateStop,
121
- markReady: markReady,
122
- publish: publish,
123
- listAssets: listAssets,
124
- upsertAsset: upsertAsset,
125
- deleteAsset: deleteAsset,
126
- bind: bind,
127
- unbind: unbind,
128
- analytics: analytics,
129
- backfillCities: backfillCities,
130
- migrateStatusContent: migrateStatusContent,
131
- };
@@ -1,46 +0,0 @@
1
- import { PlayAnswerDto } from '@escapenavigator/types/dist/openapi/city-quest/play-answer.dto';
2
- import { PlayFinaleChoiceDto } from '@escapenavigator/types/dist/openapi/city-quest/play-finale-choice.dto';
3
- import { PlayHintDto } from '@escapenavigator/types/dist/openapi/city-quest/play-hint.dto';
4
- import { PlayIssueDto } from '@escapenavigator/types/dist/openapi/city-quest/play-issue.dto';
5
- import { PlayStartSessionDto } from '@escapenavigator/types/dist/openapi/city-quest/play-start-session.dto';
6
- import { PlayAccessInfoRO, PlayAnswerResultRO, PlayStateRO } from '@escapenavigator/types/dist/openapi/city-quest/play-state.ro';
7
- import { ApiMethodDeclaration } from '..';
8
- export declare const cityQuestPlayApiDeclaration: {
9
- getAccessInfo: ApiMethodDeclaration<string, PlayAccessInfoRO>;
10
- startSession: ApiMethodDeclaration<{
11
- data: PlayStartSessionDto;
12
- }, PlayStateRO>;
13
- getState: ApiMethodDeclaration<string, PlayStateRO>;
14
- arrival: ApiMethodDeclaration<string, PlayStateRO>;
15
- answer: ApiMethodDeclaration<{
16
- token: string;
17
- data: PlayAnswerDto;
18
- }, PlayAnswerResultRO>;
19
- hint: ApiMethodDeclaration<{
20
- token: string;
21
- data: PlayHintDto;
22
- }, {
23
- text: string;
24
- state: PlayStateRO;
25
- }>;
26
- skip: ApiMethodDeclaration<string, PlayAnswerResultRO>;
27
- routeEventAnswer: ApiMethodDeclaration<{
28
- token: string;
29
- data: PlayAnswerDto;
30
- }, PlayAnswerResultRO>;
31
- routeEventDismiss: ApiMethodDeclaration<string, PlayStateRO>;
32
- finaleAssembly: ApiMethodDeclaration<{
33
- token: string;
34
- data: PlayAnswerDto;
35
- }, PlayAnswerResultRO>;
36
- finaleChoice: ApiMethodDeclaration<{
37
- token: string;
38
- data: PlayFinaleChoiceDto;
39
- }, PlayStateRO>;
40
- pause: ApiMethodDeclaration<string, PlayStateRO>;
41
- resume: ApiMethodDeclaration<string, PlayStateRO>;
42
- reportIssue: ApiMethodDeclaration<{
43
- token: string;
44
- data: PlayIssueDto;
45
- }, PlayStateRO>;
46
- };
@@ -1,107 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cityQuestPlayApiDeclaration = void 0;
4
- /**
5
- * Публичный API игрока городского квеста (без авторизации — токен
6
- * доступа/сессии в URL является «паролем»).
7
- */
8
- var getAccessInfo = function (token) { return ({
9
- url: "/openapi/city-quest/access/".concat(token),
10
- method: 'GET',
11
- }); };
12
- var startSession = function (_a) {
13
- var data = _a.data;
14
- return ({
15
- url: '/openapi/city-quest/sessions',
16
- method: 'POST',
17
- data: data,
18
- });
19
- };
20
- var getState = function (token) { return ({
21
- url: "/openapi/city-quest/sessions/".concat(token),
22
- method: 'GET',
23
- }); };
24
- var arrival = function (token) { return ({
25
- url: "/openapi/city-quest/sessions/".concat(token, "/arrival"),
26
- method: 'POST',
27
- }); };
28
- var answer = function (_a) {
29
- var token = _a.token, data = _a.data;
30
- return ({
31
- url: "/openapi/city-quest/sessions/".concat(token, "/answer"),
32
- method: 'POST',
33
- data: data,
34
- });
35
- };
36
- var hint = function (_a) {
37
- var token = _a.token, data = _a.data;
38
- return ({
39
- url: "/openapi/city-quest/sessions/".concat(token, "/hint"),
40
- method: 'POST',
41
- data: data,
42
- });
43
- };
44
- var skip = function (token) { return ({
45
- url: "/openapi/city-quest/sessions/".concat(token, "/skip"),
46
- method: 'POST',
47
- }); };
48
- var routeEventAnswer = function (_a) {
49
- var token = _a.token, data = _a.data;
50
- return ({
51
- url: "/openapi/city-quest/sessions/".concat(token, "/route-event/answer"),
52
- method: 'POST',
53
- data: data,
54
- });
55
- };
56
- var routeEventDismiss = function (token) { return ({
57
- url: "/openapi/city-quest/sessions/".concat(token, "/route-event/dismiss"),
58
- method: 'POST',
59
- }); };
60
- var finaleAssembly = function (_a) {
61
- var token = _a.token, data = _a.data;
62
- return ({
63
- url: "/openapi/city-quest/sessions/".concat(token, "/finale/assembly"),
64
- method: 'POST',
65
- data: data,
66
- });
67
- };
68
- var finaleChoice = function (_a) {
69
- var token = _a.token, data = _a.data;
70
- return ({
71
- url: "/openapi/city-quest/sessions/".concat(token, "/finale/choice"),
72
- method: 'POST',
73
- data: data,
74
- });
75
- };
76
- var pause = function (token) { return ({
77
- url: "/openapi/city-quest/sessions/".concat(token, "/pause"),
78
- method: 'PATCH',
79
- }); };
80
- var resume = function (token) { return ({
81
- url: "/openapi/city-quest/sessions/".concat(token, "/resume"),
82
- method: 'PATCH',
83
- }); };
84
- var reportIssue = function (_a) {
85
- var token = _a.token, data = _a.data;
86
- return ({
87
- url: "/openapi/city-quest/sessions/".concat(token, "/issue"),
88
- method: 'POST',
89
- data: data,
90
- });
91
- };
92
- exports.cityQuestPlayApiDeclaration = {
93
- getAccessInfo: getAccessInfo,
94
- startSession: startSession,
95
- getState: getState,
96
- arrival: arrival,
97
- answer: answer,
98
- hint: hint,
99
- skip: skip,
100
- routeEventAnswer: routeEventAnswer,
101
- routeEventDismiss: routeEventDismiss,
102
- finaleAssembly: finaleAssembly,
103
- finaleChoice: finaleChoice,
104
- pause: pause,
105
- resume: resume,
106
- reportIssue: reportIssue,
107
- };
@@ -1,28 +0,0 @@
1
- import { CityReadyRouteRO } from '@escapenavigator/types/dist/city-ready-route/city-ready-route.ro';
2
- import { CreateCityReadyRouteDto } from '@escapenavigator/types/dist/city-ready-route/create-city-ready-route.dto';
3
- import { EstimateReadyRoutePathDto, EstimateReadyRoutePathRO } from '@escapenavigator/types/dist/city-ready-route/estimate-ready-route-path.dto';
4
- import { ReadyRouteMapPoolRO } from '@escapenavigator/types/dist/city-ready-route/ready-route-map-pool.ro';
5
- import { UpdateCityReadyRouteDto } from '@escapenavigator/types/dist/city-ready-route/update-city-ready-route.dto';
6
- import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
7
- import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
8
- import { ApiMethodDeclaration } from '..';
9
- export declare const cityReadyRoutesApiDeclaration: {
10
- query: ApiMethodDeclaration<QueryDto, QueryRO<CityReadyRouteRO>>;
11
- getOne: ApiMethodDeclaration<number, CityReadyRouteRO>;
12
- create: ApiMethodDeclaration<{
13
- data: CreateCityReadyRouteDto;
14
- }, CityReadyRouteRO>;
15
- update: ApiMethodDeclaration<{
16
- id: number;
17
- data: UpdateCityReadyRouteDto;
18
- }, CityReadyRouteRO>;
19
- remove: ApiMethodDeclaration<number, {
20
- success: boolean;
21
- }>;
22
- mapPool: ApiMethodDeclaration<{
23
- cityId: number;
24
- }, ReadyRouteMapPoolRO>;
25
- estimatePath: ApiMethodDeclaration<{
26
- data: EstimateReadyRoutePathDto;
27
- }, EstimateReadyRoutePathRO>;
28
- };
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cityReadyRoutesApiDeclaration = void 0;
4
- var query = function (params) { return ({
5
- url: '/admin/city-ready-routes',
6
- method: 'GET',
7
- params: params,
8
- }); };
9
- var getOne = function (id) { return ({
10
- url: "/admin/city-ready-routes/".concat(id),
11
- method: 'GET',
12
- }); };
13
- var create = function (_a) {
14
- var data = _a.data;
15
- return ({
16
- url: '/admin/city-ready-routes',
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-ready-routes/".concat(id),
25
- method: 'PATCH',
26
- data: data,
27
- });
28
- };
29
- var remove = function (id) { return ({
30
- url: "/admin/city-ready-routes/".concat(id),
31
- method: 'DELETE',
32
- }); };
33
- var mapPool = function (_a) {
34
- var cityId = _a.cityId;
35
- return ({
36
- url: '/admin/city-ready-routes/map-pool',
37
- method: 'GET',
38
- params: { cityId: cityId },
39
- });
40
- };
41
- var estimatePath = function (_a) {
42
- var data = _a.data;
43
- return ({
44
- url: '/admin/city-ready-routes/estimate-path',
45
- method: 'POST',
46
- data: data,
47
- });
48
- };
49
- exports.cityReadyRoutesApiDeclaration = {
50
- query: query,
51
- getOne: getOne,
52
- create: create,
53
- update: update,
54
- remove: remove,
55
- mapPool: mapPool,
56
- estimatePath: estimatePath,
57
- };
@@ -1,28 +0,0 @@
1
- import { AdminPortalPartnerRO } from '@escapenavigator/types/dist/partners-portal/admin/admin-portal-partner.ro';
2
- import { AdminUpdatePortalMaterialOrderDto } from '@escapenavigator/types/dist/partners-portal/admin/admin-update-portal-material-order.dto';
3
- import { AdminUpdatePortalPartnerDto } from '@escapenavigator/types/dist/partners-portal/admin/admin-update-portal-partner.dto';
4
- import { PortalMaterialOrderStatusEnum } from '@escapenavigator/types/dist/partners-portal/enum/portal-material-order-status.enum';
5
- import { PortalPartnerTypeEnum } from '@escapenavigator/types/dist/partners-portal/enum/portal-partner-type.enum';
6
- import { PortalMaterialOrderRO } from '@escapenavigator/types/dist/partners-portal/portal-material-order.ro';
7
- import { PortalPartnerRO } from '@escapenavigator/types/dist/partners-portal/portal-partner.ro';
8
- import { PortalPartnerStatsRO } from '@escapenavigator/types/dist/partners-portal/portal-stats.ro';
9
- import { ApiMethodDeclaration } from '..';
10
- export declare const partnersPortalAdminApiDeclaration: {
11
- partners: ApiMethodDeclaration<{
12
- type?: PortalPartnerTypeEnum;
13
- }, AdminPortalPartnerRO[]>;
14
- updatePartner: ApiMethodDeclaration<{
15
- id: number;
16
- data: AdminUpdatePortalPartnerDto;
17
- }, AdminPortalPartnerRO>;
18
- partnerStats: ApiMethodDeclaration<number, PortalPartnerStatsRO>;
19
- materialOrders: ApiMethodDeclaration<{
20
- status?: PortalMaterialOrderStatusEnum;
21
- }, (PortalMaterialOrderRO & {
22
- partner?: PortalPartnerRO;
23
- })[]>;
24
- updateMaterialOrder: ApiMethodDeclaration<{
25
- id: number;
26
- data: AdminUpdatePortalMaterialOrderDto;
27
- }, PortalMaterialOrderRO>;
28
- };
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.partnersPortalAdminApiDeclaration = void 0;
4
- /** Админский API партнёрского портала (авторы квестов и площадки). */
5
- var partners = function (params) { return ({
6
- url: '/partners-portal/admin/partners',
7
- method: 'GET',
8
- params: params,
9
- }); };
10
- var updatePartner = function (_a) {
11
- var id = _a.id, data = _a.data;
12
- return ({
13
- url: "/partners-portal/admin/partners/".concat(id),
14
- method: 'PATCH',
15
- data: data,
16
- });
17
- };
18
- var partnerStats = function (id) { return ({
19
- url: "/partners-portal/admin/partners/".concat(id, "/stats"),
20
- method: 'GET',
21
- }); };
22
- var materialOrders = function (params) { return ({
23
- url: '/partners-portal/admin/material-orders',
24
- method: 'GET',
25
- params: params,
26
- }); };
27
- var updateMaterialOrder = function (_a) {
28
- var id = _a.id, data = _a.data;
29
- return ({
30
- url: "/partners-portal/admin/material-orders/".concat(id),
31
- method: 'PATCH',
32
- data: data,
33
- });
34
- };
35
- exports.partnersPortalAdminApiDeclaration = {
36
- partners: partners,
37
- updatePartner: updatePartner,
38
- partnerStats: partnerStats,
39
- materialOrders: materialOrders,
40
- updateMaterialOrder: updateMaterialOrder,
41
- };