@escapenavigator/services 2.1.19 → 2.1.21

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.
@@ -32,6 +32,7 @@ import { getQuestroomChangePendingCount } from './questroom-change/get-pending-c
32
32
  import { updateChangeSetStatus } from './questroom-change/update-change-set-status';
33
33
  import { refillOrdersAndCertificatesAnalytics } from './refill-orders-certificates-analytics';
34
34
  import { remove } from './remove';
35
+ import { removeAggregatorOrder } from './remove-aggregator-order';
35
36
  import { retryAggregatorOrderBooking } from './retry-aggregator-order-booking';
36
37
  import { update } from './update';
37
38
  import { updateAggregatorOrder } from './update-aggregator-order';
@@ -47,6 +48,7 @@ type ApiDeclaration = {
47
48
  queryAggregatorOrders: typeof queryAggregatorOrders;
48
49
  updateAggregatorOrder: typeof updateAggregatorOrder;
49
50
  retryAggregatorOrderBooking: typeof retryAggregatorOrderBooking;
51
+ removeAggregatorOrder: typeof removeAggregatorOrder;
50
52
  loginByToken: typeof loginByToken;
51
53
  create: typeof create;
52
54
  query: typeof query;
@@ -35,6 +35,7 @@ var get_pending_count_1 = require("./questroom-change/get-pending-count");
35
35
  var update_change_set_status_1 = require("./questroom-change/update-change-set-status");
36
36
  var refill_orders_certificates_analytics_1 = require("./refill-orders-certificates-analytics");
37
37
  var remove_1 = require("./remove");
38
+ var remove_aggregator_order_1 = require("./remove-aggregator-order");
38
39
  var retry_aggregator_order_booking_1 = require("./retry-aggregator-order-booking");
39
40
  var update_1 = require("./update");
40
41
  var update_aggregator_order_1 = require("./update-aggregator-order");
@@ -50,6 +51,7 @@ exports.adminsApiDeclaration = {
50
51
  queryAggregatorOrders: query_aggregator_orders_1.queryAggregatorOrders,
51
52
  updateAggregatorOrder: update_aggregator_order_1.updateAggregatorOrder,
52
53
  retryAggregatorOrderBooking: retry_aggregator_order_booking_1.retryAggregatorOrderBooking,
54
+ removeAggregatorOrder: remove_aggregator_order_1.removeAggregatorOrder,
53
55
  loginByToken: login_by_token_1.loginByToken,
54
56
  login: login_1.login,
55
57
  update: update_1.update,
@@ -0,0 +1,6 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ type ParamsData = {
3
+ id: number;
4
+ };
5
+ export declare const removeAggregatorOrder: ApiMethodDeclaration<ParamsData, void>;
6
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeAggregatorOrder = void 0;
4
+ var removeAggregatorOrder = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/aggregator-orders/".concat(id),
8
+ method: 'DELETE',
9
+ });
10
+ };
11
+ exports.removeAggregatorOrder = removeAggregatorOrder;
@@ -62,7 +62,6 @@ import { orderUpsellngsApiDeclaration } from './order-upsellings-api';
62
62
  import { ordersApiDeclaration } from './orders-api';
63
63
  import { packagesApiDeclaration } from './packages-api';
64
64
  import { parseResultsApiDeclaration } from './parse-results-api';
65
- import { partnerSystemsApiDeclaration } from './partner-systems-api';
66
65
  import { partnersApiDeclaration } from './partners-api';
67
66
  import { playersApiDeclaration } from './players-api';
68
67
  import { productsApiDeclaration } from './products-api';
@@ -113,7 +112,6 @@ export type InitApiDeclaration = {
113
112
  aggregatorCompaniesApi: Api<typeof aggregatorCompaniesApiDeclaration>;
114
113
  aggregatorQuestsApi: Api<typeof aggregatorQuestsApiDeclaration>;
115
114
  integrationsV2Api: Api<typeof integrationsV2ApiDeclaration>;
116
- partnerSystemsApi: Api<typeof partnerSystemsApiDeclaration>;
117
115
  cronParserApi: Api<typeof cronParserApiDeclaration>;
118
116
  slotRulesApi: Api<typeof slotRulesApi>;
119
117
  translationsApi: Api<typeof translationsApiDeclaration>;
@@ -65,7 +65,6 @@ var order_upsellings_api_1 = require("./order-upsellings-api");
65
65
  var orders_api_1 = require("./orders-api");
66
66
  var packages_api_1 = require("./packages-api");
67
67
  var parse_results_api_1 = require("./parse-results-api");
68
- var partner_systems_api_1 = require("./partner-systems-api");
69
68
  var partners_api_1 = require("./partners-api");
70
69
  var players_api_1 = require("./players-api");
71
70
  var products_api_1 = require("./products-api");
@@ -119,7 +118,6 @@ var initClientApi = function (url, clientOptions) { return ({
119
118
  aggregatorCompaniesApi: (0, _1.initApi)(aggregator_companies_api_1.aggregatorCompaniesApiDeclaration, url, clientOptions),
120
119
  aggregatorQuestsApi: (0, _1.initApi)(aggregator_quests_api_1.aggregatorQuestsApiDeclaration, url, clientOptions),
121
120
  integrationsV2Api: (0, _1.initApi)(integrations_v2_api_1.integrationsV2ApiDeclaration, url, clientOptions),
122
- partnerSystemsApi: (0, _1.initApi)(partner_systems_api_1.partnerSystemsApiDeclaration, url, clientOptions),
123
121
  cronParserApi: (0, _1.initApi)(cron_parser_api_1.cronParserApiDeclaration, url, clientOptions),
124
122
  slotRulesApi: (0, _1.initApi)(slot_rules_api_1.slotRulesApi, url, clientOptions),
125
123
  openapiWidget: (0, _1.initApi)(openapi_widget_api_1.openapiWidgetApiDeclaration, url, clientOptions),
@@ -3,7 +3,7 @@ import { IntegrationBookingModeEnum } from '@escapenavigator/types/dist/integrat
3
3
  import { ConnectIntegrationDto, CreateIntegrationRequestDto } from '@escapenavigator/types/dist/integrations/connect-integration.dto';
4
4
  import { IntegrationConnectionStatusEnum } from '@escapenavigator/types/dist/integrations/connection-status.enum';
5
5
  import { CredentialField } from '@escapenavigator/types/dist/integrations/credential-field';
6
- import { CrmIntegrationStatus } from '@escapenavigator/types/dist/integrations/crm-integration-status.ro';
6
+ import { CrmIntegrationConnectionEdit, CrmIntegrationStatus } from '@escapenavigator/types/dist/integrations/crm-integration-status.ro';
7
7
  import { IntegrationRequestStatusEnum } from '@escapenavigator/types/dist/integrations/integration-request-status.enum';
8
8
  import { PendingBookingRequest } from '@escapenavigator/types/dist/integrations/pending-booking-request.ro';
9
9
  import { IntegrationProviderCodeEnum } from '@escapenavigator/types/dist/integrations/provider-code.enum';
@@ -76,6 +76,7 @@ export type MyIntegrationRequest = {
76
76
  };
77
77
  declare const status: ApiMethodDeclaration<void, CrmIntegrationStatus[]>;
78
78
  declare const catalog: ApiMethodDeclaration<void, CatalogItem[]>;
79
+ declare const connection: ApiMethodDeclaration<number, CrmIntegrationConnectionEdit>;
79
80
  declare const connect: ApiMethodDeclaration<ConnectIntegrationDto, ConnectResult>;
80
81
  declare const resources: ApiMethodDeclaration<number, IntegrationResourcesResult>;
81
82
  declare const matchResource: ApiMethodDeclaration<{
@@ -161,6 +162,7 @@ declare const adminUpdateRequest: ApiMethodDeclaration<{
161
162
  type ApiDeclaration = {
162
163
  status: typeof status;
163
164
  catalog: typeof catalog;
165
+ connection: typeof connection;
164
166
  connect: typeof connect;
165
167
  resources: typeof resources;
166
168
  matchResource: typeof matchResource;
@@ -20,6 +20,10 @@ var catalog = function () { return ({
20
20
  url: '/integrations/catalog',
21
21
  method: 'GET',
22
22
  }); };
23
+ var connection = function (connectionId) { return ({
24
+ url: "/integrations/".concat(connectionId),
25
+ method: 'GET',
26
+ }); };
23
27
  var connect = function (data) { return ({
24
28
  url: '/integrations',
25
29
  method: 'POST',
@@ -127,6 +131,7 @@ var adminUpdateRequest = function (_a) {
127
131
  exports.integrationsV2ApiDeclaration = {
128
132
  status: status,
129
133
  catalog: catalog,
134
+ connection: connection,
130
135
  connect: connect,
131
136
  resources: resources,
132
137
  matchResource: matchResource,
@@ -0,0 +1,7 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ export type ExternalCrmQuestHealth = {
3
+ ok: number;
4
+ error: number;
5
+ companies: number;
6
+ };
7
+ export declare const getExternalCrmQuestHealth: ApiMethodDeclaration<void, ExternalCrmQuestHealth>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getExternalCrmQuestHealth = void 0;
4
+ var getExternalCrmQuestHealth = function () { return ({
5
+ url: '/profiles/external-crm-quest-health',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getExternalCrmQuestHealth = getExternalCrmQuestHealth;
@@ -16,10 +16,6 @@ import { adjustBalance } from './balance/adjust-balance';
16
16
  import { queryBalanceItems } from './balance/query-balance-items';
17
17
  import { queryBalancePayments } from './balance/query-balance-payments';
18
18
  import { queryProfileBalancePayments } from './balance/query-profile-balance-payments';
19
- import { getBookeoInfo } from './bookeo/get-bookeo-info';
20
- import { getBookeoIntegrationLink } from './bookeo/get-bookeo-integration-link';
21
- import { getBookeoOrders } from './bookeo/get-bookeo-orders';
22
- import { resyncBookeo } from './bookeo/resync-bookeo';
23
19
  import { queryCalls } from './calls/query';
24
20
  import { createContact } from './contacts/create-contact';
25
21
  import { getContacts } from './contacts/get-contacts';
@@ -51,6 +47,7 @@ import { removeEmailSender } from './email-senders/remove-email-sender';
51
47
  import { setDefaultEmailSender } from './email-senders/set-default-email-sender';
52
48
  import { updateEmailSender } from './email-senders/update-email-sender';
53
49
  import { getBySlugForVerify } from './get-by-slug-for-verify';
50
+ import { getExternalCrmQuestHealth } from './get-external-crm-quest-health';
54
51
  import { getInactiveCompaniesShort } from './get-inactive-companies-short';
55
52
  import { getOnboardingSteps } from './get-onboarding-steps';
56
53
  import { getOne } from './get-one';
@@ -58,6 +55,7 @@ import { getPaidQuestroomsCount } from './get-paid-questrooms-count';
58
55
  import { getProfilesWithoutNextAction } from './get-profiles-without-next-action';
59
56
  import { getSalesBoard } from './get-sales-board';
60
57
  import { getSalesBoardColumn } from './get-sales-board-column';
58
+ import { listExternalCrmQuests } from './list-external-crm-quests';
61
59
  import { cancelMarketingEmailCampaign } from './marketing-email-campaign/cancel-marketing-email-campaign';
62
60
  import { createMarketingEmailCampaign } from './marketing-email-campaign/create-marketing-email-campaign';
63
61
  import { getMarketingEmailCampaign } from './marketing-email-campaign/get-marketing-email-campaign';
@@ -193,10 +191,6 @@ type ApiDeclaration = {
193
191
  updateProfileCrm: typeof updateProfileCrm;
194
192
  getOnboardingSteps: typeof getOnboardingSteps;
195
193
  updateCrmVerification: typeof updateCrmVerification;
196
- resyncBookeo: typeof resyncBookeo;
197
- getBookeoInfo: typeof getBookeoInfo;
198
- getBookeoIntegrationLink: typeof getBookeoIntegrationLink;
199
- getBookeoOrders: typeof getBookeoOrders;
200
194
  getProfileAgb: typeof getProfileAgb;
201
195
  getProfileAgbForOrderService: typeof getProfileAgbForOrderService;
202
196
  getProfileAgbBySlugForOrderService: typeof getProfileAgbBySlugForOrderService;
@@ -221,6 +215,8 @@ type ApiDeclaration = {
221
215
  updateNavigatorCertificateProgram: typeof updateNavigatorCertificateProgram;
222
216
  getInactiveCompaniesShort: typeof getInactiveCompaniesShort;
223
217
  getPaidQuestroomsCount: typeof getPaidQuestroomsCount;
218
+ getExternalCrmQuestHealth: typeof getExternalCrmQuestHealth;
219
+ listExternalCrmQuests: typeof listExternalCrmQuests;
224
220
  getProfilesWithoutNextAction: typeof getProfilesWithoutNextAction;
225
221
  getSalesBoard: typeof getSalesBoard;
226
222
  getSalesBoardColumn: typeof getSalesBoardColumn;
@@ -19,10 +19,6 @@ var adjust_balance_1 = require("./balance/adjust-balance");
19
19
  var query_balance_items_1 = require("./balance/query-balance-items");
20
20
  var query_balance_payments_1 = require("./balance/query-balance-payments");
21
21
  var query_profile_balance_payments_1 = require("./balance/query-profile-balance-payments");
22
- var get_bookeo_info_1 = require("./bookeo/get-bookeo-info");
23
- var get_bookeo_integration_link_1 = require("./bookeo/get-bookeo-integration-link");
24
- var get_bookeo_orders_1 = require("./bookeo/get-bookeo-orders");
25
- var resync_bookeo_1 = require("./bookeo/resync-bookeo");
26
22
  var query_1 = require("./calls/query");
27
23
  var create_contact_1 = require("./contacts/create-contact");
28
24
  var get_contacts_1 = require("./contacts/get-contacts");
@@ -54,6 +50,7 @@ var remove_email_sender_1 = require("./email-senders/remove-email-sender");
54
50
  var set_default_email_sender_1 = require("./email-senders/set-default-email-sender");
55
51
  var update_email_sender_1 = require("./email-senders/update-email-sender");
56
52
  var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
53
+ var get_external_crm_quest_health_1 = require("./get-external-crm-quest-health");
57
54
  var get_inactive_companies_short_1 = require("./get-inactive-companies-short");
58
55
  var get_onboarding_steps_1 = require("./get-onboarding-steps");
59
56
  var get_one_1 = require("./get-one");
@@ -61,6 +58,7 @@ var get_paid_questrooms_count_1 = require("./get-paid-questrooms-count");
61
58
  var get_profiles_without_next_action_1 = require("./get-profiles-without-next-action");
62
59
  var get_sales_board_1 = require("./get-sales-board");
63
60
  var get_sales_board_column_1 = require("./get-sales-board-column");
61
+ var list_external_crm_quests_1 = require("./list-external-crm-quests");
64
62
  var cancel_marketing_email_campaign_1 = require("./marketing-email-campaign/cancel-marketing-email-campaign");
65
63
  var create_marketing_email_campaign_1 = require("./marketing-email-campaign/create-marketing-email-campaign");
66
64
  var get_marketing_email_campaign_1 = require("./marketing-email-campaign/get-marketing-email-campaign");
@@ -141,6 +139,8 @@ var update_3 = require("./widget-customization/update");
141
139
  exports.profilesApiDeclaration = {
142
140
  getInactiveCompaniesShort: get_inactive_companies_short_1.getInactiveCompaniesShort,
143
141
  getPaidQuestroomsCount: get_paid_questrooms_count_1.getPaidQuestroomsCount,
142
+ getExternalCrmQuestHealth: get_external_crm_quest_health_1.getExternalCrmQuestHealth,
143
+ listExternalCrmQuests: list_external_crm_quests_1.listExternalCrmQuests,
144
144
  getProfilesWithoutNextAction: get_profiles_without_next_action_1.getProfilesWithoutNextAction,
145
145
  getSalesBoard: get_sales_board_1.getSalesBoard,
146
146
  getSalesBoardColumn: get_sales_board_column_1.getSalesBoardColumn,
@@ -262,10 +262,6 @@ exports.profilesApiDeclaration = {
262
262
  getProfileInvoices: get_profile_invoices_1.getProfileInvoices,
263
263
  createPaymentMethodSession: create_payment_method_session_1.createPaymentMethodSession,
264
264
  finalizeCurrent: finalize_current_1.finalizeCurrent,
265
- resyncBookeo: resync_bookeo_1.resyncBookeo,
266
- getBookeoOrders: get_bookeo_orders_1.getBookeoOrders,
267
- getBookeoInfo: get_bookeo_info_1.getBookeoInfo,
268
- getBookeoIntegrationLink: get_bookeo_integration_link_1.getBookeoIntegrationLink,
269
265
  create: create_2.create,
270
266
  remove: remove_2.remove,
271
267
  update: update_2.update,
@@ -0,0 +1,20 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ export type ExternalCrmQuestRow = {
3
+ id: number;
4
+ profileId: number;
5
+ profileTitle: string;
6
+ title: string;
7
+ integrationType: string;
8
+ error: boolean;
9
+ };
10
+ export type ExternalCrmQuestsPage = {
11
+ items: ExternalCrmQuestRow[];
12
+ total: number;
13
+ page: number;
14
+ limit: number;
15
+ };
16
+ export declare const listExternalCrmQuests: ApiMethodDeclaration<{
17
+ page?: number;
18
+ limit?: number;
19
+ onlyErrors?: boolean;
20
+ }, ExternalCrmQuestsPage>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listExternalCrmQuests = void 0;
4
+ var listExternalCrmQuests = function (params) { return ({
5
+ url: '/profiles/external-crm-quests',
6
+ method: 'GET',
7
+ params: {
8
+ page: (params === null || params === void 0 ? void 0 : params.page) || 1,
9
+ limit: (params === null || params === void 0 ? void 0 : params.limit) || 20,
10
+ onlyErrors: (params === null || params === void 0 ? void 0 : params.onlyErrors) ? 'true' : undefined,
11
+ },
12
+ }); };
13
+ exports.listExternalCrmQuests = listExternalCrmQuests;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "2.1.19",
3
+ "version": "2.1.21",
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": "acba2e6aea71867d7e53d75398262592238882f6",
15
+ "gitHead": "f6f2c87403526437c511f5d3d844ba86e839dc88",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^2.1.18",
18
- "@escapenavigator/utils": "^2.1.19",
17
+ "@escapenavigator/types": "^2.1.20",
18
+ "@escapenavigator/utils": "^2.1.21",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",
@@ -1,132 +0,0 @@
1
- import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
2
- import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
3
- import { ApiMethodDeclaration } from '..';
4
- export type PartnerSystemItem = {
5
- id: number;
6
- name: string;
7
- baseUrl: string;
8
- token: string;
9
- active: boolean;
10
- lastSyncAt?: string;
11
- lastSyncStats?: Record<string, number>;
12
- errorStats: Record<string, number>;
13
- attractionsCount?: number;
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- export type PartnerAttractionItem = {
18
- id: number;
19
- partnerSystemId: number;
20
- externalId: string;
21
- externalProfileId?: string;
22
- questroomId?: number;
23
- questroom?: {
24
- id: number;
25
- title: string;
26
- profileId: number;
27
- };
28
- matchConfidence?: string;
29
- matchEvidence?: {
30
- rule: string;
31
- score?: number;
32
- runnerUp?: string;
33
- note?: string;
34
- decidedAt: string;
35
- decidedBy: string;
36
- };
37
- status: string;
38
- title: string;
39
- slug?: string;
40
- photo?: string;
41
- type?: string;
42
- description?: string;
43
- playersMin?: number;
44
- playersMax?: number;
45
- address?: string;
46
- lat?: number;
47
- lng?: number;
48
- phone?: string;
49
- timeZone?: string;
50
- firstSeenAt?: string;
51
- lastSeenAt?: string;
52
- createdAt: string;
53
- updatedAt: string;
54
- };
55
- export type PartnerSyncStats = {
56
- processed: number;
57
- created: number;
58
- updated: number;
59
- disappeared: number;
60
- autoLinked: number;
61
- };
62
- export type PartnerAutolinkResult = {
63
- summary: Record<string, number>;
64
- results: Array<{
65
- attractionId: number;
66
- title: string;
67
- action: string;
68
- rule?: string;
69
- score?: number;
70
- questroomId?: number;
71
- questroomTitle?: string;
72
- note?: string;
73
- }>;
74
- };
75
- declare const query: ApiMethodDeclaration<undefined, PartnerSystemItem[]>;
76
- declare const create: ApiMethodDeclaration<{
77
- name: string;
78
- baseUrl: string;
79
- token: string;
80
- active?: boolean;
81
- }, PartnerSystemItem>;
82
- declare const update: ApiMethodDeclaration<{
83
- id: number;
84
- data: {
85
- name?: string;
86
- baseUrl?: string;
87
- token?: string;
88
- active?: boolean;
89
- };
90
- }, PartnerSystemItem>;
91
- declare const remove: ApiMethodDeclaration<{
92
- id: number;
93
- }, {
94
- success: boolean;
95
- }>;
96
- declare const test: ApiMethodDeclaration<{
97
- id: number;
98
- }, {
99
- success: boolean;
100
- attractions: number;
101
- message?: string;
102
- }>;
103
- declare const sync: ApiMethodDeclaration<{
104
- id: number;
105
- }, PartnerSyncStats>;
106
- declare const autolink: ApiMethodDeclaration<{
107
- id: number;
108
- dryRun?: boolean;
109
- }, PartnerAutolinkResult>;
110
- declare const attractions: ApiMethodDeclaration<QueryDto & {
111
- id: number;
112
- }, QueryRO<PartnerAttractionItem>>;
113
- declare const updateAttraction: ApiMethodDeclaration<{
114
- id: number;
115
- data: {
116
- questroomId?: number | null;
117
- status?: string;
118
- };
119
- }, PartnerAttractionItem>;
120
- type ApiDeclaration = {
121
- query: typeof query;
122
- create: typeof create;
123
- update: typeof update;
124
- remove: typeof remove;
125
- test: typeof test;
126
- sync: typeof sync;
127
- autolink: typeof autolink;
128
- attractions: typeof attractions;
129
- updateAttraction: typeof updateAttraction;
130
- };
131
- export declare const partnerSystemsApiDeclaration: ApiDeclaration;
132
- export {};
@@ -1,87 +0,0 @@
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.partnerSystemsApiDeclaration = void 0;
15
- var query = function () { return ({
16
- url: '/partner-systems',
17
- method: 'GET',
18
- }); };
19
- var create = function (data) { return ({
20
- url: '/partner-systems',
21
- method: 'POST',
22
- data: data,
23
- }); };
24
- var update = function (_a) {
25
- var id = _a.id, data = _a.data;
26
- return ({
27
- url: "/partner-systems/".concat(id),
28
- method: 'PATCH',
29
- data: data,
30
- });
31
- };
32
- var remove = function (_a) {
33
- var id = _a.id;
34
- return ({
35
- url: "/partner-systems/".concat(id),
36
- method: 'DELETE',
37
- });
38
- };
39
- var test = function (_a) {
40
- var id = _a.id;
41
- return ({
42
- url: "/partner-systems/".concat(id, "/test"),
43
- method: 'POST',
44
- });
45
- };
46
- var sync = function (_a) {
47
- var id = _a.id;
48
- return ({
49
- url: "/partner-systems/".concat(id, "/sync"),
50
- method: 'POST',
51
- });
52
- };
53
- var autolink = function (_a) {
54
- var id = _a.id, dryRun = _a.dryRun;
55
- return ({
56
- url: "/partner-systems/".concat(id, "/autolink"),
57
- method: 'POST',
58
- params: dryRun ? { dryRun: 'true' } : undefined,
59
- });
60
- };
61
- var attractions = function (_a) {
62
- var id = _a.id, params = __rest(_a, ["id"]);
63
- return ({
64
- url: "/partner-systems/".concat(id, "/attractions"),
65
- method: 'GET',
66
- params: params,
67
- });
68
- };
69
- var updateAttraction = function (_a) {
70
- var id = _a.id, data = _a.data;
71
- return ({
72
- url: "/partner-systems/attractions/".concat(id),
73
- method: 'PATCH',
74
- data: data,
75
- });
76
- };
77
- exports.partnerSystemsApiDeclaration = {
78
- query: query,
79
- create: create,
80
- update: update,
81
- remove: remove,
82
- test: test,
83
- sync: sync,
84
- autolink: autolink,
85
- attractions: attractions,
86
- updateAttraction: updateAttraction,
87
- };
@@ -1,6 +0,0 @@
1
- import { BookeoInfoRO } from '@escapenavigator/types/dist/bookeo/bookeo-info.ro';
2
- import { ApiMethodDeclaration } from '../..';
3
- type ParamsData = undefined;
4
- type ResponseData = BookeoInfoRO;
5
- export declare const getBookeoInfo: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBookeoInfo = void 0;
4
- var getBookeoInfo = function () { return ({
5
- url: '/bookeo/info',
6
- method: 'GET',
7
- }); };
8
- exports.getBookeoInfo = getBookeoInfo;
@@ -1,5 +0,0 @@
1
- import { ApiMethodDeclaration } from '../..';
2
- type ParamsData = undefined;
3
- type ResponseData = string;
4
- export declare const getBookeoIntegrationLink: ApiMethodDeclaration<ParamsData, ResponseData>;
5
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBookeoIntegrationLink = void 0;
4
- var getBookeoIntegrationLink = function () { return ({
5
- url: '/bookeo/integration-link',
6
- method: 'GET',
7
- }); };
8
- exports.getBookeoIntegrationLink = getBookeoIntegrationLink;
@@ -1,8 +0,0 @@
1
- import { BookeoOrderRO } from '@escapenavigator/types/dist/bookeo/bookeo-order.ro';
2
- import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
3
- import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
4
- import { ApiMethodDeclaration } from '../..';
5
- type ParamsData = QueryDto;
6
- type ResponseData = QueryRO<BookeoOrderRO>;
7
- export declare const getBookeoOrders: ApiMethodDeclaration<ParamsData, ResponseData>;
8
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBookeoOrders = void 0;
4
- var getBookeoOrders = function (params) { return ({
5
- url: '/bookeo-orders',
6
- method: 'GET',
7
- params: params,
8
- }); };
9
- exports.getBookeoOrders = getBookeoOrders;
@@ -1,6 +0,0 @@
1
- import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
- import { ApiMethodDeclaration } from '../..';
3
- type ParamsData = undefined;
4
- type ResponseData = SuccessRO;
5
- export declare const resyncBookeo: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resyncBookeo = void 0;
4
- var resyncBookeo = function () { return ({
5
- url: '/bookeo/resync',
6
- method: 'GET',
7
- }); };
8
- exports.resyncBookeo = resyncBookeo;