@escapenavigator/services 1.10.136 → 1.10.138
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/cities-api/get-agglomeration-centers.d.ts +10 -0
- package/dist/api/cities-api/get-agglomeration-centers.js +12 -0
- package/dist/api/cities-api/index.d.ts +2 -0
- package/dist/api/cities-api/index.js +2 -0
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/dist/api/profiles-api/index.d.ts +2 -0
- package/dist/api/profiles-api/index.js +2 -0
- package/dist/api/profiles-api/update-profile-commission.d.ts +10 -0
- package/dist/api/profiles-api/update-profile-commission.js +12 -0
- package/dist/api/subway-stations-api/index.d.ts +10 -0
- package/dist/api/subway-stations-api/index.js +11 -0
- package/dist/api/subway-stations-api/list-cities.d.ts +3 -0
- package/dist/api/subway-stations-api/list-cities.js +8 -0
- package/dist/api/subway-stations-api/list.d.ts +7 -0
- package/dist/api/subway-stations-api/list.js +9 -0
- package/dist/api/subway-stations-api/sync.d.ts +3 -0
- package/dist/api/subway-stations-api/sync.js +8 -0
- package/package.json +4 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CityRO } from '@escapenavigator/types/dist/city/city.ro';
|
|
2
|
+
import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
country: CountriesEnum;
|
|
6
|
+
excludeCityId?: number;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = CityRO[];
|
|
9
|
+
export declare const getAgglomerationCenters: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAgglomerationCenters = void 0;
|
|
4
|
+
var getAgglomerationCenters = function (_a) {
|
|
5
|
+
var country = _a.country, excludeCityId = _a.excludeCityId;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/cities/admin/agglomeration-centers',
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: { country: country, excludeCityId: excludeCityId },
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.getAgglomerationCenters = getAgglomerationCenters;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { generateFaq } from './generate-faq';
|
|
2
|
+
import { getAgglomerationCenters } from './get-agglomeration-centers';
|
|
2
3
|
import { getFaq } from './get-faq';
|
|
3
4
|
import { getOne } from './get-one';
|
|
4
5
|
import { getPopularForAdmin } from './get-popular-for-admin';
|
|
@@ -15,6 +16,7 @@ type ApiDeclaration = {
|
|
|
15
16
|
query: typeof query;
|
|
16
17
|
remove: typeof remove;
|
|
17
18
|
getPopularForAdmin: typeof getPopularForAdmin;
|
|
19
|
+
getAgglomerationCenters: typeof getAgglomerationCenters;
|
|
18
20
|
};
|
|
19
21
|
export declare const citiesApiDeclaration: ApiDeclaration;
|
|
20
22
|
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.citiesApiDeclaration = void 0;
|
|
4
4
|
var generate_faq_1 = require("./generate-faq");
|
|
5
|
+
var get_agglomeration_centers_1 = require("./get-agglomeration-centers");
|
|
5
6
|
var get_faq_1 = require("./get-faq");
|
|
6
7
|
var get_one_1 = require("./get-one");
|
|
7
8
|
var get_popular_for_admin_1 = require("./get-popular-for-admin");
|
|
@@ -18,4 +19,5 @@ exports.citiesApiDeclaration = {
|
|
|
18
19
|
query: query_1.query,
|
|
19
20
|
remove: remove_1.remove,
|
|
20
21
|
getPopularForAdmin: get_popular_for_admin_1.getPopularForAdmin,
|
|
22
|
+
getAgglomerationCenters: get_agglomeration_centers_1.getAgglomerationCenters,
|
|
21
23
|
};
|
|
@@ -62,6 +62,7 @@ import { slotTemplatesApiDeclaration } from './slot-templates-api';
|
|
|
62
62
|
import { slotsApiDeclaration } from './slots-api';
|
|
63
63
|
import { statisticsApiDeclaration } from './statistics-api';
|
|
64
64
|
import { stockArrivalsApiDeclaration } from './stock-arrivals-api';
|
|
65
|
+
import { subwayStationsApiDeclaration } from './subway-stations-api';
|
|
65
66
|
import { supportApiDeclaration } from './support';
|
|
66
67
|
import { tariffsApiDeclaration } from './tariffs-api';
|
|
67
68
|
import { transactionsApiDeclaration } from './transactions-api';
|
|
@@ -104,6 +105,7 @@ export type InitApiDeclaration = {
|
|
|
104
105
|
orderCertificates: Api<typeof orderCertificatesApiDeclaration>;
|
|
105
106
|
orderGroups: Api<typeof orderGroupsApiDeclaration>;
|
|
106
107
|
cities: Api<typeof citiesApiDeclaration>;
|
|
108
|
+
subwayStations: Api<typeof subwayStationsApiDeclaration>;
|
|
107
109
|
nowEscape: Api<typeof nowEscapeApiDeclaration>;
|
|
108
110
|
logs: Api<typeof logsApiDeclaration>;
|
|
109
111
|
marketingEmailVariables: Api<typeof marketingEmailVariablesApiDeclaration>;
|
|
@@ -66,6 +66,7 @@ var slots_api_1 = require("./slots-api");
|
|
|
66
66
|
var statistics_api_1 = require("./statistics-api");
|
|
67
67
|
var stock_arrivals_api_1 = require("./stock-arrivals-api");
|
|
68
68
|
// import { subscriptionApiDeclaration } from './_subscription-api';
|
|
69
|
+
var subway_stations_api_1 = require("./subway-stations-api");
|
|
69
70
|
var support_1 = require("./support");
|
|
70
71
|
var tariffs_api_1 = require("./tariffs-api");
|
|
71
72
|
var transactions_api_1 = require("./transactions-api");
|
|
@@ -102,6 +103,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
102
103
|
products: (0, _1.initApi)(products_api_1.productsApiDeclaration, url, clientOptions),
|
|
103
104
|
stockArrivals: (0, _1.initApi)(stock_arrivals_api_1.stockArrivalsApiDeclaration, url, clientOptions),
|
|
104
105
|
cities: (0, _1.initApi)(cities_api_1.citiesApiDeclaration, url, clientOptions),
|
|
106
|
+
subwayStations: (0, _1.initApi)(subway_stations_api_1.subwayStationsApiDeclaration, url, clientOptions),
|
|
105
107
|
orderCertificates: (0, _1.initApi)(order_certificates_api_1.orderCertificatesApiDeclaration, url, clientOptions),
|
|
106
108
|
orderGroups: (0, _1.initApi)(order_groups_api_1.orderGroupsApiDeclaration, url, clientOptions),
|
|
107
109
|
logs: (0, _1.initApi)(logs_api_1.logsApiDeclaration, url, clientOptions),
|
|
@@ -104,6 +104,7 @@ import { paginateBills } from './subscription/paginate-bills';
|
|
|
104
104
|
import { cancelSubscription } from './subscription/remove-subscription';
|
|
105
105
|
import { updateSubscription } from './subscription/update-subscription';
|
|
106
106
|
import { update } from './update';
|
|
107
|
+
import { updateProfileCommission } from './update-profile-commission';
|
|
107
108
|
import { updateCrmVerification } from './update-crm-verification';
|
|
108
109
|
import { updatePartnerProgram } from './update-partner-program';
|
|
109
110
|
import { updateStep } from './update-step';
|
|
@@ -204,6 +205,7 @@ type ApiDeclaration = {
|
|
|
204
205
|
create: typeof create;
|
|
205
206
|
remove: typeof remove;
|
|
206
207
|
update: typeof update;
|
|
208
|
+
updateProfileCommission: typeof updateProfileCommission;
|
|
207
209
|
query: typeof query;
|
|
208
210
|
getOne: typeof getOne;
|
|
209
211
|
current: typeof current;
|
|
@@ -107,6 +107,7 @@ var paginate_bills_1 = require("./subscription/paginate-bills");
|
|
|
107
107
|
var remove_subscription_1 = require("./subscription/remove-subscription");
|
|
108
108
|
var update_subscription_1 = require("./subscription/update-subscription");
|
|
109
109
|
var update_2 = require("./update");
|
|
110
|
+
var update_profile_commission_1 = require("./update-profile-commission");
|
|
110
111
|
var update_crm_verification_1 = require("./update-crm-verification");
|
|
111
112
|
var update_partner_program_1 = require("./update-partner-program");
|
|
112
113
|
var update_step_1 = require("./update-step");
|
|
@@ -233,6 +234,7 @@ exports.profilesApiDeclaration = {
|
|
|
233
234
|
create: create_2.create,
|
|
234
235
|
remove: remove_2.remove,
|
|
235
236
|
update: update_2.update,
|
|
237
|
+
updateProfileCommission: update_profile_commission_1.updateProfileCommission,
|
|
236
238
|
query: query_3.query,
|
|
237
239
|
getOne: get_one_1.getOne,
|
|
238
240
|
current: current_1.current,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProfileCommissionRO } from '@escapenavigator/types/dist/profile/profile-commission.ro';
|
|
2
|
+
import { UpdateProfileCommissionDto } from '@escapenavigator/types/dist/profile/update-profile-commission.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateProfileCommissionDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = ProfileCommissionRO;
|
|
9
|
+
export declare const updateProfileCommission: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateProfileCommission = void 0;
|
|
4
|
+
var updateProfileCommission = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/profiles/".concat(id, "/commission"),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateProfileCommission = updateProfileCommission;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { list } from './list';
|
|
2
|
+
import { listCities } from './list-cities';
|
|
3
|
+
import { sync } from './sync';
|
|
4
|
+
type ApiDeclaration = {
|
|
5
|
+
list: typeof list;
|
|
6
|
+
listCities: typeof listCities;
|
|
7
|
+
sync: typeof sync;
|
|
8
|
+
};
|
|
9
|
+
export declare const subwayStationsApiDeclaration: ApiDeclaration;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subwayStationsApiDeclaration = void 0;
|
|
4
|
+
var list_1 = require("./list");
|
|
5
|
+
var list_cities_1 = require("./list-cities");
|
|
6
|
+
var sync_1 = require("./sync");
|
|
7
|
+
exports.subwayStationsApiDeclaration = {
|
|
8
|
+
list: list_1.list,
|
|
9
|
+
listCities: list_cities_1.listCities,
|
|
10
|
+
sync: sync_1.sync,
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
2
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
3
|
+
import { SubwayStationRO } from '@escapenavigator/types/dist/subway-station/subway-station.ro';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
type ParamsData = QueryDto;
|
|
6
|
+
export declare const list: ApiMethodDeclaration<ParamsData, QueryRO<SubwayStationRO>>;
|
|
7
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.138",
|
|
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": "25c61a2bd7e70a03406358540c8b2b7b2d76bd3a",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.129",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.133",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|