Skip to content

Commit 7daa437

Browse files
Relase version 4.1.0 (#414)
* Update version 4.1.0 * update api * update api * test node 22 * update changelog * update docs --------- Co-authored-by: Joel Uong <[email protected]>
1 parent 50d3a21 commit 7daa437

File tree

1,015 files changed

+19765
-22726
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,015 files changed

+19765
-22726
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
## CHANGELOG
22

3+
## v4.1.0
4+
5+
### Enchancements
6+
- Support Node 22 [#412](https://github.com/SalesforceCommerceCloud/commerce-sdk/pull/412)
7+
8+
### API Changes
9+
10+
*Shopper Products*
11+
12+
* The `expand` query parameter now includes a new argument, `page_meta_tags`
13+
14+
*Shopper Search*
15+
16+
* The `expand` query parameter now includes a new argument, `page_meta_tags`
17+
18+
*Shopper Context*
19+
20+
* `X-Geolocation` header was added to `Shopper Context`
21+
22+
*CDN Zones API*
23+
24+
* Endpoints added
25+
| **Endpoint Name** | **Description** |
26+
| ------------- |-----------------------------------|
27+
| getCodeUploadCertificates | Returns all the mTLS certificates for the account |
28+
| createCodeUploadCertificate | Set up two-factor mTLS certificates for the account and associate the staging zone code upload hostname |
29+
| getCodeUploadCertificate | Returns the mTLS certificate for the given account's mTLS certificate ID |
30+
| deleteCodeUploadCertificate | Successfully deleted the mTLS certificate from the account |
31+
32+
333
## v4.0.0
434

535
### :warning: Planned API Changes :warning:

apis/cdn/cdn-api-process-apis/.metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/cdn-api-process-apis/1.0.32",
2+
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/cdn-api-process-apis/1.0.36",
33
"name": "CDN Zones",
44
"description": "Extend your eCDN beyond Business Manager configuration.",
55
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
66
"assetId": "cdn-api-process-apis",
7-
"version": "1.0.32",
7+
"version": "1.0.36",
88
"categories": {
99
"API layer": [
1010
"Process"

apis/cdn/cdn-api-process-apis/cdnapi-process-api.raml

Lines changed: 77 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ types:
7171
WAFRulePackage: !include dataTypes/WAFRulePackage.raml
7272
OriginHeaderModification: !include dataTypes/OriginHeaderModification.raml
7373
OriginHeaderModificationPutRequest: !include dataTypes/OriginHeaderModificationPutRequest.raml
74+
MtlsCertificateRequest: !include dataTypes/MtlsCertificateRequest.raml
75+
MtlsCertificateResponse: !include dataTypes/MtlsCertificateResponse.raml
76+
DCVDelegationRecord: !include dataTypes/DCVDelegationRecord.raml
7477

7578
ZonesEnvelope:
7679
type: CollectionResponseEnvelope
@@ -202,7 +205,17 @@ types:
202205
properties:
203206
data:
204207
type: OriginHeaderModification
205-
208+
MtlsCertificateResponseEnvelope:
209+
type: ItemResponseEnvelope
210+
properties:
211+
data:
212+
type: MtlsCertificateResponse
213+
MtlsCertificatesResponseEnvelope:
214+
type: CollectionResponseEnvelope
215+
properties:
216+
data:
217+
type: MtlsCertificateResponse[]
218+
206219
traits:
207220
hasUnauthorizedResponse: !include traits/HasUnauthorizedResponse.raml
208221
hasForbiddenAccessResponse: !include traits/HasForbiddenAccessResponse.raml
@@ -232,6 +245,61 @@ traits:
232245
example: !include /examples/zone/storefront-zone-create-response.raml
233246
securedBy:
234247
- CommerceCloudStandards.AmOAuth2: { scopes: [ sfcc.cdn-zones.rw ] }
248+
/mtls/code-upload-certificates:
249+
get:
250+
is: [hasBadRequestResponse, hasInternalServerErrorResponse, hasForbiddenAccessResponse, hasUnauthorizedResponse]
251+
displayName: getCodeUploadCertificates
252+
description: Returns all the mTLS certificates for the account.
253+
responses:
254+
'200':
255+
description: Successfully retrieved details of the mTLS certificates requested by the
256+
caller.
257+
body:
258+
application/json:
259+
type: MtlsCertificatesResponseEnvelope
260+
example: !include /examples/mtlsCodeUpload/mtls-codeupload-get-certificates-response.raml
261+
securedBy:
262+
- CommerceCloudStandards.AmOAuth2: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
263+
post:
264+
is: [hasBadRequestResponse, hasUnauthorizedResponse, hasForbiddenAccessResponse, hasInternalServerErrorResponse, hasResourceNotFoundResponse]
265+
displayName: createCodeUploadCertificate
266+
description: Set up two-factor mTLS certificates for the account and associate the staging zone code upload hostname.
267+
body:
268+
application/json:
269+
type: MtlsCertificateRequest
270+
example: !include /examples/mtlsCodeUpload/mtls-codeupload-post-certificate-request.raml
271+
responses:
272+
'201':
273+
description: Returns information about the uploaded mTLS certificate.
274+
body:
275+
application/json:
276+
type: MtlsCertificateResponseEnvelope
277+
example: !include /examples/mtlsCodeUpload/mtls-codeupload-get-certificate-response.raml
278+
securedBy:
279+
- CommerceCloudStandards.AmOAuth2: { scopes: [ sfcc.cdn-zones.rw ] }
280+
/mtls/code-upload-certificates/{mtlsCertificateId}:
281+
get:
282+
is: [hasBadRequestResponse, hasInternalServerErrorResponse, hasForbiddenAccessResponse, hasUnauthorizedResponse]
283+
displayName: getCodeUploadCertificate
284+
description: Returns the mTLS certificate for the given account's mTLS certificate ID.
285+
responses:
286+
'200':
287+
description: Successfully retrieved mTLS certificate information from the mTLS certificate ID requested by the caller.
288+
body:
289+
application/json:
290+
type: MtlsCertificateResponseEnvelope
291+
example: !include /examples/mtlsCodeUpload/mtls-codeupload-get-certificate-response.raml
292+
securedBy:
293+
- CommerceCloudStandards.AmOAuth2: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
294+
delete:
295+
is: [ hasResourceNotFoundResponse ]
296+
displayName: deleteCodeUploadCertificate
297+
description: Removes an mTLS certificate and associated hostname.
298+
responses:
299+
204:
300+
description: Successfully deleted the mTLS certificate from the account.
301+
securedBy:
302+
- CommerceCloudStandards.AmOAuth2: { scopes: [ sfcc.cdn-zones.rw ] }
235303
/zones/info:
236304
is: [hasUnauthorizedResponse, hasForbiddenAccessResponse, hasInternalServerErrorResponse]
237305
get:
@@ -975,7 +1043,7 @@ traits:
9751043
put:
9761044
is: [hasBadRequestResponse]
9771045
displayName: upsertOriginHeaderModification
978-
description: Upsert origin header modification.
1046+
description: Upsert origin header modification. Only the `mrt` type is supported.
9791047
body:
9801048
application/json:
9811049
type: OriginHeaderModificationPutRequest
@@ -998,7 +1066,7 @@ traits:
9981066
get:
9991067
is: [hasBadRequestResponse]
10001068
displayName: getOriginHeaderModification
1001-
description: Get origin header modification associated with a zone.
1069+
description: Get origin header modification associated with a zone. Only the `mrt` type is supported.
10021070
responses:
10031071
200:
10041072
description: Successfully returned the origin header modification associated with a zone.
@@ -1010,9 +1078,14 @@ traits:
10101078
- CommerceCloudStandards.AmOAuth2: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
10111079
delete:
10121080
displayName: deleteOriginHeaderModification
1013-
description: Delete the origin header modification associated with a zone.
1081+
description: Delete the origin header modification associated with a zone. Only the `mrt` type is supported.
10141082
responses:
10151083
204:
10161084
description: Successfully deleted the origin header modification associated with a zone.
10171085
securedBy:
10181086
- CommerceCloudStandards.AmOAuth2: { scopes: [ sfcc.cdn-zones.rw ] }
1087+
uriParameters:
1088+
type:
1089+
description: The type of origin header modification. Only the `mrt` type is supported.
1090+
type: string
1091+
example: mrt

apis/cdn/cdn-api-process-apis/dataTypes/Certificate.raml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,19 @@ properties:
6161
type: string
6262
enum: [ACTIVE, EXPIRED, PENDING, INITIALIZING, PENDING_VALIDATION, PENDING_ISSUANCE, PENDING_DEPLOYMENT]
6363
required: false
64+
wildcardCertificateVerificationTXTName:
65+
description: eCDN automatic renewal certificate verification txt name.
66+
type: string
67+
required: false
68+
wildcardCertificateVerificationTXTValue:
69+
description: eCDN automatic renewal certificate verification txt value.
70+
type: string
71+
required: false
72+
wildcardCertificateVerificationStatus:
73+
description: Current status of certificate verification.
74+
type: string
75+
enum: [ACTIVE, EXPIRED, PENDING, INITIALIZING, PENDING_VALIDATION, PENDING_ISSUANCE, PENDING_DEPLOYMENT]
76+
required: false
6477
customHostnameVerificationTXTName:
6578
description: Custom Hostname verification txt name.
6679
type: string
@@ -82,3 +95,9 @@ properties:
8295
type: string
8396
enum: [ACTIVE, EXPIRED, DELETED, PENDING, INITIALIZING, PENDING_VALIDATION, PENDING_ISSUANCE, PENDING_DEPLOYMENT, PENDING_DELETION, MOVED]
8497
required: false
98+
dcvDelegationRecords:
99+
description: eCDN automatic renewal certificate DCV delegation records
100+
type: array
101+
items:
102+
type: DCVDelegationRecord
103+
required: false

apis/cdn/cdn-api-process-apis/dataTypes/CertificateRequest.raml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ properties:
55
hostname:
66
description: Hostname that certificate needs to be applied to.
77
type: string
8+
bundleMethod:
9+
description: Bundle method of the custom certificate chain for verification.
10+
type: string
11+
required: false
812
certificateType:
913
description: Indicates certificate is custom or automatic certificate renewal by eCDN. Optional field, if nothing specified the default value is custom. Valid values are custom or automatic.
1014
type: string
@@ -25,3 +29,7 @@ properties:
2529
description: Certificate validation type is optional only for `certificateType` automatic, default value is `http`. Valid values are `http` or `txt`.
2630
type: string
2731
required: false
32+
wildcardHostname:
33+
description: Set to true for a wildcard custom hostname.
34+
type: boolean
35+
required: false
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#%RAML 1.0 DataType
2+
description: eCDN automatic renewal certificate DCV delegation records.
3+
type: object
4+
properties:
5+
dcvCname:
6+
description: DNS CNAME for Domain Control Validation.
7+
type: string
8+
required: false
9+
dcvCnameValue:
10+
description: DNS CNAME value for Domain Control Validation.
11+
type: string
12+
required: false

apis/cdn/cdn-api-process-apis/dataTypes/MRTRulePatchRequest.raml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#%RAML 1.0 DataType
2-
description: PATCH request for updating an MRT rule. You may use the PATCH request to update the rule's expression as well as disable/enable the rule.
2+
description: PATCH request for updating an MRT rule. You may use the PATCH request to update the rule's expression and description as well as disable/enable the rule.
33
type: object
44
properties:
55
enabled:
@@ -11,4 +11,9 @@ properties:
1111
description: The expression that determines the MRT rule's routing behavior.
1212
type: string
1313
example: (http.host eq \"dev-customer.salesforce.com\" and not ( http.request.uri.path matches \"^/path1/.*\" or http.request.uri.path matches \"^.*/path2/.*/products/.*\"))
14+
required: false
15+
description:
16+
description: The description of the rule. Optional.
17+
type: string
18+
example: Phased rollout rule for dev-customer.salesforce.com
1419
required: false

apis/cdn/cdn-api-process-apis/dataTypes/MRTRules.raml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ properties:
1010
description: The expression that determines the rule's routing behavior.
1111
type: string
1212
example: (http.host eq \"dev-customer.salesforce.com\" and not ( http.request.uri.path matches \"^/path1/.*\" or http.request.uri.path matches \"^.*/path2/.*/products/.*\"))
13+
description:
14+
description: The description of the rule.
15+
type: string
16+
example: Phased rollout rule for dev-customer.salesforce.com
17+
required: false
1318
lastUpdated:
1419
description: Date when the rule was last updated.
1520
type: datetime

apis/cdn/cdn-api-process-apis/dataTypes/MRTRulesPostRequest.raml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ properties:
99
expressions:
1010
description: An array containing the expressions for each MRT rule.
1111
type: string[]
12-
example: ["(http.host eq \"dev-customer.salesforce.com\" and not ( http.request.uri.path matches \"^/path1/.*\" or http.request.uri.path matches \"^.*/path2/.*/products/.*\"))"]
12+
example: ["(http.host eq \"dev-customer.salesforce.com\" and not ( http.request.uri.path matches \"^/path1/.*\" or http.request.uri.path matches \"^.*/path2/.*/products/.*\"))"]
13+
descriptions:
14+
description: An array containing the descriptions for each MRT rule. The number of descriptions provided must match the number of expressions provided. Optional.
15+
type: string[]
16+
example: ["Phased rollout rule for dev-customer.salesforce.com"]
17+
required: false

apis/cdn/cdn-api-process-apis/dataTypes/MRTRulesetPatchRequest.raml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ properties:
1515
description: An array containing the expressions for each MRT rule.
1616
type: string[]
1717
example: ["(http.host eq \"dev-customer.salesforce.com\" and not ( http.request.uri.path matches \"^/path1/.*\" or http.request.uri.path matches \"^.*/path2/.*/products/.*\"))"]
18+
required: false
19+
descriptions:
20+
description: An array containing the descriptions for each MRT rule. The number of descriptions provided must match the number of expressions provided. Optional.
21+
type: string[]
22+
example: ["Phased rollout rule for dev-customer.salesforce.com"]
1823
required: false

0 commit comments

Comments
 (0)