Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit 905cd43

Browse files
authored
Add important actions (#7)
1 parent 22a7edc commit 905cd43

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "patch",
44
"description": "",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"main": "index.js",
77
"scripts": {
88
"build": "yarn run clean && yarn tsc",

src/creates/create-order.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const CreateOrder: ZapierCreate<CreateData> = {
2525
noun: "order",
2626
display: {
2727
label: "Create Order",
28+
important: true,
2829
description: "Creates a new order.",
2930
},
3031
operation: {

src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ export default {
2626
beforeRequest: [addApiKeyHeader],
2727
authentication: {
2828
type: "custom",
29-
fields: [{ key: "apiKey", type: "string" }],
29+
fields: [
30+
{
31+
key: "apiKey",
32+
type: "string",
33+
helpText:
34+
"Can be found on the [API Keys](https://dashboard.usepatch.com/api_keys) page of the Patch dashboard",
35+
},
36+
],
37+
connectionLabel: "Patch",
3038
test: async (z: ZObject): Promise<void> => {
3139
const response = await z.request("https://api.usepatch.com/v1/orders", {
3240
json: { page: 1 },

src/triggers/order.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const OrderTrigger: ZapierTrigger = {
1515
noun: "order",
1616
display: {
1717
label: "New Order",
18+
important: true,
1819
description: "Triggers when a new order is created.",
1920
},
2021
operation: {

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type ZapierBase<BundleConfig> = {
99
noun: string;
1010
display: {
1111
label: string;
12+
important?: boolean;
1213
description: string;
1314
};
1415
operation: {

0 commit comments

Comments
 (0)