@escapenavigator/services 2.1.20 → 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.
@@ -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),
@@ -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,15 +47,15 @@ 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';
57
- import { getExternalCrmQuestHealth } from './get-external-crm-quest-health';
58
54
  import { getPaidQuestroomsCount } from './get-paid-questrooms-count';
59
- import { listExternalCrmQuests } from './list-external-crm-quests';
60
55
  import { getProfilesWithoutNextAction } from './get-profiles-without-next-action';
61
56
  import { getSalesBoard } from './get-sales-board';
62
57
  import { getSalesBoardColumn } from './get-sales-board-column';
58
+ import { listExternalCrmQuests } from './list-external-crm-quests';
63
59
  import { cancelMarketingEmailCampaign } from './marketing-email-campaign/cancel-marketing-email-campaign';
64
60
  import { createMarketingEmailCampaign } from './marketing-email-campaign/create-marketing-email-campaign';
65
61
  import { getMarketingEmailCampaign } from './marketing-email-campaign/get-marketing-email-campaign';
@@ -195,10 +191,6 @@ type ApiDeclaration = {
195
191
  updateProfileCrm: typeof updateProfileCrm;
196
192
  getOnboardingSteps: typeof getOnboardingSteps;
197
193
  updateCrmVerification: typeof updateCrmVerification;
198
- resyncBookeo: typeof resyncBookeo;
199
- getBookeoInfo: typeof getBookeoInfo;
200
- getBookeoIntegrationLink: typeof getBookeoIntegrationLink;
201
- getBookeoOrders: typeof getBookeoOrders;
202
194
  getProfileAgb: typeof getProfileAgb;
203
195
  getProfileAgbForOrderService: typeof getProfileAgbForOrderService;
204
196
  getProfileAgbBySlugForOrderService: typeof getProfileAgbBySlugForOrderService;
@@ -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,15 +50,15 @@ 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");
60
- var get_external_crm_quest_health_1 = require("./get-external-crm-quest-health");
61
57
  var get_paid_questrooms_count_1 = require("./get-paid-questrooms-count");
62
- var list_external_crm_quests_1 = require("./list-external-crm-quests");
63
58
  var get_profiles_without_next_action_1 = require("./get-profiles-without-next-action");
64
59
  var get_sales_board_1 = require("./get-sales-board");
65
60
  var get_sales_board_column_1 = require("./get-sales-board-column");
61
+ var list_external_crm_quests_1 = require("./list-external-crm-quests");
66
62
  var cancel_marketing_email_campaign_1 = require("./marketing-email-campaign/cancel-marketing-email-campaign");
67
63
  var create_marketing_email_campaign_1 = require("./marketing-email-campaign/create-marketing-email-campaign");
68
64
  var get_marketing_email_campaign_1 = require("./marketing-email-campaign/get-marketing-email-campaign");
@@ -266,10 +262,6 @@ exports.profilesApiDeclaration = {
266
262
  getProfileInvoices: get_profile_invoices_1.getProfileInvoices,
267
263
  createPaymentMethodSession: create_payment_method_session_1.createPaymentMethodSession,
268
264
  finalizeCurrent: finalize_current_1.finalizeCurrent,
269
- resyncBookeo: resync_bookeo_1.resyncBookeo,
270
- getBookeoOrders: get_bookeo_orders_1.getBookeoOrders,
271
- getBookeoInfo: get_bookeo_info_1.getBookeoInfo,
272
- getBookeoIntegrationLink: get_bookeo_integration_link_1.getBookeoIntegrationLink,
273
265
  create: create_2.create,
274
266
  remove: remove_2.remove,
275
267
  update: update_2.update,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "2.1.20",
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": "a75a26ab79572607871d7b9f6f0ae9c7ee4715dd",
15
+ "gitHead": "f6f2c87403526437c511f5d3d844ba86e839dc88",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^2.1.19",
18
- "@escapenavigator/utils": "^2.1.20",
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;