@escapenavigator/services 2.0.45 → 2.0.46
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/fiscal-api/authorize-moloni.d.ts +4 -0
- package/dist/api/fiscal-api/authorize-moloni.js +8 -0
- package/dist/api/fiscal-api/connect-invoicexpress.d.ts +6 -0
- package/dist/api/fiscal-api/connect-invoicexpress.js +12 -0
- package/dist/api/fiscal-api/get.d.ts +3 -0
- package/dist/api/fiscal-api/get.js +8 -0
- package/dist/api/fiscal-api/index.d.ts +16 -0
- package/dist/api/fiscal-api/index.js +17 -0
- package/dist/api/fiscal-api/remove.d.ts +3 -0
- package/dist/api/fiscal-api/remove.js +8 -0
- package/dist/api/fiscal-api/retry.d.ts +5 -0
- package/dist/api/fiscal-api/retry.js +11 -0
- package/dist/api/fiscal-api/update.d.ts +6 -0
- package/dist/api/fiscal-api/update.js +12 -0
- package/dist/api/init-client-api.d.ts +6 -0
- package/dist/api/init-client-api.js +6 -0
- package/dist/api/lead-forms-api/create-form.d.ts +9 -0
- package/dist/api/lead-forms-api/create-form.js +12 -0
- package/dist/api/lead-forms-api/get-defaults.d.ts +7 -0
- package/dist/api/lead-forms-api/get-defaults.js +9 -0
- package/dist/api/lead-forms-api/get-forms.d.ts +6 -0
- package/dist/api/lead-forms-api/get-forms.js +8 -0
- package/dist/api/lead-forms-api/get-stages.d.ts +6 -0
- package/dist/api/lead-forms-api/get-stages.js +8 -0
- package/dist/api/lead-forms-api/index.d.ts +18 -0
- package/dist/api/lead-forms-api/index.js +19 -0
- package/dist/api/lead-forms-api/remove-form.d.ts +7 -0
- package/dist/api/lead-forms-api/remove-form.js +11 -0
- package/dist/api/lead-forms-api/update-form.d.ts +10 -0
- package/dist/api/lead-forms-api/update-form.js +12 -0
- package/dist/api/lead-forms-api/update-stages.d.ts +9 -0
- package/dist/api/lead-forms-api/update-stages.js +12 -0
- package/dist/api/leads-api/create.d.ts +9 -0
- package/dist/api/leads-api/create.js +12 -0
- package/dist/api/leads-api/get-board-column.d.ts +11 -0
- package/dist/api/leads-api/get-board-column.js +24 -0
- package/dist/api/leads-api/get-board.d.ts +7 -0
- package/dist/api/leads-api/get-board.js +9 -0
- package/dist/api/leads-api/get-conversion-prefill.d.ts +9 -0
- package/dist/api/leads-api/get-conversion-prefill.js +12 -0
- package/dist/api/leads-api/get-counters.d.ts +6 -0
- package/dist/api/leads-api/get-counters.js +8 -0
- package/dist/api/leads-api/get-events.d.ts +8 -0
- package/dist/api/leads-api/get-events.js +11 -0
- package/dist/api/leads-api/get-one.d.ts +8 -0
- package/dist/api/leads-api/get-one.js +11 -0
- package/dist/api/leads-api/index.d.ts +37 -0
- package/dist/api/leads-api/index.js +27 -0
- package/dist/api/leads-api/link-conversion.d.ts +10 -0
- package/dist/api/leads-api/link-conversion.js +12 -0
- package/dist/api/leads-api/mark-viewed.d.ts +9 -0
- package/dist/api/leads-api/mark-viewed.js +12 -0
- package/dist/api/leads-api/query.d.ts +10 -0
- package/dist/api/leads-api/query.js +9 -0
- package/dist/api/leads-api/update.d.ts +10 -0
- package/dist/api/leads-api/update.js +12 -0
- package/dist/api/openapi-widget-api/certificates/certificate-cloudpayments-payment.d.ts +7 -0
- package/dist/api/openapi-widget-api/certificates/certificate-cloudpayments-payment.js +9 -0
- package/dist/api/openapi-widget-api/certificates/certificate-yookassa-payment.d.ts +7 -0
- package/dist/api/openapi-widget-api/certificates/certificate-yookassa-payment.js +9 -0
- package/dist/api/openapi-widget-api/index.d.ts +20 -0
- package/dist/api/openapi-widget-api/index.js +20 -0
- package/dist/api/openapi-widget-api/leads/get-lead-form-by-uuid.d.ts +9 -0
- package/dist/api/openapi-widget-api/leads/get-lead-form-by-uuid.js +12 -0
- package/dist/api/openapi-widget-api/leads/get-lead-form.d.ts +8 -0
- package/dist/api/openapi-widget-api/leads/get-lead-form.js +9 -0
- package/dist/api/openapi-widget-api/leads/submit-lead-by-uuid.d.ts +12 -0
- package/dist/api/openapi-widget-api/leads/submit-lead-by-uuid.js +13 -0
- package/dist/api/openapi-widget-api/leads/submit-lead.d.ts +11 -0
- package/dist/api/openapi-widget-api/leads/submit-lead.js +13 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-cloudpayments.d.ts +9 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-cloudpayments.js +23 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-yookassa.d.ts +9 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-yookassa.js +23 -0
- package/dist/api/openapi-widget-api/orders/order-payment-cloudpayments.d.ts +7 -0
- package/dist/api/openapi-widget-api/orders/order-payment-cloudpayments.js +9 -0
- package/dist/api/openapi-widget-api/orders/order-payment-yookassa.d.ts +7 -0
- package/dist/api/openapi-widget-api/orders/order-payment-yookassa.js +9 -0
- package/dist/api/profiles-api/index.d.ts +12 -0
- package/dist/api/profiles-api/index.js +12 -0
- package/dist/api/profiles-api/telephony/get-telephony-settings.d.ts +3 -0
- package/dist/api/profiles-api/telephony/get-telephony-settings.js +8 -0
- package/dist/api/profiles-api/telephony/query-client-calls.d.ts +8 -0
- package/dist/api/profiles-api/telephony/query-client-calls.js +12 -0
- package/dist/api/profiles-api/telephony/query-live-calls.d.ts +3 -0
- package/dist/api/profiles-api/telephony/query-live-calls.js +8 -0
- package/dist/api/profiles-api/telephony/rotate-telephony-webhook-token.d.ts +3 -0
- package/dist/api/profiles-api/telephony/rotate-telephony-webhook-token.js +8 -0
- package/dist/api/profiles-api/telephony/send-telephony-test-call.d.ts +8 -0
- package/dist/api/profiles-api/telephony/send-telephony-test-call.js +12 -0
- package/dist/api/profiles-api/telephony/update-telephony-settings.d.ts +8 -0
- package/dist/api/profiles-api/telephony/update-telephony-settings.js +12 -0
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.authorizeMoloni = void 0;
|
|
4
|
+
var authorizeMoloni = function () { return ({
|
|
5
|
+
url: '/fiscal/moloni/authorize',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
}); };
|
|
8
|
+
exports.authorizeMoloni = authorizeMoloni;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConnectInvoiceExpressDto } from '@escapenavigator/types/dist/invoice-express/connect-invoice-express.dto';
|
|
2
|
+
import { FiscalSettingsRO } from '@escapenavigator/types/dist/fiscal/fiscal-settings.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
export declare const connectInvoiceExpress: ApiMethodDeclaration<{
|
|
5
|
+
data: ConnectInvoiceExpressDto;
|
|
6
|
+
}, FiscalSettingsRO>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.connectInvoiceExpress = void 0;
|
|
4
|
+
var connectInvoiceExpress = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/fiscal/invoicexpress',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.connectInvoiceExpress = connectInvoiceExpress;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { authorizeMoloni } from './authorize-moloni';
|
|
2
|
+
import { connectInvoiceExpress } from './connect-invoicexpress';
|
|
3
|
+
import { get } from './get';
|
|
4
|
+
import { remove } from './remove';
|
|
5
|
+
import { retry } from './retry';
|
|
6
|
+
import { update } from './update';
|
|
7
|
+
type ApiDeclaration = {
|
|
8
|
+
get: typeof get;
|
|
9
|
+
update: typeof update;
|
|
10
|
+
connectInvoiceExpress: typeof connectInvoiceExpress;
|
|
11
|
+
authorizeMoloni: typeof authorizeMoloni;
|
|
12
|
+
remove: typeof remove;
|
|
13
|
+
retry: typeof retry;
|
|
14
|
+
};
|
|
15
|
+
export declare const fiscalApiDeclaration: ApiDeclaration;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fiscalApiDeclaration = void 0;
|
|
4
|
+
var authorize_moloni_1 = require("./authorize-moloni");
|
|
5
|
+
var connect_invoicexpress_1 = require("./connect-invoicexpress");
|
|
6
|
+
var get_1 = require("./get");
|
|
7
|
+
var remove_1 = require("./remove");
|
|
8
|
+
var retry_1 = require("./retry");
|
|
9
|
+
var update_1 = require("./update");
|
|
10
|
+
exports.fiscalApiDeclaration = {
|
|
11
|
+
get: get_1.get,
|
|
12
|
+
update: update_1.update,
|
|
13
|
+
connectInvoiceExpress: connect_invoicexpress_1.connectInvoiceExpress,
|
|
14
|
+
authorizeMoloni: authorize_moloni_1.authorizeMoloni,
|
|
15
|
+
remove: remove_1.remove,
|
|
16
|
+
retry: retry_1.retry,
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.retry = void 0;
|
|
4
|
+
var retry = function (_a) {
|
|
5
|
+
var transactionId = _a.transactionId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/fiscal/retry/".concat(transactionId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.retry = retry;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FiscalSettingsRO } from '@escapenavigator/types/dist/fiscal/fiscal-settings.ro';
|
|
2
|
+
import { UpdateFiscalSettingsDto } from '@escapenavigator/types/dist/fiscal/update-fiscal-settings.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
export declare const update: ApiMethodDeclaration<{
|
|
5
|
+
data: UpdateFiscalSettingsDto;
|
|
6
|
+
}, FiscalSettingsRO>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update = void 0;
|
|
4
|
+
var update = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/fiscal',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
|
@@ -31,8 +31,11 @@ import { gameSessionApiDeclaration } from './game-session-api';
|
|
|
31
31
|
import { googleCalendarsApiDeclaration } from './google-calendars-api';
|
|
32
32
|
import { googlePlacesApiDeclaration } from './google-places-api';
|
|
33
33
|
import { imagesApiDeclaration } from './images-api';
|
|
34
|
+
import { fiscalApiDeclaration } from './fiscal-api';
|
|
34
35
|
import { invoiceExpressApiDeclaration } from './invoice-express-api';
|
|
35
36
|
import { landingReviewsApiDeclaration } from './landing-reviews-api';
|
|
37
|
+
import { leadFormsApiDeclaration } from './lead-forms-api';
|
|
38
|
+
import { leadsApiDeclaration } from './leads-api';
|
|
36
39
|
import { locationsApiDeclaration } from './locations-api';
|
|
37
40
|
import { logsApiDeclaration } from './logs-api';
|
|
38
41
|
import { loyaltyApiDeclaration } from './loyalty-api';
|
|
@@ -98,6 +101,7 @@ export type InitApiDeclaration = {
|
|
|
98
101
|
checklistApi: Api<typeof checklistApiDeclaration>;
|
|
99
102
|
mailchimpApi: Api<typeof mailchimpApiDeclaration>;
|
|
100
103
|
invoiceExpressApi: Api<typeof invoiceExpressApiDeclaration>;
|
|
104
|
+
fiscalApi: Api<typeof fiscalApiDeclaration>;
|
|
101
105
|
playersApi: Api<typeof playersApiDeclaration>;
|
|
102
106
|
googleCalendarsApi: Api<typeof googleCalendarsApiDeclaration>;
|
|
103
107
|
googlePlacesApi: Api<typeof googlePlacesApiDeclaration>;
|
|
@@ -145,6 +149,8 @@ export type InitApiDeclaration = {
|
|
|
145
149
|
uploads: Api<typeof uploadsApiDeclaration>;
|
|
146
150
|
emails: Api<typeof emailsApiDeclaration>;
|
|
147
151
|
userMessages: Api<typeof userMessagesApiDeclaration>;
|
|
152
|
+
leads: Api<typeof leadsApiDeclaration>;
|
|
153
|
+
leadForms: Api<typeof leadFormsApiDeclaration>;
|
|
148
154
|
slots: Api<typeof slotsApiDeclaration>;
|
|
149
155
|
slotTemplates: Api<typeof slotTemplatesApiDeclaration>;
|
|
150
156
|
agbs: Api<typeof agbApiDeclaration>;
|
|
@@ -34,8 +34,11 @@ var game_session_api_1 = require("./game-session-api");
|
|
|
34
34
|
var google_calendars_api_1 = require("./google-calendars-api");
|
|
35
35
|
var google_places_api_1 = require("./google-places-api");
|
|
36
36
|
var images_api_1 = require("./images-api");
|
|
37
|
+
var fiscal_api_1 = require("./fiscal-api");
|
|
37
38
|
var invoice_express_api_1 = require("./invoice-express-api");
|
|
38
39
|
var landing_reviews_api_1 = require("./landing-reviews-api");
|
|
40
|
+
var lead_forms_api_1 = require("./lead-forms-api");
|
|
41
|
+
var leads_api_1 = require("./leads-api");
|
|
39
42
|
var locations_api_1 = require("./locations-api");
|
|
40
43
|
var logs_api_1 = require("./logs-api");
|
|
41
44
|
var loyalty_api_1 = require("./loyalty-api");
|
|
@@ -104,6 +107,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
104
107
|
playersApi: (0, _1.initApi)(players_api_1.playersApiDeclaration, url, clientOptions),
|
|
105
108
|
mailchimpApi: (0, _1.initApi)(mailchimp_api_1.mailchimpApiDeclaration, url, clientOptions),
|
|
106
109
|
invoiceExpressApi: (0, _1.initApi)(invoice_express_api_1.invoiceExpressApiDeclaration, url, clientOptions),
|
|
110
|
+
fiscalApi: (0, _1.initApi)(fiscal_api_1.fiscalApiDeclaration, url, clientOptions),
|
|
107
111
|
nowEscape: (0, _1.initApi)(now_escape_api_1.nowEscapeApiDeclaration, url, clientOptions),
|
|
108
112
|
googleCalendarsApi: (0, _1.initApi)(google_calendars_api_1.googleCalendarsApiDeclaration, url, clientOptions),
|
|
109
113
|
googlePlacesApi: (0, _1.initApi)(google_places_api_1.googlePlacesApiDeclaration, url, clientOptions),
|
|
@@ -145,6 +149,8 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
145
149
|
emails: (0, _1.initApi)(emails_api_1.emailsApiDeclaration, url, clientOptions),
|
|
146
150
|
admins: (0, _1.initApi)(admins_api_1.adminsApiDeclaration, url, clientOptions),
|
|
147
151
|
userMessages: (0, _1.initApi)(user_messages_api_1.userMessagesApiDeclaration, url, clientOptions),
|
|
152
|
+
leads: (0, _1.initApi)(leads_api_1.leadsApiDeclaration, url, clientOptions),
|
|
153
|
+
leadForms: (0, _1.initApi)(lead_forms_api_1.leadFormsApiDeclaration, url, clientOptions),
|
|
148
154
|
orderDiscounts: (0, _1.initApi)(order_discounts_api_1.orderDiscountsApiDeclaration, url, clientOptions),
|
|
149
155
|
orderPenalties: (0, _1.initApi)(order_penalties_api_1.orderPenaltiesApiDeclaration, url, clientOptions),
|
|
150
156
|
orderUpsellngs: (0, _1.initApi)(order_upsellings_api_1.orderUpsellngsApiDeclaration, url, clientOptions),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LeadFormRO } from '@escapenavigator/types/dist/lead/lead-form.ro';
|
|
2
|
+
import { UpdateLeadFormDto } from '@escapenavigator/types/dist/lead/update-lead-form.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: UpdateLeadFormDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = LeadFormRO;
|
|
8
|
+
export declare const createForm: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createForm = void 0;
|
|
4
|
+
var createForm = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/lead-forms',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createForm = createForm;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LeadFormDefaultsRO } from '@escapenavigator/types/dist/lead/lead-form-defaults.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = LeadFormDefaultsRO;
|
|
5
|
+
/** Рекомендуемые значения формы — кнопка «Рекомендуемые значения» в редакторе. */
|
|
6
|
+
export declare const getDefaults: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDefaults = void 0;
|
|
4
|
+
/** Рекомендуемые значения формы — кнопка «Рекомендуемые значения» в редакторе. */
|
|
5
|
+
var getDefaults = function () { return ({
|
|
6
|
+
url: '/lead-forms/defaults',
|
|
7
|
+
method: 'GET',
|
|
8
|
+
}); };
|
|
9
|
+
exports.getDefaults = getDefaults;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LeadFormRO } from '@escapenavigator/types/dist/lead/lead-form.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = LeadFormRO[];
|
|
5
|
+
export declare const getForms: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LeadStageRO } from '@escapenavigator/types/dist/lead/lead-stage.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = LeadStageRO[];
|
|
5
|
+
export declare const getStages: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const leadFormsApiDeclaration: {
|
|
2
|
+
getForms: import("..").ApiMethodDeclaration<undefined, import("@escapenavigator/types/dist/lead/lead-form.ro").LeadFormRO[]>;
|
|
3
|
+
getDefaults: import("..").ApiMethodDeclaration<undefined, import("@escapenavigator/types/dist/lead/lead-form-defaults.ro").LeadFormDefaultsRO>;
|
|
4
|
+
createForm: import("..").ApiMethodDeclaration<{
|
|
5
|
+
data: import("@escapenavigator/types/dist/lead/update-lead-form.dto").UpdateLeadFormDto;
|
|
6
|
+
}, import("@escapenavigator/types/dist/lead/lead-form.ro").LeadFormRO>;
|
|
7
|
+
updateForm: import("..").ApiMethodDeclaration<{
|
|
8
|
+
id: number;
|
|
9
|
+
data: import("@escapenavigator/types/dist/lead/update-lead-form.dto").UpdateLeadFormDto;
|
|
10
|
+
}, import("@escapenavigator/types/dist/lead/lead-form.ro").LeadFormRO>;
|
|
11
|
+
removeForm: import("..").ApiMethodDeclaration<{
|
|
12
|
+
id: number;
|
|
13
|
+
}, void>;
|
|
14
|
+
getStages: import("..").ApiMethodDeclaration<undefined, import("@escapenavigator/types/dist/lead/lead-stage.ro").LeadStageRO[]>;
|
|
15
|
+
updateStages: import("..").ApiMethodDeclaration<{
|
|
16
|
+
data: import("@escapenavigator/types/dist/lead/update-lead-stages.dto").UpdateLeadStagesDto;
|
|
17
|
+
}, import("@escapenavigator/types/dist/lead/lead-stage.ro").LeadStageRO[]>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.leadFormsApiDeclaration = void 0;
|
|
4
|
+
var create_form_1 = require("./create-form");
|
|
5
|
+
var get_defaults_1 = require("./get-defaults");
|
|
6
|
+
var get_forms_1 = require("./get-forms");
|
|
7
|
+
var get_stages_1 = require("./get-stages");
|
|
8
|
+
var remove_form_1 = require("./remove-form");
|
|
9
|
+
var update_form_1 = require("./update-form");
|
|
10
|
+
var update_stages_1 = require("./update-stages");
|
|
11
|
+
exports.leadFormsApiDeclaration = {
|
|
12
|
+
getForms: get_forms_1.getForms,
|
|
13
|
+
getDefaults: get_defaults_1.getDefaults,
|
|
14
|
+
createForm: create_form_1.createForm,
|
|
15
|
+
updateForm: update_form_1.updateForm,
|
|
16
|
+
removeForm: remove_form_1.removeForm,
|
|
17
|
+
getStages: get_stages_1.getStages,
|
|
18
|
+
updateStages: update_stages_1.updateStages,
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeForm = void 0;
|
|
4
|
+
var removeForm = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/lead-forms/".concat(id),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.removeForm = removeForm;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LeadFormRO } from '@escapenavigator/types/dist/lead/lead-form.ro';
|
|
2
|
+
import { UpdateLeadFormDto } from '@escapenavigator/types/dist/lead/update-lead-form.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateLeadFormDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = LeadFormRO;
|
|
9
|
+
export declare const updateForm: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateForm = void 0;
|
|
4
|
+
var updateForm = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/lead-forms/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateForm = updateForm;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LeadStageRO } from '@escapenavigator/types/dist/lead/lead-stage.ro';
|
|
2
|
+
import { UpdateLeadStagesDto } from '@escapenavigator/types/dist/lead/update-lead-stages.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: UpdateLeadStagesDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = LeadStageRO[];
|
|
8
|
+
export declare const updateStages: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateStages = void 0;
|
|
4
|
+
var updateStages = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/lead-forms/stages',
|
|
8
|
+
method: 'PUT',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateStages = updateStages;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateLeadDto } from '@escapenavigator/types/dist/lead/create-lead.dto';
|
|
2
|
+
import { LeadRO } from '@escapenavigator/types/dist/lead/lead.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: CreateLeadDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = LeadRO;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
var create = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/leads',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LeadBoardColumnRO } from '@escapenavigator/types/dist/lead/lead-board.ro';
|
|
2
|
+
import { QueryLeadsDto } from '@escapenavigator/types/dist/lead/query-leads.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = QueryLeadsDto & {
|
|
5
|
+
stageId: number;
|
|
6
|
+
offset: number;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = LeadBoardColumnRO;
|
|
9
|
+
/** Догрузка карточек внутри колонки канбана. */
|
|
10
|
+
export declare const getBoardColumn: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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.getBoardColumn = void 0;
|
|
15
|
+
/** Догрузка карточек внутри колонки канбана. */
|
|
16
|
+
var getBoardColumn = function (_a) {
|
|
17
|
+
var stageId = _a.stageId, params = __rest(_a, ["stageId"]);
|
|
18
|
+
return ({
|
|
19
|
+
url: "/leads/board/".concat(stageId),
|
|
20
|
+
method: 'GET',
|
|
21
|
+
params: params,
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
exports.getBoardColumn = getBoardColumn;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LeadBoardRO } from '@escapenavigator/types/dist/lead/lead-board.ro';
|
|
2
|
+
import { QueryLeadsDto } from '@escapenavigator/types/dist/lead/query-leads.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = QueryLeadsDto;
|
|
5
|
+
type ResponseData = LeadBoardRO;
|
|
6
|
+
export declare const getBoard: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LeadConversionPrefillRO } from '@escapenavigator/types/dist/lead/lead-conversion-prefill.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = LeadConversionPrefillRO;
|
|
7
|
+
/** Значения для предзаполнения новой брони из заявки. */
|
|
8
|
+
export declare const getConversionPrefill: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConversionPrefill = void 0;
|
|
4
|
+
/** Значения для предзаполнения новой брони из заявки. */
|
|
5
|
+
var getConversionPrefill = function (_a) {
|
|
6
|
+
var id = _a.id;
|
|
7
|
+
return ({
|
|
8
|
+
url: "/leads/".concat(id, "/conversion-prefill"),
|
|
9
|
+
method: 'GET',
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.getConversionPrefill = getConversionPrefill;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LeadCountersRO } from '@escapenavigator/types/dist/lead/lead-counters.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = LeadCountersRO;
|
|
5
|
+
export declare const getCounters: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LeadEventRO } from '@escapenavigator/types/dist/lead/lead-event.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = LeadEventRO[];
|
|
7
|
+
export declare const getEvents: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEvents = void 0;
|
|
4
|
+
var getEvents = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/leads/".concat(id, "/events"),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getEvents = getEvents;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LeadRO } from '@escapenavigator/types/dist/lead/lead.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = LeadRO;
|
|
7
|
+
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const leadsApiDeclaration: {
|
|
2
|
+
getBoard: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/lead/query-leads.dto").QueryLeadsDto, import("@escapenavigator/types/dist/lead/lead-board.ro").LeadBoardRO>;
|
|
3
|
+
getBoardColumn: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/lead/query-leads.dto").QueryLeadsDto & {
|
|
4
|
+
stageId: number;
|
|
5
|
+
offset: number;
|
|
6
|
+
}, import("@escapenavigator/types/dist/lead/lead-board.ro").LeadBoardColumnRO>;
|
|
7
|
+
getCounters: import("..").ApiMethodDeclaration<undefined, import("@escapenavigator/types/dist/lead/lead-counters.ro").LeadCountersRO>;
|
|
8
|
+
getConversionPrefill: import("..").ApiMethodDeclaration<{
|
|
9
|
+
id: number;
|
|
10
|
+
}, import("@escapenavigator/types/dist/lead/lead-conversion-prefill.ro").LeadConversionPrefillRO>;
|
|
11
|
+
getEvents: import("..").ApiMethodDeclaration<{
|
|
12
|
+
id: number;
|
|
13
|
+
}, import("@escapenavigator/types/dist/lead/lead-event.ro").LeadEventRO[]>;
|
|
14
|
+
getOne: import("..").ApiMethodDeclaration<{
|
|
15
|
+
id: number;
|
|
16
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
17
|
+
query: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/lead/query-leads.dto").QueryLeadsListDto, {
|
|
18
|
+
items: (import("@escapenavigator/types/dist/lead/lead.ro").LeadRO & {
|
|
19
|
+
overdue: boolean;
|
|
20
|
+
})[];
|
|
21
|
+
meta: any;
|
|
22
|
+
}>;
|
|
23
|
+
create: import("..").ApiMethodDeclaration<{
|
|
24
|
+
data: import("@escapenavigator/types/dist/lead/create-lead.dto").CreateLeadDto;
|
|
25
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
26
|
+
update: import("..").ApiMethodDeclaration<{
|
|
27
|
+
id: number;
|
|
28
|
+
data: import("@escapenavigator/types/dist/lead/update-lead.dto").UpdateLeadDto;
|
|
29
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
30
|
+
markViewed: import("..").ApiMethodDeclaration<{
|
|
31
|
+
id: number;
|
|
32
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
33
|
+
linkConversion: import("..").ApiMethodDeclaration<{
|
|
34
|
+
id: number;
|
|
35
|
+
data: import("@escapenavigator/types/dist/lead/link-lead-conversion.dto").LinkLeadConversionDto;
|
|
36
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.leadsApiDeclaration = void 0;
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var get_board_1 = require("./get-board");
|
|
6
|
+
var get_board_column_1 = require("./get-board-column");
|
|
7
|
+
var get_conversion_prefill_1 = require("./get-conversion-prefill");
|
|
8
|
+
var get_counters_1 = require("./get-counters");
|
|
9
|
+
var get_events_1 = require("./get-events");
|
|
10
|
+
var get_one_1 = require("./get-one");
|
|
11
|
+
var link_conversion_1 = require("./link-conversion");
|
|
12
|
+
var mark_viewed_1 = require("./mark-viewed");
|
|
13
|
+
var query_1 = require("./query");
|
|
14
|
+
var update_1 = require("./update");
|
|
15
|
+
exports.leadsApiDeclaration = {
|
|
16
|
+
getBoard: get_board_1.getBoard,
|
|
17
|
+
getBoardColumn: get_board_column_1.getBoardColumn,
|
|
18
|
+
getCounters: get_counters_1.getCounters,
|
|
19
|
+
getConversionPrefill: get_conversion_prefill_1.getConversionPrefill,
|
|
20
|
+
getEvents: get_events_1.getEvents,
|
|
21
|
+
getOne: get_one_1.getOne,
|
|
22
|
+
query: query_1.query,
|
|
23
|
+
create: create_1.create,
|
|
24
|
+
update: update_1.update,
|
|
25
|
+
markViewed: mark_viewed_1.markViewed,
|
|
26
|
+
linkConversion: link_conversion_1.linkConversion,
|
|
27
|
+
};
|