@gyldendalas/gyldendal-divine-api 1.0.0 → 1.1.2
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/README.md +35 -0
- package/dist/index.cjs +1167 -1520
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1085 -1060
- package/dist/index.d.mts +1347 -0
- package/dist/index.mjs +1170 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +14 -8
- package/dist/index.d.ts +0 -1322
- package/dist/index.js +0 -1498
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
1
|
# Gyldendal Divine API
|
|
2
2
|
|
|
3
3
|
A collection of API clients for the GU-D department at Gyldendal.
|
|
4
|
+
|
|
5
|
+
## Environments
|
|
6
|
+
|
|
7
|
+
Every service resolves its base URL from the `environment` passed to the
|
|
8
|
+
constructor (the `installationpurpose` of the TYPO3 installation), unless
|
|
9
|
+
`serviceUrl` is given explicitly.
|
|
10
|
+
|
|
11
|
+
| environment | resolves to |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `production` | production services |
|
|
14
|
+
| `development`, `testing` | staging services |
|
|
15
|
+
| `local` | services running on this machine, see table below |
|
|
16
|
+
| `test` | the Playwright mock server on `https://localhost:3010/services/<name>` |
|
|
17
|
+
|
|
18
|
+
### Local services
|
|
19
|
+
|
|
20
|
+
`local` is for running the services yourself while developing. Ports follow
|
|
21
|
+
each service's own development setup where one exists, and avoid the ports
|
|
22
|
+
the frontends and sibling services already use locally (3000-3002 nuxt, 3010
|
|
23
|
+
mock server, 8000/8100 DynamoDB local, 8001 DynamoDB admin).
|
|
24
|
+
|
|
25
|
+
| service | local URL | source of the port |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| highlight | `http://localhost:3030` | `systime_highlight_server` docker-compose-development |
|
|
28
|
+
| user settings | `http://localhost:4000` | `user_settings_service` Dockerfile |
|
|
29
|
+
| pdf generator | `http://localhost:3050` | `pdf_generation_service` docker-compose-development |
|
|
30
|
+
| writing task | `http://localhost:5000` | `systime_sso` local service block |
|
|
31
|
+
| AI bot | `http://localhost:3100` | `ai-bot-service` main.py |
|
|
32
|
+
| cookie consent log | `http://localhost:1337` | `cookie_consent_service` docker-compose |
|
|
33
|
+
| tagging | `http://localhost:8010` | chosen; its uvicorn default 8000 is taken by user settings' local DynamoDB |
|
|
34
|
+
| solr proxy | `http://localhost:8090` | chosen; its uvicorn default 8000 is taken by user settings' local DynamoDB |
|
|
35
|
+
| polly | `http://localhost:3200` | chosen; its container port 3000 is taken by nuxt dev |
|
|
36
|
+
| quiz (Gale CMS) | `https://galecms.test.tibalo.dk/api` | no local Gale, shared test instance |
|
|
37
|
+
|
|
38
|
+
Run a service on a different port by passing `serviceUrl` to its constructor.
|