@sebbo2002/fitness-first-ical-proxy 1.0.0-test.1
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/LICENSE +16 -0
- package/README.md +16 -0
- package/dist/bin/start.d.ts +2 -0
- package/dist/bin/start.js +46 -0
- package/dist/bin/start.js.map +1 -0
- package/dist/lib/index.d.ts +9 -0
- package/dist/lib/index.js +105 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/types.d.ts +33 -0
- package/dist/lib/types.js +3 -0
- package/dist/lib/types.js.map +1 -0
- package/package.json +67 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Sebastian Pekarek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
6
|
+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
7
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
8
|
+
persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
|
11
|
+
Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
14
|
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
15
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
16
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# fitness-first-ical-proxy
|
|
2
|
+
|
|
3
|
+
[](LICENSE)
|
|
4
|
+
|
|
5
|
+
Small proxy that provides the course schedule from fitnessfirst.de/kurse as an iCal calendar. Using the filters that are also available on the website, the schedule can also be filtered, for example, to deliver only all aqua courses.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## 📦 Installation
|
|
9
|
+
|
|
10
|
+
npm i -g @sebbo2002/fitness-fitst-ical-proxy
|
|
11
|
+
fitness-first-ical-proxy
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 🙆🏼♂️ Copyright and license
|
|
15
|
+
|
|
16
|
+
Copyright (c) Sebastian Pekarek under the [MIT license](LICENSE).
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
7
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
8
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
9
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
const express_1 = __importDefault(require("express"));
|
|
17
|
+
const lib_1 = __importDefault(require("../lib"));
|
|
18
|
+
class AppServer {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.app = (0, express_1.default)();
|
|
21
|
+
this.setupRoutes();
|
|
22
|
+
this.server = this.app.listen(process.env.PORT || 8080);
|
|
23
|
+
process.on('SIGINT', () => this.stop());
|
|
24
|
+
process.on('SIGTERM', () => this.stop());
|
|
25
|
+
}
|
|
26
|
+
static run() {
|
|
27
|
+
new AppServer();
|
|
28
|
+
}
|
|
29
|
+
setupRoutes() {
|
|
30
|
+
this.app.get('/ping', (req, res) => {
|
|
31
|
+
res.send('pong');
|
|
32
|
+
});
|
|
33
|
+
this.app.get('/ical', (req, res) => {
|
|
34
|
+
lib_1.default.request(req.query)
|
|
35
|
+
.then(calendar => calendar.serve(res));
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
stop() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
yield new Promise(cb => this.server.close(cb));
|
|
41
|
+
process.exit();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
AppServer.run();
|
|
46
|
+
//# sourceMappingURL=start.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/bin/start.ts"],"names":[],"mappings":";AACA,YAAY,CAAC;;;;;;;;;;;;;;AAEb,sDAAyC;AAEzC,iDAA2C;AAG3C,MAAM,SAAS;IAQX;QACI,IAAI,CAAC,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;QAErB,IAAI,CAAC,WAAW,EAAE,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC;QAExD,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QACxC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IAfD,MAAM,CAAC,GAAG;QACN,IAAI,SAAS,EAAE,CAAC;IACpB,CAAC;IAeD,WAAW;QACP,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAC/B,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAC/B,aAAqB,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;iBACnC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;IACP,CAAC;IAEK,IAAI;;YACN,MAAM,IAAI,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;YAE/C,OAAO,CAAC,IAAI,EAAE,CAAC;QACnB,CAAC;KAAA;CACJ;AAED,SAAS,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RequestParams, ResponseClasses } from './types';
|
|
2
|
+
import { ICalCalendar } from 'ical-generator';
|
|
3
|
+
export default class FitnessFirstIcalProxy {
|
|
4
|
+
static request(params: RequestParams): Promise<ICalCalendar>;
|
|
5
|
+
static getCourses(params: RequestParams): Promise<ResponseClasses>;
|
|
6
|
+
static createCalendar(courses: ResponseClasses): ICalCalendar;
|
|
7
|
+
static paramToString(value: string | Array<string | number> | undefined): string;
|
|
8
|
+
static miniGet<T>(url: string): Promise<T>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const https_1 = require("https");
|
|
16
|
+
const querystring_1 = require("querystring");
|
|
17
|
+
const ical_generator_1 = __importDefault(require("ical-generator"));
|
|
18
|
+
class FitnessFirstIcalProxy {
|
|
19
|
+
static request(params) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const courses = yield this.getCourses(params);
|
|
22
|
+
return this.createCalendar(courses);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
static getCourses(params) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
const q = (0, querystring_1.stringify)({
|
|
28
|
+
club_id: this.paramToString(params.club_id),
|
|
29
|
+
category_id: this.paramToString(params.category_id),
|
|
30
|
+
class_id: this.paramToString(params.class_id),
|
|
31
|
+
daytime_id: this.paramToString(params.daytime_id),
|
|
32
|
+
});
|
|
33
|
+
const response = yield this.miniGet('https://www.fitnessfirst.de/kurse/kursplan/search?' + q);
|
|
34
|
+
return response.data.classes;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
static createCalendar(courses) {
|
|
38
|
+
const cal = (0, ical_generator_1.default)({
|
|
39
|
+
name: 'Fitness First',
|
|
40
|
+
ttl: 60 * 60 * 6,
|
|
41
|
+
prodId: {
|
|
42
|
+
company: 'sebbo.net',
|
|
43
|
+
product: 'fitness-first-ical-proxy'
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.entries(courses).forEach(([key, classes]) => {
|
|
47
|
+
const day = key.split('_')[0];
|
|
48
|
+
(Array.isArray(classes) ? classes : Object.values(classes)).forEach(courses => {
|
|
49
|
+
courses.forEach(course => {
|
|
50
|
+
if (course.is_cancelled) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const start = new Date(day + 'T' + course.time.from + 'Z');
|
|
54
|
+
const end = new Date(day + 'T' + course.time.to + 'Z');
|
|
55
|
+
cal.createEvent({
|
|
56
|
+
id: course.id,
|
|
57
|
+
start,
|
|
58
|
+
end,
|
|
59
|
+
floating: true,
|
|
60
|
+
summary: course.title,
|
|
61
|
+
location: course.club,
|
|
62
|
+
url: course.url
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
return cal;
|
|
68
|
+
}
|
|
69
|
+
static paramToString(value) {
|
|
70
|
+
if (typeof value === 'string') {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
if (typeof value === 'undefined') {
|
|
74
|
+
return '';
|
|
75
|
+
}
|
|
76
|
+
return value
|
|
77
|
+
.map(v => v.toString())
|
|
78
|
+
.join(',');
|
|
79
|
+
}
|
|
80
|
+
static miniGet(url) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
return new Promise((resolve, reject) => {
|
|
83
|
+
(0, https_1.get)(url, res => {
|
|
84
|
+
const data = [];
|
|
85
|
+
res.on('data', chunk => {
|
|
86
|
+
data.push(chunk);
|
|
87
|
+
});
|
|
88
|
+
res.on('end', () => {
|
|
89
|
+
const text = String(Buffer.concat(data));
|
|
90
|
+
if (res.statusCode !== 200) {
|
|
91
|
+
reject(new Error('Unable to get data: ' + text));
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const json = JSON.parse(text);
|
|
95
|
+
resolve(json);
|
|
96
|
+
});
|
|
97
|
+
}).on('error', err => {
|
|
98
|
+
reject(err);
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.default = FitnessFirstIcalProxy;
|
|
105
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,iCAA4B;AAC5B,6CAAwC;AAExC,oEAAoD;AAEpD,MAAqB,qBAAqB;IACtC,MAAM,CAAO,OAAO,CAAC,MAAqB;;YACtC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YAC9C,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;KAAA;IAED,MAAM,CAAO,UAAU,CAAC,MAAqB;;YACzC,MAAM,CAAC,GAAG,IAAA,uBAAS,EAAC;gBAChB,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;gBAC3C,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC;gBACnD,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC;gBAC7C,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC;aACpD,CAAC,CAAC;YAEH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAW,oDAAoD,GAAG,CAAC,CAAC,CAAC;YACxG,OAAO,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;QACjC,CAAC;KAAA;IAED,MAAM,CAAC,cAAc,CAAC,OAAwB;QAC1C,MAAM,GAAG,GAAG,IAAA,wBAAI,EAAC;YACb,IAAI,EAAE,eAAe;YACrB,GAAG,EAAE,EA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1,33 @@
|
|
|
1
|
+
export interface RequestParams {
|
|
2
|
+
club_id?: string | number[] | string[];
|
|
3
|
+
category_id?: string | number[] | string[];
|
|
4
|
+
class_id?: string | number[];
|
|
5
|
+
daytime_id?: string | string[];
|
|
6
|
+
}
|
|
7
|
+
export interface Response {
|
|
8
|
+
data: ResponseData;
|
|
9
|
+
}
|
|
10
|
+
export interface ResponseData {
|
|
11
|
+
classes: ResponseClasses;
|
|
12
|
+
}
|
|
13
|
+
export interface ResponseClasses {
|
|
14
|
+
[key: string]: [] | ResponseDay;
|
|
15
|
+
}
|
|
16
|
+
export interface ResponseDay {
|
|
17
|
+
[key: string]: ResponseCourse[];
|
|
18
|
+
}
|
|
19
|
+
export interface ResponseCourse {
|
|
20
|
+
id: string;
|
|
21
|
+
title: string;
|
|
22
|
+
time: ResponseCourseTime;
|
|
23
|
+
category: string;
|
|
24
|
+
level: string;
|
|
25
|
+
club: string;
|
|
26
|
+
url: string;
|
|
27
|
+
is_cancelled: boolean;
|
|
28
|
+
is_changed: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface ResponseCourseTime {
|
|
31
|
+
from: string;
|
|
32
|
+
to: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Sebastian Pekarek <oojeesheibashumaofie@e.sebbo.net>",
|
|
3
|
+
"bin": {
|
|
4
|
+
"fitness-first-ical-proxy": "./dist/bin/start.js"
|
|
5
|
+
},
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/sebbo2002/template/issues"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"ical-generator": "^3.0.1"
|
|
11
|
+
},
|
|
12
|
+
"description": "Small proxy that provides the course schedule from fitnessfirst.de/kurse as an iCal calendar.",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@amanda-mitchell/semantic-release-npm-multiple": "^2.15.0",
|
|
15
|
+
"@qiwi/semantic-release-gh-pages-plugin": "^5.1.1",
|
|
16
|
+
"@sebbo2002/semantic-release-docker": "^1.0.0-develop.1",
|
|
17
|
+
"@semantic-release/changelog": "^6.0.0",
|
|
18
|
+
"@semantic-release/exec": "^6.0.1",
|
|
19
|
+
"@semantic-release/git": "^10.0.0",
|
|
20
|
+
"@types/express": "^4.17.13",
|
|
21
|
+
"@types/luxon": "^2.0.5",
|
|
22
|
+
"@types/mocha": "^9.0.0",
|
|
23
|
+
"@types/node": "^16.11.3",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^4.32.0",
|
|
25
|
+
"@typescript-eslint/parser": "^4.32.0",
|
|
26
|
+
"dayjs": "^1.10.7",
|
|
27
|
+
"eslint": "^7.32.0",
|
|
28
|
+
"eslint-plugin-jsonc": "^1.7.0",
|
|
29
|
+
"license-checker": "^25.0.1",
|
|
30
|
+
"mocha": "^9.1.2",
|
|
31
|
+
"mochawesome": "^6.2.2",
|
|
32
|
+
"moment": "^2.29.1",
|
|
33
|
+
"moment-timezone": "^0.5.33",
|
|
34
|
+
"nyc": "^15.1.0",
|
|
35
|
+
"rrule": "^2.6.8",
|
|
36
|
+
"semantic-release-license": "^1.0.3",
|
|
37
|
+
"source-map-support": "^0.5.20",
|
|
38
|
+
"ts-node": "^10.2.1",
|
|
39
|
+
"typedoc": "^0.22.4",
|
|
40
|
+
"typescript": "^4.4.3"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=12.0.0"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"/dist"
|
|
47
|
+
],
|
|
48
|
+
"homepage": "https://github.com/sebbo2002/fitness-first-ical-proxy#readme",
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"main": "dist/index.js",
|
|
51
|
+
"name": "@sebbo2002/fitness-first-ical-proxy",
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "git+https://github.com/sebbo2002/fitness-first-ical-proxy.git"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "tsc && chmod +x ./dist/bin/*.js",
|
|
58
|
+
"build-all": "./.github/workflows/build.sh",
|
|
59
|
+
"coverage": "nyc mocha",
|
|
60
|
+
"develop": "ts-node ./src/bin/start.ts",
|
|
61
|
+
"license-check": "license-checker --production --summary",
|
|
62
|
+
"lint": "eslint . --ext .ts,.json",
|
|
63
|
+
"start": "node ./dist/bin/start.js",
|
|
64
|
+
"test": "mocha"
|
|
65
|
+
},
|
|
66
|
+
"version": "1.0.0-test.1"
|
|
67
|
+
}
|