mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import type {
|
||||
LocalSecretEnvelope,
|
||||
LocalSecretReference,
|
||||
} from '../domain/localSecret';
|
||||
|
||||
export interface AppendLocalSecretEnvelopeCommand {
|
||||
envelope: LocalSecretEnvelope;
|
||||
expectedCurrentVersion: number;
|
||||
}
|
||||
|
||||
export type AppendLocalSecretEnvelopeResult =
|
||||
| { status: 'inserted'; envelope: LocalSecretEnvelope }
|
||||
| { status: 'existing'; envelope: LocalSecretEnvelope };
|
||||
|
||||
export interface LocalSecretEnvelopeRepository {
|
||||
append(
|
||||
command: AppendLocalSecretEnvelopeCommand,
|
||||
): Promise<AppendLocalSecretEnvelopeResult>;
|
||||
findByMutation(
|
||||
projectId: string,
|
||||
name: string,
|
||||
mutationId: string,
|
||||
): Promise<LocalSecretEnvelope | null>;
|
||||
resolveMany(
|
||||
references: readonly LocalSecretReference[],
|
||||
): Promise<readonly (LocalSecretEnvelope | null)[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user