@escapenavigator/services 1.10.174 → 1.10.176
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/clients-api/index.d.ts +2 -0
- package/dist/api/clients-api/index.js +2 -0
- package/dist/api/clients-api/restore-marketing-audience.d.ts +7 -0
- package/dist/api/clients-api/restore-marketing-audience.js +8 -0
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/dist/api/openapi-widget-api/certificates/cancel-certificate.d.ts +7 -0
- package/dist/api/openapi-widget-api/certificates/cancel-certificate.js +9 -0
- package/dist/api/openapi-widget-api/index.d.ts +4 -0
- package/dist/api/openapi-widget-api/index.js +4 -0
- package/dist/api/openapi-widget-api/orders/cancel-order-group.d.ts +7 -0
- package/dist/api/openapi-widget-api/orders/cancel-order-group.js +9 -0
- package/dist/api/order-groups-api/cancel.d.ts +10 -0
- package/dist/api/order-groups-api/cancel.js +12 -0
- package/dist/api/order-groups-api/index.d.ts +2 -0
- package/dist/api/order-groups-api/index.js +2 -0
- package/dist/api/statistics-api/index.d.ts +4 -0
- package/dist/api/statistics-api/index.js +4 -0
- package/dist/api/statistics-api/surveys-answers.d.ts +8 -0
- package/dist/api/statistics-api/surveys-answers.js +12 -0
- package/dist/api/statistics-api/surveys-report.d.ts +8 -0
- package/dist/api/statistics-api/surveys-report.js +12 -0
- package/dist/api/survey-api/get-survey-order-summary.d.ts +8 -0
- package/dist/api/survey-api/get-survey-order-summary.js +11 -0
- package/dist/api/survey-api/get-survey-preview-link.d.ts +11 -0
- package/dist/api/survey-api/get-survey-preview-link.js +11 -0
- package/dist/api/survey-api/get-survey-template-defaults.d.ts +9 -0
- package/dist/api/survey-api/get-survey-template-defaults.js +12 -0
- package/dist/api/survey-api/get-survey-templates.d.ts +6 -0
- package/dist/api/survey-api/get-survey-templates.js +8 -0
- package/dist/api/survey-api/get-survey-to-fill.d.ts +8 -0
- package/dist/api/survey-api/get-survey-to-fill.js +9 -0
- package/dist/api/survey-api/get-surveys-for-order.d.ts +8 -0
- package/dist/api/survey-api/get-surveys-for-order.js +11 -0
- package/dist/api/survey-api/index.d.ts +39 -0
- package/dist/api/survey-api/index.js +29 -0
- package/dist/api/survey-api/interrupt-survey.d.ts +10 -0
- package/dist/api/survey-api/interrupt-survey.js +12 -0
- package/dist/api/survey-api/mint-survey-link.d.ts +10 -0
- package/dist/api/survey-api/mint-survey-link.js +12 -0
- package/dist/api/survey-api/restart-survey.d.ts +10 -0
- package/dist/api/survey-api/restart-survey.js +12 -0
- package/dist/api/survey-api/submit-operator-survey.d.ts +10 -0
- package/dist/api/survey-api/submit-operator-survey.js +12 -0
- package/dist/api/survey-api/submit-survey.d.ts +7 -0
- package/dist/api/survey-api/submit-survey.js +9 -0
- package/dist/api/survey-api/update-survey-template.d.ts +9 -0
- package/dist/api/survey-api/update-survey-template.js +12 -0
- package/dist/api/translations-api/delete-orphaned-translations.d.ts +12 -0
- package/dist/api/translations-api/delete-orphaned-translations.js +12 -0
- package/dist/api/translations-api/index.d.ts +2 -0
- package/dist/api/translations-api/index.js +2 -0
- package/package.json +4 -4
|
@@ -9,6 +9,7 @@ import { getOne } from './get-one';
|
|
|
9
9
|
import { getUtmTouchpoints } from './get-utm-touchpoints';
|
|
10
10
|
import { query } from './query';
|
|
11
11
|
import { remove } from './remove';
|
|
12
|
+
import { restoreMarketingAudience } from './restore-marketing-audience';
|
|
12
13
|
import { suggestUtm } from './suggest-utm';
|
|
13
14
|
import { toggleBlock } from './tobble-block';
|
|
14
15
|
import { update } from './update';
|
|
@@ -27,6 +28,7 @@ type ApiDeclaration = {
|
|
|
27
28
|
getUtmTouchpoints: typeof getUtmTouchpoints;
|
|
28
29
|
suggestUtm: typeof suggestUtm;
|
|
29
30
|
remove: typeof remove;
|
|
31
|
+
restoreMarketingAudience: typeof restoreMarketingAudience;
|
|
30
32
|
};
|
|
31
33
|
export declare const clientsApiDeclaration: ApiDeclaration;
|
|
32
34
|
export {};
|
|
@@ -12,6 +12,7 @@ var get_one_1 = require("./get-one");
|
|
|
12
12
|
var get_utm_touchpoints_1 = require("./get-utm-touchpoints");
|
|
13
13
|
var query_1 = require("./query");
|
|
14
14
|
var remove_1 = require("./remove");
|
|
15
|
+
var restore_marketing_audience_1 = require("./restore-marketing-audience");
|
|
15
16
|
var suggest_utm_1 = require("./suggest-utm");
|
|
16
17
|
var tobble_block_1 = require("./tobble-block");
|
|
17
18
|
var update_1 = require("./update");
|
|
@@ -30,4 +31,5 @@ exports.clientsApiDeclaration = {
|
|
|
30
31
|
getUtmTouchpoints: get_utm_touchpoints_1.getUtmTouchpoints,
|
|
31
32
|
suggestUtm: suggest_utm_1.suggestUtm,
|
|
32
33
|
remove: remove_1.remove,
|
|
34
|
+
restoreMarketingAudience: restore_marketing_audience_1.restoreMarketingAudience,
|
|
33
35
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID клиента */
|
|
4
|
+
type ParamsData = number;
|
|
5
|
+
type ResponseData = ClientRO;
|
|
6
|
+
export declare const restoreMarketingAudience: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.restoreMarketingAudience = void 0;
|
|
4
|
+
var restoreMarketingAudience = function (id) { return ({
|
|
5
|
+
url: "/clients/".concat(id, "/restore-marketing-audience"),
|
|
6
|
+
method: 'POST',
|
|
7
|
+
}); };
|
|
8
|
+
exports.restoreMarketingAudience = restoreMarketingAudience;
|
|
@@ -69,6 +69,7 @@ import { statisticsApiDeclaration } from './statistics-api';
|
|
|
69
69
|
import { stockArrivalsApiDeclaration } from './stock-arrivals-api';
|
|
70
70
|
import { subwayStationsApiDeclaration } from './subway-stations-api';
|
|
71
71
|
import { supportApiDeclaration } from './support';
|
|
72
|
+
import { surveyApiDeclaration } from './survey-api';
|
|
72
73
|
import { tariffsApiDeclaration } from './tariffs-api';
|
|
73
74
|
import { transactionsApiDeclaration } from './transactions-api';
|
|
74
75
|
import { translationsApiDeclaration } from './translations-api';
|
|
@@ -149,6 +150,7 @@ export type InitApiDeclaration = {
|
|
|
149
150
|
roles: Api<typeof rolesApiDeclaration>;
|
|
150
151
|
tariffs: Api<typeof tariffsApiDeclaration>;
|
|
151
152
|
support: Api<typeof supportApiDeclaration>;
|
|
153
|
+
survey: Api<typeof surveyApiDeclaration>;
|
|
152
154
|
registrationRequests: Api<typeof registrationRequestsApiDeclaration>;
|
|
153
155
|
articles: Api<typeof articlesApiDeclaration>;
|
|
154
156
|
landingReviews: Api<typeof landingReviewsApiDeclaration>;
|
|
@@ -73,6 +73,7 @@ var stock_arrivals_api_1 = require("./stock-arrivals-api");
|
|
|
73
73
|
// import { subscriptionApiDeclaration } from './_subscription-api';
|
|
74
74
|
var subway_stations_api_1 = require("./subway-stations-api");
|
|
75
75
|
var support_1 = require("./support");
|
|
76
|
+
var survey_api_1 = require("./survey-api");
|
|
76
77
|
var tariffs_api_1 = require("./tariffs-api");
|
|
77
78
|
var transactions_api_1 = require("./transactions-api");
|
|
78
79
|
var translations_api_1 = require("./translations-api");
|
|
@@ -153,6 +154,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
153
154
|
roles: (0, _1.initApi)(roles_api_1.rolesApiDeclaration, url, clientOptions),
|
|
154
155
|
tariffs: (0, _1.initApi)(tariffs_api_1.tariffsApiDeclaration, url, clientOptions),
|
|
155
156
|
support: (0, _1.initApi)(support_1.supportApiDeclaration, url, clientOptions),
|
|
157
|
+
survey: (0, _1.initApi)(survey_api_1.surveyApiDeclaration, url, clientOptions),
|
|
156
158
|
registrationRequests: (0, _1.initApi)(registration_requests_api_1.registrationRequestsApiDeclaration, url, clientOptions),
|
|
157
159
|
articles: (0, _1.initApi)(articles_api_1.articlesApiDeclaration, url, clientOptions),
|
|
158
160
|
landingReviews: (0, _1.initApi)(landing_reviews_api_1.landingReviewsApiDeclaration, url, clientOptions),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiCancelCertificateDto } from '@escapenavigator/types/dist/openapi/certificates/openapi-cancel-certificate.dto';
|
|
2
|
+
import { OpenapiCertificateSaleRO } from '@escapenavigator/types/dist/openapi/certificates/openapi-certificate-sale.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = OpenapiCancelCertificateDto;
|
|
5
|
+
type ResponseData = OpenapiCertificateSaleRO;
|
|
6
|
+
export declare const cancelCertificate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cancelCertificate = void 0;
|
|
4
|
+
var cancelCertificate = function (data) { return ({
|
|
5
|
+
url: '/openapi/certificates/cancel',
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.cancelCertificate = cancelCertificate;
|
|
@@ -7,6 +7,7 @@ import { getNavigatorCertificateTemplates } from '../agregator-api/certificates/
|
|
|
7
7
|
import { navigatorCertificatePaypalPayment } from '../agregator-api/certificates/navigator-certificate-paypal-payment';
|
|
8
8
|
import { navigatorCertificateStripePayment } from '../agregator-api/certificates/navigator-certificate-stripe-payment';
|
|
9
9
|
import { addPromocodeToCertificate } from './certificates/add-promocode-to-certificate';
|
|
10
|
+
import { cancelCertificate } from './certificates/cancel-certificate';
|
|
10
11
|
import { capturePaypalCertificate } from './certificates/capture-paypal-certificate';
|
|
11
12
|
import { certificatePaypalPayment } from './certificates/certificate-paypal-payment';
|
|
12
13
|
import { certificateSquarePayment } from './certificates/certificate-square-payment';
|
|
@@ -28,6 +29,7 @@ import { orderGroupStripePayment } from './order-groups/order-group-payment-stri
|
|
|
28
29
|
import { addPromocodeToOrder } from './orders/add-promocode-to-order';
|
|
29
30
|
import { addUpsellingToOrder } from './orders/add-upselling-to-order';
|
|
30
31
|
import { cancelOrder } from './orders/cancel-order';
|
|
32
|
+
import { cancelOrderGroup } from './orders/cancel-order-group';
|
|
31
33
|
import { capturePaypalOrder } from './orders/capture-paypal-order';
|
|
32
34
|
import { confirmWithoutPayment } from './orders/continue-order-without-payment';
|
|
33
35
|
import { confirmWithoutPaymentMany } from './orders/continue-orders-without-payment';
|
|
@@ -84,6 +86,7 @@ type ApiDeclaration = {
|
|
|
84
86
|
capturePaypalNavigatorCertificate: typeof capturePaypalNavigatorCertificate;
|
|
85
87
|
addPromocodeToOrder: typeof addPromocodeToOrder;
|
|
86
88
|
cancelOrder: typeof cancelOrder;
|
|
89
|
+
cancelOrderGroup: typeof cancelOrderGroup;
|
|
87
90
|
capturePaypalOrder: typeof capturePaypalOrder;
|
|
88
91
|
confirmWithoutPayment: typeof confirmWithoutPayment;
|
|
89
92
|
confirmWithoutPaymentMany: typeof confirmWithoutPaymentMany;
|
|
@@ -110,6 +113,7 @@ type ApiDeclaration = {
|
|
|
110
113
|
addPromocodeToCertificate: typeof addPromocodeToCertificate;
|
|
111
114
|
removePromocodeFromCertificate: typeof removePromocodeFromCertificate;
|
|
112
115
|
setCertificateMarketingConsent: typeof setCertificateMarketingConsent;
|
|
116
|
+
cancelCertificate: typeof cancelCertificate;
|
|
113
117
|
findOrderGroup: typeof findOrderGroup;
|
|
114
118
|
getOrderGroupPaymentMethods: typeof getOrderGroupPaymentMethods;
|
|
115
119
|
orderGroupStripePayment: typeof orderGroupStripePayment;
|
|
@@ -10,6 +10,7 @@ var get_navigator_certificate_templates_1 = require("../agregator-api/certificat
|
|
|
10
10
|
var navigator_certificate_paypal_payment_1 = require("../agregator-api/certificates/navigator-certificate-paypal-payment");
|
|
11
11
|
var navigator_certificate_stripe_payment_1 = require("../agregator-api/certificates/navigator-certificate-stripe-payment");
|
|
12
12
|
var add_promocode_to_certificate_1 = require("./certificates/add-promocode-to-certificate");
|
|
13
|
+
var cancel_certificate_1 = require("./certificates/cancel-certificate");
|
|
13
14
|
var capture_paypal_certificate_1 = require("./certificates/capture-paypal-certificate");
|
|
14
15
|
var certificate_paypal_payment_1 = require("./certificates/certificate-paypal-payment");
|
|
15
16
|
var certificate_square_payment_1 = require("./certificates/certificate-square-payment");
|
|
@@ -31,6 +32,7 @@ var order_group_payment_stripe_1 = require("./order-groups/order-group-payment-s
|
|
|
31
32
|
var add_promocode_to_order_1 = require("./orders/add-promocode-to-order");
|
|
32
33
|
var add_upselling_to_order_1 = require("./orders/add-upselling-to-order");
|
|
33
34
|
var cancel_order_1 = require("./orders/cancel-order");
|
|
35
|
+
var cancel_order_group_1 = require("./orders/cancel-order-group");
|
|
34
36
|
var capture_paypal_order_1 = require("./orders/capture-paypal-order");
|
|
35
37
|
var continue_order_without_payment_1 = require("./orders/continue-order-without-payment");
|
|
36
38
|
var continue_orders_without_payment_1 = require("./orders/continue-orders-without-payment");
|
|
@@ -62,6 +64,7 @@ var validate_phone_1 = require("./widget/validate-phone");
|
|
|
62
64
|
exports.openapiWidgetApiDeclaration = {
|
|
63
65
|
removePromocodeFromCertificate: remove_certificate_from_order_1.removePromocodeFromCertificate,
|
|
64
66
|
setCertificateMarketingConsent: set_certificate_marketing_consent_1.setCertificateMarketingConsent,
|
|
67
|
+
cancelCertificate: cancel_certificate_1.cancelCertificate,
|
|
65
68
|
certificateSquarePayment: certificate_square_payment_1.certificateSquarePayment,
|
|
66
69
|
orderSquarePayment: order_payment_square_1.orderSquarePayment,
|
|
67
70
|
addPromocodeToCertificate: add_promocode_to_certificate_1.addPromocodeToCertificate,
|
|
@@ -91,6 +94,7 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
91
94
|
capturePaypalNavigatorCertificate: capture_paypal_navigator_certificate_1.capturePaypalNavigatorCertificate,
|
|
92
95
|
addPromocodeToOrder: add_promocode_to_order_1.addPromocodeToOrder,
|
|
93
96
|
cancelOrder: cancel_order_1.cancelOrder,
|
|
97
|
+
cancelOrderGroup: cancel_order_group_1.cancelOrderGroup,
|
|
94
98
|
capturePaypalOrder: capture_paypal_order_1.capturePaypalOrder,
|
|
95
99
|
confirmWithoutPayment: continue_order_without_payment_1.confirmWithoutPayment,
|
|
96
100
|
confirmWithoutPaymentMany: continue_orders_without_payment_1.confirmWithoutPaymentMany,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiGetOrderDTO } from '@escapenavigator/types/dist/openapi/orders/openapi-get-order.dto';
|
|
2
|
+
import { OpenapiOrderRO } from '@escapenavigator/types/dist/openapi/orders/openapi-order.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = OpenapiGetOrderDTO;
|
|
5
|
+
type ResponseData = OpenapiOrderRO;
|
|
6
|
+
export declare const cancelOrderGroup: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cancelOrderGroup = void 0;
|
|
4
|
+
var cancelOrderGroup = function (data) { return ({
|
|
5
|
+
url: '/openapi/orders/cancel-group',
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.cancelOrderGroup = cancelOrderGroup;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CancelOrderDto } from '@escapenavigator/types/dist/order/cancel-order.dto';
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: CancelOrderDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = SuccessRO;
|
|
9
|
+
export declare const cancel: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cancel = void 0;
|
|
4
|
+
var cancel = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-groups/".concat(id, "/cancel"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.cancel = cancel;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cancel } from './cancel';
|
|
1
2
|
import { create } from './create';
|
|
2
3
|
import { createCertificate } from './create-certificate';
|
|
3
4
|
import { createClosingDocument } from './create-closing-document';
|
|
@@ -20,6 +21,7 @@ import { resendClosingDocument } from './resend-closing-document';
|
|
|
20
21
|
import { sendInvoice } from './send-invoice';
|
|
21
22
|
type ApiDeclaration = {
|
|
22
23
|
create: typeof create;
|
|
24
|
+
cancel: typeof cancel;
|
|
23
25
|
getOne: typeof getOne;
|
|
24
26
|
query: typeof query;
|
|
25
27
|
removeOrder: typeof removeOrder;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.orderGroupsApiDeclaration = void 0;
|
|
4
|
+
var cancel_1 = require("./cancel");
|
|
4
5
|
var create_1 = require("./create");
|
|
5
6
|
var create_certificate_1 = require("./create-certificate");
|
|
6
7
|
var create_closing_document_1 = require("./create-closing-document");
|
|
@@ -23,6 +24,7 @@ var resend_closing_document_1 = require("./resend-closing-document");
|
|
|
23
24
|
var send_invoice_1 = require("./send-invoice");
|
|
24
25
|
exports.orderGroupsApiDeclaration = {
|
|
25
26
|
create: create_1.create,
|
|
27
|
+
cancel: cancel_1.cancel,
|
|
26
28
|
getOne: get_one_1.getOne,
|
|
27
29
|
query: query_1.query,
|
|
28
30
|
removeOrder: remove_order_1.removeOrder,
|
|
@@ -3,12 +3,16 @@ import { occupancyReport } from './occupancy-report';
|
|
|
3
3
|
import { ordersReport } from './orders-report';
|
|
4
4
|
import { promocodesReport } from './promocodes-report';
|
|
5
5
|
import { revenue } from './revenue';
|
|
6
|
+
import { surveysAnswers } from './surveys-answers';
|
|
7
|
+
import { surveysReport } from './surveys-report';
|
|
6
8
|
type ApiDeclaration = {
|
|
7
9
|
ordersReport: typeof ordersReport;
|
|
8
10
|
revenue: typeof revenue;
|
|
9
11
|
certificatesReport: typeof certificatesReport;
|
|
10
12
|
promocodesReport: typeof promocodesReport;
|
|
11
13
|
occupancyReport: typeof occupancyReport;
|
|
14
|
+
surveysReport: typeof surveysReport;
|
|
15
|
+
surveysAnswers: typeof surveysAnswers;
|
|
12
16
|
};
|
|
13
17
|
export declare const statisticsApiDeclaration: ApiDeclaration;
|
|
14
18
|
export {};
|
|
@@ -6,10 +6,14 @@ var occupancy_report_1 = require("./occupancy-report");
|
|
|
6
6
|
var orders_report_1 = require("./orders-report");
|
|
7
7
|
var promocodes_report_1 = require("./promocodes-report");
|
|
8
8
|
var revenue_1 = require("./revenue");
|
|
9
|
+
var surveys_answers_1 = require("./surveys-answers");
|
|
10
|
+
var surveys_report_1 = require("./surveys-report");
|
|
9
11
|
exports.statisticsApiDeclaration = {
|
|
10
12
|
revenue: revenue_1.revenue,
|
|
11
13
|
ordersReport: orders_report_1.ordersReport,
|
|
12
14
|
certificatesReport: certificates_report_1.certificatesReport,
|
|
13
15
|
promocodesReport: promocodes_report_1.promocodesReport,
|
|
14
16
|
occupancyReport: occupancy_report_1.occupancyReport,
|
|
17
|
+
surveysReport: surveys_report_1.surveysReport,
|
|
18
|
+
surveysAnswers: surveys_answers_1.surveysAnswers,
|
|
15
19
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SurveysAnswersQueryDto, SurveysAnswersRO } from '@escapenavigator/types/dist/statistics/surveys';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
data: SurveysAnswersQueryDto;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = SurveysAnswersRO;
|
|
7
|
+
export declare const surveysAnswers: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.surveysAnswers = void 0;
|
|
4
|
+
var surveysAnswers = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/statistics/surveys/answers',
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.surveysAnswers = surveysAnswers;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SurveysQueryDto, SurveysReportRO } from '@escapenavigator/types/dist/statistics/surveys';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
data: SurveysQueryDto;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = SurveysReportRO;
|
|
7
|
+
export declare const surveysReport: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.surveysReport = void 0;
|
|
4
|
+
var surveysReport = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/statistics/surveys',
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.surveysReport = surveysReport;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SurveyOrderSummaryRO } from '@escapenavigator/types/dist/survey/survey-order-summary.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
orderId: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = SurveyOrderSummaryRO;
|
|
7
|
+
export declare const getSurveyOrderSummary: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSurveyOrderSummary = void 0;
|
|
4
|
+
var getSurveyOrderSummary = function (_a) {
|
|
5
|
+
var orderId = _a.orderId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-surveys/order/".concat(orderId, "/summary"),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getSurveyOrderSummary = getSurveyOrderSummary;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Languages } from '@escapenavigator/types/dist/shared/enum/languages.enum';
|
|
2
|
+
import { SurveyTypeEnum } from '@escapenavigator/types/dist/survey/enums/survey-type.enum';
|
|
3
|
+
import { SurveyLinkRO } from '@escapenavigator/types/dist/survey/survey-link.ro';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
type ParamsData = {
|
|
6
|
+
type: SurveyTypeEnum;
|
|
7
|
+
language: Languages;
|
|
8
|
+
};
|
|
9
|
+
type ResponseData = SurveyLinkRO;
|
|
10
|
+
export declare const getSurveyPreviewLink: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSurveyPreviewLink = void 0;
|
|
4
|
+
var getSurveyPreviewLink = function (_a) {
|
|
5
|
+
var type = _a.type, language = _a.language;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-surveys/preview-link?type=".concat(type, "&language=").concat(language),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getSurveyPreviewLink = getSurveyPreviewLink;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SurveyTypeEnum } from '@escapenavigator/types/dist/survey/enums/survey-type.enum';
|
|
2
|
+
import { SurveyTemplateDefaultsRO } from '@escapenavigator/types/dist/survey/survey-template-defaults.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
type: SurveyTypeEnum;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = SurveyTemplateDefaultsRO;
|
|
8
|
+
export declare const getSurveyTemplateDefaults: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSurveyTemplateDefaults = void 0;
|
|
4
|
+
var getSurveyTemplateDefaults = function (_a) {
|
|
5
|
+
var type = _a.type;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/survey-templates/defaults',
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: { type: type },
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.getSurveyTemplateDefaults = getSurveyTemplateDefaults;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SurveyTemplateRO } from '@escapenavigator/types/dist/survey/survey-template.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = SurveyTemplateRO[];
|
|
5
|
+
export declare const getSurveyTemplates: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSurveyTemplates = void 0;
|
|
4
|
+
var getSurveyTemplates = function () { return ({
|
|
5
|
+
url: '/survey-templates',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getSurveyTemplates = getSurveyTemplates;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrderSurveyToFillRO } from '@escapenavigator/types/dist/survey/order-survey-to-fill.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
token: string;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = OrderSurveyToFillRO;
|
|
7
|
+
export declare const getSurveyToFill: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSurveyToFill = void 0;
|
|
4
|
+
var getSurveyToFill = function (params) { return ({
|
|
5
|
+
url: '/order-surveys/fill',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getSurveyToFill = getSurveyToFill;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SurveyResponseRO } from '@escapenavigator/types/dist/survey/survey-response.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
orderId: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = SurveyResponseRO[];
|
|
7
|
+
export declare const getSurveysForOrder: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSurveysForOrder = void 0;
|
|
4
|
+
var getSurveysForOrder = function (_a) {
|
|
5
|
+
var orderId = _a.orderId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-surveys/order/".concat(orderId),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getSurveysForOrder = getSurveysForOrder;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const surveyApiDeclaration: {
|
|
2
|
+
getSurveyTemplates: import("..").ApiMethodDeclaration<undefined, import("@escapenavigator/types/dist/survey/survey-template.ro").SurveyTemplateRO[]>;
|
|
3
|
+
getSurveyTemplateDefaults: import("..").ApiMethodDeclaration<{
|
|
4
|
+
type: import("@escapenavigator/types/dist/survey/enums/survey-type.enum").SurveyTypeEnum;
|
|
5
|
+
}, import("@escapenavigator/types/dist/survey/survey-template-defaults.ro").SurveyTemplateDefaultsRO>;
|
|
6
|
+
updateSurveyTemplate: import("..").ApiMethodDeclaration<{
|
|
7
|
+
data: import("@escapenavigator/types/dist/survey/update-survey-template.dto").UpdateSurveyTemplateDTO;
|
|
8
|
+
}, import("@escapenavigator/types/dist/survey/survey-template.ro").SurveyTemplateRO>;
|
|
9
|
+
getSurveyToFill: import("..").ApiMethodDeclaration<{
|
|
10
|
+
token: string;
|
|
11
|
+
}, import("@escapenavigator/types/dist/survey/order-survey-to-fill.ro").OrderSurveyToFillRO>;
|
|
12
|
+
submitSurvey: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/survey/submit-survey.dto").SubmitSurveyDTO, import("@escapenavigator/types/dist/survey/order-survey-to-fill.ro").SubmitSurveyResultRO>;
|
|
13
|
+
getSurveysForOrder: import("..").ApiMethodDeclaration<{
|
|
14
|
+
orderId: number;
|
|
15
|
+
}, import("@escapenavigator/types/dist/survey/survey-response.ro").SurveyResponseRO[]>;
|
|
16
|
+
getSurveyOrderSummary: import("..").ApiMethodDeclaration<{
|
|
17
|
+
orderId: number;
|
|
18
|
+
}, import("@escapenavigator/types/dist/survey/survey-order-summary.ro").SurveyOrderSummaryRO>;
|
|
19
|
+
getSurveyPreviewLink: import("..").ApiMethodDeclaration<{
|
|
20
|
+
type: import("@escapenavigator/types/dist/survey/enums/survey-type.enum").SurveyTypeEnum;
|
|
21
|
+
language: import("@escapenavigator/types/dist/shared/enum/languages.enum").Languages;
|
|
22
|
+
}, import("@escapenavigator/types/dist/survey/survey-link.ro").SurveyLinkRO>;
|
|
23
|
+
mintSurveyLink: import("..").ApiMethodDeclaration<{
|
|
24
|
+
orderId: number;
|
|
25
|
+
data: import("@escapenavigator/types/dist/survey/mint-survey-link.dto").MintSurveyLinkDTO;
|
|
26
|
+
}, import("@escapenavigator/types/dist/survey/survey-link.ro").SurveyLinkRO>;
|
|
27
|
+
submitOperatorSurvey: import("..").ApiMethodDeclaration<{
|
|
28
|
+
orderId: number;
|
|
29
|
+
data: import("@escapenavigator/types/dist/survey/operator-submit-survey.dto").OperatorSubmitSurveyDTO;
|
|
30
|
+
}, import("@escapenavigator/types/dist/survey/order-survey-to-fill.ro").SubmitSurveyResultRO>;
|
|
31
|
+
interruptSurvey: import("..").ApiMethodDeclaration<{
|
|
32
|
+
orderId: number;
|
|
33
|
+
type: import("@escapenavigator/types/dist/survey/enums/survey-type.enum").SurveyTypeEnum;
|
|
34
|
+
}, import("@escapenavigator/types/dist/shared/success.ro").SuccessRO>;
|
|
35
|
+
restartSurvey: import("..").ApiMethodDeclaration<{
|
|
36
|
+
orderId: number;
|
|
37
|
+
type: import("@escapenavigator/types/dist/survey/enums/survey-type.enum").SurveyTypeEnum;
|
|
38
|
+
}, import("@escapenavigator/types/dist/shared/success.ro").SuccessRO>;
|
|
39
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.surveyApiDeclaration = void 0;
|
|
4
|
+
var get_survey_order_summary_1 = require("./get-survey-order-summary");
|
|
5
|
+
var get_survey_preview_link_1 = require("./get-survey-preview-link");
|
|
6
|
+
var get_survey_template_defaults_1 = require("./get-survey-template-defaults");
|
|
7
|
+
var get_survey_templates_1 = require("./get-survey-templates");
|
|
8
|
+
var get_surveys_for_order_1 = require("./get-surveys-for-order");
|
|
9
|
+
var get_survey_to_fill_1 = require("./get-survey-to-fill");
|
|
10
|
+
var interrupt_survey_1 = require("./interrupt-survey");
|
|
11
|
+
var mint_survey_link_1 = require("./mint-survey-link");
|
|
12
|
+
var restart_survey_1 = require("./restart-survey");
|
|
13
|
+
var submit_operator_survey_1 = require("./submit-operator-survey");
|
|
14
|
+
var submit_survey_1 = require("./submit-survey");
|
|
15
|
+
var update_survey_template_1 = require("./update-survey-template");
|
|
16
|
+
exports.surveyApiDeclaration = {
|
|
17
|
+
getSurveyTemplates: get_survey_templates_1.getSurveyTemplates,
|
|
18
|
+
getSurveyTemplateDefaults: get_survey_template_defaults_1.getSurveyTemplateDefaults,
|
|
19
|
+
updateSurveyTemplate: update_survey_template_1.updateSurveyTemplate,
|
|
20
|
+
getSurveyToFill: get_survey_to_fill_1.getSurveyToFill,
|
|
21
|
+
submitSurvey: submit_survey_1.submitSurvey,
|
|
22
|
+
getSurveysForOrder: get_surveys_for_order_1.getSurveysForOrder,
|
|
23
|
+
getSurveyOrderSummary: get_survey_order_summary_1.getSurveyOrderSummary,
|
|
24
|
+
getSurveyPreviewLink: get_survey_preview_link_1.getSurveyPreviewLink,
|
|
25
|
+
mintSurveyLink: mint_survey_link_1.mintSurveyLink,
|
|
26
|
+
submitOperatorSurvey: submit_operator_survey_1.submitOperatorSurvey,
|
|
27
|
+
interruptSurvey: interrupt_survey_1.interruptSurvey,
|
|
28
|
+
restartSurvey: restart_survey_1.restartSurvey,
|
|
29
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { SurveyTypeEnum } from '@escapenavigator/types/dist/survey/enums/survey-type.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
orderId: number;
|
|
6
|
+
type: SurveyTypeEnum;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = SuccessRO;
|
|
9
|
+
export declare const interruptSurvey: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.interruptSurvey = void 0;
|
|
4
|
+
var interruptSurvey = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, type = _a.type;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-surveys/interrupt/".concat(orderId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
params: { type: type },
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.interruptSurvey = interruptSurvey;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MintSurveyLinkDTO } from '@escapenavigator/types/dist/survey/mint-survey-link.dto';
|
|
2
|
+
import { SurveyLinkRO } from '@escapenavigator/types/dist/survey/survey-link.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
orderId: number;
|
|
6
|
+
data: MintSurveyLinkDTO;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = SurveyLinkRO;
|
|
9
|
+
export declare const mintSurveyLink: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mintSurveyLink = void 0;
|
|
4
|
+
var mintSurveyLink = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-surveys/link/".concat(orderId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.mintSurveyLink = mintSurveyLink;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { SurveyTypeEnum } from '@escapenavigator/types/dist/survey/enums/survey-type.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
orderId: number;
|
|
6
|
+
type: SurveyTypeEnum;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = SuccessRO;
|
|
9
|
+
export declare const restartSurvey: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.restartSurvey = void 0;
|
|
4
|
+
var restartSurvey = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, type = _a.type;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-surveys/restart/".concat(orderId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
params: { type: type },
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.restartSurvey = restartSurvey;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SubmitSurveyResultRO } from '@escapenavigator/types/dist/survey/order-survey-to-fill.ro';
|
|
2
|
+
import { OperatorSubmitSurveyDTO } from '@escapenavigator/types/dist/survey/operator-submit-survey.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
orderId: number;
|
|
6
|
+
data: OperatorSubmitSurveyDTO;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = SubmitSurveyResultRO;
|
|
9
|
+
export declare const submitOperatorSurvey: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.submitOperatorSurvey = void 0;
|
|
4
|
+
var submitOperatorSurvey = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-surveys/submit-operator/".concat(orderId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.submitOperatorSurvey = submitOperatorSurvey;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SubmitSurveyResultRO } from '@escapenavigator/types/dist/survey/order-survey-to-fill.ro';
|
|
2
|
+
import { SubmitSurveyDTO } from '@escapenavigator/types/dist/survey/submit-survey.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = SubmitSurveyDTO;
|
|
5
|
+
type ResponseData = SubmitSurveyResultRO;
|
|
6
|
+
export declare const submitSurvey: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.submitSurvey = void 0;
|
|
4
|
+
var submitSurvey = function (data) { return ({
|
|
5
|
+
url: '/order-surveys/submit',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.submitSurvey = submitSurvey;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SurveyTemplateRO } from '@escapenavigator/types/dist/survey/survey-template.ro';
|
|
2
|
+
import { UpdateSurveyTemplateDTO } from '@escapenavigator/types/dist/survey/update-survey-template.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: UpdateSurveyTemplateDTO;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = SurveyTemplateRO;
|
|
8
|
+
export declare const updateSurveyTemplate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateSurveyTemplate = void 0;
|
|
4
|
+
var updateSurveyTemplate = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/survey-templates',
|
|
8
|
+
method: 'PUT',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateSurveyTemplate = updateSurveyTemplate;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeleteOrphanedTranslationsDto } from '@escapenavigator/types/dist/translation/delete-orphaned-translations.dto';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
data: DeleteOrphanedTranslationsDto;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = {
|
|
7
|
+
deleted: number;
|
|
8
|
+
notFound: string[];
|
|
9
|
+
skipped: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare const deleteOrphanedTranslations: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteOrphanedTranslations = void 0;
|
|
4
|
+
var deleteOrphanedTranslations = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/translations/delete-orphaned',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.deleteOrphanedTranslations = deleteOrphanedTranslations;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { addMissingLanguages } from './add-missing-languages';
|
|
2
2
|
import { createNamespace } from './create-namespace';
|
|
3
3
|
import { createTranslation } from './create-translation';
|
|
4
|
+
import { deleteOrphanedTranslations } from './delete-orphaned-translations';
|
|
4
5
|
import { generateJson } from './generate-json';
|
|
5
6
|
import { getAllNamespaces } from './get-all-namespaces';
|
|
6
7
|
import { overwriteTranslations } from './overwrite-translations';
|
|
@@ -27,6 +28,7 @@ type ApiDeclaration = {
|
|
|
27
28
|
createNamespace: typeof createNamespace;
|
|
28
29
|
removeNamespace: typeof removeNamespace;
|
|
29
30
|
createTranslation: typeof createTranslation;
|
|
31
|
+
deleteOrphanedTranslations: typeof deleteOrphanedTranslations;
|
|
30
32
|
getAllNamespaces: typeof getAllNamespaces;
|
|
31
33
|
overwriteTranslations: typeof overwriteTranslations;
|
|
32
34
|
quiz: typeof quiz;
|
|
@@ -4,6 +4,7 @@ exports.translationsApiDeclaration = void 0;
|
|
|
4
4
|
var add_missing_languages_1 = require("./add-missing-languages");
|
|
5
5
|
var create_namespace_1 = require("./create-namespace");
|
|
6
6
|
var create_translation_1 = require("./create-translation");
|
|
7
|
+
var delete_orphaned_translations_1 = require("./delete-orphaned-translations");
|
|
7
8
|
var generate_json_1 = require("./generate-json");
|
|
8
9
|
var get_all_namespaces_1 = require("./get-all-namespaces");
|
|
9
10
|
var overwrite_translations_1 = require("./overwrite-translations");
|
|
@@ -32,6 +33,7 @@ exports.translationsApiDeclaration = {
|
|
|
32
33
|
removeNamespace: remove_namespace_1.removeNamespace,
|
|
33
34
|
createNamespace: create_namespace_1.createNamespace,
|
|
34
35
|
createTranslation: create_translation_1.createTranslation,
|
|
36
|
+
deleteOrphanedTranslations: delete_orphaned_translations_1.deleteOrphanedTranslations,
|
|
35
37
|
getAllNamespaces: get_all_namespaces_1.getAllNamespaces,
|
|
36
38
|
overwriteTranslations: overwrite_translations_1.overwriteTranslations,
|
|
37
39
|
removeTranslation: remove_translation_1.removeTranslation,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.176",
|
|
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": "ee9112d85c9f99ce5f1bf2c4000e26112a2571ae",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.162",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.169",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|