@escapenavigator/services 2.1.18 → 2.1.20

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;
@@ -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<{
@@ -97,6 +98,9 @@ declare const toggle: ApiMethodDeclaration<{
97
98
  id: number;
98
99
  status: IntegrationConnectionStatusEnum;
99
100
  }>;
101
+ declare const remove: ApiMethodDeclaration<number, {
102
+ ok: boolean;
103
+ }>;
100
104
  declare const createRequest: ApiMethodDeclaration<CreateIntegrationRequestDto, {
101
105
  id: number;
102
106
  status: IntegrationRequestStatusEnum;
@@ -158,11 +162,13 @@ declare const adminUpdateRequest: ApiMethodDeclaration<{
158
162
  type ApiDeclaration = {
159
163
  status: typeof status;
160
164
  catalog: typeof catalog;
165
+ connection: typeof connection;
161
166
  connect: typeof connect;
162
167
  resources: typeof resources;
163
168
  matchResource: typeof matchResource;
164
169
  recheck: typeof recheck;
165
170
  toggle: typeof toggle;
171
+ remove: typeof remove;
166
172
  createRequest: typeof createRequest;
167
173
  myRequests: typeof myRequests;
168
174
  pendingBookingRequests: typeof pendingBookingRequests;
@@ -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',
@@ -49,6 +53,10 @@ var toggle = function (_a) {
49
53
  data: { enabled: enabled },
50
54
  });
51
55
  };
56
+ var remove = function (connectionId) { return ({
57
+ url: "/integrations/".concat(connectionId),
58
+ method: 'DELETE',
59
+ }); };
52
60
  var createRequest = function (data) { return ({
53
61
  url: '/integrations/requests',
54
62
  method: 'POST',
@@ -123,11 +131,13 @@ var adminUpdateRequest = function (_a) {
123
131
  exports.integrationsV2ApiDeclaration = {
124
132
  status: status,
125
133
  catalog: catalog,
134
+ connection: connection,
126
135
  connect: connect,
127
136
  resources: resources,
128
137
  matchResource: matchResource,
129
138
  recheck: recheck,
130
139
  toggle: toggle,
140
+ remove: remove,
131
141
  createRequest: createRequest,
132
142
  myRequests: myRequests,
133
143
  pendingBookingRequests: pendingBookingRequests,
@@ -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;
@@ -54,7 +54,9 @@ import { getBySlugForVerify } from './get-by-slug-for-verify';
54
54
  import { getInactiveCompaniesShort } from './get-inactive-companies-short';
55
55
  import { getOnboardingSteps } from './get-onboarding-steps';
56
56
  import { getOne } from './get-one';
57
+ import { getExternalCrmQuestHealth } from './get-external-crm-quest-health';
57
58
  import { getPaidQuestroomsCount } from './get-paid-questrooms-count';
59
+ import { listExternalCrmQuests } from './list-external-crm-quests';
58
60
  import { getProfilesWithoutNextAction } from './get-profiles-without-next-action';
59
61
  import { getSalesBoard } from './get-sales-board';
60
62
  import { getSalesBoardColumn } from './get-sales-board-column';
@@ -221,6 +223,8 @@ type ApiDeclaration = {
221
223
  updateNavigatorCertificateProgram: typeof updateNavigatorCertificateProgram;
222
224
  getInactiveCompaniesShort: typeof getInactiveCompaniesShort;
223
225
  getPaidQuestroomsCount: typeof getPaidQuestroomsCount;
226
+ getExternalCrmQuestHealth: typeof getExternalCrmQuestHealth;
227
+ listExternalCrmQuests: typeof listExternalCrmQuests;
224
228
  getProfilesWithoutNextAction: typeof getProfilesWithoutNextAction;
225
229
  getSalesBoard: typeof getSalesBoard;
226
230
  getSalesBoardColumn: typeof getSalesBoardColumn;
@@ -57,7 +57,9 @@ var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
57
57
  var get_inactive_companies_short_1 = require("./get-inactive-companies-short");
58
58
  var get_onboarding_steps_1 = require("./get-onboarding-steps");
59
59
  var get_one_1 = require("./get-one");
60
+ var get_external_crm_quest_health_1 = require("./get-external-crm-quest-health");
60
61
  var get_paid_questrooms_count_1 = require("./get-paid-questrooms-count");
62
+ var list_external_crm_quests_1 = require("./list-external-crm-quests");
61
63
  var get_profiles_without_next_action_1 = require("./get-profiles-without-next-action");
62
64
  var get_sales_board_1 = require("./get-sales-board");
63
65
  var get_sales_board_column_1 = require("./get-sales-board-column");
@@ -141,6 +143,8 @@ var update_3 = require("./widget-customization/update");
141
143
  exports.profilesApiDeclaration = {
142
144
  getInactiveCompaniesShort: get_inactive_companies_short_1.getInactiveCompaniesShort,
143
145
  getPaidQuestroomsCount: get_paid_questrooms_count_1.getPaidQuestroomsCount,
146
+ getExternalCrmQuestHealth: get_external_crm_quest_health_1.getExternalCrmQuestHealth,
147
+ listExternalCrmQuests: list_external_crm_quests_1.listExternalCrmQuests,
144
148
  getProfilesWithoutNextAction: get_profiles_without_next_action_1.getProfilesWithoutNextAction,
145
149
  getSalesBoard: get_sales_board_1.getSalesBoard,
146
150
  getSalesBoardColumn: get_sales_board_column_1.getSalesBoardColumn,
@@ -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.18",
3
+ "version": "2.1.20",
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": "7631d0cb80dab71cb8aa84ca78b631568c9f1cc1",
15
+ "gitHead": "a75a26ab79572607871d7b9f6f0ae9c7ee4715dd",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^2.1.17",
18
- "@escapenavigator/utils": "^2.1.18",
17
+ "@escapenavigator/types": "^2.1.19",
18
+ "@escapenavigator/utils": "^2.1.20",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",