@escapenavigator/services 1.4.75 → 1.4.76
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.
- package/dist/api/profiles-api/get-all-daily-reports.d.ts +9 -0
- package/dist/api/profiles-api/get-all-daily-reports.js +8 -0
- package/dist/api/profiles-api/index.d.ts +4 -0
- package/dist/api/profiles-api/index.js +4 -0
- package/dist/api/profiles-api/paginate-bills.d.ts +9 -0
- package/dist/api/profiles-api/paginate-bills.js +9 -0
- package/package.json +3 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '..';
|
|
2
|
+
declare type ParamsData = string;
|
|
3
|
+
declare type ResponseData = Array<{
|
|
4
|
+
month: string;
|
|
5
|
+
questroomsCount: number;
|
|
6
|
+
amount: number;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const getAllDailyReports: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAllDailyReports = void 0;
|
|
4
|
+
var getAllDailyReports = function (month) { return ({
|
|
5
|
+
url: "/subscription/daily-reports/".concat(month),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getAllDailyReports = getAllDailyReports;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { create } from './create';
|
|
2
2
|
import { current } from './current';
|
|
3
|
+
import { getAllDailyReports } from './get-all-daily-reports';
|
|
3
4
|
import { getBySlug } from './get-by-slug';
|
|
4
5
|
import { getOne } from './get-one';
|
|
5
6
|
import { getPaymentSettings } from './get-payment-settings';
|
|
6
7
|
import { getProfileInvoices } from './get-profile-invoices';
|
|
7
8
|
import { getStripeSessionLink } from './get-stripe-session-link';
|
|
9
|
+
import { paginateBills } from './paginate-bills';
|
|
8
10
|
import { query } from './query';
|
|
9
11
|
import { remove } from './remove';
|
|
10
12
|
import { update } from './update';
|
|
11
13
|
import { updatePaymentSettings } from './update-payment-settings';
|
|
12
14
|
declare type ApiDeclaration = {
|
|
15
|
+
paginateBills: typeof paginateBills;
|
|
13
16
|
getPaymentSettings: typeof getPaymentSettings;
|
|
14
17
|
getStripeSessionLink: typeof getStripeSessionLink;
|
|
15
18
|
getProfileInvoices: typeof getProfileInvoices;
|
|
16
19
|
updatePaymentSettings: typeof updatePaymentSettings;
|
|
20
|
+
getAllDailyReports: typeof getAllDailyReports;
|
|
17
21
|
create: typeof create;
|
|
18
22
|
remove: typeof remove;
|
|
19
23
|
update: typeof update;
|
|
@@ -3,20 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.profilesApiDeclaration = void 0;
|
|
4
4
|
var create_1 = require("./create");
|
|
5
5
|
var current_1 = require("./current");
|
|
6
|
+
var get_all_daily_reports_1 = require("./get-all-daily-reports");
|
|
6
7
|
var get_by_slug_1 = require("./get-by-slug");
|
|
7
8
|
var get_one_1 = require("./get-one");
|
|
8
9
|
var get_payment_settings_1 = require("./get-payment-settings");
|
|
9
10
|
var get_profile_invoices_1 = require("./get-profile-invoices");
|
|
10
11
|
var get_stripe_session_link_1 = require("./get-stripe-session-link");
|
|
12
|
+
var paginate_bills_1 = require("./paginate-bills");
|
|
11
13
|
var query_1 = require("./query");
|
|
12
14
|
var remove_1 = require("./remove");
|
|
13
15
|
var update_1 = require("./update");
|
|
14
16
|
var update_payment_settings_1 = require("./update-payment-settings");
|
|
15
17
|
exports.profilesApiDeclaration = {
|
|
16
18
|
getPaymentSettings: get_payment_settings_1.getPaymentSettings,
|
|
19
|
+
paginateBills: paginate_bills_1.paginateBills,
|
|
17
20
|
getProfileInvoices: get_profile_invoices_1.getProfileInvoices,
|
|
18
21
|
getStripeSessionLink: get_stripe_session_link_1.getStripeSessionLink,
|
|
19
22
|
updatePaymentSettings: update_payment_settings_1.updatePaymentSettings,
|
|
23
|
+
getAllDailyReports: get_all_daily_reports_1.getAllDailyReports,
|
|
20
24
|
create: create_1.create,
|
|
21
25
|
remove: remove_1.remove,
|
|
22
26
|
update: update_1.update,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InvoiceRO } from '@escapenavigator/types/dist/profile/invoice.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<InvoiceRO>;
|
|
8
|
+
export declare const paginateBills: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateBills = void 0;
|
|
4
|
+
var paginateBills = function (params) { return ({
|
|
5
|
+
url: '/subscription/invoice/paginate',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.paginateBills = paginateBills;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.76",
|
|
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": "
|
|
15
|
+
"gitHead": "ec719f49c4d674a3f33772dc25a52cfe28b8ff13",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.4.
|
|
17
|
+
"@escapenavigator/types": "^1.4.75",
|
|
18
18
|
"@paypal/react-paypal-js": "^7.8.3",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|