npm package diff

Package: @forge/cli

Versions: 12.8.0-next.18-experimental-003d118 - 12.8.0-next.24

File: package/out/service/custom-scopes-service.d.ts

Index: package/out/service/custom-scopes-service.d.ts
===================================================================
--- package/out/service/custom-scopes-service.d.ts
+++ package/out/service/custom-scopes-service.d.ts
@@ -0,0 +1,35 @@
+import { repository } from '../custom-scopes';
+import { AppCustomScope } from '../custom-scopes/repository';
+export { AppCustomScope };
+export declare const enum Status {
+    Ok = "Ok",
+    InvalidResponseError = "InvalidResponseError",
+    FileReadError = "FileReadError",
+    YAMLParseError = "YAMLParseError",
+    ValidationError = "ValidationError",
+    RemoteError = "RemoteError"
+}
+declare type Result<S extends Status, P extends object = {}> = {
+    status: S;
+} & P;
+export declare type ListOk = Result<Status.Ok, {
+    scopes: AppCustomScope[];
+}>;
+export declare type ListError = Result<Status.InvalidResponseError>;
+export declare type CreateOk = Result<Status.Ok>;
+export declare type CreateError = Result<Status.FileReadError, {
+    path: string;
+    error: string;
+}> | Result<Status.YAMLParseError, {
+    errors: string[];
+}> | Result<Status.ValidationError, {
+    errors: string[];
+}> | Result<Status.RemoteError, {
+    errors: string[];
+}>;
+export interface Service {
+    listScopes(appId: string, environmentId: string): Promise<ListOk | ListError>;
+    createScopes(appId: string, environmentId: string, scopesFilePath: string): Promise<CreateOk | CreateError>;
+}
+export declare const create: (repo: repository.Repository) => Service;
+//# sourceMappingURL=custom-scopes-service.d.ts.map
\ No newline at end of file