Skip to content

Commit e0ad777

Browse files
committed
Restructure files
1 parent c38c837 commit e0ad777

56 files changed

Lines changed: 191 additions & 193 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

actions/gls-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"build": "vite build",
1010
"lint": "eslint .",
1111
"test": "vitest run",
12-
"start": "node dist/index.js"
12+
"start": "node dist/main.js"
1313
}
1414
}

actions/gls-action/src/definitions/configDefinition/authUrl.ts renamed to actions/gls-action/src/config/authUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {ActionSdk} from "@code0-tech/hercules";
22

3-
export function register(sdk: ActionSdk) {
3+
export default (sdk: ActionSdk) => {
44
return sdk.registerConfigDefinitions(
55
{
66
identifier: "auth_url",

actions/gls-action/src/definitions/configDefinition/clientId.ts renamed to actions/gls-action/src/config/clientId.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {ActionSdk} from "@code0-tech/hercules";
22

3-
export function register(sdk: ActionSdk) {
3+
export default (sdk: ActionSdk) => {
44
return sdk.registerConfigDefinitions(
55
{
66
identifier: "client_id",

actions/gls-action/src/definitions/configDefinition/clientSecret.ts renamed to actions/gls-action/src/config/clientSecret.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {ActionSdk} from "@code0-tech/hercules";
22

3-
export function register(sdk: ActionSdk) {
3+
export default (sdk: ActionSdk) => {
44
return sdk.registerConfigDefinitions(
55
{
66
identifier: "client_secret",

actions/gls-action/src/definitions/configDefinition/contactId.ts renamed to actions/gls-action/src/config/contactId.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {ActionSdk} from "@code0-tech/hercules";
22

3-
export function register(sdk: ActionSdk) {
3+
export default (sdk: ActionSdk) => {
44
return sdk.registerConfigDefinitions(
55
{
66
identifier: "contact_id",

actions/gls-action/src/definitions/configDefinition/defaultShipper.ts renamed to actions/gls-action/src/config/defaultShipper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {ActionSdk} from "@code0-tech/hercules";
22

3-
export function register(sdk: ActionSdk) {
3+
export default (sdk: ActionSdk) => {
44
return sdk.registerConfigDefinitions(
55
{
66
identifier: "default_shipper",

actions/gls-action/src/definitions/configDefinition/shipItApiUrl.ts renamed to actions/gls-action/src/config/shipItApiUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {ActionSdk} from "@code0-tech/hercules";
22

3-
export function register(sdk: ActionSdk) {
3+
export default (sdk: ActionSdk) => {
44
return sdk.registerConfigDefinitions(
55
{
66
identifier: "ship_it_api_url",

actions/gls-action/src/definitions/functions/cancelShipment.ts renamed to actions/gls-action/src/functions/cancelShipment.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {ActionSdk, HerculesFunctionContext, RuntimeErrorException} from "@code0-tech/hercules";
2-
import {cancelShipment} from "../../helpers";
3-
import {CancelShipmentRequestData, CancelShipmentResponseData} from "../datatypes/glsCancelShipment";
2+
import {cancelShipment} from "../helpers";
3+
import {CancelShipmentRequestData, CancelShipmentResponseData} from "../types/glsCancelShipment";
44

5-
export function register(sdk: ActionSdk) {
5+
export default (sdk: ActionSdk) => {
66
return sdk.registerFunctionDefinitions(
77
{
88
definition: {

actions/gls-action/src/definitions/functions/getAllowedServices.ts renamed to actions/gls-action/src/functions/getAllowedServices.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {ActionSdk, HerculesFunctionContext, RuntimeErrorException} from "@code0-tech/hercules";
2-
import {getAuthToken} from "../../helpers";
2+
import {getAuthToken} from "../helpers";
33
import axios from "axios";
44
import {
55
AllowedServicesRequestData,
66
AllowedServicesResponseData,
77
AllowedServicesResponseDataSchema
8-
} from "../datatypes/glsAllowedServices";
8+
} from "../types/glsAllowedServices";
99

10-
export function register(sdk: ActionSdk) {
10+
export default (sdk: ActionSdk) => {
1111
return sdk.registerFunctionDefinitions(
1212
{
1313
definition: {

actions/gls-action/src/definitions/functions/getEndOfDayReport.ts renamed to actions/gls-action/src/functions/getEndOfDayReport.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {ActionSdk, HerculesFunctionContext, RuntimeErrorException} from "@code0-tech/hercules";
2-
import {getAuthToken} from "../../helpers";
2+
import {getAuthToken} from "../helpers";
33
import axios from "axios";
4-
import {EndOfDayRequestData, EndOfDayResponseData, EndOfDayResponseDataSchema} from "../datatypes/glsEndOfDayRequest";
4+
import {EndOfDayRequestData, EndOfDayResponseData, EndOfDayResponseDataSchema} from "../types/glsEndOfDayRequest";
55

6-
export function register(sdk: ActionSdk) {
6+
export default (sdk: ActionSdk) => {
77
return sdk.registerFunctionDefinitions(
88
{
99
definition: {

0 commit comments

Comments
 (0)