@escapenavigator/services 1.4.73 → 1.4.74

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.
@@ -0,0 +1,6 @@
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 {};
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,6 @@
1
+ import { InvoiceRO } from '@escapenavigator/types/dist/profile/invoice.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = InvoiceRO[];
5
+ export declare const getProfileInvoices: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProfileInvoices = void 0;
4
+ var getProfileInvoices = function () { return ({
5
+ url: '/subscription/invoice',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getProfileInvoices = getProfileInvoices;
@@ -0,0 +1,5 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ declare type ParamsData = undefined;
3
+ declare type ResponseData = string;
4
+ export declare const getStripeSessionLink: ApiMethodDeclaration<ParamsData, ResponseData>;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getStripeSessionLink = void 0;
4
+ var getStripeSessionLink = function () { return ({
5
+ url: '/subscription/stripe/session-link',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getStripeSessionLink = getStripeSessionLink;
@@ -1,15 +1,19 @@
1
1
  import { create } from './create';
2
- import { createProfileCorrection } from './create-profile-correction';
3
- import { createProfilePayment } from './create-profile-payment';
4
2
  import { current } from './current';
5
- import { getAllCommission } from './get-all-commission';
6
- import { getAllCommissionByProfile } from './get-all-commission-by-profile';
7
3
  import { getBySlug } from './get-by-slug';
8
4
  import { getOne } from './get-one';
5
+ import { getPaymentSettings } from './get-payment-settings';
6
+ import { getProfileInvoices } from './get-profile-invoices';
7
+ import { getStripeSessionLink } from './get-stripe-session-link';
9
8
  import { query } from './query';
10
9
  import { remove } from './remove';
11
10
  import { update } from './update';
11
+ import { updatePaymentSettings } from './update-payment-settings';
12
12
  declare type ApiDeclaration = {
13
+ getPaymentSettings: typeof getPaymentSettings;
14
+ getStripeSessionLink: typeof getStripeSessionLink;
15
+ getProfileInvoices: typeof getProfileInvoices;
16
+ updatePaymentSettings: typeof updatePaymentSettings;
13
17
  create: typeof create;
14
18
  remove: typeof remove;
15
19
  update: typeof update;
@@ -17,10 +21,6 @@ declare type ApiDeclaration = {
17
21
  getOne: typeof getOne;
18
22
  current: typeof current;
19
23
  getBySlug: typeof getBySlug;
20
- getAllCommission: typeof getAllCommission;
21
- getAllCommissionByProfile: typeof getAllCommissionByProfile;
22
- createProfilePayment: typeof createProfilePayment;
23
- createProfileCorrection: typeof createProfileCorrection;
24
24
  };
25
25
  export declare const profilesApiDeclaration: ApiDeclaration;
26
26
  export {};
@@ -2,17 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.profilesApiDeclaration = void 0;
4
4
  var create_1 = require("./create");
5
- var create_profile_correction_1 = require("./create-profile-correction");
6
- var create_profile_payment_1 = require("./create-profile-payment");
7
5
  var current_1 = require("./current");
8
- var get_all_commission_1 = require("./get-all-commission");
9
- var get_all_commission_by_profile_1 = require("./get-all-commission-by-profile");
10
6
  var get_by_slug_1 = require("./get-by-slug");
11
7
  var get_one_1 = require("./get-one");
8
+ var get_payment_settings_1 = require("./get-payment-settings");
9
+ var get_profile_invoices_1 = require("./get-profile-invoices");
10
+ var get_stripe_session_link_1 = require("./get-stripe-session-link");
12
11
  var query_1 = require("./query");
13
12
  var remove_1 = require("./remove");
14
13
  var update_1 = require("./update");
14
+ var update_payment_settings_1 = require("./update-payment-settings");
15
15
  exports.profilesApiDeclaration = {
16
+ getPaymentSettings: get_payment_settings_1.getPaymentSettings,
17
+ getProfileInvoices: get_profile_invoices_1.getProfileInvoices,
18
+ getStripeSessionLink: get_stripe_session_link_1.getStripeSessionLink,
19
+ updatePaymentSettings: update_payment_settings_1.updatePaymentSettings,
16
20
  create: create_1.create,
17
21
  remove: remove_1.remove,
18
22
  update: update_1.update,
@@ -20,8 +24,4 @@ exports.profilesApiDeclaration = {
20
24
  getOne: get_one_1.getOne,
21
25
  current: current_1.current,
22
26
  getBySlug: get_by_slug_1.getBySlug,
23
- getAllCommission: get_all_commission_1.getAllCommission,
24
- getAllCommissionByProfile: get_all_commission_by_profile_1.getAllCommissionByProfile,
25
- createProfilePayment: create_profile_payment_1.createProfilePayment,
26
- createProfileCorrection: create_profile_correction_1.createProfileCorrection,
27
27
  };
@@ -0,0 +1,6 @@
1
+ import { UpdatePaymentSettingsDto } from '@escapenavigator/types/dist/profile/update-payment-settings.dto';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = UpdatePaymentSettingsDto;
4
+ declare type ResponseData = string;
5
+ export declare const updatePaymentSettings: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updatePaymentSettings = void 0;
4
+ var updatePaymentSettings = function (data) { return ({
5
+ url: '/subscription/payment-settings',
6
+ method: 'PATCH',
7
+ data: data,
8
+ }); };
9
+ exports.updatePaymentSettings = updatePaymentSettings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.73",
3
+ "version": "1.4.74",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,9 +12,9 @@
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && tsc --project tsconfig.json"
14
14
  },
15
- "gitHead": "05ad8df8baf6068618dd00145724cf1e0eab4d51",
15
+ "gitHead": "f889779e719f18c3d63fa520eef01506632900cf",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.73",
17
+ "@escapenavigator/types": "^1.4.74",
18
18
  "@paypal/react-paypal-js": "^7.8.3",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
@@ -1,9 +0,0 @@
1
- import { CommissionRO } from '@escapenavigator/types/dist/commission/commission.ro';
2
- import { CreateProfileCorrectionDto } from '@escapenavigator/types/dist/commission/create-profile-correction.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- data: CreateProfileCorrectionDto;
6
- };
7
- declare type ResponseData = CommissionRO;
8
- export declare const createProfileCorrection: ApiMethodDeclaration<ParamsData, ResponseData>;
9
- export {};
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createProfileCorrection = void 0;
4
- var createProfileCorrection = function (_a) {
5
- var data = _a.data;
6
- return ({
7
- url: '/commissions/corrections',
8
- method: 'POST',
9
- data: data,
10
- });
11
- };
12
- exports.createProfileCorrection = createProfileCorrection;
@@ -1,9 +0,0 @@
1
- import { CommissionRO } from '@escapenavigator/types/dist/commission/commission.ro';
2
- import { CreateProfilePaymentDto } from '@escapenavigator/types/dist/commission/create-profile-payment.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- data: CreateProfilePaymentDto;
6
- };
7
- declare type ResponseData = CommissionRO;
8
- export declare const createProfilePayment: ApiMethodDeclaration<ParamsData, ResponseData>;
9
- export {};
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createProfilePayment = void 0;
4
- var createProfilePayment = function (_a) {
5
- var data = _a.data;
6
- return ({
7
- url: '/commissions/payments',
8
- method: 'POST',
9
- data: data,
10
- });
11
- };
12
- exports.createProfilePayment = createProfilePayment;
@@ -1,8 +0,0 @@
1
- import { CommissionRO } from '@escapenavigator/types/dist/commission/commission.ro';
2
- import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- /** Поиск */
5
- declare type ParamsData = QueryDto;
6
- declare type ResponseData = CommissionRO[];
7
- export declare const getAllCommissionByProfile: ApiMethodDeclaration<ParamsData, ResponseData>;
8
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAllCommissionByProfile = void 0;
4
- var getAllCommissionByProfile = function (params) { return ({
5
- url: '/commissions/profile',
6
- method: 'GET',
7
- params: params,
8
- }); };
9
- exports.getAllCommissionByProfile = getAllCommissionByProfile;
@@ -1,9 +0,0 @@
1
- import { CommissionRO } from '@escapenavigator/types/dist/commission/commission.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
- /** Поиск */
6
- declare type ParamsData = QueryDto;
7
- declare type ResponseData = QueryRO<CommissionRO>;
8
- export declare const getAllCommission: ApiMethodDeclaration<ParamsData, ResponseData>;
9
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAllCommission = void 0;
4
- var getAllCommission = function (params) { return ({
5
- url: '/commissions',
6
- method: 'GET',
7
- params: params,
8
- }); };
9
- exports.getAllCommission = getAllCommission;