diff --git a/actions/gls-action/package-lock.json b/actions/gls-action/package-lock.json index 161d6b4..51ce62f 100644 --- a/actions/gls-action/package-lock.json +++ b/actions/gls-action/package-lock.json @@ -8,7 +8,7 @@ "name": "@code0-tech/gls-action", "version": "1.0.0", "dependencies": { - "@code0-tech/hercules": "^1.1.0", + "@code0-tech/hercules": "^1.1.1", "axios": "^1.7.7" }, "devDependencies": { @@ -41,9 +41,9 @@ } }, "node_modules/@code0-tech/hercules": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@code0-tech/hercules/-/hercules-1.1.0.tgz", - "integrity": "sha512-DAEpw1XKUTDLWDQAYYe25vw3l3YppAWxRrUL+S6nvw3/hiqLsKUCjpLFUlsl1mXeRXaE0zgb5zsXzWnkBW5GoA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@code0-tech/hercules/-/hercules-1.1.1.tgz", + "integrity": "sha512-YAC/jvIPu+N4xvAHeJIPiEMG8+34Buee1B88g8mslTI0oCgYRor03P/DT1Wmq1E8q2Gl722n8L6aELEszpR76Q==", "license": "ISC", "bin": { "hercules": "bin/hercules.js" diff --git a/actions/gls-action/package.json b/actions/gls-action/package.json index aa0e5ba..20d81f2 100644 --- a/actions/gls-action/package.json +++ b/actions/gls-action/package.json @@ -12,7 +12,7 @@ "start": "node dist/index.js" }, "dependencies": { - "@code0-tech/hercules": "^1.1.0", + "@code0-tech/hercules": "^1.1.1", "axios": "^1.7.7" }, "devDependencies": { diff --git a/actions/shopify-action/package-lock.json b/actions/shopify-action/package-lock.json index 0387832..086ffc5 100644 --- a/actions/shopify-action/package-lock.json +++ b/actions/shopify-action/package-lock.json @@ -8,7 +8,7 @@ "name": "@code0-tech/shopify-action", "version": "1.0.0", "dependencies": { - "@code0-tech/hercules": "^1.1.0", + "@code0-tech/hercules": "^1.1.1", "axios": "^1.7.7", "shopify-webhook-schemas": "^0.3.7" }, @@ -48,9 +48,9 @@ "license": "BSD-3-Clause" }, "node_modules/@code0-tech/hercules": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@code0-tech/hercules/-/hercules-1.1.0.tgz", - "integrity": "sha512-DAEpw1XKUTDLWDQAYYe25vw3l3YppAWxRrUL+S6nvw3/hiqLsKUCjpLFUlsl1mXeRXaE0zgb5zsXzWnkBW5GoA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@code0-tech/hercules/-/hercules-1.1.1.tgz", + "integrity": "sha512-YAC/jvIPu+N4xvAHeJIPiEMG8+34Buee1B88g8mslTI0oCgYRor03P/DT1Wmq1E8q2Gl722n8L6aELEszpR76Q==", "license": "ISC", "bin": { "hercules": "bin/hercules.js" diff --git a/actions/shopify-action/package.json b/actions/shopify-action/package.json index 9882319..527c10b 100644 --- a/actions/shopify-action/package.json +++ b/actions/shopify-action/package.json @@ -12,7 +12,7 @@ "start": "node dist/index.js" }, "dependencies": { - "@code0-tech/hercules": "^1.1.0", + "@code0-tech/hercules": "^1.1.1", "axios": "^1.7.7", "shopify-webhook-schemas": "^0.3.7" }, diff --git a/actions/shopware-action/package-lock.json b/actions/shopware-action/package-lock.json index 9f97c62..fe8622d 100644 --- a/actions/shopware-action/package-lock.json +++ b/actions/shopware-action/package-lock.json @@ -8,7 +8,7 @@ "name": "@code0-tech/shopware-action", "version": "1.0.0", "dependencies": { - "@code0-tech/hercules": "^1.1.0", + "@code0-tech/hercules": "^1.1.1", "axios": "^1.7.7" }, "devDependencies": { @@ -357,9 +357,9 @@ } }, "node_modules/@code0-tech/hercules": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@code0-tech/hercules/-/hercules-1.1.0.tgz", - "integrity": "sha512-DAEpw1XKUTDLWDQAYYe25vw3l3YppAWxRrUL+S6nvw3/hiqLsKUCjpLFUlsl1mXeRXaE0zgb5zsXzWnkBW5GoA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@code0-tech/hercules/-/hercules-1.1.1.tgz", + "integrity": "sha512-YAC/jvIPu+N4xvAHeJIPiEMG8+34Buee1B88g8mslTI0oCgYRor03P/DT1Wmq1E8q2Gl722n8L6aELEszpR76Q==", "license": "ISC", "bin": { "hercules": "bin/hercules.js" diff --git a/actions/shopware-action/package.json b/actions/shopware-action/package.json index 0fa3daf..d9fae4b 100644 --- a/actions/shopware-action/package.json +++ b/actions/shopware-action/package.json @@ -13,7 +13,7 @@ "start": "node dist/index.js" }, "dependencies": { - "@code0-tech/hercules": "^1.1.0", + "@code0-tech/hercules": "^1.1.1", "axios": "^1.7.7" }, "devDependencies": { diff --git a/actions/shopware-action/src/data_types/shopwareCountry.ts b/actions/shopware-action/src/data_types/shopwareCountry.ts new file mode 100644 index 0000000..4a80081 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareCountry.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareCountry") +@Name({code: "en-US", content: "ShopwareCountry"}) +@Schema(schemas.Country) +export class ShopwareCountry { +} diff --git a/actions/shopware-action/src/data_types/shopwareCountryState.ts b/actions/shopware-action/src/data_types/shopwareCountryState.ts new file mode 100644 index 0000000..22852c8 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareCountryState.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareCountryState") +@Name({code: "en-US", content: "ShopwareCountryState"}) +@Schema(schemas.CountryState) +export class ShopwareCountryState { +} diff --git a/actions/shopware-action/src/data_types/shopwareCurrency.ts b/actions/shopware-action/src/data_types/shopwareCurrency.ts new file mode 100644 index 0000000..86540b0 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareCurrency.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareCurrency") +@Name({code: "en-US", content: "ShopwareCurrency"}) +@Schema(schemas.Currency) +export class ShopwareCurrency { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrder.ts b/actions/shopware-action/src/data_types/shopwareOrder.ts new file mode 100644 index 0000000..3ea2e3b --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrder.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrder") +@Name({code: "en-US", content: "ShopwareOrder"}) +@Schema(schemas.Order) +export class ShopwareOrder { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderAddress.ts b/actions/shopware-action/src/data_types/shopwareOrderAddress.ts new file mode 100644 index 0000000..75fc5ff --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderAddress.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderAddress") +@Name({code: "en-US", content: "ShopwareOrderAddress"}) +@Schema(schemas.OrderAddress) +export class ShopwareOrderAddress { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderCustomer.ts b/actions/shopware-action/src/data_types/shopwareOrderCustomer.ts new file mode 100644 index 0000000..ba4eef0 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderCustomer.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderCustomer") +@Name({code: "en-US", content: "ShopwareOrderCustomer"}) +@Schema(schemas.OrderCustomer) +export class ShopwareOrderCustomer { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderDelivery.ts b/actions/shopware-action/src/data_types/shopwareOrderDelivery.ts new file mode 100644 index 0000000..225d89c --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderDelivery.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderDelivery") +@Name({code: "en-US", content: "ShopwareOrderDelivery"}) +@Schema(schemas.OrderDelivery) +export class ShopwareOrderDelivery { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderDeliveryPosition.ts b/actions/shopware-action/src/data_types/shopwareOrderDeliveryPosition.ts new file mode 100644 index 0000000..7738519 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderDeliveryPosition.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderDeliveryPosition") +@Name({code: "en-US", content: "ShopwareOrderDeliveryPosition"}) +@Schema(schemas.OrderDeliveryPosition) +export class ShopwareOrderDeliveryPosition { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderLineItem.ts b/actions/shopware-action/src/data_types/shopwareOrderLineItem.ts new file mode 100644 index 0000000..f84944c --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderLineItem.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderLineItem") +@Name({code: "en-US", content: "ShopwareOrderLineItem"}) +@Schema(schemas.OrderLineItem) +export class ShopwareOrderLineItem { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderLineItemDownload.ts b/actions/shopware-action/src/data_types/shopwareOrderLineItemDownload.ts new file mode 100644 index 0000000..4b7c138 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderLineItemDownload.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderLineItemDownload") +@Name({code: "en-US", content: "ShopwareOrderLineItemDownload"}) +@Schema(schemas.OrderLineItemDownload) +export class ShopwareOrderLineItemDownload { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderTransaction.ts b/actions/shopware-action/src/data_types/shopwareOrderTransaction.ts new file mode 100644 index 0000000..a6af414 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderTransaction.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderTransaction") +@Name({code: "en-US", content: "ShopwareOrderTransaction"}) +@Schema(schemas.OrderTransaction) +export class ShopwareOrderTransaction { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderTransactionCapture.ts b/actions/shopware-action/src/data_types/shopwareOrderTransactionCapture.ts new file mode 100644 index 0000000..c6aca46 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderTransactionCapture.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderTransactionCapture") +@Name({code: "en-US", content: "ShopwareOrderTransactionCapture"}) +@Schema(schemas.OrderTransactionCapture) +export class ShopwareOrderTransactionCapture { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderTransactionCaptureRefund.ts b/actions/shopware-action/src/data_types/shopwareOrderTransactionCaptureRefund.ts new file mode 100644 index 0000000..5a41bea --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderTransactionCaptureRefund.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderTransactionCaptureRefund") +@Name({code: "en-US", content: "ShopwareOrderTransactionCaptureRefund"}) +@Schema(schemas.OrderTransactionCaptureRefund) +export class ShopwareOrderTransactionCaptureRefund { +} diff --git a/actions/shopware-action/src/data_types/shopwareOrderTransactionCaptureRefundPosition.ts b/actions/shopware-action/src/data_types/shopwareOrderTransactionCaptureRefundPosition.ts new file mode 100644 index 0000000..981deda --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareOrderTransactionCaptureRefundPosition.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareOrderTransactionCaptureRefundPosition") +@Name({code: "en-US", content: "ShopwareOrderTransactionCaptureRefundPosition"}) +@Schema(schemas.OrderTransactionCaptureRefundPosition) +export class ShopwareOrderTransactionCaptureRefundPosition { +} diff --git a/actions/shopware-action/src/data_types/shopwareSalutation.ts b/actions/shopware-action/src/data_types/shopwareSalutation.ts new file mode 100644 index 0000000..de66eb4 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareSalutation.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareSalutation") +@Name({code: "en-US", content: "ShopwareSalutation"}) +@Schema(schemas.Salutation) +export class ShopwareSalutation { +} diff --git a/actions/shopware-action/src/data_types/shopwareStateMachineState.ts b/actions/shopware-action/src/data_types/shopwareStateMachineState.ts new file mode 100644 index 0000000..bc71954 --- /dev/null +++ b/actions/shopware-action/src/data_types/shopwareStateMachineState.ts @@ -0,0 +1,8 @@ +import {Identifier, Name, Schema} from "@code0-tech/hercules"; +import {schemas} from "../generated/shopware-schemas.ts"; + +@Identifier("ShopwareStateMachineState") +@Name({code: "en-US", content: "ShopwareStateMachineState"}) +@Schema(schemas.StateMachineState) +export class ShopwareStateMachineState { +} diff --git a/actions/shopware-action/src/index.ts b/actions/shopware-action/src/index.ts index 67b1d2d..4eb024e 100644 --- a/actions/shopware-action/src/index.ts +++ b/actions/shopware-action/src/index.ts @@ -2,6 +2,22 @@ import {Action, CodeZeroEvent} from "@code0-tech/hercules"; import {ShopwareOrderPlacedWebhookPayload} from "./data_types/shopwareOrderPlacedWebhookPayload.ts"; import {ShopwareOrderCancelledWebhookPayload} from "./data_types/shopwareOrderCancelledWebhookPayload.ts"; import {ShopwareOrderPaidWebhookPayload} from "./data_types/shopwareOrderPaidWebhookPayload.ts"; +import {ShopwareOrder} from "./data_types/shopwareOrder.ts"; +import {ShopwareOrderDelivery} from "./data_types/shopwareOrderDelivery.ts"; +import {ShopwareOrderDeliveryPosition} from "./data_types/shopwareOrderDeliveryPosition.ts"; +import {ShopwareOrderLineItem} from "./data_types/shopwareOrderLineItem.ts"; +import {ShopwareOrderLineItemDownload} from "./data_types/shopwareOrderLineItemDownload.ts"; +import {ShopwareOrderTransaction} from "./data_types/shopwareOrderTransaction.ts"; +import {ShopwareOrderTransactionCapture} from "./data_types/shopwareOrderTransactionCapture.ts"; +import {ShopwareOrderTransactionCaptureRefund} from "./data_types/shopwareOrderTransactionCaptureRefund.ts"; +import {ShopwareOrderTransactionCaptureRefundPosition} from "./data_types/shopwareOrderTransactionCaptureRefundPosition.ts"; +import {ShopwareOrderCustomer} from "./data_types/shopwareOrderCustomer.ts"; +import {ShopwareOrderAddress} from "./data_types/shopwareOrderAddress.ts"; +import {ShopwareStateMachineState} from "./data_types/shopwareStateMachineState.ts"; +import {ShopwareSalutation} from "./data_types/shopwareSalutation.ts"; +import {ShopwareCurrency} from "./data_types/shopwareCurrency.ts"; +import {ShopwareCountry} from "./data_types/shopwareCountry.ts"; +import {ShopwareCountryState} from "./data_types/shopwareCountryState.ts"; import {ShopwareOrderPlacedWebhook} from "./events/shopwareOrderPlacedWebhook.ts"; import {ShopwareOrderCancelledWebhook} from "./events/shopwareOrderCancelledWebhook.ts"; import {ShopwareOrderPaidWebhook} from "./events/shopwareOrderPaidWebhook.ts"; @@ -17,6 +33,22 @@ const action = new Action( [] ) +action.registerDataTypeClass(ShopwareOrder) +action.registerDataTypeClass(ShopwareOrderDelivery) +action.registerDataTypeClass(ShopwareOrderDeliveryPosition) +action.registerDataTypeClass(ShopwareOrderLineItem) +action.registerDataTypeClass(ShopwareOrderLineItemDownload) +action.registerDataTypeClass(ShopwareOrderTransaction) +action.registerDataTypeClass(ShopwareOrderTransactionCapture) +action.registerDataTypeClass(ShopwareOrderTransactionCaptureRefund) +action.registerDataTypeClass(ShopwareOrderTransactionCaptureRefundPosition) +action.registerDataTypeClass(ShopwareOrderCustomer) +action.registerDataTypeClass(ShopwareOrderAddress) +action.registerDataTypeClass(ShopwareStateMachineState) +action.registerDataTypeClass(ShopwareSalutation) +action.registerDataTypeClass(ShopwareCurrency) +action.registerDataTypeClass(ShopwareCountry) +action.registerDataTypeClass(ShopwareCountryState) action.registerDataTypeClass(ShopwareOrderPlacedWebhookPayload) action.registerDataTypeClass(ShopwareOrderCancelledWebhookPayload) action.registerDataTypeClass(ShopwareOrderPaidWebhookPayload) diff --git a/actions/woocommerce-action/package-lock.json b/actions/woocommerce-action/package-lock.json index a74d358..83f14bf 100644 --- a/actions/woocommerce-action/package-lock.json +++ b/actions/woocommerce-action/package-lock.json @@ -8,7 +8,7 @@ "name": "@code0-tech/woocommerce-action", "version": "1.0.0", "dependencies": { - "@code0-tech/hercules": "^1.1.0", + "@code0-tech/hercules": "^1.1.1", "axios": "^1.7.7" }, "devDependencies": { @@ -357,9 +357,9 @@ } }, "node_modules/@code0-tech/hercules": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@code0-tech/hercules/-/hercules-1.1.0.tgz", - "integrity": "sha512-DAEpw1XKUTDLWDQAYYe25vw3l3YppAWxRrUL+S6nvw3/hiqLsKUCjpLFUlsl1mXeRXaE0zgb5zsXzWnkBW5GoA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@code0-tech/hercules/-/hercules-1.1.1.tgz", + "integrity": "sha512-YAC/jvIPu+N4xvAHeJIPiEMG8+34Buee1B88g8mslTI0oCgYRor03P/DT1Wmq1E8q2Gl722n8L6aELEszpR76Q==", "license": "ISC", "bin": { "hercules": "bin/hercules.js" diff --git a/actions/woocommerce-action/package.json b/actions/woocommerce-action/package.json index 876acf9..ca2f8dd 100644 --- a/actions/woocommerce-action/package.json +++ b/actions/woocommerce-action/package.json @@ -13,7 +13,7 @@ "start": "node dist/index.js" }, "dependencies": { - "@code0-tech/hercules": "^1.1.0", + "@code0-tech/hercules": "^1.1.1", "axios": "^1.7.7" }, "devDependencies": {