@aws-sdk/client-codecommit 3.301.0 → 3.306.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.
@@ -18,11 +18,10 @@ class ActorDoesNotExistException extends CodeCommitServiceException_1.CodeCommit
18
18
  }
19
19
  }
20
20
  exports.ActorDoesNotExistException = ActorDoesNotExistException;
21
- var ApprovalState;
22
- (function (ApprovalState) {
23
- ApprovalState["APPROVE"] = "APPROVE";
24
- ApprovalState["REVOKE"] = "REVOKE";
25
- })(ApprovalState = exports.ApprovalState || (exports.ApprovalState = {}));
21
+ exports.ApprovalState = {
22
+ APPROVE: "APPROVE",
23
+ REVOKE: "REVOKE",
24
+ };
26
25
  class ApprovalRuleContentRequiredException extends CodeCommitServiceException_1.CodeCommitServiceException {
27
26
  constructor(opts) {
28
27
  super({
@@ -75,11 +74,10 @@ class ApprovalRuleNameRequiredException extends CodeCommitServiceException_1.Cod
75
74
  }
76
75
  }
77
76
  exports.ApprovalRuleNameRequiredException = ApprovalRuleNameRequiredException;
78
- var OverrideStatus;
79
- (function (OverrideStatus) {
80
- OverrideStatus["OVERRIDE"] = "OVERRIDE";
81
- OverrideStatus["REVOKE"] = "REVOKE";
82
- })(OverrideStatus = exports.OverrideStatus || (exports.OverrideStatus = {}));
77
+ exports.OverrideStatus = {
78
+ OVERRIDE: "OVERRIDE",
79
+ REVOKE: "REVOKE",
80
+ };
83
81
  class ApprovalRuleTemplateContentRequiredException extends CodeCommitServiceException_1.CodeCommitServiceException {
84
82
  constructor(opts) {
85
83
  super({
@@ -327,43 +325,37 @@ class RepositoryNamesRequiredException extends CodeCommitServiceException_1.Code
327
325
  }
328
326
  }
329
327
  exports.RepositoryNamesRequiredException = RepositoryNamesRequiredException;
330
- var ConflictDetailLevelTypeEnum;
331
- (function (ConflictDetailLevelTypeEnum) {
332
- ConflictDetailLevelTypeEnum["FILE_LEVEL"] = "FILE_LEVEL";
333
- ConflictDetailLevelTypeEnum["LINE_LEVEL"] = "LINE_LEVEL";
334
- })(ConflictDetailLevelTypeEnum = exports.ConflictDetailLevelTypeEnum || (exports.ConflictDetailLevelTypeEnum = {}));
335
- var ConflictResolutionStrategyTypeEnum;
336
- (function (ConflictResolutionStrategyTypeEnum) {
337
- ConflictResolutionStrategyTypeEnum["ACCEPT_DESTINATION"] = "ACCEPT_DESTINATION";
338
- ConflictResolutionStrategyTypeEnum["ACCEPT_SOURCE"] = "ACCEPT_SOURCE";
339
- ConflictResolutionStrategyTypeEnum["AUTOMERGE"] = "AUTOMERGE";
340
- ConflictResolutionStrategyTypeEnum["NONE"] = "NONE";
341
- })(ConflictResolutionStrategyTypeEnum = exports.ConflictResolutionStrategyTypeEnum || (exports.ConflictResolutionStrategyTypeEnum = {}));
342
- var MergeOptionTypeEnum;
343
- (function (MergeOptionTypeEnum) {
344
- MergeOptionTypeEnum["FAST_FORWARD_MERGE"] = "FAST_FORWARD_MERGE";
345
- MergeOptionTypeEnum["SQUASH_MERGE"] = "SQUASH_MERGE";
346
- MergeOptionTypeEnum["THREE_WAY_MERGE"] = "THREE_WAY_MERGE";
347
- })(MergeOptionTypeEnum = exports.MergeOptionTypeEnum || (exports.MergeOptionTypeEnum = {}));
348
- var FileModeTypeEnum;
349
- (function (FileModeTypeEnum) {
350
- FileModeTypeEnum["EXECUTABLE"] = "EXECUTABLE";
351
- FileModeTypeEnum["NORMAL"] = "NORMAL";
352
- FileModeTypeEnum["SYMLINK"] = "SYMLINK";
353
- })(FileModeTypeEnum = exports.FileModeTypeEnum || (exports.FileModeTypeEnum = {}));
354
- var ChangeTypeEnum;
355
- (function (ChangeTypeEnum) {
356
- ChangeTypeEnum["ADDED"] = "A";
357
- ChangeTypeEnum["DELETED"] = "D";
358
- ChangeTypeEnum["MODIFIED"] = "M";
359
- })(ChangeTypeEnum = exports.ChangeTypeEnum || (exports.ChangeTypeEnum = {}));
360
- var ObjectTypeEnum;
361
- (function (ObjectTypeEnum) {
362
- ObjectTypeEnum["DIRECTORY"] = "DIRECTORY";
363
- ObjectTypeEnum["FILE"] = "FILE";
364
- ObjectTypeEnum["GIT_LINK"] = "GIT_LINK";
365
- ObjectTypeEnum["SYMBOLIC_LINK"] = "SYMBOLIC_LINK";
366
- })(ObjectTypeEnum = exports.ObjectTypeEnum || (exports.ObjectTypeEnum = {}));
328
+ exports.ConflictDetailLevelTypeEnum = {
329
+ FILE_LEVEL: "FILE_LEVEL",
330
+ LINE_LEVEL: "LINE_LEVEL",
331
+ };
332
+ exports.ConflictResolutionStrategyTypeEnum = {
333
+ ACCEPT_DESTINATION: "ACCEPT_DESTINATION",
334
+ ACCEPT_SOURCE: "ACCEPT_SOURCE",
335
+ AUTOMERGE: "AUTOMERGE",
336
+ NONE: "NONE",
337
+ };
338
+ exports.MergeOptionTypeEnum = {
339
+ FAST_FORWARD_MERGE: "FAST_FORWARD_MERGE",
340
+ SQUASH_MERGE: "SQUASH_MERGE",
341
+ THREE_WAY_MERGE: "THREE_WAY_MERGE",
342
+ };
343
+ exports.FileModeTypeEnum = {
344
+ EXECUTABLE: "EXECUTABLE",
345
+ NORMAL: "NORMAL",
346
+ SYMLINK: "SYMLINK",
347
+ };
348
+ exports.ChangeTypeEnum = {
349
+ ADDED: "A",
350
+ DELETED: "D",
351
+ MODIFIED: "M",
352
+ };
353
+ exports.ObjectTypeEnum = {
354
+ DIRECTORY: "DIRECTORY",
355
+ FILE: "FILE",
356
+ GIT_LINK: "GIT_LINK",
357
+ SYMBOLIC_LINK: "SYMBOLIC_LINK",
358
+ };
367
359
  class CommitDoesNotExistException extends CodeCommitServiceException_1.CodeCommitServiceException {
368
360
  constructor(opts) {
369
361
  super({
@@ -1105,11 +1097,10 @@ class SourceFileOrContentRequiredException extends CodeCommitServiceException_1.
1105
1097
  }
1106
1098
  }
1107
1099
  exports.SourceFileOrContentRequiredException = SourceFileOrContentRequiredException;
1108
- var PullRequestStatusEnum;
1109
- (function (PullRequestStatusEnum) {
1110
- PullRequestStatusEnum["CLOSED"] = "CLOSED";
1111
- PullRequestStatusEnum["OPEN"] = "OPEN";
1112
- })(PullRequestStatusEnum = exports.PullRequestStatusEnum || (exports.PullRequestStatusEnum = {}));
1100
+ exports.PullRequestStatusEnum = {
1101
+ CLOSED: "CLOSED",
1102
+ OPEN: "OPEN",
1103
+ };
1113
1104
  class IdempotencyParameterMismatchException extends CodeCommitServiceException_1.CodeCommitServiceException {
1114
1105
  constructor(opts) {
1115
1106
  super({
@@ -1513,13 +1504,12 @@ class ConcurrentReferenceUpdateException extends CodeCommitServiceException_1.Co
1513
1504
  }
1514
1505
  }
1515
1506
  exports.ConcurrentReferenceUpdateException = ConcurrentReferenceUpdateException;
1516
- var ReplacementTypeEnum;
1517
- (function (ReplacementTypeEnum) {
1518
- ReplacementTypeEnum["KEEP_BASE"] = "KEEP_BASE";
1519
- ReplacementTypeEnum["KEEP_DESTINATION"] = "KEEP_DESTINATION";
1520
- ReplacementTypeEnum["KEEP_SOURCE"] = "KEEP_SOURCE";
1521
- ReplacementTypeEnum["USE_NEW_CONTENT"] = "USE_NEW_CONTENT";
1522
- })(ReplacementTypeEnum = exports.ReplacementTypeEnum || (exports.ReplacementTypeEnum = {}));
1507
+ exports.ReplacementTypeEnum = {
1508
+ KEEP_BASE: "KEEP_BASE",
1509
+ KEEP_DESTINATION: "KEEP_DESTINATION",
1510
+ KEEP_SOURCE: "KEEP_SOURCE",
1511
+ USE_NEW_CONTENT: "USE_NEW_CONTENT",
1512
+ };
1523
1513
  class InvalidConflictResolutionException extends CodeCommitServiceException_1.CodeCommitServiceException {
1524
1514
  constructor(opts) {
1525
1515
  super({
@@ -1689,18 +1679,17 @@ class InvalidCommentIdException extends CodeCommitServiceException_1.CodeCommitS
1689
1679
  }
1690
1680
  }
1691
1681
  exports.InvalidCommentIdException = InvalidCommentIdException;
1692
- var PullRequestEventType;
1693
- (function (PullRequestEventType) {
1694
- PullRequestEventType["PULL_REQUEST_APPROVAL_RULE_CREATED"] = "PULL_REQUEST_APPROVAL_RULE_CREATED";
1695
- PullRequestEventType["PULL_REQUEST_APPROVAL_RULE_DELETED"] = "PULL_REQUEST_APPROVAL_RULE_DELETED";
1696
- PullRequestEventType["PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN"] = "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN";
1697
- PullRequestEventType["PULL_REQUEST_APPROVAL_RULE_UPDATED"] = "PULL_REQUEST_APPROVAL_RULE_UPDATED";
1698
- PullRequestEventType["PULL_REQUEST_APPROVAL_STATE_CHANGED"] = "PULL_REQUEST_APPROVAL_STATE_CHANGED";
1699
- PullRequestEventType["PULL_REQUEST_CREATED"] = "PULL_REQUEST_CREATED";
1700
- PullRequestEventType["PULL_REQUEST_MERGE_STATE_CHANGED"] = "PULL_REQUEST_MERGE_STATE_CHANGED";
1701
- PullRequestEventType["PULL_REQUEST_SOURCE_REFERENCE_UPDATED"] = "PULL_REQUEST_SOURCE_REFERENCE_UPDATED";
1702
- PullRequestEventType["PULL_REQUEST_STATUS_CHANGED"] = "PULL_REQUEST_STATUS_CHANGED";
1703
- })(PullRequestEventType = exports.PullRequestEventType || (exports.PullRequestEventType = {}));
1682
+ exports.PullRequestEventType = {
1683
+ PULL_REQUEST_APPROVAL_RULE_CREATED: "PULL_REQUEST_APPROVAL_RULE_CREATED",
1684
+ PULL_REQUEST_APPROVAL_RULE_DELETED: "PULL_REQUEST_APPROVAL_RULE_DELETED",
1685
+ PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN: "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN",
1686
+ PULL_REQUEST_APPROVAL_RULE_UPDATED: "PULL_REQUEST_APPROVAL_RULE_UPDATED",
1687
+ PULL_REQUEST_APPROVAL_STATE_CHANGED: "PULL_REQUEST_APPROVAL_STATE_CHANGED",
1688
+ PULL_REQUEST_CREATED: "PULL_REQUEST_CREATED",
1689
+ PULL_REQUEST_MERGE_STATE_CHANGED: "PULL_REQUEST_MERGE_STATE_CHANGED",
1690
+ PULL_REQUEST_SOURCE_REFERENCE_UPDATED: "PULL_REQUEST_SOURCE_REFERENCE_UPDATED",
1691
+ PULL_REQUEST_STATUS_CHANGED: "PULL_REQUEST_STATUS_CHANGED",
1692
+ };
1704
1693
  class InvalidActorArnException extends CodeCommitServiceException_1.CodeCommitServiceException {
1705
1694
  constructor(opts) {
1706
1695
  super({
@@ -1818,11 +1807,10 @@ class InvalidReactionUserArnException extends CodeCommitServiceException_1.CodeC
1818
1807
  }
1819
1808
  }
1820
1809
  exports.InvalidReactionUserArnException = InvalidReactionUserArnException;
1821
- var RelativeFileVersionEnum;
1822
- (function (RelativeFileVersionEnum) {
1823
- RelativeFileVersionEnum["AFTER"] = "AFTER";
1824
- RelativeFileVersionEnum["BEFORE"] = "BEFORE";
1825
- })(RelativeFileVersionEnum = exports.RelativeFileVersionEnum || (exports.RelativeFileVersionEnum = {}));
1810
+ exports.RelativeFileVersionEnum = {
1811
+ AFTER: "AFTER",
1812
+ BEFORE: "BEFORE",
1813
+ };
1826
1814
  class RepositoryNotAssociatedWithPullRequestException extends CodeCommitServiceException_1.CodeCommitServiceException {
1827
1815
  constructor(opts) {
1828
1816
  super({
@@ -1901,13 +1889,12 @@ class InvalidSourceCommitSpecifierException extends CodeCommitServiceException_1
1901
1889
  }
1902
1890
  }
1903
1891
  exports.InvalidSourceCommitSpecifierException = InvalidSourceCommitSpecifierException;
1904
- var RepositoryTriggerEventEnum;
1905
- (function (RepositoryTriggerEventEnum) {
1906
- RepositoryTriggerEventEnum["ALL"] = "all";
1907
- RepositoryTriggerEventEnum["CREATE_REFERENCE"] = "createReference";
1908
- RepositoryTriggerEventEnum["DELETE_REFERENCE"] = "deleteReference";
1909
- RepositoryTriggerEventEnum["UPDATE_REFERENCE"] = "updateReference";
1910
- })(RepositoryTriggerEventEnum = exports.RepositoryTriggerEventEnum || (exports.RepositoryTriggerEventEnum = {}));
1892
+ exports.RepositoryTriggerEventEnum = {
1893
+ ALL: "all",
1894
+ CREATE_REFERENCE: "createReference",
1895
+ DELETE_REFERENCE: "deleteReference",
1896
+ UPDATE_REFERENCE: "updateReference",
1897
+ };
1911
1898
  class InvalidAuthorArnException extends CodeCommitServiceException_1.CodeCommitServiceException {
1912
1899
  constructor(opts) {
1913
1900
  super({
@@ -2,16 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PullRequestStatusRequiredException = exports.InvalidPullRequestStatusUpdateException = exports.PullRequestCannotBeApprovedByAuthorException = exports.MaximumNumberOfApprovalsExceededException = exports.InvalidApprovalStateException = exports.CommentNotCreatedByCallerException = exports.InvalidRuleContentSha256Exception = exports.TagKeysListRequiredException = exports.InvalidTagKeysListException = exports.TagsMapRequiredException = exports.RepositoryTriggersListRequiredException = exports.RepositoryTriggerNameRequiredException = exports.RepositoryTriggerEventsListRequiredException = exports.RepositoryTriggerDestinationArnRequiredException = exports.RepositoryTriggerBranchNameListRequiredException = exports.MaximumRepositoryTriggersExceededException = exports.MaximumBranchesExceededException = exports.InvalidRepositoryTriggerRegionException = exports.InvalidRepositoryTriggerNameException = exports.InvalidRepositoryTriggerEventsException = exports.InvalidRepositoryTriggerDestinationArnException = exports.InvalidRepositoryTriggerCustomDataException = exports.InvalidRepositoryTriggerBranchNameException = exports.SameFileContentException = exports.FileContentRequiredException = exports.ReactionValueRequiredException = exports.ReactionLimitExceededException = exports.InvalidReactionValueException = exports.InvalidRelativeFileVersionEnumException = exports.InvalidFilePositionException = exports.InvalidFileLocationException = exports.CommentContentSizeLimitExceededException = exports.CommentContentRequiredException = exports.OverrideStatusRequiredException = exports.OverrideAlreadySetException = exports.InvalidOverrideStatusException = exports.TipOfSourceReferenceIsDifferentException = exports.PullRequestApprovalRulesNotSatisfiedException = exports.InvalidTargetBranchException = exports.ResourceArnRequiredException = exports.InvalidResourceArnException = exports.SortByEnum = exports.OrderEnum = void 0;
4
4
  const CodeCommitServiceException_1 = require("./CodeCommitServiceException");
5
- var OrderEnum;
6
- (function (OrderEnum) {
7
- OrderEnum["ASCENDING"] = "ascending";
8
- OrderEnum["DESCENDING"] = "descending";
9
- })(OrderEnum = exports.OrderEnum || (exports.OrderEnum = {}));
10
- var SortByEnum;
11
- (function (SortByEnum) {
12
- SortByEnum["MODIFIED_DATE"] = "lastModifiedDate";
13
- SortByEnum["REPOSITORY_NAME"] = "repositoryName";
14
- })(SortByEnum = exports.SortByEnum || (exports.SortByEnum = {}));
5
+ exports.OrderEnum = {
6
+ ASCENDING: "ascending",
7
+ DESCENDING: "descending",
8
+ };
9
+ exports.SortByEnum = {
10
+ MODIFIED_DATE: "lastModifiedDate",
11
+ REPOSITORY_NAME: "repositoryName",
12
+ };
15
13
  class InvalidResourceArnException extends CodeCommitServiceException_1.CodeCommitServiceException {
16
14
  constructor(opts) {
17
15
  super({
@@ -11,11 +11,10 @@ export class ActorDoesNotExistException extends __BaseException {
11
11
  Object.setPrototypeOf(this, ActorDoesNotExistException.prototype);
12
12
  }
13
13
  }
14
- export var ApprovalState;
15
- (function (ApprovalState) {
16
- ApprovalState["APPROVE"] = "APPROVE";
17
- ApprovalState["REVOKE"] = "REVOKE";
18
- })(ApprovalState || (ApprovalState = {}));
14
+ export const ApprovalState = {
15
+ APPROVE: "APPROVE",
16
+ REVOKE: "REVOKE",
17
+ };
19
18
  export class ApprovalRuleContentRequiredException extends __BaseException {
20
19
  constructor(opts) {
21
20
  super({
@@ -64,11 +63,10 @@ export class ApprovalRuleNameRequiredException extends __BaseException {
64
63
  Object.setPrototypeOf(this, ApprovalRuleNameRequiredException.prototype);
65
64
  }
66
65
  }
67
- export var OverrideStatus;
68
- (function (OverrideStatus) {
69
- OverrideStatus["OVERRIDE"] = "OVERRIDE";
70
- OverrideStatus["REVOKE"] = "REVOKE";
71
- })(OverrideStatus || (OverrideStatus = {}));
66
+ export const OverrideStatus = {
67
+ OVERRIDE: "OVERRIDE",
68
+ REVOKE: "REVOKE",
69
+ };
72
70
  export class ApprovalRuleTemplateContentRequiredException extends __BaseException {
73
71
  constructor(opts) {
74
72
  super({
@@ -297,43 +295,37 @@ export class RepositoryNamesRequiredException extends __BaseException {
297
295
  Object.setPrototypeOf(this, RepositoryNamesRequiredException.prototype);
298
296
  }
299
297
  }
300
- export var ConflictDetailLevelTypeEnum;
301
- (function (ConflictDetailLevelTypeEnum) {
302
- ConflictDetailLevelTypeEnum["FILE_LEVEL"] = "FILE_LEVEL";
303
- ConflictDetailLevelTypeEnum["LINE_LEVEL"] = "LINE_LEVEL";
304
- })(ConflictDetailLevelTypeEnum || (ConflictDetailLevelTypeEnum = {}));
305
- export var ConflictResolutionStrategyTypeEnum;
306
- (function (ConflictResolutionStrategyTypeEnum) {
307
- ConflictResolutionStrategyTypeEnum["ACCEPT_DESTINATION"] = "ACCEPT_DESTINATION";
308
- ConflictResolutionStrategyTypeEnum["ACCEPT_SOURCE"] = "ACCEPT_SOURCE";
309
- ConflictResolutionStrategyTypeEnum["AUTOMERGE"] = "AUTOMERGE";
310
- ConflictResolutionStrategyTypeEnum["NONE"] = "NONE";
311
- })(ConflictResolutionStrategyTypeEnum || (ConflictResolutionStrategyTypeEnum = {}));
312
- export var MergeOptionTypeEnum;
313
- (function (MergeOptionTypeEnum) {
314
- MergeOptionTypeEnum["FAST_FORWARD_MERGE"] = "FAST_FORWARD_MERGE";
315
- MergeOptionTypeEnum["SQUASH_MERGE"] = "SQUASH_MERGE";
316
- MergeOptionTypeEnum["THREE_WAY_MERGE"] = "THREE_WAY_MERGE";
317
- })(MergeOptionTypeEnum || (MergeOptionTypeEnum = {}));
318
- export var FileModeTypeEnum;
319
- (function (FileModeTypeEnum) {
320
- FileModeTypeEnum["EXECUTABLE"] = "EXECUTABLE";
321
- FileModeTypeEnum["NORMAL"] = "NORMAL";
322
- FileModeTypeEnum["SYMLINK"] = "SYMLINK";
323
- })(FileModeTypeEnum || (FileModeTypeEnum = {}));
324
- export var ChangeTypeEnum;
325
- (function (ChangeTypeEnum) {
326
- ChangeTypeEnum["ADDED"] = "A";
327
- ChangeTypeEnum["DELETED"] = "D";
328
- ChangeTypeEnum["MODIFIED"] = "M";
329
- })(ChangeTypeEnum || (ChangeTypeEnum = {}));
330
- export var ObjectTypeEnum;
331
- (function (ObjectTypeEnum) {
332
- ObjectTypeEnum["DIRECTORY"] = "DIRECTORY";
333
- ObjectTypeEnum["FILE"] = "FILE";
334
- ObjectTypeEnum["GIT_LINK"] = "GIT_LINK";
335
- ObjectTypeEnum["SYMBOLIC_LINK"] = "SYMBOLIC_LINK";
336
- })(ObjectTypeEnum || (ObjectTypeEnum = {}));
298
+ export const ConflictDetailLevelTypeEnum = {
299
+ FILE_LEVEL: "FILE_LEVEL",
300
+ LINE_LEVEL: "LINE_LEVEL",
301
+ };
302
+ export const ConflictResolutionStrategyTypeEnum = {
303
+ ACCEPT_DESTINATION: "ACCEPT_DESTINATION",
304
+ ACCEPT_SOURCE: "ACCEPT_SOURCE",
305
+ AUTOMERGE: "AUTOMERGE",
306
+ NONE: "NONE",
307
+ };
308
+ export const MergeOptionTypeEnum = {
309
+ FAST_FORWARD_MERGE: "FAST_FORWARD_MERGE",
310
+ SQUASH_MERGE: "SQUASH_MERGE",
311
+ THREE_WAY_MERGE: "THREE_WAY_MERGE",
312
+ };
313
+ export const FileModeTypeEnum = {
314
+ EXECUTABLE: "EXECUTABLE",
315
+ NORMAL: "NORMAL",
316
+ SYMLINK: "SYMLINK",
317
+ };
318
+ export const ChangeTypeEnum = {
319
+ ADDED: "A",
320
+ DELETED: "D",
321
+ MODIFIED: "M",
322
+ };
323
+ export const ObjectTypeEnum = {
324
+ DIRECTORY: "DIRECTORY",
325
+ FILE: "FILE",
326
+ GIT_LINK: "GIT_LINK",
327
+ SYMBOLIC_LINK: "SYMBOLIC_LINK",
328
+ };
337
329
  export class CommitDoesNotExistException extends __BaseException {
338
330
  constructor(opts) {
339
331
  super({
@@ -1018,11 +1010,10 @@ export class SourceFileOrContentRequiredException extends __BaseException {
1018
1010
  Object.setPrototypeOf(this, SourceFileOrContentRequiredException.prototype);
1019
1011
  }
1020
1012
  }
1021
- export var PullRequestStatusEnum;
1022
- (function (PullRequestStatusEnum) {
1023
- PullRequestStatusEnum["CLOSED"] = "CLOSED";
1024
- PullRequestStatusEnum["OPEN"] = "OPEN";
1025
- })(PullRequestStatusEnum || (PullRequestStatusEnum = {}));
1013
+ export const PullRequestStatusEnum = {
1014
+ CLOSED: "CLOSED",
1015
+ OPEN: "OPEN",
1016
+ };
1026
1017
  export class IdempotencyParameterMismatchException extends __BaseException {
1027
1018
  constructor(opts) {
1028
1019
  super({
@@ -1395,13 +1386,12 @@ export class ConcurrentReferenceUpdateException extends __BaseException {
1395
1386
  Object.setPrototypeOf(this, ConcurrentReferenceUpdateException.prototype);
1396
1387
  }
1397
1388
  }
1398
- export var ReplacementTypeEnum;
1399
- (function (ReplacementTypeEnum) {
1400
- ReplacementTypeEnum["KEEP_BASE"] = "KEEP_BASE";
1401
- ReplacementTypeEnum["KEEP_DESTINATION"] = "KEEP_DESTINATION";
1402
- ReplacementTypeEnum["KEEP_SOURCE"] = "KEEP_SOURCE";
1403
- ReplacementTypeEnum["USE_NEW_CONTENT"] = "USE_NEW_CONTENT";
1404
- })(ReplacementTypeEnum || (ReplacementTypeEnum = {}));
1389
+ export const ReplacementTypeEnum = {
1390
+ KEEP_BASE: "KEEP_BASE",
1391
+ KEEP_DESTINATION: "KEEP_DESTINATION",
1392
+ KEEP_SOURCE: "KEEP_SOURCE",
1393
+ USE_NEW_CONTENT: "USE_NEW_CONTENT",
1394
+ };
1405
1395
  export class InvalidConflictResolutionException extends __BaseException {
1406
1396
  constructor(opts) {
1407
1397
  super({
@@ -1558,18 +1548,17 @@ export class InvalidCommentIdException extends __BaseException {
1558
1548
  Object.setPrototypeOf(this, InvalidCommentIdException.prototype);
1559
1549
  }
1560
1550
  }
1561
- export var PullRequestEventType;
1562
- (function (PullRequestEventType) {
1563
- PullRequestEventType["PULL_REQUEST_APPROVAL_RULE_CREATED"] = "PULL_REQUEST_APPROVAL_RULE_CREATED";
1564
- PullRequestEventType["PULL_REQUEST_APPROVAL_RULE_DELETED"] = "PULL_REQUEST_APPROVAL_RULE_DELETED";
1565
- PullRequestEventType["PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN"] = "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN";
1566
- PullRequestEventType["PULL_REQUEST_APPROVAL_RULE_UPDATED"] = "PULL_REQUEST_APPROVAL_RULE_UPDATED";
1567
- PullRequestEventType["PULL_REQUEST_APPROVAL_STATE_CHANGED"] = "PULL_REQUEST_APPROVAL_STATE_CHANGED";
1568
- PullRequestEventType["PULL_REQUEST_CREATED"] = "PULL_REQUEST_CREATED";
1569
- PullRequestEventType["PULL_REQUEST_MERGE_STATE_CHANGED"] = "PULL_REQUEST_MERGE_STATE_CHANGED";
1570
- PullRequestEventType["PULL_REQUEST_SOURCE_REFERENCE_UPDATED"] = "PULL_REQUEST_SOURCE_REFERENCE_UPDATED";
1571
- PullRequestEventType["PULL_REQUEST_STATUS_CHANGED"] = "PULL_REQUEST_STATUS_CHANGED";
1572
- })(PullRequestEventType || (PullRequestEventType = {}));
1551
+ export const PullRequestEventType = {
1552
+ PULL_REQUEST_APPROVAL_RULE_CREATED: "PULL_REQUEST_APPROVAL_RULE_CREATED",
1553
+ PULL_REQUEST_APPROVAL_RULE_DELETED: "PULL_REQUEST_APPROVAL_RULE_DELETED",
1554
+ PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN: "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN",
1555
+ PULL_REQUEST_APPROVAL_RULE_UPDATED: "PULL_REQUEST_APPROVAL_RULE_UPDATED",
1556
+ PULL_REQUEST_APPROVAL_STATE_CHANGED: "PULL_REQUEST_APPROVAL_STATE_CHANGED",
1557
+ PULL_REQUEST_CREATED: "PULL_REQUEST_CREATED",
1558
+ PULL_REQUEST_MERGE_STATE_CHANGED: "PULL_REQUEST_MERGE_STATE_CHANGED",
1559
+ PULL_REQUEST_SOURCE_REFERENCE_UPDATED: "PULL_REQUEST_SOURCE_REFERENCE_UPDATED",
1560
+ PULL_REQUEST_STATUS_CHANGED: "PULL_REQUEST_STATUS_CHANGED",
1561
+ };
1573
1562
  export class InvalidActorArnException extends __BaseException {
1574
1563
  constructor(opts) {
1575
1564
  super({
@@ -1678,11 +1667,10 @@ export class InvalidReactionUserArnException extends __BaseException {
1678
1667
  Object.setPrototypeOf(this, InvalidReactionUserArnException.prototype);
1679
1668
  }
1680
1669
  }
1681
- export var RelativeFileVersionEnum;
1682
- (function (RelativeFileVersionEnum) {
1683
- RelativeFileVersionEnum["AFTER"] = "AFTER";
1684
- RelativeFileVersionEnum["BEFORE"] = "BEFORE";
1685
- })(RelativeFileVersionEnum || (RelativeFileVersionEnum = {}));
1670
+ export const RelativeFileVersionEnum = {
1671
+ AFTER: "AFTER",
1672
+ BEFORE: "BEFORE",
1673
+ };
1686
1674
  export class RepositoryNotAssociatedWithPullRequestException extends __BaseException {
1687
1675
  constructor(opts) {
1688
1676
  super({
@@ -1755,13 +1743,12 @@ export class InvalidSourceCommitSpecifierException extends __BaseException {
1755
1743
  Object.setPrototypeOf(this, InvalidSourceCommitSpecifierException.prototype);
1756
1744
  }
1757
1745
  }
1758
- export var RepositoryTriggerEventEnum;
1759
- (function (RepositoryTriggerEventEnum) {
1760
- RepositoryTriggerEventEnum["ALL"] = "all";
1761
- RepositoryTriggerEventEnum["CREATE_REFERENCE"] = "createReference";
1762
- RepositoryTriggerEventEnum["DELETE_REFERENCE"] = "deleteReference";
1763
- RepositoryTriggerEventEnum["UPDATE_REFERENCE"] = "updateReference";
1764
- })(RepositoryTriggerEventEnum || (RepositoryTriggerEventEnum = {}));
1746
+ export const RepositoryTriggerEventEnum = {
1747
+ ALL: "all",
1748
+ CREATE_REFERENCE: "createReference",
1749
+ DELETE_REFERENCE: "deleteReference",
1750
+ UPDATE_REFERENCE: "updateReference",
1751
+ };
1765
1752
  export class InvalidAuthorArnException extends __BaseException {
1766
1753
  constructor(opts) {
1767
1754
  super({
@@ -1,14 +1,12 @@
1
1
  import { CodeCommitServiceException as __BaseException } from "./CodeCommitServiceException";
2
- export var OrderEnum;
3
- (function (OrderEnum) {
4
- OrderEnum["ASCENDING"] = "ascending";
5
- OrderEnum["DESCENDING"] = "descending";
6
- })(OrderEnum || (OrderEnum = {}));
7
- export var SortByEnum;
8
- (function (SortByEnum) {
9
- SortByEnum["MODIFIED_DATE"] = "lastModifiedDate";
10
- SortByEnum["REPOSITORY_NAME"] = "repositoryName";
11
- })(SortByEnum || (SortByEnum = {}));
2
+ export const OrderEnum = {
3
+ ASCENDING: "ascending",
4
+ DESCENDING: "descending",
5
+ };
6
+ export const SortByEnum = {
7
+ MODIFIED_DATE: "lastModifiedDate",
8
+ REPOSITORY_NAME: "repositoryName",
9
+ };
12
10
  export class InvalidResourceArnException extends __BaseException {
13
11
  constructor(opts) {
14
12
  super({
@@ -14,11 +14,16 @@ export declare class ActorDoesNotExistException extends __BaseException {
14
14
  }
15
15
  /**
16
16
  * @public
17
+ * @enum
17
18
  */
18
- export declare enum ApprovalState {
19
- APPROVE = "APPROVE",
20
- REVOKE = "REVOKE"
21
- }
19
+ export declare const ApprovalState: {
20
+ readonly APPROVE: "APPROVE";
21
+ readonly REVOKE: "REVOKE";
22
+ };
23
+ /**
24
+ * @public
25
+ */
26
+ export type ApprovalState = (typeof ApprovalState)[keyof typeof ApprovalState];
22
27
  /**
23
28
  * @public
24
29
  * <p>Returns information about a specific approval on a pull request.</p>
@@ -154,11 +159,16 @@ export declare class ApprovalRuleNameRequiredException extends __BaseException {
154
159
  }
155
160
  /**
156
161
  * @public
162
+ * @enum
157
163
  */
158
- export declare enum OverrideStatus {
159
- OVERRIDE = "OVERRIDE",
160
- REVOKE = "REVOKE"
161
- }
164
+ export declare const OverrideStatus: {
165
+ readonly OVERRIDE: "OVERRIDE";
166
+ readonly REVOKE: "REVOKE";
167
+ };
168
+ /**
169
+ * @public
170
+ */
171
+ export type OverrideStatus = (typeof OverrideStatus)[keyof typeof OverrideStatus];
162
172
  /**
163
173
  * @public
164
174
  * <p>Returns information about an override event for approval rules for a pull request.</p>
@@ -529,28 +539,43 @@ export declare class RepositoryNamesRequiredException extends __BaseException {
529
539
  }
530
540
  /**
531
541
  * @public
542
+ * @enum
532
543
  */
533
- export declare enum ConflictDetailLevelTypeEnum {
534
- FILE_LEVEL = "FILE_LEVEL",
535
- LINE_LEVEL = "LINE_LEVEL"
536
- }
544
+ export declare const ConflictDetailLevelTypeEnum: {
545
+ readonly FILE_LEVEL: "FILE_LEVEL";
546
+ readonly LINE_LEVEL: "LINE_LEVEL";
547
+ };
537
548
  /**
538
549
  * @public
539
550
  */
540
- export declare enum ConflictResolutionStrategyTypeEnum {
541
- ACCEPT_DESTINATION = "ACCEPT_DESTINATION",
542
- ACCEPT_SOURCE = "ACCEPT_SOURCE",
543
- AUTOMERGE = "AUTOMERGE",
544
- NONE = "NONE"
545
- }
551
+ export type ConflictDetailLevelTypeEnum = (typeof ConflictDetailLevelTypeEnum)[keyof typeof ConflictDetailLevelTypeEnum];
546
552
  /**
547
553
  * @public
554
+ * @enum
548
555
  */
549
- export declare enum MergeOptionTypeEnum {
550
- FAST_FORWARD_MERGE = "FAST_FORWARD_MERGE",
551
- SQUASH_MERGE = "SQUASH_MERGE",
552
- THREE_WAY_MERGE = "THREE_WAY_MERGE"
553
- }
556
+ export declare const ConflictResolutionStrategyTypeEnum: {
557
+ readonly ACCEPT_DESTINATION: "ACCEPT_DESTINATION";
558
+ readonly ACCEPT_SOURCE: "ACCEPT_SOURCE";
559
+ readonly AUTOMERGE: "AUTOMERGE";
560
+ readonly NONE: "NONE";
561
+ };
562
+ /**
563
+ * @public
564
+ */
565
+ export type ConflictResolutionStrategyTypeEnum = (typeof ConflictResolutionStrategyTypeEnum)[keyof typeof ConflictResolutionStrategyTypeEnum];
566
+ /**
567
+ * @public
568
+ * @enum
569
+ */
570
+ export declare const MergeOptionTypeEnum: {
571
+ readonly FAST_FORWARD_MERGE: "FAST_FORWARD_MERGE";
572
+ readonly SQUASH_MERGE: "SQUASH_MERGE";
573
+ readonly THREE_WAY_MERGE: "THREE_WAY_MERGE";
574
+ };
575
+ /**
576
+ * @public
577
+ */
578
+ export type MergeOptionTypeEnum = (typeof MergeOptionTypeEnum)[keyof typeof MergeOptionTypeEnum];
554
579
  /**
555
580
  * @public
556
581
  */
@@ -606,12 +631,17 @@ export interface BatchDescribeMergeConflictsInput {
606
631
  }
607
632
  /**
608
633
  * @public
634
+ * @enum
609
635
  */
610
- export declare enum FileModeTypeEnum {
611
- EXECUTABLE = "EXECUTABLE",
612
- NORMAL = "NORMAL",
613
- SYMLINK = "SYMLINK"
614
- }
636
+ export declare const FileModeTypeEnum: {
637
+ readonly EXECUTABLE: "EXECUTABLE";
638
+ readonly NORMAL: "NORMAL";
639
+ readonly SYMLINK: "SYMLINK";
640
+ };
641
+ /**
642
+ * @public
643
+ */
644
+ export type FileModeTypeEnum = (typeof FileModeTypeEnum)[keyof typeof FileModeTypeEnum];
615
645
  /**
616
646
  * @public
617
647
  * <p>Information about file modes in a merge or pull request.</p>
@@ -668,12 +698,17 @@ export interface IsBinaryFile {
668
698
  }
669
699
  /**
670
700
  * @public
701
+ * @enum
671
702
  */
672
- export declare enum ChangeTypeEnum {
673
- ADDED = "A",
674
- DELETED = "D",
675
- MODIFIED = "M"
676
- }
703
+ export declare const ChangeTypeEnum: {
704
+ readonly ADDED: "A";
705
+ readonly DELETED: "D";
706
+ readonly MODIFIED: "M";
707
+ };
708
+ /**
709
+ * @public
710
+ */
711
+ export type ChangeTypeEnum = (typeof ChangeTypeEnum)[keyof typeof ChangeTypeEnum];
677
712
  /**
678
713
  * @public
679
714
  * <p>Information about the file operation conflicts in a merge operation.</p>
@@ -691,13 +726,18 @@ export interface MergeOperations {
691
726
  }
692
727
  /**
693
728
  * @public
729
+ * @enum
694
730
  */
695
- export declare enum ObjectTypeEnum {
696
- DIRECTORY = "DIRECTORY",
697
- FILE = "FILE",
698
- GIT_LINK = "GIT_LINK",
699
- SYMBOLIC_LINK = "SYMBOLIC_LINK"
700
- }
731
+ export declare const ObjectTypeEnum: {
732
+ readonly DIRECTORY: "DIRECTORY";
733
+ readonly FILE: "FILE";
734
+ readonly GIT_LINK: "GIT_LINK";
735
+ readonly SYMBOLIC_LINK: "SYMBOLIC_LINK";
736
+ };
737
+ /**
738
+ * @public
739
+ */
740
+ export type ObjectTypeEnum = (typeof ObjectTypeEnum)[keyof typeof ObjectTypeEnum];
701
741
  /**
702
742
  * @public
703
743
  * <p>Information about the type of an object in a merge operation.</p>
@@ -2162,11 +2202,16 @@ export interface CreatePullRequestInput {
2162
2202
  }
2163
2203
  /**
2164
2204
  * @public
2205
+ * @enum
2165
2206
  */
2166
- export declare enum PullRequestStatusEnum {
2167
- CLOSED = "CLOSED",
2168
- OPEN = "OPEN"
2169
- }
2207
+ export declare const PullRequestStatusEnum: {
2208
+ readonly CLOSED: "CLOSED";
2209
+ readonly OPEN: "OPEN";
2210
+ };
2211
+ /**
2212
+ * @public
2213
+ */
2214
+ export type PullRequestStatusEnum = (typeof PullRequestStatusEnum)[keyof typeof PullRequestStatusEnum];
2170
2215
  /**
2171
2216
  * @public
2172
2217
  * <p>Returns information about a merge or potential merge between a source reference and a destination reference in a pull request.</p>
@@ -2780,13 +2825,18 @@ export declare class ConcurrentReferenceUpdateException extends __BaseException
2780
2825
  }
2781
2826
  /**
2782
2827
  * @public
2828
+ * @enum
2783
2829
  */
2784
- export declare enum ReplacementTypeEnum {
2785
- KEEP_BASE = "KEEP_BASE",
2786
- KEEP_DESTINATION = "KEEP_DESTINATION",
2787
- KEEP_SOURCE = "KEEP_SOURCE",
2788
- USE_NEW_CONTENT = "USE_NEW_CONTENT"
2789
- }
2830
+ export declare const ReplacementTypeEnum: {
2831
+ readonly KEEP_BASE: "KEEP_BASE";
2832
+ readonly KEEP_DESTINATION: "KEEP_DESTINATION";
2833
+ readonly KEEP_SOURCE: "KEEP_SOURCE";
2834
+ readonly USE_NEW_CONTENT: "USE_NEW_CONTENT";
2835
+ };
2836
+ /**
2837
+ * @public
2838
+ */
2839
+ export type ReplacementTypeEnum = (typeof ReplacementTypeEnum)[keyof typeof ReplacementTypeEnum];
2790
2840
  /**
2791
2841
  * @public
2792
2842
  * <p>Information about a replacement content entry in the conflict of a merge or pull request operation.</p>
@@ -3365,18 +3415,23 @@ export interface DescribeMergeConflictsOutput {
3365
3415
  }
3366
3416
  /**
3367
3417
  * @public
3418
+ * @enum
3368
3419
  */
3369
- export declare enum PullRequestEventType {
3370
- PULL_REQUEST_APPROVAL_RULE_CREATED = "PULL_REQUEST_APPROVAL_RULE_CREATED",
3371
- PULL_REQUEST_APPROVAL_RULE_DELETED = "PULL_REQUEST_APPROVAL_RULE_DELETED",
3372
- PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN = "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN",
3373
- PULL_REQUEST_APPROVAL_RULE_UPDATED = "PULL_REQUEST_APPROVAL_RULE_UPDATED",
3374
- PULL_REQUEST_APPROVAL_STATE_CHANGED = "PULL_REQUEST_APPROVAL_STATE_CHANGED",
3375
- PULL_REQUEST_CREATED = "PULL_REQUEST_CREATED",
3376
- PULL_REQUEST_MERGE_STATE_CHANGED = "PULL_REQUEST_MERGE_STATE_CHANGED",
3377
- PULL_REQUEST_SOURCE_REFERENCE_UPDATED = "PULL_REQUEST_SOURCE_REFERENCE_UPDATED",
3378
- PULL_REQUEST_STATUS_CHANGED = "PULL_REQUEST_STATUS_CHANGED"
3379
- }
3420
+ export declare const PullRequestEventType: {
3421
+ readonly PULL_REQUEST_APPROVAL_RULE_CREATED: "PULL_REQUEST_APPROVAL_RULE_CREATED";
3422
+ readonly PULL_REQUEST_APPROVAL_RULE_DELETED: "PULL_REQUEST_APPROVAL_RULE_DELETED";
3423
+ readonly PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN: "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN";
3424
+ readonly PULL_REQUEST_APPROVAL_RULE_UPDATED: "PULL_REQUEST_APPROVAL_RULE_UPDATED";
3425
+ readonly PULL_REQUEST_APPROVAL_STATE_CHANGED: "PULL_REQUEST_APPROVAL_STATE_CHANGED";
3426
+ readonly PULL_REQUEST_CREATED: "PULL_REQUEST_CREATED";
3427
+ readonly PULL_REQUEST_MERGE_STATE_CHANGED: "PULL_REQUEST_MERGE_STATE_CHANGED";
3428
+ readonly PULL_REQUEST_SOURCE_REFERENCE_UPDATED: "PULL_REQUEST_SOURCE_REFERENCE_UPDATED";
3429
+ readonly PULL_REQUEST_STATUS_CHANGED: "PULL_REQUEST_STATUS_CHANGED";
3430
+ };
3431
+ /**
3432
+ * @public
3433
+ */
3434
+ export type PullRequestEventType = (typeof PullRequestEventType)[keyof typeof PullRequestEventType];
3380
3435
  /**
3381
3436
  * @public
3382
3437
  */
@@ -3901,11 +3956,16 @@ export interface GetCommentsForComparedCommitInput {
3901
3956
  }
3902
3957
  /**
3903
3958
  * @public
3959
+ * @enum
3904
3960
  */
3905
- export declare enum RelativeFileVersionEnum {
3906
- AFTER = "AFTER",
3907
- BEFORE = "BEFORE"
3908
- }
3961
+ export declare const RelativeFileVersionEnum: {
3962
+ readonly AFTER: "AFTER";
3963
+ readonly BEFORE: "BEFORE";
3964
+ };
3965
+ /**
3966
+ * @public
3967
+ */
3968
+ export type RelativeFileVersionEnum = (typeof RelativeFileVersionEnum)[keyof typeof RelativeFileVersionEnum];
3909
3969
  /**
3910
3970
  * @public
3911
3971
  * <p>Returns information about the location of a change or comment in the comparison between two commits or a pull request.</p>
@@ -4713,13 +4773,18 @@ export interface GetRepositoryTriggersInput {
4713
4773
  }
4714
4774
  /**
4715
4775
  * @public
4776
+ * @enum
4716
4777
  */
4717
- export declare enum RepositoryTriggerEventEnum {
4718
- ALL = "all",
4719
- CREATE_REFERENCE = "createReference",
4720
- DELETE_REFERENCE = "deleteReference",
4721
- UPDATE_REFERENCE = "updateReference"
4722
- }
4778
+ export declare const RepositoryTriggerEventEnum: {
4779
+ readonly ALL: "all";
4780
+ readonly CREATE_REFERENCE: "createReference";
4781
+ readonly DELETE_REFERENCE: "deleteReference";
4782
+ readonly UPDATE_REFERENCE: "updateReference";
4783
+ };
4784
+ /**
4785
+ * @public
4786
+ */
4787
+ export type RepositoryTriggerEventEnum = (typeof RepositoryTriggerEventEnum)[keyof typeof RepositoryTriggerEventEnum];
4723
4788
  /**
4724
4789
  * @public
4725
4790
  * <p>Information about a trigger for a repository.</p>
@@ -3,18 +3,28 @@ import { CodeCommitServiceException as __BaseException } from "./CodeCommitServi
3
3
  import { ApprovalRule, ApprovalRuleTemplate, ApprovalState, Comment, ConflictDetailLevelTypeEnum, ConflictResolution, ConflictResolutionStrategyTypeEnum, FileModeTypeEnum, Location, OverrideStatus, PullRequest, PullRequestStatusEnum, RepositoryTrigger } from "./models_0";
4
4
  /**
5
5
  * @public
6
+ * @enum
6
7
  */
7
- export declare enum OrderEnum {
8
- ASCENDING = "ascending",
9
- DESCENDING = "descending"
10
- }
8
+ export declare const OrderEnum: {
9
+ readonly ASCENDING: "ascending";
10
+ readonly DESCENDING: "descending";
11
+ };
11
12
  /**
12
13
  * @public
13
14
  */
14
- export declare enum SortByEnum {
15
- MODIFIED_DATE = "lastModifiedDate",
16
- REPOSITORY_NAME = "repositoryName"
17
- }
15
+ export type OrderEnum = (typeof OrderEnum)[keyof typeof OrderEnum];
16
+ /**
17
+ * @public
18
+ * @enum
19
+ */
20
+ export declare const SortByEnum: {
21
+ readonly MODIFIED_DATE: "lastModifiedDate";
22
+ readonly REPOSITORY_NAME: "repositoryName";
23
+ };
24
+ /**
25
+ * @public
26
+ */
27
+ export type SortByEnum = (typeof SortByEnum)[keyof typeof SortByEnum];
18
28
  /**
19
29
  * @public
20
30
  * <p>Represents the input of a list repositories operation.</p>
@@ -7,10 +7,11 @@ export declare class ActorDoesNotExistException extends __BaseException {
7
7
  opts: __ExceptionOptionType<ActorDoesNotExistException, __BaseException>
8
8
  );
9
9
  }
10
- export declare enum ApprovalState {
11
- APPROVE = "APPROVE",
12
- REVOKE = "REVOKE",
13
- }
10
+ export declare const ApprovalState: {
11
+ readonly APPROVE: "APPROVE";
12
+ readonly REVOKE: "REVOKE";
13
+ };
14
+ export type ApprovalState = (typeof ApprovalState)[keyof typeof ApprovalState];
14
15
  export interface Approval {
15
16
  userArn?: string;
16
17
  approvalState?: ApprovalState | string;
@@ -74,10 +75,12 @@ export declare class ApprovalRuleNameRequiredException extends __BaseException {
74
75
  >
75
76
  );
76
77
  }
77
- export declare enum OverrideStatus {
78
- OVERRIDE = "OVERRIDE",
79
- REVOKE = "REVOKE",
80
- }
78
+ export declare const OverrideStatus: {
79
+ readonly OVERRIDE: "OVERRIDE";
80
+ readonly REVOKE: "REVOKE";
81
+ };
82
+ export type OverrideStatus =
83
+ (typeof OverrideStatus)[keyof typeof OverrideStatus];
81
84
  export interface ApprovalRuleOverriddenEventMetadata {
82
85
  revisionId?: string;
83
86
  overrideStatus?: OverrideStatus | string;
@@ -288,21 +291,27 @@ export declare class RepositoryNamesRequiredException extends __BaseException {
288
291
  >
289
292
  );
290
293
  }
291
- export declare enum ConflictDetailLevelTypeEnum {
292
- FILE_LEVEL = "FILE_LEVEL",
293
- LINE_LEVEL = "LINE_LEVEL",
294
- }
295
- export declare enum ConflictResolutionStrategyTypeEnum {
296
- ACCEPT_DESTINATION = "ACCEPT_DESTINATION",
297
- ACCEPT_SOURCE = "ACCEPT_SOURCE",
298
- AUTOMERGE = "AUTOMERGE",
299
- NONE = "NONE",
300
- }
301
- export declare enum MergeOptionTypeEnum {
302
- FAST_FORWARD_MERGE = "FAST_FORWARD_MERGE",
303
- SQUASH_MERGE = "SQUASH_MERGE",
304
- THREE_WAY_MERGE = "THREE_WAY_MERGE",
305
- }
294
+ export declare const ConflictDetailLevelTypeEnum: {
295
+ readonly FILE_LEVEL: "FILE_LEVEL";
296
+ readonly LINE_LEVEL: "LINE_LEVEL";
297
+ };
298
+ export type ConflictDetailLevelTypeEnum =
299
+ (typeof ConflictDetailLevelTypeEnum)[keyof typeof ConflictDetailLevelTypeEnum];
300
+ export declare const ConflictResolutionStrategyTypeEnum: {
301
+ readonly ACCEPT_DESTINATION: "ACCEPT_DESTINATION";
302
+ readonly ACCEPT_SOURCE: "ACCEPT_SOURCE";
303
+ readonly AUTOMERGE: "AUTOMERGE";
304
+ readonly NONE: "NONE";
305
+ };
306
+ export type ConflictResolutionStrategyTypeEnum =
307
+ (typeof ConflictResolutionStrategyTypeEnum)[keyof typeof ConflictResolutionStrategyTypeEnum];
308
+ export declare const MergeOptionTypeEnum: {
309
+ readonly FAST_FORWARD_MERGE: "FAST_FORWARD_MERGE";
310
+ readonly SQUASH_MERGE: "SQUASH_MERGE";
311
+ readonly THREE_WAY_MERGE: "THREE_WAY_MERGE";
312
+ };
313
+ export type MergeOptionTypeEnum =
314
+ (typeof MergeOptionTypeEnum)[keyof typeof MergeOptionTypeEnum];
306
315
  export interface BatchDescribeMergeConflictsInput {
307
316
  repositoryName: string | undefined;
308
317
  destinationCommitSpecifier: string | undefined;
@@ -315,11 +324,13 @@ export interface BatchDescribeMergeConflictsInput {
315
324
  conflictResolutionStrategy?: ConflictResolutionStrategyTypeEnum | string;
316
325
  nextToken?: string;
317
326
  }
318
- export declare enum FileModeTypeEnum {
319
- EXECUTABLE = "EXECUTABLE",
320
- NORMAL = "NORMAL",
321
- SYMLINK = "SYMLINK",
322
- }
327
+ export declare const FileModeTypeEnum: {
328
+ readonly EXECUTABLE: "EXECUTABLE";
329
+ readonly NORMAL: "NORMAL";
330
+ readonly SYMLINK: "SYMLINK";
331
+ };
332
+ export type FileModeTypeEnum =
333
+ (typeof FileModeTypeEnum)[keyof typeof FileModeTypeEnum];
323
334
  export interface FileModes {
324
335
  source?: FileModeTypeEnum | string;
325
336
  destination?: FileModeTypeEnum | string;
@@ -335,21 +346,25 @@ export interface IsBinaryFile {
335
346
  destination?: boolean;
336
347
  base?: boolean;
337
348
  }
338
- export declare enum ChangeTypeEnum {
339
- ADDED = "A",
340
- DELETED = "D",
341
- MODIFIED = "M",
342
- }
349
+ export declare const ChangeTypeEnum: {
350
+ readonly ADDED: "A";
351
+ readonly DELETED: "D";
352
+ readonly MODIFIED: "M";
353
+ };
354
+ export type ChangeTypeEnum =
355
+ (typeof ChangeTypeEnum)[keyof typeof ChangeTypeEnum];
343
356
  export interface MergeOperations {
344
357
  source?: ChangeTypeEnum | string;
345
358
  destination?: ChangeTypeEnum | string;
346
359
  }
347
- export declare enum ObjectTypeEnum {
348
- DIRECTORY = "DIRECTORY",
349
- FILE = "FILE",
350
- GIT_LINK = "GIT_LINK",
351
- SYMBOLIC_LINK = "SYMBOLIC_LINK",
352
- }
360
+ export declare const ObjectTypeEnum: {
361
+ readonly DIRECTORY: "DIRECTORY";
362
+ readonly FILE: "FILE";
363
+ readonly GIT_LINK: "GIT_LINK";
364
+ readonly SYMBOLIC_LINK: "SYMBOLIC_LINK";
365
+ };
366
+ export type ObjectTypeEnum =
367
+ (typeof ObjectTypeEnum)[keyof typeof ObjectTypeEnum];
353
368
  export interface ObjectTypes {
354
369
  source?: ObjectTypeEnum | string;
355
370
  destination?: ObjectTypeEnum | string;
@@ -1011,10 +1026,12 @@ export interface CreatePullRequestInput {
1011
1026
  targets: Target[] | undefined;
1012
1027
  clientRequestToken?: string;
1013
1028
  }
1014
- export declare enum PullRequestStatusEnum {
1015
- CLOSED = "CLOSED",
1016
- OPEN = "OPEN",
1017
- }
1029
+ export declare const PullRequestStatusEnum: {
1030
+ readonly CLOSED: "CLOSED";
1031
+ readonly OPEN: "OPEN";
1032
+ };
1033
+ export type PullRequestStatusEnum =
1034
+ (typeof PullRequestStatusEnum)[keyof typeof PullRequestStatusEnum];
1018
1035
  export interface MergeMetadata {
1019
1036
  isMerged?: boolean;
1020
1037
  mergedBy?: string;
@@ -1316,12 +1333,14 @@ export declare class ConcurrentReferenceUpdateException extends __BaseException
1316
1333
  >
1317
1334
  );
1318
1335
  }
1319
- export declare enum ReplacementTypeEnum {
1320
- KEEP_BASE = "KEEP_BASE",
1321
- KEEP_DESTINATION = "KEEP_DESTINATION",
1322
- KEEP_SOURCE = "KEEP_SOURCE",
1323
- USE_NEW_CONTENT = "USE_NEW_CONTENT",
1324
- }
1336
+ export declare const ReplacementTypeEnum: {
1337
+ readonly KEEP_BASE: "KEEP_BASE";
1338
+ readonly KEEP_DESTINATION: "KEEP_DESTINATION";
1339
+ readonly KEEP_SOURCE: "KEEP_SOURCE";
1340
+ readonly USE_NEW_CONTENT: "USE_NEW_CONTENT";
1341
+ };
1342
+ export type ReplacementTypeEnum =
1343
+ (typeof ReplacementTypeEnum)[keyof typeof ReplacementTypeEnum];
1325
1344
  export interface ReplaceContentEntry {
1326
1345
  filePath: string | undefined;
1327
1346
  replacementType: ReplacementTypeEnum | string | undefined;
@@ -1544,17 +1563,19 @@ export interface DescribeMergeConflictsOutput {
1544
1563
  sourceCommitId: string | undefined;
1545
1564
  baseCommitId?: string;
1546
1565
  }
1547
- export declare enum PullRequestEventType {
1548
- PULL_REQUEST_APPROVAL_RULE_CREATED = "PULL_REQUEST_APPROVAL_RULE_CREATED",
1549
- PULL_REQUEST_APPROVAL_RULE_DELETED = "PULL_REQUEST_APPROVAL_RULE_DELETED",
1550
- PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN = "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN",
1551
- PULL_REQUEST_APPROVAL_RULE_UPDATED = "PULL_REQUEST_APPROVAL_RULE_UPDATED",
1552
- PULL_REQUEST_APPROVAL_STATE_CHANGED = "PULL_REQUEST_APPROVAL_STATE_CHANGED",
1553
- PULL_REQUEST_CREATED = "PULL_REQUEST_CREATED",
1554
- PULL_REQUEST_MERGE_STATE_CHANGED = "PULL_REQUEST_MERGE_STATE_CHANGED",
1555
- PULL_REQUEST_SOURCE_REFERENCE_UPDATED = "PULL_REQUEST_SOURCE_REFERENCE_UPDATED",
1556
- PULL_REQUEST_STATUS_CHANGED = "PULL_REQUEST_STATUS_CHANGED",
1557
- }
1566
+ export declare const PullRequestEventType: {
1567
+ readonly PULL_REQUEST_APPROVAL_RULE_CREATED: "PULL_REQUEST_APPROVAL_RULE_CREATED";
1568
+ readonly PULL_REQUEST_APPROVAL_RULE_DELETED: "PULL_REQUEST_APPROVAL_RULE_DELETED";
1569
+ readonly PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN: "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN";
1570
+ readonly PULL_REQUEST_APPROVAL_RULE_UPDATED: "PULL_REQUEST_APPROVAL_RULE_UPDATED";
1571
+ readonly PULL_REQUEST_APPROVAL_STATE_CHANGED: "PULL_REQUEST_APPROVAL_STATE_CHANGED";
1572
+ readonly PULL_REQUEST_CREATED: "PULL_REQUEST_CREATED";
1573
+ readonly PULL_REQUEST_MERGE_STATE_CHANGED: "PULL_REQUEST_MERGE_STATE_CHANGED";
1574
+ readonly PULL_REQUEST_SOURCE_REFERENCE_UPDATED: "PULL_REQUEST_SOURCE_REFERENCE_UPDATED";
1575
+ readonly PULL_REQUEST_STATUS_CHANGED: "PULL_REQUEST_STATUS_CHANGED";
1576
+ };
1577
+ export type PullRequestEventType =
1578
+ (typeof PullRequestEventType)[keyof typeof PullRequestEventType];
1558
1579
  export interface DescribePullRequestEventsInput {
1559
1580
  pullRequestId: string | undefined;
1560
1581
  pullRequestEventType?: PullRequestEventType | string;
@@ -1738,10 +1759,12 @@ export interface GetCommentsForComparedCommitInput {
1738
1759
  nextToken?: string;
1739
1760
  maxResults?: number;
1740
1761
  }
1741
- export declare enum RelativeFileVersionEnum {
1742
- AFTER = "AFTER",
1743
- BEFORE = "BEFORE",
1744
- }
1762
+ export declare const RelativeFileVersionEnum: {
1763
+ readonly AFTER: "AFTER";
1764
+ readonly BEFORE: "BEFORE";
1765
+ };
1766
+ export type RelativeFileVersionEnum =
1767
+ (typeof RelativeFileVersionEnum)[keyof typeof RelativeFileVersionEnum];
1745
1768
  export interface Location {
1746
1769
  filePath?: string;
1747
1770
  filePosition?: number;
@@ -1981,12 +2004,14 @@ export interface GetRepositoryOutput {
1981
2004
  export interface GetRepositoryTriggersInput {
1982
2005
  repositoryName: string | undefined;
1983
2006
  }
1984
- export declare enum RepositoryTriggerEventEnum {
1985
- ALL = "all",
1986
- CREATE_REFERENCE = "createReference",
1987
- DELETE_REFERENCE = "deleteReference",
1988
- UPDATE_REFERENCE = "updateReference",
1989
- }
2007
+ export declare const RepositoryTriggerEventEnum: {
2008
+ readonly ALL: "all";
2009
+ readonly CREATE_REFERENCE: "createReference";
2010
+ readonly DELETE_REFERENCE: "deleteReference";
2011
+ readonly UPDATE_REFERENCE: "updateReference";
2012
+ };
2013
+ export type RepositoryTriggerEventEnum =
2014
+ (typeof RepositoryTriggerEventEnum)[keyof typeof RepositoryTriggerEventEnum];
1990
2015
  export interface RepositoryTrigger {
1991
2016
  name: string | undefined;
1992
2017
  destinationArn: string | undefined;
@@ -15,14 +15,16 @@ import {
15
15
  PullRequestStatusEnum,
16
16
  RepositoryTrigger,
17
17
  } from "./models_0";
18
- export declare enum OrderEnum {
19
- ASCENDING = "ascending",
20
- DESCENDING = "descending",
21
- }
22
- export declare enum SortByEnum {
23
- MODIFIED_DATE = "lastModifiedDate",
24
- REPOSITORY_NAME = "repositoryName",
25
- }
18
+ export declare const OrderEnum: {
19
+ readonly ASCENDING: "ascending";
20
+ readonly DESCENDING: "descending";
21
+ };
22
+ export type OrderEnum = (typeof OrderEnum)[keyof typeof OrderEnum];
23
+ export declare const SortByEnum: {
24
+ readonly MODIFIED_DATE: "lastModifiedDate";
25
+ readonly REPOSITORY_NAME: "repositoryName";
26
+ };
27
+ export type SortByEnum = (typeof SortByEnum)[keyof typeof SortByEnum];
26
28
  export interface ListRepositoriesInput {
27
29
  nextToken?: string;
28
30
  sortBy?: SortByEnum | string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codecommit",
3
3
  "description": "AWS SDK for JavaScript Codecommit Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.306.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",