Skip to content

Commit

Permalink
Merge pull request #392 from SalesforceCommerceCloud/release/20230915
Browse files Browse the repository at this point in the history
Release v2.11.1 @W-14129454@
  • Loading branch information
joeluong-sfcc authored Sep 18, 2023
2 parents 2cb7ba1 + 9d40e0d commit 0f50d2e
Show file tree
Hide file tree
Showing 64 changed files with 623 additions and 746 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ only use JavaScript, or if you use TypeScript but only import the client classes
then your usage **will not change**. You will likely only need to make changes if
you import the type definitions directly.

### v2.11.1

#### Bug fixes

- Fix `expand` query parameter for `shopper-products`
- Remove `retrieveCredQualityUserInfo` endpoint from `shopper-login` as this functionality was removed from SLAS

### v2.11.0

#### API Changes
Expand Down
4 changes: 2 additions & 2 deletions apis/customer/shopper-login/.metadata.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/shopper-login/1.39.16",
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/shopper-login/1.39.17",
"name": "Shopper Login and API Access Service",
"description": "Enable shoppers to log in more easily, stay logged in for longer, and get a more fluid and personalized shopping experience powered by Shopper APIs.",
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
"assetId": "shopper-login",
"version": "1.39.16",
"version": "1.39.17",
"categories": {
"API layer": [
"Process"
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion apis/customer/shopper-login/exchange.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"main":"shopper-login.raml","name":"Shopper Login and API Access Service","classifier":"raml","tags":[],"dependencies":[{"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"api-standards","version":"1.1.15"},{"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"commerce-cloud-standards","version":"1.0.24"}],"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"shopper-login","version":"1.39.16","apiVersion":"v1","originalFormatVersion":"1.0","organizationId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","metadata":{"projectId":"2f481347-34d0-4264-8ab9-efedb15c99b5","branchId":"master","commitId":"65c646fd39c7a1926a64c1b9d96ec16fb6daf5f9"}}
{"main":"shopper-login.raml","name":"Shopper Login and API Access Service","classifier":"raml","tags":[],"dependencies":[{"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"api-standards","version":"1.1.15"},{"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"commerce-cloud-standards","version":"1.0.24"}],"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"shopper-login","version":"1.39.17","apiVersion":"v1","originalFormatVersion":"1.0","organizationId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","metadata":{"projectId":"2f481347-34d0-4264-8ab9-efedb15c99b5","branchId":"master","commitId":"131b735bfc59982beb1aefc05dd9833f32a5a1d4"}}
107 changes: 11 additions & 96 deletions apis/customer/shopper-login/shopper-login.raml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ types:
description: Remaining access token expiry time, in seconds.
type: integer
example: 900
refresh_token_expires_in:
description: Remaining refresh token expiry time, in seconds.
type: number
example: 2592000
token_type:
description: Token Type
type: TokenType
Expand Down Expand Up @@ -596,104 +600,8 @@ types:
minLength: 43
maxLength: 128
example: "krc5G3_5lRUcXDUzFZQ88oJA_-ZmlHWkyGsgOrSLEWg"
CredQualityUserResponse:
properties:
tenantId:
type: string
example: "aaaa_prd"
username:
type: string
example: "samantha.sampleson"
email:
type: string
example: "samantha.sampleson@example.com"
credQualityMeasure:
type: integer
example: 1024
pwdStrengthMeasure:
type: integer
example: 12
pwdQualityMeasure:
type: integer
example: 0
credChangeCount:
type: integer
example: 0
loginCount:
type: integer
example: 0
lastLoginDatetime:
type: datetime
example: 2021-08-18T16:41:41.090Z
lastCredCheckDatetime:
type: datetime
example: 2021-02-18T16:41:41.090Z
/organizations/{organizationId}:
type: CommerceCloudStandards.Organization
/cred-qual/user:
description: description
get:
description: Get credential quality statistics for a user.
displayName: retrieveCredQualityUserInfo
is:
- SlasRateLimit:
responseStatus: 303
responseStatus2: 400
responseStatus3: 401
responseStatus4: 500
securedBy:
- CommerceCloudStandards.ShopperToken:
{
Bearer eyJ2ZXIiOiIxLjAiLCJraWQiOiI0ZTQyNTFkOS0zM2Y2LTRjMTMtYjZmZC1mOWJkNTJmYTZhNDciLCJ0eXAiOiJqd3QiLCJjbHYiOiJKMi4xLjAiLCJhbGciOiJFUzI1NiJ9.eyJhdXQiOiJHVUlEIiwic2NwIjoic2ZjYy5wcm9kdWN0cy5ybyBzZmNjLmNhdGFsb2dzLnJvIHNmY2Muc2hvcHBlci5ydyIsInN1YiI6ImNjLXNsYXM6OnNsc2FfZGV2OjpzY2lkOjU1M2FjOGFjLTRkYjktNGVkMy04MjVjLTNhZTNiZjVkMzI3Yjo6dXNpZDoxY2E3OWZiNi0xYjIyLTRmOWItOGJiNi05YmU5NWNjMjA4NjMiLCJjdHgiOiJzbGFzLm5vdF9mb3JfZXh0ZXJuYWxfdXNlIiwiaXNzIjoic2xhcy9kZXYvc2xzYV9kZXYiLCJpc3QiOjEsImF1ZCI6ImNvbW1lcmNlY2xvdWQvZGV2L3Nsc2FfZGV2IiwibmJmIjoxNTk0NzY0MDgwLCJzdHkiOiJVc2VyIiwiaXNiIjoidWlkbzpzbGFzOjp1cG46R3Vlc3Q6OnVpZG46R3Vlc3QgVXNlciIsImV4cCI6MTU5NDc2NTkxMCwiaWF0IjoxNTk0NzY0MTEwLCJqdGkiOiJDMkMxNjM0NTE0NTEwLTE3MTQzMTg2NzY0MjcwNTcyNjQ2NTYxMzgifQ.UVYAsWXCn3hoUPy8vLlc7O96RZEHD3N3ZgdNH-ZVvJ1G-R6uJ2VPrYvwKmYXF41Ujm2bo83AYOHVqEEEPT8Kgw,
}
queryParameters:
username:
description: User's login ID or email address.
type: string
example: "samantha.sampleson@example.com"
responses:
200:
description: !include credential-quality-statistics-description.md
body:
application/json:
type: CredQualityUserResponse
example: |
{
"tenantId": "aaaa_prd",
"username": "samantha.sampleson@example.com",
"email": "samantha.sampleson@example.com",
"credQualityMeasure": 0,
"pwdStrengthMeasure": 0,
"pwdQualityMeasure": 0,
"credChangeCount": 0,
"loginCount": 0,
"lastLoginDatetime": "2021-02-18T16:41:41.090Z",
"lastCredCheckDatetime": "2021-02-18T16:41:41.090Z",
"atoScore": 3,
"atoLastDatetime": "2021-02-18T16:41:41.090Z",
"atoLastSourceIp": "",
"atoScoreHistory": "5, 6, 7"
}
400:
description: Bad Request
body:
application/problem+json:
type: Oauth2ErrorResponse
example: |
{
"error": "invalid_request",
"error_description": "Bad or missing organization ID."
}
404:
description: Unauthorized
body:
application/problem+json:
type: Oauth2ErrorResponse
example: |
{
"error": "invalid_client",
"error_description": "Basic Authorization failed."
}
/oauth2:
/login:
description: |
Expand Down Expand Up @@ -901,6 +809,7 @@ types:
"id_token": "null",
"refresh_token": "EnL9U2f3-WiVPwL60CFBI21UY_oxWAwX5JkgO-X12Vs",
"expires_in": 0,
"refresh_token_expires_in": 0,
"token_type": "Bearer",
"usid": "null",
"customer_id": "null",
Expand Down Expand Up @@ -1107,6 +1016,7 @@ types:
"id_token": "eyJraWQiOiI3NGU2YjMxZS1lYTczLTQ3OTYtOWRkYi1jMDJmZGI4ZDgwYmUiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ1c2lkOmQ1MDBhMzY5LTc1MWQtNDkzYy1iNDAzLThmOThmYjg3MTdiNiIsImF1ZCI6IjU1M2FjOGFjLTRkYjktNGVkMy04MjVjLTNhZTNiZjVkMzI3YiIsImlzcyI6ImRldi51cy5zaG9wcGVyLmNjLnNhbGVzZm9yY2UuY29tIiwibmFtZSI6ImJsYWlyLnNsYXMudGVzdEBnbWFpbC5jb20iLCJleHAiOjE1OTExMTE0MzgsImlhdCI6MTU5MTEwOTYzOCwiZW1haWwiOiJibGFpci5zbGFzLnRlc3RAZ21haWwuY29tIn0.KgpAcq-G9Lz7IGnjkJlaFLFXYncVCwcVrRIuy3bEfgzRozqaDRvAori4oOz4RtgYjmoc5x2euoisHL0mVnHgPKOdYBty1wTJqneJEQt6hP4Kp0KFciID_ILCi-DE8VWS5t0NknnMP_iKhIkqcRL48iwPFUWkWA6AEWxE_yvJLNRLithsSxsx7EfBfpD8Hr2b5tMEwImQNmJNYGRTI4LSmcYspBORvJoAnfGpMC0kglxl40bhf5j4ItX4_DiWQC4zaGYD-HJV4BDr6C7iGCs5ZVPypF0yQD3iBio26fwj9Ys5WF9XMtPtqET2kqsz6fDC5GkE6HTUHH_r87jxbDq-8w",
"refresh_token": "EgMYpjfFKdlSy-a3PYeyihmP95IpIp3FaDpPmVH1yu8.lahomBi7zJbRa6yKAuAAiKu3lprTPsEueKwqcBvhRLU",
"expires_in": 900,
"refresh_token_expires_in": 7776000,
"token_type": "Bearer",
"usid": "18cda486-fe32-4e27-888b-6e4f89938e67",
"customer_id": "1000005",
Expand Down Expand Up @@ -1175,6 +1085,7 @@ types:
"id_token": "eyJraWQiOiI3NGU2YjMxZS1lYTczLTQ3OTYtOWRkYi1jMDJmZGI4ZDgwYmUiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ1c2lkOmQ1MDBhMzY5LTc1MWQtNDkzYy1iNDAzLThmOThmYjg3MTdiNiIsImF1ZCI6IjU1M2FjOGFjLTRkYjktNGVkMy04MjVjLTNhZTNiZjVkMzI3YiIsImlzcyI6ImRldi51cy5zaG9wcGVyLmNjLnNhbGVzZm9yY2UuY29tIiwibmFtZSI6ImJsYWlyLnNsYXMudGVzdEBnbWFpbC5jb20iLCJleHAiOjE1OTExMTE0MzgsImlhdCI6MTU5MTEwOTYzOCwiZW1haWwiOiJibGFpci5zbGFzLnRlc3RAZ21haWwuY29tIn0.KgpAcq-G9Lz7IGnjkJlaFLFXYncVCwcVrRIuy3bEfgzRozqaDRvAori4oOz4RtgYjmoc5x2euoisHL0mVnHgPKOdYBty1wTJqneJEQt6hP4Kp0KFciID_ILCi-DE8VWS5t0NknnMP_iKhIkqcRL48iwPFUWkWA6AEWxE_yvJLNRLithsSxsx7EfBfpD8Hr2b5tMEwImQNmJNYGRTI4LSmcYspBORvJoAnfGpMC0kglxl40bhf5j4ItX4_DiWQC4zaGYD-HJV4BDr6C7iGCs5ZVPypF0yQD3iBio26fwj9Ys5WF9XMtPtqET2kqsz6fDC5GkE6HTUHH_r87jxbDq-8w",
"refresh_token": "EgMYpjfFKdlSy-a3PYeyihmP95IpIp3FaDpPmVH1yu8.lahomBi7zJbRa6yKAuAAiKu3lprTPsEueKwqcBvhRLU",
"expires_in": 900,
"refresh_token_expires_in": 7776000,
"token_type": "Bearer",
"usid": "18cda486-fe32-4e27-888b-6e4f89938e67",
"customer_id": "1000005",
Expand Down Expand Up @@ -1249,6 +1160,7 @@ types:
"id_token": "eyJraWQiOiI3NGU2YjMxZS1lYTczLTQ3OTYtOWRkYi1jMDJmZGI4ZDgwYmUiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ1c2lkOmQ1MDBhMzY5LTc1MWQtNDkzYy1iNDAzLThmOThmYjg3MTdiNiIsImF1ZCI6IjU1M2FjOGFjLTRkYjktNGVkMy04MjVjLTNhZTNiZjVkMzI3YiIsImlzcyI6ImRldi51cy5zaG9wcGVyLmNjLnNhbGVzZm9yY2UuY29tIiwibmFtZSI6ImJsYWlyLnNsYXMudGVzdEBnbWFpbC5jb20iLCJleHAiOjE1OTExMTE0MzgsImlhdCI6MTU5MTEwOTYzOCwiZW1haWwiOiJibGFpci5zbGFzLnRlc3RAZ21haWwuY29tIn0.KgpAcq-G9Lz7IGnjkJlaFLFXYncVCwcVrRIuy3bEfgzRozqaDRvAori4oOz4RtgYjmoc5x2euoisHL0mVnHgPKOdYBty1wTJqneJEQt6hP4Kp0KFciID_ILCi-DE8VWS5t0NknnMP_iKhIkqcRL48iwPFUWkWA6AEWxE_yvJLNRLithsSxsx7EfBfpD8Hr2b5tMEwImQNmJNYGRTI4LSmcYspBORvJoAnfGpMC0kglxl40bhf5j4ItX4_DiWQC4zaGYD-HJV4BDr6C7iGCs5ZVPypF0yQD3iBio26fwj9Ys5WF9XMtPtqET2kqsz6fDC5GkE6HTUHH_r87jxbDq-8w",
"refresh_token": "EgMYpjfFKdlSy-a3PYeyihmP95IpIp3FaDpPmVH1yu8.lahomBi7zJbRa6yKAuAAiKu3lprTPsEueKwqcBvhRLU",
"expires_in": 900,
"refresh_token_expires_in": 7776000,
"token_type": "Bearer",
"usid": "18cda486-fe32-4e27-888b-6e4f89938e67",
"customer_id": "1000005",
Expand Down Expand Up @@ -1437,6 +1349,7 @@ types:
"refresh_token": "EgMYpjfFKdlSy-a3PYeyihmP95IpIp3FaDpPmVH1yu8.lahomBi7zJbRa6yKAuAAiKu3lprTPsEueKwqcBvhRLU",
"expires_in": 900,
"token_type": "Bearer",
"refresh_token_expires_in": 7776000,
"usid": "18cda486-fe32-4e27-888b-6e4f89938e67",
"customer_id": "1000005",
"enc_user_id": "45D39A8499A95288F82855427EBA99B5",
Expand Down Expand Up @@ -1608,6 +1521,7 @@ types:
"id_token": "eyJraWQiOiI3NGU2YjMxZS1lYTczLTQ3OTYtOWRkYi1jMDJmZGI4ZDgwYmUiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ1c2lkOmQ1MDBhMzY5LTc1MWQtNDkzYy1iNDAzLThmOThmYjg3MTdiNiIsImF1ZCI6IjU1M2FjOGFjLTRkYjktNGVkMy04MjVjLTNhZTNiZjVkMzI3YiIsImlzcyI6ImRldi51cy5zaG9wcGVyLmNjLnNhbGVzZm9yY2UuY29tIiwibmFtZSI6ImJsYWlyLnNsYXMudGVzdEBnbWFpbC5jb20iLCJleHAiOjE1OTExMTE0MzgsImlhdCI6MTU5MTEwOTYzOCwiZW1haWwiOiJibGFpci5zbGFzLnRlc3RAZ21haWwuY29tIn0.KgpAcq-G9Lz7IGnjkJlaFLFXYncVCwcVrRIuy3bEfgzRozqaDRvAori4oOz4RtgYjmoc5x2euoisHL0mVnHgPKOdYBty1wTJqneJEQt6hP4Kp0KFciID_ILCi-DE8VWS5t0NknnMP_iKhIkqcRL48iwPFUWkWA6AEWxE_yvJLNRLithsSxsx7EfBfpD8Hr2b5tMEwImQNmJNYGRTI4LSmcYspBORvJoAnfGpMC0kglxl40bhf5j4ItX4_DiWQC4zaGYD-HJV4BDr6C7iGCs5ZVPypF0yQD3iBio26fwj9Ys5WF9XMtPtqET2kqsz6fDC5GkE6HTUHH_r87jxbDq-8w",
"refresh_token": "EgMYpjfFKdlSy-a3PYeyihmP95IpIp3FaDpPmVH1yu8.lahomBi7zJbRa6yKAuAAiKu3lprTPsEueKwqcBvhRLU",
"expires_in": 900,
"refresh_token_expires_in": 7776000,
"token_type": "Bearer",
"usid": "18cda486-fe32-4e27-888b-6e4f89938e67",
"customer_id": "1000005",
Expand Down Expand Up @@ -1677,6 +1591,7 @@ types:
"id_token": "null",
"refresh_token": "EnL9U2f3-WiVPwL60CFBI21UY_oxWAwX5JkgO-X12Vs",
"expires_in": 0,
"refresh_token_expires_in": 0,
"token_type": "Bearer",
"usid": "null",
"customer_id": "null",
Expand Down
22 changes: 0 additions & 22 deletions apis/product/shopper-products/.metadata.json

This file was deleted.

30 changes: 30 additions & 0 deletions apis/product/shopper-products/Traits/GetProductBadRequest.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#%RAML 1.0 Trait
description: This trait represents API behavior for a 400 response.
responses:
400:
description: Bad Request.
body:
application/problem+json:
type: ErrorResponse
examples:
BadRequest: |
{
"title": "Bad Request",
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/validation",
"detail": "Maximum number of products you can request in one call is 25."
}
MalformedSelector: |
{
"title": "Malformed Selector",
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/malformed-selector",
"detail": "The property selector '(brand,imageGroups.(**)' is malformed.",
"selector": "(brand,imageGroups.(**)"
}
FilterExpressionBadRequest: |
{
"title": "Bad Request",
"type": "https://api.commercecloud.salesforce.com/documentation/error/v1/errors/bad-request",
"detail": "Filter expressions in select are not supported.",
"parameter": "Filter expressions in select are not supported.",
"selector": "(recommendations[?(recommendedItemId=='apple-ipod-nano'].(**))"
}
Loading

0 comments on commit 0f50d2e

Please sign in to comment.