@gitbeaker/core 38.2.0 → 38.4.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 +1 -0
- package/dist/index.d.ts +24 -9
- package/dist/index.js +23 -13
- package/dist/index.mjs +15 -9
- package/dist/map.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -220,6 +220,7 @@ import { Gitlab } from '@gitbeaker/core';
|
|
|
220
220
|
<td align="center" valign="top" width="3.84%"><a href="https://github.com/claudio-vellage"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/28930612?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Claudio Vellage"/></td>
|
|
221
221
|
<td align="center" valign="top" width="3.84%"><a href="https://github.com/seb0uil"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/5122626?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Seb0uil"/></td>
|
|
222
222
|
<td align="center" valign="top" width="3.84%"><a href="http://merorafael.info/"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/3404989?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Rafael Mello"/></td>
|
|
223
|
+
<td align="center" valign="top" width="3.84%"><a href="https://github.com/tbazin"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/9104039?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Théis Bazin"/></td>
|
|
223
224
|
</tr>
|
|
224
225
|
</p>
|
|
225
226
|
|
package/dist/index.d.ts
CHANGED
|
@@ -307,7 +307,7 @@ type CreateUserOptions = {
|
|
|
307
307
|
admin?: boolean;
|
|
308
308
|
auditor?: boolean;
|
|
309
309
|
avatar?: {
|
|
310
|
-
|
|
310
|
+
content: Blob;
|
|
311
311
|
filepath?: string;
|
|
312
312
|
};
|
|
313
313
|
bio?: string;
|
|
@@ -1028,7 +1028,7 @@ declare class Projects<C extends boolean = false> extends BaseResource<C> {
|
|
|
1028
1028
|
unarchive<E extends boolean = false>(projectId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedProjectSchema, C, E, void>>;
|
|
1029
1029
|
unshare<E extends boolean = false>(projectId: string | number, groupId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<void, C, E, void>>;
|
|
1030
1030
|
unstar<E extends boolean = false>(projectId: string | number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ExpandedProjectSchema, C, E, void>>;
|
|
1031
|
-
|
|
1031
|
+
uploadForReference<E extends boolean = false>(projectId: string | number, file: {
|
|
1032
1032
|
content: Blob;
|
|
1033
1033
|
filename: string;
|
|
1034
1034
|
}, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<ProjectFileUploadSchema, C, E, void>>;
|
|
@@ -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>>;
|
|
@@ -3249,6 +3250,20 @@ declare class ResourceStateEvents<C extends boolean = false> extends BaseResourc
|
|
|
3249
3250
|
show<E extends boolean = false>(resourceId: string | number, resource2Id: string | number, stateEventId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<StateEventSchema, C, E, void>>;
|
|
3250
3251
|
}
|
|
3251
3252
|
|
|
3253
|
+
interface WeightEventSchema extends Record<string, unknown> {
|
|
3254
|
+
id: number;
|
|
3255
|
+
user: Omit<UserSchema, 'created_at'>;
|
|
3256
|
+
created_at: string;
|
|
3257
|
+
issue_id: number;
|
|
3258
|
+
weight: number;
|
|
3259
|
+
}
|
|
3260
|
+
declare class ResourceWeightEvents<C extends boolean = false> extends BaseResource<C> {
|
|
3261
|
+
protected resource2Type: string;
|
|
3262
|
+
constructor(resourceType: string, resource2Type: string, options: BaseResourceOptions<C>);
|
|
3263
|
+
all<E extends boolean = false, P extends PaginationTypes = 'offset'>(resourceId: string | number, resource2Id: string | number, options?: Sudo & ShowExpanded<E> & PaginationRequestOptions<P>): Promise<GitlabAPIResponse<WeightEventSchema[], C, E, P>>;
|
|
3264
|
+
show<E extends boolean = false>(resourceId: string | number, resource2Id: string | number, weightEventId: number, options?: Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<WeightEventSchema, C, E, void>>;
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3252
3267
|
declare class DockerfileTemplates<C extends boolean = false> extends ResourceTemplates<C> {
|
|
3253
3268
|
constructor(options: BaseResourceOptions<C>);
|
|
3254
3269
|
}
|
|
@@ -4212,7 +4227,7 @@ interface CommitDiscussions<C extends boolean = false> extends ResourceDiscussio
|
|
|
4212
4227
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionNoteSchema, C, E, void>>;
|
|
4213
4228
|
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
4229
|
create<E extends boolean = false>(projectId: string | number, commitId: number, body: string, options?: {
|
|
4215
|
-
position?:
|
|
4230
|
+
position?: DiscussionNotePositionOptions;
|
|
4216
4231
|
commitId?: string;
|
|
4217
4232
|
createdAt?: string;
|
|
4218
4233
|
} & Sudo & ShowExpanded<E>): Promise<GitlabAPIResponse<DiscussionSchema, C, E, void>>;
|
|
@@ -5196,14 +5211,14 @@ interface MergeRequestDiscussionNoteSchema extends DiscussionNoteSchema {
|
|
|
5196
5211
|
resolved_at: string;
|
|
5197
5212
|
position?: DiscussionNotePositionSchema;
|
|
5198
5213
|
}
|
|
5199
|
-
type
|
|
5200
|
-
|
|
5214
|
+
type MergeRequestDiscussionNotePositionOptions = DiscussionNotePositionOptions & {
|
|
5215
|
+
lineRange?: {
|
|
5201
5216
|
start?: {
|
|
5202
|
-
|
|
5217
|
+
lineCode: string;
|
|
5203
5218
|
type: 'new' | 'old';
|
|
5204
5219
|
};
|
|
5205
5220
|
end?: {
|
|
5206
|
-
|
|
5221
|
+
lineCode: string;
|
|
5207
5222
|
type: 'new' | 'old';
|
|
5208
5223
|
};
|
|
5209
5224
|
};
|
|
@@ -7393,4 +7408,4 @@ declare class Gitlab<C extends boolean = false> extends BaseResource<C> {
|
|
|
7393
7408
|
constructor(options: BaseResourceOptions<C>);
|
|
7394
7409
|
}
|
|
7395
7410
|
|
|
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 };
|
|
7411
|
+
export { AcceptMergeRequestOptions, AccessLevel, AccessRequestSchema, AccessTokenSchema, AccessTokenScopes, AddMemeberOptions, AddResourceHookOptions, Agents, AlertManagement, AllAuditEventOptions, AllCommitsOptions, AllDeploymentsOptions, AllEpicsOptions, AllEventOptions, AllForksOptions, AllGroupProjectsOptions, AllGroupsOptions, AllIssueStatisticsOptions, AllIssuesOptions, AllIterationsOptions, AllMembersOptions, AllMergeRequestsOptions, AllMilestonesOptions, 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, AwardEmojiSchema, BadgeSchema, BaseExternalStatusCheckSchema, BasePaginationRequestOptions, BaseRequestOptions, BillableGroupMemberMembershipSchema, BillableGroupMemberSchema, BlobSchema, BranchSchema, Branches, BridgeSchema, BroadcastMessageOptions, BroadcastMessageSchema, BroadcastMessages, BurndownChartEventSchema, CICDVariableSchema, Camelize, ClusterAgentSchema, ClusterAgentTokenSchema, CommitAction, CommitCommentSchema, CommitDiffSchema, CommitDiscussionNoteSchema, CommitDiscussionSchema, CommitDiscussions, CommitReferenceSchema, CommitSchema, CommitSignatureSchema, CommitStatusSchema, CommitablePipelineStatus, Commits, Composer, ComposerPackageMetadataSchema, ComposerV1BaseRepositorySchema, ComposerV1PackagesSchema, ComposerV2BaseRepositorySchema, Conan, CondensedBadgeSchema, CondensedCommitCommentSchema, CondensedCommitSchema, CondensedDeployKeySchema, CondensedEnvironmentSchema, CondensedEpicLinkSchema, CondensedGroupSchema, CondensedJobSchema, CondensedMemberSchema, CondensedMergeRequestSchema, CondensedNamespaceSchema, CondensedPipelineScheduleSchema, CondensedProjectSchema, CondensedRegistryRepositorySchema, CondensedRegistryRepositoryTagSchema, ContainerRegistry, ContextualLintSchema, CreateAndEditPushRuleOptions, CreateApprovalRuleOptions, CreateCommitOptions, CreateEpicOptions, CreateFeatureFlagOptions, CreateGeoNodeOptions, CreateGroupOptions, CreateIssueOptions, CreateMergeRequestOptions, CreateProjectOptions, CreateProtectedBranchOptions, CreateRepositoryFileOptions, CreateRunnerOptions, CreateSnippetOptions, CreateSystemHook, CreateUserCIRunnerOptions, CreateUserOptions, CustomAttributeSchema, CustomSettingLevelEmailEvents, DORA4MetricSchema, DashboardAnnotationSchema, DashboardAnnotations, Debian, DependencyProxy, DeployKeyProjectsSchema, DeployKeySchema, DeployKeys, DeployTokenSchema, DeployTokenScope, DeployTokens, DeployableSchema, DeploymentApprovalStatusSchema, DeploymentSchema, DeploymentStatus, Deployments, DiffRefsSchema, DiscussionNotePositionBaseSchema, DiscussionNotePositionImageSchema, DiscussionNotePositionOptions, DiscussionNotePositionSchema, DiscussionNotePositionTextSchema, DiscussionNoteSchema, DiscussionSchema, DockerfileTemplates, EditApprovalRuleOptions, EditBadgeOptions, EditChangelogOptions, EditConfigurationOptions, EditEpicOptions, EditFeatureFlagOptions, EditGeoNodeOptions, EditGroupOptions, EditIssueOptions, EditMergeRequestOptions, EditNotificationSettingsOptions, EditPipelineStatusOptions, EditProjectOptions, EditProtectedBranchOptions, EditRepositoryFileOptions, EditResourceHookOptions, 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, ExpandedHookSchema, 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, HookSchema, IdentitySchema, ImpersonationTokenScope, ImpersonationTokenState, Import, ImportStatusSchema, IncludeInherited, InstanceLevelCICDVariables, IntegrationSchema, Integrations, InvitationSchema, IsForm, IssueAwardEmojis, IssueBoardListSchema, IssueBoardSchema, IssueDiscussions, IssueIterationEvents, IssueLabelEvents, IssueLinkSchema, IssueLinks, IssueMilestoneEvents, IssueNoteAwardEmojis, IssueNoteSchema, IssueNotes, IssueSchema, IssueStateEvents, IssueWeightEvents, Issues, IssuesStatistics, IterationEventSchema, IterationSchema, JobArtifacts, JobKubernetesAgentsSchema, JobSchema, JobScope, JobVariableAttributeOption, Jobs, KeySchema, Keys, KeysetPagination, KeysetPaginationRequestOptions, LabelEventSchema, LabelSchema, License, LicenseSchema, LicenseTemplateSchema, LicenseTemplates, LinkedEpics, Lint, LintSchema, Markdown, MarkdownSchema, Maven, MemberRoleSchema, MemberSchema, 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, MetricType, MigrationEntityFailure, MigrationEntityOptions, MigrationEntitySchema, MigrationStatus, MigrationStatusSchema, Migrations, MilestoneEventSchema, MilestoneSchema, MissingSignatureSchema, NPM, NPMPackageMetadataSchema, NPMVersionSchema, NamespaceSchema, Namespaces, NoteSchema, 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, ProtectedEnvironmentAccessLevel, ProtectedEnvironmentAccessLevelEntity, ProtectedEnvironmentAccessLevelSummarySchema, ProtectedEnvironmentSchema, ProtectedTagAccessLevel, ProtectedTagAccessLevelEntity, ProtectedTagAccessLevelSummarySchema, ProtectedTagSchema, ProtectedTags, PushRuleSchema, 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, RepositoryStorageMoveSchema, RepositorySubmoduleSchema, RepositorySubmodules, RepositoryTreeSchema, ResourceAccessRequests, ResourceAccessTokens, ResourceAwardEmojis, ResourceBadges, ResourceCustomAttributes, ResourceDORA4Metrics, ResourceDiscussions, ResourceGroupSchema, ResourceGroups, ResourceHooks, ResourceInvitations, ResourceIssueBoards, ResourceIterationEvents, ResourceIterations, ResourceLabelEvents, ResourceLabels, ResourceMembers, ResourceMilestoneEvents, ResourceMilestones, ResourceNoteAwardEmojis, ResourceNotes, ResourceProtectedEnvironments, ResourcePushRules, ResourceRepositoryStorageMoves, ResourceStateEvents, ResourceTemplates, ResourceVariables, ResourceWeightEvents, ResourceWikis, ReviewAppSchema, RubyGems, RunnerSchema, RunnerToken, Runners, Search, SearchScopes, SecureFileSchema, SecureFiles, ServiceData, ShowChangelogOptions, ShowExpanded, SidekickCompoundMetricsSchema, SidekickJobStatsSchema, SidekickProcessMetricsSchema, SidekickQueueMetricsSchema, SidekiqMetrics, SidekiqQueueStatus, SidekiqQueues, SimpleGroupSchema, SimpleMemberSchema, SimpleProjectSchema, SimpleSnippetSchema, SnippetNoteSchema, SnippetRepositoryStorageMoveSchema, SnippetRepositoryStorageMoves, SnippetSchema, SnippetVisibility, Snippets, StarredDashboardSchema, StateEventSchema, StatisticsSchema, Sudo, SuggestionSchema, Suggestions, SupportedIntegration, SystemHookTestResponse, SystemHooks, TagSchema, TagSignatureSchema, Tags, TaskCompletionStatusSchema, TemplateSchema, 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, VariableFilter, VariableSchema, VariableType, WeightEventSchema, WikiAttachmentSchema, WikiSchema, 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
|
}
|
|
@@ -5023,7 +5030,10 @@ var Projects = class extends requesterUtils.BaseResource {
|
|
|
5023
5030
|
options
|
|
5024
5031
|
);
|
|
5025
5032
|
}
|
|
5026
|
-
|
|
5033
|
+
/* Upload file to be used a reference within an issue, merge request or
|
|
5034
|
+
comment
|
|
5035
|
+
*/
|
|
5036
|
+
uploadForReference(projectId, file, options) {
|
|
5027
5037
|
return RequestHelper.post()(
|
|
5028
5038
|
this,
|
|
5029
5039
|
endpoint`projects/${projectId}/uploads`,
|
|
@@ -5354,7 +5364,7 @@ var Repositories = class extends requesterUtils.BaseResource {
|
|
|
5354
5364
|
return RequestHelper.post()(
|
|
5355
5365
|
this,
|
|
5356
5366
|
endpoint`projects/${projectId}/repository/changelog`,
|
|
5357
|
-
{
|
|
5367
|
+
{ ...options, version }
|
|
5358
5368
|
);
|
|
5359
5369
|
}
|
|
5360
5370
|
mergeBase(projectId, refs, options) {
|
|
@@ -5362,8 +5372,8 @@ var Repositories = class extends requesterUtils.BaseResource {
|
|
|
5362
5372
|
this,
|
|
5363
5373
|
endpoint`projects/${projectId}/repository/merge_base`,
|
|
5364
5374
|
{
|
|
5365
|
-
|
|
5366
|
-
|
|
5375
|
+
...options,
|
|
5376
|
+
refs
|
|
5367
5377
|
}
|
|
5368
5378
|
);
|
|
5369
5379
|
}
|
|
@@ -5395,7 +5405,7 @@ var Repositories = class extends requesterUtils.BaseResource {
|
|
|
5395
5405
|
return RequestHelper.get()(
|
|
5396
5406
|
this,
|
|
5397
5407
|
endpoint`projects/${projectId}/repository/changelog`,
|
|
5398
|
-
{
|
|
5408
|
+
{ ...options, version }
|
|
5399
5409
|
);
|
|
5400
5410
|
}
|
|
5401
5411
|
};
|
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
|
}
|
|
@@ -5021,7 +5024,10 @@ var Projects = class extends BaseResource {
|
|
|
5021
5024
|
options
|
|
5022
5025
|
);
|
|
5023
5026
|
}
|
|
5024
|
-
|
|
5027
|
+
/* Upload file to be used a reference within an issue, merge request or
|
|
5028
|
+
comment
|
|
5029
|
+
*/
|
|
5030
|
+
uploadForReference(projectId, file, options) {
|
|
5025
5031
|
return RequestHelper.post()(
|
|
5026
5032
|
this,
|
|
5027
5033
|
endpoint`projects/${projectId}/uploads`,
|
|
@@ -5352,7 +5358,7 @@ var Repositories = class extends BaseResource {
|
|
|
5352
5358
|
return RequestHelper.post()(
|
|
5353
5359
|
this,
|
|
5354
5360
|
endpoint`projects/${projectId}/repository/changelog`,
|
|
5355
|
-
{
|
|
5361
|
+
{ ...options, version }
|
|
5356
5362
|
);
|
|
5357
5363
|
}
|
|
5358
5364
|
mergeBase(projectId, refs, options) {
|
|
@@ -5360,8 +5366,8 @@ var Repositories = class extends BaseResource {
|
|
|
5360
5366
|
this,
|
|
5361
5367
|
endpoint`projects/${projectId}/repository/merge_base`,
|
|
5362
5368
|
{
|
|
5363
|
-
|
|
5364
|
-
|
|
5369
|
+
...options,
|
|
5370
|
+
refs
|
|
5365
5371
|
}
|
|
5366
5372
|
);
|
|
5367
5373
|
}
|
|
@@ -5393,7 +5399,7 @@ var Repositories = class extends BaseResource {
|
|
|
5393
5399
|
return RequestHelper.get()(
|
|
5394
5400
|
this,
|
|
5395
5401
|
endpoint`projects/${projectId}/repository/changelog`,
|
|
5396
|
-
{
|
|
5402
|
+
{ ...options, version }
|
|
5397
5403
|
);
|
|
5398
5404
|
}
|
|
5399
5405
|
};
|
package/dist/map.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/core",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.4.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.4.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": "83fb26bce5f4cc9c07ad75dda64f1e3e7fbf2e47"
|
|
70
70
|
}
|