Skip to content

Commit c2e9cd3

Browse files
authored
Merge pull request #17 from code0-tech/markdown-linting
Update docs to comply with the linter
2 parents 6e233a6 + f97f4a2 commit c2e9cd3

14 files changed

Lines changed: 727 additions & 709 deletions

File tree

actions/gls-action/scripts/generateDocs.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function createGlsDocsConfig(): StandardActionDocsConfig {
1515
title: "Datatypes",
1616
description: "All data types registered by the GLS Action.",
1717
heading: "GLS Action Types",
18-
intro: `The GLS Action registers the following data types with the Hercules platform. These types are used as inputs and outputs of the GLS functions and can be referenced in your flows.`,
18+
intro: `The GLS Action registers the following data types with the Hercules platform.\nThese types are used as inputs and outputs of the GLS functions and can be referenced in your flows.`,
1919
},
2020
functionsCopy: {
2121
title: "Functions",
@@ -33,7 +33,8 @@ export function createGlsDocsConfig(): StandardActionDocsConfig {
3333
},
3434
{
3535
heading: "Shipment functions",
36-
intro: `All shipment functions accept a common set of parameters in addition to their type-specific parameters. They call the GLS ShipIT API (\`POST /rs/shipments\`) and return a \`GLS_CREATE_PARCELS_RESPONSE\`.
36+
intro: `All shipment functions accept a common set of parameters in addition to their type-specific parameters.
37+
They call the GLS ShipIT API (\`POST /rs/shipments\`) and return a \`GLS_CREATE_PARCELS_RESPONSE\`.
3738
3839
**Common parameters for all shipment functions:**
3940

actions/gls-action/src/functions/reprintParcel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default (sdk: ActionSdk) => {
1515
documentation: [
1616
{
1717
code: "en-US",
18-
content: "Reprints the label for an existing parcel. Use this if the original label is damaged, lost, or needs to be printed in a different format."
18+
content: "Reprints the label for an existing parcel.\nUse this if the original label is damaged, lost, or needs to be printed in a different format."
1919
}
2020
],
2121
displayMessage: [
@@ -33,7 +33,7 @@ export default (sdk: ActionSdk) => {
3333
description: [
3434
{
3535
code: "en-US",
36-
content: "Reprints the label for an existing parcel. Use this if the original label is damaged, lost, or needs to be printed in a different format.",
36+
content: "Reprints the label for an existing parcel.\nUse this if the original label is damaged, lost, or needs to be printed in a different format.",
3737
}
3838
],
3939
signature: "(data: GLS_REPRINT_PARCEL_REQUEST_DATA): GLS_REPRINT_PARCEL_RESPONSE_DATA",

actions/gls-action/src/functions/validateShipment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default (sdk: ActionSdk) => {
1515
documentation: [
1616
{
1717
code: "en-US",
18-
content: "Validates a shipment against the GLS API without creating it. Use this before `createShipment` functions to catch errors early."
18+
content: "Validates a shipment against the GLS API without creating it.\nUse this before `createShipment` functions to catch errors early."
1919
}
2020
],
2121
displayMessage: [
@@ -33,7 +33,7 @@ export default (sdk: ActionSdk) => {
3333
description: [
3434
{
3535
code: "en-US",
36-
content: "Validates a shipment against the GLS API without creating it. Use this before `createShipment` functions to catch errors early.",
36+
content: "Validates a shipment against the GLS API without creating it.\nUse this before `createShipment` functions to catch errors early.",
3737
}
3838
],
3939
signature: "(data: GLS_VALIDATE_SHIPMENT_REQUEST_DATA): GLS_VALIDATE_SHIPMENT_RESPONSE_DATA",

docs/Actions/GLS/configs.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ title: Configuration
33
description: All configuration options for the GLS Action, including how to obtain credentials from the GLS Developer Portal.
44
---
55

6-
# GLS Action Configuration
7-
8-
The GLS action requires a few credentials to authenticate with the GLS ShipIT API. These are set as **configuration values** in the Hercules admin panel (not as environment variables).
6+
The GLS action requires a few credentials to authenticate with the GLS ShipIT API.
7+
These are set as **configuration values** in the Hercules admin panel (not as environment variables).
98

109
---
1110

@@ -20,15 +19,16 @@ The GLS action requires a few credentials to authenticate with the GLS ShipIT AP
2019
| `auth_url` | string | No | `https://api.gls-group.net/oauth2/v2/token` | GLS OAuth2 token endpoint — must end in `/token` |
2120
| `shipper` | GLS_SHIPPER | No || Default shipper address used when no shipper is provided in the shipment data |
2221

23-
> **`contact_id`:** This identifier is required for certain shipment operations (e.g. end-of-day reports and some services). It is issued by GLS support — contact them directly to request it.
22+
> **`contact_id`:** This identifier is required for certain shipment operations (e.g. end-of-day reports and some services).
23+
> It is issued by GLS support — contact them directly to request it.
2424
2525
---
2626

2727
## How to obtain your credentials
2828

2929
### Step 1 — Create a GLS Developer account
3030

31-
1. Go to [https://dev-portal.gls-group.net/get-started](https://dev-portal.gls-group.net/get-started)
31+
1. Go to <https://dev-portal.gls-group.net/get-started>
3232
2. Click **Sign In** and register a new account, or log in with an existing GLS account
3333
3. Complete the registration and verify your email address
3434

@@ -50,13 +50,15 @@ The GLS action requires a few credentials to authenticate with the GLS ShipIT AP
5050
5151
### Step 4 — Get your Contact ID (optional)
5252

53-
The `contact_id` is not available in the developer portal. You must contact **GLS support** directly and ask them to provide you with a Contact ID linked to your GLS contract.
53+
The `contact_id` is not available in the developer portal.
54+
You must contact **GLS support** directly and ask them to provide you with a Contact ID linked to your GLS contract.
5455

5556
---
5657

5758
## API endpoints
5859

59-
GLS provides different API endpoints depending on your region and environment. The defaults point to the global production API:
60+
GLS provides different API endpoints depending on your region and environment.
61+
The defaults point to the global production API:
6062

6163
| Setting | Default URL |
6264
|---------|-------------|
@@ -71,7 +73,7 @@ If you are using a regional or sandbox endpoint, update these values accordingly
7173

7274
The GLS Action authenticates using **OAuth2 client credentials**:
7375

74-
```
76+
```text
7577
GLS Action
7678
7779
├── POST {auth_url}
@@ -85,13 +87,16 @@ GLS Action
8587
Authorization: Bearer <access_token>
8688
```
8789

88-
Tokens are **cached** and automatically refreshed 60 seconds before they expire. You do not need to manage token lifecycle manually.
90+
Tokens are **cached** and automatically refreshed 60 seconds before they expire.
91+
You do not need to manage token lifecycle manually.
8992

9093
---
9194

9295
## Default shipper
9396

94-
The optional `shipper` config allows you to set a **default sender address** that is applied to all shipments when no shipper is explicitly provided in the shipment data. This is useful when all your shipments originate from the same address.
97+
The optional `shipper` config allows you to set a **default sender address** that is applied to all shipments when
98+
no shipper is explicitly provided in the shipment data.
99+
This is useful when all your shipments originate from the same address.
95100

96101
The value must be a valid `GLS_SHIPPER` object:
97102

docs/Actions/GLS/events.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ title: Trigger
33
description: Events emitted by the GLS Action — what they are, how they trigger flows in Aquila, and what future events are planned.
44
---
55

6-
# GLS Action Events
6+
## GLS Action Events
77

8-
In the Hercules platform, **events** are notifications emitted **by an action** that trigger flows in Aquila. They are the opposite of functions: instead of a flow calling the action, the action pushes data to Aquila, which starts any flows that are listening for that event type.
8+
In the Hercules platform, **events** are notifications emitted **by an action** that trigger flows in Aquila.
9+
They are the opposite of functions: instead of a flow calling the action, the action pushes data to Aquila, which starts
10+
any flows that are listening for that event type.
911

1012
---
1113

1214
## Current status
1315

1416
> **The GLS Action does not currently emit any events.**
1517
>
16-
> The GLS action presently only exposes **functions** (called by flows) and registers **data types** and **configuration**. Event support — where the action proactively notifies Aquila of changes — is **planned for a future release**.
18+
> The GLS action presently only exposes **functions** (called by flows) and registers **data types** and **configuration**.
19+
> Event support — where the action proactively notifies Aquila of changes — is **planned for a future release**.
1720
18-
---
21+
---

0 commit comments

Comments
 (0)