@automate.ax/catalog 0.133.0 → 0.134.0
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.
|
@@ -19,7 +19,7 @@ const AUTOMATE_DEPLOYMENT_READ_ACCOUNT = {
|
|
|
19
19
|
planDefaultBinding: false,
|
|
20
20
|
serviceId: "automate",
|
|
21
21
|
};
|
|
22
|
-
const AUTOMATION_CONFIG_SCHEMA = z.object({
|
|
22
|
+
const AUTOMATION_CONFIG_SCHEMA = z.object({ automation: z.string() });
|
|
23
23
|
const DEPLOYMENT_CONFIG_SCHEMA = z.object({ projectId: z.string() });
|
|
24
24
|
export const automateTriggerDefinitions = {
|
|
25
25
|
automateActionFailed: automationTrigger("automate.action.failed"),
|
|
@@ -48,8 +48,8 @@ function automationTrigger(type) {
|
|
|
48
48
|
account: AUTOMATE_PROJECT_READ_ACCOUNT,
|
|
49
49
|
getDetails: ({ config }) => [
|
|
50
50
|
{
|
|
51
|
-
label: "Automation
|
|
52
|
-
value: AUTOMATION_CONFIG_SCHEMA.parse(config).
|
|
51
|
+
label: "Automation",
|
|
52
|
+
value: AUTOMATION_CONFIG_SCHEMA.parse(config).automation,
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
55
|
type,
|
package/package.json
CHANGED
package/src/triggers/automate.ts
CHANGED
|
@@ -23,7 +23,7 @@ const AUTOMATE_DEPLOYMENT_READ_ACCOUNT = {
|
|
|
23
23
|
serviceId: "automate",
|
|
24
24
|
} as const satisfies TriggerAccountRequirement
|
|
25
25
|
|
|
26
|
-
const AUTOMATION_CONFIG_SCHEMA = z.object({
|
|
26
|
+
const AUTOMATION_CONFIG_SCHEMA = z.object({ automation: z.string() })
|
|
27
27
|
const DEPLOYMENT_CONFIG_SCHEMA = z.object({ projectId: z.string() })
|
|
28
28
|
|
|
29
29
|
export const automateTriggerDefinitions = {
|
|
@@ -66,8 +66,8 @@ function automationTrigger<TType extends string>(type: TType) {
|
|
|
66
66
|
account: AUTOMATE_PROJECT_READ_ACCOUNT,
|
|
67
67
|
getDetails: ({ config }) => [
|
|
68
68
|
{
|
|
69
|
-
label: "Automation
|
|
70
|
-
value: AUTOMATION_CONFIG_SCHEMA.parse(config).
|
|
69
|
+
label: "Automation",
|
|
70
|
+
value: AUTOMATION_CONFIG_SCHEMA.parse(config).automation,
|
|
71
71
|
},
|
|
72
72
|
],
|
|
73
73
|
type,
|