@escapenavigator/services 2.0.2 → 2.0.4

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 (79) hide show
  1. package/dist/api/academy-api/create.d.ts +9 -0
  2. package/dist/api/academy-api/create.js +12 -0
  3. package/dist/api/academy-api/get-by-slug.d.ts +10 -0
  4. package/dist/api/academy-api/get-by-slug.js +12 -0
  5. package/dist/api/academy-api/get-one.d.ts +6 -0
  6. package/dist/api/academy-api/get-one.js +8 -0
  7. package/dist/api/academy-api/index.d.ts +20 -0
  8. package/dist/api/academy-api/index.js +21 -0
  9. package/dist/api/academy-api/list.d.ts +7 -0
  10. package/dist/api/academy-api/list.js +9 -0
  11. package/dist/api/academy-api/query.d.ts +8 -0
  12. package/dist/api/academy-api/query.js +9 -0
  13. package/dist/api/academy-api/remove.d.ts +7 -0
  14. package/dist/api/academy-api/remove.js +8 -0
  15. package/dist/api/academy-api/translate.d.ts +14 -0
  16. package/dist/api/academy-api/translate.js +12 -0
  17. package/dist/api/academy-api/update.d.ts +10 -0
  18. package/dist/api/academy-api/update.js +12 -0
  19. package/dist/api/agb-api/index.d.ts +2 -0
  20. package/dist/api/agb-api/index.js +2 -0
  21. package/dist/api/agb-api/reset-acceptances.d.ts +11 -0
  22. package/dist/api/agb-api/reset-acceptances.js +12 -0
  23. package/dist/api/clients-api/gdpr-export.d.ts +20 -0
  24. package/dist/api/clients-api/gdpr-export.js +11 -0
  25. package/dist/api/clients-api/index.d.ts +4 -0
  26. package/dist/api/clients-api/index.js +4 -0
  27. package/dist/api/clients-api/reveal-contacts.d.ts +16 -0
  28. package/dist/api/clients-api/reveal-contacts.js +16 -0
  29. package/dist/api/coalition-api/accept.d.ts +7 -0
  30. package/dist/api/coalition-api/accept.js +8 -0
  31. package/dist/api/coalition-api/create.d.ts +9 -0
  32. package/dist/api/coalition-api/create.js +12 -0
  33. package/dist/api/coalition-api/decline.d.ts +7 -0
  34. package/dist/api/coalition-api/decline.js +8 -0
  35. package/dist/api/coalition-api/index.d.ts +16 -0
  36. package/dist/api/coalition-api/index.js +17 -0
  37. package/dist/api/coalition-api/list.d.ts +6 -0
  38. package/dist/api/coalition-api/list.js +8 -0
  39. package/dist/api/coalition-api/stats.d.ts +9 -0
  40. package/dist/api/coalition-api/stats.js +9 -0
  41. package/dist/api/coalition-api/terminate.d.ts +7 -0
  42. package/dist/api/coalition-api/terminate.js +8 -0
  43. package/dist/api/districts-api/index.d.ts +23 -0
  44. package/dist/api/districts-api/index.js +50 -0
  45. package/dist/api/emails-api/index.d.ts +2 -0
  46. package/dist/api/emails-api/index.js +2 -0
  47. package/dist/api/emails-api/link-to-profile.d.ts +8 -0
  48. package/dist/api/emails-api/link-to-profile.js +12 -0
  49. package/dist/api/init-client-api.d.ts +6 -0
  50. package/dist/api/init-client-api.js +6 -0
  51. package/dist/api/openapi-widget-api/index.d.ts +8 -0
  52. package/dist/api/openapi-widget-api/index.js +8 -0
  53. package/dist/api/openapi-widget-api/packages/book-package.d.ts +13 -0
  54. package/dist/api/openapi-widget-api/packages/book-package.js +12 -0
  55. package/dist/api/openapi-widget-api/packages/list-packages.d.ts +8 -0
  56. package/dist/api/openapi-widget-api/packages/list-packages.js +9 -0
  57. package/dist/api/openapi-widget-api/packages/package-availability.d.ts +9 -0
  58. package/dist/api/openapi-widget-api/packages/package-availability.js +23 -0
  59. package/dist/api/openapi-widget-api/packages/packages-by-questroom.d.ts +8 -0
  60. package/dist/api/openapi-widget-api/packages/packages-by-questroom.js +9 -0
  61. package/dist/api/packages-api/availability.d.ts +9 -0
  62. package/dist/api/packages-api/availability.js +23 -0
  63. package/dist/api/packages-api/book.d.ts +13 -0
  64. package/dist/api/packages-api/book.js +12 -0
  65. package/dist/api/packages-api/index.d.ts +4 -0
  66. package/dist/api/packages-api/index.js +4 -0
  67. package/dist/api/packages-api/remove.d.ts +2 -3
  68. package/dist/api/packages-api/remove.js +4 -7
  69. package/dist/api/profiles-api/current/accept-terms.d.ts +10 -0
  70. package/dist/api/profiles-api/current/accept-terms.js +12 -0
  71. package/dist/api/profiles-api/get-profiles-without-next-action.d.ts +6 -0
  72. package/dist/api/profiles-api/get-profiles-without-next-action.js +8 -0
  73. package/dist/api/profiles-api/index.d.ts +4 -0
  74. package/dist/api/profiles-api/index.js +4 -0
  75. package/dist/api/slots-api/bulk-update.d.ts +9 -0
  76. package/dist/api/slots-api/bulk-update.js +12 -0
  77. package/dist/api/slots-api/index.d.ts +2 -0
  78. package/dist/api/slots-api/index.js +2 -0
  79. package/package.json +4 -4
@@ -4,12 +4,14 @@ exports.emailsApiDeclaration = void 0;
4
4
  var create_1 = require("./create");
5
5
  var get_by_id_1 = require("./get-by-id");
6
6
  var get_profile_emails_1 = require("./get-profile-emails");
7
+ var link_to_profile_1 = require("./link-to-profile");
7
8
  var query_1 = require("./query");
8
9
  var remove_1 = require("./remove");
9
10
  var resend_1 = require("./resend");
10
11
  var resync_1 = require("./resync");
11
12
  exports.emailsApiDeclaration = {
12
13
  resync: resync_1.resync,
14
+ linkToProfile: link_to_profile_1.linkToProfile,
13
15
  getProfileEmails: get_profile_emails_1.getProfileEmails,
14
16
  getById: get_by_id_1.getById,
15
17
  query: query_1.query,
@@ -0,0 +1,8 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ type ParamsData = {
3
+ identificator: string;
4
+ profileId: number;
5
+ };
6
+ type ResponseData = void;
7
+ export declare const linkToProfile: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.linkToProfile = void 0;
4
+ var linkToProfile = function (_a) {
5
+ var identificator = _a.identificator, profileId = _a.profileId;
6
+ return ({
7
+ url: "/emails/link/".concat(identificator),
8
+ method: 'POST',
9
+ data: { profileId: profileId },
10
+ });
11
+ };
12
+ exports.linkToProfile = linkToProfile;
@@ -1,4 +1,5 @@
1
1
  import { Api, type InitApiClientOptions } from '.';
2
+ import { academyApiDeclaration } from './academy-api';
2
3
  import { adminAnnouncementsApiDeclaration } from './admin-announcements-api';
3
4
  import { adminsApiDeclaration } from './admins-api';
4
5
  import { agbApiDeclaration } from './agb-api';
@@ -15,7 +16,9 @@ import { certificatesaleDiscountsApiDeclaration } from './certificatesales-disco
15
16
  import { certificateUploadsApiDeclaration } from './certificateuploads-api';
16
17
  import { checklistApiDeclaration } from './checklist-api';
17
18
  import { citiesApiDeclaration } from './cities-api';
19
+ import { districtsApiDeclaration } from './districts-api';
18
20
  import { clientsApiDeclaration } from './clients-api';
21
+ import { coalitionApiDeclaration } from './coalition-api';
19
22
  import { cronParserApiDeclaration } from './cron-parser-api';
20
23
  import { customFieldsApiDeclaration } from './custom-fields-api';
21
24
  import { dashboardApiDeclaration } from './dashboard-api';
@@ -117,6 +120,7 @@ export type InitApiDeclaration = {
117
120
  orderCertificates: Api<typeof orderCertificatesApiDeclaration>;
118
121
  orderGroups: Api<typeof orderGroupsApiDeclaration>;
119
122
  cities: Api<typeof citiesApiDeclaration>;
123
+ districts: Api<typeof districtsApiDeclaration>;
120
124
  subwayStations: Api<typeof subwayStationsApiDeclaration>;
121
125
  nowEscape: Api<typeof nowEscapeApiDeclaration>;
122
126
  logs: Api<typeof logsApiDeclaration>;
@@ -162,5 +166,7 @@ export type InitApiDeclaration = {
162
166
  certificatesaleDiscounts: Api<typeof certificatesaleDiscountsApiDeclaration>;
163
167
  navigatorCertificates: Api<typeof navigatorCertificateApiDeclaration>;
164
168
  analyticsChat: Api<typeof analyticsChatApiDeclaration>;
169
+ coalitions: Api<typeof coalitionApiDeclaration>;
170
+ academy: Api<typeof academyApiDeclaration>;
165
171
  };
166
172
  export declare const initClientApi: (url: string, clientOptions?: InitApiClientOptions) => InitApiDeclaration;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initClientApi = void 0;
4
4
  var _1 = require(".");
5
+ var academy_api_1 = require("./academy-api");
5
6
  var admin_announcements_api_1 = require("./admin-announcements-api");
6
7
  var admins_api_1 = require("./admins-api");
7
8
  var agb_api_1 = require("./agb-api");
@@ -18,7 +19,9 @@ var certificatesales_discounts_api_1 = require("./certificatesales-discounts-api
18
19
  var certificateuploads_api_1 = require("./certificateuploads-api");
19
20
  var checklist_api_1 = require("./checklist-api");
20
21
  var cities_api_1 = require("./cities-api");
22
+ var districts_api_1 = require("./districts-api");
21
23
  var clients_api_1 = require("./clients-api");
24
+ var coalition_api_1 = require("./coalition-api");
22
25
  var cron_parser_api_1 = require("./cron-parser-api");
23
26
  var custom_fields_api_1 = require("./custom-fields-api");
24
27
  var dashboard_api_1 = require("./dashboard-api");
@@ -115,6 +118,7 @@ var initClientApi = function (url, clientOptions) { return ({
115
118
  products: (0, _1.initApi)(products_api_1.productsApiDeclaration, url, clientOptions),
116
119
  stockArrivals: (0, _1.initApi)(stock_arrivals_api_1.stockArrivalsApiDeclaration, url, clientOptions),
117
120
  cities: (0, _1.initApi)(cities_api_1.citiesApiDeclaration, url, clientOptions),
121
+ districts: (0, _1.initApi)(districts_api_1.districtsApiDeclaration, url, clientOptions),
118
122
  subwayStations: (0, _1.initApi)(subway_stations_api_1.subwayStationsApiDeclaration, url, clientOptions),
119
123
  orderCertificates: (0, _1.initApi)(order_certificates_api_1.orderCertificatesApiDeclaration, url, clientOptions),
120
124
  orderGroups: (0, _1.initApi)(order_groups_api_1.orderGroupsApiDeclaration, url, clientOptions),
@@ -166,6 +170,8 @@ var initClientApi = function (url, clientOptions) { return ({
166
170
  certificatesales: (0, _1.initApi)(certificatesales_api_1.certificateSalesApiDeclaration, url, clientOptions),
167
171
  navigatorCertificates: (0, _1.initApi)(navigator_certificate_api_1.navigatorCertificateApiDeclaration, url, clientOptions),
168
172
  analyticsChat: (0, _1.initApi)(analytics_chat_api_1.analyticsChatApiDeclaration, url, clientOptions),
173
+ coalitions: (0, _1.initApi)(coalition_api_1.coalitionApiDeclaration, url, clientOptions),
174
+ academy: (0, _1.initApi)(academy_api_1.academyApiDeclaration, url, clientOptions),
169
175
  // subscription: initApi(subscriptionApiDeclaration, url, clientOptions),
170
176
  }); };
171
177
  exports.initClientApi = initClientApi;
@@ -51,6 +51,10 @@ import { updateOrder } from './orders/update-order';
51
51
  import { updateOrderLanguageAndMode } from './orders/update-order-language-and-mode';
52
52
  import { updateOrderPlayers } from './orders/update-order-players';
53
53
  import { updateOrderSlot } from './orders/update-order-slot';
54
+ import { bookPackage } from './packages/book-package';
55
+ import { listPackages } from './packages/list-packages';
56
+ import { packageAvailability } from './packages/package-availability';
57
+ import { packagesByQuestroom } from './packages/packages-by-questroom';
54
58
  import { createHold } from './slots/create-hold';
55
59
  import { removeHold } from './slots/remove-hold';
56
60
  import { slotDetails } from './slots/slot-details';
@@ -126,6 +130,10 @@ type ApiDeclaration = {
126
130
  capturePaypalOrderGroup: typeof capturePaypalOrderGroup;
127
131
  batchCreateOrderGroup: typeof batchCreateOrderGroup;
128
132
  removeOrderGroupPreorders: typeof removeOrderGroupPreorders;
133
+ listPackages: typeof listPackages;
134
+ packagesByQuestroom: typeof packagesByQuestroom;
135
+ packageAvailability: typeof packageAvailability;
136
+ bookPackage: typeof bookPackage;
129
137
  };
130
138
  export declare const openapiWidgetApiDeclaration: ApiDeclaration;
131
139
  export {};
@@ -54,6 +54,10 @@ var update_order_1 = require("./orders/update-order");
54
54
  var update_order_language_and_mode_1 = require("./orders/update-order-language-and-mode");
55
55
  var update_order_players_1 = require("./orders/update-order-players");
56
56
  var update_order_slot_1 = require("./orders/update-order-slot");
57
+ var book_package_1 = require("./packages/book-package");
58
+ var list_packages_1 = require("./packages/list-packages");
59
+ var package_availability_1 = require("./packages/package-availability");
60
+ var packages_by_questroom_1 = require("./packages/packages-by-questroom");
57
61
  var create_hold_1 = require("./slots/create-hold");
58
62
  var remove_hold_1 = require("./slots/remove-hold");
59
63
  var slot_details_1 = require("./slots/slot-details");
@@ -129,4 +133,8 @@ exports.openapiWidgetApiDeclaration = {
129
133
  capturePaypalOrderGroup: capture_paypal_order_group_1.capturePaypalOrderGroup,
130
134
  batchCreateOrderGroup: batch_create_order_group_1.batchCreateOrderGroup,
131
135
  removeOrderGroupPreorders: remove_order_group_preorders_1.removeOrderGroupPreorders,
136
+ listPackages: list_packages_1.listPackages,
137
+ packagesByQuestroom: packages_by_questroom_1.packagesByQuestroom,
138
+ packageAvailability: package_availability_1.packageAvailability,
139
+ bookPackage: book_package_1.bookPackage,
132
140
  };
@@ -0,0 +1,13 @@
1
+ import { BookPackageDto } from '@escapenavigator/types/dist/packages/book-package.dto';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ type ParamsData = {
4
+ id: number;
5
+ data: BookPackageDto;
6
+ };
7
+ type ResponseData = {
8
+ id: number;
9
+ code: string;
10
+ total: number;
11
+ };
12
+ export declare const bookPackage: ApiMethodDeclaration<ParamsData, ResponseData>;
13
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bookPackage = void 0;
4
+ var bookPackage = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/openapi/packages/".concat(id, "/book"),
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.bookPackage = bookPackage;
@@ -0,0 +1,8 @@
1
+ import { PackageResponseObject } from '@escapenavigator/types/dist/packages/package.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ type ParamsData = {
4
+ date?: string;
5
+ } | void;
6
+ type ResponseData = PackageResponseObject[];
7
+ export declare const listPackages: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listPackages = void 0;
4
+ var listPackages = function (params) { return ({
5
+ url: '/openapi/packages',
6
+ method: 'GET',
7
+ params: params || undefined,
8
+ }); };
9
+ exports.listPackages = listPackages;
@@ -0,0 +1,9 @@
1
+ import { PackageAvailabilityQueryDto } from '@escapenavigator/types/dist/packages/package-availability.dto';
2
+ import { PackageAvailabilityRO } from '@escapenavigator/types/dist/packages/package-availability.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ type ParamsData = {
5
+ id: number;
6
+ } & PackageAvailabilityQueryDto;
7
+ type ResponseData = PackageAvailabilityRO;
8
+ export declare const packageAvailability: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,23 @@
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.packageAvailability = void 0;
15
+ var packageAvailability = function (_a) {
16
+ var id = _a.id, params = __rest(_a, ["id"]);
17
+ return ({
18
+ url: "/openapi/packages/".concat(id, "/availability"),
19
+ method: 'GET',
20
+ params: params,
21
+ });
22
+ };
23
+ exports.packageAvailability = packageAvailability;
@@ -0,0 +1,8 @@
1
+ import { PackageResponseObject } from '@escapenavigator/types/dist/packages/package.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ type ParamsData = {
4
+ questroomId: number;
5
+ };
6
+ type ResponseData = PackageResponseObject[];
7
+ export declare const packagesByQuestroom: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.packagesByQuestroom = void 0;
4
+ var packagesByQuestroom = function (params) { return ({
5
+ url: '/openapi/packages/by-questroom',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.packagesByQuestroom = packagesByQuestroom;
@@ -0,0 +1,9 @@
1
+ import { PackageAvailabilityQueryDto } from '@escapenavigator/types/dist/packages/package-availability.dto';
2
+ import { PackageAvailabilityRO } from '@escapenavigator/types/dist/packages/package-availability.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ type ParamsData = {
5
+ id: number;
6
+ } & PackageAvailabilityQueryDto;
7
+ type ResponseData = PackageAvailabilityRO;
8
+ export declare const availability: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,23 @@
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.availability = void 0;
15
+ var availability = function (_a) {
16
+ var id = _a.id, params = __rest(_a, ["id"]);
17
+ return ({
18
+ url: "/packages/".concat(id, "/availability"),
19
+ method: 'GET',
20
+ params: params,
21
+ });
22
+ };
23
+ exports.availability = availability;
@@ -0,0 +1,13 @@
1
+ import { BookPackageDto } from '@escapenavigator/types/dist/packages/book-package.dto';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = {
4
+ id: number;
5
+ data: BookPackageDto;
6
+ };
7
+ type ResponseData = {
8
+ id: number;
9
+ code: string;
10
+ total: number;
11
+ };
12
+ export declare const book: ApiMethodDeclaration<ParamsData, ResponseData>;
13
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.book = void 0;
4
+ var book = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/packages/".concat(id, "/book"),
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.book = book;
@@ -1,3 +1,5 @@
1
+ import { availability } from './availability';
2
+ import { book } from './book';
1
3
  import { create } from './create';
2
4
  import { getOne } from './get-one';
3
5
  import { query } from './query';
@@ -9,6 +11,8 @@ type ApiDeclaration = {
9
11
  query: typeof query;
10
12
  remove: typeof remove;
11
13
  update: typeof update;
14
+ availability: typeof availability;
15
+ book: typeof book;
12
16
  };
13
17
  export declare const packagesApiDeclaration: ApiDeclaration;
14
18
  export {};
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packagesApiDeclaration = void 0;
4
+ var availability_1 = require("./availability");
5
+ var book_1 = require("./book");
4
6
  var create_1 = require("./create");
5
7
  var get_one_1 = require("./get-one");
6
8
  var query_1 = require("./query");
@@ -12,4 +14,6 @@ exports.packagesApiDeclaration = {
12
14
  query: query_1.query,
13
15
  remove: remove_1.remove,
14
16
  update: update_1.update,
17
+ availability: availability_1.availability,
18
+ book: book_1.book,
15
19
  };
@@ -1,8 +1,7 @@
1
1
  import { PackageResponseObject } from '@escapenavigator/types/dist/packages/package.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
- type ParamsData = {
4
- id: number;
5
- };
3
+ /** ID пакета */
4
+ type ParamsData = number;
6
5
  type ResponseData = PackageResponseObject;
7
6
  export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
8
7
  export {};
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.remove = void 0;
4
- var remove = function (_a) {
5
- var id = _a.id;
6
- return ({
7
- url: "/packages/".concat(id),
8
- method: 'DELETE',
9
- });
10
- };
4
+ var remove = function (id) { return ({
5
+ url: "/packages/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
11
8
  exports.remove = remove;
@@ -0,0 +1,10 @@
1
+ import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ type ParamsData = undefined;
4
+ type ResponseData = ProfileRO;
5
+ /**
6
+ * Click-wrap акцепт оферты (Nutzungsbedingungen + AVV) владельцем аккаунта.
7
+ * Бэк пишет append-only лог акцепта и проставляет `termsAcceptedAt`.
8
+ */
9
+ export declare const acceptTerms: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.acceptTerms = void 0;
4
+ /**
5
+ * Click-wrap акцепт оферты (Nutzungsbedingungen + AVV) владельцем аккаунта.
6
+ * Бэк пишет append-only лог акцепта и проставляет `termsAcceptedAt`.
7
+ */
8
+ var acceptTerms = function () { return ({
9
+ url: '/profiles/accept-terms',
10
+ method: 'POST',
11
+ }); };
12
+ exports.acceptTerms = acceptTerms;
@@ -0,0 +1,6 @@
1
+ import { AdminProfileRO } from '@escapenavigator/types/dist/profile/admin-profile.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ type ParamsData = undefined;
4
+ type ResponseData = Partial<AdminProfileRO>[];
5
+ export declare const getProfilesWithoutNextAction: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProfilesWithoutNextAction = void 0;
4
+ var getProfilesWithoutNextAction = function () { return ({
5
+ url: '/profiles/sales/no-next-action',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getProfilesWithoutNextAction = getProfilesWithoutNextAction;
@@ -26,6 +26,7 @@ import { getContacts } from './contacts/get-contacts';
26
26
  import { removeContact } from './contacts/remove-contact';
27
27
  import { updateContact } from './contacts/update-contact';
28
28
  import { create } from './create';
29
+ import { acceptTerms } from './current/accept-terms';
29
30
  import { current } from './current/current';
30
31
  import { finalizeCurrent } from './current/finalize-current';
31
32
  import { getCurrentCommission } from './current/get-current-commission';
@@ -52,6 +53,7 @@ import { updateEmailSender } from './email-senders/update-email-sender';
52
53
  import { getBySlugForVerify } from './get-by-slug-for-verify';
53
54
  import { getInactiveCompaniesShort } from './get-inactive-companies-short';
54
55
  import { getOnboardingSteps } from './get-onboarding-steps';
56
+ import { getProfilesWithoutNextAction } from './get-profiles-without-next-action';
55
57
  import { getOne } from './get-one';
56
58
  import { cancelMarketingEmailCampaign } from './marketing-email-campaign/cancel-marketing-email-campaign';
57
59
  import { createMarketingEmailCampaign } from './marketing-email-campaign/create-marketing-email-campaign';
@@ -204,6 +206,7 @@ type ApiDeclaration = {
204
206
  updateStep: typeof updateStep;
205
207
  updatePartnerProgram: typeof updatePartnerProgram;
206
208
  getInactiveCompaniesShort: typeof getInactiveCompaniesShort;
209
+ getProfilesWithoutNextAction: typeof getProfilesWithoutNextAction;
207
210
  finalizeCurrent: typeof finalizeCurrent;
208
211
  updateCurrent: typeof updateCurrent;
209
212
  updateBookingFields: typeof updateBookingFields;
@@ -214,6 +217,7 @@ type ApiDeclaration = {
214
217
  query: typeof query;
215
218
  getOne: typeof getOne;
216
219
  current: typeof current;
220
+ acceptTerms: typeof acceptTerms;
217
221
  getCurrentCommission: typeof getCurrentCommission;
218
222
  getBySlugForVerify: typeof getBySlugForVerify;
219
223
  createSmtp: typeof createSmtp;
@@ -29,6 +29,7 @@ var get_contacts_1 = require("./contacts/get-contacts");
29
29
  var remove_contact_1 = require("./contacts/remove-contact");
30
30
  var update_contact_1 = require("./contacts/update-contact");
31
31
  var create_2 = require("./create");
32
+ var accept_terms_1 = require("./current/accept-terms");
32
33
  var current_1 = require("./current/current");
33
34
  var finalize_current_1 = require("./current/finalize-current");
34
35
  var get_current_commission_1 = require("./current/get-current-commission");
@@ -55,6 +56,7 @@ var update_email_sender_1 = require("./email-senders/update-email-sender");
55
56
  var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
56
57
  var get_inactive_companies_short_1 = require("./get-inactive-companies-short");
57
58
  var get_onboarding_steps_1 = require("./get-onboarding-steps");
59
+ var get_profiles_without_next_action_1 = require("./get-profiles-without-next-action");
58
60
  var get_one_1 = require("./get-one");
59
61
  var cancel_marketing_email_campaign_1 = require("./marketing-email-campaign/cancel-marketing-email-campaign");
60
62
  var create_marketing_email_campaign_1 = require("./marketing-email-campaign/create-marketing-email-campaign");
@@ -125,6 +127,7 @@ var get_1 = require("./widget-customization/get");
125
127
  var update_3 = require("./widget-customization/update");
126
128
  exports.profilesApiDeclaration = {
127
129
  getInactiveCompaniesShort: get_inactive_companies_short_1.getInactiveCompaniesShort,
130
+ getProfilesWithoutNextAction: get_profiles_without_next_action_1.getProfilesWithoutNextAction,
128
131
  updateNotificationChanel: update_1.updateNotificationChanel,
129
132
  deleteAction: delete_action_1.deleteAction,
130
133
  queryCalls: query_1.queryCalls,
@@ -244,6 +247,7 @@ exports.profilesApiDeclaration = {
244
247
  query: query_3.query,
245
248
  getOne: get_one_1.getOne,
246
249
  current: current_1.current,
250
+ acceptTerms: accept_terms_1.acceptTerms,
247
251
  getCurrentCommission: get_current_commission_1.getCurrentCommission,
248
252
  getBySlugForVerify: get_by_slug_for_verify_1.getBySlugForVerify,
249
253
  };
@@ -0,0 +1,9 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { BulkUpdateSlotsDto } from '@escapenavigator/types/dist/slot/bulk-update-slots.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ type ParamsData = {
5
+ data: BulkUpdateSlotsDto;
6
+ };
7
+ type ResponseData = SuccessRO;
8
+ export declare const bulkUpdate: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bulkUpdate = void 0;
4
+ var bulkUpdate = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/slots/bulk-update',
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.bulkUpdate = bulkUpdate;
@@ -1,5 +1,6 @@
1
1
  import { addOrRemoveBreak } from './add-or-remove-break';
2
2
  import { allDaySlots } from './all-day-slots';
3
+ import { bulkUpdate } from './bulk-update';
3
4
  import { calendarDay } from './calendar-day';
4
5
  import { calendarDaysWithOrder } from './calendar-days-with-orders';
5
6
  import { create } from './create';
@@ -13,6 +14,7 @@ import { updateSlot } from './update-slot';
13
14
  type ApiDeclaration = {
14
15
  calendarDaysWithOrder: typeof calendarDaysWithOrder;
15
16
  allDaySlots: typeof allDaySlots;
17
+ bulkUpdate: typeof bulkUpdate;
16
18
  forceRemoveHold: typeof forceRemoveHold;
17
19
  updateBreaks: typeof updateBreaks;
18
20
  calendarDay: typeof calendarDay;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.slotsApiDeclaration = void 0;
4
4
  var add_or_remove_break_1 = require("./add-or-remove-break");
5
5
  var all_day_slots_1 = require("./all-day-slots");
6
+ var bulk_update_1 = require("./bulk-update");
6
7
  var calendar_day_1 = require("./calendar-day");
7
8
  var calendar_days_with_orders_1 = require("./calendar-days-with-orders");
8
9
  var create_1 = require("./create");
@@ -15,6 +16,7 @@ var update_breaks_1 = require("./update-breaks");
15
16
  var update_slot_1 = require("./update-slot");
16
17
  exports.slotsApiDeclaration = {
17
18
  allDaySlots: all_day_slots_1.allDaySlots,
19
+ bulkUpdate: bulk_update_1.bulkUpdate,
18
20
  forceRemoveHold: force_remove_hold_1.forceRemoveHold,
19
21
  calendarDaysWithOrder: calendar_days_with_orders_1.calendarDaysWithOrder,
20
22
  updateSlot: update_slot_1.updateSlot,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,10 +12,10 @@
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && tsc --project tsconfig.json"
14
14
  },
15
- "gitHead": "fd5d63cf01b4dcde8e8938233e741e6113ed7865",
15
+ "gitHead": "c5d3da52ae3e82c63f099daf59730f2e374df66a",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^2.0.2",
18
- "@escapenavigator/utils": "^2.0.2",
17
+ "@escapenavigator/types": "^2.0.4",
18
+ "@escapenavigator/utils": "^2.0.4",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",