@aws-sdk/client-codeartifact 3.121.0 → 3.127.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/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +40 -67
- package/dist-es/protocols/Aws_restJson1.js +24 -51
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-codeartifact
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -46,16 +46,12 @@ const serializeAws_restJson1CopyPackageVersionsCommand = async (input, context)
|
|
|
46
46
|
};
|
|
47
47
|
let body;
|
|
48
48
|
body = JSON.stringify({
|
|
49
|
-
...(input.allowOverwrite
|
|
50
|
-
|
|
51
|
-
...(input.
|
|
52
|
-
input.includeFromUpstream !== null && { includeFromUpstream: input.includeFromUpstream }),
|
|
53
|
-
...(input.versionRevisions !== undefined &&
|
|
54
|
-
input.versionRevisions !== null && {
|
|
49
|
+
...(input.allowOverwrite != null && { allowOverwrite: input.allowOverwrite }),
|
|
50
|
+
...(input.includeFromUpstream != null && { includeFromUpstream: input.includeFromUpstream }),
|
|
51
|
+
...(input.versionRevisions != null && {
|
|
55
52
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
56
53
|
}),
|
|
57
|
-
...(input.versions
|
|
58
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
54
|
+
...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
59
55
|
});
|
|
60
56
|
return new protocol_http_1.HttpRequest({
|
|
61
57
|
protocol,
|
|
@@ -80,9 +76,8 @@ const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
|
|
|
80
76
|
};
|
|
81
77
|
let body;
|
|
82
78
|
body = JSON.stringify({
|
|
83
|
-
...(input.encryptionKey
|
|
84
|
-
...(input.tags
|
|
85
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
79
|
+
...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
|
|
80
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
86
81
|
});
|
|
87
82
|
return new protocol_http_1.HttpRequest({
|
|
88
83
|
protocol,
|
|
@@ -109,11 +104,9 @@ const serializeAws_restJson1CreateRepositoryCommand = async (input, context) =>
|
|
|
109
104
|
};
|
|
110
105
|
let body;
|
|
111
106
|
body = JSON.stringify({
|
|
112
|
-
...(input.description
|
|
113
|
-
...(input.tags
|
|
114
|
-
|
|
115
|
-
...(input.upstreams !== undefined &&
|
|
116
|
-
input.upstreams !== null && {
|
|
107
|
+
...(input.description != null && { description: input.description }),
|
|
108
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
109
|
+
...(input.upstreams != null && {
|
|
117
110
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
118
111
|
}),
|
|
119
112
|
});
|
|
@@ -188,10 +181,8 @@ const serializeAws_restJson1DeletePackageVersionsCommand = async (input, context
|
|
|
188
181
|
};
|
|
189
182
|
let body;
|
|
190
183
|
body = JSON.stringify({
|
|
191
|
-
...(input.expectedStatus
|
|
192
|
-
|
|
193
|
-
...(input.versions !== undefined &&
|
|
194
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
184
|
+
...(input.expectedStatus != null && { expectedStatus: input.expectedStatus }),
|
|
185
|
+
...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
195
186
|
});
|
|
196
187
|
return new protocol_http_1.HttpRequest({
|
|
197
188
|
protocol,
|
|
@@ -358,14 +349,11 @@ const serializeAws_restJson1DisposePackageVersionsCommand = async (input, contex
|
|
|
358
349
|
};
|
|
359
350
|
let body;
|
|
360
351
|
body = JSON.stringify({
|
|
361
|
-
...(input.expectedStatus
|
|
362
|
-
|
|
363
|
-
...(input.versionRevisions !== undefined &&
|
|
364
|
-
input.versionRevisions !== null && {
|
|
352
|
+
...(input.expectedStatus != null && { expectedStatus: input.expectedStatus }),
|
|
353
|
+
...(input.versionRevisions != null && {
|
|
365
354
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
366
355
|
}),
|
|
367
|
-
...(input.versions
|
|
368
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
356
|
+
...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
369
357
|
});
|
|
370
358
|
return new protocol_http_1.HttpRequest({
|
|
371
359
|
protocol,
|
|
@@ -529,8 +517,8 @@ const serializeAws_restJson1ListDomainsCommand = async (input, context) => {
|
|
|
529
517
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domains";
|
|
530
518
|
let body;
|
|
531
519
|
body = JSON.stringify({
|
|
532
|
-
...(input.maxResults
|
|
533
|
-
...(input.nextToken
|
|
520
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
521
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
534
522
|
});
|
|
535
523
|
return new protocol_http_1.HttpRequest({
|
|
536
524
|
protocol,
|
|
@@ -729,12 +717,10 @@ const serializeAws_restJson1PutDomainPermissionsPolicyCommand = async (input, co
|
|
|
729
717
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
|
|
730
718
|
let body;
|
|
731
719
|
body = JSON.stringify({
|
|
732
|
-
...(input.domain
|
|
733
|
-
...(input.domainOwner
|
|
734
|
-
...(input.policyDocument
|
|
735
|
-
|
|
736
|
-
...(input.policyRevision !== undefined &&
|
|
737
|
-
input.policyRevision !== null && { policyRevision: input.policyRevision }),
|
|
720
|
+
...(input.domain != null && { domain: input.domain }),
|
|
721
|
+
...(input.domainOwner != null && { domainOwner: input.domainOwner }),
|
|
722
|
+
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
723
|
+
...(input.policyRevision != null && { policyRevision: input.policyRevision }),
|
|
738
724
|
});
|
|
739
725
|
return new protocol_http_1.HttpRequest({
|
|
740
726
|
protocol,
|
|
@@ -760,10 +746,8 @@ const serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = async (input
|
|
|
760
746
|
};
|
|
761
747
|
let body;
|
|
762
748
|
body = JSON.stringify({
|
|
763
|
-
...(input.policyDocument
|
|
764
|
-
|
|
765
|
-
...(input.policyRevision !== undefined &&
|
|
766
|
-
input.policyRevision !== null && { policyRevision: input.policyRevision }),
|
|
749
|
+
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
750
|
+
...(input.policyRevision != null && { policyRevision: input.policyRevision }),
|
|
767
751
|
});
|
|
768
752
|
return new protocol_http_1.HttpRequest({
|
|
769
753
|
protocol,
|
|
@@ -788,8 +772,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
788
772
|
};
|
|
789
773
|
let body;
|
|
790
774
|
body = JSON.stringify({
|
|
791
|
-
...(input.tags
|
|
792
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
775
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
|
|
793
776
|
});
|
|
794
777
|
return new protocol_http_1.HttpRequest({
|
|
795
778
|
protocol,
|
|
@@ -814,8 +797,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
814
797
|
};
|
|
815
798
|
let body;
|
|
816
799
|
body = JSON.stringify({
|
|
817
|
-
...(input.tagKeys
|
|
818
|
-
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
|
|
800
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
|
|
819
801
|
});
|
|
820
802
|
return new protocol_http_1.HttpRequest({
|
|
821
803
|
protocol,
|
|
@@ -845,15 +827,12 @@ const serializeAws_restJson1UpdatePackageVersionsStatusCommand = async (input, c
|
|
|
845
827
|
};
|
|
846
828
|
let body;
|
|
847
829
|
body = JSON.stringify({
|
|
848
|
-
...(input.expectedStatus
|
|
849
|
-
|
|
850
|
-
...(input.
|
|
851
|
-
...(input.versionRevisions !== undefined &&
|
|
852
|
-
input.versionRevisions !== null && {
|
|
830
|
+
...(input.expectedStatus != null && { expectedStatus: input.expectedStatus }),
|
|
831
|
+
...(input.targetStatus != null && { targetStatus: input.targetStatus }),
|
|
832
|
+
...(input.versionRevisions != null && {
|
|
853
833
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
854
834
|
}),
|
|
855
|
-
...(input.versions
|
|
856
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
835
|
+
...(input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) }),
|
|
857
836
|
});
|
|
858
837
|
return new protocol_http_1.HttpRequest({
|
|
859
838
|
protocol,
|
|
@@ -880,9 +859,8 @@ const serializeAws_restJson1UpdateRepositoryCommand = async (input, context) =>
|
|
|
880
859
|
};
|
|
881
860
|
let body;
|
|
882
861
|
body = JSON.stringify({
|
|
883
|
-
...(input.description
|
|
884
|
-
...(input.upstreams
|
|
885
|
-
input.upstreams !== null && {
|
|
862
|
+
...(input.description != null && { description: input.description }),
|
|
863
|
+
...(input.upstreams != null && {
|
|
886
864
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
887
865
|
}),
|
|
888
866
|
});
|
|
@@ -2915,8 +2893,8 @@ const serializeAws_restJson1PackageVersionRevisionMap = (input, context) => {
|
|
|
2915
2893
|
};
|
|
2916
2894
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
2917
2895
|
return {
|
|
2918
|
-
...(input.key
|
|
2919
|
-
...(input.value
|
|
2896
|
+
...(input.key != null && { key: input.key }),
|
|
2897
|
+
...(input.value != null && { value: input.value }),
|
|
2920
2898
|
};
|
|
2921
2899
|
};
|
|
2922
2900
|
const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
@@ -2941,8 +2919,7 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
2941
2919
|
};
|
|
2942
2920
|
const serializeAws_restJson1UpstreamRepository = (input, context) => {
|
|
2943
2921
|
return {
|
|
2944
|
-
...(input.repositoryName
|
|
2945
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2922
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
2946
2923
|
};
|
|
2947
2924
|
};
|
|
2948
2925
|
const serializeAws_restJson1UpstreamRepositoryList = (input, context) => {
|
|
@@ -2968,9 +2945,7 @@ const deserializeAws_restJson1AssetHashes = (output, context) => {
|
|
|
2968
2945
|
};
|
|
2969
2946
|
const deserializeAws_restJson1AssetSummary = (output, context) => {
|
|
2970
2947
|
return {
|
|
2971
|
-
hashes: output.hashes
|
|
2972
|
-
? deserializeAws_restJson1AssetHashes(output.hashes, context)
|
|
2973
|
-
: undefined,
|
|
2948
|
+
hashes: output.hashes != null ? deserializeAws_restJson1AssetHashes(output.hashes, context) : undefined,
|
|
2974
2949
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2975
2950
|
size: (0, smithy_client_1.expectLong)(output.size),
|
|
2976
2951
|
};
|
|
@@ -2990,7 +2965,7 @@ const deserializeAws_restJson1DomainDescription = (output, context) => {
|
|
|
2990
2965
|
return {
|
|
2991
2966
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2992
2967
|
assetSizeBytes: (0, smithy_client_1.expectLong)(output.assetSizeBytes),
|
|
2993
|
-
createdTime: output.createdTime
|
|
2968
|
+
createdTime: output.createdTime != null
|
|
2994
2969
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdTime)))
|
|
2995
2970
|
: undefined,
|
|
2996
2971
|
encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
|
|
@@ -3004,7 +2979,7 @@ const deserializeAws_restJson1DomainDescription = (output, context) => {
|
|
|
3004
2979
|
const deserializeAws_restJson1DomainSummary = (output, context) => {
|
|
3005
2980
|
return {
|
|
3006
2981
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3007
|
-
createdTime: output.createdTime
|
|
2982
|
+
createdTime: output.createdTime != null
|
|
3008
2983
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdTime)))
|
|
3009
2984
|
: undefined,
|
|
3010
2985
|
encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
|
|
@@ -3083,12 +3058,10 @@ const deserializeAws_restJson1PackageVersionDescription = (output, context) => {
|
|
|
3083
3058
|
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
3084
3059
|
format: (0, smithy_client_1.expectString)(output.format),
|
|
3085
3060
|
homePage: (0, smithy_client_1.expectString)(output.homePage),
|
|
3086
|
-
licenses: output.licenses
|
|
3087
|
-
? deserializeAws_restJson1LicenseInfoList(output.licenses, context)
|
|
3088
|
-
: undefined,
|
|
3061
|
+
licenses: output.licenses != null ? deserializeAws_restJson1LicenseInfoList(output.licenses, context) : undefined,
|
|
3089
3062
|
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
3090
3063
|
packageName: (0, smithy_client_1.expectString)(output.packageName),
|
|
3091
|
-
publishedTime: output.publishedTime
|
|
3064
|
+
publishedTime: output.publishedTime != null
|
|
3092
3065
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.publishedTime)))
|
|
3093
3066
|
: undefined,
|
|
3094
3067
|
revision: (0, smithy_client_1.expectString)(output.revision),
|
|
@@ -3140,11 +3113,11 @@ const deserializeAws_restJson1RepositoryDescription = (output, context) => {
|
|
|
3140
3113
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3141
3114
|
domainName: (0, smithy_client_1.expectString)(output.domainName),
|
|
3142
3115
|
domainOwner: (0, smithy_client_1.expectString)(output.domainOwner),
|
|
3143
|
-
externalConnections: output.externalConnections
|
|
3116
|
+
externalConnections: output.externalConnections != null
|
|
3144
3117
|
? deserializeAws_restJson1RepositoryExternalConnectionInfoList(output.externalConnections, context)
|
|
3145
3118
|
: undefined,
|
|
3146
3119
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3147
|
-
upstreams: output.upstreams
|
|
3120
|
+
upstreams: output.upstreams != null
|
|
3148
3121
|
? deserializeAws_restJson1UpstreamRepositoryInfoList(output.upstreams, context)
|
|
3149
3122
|
: undefined,
|
|
3150
3123
|
};
|
|
@@ -38,13 +38,9 @@ export var serializeAws_restJson1CopyPackageVersionsCommand = function (input, c
|
|
|
38
38
|
};
|
|
39
39
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/copy";
|
|
40
40
|
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.sourceRepository !== undefined && { "source-repository": input.sourceRepository })), (input.destinationRepository !== undefined && { "destination-repository": input.destinationRepository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
41
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.allowOverwrite
|
|
42
|
-
input.allowOverwrite !== null && { allowOverwrite: input.allowOverwrite })), (input.includeFromUpstream !== undefined &&
|
|
43
|
-
input.includeFromUpstream !== null && { includeFromUpstream: input.includeFromUpstream })), (input.versionRevisions !== undefined &&
|
|
44
|
-
input.versionRevisions !== null && {
|
|
41
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.allowOverwrite != null && { allowOverwrite: input.allowOverwrite })), (input.includeFromUpstream != null && { includeFromUpstream: input.includeFromUpstream })), (input.versionRevisions != null && {
|
|
45
42
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
46
|
-
})), (input.versions
|
|
47
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
43
|
+
})), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
48
44
|
return [2, new __HttpRequest({
|
|
49
45
|
protocol: protocol,
|
|
50
46
|
hostname: hostname,
|
|
@@ -70,8 +66,7 @@ export var serializeAws_restJson1CreateDomainCommand = function (input, context)
|
|
|
70
66
|
};
|
|
71
67
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain";
|
|
72
68
|
query = __assign({}, (input.domain !== undefined && { domain: input.domain }));
|
|
73
|
-
body = JSON.stringify(__assign(__assign({}, (input.encryptionKey
|
|
74
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
69
|
+
body = JSON.stringify(__assign(__assign({}, (input.encryptionKey != null && { encryptionKey: input.encryptionKey })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
75
70
|
return [2, new __HttpRequest({
|
|
76
71
|
protocol: protocol,
|
|
77
72
|
hostname: hostname,
|
|
@@ -97,9 +92,7 @@ export var serializeAws_restJson1CreateRepositoryCommand = function (input, cont
|
|
|
97
92
|
};
|
|
98
93
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository";
|
|
99
94
|
query = __assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository }));
|
|
100
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.description
|
|
101
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.upstreams !== undefined &&
|
|
102
|
-
input.upstreams !== null && {
|
|
95
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.upstreams != null && {
|
|
103
96
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
104
97
|
})));
|
|
105
98
|
return [2, new __HttpRequest({
|
|
@@ -173,9 +166,7 @@ export var serializeAws_restJson1DeletePackageVersionsCommand = function (input,
|
|
|
173
166
|
};
|
|
174
167
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/delete";
|
|
175
168
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
176
|
-
body = JSON.stringify(__assign(__assign({}, (input.expectedStatus
|
|
177
|
-
input.expectedStatus !== null && { expectedStatus: input.expectedStatus })), (input.versions !== undefined &&
|
|
178
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
169
|
+
body = JSON.stringify(__assign(__assign({}, (input.expectedStatus != null && { expectedStatus: input.expectedStatus })), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
179
170
|
return [2, new __HttpRequest({
|
|
180
171
|
protocol: protocol,
|
|
181
172
|
hostname: hostname,
|
|
@@ -339,12 +330,9 @@ export var serializeAws_restJson1DisposePackageVersionsCommand = function (input
|
|
|
339
330
|
};
|
|
340
331
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/dispose";
|
|
341
332
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
342
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.expectedStatus
|
|
343
|
-
input.expectedStatus !== null && { expectedStatus: input.expectedStatus })), (input.versionRevisions !== undefined &&
|
|
344
|
-
input.versionRevisions !== null && {
|
|
333
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.expectedStatus != null && { expectedStatus: input.expectedStatus })), (input.versionRevisions != null && {
|
|
345
334
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
346
|
-
})), (input.versions
|
|
347
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
335
|
+
})), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
348
336
|
return [2, new __HttpRequest({
|
|
349
337
|
protocol: protocol,
|
|
350
338
|
hostname: hostname,
|
|
@@ -507,7 +495,7 @@ export var serializeAws_restJson1ListDomainsCommand = function (input, context)
|
|
|
507
495
|
"content-type": "application/json",
|
|
508
496
|
};
|
|
509
497
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domains";
|
|
510
|
-
body = JSON.stringify(__assign(__assign({}, (input.maxResults
|
|
498
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
511
499
|
return [2, new __HttpRequest({
|
|
512
500
|
protocol: protocol,
|
|
513
501
|
hostname: hostname,
|
|
@@ -692,9 +680,7 @@ export var serializeAws_restJson1PutDomainPermissionsPolicyCommand = function (i
|
|
|
692
680
|
"content-type": "application/json",
|
|
693
681
|
};
|
|
694
682
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domain/permissions/policy";
|
|
695
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.domain
|
|
696
|
-
input.policyDocument !== null && { policyDocument: input.policyDocument })), (input.policyRevision !== undefined &&
|
|
697
|
-
input.policyRevision !== null && { policyRevision: input.policyRevision })));
|
|
683
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.domain != null && { domain: input.domain })), (input.domainOwner != null && { domainOwner: input.domainOwner })), (input.policyDocument != null && { policyDocument: input.policyDocument })), (input.policyRevision != null && { policyRevision: input.policyRevision })));
|
|
698
684
|
return [2, new __HttpRequest({
|
|
699
685
|
protocol: protocol,
|
|
700
686
|
hostname: hostname,
|
|
@@ -719,9 +705,7 @@ export var serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = functio
|
|
|
719
705
|
};
|
|
720
706
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository/permissions/policy";
|
|
721
707
|
query = __assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository }));
|
|
722
|
-
body = JSON.stringify(__assign(__assign({}, (input.policyDocument
|
|
723
|
-
input.policyDocument !== null && { policyDocument: input.policyDocument })), (input.policyRevision !== undefined &&
|
|
724
|
-
input.policyRevision !== null && { policyRevision: input.policyRevision })));
|
|
708
|
+
body = JSON.stringify(__assign(__assign({}, (input.policyDocument != null && { policyDocument: input.policyDocument })), (input.policyRevision != null && { policyRevision: input.policyRevision })));
|
|
725
709
|
return [2, new __HttpRequest({
|
|
726
710
|
protocol: protocol,
|
|
727
711
|
hostname: hostname,
|
|
@@ -747,8 +731,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
747
731
|
};
|
|
748
732
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tag";
|
|
749
733
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
750
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
751
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
734
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
752
735
|
return [2, new __HttpRequest({
|
|
753
736
|
protocol: protocol,
|
|
754
737
|
hostname: hostname,
|
|
@@ -774,8 +757,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
774
757
|
};
|
|
775
758
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/untag";
|
|
776
759
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
777
|
-
body = JSON.stringify(__assign({}, (input.tagKeys
|
|
778
|
-
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
760
|
+
body = JSON.stringify(__assign({}, (input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
779
761
|
return [2, new __HttpRequest({
|
|
780
762
|
protocol: protocol,
|
|
781
763
|
hostname: hostname,
|
|
@@ -801,12 +783,9 @@ export var serializeAws_restJson1UpdatePackageVersionsStatusCommand = function (
|
|
|
801
783
|
};
|
|
802
784
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/package/versions/update_status";
|
|
803
785
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository })), (input.format !== undefined && { format: input.format })), (input.namespace !== undefined && { namespace: input.namespace })), (input.package !== undefined && { package: input.package }));
|
|
804
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.expectedStatus
|
|
805
|
-
input.expectedStatus !== null && { expectedStatus: input.expectedStatus })), (input.targetStatus !== undefined && input.targetStatus !== null && { targetStatus: input.targetStatus })), (input.versionRevisions !== undefined &&
|
|
806
|
-
input.versionRevisions !== null && {
|
|
786
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.expectedStatus != null && { expectedStatus: input.expectedStatus })), (input.targetStatus != null && { targetStatus: input.targetStatus })), (input.versionRevisions != null && {
|
|
807
787
|
versionRevisions: serializeAws_restJson1PackageVersionRevisionMap(input.versionRevisions, context),
|
|
808
|
-
})), (input.versions
|
|
809
|
-
input.versions !== null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
788
|
+
})), (input.versions != null && { versions: serializeAws_restJson1PackageVersionList(input.versions, context) })));
|
|
810
789
|
return [2, new __HttpRequest({
|
|
811
790
|
protocol: protocol,
|
|
812
791
|
hostname: hostname,
|
|
@@ -832,8 +811,7 @@ export var serializeAws_restJson1UpdateRepositoryCommand = function (input, cont
|
|
|
832
811
|
};
|
|
833
812
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/repository";
|
|
834
813
|
query = __assign(__assign(__assign({}, (input.domain !== undefined && { domain: input.domain })), (input.domainOwner !== undefined && { "domain-owner": input.domainOwner })), (input.repository !== undefined && { repository: input.repository }));
|
|
835
|
-
body = JSON.stringify(__assign(__assign({}, (input.description
|
|
836
|
-
input.upstreams !== null && {
|
|
814
|
+
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.upstreams != null && {
|
|
837
815
|
upstreams: serializeAws_restJson1UpstreamRepositoryList(input.upstreams, context),
|
|
838
816
|
})));
|
|
839
817
|
return [2, new __HttpRequest({
|
|
@@ -3655,7 +3633,7 @@ var serializeAws_restJson1PackageVersionRevisionMap = function (input, context)
|
|
|
3655
3633
|
}, {});
|
|
3656
3634
|
};
|
|
3657
3635
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
3658
|
-
return __assign(__assign({}, (input.key
|
|
3636
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
3659
3637
|
};
|
|
3660
3638
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
3661
3639
|
return input
|
|
@@ -3678,8 +3656,7 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
3678
3656
|
});
|
|
3679
3657
|
};
|
|
3680
3658
|
var serializeAws_restJson1UpstreamRepository = function (input, context) {
|
|
3681
|
-
return __assign({}, (input.repositoryName
|
|
3682
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
3659
|
+
return __assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
3683
3660
|
};
|
|
3684
3661
|
var serializeAws_restJson1UpstreamRepositoryList = function (input, context) {
|
|
3685
3662
|
return input
|
|
@@ -3703,9 +3680,7 @@ var deserializeAws_restJson1AssetHashes = function (output, context) {
|
|
|
3703
3680
|
};
|
|
3704
3681
|
var deserializeAws_restJson1AssetSummary = function (output, context) {
|
|
3705
3682
|
return {
|
|
3706
|
-
hashes: output.hashes
|
|
3707
|
-
? deserializeAws_restJson1AssetHashes(output.hashes, context)
|
|
3708
|
-
: undefined,
|
|
3683
|
+
hashes: output.hashes != null ? deserializeAws_restJson1AssetHashes(output.hashes, context) : undefined,
|
|
3709
3684
|
name: __expectString(output.name),
|
|
3710
3685
|
size: __expectLong(output.size),
|
|
3711
3686
|
};
|
|
@@ -3725,7 +3700,7 @@ var deserializeAws_restJson1DomainDescription = function (output, context) {
|
|
|
3725
3700
|
return {
|
|
3726
3701
|
arn: __expectString(output.arn),
|
|
3727
3702
|
assetSizeBytes: __expectLong(output.assetSizeBytes),
|
|
3728
|
-
createdTime: output.createdTime
|
|
3703
|
+
createdTime: output.createdTime != null
|
|
3729
3704
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdTime)))
|
|
3730
3705
|
: undefined,
|
|
3731
3706
|
encryptionKey: __expectString(output.encryptionKey),
|
|
@@ -3739,7 +3714,7 @@ var deserializeAws_restJson1DomainDescription = function (output, context) {
|
|
|
3739
3714
|
var deserializeAws_restJson1DomainSummary = function (output, context) {
|
|
3740
3715
|
return {
|
|
3741
3716
|
arn: __expectString(output.arn),
|
|
3742
|
-
createdTime: output.createdTime
|
|
3717
|
+
createdTime: output.createdTime != null
|
|
3743
3718
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdTime)))
|
|
3744
3719
|
: undefined,
|
|
3745
3720
|
encryptionKey: __expectString(output.encryptionKey),
|
|
@@ -3818,12 +3793,10 @@ var deserializeAws_restJson1PackageVersionDescription = function (output, contex
|
|
|
3818
3793
|
displayName: __expectString(output.displayName),
|
|
3819
3794
|
format: __expectString(output.format),
|
|
3820
3795
|
homePage: __expectString(output.homePage),
|
|
3821
|
-
licenses: output.licenses
|
|
3822
|
-
? deserializeAws_restJson1LicenseInfoList(output.licenses, context)
|
|
3823
|
-
: undefined,
|
|
3796
|
+
licenses: output.licenses != null ? deserializeAws_restJson1LicenseInfoList(output.licenses, context) : undefined,
|
|
3824
3797
|
namespace: __expectString(output.namespace),
|
|
3825
3798
|
packageName: __expectString(output.packageName),
|
|
3826
|
-
publishedTime: output.publishedTime
|
|
3799
|
+
publishedTime: output.publishedTime != null
|
|
3827
3800
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.publishedTime)))
|
|
3828
3801
|
: undefined,
|
|
3829
3802
|
revision: __expectString(output.revision),
|
|
@@ -3874,11 +3847,11 @@ var deserializeAws_restJson1RepositoryDescription = function (output, context) {
|
|
|
3874
3847
|
description: __expectString(output.description),
|
|
3875
3848
|
domainName: __expectString(output.domainName),
|
|
3876
3849
|
domainOwner: __expectString(output.domainOwner),
|
|
3877
|
-
externalConnections: output.externalConnections
|
|
3850
|
+
externalConnections: output.externalConnections != null
|
|
3878
3851
|
? deserializeAws_restJson1RepositoryExternalConnectionInfoList(output.externalConnections, context)
|
|
3879
3852
|
: undefined,
|
|
3880
3853
|
name: __expectString(output.name),
|
|
3881
|
-
upstreams: output.upstreams
|
|
3854
|
+
upstreams: output.upstreams != null
|
|
3882
3855
|
? deserializeAws_restJson1UpstreamRepositoryInfoList(output.upstreams, context)
|
|
3883
3856
|
: undefined,
|
|
3884
3857
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codeartifact",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codeartifact Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|