Skip to content

Commit e6ce1c8

Browse files
Update generated SDKs (#1079)
* build(codegen): updating SDK * build(codegen): updating SDK --------- Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent d341736 commit e6ce1c8

18 files changed

Lines changed: 211 additions & 15 deletions

.changeset/changes_api.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<details>
88
<summary>Added Type(s)</summary>
99

10+
- added type `ExpiredCustomerEmailTokenError`
11+
- added type `ExpiredCustomerPasswordTokenError`
12+
- added type `GraphQLExpiredCustomerEmailTokenError`
13+
- added type `GraphQLExpiredCustomerPasswordTokenError`
1014
- added type `CheckoutOrderCreationFailedEvent`
1115
- added type `CheckoutPaymentAuthorizationCancelledEvent`
1216
- added type `CheckoutPaymentAuthorizationFailedEvent`
@@ -20,6 +24,22 @@
2024
- added type `CheckoutMessagePaymentsPayloadBaseData`
2125
</details>
2226

27+
<details>
28+
<summary>Added Property(s)</summary>
29+
30+
- added property `invalidateOlderTokens` to type `CustomerCreateEmailToken`
31+
- added property `invalidateOlderTokens` to type `CustomerCreatePasswordResetToken`
32+
- added property `invalidateOlderTokens` to type `CustomerToken`
33+
- added property `value` to type `CustomerEmailTokenCreatedMessage`
34+
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessage`
35+
- added property `value` to type `CustomerPasswordTokenCreatedMessage`
36+
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessage`
37+
- added property `value` to type `CustomerEmailTokenCreatedMessagePayload`
38+
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessagePayload`
39+
- added property `value` to type `CustomerPasswordTokenCreatedMessagePayload`
40+
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessagePayload`
41+
</details>
42+
2343
<details>
2444
<summary>Added Enum(s)</summary>
2545

changes.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<details>
44
<summary>Added Type(s)</summary>
55

6+
- added type `ExpiredCustomerEmailTokenError`
7+
- added type `ExpiredCustomerPasswordTokenError`
8+
- added type `GraphQLExpiredCustomerEmailTokenError`
9+
- added type `GraphQLExpiredCustomerPasswordTokenError`
610
- added type `CheckoutOrderCreationFailedEvent`
711
- added type `CheckoutPaymentAuthorizationCancelledEvent`
812
- added type `CheckoutPaymentAuthorizationFailedEvent`
@@ -16,6 +20,22 @@
1620
- added type `CheckoutMessagePaymentsPayloadBaseData`
1721
</details>
1822

23+
<details>
24+
<summary>Added Property(s)</summary>
25+
26+
- added property `invalidateOlderTokens` to type `CustomerCreateEmailToken`
27+
- added property `invalidateOlderTokens` to type `CustomerCreatePasswordResetToken`
28+
- added property `invalidateOlderTokens` to type `CustomerToken`
29+
- added property `value` to type `CustomerEmailTokenCreatedMessage`
30+
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessage`
31+
- added property `value` to type `CustomerPasswordTokenCreatedMessage`
32+
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessage`
33+
- added property `value` to type `CustomerEmailTokenCreatedMessagePayload`
34+
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessagePayload`
35+
- added property `value` to type `CustomerPasswordTokenCreatedMessagePayload`
36+
- added property `invalidateOlderTokens` to type `CustomerPasswordTokenCreatedMessagePayload`
37+
</details>
38+
1939
<details>
2040
<summary>Added Enum(s)</summary>
2141

packages/platform-sdk/src/generated/client/confirm/by-project-key-customers-email-confirm-request-builder.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export class ByProjectKeyCustomersEmailConfirmRequestBuilder {
2323
*
2424
* Verifying the email of the Customer produces the [CustomerEmailVerified](ctp:api:type:CustomerEmailVerifiedMessage) Message.
2525
*
26+
* After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
27+
*
2628
*/
2729
public post(methodArgs: {
2830
body: CustomerEmailVerify

packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-customers-email-confirm-request-builder.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export class ByProjectKeyInStoreKeyByStoreKeyCustomersEmailConfirmRequestBuilder
2626
*
2727
* If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
2828
*
29+
* After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
30+
*
2931
*/
3032
public post(methodArgs: {
3133
body: CustomerEmailVerify

packages/platform-sdk/src/generated/client/confirm/by-project-key-in-store-key-by-store-key-me-email-confirm-request-builder.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export class ByProjectKeyInStoreKeyByStoreKeyMeEmailConfirmRequestBuilder {
2222
/**
2323
* This is the last step in the [email verification process of a Customer](/../api/projects/customers#email-verification-of-customer-in-store). Returns a `200 OK` status if successful.
2424
*
25+
* After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
26+
*
2527
* A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios:
2628
*
2729
* - If no Customer exists with the `id` specified in the [customer:{id}](/scopes#composable-commerce-oauth) scope.

packages/platform-sdk/src/generated/client/confirm/by-project-key-me-email-confirm-request-builder.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export class ByProjectKeyMeEmailConfirmRequestBuilder {
2121
/**
2222
* This is the last step in the [email verification process of a Customer](/../api/projects/customers#email-verification-of-customer).
2323
*
24+
* After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
25+
*
2426
*/
2527
public post(methodArgs: {
2628
body: MyCustomerEmailVerify

packages/platform-sdk/src/generated/client/email-token/by-project-key-customers-email-token-request-builder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export class ByProjectKeyCustomersEmailTokenRequestBuilder {
2222
* Use this method to create an email token for a global Customer during their [email verification process](/../api/customers-overview#customer-email-verification).
2323
*
2424
* Creating an email token for the Customer produces the [CustomerEmailTokenCreated](ctp:api:type:CustomerEmailTokenCreatedMessage) Message.
25+
* The Message will include the token's value, if the token's validity is 60 minutes or less.
2526
*
2627
*/
2728
public post(methodArgs: {

packages/platform-sdk/src/generated/client/email-token/by-project-key-in-store-key-by-store-key-customers-email-token-request-builder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export class ByProjectKeyInStoreKeyByStoreKeyCustomersEmailTokenRequestBuilder {
2424
*
2525
* If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
2626
*
27+
* Creating an email token for the Customer produces the [CustomerEmailTokenCreated](ctp:api:type:CustomerEmailTokenCreatedMessage) Message.
28+
* The Message will include the token's value, if the token's validity is 60 minutes or less.
29+
*
2730
*/
2831
public post(methodArgs: {
2932
body: CustomerCreateEmailToken

packages/platform-sdk/src/generated/client/password-token/by-project-key-customers-password-token-request-builder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export class ByProjectKeyCustomersPasswordTokenRequestBuilder {
2424
/**
2525
* Use this method to create a password reset token for a global Customer during their [password reset process](/../api/customers-overview#customer-password-reset).
2626
*
27-
* Creating a password reset token does not invalidate existing tokens.
27+
* Creating a password reset token for the Customer produces the [CustomerPasswordTokenCreated](ctp:api:type:CustomerPasswordTokenCreatedMessage) Message.
28+
* The Message will include the token's value, if the token's validity is 60 minutes or less.
2829
*
2930
*/
3031
public post(methodArgs: {

packages/platform-sdk/src/generated/client/password-token/by-project-key-in-store-key-by-store-key-customers-password-token-request-builder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ export class ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenRequestBuilde
2525
/**
2626
* Use this method to create a password reset token for a Store-specific Customer during their [password reset process](/../api/customers-overview#customer-password-reset).
2727
*
28-
* Creating a password reset token does not invalidate existing tokens.
29-
*
3028
* If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
3129
*
30+
* Creating a password reset token for the Customer produces the [CustomerPasswordTokenCreated](ctp:api:type:CustomerPasswordTokenCreatedMessage) Message.
31+
* The Message will include the token's value, if the token's validity is 60 minutes or less.
32+
*
3233
*/
3334
public post(methodArgs: {
3435
body: CustomerCreatePasswordResetToken

0 commit comments

Comments
 (0)