@gitbeaker/core 38.2.0 → 38.3.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/dist/index.d.ts +8 -7
- package/dist/index.js +15 -8
- package/dist/index.mjs +7 -4
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1913,6 +1913,7 @@ interface DiscussionSchema extends Record<string, unknown> {
|
|
|
1913
1913
|
individual_note: boolean;
|
|
1914
1914
|
notes?: DiscussionNoteSchema[];
|
|
1915
1915
|
}
|
|
1916
|
+
type DiscussionNotePositionOptions = Camelize<DiscussionNotePositionSchema>;
|
|
1916
1917
|
declare class ResourceDiscussions<C extends boolean = false> extends BaseResource<C> {
|
|
1917
1918
|
protected resource2Type: string;
|
|
1918
1919
|
constructor(resourceType: string, resource2Type: string, options: BaseResourceOptions<C>);
|
|
@@ -1921,7 +1922,7 @@ declare class ResourceDiscussions<C extends boolean = false> extends BaseResourc
|
|
|
1921
1922
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionNoteSchema, C, E, void>>;
|
|
1922
1923
|
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(resourceId: string | number, resource2Id: string | number, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema[], C, E, P>>;
|
|
1923
1924
|
create<E extends boolean = false>(resourceId: string | number, resource2Id: string | number, body: string, { position, ...options }?: {
|
|
1924
|
-
position?:
|
|
1925
|
+
position?: DiscussionNotePositionOptions;
|
|
1925
1926
|
commitId?: string;
|
|
1926
1927
|
createdAt?: string;
|
|
1927
1928
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
|
|
@@ -4212,7 +4213,7 @@ interface CommitDiscussions<C extends boolean = false> extends ResourceDiscussio
|
|
|
4212
4213
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionNoteSchema, C, E, void>>;
|
|
4213
4214
|
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(projectId: string | number, commitId: number, options?: PaginationRequestOptions<P> & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema[], C, E, P>>;
|
|
4214
4215
|
create<E extends boolean = false>(projectId: string | number, commitId: number, body: string, options?: {
|
|
4215
|
-
position?:
|
|
4216
|
+
position?: DiscussionNotePositionOptions;
|
|
4216
4217
|
commitId?: string;
|
|
4217
4218
|
createdAt?: string;
|
|
4218
4219
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
|
|
@@ -5196,14 +5197,14 @@ interface MergeRequestDiscussionNoteSchema extends DiscussionNoteSchema {
|
|
|
5196
5197
|
resolved_at: string;
|
|
5197
5198
|
position?: DiscussionNotePositionSchema;
|
|
5198
5199
|
}
|
|
5199
|
-
type
|
|
5200
|
-
|
|
5200
|
+
type MergeRequestDiscussionNotePositionOptions = DiscussionNotePositionOptions & {
|
|
5201
|
+
lineRange?: {
|
|
5201
5202
|
start?: {
|
|
5202
|
-
|
|
5203
|
+
lineCode: string;
|
|
5203
5204
|
type: 'new' | 'old';
|
|
5204
5205
|
};
|
|
5205
5206
|
end?: {
|
|
5206
|
-
|
|
5207
|
+
lineCode: string;
|
|
5207
5208
|
type: 'new' | 'old';
|
|
5208
5209
|
};
|
|
5209
5210
|
};
|
|
@@ -7393,4 +7394,4 @@ declare class Gitlab<C extends boolean = false> extends BaseResource<C> {
|
|
|
7393
7394
|
constructor(options: BaseResourceOptions<C>);
|
|
7394
7395
|
}
|
|
7395
7396
|
|
|
7396
|
-
export { AcceptMergeRequestOptions, Agents, AlertManagement, AllAuditEventOptions, AllCommitsOptions, AllDeploymentsOptions, AllEpicsOptions, AllEventOptions, AllForksOptions, AllGroupProjectsOptions, AllGroupsOptions, AllIssueStatisticsOptions, AllIssuesOptions, AllMergeRequestsOptions, AllPackageOptions, AllPersonalAccessTokenOptions, AllPipelinesOptions, AllProjectsOptions, AllProvisionedUsersOptions, AllRepositoryTreesOptions, AllRunnersOptions, AllSearchOptions, AllUsersOptions, AllowedAgentSchema, ApplicationAppearance, ApplicationAppearanceSchema, ApplicationPlanLimitOptions, ApplicationPlanLimitSchema, ApplicationPlanLimits, ApplicationSchema, ApplicationSettings, ApplicationSettingsSchema, ApplicationStatisticSchema, ApplicationStatistics, Applications, ApprovalRuleSchema, ApprovalStateSchema, ApprovedByEntity, ArchiveType, ArtifactSchema, AsStream, AuditEventSchema, AuditEvents, Avatar, AvatarSchema, BaseExternalStatusCheckSchema, BasePaginationRequestOptions, BaseRequestOptions, BillableGroupMemberMembershipSchema, BillableGroupMemberSchema, BlobSchema, BranchSchema, Branches, BridgeSchema, BroadcastMessageOptions, BroadcastMessageSchema, BroadcastMessages, CICDVariableSchema, Camelize, ClusterAgentSchema, ClusterAgentTokenSchema, CommitAction, CommitCommentSchema, CommitDiffSchema, CommitDiscussionNoteSchema, CommitDiscussionSchema, CommitDiscussions, CommitReferenceSchema, CommitSchema, CommitSignatureSchema, CommitStatusSchema, CommitablePipelineStatus, Commits, Composer, ComposerPackageMetadataSchema, ComposerV1BaseRepositorySchema, ComposerV1PackagesSchema, ComposerV2BaseRepositorySchema, Conan, CondensedCommitCommentSchema, CondensedCommitSchema, CondensedDeployKeySchema, CondensedEnvironmentSchema, CondensedEpicLinkSchema, CondensedGroupSchema, CondensedJobSchema, CondensedMergeRequestSchema, CondensedNamespaceSchema, CondensedPipelineScheduleSchema, CondensedProjectSchema, CondensedRegistryRepositorySchema, CondensedRegistryRepositoryTagSchema, ContainerRegistry, ContextualLintSchema, CreateApprovalRuleOptions, CreateCommitOptions, CreateEpicOptions, CreateFeatureFlagOptions, CreateGeoNodeOptions, CreateGroupOptions, CreateIssueOptions, CreateMergeRequestOptions, CreateProjectOptions, CreateProtectedBranchOptions, CreateRepositoryFileOptions, CreateRunnerOptions, CreateSnippetOptions, CreateSystemHook, CreateUserCIRunnerOptions, CreateUserOptions, CustomSettingLevelEmailEvents, DashboardAnnotationSchema, DashboardAnnotations, Debian, DependencyProxy, DeployKeyProjectsSchema, DeployKeySchema, DeployKeys, DeployTokenSchema, DeployTokenScope, DeployTokens, DeployableSchema, DeploymentApprovalStatusSchema, DeploymentSchema, DeploymentStatus, Deployments, DiffRefsSchema, DiscussionNotePositionOptions, DockerfileTemplates, EditApprovalRuleOptions, EditChangelogOptions, EditConfigurationOptions, EditEpicOptions, EditFeatureFlagOptions, EditGeoNodeOptions, EditGroupOptions, EditIssueOptions, EditMergeRequestOptions, EditNotificationSettingsOptions, EditPipelineStatusOptions, EditProjectOptions, EditProtectedBranchOptions, EditRepositoryFileOptions, EditRunnerOptions, EditSnippetOptions, EditUserOptions, EnvironmentSchema, EnvironmentTier, Environments, EpicAwardEmojis, EpicDiscussions, EpicIssueSchema, EpicIssues, EpicLabelEvents, EpicLinkSchema, EpicLinks, EpicNoteSchema, EpicNotes, EpicSchema, EpicTodoSchema, Epics, ErrorTrackingClientKeySchema, ErrorTrackingClientKeys, ErrorTrackingSettings, ErrorTrackingSettingsSchema, EventSchema, Events, ExpandedCommitSchema, ExpandedDeployKeySchema, ExpandedEpicIssueSchema, ExpandedGroupSchema, ExpandedIssueLinkSchema, ExpandedMergeRequestDiffVersionsSchema, ExpandedMergeRequestSchema, ExpandedPackageSchema, ExpandedPipelineScheduleSchema, ExpandedPipelineSchema, ExpandedProjectSchema, ExpandedRepositoryImportStatusSchema, ExpandedResponse, ExpandedRunnerSchema, ExpandedSnippetSchema, ExpandedUserSchema, ExperimentGateSchema, ExperimentSchema, Experiments, ExportStatusSchema, ExternalStatusCheckProtectedBranchesSchema, ExternalStatusChecks, FailedRelationSchema, FeatureFlagSchema, FeatureFlagStrategySchema, FeatureFlagStrategyScopeSchema, FeatureFlagUserListSchema, FeatureFlagUserLists, FeatureFlags, ForkProjectOptions, FreezePeriodSchema, FreezePeriods, GPGSignatureSchema, GeoNodeFailureSchema, GeoNodeSchema, GeoNodeStatusSchema, GeoNodes, GitLabCIYMLTemplates, GitignoreTemplates, Gitlab, GitlabAPIResponse, GitlabPages, GoProxy, GoProxyModuleVersionSchema, GroupAccessRequests, GroupAccessTokens, GroupActivityAnalytics, GroupAnalyticsIssuesCountSchema, GroupAnalyticsMRsCountSchema, GroupAnalyticsNewMembersCountSchema, GroupBadgeSchema, GroupBadges, GroupCustomAttributes, GroupDORA4Metrics, GroupHookSchema, GroupHooks, GroupImportExports, GroupInvitations, GroupIssueBoards, GroupIterations, GroupLDAPLinks, GroupLabels, GroupMemberRoles, GroupMembers, GroupMilestones, GroupProtectedEnvironments, GroupPushRules, GroupRelationExportStatusSchema, GroupRelationExports, GroupReleases, GroupRepositoryStorageMoveSchema, GroupRepositoryStorageMoves, GroupSAMLIdentities, GroupSCIMIdentities, GroupSchema, GroupStatisticsSchema, GroupVariables, GroupWikis, Groups, GrouptIssueBoardSchema, Helm, IdentitySchema, ImpersonationTokenScope, ImpersonationTokenState, Import, ImportStatusSchema, InstanceLevelCICDVariables, IntegrationSchema, Integrations, IsForm, IssueAwardEmojis, IssueDiscussions, IssueIterationEvents, IssueLabelEvents, IssueLinkSchema, IssueLinks, IssueMilestoneEvents, IssueNoteAwardEmojis, IssueNoteSchema, IssueNotes, IssueSchema, IssueStateEvents, IssueWeightEvents, Issues, IssuesStatistics, JobArtifacts, JobKubernetesAgentsSchema, JobSchema, JobScope, JobVariableAttributeOption, Jobs, KeySchema, Keys, KeysetPagination, KeysetPaginationRequestOptions, License, LicenseSchema, LicenseTemplateSchema, LicenseTemplates, LinkedEpics, Lint, LintSchema, Markdown, MarkdownSchema, Maven, MemberRoleSchema, MergeRequestApprovals, MergeRequestAwardEmojis, MergeRequestContextCommitSchema, MergeRequestContextCommits, MergeRequestDiffSchema, MergeRequestDiffVersionsSchema, MergeRequestDiscussionNoteSchema, MergeRequestDiscussions, MergeRequestDraftNoteSchema, MergeRequestDraftNotes, MergeRequestExternalStatusCheckSchema, MergeRequestLabelEvents, MergeRequestLevelApprovalRuleSchema, MergeRequestLevelMergeRequestApprovalSchema, MergeRequestMilestoneEvents, MergeRequestNoteSchema, MergeRequestNotes, MergeRequestRebaseSchema, MergeRequestSchema, MergeRequestTodoSchema, MergeRequests, MergeTrainSchema, MergeTrains, Metadata, MetadataSchema, MetricImageSchema, MigrationEntityFailure, MigrationEntityOptions, MigrationEntitySchema, MigrationStatus, MigrationStatusSchema, Migrations, MissingSignatureSchema, NPM, NPMPackageMetadataSchema, NPMVersionSchema, NamespaceSchema, Namespaces, NotificationSettingLevel, NotificationSettingSchema, NotificationSettings, NuGet, NuGetPackageIndexSchema, NuGetResourceSchema, NuGetSearchResultSchema, NuGetSearchResultsSchema, NuGetServiceIndexSchema, NuGetServiceMetadataItemSchema, NuGetServiceMetadataSchema, NuGetServiceMetadataVersionSchema, OffsetPagination, OffsetPaginationRequestOptions, OverrodeGroupMemberSchema, PackageFileSchema, PackageMetadata, PackageRegistry, PackageRegistrySchema, PackageSchema, PackageSnapshotSchema, Packages, PagesDomainSchema, PagesDomains, PaginatedResponse, PaginationTypes, PersonalAccessTokenSchema, PersonalAccessTokenScopes, PersonalAccessTokens, PipelineScheduleSchema, PipelineScheduleVariables, PipelineSchedules, PipelineSchema, PipelineStatus, PipelineTestCaseSchema, PipelineTestReportSchema, PipelineTestReportSummarySchema, PipelineTestSuiteSchema, PipelineTriggerTokenSchema, PipelineTriggerTokens, PipelineVariableSchema, Pipelines, ProcessMetricSchema, ProductAnalytics, ProjectAccessRequests, ProjectAccessTokens, ProjectAliasSchema, ProjectAliases, ProjectBadgeSchema, ProjectBadges, ProjectCustomAttributes, ProjectDORA4Metrics, ProjectExternalStatusCheckSchema, ProjectFileUploadSchema, ProjectHookSchema, ProjectHooks, ProjectImportExport, ProjectInvitations, ProjectIssueBoardSchema, ProjectIssueBoards, ProjectIterations, ProjectLabels, ProjectLevelApprovalRuleSchema, ProjectLevelMergeRequestApprovalSchema, ProjectMembers, ProjectMilestones, ProjectProtectedEnvironments, ProjectPushRules, ProjectRelationsExport, ProjectReleases, ProjectRemoteMirrorSchema, ProjectRemoteMirrors, ProjectRepositoryStorageMoveSchema, ProjectRepositoryStorageMoves, ProjectSchema, ProjectSnippetAwardEmojis, ProjectSnippetDiscussions, ProjectSnippetNotes, ProjectSnippets, ProjectStarrerSchema, ProjectStatisticSchema, ProjectStatistics, ProjectStatisticsSchema, ProjectStoragePath, ProjectTemplateSchema, ProjectTemplateType, ProjectTemplates, ProjectVariableSchema, ProjectVariables, ProjectVulnerabilities, ProjectVulnerabilitySchema, ProjectWikis, Projects, ProtectedBranchAccessLevel, ProtectedBranchSchema, ProtectedBranches, ProtectedTagAccessLevel, ProtectedTagAccessLevelEntity, ProtectedTagAccessLevelSummarySchema, ProtectedTagSchema, ProtectedTags, PyPI, RecipeSnapshotSchema, ReferenceSchema, RegistryRepositorySchema, RegistryRepositoryTagSchema, RelatedEpicLinkSchema, RelatedEpicLinkType, RelatedEpicSchema, RelationsExportStatusSchema, ReleaseAssetLink, ReleaseAssetSource, ReleaseEvidence, ReleaseLinkSchema, ReleaseLinks, ReleaseSchema, RemoveRepositoryFileOptions, RemoveSidekiqQueueOptions, Repositories, RepositoryBlobSchema, RepositoryChangelogSchema, RepositoryCompareSchema, RepositoryContributorSchema, RepositoryFileBlameSchema, RepositoryFileExpandedSchema, RepositoryFileSchema, RepositoryFiles, RepositoryImportStatusSchema, RepositorySubmoduleSchema, RepositorySubmodules, RepositoryTreeSchema, ResourceGroupSchema, ResourceGroups, ReviewAppSchema, RubyGems, RunnerSchema, RunnerToken, Runners, Search, SearchScopes, SecureFileSchema, SecureFiles, ServiceData, ShowChangelogOptions, ShowExpanded, SidekickCompoundMetricsSchema, SidekickJobStatsSchema, SidekickProcessMetricsSchema, SidekickQueueMetricsSchema, SidekiqMetrics, SidekiqQueueStatus, SidekiqQueues, SimpleGroupSchema, SimpleProjectSchema, SimpleSnippetSchema, SnippetNoteSchema, SnippetRepositoryStorageMoveSchema, SnippetRepositoryStorageMoves, SnippetSchema, SnippetVisibility, Snippets, StarredDashboardSchema, StatisticsSchema, Sudo, SuggestionSchema, Suggestions, SupportedIntegration, SystemHookTestResponse, SystemHooks, TagSchema, TagSignatureSchema, Tags, TaskCompletionStatusSchema, TimeStatsSchema, TodoAction, TodoLists, TodoSchema, TodoState, TodoType, TopicSchema, Topics, UserActivitySchema, UserAgentDetailSchema, UserAssociationCountSchema, UserCountSchema, UserCustomAttributes, UserEmailSchema, UserEmails, UserGPGKeySchema, UserGPGKeys, UserImpersonationTokenSchema, UserImpersonationTokens, UserMembershipSchema, UserPreferenceSchema, UserRunnerSchema, UserSSHKeySchema, UserSSHKeys, UserSchema, UserStarredMetricsDashboard, UserStatusSchema, Users, X509SignatureSchema };
|
|
7397
|
+
export { AcceptMergeRequestOptions, Agents, AlertManagement, AllAuditEventOptions, AllCommitsOptions, AllDeploymentsOptions, AllEpicsOptions, AllEventOptions, AllForksOptions, AllGroupProjectsOptions, AllGroupsOptions, AllIssueStatisticsOptions, AllIssuesOptions, AllMergeRequestsOptions, AllPackageOptions, AllPersonalAccessTokenOptions, AllPipelinesOptions, AllProjectsOptions, AllProvisionedUsersOptions, AllRepositoryTreesOptions, AllRunnersOptions, AllSearchOptions, AllUsersOptions, AllowedAgentSchema, ApplicationAppearance, ApplicationAppearanceSchema, ApplicationPlanLimitOptions, ApplicationPlanLimitSchema, ApplicationPlanLimits, ApplicationSchema, ApplicationSettings, ApplicationSettingsSchema, ApplicationStatisticSchema, ApplicationStatistics, Applications, ApprovalRuleSchema, ApprovalStateSchema, ApprovedByEntity, ArchiveType, ArtifactSchema, AsStream, AuditEventSchema, AuditEvents, Avatar, AvatarSchema, BaseExternalStatusCheckSchema, BasePaginationRequestOptions, BaseRequestOptions, BillableGroupMemberMembershipSchema, BillableGroupMemberSchema, BlobSchema, BranchSchema, Branches, BridgeSchema, BroadcastMessageOptions, BroadcastMessageSchema, BroadcastMessages, CICDVariableSchema, Camelize, ClusterAgentSchema, ClusterAgentTokenSchema, CommitAction, CommitCommentSchema, CommitDiffSchema, CommitDiscussionNoteSchema, CommitDiscussionSchema, CommitDiscussions, CommitReferenceSchema, CommitSchema, CommitSignatureSchema, CommitStatusSchema, CommitablePipelineStatus, Commits, Composer, ComposerPackageMetadataSchema, ComposerV1BaseRepositorySchema, ComposerV1PackagesSchema, ComposerV2BaseRepositorySchema, Conan, CondensedCommitCommentSchema, CondensedCommitSchema, CondensedDeployKeySchema, CondensedEnvironmentSchema, CondensedEpicLinkSchema, CondensedGroupSchema, CondensedJobSchema, CondensedMergeRequestSchema, CondensedNamespaceSchema, CondensedPipelineScheduleSchema, CondensedProjectSchema, CondensedRegistryRepositorySchema, CondensedRegistryRepositoryTagSchema, ContainerRegistry, ContextualLintSchema, CreateApprovalRuleOptions, CreateCommitOptions, CreateEpicOptions, CreateFeatureFlagOptions, CreateGeoNodeOptions, CreateGroupOptions, CreateIssueOptions, CreateMergeRequestOptions, CreateProjectOptions, CreateProtectedBranchOptions, CreateRepositoryFileOptions, CreateRunnerOptions, CreateSnippetOptions, CreateSystemHook, CreateUserCIRunnerOptions, CreateUserOptions, CustomSettingLevelEmailEvents, DashboardAnnotationSchema, DashboardAnnotations, Debian, DependencyProxy, DeployKeyProjectsSchema, DeployKeySchema, DeployKeys, DeployTokenSchema, DeployTokenScope, DeployTokens, DeployableSchema, DeploymentApprovalStatusSchema, DeploymentSchema, DeploymentStatus, Deployments, DiffRefsSchema, DockerfileTemplates, EditApprovalRuleOptions, EditChangelogOptions, EditConfigurationOptions, EditEpicOptions, EditFeatureFlagOptions, EditGeoNodeOptions, EditGroupOptions, EditIssueOptions, EditMergeRequestOptions, EditNotificationSettingsOptions, EditPipelineStatusOptions, EditProjectOptions, EditProtectedBranchOptions, EditRepositoryFileOptions, EditRunnerOptions, EditSnippetOptions, EditUserOptions, EnvironmentSchema, EnvironmentTier, Environments, EpicAwardEmojis, EpicDiscussions, EpicIssueSchema, EpicIssues, EpicLabelEvents, EpicLinkSchema, EpicLinks, EpicNoteSchema, EpicNotes, EpicSchema, EpicTodoSchema, Epics, ErrorTrackingClientKeySchema, ErrorTrackingClientKeys, ErrorTrackingSettings, ErrorTrackingSettingsSchema, EventSchema, Events, ExpandedCommitSchema, ExpandedDeployKeySchema, ExpandedEpicIssueSchema, ExpandedGroupSchema, ExpandedIssueLinkSchema, ExpandedMergeRequestDiffVersionsSchema, ExpandedMergeRequestSchema, ExpandedPackageSchema, ExpandedPipelineScheduleSchema, ExpandedPipelineSchema, ExpandedProjectSchema, ExpandedRepositoryImportStatusSchema, ExpandedResponse, ExpandedRunnerSchema, ExpandedSnippetSchema, ExpandedUserSchema, ExperimentGateSchema, ExperimentSchema, Experiments, ExportStatusSchema, ExternalStatusCheckProtectedBranchesSchema, ExternalStatusChecks, FailedRelationSchema, FeatureFlagSchema, FeatureFlagStrategySchema, FeatureFlagStrategyScopeSchema, FeatureFlagUserListSchema, FeatureFlagUserLists, FeatureFlags, ForkProjectOptions, FreezePeriodSchema, FreezePeriods, GPGSignatureSchema, GeoNodeFailureSchema, GeoNodeSchema, GeoNodeStatusSchema, GeoNodes, GitLabCIYMLTemplates, GitignoreTemplates, Gitlab, GitlabAPIResponse, GitlabPages, GoProxy, GoProxyModuleVersionSchema, GroupAccessRequests, GroupAccessTokens, GroupActivityAnalytics, GroupAnalyticsIssuesCountSchema, GroupAnalyticsMRsCountSchema, GroupAnalyticsNewMembersCountSchema, GroupBadgeSchema, GroupBadges, GroupCustomAttributes, GroupDORA4Metrics, GroupHookSchema, GroupHooks, GroupImportExports, GroupInvitations, GroupIssueBoards, GroupIterations, GroupLDAPLinks, GroupLabels, GroupMemberRoles, GroupMembers, GroupMilestones, GroupProtectedEnvironments, GroupPushRules, GroupRelationExportStatusSchema, GroupRelationExports, GroupReleases, GroupRepositoryStorageMoveSchema, GroupRepositoryStorageMoves, GroupSAMLIdentities, GroupSCIMIdentities, GroupSchema, GroupStatisticsSchema, GroupVariables, GroupWikis, Groups, GrouptIssueBoardSchema, Helm, IdentitySchema, ImpersonationTokenScope, ImpersonationTokenState, Import, ImportStatusSchema, InstanceLevelCICDVariables, IntegrationSchema, Integrations, IsForm, IssueAwardEmojis, IssueDiscussions, IssueIterationEvents, IssueLabelEvents, IssueLinkSchema, IssueLinks, IssueMilestoneEvents, IssueNoteAwardEmojis, IssueNoteSchema, IssueNotes, IssueSchema, IssueStateEvents, IssueWeightEvents, Issues, IssuesStatistics, JobArtifacts, JobKubernetesAgentsSchema, JobSchema, JobScope, JobVariableAttributeOption, Jobs, KeySchema, Keys, KeysetPagination, KeysetPaginationRequestOptions, License, LicenseSchema, LicenseTemplateSchema, LicenseTemplates, LinkedEpics, Lint, LintSchema, Markdown, MarkdownSchema, Maven, MemberRoleSchema, MergeRequestApprovals, MergeRequestAwardEmojis, MergeRequestContextCommitSchema, MergeRequestContextCommits, MergeRequestDiffSchema, MergeRequestDiffVersionsSchema, MergeRequestDiscussionNotePositionOptions, MergeRequestDiscussionNoteSchema, MergeRequestDiscussions, MergeRequestDraftNoteSchema, MergeRequestDraftNotes, MergeRequestExternalStatusCheckSchema, MergeRequestLabelEvents, MergeRequestLevelApprovalRuleSchema, MergeRequestLevelMergeRequestApprovalSchema, MergeRequestMilestoneEvents, MergeRequestNoteSchema, MergeRequestNotes, MergeRequestRebaseSchema, MergeRequestSchema, MergeRequestTodoSchema, MergeRequests, MergeTrainSchema, MergeTrains, Metadata, MetadataSchema, MetricImageSchema, MigrationEntityFailure, MigrationEntityOptions, MigrationEntitySchema, MigrationStatus, MigrationStatusSchema, Migrations, MissingSignatureSchema, NPM, NPMPackageMetadataSchema, NPMVersionSchema, NamespaceSchema, Namespaces, NotificationSettingLevel, NotificationSettingSchema, NotificationSettings, NuGet, NuGetPackageIndexSchema, NuGetResourceSchema, NuGetSearchResultSchema, NuGetSearchResultsSchema, NuGetServiceIndexSchema, NuGetServiceMetadataItemSchema, NuGetServiceMetadataSchema, NuGetServiceMetadataVersionSchema, OffsetPagination, OffsetPaginationRequestOptions, OverrodeGroupMemberSchema, PackageFileSchema, PackageMetadata, PackageRegistry, PackageRegistrySchema, PackageSchema, PackageSnapshotSchema, Packages, PagesDomainSchema, PagesDomains, PaginatedResponse, PaginationTypes, PersonalAccessTokenSchema, PersonalAccessTokenScopes, PersonalAccessTokens, PipelineScheduleSchema, PipelineScheduleVariables, PipelineSchedules, PipelineSchema, PipelineStatus, PipelineTestCaseSchema, PipelineTestReportSchema, PipelineTestReportSummarySchema, PipelineTestSuiteSchema, PipelineTriggerTokenSchema, PipelineTriggerTokens, PipelineVariableSchema, Pipelines, ProcessMetricSchema, ProductAnalytics, ProjectAccessRequests, ProjectAccessTokens, ProjectAliasSchema, ProjectAliases, ProjectBadgeSchema, ProjectBadges, ProjectCustomAttributes, ProjectDORA4Metrics, ProjectExternalStatusCheckSchema, ProjectFileUploadSchema, ProjectHookSchema, ProjectHooks, ProjectImportExport, ProjectInvitations, ProjectIssueBoardSchema, ProjectIssueBoards, ProjectIterations, ProjectLabels, ProjectLevelApprovalRuleSchema, ProjectLevelMergeRequestApprovalSchema, ProjectMembers, ProjectMilestones, ProjectProtectedEnvironments, ProjectPushRules, ProjectRelationsExport, ProjectReleases, ProjectRemoteMirrorSchema, ProjectRemoteMirrors, ProjectRepositoryStorageMoveSchema, ProjectRepositoryStorageMoves, ProjectSchema, ProjectSnippetAwardEmojis, ProjectSnippetDiscussions, ProjectSnippetNotes, ProjectSnippets, ProjectStarrerSchema, ProjectStatisticSchema, ProjectStatistics, ProjectStatisticsSchema, ProjectStoragePath, ProjectTemplateSchema, ProjectTemplateType, ProjectTemplates, ProjectVariableSchema, ProjectVariables, ProjectVulnerabilities, ProjectVulnerabilitySchema, ProjectWikis, Projects, ProtectedBranchAccessLevel, ProtectedBranchSchema, ProtectedBranches, ProtectedTagAccessLevel, ProtectedTagAccessLevelEntity, ProtectedTagAccessLevelSummarySchema, ProtectedTagSchema, ProtectedTags, PyPI, RecipeSnapshotSchema, ReferenceSchema, RegistryRepositorySchema, RegistryRepositoryTagSchema, RelatedEpicLinkSchema, RelatedEpicLinkType, RelatedEpicSchema, RelationsExportStatusSchema, ReleaseAssetLink, ReleaseAssetSource, ReleaseEvidence, ReleaseLinkSchema, ReleaseLinks, ReleaseSchema, RemoveRepositoryFileOptions, RemoveSidekiqQueueOptions, Repositories, RepositoryBlobSchema, RepositoryChangelogSchema, RepositoryCompareSchema, RepositoryContributorSchema, RepositoryFileBlameSchema, RepositoryFileExpandedSchema, RepositoryFileSchema, RepositoryFiles, RepositoryImportStatusSchema, RepositorySubmoduleSchema, RepositorySubmodules, RepositoryTreeSchema, ResourceGroupSchema, ResourceGroups, ReviewAppSchema, RubyGems, RunnerSchema, RunnerToken, Runners, Search, SearchScopes, SecureFileSchema, SecureFiles, ServiceData, ShowChangelogOptions, ShowExpanded, SidekickCompoundMetricsSchema, SidekickJobStatsSchema, SidekickProcessMetricsSchema, SidekickQueueMetricsSchema, SidekiqMetrics, SidekiqQueueStatus, SidekiqQueues, SimpleGroupSchema, SimpleProjectSchema, SimpleSnippetSchema, SnippetNoteSchema, SnippetRepositoryStorageMoveSchema, SnippetRepositoryStorageMoves, SnippetSchema, SnippetVisibility, Snippets, StarredDashboardSchema, StatisticsSchema, Sudo, SuggestionSchema, Suggestions, SupportedIntegration, SystemHookTestResponse, SystemHooks, TagSchema, TagSignatureSchema, Tags, TaskCompletionStatusSchema, TimeStatsSchema, TodoAction, TodoLists, TodoSchema, TodoState, TodoType, TopicSchema, Topics, UserActivitySchema, UserAgentDetailSchema, UserAssociationCountSchema, UserCountSchema, UserCustomAttributes, UserEmailSchema, UserEmails, UserGPGKeySchema, UserGPGKeys, UserImpersonationTokenSchema, UserImpersonationTokens, UserMembershipSchema, UserPreferenceSchema, UserRunnerSchema, UserSSHKeySchema, UserSSHKeys, UserSchema, UserStarredMetricsDashboard, UserStatusSchema, Users, X509SignatureSchema };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var requesterUtils = require('@gitbeaker/requester-utils');
|
|
4
|
-
var
|
|
4
|
+
var QS = require('qs');
|
|
5
5
|
var xcase = require('xcase');
|
|
6
6
|
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var QS__default = /*#__PURE__*/_interopDefault(QS);
|
|
10
|
+
|
|
7
11
|
// src/resources/Agents.ts
|
|
8
12
|
|
|
9
13
|
// src/infrastructure/Utils.ts
|
|
@@ -60,16 +64,16 @@ async function getManyMore(camelize, getFn, endpoint2, response, requestOptions,
|
|
|
60
64
|
const withinBounds = maxPages && perPage ? newAcc.length / +perPage < maxPages : true;
|
|
61
65
|
const { next = "" } = parseLinkHeader(response.headers.link);
|
|
62
66
|
if (!(page && (acc || []).length === 0) && next && withinBounds) {
|
|
63
|
-
const parsedQueryString =
|
|
64
|
-
const qs
|
|
67
|
+
const parsedQueryString = QS.parse(next.split("?")[1]);
|
|
68
|
+
const qs = { ...xcase.camelizeKeys(parsedQueryString) };
|
|
65
69
|
const newOpts = {
|
|
66
|
-
...qs
|
|
70
|
+
...qs,
|
|
67
71
|
maxPages,
|
|
68
72
|
sudo,
|
|
69
73
|
showExpanded
|
|
70
74
|
};
|
|
71
75
|
const nextResponse = await getFn(endpoint2, {
|
|
72
|
-
searchParams: qs
|
|
76
|
+
searchParams: qs,
|
|
73
77
|
sudo
|
|
74
78
|
});
|
|
75
79
|
return getManyMore(camelize, getFn, endpoint2, nextResponse, newOpts, newAcc);
|
|
@@ -1160,11 +1164,14 @@ var ResourceDiscussions = class extends requesterUtils.BaseResource {
|
|
|
1160
1164
|
const opts = { ...options };
|
|
1161
1165
|
if (position) {
|
|
1162
1166
|
const p = xcase.decamelizeKeys(position);
|
|
1167
|
+
const pos = QS__default.default.stringify({ position: p }, { encode: false }).split("&").reduce((acc, cur) => {
|
|
1168
|
+
const [key, val] = cur.split("=");
|
|
1169
|
+
acc[key] = val;
|
|
1170
|
+
return acc;
|
|
1171
|
+
}, {});
|
|
1172
|
+
Object.assign(opts, pos);
|
|
1163
1173
|
opts.isForm = true;
|
|
1164
1174
|
opts.body = body;
|
|
1165
|
-
Object.entries(p).forEach(([k, v]) => {
|
|
1166
|
-
opts[`position[${k}]`] = v;
|
|
1167
|
-
});
|
|
1168
1175
|
} else {
|
|
1169
1176
|
opts.searchParams = { body };
|
|
1170
1177
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseResource } from '@gitbeaker/requester-utils';
|
|
2
|
-
import { parse } from 'qs';
|
|
2
|
+
import QS, { parse } from 'qs';
|
|
3
3
|
import { decamelizeKeys, camelizeKeys } from 'xcase';
|
|
4
4
|
|
|
5
5
|
// src/resources/Agents.ts
|
|
@@ -1158,11 +1158,14 @@ var ResourceDiscussions = class extends BaseResource {
|
|
|
1158
1158
|
const opts = { ...options };
|
|
1159
1159
|
if (position) {
|
|
1160
1160
|
const p = decamelizeKeys(position);
|
|
1161
|
+
const pos = QS.stringify({ position: p }, { encode: false }).split("&").reduce((acc, cur) => {
|
|
1162
|
+
const [key, val] = cur.split("=");
|
|
1163
|
+
acc[key] = val;
|
|
1164
|
+
return acc;
|
|
1165
|
+
}, {});
|
|
1166
|
+
Object.assign(opts, pos);
|
|
1161
1167
|
opts.isForm = true;
|
|
1162
1168
|
opts.body = body;
|
|
1163
|
-
Object.entries(p).forEach(([k, v]) => {
|
|
1164
|
-
opts[`position[${k}]`] = v;
|
|
1165
|
-
});
|
|
1166
1169
|
} else {
|
|
1167
1170
|
opts.searchParams = { body };
|
|
1168
1171
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/core",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.3.0",
|
|
4
4
|
"description": "Core API implementation of the GitLab API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
"release": "auto shipit"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@gitbeaker/requester-utils": "^38.
|
|
58
|
+
"@gitbeaker/requester-utils": "^38.3.0",
|
|
59
59
|
"qs": "^6.11.1",
|
|
60
60
|
"xcase": "^2.0.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/node": "^
|
|
63
|
+
"@types/node": "^20.0.0",
|
|
64
64
|
"get-param-names": "github:jdalrymple/get-param-names#1-improve-functionality",
|
|
65
65
|
"tsup": "^6.7.0",
|
|
66
66
|
"tsx": "^3.12.6",
|
|
67
67
|
"typescript": "^5.0.4"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "81fb16c89d0909431c828a219dae199458ea0b3f"
|
|
70
70
|
}
|