diff --git a/src/__generated__/changes-ChangesService_connectquery.ts b/src/__generated__/changes-ChangesService_connectquery.ts index 4f7261d..17afdc3 100644 --- a/src/__generated__/changes-ChangesService_connectquery.ts +++ b/src/__generated__/changes-ChangesService_connectquery.ts @@ -4,7 +4,7 @@ // @ts-nocheck import { MethodKind } from "@bufbuild/protobuf"; -import { CreateAppRequest, CreateAppResponse, CreateChangeRequest, CreateChangeResponse, CreateSimpleAppRequest, CreateSimpleAppResponse, DeleteAppRequest, DeleteAppResponse, DeleteChangeRequest, DeleteChangeResponse, GetAffectedAppsRequest, GetAffectedAppsResponse, GetAppRequest, GetAppResponse, GetAppSummariesRequest, GetAppSummariesResponse, GetAppSummaryRequest, GetAppSummaryResponse, GetChangeArchiveRequest, GetChangeArchiveResponse, GetChangeRequest, GetChangeResponse, GetChangeRisksRequest, GetChangeRisksResponse, GetChangeTimelineRequest, GetChangeTimelineResponse, GetDiffRequest, GetDiffResponse, GetOnboardingRequest, GetOnboardingResponse, ListAppChangesRequest, ListAppChangesResponse, ListAppChangesSummaryRequest, ListAppChangesSummaryResponse, ListAppsRequest, ListAppsResponse, ListChangesBySnapshotUUIDRequest, ListChangesBySnapshotUUIDResponse, ListChangesByStatusRequest, ListChangesByStatusResponse, ListChangesRequest, ListChangesResponse, ListChangingItemsSummaryRequest, ListChangingItemsSummaryResponse, ListHomeAppsRequest, ListHomeAppsResponse, ListHomeChangesRequest, ListHomeChangesResponse, RefreshStateRequest, RefreshStateResponse, UpdateAppRequest, UpdateAppResponse, UpdateChangeRequest, UpdateChangeResponse, UpdateOnboardingRequest, UpdateOnboardingResponse } from "./changes_pb.ts"; +import { CreateAppRequest, CreateAppResponse, CreateChangeRequest, CreateChangeResponse, CreateSimpleAppRequest, CreateSimpleAppResponse, DeleteAppRequest, DeleteAppResponse, DeleteChangeRequest, DeleteChangeResponse, GetAffectedAppsRequest, GetAffectedAppsResponse, GetAppRequest, GetAppResponse, GetAppSummariesRequest, GetAppSummariesResponse, GetAppSummaryRequest, GetAppSummaryResponse, GetChangeArchiveRequest, GetChangeArchiveResponse, GetChangeRequest, GetChangeResponse, GetChangeRisksRequest, GetChangeRisksResponse, GetChangeTimelineRequest, GetChangeTimelineResponse, GetDiffRequest, GetDiffResponse, GetOnboardingRequest, GetOnboardingResponse, ListAppChangesRequest, ListAppChangesResponse, ListAppChangesSummaryRequest, ListAppChangesSummaryResponse, ListAppsRequest, ListAppsResponse, ListChangesBySnapshotUUIDRequest, ListChangesBySnapshotUUIDResponse, ListChangesByStatusRequest, ListChangesByStatusResponse, ListChangesRequest, ListChangesResponse, ListChangingItemsSummaryRequest, ListChangingItemsSummaryResponse, ListHomeAppsRequest, ListHomeAppsResponse, ListHomeChangesRequest, ListHomeChangesResponse, PopulateChangeFiltersRequest, PopulateChangeFiltersResponse, RefreshStateRequest, RefreshStateResponse, UpdateAppRequest, UpdateAppResponse, UpdateChangeRequest, UpdateChangeResponse, UpdateOnboardingRequest, UpdateOnboardingResponse } from "./changes_pb.ts"; /** * Lists all apps @@ -457,3 +457,19 @@ export const getDiff = { typeName: "changes.ChangesService" } } as const; + +/** + * List all the available repos, authors and statuses that can be used to populate the dropdown filters + * + * @generated from rpc changes.ChangesService.PopulateChangeFilters + */ +export const populateChangeFilters = { + localName: "populateChangeFilters", + name: "PopulateChangeFilters", + kind: MethodKind.Unary, + I: PopulateChangeFiltersRequest, + O: PopulateChangeFiltersResponse, + service: { + typeName: "changes.ChangesService" + } +} as const; diff --git a/src/__generated__/changes_connect.ts b/src/__generated__/changes_connect.ts index c2b86df..ed4aeb8 100644 --- a/src/__generated__/changes_connect.ts +++ b/src/__generated__/changes_connect.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { CalculateBlastRadiusRequest, CalculateBlastRadiusResponse, CreateAppRequest, CreateAppResponse, CreateChangeRequest, CreateChangeResponse, CreateSimpleAppRequest, CreateSimpleAppResponse, DeleteAppRequest, DeleteAppResponse, DeleteChangeRequest, DeleteChangeResponse, EndChangeRequest, EndChangeResponse, GetAffectedAppsRequest, GetAffectedAppsResponse, GetAppRequest, GetAppResponse, GetAppSummariesRequest, GetAppSummariesResponse, GetAppSummaryRequest, GetAppSummaryResponse, GetChangeArchiveRequest, GetChangeArchiveResponse, GetChangeRequest, GetChangeResponse, GetChangeRisksRequest, GetChangeRisksResponse, GetChangeTimelineRequest, GetChangeTimelineResponse, GetDiffRequest, GetDiffResponse, GetOnboardingRequest, GetOnboardingResponse, ListAppChangesRequest, ListAppChangesResponse, ListAppChangesSummaryRequest, ListAppChangesSummaryResponse, ListAppsRequest, ListAppsResponse, ListChangesBySnapshotUUIDRequest, ListChangesBySnapshotUUIDResponse, ListChangesByStatusRequest, ListChangesByStatusResponse, ListChangesRequest, ListChangesResponse, ListChangingItemsSummaryRequest, ListChangingItemsSummaryResponse, ListHomeAppsRequest, ListHomeAppsResponse, ListHomeChangesRequest, ListHomeChangesResponse, RefreshStateRequest, RefreshStateResponse, SimulateChangeRequest, SimulateChangeResponse, StartChangeRequest, StartChangeResponse, UpdateAppRequest, UpdateAppResponse, UpdateChangeRequest, UpdateChangeResponse, UpdateChangingItemsRequest, UpdateOnboardingRequest, UpdateOnboardingResponse, UpdatePlannedChangesRequest } from "./changes_pb.ts"; +import { CalculateBlastRadiusRequest, CalculateBlastRadiusResponse, CreateAppRequest, CreateAppResponse, CreateChangeRequest, CreateChangeResponse, CreateSimpleAppRequest, CreateSimpleAppResponse, DeleteAppRequest, DeleteAppResponse, DeleteChangeRequest, DeleteChangeResponse, EndChangeRequest, EndChangeResponse, GetAffectedAppsRequest, GetAffectedAppsResponse, GetAppRequest, GetAppResponse, GetAppSummariesRequest, GetAppSummariesResponse, GetAppSummaryRequest, GetAppSummaryResponse, GetChangeArchiveRequest, GetChangeArchiveResponse, GetChangeRequest, GetChangeResponse, GetChangeRisksRequest, GetChangeRisksResponse, GetChangeTimelineRequest, GetChangeTimelineResponse, GetDiffRequest, GetDiffResponse, GetOnboardingRequest, GetOnboardingResponse, ListAppChangesRequest, ListAppChangesResponse, ListAppChangesSummaryRequest, ListAppChangesSummaryResponse, ListAppsRequest, ListAppsResponse, ListChangesBySnapshotUUIDRequest, ListChangesBySnapshotUUIDResponse, ListChangesByStatusRequest, ListChangesByStatusResponse, ListChangesRequest, ListChangesResponse, ListChangingItemsSummaryRequest, ListChangingItemsSummaryResponse, ListHomeAppsRequest, ListHomeAppsResponse, ListHomeChangesRequest, ListHomeChangesResponse, PopulateChangeFiltersRequest, PopulateChangeFiltersResponse, RefreshStateRequest, RefreshStateResponse, SimulateChangeRequest, SimulateChangeResponse, StartChangeRequest, StartChangeResponse, UpdateAppRequest, UpdateAppResponse, UpdateChangeRequest, UpdateChangeResponse, UpdateChangingItemsRequest, UpdateOnboardingRequest, UpdateOnboardingResponse, UpdatePlannedChangesRequest } from "./changes_pb.ts"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -412,6 +412,17 @@ export const ChangesService = { O: GetDiffResponse, kind: MethodKind.Unary, }, + /** + * List all the available repos, authors and statuses that can be used to populate the dropdown filters + * + * @generated from rpc changes.ChangesService.PopulateChangeFilters + */ + populateChangeFilters: { + name: "PopulateChangeFilters", + I: PopulateChangeFiltersRequest, + O: PopulateChangeFiltersResponse, + kind: MethodKind.Unary, + }, } } as const; diff --git a/src/__generated__/changes_pb.ts b/src/__generated__/changes_pb.ts index 0829afa..bc48419 100644 --- a/src/__generated__/changes_pb.ts +++ b/src/__generated__/changes_pb.ts @@ -7,7 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; import { Edge, Health, Item, Query, Reference } from "./items_pb.ts"; import { BlastRadiusConfig } from "./config_pb.ts"; -import { PaginationRequest, PaginationResponse } from "./util_pb.ts"; +import { PaginationRequest, PaginationResponse, SortOrder } from "./util_pb.ts"; import { Bookmark } from "./bookmarks_pb.ts"; import { Snapshot } from "./snapshots_pb.ts"; @@ -916,6 +916,11 @@ export class ListHomeChangesRequest extends Message { */ pagination?: PaginationRequest; + /** + * @generated from field: changes.ChangeFiltersRequest filters = 2; + */ + filters?: ChangeFiltersRequest; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -925,6 +930,7 @@ export class ListHomeChangesRequest extends Message { static readonly typeName = "changes.ListHomeChangesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pagination", kind: "message", T: PaginationRequest }, + { no: 2, name: "filters", kind: "message", T: ChangeFiltersRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListHomeChangesRequest { @@ -944,6 +950,73 @@ export class ListHomeChangesRequest extends Message { } } +/** + * @generated from message changes.ChangeFiltersRequest + */ +export class ChangeFiltersRequest extends Message { + /** + * @generated from field: repeated string repos = 1; + */ + repos: string[] = []; + + /** + * @generated from field: map tags = 2; + */ + tags: { [key: string]: string } = {}; + + /** + * @generated from field: repeated changes.Risk.Severity risks = 3; + */ + risks: Risk_Severity[] = []; + + /** + * @generated from field: repeated string authors = 4; + */ + authors: string[] = []; + + /** + * @generated from field: repeated changes.ChangeStatus statuses = 5; + */ + statuses: ChangeStatus[] = []; + + /** + * @generated from field: SortOrder sortOrder = 6; + */ + sortOrder = SortOrder.ALPHABETICAL_ASCENDING; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "changes.ChangeFiltersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "repos", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 3, name: "risks", kind: "enum", T: proto3.getEnumType(Risk_Severity), repeated: true }, + { no: 4, name: "authors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "statuses", kind: "enum", T: proto3.getEnumType(ChangeStatus), repeated: true }, + { no: 6, name: "sortOrder", kind: "enum", T: proto3.getEnumType(SortOrder) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ChangeFiltersRequest { + return new ChangeFiltersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ChangeFiltersRequest { + return new ChangeFiltersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ChangeFiltersRequest { + return new ChangeFiltersRequest().fromJsonString(jsonString, options); + } + + static equals(a: ChangeFiltersRequest | PlainMessage | undefined, b: ChangeFiltersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ChangeFiltersRequest, a, b); + } +} + /** * @generated from message changes.ListHomeChangesResponse */ @@ -987,6 +1060,86 @@ export class ListHomeChangesResponse extends Message { } } +/** + * @generated from message changes.PopulateChangeFiltersRequest + */ +export class PopulateChangeFiltersRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "changes.PopulateChangeFiltersRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PopulateChangeFiltersRequest { + return new PopulateChangeFiltersRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PopulateChangeFiltersRequest { + return new PopulateChangeFiltersRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PopulateChangeFiltersRequest { + return new PopulateChangeFiltersRequest().fromJsonString(jsonString, options); + } + + static equals(a: PopulateChangeFiltersRequest | PlainMessage | undefined, b: PopulateChangeFiltersRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PopulateChangeFiltersRequest, a, b); + } +} + +/** + * @generated from message changes.PopulateChangeFiltersResponse + */ +export class PopulateChangeFiltersResponse extends Message { + /** + * @generated from field: repeated string repos = 1; + */ + repos: string[] = []; + + /** + * @generated from field: repeated string authors = 2; + */ + authors: string[] = []; + + /** + * @generated from field: repeated changes.ChangeStatus statuses = 3; + */ + statuses: ChangeStatus[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "changes.PopulateChangeFiltersResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "repos", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "authors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "statuses", kind: "enum", T: proto3.getEnumType(ChangeStatus), repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PopulateChangeFiltersResponse { + return new PopulateChangeFiltersResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PopulateChangeFiltersResponse { + return new PopulateChangeFiltersResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PopulateChangeFiltersResponse { + return new PopulateChangeFiltersResponse().fromJsonString(jsonString, options); + } + + static equals(a: PopulateChangeFiltersResponse | PlainMessage | undefined, b: PopulateChangeFiltersResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PopulateChangeFiltersResponse, a, b); + } +} + /** * @generated from message changes.ListHomeAppsRequest */ diff --git a/src/__generated__/util_pb.ts b/src/__generated__/util_pb.ts index 95dc537..0060888 100644 --- a/src/__generated__/util_pb.ts +++ b/src/__generated__/util_pb.ts @@ -6,6 +6,46 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; +/** + * @generated from enum SortOrder + */ +export enum SortOrder { + /** + * A-Z + * + * @generated from enum value: ALPHABETICAL_ASCENDING = 0; + */ + ALPHABETICAL_ASCENDING = 0, + + /** + * Z-A + * + * @generated from enum value: ALPHABETICAL_DESCENDING = 1; + */ + ALPHABETICAL_DESCENDING = 1, + + /** + * Oldest first + * + * @generated from enum value: DATE_ASCENDING = 2; + */ + DATE_ASCENDING = 2, + + /** + * Newest first + * + * @generated from enum value: DATE_DESCENDING = 3; + */ + DATE_DESCENDING = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(SortOrder) +proto3.util.setEnumType(SortOrder, "SortOrder", [ + { no: 0, name: "ALPHABETICAL_ASCENDING" }, + { no: 1, name: "ALPHABETICAL_DESCENDING" }, + { no: 2, name: "DATE_ASCENDING" }, + { no: 3, name: "DATE_DESCENDING" }, +]); + /** * @generated from message PaginationRequest */