@escapenavigator/services 2.0.29 → 2.0.30
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,36 @@
|
|
|
1
|
+
import { AggregatorQuestRO, AggregatorQuestStatsRO } from '@escapenavigator/types/dist/aggregator-companies/aggregator-quest.ro';
|
|
2
|
+
import { AggregatorQuestStatusEnum } from '@escapenavigator/types/dist/aggregator-companies/aggregator-quest-status.enum';
|
|
3
|
+
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
4
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
5
|
+
import { ApiMethodDeclaration } from '..';
|
|
6
|
+
declare const query: ApiMethodDeclaration<QueryDto, QueryRO<AggregatorQuestRO>>;
|
|
7
|
+
declare const stats: ApiMethodDeclaration<undefined, AggregatorQuestStatsRO>;
|
|
8
|
+
declare const setStatus: ApiMethodDeclaration<{
|
|
9
|
+
id: number;
|
|
10
|
+
status: AggregatorQuestStatusEnum;
|
|
11
|
+
note?: string;
|
|
12
|
+
}, {
|
|
13
|
+
id: number;
|
|
14
|
+
status: AggregatorQuestStatusEnum;
|
|
15
|
+
}>;
|
|
16
|
+
declare const link: ApiMethodDeclaration<{
|
|
17
|
+
id: number;
|
|
18
|
+
questroomId: number;
|
|
19
|
+
note?: string;
|
|
20
|
+
}, AggregatorQuestRO>;
|
|
21
|
+
declare const createQuestroom: ApiMethodDeclaration<{
|
|
22
|
+
id: number;
|
|
23
|
+
}, {
|
|
24
|
+
questroomId: number;
|
|
25
|
+
title: string;
|
|
26
|
+
photosUploaded: number;
|
|
27
|
+
}>;
|
|
28
|
+
type ApiDeclaration = {
|
|
29
|
+
query: typeof query;
|
|
30
|
+
stats: typeof stats;
|
|
31
|
+
setStatus: typeof setStatus;
|
|
32
|
+
link: typeof link;
|
|
33
|
+
createQuestroom: typeof createQuestroom;
|
|
34
|
+
};
|
|
35
|
+
export declare const aggregatorQuestsApiDeclaration: ApiDeclaration;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
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.aggregatorQuestsApiDeclaration = void 0;
|
|
15
|
+
var query = function (params) { return ({
|
|
16
|
+
url: '/aggregator-quests',
|
|
17
|
+
method: 'GET',
|
|
18
|
+
params: params,
|
|
19
|
+
}); };
|
|
20
|
+
var stats = function () { return ({
|
|
21
|
+
url: '/aggregator-quests/stats',
|
|
22
|
+
method: 'GET',
|
|
23
|
+
}); };
|
|
24
|
+
var setStatus = function (_a) {
|
|
25
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
26
|
+
return ({
|
|
27
|
+
url: "/aggregator-quests/".concat(id, "/status"),
|
|
28
|
+
method: 'PATCH',
|
|
29
|
+
data: data,
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
var link = function (_a) {
|
|
33
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
34
|
+
return ({
|
|
35
|
+
url: "/aggregator-quests/".concat(id, "/link"),
|
|
36
|
+
method: 'POST',
|
|
37
|
+
data: data,
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
var createQuestroom = function (_a) {
|
|
41
|
+
var id = _a.id;
|
|
42
|
+
return ({
|
|
43
|
+
url: "/aggregator-quests/".concat(id, "/create-questroom"),
|
|
44
|
+
method: 'POST',
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
exports.aggregatorQuestsApiDeclaration = {
|
|
48
|
+
query: query,
|
|
49
|
+
stats: stats,
|
|
50
|
+
setStatus: setStatus,
|
|
51
|
+
link: link,
|
|
52
|
+
createQuestroom: createQuestroom,
|
|
53
|
+
};
|
|
@@ -4,6 +4,7 @@ import { adminAnnouncementsApiDeclaration } from './admin-announcements-api';
|
|
|
4
4
|
import { adminsApiDeclaration } from './admins-api';
|
|
5
5
|
import { agbApiDeclaration } from './agb-api';
|
|
6
6
|
import { aggregatorCompaniesApiDeclaration } from './aggregator-companies-api';
|
|
7
|
+
import { aggregatorQuestsApiDeclaration } from './aggregator-quests-api';
|
|
7
8
|
import { agregatorApiDeclaration } from './agregator-api';
|
|
8
9
|
import { analyticsChatApiDeclaration } from './analytics-chat-api';
|
|
9
10
|
import { articlesApiDeclaration } from './articles-api';
|
|
@@ -99,6 +100,7 @@ export type InitApiDeclaration = {
|
|
|
99
100
|
googlePlacesApi: Api<typeof googlePlacesApiDeclaration>;
|
|
100
101
|
parseResultsApi: Api<typeof parseResultsApiDeclaration>;
|
|
101
102
|
aggregatorCompaniesApi: Api<typeof aggregatorCompaniesApiDeclaration>;
|
|
103
|
+
aggregatorQuestsApi: Api<typeof aggregatorQuestsApiDeclaration>;
|
|
102
104
|
partnerSystemsApi: Api<typeof partnerSystemsApiDeclaration>;
|
|
103
105
|
cronParserApi: Api<typeof cronParserApiDeclaration>;
|
|
104
106
|
slotRulesApi: Api<typeof slotRulesApi>;
|
|
@@ -7,6 +7,7 @@ var admin_announcements_api_1 = require("./admin-announcements-api");
|
|
|
7
7
|
var admins_api_1 = require("./admins-api");
|
|
8
8
|
var agb_api_1 = require("./agb-api");
|
|
9
9
|
var aggregator_companies_api_1 = require("./aggregator-companies-api");
|
|
10
|
+
var aggregator_quests_api_1 = require("./aggregator-quests-api");
|
|
10
11
|
var agregator_api_1 = require("./agregator-api");
|
|
11
12
|
var analytics_chat_api_1 = require("./analytics-chat-api");
|
|
12
13
|
var articles_api_1 = require("./articles-api");
|
|
@@ -105,6 +106,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
105
106
|
googlePlacesApi: (0, _1.initApi)(google_places_api_1.googlePlacesApiDeclaration, url, clientOptions),
|
|
106
107
|
parseResultsApi: (0, _1.initApi)(parse_results_api_1.parseResultsApiDeclaration, url, clientOptions),
|
|
107
108
|
aggregatorCompaniesApi: (0, _1.initApi)(aggregator_companies_api_1.aggregatorCompaniesApiDeclaration, url, clientOptions),
|
|
109
|
+
aggregatorQuestsApi: (0, _1.initApi)(aggregator_quests_api_1.aggregatorQuestsApiDeclaration, url, clientOptions),
|
|
108
110
|
partnerSystemsApi: (0, _1.initApi)(partner_systems_api_1.partnerSystemsApiDeclaration, url, clientOptions),
|
|
109
111
|
cronParserApi: (0, _1.initApi)(cron_parser_api_1.cronParserApiDeclaration, url, clientOptions),
|
|
110
112
|
slotRulesApi: (0, _1.initApi)(slot_rules_api_1.slotRulesApi, url, clientOptions),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.30",
|
|
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": "2c960a4fc7a57a8d5123451e6b1ae517700b8cf9",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.28",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.30",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|