@oh-my-ghaad/core 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -31,7 +31,7 @@ interface AdapterProps {
|
|
|
31
31
|
scopes: string[];
|
|
32
32
|
}
|
|
33
33
|
type Subscription = (collections: Collection[]) => void | Promise<void>;
|
|
34
|
-
interface RepositoryResponse {
|
|
34
|
+
interface RepositoryResponse$1 {
|
|
35
35
|
id: string | number;
|
|
36
36
|
org: string;
|
|
37
37
|
name: string;
|
|
@@ -60,7 +60,7 @@ interface IAdapter extends AdapterProps {
|
|
|
60
60
|
readonly secondaryColor: string;
|
|
61
61
|
readonly oauthUrl: string;
|
|
62
62
|
readonly baseUrl: string;
|
|
63
|
-
fetchRepositories(): Promise<RepositoryResponse[]>;
|
|
63
|
+
fetchRepositories(): Promise<RepositoryResponse$1[]>;
|
|
64
64
|
fetchFile(filePath: string): Promise<string>;
|
|
65
65
|
fetchFileHistory(filePath: string): Promise<CommitResponse[]>;
|
|
66
66
|
fetchDirectory(directoryPath: string): Promise<string[]>;
|
|
@@ -83,12 +83,12 @@ declare class Adapter implements AdapterProps {
|
|
|
83
83
|
clientId: string;
|
|
84
84
|
redirectUri: string;
|
|
85
85
|
token: string | null;
|
|
86
|
-
repo: RepositoryResponse | null;
|
|
86
|
+
repo: RepositoryResponse$1 | null;
|
|
87
87
|
accessManagementUrl: string;
|
|
88
88
|
scopes: string[];
|
|
89
89
|
protected unauthorizedHandler: (() => void | Promise<void>) | null;
|
|
90
90
|
constructor(props: AdapterProps);
|
|
91
|
-
setRepo(repo: RepositoryResponse | null): void;
|
|
91
|
+
setRepo(repo: RepositoryResponse$1 | null): void;
|
|
92
92
|
setToken(token: string | null): void;
|
|
93
93
|
setUnauthorizedHandler(handler: () => void | Promise<void>): void;
|
|
94
94
|
}
|
|
@@ -130,7 +130,7 @@ type RepoConfig = z.infer<typeof repoConfigSchema> & {
|
|
|
130
130
|
status: RepoStatus;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
interface RepositoryResponse
|
|
133
|
+
interface RepositoryResponse {
|
|
134
134
|
id: string | number;
|
|
135
135
|
org: string;
|
|
136
136
|
name: string;
|
|
@@ -155,7 +155,7 @@ declare class Engine {
|
|
|
155
155
|
subscribe(subscription: Subscription): void;
|
|
156
156
|
unsubscribe(subscription: Subscription): void;
|
|
157
157
|
private notifySubscribers;
|
|
158
|
-
setRepo(repo: RepositoryResponse
|
|
158
|
+
setRepo(repo: RepositoryResponse | null): void;
|
|
159
159
|
getRepoStatus(): RepoStatus;
|
|
160
160
|
getAppConfig(): {
|
|
161
161
|
appName?: string;
|
|
@@ -190,4 +190,4 @@ declare class Engine {
|
|
|
190
190
|
fetchPullRequests(force?: boolean): Promise<PrResponse[]>;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
export { Adapter, type AdapterProps, type AppConfig, type BaseCollectionItem, Collection, type CollectionItemStatus, type CollectionStatus, type CommitRequest, type CommitResponse, Engine, type IAdapter, type InvalidRepoStatus, type PendingCollectionItemType, type PrRequest, type PrResponse, type RepoConfig, type RepoStatus, type RepositoryResponse, type Subscription, type ValidRepoStatus, appConfigSchema, repoConfigSchema };
|
|
193
|
+
export { Adapter, type AdapterProps, type AppConfig, type BaseCollectionItem, Collection, type CollectionItemStatus, type CollectionStatus, type CommitRequest, type CommitResponse, Engine, type IAdapter, type InvalidRepoStatus, type PendingCollectionItemType, type PrRequest, type PrResponse, type RepoConfig, type RepoStatus, type RepositoryResponse$1 as RepositoryResponse, type Subscription, type ValidRepoStatus, appConfigSchema, repoConfigSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface AdapterProps {
|
|
|
31
31
|
scopes: string[];
|
|
32
32
|
}
|
|
33
33
|
type Subscription = (collections: Collection[]) => void | Promise<void>;
|
|
34
|
-
interface RepositoryResponse {
|
|
34
|
+
interface RepositoryResponse$1 {
|
|
35
35
|
id: string | number;
|
|
36
36
|
org: string;
|
|
37
37
|
name: string;
|
|
@@ -60,7 +60,7 @@ interface IAdapter extends AdapterProps {
|
|
|
60
60
|
readonly secondaryColor: string;
|
|
61
61
|
readonly oauthUrl: string;
|
|
62
62
|
readonly baseUrl: string;
|
|
63
|
-
fetchRepositories(): Promise<RepositoryResponse[]>;
|
|
63
|
+
fetchRepositories(): Promise<RepositoryResponse$1[]>;
|
|
64
64
|
fetchFile(filePath: string): Promise<string>;
|
|
65
65
|
fetchFileHistory(filePath: string): Promise<CommitResponse[]>;
|
|
66
66
|
fetchDirectory(directoryPath: string): Promise<string[]>;
|
|
@@ -83,12 +83,12 @@ declare class Adapter implements AdapterProps {
|
|
|
83
83
|
clientId: string;
|
|
84
84
|
redirectUri: string;
|
|
85
85
|
token: string | null;
|
|
86
|
-
repo: RepositoryResponse | null;
|
|
86
|
+
repo: RepositoryResponse$1 | null;
|
|
87
87
|
accessManagementUrl: string;
|
|
88
88
|
scopes: string[];
|
|
89
89
|
protected unauthorizedHandler: (() => void | Promise<void>) | null;
|
|
90
90
|
constructor(props: AdapterProps);
|
|
91
|
-
setRepo(repo: RepositoryResponse | null): void;
|
|
91
|
+
setRepo(repo: RepositoryResponse$1 | null): void;
|
|
92
92
|
setToken(token: string | null): void;
|
|
93
93
|
setUnauthorizedHandler(handler: () => void | Promise<void>): void;
|
|
94
94
|
}
|
|
@@ -130,7 +130,7 @@ type RepoConfig = z.infer<typeof repoConfigSchema> & {
|
|
|
130
130
|
status: RepoStatus;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
interface RepositoryResponse
|
|
133
|
+
interface RepositoryResponse {
|
|
134
134
|
id: string | number;
|
|
135
135
|
org: string;
|
|
136
136
|
name: string;
|
|
@@ -155,7 +155,7 @@ declare class Engine {
|
|
|
155
155
|
subscribe(subscription: Subscription): void;
|
|
156
156
|
unsubscribe(subscription: Subscription): void;
|
|
157
157
|
private notifySubscribers;
|
|
158
|
-
setRepo(repo: RepositoryResponse
|
|
158
|
+
setRepo(repo: RepositoryResponse | null): void;
|
|
159
159
|
getRepoStatus(): RepoStatus;
|
|
160
160
|
getAppConfig(): {
|
|
161
161
|
appName?: string;
|
|
@@ -190,4 +190,4 @@ declare class Engine {
|
|
|
190
190
|
fetchPullRequests(force?: boolean): Promise<PrResponse[]>;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
export { Adapter, type AdapterProps, type AppConfig, type BaseCollectionItem, Collection, type CollectionItemStatus, type CollectionStatus, type CommitRequest, type CommitResponse, Engine, type IAdapter, type InvalidRepoStatus, type PendingCollectionItemType, type PrRequest, type PrResponse, type RepoConfig, type RepoStatus, type RepositoryResponse, type Subscription, type ValidRepoStatus, appConfigSchema, repoConfigSchema };
|
|
193
|
+
export { Adapter, type AdapterProps, type AppConfig, type BaseCollectionItem, Collection, type CollectionItemStatus, type CollectionStatus, type CommitRequest, type CommitResponse, Engine, type IAdapter, type InvalidRepoStatus, type PendingCollectionItemType, type PrRequest, type PrResponse, type RepoConfig, type RepoStatus, type RepositoryResponse$1 as RepositoryResponse, type Subscription, type ValidRepoStatus, appConfigSchema, repoConfigSchema };
|