Skip to content

Commit

Permalink
Merge branch 'main' into feat/specs/acl
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Jan 17, 2024
2 parents c165fad + 3e28dca commit 23e5453
Show file tree
Hide file tree
Showing 271 changed files with 1,484 additions and 1,327 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public ABTest() { }
/// <param name="name">A/B test name. (required).</param>
/// <param name="status">A/B test status. (required).</param>
/// <param name="variants">A/B test variants. (required).</param>
public ABTest(int abTestID, double clickSignificance, double conversionSignificance, double addToCartSignificance, double purchaseSignificance, Dictionary<string, double> revenueSignificance, string updatedAt, string createdAt, string endAt, string name, string status, List<Variant> variants)
public ABTest(int? abTestID, double clickSignificance, double conversionSignificance, double addToCartSignificance, double purchaseSignificance, Dictionary<string, double> revenueSignificance, string updatedAt, string createdAt, string endAt, string name, string status, List<Variant> variants)
{
this.AbTestID = abTestID;
this.ClickSignificance = clickSignificance;
Expand All @@ -64,84 +64,84 @@ public ABTest(int abTestID, double clickSignificance, double conversionSignifica
/// Unique A/B test ID.
/// </summary>
/// <value>Unique A/B test ID.</value>
[DataMember(Name = "abTestID", IsRequired = true, EmitDefaultValue = true)]
public int AbTestID { get; set; }
[DataMember(Name = "abTestID", IsRequired = true, EmitDefaultValue = false)]
public int? AbTestID { get; set; }

/// <summary>
/// [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on click data. A value of 0.95 or over is considered to be _significant_.
/// </summary>
/// <value>[A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on click data. A value of 0.95 or over is considered to be _significant_. </value>
[DataMember(Name = "clickSignificance", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "clickSignificance", IsRequired = true, EmitDefaultValue = false)]
public double ClickSignificance { get; set; }

/// <summary>
/// [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on conversion. A value of 0.95 or over is considered to be _significant_.
/// </summary>
/// <value>[A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on conversion. A value of 0.95 or over is considered to be _significant_. </value>
[DataMember(Name = "conversionSignificance", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "conversionSignificance", IsRequired = true, EmitDefaultValue = false)]
public double ConversionSignificance { get; set; }

/// <summary>
/// [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on add-to-cart data. A value of 0.95 or over is considered to be _significant_.
/// </summary>
/// <value>[A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on add-to-cart data. A value of 0.95 or over is considered to be _significant_. </value>
[DataMember(Name = "addToCartSignificance", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "addToCartSignificance", IsRequired = true, EmitDefaultValue = false)]
public double AddToCartSignificance { get; set; }

/// <summary>
/// [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on purchase data. A value of 0.95 or over is considered to be _significant_.
/// </summary>
/// <value>[A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on purchase data. A value of 0.95 or over is considered to be _significant_. </value>
[DataMember(Name = "purchaseSignificance", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "purchaseSignificance", IsRequired = true, EmitDefaultValue = false)]
public double PurchaseSignificance { get; set; }

/// <summary>
/// [A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on revenue data. A value of 0.95 or over is considered to be _significant_.
/// </summary>
/// <value>[A/B test significance](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/in-depth/how-ab-test-scores-are-calculated/#statistical-significance-or-chance) based on revenue data. A value of 0.95 or over is considered to be _significant_. </value>
[DataMember(Name = "revenueSignificance", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "revenueSignificance", IsRequired = true, EmitDefaultValue = false)]
public Dictionary<string, double> RevenueSignificance { get; set; }

/// <summary>
/// Update date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
/// </summary>
/// <value>Update date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.</value>
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = false)]
public string UpdatedAt { get; set; }

/// <summary>
/// Creation date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
/// </summary>
/// <value>Creation date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.</value>
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = false)]
public string CreatedAt { get; set; }

/// <summary>
/// End date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
/// </summary>
/// <value>End date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.</value>
[DataMember(Name = "endAt", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "endAt", IsRequired = true, EmitDefaultValue = false)]
public string EndAt { get; set; }

/// <summary>
/// A/B test name.
/// </summary>
/// <value>A/B test name.</value>
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)]
public string Name { get; set; }

/// <summary>
/// A/B test status.
/// </summary>
/// <value>A/B test status.</value>
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = false)]
public string Status { get; set; }

/// <summary>
/// A/B test variants.
/// </summary>
/// <value>A/B test variants.</value>
[DataMember(Name = "variants", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "variants", IsRequired = true, EmitDefaultValue = false)]
public List<Variant> Variants { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ABTestResponse() { }
/// <param name="index">A/B test index. (required).</param>
/// <param name="abTestID">Unique A/B test ID. (required).</param>
/// <param name="taskID">Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task&#39;s progress with the &#x60;task&#x60; operation and this &#x60;taskID&#x60;. (required).</param>
public ABTestResponse(string index, int abTestID, long taskID)
public ABTestResponse(string index, int? abTestID, long taskID)
{
this.Index = index ?? throw new ArgumentNullException("index is a required property for ABTestResponse and cannot be null");
this.AbTestID = abTestID;
Expand All @@ -46,21 +46,21 @@ public ABTestResponse(string index, int abTestID, long taskID)
/// A/B test index.
/// </summary>
/// <value>A/B test index.</value>
[DataMember(Name = "index", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "index", IsRequired = true, EmitDefaultValue = false)]
public string Index { get; set; }

/// <summary>
/// Unique A/B test ID.
/// </summary>
/// <value>Unique A/B test ID.</value>
[DataMember(Name = "abTestID", IsRequired = true, EmitDefaultValue = true)]
public int AbTestID { get; set; }
[DataMember(Name = "abTestID", IsRequired = true, EmitDefaultValue = false)]
public int? AbTestID { get; set; }

/// <summary>
/// Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task&#39;s progress with the &#x60;task&#x60; operation and this &#x60;taskID&#x60;.
/// </summary>
/// <value>Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task&#39;s progress with the &#x60;task&#x60; operation and this &#x60;taskID&#x60;. </value>
[DataMember(Name = "taskID", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "taskID", IsRequired = true, EmitDefaultValue = false)]
public long TaskID { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public AbTestsVariant() { }
/// </summary>
/// <param name="index">A/B test index. (required).</param>
/// <param name="trafficPercentage">A/B test traffic percentage. (required).</param>
public AbTestsVariant(string index, int trafficPercentage)
public AbTestsVariant(string index, int? trafficPercentage)
{
this.Index = index ?? throw new ArgumentNullException("index is a required property for AbTestsVariant and cannot be null");
this.TrafficPercentage = trafficPercentage;
Expand All @@ -44,15 +44,15 @@ public AbTestsVariant(string index, int trafficPercentage)
/// A/B test index.
/// </summary>
/// <value>A/B test index.</value>
[DataMember(Name = "index", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "index", IsRequired = true, EmitDefaultValue = false)]
public string Index { get; set; }

/// <summary>
/// A/B test traffic percentage.
/// </summary>
/// <value>A/B test traffic percentage.</value>
[DataMember(Name = "trafficPercentage", IsRequired = true, EmitDefaultValue = true)]
public int TrafficPercentage { get; set; }
[DataMember(Name = "trafficPercentage", IsRequired = true, EmitDefaultValue = false)]
public int? TrafficPercentage { get; set; }

/// <summary>
/// A/B test description.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public AbTestsVariantSearchParams() { }
/// <param name="index">A/B test index. (required).</param>
/// <param name="trafficPercentage">A/B test traffic percentage. (required).</param>
/// <param name="customSearchParameters">customSearchParameters (required).</param>
public AbTestsVariantSearchParams(string index, int trafficPercentage, Object customSearchParameters)
public AbTestsVariantSearchParams(string index, int? trafficPercentage, Object customSearchParameters)
{
this.Index = index ?? throw new ArgumentNullException("index is a required property for AbTestsVariantSearchParams and cannot be null");
this.TrafficPercentage = trafficPercentage;
Expand All @@ -46,15 +46,15 @@ public AbTestsVariantSearchParams(string index, int trafficPercentage, Object cu
/// A/B test index.
/// </summary>
/// <value>A/B test index.</value>
[DataMember(Name = "index", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "index", IsRequired = true, EmitDefaultValue = false)]
public string Index { get; set; }

/// <summary>
/// A/B test traffic percentage.
/// </summary>
/// <value>A/B test traffic percentage.</value>
[DataMember(Name = "trafficPercentage", IsRequired = true, EmitDefaultValue = true)]
public int TrafficPercentage { get; set; }
[DataMember(Name = "trafficPercentage", IsRequired = true, EmitDefaultValue = false)]
public int? TrafficPercentage { get; set; }

/// <summary>
/// A/B test description.
Expand All @@ -66,7 +66,7 @@ public AbTestsVariantSearchParams(string index, int trafficPercentage, Object cu
/// <summary>
/// Gets or Sets CustomSearchParameters
/// </summary>
[DataMember(Name = "customSearchParameters", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "customSearchParameters", IsRequired = true, EmitDefaultValue = false)]
public Object CustomSearchParameters { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ public AddABTestsRequest(string name, List<AddABTestsVariant> variants, string e
/// A/B test name.
/// </summary>
/// <value>A/B test name.</value>
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)]
public string Name { get; set; }

/// <summary>
/// A/B test variants.
/// </summary>
/// <value>A/B test variants.</value>
[DataMember(Name = "variants", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "variants", IsRequired = true, EmitDefaultValue = false)]
public List<AddABTestsVariant> Variants { get; set; }

/// <summary>
/// End date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.
/// </summary>
/// <value>End date timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format.</value>
[DataMember(Name = "endAt", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "endAt", IsRequired = true, EmitDefaultValue = false)]
public string EndAt { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public CustomSearchParams(Object customSearchParameters)
/// <summary>
/// Gets or Sets CustomSearchParameters
/// </summary>
[DataMember(Name = "customSearchParameters", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "customSearchParameters", IsRequired = true, EmitDefaultValue = false)]
public Object CustomSearchParameters { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ListABTestsResponse() { }
/// <param name="abtests">A/B tests. (required).</param>
/// <param name="count">Number of A/B tests implemented. (required).</param>
/// <param name="total">Number of retrievable A/B tests. (required).</param>
public ListABTestsResponse(List<ABTest> abtests, int count, int total)
public ListABTestsResponse(List<ABTest> abtests, int? count, int? total)
{
this.Abtests = abtests ?? throw new ArgumentNullException("abtests is a required property for ListABTestsResponse and cannot be null");
this.Count = count;
Expand All @@ -46,22 +46,22 @@ public ListABTestsResponse(List<ABTest> abtests, int count, int total)
/// A/B tests.
/// </summary>
/// <value>A/B tests.</value>
[DataMember(Name = "abtests", IsRequired = true, EmitDefaultValue = true)]
[DataMember(Name = "abtests", IsRequired = true, EmitDefaultValue = false)]
public List<ABTest> Abtests { get; set; }

/// <summary>
/// Number of A/B tests implemented.
/// </summary>
/// <value>Number of A/B tests implemented.</value>
[DataMember(Name = "count", IsRequired = true, EmitDefaultValue = true)]
public int Count { get; set; }
[DataMember(Name = "count", IsRequired = true, EmitDefaultValue = false)]
public int? Count { get; set; }

/// <summary>
/// Number of retrievable A/B tests.
/// </summary>
/// <value>Number of retrievable A/B tests.</value>
[DataMember(Name = "total", IsRequired = true, EmitDefaultValue = true)]
public int Total { get; set; }
[DataMember(Name = "total", IsRequired = true, EmitDefaultValue = false)]
public int? Total { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down
Loading

0 comments on commit 23e5453

Please sign in to comment.