sequenzy 2.1.16 → 2.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/cjs/api/resources/abTests/client/requests/CreateAbTestsRequest.d.ts +5 -1
  2. package/dist/cjs/api/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +7 -1
  3. package/dist/cjs/api/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.d.ts +4 -1
  4. package/dist/cjs/api/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.js +4 -1
  5. package/dist/cjs/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.d.ts +3 -0
  6. package/dist/cjs/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.d.ts +13 -0
  7. package/dist/cjs/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.js +3 -0
  8. package/dist/cjs/api/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.d.ts +4 -1
  9. package/dist/cjs/api/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.js +4 -1
  10. package/dist/cjs/api/resources/abTests/types/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/abTests/types/index.js +1 -0
  12. package/dist/cjs/api/resources/sequences/client/requests/SequenceCreateRequest.d.ts +2 -0
  13. package/dist/cjs/api/resources/sequences/client/requests/SequenceUpdateRequest.d.ts +2 -0
  14. package/dist/cjs/api/resources/subscribers/client/requests/UpdateByExternalIdPathSubscribersRequest.d.ts +1 -1
  15. package/dist/cjs/api/resources/subscribers/client/requests/UpdateByExternalIdSubscribersRequest.d.ts +1 -1
  16. package/dist/cjs/api/resources/subscribers/client/requests/UpdateSubscribersRequest.d.ts +1 -1
  17. package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.d.ts +2 -1
  18. package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.js +2 -1
  19. package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.d.ts +2 -1
  20. package/dist/cjs/api/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.js +2 -1
  21. package/dist/cjs/api/resources/subscribers/types/UpdateSubscribersRequestStatus.d.ts +2 -1
  22. package/dist/cjs/api/resources/subscribers/types/UpdateSubscribersRequestStatus.js +2 -1
  23. package/dist/cjs/api/types/AbTest.d.ts +6 -2
  24. package/dist/cjs/api/types/AbTestSignificance.d.ts +1 -1
  25. package/dist/cjs/api/types/AbTestSignificanceMetric.d.ts +4 -1
  26. package/dist/cjs/api/types/AbTestSignificanceMetric.js +4 -1
  27. package/dist/cjs/api/types/AbTestWinnerCriteria.d.ts +8 -0
  28. package/dist/cjs/api/types/AbTestWinnerCriteria.js +11 -0
  29. package/dist/cjs/api/types/AccountHealthInsight.d.ts +1 -1
  30. package/dist/cjs/api/types/SequenceCreateResponseSequence.d.ts +2 -0
  31. package/dist/cjs/api/types/SequenceSummary.d.ts +2 -0
  32. package/dist/cjs/api/types/index.d.ts +1 -0
  33. package/dist/cjs/api/types/index.js +1 -0
  34. package/dist/cjs/serialization/resources/abTests/client/requests/CreateAbTestsRequest.d.ts +2 -0
  35. package/dist/cjs/serialization/resources/abTests/client/requests/CreateAbTestsRequest.js +2 -0
  36. package/dist/cjs/serialization/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +3 -0
  37. package/dist/cjs/serialization/resources/abTests/client/requests/UpdateAbTestsRequest.js +3 -0
  38. package/dist/cjs/serialization/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.d.ts +1 -1
  39. package/dist/cjs/serialization/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.js +1 -1
  40. package/dist/cjs/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.d.ts +2 -0
  41. package/dist/cjs/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.js +2 -0
  42. package/dist/cjs/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.d.ts +13 -0
  43. package/dist/cjs/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.js +35 -0
  44. package/dist/cjs/serialization/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.d.ts +1 -1
  45. package/dist/cjs/serialization/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.js +1 -1
  46. package/dist/cjs/serialization/resources/abTests/types/index.d.ts +1 -0
  47. package/dist/cjs/serialization/resources/abTests/types/index.js +1 -0
  48. package/dist/cjs/serialization/resources/sequences/client/requests/SequenceCreateRequest.d.ts +1 -0
  49. package/dist/cjs/serialization/resources/sequences/client/requests/SequenceCreateRequest.js +1 -0
  50. package/dist/cjs/serialization/resources/sequences/client/requests/SequenceUpdateRequest.d.ts +1 -0
  51. package/dist/cjs/serialization/resources/sequences/client/requests/SequenceUpdateRequest.js +1 -0
  52. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.d.ts +1 -1
  53. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.js +1 -1
  54. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.d.ts +1 -1
  55. package/dist/cjs/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.js +1 -1
  56. package/dist/cjs/serialization/resources/subscribers/types/UpdateSubscribersRequestStatus.d.ts +1 -1
  57. package/dist/cjs/serialization/resources/subscribers/types/UpdateSubscribersRequestStatus.js +1 -1
  58. package/dist/cjs/serialization/types/AbTest.d.ts +4 -1
  59. package/dist/cjs/serialization/types/AbTest.js +4 -1
  60. package/dist/cjs/serialization/types/AbTestSignificanceMetric.d.ts +1 -1
  61. package/dist/cjs/serialization/types/AbTestSignificanceMetric.js +1 -1
  62. package/dist/cjs/serialization/types/AbTestWinnerCriteria.d.ts +7 -0
  63. package/dist/cjs/serialization/types/AbTestWinnerCriteria.js +29 -0
  64. package/dist/cjs/serialization/types/SequenceCreateResponseSequence.d.ts +1 -0
  65. package/dist/cjs/serialization/types/SequenceCreateResponseSequence.js +1 -0
  66. package/dist/cjs/serialization/types/SequenceSummary.d.ts +1 -0
  67. package/dist/cjs/serialization/types/SequenceSummary.js +1 -0
  68. package/dist/cjs/serialization/types/index.d.ts +1 -0
  69. package/dist/cjs/serialization/types/index.js +1 -0
  70. package/dist/esm/api/resources/abTests/client/requests/CreateAbTestsRequest.d.ts +5 -1
  71. package/dist/esm/api/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +7 -1
  72. package/dist/esm/api/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.d.ts +4 -1
  73. package/dist/esm/api/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.js +4 -1
  74. package/dist/esm/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.d.ts +3 -0
  75. package/dist/esm/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.d.ts +13 -0
  76. package/dist/esm/api/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.js +2 -0
  77. package/dist/esm/api/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.d.ts +4 -1
  78. package/dist/esm/api/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.js +4 -1
  79. package/dist/esm/api/resources/abTests/types/index.d.ts +1 -0
  80. package/dist/esm/api/resources/abTests/types/index.js +1 -0
  81. package/dist/esm/api/resources/sequences/client/requests/SequenceCreateRequest.d.ts +2 -0
  82. package/dist/esm/api/resources/sequences/client/requests/SequenceUpdateRequest.d.ts +2 -0
  83. package/dist/esm/api/resources/subscribers/client/requests/UpdateByExternalIdPathSubscribersRequest.d.ts +1 -1
  84. package/dist/esm/api/resources/subscribers/client/requests/UpdateByExternalIdSubscribersRequest.d.ts +1 -1
  85. package/dist/esm/api/resources/subscribers/client/requests/UpdateSubscribersRequest.d.ts +1 -1
  86. package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.d.ts +2 -1
  87. package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.js +2 -1
  88. package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.d.ts +2 -1
  89. package/dist/esm/api/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.js +2 -1
  90. package/dist/esm/api/resources/subscribers/types/UpdateSubscribersRequestStatus.d.ts +2 -1
  91. package/dist/esm/api/resources/subscribers/types/UpdateSubscribersRequestStatus.js +2 -1
  92. package/dist/esm/api/types/AbTest.d.ts +6 -2
  93. package/dist/esm/api/types/AbTestSignificance.d.ts +1 -1
  94. package/dist/esm/api/types/AbTestSignificanceMetric.d.ts +4 -1
  95. package/dist/esm/api/types/AbTestSignificanceMetric.js +4 -1
  96. package/dist/esm/api/types/AbTestWinnerCriteria.d.ts +8 -0
  97. package/dist/esm/api/types/AbTestWinnerCriteria.js +8 -0
  98. package/dist/esm/api/types/AccountHealthInsight.d.ts +1 -1
  99. package/dist/esm/api/types/SequenceCreateResponseSequence.d.ts +2 -0
  100. package/dist/esm/api/types/SequenceSummary.d.ts +2 -0
  101. package/dist/esm/api/types/index.d.ts +1 -0
  102. package/dist/esm/api/types/index.js +1 -0
  103. package/dist/esm/serialization/resources/abTests/client/requests/CreateAbTestsRequest.d.ts +2 -0
  104. package/dist/esm/serialization/resources/abTests/client/requests/CreateAbTestsRequest.js +2 -0
  105. package/dist/esm/serialization/resources/abTests/client/requests/UpdateAbTestsRequest.d.ts +3 -0
  106. package/dist/esm/serialization/resources/abTests/client/requests/UpdateAbTestsRequest.js +3 -0
  107. package/dist/esm/serialization/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.d.ts +1 -1
  108. package/dist/esm/serialization/resources/abTests/types/CreateAbTestsRequestWinnerCriteria.js +1 -1
  109. package/dist/esm/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.d.ts +2 -0
  110. package/dist/esm/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItem.js +2 -0
  111. package/dist/esm/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.d.ts +13 -0
  112. package/dist/esm/serialization/resources/abTests/types/GetStatsAbTestsResponseVariantsItemOutcome.js +9 -0
  113. package/dist/esm/serialization/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.d.ts +1 -1
  114. package/dist/esm/serialization/resources/abTests/types/UpdateAbTestsRequestWinnerCriteria.js +1 -1
  115. package/dist/esm/serialization/resources/abTests/types/index.d.ts +1 -0
  116. package/dist/esm/serialization/resources/abTests/types/index.js +1 -0
  117. package/dist/esm/serialization/resources/sequences/client/requests/SequenceCreateRequest.d.ts +1 -0
  118. package/dist/esm/serialization/resources/sequences/client/requests/SequenceCreateRequest.js +1 -0
  119. package/dist/esm/serialization/resources/sequences/client/requests/SequenceUpdateRequest.d.ts +1 -0
  120. package/dist/esm/serialization/resources/sequences/client/requests/SequenceUpdateRequest.js +1 -0
  121. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.d.ts +1 -1
  122. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdPathSubscribersRequestStatus.js +1 -1
  123. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.d.ts +1 -1
  124. package/dist/esm/serialization/resources/subscribers/types/UpdateByExternalIdSubscribersRequestStatus.js +1 -1
  125. package/dist/esm/serialization/resources/subscribers/types/UpdateSubscribersRequestStatus.d.ts +1 -1
  126. package/dist/esm/serialization/resources/subscribers/types/UpdateSubscribersRequestStatus.js +1 -1
  127. package/dist/esm/serialization/types/AbTest.d.ts +4 -1
  128. package/dist/esm/serialization/types/AbTest.js +4 -1
  129. package/dist/esm/serialization/types/AbTestSignificanceMetric.d.ts +1 -1
  130. package/dist/esm/serialization/types/AbTestSignificanceMetric.js +1 -1
  131. package/dist/esm/serialization/types/AbTestWinnerCriteria.d.ts +7 -0
  132. package/dist/esm/serialization/types/AbTestWinnerCriteria.js +3 -0
  133. package/dist/esm/serialization/types/SequenceCreateResponseSequence.d.ts +1 -0
  134. package/dist/esm/serialization/types/SequenceCreateResponseSequence.js +1 -0
  135. package/dist/esm/serialization/types/SequenceSummary.d.ts +1 -0
  136. package/dist/esm/serialization/types/SequenceSummary.js +1 -0
  137. package/dist/esm/serialization/types/index.d.ts +1 -0
  138. package/dist/esm/serialization/types/index.js +1 -0
  139. package/package.json +1 -1
@@ -20,8 +20,12 @@ export interface CreateAbTestsRequest {
20
20
  testType?: Sequenzy.CreateAbTestsRequestTestType;
21
21
  /** Extra variants beyond the control. Required (min 1) when converting with automationNodeId. Total variants cannot exceed 5. */
22
22
  variants?: Sequenzy.CreateAbTestsRequestVariantsItem[];
23
- /** Metric used to pick the winner. For sequence tests, an explicit value overrides the testType default. */
23
+ /** Metric used to pick the winner. For sequence tests, an explicit value overrides the testType default. `goal_conversion_rate` picks the variant whose recipients convert on `winnerGoalId` most often per delivered email, `goal_value` the one with the most goal value per delivered email, and `event_rate` the one whose recipients most often fire `winnerEventName` after receiving it. Goal conversions count when attributed to the email (an open or click within the goal's attribution window; for campaigns, revenue and campaign goals also credit a recipient who received the email in that window). When no variant converts, campaign tests fall back to click rate and sequence tests keep splitting contacts. */
24
24
  winnerCriteria?: Sequenzy.CreateAbTestsRequestWinnerCriteria;
25
+ /** Required for `event_rate`. The event a recipient must fire after receiving the variant. */
26
+ winnerEventName?: string | null;
27
+ /** Required for `goal_conversion_rate` and `goal_value`. A goal ID that is active and company-wide or scoped to this campaign or sequence, or `default-revenue` for built-in purchase revenue (SaaS purchases and commerce orders, in cents). Other goals return 400. */
28
+ winnerGoalId?: string | null;
25
29
  /** Number of sequence recipients in the test sample. */
26
30
  winnerThreshold?: number;
27
31
  }
@@ -14,6 +14,8 @@ export interface UpdateAbTestsRequest {
14
14
  cancelSampleUpdate?: boolean;
15
15
  /** Required when sequence settings affect an active test or a test with recorded activity. */
16
16
  confirmLiveChange?: boolean;
17
+ /** Campaign-only. End a running test now: the winner is picked by winnerCriteria from the results so far and sent to the remaining audience. Requires campaigns:send. Cannot be combined with testDurationMinutes; returns 400 for tests that are not running and 409 while a sample change is pending. */
18
+ endTestNow?: boolean;
17
19
  /** Optional campaign revision from GET; stale values return 409. Omit to preserve existing unconditional update behavior. */
18
20
  expectedUpdatedAt?: Date;
19
21
  name?: string;
@@ -23,8 +25,12 @@ export interface UpdateAbTestsRequest {
23
25
  testPercentage?: number;
24
26
  /** Sequence-only variant strategy. */
25
27
  testType?: Sequenzy.UpdateAbTestsRequestTestType;
26
- /** Winner metric for campaign or sequence tests; immutable once campaign testing starts. */
28
+ /** Winner metric for campaign or sequence tests; immutable once campaign testing starts, together with winnerGoalId and winnerEventName. Changing the criterion clears a goal or event the new criterion does not use. */
27
29
  winnerCriteria?: Sequenzy.UpdateAbTestsRequestWinnerCriteria;
30
+ /** Required for `event_rate`. The event a recipient must fire after receiving the variant. */
31
+ winnerEventName?: string | null;
32
+ /** Required for `goal_conversion_rate` and `goal_value`. A goal ID that is active and company-wide or scoped to this campaign or sequence, or `default-revenue` for built-in purchase revenue (SaaS purchases and commerce orders, in cents). Other goals return 400. */
33
+ winnerGoalId?: string | null;
28
34
  /** Sequence-only recipient threshold. */
29
35
  winnerThreshold?: number;
30
36
  }
@@ -1,6 +1,9 @@
1
- /** Metric used to pick the winner. For sequence tests, an explicit value overrides the testType default. */
1
+ /** Metric used to pick the winner. For sequence tests, an explicit value overrides the testType default. `goal_conversion_rate` picks the variant whose recipients convert on `winnerGoalId` most often per delivered email, `goal_value` the one with the most goal value per delivered email, and `event_rate` the one whose recipients most often fire `winnerEventName` after receiving it. Goal conversions count when attributed to the email (an open or click within the goal's attribution window; for campaigns, revenue and campaign goals also credit a recipient who received the email in that window). When no variant converts, campaign tests fall back to click rate and sequence tests keep splitting contacts. */
2
2
  export declare const CreateAbTestsRequestWinnerCriteria: {
3
3
  readonly OpenRate: "open_rate";
4
4
  readonly ClickRate: "click_rate";
5
+ readonly GoalConversionRate: "goal_conversion_rate";
6
+ readonly GoalValue: "goal_value";
7
+ readonly EventRate: "event_rate";
5
8
  };
6
9
  export type CreateAbTestsRequestWinnerCriteria = (typeof CreateAbTestsRequestWinnerCriteria)[keyof typeof CreateAbTestsRequestWinnerCriteria];
@@ -2,8 +2,11 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CreateAbTestsRequestWinnerCriteria = void 0;
5
- /** Metric used to pick the winner. For sequence tests, an explicit value overrides the testType default. */
5
+ /** Metric used to pick the winner. For sequence tests, an explicit value overrides the testType default. `goal_conversion_rate` picks the variant whose recipients convert on `winnerGoalId` most often per delivered email, `goal_value` the one with the most goal value per delivered email, and `event_rate` the one whose recipients most often fire `winnerEventName` after receiving it. Goal conversions count when attributed to the email (an open or click within the goal's attribution window; for campaigns, revenue and campaign goals also credit a recipient who received the email in that window). When no variant converts, campaign tests fall back to click rate and sequence tests keep splitting contacts. */
6
6
  exports.CreateAbTestsRequestWinnerCriteria = {
7
7
  OpenRate: "open_rate",
8
8
  ClickRate: "click_rate",
9
+ GoalConversionRate: "goal_conversion_rate",
10
+ GoalValue: "goal_value",
11
+ EventRate: "event_rate",
9
12
  };
@@ -1,7 +1,10 @@
1
+ import type * as Sequenzy from "../../../index.js";
1
2
  export interface GetStatsAbTestsResponseVariantsItem {
2
3
  id?: string;
3
4
  isWinner?: boolean;
4
5
  label?: string;
6
+ /** Present when the test is judged on a goal or event. Covers every send of the test, whatever the requested period. */
7
+ outcome?: Sequenzy.GetStatsAbTestsResponseVariantsItemOutcome;
5
8
  stats?: Record<string, unknown>;
6
9
  subject?: string;
7
10
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Present when the test is judged on a goal or event. Covers every send of the test, whatever the requested period.
3
+ */
4
+ export interface GetStatsAbTestsResponseVariantsItemOutcome {
5
+ /** convertedRecipients per delivered email, as a percentage. */
6
+ conversionRate?: number;
7
+ /** Recipients with an attributed goal conversion, or who fired the event after their send. */
8
+ convertedRecipients?: number;
9
+ deliveries?: number;
10
+ /** Summed tracked goal value, such as revenue in cents. Refunds lower it. 0 for events. */
11
+ value?: number;
12
+ valuePerDelivery?: number;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
- /** Winner metric for campaign or sequence tests; immutable once campaign testing starts. */
1
+ /** Winner metric for campaign or sequence tests; immutable once campaign testing starts, together with winnerGoalId and winnerEventName. Changing the criterion clears a goal or event the new criterion does not use. */
2
2
  export declare const UpdateAbTestsRequestWinnerCriteria: {
3
3
  readonly OpenRate: "open_rate";
4
4
  readonly ClickRate: "click_rate";
5
+ readonly GoalConversionRate: "goal_conversion_rate";
6
+ readonly GoalValue: "goal_value";
7
+ readonly EventRate: "event_rate";
5
8
  };
6
9
  export type UpdateAbTestsRequestWinnerCriteria = (typeof UpdateAbTestsRequestWinnerCriteria)[keyof typeof UpdateAbTestsRequestWinnerCriteria];
@@ -2,8 +2,11 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.UpdateAbTestsRequestWinnerCriteria = void 0;
5
- /** Winner metric for campaign or sequence tests; immutable once campaign testing starts. */
5
+ /** Winner metric for campaign or sequence tests; immutable once campaign testing starts, together with winnerGoalId and winnerEventName. Changing the criterion clears a goal or event the new criterion does not use. */
6
6
  exports.UpdateAbTestsRequestWinnerCriteria = {
7
7
  OpenRate: "open_rate",
8
8
  ClickRate: "click_rate",
9
+ GoalConversionRate: "goal_conversion_rate",
10
+ GoalValue: "goal_value",
11
+ EventRate: "event_rate",
9
12
  };
@@ -9,6 +9,7 @@ export * from "./GetAbTestsResponse.js";
9
9
  export * from "./GetStatsAbTestsRequestPeriod.js";
10
10
  export * from "./GetStatsAbTestsResponse.js";
11
11
  export * from "./GetStatsAbTestsResponseVariantsItem.js";
12
+ export * from "./GetStatsAbTestsResponseVariantsItemOutcome.js";
12
13
  export * from "./ListAbTestsResponse.js";
13
14
  export * from "./RestartAbTestsRequestTestType.js";
14
15
  export * from "./RestartAbTestsResponse.js";
@@ -25,6 +25,7 @@ __exportStar(require("./GetAbTestsResponse.js"), exports);
25
25
  __exportStar(require("./GetStatsAbTestsRequestPeriod.js"), exports);
26
26
  __exportStar(require("./GetStatsAbTestsResponse.js"), exports);
27
27
  __exportStar(require("./GetStatsAbTestsResponseVariantsItem.js"), exports);
28
+ __exportStar(require("./GetStatsAbTestsResponseVariantsItemOutcome.js"), exports);
28
29
  __exportStar(require("./ListAbTestsResponse.js"), exports);
29
30
  __exportStar(require("./RestartAbTestsRequestTestType.js"), exports);
30
31
  __exportStar(require("./RestartAbTestsResponse.js"), exports);
@@ -106,6 +106,8 @@ import type * as Sequenzy from "../../../../index.js";
106
106
  * }
107
107
  */
108
108
  export interface SequenceCreateRequest {
109
+ /** Only enroll contacts whose status is `active`. Defaults to `false`: unsubscribed and bounced contacts still enter on tag, event, list and contact triggers so non-marketing steps run for them, and their marketing emails are skipped at send time. Pending double opt-in contacts still wait for confirmation. */
110
+ activeSubscribersOnly?: boolean;
109
111
  /** Addresses blind-copied on every sequence email. */
110
112
  bccEmails?: string[] | null;
111
113
  /** Custom inbound-webhook integration metadata. */
@@ -165,6 +165,8 @@ import type * as Sequenzy from "../../../../index.js";
165
165
  export interface SequenceUpdateRequest {
166
166
  /** Sequence ID */
167
167
  sequenceId: string;
168
+ /** Only enroll contacts whose status is `active`. Defaults to `false`: unsubscribed and bounced contacts still enter on tag, event, list and contact triggers so non-marketing steps run for them, and their marketing emails are skipped at send time. Pending double opt-in contacts still wait for confirmation. */
169
+ activeSubscribersOnly?: boolean;
168
170
  /** Keep enrolling later joiners of an audience until the last key date. Null clears it. Changing the trigger away from manual switches it off (endedReason "disabled"). */
169
171
  audienceAutoEnroll?: Sequenzy.SequenceAudienceAutoEnroll | null;
170
172
  /** Email addresses that receive a blind copy of every email this sequence sends, such as a customer support inbox (max 10). Set to null to remove them. */
@@ -26,7 +26,7 @@ export interface UpdateByExternalIdPathSubscribersRequest {
26
26
  phoneCountry?: string | null;
27
27
  /** SMS marketing consent. true sets smsStatus to subscribed with consent source api, false sets unsubscribed, omitted leaves SMS status unchanged. Never inferred from phone presence. */
28
28
  smsConsent?: boolean;
29
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
29
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
30
30
  status?: Sequenzy.UpdateByExternalIdPathSubscribersRequestStatus;
31
31
  tags?: string[];
32
32
  /** IANA timezone identifier (e.g. America/New_York) used for recipient-local campaign delivery. Invalid values fail with a 400 validation error; null clears the stored value. */
@@ -26,7 +26,7 @@ export interface UpdateByExternalIdSubscribersRequest {
26
26
  phoneCountry?: string | null;
27
27
  /** SMS marketing consent. true sets smsStatus to subscribed with consent source api, false sets unsubscribed, omitted leaves SMS status unchanged. Never inferred from phone presence. */
28
28
  smsConsent?: boolean;
29
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
29
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
30
30
  status?: Sequenzy.UpdateByExternalIdSubscribersRequestStatus;
31
31
  tags?: string[];
32
32
  /** IANA timezone identifier (e.g. America/New_York) used for recipient-local campaign delivery. Invalid values fail with a 400 validation error; null clears the stored value. */
@@ -26,7 +26,7 @@ export interface UpdateSubscribersRequest {
26
26
  phoneCountry?: string | null;
27
27
  /** SMS marketing consent. true sets smsStatus to subscribed with consent source api, false sets unsubscribed, omitted leaves SMS status unchanged. Never inferred from phone presence. */
28
28
  smsConsent?: boolean;
29
- /** Setting `unsubscribed` performs a full global unsubscribe. */
29
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
30
30
  status?: Sequenzy.UpdateSubscribersRequestStatus;
31
31
  tags?: string[];
32
32
  /** IANA timezone identifier such as America/New_York, stored as a native profile field and used for recipient-local campaign delivery. An invalid identifier returns 400 VALIDATION_ERROR. Omit to keep unchanged, or send null to clear. */
@@ -1,7 +1,8 @@
1
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
1
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
2
2
  export declare const UpdateByExternalIdPathSubscribersRequestStatus: {
3
3
  readonly Active: "active";
4
4
  readonly Unsubscribed: "unsubscribed";
5
5
  readonly Bounced: "bounced";
6
+ readonly Complained: "complained";
6
7
  };
7
8
  export type UpdateByExternalIdPathSubscribersRequestStatus = (typeof UpdateByExternalIdPathSubscribersRequestStatus)[keyof typeof UpdateByExternalIdPathSubscribersRequestStatus];
@@ -2,9 +2,10 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.UpdateByExternalIdPathSubscribersRequestStatus = void 0;
5
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
5
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
6
6
  exports.UpdateByExternalIdPathSubscribersRequestStatus = {
7
7
  Active: "active",
8
8
  Unsubscribed: "unsubscribed",
9
9
  Bounced: "bounced",
10
+ Complained: "complained",
10
11
  };
@@ -1,7 +1,8 @@
1
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
1
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
2
2
  export declare const UpdateByExternalIdSubscribersRequestStatus: {
3
3
  readonly Active: "active";
4
4
  readonly Unsubscribed: "unsubscribed";
5
5
  readonly Bounced: "bounced";
6
+ readonly Complained: "complained";
6
7
  };
7
8
  export type UpdateByExternalIdSubscribersRequestStatus = (typeof UpdateByExternalIdSubscribersRequestStatus)[keyof typeof UpdateByExternalIdSubscribersRequestStatus];
@@ -2,9 +2,10 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.UpdateByExternalIdSubscribersRequestStatus = void 0;
5
- /** Setting `unsubscribed` performs the unsubscribe workflow. */
5
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
6
6
  exports.UpdateByExternalIdSubscribersRequestStatus = {
7
7
  Active: "active",
8
8
  Unsubscribed: "unsubscribed",
9
9
  Bounced: "bounced",
10
+ Complained: "complained",
10
11
  };
@@ -1,7 +1,8 @@
1
- /** Setting `unsubscribed` performs a full global unsubscribe. */
1
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
2
2
  export declare const UpdateSubscribersRequestStatus: {
3
3
  readonly Active: "active";
4
4
  readonly Unsubscribed: "unsubscribed";
5
5
  readonly Bounced: "bounced";
6
+ readonly Complained: "complained";
6
7
  };
7
8
  export type UpdateSubscribersRequestStatus = (typeof UpdateSubscribersRequestStatus)[keyof typeof UpdateSubscribersRequestStatus];
@@ -2,9 +2,10 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.UpdateSubscribersRequestStatus = void 0;
5
- /** Setting `unsubscribed` performs a full global unsubscribe. */
5
+ /** Setting `unsubscribed` performs a full global unsubscribe. Setting `complained` records a company spam-complaint suppression (visible through the suppressions endpoints), then runs the same unsubscribe workflow; the subscriber then reads as `unsubscribed`. Repeating it is safe. */
6
6
  exports.UpdateSubscribersRequestStatus = {
7
7
  Active: "active",
8
8
  Unsubscribed: "unsubscribed",
9
9
  Bounced: "bounced",
10
+ Complained: "complained",
10
11
  };
@@ -14,7 +14,7 @@ export interface AbTest {
14
14
  pendingSampleUpdate?: Sequenzy.AbTestPendingSampleUpdate | null;
15
15
  /** Present on campaign detail and settings responses. Null if the campaign is missing. Counts unique recipient deliveries across retry attempts, excluding separate test emails. */
16
16
  progress?: Sequenzy.AbTestProgress | null;
17
- /** Effective settings for this test kind. Campaign tests return testPercentage, testDurationMinutes, and winnerCriteria; sequence tests return testType, winnerThreshold, and winnerCriteria. */
17
+ /** Effective settings for this test kind. Campaign tests return testPercentage, testDurationMinutes, winnerCriteria, winnerGoalId, and winnerEventName; sequence tests return testType, winnerThreshold, winnerCriteria, winnerGoalId, and winnerEventName. */
18
18
  settings?: Record<string, unknown>;
19
19
  status?: string;
20
20
  /** Campaign test duration. Sequence tests retain the legacy internal sentinel value 0; use settings instead. */
@@ -27,7 +27,11 @@ export interface AbTest {
27
27
  testType?: Sequenzy.AbTestTestType;
28
28
  updatedAt?: Date;
29
29
  variants?: Sequenzy.AbTestVariant[];
30
- winnerCriteria?: string;
30
+ winnerCriteria?: Sequenzy.AbTestWinnerCriteria;
31
+ /** Event judged by `event_rate`. Null for other criteria. */
32
+ winnerEventName?: string | null;
33
+ /** Goal judged by `goal_conversion_rate` or `goal_value` (a goal ID or `default-revenue`). Null for other criteria. */
34
+ winnerGoalId?: string | null;
31
35
  winnerSelectedAt?: Date | null;
32
36
  /** Effective sequence recipient threshold. Present for sequence tests. */
33
37
  winnerThreshold?: number;
@@ -10,7 +10,7 @@ export interface AbTestSignificance {
10
10
  /** Variant with the highest rate, or null when the top variants are tied. */
11
11
  leaderVariantId: string | null;
12
12
  leaderVariantLabel: string | null;
13
- /** Metric compared, taken from the test's winner criteria. */
13
+ /** Metric compared, taken from the test's winner criteria. Goal and event criteria compare whether recipients converted; `goal_value` does too, since value has no yes/no outcome per recipient. */
14
14
  metric: Sequenzy.AbTestSignificanceMetric;
15
15
  /** Corrected two-sided p-value of the weakest leader comparison. Very strong results can round to exactly 0. Null while data is insufficient. */
16
16
  pValue: number | null;
@@ -1,6 +1,9 @@
1
- /** Metric compared, taken from the test's winner criteria. */
1
+ /** Metric compared, taken from the test's winner criteria. Goal and event criteria compare whether recipients converted; `goal_value` does too, since value has no yes/no outcome per recipient. */
2
2
  export declare const AbTestSignificanceMetric: {
3
3
  readonly OpenRate: "open_rate";
4
4
  readonly ClickRate: "click_rate";
5
+ readonly GoalConversionRate: "goal_conversion_rate";
6
+ readonly GoalValue: "goal_value";
7
+ readonly EventRate: "event_rate";
5
8
  };
6
9
  export type AbTestSignificanceMetric = (typeof AbTestSignificanceMetric)[keyof typeof AbTestSignificanceMetric];
@@ -2,8 +2,11 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.AbTestSignificanceMetric = void 0;
5
- /** Metric compared, taken from the test's winner criteria. */
5
+ /** Metric compared, taken from the test's winner criteria. Goal and event criteria compare whether recipients converted; `goal_value` does too, since value has no yes/no outcome per recipient. */
6
6
  exports.AbTestSignificanceMetric = {
7
7
  OpenRate: "open_rate",
8
8
  ClickRate: "click_rate",
9
+ GoalConversionRate: "goal_conversion_rate",
10
+ GoalValue: "goal_value",
11
+ EventRate: "event_rate",
9
12
  };
@@ -0,0 +1,8 @@
1
+ export declare const AbTestWinnerCriteria: {
2
+ readonly OpenRate: "open_rate";
3
+ readonly ClickRate: "click_rate";
4
+ readonly GoalConversionRate: "goal_conversion_rate";
5
+ readonly GoalValue: "goal_value";
6
+ readonly EventRate: "event_rate";
7
+ };
8
+ export type AbTestWinnerCriteria = (typeof AbTestWinnerCriteria)[keyof typeof AbTestWinnerCriteria];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AbTestWinnerCriteria = void 0;
5
+ exports.AbTestWinnerCriteria = {
6
+ OpenRate: "open_rate",
7
+ ClickRate: "click_rate",
8
+ GoalConversionRate: "goal_conversion_rate",
9
+ GoalValue: "goal_value",
10
+ EventRate: "event_rate",
11
+ };
@@ -7,7 +7,7 @@ export interface AccountHealthInsight {
7
7
  actions?: Sequenzy.AccountHealthAction[];
8
8
  detail?: string;
9
9
  detector?: Sequenzy.AccountHealthInsightDetector;
10
- /** Detector-specific numbers behind the finding. Event findings carry `monthlyRevenue` (USD a month the people behind the event pay) when a payment integration syncs revenue to contacts. A missing_sequence finding carries the suggested `playbook`, `name`, `goal`, `trigger` and `steps`. An over_emailing finding carries `overloadedSubscribers`, `recipients`, `peakPerDay`, `dailyThreshold`, `windowDays`, `frequencyCap` (null when off) and `sources` (type campaign, sequence or api, id, name, sends, and respectsFrequencyCap for sequences; the api source has an empty id and stands for marketing Send API email, which the frequency cap does not limit). A neglected_subscribers finding carries `neglectedSubscribers`, `eligibleSubscribers`, `days`, `estimated` and `sampled`. */
10
+ /** Detector-specific numbers behind the finding. Event findings carry `monthlyRevenue` (USD a month the people behind the event pay) when a payment integration syncs revenue to contacts. A missing_sequence finding carries the suggested `playbook`, `name`, `goal`, `trigger` and `steps`. An over_emailing finding carries `overloadedSubscribers`, `recipients`, `peakPerDay`, `dailyThreshold`, `windowDays`, `frequencyCap` (null when off) and `sources` (type campaign, sequence or api, id, name, sends, and respectsFrequencyCap for sequences, plus enrollsEveryTime when the sequence uses unlimited re-entry and peakEnrollmentsPerPerson, the most times one person entered it in the window; the api source has an empty id and stands for marketing Send API email, which the frequency cap does not limit). A neglected_subscribers finding carries `neglectedSubscribers`, `eligibleSubscribers`, `days`, `estimated` and `sampled`. */
11
11
  evidence?: Record<string, unknown>;
12
12
  /** Included in Get Account Health only. Your own answer to "was this useful?" for this finding (the API key owner's), or null when you have not answered. Other responses that return an insight leave it out. */
13
13
  feedback?: Sequenzy.AccountHealthInsightFeedback | null;
@@ -2,6 +2,8 @@ import type * as Sequenzy from "../index.js";
2
2
  export interface SequenceCreateResponseSequence {
3
3
  /** Whether new subscribers can enter the sequence right now. */
4
4
  acceptsNewEnrollments?: boolean;
5
+ /** Whether only active contacts can enter. When `false`, unsubscribed and bounced contacts still enter and only their marketing emails are skipped. */
6
+ activeSubscribersOnly?: boolean;
5
7
  discountCount?: number;
6
8
  effectiveStatus?: Sequenzy.SequenceEffectiveStatus;
7
9
  /** One plain-language sentence describing the run state, safe to show a user verbatim. */
@@ -2,6 +2,8 @@ import type * as Sequenzy from "../index.js";
2
2
  export interface SequenceSummary {
3
3
  /** Whether new subscribers can enter the sequence right now. */
4
4
  acceptsNewEnrollments?: boolean;
5
+ /** Whether only active contacts can enter. When `false`, unsubscribed and bounced contacts still enter and only their marketing emails are skipped. */
6
+ activeSubscribersOnly?: boolean;
5
7
  audienceAutoEnroll?: Sequenzy.SequenceAudienceAutoEnroll | null;
6
8
  /** Email addresses blind-copied on every email this sequence sends. */
7
9
  bccEmails?: string[] | null;
@@ -9,6 +9,7 @@ export * from "./AbTestSignificanceMetric.js";
9
9
  export * from "./AbTestSignificanceStatus.js";
10
10
  export * from "./AbTestTestType.js";
11
11
  export * from "./AbTestVariant.js";
12
+ export * from "./AbTestWinnerCriteria.js";
12
13
  export * from "./Account.js";
13
14
  export * from "./AccountEvent.js";
14
15
  export * from "./AccountHealthAction.js";
@@ -25,6 +25,7 @@ __exportStar(require("./AbTestSignificanceMetric.js"), exports);
25
25
  __exportStar(require("./AbTestSignificanceStatus.js"), exports);
26
26
  __exportStar(require("./AbTestTestType.js"), exports);
27
27
  __exportStar(require("./AbTestVariant.js"), exports);
28
+ __exportStar(require("./AbTestWinnerCriteria.js"), exports);
28
29
  __exportStar(require("./Account.js"), exports);
29
30
  __exportStar(require("./AccountEvent.js"), exports);
30
31
  __exportStar(require("./AccountHealthAction.js"), exports);
@@ -16,6 +16,8 @@ export declare namespace CreateAbTestsRequest {
16
16
  testType?: CreateAbTestsRequestTestType.Raw | null;
17
17
  variants?: CreateAbTestsRequestVariantsItem.Raw[] | null;
18
18
  winnerCriteria?: CreateAbTestsRequestWinnerCriteria.Raw | null;
19
+ winnerEventName?: (string | null | undefined) | null;
20
+ winnerGoalId?: (string | null | undefined) | null;
19
21
  winnerThreshold?: number | null;
20
22
  }
21
23
  }
@@ -39,5 +39,7 @@ exports.CreateAbTestsRequest = core.serialization.object({
39
39
  testType: CreateAbTestsRequestTestType_js_1.CreateAbTestsRequestTestType.optional(),
40
40
  variants: core.serialization.list(CreateAbTestsRequestVariantsItem_js_1.CreateAbTestsRequestVariantsItem).optional(),
41
41
  winnerCriteria: CreateAbTestsRequestWinnerCriteria_js_1.CreateAbTestsRequestWinnerCriteria.optional(),
42
+ winnerEventName: core.serialization.string().optionalNullable(),
43
+ winnerGoalId: core.serialization.string().optionalNullable(),
42
44
  winnerThreshold: core.serialization.number().optional(),
43
45
  });
@@ -9,12 +9,15 @@ export declare namespace UpdateAbTestsRequest {
9
9
  autoSelectWinner?: boolean | null;
10
10
  cancelSampleUpdate?: boolean | null;
11
11
  confirmLiveChange?: boolean | null;
12
+ endTestNow?: boolean | null;
12
13
  expectedUpdatedAt?: string | null;
13
14
  name?: string | null;
14
15
  testDurationMinutes?: number | null;
15
16
  testPercentage?: number | null;
16
17
  testType?: UpdateAbTestsRequestTestType.Raw | null;
17
18
  winnerCriteria?: UpdateAbTestsRequestWinnerCriteria.Raw | null;
19
+ winnerEventName?: (string | null | undefined) | null;
20
+ winnerGoalId?: (string | null | undefined) | null;
18
21
  winnerThreshold?: number | null;
19
22
  }
20
23
  }
@@ -32,11 +32,14 @@ exports.UpdateAbTestsRequest = core.serialization.object({
32
32
  autoSelectWinner: core.serialization.boolean().optional(),
33
33
  cancelSampleUpdate: core.serialization.boolean().optional(),
34
34
  confirmLiveChange: core.serialization.boolean().optional(),
35
+ endTestNow: core.serialization.boolean().optional(),
35
36
  expectedUpdatedAt: core.serialization.date().optional(),
36
37
  name: core.serialization.string().optional(),
37
38
  testDurationMinutes: core.serialization.number().optional(),
38
39
  testPercentage: core.serialization.number().optional(),
39
40
  testType: UpdateAbTestsRequestTestType_js_1.UpdateAbTestsRequestTestType.optional(),
40
41
  winnerCriteria: UpdateAbTestsRequestWinnerCriteria_js_1.UpdateAbTestsRequestWinnerCriteria.optional(),
42
+ winnerEventName: core.serialization.string().optionalNullable(),
43
+ winnerGoalId: core.serialization.string().optionalNullable(),
41
44
  winnerThreshold: core.serialization.number().optional(),
42
45
  });
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const CreateAbTestsRequestWinnerCriteria: core.serialization.Schema<serializers.CreateAbTestsRequestWinnerCriteria.Raw, Sequenzy.CreateAbTestsRequestWinnerCriteria>;
5
5
  export declare namespace CreateAbTestsRequestWinnerCriteria {
6
- type Raw = "open_rate" | "click_rate";
6
+ type Raw = "open_rate" | "click_rate" | "goal_conversion_rate" | "goal_value" | "event_rate";
7
7
  }
@@ -26,4 +26,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.CreateAbTestsRequestWinnerCriteria = void 0;
28
28
  const core = __importStar(require("../../../../core/index.js"));
29
- exports.CreateAbTestsRequestWinnerCriteria = core.serialization.enum_(["open_rate", "click_rate"]);
29
+ exports.CreateAbTestsRequestWinnerCriteria = core.serialization.enum_(["open_rate", "click_rate", "goal_conversion_rate", "goal_value", "event_rate"]);
@@ -1,12 +1,14 @@
1
1
  import type * as Sequenzy from "../../../../api/index.js";
2
2
  import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
+ import { GetStatsAbTestsResponseVariantsItemOutcome } from "./GetStatsAbTestsResponseVariantsItemOutcome.js";
4
5
  export declare const GetStatsAbTestsResponseVariantsItem: core.serialization.ObjectSchema<serializers.GetStatsAbTestsResponseVariantsItem.Raw, Sequenzy.GetStatsAbTestsResponseVariantsItem>;
5
6
  export declare namespace GetStatsAbTestsResponseVariantsItem {
6
7
  interface Raw {
7
8
  id?: string | null;
8
9
  isWinner?: boolean | null;
9
10
  label?: string | null;
11
+ outcome?: GetStatsAbTestsResponseVariantsItemOutcome.Raw | null;
10
12
  stats?: Record<string, unknown> | null;
11
13
  subject?: string | null;
12
14
  }
@@ -26,10 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.GetStatsAbTestsResponseVariantsItem = void 0;
28
28
  const core = __importStar(require("../../../../core/index.js"));
29
+ const GetStatsAbTestsResponseVariantsItemOutcome_js_1 = require("./GetStatsAbTestsResponseVariantsItemOutcome.js");
29
30
  exports.GetStatsAbTestsResponseVariantsItem = core.serialization.object({
30
31
  id: core.serialization.string().optional(),
31
32
  isWinner: core.serialization.boolean().optional(),
32
33
  label: core.serialization.string().optional(),
34
+ outcome: GetStatsAbTestsResponseVariantsItemOutcome_js_1.GetStatsAbTestsResponseVariantsItemOutcome.optional(),
33
35
  stats: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
34
36
  subject: core.serialization.string().optional(),
35
37
  });
@@ -0,0 +1,13 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const GetStatsAbTestsResponseVariantsItemOutcome: core.serialization.ObjectSchema<serializers.GetStatsAbTestsResponseVariantsItemOutcome.Raw, Sequenzy.GetStatsAbTestsResponseVariantsItemOutcome>;
5
+ export declare namespace GetStatsAbTestsResponseVariantsItemOutcome {
6
+ interface Raw {
7
+ conversionRate?: number | null;
8
+ convertedRecipients?: number | null;
9
+ deliveries?: number | null;
10
+ value?: number | null;
11
+ valuePerDelivery?: number | null;
12
+ }
13
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.GetStatsAbTestsResponseVariantsItemOutcome = void 0;
28
+ const core = __importStar(require("../../../../core/index.js"));
29
+ exports.GetStatsAbTestsResponseVariantsItemOutcome = core.serialization.object({
30
+ conversionRate: core.serialization.number().optional(),
31
+ convertedRecipients: core.serialization.number().optional(),
32
+ deliveries: core.serialization.number().optional(),
33
+ value: core.serialization.number().optional(),
34
+ valuePerDelivery: core.serialization.number().optional(),
35
+ });
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const UpdateAbTestsRequestWinnerCriteria: core.serialization.Schema<serializers.UpdateAbTestsRequestWinnerCriteria.Raw, Sequenzy.UpdateAbTestsRequestWinnerCriteria>;
5
5
  export declare namespace UpdateAbTestsRequestWinnerCriteria {
6
- type Raw = "open_rate" | "click_rate";
6
+ type Raw = "open_rate" | "click_rate" | "goal_conversion_rate" | "goal_value" | "event_rate";
7
7
  }
@@ -26,4 +26,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.UpdateAbTestsRequestWinnerCriteria = void 0;
28
28
  const core = __importStar(require("../../../../core/index.js"));
29
- exports.UpdateAbTestsRequestWinnerCriteria = core.serialization.enum_(["open_rate", "click_rate"]);
29
+ exports.UpdateAbTestsRequestWinnerCriteria = core.serialization.enum_(["open_rate", "click_rate", "goal_conversion_rate", "goal_value", "event_rate"]);
@@ -9,6 +9,7 @@ export * from "./GetAbTestsResponse.js";
9
9
  export * from "./GetStatsAbTestsRequestPeriod.js";
10
10
  export * from "./GetStatsAbTestsResponse.js";
11
11
  export * from "./GetStatsAbTestsResponseVariantsItem.js";
12
+ export * from "./GetStatsAbTestsResponseVariantsItemOutcome.js";
12
13
  export * from "./ListAbTestsResponse.js";
13
14
  export * from "./RestartAbTestsRequestTestType.js";
14
15
  export * from "./RestartAbTestsResponse.js";
@@ -25,6 +25,7 @@ __exportStar(require("./GetAbTestsResponse.js"), exports);
25
25
  __exportStar(require("./GetStatsAbTestsRequestPeriod.js"), exports);
26
26
  __exportStar(require("./GetStatsAbTestsResponse.js"), exports);
27
27
  __exportStar(require("./GetStatsAbTestsResponseVariantsItem.js"), exports);
28
+ __exportStar(require("./GetStatsAbTestsResponseVariantsItemOutcome.js"), exports);
28
29
  __exportStar(require("./ListAbTestsResponse.js"), exports);
29
30
  __exportStar(require("./RestartAbTestsRequestTestType.js"), exports);
30
31
  __exportStar(require("./RestartAbTestsResponse.js"), exports);
@@ -14,6 +14,7 @@ import { SequenceCreateRequestListScope } from "../../types/SequenceCreateReques
14
14
  export declare const SequenceCreateRequest: core.serialization.Schema<serializers.SequenceCreateRequest.Raw, Sequenzy.SequenceCreateRequest>;
15
15
  export declare namespace SequenceCreateRequest {
16
16
  interface Raw {
17
+ activeSubscribersOnly?: boolean | null;
17
18
  bccEmails?: (string[] | null | undefined) | null;
18
19
  customIntegration?: Record<string, unknown> | null;
19
20
  description?: string | null;