@escapenavigator/services 1.6.92 → 1.6.94

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.
@@ -1,9 +1,9 @@
1
- import { CreateProfileActionDto } from '@escapenavigator/types/dist/profile/action/create-profile-action.dto';
2
- import { ProfileActionDto } from '@escapenavigator/types/dist/profile/action/profile-action.dto';
1
+ import { CreateProfileActionRO } from '@escapenavigator/types/dist/profile/action/create-profile-action.dto';
2
+ import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.dto';
3
3
  import { ApiMethodDeclaration } from '../..';
4
4
  declare type ParamsData = {
5
- data: CreateProfileActionDto;
5
+ data: CreateProfileActionRO;
6
6
  };
7
- declare type ResponseData = ProfileActionDto;
7
+ declare type ResponseData = ProfileActionRO;
8
8
  export declare const createAction: ApiMethodDeclaration<ParamsData, ResponseData>;
9
9
  export {};
@@ -1,9 +1,9 @@
1
- import { ProfileActionDto } from '@escapenavigator/types/dist/profile/action/profile-action.dto';
1
+ import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.dto';
2
2
  import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
3
3
  import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
4
4
  import { ApiMethodDeclaration } from '../..';
5
5
  /** Поиск по названию организации и контактному телефону */
6
6
  declare type ParamsData = QueryDto;
7
- declare type ResponseData = QueryRO<ProfileActionDto>;
7
+ declare type ResponseData = QueryRO<ProfileActionRO>;
8
8
  export declare const queryActions: ApiMethodDeclaration<ParamsData, ResponseData>;
9
9
  export {};
@@ -0,0 +1,6 @@
1
+ import { ProfileApiKeyRO } from '@escapenavigator/types/dist/profile/api-key/profile-api-key.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = ProfileApiKeyRO;
5
+ export declare const createApiKey: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createApiKey = void 0;
4
+ var createApiKey = function () { return ({
5
+ url: '/profile-api-keys',
6
+ method: 'POST',
7
+ }); };
8
+ exports.createApiKey = createApiKey;
@@ -0,0 +1,6 @@
1
+ import { ProfileApiKeyRO } from '@escapenavigator/types/dist/profile/api-key/profile-api-key.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = ProfileApiKeyRO[];
5
+ export declare const getApiKeys: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getApiKeys = void 0;
4
+ var getApiKeys = function () { return ({
5
+ url: '/profile-api-keys',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getApiKeys = getApiKeys;
@@ -0,0 +1,6 @@
1
+ import { ProfileApiKeyRO } from '@escapenavigator/types/dist/profile/api-key/profile-api-key.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = number;
4
+ declare type ResponseData = ProfileApiKeyRO;
5
+ export declare const removeApiKey: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeApiKey = void 0;
4
+ var removeApiKey = function (id) { return ({
5
+ url: "/profile-api-keys/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeApiKey = removeApiKey;
@@ -5,6 +5,9 @@ import { queryActivity } from './activity/query-activity';
5
5
  import { getProfileAgb } from './agb/get-profile-agb';
6
6
  import { getProfileAgbForOrderService } from './agb/get-profile-agb-for-order-service';
7
7
  import { updateProfileAgb } from './agb/update-profile-agb';
8
+ import { createApiKey } from './api-keys/create-api-key';
9
+ import { getApiKeys } from './api-keys/get-api-keys';
10
+ import { removeApiKey } from './api-keys/remove-api-key';
8
11
  import { getBookeoInfo } from './bookeo/get-bookeo-info';
9
12
  import { getBookeoIntegrationLink } from './bookeo/get-bookeo-integration-link';
10
13
  import { getBookeoOrders } from './bookeo/get-bookeo-orders';
@@ -40,6 +43,9 @@ import { updateCrmVerification } from './update-crm-verification';
40
43
  import { updatePartnerProgram } from './update-partner-program';
41
44
  import { updateStep } from './update-step';
42
45
  declare type ApiDeclaration = {
46
+ createApiKey: typeof createApiKey;
47
+ removeApiKey: typeof removeApiKey;
48
+ getApiKeys: typeof getApiKeys;
43
49
  createActivity: typeof createActivity;
44
50
  queryActivity: typeof queryActivity;
45
51
  getWidgetCustomization: typeof getWidgetCustomization;
@@ -8,6 +8,9 @@ var query_activity_1 = require("./activity/query-activity");
8
8
  var get_profile_agb_1 = require("./agb/get-profile-agb");
9
9
  var get_profile_agb_for_order_service_1 = require("./agb/get-profile-agb-for-order-service");
10
10
  var update_profile_agb_1 = require("./agb/update-profile-agb");
11
+ var create_api_key_1 = require("./api-keys/create-api-key");
12
+ var get_api_keys_1 = require("./api-keys/get-api-keys");
13
+ var remove_api_key_1 = require("./api-keys/remove-api-key");
11
14
  var get_bookeo_info_1 = require("./bookeo/get-bookeo-info");
12
15
  var get_bookeo_integration_link_1 = require("./bookeo/get-bookeo-integration-link");
13
16
  var get_bookeo_orders_1 = require("./bookeo/get-bookeo-orders");
@@ -43,6 +46,9 @@ var update_crm_verification_1 = require("./update-crm-verification");
43
46
  var update_partner_program_1 = require("./update-partner-program");
44
47
  var update_step_1 = require("./update-step");
45
48
  exports.profilesApiDeclaration = {
49
+ getApiKeys: get_api_keys_1.getApiKeys,
50
+ createApiKey: create_api_key_1.createApiKey,
51
+ removeApiKey: remove_api_key_1.removeApiKey,
46
52
  createActivity: create_1.createActivity,
47
53
  queryCampaigns: query_campaigns_1.queryCampaigns,
48
54
  queryActivity: query_activity_1.queryActivity,
@@ -1,7 +1,10 @@
1
- import { ProfileSubscriptionTypeEnum } from '@escapenavigator/types/dist/profile/enum/profile-subscription-type.enum';
1
+ import { ProfileCurrencyEnum } from '@escapenavigator/types/dist/profile/enum/profile-currency';
2
2
  import { SubscriptionRO } from '@escapenavigator/types/dist/profile/subscription.ro';
3
3
  import { ApiMethodDeclaration } from '../..';
4
- declare type ParamsData = ProfileSubscriptionTypeEnum;
4
+ declare type ParamsData = {
5
+ priceId: string;
6
+ currency: ProfileCurrencyEnum;
7
+ };
5
8
  declare type ResponseData = SubscriptionRO;
6
9
  export declare const updateSubscription: ApiMethodDeclaration<ParamsData, ResponseData>;
7
10
  export {};
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateSubscription = void 0;
4
- var updateSubscription = function (type) { return ({
5
- url: "/subscription/subscription/".concat(type),
4
+ var updateSubscription = function (data) { return ({
5
+ url: '/subscription/subscription',
6
6
  method: 'PATCH',
7
+ data: data,
7
8
  }); };
8
9
  exports.updateSubscription = updateSubscription;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.92",
3
+ "version": "1.6.94",
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": "da6d9b8c4c46ab681a304059973c4e1393835364",
15
+ "gitHead": "d8f7cee97f4d40562462d6a75ebdff8d29583921",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.87",
18
- "@escapenavigator/utils": "^1.6.89",
17
+ "@escapenavigator/types": "^1.6.89",
18
+ "@escapenavigator/utils": "^1.6.91",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",