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

Commit

Permalink
Add important actions (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
bspellacy authored Oct 30, 2020
1 parent 22a7edc commit 905cd43
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "patch",
"description": "",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"scripts": {
"build": "yarn run clean && yarn tsc",
Expand Down
1 change: 1 addition & 0 deletions src/creates/create-order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const CreateOrder: ZapierCreate<CreateData> = {
noun: "order",
display: {
label: "Create Order",
important: true,
description: "Creates a new order.",
},
operation: {
Expand Down
10 changes: 9 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ export default {
beforeRequest: [addApiKeyHeader],
authentication: {
type: "custom",
fields: [{ key: "apiKey", type: "string" }],
fields: [
{
key: "apiKey",
type: "string",
helpText:
"Can be found on the [API Keys](https://dashboard.usepatch.com/api_keys) page of the Patch dashboard",
},
],
connectionLabel: "Patch",
test: async (z: ZObject): Promise<void> => {
const response = await z.request("https://api.usepatch.com/v1/orders", {
json: { page: 1 },
Expand Down
1 change: 1 addition & 0 deletions src/triggers/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const OrderTrigger: ZapierTrigger = {
noun: "order",
display: {
label: "New Order",
important: true,
description: "Triggers when a new order is created.",
},
operation: {
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type ZapierBase<BundleConfig> = {
noun: string;
display: {
label: string;
important?: boolean;
description: string;
};
operation: {
Expand Down

0 comments on commit 905cd43

Please sign in to comment.