@escapenavigator/services 1.6.30 → 1.6.32

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.
@@ -23,20 +23,20 @@ import { createOtherCrm } from './other-crm/create-other-crm';
23
23
  import { getAllCrm } from './other-crm/get-all-crm';
24
24
  import { getProfileFilters } from './other-crm/get-profile-filters';
25
25
  import { removeProfileCrm } from './other-crm/remove-profile-crm';
26
+ import { updateProfileCrm } from './other-crm/update-profile-crm';
26
27
  import { createPaymentMethodSession } from './subscription/create-payment-method-session';
27
- import { createSubscriptionSession } from './subscription/create-subscription-session';
28
- import { getPaymentSettings } from './subscription/get-payment-settings';
29
28
  import { getPrices } from './subscription/get-prices';
30
29
  import { getProfileInvoices } from './subscription/get-profile-invoices';
31
30
  import { getSubscriptionInfo } from './subscription/get-subscription-info';
32
31
  import { paginateBills } from './subscription/paginate-bills';
32
+ import { updateSubscription } from './subscription/update-subscription';
33
33
  import { create } from './create';
34
34
  import { getBySlugForVerify } from './get-by-slug-for-verify';
35
35
  import { getOne } from './get-one';
36
- import { initialCustomization } from './initial-customization';
37
36
  import { query } from './query';
38
37
  import { remove } from './remove';
39
38
  import { update } from './update';
39
+ import { updatePartnerProgram } from './update-partner-program';
40
40
  import { updateStep } from './update-step';
41
41
  declare type ApiDeclaration = {
42
42
  createContact: typeof createContact;
@@ -52,6 +52,7 @@ declare type ApiDeclaration = {
52
52
  removeProfileCrm: typeof removeProfileCrm;
53
53
  getAllCrm: typeof getAllCrm;
54
54
  createOtherCrm: typeof createOtherCrm;
55
+ updateProfileCrm: typeof updateProfileCrm;
55
56
  resyncBookeo: typeof resyncBookeo;
56
57
  getBookeoInfo: typeof getBookeoInfo;
57
58
  getBookeoIntegrationLink: typeof getBookeoIntegrationLink;
@@ -64,12 +65,11 @@ declare type ApiDeclaration = {
64
65
  getSubscriptionInfo: typeof getSubscriptionInfo;
65
66
  paginateBills: typeof paginateBills;
66
67
  getPrices: typeof getPrices;
67
- createSubscriptionSession: typeof createSubscriptionSession;
68
- getPaymentSettings: typeof getPaymentSettings;
68
+ updateSubscription: typeof updateSubscription;
69
69
  createPaymentMethodSession: typeof createPaymentMethodSession;
70
70
  getProfileInvoices: typeof getProfileInvoices;
71
71
  updateStep: typeof updateStep;
72
- initialCustomization: typeof initialCustomization;
72
+ updatePartnerProgram: typeof updatePartnerProgram;
73
73
  finalizeCurrent: typeof finalizeCurrent;
74
74
  updateCurrent: typeof updateCurrent;
75
75
  create: typeof create;
@@ -26,24 +26,27 @@ var create_other_crm_1 = require("./other-crm/create-other-crm");
26
26
  var get_all_crm_1 = require("./other-crm/get-all-crm");
27
27
  var get_profile_filters_1 = require("./other-crm/get-profile-filters");
28
28
  var remove_profile_crm_1 = require("./other-crm/remove-profile-crm");
29
+ var update_profile_crm_1 = require("./other-crm/update-profile-crm");
29
30
  var create_payment_method_session_1 = require("./subscription/create-payment-method-session");
30
- var create_subscription_session_1 = require("./subscription/create-subscription-session");
31
- var get_payment_settings_1 = require("./subscription/get-payment-settings");
32
31
  var get_prices_1 = require("./subscription/get-prices");
33
32
  var get_profile_invoices_1 = require("./subscription/get-profile-invoices");
34
33
  var get_subscription_info_1 = require("./subscription/get-subscription-info");
35
34
  var paginate_bills_1 = require("./subscription/paginate-bills");
35
+ var update_subscription_1 = require("./subscription/update-subscription");
36
36
  var create_1 = require("./create");
37
37
  var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
38
38
  var get_one_1 = require("./get-one");
39
- var initial_customization_1 = require("./initial-customization");
39
+ // import { initialCustomization } from './initial-customization';
40
40
  var query_1 = require("./query");
41
41
  var remove_1 = require("./remove");
42
42
  var update_1 = require("./update");
43
+ var update_partner_program_1 = require("./update-partner-program");
43
44
  var update_step_1 = require("./update-step");
44
45
  exports.profilesApiDeclaration = {
45
46
  createContact: create_contact_1.createContact,
46
47
  removeContact: remove_contact_1.removeContact,
48
+ updateProfileCrm: update_profile_crm_1.updateProfileCrm,
49
+ updatePartnerProgram: update_partner_program_1.updatePartnerProgram,
47
50
  queryActions: query_actions_1.queryActions,
48
51
  queryEmails: query_emails_1.queryEmails,
49
52
  createSending: create_sending_1.createSending,
@@ -61,11 +64,10 @@ exports.profilesApiDeclaration = {
61
64
  updateCrossSale: update_cross_sale_1.updateCrossSale,
62
65
  getProfileAgb: get_profile_agb_1.getProfileAgb,
63
66
  updateProfileAgb: update_profile_agb_1.updateProfileAgb,
64
- createSubscriptionSession: create_subscription_session_1.createSubscriptionSession,
67
+ updateSubscription: update_subscription_1.updateSubscription,
65
68
  getSubscriptionInfo: get_subscription_info_1.getSubscriptionInfo,
66
69
  getPrices: get_prices_1.getPrices,
67
70
  updateCurrent: update_current_1.updateCurrent,
68
- getPaymentSettings: get_payment_settings_1.getPaymentSettings,
69
71
  paginateBills: paginate_bills_1.paginateBills,
70
72
  getProfileInvoices: get_profile_invoices_1.getProfileInvoices,
71
73
  createPaymentMethodSession: create_payment_method_session_1.createPaymentMethodSession,
@@ -74,7 +76,7 @@ exports.profilesApiDeclaration = {
74
76
  getBookeoOrders: get_bookeo_orders_1.getBookeoOrders,
75
77
  getBookeoInfo: get_bookeo_info_1.getBookeoInfo,
76
78
  getBookeoIntegrationLink: get_bookeo_integration_link_1.getBookeoIntegrationLink,
77
- initialCustomization: initial_customization_1.initialCustomization,
79
+ // initialCustomization,
78
80
  create: create_1.create,
79
81
  remove: remove_1.remove,
80
82
  update: update_1.update,
@@ -1,9 +1,12 @@
1
1
  import { ApiMethodDeclaration } from '../..';
2
2
  declare type ParamsData = undefined;
3
3
  declare type ResponseData = {
4
- steps: Record<string, number>;
4
+ status: Record<string, number>;
5
5
  crm: Record<string, number>;
6
- subscription: Record<string, number>;
6
+ subscriptionType: Record<string, number>;
7
+ subscriptionStatus: Record<string, number>;
8
+ integrationType: Record<string, number>;
9
+ partnerProgram: Record<string, number>;
7
10
  };
8
11
  export declare const getProfileFilters: ApiMethodDeclaration<ParamsData, ResponseData>;
9
12
  export {};
@@ -0,0 +1,11 @@
1
+ import { ProfileCrmRO } from '@escapenavigator/types/dist/profile/profile-crm/profile-crm.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = {
4
+ id: number;
5
+ data: {
6
+ title: string;
7
+ };
8
+ };
9
+ declare type ResponseData = ProfileCrmRO;
10
+ export declare const updateProfileCrm: ApiMethodDeclaration<ParamsData, ResponseData>;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateProfileCrm = void 0;
4
+ var updateProfileCrm = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/profiles-crm/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateProfileCrm = updateProfileCrm;
@@ -1,6 +1,6 @@
1
- import { ProfileSubscripton } from '@escapenavigator/types/dist/profile/profile-subscription.ro';
1
+ import { SubscriptionRO } from '@escapenavigator/types/dist/profile/subscription.ro';
2
2
  import { ApiMethodDeclaration } from '../..';
3
3
  declare type ParamsData = undefined;
4
- declare type ResponseData = ProfileSubscripton;
4
+ declare type ResponseData = SubscriptionRO;
5
5
  export declare const getSubscriptionInfo: ApiMethodDeclaration<ParamsData, ResponseData>;
6
6
  export {};
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getSubscriptionInfo = void 0;
4
4
  var getSubscriptionInfo = function () { return ({
5
- url: '/subscription/info',
5
+ url: '/subscription/sync',
6
6
  method: 'GET',
7
7
  }); };
8
8
  exports.getSubscriptionInfo = getSubscriptionInfo;
@@ -0,0 +1,7 @@
1
+ import { ProfileSubscriptionTypeEnum } from '@escapenavigator/types/dist/profile/enum/profile-subscription-type.enum';
2
+ import { SubscriptionRO } from '@escapenavigator/types/dist/profile/subscription.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = ProfileSubscriptionTypeEnum;
5
+ declare type ResponseData = SubscriptionRO;
6
+ export declare const updateSubscription: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateSubscription = void 0;
4
+ var updateSubscription = function (type) { return ({
5
+ url: "/subscription/subscription/".concat(type),
6
+ method: 'PATCH',
7
+ }); };
8
+ exports.updateSubscription = updateSubscription;
@@ -0,0 +1,7 @@
1
+ import { PartnerProgramEnum } from '@escapenavigator/types/dist/profile/enum/partner-program.enum';
2
+ import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = PartnerProgramEnum;
5
+ declare type ResponseData = ProfileRO;
6
+ export declare const updatePartnerProgram: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updatePartnerProgram = void 0;
4
+ var updatePartnerProgram = function (status) { return ({
5
+ url: "/profiles/partner-program/".concat(status),
6
+ method: 'PATCH',
7
+ }); };
8
+ exports.updatePartnerProgram = updatePartnerProgram;
@@ -1,10 +1,7 @@
1
+ import { ProfileStatusEnum } from '@escapenavigator/types/dist/profile/enum/profile-step.enum';
1
2
  import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
- import { UpdateProfileStepDto } from '@escapenavigator/types/dist/profile/update-profile-step.dto';
3
3
  import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- id: number;
6
- data: UpdateProfileStepDto;
7
- };
4
+ declare type ParamsData = ProfileStatusEnum;
8
5
  declare type ResponseData = ProfileRO;
9
6
  export declare const updateStep: ApiMethodDeclaration<ParamsData, ResponseData>;
10
7
  export {};
@@ -1,12 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateStep = void 0;
4
- var updateStep = function (_a) {
5
- var id = _a.id, data = _a.data;
6
- return ({
7
- url: "/profiles/step/".concat(id),
8
- method: 'PATCH',
9
- data: data,
10
- });
11
- };
4
+ var updateStep = function (step) { return ({
5
+ url: "/profiles/step/".concat(step),
6
+ method: 'PATCH',
7
+ }); };
12
8
  exports.updateStep = updateStep;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.30",
3
+ "version": "1.6.32",
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": "05a6101c3af7791c6cec4e68e3aee8cc55f5ba7d",
15
+ "gitHead": "f3e49c6003f89cbf9faaf6968d90c4e1ccaf4c61",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.28",
18
- "@escapenavigator/utils": "^1.6.28",
17
+ "@escapenavigator/types": "^1.6.30",
18
+ "@escapenavigator/utils": "^1.6.30",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
@@ -1,7 +0,0 @@
1
- import { InitialCustomizationDto } from '@escapenavigator/types/dist/profile/initial-cusomization.dto';
2
- import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = InitialCustomizationDto;
5
- declare type ResponseData = SuccessRO;
6
- export declare const initialCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initialCustomization = void 0;
4
- var initialCustomization = function (data) { return ({
5
- url: '/profiles/init-customization',
6
- method: 'POST',
7
- data: data,
8
- }); };
9
- exports.initialCustomization = initialCustomization;
@@ -1,8 +0,0 @@
1
- import { ApiMethodDeclaration } from '../..';
2
- declare type ParamsData = {
3
- lookup_key: string;
4
- quantity: string;
5
- };
6
- declare type ResponseData = string;
7
- export declare const createSubscriptionSession: ApiMethodDeclaration<ParamsData, ResponseData>;
8
- export {};
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSubscriptionSession = void 0;
4
- var createSubscriptionSession = function (_a) {
5
- var lookup_key = _a.lookup_key, quantity = _a.quantity;
6
- return ({
7
- url: "/subscription/create-subscription-session/".concat(lookup_key, "/").concat(quantity),
8
- method: 'GET',
9
- });
10
- };
11
- exports.createSubscriptionSession = createSubscriptionSession;
@@ -1,6 +0,0 @@
1
- import { PaymentSettingsRO } from '@escapenavigator/types/dist/profile/payment-settings.ro';
2
- import { ApiMethodDeclaration } from '../..';
3
- declare type ParamsData = undefined;
4
- declare type ResponseData = PaymentSettingsRO;
5
- export declare const getPaymentSettings: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPaymentSettings = void 0;
4
- var getPaymentSettings = function () { return ({
5
- url: '/subscription/payment-settings/',
6
- method: 'GET',
7
- }); };
8
- exports.getPaymentSettings = getPaymentSettings;