-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.4.16: Added SeaWorld wait times and sesame places
- Loading branch information
1 parent
c18f27d
commit c10fd73
Showing
16 changed files
with
321 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/parks/seaworld/interfaces/seaworld-wait-times.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export interface SeaworldWaitTimesInterface { | ||
'WaitTimes': [], | ||
'ShowTimes': { | ||
'Id': string, | ||
'ShowTimes': { | ||
// 'StartDateTime': '2024-06-12T19:00:00Z', | ||
// 'EndDateTime': '2024-06-12T19:30:00Z', | ||
// 'StartTime': '2024-06-12T12:00:00', | ||
// 'EndTime': '2024-06-12T12:30:00' | ||
'StartDateTime': string, | ||
'EndDateTime': string, | ||
'StartTime': string, | ||
'EndTime': string | ||
}[] | ||
}[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
curl 'https://public.api.seaworld.com/v1/park' \ | ||
-H 'Host: public.api.seaworld.com' \ | ||
-H 'x-datadog-parent-id: 4428742480944239379' \ | ||
-H 'Accept: application/json' \ | ||
-H 'Authorization: Bearer eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..eFtqROn6cku64r7wfLzAOQ.NRsZK3WaMjVPBGH2ndJvMjRa-uM3lRHV5BUSuJPxmFgrEtNRr4kqq0vw5oS3-JuXf3Yq4z-NDcylpt9ykcBeXrittDox0edVGZhWeXD5fN56RD9XGj9yePZq37cQy2iINh-nftpoB2O9u1QdenLwxaC_nXCPad9b5CBIUyljauuAJSuYr8-ctv6-EpebUhnSqrMvgnYdKGqK10efI08hz2ZQVOKVvZ86XBhdAoyknBh2QafI5rMMF69w5GNMup8SB0mjs4FhMv7DoI4lsNXjxSmGFjceUUva_qJ6Ke1BEgo.h7eyGsE0GPuNVdc1QzWGPg' \ | ||
-H 'x-datadog-sampling-priority: 1' \ | ||
-H 'app_version: ios-7.1.222.330' \ | ||
-H 'x-datadog-trace-id: 7563024135700404135' \ | ||
-H 'Accept-Language: nl-NL,nl;q=0.9' \ | ||
-H 'User-Agent: SeaWorld/330 CFNetwork/1496.0.7 Darwin/23.5.0' \ | ||
-H 'Connection: keep-alive' \ | ||
-H 'Content-Type: application/json' \ | ||
--proxy http://localhost:9090 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
[ | ||
{ | ||
"UriId": "tampa", | ||
"Name": "Adventure Island Tampa", | ||
"Brand": "Adventure Island", | ||
"Id": "770E691C-E6DA-4264-AF27-863189380D0B", | ||
"ParkId": 2, | ||
"park_id": 2 | ||
}, | ||
{ | ||
"UriId": "orlando", | ||
"Name": "Aquatica Orlando", | ||
"Brand": "Aquatica", | ||
"Id": "4B040706-968A-41B4-9967-D93C7814E665", | ||
"ParkId": 3, | ||
"park_id": 3 | ||
}, | ||
{ | ||
"UriId": "san-antonio", | ||
"Name": "Aquatica San Antonio", | ||
"Brand": "Aquatica", | ||
"Id": "04668F50-A57E-4DE6-8E70-D4567D9B46B5", | ||
"ParkId": 15, | ||
"park_id": 15 | ||
}, | ||
{ | ||
"UriId": "tampa", | ||
"Name": "Busch Gardens Tampa", | ||
"Brand": "Busch Gardens", | ||
"Id": "C001866B-555D-4E92-B48E-CC67E195DE96", | ||
"ParkId": 8, | ||
"park_id": 8 | ||
}, | ||
{ | ||
"UriId": "williamsburg", | ||
"Name": "Busch Gardens Williamsburg", | ||
"Brand": "Busch Gardens", | ||
"Id": "45FE1F31-D4E4-4B1E-90E0-5255111070F2", | ||
"ParkId": 9, | ||
"park_id": 9 | ||
}, | ||
{ | ||
"UriId": "orlando", | ||
"Name": "Discovery Cove Orlando", | ||
"Brand": "Discovery Cove", | ||
"Id": "1FB04DFC-B6C0-4918-BE36-EE6DD14FE741", | ||
"ParkId": 12, | ||
"park_id": 12 | ||
}, | ||
{ | ||
"UriId": "orlando", | ||
"Name": "SeaWorld Orlando", | ||
"Brand": "SeaWorld", | ||
"Id": "AC3AF402-3C62-4893-8B05-822F19B9D2BC", | ||
"ParkId": 4, | ||
"park_id": 4 | ||
}, | ||
{ | ||
"UriId": "san-antonio", | ||
"Name": "SeaWorld San Antonio", | ||
"Brand": "SeaWorld", | ||
"Id": "F4040D22-8B8D-4394-AEC7-D05FA5DEA945", | ||
"ParkId": 5, | ||
"park_id": 5 | ||
}, | ||
{ | ||
"UriId": "san-diego", | ||
"Name": "SeaWorld San Diego", | ||
"Brand": "SeaWorld", | ||
"Id": "4325312F-FDF1-41FF-ABF4-361A4FF03443", | ||
"ParkId": 1, | ||
"park_id": 1 | ||
}, | ||
{ | ||
"UriId": "langhorne", | ||
"Name": "Sesame Place Langhorne", | ||
"Brand": "Sesame Place", | ||
"Id": "F7408854-28CB-4B1E-98E5-4449FE600E85", | ||
"ParkId": 7, | ||
"park_id": 7 | ||
}, | ||
{ | ||
"UriId": "san-diego", | ||
"Name": "Sesame Place San Diego", | ||
"Brand": "Sesame Place", | ||
"Id": "A988F4CE-6A81-4527-9535-DDB378689E52", | ||
"ParkId": 34, | ||
"park_id": 34 | ||
}, | ||
{ | ||
"UriId": "williamsburg", | ||
"Name": "Water Country USA", | ||
"Brand": "Water Country", | ||
"Id": "66480532-A73C-4617-9B2D-EDC4430CAB86", | ||
"ParkId": 11, | ||
"park_id": 11 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/parks/seaworld/sesame-place-langhorne/sesame-place-langhorne.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Test, TestingModule } from '@nestjs/testing'; | ||
import { SesamePlaceLanghorneService } from './sesame-place-langhorne.service'; | ||
import { SeaworldTransferService } from '../seaworld-transfer/seaworld-transfer.service'; | ||
import { HttpModule } from '@nestjs/axios'; | ||
import { ConfigModule } from '@nestjs/config'; | ||
|
||
describe('SesamePlaceLanghorneService', () => { | ||
let service: SesamePlaceLanghorneService; | ||
|
||
beforeEach(async () => { | ||
const module: TestingModule = await Test.createTestingModule({ | ||
providers: [SesamePlaceLanghorneService, SeaworldTransferService], | ||
imports: [ | ||
HttpModule, | ||
ConfigModule.forRoot() | ||
] | ||
}).compile(); | ||
|
||
service = module.get<SesamePlaceLanghorneService>(SesamePlaceLanghorneService); | ||
}); | ||
|
||
it('should be defined', () => { | ||
expect(service).toBeDefined(); | ||
}); | ||
|
||
it('should return info', () => { | ||
expect(service.getInfo().id).toBeDefined(); | ||
}); | ||
|
||
it('should return a list of POIs', async () => { | ||
const data = await service.getPois(); | ||
expect(data).toBeInstanceOf(Array); | ||
}, 1000 * 60); | ||
}); |
26 changes: 26 additions & 0 deletions
26
src/parks/seaworld/sesame-place-langhorne/sesame-place-langhorne.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Injectable } from '@nestjs/common'; | ||
import { SeaworldBaseService } from '../seaworld-base/seaworld-base.service'; | ||
import { Company, ParkType, ThemePark } from '../../../_interfaces/park.interface'; | ||
|
||
@Injectable() | ||
export class SesamePlaceLanghorneService extends SeaworldBaseService { | ||
getInfo(): ThemePark { | ||
return { | ||
countryCode: 'us', | ||
description: 'Sesame Place Philadelphia is een kinderthemapark en waterpark gebaseerd op het educatieve kindertelevisieprogramma Sesamstraat', | ||
id: 'sesame-place-philadelphia-langhorne', | ||
image: 'https://sesameplace.com/philadelphia/-/media/migrated-media/sesame-place-langhorne/images/scope/1900x700/1900x700_frontgate2.jpg?h=700&w=1900&la=en&hash=28BEF8C86BE23964B53D2450B858C938', | ||
name: 'Sesame Place Philadelphia', | ||
parkType: ParkType.THEMEPARK, | ||
company: Company.SEAWORLD, | ||
location: { | ||
lat: 40.185808, | ||
lng: -74.871976, | ||
}, | ||
}; | ||
} | ||
|
||
getParkId(): string { | ||
return 'F7408854-28CB-4B1E-98E5-4449FE600E85'; | ||
} | ||
} |
Oops, something went wrong.