@escapenavigator/services 2.0.43 → 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.
Files changed (107) hide show
  1. package/dist/api/fiscal-api/authorize-moloni.d.ts +4 -0
  2. package/dist/api/fiscal-api/authorize-moloni.js +8 -0
  3. package/dist/api/fiscal-api/connect-invoicexpress.d.ts +6 -0
  4. package/dist/api/fiscal-api/connect-invoicexpress.js +12 -0
  5. package/dist/api/fiscal-api/get.d.ts +3 -0
  6. package/dist/api/fiscal-api/get.js +8 -0
  7. package/dist/api/fiscal-api/index.d.ts +16 -0
  8. package/dist/api/fiscal-api/index.js +17 -0
  9. package/dist/api/fiscal-api/remove.d.ts +3 -0
  10. package/dist/api/fiscal-api/remove.js +8 -0
  11. package/dist/api/fiscal-api/retry.d.ts +5 -0
  12. package/dist/api/fiscal-api/retry.js +11 -0
  13. package/dist/api/fiscal-api/update.d.ts +6 -0
  14. package/dist/api/fiscal-api/update.js +12 -0
  15. package/dist/api/init-client-api.d.ts +8 -0
  16. package/dist/api/init-client-api.js +8 -0
  17. package/dist/api/invoice-express-api/connect.d.ts +6 -0
  18. package/dist/api/invoice-express-api/connect.js +12 -0
  19. package/dist/api/invoice-express-api/get.d.ts +3 -0
  20. package/dist/api/invoice-express-api/get.js +8 -0
  21. package/dist/api/invoice-express-api/index.d.ts +14 -0
  22. package/dist/api/invoice-express-api/index.js +15 -0
  23. package/dist/api/invoice-express-api/remove.d.ts +3 -0
  24. package/dist/api/invoice-express-api/remove.js +8 -0
  25. package/dist/api/invoice-express-api/retry.d.ts +5 -0
  26. package/dist/api/invoice-express-api/retry.js +11 -0
  27. package/dist/api/invoice-express-api/update.d.ts +6 -0
  28. package/dist/api/invoice-express-api/update.js +12 -0
  29. package/dist/api/lead-forms-api/create-form.d.ts +9 -0
  30. package/dist/api/lead-forms-api/create-form.js +12 -0
  31. package/dist/api/lead-forms-api/get-defaults.d.ts +7 -0
  32. package/dist/api/lead-forms-api/get-defaults.js +9 -0
  33. package/dist/api/lead-forms-api/get-forms.d.ts +6 -0
  34. package/dist/api/lead-forms-api/get-forms.js +8 -0
  35. package/dist/api/lead-forms-api/get-stages.d.ts +6 -0
  36. package/dist/api/lead-forms-api/get-stages.js +8 -0
  37. package/dist/api/lead-forms-api/index.d.ts +18 -0
  38. package/dist/api/lead-forms-api/index.js +19 -0
  39. package/dist/api/lead-forms-api/remove-form.d.ts +7 -0
  40. package/dist/api/lead-forms-api/remove-form.js +11 -0
  41. package/dist/api/lead-forms-api/update-form.d.ts +10 -0
  42. package/dist/api/lead-forms-api/update-form.js +12 -0
  43. package/dist/api/lead-forms-api/update-stages.d.ts +9 -0
  44. package/dist/api/lead-forms-api/update-stages.js +12 -0
  45. package/dist/api/leads-api/create.d.ts +9 -0
  46. package/dist/api/leads-api/create.js +12 -0
  47. package/dist/api/leads-api/get-board-column.d.ts +11 -0
  48. package/dist/api/leads-api/get-board-column.js +24 -0
  49. package/dist/api/leads-api/get-board.d.ts +7 -0
  50. package/dist/api/leads-api/get-board.js +9 -0
  51. package/dist/api/leads-api/get-conversion-prefill.d.ts +9 -0
  52. package/dist/api/leads-api/get-conversion-prefill.js +12 -0
  53. package/dist/api/leads-api/get-counters.d.ts +6 -0
  54. package/dist/api/leads-api/get-counters.js +8 -0
  55. package/dist/api/leads-api/get-events.d.ts +8 -0
  56. package/dist/api/leads-api/get-events.js +11 -0
  57. package/dist/api/leads-api/get-one.d.ts +8 -0
  58. package/dist/api/leads-api/get-one.js +11 -0
  59. package/dist/api/leads-api/index.d.ts +37 -0
  60. package/dist/api/leads-api/index.js +27 -0
  61. package/dist/api/leads-api/link-conversion.d.ts +10 -0
  62. package/dist/api/leads-api/link-conversion.js +12 -0
  63. package/dist/api/leads-api/mark-viewed.d.ts +9 -0
  64. package/dist/api/leads-api/mark-viewed.js +12 -0
  65. package/dist/api/leads-api/query.d.ts +10 -0
  66. package/dist/api/leads-api/query.js +9 -0
  67. package/dist/api/leads-api/update.d.ts +10 -0
  68. package/dist/api/leads-api/update.js +12 -0
  69. package/dist/api/openapi-widget-api/certificates/certificate-cloudpayments-payment.d.ts +7 -0
  70. package/dist/api/openapi-widget-api/certificates/certificate-cloudpayments-payment.js +9 -0
  71. package/dist/api/openapi-widget-api/certificates/certificate-yookassa-payment.d.ts +7 -0
  72. package/dist/api/openapi-widget-api/certificates/certificate-yookassa-payment.js +9 -0
  73. package/dist/api/openapi-widget-api/index.d.ts +22 -0
  74. package/dist/api/openapi-widget-api/index.js +22 -0
  75. package/dist/api/openapi-widget-api/leads/get-lead-form-by-uuid.d.ts +9 -0
  76. package/dist/api/openapi-widget-api/leads/get-lead-form-by-uuid.js +12 -0
  77. package/dist/api/openapi-widget-api/leads/get-lead-form.d.ts +8 -0
  78. package/dist/api/openapi-widget-api/leads/get-lead-form.js +9 -0
  79. package/dist/api/openapi-widget-api/leads/submit-lead-by-uuid.d.ts +12 -0
  80. package/dist/api/openapi-widget-api/leads/submit-lead-by-uuid.js +13 -0
  81. package/dist/api/openapi-widget-api/leads/submit-lead.d.ts +11 -0
  82. package/dist/api/openapi-widget-api/leads/submit-lead.js +13 -0
  83. package/dist/api/openapi-widget-api/order-groups/order-group-payment-cloudpayments.d.ts +9 -0
  84. package/dist/api/openapi-widget-api/order-groups/order-group-payment-cloudpayments.js +23 -0
  85. package/dist/api/openapi-widget-api/order-groups/order-group-payment-yookassa.d.ts +9 -0
  86. package/dist/api/openapi-widget-api/order-groups/order-group-payment-yookassa.js +23 -0
  87. package/dist/api/openapi-widget-api/orders/order-payment-cloudpayments.d.ts +7 -0
  88. package/dist/api/openapi-widget-api/orders/order-payment-cloudpayments.js +9 -0
  89. package/dist/api/openapi-widget-api/orders/order-payment-yookassa.d.ts +7 -0
  90. package/dist/api/openapi-widget-api/orders/order-payment-yookassa.js +9 -0
  91. package/dist/api/openapi-widget-api/packages/package-availability-range.d.ts +9 -0
  92. package/dist/api/openapi-widget-api/packages/package-availability-range.js +23 -0
  93. package/dist/api/profiles-api/index.d.ts +12 -0
  94. package/dist/api/profiles-api/index.js +12 -0
  95. package/dist/api/profiles-api/telephony/get-telephony-settings.d.ts +3 -0
  96. package/dist/api/profiles-api/telephony/get-telephony-settings.js +8 -0
  97. package/dist/api/profiles-api/telephony/query-client-calls.d.ts +8 -0
  98. package/dist/api/profiles-api/telephony/query-client-calls.js +12 -0
  99. package/dist/api/profiles-api/telephony/query-live-calls.d.ts +3 -0
  100. package/dist/api/profiles-api/telephony/query-live-calls.js +8 -0
  101. package/dist/api/profiles-api/telephony/rotate-telephony-webhook-token.d.ts +3 -0
  102. package/dist/api/profiles-api/telephony/rotate-telephony-webhook-token.js +8 -0
  103. package/dist/api/profiles-api/telephony/send-telephony-test-call.d.ts +8 -0
  104. package/dist/api/profiles-api/telephony/send-telephony-test-call.js +12 -0
  105. package/dist/api/profiles-api/telephony/update-telephony-settings.d.ts +8 -0
  106. package/dist/api/profiles-api/telephony/update-telephony-settings.js +12 -0
  107. package/package.json +4 -4
@@ -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 { 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,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;
@@ -31,7 +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';
35
+ import { invoiceExpressApiDeclaration } from './invoice-express-api';
34
36
  import { landingReviewsApiDeclaration } from './landing-reviews-api';
37
+ import { leadFormsApiDeclaration } from './lead-forms-api';
38
+ import { leadsApiDeclaration } from './leads-api';
35
39
  import { locationsApiDeclaration } from './locations-api';
36
40
  import { logsApiDeclaration } from './logs-api';
37
41
  import { loyaltyApiDeclaration } from './loyalty-api';
@@ -96,6 +100,8 @@ export type InitApiDeclaration = {
96
100
  gameSessionApi: Api<typeof gameSessionApiDeclaration>;
97
101
  checklistApi: Api<typeof checklistApiDeclaration>;
98
102
  mailchimpApi: Api<typeof mailchimpApiDeclaration>;
103
+ invoiceExpressApi: Api<typeof invoiceExpressApiDeclaration>;
104
+ fiscalApi: Api<typeof fiscalApiDeclaration>;
99
105
  playersApi: Api<typeof playersApiDeclaration>;
100
106
  googleCalendarsApi: Api<typeof googleCalendarsApiDeclaration>;
101
107
  googlePlacesApi: Api<typeof googlePlacesApiDeclaration>;
@@ -143,6 +149,8 @@ export type InitApiDeclaration = {
143
149
  uploads: Api<typeof uploadsApiDeclaration>;
144
150
  emails: Api<typeof emailsApiDeclaration>;
145
151
  userMessages: Api<typeof userMessagesApiDeclaration>;
152
+ leads: Api<typeof leadsApiDeclaration>;
153
+ leadForms: Api<typeof leadFormsApiDeclaration>;
146
154
  slots: Api<typeof slotsApiDeclaration>;
147
155
  slotTemplates: Api<typeof slotTemplatesApiDeclaration>;
148
156
  agbs: Api<typeof agbApiDeclaration>;
@@ -34,7 +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");
38
+ var invoice_express_api_1 = require("./invoice-express-api");
37
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");
38
42
  var locations_api_1 = require("./locations-api");
39
43
  var logs_api_1 = require("./logs-api");
40
44
  var loyalty_api_1 = require("./loyalty-api");
@@ -102,6 +106,8 @@ var initClientApi = function (url, clientOptions) { return ({
102
106
  checklistApi: (0, _1.initApi)(checklist_api_1.checklistApiDeclaration, url, clientOptions),
103
107
  playersApi: (0, _1.initApi)(players_api_1.playersApiDeclaration, url, clientOptions),
104
108
  mailchimpApi: (0, _1.initApi)(mailchimp_api_1.mailchimpApiDeclaration, url, clientOptions),
109
+ invoiceExpressApi: (0, _1.initApi)(invoice_express_api_1.invoiceExpressApiDeclaration, url, clientOptions),
110
+ fiscalApi: (0, _1.initApi)(fiscal_api_1.fiscalApiDeclaration, url, clientOptions),
105
111
  nowEscape: (0, _1.initApi)(now_escape_api_1.nowEscapeApiDeclaration, url, clientOptions),
106
112
  googleCalendarsApi: (0, _1.initApi)(google_calendars_api_1.googleCalendarsApiDeclaration, url, clientOptions),
107
113
  googlePlacesApi: (0, _1.initApi)(google_places_api_1.googlePlacesApiDeclaration, url, clientOptions),
@@ -143,6 +149,8 @@ var initClientApi = function (url, clientOptions) { return ({
143
149
  emails: (0, _1.initApi)(emails_api_1.emailsApiDeclaration, url, clientOptions),
144
150
  admins: (0, _1.initApi)(admins_api_1.adminsApiDeclaration, url, clientOptions),
145
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),
146
154
  orderDiscounts: (0, _1.initApi)(order_discounts_api_1.orderDiscountsApiDeclaration, url, clientOptions),
147
155
  orderPenalties: (0, _1.initApi)(order_penalties_api_1.orderPenaltiesApiDeclaration, url, clientOptions),
148
156
  orderUpsellngs: (0, _1.initApi)(order_upsellings_api_1.orderUpsellngsApiDeclaration, url, clientOptions),
@@ -0,0 +1,6 @@
1
+ import { ConnectInvoiceExpressDto } from '@escapenavigator/types/dist/invoice-express/connect-invoice-express.dto';
2
+ import { InvoiceExpressRO } from '@escapenavigator/types/dist/invoice-express/invoice-express.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ export declare const connect: ApiMethodDeclaration<{
5
+ data: ConnectInvoiceExpressDto;
6
+ }, InvoiceExpressRO>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.connect = void 0;
4
+ var connect = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/invoice-express',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.connect = connect;
@@ -0,0 +1,3 @@
1
+ import { InvoiceExpressRO } from '@escapenavigator/types/dist/invoice-express/invoice-express.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ export declare const get: ApiMethodDeclaration<undefined, InvoiceExpressRO>;
@@ -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: '/invoice-express',
6
+ method: 'GET',
7
+ }); };
8
+ exports.get = get;
@@ -0,0 +1,14 @@
1
+ import { connect } from './connect';
2
+ import { get } from './get';
3
+ import { remove } from './remove';
4
+ import { retry } from './retry';
5
+ import { update } from './update';
6
+ type ApiDeclaration = {
7
+ get: typeof get;
8
+ connect: typeof connect;
9
+ update: typeof update;
10
+ remove: typeof remove;
11
+ retry: typeof retry;
12
+ };
13
+ export declare const invoiceExpressApiDeclaration: ApiDeclaration;
14
+ export {};
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.invoiceExpressApiDeclaration = void 0;
4
+ var connect_1 = require("./connect");
5
+ var get_1 = require("./get");
6
+ var remove_1 = require("./remove");
7
+ var retry_1 = require("./retry");
8
+ var update_1 = require("./update");
9
+ exports.invoiceExpressApiDeclaration = {
10
+ get: get_1.get,
11
+ connect: connect_1.connect,
12
+ update: update_1.update,
13
+ remove: remove_1.remove,
14
+ retry: retry_1.retry,
15
+ };
@@ -0,0 +1,3 @@
1
+ import { InvoiceExpressRO } from '@escapenavigator/types/dist/invoice-express/invoice-express.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ export declare const remove: ApiMethodDeclaration<undefined, InvoiceExpressRO>;
@@ -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: '/invoice-express',
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: "/invoice-express/retry/".concat(transactionId),
8
+ method: 'POST',
9
+ });
10
+ };
11
+ exports.retry = retry;
@@ -0,0 +1,6 @@
1
+ import { ConnectInvoiceExpressDto } from '@escapenavigator/types/dist/invoice-express/connect-invoice-express.dto';
2
+ import { InvoiceExpressRO } from '@escapenavigator/types/dist/invoice-express/invoice-express.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ export declare const update: ApiMethodDeclaration<{
5
+ data: Partial<ConnectInvoiceExpressDto>;
6
+ }, InvoiceExpressRO>;
@@ -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: '/invoice-express',
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.update = update;
@@ -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,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,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 { 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;