@escapenavigator/services 1.10.39 → 1.10.41
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/init-client-api.d.ts +12 -12
- package/dist/api/init-client-api.js +3 -3
- package/dist/api/profiles-api/actions/create-action.d.ts +1 -1
- package/dist/api/profiles-api/actions/delete-action.d.ts +8 -0
- package/dist/api/profiles-api/actions/delete-action.js +11 -0
- package/dist/api/profiles-api/actions/query-actions.d.ts +1 -1
- package/dist/api/profiles-api/actions/update-action.d.ts +1 -3
- package/dist/api/profiles-api/actions/update-action.js +2 -3
- package/dist/api/profiles-api/index.d.ts +2 -0
- package/dist/api/profiles-api/index.js +2 -0
- package/package.json +4 -4
- package/dist/api/certificatesales-api/legacy/update-delivery-info.d.ts +0 -0
- package/dist/api/certificatesales-api/legacy/update-delivery-info.js +0 -16
|
@@ -58,41 +58,39 @@ import { Api } from '.';
|
|
|
58
58
|
export type InitApiDeclaration = {
|
|
59
59
|
customFieldsApi: Api<typeof customFieldsApiDeclaration>;
|
|
60
60
|
questroomScenarioEmailApi: Api<typeof questroomScenarioEmailApiDeclaration>;
|
|
61
|
-
orderEmailsApi: Api<typeof orderEmailsApiDeclaration>;
|
|
62
61
|
crossSalesApi: Api<typeof crossSalesApiDeclaration>;
|
|
63
62
|
mailchimpApi: Api<typeof mailchimpApiDeclaration>;
|
|
64
63
|
playersApi: Api<typeof playersApiDeclaration>;
|
|
65
64
|
googleCalendarsApi: Api<typeof googleCalendarsApiDeclaration>;
|
|
66
65
|
slotRulesApi: Api<typeof slotRulesApi>;
|
|
67
|
-
orderTransactionsApi: Api<typeof orderTransactionsApiDeclaration>;
|
|
68
|
-
openapiWidget: Api<typeof openapiWidgetApiDeclaration>;
|
|
69
66
|
translationsApi: Api<typeof translationsApiDeclaration>;
|
|
70
67
|
expertsReviews: Api<typeof expertsReviewsApiDeclaration>;
|
|
71
68
|
socialReviews: Api<typeof socialReviewsApiDeclaration>;
|
|
72
69
|
dashboard: Api<typeof dashboardApiDeclaration>;
|
|
73
|
-
certificateUploadsApi: Api<typeof certificateUploadsApiDeclaration>;
|
|
74
70
|
statiscticsApi: Api<typeof statisticsApiDeclaration>;
|
|
75
71
|
searchApi: Api<typeof searchApiDeclaration>;
|
|
76
72
|
promocodes: Api<typeof promocodesApiDeclaration>;
|
|
73
|
+
openapiWidget: Api<typeof openapiWidgetApiDeclaration>;
|
|
74
|
+
orders: Api<typeof ordersApiDeclaration>;
|
|
77
75
|
orderPromocodes: Api<typeof orderPromocodesApiDeclaration>;
|
|
76
|
+
orderDiscounts: Api<typeof orderDiscountsApiDeclaration>;
|
|
77
|
+
orderPenalties: Api<typeof orderPenaltiesApiDeclaration>;
|
|
78
|
+
orderUpsellngs: Api<typeof orderUpsellngsApiDeclaration>;
|
|
79
|
+
orderTransactionsApi: Api<typeof orderTransactionsApiDeclaration>;
|
|
80
|
+
orderEmailsApi: Api<typeof orderEmailsApiDeclaration>;
|
|
81
|
+
orderCertificateUploads: Api<typeof orderCertificateUploadsApiDeclaration>;
|
|
82
|
+
orderCertificates: Api<typeof orderCertificatesApiDeclaration>;
|
|
78
83
|
cities: Api<typeof citiesApiDeclaration>;
|
|
79
84
|
nowEscape: Api<typeof nowEscapeApiDeclaration>;
|
|
80
|
-
orderCertificates: Api<typeof orderCertificatesApiDeclaration>;
|
|
81
|
-
certificatesaleDiscounts: Api<typeof certificatesaleDiscountsApiDeclaration>;
|
|
82
85
|
logs: Api<typeof logsApiDeclaration>;
|
|
83
86
|
agregator: Api<typeof agregatorApiDeclaration>;
|
|
84
|
-
orderCertificateUploads: Api<typeof orderCertificateUploadsApiDeclaration>;
|
|
85
87
|
admins: Api<typeof adminsApiDeclaration>;
|
|
86
88
|
uploads: Api<typeof uploadsApiDeclaration>;
|
|
87
89
|
emails: Api<typeof emailsApiDeclaration>;
|
|
88
90
|
userMessages: Api<typeof userMessagesApiDeclaration>;
|
|
89
|
-
orderDiscounts: Api<typeof orderDiscountsApiDeclaration>;
|
|
90
|
-
orderPenalties: Api<typeof orderPenaltiesApiDeclaration>;
|
|
91
|
-
orderUpsellngs: Api<typeof orderUpsellngsApiDeclaration>;
|
|
92
91
|
slots: Api<typeof slotsApiDeclaration>;
|
|
93
92
|
slotTemplates: Api<typeof slotTemplatesApiDeclaration>;
|
|
94
93
|
agbs: Api<typeof agbApiDeclaration>;
|
|
95
|
-
orders: Api<typeof ordersApiDeclaration>;
|
|
96
94
|
cashboxes: Api<typeof cashboxesApiDeclaration>;
|
|
97
95
|
certificates: Api<typeof certificatesApiDeclaration>;
|
|
98
96
|
financeItems: Api<typeof financeItemsApiDeclaration>;
|
|
@@ -108,9 +106,11 @@ export type InitApiDeclaration = {
|
|
|
108
106
|
images: Api<typeof imagesApiDeclaration>;
|
|
109
107
|
roles: Api<typeof rolesApiDeclaration>;
|
|
110
108
|
tariffs: Api<typeof tariffsApiDeclaration>;
|
|
111
|
-
certificatesales: Api<typeof certificateSalesApiDeclaration>;
|
|
112
109
|
support: Api<typeof supportApiDeclaration>;
|
|
113
110
|
registrationRequests: Api<typeof registrationRequestsApiDeclaration>;
|
|
114
111
|
articles: Api<typeof articlesApiDeclaration>;
|
|
112
|
+
certificatesales: Api<typeof certificateSalesApiDeclaration>;
|
|
113
|
+
certificateUploadsApi: Api<typeof certificateUploadsApiDeclaration>;
|
|
114
|
+
certificatesaleDiscounts: Api<typeof certificatesaleDiscountsApiDeclaration>;
|
|
115
115
|
};
|
|
116
116
|
export declare const initClientApi: (url: string) => InitApiDeclaration;
|
|
@@ -76,14 +76,12 @@ var initClientApi = function (url) { return ({
|
|
|
76
76
|
expertsReviews: (0, _1.initApi)(reviews_experts_api_1.expertsReviewsApiDeclaration, url),
|
|
77
77
|
socialReviews: (0, _1.initApi)(reviews_social_api_1.socialReviewsApiDeclaration, url),
|
|
78
78
|
orderCertificateUploads: (0, _1.initApi)(order_certificate_uploads_api_1.orderCertificateUploadsApiDeclaration, url),
|
|
79
|
-
certificateUploadsApi: (0, _1.initApi)(certificateuploads_api_1.certificateUploadsApiDeclaration, url),
|
|
80
79
|
statiscticsApi: (0, _1.initApi)(statistics_api_1.statisticsApiDeclaration, url),
|
|
81
80
|
searchApi: (0, _1.initApi)(search_api_1.searchApiDeclaration, url),
|
|
82
81
|
promocodes: (0, _1.initApi)(promocodes_api_1.promocodesApiDeclaration, url),
|
|
83
82
|
orderPromocodes: (0, _1.initApi)(order_promocodes_api_1.orderPromocodesApiDeclaration, url),
|
|
84
83
|
cities: (0, _1.initApi)(cities_api_1.citiesApiDeclaration, url),
|
|
85
84
|
orderCertificates: (0, _1.initApi)(order_certificates_api_1.orderCertificatesApiDeclaration, url),
|
|
86
|
-
certificatesaleDiscounts: (0, _1.initApi)(certificatesales_discounts_api_1.certificatesaleDiscountsApiDeclaration, url),
|
|
87
85
|
logs: (0, _1.initApi)(logs_api_1.logsApiDeclaration, url),
|
|
88
86
|
agregator: (0, _1.initApi)(agregator_api_1.agregatorApiDeclaration, url),
|
|
89
87
|
agbs: (0, _1.initApi)(agb_api_1.agbApiDeclaration, url),
|
|
@@ -112,10 +110,12 @@ var initClientApi = function (url) { return ({
|
|
|
112
110
|
images: (0, _1.initApi)(images_api_1.imagesApiDeclaration, url),
|
|
113
111
|
roles: (0, _1.initApi)(roles_api_1.rolesApiDeclaration, url),
|
|
114
112
|
tariffs: (0, _1.initApi)(tariffs_api_1.tariffsApiDeclaration, url),
|
|
115
|
-
certificatesales: (0, _1.initApi)(certificatesales_api_1.certificateSalesApiDeclaration, url),
|
|
116
113
|
support: (0, _1.initApi)(support_1.supportApiDeclaration, url),
|
|
117
114
|
registrationRequests: (0, _1.initApi)(registration_requests_api_1.registrationRequestsApiDeclaration, url),
|
|
118
115
|
articles: (0, _1.initApi)(articles_api_1.articlesApiDeclaration, url),
|
|
116
|
+
certificateUploadsApi: (0, _1.initApi)(certificateuploads_api_1.certificateUploadsApiDeclaration, url),
|
|
117
|
+
certificatesaleDiscounts: (0, _1.initApi)(certificatesales_discounts_api_1.certificatesaleDiscountsApiDeclaration, url),
|
|
118
|
+
certificatesales: (0, _1.initApi)(certificatesales_api_1.certificateSalesApiDeclaration, url),
|
|
119
119
|
// subscription: initApi(subscriptionApiDeclaration, url),
|
|
120
120
|
}); };
|
|
121
121
|
exports.initClientApi = initClientApi;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateProfileActionRO } from '@escapenavigator/types/dist/profile/action/create-profile-action.dto';
|
|
2
|
-
import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.
|
|
2
|
+
import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '../..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
data: CreateProfileActionRO;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = ProfileActionRO;
|
|
7
|
+
export declare const deleteAction: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteAction = void 0;
|
|
4
|
+
var deleteAction = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/profile-actions/".concat(id),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.deleteAction = deleteAction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.
|
|
1
|
+
import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.ro';
|
|
2
2
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
3
|
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
4
|
import { ApiMethodDeclaration } from '../..';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.
|
|
2
|
-
import { UpdateProfileActionRO } from '@escapenavigator/types/dist/profile/action/update-profile-action.dto';
|
|
1
|
+
import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.ro';
|
|
3
2
|
import { ApiMethodDeclaration } from '../..';
|
|
4
3
|
type ParamsData = {
|
|
5
4
|
id: number;
|
|
6
|
-
data: UpdateProfileActionRO;
|
|
7
5
|
};
|
|
8
6
|
type ResponseData = ProfileActionRO;
|
|
9
7
|
export declare const updateAction: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateAction = void 0;
|
|
4
4
|
var updateAction = function (_a) {
|
|
5
|
-
var id = _a.id
|
|
5
|
+
var id = _a.id;
|
|
6
6
|
return ({
|
|
7
|
-
url: "/profile-actions/".concat(id),
|
|
7
|
+
url: "/profile-actions/done/".concat(id),
|
|
8
8
|
method: 'PATCH',
|
|
9
|
-
data: data,
|
|
10
9
|
});
|
|
11
10
|
};
|
|
12
11
|
exports.updateAction = updateAction;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createAction } from './actions/create-action';
|
|
2
|
+
import { deleteAction } from './actions/delete-action';
|
|
2
3
|
import { queryActions } from './actions/query-actions';
|
|
3
4
|
import { updateAction } from './actions/update-action';
|
|
4
5
|
import { createActivity } from './activity/create';
|
|
@@ -69,6 +70,7 @@ import { updateCrmVerification } from './update-crm-verification';
|
|
|
69
70
|
import { updatePartnerProgram } from './update-partner-program';
|
|
70
71
|
import { updateStep } from './update-step';
|
|
71
72
|
type ApiDeclaration = {
|
|
73
|
+
deleteAction: typeof deleteAction;
|
|
72
74
|
queryCalls: typeof queryCalls;
|
|
73
75
|
adjustBalance: typeof adjustBalance;
|
|
74
76
|
queryBalanceItems: typeof queryBalanceItems;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.profilesApiDeclaration = void 0;
|
|
4
4
|
var create_action_1 = require("./actions/create-action");
|
|
5
|
+
var delete_action_1 = require("./actions/delete-action");
|
|
5
6
|
var query_actions_1 = require("./actions/query-actions");
|
|
6
7
|
var update_action_1 = require("./actions/update-action");
|
|
7
8
|
var create_1 = require("./activity/create");
|
|
@@ -73,6 +74,7 @@ var update_partner_program_1 = require("./update-partner-program");
|
|
|
73
74
|
var update_step_1 = require("./update-step");
|
|
74
75
|
exports.profilesApiDeclaration = {
|
|
75
76
|
updateNotificationChanel: update_1.updateNotificationChanel,
|
|
77
|
+
deleteAction: delete_action_1.deleteAction,
|
|
76
78
|
queryCalls: query_1.queryCalls,
|
|
77
79
|
createNotificationChanel: create_2.createNotificationChanel,
|
|
78
80
|
removeNotificationChanel: remove_1.removeNotificationChanel,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.41",
|
|
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": "bc0479991406fe83b190ad92f55db32be530a033",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.36",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.40",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
File without changes
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
|
-
// import { UpdateCertificatesaleDeliveryInfoDto } from '@escapenavigator/types/dist/certificate-sale/update-certificatesale-delivery-info.dto';
|
|
3
|
-
// import { ApiMethodDeclaration } from '../..';
|
|
4
|
-
// type ParamsData = {
|
|
5
|
-
// id: number;
|
|
6
|
-
// data: UpdateCertificatesaleDeliveryInfoDto;
|
|
7
|
-
// };
|
|
8
|
-
// type ResponseData = CertificateSaleRO;
|
|
9
|
-
// export const updateDeliveryInfo: ApiMethodDeclaration<ParamsData, ResponseData> = ({
|
|
10
|
-
// id,
|
|
11
|
-
// data,
|
|
12
|
-
// }) => ({
|
|
13
|
-
// url: `/certificatesales/delivery-info/${id}`,
|
|
14
|
-
// method: 'PATCH',
|
|
15
|
-
// data,
|
|
16
|
-
// });
|