@automate.ax/api-contract 0.164.0 → 0.165.1
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.
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +2 -0
- package/dist/events/uber.d.ts +6 -0
- package/dist/events/uber.js +16 -0
- package/dist/index.d.ts +3 -0
- package/package.json +4 -4
- package/src/events/index.ts +2 -0
- package/src/events/uber.ts +18 -0
package/dist/events/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export declare const eventsContract: {
|
|
|
7
7
|
sourceId: import("zod").ZodString;
|
|
8
8
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
9
9
|
vercelEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
10
|
+
uberEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
11
|
+
customerId: import("zod").ZodString;
|
|
12
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
10
13
|
trelloEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
11
14
|
sourceId: import("zod").ZodString;
|
|
12
15
|
action: import("zod").ZodObject<{
|
package/dist/events/index.js
CHANGED
|
@@ -32,6 +32,7 @@ import { squareEventsContract } from "./square.js";
|
|
|
32
32
|
import { stripeEventsContract } from "./stripe.js";
|
|
33
33
|
import { tallyEventsContract } from "./tally.js";
|
|
34
34
|
import { trelloEventsContract } from "./trello.js";
|
|
35
|
+
import { uberEventsContract } from "./uber.js";
|
|
35
36
|
import { vercelEventsContract } from "./vercel.js";
|
|
36
37
|
import { webflowEventsContract } from "./webflow.js";
|
|
37
38
|
import { whatsappEventsContract } from "./whatsapp.js";
|
|
@@ -70,6 +71,7 @@ export const eventsContract = {
|
|
|
70
71
|
...stripeEventsContract,
|
|
71
72
|
...tallyEventsContract,
|
|
72
73
|
...trelloEventsContract,
|
|
74
|
+
...uberEventsContract,
|
|
73
75
|
...vercelEventsContract,
|
|
74
76
|
...webflowEventsContract,
|
|
75
77
|
...whatsappEventsContract,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export declare const uberEventsContract: {
|
|
3
|
+
uberEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
+
customerId: z.ZodString;
|
|
5
|
+
}, z.core.$loose>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
export const uberEventsContract = {
|
|
4
|
+
uberEvent: oc
|
|
5
|
+
.route({
|
|
6
|
+
description: "Receives signed delivery, courier, and refund webhooks from Uber Direct for one customer.",
|
|
7
|
+
method: "POST",
|
|
8
|
+
operationId: "receiveUberEvent",
|
|
9
|
+
path: "/events/uber/{customerId}",
|
|
10
|
+
successStatus: 200,
|
|
11
|
+
summary: "Receive an Uber Direct event",
|
|
12
|
+
tags: ["Events"],
|
|
13
|
+
})
|
|
14
|
+
.input(z.looseObject({ customerId: z.string() }))
|
|
15
|
+
.output(z.void()),
|
|
16
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -3455,6 +3455,9 @@ export declare const contract: {
|
|
|
3455
3455
|
sourceId: import("zod").ZodString;
|
|
3456
3456
|
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3457
3457
|
vercelEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$loose>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
3458
|
+
uberEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3459
|
+
customerId: import("zod").ZodString;
|
|
3460
|
+
}, import("zod/v4/core").$loose>, import("zod").ZodVoid, Record<never, never>, Record<never, never>>;
|
|
3458
3461
|
trelloEvent: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3459
3462
|
sourceId: import("zod").ZodString;
|
|
3460
3463
|
action: import("zod").ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.165.1",
|
|
4
4
|
"description": "Public oRPC contract for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.automate.ax",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@ai-sdk/gateway": "4.0.87",
|
|
26
|
-
"@automate.ax/catalog": "0.
|
|
27
|
-
"@automate.ax/codec": "0.
|
|
28
|
-
"@automate.ax/integration-contracts": "0.
|
|
26
|
+
"@automate.ax/catalog": "0.165.1",
|
|
27
|
+
"@automate.ax/codec": "0.165.1",
|
|
28
|
+
"@automate.ax/integration-contracts": "0.165.1",
|
|
29
29
|
"@orpc/contract": "1.15.0",
|
|
30
30
|
"fast-json-stable-stringify": "^2.1.0",
|
|
31
31
|
"zod": "^4.3.6"
|
package/src/events/index.ts
CHANGED
|
@@ -32,6 +32,7 @@ import { squareEventsContract } from "./square"
|
|
|
32
32
|
import { stripeEventsContract } from "./stripe"
|
|
33
33
|
import { tallyEventsContract } from "./tally"
|
|
34
34
|
import { trelloEventsContract } from "./trello"
|
|
35
|
+
import { uberEventsContract } from "./uber"
|
|
35
36
|
import { vercelEventsContract } from "./vercel"
|
|
36
37
|
import { webflowEventsContract } from "./webflow"
|
|
37
38
|
import { whatsappEventsContract } from "./whatsapp"
|
|
@@ -71,6 +72,7 @@ export const eventsContract = {
|
|
|
71
72
|
...stripeEventsContract,
|
|
72
73
|
...tallyEventsContract,
|
|
73
74
|
...trelloEventsContract,
|
|
75
|
+
...uberEventsContract,
|
|
74
76
|
...vercelEventsContract,
|
|
75
77
|
...webflowEventsContract,
|
|
76
78
|
...whatsappEventsContract,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { oc } from "@orpc/contract"
|
|
2
|
+
import * as z from "zod"
|
|
3
|
+
|
|
4
|
+
export const uberEventsContract = {
|
|
5
|
+
uberEvent: oc
|
|
6
|
+
.route({
|
|
7
|
+
description:
|
|
8
|
+
"Receives signed delivery, courier, and refund webhooks from Uber Direct for one customer.",
|
|
9
|
+
method: "POST",
|
|
10
|
+
operationId: "receiveUberEvent",
|
|
11
|
+
path: "/events/uber/{customerId}",
|
|
12
|
+
successStatus: 200,
|
|
13
|
+
summary: "Receive an Uber Direct event",
|
|
14
|
+
tags: ["Events"],
|
|
15
|
+
})
|
|
16
|
+
.input(z.looseObject({ customerId: z.string() }))
|
|
17
|
+
.output(z.void()),
|
|
18
|
+
}
|