@resolution/jira-api-client 0.7.8 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/openapi/core/CommonHttpClient.d.ts +29 -0
- package/lib/openapi/core/CommonHttpClient.js +29 -1
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +27 -7
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js +45 -1
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
- package/lib/openapi/platform/models/appMigration.d.ts +12 -0
- package/lib/openapi/platform/models/appMigration.js.map +1 -1
- package/lib/openapi/platform/models/appProperties.d.ts +4 -2
- package/lib/openapi/platform/models/appProperties.js.map +1 -1
- package/lib/openapi/platform/models/common.d.ts +7 -43
- package/lib/openapi/platform/models/common.js +1 -21
- package/lib/openapi/platform/models/common.js.map +1 -1
- package/lib/openapi/platform/models/dashboards.d.ts +0 -30
- package/lib/openapi/platform/models/dashboards.js +0 -18
- package/lib/openapi/platform/models/dashboards.js.map +1 -1
- package/lib/openapi/platform/models/dynamicModules.d.ts +55 -51
- package/lib/openapi/platform/models/dynamicModules.js.map +1 -1
- package/lib/openapi/platform/models/issueBulkOperations.d.ts +102 -0
- package/lib/openapi/platform/models/issueBulkOperations.js +56 -0
- package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -1
- package/lib/openapi/platform/models/issueCustomFieldOptions.d.ts +1 -4
- package/lib/openapi/platform/models/issueCustomFieldOptions.js.map +1 -1
- package/lib/openapi/platform/models/issueSecurityLevel.d.ts +1 -1
- package/lib/openapi/platform/models/issueSecuritySchemes.d.ts +1 -1
- package/lib/openapi/platform/models/issues.d.ts +124 -10
- package/lib/openapi/platform/models/issues.js +78 -0
- package/lib/openapi/platform/models/issues.js.map +1 -1
- package/lib/openapi/platform/models/jiraExpressions.d.ts +8 -1
- package/lib/openapi/platform/models/jiraExpressions.js.map +1 -1
- package/lib/openapi/platform/models/jql.d.ts +8 -0
- package/lib/openapi/platform/models/jql.js.map +1 -1
- package/lib/openapi/platform/models/jqlFunctionsApps.d.ts +43 -1
- package/lib/openapi/platform/models/jqlFunctionsApps.js +52 -2
- package/lib/openapi/platform/models/jqlFunctionsApps.js.map +1 -1
- package/lib/openapi/platform/models/permissionSchemes.d.ts +3 -4
- package/lib/openapi/platform/models/permissionSchemes.js.map +1 -1
- package/lib/openapi/platform/models/plans.d.ts +268 -0
- package/lib/openapi/platform/models/plans.js +425 -0
- package/lib/openapi/platform/models/plans.js.map +1 -0
- package/lib/openapi/platform/models/projects.d.ts +1 -1
- package/lib/openapi/platform/models/projects.js +1 -0
- package/lib/openapi/platform/models/projects.js.map +1 -1
- package/lib/openapi/platform/models/serviceRegistry.d.ts +2 -0
- package/lib/openapi/platform/models/serviceRegistry.js.map +1 -1
- package/lib/openapi/platform/models/teamsInPlan.d.ts +79 -0
- package/lib/openapi/platform/models/teamsInPlan.js +86 -0
- package/lib/openapi/platform/models/teamsInPlan.js.map +1 -0
- package/lib/openapi/platform/models/workflows.d.ts +4 -0
- package/lib/openapi/platform/models/workflows.js +2 -0
- package/lib/openapi/platform/models/workflows.js.map +1 -1
- package/lib/openapi/platform/services/AnnouncementBannerService.d.ts +4 -4
- package/lib/openapi/platform/services/AppMigrationService.d.ts +87 -87
- package/lib/openapi/platform/services/AppMigrationService.js +49 -49
- package/lib/openapi/platform/services/AppPropertiesService.d.ts +17 -17
- package/lib/openapi/platform/services/AppPropertiesService.js +17 -17
- package/lib/openapi/platform/services/ApplicationRolesService.d.ts +2 -0
- package/lib/openapi/platform/services/ApplicationRolesService.js +2 -0
- package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
- package/lib/openapi/platform/services/DashboardsService.d.ts +64 -64
- package/lib/openapi/platform/services/FilterSharingService.d.ts +8 -4
- package/lib/openapi/platform/services/FilterSharingService.js +4 -0
- package/lib/openapi/platform/services/FilterSharingService.js.map +1 -1
- package/lib/openapi/platform/services/FiltersService.d.ts +21 -8
- package/lib/openapi/platform/services/FiltersService.js +8 -1
- package/lib/openapi/platform/services/FiltersService.js.map +1 -1
- package/lib/openapi/platform/services/GroupsService.d.ts +2 -2
- package/lib/openapi/platform/services/IssueAttachmentsService.d.ts +2 -0
- package/lib/openapi/platform/services/IssueAttachmentsService.js +2 -0
- package/lib/openapi/platform/services/IssueAttachmentsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +293 -78
- package/lib/openapi/platform/services/IssueBulkOperationsService.js +244 -2
- package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueCommentsService.d.ts +42 -42
- package/lib/openapi/platform/services/IssueCustomFieldConfigurationAppsService.d.ts +29 -29
- package/lib/openapi/platform/services/IssueCustomFieldContextsService.d.ts +59 -59
- package/lib/openapi/platform/services/IssueCustomFieldOptionsAppsService.d.ts +59 -59
- package/lib/openapi/platform/services/IssueCustomFieldOptionsService.d.ts +37 -37
- package/lib/openapi/platform/services/IssueCustomFieldValuesAppsService.d.ts +25 -25
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +47 -47
- package/lib/openapi/platform/services/IssueFieldsService.d.ts +12 -11
- package/lib/openapi/platform/services/IssueFieldsService.js +3 -1
- package/lib/openapi/platform/services/IssueFieldsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueLinkTypesService.d.ts +6 -6
- package/lib/openapi/platform/services/IssueLinksService.d.ts +28 -28
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.d.ts +2 -0
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.js +2 -0
- package/lib/openapi/platform/services/IssueNavigatorSettingsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueNotificationSchemesService.d.ts +26 -26
- package/lib/openapi/platform/services/IssuePrioritiesService.d.ts +16 -14
- package/lib/openapi/platform/services/IssuePrioritiesService.js +2 -0
- package/lib/openapi/platform/services/IssuePrioritiesService.js.map +1 -1
- package/lib/openapi/platform/services/IssuePropertiesService.d.ts +38 -38
- package/lib/openapi/platform/services/IssueRemoteLinksService.d.ts +44 -42
- package/lib/openapi/platform/services/IssueRemoteLinksService.js +2 -0
- package/lib/openapi/platform/services/IssueRemoteLinksService.js.map +1 -1
- package/lib/openapi/platform/services/IssueResolutionsService.d.ts +12 -10
- package/lib/openapi/platform/services/IssueResolutionsService.js +2 -0
- package/lib/openapi/platform/services/IssueResolutionsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSearchService.d.ts +28 -28
- package/lib/openapi/platform/services/IssueSecuritySchemesService.d.ts +58 -58
- package/lib/openapi/platform/services/IssueTypePropertiesService.d.ts +2 -2
- package/lib/openapi/platform/services/IssueTypeSchemesService.d.ts +24 -24
- package/lib/openapi/platform/services/IssueTypeScreenSchemesService.d.ts +39 -39
- package/lib/openapi/platform/services/IssueTypesService.d.ts +12 -6
- package/lib/openapi/platform/services/IssueTypesService.js +6 -0
- package/lib/openapi/platform/services/IssueTypesService.js.map +1 -1
- package/lib/openapi/platform/services/IssueWatchersService.d.ts +5 -5
- package/lib/openapi/platform/services/IssueWorklogsService.d.ts +59 -57
- package/lib/openapi/platform/services/IssueWorklogsService.js +2 -0
- package/lib/openapi/platform/services/IssueWorklogsService.js.map +1 -1
- package/lib/openapi/platform/services/IssuesService.d.ts +692 -590
- package/lib/openapi/platform/services/IssuesService.js +121 -0
- package/lib/openapi/platform/services/IssuesService.js.map +1 -1
- package/lib/openapi/platform/services/JiraExpressionsService.d.ts +95 -95
- package/lib/openapi/platform/services/JiraSettingsService.d.ts +6 -2
- package/lib/openapi/platform/services/JiraSettingsService.js +4 -0
- package/lib/openapi/platform/services/JiraSettingsService.js.map +1 -1
- package/lib/openapi/platform/services/JqlFunctionsAppsService.d.ts +125 -28
- package/lib/openapi/platform/services/JqlFunctionsAppsService.js +137 -20
- package/lib/openapi/platform/services/JqlFunctionsAppsService.js.map +1 -1
- package/lib/openapi/platform/services/JqlService.d.ts +36 -36
- package/lib/openapi/platform/services/MyselfService.d.ts +1 -1
- package/lib/openapi/platform/services/PermissionSchemesService.d.ts +32 -35
- package/lib/openapi/platform/services/PermissionSchemesService.js +2 -5
- package/lib/openapi/platform/services/PermissionSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/PermissionsService.d.ts +21 -21
- package/lib/openapi/platform/services/PlansService.d.ts +389 -0
- package/lib/openapi/platform/services/PlansService.js +459 -0
- package/lib/openapi/platform/services/PlansService.js.map +1 -0
- package/lib/openapi/platform/services/PrioritySchemesService.d.ts +83 -83
- package/lib/openapi/platform/services/ProjectAvatarsService.d.ts +1 -1
- package/lib/openapi/platform/services/ProjectCategoriesService.d.ts +6 -4
- package/lib/openapi/platform/services/ProjectCategoriesService.js +2 -0
- package/lib/openapi/platform/services/ProjectCategoriesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectClassificationLevelsService.d.ts +1 -1
- package/lib/openapi/platform/services/ProjectComponentsService.d.ts +13 -11
- package/lib/openapi/platform/services/ProjectComponentsService.js +2 -0
- package/lib/openapi/platform/services/ProjectComponentsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectEmailService.d.ts +1 -1
- package/lib/openapi/platform/services/ProjectFeaturesService.d.ts +1 -1
- package/lib/openapi/platform/services/ProjectPermissionSchemesService.d.ts +1 -1
- package/lib/openapi/platform/services/ProjectPropertiesService.d.ts +2 -2
- package/lib/openapi/platform/services/ProjectRoleActorsService.d.ts +14 -14
- package/lib/openapi/platform/services/ProjectRolesService.d.ts +10 -6
- package/lib/openapi/platform/services/ProjectRolesService.js +4 -0
- package/lib/openapi/platform/services/ProjectRolesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectTypesService.d.ts +4 -0
- package/lib/openapi/platform/services/ProjectTypesService.js +4 -0
- package/lib/openapi/platform/services/ProjectTypesService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectVersionsService.d.ts +29 -25
- package/lib/openapi/platform/services/ProjectVersionsService.js +5 -1
- package/lib/openapi/platform/services/ProjectVersionsService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectsService.d.ts +30 -24
- package/lib/openapi/platform/services/ProjectsService.js +6 -0
- package/lib/openapi/platform/services/ProjectsService.js.map +1 -1
- package/lib/openapi/platform/services/ScreenSchemesService.d.ts +12 -12
- package/lib/openapi/platform/services/ScreenTabFieldsService.d.ts +1 -1
- package/lib/openapi/platform/services/ScreenTabsService.d.ts +1 -1
- package/lib/openapi/platform/services/ScreensService.d.ts +4 -4
- package/lib/openapi/platform/services/ServiceRegistryService.d.ts +2 -0
- package/lib/openapi/platform/services/ServiceRegistryService.js.map +1 -1
- package/lib/openapi/platform/services/StatusService.d.ts +24 -20
- package/lib/openapi/platform/services/StatusService.js +4 -0
- package/lib/openapi/platform/services/StatusService.js.map +1 -1
- package/lib/openapi/platform/services/TeamsInPlanService.d.ts +294 -0
- package/lib/openapi/platform/services/TeamsInPlanService.js +452 -0
- package/lib/openapi/platform/services/TeamsInPlanService.js.map +1 -0
- package/lib/openapi/platform/services/TimeTrackingService.d.ts +7 -5
- package/lib/openapi/platform/services/TimeTrackingService.js +2 -0
- package/lib/openapi/platform/services/TimeTrackingService.js.map +1 -1
- package/lib/openapi/platform/services/UiModificationsAppsService.d.ts +44 -44
- package/lib/openapi/platform/services/UserSearchService.d.ts +19 -8
- package/lib/openapi/platform/services/UserSearchService.js +15 -5
- package/lib/openapi/platform/services/UserSearchService.js.map +1 -1
- package/lib/openapi/platform/services/UsersService.d.ts +7 -1
- package/lib/openapi/platform/services/UsersService.js +6 -0
- package/lib/openapi/platform/services/UsersService.js.map +1 -1
- package/lib/openapi/platform/services/WebhooksService.d.ts +39 -39
- package/lib/openapi/platform/services/WorkflowSchemeDraftsService.d.ts +39 -39
- package/lib/openapi/platform/services/WorkflowSchemeProjectAssociationsService.d.ts +2 -2
- package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +102 -100
- package/lib/openapi/platform/services/WorkflowSchemesService.js +2 -0
- package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.d.ts +2 -0
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js +2 -0
- package/lib/openapi/platform/services/WorkflowStatusCategoriesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowStatusesService.d.ts +2 -0
- package/lib/openapi/platform/services/WorkflowStatusesService.js +2 -0
- package/lib/openapi/platform/services/WorkflowStatusesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.d.ts +4 -2
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js +2 -0
- package/lib/openapi/platform/services/WorkflowTransitionPropertiesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowTransitionRulesService.d.ts +48 -48
- package/lib/openapi/platform/services/WorkflowsService.d.ts +591 -589
- package/lib/openapi/platform/services/WorkflowsService.js +2 -0
- package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +3 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js.map +1 -1
- package/lib/openapi/serviceManagement/models/organization.d.ts +5 -0
- package/lib/openapi/serviceManagement/models/organization.js +1 -0
- package/lib/openapi/serviceManagement/models/organization.js.map +1 -1
- package/lib/openapi/serviceManagement/services/CustomerService.d.ts +2 -2
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.d.ts +11 -7
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js +3 -1
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/OrganizationService.d.ts +39 -33
- package/lib/openapi/serviceManagement/services/OrganizationService.js +24 -18
- package/lib/openapi/serviceManagement/services/OrganizationService.js.map +1 -1
- package/lib/openapi/serviceManagement/services/RequestService.d.ts +68 -68
- package/lib/openapi/serviceManagement/services/RequestService.js +3 -3
- package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +39 -32
- package/lib/openapi/serviceManagement/services/ServicedeskService.js +4 -2
- package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -1
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js +2 -0
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
- package/lib/openapi/software/models/board.d.ts +2 -3
- package/lib/openapi/software/models/board.js.map +1 -1
- package/lib/openapi/software/models/builds.d.ts +40 -2
- package/lib/openapi/software/models/builds.js.map +1 -1
- package/lib/openapi/software/models/common.d.ts +8 -2
- package/lib/openapi/software/models/common.js.map +1 -1
- package/lib/openapi/software/models/deployments.d.ts +36 -2
- package/lib/openapi/software/models/deployments.js.map +1 -1
- package/lib/openapi/software/models/devOpsComponents.d.ts +10 -4
- package/lib/openapi/software/models/devOpsComponents.js.map +1 -1
- package/lib/openapi/software/models/developmentInformation.d.ts +106 -0
- package/lib/openapi/software/models/developmentInformation.js.map +1 -1
- package/lib/openapi/software/models/featureFlags.d.ts +20 -4
- package/lib/openapi/software/models/featureFlags.js.map +1 -1
- package/lib/openapi/software/models/operations.d.ts +76 -16
- package/lib/openapi/software/models/operations.js.map +1 -1
- package/lib/openapi/software/models/remoteLinks.d.ts +49 -13
- package/lib/openapi/software/models/remoteLinks.js.map +1 -1
- package/lib/openapi/software/models/securityInformation.d.ts +60 -8
- package/lib/openapi/software/models/securityInformation.js.map +1 -1
- package/lib/openapi/software/services/BacklogService.d.ts +12 -12
- package/lib/openapi/software/services/BoardService.d.ts +14 -14
- package/lib/openapi/software/services/EpicService.d.ts +18 -18
- package/lib/openapi/software/services/IssueService.d.ts +8 -8
- package/lib/openapi/software/services/OperationsService.d.ts +8 -4
- package/lib/openapi/software/services/OperationsService.js.map +1 -1
- package/lib/openapi/software/services/RemoteLinksService.d.ts +4 -2
- package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
- package/lib/openapi/software/services/SprintService.d.ts +20 -20
- package/package.json +5 -4
- package/CHANGELOG.md +0 -430
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { type ZodTypeAny } from "zod";
|
|
2
|
+
import type { CommonValidationSchemaStorage } from "../../core/CommonValidationSchemaStorage";
|
|
3
|
+
/** @category Models */
|
|
4
|
+
export interface CreateCrossProjectReleaseRequest {
|
|
5
|
+
/** The cross-project release name. */
|
|
6
|
+
name: string;
|
|
7
|
+
/** The IDs of the releases to include in the cross-project release. */
|
|
8
|
+
releaseIds?: number[];
|
|
9
|
+
}
|
|
10
|
+
/** @category Models */
|
|
11
|
+
export interface CreateCustomFieldRequest {
|
|
12
|
+
/** The custom field ID. */
|
|
13
|
+
customFieldId: number;
|
|
14
|
+
/** Allows filtering issues based on their values for the custom field. */
|
|
15
|
+
filter?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The start date field for the plan.
|
|
19
|
+
*
|
|
20
|
+
* @category Models
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateDateFieldRequest {
|
|
23
|
+
/** A date custom field ID. This is required if the type is "DateCustomField". */
|
|
24
|
+
dateCustomFieldId?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The date field type. This must be "DueDate", "TargetStartDate", "TargetEndDate"
|
|
27
|
+
* or "DateCustomField".
|
|
28
|
+
*/
|
|
29
|
+
type: "DueDate" | "TargetStartDate" | "TargetEndDate" | "DateCustomField";
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The exclusion rules for the plan.
|
|
33
|
+
*
|
|
34
|
+
* @category Models
|
|
35
|
+
*/
|
|
36
|
+
export interface CreateExclusionRulesRequest {
|
|
37
|
+
/** The IDs of the issues to exclude from the plan. */
|
|
38
|
+
issueIds?: number[];
|
|
39
|
+
/** The IDs of the issue types to exclude from the plan. */
|
|
40
|
+
issueTypeIds?: number[];
|
|
41
|
+
/** Issues completed this number of days ago will be excluded from the plan. */
|
|
42
|
+
numberOfDaysToShowCompletedIssues?: number;
|
|
43
|
+
/** The IDs of the releases to exclude from the plan. */
|
|
44
|
+
releaseIds?: number[];
|
|
45
|
+
/** The IDs of the work status categories to exclude from the plan. */
|
|
46
|
+
workStatusCategoryIds?: number[];
|
|
47
|
+
/** The IDs of the work statuses to exclude from the plan. */
|
|
48
|
+
workStatusIds?: number[];
|
|
49
|
+
}
|
|
50
|
+
/** @category Models */
|
|
51
|
+
export interface CreateIssueSourceRequest {
|
|
52
|
+
/** The issue source type. This must be "Board", "Project" or "Filter". */
|
|
53
|
+
type: "Board" | "Project" | "Filter";
|
|
54
|
+
/**
|
|
55
|
+
* The issue source value. This must be a board ID if the type is "Board", a
|
|
56
|
+
* project ID if the type is "Project" or a filter ID if the type is "Filter".
|
|
57
|
+
*/
|
|
58
|
+
value: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The permission holder.
|
|
62
|
+
*
|
|
63
|
+
* @category Models
|
|
64
|
+
*/
|
|
65
|
+
export interface CreatePermissionHolderRequest {
|
|
66
|
+
/** The permission holder type. This must be "Group" or "AccountId". */
|
|
67
|
+
type: "Group" | "AccountId";
|
|
68
|
+
/**
|
|
69
|
+
* The permission holder value. This must be a group name if the type is "Group"
|
|
70
|
+
* or an account ID if the type is "AccountId".
|
|
71
|
+
*/
|
|
72
|
+
value: string;
|
|
73
|
+
}
|
|
74
|
+
/** @category Models */
|
|
75
|
+
export interface CreatePermissionRequest {
|
|
76
|
+
/** The permission holder. */
|
|
77
|
+
holder: CreatePermissionHolderRequest;
|
|
78
|
+
/** The permission type. This must be "View" or "Edit". */
|
|
79
|
+
type: "View" | "Edit";
|
|
80
|
+
}
|
|
81
|
+
/** @category Models */
|
|
82
|
+
export interface CreatePlanRequest {
|
|
83
|
+
/** The cross-project releases to include in the plan. */
|
|
84
|
+
crossProjectReleases?: CreateCrossProjectReleaseRequest[];
|
|
85
|
+
/** The custom fields for the plan. */
|
|
86
|
+
customFields?: CreateCustomFieldRequest[];
|
|
87
|
+
/** The exclusion rules for the plan. */
|
|
88
|
+
exclusionRules?: CreateExclusionRulesRequest;
|
|
89
|
+
/** The issue sources to include in the plan. */
|
|
90
|
+
issueSources: CreateIssueSourceRequest[];
|
|
91
|
+
/** The account ID of the plan lead. */
|
|
92
|
+
leadAccountId?: string;
|
|
93
|
+
/** The plan name. */
|
|
94
|
+
name: string;
|
|
95
|
+
/** The permissions for the plan. */
|
|
96
|
+
permissions?: CreatePermissionRequest[];
|
|
97
|
+
/** The scheduling settings for the plan. */
|
|
98
|
+
scheduling: CreateSchedulingRequest;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The scheduling settings for the plan.
|
|
102
|
+
*
|
|
103
|
+
* @category Models
|
|
104
|
+
*/
|
|
105
|
+
export interface CreateSchedulingRequest {
|
|
106
|
+
/** The dependencies for the plan. This must be "Sequential" or "Concurrent". */
|
|
107
|
+
dependencies?: "Sequential" | "Concurrent";
|
|
108
|
+
/** The end date field for the plan. */
|
|
109
|
+
endDate?: CreateDateFieldRequest;
|
|
110
|
+
/** The estimation unit for the plan. This must be "StoryPoints", "Days" or "Hours". */
|
|
111
|
+
estimation: "StoryPoints" | "Days" | "Hours";
|
|
112
|
+
/**
|
|
113
|
+
* The inferred dates for the plan. This must be "None", "SprintDates" or
|
|
114
|
+
* "ReleaseDates".
|
|
115
|
+
*/
|
|
116
|
+
inferredDates?: "None" | "SprintDates" | "ReleaseDates";
|
|
117
|
+
/** The start date field for the plan. */
|
|
118
|
+
startDate?: CreateDateFieldRequest;
|
|
119
|
+
}
|
|
120
|
+
/** @category Models */
|
|
121
|
+
export interface DuplicatePlanRequest {
|
|
122
|
+
/** The plan name. */
|
|
123
|
+
name: string;
|
|
124
|
+
}
|
|
125
|
+
/** @category Models */
|
|
126
|
+
export interface GetCrossProjectReleaseResponse {
|
|
127
|
+
/** The cross-project release name. */
|
|
128
|
+
name?: string;
|
|
129
|
+
/** The IDs of the releases included in the cross-project release. */
|
|
130
|
+
releaseIds?: number[];
|
|
131
|
+
}
|
|
132
|
+
/** @category Models */
|
|
133
|
+
export interface GetCustomFieldResponse {
|
|
134
|
+
/** The custom field ID. */
|
|
135
|
+
customFieldId: number;
|
|
136
|
+
/** Allows filtering issues based on their values for the custom field. */
|
|
137
|
+
filter?: boolean;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The start date field for the plan.
|
|
141
|
+
*
|
|
142
|
+
* @category Models
|
|
143
|
+
*/
|
|
144
|
+
export interface GetDateFieldResponse {
|
|
145
|
+
/** A date custom field ID. This is returned if the type is "DateCustomField". */
|
|
146
|
+
dateCustomFieldId?: number;
|
|
147
|
+
/**
|
|
148
|
+
* The date field type. This is "DueDate", "TargetStartDate", "TargetEndDate" or
|
|
149
|
+
* "DateCustomField".
|
|
150
|
+
*/
|
|
151
|
+
type: "DueDate" | "TargetStartDate" | "TargetEndDate" | "DateCustomField";
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* The exclusion rules for the plan.
|
|
155
|
+
*
|
|
156
|
+
* @category Models
|
|
157
|
+
*/
|
|
158
|
+
export interface GetExclusionRulesResponse {
|
|
159
|
+
/** The IDs of the issues excluded from the plan. */
|
|
160
|
+
issueIds?: number[];
|
|
161
|
+
/** The IDs of the issue types excluded from the plan. */
|
|
162
|
+
issueTypeIds?: number[];
|
|
163
|
+
/** Issues completed this number of days ago are excluded from the plan. */
|
|
164
|
+
numberOfDaysToShowCompletedIssues: number;
|
|
165
|
+
/** The IDs of the releases excluded from the plan. */
|
|
166
|
+
releaseIds?: number[];
|
|
167
|
+
/** The IDs of the work status categories excluded from the plan. */
|
|
168
|
+
workStatusCategoryIds?: number[];
|
|
169
|
+
/** The IDs of the work statuses excluded from the plan. */
|
|
170
|
+
workStatusIds?: number[];
|
|
171
|
+
}
|
|
172
|
+
/** @category Models */
|
|
173
|
+
export interface GetIssueSourceResponse {
|
|
174
|
+
/** The issue source type. This is "Board", "Project" or "Filter". */
|
|
175
|
+
type: "Board" | "Project" | "Filter" | "Custom";
|
|
176
|
+
/**
|
|
177
|
+
* The issue source value. This is a board ID if the type is "Board", a project ID
|
|
178
|
+
* if the type is "Project" or a filter ID if the type is "Filter".
|
|
179
|
+
*/
|
|
180
|
+
value: number;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* The permission holder.
|
|
184
|
+
*
|
|
185
|
+
* @category Models
|
|
186
|
+
*/
|
|
187
|
+
export interface GetPermissionHolderResponse {
|
|
188
|
+
/** The permission holder type. This is "Group" or "AccountId". */
|
|
189
|
+
type: "Group" | "AccountId";
|
|
190
|
+
/**
|
|
191
|
+
* The permission holder value. This is a group name if the type is "Group" or an
|
|
192
|
+
* account ID if the type is "AccountId".
|
|
193
|
+
*/
|
|
194
|
+
value: string;
|
|
195
|
+
}
|
|
196
|
+
/** @category Models */
|
|
197
|
+
export interface GetPermissionResponse {
|
|
198
|
+
/** The permission holder. */
|
|
199
|
+
holder: GetPermissionHolderResponse;
|
|
200
|
+
/** The permission type. This is "View" or "Edit". */
|
|
201
|
+
type: "View" | "Edit";
|
|
202
|
+
}
|
|
203
|
+
/** @category Models */
|
|
204
|
+
export interface GetPlanResponse {
|
|
205
|
+
/** The cross-project releases included in the plan. */
|
|
206
|
+
crossProjectReleases?: GetCrossProjectReleaseResponse[];
|
|
207
|
+
/** The custom fields for the plan. */
|
|
208
|
+
customFields?: GetCustomFieldResponse[];
|
|
209
|
+
/** The exclusion rules for the plan. */
|
|
210
|
+
exclusionRules?: GetExclusionRulesResponse;
|
|
211
|
+
/** The plan ID. */
|
|
212
|
+
id: number;
|
|
213
|
+
/** The issue sources included in the plan. */
|
|
214
|
+
issueSources?: GetIssueSourceResponse[];
|
|
215
|
+
/** The date when the plan was last saved in UTC. */
|
|
216
|
+
lastSaved?: string;
|
|
217
|
+
/** The account ID of the plan lead. */
|
|
218
|
+
leadAccountId?: string;
|
|
219
|
+
/** The plan name. */
|
|
220
|
+
name?: string;
|
|
221
|
+
/** The permissions for the plan. */
|
|
222
|
+
permissions?: GetPermissionResponse[];
|
|
223
|
+
/** The scheduling settings for the plan. */
|
|
224
|
+
scheduling: GetSchedulingResponse;
|
|
225
|
+
/** The plan status. This is "Active", "Trashed" or "Archived". */
|
|
226
|
+
status: "Active" | "Trashed" | "Archived";
|
|
227
|
+
}
|
|
228
|
+
/** @category Models */
|
|
229
|
+
export interface GetPlanResponseForPage {
|
|
230
|
+
/** The plan ID. */
|
|
231
|
+
id: string;
|
|
232
|
+
/** The issue sources included in the plan. */
|
|
233
|
+
issueSources?: GetIssueSourceResponse[];
|
|
234
|
+
/** The plan name. */
|
|
235
|
+
name: string;
|
|
236
|
+
/** The plan status. This is "Active", "Trashed" or "Archived". */
|
|
237
|
+
status: "Active" | "Trashed" | "Archived";
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* The scheduling settings for the plan.
|
|
241
|
+
*
|
|
242
|
+
* @category Models
|
|
243
|
+
*/
|
|
244
|
+
export interface GetSchedulingResponse {
|
|
245
|
+
/** The dependencies for the plan. This is "Sequential" or "Concurrent". */
|
|
246
|
+
dependencies: "Sequential" | "Concurrent";
|
|
247
|
+
/** The end date field for the plan. */
|
|
248
|
+
endDate: GetDateFieldResponse;
|
|
249
|
+
/** The estimation unit for the plan. This is "StoryPoints", "Days" or "Hours". */
|
|
250
|
+
estimation: "StoryPoints" | "Days" | "Hours";
|
|
251
|
+
/**
|
|
252
|
+
* The inferred dates for the plan. This is "None", "SprintDates" or
|
|
253
|
+
* "ReleaseDates".
|
|
254
|
+
*/
|
|
255
|
+
inferredDates: "None" | "SprintDates" | "ReleaseDates";
|
|
256
|
+
/** The start date field for the plan. */
|
|
257
|
+
startDate: GetDateFieldResponse;
|
|
258
|
+
}
|
|
259
|
+
/** @category Models */
|
|
260
|
+
export interface PageWithCursorGetPlanResponseForPage {
|
|
261
|
+
cursor?: string;
|
|
262
|
+
last?: boolean;
|
|
263
|
+
nextPageCursor?: string;
|
|
264
|
+
size?: number;
|
|
265
|
+
total?: number;
|
|
266
|
+
values?: GetPlanResponseForPage[];
|
|
267
|
+
}
|
|
268
|
+
export declare function registerPlansValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
|
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerPlansValidationSchemas = void 0;
|
|
4
|
+
// DO NOT EDIT!
|
|
5
|
+
// This file is generated by "api-typescript-generator".
|
|
6
|
+
// To update this file run "yarn build:openapi".
|
|
7
|
+
const zod_1 = require("zod");
|
|
8
|
+
function registerPlansValidationSchemas(validationSchemaStorage) {
|
|
9
|
+
validationSchemaStorage.register("CreateCrossProjectReleaseRequest", zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
name: zod_1.z.string(),
|
|
12
|
+
releaseIds: zod_1.z
|
|
13
|
+
.array(zod_1.z.number().int())
|
|
14
|
+
.superRefine((items, ctx) => {
|
|
15
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
16
|
+
items.length) {
|
|
17
|
+
ctx.addIssue({
|
|
18
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
19
|
+
path: [],
|
|
20
|
+
message: "Array items must be unique",
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
.optional(),
|
|
25
|
+
})
|
|
26
|
+
.strict()
|
|
27
|
+
.describe("CreateCrossProjectReleaseRequest"));
|
|
28
|
+
validationSchemaStorage.register("CreateCustomFieldRequest", zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
customFieldId: zod_1.z.number().int(),
|
|
31
|
+
filter: zod_1.z.boolean().optional(),
|
|
32
|
+
})
|
|
33
|
+
.strict()
|
|
34
|
+
.describe("CreateCustomFieldRequest"));
|
|
35
|
+
validationSchemaStorage.register("CreateDateFieldRequest", zod_1.z
|
|
36
|
+
.object({
|
|
37
|
+
dateCustomFieldId: zod_1.z.number().int().optional(),
|
|
38
|
+
type: zod_1.z.enum([
|
|
39
|
+
"DueDate",
|
|
40
|
+
"TargetStartDate",
|
|
41
|
+
"TargetEndDate",
|
|
42
|
+
"DateCustomField",
|
|
43
|
+
]),
|
|
44
|
+
})
|
|
45
|
+
.strict()
|
|
46
|
+
.describe("CreateDateFieldRequest"));
|
|
47
|
+
validationSchemaStorage.register("CreateExclusionRulesRequest", zod_1.z
|
|
48
|
+
.object({
|
|
49
|
+
issueIds: zod_1.z
|
|
50
|
+
.array(zod_1.z.number().int())
|
|
51
|
+
.superRefine((items, ctx) => {
|
|
52
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
53
|
+
items.length) {
|
|
54
|
+
ctx.addIssue({
|
|
55
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
56
|
+
path: [],
|
|
57
|
+
message: "Array items must be unique",
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
.optional(),
|
|
62
|
+
issueTypeIds: zod_1.z
|
|
63
|
+
.array(zod_1.z.number().int())
|
|
64
|
+
.superRefine((items, ctx) => {
|
|
65
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
66
|
+
items.length) {
|
|
67
|
+
ctx.addIssue({
|
|
68
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
69
|
+
path: [],
|
|
70
|
+
message: "Array items must be unique",
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
})
|
|
74
|
+
.optional(),
|
|
75
|
+
numberOfDaysToShowCompletedIssues: zod_1.z.number().int().optional(),
|
|
76
|
+
releaseIds: zod_1.z
|
|
77
|
+
.array(zod_1.z.number().int())
|
|
78
|
+
.superRefine((items, ctx) => {
|
|
79
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
80
|
+
items.length) {
|
|
81
|
+
ctx.addIssue({
|
|
82
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
83
|
+
path: [],
|
|
84
|
+
message: "Array items must be unique",
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
.optional(),
|
|
89
|
+
workStatusCategoryIds: zod_1.z
|
|
90
|
+
.array(zod_1.z.number().int())
|
|
91
|
+
.superRefine((items, ctx) => {
|
|
92
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
93
|
+
items.length) {
|
|
94
|
+
ctx.addIssue({
|
|
95
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
96
|
+
path: [],
|
|
97
|
+
message: "Array items must be unique",
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
})
|
|
101
|
+
.optional(),
|
|
102
|
+
workStatusIds: zod_1.z
|
|
103
|
+
.array(zod_1.z.number().int())
|
|
104
|
+
.superRefine((items, ctx) => {
|
|
105
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
106
|
+
items.length) {
|
|
107
|
+
ctx.addIssue({
|
|
108
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
109
|
+
path: [],
|
|
110
|
+
message: "Array items must be unique",
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
.optional(),
|
|
115
|
+
})
|
|
116
|
+
.strict()
|
|
117
|
+
.describe("CreateExclusionRulesRequest"));
|
|
118
|
+
validationSchemaStorage.register("CreateIssueSourceRequest", zod_1.z
|
|
119
|
+
.object({
|
|
120
|
+
type: zod_1.z.enum(["Board", "Project", "Filter"]),
|
|
121
|
+
value: zod_1.z.number().int(),
|
|
122
|
+
})
|
|
123
|
+
.strict()
|
|
124
|
+
.describe("CreateIssueSourceRequest"));
|
|
125
|
+
validationSchemaStorage.register("CreatePermissionHolderRequest", zod_1.z
|
|
126
|
+
.object({
|
|
127
|
+
type: zod_1.z.enum(["Group", "AccountId"]),
|
|
128
|
+
value: zod_1.z.string(),
|
|
129
|
+
})
|
|
130
|
+
.strict()
|
|
131
|
+
.describe("CreatePermissionHolderRequest"));
|
|
132
|
+
validationSchemaStorage.register("CreatePermissionRequest", zod_1.z
|
|
133
|
+
.object({
|
|
134
|
+
holder: validationSchemaStorage.lazy("CreatePermissionHolderRequest"),
|
|
135
|
+
type: zod_1.z.enum(["View", "Edit"]),
|
|
136
|
+
})
|
|
137
|
+
.strict()
|
|
138
|
+
.describe("CreatePermissionRequest"));
|
|
139
|
+
validationSchemaStorage.register("CreatePlanRequest", zod_1.z
|
|
140
|
+
.object({
|
|
141
|
+
crossProjectReleases: zod_1.z
|
|
142
|
+
.array(validationSchemaStorage.lazy("CreateCrossProjectReleaseRequest"))
|
|
143
|
+
.superRefine((items, ctx) => {
|
|
144
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
145
|
+
items.length) {
|
|
146
|
+
ctx.addIssue({
|
|
147
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
148
|
+
path: [],
|
|
149
|
+
message: "Array items must be unique",
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
})
|
|
153
|
+
.optional(),
|
|
154
|
+
customFields: zod_1.z
|
|
155
|
+
.array(validationSchemaStorage.lazy("CreateCustomFieldRequest"))
|
|
156
|
+
.superRefine((items, ctx) => {
|
|
157
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
158
|
+
items.length) {
|
|
159
|
+
ctx.addIssue({
|
|
160
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
161
|
+
path: [],
|
|
162
|
+
message: "Array items must be unique",
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
})
|
|
166
|
+
.optional(),
|
|
167
|
+
exclusionRules: validationSchemaStorage
|
|
168
|
+
.lazy("CreateExclusionRulesRequest")
|
|
169
|
+
.optional(),
|
|
170
|
+
issueSources: zod_1.z
|
|
171
|
+
.array(validationSchemaStorage.lazy("CreateIssueSourceRequest"))
|
|
172
|
+
.superRefine((items, ctx) => {
|
|
173
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
174
|
+
items.length) {
|
|
175
|
+
ctx.addIssue({
|
|
176
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
177
|
+
path: [],
|
|
178
|
+
message: "Array items must be unique",
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}),
|
|
182
|
+
leadAccountId: zod_1.z.string().optional(),
|
|
183
|
+
name: zod_1.z.string(),
|
|
184
|
+
permissions: zod_1.z
|
|
185
|
+
.array(validationSchemaStorage.lazy("CreatePermissionRequest"))
|
|
186
|
+
.superRefine((items, ctx) => {
|
|
187
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
188
|
+
items.length) {
|
|
189
|
+
ctx.addIssue({
|
|
190
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
191
|
+
path: [],
|
|
192
|
+
message: "Array items must be unique",
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
})
|
|
196
|
+
.optional(),
|
|
197
|
+
scheduling: validationSchemaStorage.lazy("CreateSchedulingRequest"),
|
|
198
|
+
})
|
|
199
|
+
.strict()
|
|
200
|
+
.describe("CreatePlanRequest"));
|
|
201
|
+
validationSchemaStorage.register("CreateSchedulingRequest", zod_1.z
|
|
202
|
+
.object({
|
|
203
|
+
dependencies: zod_1.z.enum(["Sequential", "Concurrent"]).optional(),
|
|
204
|
+
endDate: validationSchemaStorage
|
|
205
|
+
.lazy("CreateDateFieldRequest")
|
|
206
|
+
.optional(),
|
|
207
|
+
estimation: zod_1.z.enum(["StoryPoints", "Days", "Hours"]),
|
|
208
|
+
inferredDates: zod_1.z
|
|
209
|
+
.enum(["None", "SprintDates", "ReleaseDates"])
|
|
210
|
+
.optional(),
|
|
211
|
+
startDate: validationSchemaStorage
|
|
212
|
+
.lazy("CreateDateFieldRequest")
|
|
213
|
+
.optional(),
|
|
214
|
+
})
|
|
215
|
+
.strict()
|
|
216
|
+
.describe("CreateSchedulingRequest"));
|
|
217
|
+
validationSchemaStorage.register("DuplicatePlanRequest", zod_1.z
|
|
218
|
+
.object({
|
|
219
|
+
name: zod_1.z.string(),
|
|
220
|
+
})
|
|
221
|
+
.strict()
|
|
222
|
+
.describe("DuplicatePlanRequest"));
|
|
223
|
+
validationSchemaStorage.register("GetCrossProjectReleaseResponse", zod_1.z
|
|
224
|
+
.object({
|
|
225
|
+
name: zod_1.z.string().optional(),
|
|
226
|
+
releaseIds: zod_1.z
|
|
227
|
+
.array(zod_1.z.number().int())
|
|
228
|
+
.superRefine((items, ctx) => {
|
|
229
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
230
|
+
items.length) {
|
|
231
|
+
ctx.addIssue({
|
|
232
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
233
|
+
path: [],
|
|
234
|
+
message: "Array items must be unique",
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
})
|
|
238
|
+
.optional(),
|
|
239
|
+
})
|
|
240
|
+
.strict()
|
|
241
|
+
.describe("GetCrossProjectReleaseResponse"));
|
|
242
|
+
validationSchemaStorage.register("GetCustomFieldResponse", zod_1.z
|
|
243
|
+
.object({
|
|
244
|
+
customFieldId: zod_1.z.number().int(),
|
|
245
|
+
filter: zod_1.z.boolean().optional(),
|
|
246
|
+
})
|
|
247
|
+
.strict()
|
|
248
|
+
.describe("GetCustomFieldResponse"));
|
|
249
|
+
validationSchemaStorage.register("GetDateFieldResponse", zod_1.z
|
|
250
|
+
.object({
|
|
251
|
+
dateCustomFieldId: zod_1.z.number().int().optional(),
|
|
252
|
+
type: zod_1.z.enum([
|
|
253
|
+
"DueDate",
|
|
254
|
+
"TargetStartDate",
|
|
255
|
+
"TargetEndDate",
|
|
256
|
+
"DateCustomField",
|
|
257
|
+
]),
|
|
258
|
+
})
|
|
259
|
+
.strict()
|
|
260
|
+
.describe("GetDateFieldResponse"));
|
|
261
|
+
validationSchemaStorage.register("GetExclusionRulesResponse", zod_1.z
|
|
262
|
+
.object({
|
|
263
|
+
issueIds: zod_1.z
|
|
264
|
+
.array(zod_1.z.number().int())
|
|
265
|
+
.superRefine((items, ctx) => {
|
|
266
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
267
|
+
items.length) {
|
|
268
|
+
ctx.addIssue({
|
|
269
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
270
|
+
path: [],
|
|
271
|
+
message: "Array items must be unique",
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
})
|
|
275
|
+
.optional(),
|
|
276
|
+
issueTypeIds: zod_1.z
|
|
277
|
+
.array(zod_1.z.number().int())
|
|
278
|
+
.superRefine((items, ctx) => {
|
|
279
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
280
|
+
items.length) {
|
|
281
|
+
ctx.addIssue({
|
|
282
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
283
|
+
path: [],
|
|
284
|
+
message: "Array items must be unique",
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
})
|
|
288
|
+
.optional(),
|
|
289
|
+
numberOfDaysToShowCompletedIssues: zod_1.z.number().int(),
|
|
290
|
+
releaseIds: zod_1.z
|
|
291
|
+
.array(zod_1.z.number().int())
|
|
292
|
+
.superRefine((items, ctx) => {
|
|
293
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
294
|
+
items.length) {
|
|
295
|
+
ctx.addIssue({
|
|
296
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
297
|
+
path: [],
|
|
298
|
+
message: "Array items must be unique",
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
})
|
|
302
|
+
.optional(),
|
|
303
|
+
workStatusCategoryIds: zod_1.z
|
|
304
|
+
.array(zod_1.z.number().int())
|
|
305
|
+
.superRefine((items, ctx) => {
|
|
306
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
307
|
+
items.length) {
|
|
308
|
+
ctx.addIssue({
|
|
309
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
310
|
+
path: [],
|
|
311
|
+
message: "Array items must be unique",
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
})
|
|
315
|
+
.optional(),
|
|
316
|
+
workStatusIds: zod_1.z
|
|
317
|
+
.array(zod_1.z.number().int())
|
|
318
|
+
.superRefine((items, ctx) => {
|
|
319
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
320
|
+
items.length) {
|
|
321
|
+
ctx.addIssue({
|
|
322
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
323
|
+
path: [],
|
|
324
|
+
message: "Array items must be unique",
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
})
|
|
328
|
+
.optional(),
|
|
329
|
+
})
|
|
330
|
+
.strict()
|
|
331
|
+
.describe("GetExclusionRulesResponse"));
|
|
332
|
+
validationSchemaStorage.register("GetIssueSourceResponse", zod_1.z
|
|
333
|
+
.object({
|
|
334
|
+
type: zod_1.z.enum(["Board", "Project", "Filter", "Custom"]),
|
|
335
|
+
value: zod_1.z.number().int(),
|
|
336
|
+
})
|
|
337
|
+
.strict()
|
|
338
|
+
.describe("GetIssueSourceResponse"));
|
|
339
|
+
validationSchemaStorage.register("GetPermissionHolderResponse", zod_1.z
|
|
340
|
+
.object({
|
|
341
|
+
type: zod_1.z.enum(["Group", "AccountId"]),
|
|
342
|
+
value: zod_1.z.string(),
|
|
343
|
+
})
|
|
344
|
+
.strict()
|
|
345
|
+
.describe("GetPermissionHolderResponse"));
|
|
346
|
+
validationSchemaStorage.register("GetPermissionResponse", zod_1.z
|
|
347
|
+
.object({
|
|
348
|
+
holder: validationSchemaStorage.lazy("GetPermissionHolderResponse"),
|
|
349
|
+
type: zod_1.z.enum(["View", "Edit"]),
|
|
350
|
+
})
|
|
351
|
+
.strict()
|
|
352
|
+
.describe("GetPermissionResponse"));
|
|
353
|
+
validationSchemaStorage.register("GetPlanResponse", zod_1.z
|
|
354
|
+
.object({
|
|
355
|
+
crossProjectReleases: zod_1.z
|
|
356
|
+
.array(validationSchemaStorage.lazy("GetCrossProjectReleaseResponse"))
|
|
357
|
+
.optional(),
|
|
358
|
+
customFields: zod_1.z
|
|
359
|
+
.array(validationSchemaStorage.lazy("GetCustomFieldResponse"))
|
|
360
|
+
.optional(),
|
|
361
|
+
exclusionRules: validationSchemaStorage
|
|
362
|
+
.lazy("GetExclusionRulesResponse")
|
|
363
|
+
.optional(),
|
|
364
|
+
id: zod_1.z.number().int(),
|
|
365
|
+
issueSources: zod_1.z
|
|
366
|
+
.array(validationSchemaStorage.lazy("GetIssueSourceResponse"))
|
|
367
|
+
.optional(),
|
|
368
|
+
lastSaved: zod_1.z.string().optional(),
|
|
369
|
+
leadAccountId: zod_1.z.string().optional(),
|
|
370
|
+
name: zod_1.z.string().optional(),
|
|
371
|
+
permissions: zod_1.z
|
|
372
|
+
.array(validationSchemaStorage.lazy("GetPermissionResponse"))
|
|
373
|
+
.optional(),
|
|
374
|
+
scheduling: validationSchemaStorage.lazy("GetSchedulingResponse"),
|
|
375
|
+
status: zod_1.z.enum(["Active", "Trashed", "Archived"]),
|
|
376
|
+
})
|
|
377
|
+
.strict()
|
|
378
|
+
.describe("GetPlanResponse"));
|
|
379
|
+
validationSchemaStorage.register("GetPlanResponseForPage", zod_1.z
|
|
380
|
+
.object({
|
|
381
|
+
id: zod_1.z.string(),
|
|
382
|
+
issueSources: zod_1.z
|
|
383
|
+
.array(validationSchemaStorage.lazy("GetIssueSourceResponse"))
|
|
384
|
+
.superRefine((items, ctx) => {
|
|
385
|
+
if (new Set(items.map((item) => JSON.stringify(item))).size !==
|
|
386
|
+
items.length) {
|
|
387
|
+
ctx.addIssue({
|
|
388
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
389
|
+
path: [],
|
|
390
|
+
message: "Array items must be unique",
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
})
|
|
394
|
+
.optional(),
|
|
395
|
+
name: zod_1.z.string(),
|
|
396
|
+
status: zod_1.z.enum(["Active", "Trashed", "Archived"]),
|
|
397
|
+
})
|
|
398
|
+
.strict()
|
|
399
|
+
.describe("GetPlanResponseForPage"));
|
|
400
|
+
validationSchemaStorage.register("GetSchedulingResponse", zod_1.z
|
|
401
|
+
.object({
|
|
402
|
+
dependencies: zod_1.z.enum(["Sequential", "Concurrent"]),
|
|
403
|
+
endDate: validationSchemaStorage.lazy("GetDateFieldResponse"),
|
|
404
|
+
estimation: zod_1.z.enum(["StoryPoints", "Days", "Hours"]),
|
|
405
|
+
inferredDates: zod_1.z.enum(["None", "SprintDates", "ReleaseDates"]),
|
|
406
|
+
startDate: validationSchemaStorage.lazy("GetDateFieldResponse"),
|
|
407
|
+
})
|
|
408
|
+
.strict()
|
|
409
|
+
.describe("GetSchedulingResponse"));
|
|
410
|
+
validationSchemaStorage.register("PageWithCursorGetPlanResponseForPage", zod_1.z
|
|
411
|
+
.object({
|
|
412
|
+
cursor: zod_1.z.string().optional(),
|
|
413
|
+
last: zod_1.z.boolean().optional(),
|
|
414
|
+
nextPageCursor: zod_1.z.string().optional(),
|
|
415
|
+
size: zod_1.z.number().int().optional(),
|
|
416
|
+
total: zod_1.z.number().int().optional(),
|
|
417
|
+
values: zod_1.z
|
|
418
|
+
.array(validationSchemaStorage.lazy("GetPlanResponseForPage"))
|
|
419
|
+
.optional(),
|
|
420
|
+
})
|
|
421
|
+
.strict()
|
|
422
|
+
.describe("PageWithCursorGetPlanResponseForPage"));
|
|
423
|
+
}
|
|
424
|
+
exports.registerPlansValidationSchemas = registerPlansValidationSchemas;
|
|
425
|
+
//# sourceMappingURL=plans.js.map
|