@automatisch/types
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -7,3 +7,9 @@ import type { AxiosInstance, AxiosRequestConfig } from 'axios'; | ||
export type IJSONValue = string | number | boolean | IJSONObject | IJSONArray; | ||
export type IJSONValue = | ||
| string | ||
| number | ||
| boolean | ||
| null | ||
| IJSONObject | ||
| IJSONArray; | ||
export type IJSONArray = Array<IJSONValue>; | ||
@@ -58,3 +64,3 @@ export interface IJSONObject { | ||
iconUrl: string; | ||
webhookUrl: string; | ||
webhookUrl?: string; | ||
type: 'action' | 'trigger'; | ||
@@ -240,4 +246,7 @@ connectionId?: string; | ||
type?: 'webhook' | 'polling'; | ||
showWebhookUrl?: boolean; | ||
pollInterval?: number; | ||
description: string; | ||
useSingletonWebhook?: boolean; | ||
singletonWebhookRefValueParameter?: string; | ||
getInterval?(parameters: IStep['parameters']): string; | ||
@@ -248,3 +257,2 @@ run?($: IGlobalVariable): Promise<void>; | ||
unregisterHook?($: IGlobalVariable): Promise<void>; | ||
sort?(item: ITriggerItem, nextItem: ITriggerItem): number; | ||
} | ||
@@ -307,3 +315,3 @@ | ||
}; | ||
app: IApp; | ||
app?: IApp; | ||
http?: IHttpClient; | ||
@@ -333,4 +341,5 @@ request?: IRequest; | ||
}; | ||
lastExecutionStep?: IExecutionStep; | ||
getLastExecutionStep?: () => Promise<IExecutionStep>; | ||
webhookUrl?: string; | ||
singletonWebhookUrl?: string; | ||
triggerOutput?: ITriggerOutput; | ||
@@ -347,3 +356,3 @@ actionOutput?: IActionOutput; | ||
productId: string; | ||
} | ||
}; | ||
@@ -364,3 +373,3 @@ export type TSubscription = { | ||
}; | ||
} | ||
}; | ||
@@ -372,3 +381,3 @@ type TBillingCardAction = TBillingTextCardAction | TBillingLinkCardAction; | ||
text: string; | ||
} | ||
}; | ||
@@ -379,11 +388,11 @@ type TBillingLinkCardAction = { | ||
src: string; | ||
} | ||
}; | ||
type TInvoice = { | ||
id: number | ||
amount: number | ||
currency: string | ||
payout_date: string | ||
receipt_url: string | ||
} | ||
id: number; | ||
amount: number; | ||
currency: string; | ||
payout_date: string; | ||
receipt_url: string; | ||
}; | ||
@@ -398,2 +407,7 @@ declare module 'axios' { | ||
} | ||
// ref: https://github.com/axios/axios/issues/5095 | ||
interface AxiosInstance { | ||
create(config?: CreateAxiosDefaults): AxiosInstance; | ||
} | ||
} | ||
@@ -400,0 +414,0 @@ |
{ | ||
"name": "@automatisch/types", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"license": "See LICENSE file", | ||
@@ -20,3 +20,3 @@ "description": "Type definitions for automatisch", | ||
}, | ||
"gitHead": "41a67b402d7021294c085ed1b86eef2ee15679d3" | ||
"gitHead": "067ec2eb9ce1db80469d8557167f3b0118f49d4b" | ||
} |
9337
362