npm package diff
Package: @forge/events
Versions: 1.0.3-next.0 - 1.0.3-next.0-experimental-f44d099
File: package/out/appEvents.d.ts
Index: package/out/appEvents.d.ts
===================================================================
--- package/out/appEvents.d.ts
+++ package/out/appEvents.d.ts
@@ -0,0 +1,17 @@
+export interface AppEvent {
+ key: string;
+}
+export declare type AppEventResult = AppEventSuccess | AppEventError;
+export declare type AppEventSuccess = {
+ type: 'success';
+};
+export interface AppEventError {
+ type: 'error';
+ errorType: AppEventErrorType;
+ errorMessage: string;
+}
+export declare type AppEventErrorType = 'VALIDATION_ERROR' | 'AUTHENTICATION_ERROR' | 'AUTHORIZATION_ERROR' | 'RATE_LIMIT' | 'SERVICE_ERROR' | 'SERVICE_UNAVAILABLE' | `OTHER`;
+export declare const appEvents: {
+ publish(events: AppEvent | AppEvent[]): Promise<AppEventResult>;
+};
+//# sourceMappingURL=appEvents.d.ts.map
\ No newline at end of file