npm package diff
Package: @forge/events
Versions: 1.0.1 - 1.0.1-experimental-93876a6
File: package/src/types.ts
Index: package/src/types.ts
===================================================================
--- package/src/types.ts
+++ package/src/types.ts
@@ -19,8 +19,28 @@
jobId: string;
time: string;
}
+export interface AppEventRequest {
+ type: string;
+}
+
+export type AppEventResult = AppEventSuccess | AppEventError;
+
+export type AppEventSuccess = {};
+
+export interface AppEventError {
+ errorType: AppEventErrorType;
+ errorMessage: string;
+}
+
+export type AppEventErrorType =
+ | 'VALIDATION_ERROR'
+ | 'AUTHENTICATION_ERROR'
+ | 'RATE_LIMIT'
+ | 'SERVICE_UNAVAILABLE'
+ | `OTHER`;
+
export interface FailedEvent {
errorMessage: string;
payload: Payload;
}