You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: actions/gls-action/scripts/generateDocs.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ export function createGlsDocsConfig(): StandardActionDocsConfig {
15
15
title: "Datatypes",
16
16
description: "All data types registered by the GLS Action.",
17
17
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.`,
19
19
},
20
20
functionsCopy: {
21
21
title: "Functions",
@@ -33,7 +33,8 @@ export function createGlsDocsConfig(): StandardActionDocsConfig {
33
33
},
34
34
{
35
35
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\`.
Copy file name to clipboardExpand all lines: docs/Actions/GLS/configs.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,8 @@ title: Configuration
3
3
description: All configuration options for the GLS Action, including how to obtain credentials from the GLS Developer Portal.
4
4
---
5
5
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).
9
8
10
9
---
11
10
@@ -20,15 +19,16 @@ The GLS action requires a few credentials to authenticate with the GLS ShipIT AP
20
19
|`auth_url`| string | No |`https://api.gls-group.net/oauth2/v2/token`| GLS OAuth2 token endpoint — must end in `/token`|
21
20
|`shipper`| GLS_SHIPPER | No | — | Default shipper address used when no shipper is provided in the shipment data |
22
21
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.
24
24
25
25
---
26
26
27
27
## How to obtain your credentials
28
28
29
29
### Step 1 — Create a GLS Developer account
30
30
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>
32
32
2. Click **Sign In** and register a new account, or log in with an existing GLS account
33
33
3. Complete the registration and verify your email address
34
34
@@ -50,13 +50,15 @@ The GLS action requires a few credentials to authenticate with the GLS ShipIT AP
50
50
51
51
### Step 4 — Get your Contact ID (optional)
52
52
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.
54
55
55
56
---
56
57
57
58
## API endpoints
58
59
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:
60
62
61
63
| Setting | Default URL |
62
64
|---------|-------------|
@@ -71,7 +73,7 @@ If you are using a regional or sandbox endpoint, update these values accordingly
71
73
72
74
The GLS Action authenticates using **OAuth2 client credentials**:
73
75
74
-
```
76
+
```text
75
77
GLS Action
76
78
│
77
79
├── POST {auth_url}
@@ -85,13 +87,16 @@ GLS Action
85
87
Authorization: Bearer <access_token>
86
88
```
87
89
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.
89
92
90
93
---
91
94
92
95
## Default shipper
93
96
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.
Copy file name to clipboardExpand all lines: docs/Actions/GLS/events.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,19 @@ title: Trigger
3
3
description: Events emitted by the GLS Action — what they are, how they trigger flows in Aquila, and what future events are planned.
4
4
---
5
5
6
-
# GLS Action Events
6
+
##GLS Action Events
7
7
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.
9
11
10
12
---
11
13
12
14
## Current status
13
15
14
16
> **The GLS Action does not currently emit any events.**
15
17
>
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**.
0 commit comments