@flowio/api-types 0.0.226 → 0.0.228
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.
- package/generated/io.flow.billing.accounting.v0.billing-accounting.d.ts +13 -0
- package/generated/io.flow.billing.bank.account.v0.billing-bank-account.d.ts +1 -1
- package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +1 -1
- package/generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts +0 -1
- package/generated/io.flow.billing.reporting.v0.billing-reporting.d.ts +17 -16
- package/generated/io.flow.billing.v0.billing.d.ts +6 -1
- package/generated/io.flow.channel.internal.v0.channel-internal.d.ts +1 -1
- package/generated/io.flow.experiment.internal.v0.experiment-internal.d.ts +191 -0
- package/generated/io.flow.internal.v0.api-internal.d.ts +586 -325
- package/generated/io.flow.organization.onboarding.state.v0.organization-onboarding-state.d.ts +6 -1
- package/generated/io.flow.payment.gateway.v0.payment-gateway.d.ts +7 -1
- package/generated/io.flow.payment.v0.payment.d.ts +11 -1
- package/generated/io.flow.shopify.external.v0.shopify-external.d.ts +1 -0
- package/generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts +16 -1
- package/generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts +11 -0
- package/generated/io.flow.shopify.markets.v0.shopify-markets.d.ts +1 -1
- package/generated/io.flow.stripe.v0.stripe.d.ts +162 -5
- package/generated/io.flow.v0.api.d.ts +30 -4
- package/index.d.ts +1 -14
- package/package.json +2 -2
- package/generated/io.flow.billing.csv.v0.billing-csv.d.ts +0 -454
- package/generated/io.flow.checkout.analytics.v0.checkout-analytics.d.ts +0 -137
- package/generated/io.flow.checkout.backend.v0.checkout-backend.d.ts +0 -539
- package/generated/io.flow.checkout.common.v0.checkout-common.d.ts +0 -57
- package/generated/io.flow.checkout.configuration.v0.checkout-configuration.d.ts +0 -113
- package/generated/io.flow.checkout.protocol.v0.checkout-protocol.d.ts +0 -1347
- package/generated/io.flow.consumer.invoice.v0.consumer-invoice.d.ts +0 -204
- package/generated/io.flow.content.internal.v0.content-internal.d.ts +0 -168
- package/generated/io.flow.currency.internal.v0.currency-internal.d.ts +0 -119
- package/generated/io.flow.experience.internal.v0.experience-internal.d.ts +0 -247
- package/generated/io.flow.feature.v0.feature.d.ts +0 -121
- package/generated/io.flow.optin.internal.v0.optin-internal.d.ts +0 -73
- package/generated/io.flow.price.internal.v0.price-internal.d.ts +0 -4
- package/generated/io.flow.svb.v0.svb.d.ts +0 -166
|
@@ -4,6 +4,7 @@ declare namespace io.flow.billing.accounting.v0.models {
|
|
|
4
4
|
readonly 'order': io.flow.billing.accounting.v0.models.OrderSummary;
|
|
5
5
|
readonly 'shopper': io.flow.billing.accounting.v0.models.ShopperSummary;
|
|
6
6
|
readonly 'remittance': io.flow.billing.accounting.v0.models.RemittanceResponsibility;
|
|
7
|
+
readonly 'payment'?: io.flow.billing.accounting.v0.models.PaymentSummary;
|
|
7
8
|
readonly 'merchant': io.flow.billing.accounting.v0.models.MerchantSummary;
|
|
8
9
|
readonly 'sequence_number': number;
|
|
9
10
|
readonly 'posting_cutoff': string;
|
|
@@ -148,11 +149,21 @@ declare namespace io.flow.billing.accounting.v0.models {
|
|
|
148
149
|
readonly 'currency': string;
|
|
149
150
|
}
|
|
150
151
|
|
|
152
|
+
interface PaymentSummary {
|
|
153
|
+
readonly 'psp': number;
|
|
154
|
+
readonly 'credit': number;
|
|
155
|
+
readonly 'subsidized': number;
|
|
156
|
+
readonly 'manual': number;
|
|
157
|
+
readonly 'cod': number;
|
|
158
|
+
readonly 'total': number;
|
|
159
|
+
}
|
|
160
|
+
|
|
151
161
|
interface PendingOrder {
|
|
152
162
|
readonly 'id': string;
|
|
153
163
|
readonly 'order': io.flow.billing.accounting.v0.models.OrderSummary;
|
|
154
164
|
readonly 'shopper': io.flow.billing.accounting.v0.models.ShopperSummary;
|
|
155
165
|
readonly 'merchant': io.flow.billing.accounting.v0.models.MerchantSummary;
|
|
166
|
+
readonly 'payment'?: io.flow.billing.accounting.v0.models.PaymentSummary;
|
|
156
167
|
readonly 'remittance': io.flow.billing.accounting.v0.models.RemittanceResponsibility;
|
|
157
168
|
readonly 'sequence_number': number;
|
|
158
169
|
readonly 'posting_cutoff': string;
|
|
@@ -169,6 +180,7 @@ declare namespace io.flow.billing.accounting.v0.models {
|
|
|
169
180
|
readonly 'shopper': io.flow.billing.accounting.v0.models.ShopperSummary;
|
|
170
181
|
readonly 'merchant': io.flow.billing.accounting.v0.models.MerchantSummary;
|
|
171
182
|
readonly 'remittance': io.flow.billing.accounting.v0.models.RemittanceResponsibility;
|
|
183
|
+
readonly 'payment'?: io.flow.billing.accounting.v0.models.PaymentSummary;
|
|
172
184
|
readonly 'sequence_number': number;
|
|
173
185
|
readonly 'posting_cutoff': string;
|
|
174
186
|
readonly 'trigger': io.flow.billing.accounting.v0.unions.ReturnTrigger;
|
|
@@ -221,6 +233,7 @@ declare namespace io.flow.billing.accounting.v0.models {
|
|
|
221
233
|
readonly 'product': io.flow.billing.accounting.v0.models.ShopperLines;
|
|
222
234
|
readonly 'fees': io.flow.billing.accounting.v0.models.ShopperFees;
|
|
223
235
|
readonly 'freight': io.flow.billing.accounting.v0.models.ShopperFreight;
|
|
236
|
+
readonly 'tips'?: number;
|
|
224
237
|
readonly 'order_discount': number;
|
|
225
238
|
readonly 'total': number;
|
|
226
239
|
}
|
|
@@ -32,4 +32,4 @@ declare namespace io.flow.billing.bank.account.v0.models {
|
|
|
32
32
|
|
|
33
33
|
declare namespace io.flow.billing.bank.account.v0.unions {
|
|
34
34
|
type BankAccountInfo = (io.flow.billing.bank.account.v0.models.BankAccountInfoUsa | io.flow.billing.bank.account.v0.models.BankAccountInfoCan | io.flow.billing.bank.account.v0.models.BankAccountInfoGbr | io.flow.billing.bank.account.v0.models.BankAccountInfoFra | io.flow.billing.bank.account.v0.models.BankAccountInfoIta);
|
|
35
|
-
}
|
|
35
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace io.flow.billing.internal.v0.enums {
|
|
2
|
-
type AccountPaymentHoldReason = 'fraudulent' | 'invalid_bank_account';
|
|
2
|
+
type AccountPaymentHoldReason = 'fraudulent' | 'frozen' | 'invalid_bank_account';
|
|
3
3
|
type AccountSettingLiabilitiesMethod = 'withholding' | 'transaction';
|
|
4
4
|
type AccountType = 'channel' | 'organization';
|
|
5
5
|
type AdjustmentTransactionType = 'adjustment' | 'reversal';
|
|
@@ -4,7 +4,6 @@ declare namespace io.flow.billing.reporting.csv.v0.models {
|
|
|
4
4
|
readonly 'sequence_number': number;
|
|
5
5
|
readonly 'fulfilled_at': string;
|
|
6
6
|
readonly 'completes_order': boolean;
|
|
7
|
-
readonly 'payment': io.flow.billing.reporting.v0.models.ReportingPayment;
|
|
8
7
|
readonly 'value': io.flow.billing.reporting.v0.models.FulfillmentShopperBreakdown;
|
|
9
8
|
readonly 'dispatch_country'?: io.flow.billing.reporting.v0.models.ReportingCountry;
|
|
10
9
|
readonly 'destination': io.flow.billing.reporting.v0.models.ReportingDestination;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare namespace io.flow.billing.reporting.v0.enums {
|
|
2
2
|
type ReportPaymentType = 'credit' | 'debit';
|
|
3
3
|
type ReportStatus = 'created' | 'completed' | 'completed_no_records' | 'failed';
|
|
4
|
-
type ReportType = 'sales_record' | 'trueup_overview' | 'non_channel_payment_bank_account' | 'scheduled_payment' | 'account_quarterly_balances' | 'invariants';
|
|
4
|
+
type ReportType = 'sales_record' | 'refund_record' | 'other_record' | 'pending_record' | 'trueup_overview' | 'non_channel_payment_bank_account' | 'scheduled_payment' | 'account_quarterly_balances' | 'invariants' | 'payments';
|
|
5
5
|
type ReportingFulfillmentIsVirtual = 'all' | 'mixed' | 'none';
|
|
6
6
|
type RevenueRecordType = 'pending' | 'sales' | 'refund';
|
|
7
7
|
}
|
|
@@ -14,6 +14,7 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
14
14
|
readonly 'subtotal': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
15
15
|
readonly 'tax': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
16
16
|
readonly 'duty': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
17
|
+
readonly 'tips'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
17
18
|
readonly 'discount': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
18
19
|
readonly 'total': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
19
20
|
}
|
|
@@ -143,11 +144,11 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
143
144
|
readonly 'sequence_number': number;
|
|
144
145
|
readonly 'fulfilled_at': string;
|
|
145
146
|
readonly 'completes_order': boolean;
|
|
146
|
-
readonly 'payment': io.flow.billing.reporting.v0.models.ReportingPayment;
|
|
147
147
|
readonly 'refund'?: io.flow.billing.reporting.v0.models.ReportingRefundReference;
|
|
148
148
|
readonly 'value': io.flow.billing.reporting.v0.models.FulfillmentShopperBreakdown;
|
|
149
149
|
readonly 'dispatch_country'?: io.flow.billing.reporting.v0.models.ReportingCountry;
|
|
150
150
|
readonly 'destination'?: io.flow.billing.reporting.v0.models.ReportingDestination;
|
|
151
|
+
readonly 'payment'?: io.flow.billing.reporting.v0.models.ReportingPayment;
|
|
151
152
|
readonly 'shipment'?: io.flow.billing.reporting.v0.models.ReportingShipment;
|
|
152
153
|
readonly 'is': io.flow.billing.reporting.v0.models.ReportingFulfillmentIs;
|
|
153
154
|
readonly 'has': io.flow.billing.reporting.v0.models.ReportingFulfillmentHas;
|
|
@@ -166,6 +167,11 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
166
167
|
readonly 'wyol': boolean;
|
|
167
168
|
readonly 'b2b': boolean;
|
|
168
169
|
readonly 'domestic': boolean;
|
|
170
|
+
readonly 'combined_shipment'?: boolean;
|
|
171
|
+
readonly 'order_cancelled'?: boolean;
|
|
172
|
+
readonly 'lvg'?: boolean;
|
|
173
|
+
readonly 'tax_inclusive'?: boolean;
|
|
174
|
+
readonly 'duty_inclusive'?: boolean;
|
|
169
175
|
}
|
|
170
176
|
|
|
171
177
|
interface ReportingFx {
|
|
@@ -174,6 +180,7 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
174
180
|
readonly 'product': io.flow.billing.reporting.v0.models.ReportingUsd;
|
|
175
181
|
readonly 'tax': io.flow.billing.reporting.v0.models.ReportingUsd;
|
|
176
182
|
readonly 'duty': io.flow.billing.reporting.v0.models.ReportingUsd;
|
|
183
|
+
readonly 'tips'?: io.flow.billing.reporting.v0.models.ReportingUsd;
|
|
177
184
|
readonly 'total': io.flow.billing.reporting.v0.models.ReportingUsd;
|
|
178
185
|
}
|
|
179
186
|
|
|
@@ -191,6 +198,7 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
191
198
|
readonly 'processing': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
192
199
|
readonly 'rate_lock': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
193
200
|
readonly 'transfer': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
201
|
+
readonly 'total'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
194
202
|
}
|
|
195
203
|
|
|
196
204
|
interface ReportingMerchantSubsidies {
|
|
@@ -198,6 +206,7 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
198
206
|
readonly 'tax': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
199
207
|
readonly 'duty': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
200
208
|
readonly 'ccf': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
209
|
+
readonly 'total'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
201
210
|
}
|
|
202
211
|
|
|
203
212
|
interface ReportingMerchantTransactions {
|
|
@@ -206,6 +215,8 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
206
215
|
readonly 'tax': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
207
216
|
readonly 'duty': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
208
217
|
readonly 'freight': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
218
|
+
readonly 'discount'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
219
|
+
readonly 'total'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
209
220
|
}
|
|
210
221
|
|
|
211
222
|
interface ReportingMonetaryValue {
|
|
@@ -228,25 +239,14 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
228
239
|
}
|
|
229
240
|
|
|
230
241
|
interface ReportingPayment {
|
|
231
|
-
readonly 'metadata'?: io.flow.billing.reporting.v0.models.ReportingPaymentMetadata;
|
|
232
242
|
readonly 'psp': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
233
243
|
readonly 'credit': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
244
|
+
readonly 'subsidized': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
245
|
+
readonly 'manual': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
246
|
+
readonly 'cod': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
234
247
|
readonly 'total': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
235
248
|
}
|
|
236
249
|
|
|
237
|
-
interface ReportingPaymentMetadata {
|
|
238
|
-
readonly 'gateway': io.flow.payment.internal.v0.enums.Processor;
|
|
239
|
-
readonly 'method': string;
|
|
240
|
-
readonly 'psp_reference'?: string;
|
|
241
|
-
readonly 'authorization'?: io.flow.billing.reporting.v0.models.ReportingAuthorizationReference;
|
|
242
|
-
readonly 'settlement_date': string;
|
|
243
|
-
readonly 'additional_authorizations'?: io.flow.billing.reporting.v0.models.ReportingPaymentMetadataAdditionalAuthorizations;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
interface ReportingPaymentMetadataAdditionalAuthorizations {
|
|
247
|
-
readonly 'ids': string;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
250
|
interface ReportingProvince {
|
|
251
251
|
readonly 'code'?: string;
|
|
252
252
|
readonly 'name': string;
|
|
@@ -275,6 +275,7 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
275
275
|
readonly 'ccf': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
276
276
|
readonly 'emergency': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
277
277
|
readonly 'peak': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
278
|
+
readonly 'total'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
|
|
278
279
|
}
|
|
279
280
|
|
|
280
281
|
interface ReportingUsd {
|
|
@@ -301,7 +301,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
301
301
|
readonly 'discriminator': 'channel';
|
|
302
302
|
readonly 'method': string;
|
|
303
303
|
readonly 'card'?: io.flow.billing.v0.models.TransactionMetadataChannelCardMetadata;
|
|
304
|
-
readonly 'organization_transaction': io.flow.billing.v0.models.
|
|
304
|
+
readonly 'organization_transaction': io.flow.billing.v0.models.TransactionMetadataChannelOrganizationTransaction;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
interface TransactionMetadataChannelCardMetadata {
|
|
@@ -314,6 +314,11 @@ declare namespace io.flow.billing.v0.models {
|
|
|
314
314
|
readonly 'country': string;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
interface TransactionMetadataChannelOrganizationTransaction {
|
|
318
|
+
readonly 'id': string;
|
|
319
|
+
readonly 'metadata': io.flow.billing.v0.models.TransactionMetadataPaymentTransaction;
|
|
320
|
+
}
|
|
321
|
+
|
|
317
322
|
interface TransactionMetadataFailedPayout {
|
|
318
323
|
readonly 'discriminator': 'failed_payout';
|
|
319
324
|
readonly 'failed_payout': io.flow.billing.v0.models.TransactionMetadataFailedPayoutReference;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare namespace io.flow.channel.internal.v0.enums {
|
|
2
2
|
type ChannelOrderAcceptanceErrorAction = 'auto_reject' | 'auto_accept';
|
|
3
3
|
type ChannelOrderAcceptanceNextActionFrom = 'cx_team' | 'core_team' | 'core_team_investigate' | 'mex_team' | 'payments_team' | 'tc_team' | 'logistics_team';
|
|
4
|
-
type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card' | 'order_contains_restricted_goods' | 'missing_order_information' | 'unsupported_payment_information' | 'unsupported_shop_currency' | 'unsupported_free_order' | 'extracting_distribution_info_failed' | 'shipping_estimation_failed' | 'payment_authorization_failed' | 'unsupported_subsidized_order' | 'unsupported_virtual_goods' | 'non_matching_currencies' | 'unsupported_order_edit';
|
|
4
|
+
type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card' | 'order_contains_restricted_goods' | 'missing_order_information' | 'unsupported_payment_information' | 'unsupported_shop_currency' | 'unsupported_free_order' | 'extracting_distribution_info_failed' | 'shipping_estimation_failed' | 'payment_authorization_failed' | 'unsupported_subsidized_order' | 'unsupported_virtual_goods' | 'non_matching_currencies' | 'unsupported_order_edit' | 'order_missing';
|
|
5
5
|
type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'review' | 'edit_review' | 'edit_accepted';
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
declare namespace io.flow.experiment.internal.v0.enums {
|
|
2
|
+
type ExperimentDiscriminatorKey = 'experience' | 'feature';
|
|
3
|
+
type Scope = 'organization' | 'global';
|
|
4
|
+
type SignificanceAction = 'end_and_implement_winner' | 'end_and_revert' | 'do_nothing';
|
|
5
|
+
type Status = 'draft' | 'scheduled' | 'live' | 'ended' | 'archived';
|
|
6
|
+
type TimeseriesType = 'daily' | 'weekly' | 'monthly' | 'yearly';
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare namespace io.flow.experiment.internal.v0.models {
|
|
10
|
+
interface DailyExperimentResults {
|
|
11
|
+
readonly 'id': string;
|
|
12
|
+
readonly 'day': string;
|
|
13
|
+
readonly 'experiment_key': string;
|
|
14
|
+
readonly 'experiment_variant_key': string;
|
|
15
|
+
readonly 'visitor_count': number;
|
|
16
|
+
readonly 'visitors_with_transactions_count': number;
|
|
17
|
+
readonly 'conversion_rate': number;
|
|
18
|
+
readonly 'lower_bound': number;
|
|
19
|
+
readonly 'upper_bound': number;
|
|
20
|
+
readonly 'probability_of_being_best'?: number;
|
|
21
|
+
readonly 'currency'?: string;
|
|
22
|
+
readonly 'average_order_value'?: number;
|
|
23
|
+
readonly 'revenue_generated'?: number;
|
|
24
|
+
readonly 'total_order_count'?: number;
|
|
25
|
+
readonly 'conversion_rate_uplift'?: number;
|
|
26
|
+
readonly 'average_order_value_uplift'?: number;
|
|
27
|
+
readonly 'revenue_generated_uplift'?: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface ExperienceExperiment {
|
|
31
|
+
readonly 'discriminator': 'experience';
|
|
32
|
+
readonly 'id': string;
|
|
33
|
+
readonly 'key': string;
|
|
34
|
+
readonly 'name': string;
|
|
35
|
+
readonly 'description'?: string;
|
|
36
|
+
readonly 'status': io.flow.experiment.internal.v0.enums.Status;
|
|
37
|
+
readonly 'emails': string[];
|
|
38
|
+
readonly 'started_at'?: string;
|
|
39
|
+
readonly 'ended_at'?: string;
|
|
40
|
+
readonly 'variants': io.flow.experiment.internal.v0.models.ExperienceVariant[];
|
|
41
|
+
readonly 'transitions'?: io.flow.experiment.internal.v0.enums.Status[];
|
|
42
|
+
readonly 'significance_action'?: io.flow.experiment.internal.v0.enums.SignificanceAction;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface ExperienceVariant {
|
|
46
|
+
readonly 'discriminator': 'experience_variant';
|
|
47
|
+
readonly 'experience': io.flow.experiment.internal.v0.models.ExperienceVariantSummary;
|
|
48
|
+
readonly 'traffic_percentage': number;
|
|
49
|
+
readonly 'experiment_results'?: io.flow.experiment.internal.v0.models.ExperimentResults;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
interface ExperienceVariantForm {
|
|
53
|
+
readonly 'discriminator': 'experience';
|
|
54
|
+
readonly 'key': string;
|
|
55
|
+
readonly 'traffic_percentage': number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface ExperienceVariantSummary {
|
|
59
|
+
readonly 'key': string;
|
|
60
|
+
readonly 'name'?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface ExperimentForm {
|
|
64
|
+
readonly 'name': string;
|
|
65
|
+
readonly 'description'?: string;
|
|
66
|
+
readonly 'emails': string[];
|
|
67
|
+
readonly 'variants': io.flow.experiment.internal.v0.unions.VariantForm[];
|
|
68
|
+
readonly 'significance_action'?: io.flow.experiment.internal.v0.enums.SignificanceAction;
|
|
69
|
+
readonly 'session_query'?: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
interface ExperimentFormDefault {
|
|
73
|
+
readonly 'discriminator': io.flow.experiment.internal.v0.models.ExperimentFormDefaultDiscriminator;
|
|
74
|
+
readonly 'variants'?: io.flow.experiment.internal.v0.models.ExperimentFormDefaultVariant[];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface ExperimentFormDefaultDiscriminator {
|
|
78
|
+
readonly 'key': io.flow.experiment.internal.v0.enums.ExperimentDiscriminatorKey;
|
|
79
|
+
readonly 'values': io.flow.experiment.internal.v0.models.ExperimentFormDefaultDiscriminatorValue[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface ExperimentFormDefaultDiscriminatorValue {
|
|
83
|
+
readonly 'key': string;
|
|
84
|
+
readonly 'name': string;
|
|
85
|
+
readonly 'scope': io.flow.experiment.internal.v0.enums.Scope;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface ExperimentFormDefaultVariant {
|
|
89
|
+
readonly 'key': string;
|
|
90
|
+
readonly 'name': string;
|
|
91
|
+
readonly 'traffic_percentage'?: number;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface ExperimentMilestone {
|
|
95
|
+
readonly 'id': string;
|
|
96
|
+
readonly 'experiment': io.flow.experiment.internal.v0.models.ExperimentReference;
|
|
97
|
+
readonly 'timestamp': string;
|
|
98
|
+
readonly 'description': string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
interface ExperimentMilestoneForm {
|
|
102
|
+
readonly 'timestamp'?: string;
|
|
103
|
+
readonly 'description': string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface ExperimentReference {
|
|
107
|
+
readonly 'key': string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
interface ExperimentResults {
|
|
111
|
+
readonly 'id': string;
|
|
112
|
+
readonly 'experiment_key': string;
|
|
113
|
+
readonly 'experiment_variant_key': string;
|
|
114
|
+
readonly 'visitor_count': number;
|
|
115
|
+
readonly 'visitors_with_transactions_count': number;
|
|
116
|
+
readonly 'conversion_rate': number;
|
|
117
|
+
readonly 'lower_bound': number;
|
|
118
|
+
readonly 'upper_bound': number;
|
|
119
|
+
readonly 'probability_of_being_best'?: number;
|
|
120
|
+
readonly 'currency'?: string;
|
|
121
|
+
readonly 'average_order_value'?: number;
|
|
122
|
+
readonly 'revenue_generated'?: number;
|
|
123
|
+
readonly 'total_order_count'?: number;
|
|
124
|
+
readonly 'conversion_rate_uplift'?: number;
|
|
125
|
+
readonly 'average_order_value_uplift'?: number;
|
|
126
|
+
readonly 'revenue_generated_uplift'?: number;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface ExperimentResultsWithTimestamp {
|
|
130
|
+
readonly 'timestamp': string;
|
|
131
|
+
readonly 'results': io.flow.experiment.internal.v0.models.ExperimentResults[];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
interface ExperimentSessionQueryForm {
|
|
135
|
+
readonly 'session_query'?: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface ExperimentVersion {
|
|
139
|
+
readonly 'id': string;
|
|
140
|
+
readonly 'timestamp': string;
|
|
141
|
+
readonly 'type': io.flow.common.v0.enums.ChangeType;
|
|
142
|
+
readonly 'experiment': io.flow.experiment.internal.v0.unions.Experiment;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
interface FeatureExperiment {
|
|
146
|
+
readonly 'discriminator': 'feature';
|
|
147
|
+
readonly 'id': string;
|
|
148
|
+
readonly 'key': string;
|
|
149
|
+
readonly 'name': string;
|
|
150
|
+
readonly 'description'?: string;
|
|
151
|
+
readonly 'status': io.flow.experiment.internal.v0.enums.Status;
|
|
152
|
+
readonly 'emails': string[];
|
|
153
|
+
readonly 'scope': io.flow.experiment.internal.v0.enums.Scope;
|
|
154
|
+
readonly 'started_at'?: string;
|
|
155
|
+
readonly 'ended_at'?: string;
|
|
156
|
+
readonly 'variants': io.flow.experiment.internal.v0.models.FeatureVariant[];
|
|
157
|
+
readonly 'transitions'?: io.flow.experiment.internal.v0.enums.Status[];
|
|
158
|
+
readonly 'significance_action'?: io.flow.experiment.internal.v0.enums.SignificanceAction;
|
|
159
|
+
readonly 'session_query'?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
interface FeatureValueReference {
|
|
163
|
+
readonly 'feature_key': string;
|
|
164
|
+
readonly 'value': string;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface FeatureVariant {
|
|
168
|
+
readonly 'discriminator': 'feature_variant';
|
|
169
|
+
readonly 'value': io.flow.experiment.internal.v0.models.FeatureVariantSummary;
|
|
170
|
+
readonly 'traffic_percentage': number;
|
|
171
|
+
readonly 'experiment_results'?: io.flow.experiment.internal.v0.models.ExperimentResults;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
interface FeatureVariantForm {
|
|
175
|
+
readonly 'discriminator': 'feature';
|
|
176
|
+
readonly 'key': string;
|
|
177
|
+
readonly 'traffic_percentage': number;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
interface FeatureVariantSummary {
|
|
181
|
+
readonly 'key': string;
|
|
182
|
+
readonly 'feature_value': io.flow.experiment.internal.v0.models.FeatureValueReference;
|
|
183
|
+
readonly 'name'?: string;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
declare namespace io.flow.experiment.internal.v0.unions {
|
|
188
|
+
type Experiment = (io.flow.experiment.internal.v0.models.ExperienceExperiment | io.flow.experiment.internal.v0.models.FeatureExperiment);
|
|
189
|
+
type Variant = (io.flow.experiment.internal.v0.models.ExperienceVariant | io.flow.experiment.internal.v0.models.FeatureVariant);
|
|
190
|
+
type VariantForm = (io.flow.experiment.internal.v0.models.ExperienceVariantForm | io.flow.experiment.internal.v0.models.FeatureVariantForm);
|
|
191
|
+
}
|