Files

5434 lines
336 KiB
TypeScript
Generated

// Generated by @effect/graphql-generator. Do not edit.
import * as Schema from "effect/Schema"
export const Int = Schema.Number.check(Schema.isInt32())
export const Float = Schema.Finite
export const ID = Schema.String
/** Represents a date and time in ISO 8601 format. Accepts shortcuts like `2021` to represent midnight Fri Jan 01 2021. Also accepts ISO 8601 durations strings which are added to the current date to create the represented date (e.g '-P2W1D' represents the date that was two weeks and 1 day ago) */
export const DateTime = Schema.String
/** Represents a date and time in ISO 8601 format. Accepts shortcuts like `2021` to represent midnight Fri Jan 01 2021. Also accepts ISO 8601 durations strings which are added to the current date to create the represented date (e.g '-P2W1D' represents the date that was two weeks and 1 day ago) */
export const DateTimeOrDuration = Schema.String
/** Represents a duration in ISO 8601 format. Accepts ISO 8601 duration strings or integers in milliseconds. */
export const Duration = Schema.String
/** The `JSON` scalar type represents arbitrary values as *stringified* JSON */
export const JSON = Schema.Json
/** The `JSONObject` scalar type represents arbitrary values as *embedded* JSON */
export const JSONObject = Schema.Json
/** Represents a date in ISO 8601 format. Accepts shortcuts like `2021` to represent midnight Fri Jan 01 2021. Also accepts ISO 8601 durations strings which are added to the current date to create the represented date (e.g '-P2W1D' represents the date that was two weeks and 1 day ago) */
export const TimelessDate = Schema.String
/** Represents a date in ISO 8601 format or a duration. Accepts shortcuts like `2021` to represent midnight Fri Jan 01 2021. Also accepts ISO 8601 durations strings (e.g '-P2W1D'), which are not converted to dates. */
export const TimelessDateOrDuration = Schema.String
/**
* - `after`
* - `before`
* - `during`
*/
export const CyclePeriod = Schema.Literals(["after", "before", "during"])
export type CyclePeriod = typeof CyclePeriod.Type
/**
* By which field should the pagination order by
*
* - `createdAt`
* - `updatedAt`
*/
export const PaginationOrderBy = Schema.Literals(["createdAt", "updatedAt"])
export type PaginationOrderBy = typeof PaginationOrderBy.Type
/**
* The type of a release pipeline, which determines how releases are created and managed. Continuous pipelines create a new completed release for each sync. Scheduled pipelines accumulate issues into a started release that is explicitly completed.
*
* - `continuous`
* - `scheduled`
*/
export const ReleasePipelineType = Schema.Literals(["continuous", "scheduled"])
export type ReleasePipelineType = typeof ReleasePipelineType.Type
/**
* The type of a release stage, which determines the release's lifecycle state. Types include planned, started, completed, and canceled. Each pipeline must have at least one stage of each type, though only started stages may have multiple instances.
*
* - `canceled`
* - `completed`
* - `planned`
* - `started`
*/
export const ReleaseStageType = Schema.Literals(["canceled", "completed", "planned", "started"])
export type ReleaseStageType = typeof ReleaseStageType.Type
/**
* Which day count to use for SLA calculations.
*
* - `all`
* - `onlyBusinessDays`
*/
export const SLADayCountType = Schema.Literals(["all", "onlyBusinessDays"])
export type SLADayCountType = typeof SLADayCountType.Type
/**
* - `Breached`
* - `Completed`
* - `Failed`
* - `HighRisk`
* - `LowRisk`
* - `MediumRisk`
*/
export const SlaStatus = Schema.Literals(["Breached", "Completed", "Failed", "HighRisk", "LowRisk", "MediumRisk"])
export type SlaStatus = typeof SlaStatus.Type
/**
* The visibility of a team. A team can be public, private, or restricted within an enclosing private-team boundary.
*
* - `private`
* - `public`
* - `restricted`
*/
export const TeamVisibility = Schema.Literals(["private", "public", "restricted"])
export type TeamVisibility = typeof TeamVisibility.Type
/** Input for creating a new comment. */
export const CommentCreateInput = Schema.Struct({
/** The comment content in markdown format. */
body: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] The comment content as a Prosemirror document. */
bodyData: Schema.optional(Schema.NullOr(JSON)),
/** Create comment as a user with the provided name. This option is only available to OAuth applications creating comments in `actor=app` mode. */
createAsUser: Schema.optional(Schema.NullOr(Schema.String)),
/** Flag to indicate this comment should be created on the issue's synced Slack comment thread. If no synced Slack comment thread exists, the mutation will fail. If there are multiple synced Slack threads on the issue, the oldest one will be targeted. */
createOnSyncedSlackThread: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** The time at which the comment was created (e.g. if importing from another system). Must be a time in the past. If none is provided, the backend will generate the time as now. */
createdAt: Schema.optional(Schema.NullOr(DateTime)),
/** Provide an external user avatar URL. Can only be used in conjunction with the `createAsUser` options. This option is only available to OAuth applications creating comments in `actor=app` mode. */
displayIconUrl: Schema.optional(Schema.NullOr(Schema.String)),
/** Flag to prevent auto subscription to the issue the comment is created on. */
doNotSubscribeToIssue: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** The document content to associate the comment with. */
documentContentId: Schema.optional(Schema.NullOr(Schema.String)),
/** The identifier in UUID v4 format. If none is provided, the backend will generate one. */
id: Schema.optional(Schema.NullOr(Schema.String)),
/** The initiative to associate the comment with. Can be a UUID or initiative identifier (e.g., 'I-12'). */
initiativeId: Schema.optional(Schema.NullOr(Schema.String)),
/** The initiative update to associate the comment with. */
initiativeUpdateId: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] Where the commented text starts, as a base64-encoded Y.js relative position created on the commenter's copy of the document content. Requires `inlineAnchorTo` and `documentContentId`. */
inlineAnchorFrom: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] Where the commented text ends, as a base64-encoded Y.js relative position created on the commenter's copy of the document content. Requires `inlineAnchorFrom` and `documentContentId`. */
inlineAnchorTo: Schema.optional(Schema.NullOr(Schema.String)),
/** The issue to associate the comment with. Can be a UUID or issue identifier (e.g., 'LIN-123'). */
issueId: Schema.optional(Schema.NullOr(Schema.String)),
/** The parent comment under which to nest a current comment. */
parentId: Schema.optional(Schema.NullOr(Schema.String)),
/** The post to associate the comment with. */
postId: Schema.optional(Schema.NullOr(Schema.String)),
/** The project to associate the comment with. Can be a UUID or project identifier (e.g., 'P-LIN-123'). */
projectId: Schema.optional(Schema.NullOr(Schema.String)),
/** The project update to associate the comment with. */
projectUpdateId: Schema.optional(Schema.NullOr(Schema.String)),
/** The text that this comment references. Only defined for inline comments. */
quotedText: Schema.optional(Schema.NullOr(Schema.String)),
/** [INTERNAL] The identifiers of the users subscribing to this comment thread. */
subscriberIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String)))
})
export interface CommentCreateInput extends Schema.Struct.Type<typeof CommentCreateInput.fields> {}
/** Input for creating a new issue. At minimum, a team must be specified. A title is required unless a template is provided. All other fields are optional and will use defaults from the team or template if not specified. */
export const IssueCreateInput = Schema.Struct({
/** The identifier of the user to assign the issue to. */
assigneeId: Schema.optional(Schema.NullOr(Schema.String)),
/** The time at which the issue was completed (e.g. if importing from another system). Must be a time in the past and after createdAt. Cannot be provided with an incompatible workflow state. */
completedAt: Schema.optional(Schema.NullOr(DateTime)),
/** Create issue as a user with the provided name. This option is only available to OAuth applications creating issues in `actor=app` mode. */
createAsUser: Schema.optional(Schema.NullOr(Schema.String)),
/** The time at which the issue was created (e.g. if importing from another system). Must be a time in the past. If none is provided, the backend will generate the time as now. */
createdAt: Schema.optional(Schema.NullOr(DateTime)),
/** The cycle associated with the issue. */
cycleId: Schema.optional(Schema.NullOr(Schema.String)),
/** The identifier of the agent user to delegate the issue to. */
delegateId: Schema.optional(Schema.NullOr(Schema.String)),
/** The issue description in markdown format. */
description: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] The issue description as a Prosemirror document. */
descriptionData: Schema.optional(Schema.NullOr(JSON)),
/** Provide an external user avatar URL. Can only be used in conjunction with the `createAsUser` options. This option is only available to OAuth applications creating comments in `actor=app` mode. */
displayIconUrl: Schema.optional(Schema.NullOr(Schema.String)),
/** The date at which the issue is due. */
dueDate: Schema.optional(Schema.NullOr(TimelessDate)),
/** The estimated complexity of the issue. */
estimate: Schema.optional(Schema.NullOr(Int)),
/** The identifier in UUID v4 format. If none is provided, the backend will generate one. */
id: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] Whether this issue should inherit shared access from its parent issue. Set to false to opt out of automatic shared access inheritance when creating a sub-issue. */
inheritsSharedAccess: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** The identifiers of the issue labels associated with this ticket. */
labelIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** The ID of the last template applied to the issue. */
lastAppliedTemplateId: Schema.optional(Schema.NullOr(Schema.String)),
/** The identifier of the parent issue. Can be a UUID or issue identifier (e.g., 'LIN-123'). */
parentId: Schema.optional(Schema.NullOr(Schema.String)),
/** Whether the passed sort order should be preserved. */
preserveSortOrderOnCreate: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** The priority of the issue. 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low. */
priority: Schema.optional(Schema.NullOr(Int)),
/** The position of the issue related to other issues, when ordered by priority. */
prioritySortOrder: Schema.optional(Schema.NullOr(Float)),
/** The project associated with the issue. Can be a UUID or project identifier (e.g., 'P-LIN-123'). */
projectId: Schema.optional(Schema.NullOr(Schema.String)),
/** The project milestone associated with the issue. */
projectMilestoneId: Schema.optional(Schema.NullOr(Schema.String)),
/** The comment the issue is referencing. */
referenceCommentId: Schema.optional(Schema.NullOr(Schema.String)),
/** The identifiers of the releases to associate with this issue. */
releaseIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** [Internal] The time at which an issue will be considered in breach of SLA. */
slaBreachesAt: Schema.optional(Schema.NullOr(DateTime)),
/** [Internal] The time at which the issue's SLA was started. */
slaStartedAt: Schema.optional(Schema.NullOr(DateTime)),
/** The SLA day count type for the issue. Whether SLA should be business days only or calendar days (default). */
slaType: Schema.optional(Schema.NullOr(SLADayCountType)),
/** The position of the issue related to other issues. */
sortOrder: Schema.optional(Schema.NullOr(Float)),
/** The comment the issue is created from. */
sourceCommentId: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] The pull request comment the issue is created from. */
sourcePullRequestCommentId: Schema.optional(Schema.NullOr(Schema.String)),
/** The team state of the issue. */
stateId: Schema.optional(Schema.NullOr(Schema.String)),
/** The position of the issue in parent's sub-issue list. */
subIssueSortOrder: Schema.optional(Schema.NullOr(Float)),
/** The identifiers of the users subscribing to this ticket. */
subscriberIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** The identifier of the team associated with the issue. */
teamId: Schema.String,
/** The identifier of a template the issue should be created from. If other values are provided in the input, they will override template values. */
templateId: Schema.optional(Schema.NullOr(Schema.String)),
/** The title of the issue. */
title: Schema.optional(Schema.NullOr(Schema.String)),
/** Whether to use the default template for the team. When set to true, the default template of this team based on user's membership will be applied. */
useDefaultTemplate: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface IssueCreateInput extends Schema.Struct.Type<typeof IssueCreateInput.fields> {}
/** Comparator for optional dates. */
export const NullableDateComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Greater-than constraint. Matches any values that are greater than the given value. */
gt: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Greater-than-or-equal constraint. Matches any values that are greater than or equal to the given value. */
gte: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(DateTimeOrDuration))),
/** Less-than constraint. Matches any values that are less than the given value. */
lt: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Less-than-or-equal constraint. Matches any values that are less than or equal to the given value. */
lte: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(DateTimeOrDuration))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface NullableDateComparator extends Schema.Struct.Type<typeof NullableDateComparator.fields> {}
/** Comparator for dates. */
export const DateComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Greater-than constraint. Matches any values that are greater than the given value. */
gt: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Greater-than-or-equal constraint. Matches any values that are greater than or equal to the given value. */
gte: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(DateTimeOrDuration))),
/** Less-than constraint. Matches any values that are less than the given value. */
lt: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Less-than-or-equal constraint. Matches any values that are less than or equal to the given value. */
lte: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(DateTimeOrDuration)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(DateTimeOrDuration)))
})
export interface DateComparator extends Schema.Struct.Type<typeof DateComparator.fields> {}
/** Comparator for identifiers. */
export const IDComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(ID)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(ID))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(ID)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(ID)))
})
export interface IDComparator extends Schema.Struct.Type<typeof IDComparator.fields> {}
/** Comparator for booleans. */
export const BooleanComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** Not equals constraint. */
neq: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface BooleanComparator extends Schema.Struct.Type<typeof BooleanComparator.fields> {}
/** Comparator for period when issue was added to a cycle. */
export const CyclePeriodComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(CyclePeriod)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(CyclePeriod))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(CyclePeriod)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(CyclePeriod))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface CyclePeriodComparator extends Schema.Struct.Type<typeof CyclePeriodComparator.fields> {}
/** Nullable comparator for optional durations. */
export const NullableDurationComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Duration)),
/** Greater-than constraint. Matches any values that are greater than the given value. */
gt: Schema.optional(Schema.NullOr(Duration)),
/** Greater-than-or-equal constraint. Matches any values that are greater than or equal to the given value. */
gte: Schema.optional(Schema.NullOr(Duration)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(Duration))),
/** Less-than constraint. Matches any values that are less than the given value. */
lt: Schema.optional(Schema.NullOr(Duration)),
/** Less-than-or-equal constraint. Matches any values that are less than or equal to the given value. */
lte: Schema.optional(Schema.NullOr(Duration)),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(Duration)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(Duration))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface NullableDurationComparator extends Schema.Struct.Type<typeof NullableDurationComparator.fields> {}
/** Comparator for strings. */
export const StringComparator = Schema.Struct({
/** Contains constraint. Matches any values that contain the given string. */
contains: Schema.optional(Schema.NullOr(Schema.String)),
/** Contains case insensitive constraint. Matches any values that contain the given string case insensitive. */
containsIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Contains case and accent insensitive constraint. Matches any values that contain the given string case and accent insensitive. */
containsIgnoreCaseAndAccent: Schema.optional(Schema.NullOr(Schema.String)),
/** Ends with constraint. Matches any values that end with the given string. */
endsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Schema.String)),
/** Equals case insensitive. Matches any values that matches the given string case insensitive. */
eqIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(Schema.String)),
/** Not-equals case insensitive. Matches any values that don't match the given string case insensitive. */
neqIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Doesn't contain constraint. Matches any values that don't contain the given string. */
notContains: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't contain case insensitive constraint. Matches any values that don't contain the given string case insensitive. */
notContainsIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't end with constraint. Matches any values that don't end with the given string. */
notEndsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't start with constraint. Matches any values that don't start with the given string. */
notStartsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Starts with constraint. Matches any values that start with the given string. */
startsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Starts with case insensitive constraint. Matches any values that start with the given string. */
startsWithIgnoreCase: Schema.optional(Schema.NullOr(Schema.String))
})
export interface StringComparator extends Schema.Struct.Type<typeof StringComparator.fields> {}
/** Comparator for `sourceType` field. */
export const SourceTypeComparator = Schema.Struct({
/** Contains constraint. Matches any values that contain the given string. */
contains: Schema.optional(Schema.NullOr(Schema.String)),
/** Contains case insensitive constraint. Matches any values that contain the given string case insensitive. */
containsIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Contains case and accent insensitive constraint. Matches any values that contain the given string case and accent insensitive. */
containsIgnoreCaseAndAccent: Schema.optional(Schema.NullOr(Schema.String)),
/** Ends with constraint. Matches any values that end with the given string. */
endsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Schema.String)),
/** Equals case insensitive. Matches any values that matches the given string case insensitive. */
eqIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(Schema.String)),
/** Not-equals case insensitive. Matches any values that don't match the given string case insensitive. */
neqIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Doesn't contain constraint. Matches any values that don't contain the given string. */
notContains: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't contain case insensitive constraint. Matches any values that don't contain the given string case insensitive. */
notContainsIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't end with constraint. Matches any values that don't end with the given string. */
notEndsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't start with constraint. Matches any values that don't start with the given string. */
notStartsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Starts with constraint. Matches any values that start with the given string. */
startsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Starts with case insensitive constraint. Matches any values that start with the given string. */
startsWithIgnoreCase: Schema.optional(Schema.NullOr(Schema.String))
})
export interface SourceTypeComparator extends Schema.Struct.Type<typeof SourceTypeComparator.fields> {}
/** Comparator for optional strings. */
export const NullableStringComparator = Schema.Struct({
/** Contains constraint. Matches any values that contain the given string. */
contains: Schema.optional(Schema.NullOr(Schema.String)),
/** Contains case insensitive constraint. Matches any values that contain the given string case insensitive. */
containsIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Contains case and accent insensitive constraint. Matches any values that contain the given string case and accent insensitive. */
containsIgnoreCaseAndAccent: Schema.optional(Schema.NullOr(Schema.String)),
/** Ends with constraint. Matches any values that end with the given string. */
endsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Schema.String)),
/** Equals case insensitive. Matches any values that matches the given string case insensitive. */
eqIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(Schema.String)),
/** Not-equals case insensitive. Matches any values that don't match the given string case insensitive. */
neqIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Doesn't contain constraint. Matches any values that don't contain the given string. */
notContains: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't contain case insensitive constraint. Matches any values that don't contain the given string case insensitive. */
notContainsIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't end with constraint. Matches any values that don't end with the given string. */
notEndsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't start with constraint. Matches any values that don't start with the given string. */
notStartsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** Starts with constraint. Matches any values that start with the given string. */
startsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Starts with case insensitive constraint. Matches any values that start with the given string. */
startsWithIgnoreCase: Schema.optional(Schema.NullOr(Schema.String))
})
export interface NullableStringComparator extends Schema.Struct.Type<typeof NullableStringComparator.fields> {}
/** Comparator for numbers. */
export const NumberComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Float)),
/** Greater-than constraint. Matches any values that are greater than the given value. */
gt: Schema.optional(Schema.NullOr(Float)),
/** Greater-than-or-equal constraint. Matches any values that are greater than or equal to the given value. */
gte: Schema.optional(Schema.NullOr(Float)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(Float))),
/** Less-than constraint. Matches any values that are less than the given value. */
lt: Schema.optional(Schema.NullOr(Float)),
/** Less-than-or-equal constraint. Matches any values that are less than or equal to the given value. */
lte: Schema.optional(Schema.NullOr(Float)),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(Float)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(Float)))
})
export interface NumberComparator extends Schema.Struct.Type<typeof NumberComparator.fields> {}
/** Comparator for release pipeline type. */
export const ReleasePipelineTypeComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(ReleasePipelineType)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(ReleasePipelineType))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(ReleasePipelineType)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(ReleasePipelineType))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface ReleasePipelineTypeComparator extends Schema.Struct.Type<typeof ReleasePipelineTypeComparator.fields> {}
/** Comparator for team visibility. */
export const TeamVisibilityComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(TeamVisibility)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(TeamVisibility))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(TeamVisibility)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(TeamVisibility)))
})
export interface TeamVisibilityComparator extends Schema.Struct.Type<typeof TeamVisibilityComparator.fields> {}
/** Comparator for project and initiative identifiers. Accepts UUIDs and human-readable identifiers (e.g. "PROJ-123"). */
export const EntityIdentifierIDComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(ID)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(ID))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(ID)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(ID)))
})
export interface EntityIdentifierIDComparator extends Schema.Struct.Type<typeof EntityIdentifierIDComparator.fields> {}
/** Options for filtering initiatives by initiative updates. */
export const InitiativeUpdatesFilter: Schema.Codec<InitiativeUpdatesFilter, InitiativeUpdatesFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeUpdatesFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeUpdatesFilter)))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface InitiativeUpdatesFilter {
/** Compound filters, all of which need to be matched by the initiative updates. */
readonly and?: readonly InitiativeUpdatesFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Compound filters, one of which need to be matched by the initiative updates. */
readonly or?: readonly InitiativeUpdatesFilter[] | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface InitiativeUpdatesFilterEncoded {
readonly and?: readonly InitiativeUpdatesFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly or?: readonly InitiativeUpdatesFilterEncoded[] | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Collection filtering options for filtering initiatives by initiative updates. */
export const InitiativeUpdatesCollectionFilter: Schema.Codec<InitiativeUpdatesCollectionFilter, InitiativeUpdatesCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeUpdatesCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
every: Schema.optional(Schema.NullOr(InitiativeUpdatesFilter)),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeUpdatesCollectionFilter)))),
some: Schema.optional(Schema.NullOr(InitiativeUpdatesFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface InitiativeUpdatesCollectionFilter {
/** Compound filters, all of which need to be matched by the initiative update. */
readonly and?: readonly InitiativeUpdatesCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that needs to be matched by all initiative updates. */
readonly every?: InitiativeUpdatesFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the update. */
readonly or?: readonly InitiativeUpdatesCollectionFilter[] | null | undefined
/** Filters that needs to be matched by some initiative updates. */
readonly some?: InitiativeUpdatesFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface InitiativeUpdatesCollectionFilterEncoded {
readonly and?: readonly InitiativeUpdatesCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly every?: InitiativeUpdatesFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly InitiativeUpdatesCollectionFilterEncoded[] | null | undefined
readonly some?: InitiativeUpdatesFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Comparator for optional numbers. */
export const NullableNumberComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Float)),
/** Greater-than constraint. Matches any values that are greater than the given value. */
gt: Schema.optional(Schema.NullOr(Float)),
/** Greater-than-or-equal constraint. Matches any values that are greater than or equal to the given value. */
gte: Schema.optional(Schema.NullOr(Float)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(Float))),
/** Less-than constraint. Matches any values that are less than the given value. */
lt: Schema.optional(Schema.NullOr(Float)),
/** Less-than-or-equal constraint. Matches any values that are less than or equal to the given value. */
lte: Schema.optional(Schema.NullOr(Float)),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(Float)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(Float))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface NullableNumberComparator extends Schema.Struct.Type<typeof NullableNumberComparator.fields> {}
/** Comparator for relation existence. */
export const RelationExistsComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** Not equals constraint. */
neq: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface RelationExistsComparator extends Schema.Struct.Type<typeof RelationExistsComparator.fields> {}
/** Reaction filtering options. */
export const ReactionFilter: Schema.Codec<ReactionFilter, ReactionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReactionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
customEmojiId: Schema.optional(Schema.NullOr(IDComparator)),
emoji: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReactionFilter)))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ReactionFilter {
/** Compound filters, all of which need to be matched by the reaction. */
readonly and?: readonly ReactionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the reactions custom emoji. */
readonly customEmojiId?: IDComparator | null | undefined
/** Comparator for the reactions emoji. */
readonly emoji?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Compound filters, one of which need to be matched by the reaction. */
readonly or?: readonly ReactionFilter[] | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ReactionFilterEncoded {
readonly and?: readonly ReactionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly customEmojiId?: typeof IDComparator.Encoded | null | undefined
readonly emoji?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly or?: readonly ReactionFilterEncoded[] | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Reaction filtering options. */
export const ReactionCollectionFilter: Schema.Codec<ReactionCollectionFilter, ReactionCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReactionCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
customEmojiId: Schema.optional(Schema.NullOr(IDComparator)),
emoji: Schema.optional(Schema.NullOr(StringComparator)),
every: Schema.optional(Schema.NullOr(ReactionFilter)),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReactionCollectionFilter)))),
some: Schema.optional(Schema.NullOr(ReactionFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ReactionCollectionFilter {
/** Compound filters, all of which need to be matched by the reaction. */
readonly and?: readonly ReactionCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the reactions custom emoji. */
readonly customEmojiId?: IDComparator | null | undefined
/** Comparator for the reactions emoji. */
readonly emoji?: StringComparator | null | undefined
/** Filters that needs to be matched by all reactions. */
readonly every?: ReactionFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the reaction. */
readonly or?: readonly ReactionCollectionFilter[] | null | undefined
/** Filters that needs to be matched by some reactions. */
readonly some?: ReactionFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ReactionCollectionFilterEncoded {
readonly and?: readonly ReactionCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly customEmojiId?: typeof IDComparator.Encoded | null | undefined
readonly emoji?: typeof StringComparator.Encoded | null | undefined
readonly every?: ReactionFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly ReactionCollectionFilterEncoded[] | null | undefined
readonly some?: ReactionFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Comparator for optional timeless dates. */
export const NullableTimelessDateComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(TimelessDateOrDuration)),
/** Greater-than constraint. Matches any values that are greater than the given value. */
gt: Schema.optional(Schema.NullOr(TimelessDateOrDuration)),
/** Greater-than-or-equal constraint. Matches any values that are greater than or equal to the given value. */
gte: Schema.optional(Schema.NullOr(TimelessDateOrDuration)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(TimelessDateOrDuration))),
/** Less-than constraint. Matches any values that are less than the given value. */
lt: Schema.optional(Schema.NullOr(TimelessDateOrDuration)),
/** Less-than-or-equal constraint. Matches any values that are less than or equal to the given value. */
lte: Schema.optional(Schema.NullOr(TimelessDateOrDuration)),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(TimelessDateOrDuration)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(TimelessDateOrDuration))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface NullableTimelessDateComparator extends Schema.Struct.Type<typeof NullableTimelessDateComparator.fields> {}
/** Comparator for estimates. */
export const EstimateComparator = Schema.Struct({
/** Compound filters, one of which need to be matched by the estimate. */
and: Schema.optional(Schema.NullOr(Schema.Array(NullableNumberComparator))),
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Float)),
/** Greater-than constraint. Matches any values that are greater than the given value. */
gt: Schema.optional(Schema.NullOr(Float)),
/** Greater-than-or-equal constraint. Matches any values that are greater than or equal to the given value. */
gte: Schema.optional(Schema.NullOr(Float)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(Float))),
/** Less-than constraint. Matches any values that are less than the given value. */
lt: Schema.optional(Schema.NullOr(Float)),
/** Less-than-or-equal constraint. Matches any values that are less than or equal to the given value. */
lte: Schema.optional(Schema.NullOr(Float)),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(Float)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(Float))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** Compound filters, all of which need to be matched by the estimate. */
or: Schema.optional(Schema.NullOr(Schema.Array(NullableNumberComparator)))
})
export interface EstimateComparator extends Schema.Struct.Type<typeof EstimateComparator.fields> {}
/** Comparator for issue identifiers. */
export const IssueIDComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(ID)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(ID))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(ID)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(ID)))
})
export interface IssueIDComparator extends Schema.Struct.Type<typeof IssueIDComparator.fields> {}
/** Comparator for release stage type. */
export const ReleaseStageTypeComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(ReleaseStageType)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(ReleaseStageType))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(ReleaseStageType)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(ReleaseStageType))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface ReleaseStageTypeComparator extends Schema.Struct.Type<typeof ReleaseStageTypeComparator.fields> {}
/** Release stage filtering options. */
export const ReleaseStageFilter: Schema.Codec<ReleaseStageFilter, ReleaseStageFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleaseStageFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleaseStageFilter)))),
type: Schema.optional(Schema.NullOr(ReleaseStageTypeComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ReleaseStageFilter {
/** Compound filters, all of which need to be matched by the stage. */
readonly and?: readonly ReleaseStageFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the stage name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the stage. */
readonly or?: readonly ReleaseStageFilter[] | null | undefined
/** Comparator for the stage type. */
readonly type?: ReleaseStageTypeComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ReleaseStageFilterEncoded {
readonly and?: readonly ReleaseStageFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly ReleaseStageFilterEncoded[] | null | undefined
readonly type?: typeof ReleaseStageTypeComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** [Internal] Comparator for content. */
export const ContentComparator = Schema.Struct({
/** [Internal] Contains constraint. */
contains: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] Not-contains constraint. */
notContains: Schema.optional(Schema.NullOr(Schema.String))
})
export interface ContentComparator extends Schema.Struct.Type<typeof ContentComparator.fields> {}
/** Comparator for sla status. */
export const SlaStatusComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(SlaStatus)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(SlaStatus))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(SlaStatus)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(SlaStatus))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface SlaStatusComparator extends Schema.Struct.Type<typeof SlaStatusComparator.fields> {}
/** [INTERNAL] Comparator for Salesforce metadata. */
export const SalesforceMetadataIntegrationComparator = Schema.Struct({
/** Salesforce Case metadata filter */
caseMetadata: Schema.optional(Schema.NullOr(JSONObject))
})
export interface SalesforceMetadataIntegrationComparator extends Schema.Struct.Type<typeof SalesforceMetadataIntegrationComparator.fields> {}
/** Comparator for source type. */
export const SubTypeComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Schema.String)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(Schema.String)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface SubTypeComparator extends Schema.Struct.Type<typeof SubTypeComparator.fields> {}
/** Comparator for the workflow definition that created an issue. */
export const WorkflowDefinitionIdComparator = Schema.Struct({
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(ID)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(ID))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(ID)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(ID))),
/** Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values. */
null: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface WorkflowDefinitionIdComparator extends Schema.Struct.Type<typeof WorkflowDefinitionIdComparator.fields> {}
/** Comparator for issue source type. */
export const SourceMetadataComparator = Schema.Struct({
/** Null constraint. When true, matches issues without an external source: issues with no source metadata and issues created through the API, an OAuth application, or a loop. When false, matches issues created by an integration or an intake source such as email. */
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** [INTERNAL] Comparator for the salesforce metadata. */
salesforceMetadata: Schema.optional(Schema.NullOr(SalesforceMetadataIntegrationComparator)),
/** Comparator for the sub type. */
subType: Schema.optional(Schema.NullOr(SubTypeComparator)),
/** Comparator for the workflow definition that created the issue. */
workflowDefinitionId: Schema.optional(Schema.NullOr(WorkflowDefinitionIdComparator))
})
export interface SourceMetadataComparator extends Schema.Struct.Type<typeof SourceMetadataComparator.fields> {}
/** Options for filtering projects by project updates. */
export const ProjectUpdatesFilter: Schema.Codec<ProjectUpdatesFilter, ProjectUpdatesFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectUpdatesFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
health: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectUpdatesFilter)))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ProjectUpdatesFilter {
/** Compound filters, all of which need to be matched by the project updates. */
readonly and?: readonly ProjectUpdatesFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the project update health. */
readonly health?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Compound filters, one of which need to be matched by the project updates. */
readonly or?: readonly ProjectUpdatesFilter[] | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ProjectUpdatesFilterEncoded {
readonly and?: readonly ProjectUpdatesFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly health?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly or?: readonly ProjectUpdatesFilterEncoded[] | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Collection filtering options for filtering projects by project updates. */
export const ProjectUpdatesCollectionFilter: Schema.Codec<ProjectUpdatesCollectionFilter, ProjectUpdatesCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectUpdatesCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
every: Schema.optional(Schema.NullOr(ProjectUpdatesFilter)),
health: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectUpdatesCollectionFilter)))),
some: Schema.optional(Schema.NullOr(ProjectUpdatesFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ProjectUpdatesCollectionFilter {
/** Compound filters, all of which need to be matched by the project update. */
readonly and?: readonly ProjectUpdatesCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that needs to be matched by all updates. */
readonly every?: ProjectUpdatesFilter | null | undefined
/** Comparator for the project update health. */
readonly health?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the update. */
readonly or?: readonly ProjectUpdatesCollectionFilter[] | null | undefined
/** Filters that needs to be matched by some updates. */
readonly some?: ProjectUpdatesFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ProjectUpdatesCollectionFilterEncoded {
readonly and?: readonly ProjectUpdatesCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly every?: ProjectUpdatesFilterEncoded | null | undefined
readonly health?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly ProjectUpdatesCollectionFilterEncoded[] | null | undefined
readonly some?: ProjectUpdatesFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Comparator for strings in arrays. */
export const StringItemComparator = Schema.Struct({
/** Contains constraint. Matches any values that contain the given string. */
contains: Schema.optional(Schema.NullOr(Schema.String)),
/** Contains case insensitive constraint. Matches any values that contain the given string case insensitive. */
containsIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Contains case and accent insensitive constraint. Matches any values that contain the given string case and accent insensitive. */
containsIgnoreCaseAndAccent: Schema.optional(Schema.NullOr(Schema.String)),
/** Ends with constraint. Matches any values that end with the given string. */
endsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Equals constraint. */
eq: Schema.optional(Schema.NullOr(Schema.String)),
/** Equals case insensitive. Matches any values that matches the given string case insensitive. */
eqIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** In-array constraint. */
in: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Not-equals constraint. */
neq: Schema.optional(Schema.NullOr(Schema.String)),
/** Not-equals case insensitive. Matches any values that don't match the given string case insensitive. */
neqIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Not-in-array constraint. */
nin: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** Doesn't contain constraint. Matches any values that don't contain the given string. */
notContains: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't contain case insensitive constraint. Matches any values that don't contain the given string case insensitive. */
notContainsIgnoreCase: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't end with constraint. Matches any values that don't end with the given string. */
notEndsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Doesn't start with constraint. Matches any values that don't start with the given string. */
notStartsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Starts with constraint. Matches any values that start with the given string. */
startsWith: Schema.optional(Schema.NullOr(Schema.String)),
/** Starts with case insensitive constraint. Matches any values that start with the given string. */
startsWithIgnoreCase: Schema.optional(Schema.NullOr(Schema.String))
})
export interface StringItemComparator extends Schema.Struct.Type<typeof StringItemComparator.fields> {}
/** Comparator for strings. */
export const StringArrayComparator = Schema.Struct({
/** Compound filters, all of which need to be matched. */
every: Schema.optional(Schema.NullOr(StringItemComparator)),
/** Length of the array. Matches any values that have the given length. */
length: Schema.optional(Schema.NullOr(NumberComparator)),
/** Compound filters, one of which needs to be matched. */
some: Schema.optional(Schema.NullOr(StringItemComparator))
})
export interface StringArrayComparator extends Schema.Struct.Type<typeof StringArrayComparator.fields> {}
/** Customer status filtering options. */
export const CustomerStatusFilter: Schema.Codec<CustomerStatusFilter, CustomerStatusFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CustomerStatusFilter)))),
color: Schema.optional(Schema.NullOr(StringComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
description: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CustomerStatusFilter)))),
position: Schema.optional(Schema.NullOr(NumberComparator)),
type: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface CustomerStatusFilter {
/** Compound filters, all of which need to be matched by the customer status. */
readonly and?: readonly CustomerStatusFilter[] | null | undefined
/** Comparator for the customer status color. */
readonly color?: StringComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the customer status description. */
readonly description?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the customer status name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which needs to be matched by the customer status. */
readonly or?: readonly CustomerStatusFilter[] | null | undefined
/** Comparator for the customer status position. */
readonly position?: NumberComparator | null | undefined
/** Comparator for the customer status type. */
readonly type?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface CustomerStatusFilterEncoded {
readonly and?: readonly CustomerStatusFilterEncoded[] | null | undefined
readonly color?: typeof StringComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly description?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly CustomerStatusFilterEncoded[] | null | undefined
readonly position?: typeof NumberComparator.Encoded | null | undefined
readonly type?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Customer tier filtering options. */
export const CustomerTierFilter: Schema.Codec<CustomerTierFilter, CustomerTierFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CustomerTierFilter)))),
color: Schema.optional(Schema.NullOr(StringComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
description: Schema.optional(Schema.NullOr(StringComparator)),
displayName: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CustomerTierFilter)))),
position: Schema.optional(Schema.NullOr(NumberComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface CustomerTierFilter {
/** Compound filters, all of which need to be matched by the customer tier. */
readonly and?: readonly CustomerTierFilter[] | null | undefined
/** Comparator for the customer tier color. */
readonly color?: StringComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the customer tier description. */
readonly description?: StringComparator | null | undefined
/** Comparator for the customer tier display name. */
readonly displayName?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Compound filters, one of which needs to be matched by the customer tier. */
readonly or?: readonly CustomerTierFilter[] | null | undefined
/** Comparator for the customer tier position. */
readonly position?: NumberComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface CustomerTierFilterEncoded {
readonly and?: readonly CustomerTierFilterEncoded[] | null | undefined
readonly color?: typeof StringComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly description?: typeof StringComparator.Encoded | null | undefined
readonly displayName?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly or?: readonly CustomerTierFilterEncoded[] | null | undefined
readonly position?: typeof NumberComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Issue filtering options. */
export const IssueFilter: Schema.Codec<IssueFilter, IssueFilterEncoded> = Schema.Struct({
accumulatedStateUpdatedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
activity: Schema.optional(Schema.NullOr(Schema.suspend(() => ActivityCollectionFilter))),
addedToCycleAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
addedToCyclePeriod: Schema.optional(Schema.NullOr(CyclePeriodComparator)),
ageTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueFilter)))),
archivedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
assignee: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
attachments: Schema.optional(Schema.NullOr(Schema.suspend(() => AttachmentCollectionFilter))),
autoArchivedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
autoClosedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
canceledAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
children: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
comments: Schema.optional(Schema.NullOr(Schema.suspend(() => CommentCollectionFilter))),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
customerCount: Schema.optional(Schema.NullOr(NumberComparator)),
customerImportantCount: Schema.optional(Schema.NullOr(NumberComparator)),
cycle: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCycleFilter))),
cycleTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
delegate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
description: Schema.optional(Schema.NullOr(NullableStringComparator)),
dueDate: Schema.optional(Schema.NullOr(NullableTimelessDateComparator)),
estimate: Schema.optional(Schema.NullOr(EstimateComparator)),
hasActiveAgentSessions: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasBlockedByRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasBlockingRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDismissedAgentSessions: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDuplicateRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasErroredAgentSessions: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasMergedAgentPullRequests: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasRelatedRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSharedUsers: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedAssignees: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedLabels: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedProjects: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedRelatedIssues: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedSimilarIssues: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedTeams: Schema.optional(Schema.NullOr(RelationExistsComparator)),
id: Schema.optional(Schema.NullOr(IssueIDComparator)),
labels: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueLabelCollectionFilter))),
lastAppliedTemplate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTemplateFilter))),
leadTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
number: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableIssueFilter))),
priority: Schema.optional(Schema.NullOr(NullableNumberComparator)),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
projectMilestone: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectMilestoneFilter))),
reactions: Schema.optional(Schema.NullOr(ReactionCollectionFilter)),
recurringIssueTemplate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTemplateFilter))),
releases: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleaseCollectionFilter))),
searchableContent: Schema.optional(Schema.NullOr(ContentComparator)),
sharedWith: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
slaBreachesAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
slaStatus: Schema.optional(Schema.NullOr(SlaStatusComparator)),
snoozedBy: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
snoozedUntilAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
sourceMetadata: Schema.optional(Schema.NullOr(SourceMetadataComparator)),
startedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
state: Schema.optional(Schema.NullOr(Schema.suspend(() => WorkflowStateFilter))),
subscribers: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
suggestions: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueSuggestionCollectionFilter))),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamFilter))),
title: Schema.optional(Schema.NullOr(StringComparator)),
triageTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
triagedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface IssueFilter {
/** [Internal] Comparator for the issue's accumulatedStateUpdatedAt date. */
readonly accumulatedStateUpdatedAt?: NullableDateComparator | null | undefined
/** Filters that the issue's activities must satisfy. */
readonly activity?: ActivityCollectionFilter | null | undefined
/** Comparator for the issues added to cycle at date. */
readonly addedToCycleAt?: NullableDateComparator | null | undefined
/** Comparator for the period when issue was added to a cycle. */
readonly addedToCyclePeriod?: CyclePeriodComparator | null | undefined
/** [Internal] Age (created -> now) comparator, defined if the issue is still open. */
readonly ageTime?: NullableDurationComparator | null | undefined
/** Compound filters, all of which need to be matched by the issue. */
readonly and?: readonly IssueFilter[] | null | undefined
/** Comparator for the issues archived at date. */
readonly archivedAt?: NullableDateComparator | null | undefined
/** Filters that the issues assignee must satisfy. */
readonly assignee?: NullableUserFilter | null | undefined
/** Filters that the issues attachments must satisfy. */
readonly attachments?: AttachmentCollectionFilter | null | undefined
/** Comparator for the issues auto archived at date. */
readonly autoArchivedAt?: NullableDateComparator | null | undefined
/** Comparator for the issues auto closed at date. */
readonly autoClosedAt?: NullableDateComparator | null | undefined
/** Comparator for the issues canceled at date. */
readonly canceledAt?: NullableDateComparator | null | undefined
/** Filters that the child issues must satisfy. */
readonly children?: IssueCollectionFilter | null | undefined
/** Filters that the issues comments must satisfy. */
readonly comments?: CommentCollectionFilter | null | undefined
/** Comparator for the issues completed at date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the issues creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Count of customers */
readonly customerCount?: NumberComparator | null | undefined
/** Count of important customers */
readonly customerImportantCount?: NumberComparator | null | undefined
/** Filters that the issues cycle must satisfy. */
readonly cycle?: NullableCycleFilter | null | undefined
/** [Internal] Cycle time (started -> completed) comparator. */
readonly cycleTime?: NullableDurationComparator | null | undefined
/** Filters that the issue's delegated agent must satisfy. */
readonly delegate?: NullableUserFilter | null | undefined
/** Comparator for the issues description. */
readonly description?: NullableStringComparator | null | undefined
/** Comparator for the issues due date. */
readonly dueDate?: NullableTimelessDateComparator | null | undefined
/** Comparator for the issues estimate. */
readonly estimate?: EstimateComparator | null | undefined
/** [Internal] Comparator for filtering issues bucketed as having active agent sessions, no closed agent pull requests, and no merged agent pull requests. */
readonly hasActiveAgentSessions?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which are blocked. */
readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which are blocking. */
readonly hasBlockingRelations?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues bucketed as having all agent sessions dismissed or closed, and no merged agent pull requests. */
readonly hasDismissedAgentSessions?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which are duplicates. */
readonly hasDuplicateRelations?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues bucketed as having an errored agent session, no active sessions, and no merged agent pull requests. */
readonly hasErroredAgentSessions?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have agent-session-linked pull requests that were merged. */
readonly hasMergedAgentPullRequests?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues with relations. */
readonly hasRelatedRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which have been shared with users outside of the team. */
readonly hasSharedUsers?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested assignees. */
readonly hasSuggestedAssignees?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested labels. */
readonly hasSuggestedLabels?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested projects. */
readonly hasSuggestedProjects?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested related issues. */
readonly hasSuggestedRelatedIssues?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested similar issues. */
readonly hasSuggestedSimilarIssues?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested teams. */
readonly hasSuggestedTeams?: RelationExistsComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IssueIDComparator | null | undefined
/** Filters that issue labels must satisfy. */
readonly labels?: IssueLabelCollectionFilter | null | undefined
/** Filters that the last applied template must satisfy. */
readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined
/** [Internal] Lead time (created -> completed) comparator. */
readonly leadTime?: NullableDurationComparator | null | undefined
/** Filters that the issue's customer needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Comparator for the issues number. */
readonly number?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the issue. */
readonly or?: readonly IssueFilter[] | null | undefined
/** Filters that the issue parent must satisfy. */
readonly parent?: NullableIssueFilter | null | undefined
/** Comparator for the issues priority. 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low. */
readonly priority?: NullableNumberComparator | null | undefined
/** Filters that the issues project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Filters that the issues project milestone must satisfy. */
readonly projectMilestone?: NullableProjectMilestoneFilter | null | undefined
/** Filters that the issues reactions must satisfy. */
readonly reactions?: ReactionCollectionFilter | null | undefined
/** [ALPHA] Filters that the recurring issue template must satisfy. */
readonly recurringIssueTemplate?: NullableTemplateFilter | null | undefined
/** Filters that the issue's releases must satisfy. */
readonly releases?: ReleaseCollectionFilter | null | undefined
/** [Internal] Comparator for the issues content. */
readonly searchableContent?: ContentComparator | null | undefined
/** Filters that users the issue has been shared with must satisfy. */
readonly sharedWith?: UserCollectionFilter | null | undefined
/** Comparator for the issue's SLA breach date. */
readonly slaBreachesAt?: NullableDateComparator | null | undefined
/** Comparator for the issues sla status. */
readonly slaStatus?: SlaStatusComparator | null | undefined
/** Filters that the issues snoozer must satisfy. */
readonly snoozedBy?: NullableUserFilter | null | undefined
/** Comparator for the issues snoozed until date. */
readonly snoozedUntilAt?: NullableDateComparator | null | undefined
/** Filters that the source must satisfy. */
readonly sourceMetadata?: SourceMetadataComparator | null | undefined
/** Comparator for the issues started at date. */
readonly startedAt?: NullableDateComparator | null | undefined
/** Filters that the issues state must satisfy. */
readonly state?: WorkflowStateFilter | null | undefined
/** Filters that issue subscribers must satisfy. */
readonly subscribers?: UserCollectionFilter | null | undefined
/** [Internal] Filters that the issue's suggestions must satisfy. */
readonly suggestions?: IssueSuggestionCollectionFilter | null | undefined
/** Filters that the issues team must satisfy. */
readonly team?: TeamFilter | null | undefined
/** Comparator for the issues title. */
readonly title?: StringComparator | null | undefined
/** [Internal] Triage time (entered triaged -> triaged) comparator. */
readonly triageTime?: NullableDurationComparator | null | undefined
/** Comparator for the issues triaged at date. */
readonly triagedAt?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface IssueFilterEncoded {
readonly accumulatedStateUpdatedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly activity?: ActivityCollectionFilterEncoded | null | undefined
readonly addedToCycleAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly addedToCyclePeriod?: typeof CyclePeriodComparator.Encoded | null | undefined
readonly ageTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly and?: readonly IssueFilterEncoded[] | null | undefined
readonly archivedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly assignee?: NullableUserFilterEncoded | null | undefined
readonly attachments?: AttachmentCollectionFilterEncoded | null | undefined
readonly autoArchivedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly autoClosedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly canceledAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly children?: IssueCollectionFilterEncoded | null | undefined
readonly comments?: CommentCollectionFilterEncoded | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly customerCount?: typeof NumberComparator.Encoded | null | undefined
readonly customerImportantCount?: typeof NumberComparator.Encoded | null | undefined
readonly cycle?: NullableCycleFilterEncoded | null | undefined
readonly cycleTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly delegate?: NullableUserFilterEncoded | null | undefined
readonly description?: typeof NullableStringComparator.Encoded | null | undefined
readonly dueDate?: typeof NullableTimelessDateComparator.Encoded | null | undefined
readonly estimate?: typeof EstimateComparator.Encoded | null | undefined
readonly hasActiveAgentSessions?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasBlockedByRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasBlockingRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDismissedAgentSessions?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDuplicateRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasErroredAgentSessions?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasMergedAgentPullRequests?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasRelatedRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSharedUsers?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedAssignees?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedLabels?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedProjects?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedRelatedIssues?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedSimilarIssues?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedTeams?: typeof RelationExistsComparator.Encoded | null | undefined
readonly id?: typeof IssueIDComparator.Encoded | null | undefined
readonly labels?: IssueLabelCollectionFilterEncoded | null | undefined
readonly lastAppliedTemplate?: NullableTemplateFilterEncoded | null | undefined
readonly leadTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly number?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly IssueFilterEncoded[] | null | undefined
readonly parent?: NullableIssueFilterEncoded | null | undefined
readonly priority?: typeof NullableNumberComparator.Encoded | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly projectMilestone?: NullableProjectMilestoneFilterEncoded | null | undefined
readonly reactions?: ReactionCollectionFilterEncoded | null | undefined
readonly recurringIssueTemplate?: NullableTemplateFilterEncoded | null | undefined
readonly releases?: ReleaseCollectionFilterEncoded | null | undefined
readonly searchableContent?: typeof ContentComparator.Encoded | null | undefined
readonly sharedWith?: UserCollectionFilterEncoded | null | undefined
readonly slaBreachesAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly slaStatus?: typeof SlaStatusComparator.Encoded | null | undefined
readonly snoozedBy?: NullableUserFilterEncoded | null | undefined
readonly snoozedUntilAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly sourceMetadata?: typeof SourceMetadataComparator.Encoded | null | undefined
readonly startedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly state?: WorkflowStateFilterEncoded | null | undefined
readonly subscribers?: UserCollectionFilterEncoded | null | undefined
readonly suggestions?: IssueSuggestionCollectionFilterEncoded | null | undefined
readonly team?: TeamFilterEncoded | null | undefined
readonly title?: typeof StringComparator.Encoded | null | undefined
readonly triageTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly triagedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Activity collection filtering options. */
export const ActivityCollectionFilter: Schema.Codec<ActivityCollectionFilter, ActivityCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ActivityCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => ActivityFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ActivityCollectionFilter)))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => ActivityFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
user: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter)))
})
export interface ActivityCollectionFilter {
/** Compound filters, all of which need to be matched by the activity. */
readonly and?: readonly ActivityCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that needs to be matched by all activities. */
readonly every?: ActivityFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the activity. */
readonly or?: readonly ActivityCollectionFilter[] | null | undefined
/** Filters that needs to be matched by some activities. */
readonly some?: ActivityFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Filters that the activity's user must satisfy. */
readonly user?: UserFilter | null | undefined
}
export interface ActivityCollectionFilterEncoded {
readonly and?: readonly ActivityCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly every?: ActivityFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly ActivityCollectionFilterEncoded[] | null | undefined
readonly some?: ActivityFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly user?: UserFilterEncoded | null | undefined
}
/** Activity filtering options. */
export const ActivityFilter: Schema.Codec<ActivityFilter, ActivityFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ActivityFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ActivityFilter)))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
user: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter)))
})
export interface ActivityFilter {
/** Compound filters, all of which need to be matched by the activity. */
readonly and?: readonly ActivityFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Compound filters, one of which need to be matched by the activity. */
readonly or?: readonly ActivityFilter[] | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Filters that the activity's user must satisfy. */
readonly user?: UserFilter | null | undefined
}
export interface ActivityFilterEncoded {
readonly and?: readonly ActivityFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly or?: readonly ActivityFilterEncoded[] | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly user?: UserFilterEncoded | null | undefined
}
/** User filtering options. */
export const UserFilter: Schema.Codec<UserFilter, UserFilterEncoded> = Schema.Struct({
active: Schema.optional(Schema.NullOr(BooleanComparator)),
admin: Schema.optional(Schema.NullOr(BooleanComparator)),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => UserFilter)))),
app: Schema.optional(Schema.NullOr(BooleanComparator)),
assignedIssues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
displayName: Schema.optional(Schema.NullOr(StringComparator)),
email: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
invited: Schema.optional(Schema.NullOr(BooleanComparator)),
isInvited: Schema.optional(Schema.NullOr(BooleanComparator)),
isMe: Schema.optional(Schema.NullOr(BooleanComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => UserFilter)))),
owner: Schema.optional(Schema.NullOr(BooleanComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface UserFilter {
/** Comparator for the user's activity status. */
readonly active?: BooleanComparator | null | undefined
/** Comparator for the user's admin status. */
readonly admin?: BooleanComparator | null | undefined
/** Compound filters, all of which need to be matched by the user. */
readonly and?: readonly UserFilter[] | null | undefined
/** Comparator for the user's app status. */
readonly app?: BooleanComparator | null | undefined
/** Filters that the users assigned issues must satisfy. */
readonly assignedIssues?: IssueCollectionFilter | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the user's display name. */
readonly displayName?: StringComparator | null | undefined
/** Comparator for the user's email. */
readonly email?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the user's invited status. */
readonly invited?: BooleanComparator | null | undefined
/** Comparator for the user's invited status. */
readonly isInvited?: BooleanComparator | null | undefined
/** Filter based on the currently authenticated user. Set to true to filter for the authenticated user, false for any other user. */
readonly isMe?: BooleanComparator | null | undefined
/** Comparator for the user's name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the user. */
readonly or?: readonly UserFilter[] | null | undefined
/** Comparator for the user's owner status. */
readonly owner?: BooleanComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface UserFilterEncoded {
readonly active?: typeof BooleanComparator.Encoded | null | undefined
readonly admin?: typeof BooleanComparator.Encoded | null | undefined
readonly and?: readonly UserFilterEncoded[] | null | undefined
readonly app?: typeof BooleanComparator.Encoded | null | undefined
readonly assignedIssues?: IssueCollectionFilterEncoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly displayName?: typeof StringComparator.Encoded | null | undefined
readonly email?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly invited?: typeof BooleanComparator.Encoded | null | undefined
readonly isInvited?: typeof BooleanComparator.Encoded | null | undefined
readonly isMe?: typeof BooleanComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly UserFilterEncoded[] | null | undefined
readonly owner?: typeof BooleanComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Issue filtering options. */
export const IssueCollectionFilter: Schema.Codec<IssueCollectionFilter, IssueCollectionFilterEncoded> = Schema.Struct({
accumulatedStateUpdatedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
activity: Schema.optional(Schema.NullOr(Schema.suspend(() => ActivityCollectionFilter))),
addedToCycleAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
addedToCyclePeriod: Schema.optional(Schema.NullOr(CyclePeriodComparator)),
ageTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueCollectionFilter)))),
archivedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
assignee: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
attachments: Schema.optional(Schema.NullOr(Schema.suspend(() => AttachmentCollectionFilter))),
autoArchivedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
autoClosedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
canceledAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
children: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
comments: Schema.optional(Schema.NullOr(Schema.suspend(() => CommentCollectionFilter))),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
customerCount: Schema.optional(Schema.NullOr(NumberComparator)),
customerImportantCount: Schema.optional(Schema.NullOr(NumberComparator)),
cycle: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCycleFilter))),
cycleTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
delegate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
description: Schema.optional(Schema.NullOr(NullableStringComparator)),
dueDate: Schema.optional(Schema.NullOr(NullableTimelessDateComparator)),
estimate: Schema.optional(Schema.NullOr(EstimateComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueFilter))),
hasActiveAgentSessions: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasBlockedByRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasBlockingRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDismissedAgentSessions: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDuplicateRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasErroredAgentSessions: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasMergedAgentPullRequests: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasRelatedRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSharedUsers: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedAssignees: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedLabels: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedProjects: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedRelatedIssues: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedSimilarIssues: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedTeams: Schema.optional(Schema.NullOr(RelationExistsComparator)),
id: Schema.optional(Schema.NullOr(IssueIDComparator)),
labels: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueLabelCollectionFilter))),
lastAppliedTemplate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTemplateFilter))),
leadTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
number: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueCollectionFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableIssueFilter))),
priority: Schema.optional(Schema.NullOr(NullableNumberComparator)),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
projectMilestone: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectMilestoneFilter))),
reactions: Schema.optional(Schema.NullOr(ReactionCollectionFilter)),
recurringIssueTemplate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTemplateFilter))),
releases: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleaseCollectionFilter))),
searchableContent: Schema.optional(Schema.NullOr(ContentComparator)),
sharedWith: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
slaBreachesAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
slaStatus: Schema.optional(Schema.NullOr(SlaStatusComparator)),
snoozedBy: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
snoozedUntilAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueFilter))),
sourceMetadata: Schema.optional(Schema.NullOr(SourceMetadataComparator)),
startedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
state: Schema.optional(Schema.NullOr(Schema.suspend(() => WorkflowStateFilter))),
subscribers: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
suggestions: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueSuggestionCollectionFilter))),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamFilter))),
title: Schema.optional(Schema.NullOr(StringComparator)),
triageTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
triagedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface IssueCollectionFilter {
/** [Internal] Comparator for the issue's accumulatedStateUpdatedAt date. */
readonly accumulatedStateUpdatedAt?: NullableDateComparator | null | undefined
/** Filters that the issue's activities must satisfy. */
readonly activity?: ActivityCollectionFilter | null | undefined
/** Comparator for the issues added to cycle at date. */
readonly addedToCycleAt?: NullableDateComparator | null | undefined
/** Comparator for the period when issue was added to a cycle. */
readonly addedToCyclePeriod?: CyclePeriodComparator | null | undefined
/** [Internal] Age (created -> now) comparator, defined if the issue is still open. */
readonly ageTime?: NullableDurationComparator | null | undefined
/** Compound filters, all of which need to be matched by the issue. */
readonly and?: readonly IssueCollectionFilter[] | null | undefined
/** Comparator for the issues archived at date. */
readonly archivedAt?: NullableDateComparator | null | undefined
/** Filters that the issues assignee must satisfy. */
readonly assignee?: NullableUserFilter | null | undefined
/** Filters that the issues attachments must satisfy. */
readonly attachments?: AttachmentCollectionFilter | null | undefined
/** Comparator for the issues auto archived at date. */
readonly autoArchivedAt?: NullableDateComparator | null | undefined
/** Comparator for the issues auto closed at date. */
readonly autoClosedAt?: NullableDateComparator | null | undefined
/** Comparator for the issues canceled at date. */
readonly canceledAt?: NullableDateComparator | null | undefined
/** Filters that the child issues must satisfy. */
readonly children?: IssueCollectionFilter | null | undefined
/** Filters that the issues comments must satisfy. */
readonly comments?: CommentCollectionFilter | null | undefined
/** Comparator for the issues completed at date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the issues creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Count of customers */
readonly customerCount?: NumberComparator | null | undefined
/** Count of important customers */
readonly customerImportantCount?: NumberComparator | null | undefined
/** Filters that the issues cycle must satisfy. */
readonly cycle?: NullableCycleFilter | null | undefined
/** [Internal] Cycle time (started -> completed) comparator. */
readonly cycleTime?: NullableDurationComparator | null | undefined
/** Filters that the issue's delegated agent must satisfy. */
readonly delegate?: NullableUserFilter | null | undefined
/** Comparator for the issues description. */
readonly description?: NullableStringComparator | null | undefined
/** Comparator for the issues due date. */
readonly dueDate?: NullableTimelessDateComparator | null | undefined
/** Comparator for the issues estimate. */
readonly estimate?: EstimateComparator | null | undefined
/** Filters that needs to be matched by all issues. */
readonly every?: IssueFilter | null | undefined
/** [Internal] Comparator for filtering issues bucketed as having active agent sessions, no closed agent pull requests, and no merged agent pull requests. */
readonly hasActiveAgentSessions?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which are blocked. */
readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which are blocking. */
readonly hasBlockingRelations?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues bucketed as having all agent sessions dismissed or closed, and no merged agent pull requests. */
readonly hasDismissedAgentSessions?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which are duplicates. */
readonly hasDuplicateRelations?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues bucketed as having an errored agent session, no active sessions, and no merged agent pull requests. */
readonly hasErroredAgentSessions?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have agent-session-linked pull requests that were merged. */
readonly hasMergedAgentPullRequests?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues with relations. */
readonly hasRelatedRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which have been shared with users outside of the team. */
readonly hasSharedUsers?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested assignees. */
readonly hasSuggestedAssignees?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested labels. */
readonly hasSuggestedLabels?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested projects. */
readonly hasSuggestedProjects?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested related issues. */
readonly hasSuggestedRelatedIssues?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested similar issues. */
readonly hasSuggestedSimilarIssues?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested teams. */
readonly hasSuggestedTeams?: RelationExistsComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IssueIDComparator | null | undefined
/** Filters that issue labels must satisfy. */
readonly labels?: IssueLabelCollectionFilter | null | undefined
/** Filters that the last applied template must satisfy. */
readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined
/** [Internal] Lead time (created -> completed) comparator. */
readonly leadTime?: NullableDurationComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Filters that the issue's customer needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Comparator for the issues number. */
readonly number?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the issue. */
readonly or?: readonly IssueCollectionFilter[] | null | undefined
/** Filters that the issue parent must satisfy. */
readonly parent?: NullableIssueFilter | null | undefined
/** Comparator for the issues priority. 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low. */
readonly priority?: NullableNumberComparator | null | undefined
/** Filters that the issues project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Filters that the issues project milestone must satisfy. */
readonly projectMilestone?: NullableProjectMilestoneFilter | null | undefined
/** Filters that the issues reactions must satisfy. */
readonly reactions?: ReactionCollectionFilter | null | undefined
/** [ALPHA] Filters that the recurring issue template must satisfy. */
readonly recurringIssueTemplate?: NullableTemplateFilter | null | undefined
/** Filters that the issue's releases must satisfy. */
readonly releases?: ReleaseCollectionFilter | null | undefined
/** [Internal] Comparator for the issues content. */
readonly searchableContent?: ContentComparator | null | undefined
/** Filters that users the issue has been shared with must satisfy. */
readonly sharedWith?: UserCollectionFilter | null | undefined
/** Comparator for the issue's SLA breach date. */
readonly slaBreachesAt?: NullableDateComparator | null | undefined
/** Comparator for the issues sla status. */
readonly slaStatus?: SlaStatusComparator | null | undefined
/** Filters that the issues snoozer must satisfy. */
readonly snoozedBy?: NullableUserFilter | null | undefined
/** Comparator for the issues snoozed until date. */
readonly snoozedUntilAt?: NullableDateComparator | null | undefined
/** Filters that needs to be matched by some issues. */
readonly some?: IssueFilter | null | undefined
/** Filters that the source must satisfy. */
readonly sourceMetadata?: SourceMetadataComparator | null | undefined
/** Comparator for the issues started at date. */
readonly startedAt?: NullableDateComparator | null | undefined
/** Filters that the issues state must satisfy. */
readonly state?: WorkflowStateFilter | null | undefined
/** Filters that issue subscribers must satisfy. */
readonly subscribers?: UserCollectionFilter | null | undefined
/** [Internal] Filters that the issue's suggestions must satisfy. */
readonly suggestions?: IssueSuggestionCollectionFilter | null | undefined
/** Filters that the issues team must satisfy. */
readonly team?: TeamFilter | null | undefined
/** Comparator for the issues title. */
readonly title?: StringComparator | null | undefined
/** [Internal] Triage time (entered triaged -> triaged) comparator. */
readonly triageTime?: NullableDurationComparator | null | undefined
/** Comparator for the issues triaged at date. */
readonly triagedAt?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface IssueCollectionFilterEncoded {
readonly accumulatedStateUpdatedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly activity?: ActivityCollectionFilterEncoded | null | undefined
readonly addedToCycleAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly addedToCyclePeriod?: typeof CyclePeriodComparator.Encoded | null | undefined
readonly ageTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly and?: readonly IssueCollectionFilterEncoded[] | null | undefined
readonly archivedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly assignee?: NullableUserFilterEncoded | null | undefined
readonly attachments?: AttachmentCollectionFilterEncoded | null | undefined
readonly autoArchivedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly autoClosedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly canceledAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly children?: IssueCollectionFilterEncoded | null | undefined
readonly comments?: CommentCollectionFilterEncoded | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly customerCount?: typeof NumberComparator.Encoded | null | undefined
readonly customerImportantCount?: typeof NumberComparator.Encoded | null | undefined
readonly cycle?: NullableCycleFilterEncoded | null | undefined
readonly cycleTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly delegate?: NullableUserFilterEncoded | null | undefined
readonly description?: typeof NullableStringComparator.Encoded | null | undefined
readonly dueDate?: typeof NullableTimelessDateComparator.Encoded | null | undefined
readonly estimate?: typeof EstimateComparator.Encoded | null | undefined
readonly every?: IssueFilterEncoded | null | undefined
readonly hasActiveAgentSessions?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasBlockedByRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasBlockingRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDismissedAgentSessions?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDuplicateRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasErroredAgentSessions?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasMergedAgentPullRequests?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasRelatedRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSharedUsers?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedAssignees?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedLabels?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedProjects?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedRelatedIssues?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedSimilarIssues?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedTeams?: typeof RelationExistsComparator.Encoded | null | undefined
readonly id?: typeof IssueIDComparator.Encoded | null | undefined
readonly labels?: IssueLabelCollectionFilterEncoded | null | undefined
readonly lastAppliedTemplate?: NullableTemplateFilterEncoded | null | undefined
readonly leadTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly number?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly IssueCollectionFilterEncoded[] | null | undefined
readonly parent?: NullableIssueFilterEncoded | null | undefined
readonly priority?: typeof NullableNumberComparator.Encoded | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly projectMilestone?: NullableProjectMilestoneFilterEncoded | null | undefined
readonly reactions?: ReactionCollectionFilterEncoded | null | undefined
readonly recurringIssueTemplate?: NullableTemplateFilterEncoded | null | undefined
readonly releases?: ReleaseCollectionFilterEncoded | null | undefined
readonly searchableContent?: typeof ContentComparator.Encoded | null | undefined
readonly sharedWith?: UserCollectionFilterEncoded | null | undefined
readonly slaBreachesAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly slaStatus?: typeof SlaStatusComparator.Encoded | null | undefined
readonly snoozedBy?: NullableUserFilterEncoded | null | undefined
readonly snoozedUntilAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly some?: IssueFilterEncoded | null | undefined
readonly sourceMetadata?: typeof SourceMetadataComparator.Encoded | null | undefined
readonly startedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly state?: WorkflowStateFilterEncoded | null | undefined
readonly subscribers?: UserCollectionFilterEncoded | null | undefined
readonly suggestions?: IssueSuggestionCollectionFilterEncoded | null | undefined
readonly team?: TeamFilterEncoded | null | undefined
readonly title?: typeof StringComparator.Encoded | null | undefined
readonly triageTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly triagedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** User filtering options. */
export const NullableUserFilter: Schema.Codec<NullableUserFilter, NullableUserFilterEncoded> = Schema.Struct({
active: Schema.optional(Schema.NullOr(BooleanComparator)),
admin: Schema.optional(Schema.NullOr(BooleanComparator)),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableUserFilter)))),
app: Schema.optional(Schema.NullOr(BooleanComparator)),
assignedIssues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
displayName: Schema.optional(Schema.NullOr(StringComparator)),
email: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
invited: Schema.optional(Schema.NullOr(BooleanComparator)),
isInvited: Schema.optional(Schema.NullOr(BooleanComparator)),
isMe: Schema.optional(Schema.NullOr(BooleanComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableUserFilter)))),
owner: Schema.optional(Schema.NullOr(BooleanComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface NullableUserFilter {
/** Comparator for the user's activity status. */
readonly active?: BooleanComparator | null | undefined
/** Comparator for the user's admin status. */
readonly admin?: BooleanComparator | null | undefined
/** Compound filters, all of which need to be matched by the user. */
readonly and?: readonly NullableUserFilter[] | null | undefined
/** Comparator for the user's app status. */
readonly app?: BooleanComparator | null | undefined
/** Filters that the users assigned issues must satisfy. */
readonly assignedIssues?: IssueCollectionFilter | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the user's display name. */
readonly displayName?: StringComparator | null | undefined
/** Comparator for the user's email. */
readonly email?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the user's invited status. */
readonly invited?: BooleanComparator | null | undefined
/** Comparator for the user's invited status. */
readonly isInvited?: BooleanComparator | null | undefined
/** Filter based on the currently authenticated user. Set to true to filter for the authenticated user, false for any other user. */
readonly isMe?: BooleanComparator | null | undefined
/** Comparator for the user's name. */
readonly name?: StringComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the user. */
readonly or?: readonly NullableUserFilter[] | null | undefined
/** Comparator for the user's owner status. */
readonly owner?: BooleanComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface NullableUserFilterEncoded {
readonly active?: typeof BooleanComparator.Encoded | null | undefined
readonly admin?: typeof BooleanComparator.Encoded | null | undefined
readonly and?: readonly NullableUserFilterEncoded[] | null | undefined
readonly app?: typeof BooleanComparator.Encoded | null | undefined
readonly assignedIssues?: IssueCollectionFilterEncoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly displayName?: typeof StringComparator.Encoded | null | undefined
readonly email?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly invited?: typeof BooleanComparator.Encoded | null | undefined
readonly isInvited?: typeof BooleanComparator.Encoded | null | undefined
readonly isMe?: typeof BooleanComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableUserFilterEncoded[] | null | undefined
readonly owner?: typeof BooleanComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Attachment collection filtering options. */
export const AttachmentCollectionFilter: Schema.Codec<AttachmentCollectionFilter, AttachmentCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => AttachmentCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => AttachmentFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => AttachmentCollectionFilter)))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => AttachmentFilter))),
sourceType: Schema.optional(Schema.NullOr(SourceTypeComparator)),
subtitle: Schema.optional(Schema.NullOr(NullableStringComparator)),
title: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
url: Schema.optional(Schema.NullOr(StringComparator))
})
export interface AttachmentCollectionFilter {
/** Compound filters, all of which need to be matched by the attachment. */
readonly and?: readonly AttachmentCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the attachments creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Filters that needs to be matched by all attachments. */
readonly every?: AttachmentFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the attachment. */
readonly or?: readonly AttachmentCollectionFilter[] | null | undefined
/** Filters that needs to be matched by some attachments. */
readonly some?: AttachmentFilter | null | undefined
/** Comparator for the source type. */
readonly sourceType?: SourceTypeComparator | null | undefined
/** Comparator for the subtitle. */
readonly subtitle?: NullableStringComparator | null | undefined
/** Comparator for the title. */
readonly title?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Comparator for the url. */
readonly url?: StringComparator | null | undefined
}
export interface AttachmentCollectionFilterEncoded {
readonly and?: readonly AttachmentCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly every?: AttachmentFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly AttachmentCollectionFilterEncoded[] | null | undefined
readonly some?: AttachmentFilterEncoded | null | undefined
readonly sourceType?: typeof SourceTypeComparator.Encoded | null | undefined
readonly subtitle?: typeof NullableStringComparator.Encoded | null | undefined
readonly title?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly url?: typeof StringComparator.Encoded | null | undefined
}
/** Attachment filtering options. */
export const AttachmentFilter: Schema.Codec<AttachmentFilter, AttachmentFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => AttachmentFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => AttachmentFilter)))),
sourceType: Schema.optional(Schema.NullOr(SourceTypeComparator)),
subtitle: Schema.optional(Schema.NullOr(NullableStringComparator)),
title: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
url: Schema.optional(Schema.NullOr(StringComparator))
})
export interface AttachmentFilter {
/** Compound filters, all of which need to be matched by the attachment. */
readonly and?: readonly AttachmentFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the attachments creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Compound filters, one of which need to be matched by the attachment. */
readonly or?: readonly AttachmentFilter[] | null | undefined
/** Comparator for the source type. */
readonly sourceType?: SourceTypeComparator | null | undefined
/** Comparator for the subtitle. */
readonly subtitle?: NullableStringComparator | null | undefined
/** Comparator for the title. */
readonly title?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Comparator for the url. */
readonly url?: StringComparator | null | undefined
}
export interface AttachmentFilterEncoded {
readonly and?: readonly AttachmentFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly or?: readonly AttachmentFilterEncoded[] | null | undefined
readonly sourceType?: typeof SourceTypeComparator.Encoded | null | undefined
readonly subtitle?: typeof NullableStringComparator.Encoded | null | undefined
readonly title?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly url?: typeof StringComparator.Encoded | null | undefined
}
/** Comment filtering options. */
export const CommentCollectionFilter: Schema.Codec<CommentCollectionFilter, CommentCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CommentCollectionFilter)))),
body: Schema.optional(Schema.NullOr(StringComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
documentContent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableDocumentContentFilter))),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => CommentFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
initiative: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableInitiativeFilter))),
initiativeUpdate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableInitiativeUpdateFilter))),
issue: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableIssueFilter))),
length: Schema.optional(Schema.NullOr(NumberComparator)),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CommentCollectionFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCommentFilter))),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
projectUpdate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectUpdateFilter))),
reactions: Schema.optional(Schema.NullOr(ReactionCollectionFilter)),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => CommentFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
user: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter)))
})
export interface CommentCollectionFilter {
/** Compound filters, all of which need to be matched by the comment. */
readonly and?: readonly CommentCollectionFilter[] | null | undefined
/** Comparator for the comment's body. */
readonly body?: StringComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the comment's document content must satisfy. */
readonly documentContent?: NullableDocumentContentFilter | null | undefined
/** Filters that needs to be matched by all comments. */
readonly every?: CommentFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** [Internal] Filters that the comment's initiative must satisfy. */
readonly initiative?: NullableInitiativeFilter | null | undefined
/** Filters that the comment's initiative update must satisfy. */
readonly initiativeUpdate?: NullableInitiativeUpdateFilter | null | undefined
/** Filters that the comment's issue must satisfy. */
readonly issue?: NullableIssueFilter | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Filters that the comment's customer needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Compound filters, one of which need to be matched by the comment. */
readonly or?: readonly CommentCollectionFilter[] | null | undefined
/** Filters that the comment parent must satisfy. */
readonly parent?: NullableCommentFilter | null | undefined
/** [Internal] Filters that the comment's project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Filters that the comment's project update must satisfy. */
readonly projectUpdate?: NullableProjectUpdateFilter | null | undefined
/** Filters that the comment's reactions must satisfy. */
readonly reactions?: ReactionCollectionFilter | null | undefined
/** Filters that needs to be matched by some comments. */
readonly some?: CommentFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Filters that the comment's creator must satisfy. */
readonly user?: UserFilter | null | undefined
}
export interface CommentCollectionFilterEncoded {
readonly and?: readonly CommentCollectionFilterEncoded[] | null | undefined
readonly body?: typeof StringComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly documentContent?: NullableDocumentContentFilterEncoded | null | undefined
readonly every?: CommentFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly initiative?: NullableInitiativeFilterEncoded | null | undefined
readonly initiativeUpdate?: NullableInitiativeUpdateFilterEncoded | null | undefined
readonly issue?: NullableIssueFilterEncoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly or?: readonly CommentCollectionFilterEncoded[] | null | undefined
readonly parent?: NullableCommentFilterEncoded | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly projectUpdate?: NullableProjectUpdateFilterEncoded | null | undefined
readonly reactions?: ReactionCollectionFilterEncoded | null | undefined
readonly some?: CommentFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly user?: UserFilterEncoded | null | undefined
}
/** Document content filtering options. */
export const NullableDocumentContentFilter: Schema.Codec<NullableDocumentContentFilter, NullableDocumentContentFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableDocumentContentFilter)))),
content: Schema.optional(Schema.NullOr(NullableStringComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
document: Schema.optional(Schema.NullOr(Schema.suspend(() => DocumentFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
initiative: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeFilter))),
issue: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueFilter))),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableDocumentContentFilter)))),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectFilter))),
projectMilestone: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface NullableDocumentContentFilter {
/** Compound filters, all of which need to be matched by the user. */
readonly and?: readonly NullableDocumentContentFilter[] | null | undefined
/** Comparator for the document content. */
readonly content?: NullableStringComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the document content document must satisfy. */
readonly document?: DocumentFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Filters that the document content initiative must satisfy. */
readonly initiative?: InitiativeFilter | null | undefined
/** Filters that the document content issue must satisfy. */
readonly issue?: IssueFilter | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the user. */
readonly or?: readonly NullableDocumentContentFilter[] | null | undefined
/** Filters that the document content project must satisfy. */
readonly project?: ProjectFilter | null | undefined
/** Filters that the document content project milestone must satisfy. */
readonly projectMilestone?: ProjectMilestoneFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface NullableDocumentContentFilterEncoded {
readonly and?: readonly NullableDocumentContentFilterEncoded[] | null | undefined
readonly content?: typeof NullableStringComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly document?: DocumentFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly initiative?: InitiativeFilterEncoded | null | undefined
readonly issue?: IssueFilterEncoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableDocumentContentFilterEncoded[] | null | undefined
readonly project?: ProjectFilterEncoded | null | undefined
readonly projectMilestone?: ProjectMilestoneFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Document filtering options. */
export const DocumentFilter: Schema.Codec<DocumentFilter, DocumentFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => DocumentFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter))),
cycle: Schema.optional(Schema.NullOr(Schema.suspend(() => CycleFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
initiative: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeFilter))),
issue: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueFilter))),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => DocumentFilter)))),
owner: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectFilter))),
release: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleaseFilter))),
searchableContent: Schema.optional(Schema.NullOr(ContentComparator)),
slugId: Schema.optional(Schema.NullOr(StringComparator)),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
title: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface DocumentFilter {
/** Compound filters, all of which need to be matched by the document. */
readonly and?: readonly DocumentFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the document's creator must satisfy. */
readonly creator?: UserFilter | null | undefined
/** Filters that the document's cycle must satisfy. */
readonly cycle?: CycleFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Filters that the document's initiative must satisfy. */
readonly initiative?: InitiativeFilter | null | undefined
/** Filters that the document's issue must satisfy. */
readonly issue?: IssueFilter | null | undefined
/** Compound filters, one of which need to be matched by the document. */
readonly or?: readonly DocumentFilter[] | null | undefined
/** Filters that the document's owner must satisfy. */
readonly owner?: NullableUserFilter | null | undefined
/** Filters that the document's project must satisfy. */
readonly project?: ProjectFilter | null | undefined
/** Filters that the document's release must satisfy. */
readonly release?: ReleaseFilter | null | undefined
/** [Internal] Comparator for the document's searchable content. */
readonly searchableContent?: ContentComparator | null | undefined
/** Comparator for the document slug ID. */
readonly slugId?: StringComparator | null | undefined
/** Filters that the document's team must satisfy. */
readonly team?: NullableTeamFilter | null | undefined
/** Comparator for the document title. */
readonly title?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface DocumentFilterEncoded {
readonly and?: readonly DocumentFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: UserFilterEncoded | null | undefined
readonly cycle?: CycleFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly initiative?: InitiativeFilterEncoded | null | undefined
readonly issue?: IssueFilterEncoded | null | undefined
readonly or?: readonly DocumentFilterEncoded[] | null | undefined
readonly owner?: NullableUserFilterEncoded | null | undefined
readonly project?: ProjectFilterEncoded | null | undefined
readonly release?: ReleaseFilterEncoded | null | undefined
readonly searchableContent?: typeof ContentComparator.Encoded | null | undefined
readonly slugId?: typeof StringComparator.Encoded | null | undefined
readonly team?: NullableTeamFilterEncoded | null | undefined
readonly title?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Cycle filtering options. */
export const CycleFilter: Schema.Codec<CycleFilter, CycleFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CycleFilter)))),
completedAt: Schema.optional(Schema.NullOr(DateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
endsAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
inheritedFromId: Schema.optional(Schema.NullOr(IDComparator)),
isActive: Schema.optional(Schema.NullOr(BooleanComparator)),
isFuture: Schema.optional(Schema.NullOr(BooleanComparator)),
isInCooldown: Schema.optional(Schema.NullOr(BooleanComparator)),
isNext: Schema.optional(Schema.NullOr(BooleanComparator)),
isPast: Schema.optional(Schema.NullOr(BooleanComparator)),
isPrevious: Schema.optional(Schema.NullOr(BooleanComparator)),
issues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
number: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CycleFilter)))),
startsAt: Schema.optional(Schema.NullOr(DateComparator)),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface CycleFilter {
/** Compound filters, all of which need to be matched by the cycle. */
readonly and?: readonly CycleFilter[] | null | undefined
/** Comparator for the cycle completed at date. */
readonly completedAt?: DateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the cycle ends at date. */
readonly endsAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the inherited cycle ID. */
readonly inheritedFromId?: IDComparator | null | undefined
/** Comparator for the filtering active cycle. */
readonly isActive?: BooleanComparator | null | undefined
/** Comparator for the filtering future cycles. */
readonly isFuture?: BooleanComparator | null | undefined
/** Comparator for filtering for whether the cycle is currently in cooldown. */
readonly isInCooldown?: BooleanComparator | null | undefined
/** Comparator for the filtering next cycle. */
readonly isNext?: BooleanComparator | null | undefined
/** Comparator for the filtering past cycles. */
readonly isPast?: BooleanComparator | null | undefined
/** Comparator for the filtering previous cycle. */
readonly isPrevious?: BooleanComparator | null | undefined
/** Filters that the cycles issues must satisfy. */
readonly issues?: IssueCollectionFilter | null | undefined
/** Comparator for the cycle name. */
readonly name?: StringComparator | null | undefined
/** Comparator for the cycle number. */
readonly number?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the cycle. */
readonly or?: readonly CycleFilter[] | null | undefined
/** Comparator for the cycle start date. */
readonly startsAt?: DateComparator | null | undefined
/** Filters that the cycles team must satisfy. */
readonly team?: TeamFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface CycleFilterEncoded {
readonly and?: readonly CycleFilterEncoded[] | null | undefined
readonly completedAt?: typeof DateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly endsAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly inheritedFromId?: typeof IDComparator.Encoded | null | undefined
readonly isActive?: typeof BooleanComparator.Encoded | null | undefined
readonly isFuture?: typeof BooleanComparator.Encoded | null | undefined
readonly isInCooldown?: typeof BooleanComparator.Encoded | null | undefined
readonly isNext?: typeof BooleanComparator.Encoded | null | undefined
readonly isPast?: typeof BooleanComparator.Encoded | null | undefined
readonly isPrevious?: typeof BooleanComparator.Encoded | null | undefined
readonly issues?: IssueCollectionFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly number?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly CycleFilterEncoded[] | null | undefined
readonly startsAt?: typeof DateComparator.Encoded | null | undefined
readonly team?: TeamFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Team filtering options. */
export const TeamFilter: Schema.Codec<TeamFilter, TeamFilterEncoded> = Schema.Struct({
ancestors: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => TeamFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
description: Schema.optional(Schema.NullOr(NullableStringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
issues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
key: Schema.optional(Schema.NullOr(StringComparator)),
members: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => TeamFilter)))),
owners: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
private: Schema.optional(Schema.NullOr(BooleanComparator)),
releasePipelines: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleasePipelineCollectionFilter))),
restrictedBy: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
retiredAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
users: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
visibility: Schema.optional(Schema.NullOr(TeamVisibilityComparator))
})
export interface TeamFilter {
/** Filters that the team's ancestors must satisfy. */
readonly ancestors?: TeamCollectionFilter | null | undefined
/** Compound filters, all of which need to be matched by the team. */
readonly and?: readonly TeamFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the team description. */
readonly description?: NullableStringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Filters that the team's issues must satisfy. */
readonly issues?: IssueCollectionFilter | null | undefined
/** Comparator for the team key. */
readonly key?: StringComparator | null | undefined
/** Filters that the team's members must satisfy. */
readonly members?: UserCollectionFilter | null | undefined
/** Comparator for the team name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the team. */
readonly or?: readonly TeamFilter[] | null | undefined
/** Filters that the team's owners must satisfy. */
readonly owners?: UserCollectionFilter | null | undefined
/** Filters that the team's parent must satisfy. */
readonly parent?: NullableTeamFilter | null | undefined
/** [DEPRECATED] Comparator for the team privacy. */
readonly private?: BooleanComparator | null | undefined
/** Filters that the team's release pipelines must satisfy. */
readonly releasePipelines?: ReleasePipelineCollectionFilter | null | undefined
/** [Internal] Filters that the private team forming this team's visibility boundary must satisfy. Only relevant for non-public teams. */
readonly restrictedBy?: NullableTeamFilter | null | undefined
/** Comparator for the time at which the team was retired. */
readonly retiredAt?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** [Internal] Filters that the team's members must satisfy. Alias of `members` matching the filter shape produced by the app; prefer `members`. */
readonly users?: UserCollectionFilter | null | undefined
/** Comparator for the team visibility. */
readonly visibility?: TeamVisibilityComparator | null | undefined
}
export interface TeamFilterEncoded {
readonly ancestors?: TeamCollectionFilterEncoded | null | undefined
readonly and?: readonly TeamFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly description?: typeof NullableStringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly issues?: IssueCollectionFilterEncoded | null | undefined
readonly key?: typeof StringComparator.Encoded | null | undefined
readonly members?: UserCollectionFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly TeamFilterEncoded[] | null | undefined
readonly owners?: UserCollectionFilterEncoded | null | undefined
readonly parent?: NullableTeamFilterEncoded | null | undefined
readonly private?: typeof BooleanComparator.Encoded | null | undefined
readonly releasePipelines?: ReleasePipelineCollectionFilterEncoded | null | undefined
readonly restrictedBy?: NullableTeamFilterEncoded | null | undefined
readonly retiredAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly users?: UserCollectionFilterEncoded | null | undefined
readonly visibility?: typeof TeamVisibilityComparator.Encoded | null | undefined
}
/** Team collection filtering options. */
export const TeamCollectionFilter: Schema.Codec<TeamCollectionFilter, TeamCollectionFilterEncoded> = Schema.Struct({
ancestors: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => TeamCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => TeamCollectionFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface TeamCollectionFilter {
/** Filters that the team's ancestors must satisfy. */
readonly ancestors?: TeamCollectionFilter | null | undefined
/** Compound filters, all of which need to be matched by the team. */
readonly and?: readonly TeamCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that needs to be matched by all teams. */
readonly every?: TeamFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the team. */
readonly or?: readonly TeamCollectionFilter[] | null | undefined
/** Filters that the teams parent must satisfy. */
readonly parent?: NullableTeamFilter | null | undefined
/** Filters that needs to be matched by some teams. */
readonly some?: TeamFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface TeamCollectionFilterEncoded {
readonly ancestors?: TeamCollectionFilterEncoded | null | undefined
readonly and?: readonly TeamCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly every?: TeamFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly TeamCollectionFilterEncoded[] | null | undefined
readonly parent?: NullableTeamFilterEncoded | null | undefined
readonly some?: TeamFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Team filtering options. */
export const NullableTeamFilter: Schema.Codec<NullableTeamFilter, NullableTeamFilterEncoded> = Schema.Struct({
ancestors: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableTeamFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
description: Schema.optional(Schema.NullOr(NullableStringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
issues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
key: Schema.optional(Schema.NullOr(StringComparator)),
members: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableTeamFilter)))),
owners: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
private: Schema.optional(Schema.NullOr(BooleanComparator)),
releasePipelines: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleasePipelineCollectionFilter))),
restrictedBy: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
retiredAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
users: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
visibility: Schema.optional(Schema.NullOr(TeamVisibilityComparator))
})
export interface NullableTeamFilter {
/** Filters that the team's ancestors must satisfy. */
readonly ancestors?: TeamCollectionFilter | null | undefined
/** Compound filters, all of which need to be matched by the team. */
readonly and?: readonly NullableTeamFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the team description. */
readonly description?: NullableStringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Filters that the team's issues must satisfy. */
readonly issues?: IssueCollectionFilter | null | undefined
/** Comparator for the team key. */
readonly key?: StringComparator | null | undefined
/** Filters that the team's members must satisfy. */
readonly members?: UserCollectionFilter | null | undefined
/** Comparator for the team name. */
readonly name?: StringComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the team. */
readonly or?: readonly NullableTeamFilter[] | null | undefined
/** Filters that the team's owners must satisfy. */
readonly owners?: UserCollectionFilter | null | undefined
/** Filters that the team's parent must satisfy. */
readonly parent?: NullableTeamFilter | null | undefined
/** [DEPRECATED] Comparator for the team privacy. */
readonly private?: BooleanComparator | null | undefined
/** Filters that the team's release pipelines must satisfy. */
readonly releasePipelines?: ReleasePipelineCollectionFilter | null | undefined
/** [Internal] Filters that the private team forming this team's visibility boundary must satisfy. Only relevant for non-public teams. */
readonly restrictedBy?: NullableTeamFilter | null | undefined
/** Comparator for the time at which the team was retired. */
readonly retiredAt?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** [Internal] Filters that the team's members must satisfy. Alias of `members` matching the filter shape produced by the app; prefer `members`. */
readonly users?: UserCollectionFilter | null | undefined
/** Comparator for the team visibility. */
readonly visibility?: TeamVisibilityComparator | null | undefined
}
export interface NullableTeamFilterEncoded {
readonly ancestors?: TeamCollectionFilterEncoded | null | undefined
readonly and?: readonly NullableTeamFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly description?: typeof NullableStringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly issues?: IssueCollectionFilterEncoded | null | undefined
readonly key?: typeof StringComparator.Encoded | null | undefined
readonly members?: UserCollectionFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableTeamFilterEncoded[] | null | undefined
readonly owners?: UserCollectionFilterEncoded | null | undefined
readonly parent?: NullableTeamFilterEncoded | null | undefined
readonly private?: typeof BooleanComparator.Encoded | null | undefined
readonly releasePipelines?: ReleasePipelineCollectionFilterEncoded | null | undefined
readonly restrictedBy?: NullableTeamFilterEncoded | null | undefined
readonly retiredAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly users?: UserCollectionFilterEncoded | null | undefined
readonly visibility?: typeof TeamVisibilityComparator.Encoded | null | undefined
}
/** User filtering options. */
export const UserCollectionFilter: Schema.Codec<UserCollectionFilter, UserCollectionFilterEncoded> = Schema.Struct({
active: Schema.optional(Schema.NullOr(BooleanComparator)),
admin: Schema.optional(Schema.NullOr(BooleanComparator)),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => UserCollectionFilter)))),
app: Schema.optional(Schema.NullOr(BooleanComparator)),
assignedIssues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
displayName: Schema.optional(Schema.NullOr(StringComparator)),
email: Schema.optional(Schema.NullOr(StringComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
invited: Schema.optional(Schema.NullOr(BooleanComparator)),
isInvited: Schema.optional(Schema.NullOr(BooleanComparator)),
isMe: Schema.optional(Schema.NullOr(BooleanComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => UserCollectionFilter)))),
owner: Schema.optional(Schema.NullOr(BooleanComparator)),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface UserCollectionFilter {
/** Comparator for the user's activity status. */
readonly active?: BooleanComparator | null | undefined
/** Comparator for the user's admin status. */
readonly admin?: BooleanComparator | null | undefined
/** Compound filters, all of which need to be matched by the user. */
readonly and?: readonly UserCollectionFilter[] | null | undefined
/** Comparator for the user's app status. */
readonly app?: BooleanComparator | null | undefined
/** Filters that the users assigned issues must satisfy. */
readonly assignedIssues?: IssueCollectionFilter | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the user's display name. */
readonly displayName?: StringComparator | null | undefined
/** Comparator for the user's email. */
readonly email?: StringComparator | null | undefined
/** Filters that needs to be matched by all users. */
readonly every?: UserFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the user's invited status. */
readonly invited?: BooleanComparator | null | undefined
/** Comparator for the user's invited status. */
readonly isInvited?: BooleanComparator | null | undefined
/** Filter based on the currently authenticated user. Set to true to filter for the authenticated user, false for any other user. */
readonly isMe?: BooleanComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Comparator for the user's name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the user. */
readonly or?: readonly UserCollectionFilter[] | null | undefined
/** Comparator for the user's owner status. */
readonly owner?: BooleanComparator | null | undefined
/** Filters that needs to be matched by some users. */
readonly some?: UserFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface UserCollectionFilterEncoded {
readonly active?: typeof BooleanComparator.Encoded | null | undefined
readonly admin?: typeof BooleanComparator.Encoded | null | undefined
readonly and?: readonly UserCollectionFilterEncoded[] | null | undefined
readonly app?: typeof BooleanComparator.Encoded | null | undefined
readonly assignedIssues?: IssueCollectionFilterEncoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly displayName?: typeof StringComparator.Encoded | null | undefined
readonly email?: typeof StringComparator.Encoded | null | undefined
readonly every?: UserFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly invited?: typeof BooleanComparator.Encoded | null | undefined
readonly isInvited?: typeof BooleanComparator.Encoded | null | undefined
readonly isMe?: typeof BooleanComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly UserCollectionFilterEncoded[] | null | undefined
readonly owner?: typeof BooleanComparator.Encoded | null | undefined
readonly some?: UserFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Release pipeline collection filtering options. */
export const ReleasePipelineCollectionFilter: Schema.Codec<ReleasePipelineCollectionFilter, ReleasePipelineCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleasePipelineCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleasePipelineFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
isProduction: Schema.optional(Schema.NullOr(BooleanComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleasePipelineCollectionFilter)))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleasePipelineFilter))),
teams: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
type: Schema.optional(Schema.NullOr(ReleasePipelineTypeComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ReleasePipelineCollectionFilter {
/** Compound filters, all of which need to be matched by the release pipeline. */
readonly and?: readonly ReleasePipelineCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that needs to be matched by all release pipelines. */
readonly every?: ReleasePipelineFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the pipeline production flag. */
readonly isProduction?: BooleanComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Comparator for the pipeline name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the release pipeline. */
readonly or?: readonly ReleasePipelineCollectionFilter[] | null | undefined
/** Filters that needs to be matched by some release pipelines. */
readonly some?: ReleasePipelineFilter | null | undefined
/** Filters that the release pipeline's teams must satisfy. */
readonly teams?: TeamCollectionFilter | null | undefined
/** Comparator for the pipeline type. */
readonly type?: ReleasePipelineTypeComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ReleasePipelineCollectionFilterEncoded {
readonly and?: readonly ReleasePipelineCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly every?: ReleasePipelineFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly isProduction?: typeof BooleanComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly ReleasePipelineCollectionFilterEncoded[] | null | undefined
readonly some?: ReleasePipelineFilterEncoded | null | undefined
readonly teams?: TeamCollectionFilterEncoded | null | undefined
readonly type?: typeof ReleasePipelineTypeComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Release pipeline filtering options. */
export const ReleasePipelineFilter: Schema.Codec<ReleasePipelineFilter, ReleasePipelineFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleasePipelineFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
isProduction: Schema.optional(Schema.NullOr(BooleanComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleasePipelineFilter)))),
teams: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
type: Schema.optional(Schema.NullOr(ReleasePipelineTypeComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ReleasePipelineFilter {
/** Compound filters, all of which need to be matched by the pipeline. */
readonly and?: readonly ReleasePipelineFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the pipeline production flag. */
readonly isProduction?: BooleanComparator | null | undefined
/** Comparator for the pipeline name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the pipeline. */
readonly or?: readonly ReleasePipelineFilter[] | null | undefined
/** Filters that the release pipeline's teams must satisfy. */
readonly teams?: TeamCollectionFilter | null | undefined
/** Comparator for the pipeline type. */
readonly type?: ReleasePipelineTypeComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ReleasePipelineFilterEncoded {
readonly and?: readonly ReleasePipelineFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly isProduction?: typeof BooleanComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly ReleasePipelineFilterEncoded[] | null | undefined
readonly teams?: TeamCollectionFilterEncoded | null | undefined
readonly type?: typeof ReleasePipelineTypeComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Initiative filtering options. */
export const InitiativeFilter: Schema.Codec<InitiativeFilter, InitiativeFilterEncoded> = Schema.Struct({
activityType: Schema.optional(Schema.NullOr(StringComparator)),
ancestors: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeCollectionFilter))),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeFilter)))),
canceledAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
customIdentifier: Schema.optional(Schema.NullOr(NullableStringComparator)),
health: Schema.optional(Schema.NullOr(StringComparator)),
healthWithAge: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(EntityIdentifierIDComparator)),
initiativeUpdates: Schema.optional(Schema.NullOr(InitiativeUpdatesCollectionFilter)),
labels: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeLabelCollectionFilter))),
leadTeam: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeFilter)))),
owner: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
priority: Schema.optional(Schema.NullOr(NullableNumberComparator)),
projects: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectCollectionFilter))),
slugId: Schema.optional(Schema.NullOr(StringComparator)),
startedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
status: Schema.optional(Schema.NullOr(StringComparator)),
targetDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
teams: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface InitiativeFilter {
/** Comparator for the initiative activity type. */
readonly activityType?: StringComparator | null | undefined
/** Filters that the initiative must be an ancestor of. */
readonly ancestors?: InitiativeCollectionFilter | null | undefined
/** Compound filters, all of which need to be matched by the initiative. */
readonly and?: readonly InitiativeFilter[] | null | undefined
/** [Internal] Comparator for the initiative canceled at date. */
readonly canceledAt?: NullableDateComparator | null | undefined
/** Comparator for the initiative completed at date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the initiative creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** [Internal] Comparator for the initiative's custom identifier. */
readonly customIdentifier?: NullableStringComparator | null | undefined
/** Comparator for the initiative health: onTrack, atRisk, offTrack */
readonly health?: StringComparator | null | undefined
/** Comparator for the initiative health (with age): onTrack, atRisk, offTrack, outdated, noUpdate */
readonly healthWithAge?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: EntityIdentifierIDComparator | null | undefined
/** Filters that the initiative updates must satisfy. */
readonly initiativeUpdates?: InitiativeUpdatesCollectionFilter | null | undefined
/** Filters that the initiative labels must satisfy. */
readonly labels?: InitiativeLabelCollectionFilter | null | undefined
/** Filters that the initiative lead team must satisfy. */
readonly leadTeam?: NullableTeamFilter | null | undefined
/** Comparator for the initiative name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the initiative. */
readonly or?: readonly InitiativeFilter[] | null | undefined
/** Filters that the initiative owner must satisfy. */
readonly owner?: NullableUserFilter | null | undefined
/** Comparator for the initiative priority. */
readonly priority?: NullableNumberComparator | null | undefined
/** Filters that the initiative projects must satisfy. */
readonly projects?: ProjectCollectionFilter | null | undefined
/** Comparator for the initiative slug ID. */
readonly slugId?: StringComparator | null | undefined
/** Comparator for the initiative started at date. */
readonly startedAt?: NullableDateComparator | null | undefined
/** Comparator for the initiative status: Proposed, Planned, Active, Completed, Canceled */
readonly status?: StringComparator | null | undefined
/** Comparator for the initiative target date. */
readonly targetDate?: NullableDateComparator | null | undefined
/** Filters that the initiative teams must satisfy. */
readonly teams?: TeamCollectionFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface InitiativeFilterEncoded {
readonly activityType?: typeof StringComparator.Encoded | null | undefined
readonly ancestors?: InitiativeCollectionFilterEncoded | null | undefined
readonly and?: readonly InitiativeFilterEncoded[] | null | undefined
readonly canceledAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly customIdentifier?: typeof NullableStringComparator.Encoded | null | undefined
readonly health?: typeof StringComparator.Encoded | null | undefined
readonly healthWithAge?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof EntityIdentifierIDComparator.Encoded | null | undefined
readonly initiativeUpdates?: InitiativeUpdatesCollectionFilterEncoded | null | undefined
readonly labels?: InitiativeLabelCollectionFilterEncoded | null | undefined
readonly leadTeam?: NullableTeamFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly InitiativeFilterEncoded[] | null | undefined
readonly owner?: NullableUserFilterEncoded | null | undefined
readonly priority?: typeof NullableNumberComparator.Encoded | null | undefined
readonly projects?: ProjectCollectionFilterEncoded | null | undefined
readonly slugId?: typeof StringComparator.Encoded | null | undefined
readonly startedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly status?: typeof StringComparator.Encoded | null | undefined
readonly targetDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly teams?: TeamCollectionFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Initiative collection filtering options. */
export const InitiativeCollectionFilter: Schema.Codec<InitiativeCollectionFilter, InitiativeCollectionFilterEncoded> = Schema.Struct({
activityType: Schema.optional(Schema.NullOr(StringComparator)),
ancestors: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeCollectionFilter))),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeCollectionFilter)))),
canceledAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
customIdentifier: Schema.optional(Schema.NullOr(NullableStringComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeFilter))),
health: Schema.optional(Schema.NullOr(StringComparator)),
healthWithAge: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(EntityIdentifierIDComparator)),
initiativeUpdates: Schema.optional(Schema.NullOr(InitiativeUpdatesCollectionFilter)),
labels: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeLabelCollectionFilter))),
leadTeam: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
length: Schema.optional(Schema.NullOr(NumberComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeCollectionFilter)))),
owner: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
priority: Schema.optional(Schema.NullOr(NullableNumberComparator)),
projects: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectCollectionFilter))),
slugId: Schema.optional(Schema.NullOr(StringComparator)),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeFilter))),
startedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
status: Schema.optional(Schema.NullOr(StringComparator)),
targetDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
teams: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface InitiativeCollectionFilter {
/** Comparator for the initiative activity type. */
readonly activityType?: StringComparator | null | undefined
/** Filters that the initiative must be an ancestor of. */
readonly ancestors?: InitiativeCollectionFilter | null | undefined
/** Compound filters, all of which need to be matched by the initiative. */
readonly and?: readonly InitiativeCollectionFilter[] | null | undefined
/** [Internal] Comparator for the initiative canceled at date. */
readonly canceledAt?: NullableDateComparator | null | undefined
/** Comparator for the initiative completed at date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the initiative creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** [Internal] Comparator for the initiative's custom identifier. */
readonly customIdentifier?: NullableStringComparator | null | undefined
/** Filters that needs to be matched by all initiatives. */
readonly every?: InitiativeFilter | null | undefined
/** Comparator for the initiative health: onTrack, atRisk, offTrack */
readonly health?: StringComparator | null | undefined
/** Comparator for the initiative health (with age): onTrack, atRisk, offTrack, outdated, noUpdate */
readonly healthWithAge?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: EntityIdentifierIDComparator | null | undefined
/** Filters that the initiative updates must satisfy. */
readonly initiativeUpdates?: InitiativeUpdatesCollectionFilter | null | undefined
/** Filters that the initiative labels must satisfy. */
readonly labels?: InitiativeLabelCollectionFilter | null | undefined
/** Filters that the initiative lead team must satisfy. */
readonly leadTeam?: NullableTeamFilter | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Comparator for the initiative name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the initiative. */
readonly or?: readonly InitiativeCollectionFilter[] | null | undefined
/** Filters that the initiative owner must satisfy. */
readonly owner?: NullableUserFilter | null | undefined
/** Comparator for the initiative priority. */
readonly priority?: NullableNumberComparator | null | undefined
/** Filters that the initiative projects must satisfy. */
readonly projects?: ProjectCollectionFilter | null | undefined
/** Comparator for the initiative slug ID. */
readonly slugId?: StringComparator | null | undefined
/** Filters that needs to be matched by some initiatives. */
readonly some?: InitiativeFilter | null | undefined
/** Comparator for the initiative started at date. */
readonly startedAt?: NullableDateComparator | null | undefined
/** Comparator for the initiative status: Proposed, Planned, Active, Completed, Canceled */
readonly status?: StringComparator | null | undefined
/** Comparator for the initiative target date. */
readonly targetDate?: NullableDateComparator | null | undefined
/** Filters that the initiative teams must satisfy. */
readonly teams?: TeamCollectionFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface InitiativeCollectionFilterEncoded {
readonly activityType?: typeof StringComparator.Encoded | null | undefined
readonly ancestors?: InitiativeCollectionFilterEncoded | null | undefined
readonly and?: readonly InitiativeCollectionFilterEncoded[] | null | undefined
readonly canceledAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly customIdentifier?: typeof NullableStringComparator.Encoded | null | undefined
readonly every?: InitiativeFilterEncoded | null | undefined
readonly health?: typeof StringComparator.Encoded | null | undefined
readonly healthWithAge?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof EntityIdentifierIDComparator.Encoded | null | undefined
readonly initiativeUpdates?: InitiativeUpdatesCollectionFilterEncoded | null | undefined
readonly labels?: InitiativeLabelCollectionFilterEncoded | null | undefined
readonly leadTeam?: NullableTeamFilterEncoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly InitiativeCollectionFilterEncoded[] | null | undefined
readonly owner?: NullableUserFilterEncoded | null | undefined
readonly priority?: typeof NullableNumberComparator.Encoded | null | undefined
readonly projects?: ProjectCollectionFilterEncoded | null | undefined
readonly slugId?: typeof StringComparator.Encoded | null | undefined
readonly some?: InitiativeFilterEncoded | null | undefined
readonly startedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly status?: typeof StringComparator.Encoded | null | undefined
readonly targetDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly teams?: TeamCollectionFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Initiative label filtering options. */
export const InitiativeLabelCollectionFilter: Schema.Codec<InitiativeLabelCollectionFilter, InitiativeLabelCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeLabelCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeLabelFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
isGroup: Schema.optional(Schema.NullOr(BooleanComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeLabelCollectionFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeLabelFilter))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeLabelCollectionFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface InitiativeLabelCollectionFilter {
/** Compound filters, all of which need to be matched by the label. */
readonly and?: readonly InitiativeLabelCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the initiative labels creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Filters that needs to be matched by all initiative labels. */
readonly every?: InitiativeLabelFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for whether the label is a group label. */
readonly isGroup?: BooleanComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Comparator for the name. */
readonly name?: StringComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the label. */
readonly or?: readonly InitiativeLabelCollectionFilter[] | null | undefined
/** Filters that the initiative label's parent label must satisfy. */
readonly parent?: InitiativeLabelFilter | null | undefined
/** Filters that needs to be matched by some initiative labels. */
readonly some?: InitiativeLabelCollectionFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface InitiativeLabelCollectionFilterEncoded {
readonly and?: readonly InitiativeLabelCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly every?: InitiativeLabelFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly isGroup?: typeof BooleanComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly InitiativeLabelCollectionFilterEncoded[] | null | undefined
readonly parent?: InitiativeLabelFilterEncoded | null | undefined
readonly some?: InitiativeLabelCollectionFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Initiative label filtering options. */
export const InitiativeLabelFilter: Schema.Codec<InitiativeLabelFilter, InitiativeLabelFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeLabelFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
isGroup: Schema.optional(Schema.NullOr(BooleanComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => InitiativeLabelFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeLabelFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface InitiativeLabelFilter {
/** Compound filters, all of which need to be matched by the label. */
readonly and?: readonly InitiativeLabelFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the initiative labels creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for whether the label is a group label. */
readonly isGroup?: BooleanComparator | null | undefined
/** Comparator for the name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the label. */
readonly or?: readonly InitiativeLabelFilter[] | null | undefined
/** Filters that the initiative label's parent label must satisfy. */
readonly parent?: InitiativeLabelFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface InitiativeLabelFilterEncoded {
readonly and?: readonly InitiativeLabelFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly isGroup?: typeof BooleanComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly InitiativeLabelFilterEncoded[] | null | undefined
readonly parent?: InitiativeLabelFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Project filtering options. */
export const ProjectCollectionFilter: Schema.Codec<ProjectCollectionFilter, ProjectCollectionFilterEncoded> = Schema.Struct({
accessibleTeams: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
activityType: Schema.optional(Schema.NullOr(StringComparator)),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectCollectionFilter)))),
canceledAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
completedProjectMilestones: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneCollectionFilter))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter))),
customIdentifier: Schema.optional(Schema.NullOr(NullableStringComparator)),
customerCount: Schema.optional(Schema.NullOr(NumberComparator)),
customerImportantCount: Schema.optional(Schema.NullOr(NumberComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectFilter))),
hasBlockedByRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasBlockingRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDependedOnByRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDependsOnRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasRelatedRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasViolatedRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
health: Schema.optional(Schema.NullOr(StringComparator)),
healthWithAge: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(EntityIdentifierIDComparator)),
initiatives: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeCollectionFilter))),
issues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
labels: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectLabelCollectionFilter))),
lastAppliedTemplate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTemplateFilter))),
lead: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
leadTeam: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
length: Schema.optional(Schema.NullOr(NumberComparator)),
members: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
nextProjectMilestone: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneFilter))),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectCollectionFilter)))),
priority: Schema.optional(Schema.NullOr(NullableNumberComparator)),
projectMilestones: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneCollectionFilter))),
projectUpdates: Schema.optional(Schema.NullOr(ProjectUpdatesCollectionFilter)),
roadmaps: Schema.optional(Schema.NullOr(Schema.suspend(() => RoadmapCollectionFilter))),
searchableContent: Schema.optional(Schema.NullOr(ContentComparator)),
slugId: Schema.optional(Schema.NullOr(StringComparator)),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectFilter))),
startDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
startedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
state: Schema.optional(Schema.NullOr(StringComparator)),
status: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectStatusFilter))),
targetDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ProjectCollectionFilter {
/** Filters that the project's team must satisfy. */
readonly accessibleTeams?: TeamCollectionFilter | null | undefined
/** [ALPHA] Comparator for the project activity type: buzzin, active, some, none */
readonly activityType?: StringComparator | null | undefined
/** Compound filters, all of which need to be matched by the project. */
readonly and?: readonly ProjectCollectionFilter[] | null | undefined
/** Comparator for the project cancelation date. */
readonly canceledAt?: NullableDateComparator | null | undefined
/** Comparator for the project completion date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Filters that the project's completed milestones must satisfy. */
readonly completedProjectMilestones?: ProjectMilestoneCollectionFilter | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the projects creator must satisfy. */
readonly creator?: UserFilter | null | undefined
/** [Internal] Comparator for the project's custom identifier. */
readonly customIdentifier?: NullableStringComparator | null | undefined
/** Count of customers */
readonly customerCount?: NumberComparator | null | undefined
/** Count of important customers */
readonly customerImportantCount?: NumberComparator | null | undefined
/** Filters that needs to be matched by all projects. */
readonly every?: ProjectFilter | null | undefined
/** Comparator for filtering projects which are blocked. */
readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering projects which are blocking. */
readonly hasBlockingRelations?: RelationExistsComparator | null | undefined
/** [Deprecated] Comparator for filtering projects which this is depended on by. */
readonly hasDependedOnByRelations?: RelationExistsComparator | null | undefined
/** [Deprecated]Comparator for filtering projects which this depends on. */
readonly hasDependsOnRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering projects with relations. */
readonly hasRelatedRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering projects with violated dependencies. */
readonly hasViolatedRelations?: RelationExistsComparator | null | undefined
/** Comparator for the project health: onTrack, atRisk, offTrack */
readonly health?: StringComparator | null | undefined
/** Comparator for the project health (with age): onTrack, atRisk, offTrack, outdated, noUpdate */
readonly healthWithAge?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: EntityIdentifierIDComparator | null | undefined
/** Filters that the projects initiatives must satisfy. */
readonly initiatives?: InitiativeCollectionFilter | null | undefined
/** Filters that the projects issues must satisfy. */
readonly issues?: IssueCollectionFilter | null | undefined
/** Filters that project labels must satisfy. */
readonly labels?: ProjectLabelCollectionFilter | null | undefined
/** Filters that the last applied template must satisfy. */
readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined
/** Filters that the projects lead must satisfy. */
readonly lead?: NullableUserFilter | null | undefined
/** [ALPHA] Filters that the project's lead team must satisfy. */
readonly leadTeam?: NullableTeamFilter | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Filters that the projects members must satisfy. */
readonly members?: UserCollectionFilter | null | undefined
/** Comparator for the project name. */
readonly name?: StringComparator | null | undefined
/** Filters that the project's customer needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Filters that the project's next milestone must satisfy. */
readonly nextProjectMilestone?: ProjectMilestoneFilter | null | undefined
/** Compound filters, one of which need to be matched by the project. */
readonly or?: readonly ProjectCollectionFilter[] | null | undefined
/** Comparator for the project priority. */
readonly priority?: NullableNumberComparator | null | undefined
/** Filters that the project's milestones must satisfy. */
readonly projectMilestones?: ProjectMilestoneCollectionFilter | null | undefined
/** Comparator for the project updates. */
readonly projectUpdates?: ProjectUpdatesCollectionFilter | null | undefined
/** Filters that the projects roadmaps must satisfy. */
readonly roadmaps?: RoadmapCollectionFilter | null | undefined
/** [Internal] Comparator for the project's content. */
readonly searchableContent?: ContentComparator | null | undefined
/** Comparator for the project slug ID. */
readonly slugId?: StringComparator | null | undefined
/** Filters that needs to be matched by some projects. */
readonly some?: ProjectFilter | null | undefined
/** Comparator for the project start date. */
readonly startDate?: NullableDateComparator | null | undefined
/** Comparator for the project started date (when it was moved to an "In Progress" status). */
readonly startedAt?: NullableDateComparator | null | undefined
/** [DEPRECATED] Comparator for the project state. */
readonly state?: StringComparator | null | undefined
/** Filters that the project status must satisfy. */
readonly status?: ProjectStatusFilter | null | undefined
/** Comparator for the project target date. */
readonly targetDate?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ProjectCollectionFilterEncoded {
readonly accessibleTeams?: TeamCollectionFilterEncoded | null | undefined
readonly activityType?: typeof StringComparator.Encoded | null | undefined
readonly and?: readonly ProjectCollectionFilterEncoded[] | null | undefined
readonly canceledAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly completedProjectMilestones?: ProjectMilestoneCollectionFilterEncoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: UserFilterEncoded | null | undefined
readonly customIdentifier?: typeof NullableStringComparator.Encoded | null | undefined
readonly customerCount?: typeof NumberComparator.Encoded | null | undefined
readonly customerImportantCount?: typeof NumberComparator.Encoded | null | undefined
readonly every?: ProjectFilterEncoded | null | undefined
readonly hasBlockedByRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasBlockingRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDependedOnByRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDependsOnRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasRelatedRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasViolatedRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly health?: typeof StringComparator.Encoded | null | undefined
readonly healthWithAge?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof EntityIdentifierIDComparator.Encoded | null | undefined
readonly initiatives?: InitiativeCollectionFilterEncoded | null | undefined
readonly issues?: IssueCollectionFilterEncoded | null | undefined
readonly labels?: ProjectLabelCollectionFilterEncoded | null | undefined
readonly lastAppliedTemplate?: NullableTemplateFilterEncoded | null | undefined
readonly lead?: NullableUserFilterEncoded | null | undefined
readonly leadTeam?: NullableTeamFilterEncoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly members?: UserCollectionFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly nextProjectMilestone?: ProjectMilestoneFilterEncoded | null | undefined
readonly or?: readonly ProjectCollectionFilterEncoded[] | null | undefined
readonly priority?: typeof NullableNumberComparator.Encoded | null | undefined
readonly projectMilestones?: ProjectMilestoneCollectionFilterEncoded | null | undefined
readonly projectUpdates?: ProjectUpdatesCollectionFilterEncoded | null | undefined
readonly roadmaps?: RoadmapCollectionFilterEncoded | null | undefined
readonly searchableContent?: typeof ContentComparator.Encoded | null | undefined
readonly slugId?: typeof StringComparator.Encoded | null | undefined
readonly some?: ProjectFilterEncoded | null | undefined
readonly startDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly startedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly state?: typeof StringComparator.Encoded | null | undefined
readonly status?: ProjectStatusFilterEncoded | null | undefined
readonly targetDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Milestone collection filtering options. */
export const ProjectMilestoneCollectionFilter: Schema.Codec<ProjectMilestoneCollectionFilter, ProjectMilestoneCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectMilestoneCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
name: Schema.optional(Schema.NullOr(NullableStringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectMilestoneCollectionFilter)))),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneFilter))),
targetDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ProjectMilestoneCollectionFilter {
/** Compound filters, all of which need to be matched by the milestone. */
readonly and?: readonly ProjectMilestoneCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that needs to be matched by all milestones. */
readonly every?: ProjectMilestoneFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Comparator for the project milestone name. */
readonly name?: NullableStringComparator | null | undefined
/** Compound filters, one of which need to be matched by the milestone. */
readonly or?: readonly ProjectMilestoneCollectionFilter[] | null | undefined
/** Filters that the project milestone's project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Filters that needs to be matched by some milestones. */
readonly some?: ProjectMilestoneFilter | null | undefined
/** Comparator for the project milestone target date. */
readonly targetDate?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ProjectMilestoneCollectionFilterEncoded {
readonly and?: readonly ProjectMilestoneCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly every?: ProjectMilestoneFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly name?: typeof NullableStringComparator.Encoded | null | undefined
readonly or?: readonly ProjectMilestoneCollectionFilterEncoded[] | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly some?: ProjectMilestoneFilterEncoded | null | undefined
readonly targetDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Project milestone filtering options. */
export const ProjectMilestoneFilter: Schema.Codec<ProjectMilestoneFilter, ProjectMilestoneFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectMilestoneFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
name: Schema.optional(Schema.NullOr(NullableStringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectMilestoneFilter)))),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
targetDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ProjectMilestoneFilter {
/** Compound filters, all of which need to be matched by the project milestone. */
readonly and?: readonly ProjectMilestoneFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the project milestone name. */
readonly name?: NullableStringComparator | null | undefined
/** Compound filters, one of which need to be matched by the project milestone. */
readonly or?: readonly ProjectMilestoneFilter[] | null | undefined
/** Filters that the project milestone's project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Comparator for the project milestone target date. */
readonly targetDate?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ProjectMilestoneFilterEncoded {
readonly and?: readonly ProjectMilestoneFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly name?: typeof NullableStringComparator.Encoded | null | undefined
readonly or?: readonly ProjectMilestoneFilterEncoded[] | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly targetDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Project filtering options. */
export const NullableProjectFilter: Schema.Codec<NullableProjectFilter, NullableProjectFilterEncoded> = Schema.Struct({
accessibleTeams: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
activityType: Schema.optional(Schema.NullOr(StringComparator)),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableProjectFilter)))),
canceledAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
completedProjectMilestones: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneCollectionFilter))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter))),
customIdentifier: Schema.optional(Schema.NullOr(NullableStringComparator)),
customerCount: Schema.optional(Schema.NullOr(NumberComparator)),
customerImportantCount: Schema.optional(Schema.NullOr(NumberComparator)),
hasBlockedByRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasBlockingRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDependedOnByRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDependsOnRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasRelatedRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasViolatedRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
health: Schema.optional(Schema.NullOr(StringComparator)),
healthWithAge: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(EntityIdentifierIDComparator)),
initiatives: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeCollectionFilter))),
issues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
labels: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectLabelCollectionFilter))),
lastAppliedTemplate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTemplateFilter))),
lead: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
leadTeam: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
members: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
nextProjectMilestone: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneFilter))),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableProjectFilter)))),
priority: Schema.optional(Schema.NullOr(NullableNumberComparator)),
projectMilestones: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneCollectionFilter))),
projectUpdates: Schema.optional(Schema.NullOr(ProjectUpdatesCollectionFilter)),
roadmaps: Schema.optional(Schema.NullOr(Schema.suspend(() => RoadmapCollectionFilter))),
searchableContent: Schema.optional(Schema.NullOr(ContentComparator)),
slugId: Schema.optional(Schema.NullOr(StringComparator)),
startDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
startedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
state: Schema.optional(Schema.NullOr(StringComparator)),
status: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectStatusFilter))),
targetDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface NullableProjectFilter {
/** Filters that the project's team must satisfy. */
readonly accessibleTeams?: TeamCollectionFilter | null | undefined
/** [ALPHA] Comparator for the project activity type: buzzin, active, some, none */
readonly activityType?: StringComparator | null | undefined
/** Compound filters, all of which need to be matched by the project. */
readonly and?: readonly NullableProjectFilter[] | null | undefined
/** Comparator for the project cancelation date. */
readonly canceledAt?: NullableDateComparator | null | undefined
/** Comparator for the project completion date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Filters that the project's completed milestones must satisfy. */
readonly completedProjectMilestones?: ProjectMilestoneCollectionFilter | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the projects creator must satisfy. */
readonly creator?: UserFilter | null | undefined
/** [Internal] Comparator for the project's custom identifier. */
readonly customIdentifier?: NullableStringComparator | null | undefined
/** Count of customers */
readonly customerCount?: NumberComparator | null | undefined
/** Count of important customers */
readonly customerImportantCount?: NumberComparator | null | undefined
/** Comparator for filtering projects which are blocked. */
readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering projects which are blocking. */
readonly hasBlockingRelations?: RelationExistsComparator | null | undefined
/** [Deprecated] Comparator for filtering projects which this is depended on by. */
readonly hasDependedOnByRelations?: RelationExistsComparator | null | undefined
/** [Deprecated]Comparator for filtering projects which this depends on. */
readonly hasDependsOnRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering projects with relations. */
readonly hasRelatedRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering projects with violated dependencies. */
readonly hasViolatedRelations?: RelationExistsComparator | null | undefined
/** Comparator for the project health: onTrack, atRisk, offTrack */
readonly health?: StringComparator | null | undefined
/** Comparator for the project health (with age): onTrack, atRisk, offTrack, outdated, noUpdate */
readonly healthWithAge?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: EntityIdentifierIDComparator | null | undefined
/** Filters that the projects initiatives must satisfy. */
readonly initiatives?: InitiativeCollectionFilter | null | undefined
/** Filters that the projects issues must satisfy. */
readonly issues?: IssueCollectionFilter | null | undefined
/** Filters that project labels must satisfy. */
readonly labels?: ProjectLabelCollectionFilter | null | undefined
/** Filters that the last applied template must satisfy. */
readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined
/** Filters that the projects lead must satisfy. */
readonly lead?: NullableUserFilter | null | undefined
/** [ALPHA] Filters that the project's lead team must satisfy. */
readonly leadTeam?: NullableTeamFilter | null | undefined
/** Filters that the projects members must satisfy. */
readonly members?: UserCollectionFilter | null | undefined
/** Comparator for the project name. */
readonly name?: StringComparator | null | undefined
/** Filters that the project's customer needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Filters that the project's next milestone must satisfy. */
readonly nextProjectMilestone?: ProjectMilestoneFilter | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the project. */
readonly or?: readonly NullableProjectFilter[] | null | undefined
/** Comparator for the project priority. */
readonly priority?: NullableNumberComparator | null | undefined
/** Filters that the project's milestones must satisfy. */
readonly projectMilestones?: ProjectMilestoneCollectionFilter | null | undefined
/** Comparator for the project updates. */
readonly projectUpdates?: ProjectUpdatesCollectionFilter | null | undefined
/** Filters that the projects roadmaps must satisfy. */
readonly roadmaps?: RoadmapCollectionFilter | null | undefined
/** [Internal] Comparator for the project's content. */
readonly searchableContent?: ContentComparator | null | undefined
/** Comparator for the project slug ID. */
readonly slugId?: StringComparator | null | undefined
/** Comparator for the project start date. */
readonly startDate?: NullableDateComparator | null | undefined
/** Comparator for the project started date (when it was moved to an "In Progress" status). */
readonly startedAt?: NullableDateComparator | null | undefined
/** [DEPRECATED] Comparator for the project state. */
readonly state?: StringComparator | null | undefined
/** Filters that the project status must satisfy. */
readonly status?: ProjectStatusFilter | null | undefined
/** Comparator for the project target date. */
readonly targetDate?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface NullableProjectFilterEncoded {
readonly accessibleTeams?: TeamCollectionFilterEncoded | null | undefined
readonly activityType?: typeof StringComparator.Encoded | null | undefined
readonly and?: readonly NullableProjectFilterEncoded[] | null | undefined
readonly canceledAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly completedProjectMilestones?: ProjectMilestoneCollectionFilterEncoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: UserFilterEncoded | null | undefined
readonly customIdentifier?: typeof NullableStringComparator.Encoded | null | undefined
readonly customerCount?: typeof NumberComparator.Encoded | null | undefined
readonly customerImportantCount?: typeof NumberComparator.Encoded | null | undefined
readonly hasBlockedByRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasBlockingRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDependedOnByRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDependsOnRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasRelatedRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasViolatedRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly health?: typeof StringComparator.Encoded | null | undefined
readonly healthWithAge?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof EntityIdentifierIDComparator.Encoded | null | undefined
readonly initiatives?: InitiativeCollectionFilterEncoded | null | undefined
readonly issues?: IssueCollectionFilterEncoded | null | undefined
readonly labels?: ProjectLabelCollectionFilterEncoded | null | undefined
readonly lastAppliedTemplate?: NullableTemplateFilterEncoded | null | undefined
readonly lead?: NullableUserFilterEncoded | null | undefined
readonly leadTeam?: NullableTeamFilterEncoded | null | undefined
readonly members?: UserCollectionFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly nextProjectMilestone?: ProjectMilestoneFilterEncoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableProjectFilterEncoded[] | null | undefined
readonly priority?: typeof NullableNumberComparator.Encoded | null | undefined
readonly projectMilestones?: ProjectMilestoneCollectionFilterEncoded | null | undefined
readonly projectUpdates?: ProjectUpdatesCollectionFilterEncoded | null | undefined
readonly roadmaps?: RoadmapCollectionFilterEncoded | null | undefined
readonly searchableContent?: typeof ContentComparator.Encoded | null | undefined
readonly slugId?: typeof StringComparator.Encoded | null | undefined
readonly startDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly startedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly state?: typeof StringComparator.Encoded | null | undefined
readonly status?: ProjectStatusFilterEncoded | null | undefined
readonly targetDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Project label filtering options. */
export const ProjectLabelCollectionFilter: Schema.Codec<ProjectLabelCollectionFilter, ProjectLabelCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectLabelCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectLabelFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
isGroup: Schema.optional(Schema.NullOr(BooleanComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectLabelCollectionFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectLabelFilter))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectLabelCollectionFilter))),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ProjectLabelCollectionFilter {
/** Compound filters, all of which need to be matched by the label. */
readonly and?: readonly ProjectLabelCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the project labels creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Filters that needs to be matched by all project labels. */
readonly every?: ProjectLabelFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for whether the label is a group label. */
readonly isGroup?: BooleanComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Comparator for the name. */
readonly name?: StringComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the label. */
readonly or?: readonly ProjectLabelCollectionFilter[] | null | undefined
/** Filters that the project label's parent label must satisfy. */
readonly parent?: ProjectLabelFilter | null | undefined
/** Filters that needs to be matched by some project labels. */
readonly some?: ProjectLabelCollectionFilter | null | undefined
/** Filters that the project label's team must satisfy. Use `{ null: true }` to filter workspace-level labels. */
readonly team?: NullableTeamFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ProjectLabelCollectionFilterEncoded {
readonly and?: readonly ProjectLabelCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly every?: ProjectLabelFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly isGroup?: typeof BooleanComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly ProjectLabelCollectionFilterEncoded[] | null | undefined
readonly parent?: ProjectLabelFilterEncoded | null | undefined
readonly some?: ProjectLabelCollectionFilterEncoded | null | undefined
readonly team?: NullableTeamFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Project label filtering options. */
export const ProjectLabelFilter: Schema.Codec<ProjectLabelFilter, ProjectLabelFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectLabelFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
isGroup: Schema.optional(Schema.NullOr(BooleanComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectLabelFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectLabelFilter))),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ProjectLabelFilter {
/** Compound filters, all of which need to be matched by the label. */
readonly and?: readonly ProjectLabelFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the project labels creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for whether the label is a group label. */
readonly isGroup?: BooleanComparator | null | undefined
/** Comparator for the name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the label. */
readonly or?: readonly ProjectLabelFilter[] | null | undefined
/** Filters that the project label's parent label must satisfy. */
readonly parent?: ProjectLabelFilter | null | undefined
/** Filters that the project label's team must satisfy. Use `{ null: true }` to filter workspace-level labels. */
readonly team?: NullableTeamFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ProjectLabelFilterEncoded {
readonly and?: readonly ProjectLabelFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly isGroup?: typeof BooleanComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly ProjectLabelFilterEncoded[] | null | undefined
readonly parent?: ProjectLabelFilterEncoded | null | undefined
readonly team?: NullableTeamFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Template filtering options. */
export const NullableTemplateFilter: Schema.Codec<NullableTemplateFilter, NullableTemplateFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableTemplateFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
inheritedFromId: Schema.optional(Schema.NullOr(IDComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableTemplateFilter)))),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
type: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface NullableTemplateFilter {
/** Compound filters, all of which need to be matched by the template. */
readonly and?: readonly NullableTemplateFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the inherited template's ID. */
readonly inheritedFromId?: IDComparator | null | undefined
/** Comparator for the template's name. */
readonly name?: StringComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the template. */
readonly or?: readonly NullableTemplateFilter[] | null | undefined
/** Filters that the template's team must satisfy. */
readonly team?: NullableTeamFilter | null | undefined
/** Comparator for the template's type. */
readonly type?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface NullableTemplateFilterEncoded {
readonly and?: readonly NullableTemplateFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly inheritedFromId?: typeof IDComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableTemplateFilterEncoded[] | null | undefined
readonly team?: NullableTeamFilterEncoded | null | undefined
readonly type?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Customer needs filtering options. */
export const CustomerNeedCollectionFilter: Schema.Codec<CustomerNeedCollectionFilter, CustomerNeedCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CustomerNeedCollectionFilter)))),
comment: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCommentFilter))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
customer: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCustomerFilter))),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
issue: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableIssueFilter))),
length: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CustomerNeedCollectionFilter)))),
priority: Schema.optional(Schema.NullOr(NumberComparator)),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface CustomerNeedCollectionFilter {
/** Compound filters, all of which need to be matched by the customer needs. */
readonly and?: readonly CustomerNeedCollectionFilter[] | null | undefined
/** Filters that the need's comment must satisfy. */
readonly comment?: NullableCommentFilter | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the need's customer must satisfy. */
readonly customer?: NullableCustomerFilter | null | undefined
/** Filters that needs to be matched by all customer needs. */
readonly every?: CustomerNeedFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Filters that the need's issue must satisfy. */
readonly issue?: NullableIssueFilter | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the customer needs. */
readonly or?: readonly CustomerNeedCollectionFilter[] | null | undefined
/** Comparator for the customer need priority. */
readonly priority?: NumberComparator | null | undefined
/** Filters that the need's project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Filters that needs to be matched by some customer needs. */
readonly some?: CustomerNeedFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface CustomerNeedCollectionFilterEncoded {
readonly and?: readonly CustomerNeedCollectionFilterEncoded[] | null | undefined
readonly comment?: NullableCommentFilterEncoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly customer?: NullableCustomerFilterEncoded | null | undefined
readonly every?: CustomerNeedFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly issue?: NullableIssueFilterEncoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly CustomerNeedCollectionFilterEncoded[] | null | undefined
readonly priority?: typeof NumberComparator.Encoded | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly some?: CustomerNeedFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Comment filtering options. */
export const NullableCommentFilter: Schema.Codec<NullableCommentFilter, NullableCommentFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableCommentFilter)))),
body: Schema.optional(Schema.NullOr(StringComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
documentContent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableDocumentContentFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
initiative: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableInitiativeFilter))),
initiativeUpdate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableInitiativeUpdateFilter))),
issue: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableIssueFilter))),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableCommentFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCommentFilter))),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
projectUpdate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectUpdateFilter))),
reactions: Schema.optional(Schema.NullOr(ReactionCollectionFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
user: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter)))
})
export interface NullableCommentFilter {
/** Compound filters, all of which need to be matched by the comment. */
readonly and?: readonly NullableCommentFilter[] | null | undefined
/** Comparator for the comment's body. */
readonly body?: StringComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the comment's document content must satisfy. */
readonly documentContent?: NullableDocumentContentFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** [Internal] Filters that the comment's initiative must satisfy. */
readonly initiative?: NullableInitiativeFilter | null | undefined
/** Filters that the comment's initiative update must satisfy. */
readonly initiativeUpdate?: NullableInitiativeUpdateFilter | null | undefined
/** Filters that the comment's issue must satisfy. */
readonly issue?: NullableIssueFilter | null | undefined
/** Filters that the comment's customer needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the comment. */
readonly or?: readonly NullableCommentFilter[] | null | undefined
/** Filters that the comment parent must satisfy. */
readonly parent?: NullableCommentFilter | null | undefined
/** [Internal] Filters that the comment's project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Filters that the comment's project update must satisfy. */
readonly projectUpdate?: NullableProjectUpdateFilter | null | undefined
/** Filters that the comment's reactions must satisfy. */
readonly reactions?: ReactionCollectionFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Filters that the comment's creator must satisfy. */
readonly user?: UserFilter | null | undefined
}
export interface NullableCommentFilterEncoded {
readonly and?: readonly NullableCommentFilterEncoded[] | null | undefined
readonly body?: typeof StringComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly documentContent?: NullableDocumentContentFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly initiative?: NullableInitiativeFilterEncoded | null | undefined
readonly initiativeUpdate?: NullableInitiativeUpdateFilterEncoded | null | undefined
readonly issue?: NullableIssueFilterEncoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableCommentFilterEncoded[] | null | undefined
readonly parent?: NullableCommentFilterEncoded | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly projectUpdate?: NullableProjectUpdateFilterEncoded | null | undefined
readonly reactions?: ReactionCollectionFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly user?: UserFilterEncoded | null | undefined
}
/** Initiative filtering options. */
export const NullableInitiativeFilter: Schema.Codec<NullableInitiativeFilter, NullableInitiativeFilterEncoded> = Schema.Struct({
activityType: Schema.optional(Schema.NullOr(StringComparator)),
ancestors: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeCollectionFilter))),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableInitiativeFilter)))),
canceledAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
customIdentifier: Schema.optional(Schema.NullOr(NullableStringComparator)),
health: Schema.optional(Schema.NullOr(StringComparator)),
healthWithAge: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(EntityIdentifierIDComparator)),
initiativeUpdates: Schema.optional(Schema.NullOr(InitiativeUpdatesCollectionFilter)),
labels: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeLabelCollectionFilter))),
leadTeam: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableInitiativeFilter)))),
owner: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
priority: Schema.optional(Schema.NullOr(NullableNumberComparator)),
projects: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectCollectionFilter))),
slugId: Schema.optional(Schema.NullOr(StringComparator)),
startedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
status: Schema.optional(Schema.NullOr(StringComparator)),
targetDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
teams: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface NullableInitiativeFilter {
/** Comparator for the initiative activity type. */
readonly activityType?: StringComparator | null | undefined
/** Filters that the initiative must be an ancestor of. */
readonly ancestors?: InitiativeCollectionFilter | null | undefined
/** Compound filters, all of which need to be matched by the initiative. */
readonly and?: readonly NullableInitiativeFilter[] | null | undefined
/** [Internal] Comparator for the initiative canceled at date. */
readonly canceledAt?: NullableDateComparator | null | undefined
/** Comparator for the initiative completed at date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the initiative creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** [Internal] Comparator for the initiative's custom identifier. */
readonly customIdentifier?: NullableStringComparator | null | undefined
/** Comparator for the initiative health: onTrack, atRisk, offTrack */
readonly health?: StringComparator | null | undefined
/** Comparator for the initiative health (with age): onTrack, atRisk, offTrack, outdated, noUpdate */
readonly healthWithAge?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: EntityIdentifierIDComparator | null | undefined
/** Filters that the initiative updates must satisfy. */
readonly initiativeUpdates?: InitiativeUpdatesCollectionFilter | null | undefined
/** Filters that the initiative labels must satisfy. */
readonly labels?: InitiativeLabelCollectionFilter | null | undefined
/** Filters that the initiative lead team must satisfy. */
readonly leadTeam?: NullableTeamFilter | null | undefined
/** Comparator for the initiative name. */
readonly name?: StringComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the initiative. */
readonly or?: readonly NullableInitiativeFilter[] | null | undefined
/** Filters that the initiative owner must satisfy. */
readonly owner?: NullableUserFilter | null | undefined
/** Comparator for the initiative priority. */
readonly priority?: NullableNumberComparator | null | undefined
/** Filters that the initiative projects must satisfy. */
readonly projects?: ProjectCollectionFilter | null | undefined
/** Comparator for the initiative slug ID. */
readonly slugId?: StringComparator | null | undefined
/** Comparator for the initiative started at date. */
readonly startedAt?: NullableDateComparator | null | undefined
/** Comparator for the initiative status: Proposed, Planned, Active, Completed, Canceled */
readonly status?: StringComparator | null | undefined
/** Comparator for the initiative target date. */
readonly targetDate?: NullableDateComparator | null | undefined
/** Filters that the initiative teams must satisfy. */
readonly teams?: TeamCollectionFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface NullableInitiativeFilterEncoded {
readonly activityType?: typeof StringComparator.Encoded | null | undefined
readonly ancestors?: InitiativeCollectionFilterEncoded | null | undefined
readonly and?: readonly NullableInitiativeFilterEncoded[] | null | undefined
readonly canceledAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly customIdentifier?: typeof NullableStringComparator.Encoded | null | undefined
readonly health?: typeof StringComparator.Encoded | null | undefined
readonly healthWithAge?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof EntityIdentifierIDComparator.Encoded | null | undefined
readonly initiativeUpdates?: InitiativeUpdatesCollectionFilterEncoded | null | undefined
readonly labels?: InitiativeLabelCollectionFilterEncoded | null | undefined
readonly leadTeam?: NullableTeamFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableInitiativeFilterEncoded[] | null | undefined
readonly owner?: NullableUserFilterEncoded | null | undefined
readonly priority?: typeof NullableNumberComparator.Encoded | null | undefined
readonly projects?: ProjectCollectionFilterEncoded | null | undefined
readonly slugId?: typeof StringComparator.Encoded | null | undefined
readonly startedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly status?: typeof StringComparator.Encoded | null | undefined
readonly targetDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly teams?: TeamCollectionFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Nullable initiative update filtering options. */
export const NullableInitiativeUpdateFilter: Schema.Codec<NullableInitiativeUpdateFilter, NullableInitiativeUpdateFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableInitiativeUpdateFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
initiative: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeFilter))),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableInitiativeUpdateFilter)))),
reactions: Schema.optional(Schema.NullOr(ReactionCollectionFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
user: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter)))
})
export interface NullableInitiativeUpdateFilter {
/** Compound filters, all of which need to be matched by the initiative update. */
readonly and?: readonly NullableInitiativeUpdateFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Filters that the initiative update initiative must satisfy. */
readonly initiative?: InitiativeFilter | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the initiative update. */
readonly or?: readonly NullableInitiativeUpdateFilter[] | null | undefined
/** Filters that the initiative updates reactions must satisfy. */
readonly reactions?: ReactionCollectionFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Filters that the initiative update creator must satisfy. */
readonly user?: UserFilter | null | undefined
}
export interface NullableInitiativeUpdateFilterEncoded {
readonly and?: readonly NullableInitiativeUpdateFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly initiative?: InitiativeFilterEncoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableInitiativeUpdateFilterEncoded[] | null | undefined
readonly reactions?: ReactionCollectionFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly user?: UserFilterEncoded | null | undefined
}
/** Issue filtering options. */
export const NullableIssueFilter: Schema.Codec<NullableIssueFilter, NullableIssueFilterEncoded> = Schema.Struct({
accumulatedStateUpdatedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
activity: Schema.optional(Schema.NullOr(Schema.suspend(() => ActivityCollectionFilter))),
addedToCycleAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
addedToCyclePeriod: Schema.optional(Schema.NullOr(CyclePeriodComparator)),
ageTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableIssueFilter)))),
archivedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
assignee: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
attachments: Schema.optional(Schema.NullOr(Schema.suspend(() => AttachmentCollectionFilter))),
autoArchivedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
autoClosedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
canceledAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
children: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
comments: Schema.optional(Schema.NullOr(Schema.suspend(() => CommentCollectionFilter))),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
customerCount: Schema.optional(Schema.NullOr(NumberComparator)),
customerImportantCount: Schema.optional(Schema.NullOr(NumberComparator)),
cycle: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCycleFilter))),
cycleTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
delegate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
description: Schema.optional(Schema.NullOr(NullableStringComparator)),
dueDate: Schema.optional(Schema.NullOr(NullableTimelessDateComparator)),
estimate: Schema.optional(Schema.NullOr(EstimateComparator)),
hasActiveAgentSessions: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasBlockedByRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasBlockingRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDismissedAgentSessions: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDuplicateRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasErroredAgentSessions: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasMergedAgentPullRequests: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasRelatedRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSharedUsers: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedAssignees: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedLabels: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedProjects: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedRelatedIssues: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedSimilarIssues: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasSuggestedTeams: Schema.optional(Schema.NullOr(RelationExistsComparator)),
id: Schema.optional(Schema.NullOr(IssueIDComparator)),
labels: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueLabelCollectionFilter))),
lastAppliedTemplate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTemplateFilter))),
leadTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
number: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableIssueFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableIssueFilter))),
priority: Schema.optional(Schema.NullOr(NullableNumberComparator)),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
projectMilestone: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectMilestoneFilter))),
reactions: Schema.optional(Schema.NullOr(ReactionCollectionFilter)),
recurringIssueTemplate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTemplateFilter))),
releases: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleaseCollectionFilter))),
searchableContent: Schema.optional(Schema.NullOr(ContentComparator)),
sharedWith: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
slaBreachesAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
slaStatus: Schema.optional(Schema.NullOr(SlaStatusComparator)),
snoozedBy: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
snoozedUntilAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
sourceMetadata: Schema.optional(Schema.NullOr(SourceMetadataComparator)),
startedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
state: Schema.optional(Schema.NullOr(Schema.suspend(() => WorkflowStateFilter))),
subscribers: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
suggestions: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueSuggestionCollectionFilter))),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamFilter))),
title: Schema.optional(Schema.NullOr(StringComparator)),
triageTime: Schema.optional(Schema.NullOr(NullableDurationComparator)),
triagedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface NullableIssueFilter {
/** [Internal] Comparator for the issue's accumulatedStateUpdatedAt date. */
readonly accumulatedStateUpdatedAt?: NullableDateComparator | null | undefined
/** Filters that the issue's activities must satisfy. */
readonly activity?: ActivityCollectionFilter | null | undefined
/** Comparator for the issues added to cycle at date. */
readonly addedToCycleAt?: NullableDateComparator | null | undefined
/** Comparator for the period when issue was added to a cycle. */
readonly addedToCyclePeriod?: CyclePeriodComparator | null | undefined
/** [Internal] Age (created -> now) comparator, defined if the issue is still open. */
readonly ageTime?: NullableDurationComparator | null | undefined
/** Compound filters, all of which need to be matched by the issue. */
readonly and?: readonly NullableIssueFilter[] | null | undefined
/** Comparator for the issues archived at date. */
readonly archivedAt?: NullableDateComparator | null | undefined
/** Filters that the issues assignee must satisfy. */
readonly assignee?: NullableUserFilter | null | undefined
/** Filters that the issues attachments must satisfy. */
readonly attachments?: AttachmentCollectionFilter | null | undefined
/** Comparator for the issues auto archived at date. */
readonly autoArchivedAt?: NullableDateComparator | null | undefined
/** Comparator for the issues auto closed at date. */
readonly autoClosedAt?: NullableDateComparator | null | undefined
/** Comparator for the issues canceled at date. */
readonly canceledAt?: NullableDateComparator | null | undefined
/** Filters that the child issues must satisfy. */
readonly children?: IssueCollectionFilter | null | undefined
/** Filters that the issues comments must satisfy. */
readonly comments?: CommentCollectionFilter | null | undefined
/** Comparator for the issues completed at date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the issues creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Count of customers */
readonly customerCount?: NumberComparator | null | undefined
/** Count of important customers */
readonly customerImportantCount?: NumberComparator | null | undefined
/** Filters that the issues cycle must satisfy. */
readonly cycle?: NullableCycleFilter | null | undefined
/** [Internal] Cycle time (started -> completed) comparator. */
readonly cycleTime?: NullableDurationComparator | null | undefined
/** Filters that the issue's delegated agent must satisfy. */
readonly delegate?: NullableUserFilter | null | undefined
/** Comparator for the issues description. */
readonly description?: NullableStringComparator | null | undefined
/** Comparator for the issues due date. */
readonly dueDate?: NullableTimelessDateComparator | null | undefined
/** Comparator for the issues estimate. */
readonly estimate?: EstimateComparator | null | undefined
/** [Internal] Comparator for filtering issues bucketed as having active agent sessions, no closed agent pull requests, and no merged agent pull requests. */
readonly hasActiveAgentSessions?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which are blocked. */
readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which are blocking. */
readonly hasBlockingRelations?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues bucketed as having all agent sessions dismissed or closed, and no merged agent pull requests. */
readonly hasDismissedAgentSessions?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which are duplicates. */
readonly hasDuplicateRelations?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues bucketed as having an errored agent session, no active sessions, and no merged agent pull requests. */
readonly hasErroredAgentSessions?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have agent-session-linked pull requests that were merged. */
readonly hasMergedAgentPullRequests?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues with relations. */
readonly hasRelatedRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering issues which have been shared with users outside of the team. */
readonly hasSharedUsers?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested assignees. */
readonly hasSuggestedAssignees?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested labels. */
readonly hasSuggestedLabels?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested projects. */
readonly hasSuggestedProjects?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested related issues. */
readonly hasSuggestedRelatedIssues?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested similar issues. */
readonly hasSuggestedSimilarIssues?: RelationExistsComparator | null | undefined
/** [Internal] Comparator for filtering issues which have suggested teams. */
readonly hasSuggestedTeams?: RelationExistsComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IssueIDComparator | null | undefined
/** Filters that issue labels must satisfy. */
readonly labels?: IssueLabelCollectionFilter | null | undefined
/** Filters that the last applied template must satisfy. */
readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined
/** [Internal] Lead time (created -> completed) comparator. */
readonly leadTime?: NullableDurationComparator | null | undefined
/** Filters that the issue's customer needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Comparator for the issues number. */
readonly number?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the issue. */
readonly or?: readonly NullableIssueFilter[] | null | undefined
/** Filters that the issue parent must satisfy. */
readonly parent?: NullableIssueFilter | null | undefined
/** Comparator for the issues priority. 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low. */
readonly priority?: NullableNumberComparator | null | undefined
/** Filters that the issues project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Filters that the issues project milestone must satisfy. */
readonly projectMilestone?: NullableProjectMilestoneFilter | null | undefined
/** Filters that the issues reactions must satisfy. */
readonly reactions?: ReactionCollectionFilter | null | undefined
/** [ALPHA] Filters that the recurring issue template must satisfy. */
readonly recurringIssueTemplate?: NullableTemplateFilter | null | undefined
/** Filters that the issue's releases must satisfy. */
readonly releases?: ReleaseCollectionFilter | null | undefined
/** [Internal] Comparator for the issues content. */
readonly searchableContent?: ContentComparator | null | undefined
/** Filters that users the issue has been shared with must satisfy. */
readonly sharedWith?: UserCollectionFilter | null | undefined
/** Comparator for the issue's SLA breach date. */
readonly slaBreachesAt?: NullableDateComparator | null | undefined
/** Comparator for the issues sla status. */
readonly slaStatus?: SlaStatusComparator | null | undefined
/** Filters that the issues snoozer must satisfy. */
readonly snoozedBy?: NullableUserFilter | null | undefined
/** Comparator for the issues snoozed until date. */
readonly snoozedUntilAt?: NullableDateComparator | null | undefined
/** Filters that the source must satisfy. */
readonly sourceMetadata?: SourceMetadataComparator | null | undefined
/** Comparator for the issues started at date. */
readonly startedAt?: NullableDateComparator | null | undefined
/** Filters that the issues state must satisfy. */
readonly state?: WorkflowStateFilter | null | undefined
/** Filters that issue subscribers must satisfy. */
readonly subscribers?: UserCollectionFilter | null | undefined
/** [Internal] Filters that the issue's suggestions must satisfy. */
readonly suggestions?: IssueSuggestionCollectionFilter | null | undefined
/** Filters that the issues team must satisfy. */
readonly team?: TeamFilter | null | undefined
/** Comparator for the issues title. */
readonly title?: StringComparator | null | undefined
/** [Internal] Triage time (entered triaged -> triaged) comparator. */
readonly triageTime?: NullableDurationComparator | null | undefined
/** Comparator for the issues triaged at date. */
readonly triagedAt?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface NullableIssueFilterEncoded {
readonly accumulatedStateUpdatedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly activity?: ActivityCollectionFilterEncoded | null | undefined
readonly addedToCycleAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly addedToCyclePeriod?: typeof CyclePeriodComparator.Encoded | null | undefined
readonly ageTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly and?: readonly NullableIssueFilterEncoded[] | null | undefined
readonly archivedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly assignee?: NullableUserFilterEncoded | null | undefined
readonly attachments?: AttachmentCollectionFilterEncoded | null | undefined
readonly autoArchivedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly autoClosedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly canceledAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly children?: IssueCollectionFilterEncoded | null | undefined
readonly comments?: CommentCollectionFilterEncoded | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly customerCount?: typeof NumberComparator.Encoded | null | undefined
readonly customerImportantCount?: typeof NumberComparator.Encoded | null | undefined
readonly cycle?: NullableCycleFilterEncoded | null | undefined
readonly cycleTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly delegate?: NullableUserFilterEncoded | null | undefined
readonly description?: typeof NullableStringComparator.Encoded | null | undefined
readonly dueDate?: typeof NullableTimelessDateComparator.Encoded | null | undefined
readonly estimate?: typeof EstimateComparator.Encoded | null | undefined
readonly hasActiveAgentSessions?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasBlockedByRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasBlockingRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDismissedAgentSessions?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDuplicateRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasErroredAgentSessions?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasMergedAgentPullRequests?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasRelatedRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSharedUsers?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedAssignees?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedLabels?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedProjects?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedRelatedIssues?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedSimilarIssues?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasSuggestedTeams?: typeof RelationExistsComparator.Encoded | null | undefined
readonly id?: typeof IssueIDComparator.Encoded | null | undefined
readonly labels?: IssueLabelCollectionFilterEncoded | null | undefined
readonly lastAppliedTemplate?: NullableTemplateFilterEncoded | null | undefined
readonly leadTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly null?: boolean | null | undefined
readonly number?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly NullableIssueFilterEncoded[] | null | undefined
readonly parent?: NullableIssueFilterEncoded | null | undefined
readonly priority?: typeof NullableNumberComparator.Encoded | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly projectMilestone?: NullableProjectMilestoneFilterEncoded | null | undefined
readonly reactions?: ReactionCollectionFilterEncoded | null | undefined
readonly recurringIssueTemplate?: NullableTemplateFilterEncoded | null | undefined
readonly releases?: ReleaseCollectionFilterEncoded | null | undefined
readonly searchableContent?: typeof ContentComparator.Encoded | null | undefined
readonly sharedWith?: UserCollectionFilterEncoded | null | undefined
readonly slaBreachesAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly slaStatus?: typeof SlaStatusComparator.Encoded | null | undefined
readonly snoozedBy?: NullableUserFilterEncoded | null | undefined
readonly snoozedUntilAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly sourceMetadata?: typeof SourceMetadataComparator.Encoded | null | undefined
readonly startedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly state?: WorkflowStateFilterEncoded | null | undefined
readonly subscribers?: UserCollectionFilterEncoded | null | undefined
readonly suggestions?: IssueSuggestionCollectionFilterEncoded | null | undefined
readonly team?: TeamFilterEncoded | null | undefined
readonly title?: typeof StringComparator.Encoded | null | undefined
readonly triageTime?: typeof NullableDurationComparator.Encoded | null | undefined
readonly triagedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Cycle filtering options. */
export const NullableCycleFilter: Schema.Codec<NullableCycleFilter, NullableCycleFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableCycleFilter)))),
completedAt: Schema.optional(Schema.NullOr(DateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
endsAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
inheritedFromId: Schema.optional(Schema.NullOr(IDComparator)),
isActive: Schema.optional(Schema.NullOr(BooleanComparator)),
isFuture: Schema.optional(Schema.NullOr(BooleanComparator)),
isInCooldown: Schema.optional(Schema.NullOr(BooleanComparator)),
isNext: Schema.optional(Schema.NullOr(BooleanComparator)),
isPast: Schema.optional(Schema.NullOr(BooleanComparator)),
isPrevious: Schema.optional(Schema.NullOr(BooleanComparator)),
issues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
number: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableCycleFilter)))),
startsAt: Schema.optional(Schema.NullOr(DateComparator)),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface NullableCycleFilter {
/** Compound filters, all of which need to be matched by the cycle. */
readonly and?: readonly NullableCycleFilter[] | null | undefined
/** Comparator for the cycle completed at date. */
readonly completedAt?: DateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the cycle ends at date. */
readonly endsAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the inherited cycle ID. */
readonly inheritedFromId?: IDComparator | null | undefined
/** Comparator for the filtering active cycle. */
readonly isActive?: BooleanComparator | null | undefined
/** Comparator for the filtering future cycles. */
readonly isFuture?: BooleanComparator | null | undefined
/** Comparator for filtering for whether the cycle is currently in cooldown. */
readonly isInCooldown?: BooleanComparator | null | undefined
/** Comparator for the filtering next cycle. */
readonly isNext?: BooleanComparator | null | undefined
/** Comparator for the filtering past cycles. */
readonly isPast?: BooleanComparator | null | undefined
/** Comparator for the filtering previous cycle. */
readonly isPrevious?: BooleanComparator | null | undefined
/** Filters that the cycles issues must satisfy. */
readonly issues?: IssueCollectionFilter | null | undefined
/** Comparator for the cycle name. */
readonly name?: StringComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Comparator for the cycle number. */
readonly number?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the cycle. */
readonly or?: readonly NullableCycleFilter[] | null | undefined
/** Comparator for the cycle start date. */
readonly startsAt?: DateComparator | null | undefined
/** Filters that the cycles team must satisfy. */
readonly team?: TeamFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface NullableCycleFilterEncoded {
readonly and?: readonly NullableCycleFilterEncoded[] | null | undefined
readonly completedAt?: typeof DateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly endsAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly inheritedFromId?: typeof IDComparator.Encoded | null | undefined
readonly isActive?: typeof BooleanComparator.Encoded | null | undefined
readonly isFuture?: typeof BooleanComparator.Encoded | null | undefined
readonly isInCooldown?: typeof BooleanComparator.Encoded | null | undefined
readonly isNext?: typeof BooleanComparator.Encoded | null | undefined
readonly isPast?: typeof BooleanComparator.Encoded | null | undefined
readonly isPrevious?: typeof BooleanComparator.Encoded | null | undefined
readonly issues?: IssueCollectionFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly number?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly NullableCycleFilterEncoded[] | null | undefined
readonly startsAt?: typeof DateComparator.Encoded | null | undefined
readonly team?: TeamFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Issue label filtering options. */
export const IssueLabelCollectionFilter: Schema.Codec<IssueLabelCollectionFilter, IssueLabelCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueLabelCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueLabelFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
isGroup: Schema.optional(Schema.NullOr(BooleanComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueLabelCollectionFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueLabelFilter))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueLabelFilter))),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface IssueLabelCollectionFilter {
/** Compound filters, all of which need to be matched by the label. */
readonly and?: readonly IssueLabelCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the issue labels creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Filters that needs to be matched by all issue labels. */
readonly every?: IssueLabelFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for whether the label is a group label. */
readonly isGroup?: BooleanComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Comparator for the name. */
readonly name?: StringComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the label. */
readonly or?: readonly IssueLabelCollectionFilter[] | null | undefined
/** Filters that the issue label's parent label must satisfy. */
readonly parent?: IssueLabelFilter | null | undefined
/** Filters that needs to be matched by some issue labels. */
readonly some?: IssueLabelFilter | null | undefined
/** Filters that the issue labels team must satisfy. */
readonly team?: NullableTeamFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface IssueLabelCollectionFilterEncoded {
readonly and?: readonly IssueLabelCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly every?: IssueLabelFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly isGroup?: typeof BooleanComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly IssueLabelCollectionFilterEncoded[] | null | undefined
readonly parent?: IssueLabelFilterEncoded | null | undefined
readonly some?: IssueLabelFilterEncoded | null | undefined
readonly team?: NullableTeamFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Issue label filtering options. */
export const IssueLabelFilter: Schema.Codec<IssueLabelFilter, IssueLabelFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueLabelFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
isGroup: Schema.optional(Schema.NullOr(BooleanComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueLabelFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueLabelFilter))),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface IssueLabelFilter {
/** Compound filters, all of which need to be matched by the label. */
readonly and?: readonly IssueLabelFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the issue labels creator must satisfy. */
readonly creator?: NullableUserFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for whether the label is a group label. */
readonly isGroup?: BooleanComparator | null | undefined
/** Comparator for the name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the label. */
readonly or?: readonly IssueLabelFilter[] | null | undefined
/** Filters that the issue label's parent label must satisfy. */
readonly parent?: IssueLabelFilter | null | undefined
/** Filters that the issue labels team must satisfy. */
readonly team?: NullableTeamFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface IssueLabelFilterEncoded {
readonly and?: readonly IssueLabelFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: NullableUserFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly isGroup?: typeof BooleanComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly IssueLabelFilterEncoded[] | null | undefined
readonly parent?: IssueLabelFilterEncoded | null | undefined
readonly team?: NullableTeamFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Project milestone filtering options. */
export const NullableProjectMilestoneFilter: Schema.Codec<NullableProjectMilestoneFilter, NullableProjectMilestoneFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableProjectMilestoneFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
name: Schema.optional(Schema.NullOr(NullableStringComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableProjectMilestoneFilter)))),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
targetDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface NullableProjectMilestoneFilter {
/** Compound filters, all of which need to be matched by the project milestone. */
readonly and?: readonly NullableProjectMilestoneFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the project milestone name. */
readonly name?: NullableStringComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the project milestone. */
readonly or?: readonly NullableProjectMilestoneFilter[] | null | undefined
/** Filters that the project milestone's project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Comparator for the project milestone target date. */
readonly targetDate?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface NullableProjectMilestoneFilterEncoded {
readonly and?: readonly NullableProjectMilestoneFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly name?: typeof NullableStringComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableProjectMilestoneFilterEncoded[] | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly targetDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Release collection filtering options. */
export const ReleaseCollectionFilter: Schema.Codec<ReleaseCollectionFilter, ReleaseCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleaseCollectionFilter)))),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleaseFilter))),
hasReleaseNotes: Schema.optional(Schema.NullOr(BooleanComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleaseCollectionFilter)))),
pipeline: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleasePipelineFilter))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleaseFilter))),
stage: Schema.optional(Schema.NullOr(ReleaseStageFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
version: Schema.optional(Schema.NullOr(StringComparator))
})
export interface ReleaseCollectionFilter {
/** Compound filters, all of which need to be matched by the release. */
readonly and?: readonly ReleaseCollectionFilter[] | null | undefined
/** Comparator for the release completion date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that needs to be matched by all releases. */
readonly every?: ReleaseFilter | null | undefined
/** Comparator for whether the release is covered by any (non-archived) release note. Filter with `{ eq: false }` to retrieve releases that do not yet have release notes attached. */
readonly hasReleaseNotes?: BooleanComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Comparator for the release name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the release. */
readonly or?: readonly ReleaseCollectionFilter[] | null | undefined
/** Filters that the release's pipeline must satisfy. */
readonly pipeline?: ReleasePipelineFilter | null | undefined
/** Filters that needs to be matched by some releases. */
readonly some?: ReleaseFilter | null | undefined
/** Filters that the release's stage must satisfy. */
readonly stage?: ReleaseStageFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Comparator for the release version. */
readonly version?: StringComparator | null | undefined
}
export interface ReleaseCollectionFilterEncoded {
readonly and?: readonly ReleaseCollectionFilterEncoded[] | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly every?: ReleaseFilterEncoded | null | undefined
readonly hasReleaseNotes?: typeof BooleanComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly ReleaseCollectionFilterEncoded[] | null | undefined
readonly pipeline?: ReleasePipelineFilterEncoded | null | undefined
readonly some?: ReleaseFilterEncoded | null | undefined
readonly stage?: ReleaseStageFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly version?: typeof StringComparator.Encoded | null | undefined
}
/** Release filtering options. */
export const ReleaseFilter: Schema.Codec<ReleaseFilter, ReleaseFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleaseFilter)))),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
hasReleaseNotes: Schema.optional(Schema.NullOr(BooleanComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ReleaseFilter)))),
pipeline: Schema.optional(Schema.NullOr(Schema.suspend(() => ReleasePipelineFilter))),
stage: Schema.optional(Schema.NullOr(ReleaseStageFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
version: Schema.optional(Schema.NullOr(StringComparator))
})
export interface ReleaseFilter {
/** Compound filters, all of which need to be matched by the release. */
readonly and?: readonly ReleaseFilter[] | null | undefined
/** Comparator for the release completion date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for whether the release is covered by any (non-archived) release note. Filter with `{ eq: false }` to retrieve releases that do not yet have release notes attached. */
readonly hasReleaseNotes?: BooleanComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the release name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the release. */
readonly or?: readonly ReleaseFilter[] | null | undefined
/** Filters that the release's pipeline must satisfy. */
readonly pipeline?: ReleasePipelineFilter | null | undefined
/** Filters that the release's stage must satisfy. */
readonly stage?: ReleaseStageFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Comparator for the release version. */
readonly version?: StringComparator | null | undefined
}
export interface ReleaseFilterEncoded {
readonly and?: readonly ReleaseFilterEncoded[] | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly hasReleaseNotes?: typeof BooleanComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly ReleaseFilterEncoded[] | null | undefined
readonly pipeline?: ReleasePipelineFilterEncoded | null | undefined
readonly stage?: ReleaseStageFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly version?: typeof StringComparator.Encoded | null | undefined
}
/** Workflow state filtering options. */
export const WorkflowStateFilter: Schema.Codec<WorkflowStateFilter, WorkflowStateFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => WorkflowStateFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
description: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
issues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => WorkflowStateFilter)))),
position: Schema.optional(Schema.NullOr(NumberComparator)),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamFilter))),
type: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface WorkflowStateFilter {
/** Compound filters, all of which need to be matched by the workflow state. */
readonly and?: readonly WorkflowStateFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the workflow state description. */
readonly description?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Filters that the workflow states issues must satisfy. */
readonly issues?: IssueCollectionFilter | null | undefined
/** Comparator for the workflow state name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the workflow state. */
readonly or?: readonly WorkflowStateFilter[] | null | undefined
/** Comparator for the workflow state position. */
readonly position?: NumberComparator | null | undefined
/** Filters that the workflow states team must satisfy. */
readonly team?: TeamFilter | null | undefined
/** Comparator for the workflow state type. Possible values are "triage", "backlog", "unstarted", "started", "completed", "canceled", "duplicate". */
readonly type?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface WorkflowStateFilterEncoded {
readonly and?: readonly WorkflowStateFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly description?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly issues?: IssueCollectionFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly WorkflowStateFilterEncoded[] | null | undefined
readonly position?: typeof NumberComparator.Encoded | null | undefined
readonly team?: TeamFilterEncoded | null | undefined
readonly type?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** IssueSuggestion collection filtering options. */
export const IssueSuggestionCollectionFilter: Schema.Codec<IssueSuggestionCollectionFilter, IssueSuggestionCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueSuggestionCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueSuggestionFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueSuggestionCollectionFilter)))),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueSuggestionFilter))),
state: Schema.optional(Schema.NullOr(StringComparator)),
suggestedLabel: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueLabelFilter))),
suggestedProject: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
suggestedTeam: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
suggestedUser: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
type: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface IssueSuggestionCollectionFilter {
/** Compound filters, all of which need to be matched by the suggestion. */
readonly and?: readonly IssueSuggestionCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that needs to be matched by all suggestions. */
readonly every?: IssueSuggestionFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Compound filters, one of which need to be matched by the suggestion. */
readonly or?: readonly IssueSuggestionCollectionFilter[] | null | undefined
/** Filters that needs to be matched by some suggestions. */
readonly some?: IssueSuggestionFilter | null | undefined
/** Comparator for the suggestion state. */
readonly state?: StringComparator | null | undefined
/** Filters that the suggested label must satisfy. */
readonly suggestedLabel?: IssueLabelFilter | null | undefined
/** Filters that the suggested project must satisfy. */
readonly suggestedProject?: NullableProjectFilter | null | undefined
/** Filters that the suggested team must satisfy. */
readonly suggestedTeam?: NullableTeamFilter | null | undefined
/** Filters that the suggested user must satisfy. */
readonly suggestedUser?: NullableUserFilter | null | undefined
/** Comparator for the suggestion type. */
readonly type?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface IssueSuggestionCollectionFilterEncoded {
readonly and?: readonly IssueSuggestionCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly every?: IssueSuggestionFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly or?: readonly IssueSuggestionCollectionFilterEncoded[] | null | undefined
readonly some?: IssueSuggestionFilterEncoded | null | undefined
readonly state?: typeof StringComparator.Encoded | null | undefined
readonly suggestedLabel?: IssueLabelFilterEncoded | null | undefined
readonly suggestedProject?: NullableProjectFilterEncoded | null | undefined
readonly suggestedTeam?: NullableTeamFilterEncoded | null | undefined
readonly suggestedUser?: NullableUserFilterEncoded | null | undefined
readonly type?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** IssueSuggestion filtering options. */
export const IssueSuggestionFilter: Schema.Codec<IssueSuggestionFilter, IssueSuggestionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueSuggestionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => IssueSuggestionFilter)))),
state: Schema.optional(Schema.NullOr(StringComparator)),
suggestedLabel: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueLabelFilter))),
suggestedProject: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
suggestedTeam: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
suggestedUser: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
type: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface IssueSuggestionFilter {
/** Compound filters, all of which need to be matched by the suggestion. */
readonly and?: readonly IssueSuggestionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Compound filters, one of which need to be matched by the suggestion. */
readonly or?: readonly IssueSuggestionFilter[] | null | undefined
/** Comparator for the suggestion state. */
readonly state?: StringComparator | null | undefined
/** Filters that the suggested label must satisfy. */
readonly suggestedLabel?: IssueLabelFilter | null | undefined
/** Filters that the suggested project must satisfy. */
readonly suggestedProject?: NullableProjectFilter | null | undefined
/** Filters that the suggested team must satisfy. */
readonly suggestedTeam?: NullableTeamFilter | null | undefined
/** Filters that the suggested user must satisfy. */
readonly suggestedUser?: NullableUserFilter | null | undefined
/** Comparator for the suggestion type. */
readonly type?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface IssueSuggestionFilterEncoded {
readonly and?: readonly IssueSuggestionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly or?: readonly IssueSuggestionFilterEncoded[] | null | undefined
readonly state?: typeof StringComparator.Encoded | null | undefined
readonly suggestedLabel?: IssueLabelFilterEncoded | null | undefined
readonly suggestedProject?: NullableProjectFilterEncoded | null | undefined
readonly suggestedTeam?: NullableTeamFilterEncoded | null | undefined
readonly suggestedUser?: NullableUserFilterEncoded | null | undefined
readonly type?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Nullable project update filtering options. */
export const NullableProjectUpdateFilter: Schema.Codec<NullableProjectUpdateFilter, NullableProjectUpdateFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableProjectUpdateFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableProjectUpdateFilter)))),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectFilter))),
reactions: Schema.optional(Schema.NullOr(ReactionCollectionFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
user: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter)))
})
export interface NullableProjectUpdateFilter {
/** Compound filters, all of which need to be matched by the project update. */
readonly and?: readonly NullableProjectUpdateFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the project update. */
readonly or?: readonly NullableProjectUpdateFilter[] | null | undefined
/** Filters that the project update project must satisfy. */
readonly project?: ProjectFilter | null | undefined
/** Filters that the project updates reactions must satisfy. */
readonly reactions?: ReactionCollectionFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Filters that the project update creator must satisfy. */
readonly user?: UserFilter | null | undefined
}
export interface NullableProjectUpdateFilterEncoded {
readonly and?: readonly NullableProjectUpdateFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableProjectUpdateFilterEncoded[] | null | undefined
readonly project?: ProjectFilterEncoded | null | undefined
readonly reactions?: ReactionCollectionFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly user?: UserFilterEncoded | null | undefined
}
/** Project filtering options. */
export const ProjectFilter: Schema.Codec<ProjectFilter, ProjectFilterEncoded> = Schema.Struct({
accessibleTeams: Schema.optional(Schema.NullOr(Schema.suspend(() => TeamCollectionFilter))),
activityType: Schema.optional(Schema.NullOr(StringComparator)),
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectFilter)))),
canceledAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
completedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
completedProjectMilestones: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneCollectionFilter))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter))),
customIdentifier: Schema.optional(Schema.NullOr(NullableStringComparator)),
customerCount: Schema.optional(Schema.NullOr(NumberComparator)),
customerImportantCount: Schema.optional(Schema.NullOr(NumberComparator)),
hasBlockedByRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasBlockingRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDependedOnByRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasDependsOnRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasRelatedRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
hasViolatedRelations: Schema.optional(Schema.NullOr(RelationExistsComparator)),
health: Schema.optional(Schema.NullOr(StringComparator)),
healthWithAge: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(EntityIdentifierIDComparator)),
initiatives: Schema.optional(Schema.NullOr(Schema.suspend(() => InitiativeCollectionFilter))),
issues: Schema.optional(Schema.NullOr(Schema.suspend(() => IssueCollectionFilter))),
labels: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectLabelCollectionFilter))),
lastAppliedTemplate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTemplateFilter))),
lead: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
leadTeam: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
members: Schema.optional(Schema.NullOr(Schema.suspend(() => UserCollectionFilter))),
name: Schema.optional(Schema.NullOr(StringComparator)),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
nextProjectMilestone: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneFilter))),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectFilter)))),
priority: Schema.optional(Schema.NullOr(NullableNumberComparator)),
projectMilestones: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectMilestoneCollectionFilter))),
projectUpdates: Schema.optional(Schema.NullOr(ProjectUpdatesCollectionFilter)),
roadmaps: Schema.optional(Schema.NullOr(Schema.suspend(() => RoadmapCollectionFilter))),
searchableContent: Schema.optional(Schema.NullOr(ContentComparator)),
slugId: Schema.optional(Schema.NullOr(StringComparator)),
startDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
startedAt: Schema.optional(Schema.NullOr(NullableDateComparator)),
state: Schema.optional(Schema.NullOr(StringComparator)),
status: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectStatusFilter))),
targetDate: Schema.optional(Schema.NullOr(NullableDateComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ProjectFilter {
/** Filters that the project's team must satisfy. */
readonly accessibleTeams?: TeamCollectionFilter | null | undefined
/** [ALPHA] Comparator for the project activity type: buzzin, active, some, none */
readonly activityType?: StringComparator | null | undefined
/** Compound filters, all of which need to be matched by the project. */
readonly and?: readonly ProjectFilter[] | null | undefined
/** Comparator for the project cancelation date. */
readonly canceledAt?: NullableDateComparator | null | undefined
/** Comparator for the project completion date. */
readonly completedAt?: NullableDateComparator | null | undefined
/** Filters that the project's completed milestones must satisfy. */
readonly completedProjectMilestones?: ProjectMilestoneCollectionFilter | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the projects creator must satisfy. */
readonly creator?: UserFilter | null | undefined
/** [Internal] Comparator for the project's custom identifier. */
readonly customIdentifier?: NullableStringComparator | null | undefined
/** Count of customers */
readonly customerCount?: NumberComparator | null | undefined
/** Count of important customers */
readonly customerImportantCount?: NumberComparator | null | undefined
/** Comparator for filtering projects which are blocked. */
readonly hasBlockedByRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering projects which are blocking. */
readonly hasBlockingRelations?: RelationExistsComparator | null | undefined
/** [Deprecated] Comparator for filtering projects which this is depended on by. */
readonly hasDependedOnByRelations?: RelationExistsComparator | null | undefined
/** [Deprecated]Comparator for filtering projects which this depends on. */
readonly hasDependsOnRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering projects with relations. */
readonly hasRelatedRelations?: RelationExistsComparator | null | undefined
/** Comparator for filtering projects with violated dependencies. */
readonly hasViolatedRelations?: RelationExistsComparator | null | undefined
/** Comparator for the project health: onTrack, atRisk, offTrack */
readonly health?: StringComparator | null | undefined
/** Comparator for the project health (with age): onTrack, atRisk, offTrack, outdated, noUpdate */
readonly healthWithAge?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: EntityIdentifierIDComparator | null | undefined
/** Filters that the projects initiatives must satisfy. */
readonly initiatives?: InitiativeCollectionFilter | null | undefined
/** Filters that the projects issues must satisfy. */
readonly issues?: IssueCollectionFilter | null | undefined
/** Filters that project labels must satisfy. */
readonly labels?: ProjectLabelCollectionFilter | null | undefined
/** Filters that the last applied template must satisfy. */
readonly lastAppliedTemplate?: NullableTemplateFilter | null | undefined
/** Filters that the projects lead must satisfy. */
readonly lead?: NullableUserFilter | null | undefined
/** [ALPHA] Filters that the project's lead team must satisfy. */
readonly leadTeam?: NullableTeamFilter | null | undefined
/** Filters that the projects members must satisfy. */
readonly members?: UserCollectionFilter | null | undefined
/** Comparator for the project name. */
readonly name?: StringComparator | null | undefined
/** Filters that the project's customer needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Filters that the project's next milestone must satisfy. */
readonly nextProjectMilestone?: ProjectMilestoneFilter | null | undefined
/** Compound filters, one of which need to be matched by the project. */
readonly or?: readonly ProjectFilter[] | null | undefined
/** Comparator for the project priority. */
readonly priority?: NullableNumberComparator | null | undefined
/** Filters that the project's milestones must satisfy. */
readonly projectMilestones?: ProjectMilestoneCollectionFilter | null | undefined
/** Comparator for the project updates. */
readonly projectUpdates?: ProjectUpdatesCollectionFilter | null | undefined
/** Filters that the projects roadmaps must satisfy. */
readonly roadmaps?: RoadmapCollectionFilter | null | undefined
/** [Internal] Comparator for the project's content. */
readonly searchableContent?: ContentComparator | null | undefined
/** Comparator for the project slug ID. */
readonly slugId?: StringComparator | null | undefined
/** Comparator for the project start date. */
readonly startDate?: NullableDateComparator | null | undefined
/** Comparator for the project started date (when it was moved to an "In Progress" status). */
readonly startedAt?: NullableDateComparator | null | undefined
/** [DEPRECATED] Comparator for the project state. */
readonly state?: StringComparator | null | undefined
/** Filters that the project status must satisfy. */
readonly status?: ProjectStatusFilter | null | undefined
/** Comparator for the project target date. */
readonly targetDate?: NullableDateComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ProjectFilterEncoded {
readonly accessibleTeams?: TeamCollectionFilterEncoded | null | undefined
readonly activityType?: typeof StringComparator.Encoded | null | undefined
readonly and?: readonly ProjectFilterEncoded[] | null | undefined
readonly canceledAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly completedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly completedProjectMilestones?: ProjectMilestoneCollectionFilterEncoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: UserFilterEncoded | null | undefined
readonly customIdentifier?: typeof NullableStringComparator.Encoded | null | undefined
readonly customerCount?: typeof NumberComparator.Encoded | null | undefined
readonly customerImportantCount?: typeof NumberComparator.Encoded | null | undefined
readonly hasBlockedByRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasBlockingRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDependedOnByRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasDependsOnRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasRelatedRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly hasViolatedRelations?: typeof RelationExistsComparator.Encoded | null | undefined
readonly health?: typeof StringComparator.Encoded | null | undefined
readonly healthWithAge?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof EntityIdentifierIDComparator.Encoded | null | undefined
readonly initiatives?: InitiativeCollectionFilterEncoded | null | undefined
readonly issues?: IssueCollectionFilterEncoded | null | undefined
readonly labels?: ProjectLabelCollectionFilterEncoded | null | undefined
readonly lastAppliedTemplate?: NullableTemplateFilterEncoded | null | undefined
readonly lead?: NullableUserFilterEncoded | null | undefined
readonly leadTeam?: NullableTeamFilterEncoded | null | undefined
readonly members?: UserCollectionFilterEncoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly nextProjectMilestone?: ProjectMilestoneFilterEncoded | null | undefined
readonly or?: readonly ProjectFilterEncoded[] | null | undefined
readonly priority?: typeof NullableNumberComparator.Encoded | null | undefined
readonly projectMilestones?: ProjectMilestoneCollectionFilterEncoded | null | undefined
readonly projectUpdates?: ProjectUpdatesCollectionFilterEncoded | null | undefined
readonly roadmaps?: RoadmapCollectionFilterEncoded | null | undefined
readonly searchableContent?: typeof ContentComparator.Encoded | null | undefined
readonly slugId?: typeof StringComparator.Encoded | null | undefined
readonly startDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly startedAt?: typeof NullableDateComparator.Encoded | null | undefined
readonly state?: typeof StringComparator.Encoded | null | undefined
readonly status?: ProjectStatusFilterEncoded | null | undefined
readonly targetDate?: typeof NullableDateComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Roadmap collection filtering options. */
export const RoadmapCollectionFilter: Schema.Codec<RoadmapCollectionFilter, RoadmapCollectionFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => RoadmapCollectionFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter))),
every: Schema.optional(Schema.NullOr(Schema.suspend(() => RoadmapFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
length: Schema.optional(Schema.NullOr(NumberComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => RoadmapCollectionFilter)))),
slugId: Schema.optional(Schema.NullOr(StringComparator)),
some: Schema.optional(Schema.NullOr(Schema.suspend(() => RoadmapFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface RoadmapCollectionFilter {
/** Compound filters, all of which need to be matched by the roadmap. */
readonly and?: readonly RoadmapCollectionFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the roadmap creator must satisfy. */
readonly creator?: UserFilter | null | undefined
/** Filters that needs to be matched by all roadmaps. */
readonly every?: RoadmapFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the collection length. */
readonly length?: NumberComparator | null | undefined
/** Comparator for the roadmap name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the roadmap. */
readonly or?: readonly RoadmapCollectionFilter[] | null | undefined
/** Comparator for the roadmap slug ID. */
readonly slugId?: StringComparator | null | undefined
/** Filters that needs to be matched by some roadmaps. */
readonly some?: RoadmapFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface RoadmapCollectionFilterEncoded {
readonly and?: readonly RoadmapCollectionFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: UserFilterEncoded | null | undefined
readonly every?: RoadmapFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly length?: typeof NumberComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly RoadmapCollectionFilterEncoded[] | null | undefined
readonly slugId?: typeof StringComparator.Encoded | null | undefined
readonly some?: RoadmapFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Roadmap filtering options. */
export const RoadmapFilter: Schema.Codec<RoadmapFilter, RoadmapFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => RoadmapFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
creator: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => RoadmapFilter)))),
slugId: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface RoadmapFilter {
/** Compound filters, all of which need to be matched by the roadmap. */
readonly and?: readonly RoadmapFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the roadmap creator must satisfy. */
readonly creator?: UserFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the roadmap name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which need to be matched by the roadmap. */
readonly or?: readonly RoadmapFilter[] | null | undefined
/** Comparator for the roadmap slug ID. */
readonly slugId?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface RoadmapFilterEncoded {
readonly and?: readonly RoadmapFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly creator?: UserFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly RoadmapFilterEncoded[] | null | undefined
readonly slugId?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Project status filtering options. */
export const ProjectStatusFilter: Schema.Codec<ProjectStatusFilter, ProjectStatusFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectStatusFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
description: Schema.optional(Schema.NullOr(StringComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => ProjectStatusFilter)))),
position: Schema.optional(Schema.NullOr(NumberComparator)),
projects: Schema.optional(Schema.NullOr(Schema.suspend(() => ProjectCollectionFilter))),
team: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableTeamFilter))),
type: Schema.optional(Schema.NullOr(StringComparator)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface ProjectStatusFilter {
/** Compound filters, all of which need to be matched by the project status. */
readonly and?: readonly ProjectStatusFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the project status description. */
readonly description?: StringComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the project status name. */
readonly name?: StringComparator | null | undefined
/** Compound filters, one of which needs to be matched by the project status. */
readonly or?: readonly ProjectStatusFilter[] | null | undefined
/** Comparator for the project status position. */
readonly position?: NumberComparator | null | undefined
/** Filters that the project status projects must satisfy. */
readonly projects?: ProjectCollectionFilter | null | undefined
/** Filters that the project status's team must satisfy. Use `{ null: true }` to filter workspace-level statuses. */
readonly team?: NullableTeamFilter | null | undefined
/** Comparator for the project status type. */
readonly type?: StringComparator | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface ProjectStatusFilterEncoded {
readonly and?: readonly ProjectStatusFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly description?: typeof StringComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly or?: readonly ProjectStatusFilterEncoded[] | null | undefined
readonly position?: typeof NumberComparator.Encoded | null | undefined
readonly projects?: ProjectCollectionFilterEncoded | null | undefined
readonly team?: NullableTeamFilterEncoded | null | undefined
readonly type?: typeof StringComparator.Encoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Customer filtering options. */
export const NullableCustomerFilter: Schema.Codec<NullableCustomerFilter, NullableCustomerFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableCustomerFilter)))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
domains: Schema.optional(Schema.NullOr(StringArrayComparator)),
externalIds: Schema.optional(Schema.NullOr(StringArrayComparator)),
id: Schema.optional(Schema.NullOr(IDComparator)),
name: Schema.optional(Schema.NullOr(StringComparator)),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
null: Schema.optional(Schema.NullOr(Schema.Boolean)),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => NullableCustomerFilter)))),
owner: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableUserFilter))),
revenue: Schema.optional(Schema.NullOr(NumberComparator)),
size: Schema.optional(Schema.NullOr(NumberComparator)),
slackChannelId: Schema.optional(Schema.NullOr(StringComparator)),
status: Schema.optional(Schema.NullOr(CustomerStatusFilter)),
tier: Schema.optional(Schema.NullOr(CustomerTierFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface NullableCustomerFilter {
/** Compound filters, all of which need to be matched by the customer. */
readonly and?: readonly NullableCustomerFilter[] | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Comparator for the customer's domains. */
readonly domains?: StringArrayComparator | null | undefined
/** Comparator for the customer's external IDs. */
readonly externalIds?: StringArrayComparator | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Comparator for the customer name. */
readonly name?: StringComparator | null | undefined
/** Filters that the customer's needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Filter based on the existence of the relation. */
readonly null?: boolean | null | undefined
/** Compound filters, one of which need to be matched by the customer. */
readonly or?: readonly NullableCustomerFilter[] | null | undefined
/** Filters that the customer owner must satisfy. */
readonly owner?: NullableUserFilter | null | undefined
/** Comparator for the customer generated revenue. */
readonly revenue?: NumberComparator | null | undefined
/** Comparator for the customer size. */
readonly size?: NumberComparator | null | undefined
/** Comparator for the customer slack channel ID. */
readonly slackChannelId?: StringComparator | null | undefined
/** Filters that the customer's status must satisfy. */
readonly status?: CustomerStatusFilter | null | undefined
/** Filters that the customer's tier must satisfy. */
readonly tier?: CustomerTierFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface NullableCustomerFilterEncoded {
readonly and?: readonly NullableCustomerFilterEncoded[] | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly domains?: typeof StringArrayComparator.Encoded | null | undefined
readonly externalIds?: typeof StringArrayComparator.Encoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly name?: typeof StringComparator.Encoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly null?: boolean | null | undefined
readonly or?: readonly NullableCustomerFilterEncoded[] | null | undefined
readonly owner?: NullableUserFilterEncoded | null | undefined
readonly revenue?: typeof NumberComparator.Encoded | null | undefined
readonly size?: typeof NumberComparator.Encoded | null | undefined
readonly slackChannelId?: typeof StringComparator.Encoded | null | undefined
readonly status?: CustomerStatusFilterEncoded | null | undefined
readonly tier?: CustomerTierFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Customer filtering options. */
export const CustomerNeedFilter: Schema.Codec<CustomerNeedFilter, CustomerNeedFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CustomerNeedFilter)))),
comment: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCommentFilter))),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
customer: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCustomerFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
issue: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableIssueFilter))),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CustomerNeedFilter)))),
priority: Schema.optional(Schema.NullOr(NumberComparator)),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
updatedAt: Schema.optional(Schema.NullOr(DateComparator))
})
export interface CustomerNeedFilter {
/** Compound filters, all of which need to be matched by the customer need. */
readonly and?: readonly CustomerNeedFilter[] | null | undefined
/** Filters that the need's comment must satisfy. */
readonly comment?: NullableCommentFilter | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the need's customer must satisfy. */
readonly customer?: NullableCustomerFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** Filters that the need's issue must satisfy. */
readonly issue?: NullableIssueFilter | null | undefined
/** Compound filters, one of which need to be matched by the customer need. */
readonly or?: readonly CustomerNeedFilter[] | null | undefined
/** Comparator for the customer need priority. */
readonly priority?: NumberComparator | null | undefined
/** Filters that the need's project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
}
export interface CustomerNeedFilterEncoded {
readonly and?: readonly CustomerNeedFilterEncoded[] | null | undefined
readonly comment?: NullableCommentFilterEncoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly customer?: NullableCustomerFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly issue?: NullableIssueFilterEncoded | null | undefined
readonly or?: readonly CustomerNeedFilterEncoded[] | null | undefined
readonly priority?: typeof NumberComparator.Encoded | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
}
/** Comment filtering options. */
export const CommentFilter: Schema.Codec<CommentFilter, CommentFilterEncoded> = Schema.Struct({
and: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CommentFilter)))),
body: Schema.optional(Schema.NullOr(StringComparator)),
createdAt: Schema.optional(Schema.NullOr(DateComparator)),
documentContent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableDocumentContentFilter))),
id: Schema.optional(Schema.NullOr(IDComparator)),
initiative: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableInitiativeFilter))),
initiativeUpdate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableInitiativeUpdateFilter))),
issue: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableIssueFilter))),
needs: Schema.optional(Schema.NullOr(Schema.suspend(() => CustomerNeedCollectionFilter))),
or: Schema.optional(Schema.NullOr(Schema.Array(Schema.suspend(() => CommentFilter)))),
parent: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableCommentFilter))),
project: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectFilter))),
projectUpdate: Schema.optional(Schema.NullOr(Schema.suspend(() => NullableProjectUpdateFilter))),
reactions: Schema.optional(Schema.NullOr(ReactionCollectionFilter)),
updatedAt: Schema.optional(Schema.NullOr(DateComparator)),
user: Schema.optional(Schema.NullOr(Schema.suspend(() => UserFilter)))
})
export interface CommentFilter {
/** Compound filters, all of which need to be matched by the comment. */
readonly and?: readonly CommentFilter[] | null | undefined
/** Comparator for the comment's body. */
readonly body?: StringComparator | null | undefined
/** Comparator for the created at date. */
readonly createdAt?: DateComparator | null | undefined
/** Filters that the comment's document content must satisfy. */
readonly documentContent?: NullableDocumentContentFilter | null | undefined
/** Comparator for the identifier. */
readonly id?: IDComparator | null | undefined
/** [Internal] Filters that the comment's initiative must satisfy. */
readonly initiative?: NullableInitiativeFilter | null | undefined
/** Filters that the comment's initiative update must satisfy. */
readonly initiativeUpdate?: NullableInitiativeUpdateFilter | null | undefined
/** Filters that the comment's issue must satisfy. */
readonly issue?: NullableIssueFilter | null | undefined
/** Filters that the comment's customer needs must satisfy. */
readonly needs?: CustomerNeedCollectionFilter | null | undefined
/** Compound filters, one of which need to be matched by the comment. */
readonly or?: readonly CommentFilter[] | null | undefined
/** Filters that the comment parent must satisfy. */
readonly parent?: NullableCommentFilter | null | undefined
/** [Internal] Filters that the comment's project must satisfy. */
readonly project?: NullableProjectFilter | null | undefined
/** Filters that the comment's project update must satisfy. */
readonly projectUpdate?: NullableProjectUpdateFilter | null | undefined
/** Filters that the comment's reactions must satisfy. */
readonly reactions?: ReactionCollectionFilter | null | undefined
/** Comparator for the updated at date. */
readonly updatedAt?: DateComparator | null | undefined
/** Filters that the comment's creator must satisfy. */
readonly user?: UserFilter | null | undefined
}
export interface CommentFilterEncoded {
readonly and?: readonly CommentFilterEncoded[] | null | undefined
readonly body?: typeof StringComparator.Encoded | null | undefined
readonly createdAt?: typeof DateComparator.Encoded | null | undefined
readonly documentContent?: NullableDocumentContentFilterEncoded | null | undefined
readonly id?: typeof IDComparator.Encoded | null | undefined
readonly initiative?: NullableInitiativeFilterEncoded | null | undefined
readonly initiativeUpdate?: NullableInitiativeUpdateFilterEncoded | null | undefined
readonly issue?: NullableIssueFilterEncoded | null | undefined
readonly needs?: CustomerNeedCollectionFilterEncoded | null | undefined
readonly or?: readonly CommentFilterEncoded[] | null | undefined
readonly parent?: NullableCommentFilterEncoded | null | undefined
readonly project?: NullableProjectFilterEncoded | null | undefined
readonly projectUpdate?: NullableProjectUpdateFilterEncoded | null | undefined
readonly reactions?: ReactionCollectionFilterEncoded | null | undefined
readonly updatedAt?: typeof DateComparator.Encoded | null | undefined
readonly user?: UserFilterEncoded | null | undefined
}
/** Input for updating an existing issue. All fields are optional; only provided fields will be updated. Setting a field to null (where supported) will clear the value. */
export const IssueUpdateInput = Schema.Struct({
/** The identifiers of the issue labels to be added to this issue. */
addedLabelIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** The identifiers of the releases to be added to this issue. */
addedReleaseIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** The identifier of the user to assign the issue to. */
assigneeId: Schema.optional(Schema.NullOr(Schema.String)),
/** Whether the issue was automatically closed because its parent issue was closed. */
autoClosedByParentClosing: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** The cycle associated with the issue. */
cycleId: Schema.optional(Schema.NullOr(Schema.String)),
/** The identifier of the agent user to delegate the issue to. */
delegateId: Schema.optional(Schema.NullOr(Schema.String)),
/** The issue description in markdown format. */
description: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] The issue description as a Prosemirror document. */
descriptionData: Schema.optional(Schema.NullOr(JSON)),
/** The date at which the issue is due. */
dueDate: Schema.optional(Schema.NullOr(TimelessDate)),
/** The estimated complexity of the issue. */
estimate: Schema.optional(Schema.NullOr(Int)),
/** Whether this issue should inherit shared access from its parent issue. */
inheritsSharedAccess: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** The identifiers of the issue labels associated with this ticket. */
labelIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** The ID of the last template applied to the issue. */
lastAppliedTemplateId: Schema.optional(Schema.NullOr(Schema.String)),
/** The identifier of the parent issue. Can be a UUID or issue identifier (e.g., 'LIN-123'). */
parentId: Schema.optional(Schema.NullOr(Schema.String)),
/** The priority of the issue. 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low. */
priority: Schema.optional(Schema.NullOr(Int)),
/** The position of the issue related to other issues, when ordered by priority. */
prioritySortOrder: Schema.optional(Schema.NullOr(Float)),
/** The project associated with the issue. Can be a UUID or project identifier (e.g., 'P-LIN-123'). */
projectId: Schema.optional(Schema.NullOr(Schema.String)),
/** The project milestone associated with the issue. */
projectMilestoneId: Schema.optional(Schema.NullOr(Schema.String)),
/** The identifiers of the releases associated with this issue. */
releaseIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** The identifiers of the issue labels to be removed from this issue. */
removedLabelIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** The identifiers of the releases to be removed from this issue. */
removedReleaseIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** [Internal] The time at which an issue will be considered in breach of SLA. */
slaBreachesAt: Schema.optional(Schema.NullOr(DateTime)),
/** [Internal] The time at which the issue's SLA was started. */
slaStartedAt: Schema.optional(Schema.NullOr(DateTime)),
/** The SLA day count type for the issue. Whether SLA should be business days only or calendar days (default). */
slaType: Schema.optional(Schema.NullOr(SLADayCountType)),
/** The identifier of the user who snoozed the issue. */
snoozedById: Schema.optional(Schema.NullOr(Schema.String)),
/** The time until which the issue will be snoozed in Triage view. */
snoozedUntilAt: Schema.optional(Schema.NullOr(DateTime)),
/** The position of the issue related to other issues. */
sortOrder: Schema.optional(Schema.NullOr(Float)),
/** The team state of the issue. */
stateId: Schema.optional(Schema.NullOr(Schema.String)),
/** The position of the issue in parent's sub-issue list. */
subIssueSortOrder: Schema.optional(Schema.NullOr(Float)),
/** The identifiers of the users subscribing to this ticket. */
subscriberIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
/** The identifier of the team associated with the issue. */
teamId: Schema.optional(Schema.NullOr(Schema.String)),
/** The issue title. */
title: Schema.optional(Schema.NullOr(Schema.String)),
/** Whether the issue has been trashed. Set to true to trash, or null to restore. */
trashed: Schema.optional(Schema.NullOr(Schema.Boolean)),
/** [Internal] Whether this issue has been explicitly marked as trusted. */
trusted: Schema.optional(Schema.NullOr(Schema.Boolean))
})
export interface IssueUpdateInput extends Schema.Struct.Type<typeof IssueUpdateInput.fields> {}
/** Input for creating a new reaction. */
export const ReactionCreateInput = Schema.Struct({
/** The comment to associate the reaction with. */
commentId: Schema.optional(Schema.NullOr(Schema.String)),
/** The emoji the user reacted with. */
emoji: Schema.String,
/** The identifier in UUID v4 format. If none is provided, the backend will generate one. */
id: Schema.optional(Schema.NullOr(Schema.String)),
/** The update to associate the reaction with. */
initiativeUpdateId: Schema.optional(Schema.NullOr(Schema.String)),
/** The issue to associate the reaction with. Can be a UUID or issue identifier (e.g., 'LIN-123'). */
issueId: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] The post to associate the reaction with. */
postId: Schema.optional(Schema.NullOr(Schema.String)),
/** The project update to associate the reaction with. */
projectUpdateId: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] The pull request comment to associate the reaction with. */
pullRequestCommentId: Schema.optional(Schema.NullOr(Schema.String)),
/** [Internal] The pull request to associate the reaction with. */
pullRequestId: Schema.optional(Schema.NullOr(Schema.String))
})
export interface ReactionCreateInput extends Schema.Struct.Type<typeof ReactionCreateInput.fields> {}