@escapenavigator/services 1.6.40 → 1.6.42
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/google-calendars-api/create.d.ts +9 -0
- package/dist/api/google-calendars-api/create.js +12 -0
- package/dist/api/google-calendars-api/get-all.d.ts +6 -0
- package/dist/api/google-calendars-api/get-all.js +8 -0
- package/dist/api/google-calendars-api/get-initial.d.ts +7 -0
- package/dist/api/google-calendars-api/get-initial.js +9 -0
- package/dist/api/google-calendars-api/get-verification-link.d.ts +5 -0
- package/dist/api/google-calendars-api/get-verification-link.js +8 -0
- package/dist/api/google-calendars-api/index.d.ts +16 -0
- package/dist/api/google-calendars-api/index.js +17 -0
- package/dist/api/google-calendars-api/remove.d.ts +6 -0
- package/dist/api/google-calendars-api/remove.js +8 -0
- package/dist/api/google-calendars-api/update.d.ts +10 -0
- package/dist/api/google-calendars-api/update.js +12 -0
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateGoogleCalendarDto } from '@escapenavigator/types/dist/google-calendar/create-google-calendar.dto';
|
|
2
|
+
import { GoogleCalendarRO } from '@escapenavigator/types/dist/google-calendar/google-calendar.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateGoogleCalendarDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = GoogleCalendarRO;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
var create = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/google-calendars',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GoogleCalendarRO } from '@escapenavigator/types/dist/google-calendar/google-calendar.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = GoogleCalendarRO[];
|
|
5
|
+
export declare const getAll: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InitialGoogleCalendarDto } from '@escapenavigator/types/dist/google-calendar/initial-google-calendar.dto';
|
|
2
|
+
import { InitialGoogleCalendarRO } from '@escapenavigator/types/dist/google-calendar/initial-google-calendar.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = InitialGoogleCalendarDto;
|
|
5
|
+
declare type ResponseData = InitialGoogleCalendarRO[];
|
|
6
|
+
export declare const getInitial: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getInitial = void 0;
|
|
4
|
+
var getInitial = function (params) { return ({
|
|
5
|
+
url: '/google-calendars/initial',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getInitial = getInitial;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getVerificationLink = void 0;
|
|
4
|
+
var getVerificationLink = function () { return ({
|
|
5
|
+
url: '/google-calendars/verification-link',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getVerificationLink = getVerificationLink;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { create } from './create';
|
|
2
|
+
import { getAll } from './get-all';
|
|
3
|
+
import { getInitial } from './get-initial';
|
|
4
|
+
import { getVerificationLink } from './get-verification-link';
|
|
5
|
+
import { remove } from './remove';
|
|
6
|
+
import { update } from './update';
|
|
7
|
+
declare type ApiDeclaration = {
|
|
8
|
+
create: typeof create;
|
|
9
|
+
update: typeof update;
|
|
10
|
+
getAll: typeof getAll;
|
|
11
|
+
getInitial: typeof getInitial;
|
|
12
|
+
remove: typeof remove;
|
|
13
|
+
getVerificationLink: typeof getVerificationLink;
|
|
14
|
+
};
|
|
15
|
+
export declare const googleCalendarsApiDeclaration: ApiDeclaration;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.googleCalendarsApiDeclaration = void 0;
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var get_all_1 = require("./get-all");
|
|
6
|
+
var get_initial_1 = require("./get-initial");
|
|
7
|
+
var get_verification_link_1 = require("./get-verification-link");
|
|
8
|
+
var remove_1 = require("./remove");
|
|
9
|
+
var update_1 = require("./update");
|
|
10
|
+
exports.googleCalendarsApiDeclaration = {
|
|
11
|
+
create: create_1.create,
|
|
12
|
+
update: update_1.update,
|
|
13
|
+
getAll: get_all_1.getAll,
|
|
14
|
+
remove: remove_1.remove,
|
|
15
|
+
getInitial: get_initial_1.getInitial,
|
|
16
|
+
getVerificationLink: get_verification_link_1.getVerificationLink,
|
|
17
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GoogleCalendarRO } from '@escapenavigator/types/dist/google-calendar/google-calendar.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = number;
|
|
4
|
+
declare type ResponseData = GoogleCalendarRO;
|
|
5
|
+
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GoogleCalendarRO } from '@escapenavigator/types/dist/google-calendar/google-calendar.ro';
|
|
2
|
+
import { UpdateGoogleCalendarDto } from '@escapenavigator/types/dist/google-calendar/update-google-calendar.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateGoogleCalendarDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = GoogleCalendarRO;
|
|
9
|
+
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update = void 0;
|
|
4
|
+
var update = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/google-calendars/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
|
@@ -12,6 +12,7 @@ import { clientsApiDeclaration } from './clients-api';
|
|
|
12
12
|
import { dashboardApiDeclaration } from './dashboard-api';
|
|
13
13
|
import { emailsApiDeclaration } from './emails-api';
|
|
14
14
|
import { financeItemsApiDeclaration } from './financeitems-api';
|
|
15
|
+
import { googleCalendarsApiDeclaration } from './google-calendars-api';
|
|
15
16
|
import { imagesApiDeclaration } from './images-api';
|
|
16
17
|
import { locationsApiDeclaration } from './locations-api';
|
|
17
18
|
import { logsApiDeclaration } from './logs-api';
|
|
@@ -48,6 +49,7 @@ import { usersApiDeclaration } from './users-api';
|
|
|
48
49
|
import { widgetsApiDeclaration } from './widgets-api';
|
|
49
50
|
import { Api } from '.';
|
|
50
51
|
export declare type InitApiDeclaration = {
|
|
52
|
+
googleCalendarsApi: Api<typeof googleCalendarsApiDeclaration>;
|
|
51
53
|
slotRulesApi: Api<typeof slotRulesApi>;
|
|
52
54
|
orderTransactionsApi: Api<typeof orderTransactionsApiDeclaration>;
|
|
53
55
|
openapiWidget: Api<typeof openapiWidgetApiDeclaration>;
|
|
@@ -15,6 +15,7 @@ var clients_api_1 = require("./clients-api");
|
|
|
15
15
|
var dashboard_api_1 = require("./dashboard-api");
|
|
16
16
|
var emails_api_1 = require("./emails-api");
|
|
17
17
|
var financeitems_api_1 = require("./financeitems-api");
|
|
18
|
+
var google_calendars_api_1 = require("./google-calendars-api");
|
|
18
19
|
var images_api_1 = require("./images-api");
|
|
19
20
|
var locations_api_1 = require("./locations-api");
|
|
20
21
|
var logs_api_1 = require("./logs-api");
|
|
@@ -51,6 +52,7 @@ var users_api_1 = require("./users-api");
|
|
|
51
52
|
var widgets_api_1 = require("./widgets-api");
|
|
52
53
|
var _1 = require(".");
|
|
53
54
|
var initClientApi = function (url) { return ({
|
|
55
|
+
googleCalendarsApi: (0, _1.initApi)(google_calendars_api_1.googleCalendarsApiDeclaration, url),
|
|
54
56
|
slotRulesApi: (0, _1.initApi)(slot_rules_api_1.slotRulesApi, url),
|
|
55
57
|
openapiWidget: (0, _1.initApi)(openapi_widget_api_1.openapiWidgetApiDeclaration, url),
|
|
56
58
|
orderTransactionsApi: (0, _1.initApi)(order_transactions_api_1.orderTransactionsApiDeclaration, url),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.42",
|
|
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": "
|
|
15
|
+
"gitHead": "aa04698dee16520ead712d2f7cabcfa8d98f7722",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.40",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.40",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1",
|