@escapenavigator/services 2.0.45 → 2.0.47

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.
Files changed (104) hide show
  1. package/dist/api/clients-api/delete-complaint.d.ts +9 -0
  2. package/dist/api/clients-api/delete-complaint.js +11 -0
  3. package/dist/api/clients-api/get-complaints.d.ts +1 -0
  4. package/dist/api/clients-api/index.d.ts +2 -0
  5. package/dist/api/clients-api/index.js +2 -0
  6. package/dist/api/fiscal-api/authorize-moloni.d.ts +4 -0
  7. package/dist/api/fiscal-api/authorize-moloni.js +8 -0
  8. package/dist/api/fiscal-api/connect-invoicexpress.d.ts +6 -0
  9. package/dist/api/fiscal-api/connect-invoicexpress.js +12 -0
  10. package/dist/api/fiscal-api/get.d.ts +3 -0
  11. package/dist/api/fiscal-api/get.js +8 -0
  12. package/dist/api/fiscal-api/index.d.ts +16 -0
  13. package/dist/api/fiscal-api/index.js +17 -0
  14. package/dist/api/fiscal-api/remove.d.ts +3 -0
  15. package/dist/api/fiscal-api/remove.js +8 -0
  16. package/dist/api/fiscal-api/retry.d.ts +5 -0
  17. package/dist/api/fiscal-api/retry.js +11 -0
  18. package/dist/api/fiscal-api/update.d.ts +6 -0
  19. package/dist/api/fiscal-api/update.js +12 -0
  20. package/dist/api/init-client-api.d.ts +6 -0
  21. package/dist/api/init-client-api.js +6 -0
  22. package/dist/api/lead-forms-api/create-form.d.ts +9 -0
  23. package/dist/api/lead-forms-api/create-form.js +12 -0
  24. package/dist/api/lead-forms-api/get-defaults.d.ts +7 -0
  25. package/dist/api/lead-forms-api/get-defaults.js +9 -0
  26. package/dist/api/lead-forms-api/get-forms.d.ts +6 -0
  27. package/dist/api/lead-forms-api/get-forms.js +8 -0
  28. package/dist/api/lead-forms-api/get-stages.d.ts +6 -0
  29. package/dist/api/lead-forms-api/get-stages.js +8 -0
  30. package/dist/api/lead-forms-api/get-widget-display.d.ts +6 -0
  31. package/dist/api/lead-forms-api/get-widget-display.js +8 -0
  32. package/dist/api/lead-forms-api/index.d.ts +22 -0
  33. package/dist/api/lead-forms-api/index.js +23 -0
  34. package/dist/api/lead-forms-api/remove-form.d.ts +7 -0
  35. package/dist/api/lead-forms-api/remove-form.js +11 -0
  36. package/dist/api/lead-forms-api/update-form.d.ts +10 -0
  37. package/dist/api/lead-forms-api/update-form.js +12 -0
  38. package/dist/api/lead-forms-api/update-stages.d.ts +9 -0
  39. package/dist/api/lead-forms-api/update-stages.js +12 -0
  40. package/dist/api/lead-forms-api/update-widget-display.d.ts +9 -0
  41. package/dist/api/lead-forms-api/update-widget-display.js +12 -0
  42. package/dist/api/leads-api/create.d.ts +9 -0
  43. package/dist/api/leads-api/create.js +12 -0
  44. package/dist/api/leads-api/get-board-column.d.ts +11 -0
  45. package/dist/api/leads-api/get-board-column.js +24 -0
  46. package/dist/api/leads-api/get-board.d.ts +7 -0
  47. package/dist/api/leads-api/get-board.js +9 -0
  48. package/dist/api/leads-api/get-conversion-prefill.d.ts +9 -0
  49. package/dist/api/leads-api/get-conversion-prefill.js +12 -0
  50. package/dist/api/leads-api/get-counters.d.ts +6 -0
  51. package/dist/api/leads-api/get-counters.js +8 -0
  52. package/dist/api/leads-api/get-events.d.ts +8 -0
  53. package/dist/api/leads-api/get-events.js +11 -0
  54. package/dist/api/leads-api/get-one.d.ts +8 -0
  55. package/dist/api/leads-api/get-one.js +11 -0
  56. package/dist/api/leads-api/index.d.ts +37 -0
  57. package/dist/api/leads-api/index.js +27 -0
  58. package/dist/api/leads-api/link-conversion.d.ts +10 -0
  59. package/dist/api/leads-api/link-conversion.js +12 -0
  60. package/dist/api/leads-api/mark-viewed.d.ts +9 -0
  61. package/dist/api/leads-api/mark-viewed.js +12 -0
  62. package/dist/api/leads-api/query.d.ts +10 -0
  63. package/dist/api/leads-api/query.js +9 -0
  64. package/dist/api/leads-api/update.d.ts +10 -0
  65. package/dist/api/leads-api/update.js +12 -0
  66. package/dist/api/openapi-widget-api/certificates/certificate-cloudpayments-payment.d.ts +7 -0
  67. package/dist/api/openapi-widget-api/certificates/certificate-cloudpayments-payment.js +9 -0
  68. package/dist/api/openapi-widget-api/certificates/certificate-yookassa-payment.d.ts +7 -0
  69. package/dist/api/openapi-widget-api/certificates/certificate-yookassa-payment.js +9 -0
  70. package/dist/api/openapi-widget-api/index.d.ts +22 -0
  71. package/dist/api/openapi-widget-api/index.js +22 -0
  72. package/dist/api/openapi-widget-api/leads/get-lead-form-by-uuid.d.ts +9 -0
  73. package/dist/api/openapi-widget-api/leads/get-lead-form-by-uuid.js +12 -0
  74. package/dist/api/openapi-widget-api/leads/get-lead-form.d.ts +8 -0
  75. package/dist/api/openapi-widget-api/leads/get-lead-form.js +9 -0
  76. package/dist/api/openapi-widget-api/leads/submit-lead-by-uuid.d.ts +12 -0
  77. package/dist/api/openapi-widget-api/leads/submit-lead-by-uuid.js +13 -0
  78. package/dist/api/openapi-widget-api/leads/submit-lead.d.ts +11 -0
  79. package/dist/api/openapi-widget-api/leads/submit-lead.js +13 -0
  80. package/dist/api/openapi-widget-api/order-groups/order-group-payment-cloudpayments.d.ts +9 -0
  81. package/dist/api/openapi-widget-api/order-groups/order-group-payment-cloudpayments.js +23 -0
  82. package/dist/api/openapi-widget-api/order-groups/order-group-payment-yookassa.d.ts +9 -0
  83. package/dist/api/openapi-widget-api/order-groups/order-group-payment-yookassa.js +23 -0
  84. package/dist/api/openapi-widget-api/orders/order-payment-cloudpayments.d.ts +7 -0
  85. package/dist/api/openapi-widget-api/orders/order-payment-cloudpayments.js +9 -0
  86. package/dist/api/openapi-widget-api/orders/order-payment-yookassa.d.ts +7 -0
  87. package/dist/api/openapi-widget-api/orders/order-payment-yookassa.js +9 -0
  88. package/dist/api/openapi-widget-api/slots/slots-upcoming.d.ts +9 -0
  89. package/dist/api/openapi-widget-api/slots/slots-upcoming.js +9 -0
  90. package/dist/api/profiles-api/index.d.ts +12 -0
  91. package/dist/api/profiles-api/index.js +12 -0
  92. package/dist/api/profiles-api/telephony/get-telephony-settings.d.ts +3 -0
  93. package/dist/api/profiles-api/telephony/get-telephony-settings.js +8 -0
  94. package/dist/api/profiles-api/telephony/query-client-calls.d.ts +8 -0
  95. package/dist/api/profiles-api/telephony/query-client-calls.js +12 -0
  96. package/dist/api/profiles-api/telephony/query-live-calls.d.ts +3 -0
  97. package/dist/api/profiles-api/telephony/query-live-calls.js +8 -0
  98. package/dist/api/profiles-api/telephony/rotate-telephony-webhook-token.d.ts +3 -0
  99. package/dist/api/profiles-api/telephony/rotate-telephony-webhook-token.js +8 -0
  100. package/dist/api/profiles-api/telephony/send-telephony-test-call.d.ts +8 -0
  101. package/dist/api/profiles-api/telephony/send-telephony-test-call.js +12 -0
  102. package/dist/api/profiles-api/telephony/update-telephony-settings.d.ts +8 -0
  103. package/dist/api/profiles-api/telephony/update-telephony-settings.js +12 -0
  104. package/package.json +4 -4
@@ -0,0 +1,9 @@
1
+ import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = {
4
+ clientId: number;
5
+ complaintId: number;
6
+ };
7
+ type ResponseData = ClientRO;
8
+ export declare const deleteComplaint: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteComplaint = void 0;
4
+ var deleteComplaint = function (_a) {
5
+ var clientId = _a.clientId, complaintId = _a.complaintId;
6
+ return ({
7
+ url: "/clients/".concat(clientId, "/complaints/").concat(complaintId),
8
+ method: 'DELETE',
9
+ });
10
+ };
11
+ exports.deleteComplaint = deleteComplaint;
@@ -1,5 +1,6 @@
1
1
  import { ApiMethodDeclaration } from '..';
2
2
  export type ClientComplaintItemRO = {
3
+ id: number;
3
4
  reason: string;
4
5
  createdAt: string;
5
6
  };
@@ -1,6 +1,7 @@
1
1
  import { count } from './count';
2
2
  import { create } from './create';
3
3
  import { createComplaint } from './create-complaint';
4
+ import { deleteComplaint } from './delete-complaint';
4
5
  import { exportClients } from './export';
5
6
  import { gdprExport } from './gdpr-export';
6
7
  import { getAll } from './get-all';
@@ -21,6 +22,7 @@ type ApiDeclaration = {
21
22
  exportClients: typeof exportClients;
22
23
  create: typeof create;
23
24
  createComplaint: typeof createComplaint;
25
+ deleteComplaint: typeof deleteComplaint;
24
26
  getComplaints: typeof getComplaints;
25
27
  toggleBlock: typeof toggleBlock;
26
28
  update: typeof update;
@@ -4,6 +4,7 @@ exports.clientsApiDeclaration = void 0;
4
4
  var count_1 = require("./count");
5
5
  var create_1 = require("./create");
6
6
  var create_complaint_1 = require("./create-complaint");
7
+ var delete_complaint_1 = require("./delete-complaint");
7
8
  var export_1 = require("./export");
8
9
  var gdpr_export_1 = require("./gdpr-export");
9
10
  var get_all_1 = require("./get-all");
@@ -22,6 +23,7 @@ var update_1 = require("./update");
22
23
  exports.clientsApiDeclaration = {
23
24
  create: create_1.create,
24
25
  createComplaint: create_complaint_1.createComplaint,
26
+ deleteComplaint: delete_complaint_1.deleteComplaint,
25
27
  exportClients: export_1.exportClients,
26
28
  count: count_1.count,
27
29
  getComplaints: get_complaints_1.getComplaints,
@@ -0,0 +1,4 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ export declare const authorizeMoloni: ApiMethodDeclaration<undefined, {
3
+ url: string;
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 { FiscalSettingsRO } from '@escapenavigator/types/dist/fiscal/fiscal-settings.ro';
2
+ import { ConnectInvoiceExpressDto } from '@escapenavigator/types/dist/invoice-express/connect-invoice-express.dto';
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,3 @@
1
+ import { FiscalSettingsRO } from '@escapenavigator/types/dist/fiscal/fiscal-settings.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ export declare const get: ApiMethodDeclaration<undefined, FiscalSettingsRO>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.get = void 0;
4
+ var get = function () { return ({
5
+ url: '/fiscal',
6
+ method: 'GET',
7
+ }); };
8
+ exports.get = get;
@@ -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,3 @@
1
+ import { FiscalSettingsRO } from '@escapenavigator/types/dist/fiscal/fiscal-settings.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ export declare const remove: ApiMethodDeclaration<undefined, FiscalSettingsRO>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.remove = void 0;
4
+ var remove = function () { return ({
5
+ url: '/fiscal',
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.remove = remove;
@@ -0,0 +1,5 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ export declare const retry: ApiMethodDeclaration<{
4
+ transactionId: number;
5
+ }, SuccessRO>;
@@ -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;
@@ -27,12 +27,15 @@ import { districtsApiDeclaration } from './districts-api';
27
27
  import { dynamicResourcesApiDeclaration } from './dynamic-resources-api';
28
28
  import { emailsApiDeclaration } from './emails-api';
29
29
  import { financeItemsApiDeclaration } from './financeitems-api';
30
+ import { fiscalApiDeclaration } from './fiscal-api';
30
31
  import { gameSessionApiDeclaration } from './game-session-api';
31
32
  import { googleCalendarsApiDeclaration } from './google-calendars-api';
32
33
  import { googlePlacesApiDeclaration } from './google-places-api';
33
34
  import { imagesApiDeclaration } from './images-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>;
@@ -30,12 +30,15 @@ var districts_api_1 = require("./districts-api");
30
30
  var dynamic_resources_api_1 = require("./dynamic-resources-api");
31
31
  var emails_api_1 = require("./emails-api");
32
32
  var financeitems_api_1 = require("./financeitems-api");
33
+ var fiscal_api_1 = require("./fiscal-api");
33
34
  var game_session_api_1 = require("./game-session-api");
34
35
  var google_calendars_api_1 = require("./google-calendars-api");
35
36
  var google_places_api_1 = require("./google-places-api");
36
37
  var images_api_1 = require("./images-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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getForms = void 0;
4
+ var getForms = function () { return ({
5
+ url: '/lead-forms',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getForms = getForms;
@@ -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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getStages = void 0;
4
+ var getStages = function () { return ({
5
+ url: '/lead-forms/stages',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getStages = getStages;
@@ -0,0 +1,6 @@
1
+ import { LeadWidgetDisplayRO } from '@escapenavigator/types/dist/lead/lead-widget-display.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = undefined;
4
+ type ResponseData = LeadWidgetDisplayRO;
5
+ export declare const getWidgetDisplay: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getWidgetDisplay = void 0;
4
+ var getWidgetDisplay = function () { return ({
5
+ url: '/lead-forms/widget-display',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getWidgetDisplay = getWidgetDisplay;
@@ -0,0 +1,22 @@
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
+ getWidgetDisplay: import("..").ApiMethodDeclaration<undefined, import("@escapenavigator/types/dist/lead/lead-widget-display.ro").LeadWidgetDisplayRO>;
19
+ updateWidgetDisplay: import("..").ApiMethodDeclaration<{
20
+ data: import("@escapenavigator/types/dist/lead/update-lead-widget-display.dto").UpdateLeadWidgetDisplayDto;
21
+ }, import("@escapenavigator/types/dist/lead/lead-widget-display.ro").LeadWidgetDisplayRO>;
22
+ };
@@ -0,0 +1,23 @@
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 get_widget_display_1 = require("./get-widget-display");
9
+ var remove_form_1 = require("./remove-form");
10
+ var update_form_1 = require("./update-form");
11
+ var update_stages_1 = require("./update-stages");
12
+ var update_widget_display_1 = require("./update-widget-display");
13
+ exports.leadFormsApiDeclaration = {
14
+ getForms: get_forms_1.getForms,
15
+ getDefaults: get_defaults_1.getDefaults,
16
+ createForm: create_form_1.createForm,
17
+ updateForm: update_form_1.updateForm,
18
+ removeForm: remove_form_1.removeForm,
19
+ getStages: get_stages_1.getStages,
20
+ updateStages: update_stages_1.updateStages,
21
+ getWidgetDisplay: get_widget_display_1.getWidgetDisplay,
22
+ updateWidgetDisplay: update_widget_display_1.updateWidgetDisplay,
23
+ };
@@ -0,0 +1,7 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ type ParamsData = {
3
+ id: number;
4
+ };
5
+ type ResponseData = void;
6
+ export declare const removeForm: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -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 { LeadWidgetDisplayRO } from '@escapenavigator/types/dist/lead/lead-widget-display.ro';
2
+ import { UpdateLeadWidgetDisplayDto } from '@escapenavigator/types/dist/lead/update-lead-widget-display.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ type ParamsData = {
5
+ data: UpdateLeadWidgetDisplayDto;
6
+ };
7
+ type ResponseData = LeadWidgetDisplayRO;
8
+ export declare const updateWidgetDisplay: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateWidgetDisplay = void 0;
4
+ var updateWidgetDisplay = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/lead-forms/widget-display',
8
+ method: 'PUT',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateWidgetDisplay = updateWidgetDisplay;
@@ -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
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBoard = void 0;
4
+ var getBoard = function (params) { return ({
5
+ url: '/leads/board',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.getBoard = getBoard;
@@ -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 {};