Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Mar 25, 2024
1 parent 9d58a1a commit 176c731
Show file tree
Hide file tree
Showing 12 changed files with 195 additions and 40 deletions.
82 changes: 42 additions & 40 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,9 @@
**Api changes**

<details>
<summary>Added Type(s)</summary>
<summary>Added Enum(s)</summary>

- added type `ProductTailoringCreatedMessage`
- added type `ProductTailoringDeletedMessage`
- added type `ProductTailoringDescriptionSetMessage`
- added type `ProductTailoringNameSetMessage`
- added type `ProductTailoringPublishedMessage`
- added type `ProductTailoringSlugSetMessage`
- added type `ProductTailoringUnpublishedMessage`
- added type `ProductTailoringCreatedMessagePayload`
- added type `ProductTailoringDeletedMessagePayload`
- added type `ProductTailoringDescriptionSetMessagePayload`
- added type `ProductTailoringNameSetMessagePayload`
- added type `ProductTailoringPublishedMessagePayload`
- added type `ProductTailoringSlugSetMessagePayload`
- added type `ProductTailoringUnpublishedMessagePayload`
- added type `ProductTailoring`
- added type `ProductTailoringData`
- added type `ProductTailoringDraft`
- added type `ProductTailoringInStoreDraft`
- added type `ProductTailoringPagedQueryResponse`
- added type `ProductTailoringReference`
- added type `ProductTailoringResourceIdentifier`
- added type `ProductTailoringUpdate`
- added type `ProductTailoringUpdateAction`
- added type `ProductTailoringPublishAction`
- added type `ProductTailoringSetDescriptionAction`
- added type `ProductTailoringSetMetaAttributesAction`
- added type `ProductTailoringSetMetaDescriptionAction`
- added type `ProductTailoringSetMetaKeywordsAction`
- added type `ProductTailoringSetMetaTitleAction`
- added type `ProductTailoringSetNameAction`
- added type `ProductTailoringSetSlugAction`
- added type `ProductTailoringUnpublishAction`
- added enum `product-tailoring` to type `ReferenceTypeId`
</details>


Expand Down Expand Up @@ -77,13 +46,6 @@
</details>


<details>
<summary>Added Enum(s)</summary>

- added enum `product-tailoring` to type `ReferenceTypeId`
</details>


<details>
<summary>Added Resource(s)</summary>

Expand All @@ -98,3 +60,43 @@
- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring`
</details>


<details>
<summary>Added Type(s)</summary>

- added type `LockedFieldError`
- added type `GraphQLLockedFieldError`
- added type `ProductTailoringCreatedMessage`
- added type `ProductTailoringDeletedMessage`
- added type `ProductTailoringDescriptionSetMessage`
- added type `ProductTailoringNameSetMessage`
- added type `ProductTailoringPublishedMessage`
- added type `ProductTailoringSlugSetMessage`
- added type `ProductTailoringUnpublishedMessage`
- added type `ProductTailoringCreatedMessagePayload`
- added type `ProductTailoringDeletedMessagePayload`
- added type `ProductTailoringDescriptionSetMessagePayload`
- added type `ProductTailoringNameSetMessagePayload`
- added type `ProductTailoringPublishedMessagePayload`
- added type `ProductTailoringSlugSetMessagePayload`
- added type `ProductTailoringUnpublishedMessagePayload`
- added type `ProductTailoring`
- added type `ProductTailoringData`
- added type `ProductTailoringDraft`
- added type `ProductTailoringInStoreDraft`
- added type `ProductTailoringPagedQueryResponse`
- added type `ProductTailoringReference`
- added type `ProductTailoringResourceIdentifier`
- added type `ProductTailoringUpdate`
- added type `ProductTailoringUpdateAction`
- added type `ProductTailoringPublishAction`
- added type `ProductTailoringSetDescriptionAction`
- added type `ProductTailoringSetMetaAttributesAction`
- added type `ProductTailoringSetMetaDescriptionAction`
- added type `ProductTailoringSetMetaKeywordsAction`
- added type `ProductTailoringSetMetaTitleAction`
- added type `ProductTailoringSetNameAction`
- added type `ProductTailoringSetSlugAction`
- added type `ProductTailoringUnpublishAction`
</details>

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace commercetools.Sdk.Api.Models.Errors
{

public partial class GraphQLLockedFieldError : IGraphQLLockedFieldError
{
public string Code { get; set; }

public string Field { get; set; }
public GraphQLLockedFieldError()
{
this.Code = "LockedField";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ namespace commercetools.Sdk.Api.Models.Errors
[SubTypeDiscriminator("InvalidOperation", typeof(commercetools.Sdk.Api.Models.Errors.InvalidOperationError))]
[SubTypeDiscriminator("InvalidSubject", typeof(commercetools.Sdk.Api.Models.Errors.InvalidSubjectError))]
[SubTypeDiscriminator("LanguageUsedInStores", typeof(commercetools.Sdk.Api.Models.Errors.LanguageUsedInStoresError))]
[SubTypeDiscriminator("LockedField", typeof(commercetools.Sdk.Api.Models.Errors.LockedFieldError))]
[SubTypeDiscriminator("MatchingPriceNotFound", typeof(commercetools.Sdk.Api.Models.Errors.MatchingPriceNotFoundError))]
[SubTypeDiscriminator("MaxCartDiscountsReached", typeof(commercetools.Sdk.Api.Models.Errors.MaxCartDiscountsReachedError))]
[SubTypeDiscriminator("MaxResourceLimitExceeded", typeof(commercetools.Sdk.Api.Models.Errors.MaxResourceLimitExceededError))]
Expand Down Expand Up @@ -345,6 +346,12 @@ static commercetools.Sdk.Api.Models.Errors.LanguageUsedInStoresError LanguageUse
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.LockedFieldError LockedField(Action<commercetools.Sdk.Api.Models.Errors.LockedFieldError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.LockedFieldError();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.MatchingPriceNotFoundError MatchingPriceNotFound(Action<commercetools.Sdk.Api.Models.Errors.MatchingPriceNotFoundError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.MatchingPriceNotFoundError();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ namespace commercetools.Sdk.Api.Models.Errors
[SubTypeDiscriminator("InvalidOperation", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLInvalidOperationError))]
[SubTypeDiscriminator("InvalidSubject", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLInvalidSubjectError))]
[SubTypeDiscriminator("LanguageUsedInStores", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLLanguageUsedInStoresError))]
[SubTypeDiscriminator("LockedField", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLLockedFieldError))]
[SubTypeDiscriminator("MatchingPriceNotFound", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLMatchingPriceNotFoundError))]
[SubTypeDiscriminator("MaxCartDiscountsReached", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLMaxCartDiscountsReachedError))]
[SubTypeDiscriminator("MaxResourceLimitExceeded", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLMaxResourceLimitExceededError))]
Expand Down Expand Up @@ -343,6 +344,12 @@ static commercetools.Sdk.Api.Models.Errors.GraphQLLanguageUsedInStoresError Lang
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.GraphQLLockedFieldError LockedField(Action<commercetools.Sdk.Api.Models.Errors.GraphQLLockedFieldError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.GraphQLLockedFieldError();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.GraphQLMatchingPriceNotFoundError MatchingPriceNotFound(Action<commercetools.Sdk.Api.Models.Errors.GraphQLMatchingPriceNotFoundError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.GraphQLMatchingPriceNotFoundError();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Errors
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Errors.GraphQLLockedFieldError))]
public partial interface IGraphQLLockedFieldError : IGraphQLErrorObject
{
string Field { get; set; }

new string Code { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Errors
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Errors.LockedFieldError))]
public partial interface ILockedFieldError : IErrorObject
{
string Field { get; set; }

new string Code { get; set; }

new string Message { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace commercetools.Sdk.Api.Models.Errors
{

public partial class LockedFieldError : ILockedFieldError
{
public string Code { get; set; }

public string Message { get; set; }

public string Field { get; set; }
public LockedFieldError()
{
this.Code = "LockedField";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,12 @@ public CombinationQueryPredicate<ErrorObjectQueryBuilderDsl> AsLanguageUsedInSto
return new CombinationQueryPredicate<ErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.LanguageUsedInStoresErrorQueryBuilderDsl.Of()),
ErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<ErrorObjectQueryBuilderDsl> AsLockedField(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.LockedFieldErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.LockedFieldErrorQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<ErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.LockedFieldErrorQueryBuilderDsl.Of()),
ErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<ErrorObjectQueryBuilderDsl> AsMatchingPriceNotFound(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.MatchingPriceNotFoundErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.MatchingPriceNotFoundErrorQueryBuilderDsl>> fn)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ public CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl> AsLanguageUs
return new CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLLanguageUsedInStoresErrorQueryBuilderDsl.Of()),
GraphQLErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl> AsLockedField(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLLockedFieldErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLLockedFieldErrorQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLLockedFieldErrorQueryBuilderDsl.Of()),
GraphQLErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl> AsMatchingPriceNotFound(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLMatchingPriceNotFoundErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLMatchingPriceNotFoundErrorQueryBuilderDsl>> fn)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Predicates.Query.Errors
{

public partial class GraphQLLockedFieldErrorQueryBuilderDsl
{
public GraphQLLockedFieldErrorQueryBuilderDsl()
{
}

public static GraphQLLockedFieldErrorQueryBuilderDsl Of()
{
return new GraphQLLockedFieldErrorQueryBuilderDsl();
}

public IComparisonPredicateBuilder<GraphQLLockedFieldErrorQueryBuilderDsl, string> Code()
{
return new ComparisonPredicateBuilder<GraphQLLockedFieldErrorQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("code")),
p => new CombinationQueryPredicate<GraphQLLockedFieldErrorQueryBuilderDsl>(p, GraphQLLockedFieldErrorQueryBuilderDsl.Of),
PredicateFormatter.Format);
}
public IComparisonPredicateBuilder<GraphQLLockedFieldErrorQueryBuilderDsl, string> Field()
{
return new ComparisonPredicateBuilder<GraphQLLockedFieldErrorQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("field")),
p => new CombinationQueryPredicate<GraphQLLockedFieldErrorQueryBuilderDsl>(p, GraphQLLockedFieldErrorQueryBuilderDsl.Of),
PredicateFormatter.Format);
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Predicates.Query.Errors
{

public partial class LockedFieldErrorQueryBuilderDsl
{
public LockedFieldErrorQueryBuilderDsl()
{
}

public static LockedFieldErrorQueryBuilderDsl Of()
{
return new LockedFieldErrorQueryBuilderDsl();
}

public IComparisonPredicateBuilder<LockedFieldErrorQueryBuilderDsl, string> Code()
{
return new ComparisonPredicateBuilder<LockedFieldErrorQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("code")),
p => new CombinationQueryPredicate<LockedFieldErrorQueryBuilderDsl>(p, LockedFieldErrorQueryBuilderDsl.Of),
PredicateFormatter.Format);
}
public IComparisonPredicateBuilder<LockedFieldErrorQueryBuilderDsl, string> Message()
{
return new ComparisonPredicateBuilder<LockedFieldErrorQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("message")),
p => new CombinationQueryPredicate<LockedFieldErrorQueryBuilderDsl>(p, LockedFieldErrorQueryBuilderDsl.Of),
PredicateFormatter.Format);
}
public IComparisonPredicateBuilder<LockedFieldErrorQueryBuilderDsl, string> Field()
{
return new ComparisonPredicateBuilder<LockedFieldErrorQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("field")),
p => new CombinationQueryPredicate<LockedFieldErrorQueryBuilderDsl>(p, LockedFieldErrorQueryBuilderDsl.Of),
PredicateFormatter.Format);
}

}
}
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,4 @@ ffed231e91d01608e1bb08ecc1883cf00d9d9293
c11681240a69eb894764895d5dcfd21bf6812352
cbff068f3b95e6021ff4d76bd7684ddd6dcfce6f
d1fcaae6cdf58cc67290c3ce2fce7d8ce9207109
d6c4e8ca039647373df3aeb8369342bd50b02d61

0 comments on commit 176c731

Please sign in to comment.