@flowio/api-factories 0.0.98 → 0.0.100
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/dist/cjs/api.js +223 -204
- package/dist/esm/api.js +189 -158
- package/dist/types/api.d.ts +5 -17
- package/package.json +2 -2
- package/src/api.ts +222 -175
package/src/api.ts
CHANGED
|
@@ -5094,6 +5094,13 @@ const factories = {
|
|
|
5094
5094
|
transfer_group: factories.string(),
|
|
5095
5095
|
}),
|
|
5096
5096
|
|
|
5097
|
+
'io.flow.stripe.v0.models.payment_intents': (): io.flow.stripe.v0.models.PaymentIntents => ({
|
|
5098
|
+
object: factories.string(),
|
|
5099
|
+
data: arrayOf(() => factories['io.flow.stripe.v0.models.payment_intent']()),
|
|
5100
|
+
has_more: factories.boolean(),
|
|
5101
|
+
url: factories.string(),
|
|
5102
|
+
}),
|
|
5103
|
+
|
|
5097
5104
|
'io.flow.stripe.v0.models.payment_method': (): io.flow.stripe.v0.models.PaymentMethod => ({
|
|
5098
5105
|
id: factories.string(),
|
|
5099
5106
|
object: factories.string(),
|
|
@@ -5693,6 +5700,176 @@ const factories = {
|
|
|
5693
5700
|
return f();
|
|
5694
5701
|
},
|
|
5695
5702
|
|
|
5703
|
+
'io.flow.tech.onboarding.playground.v0.enums.aldo_item_type': (): io.flow.tech.onboarding.playground.v0.enums.AldoItemType => faker.helpers.arrayElement(['physical', 'digital']),
|
|
5704
|
+
|
|
5705
|
+
'io.flow.tech.onboarding.playground.v0.models.aldo_item': (): io.flow.tech.onboarding.playground.v0.models.AldoItem => ({
|
|
5706
|
+
id: factories.string(),
|
|
5707
|
+
number: factories.string(),
|
|
5708
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
5709
|
+
description: factories.string(),
|
|
5710
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.aldo_item_type'](),
|
|
5711
|
+
added_on: factories.date_iso_8601(),
|
|
5712
|
+
}),
|
|
5713
|
+
|
|
5714
|
+
'io.flow.tech.onboarding.playground.v0.models.aldo_item_form': (): io.flow.tech.onboarding.playground.v0.models.AldoItemForm => ({
|
|
5715
|
+
number: factories.string(),
|
|
5716
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
5717
|
+
description: factories.string(),
|
|
5718
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.aldo_item_type'](),
|
|
5719
|
+
added_on: factories.date_iso_8601(),
|
|
5720
|
+
}),
|
|
5721
|
+
|
|
5722
|
+
'io.flow.tech.onboarding.playground.v0.models.jean_demo_item': (): io.flow.tech.onboarding.playground.v0.models.JeanDemoItem => ({
|
|
5723
|
+
id: factories.string(),
|
|
5724
|
+
name: factories.string(),
|
|
5725
|
+
}),
|
|
5726
|
+
|
|
5727
|
+
'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': (): io.flow.tech.onboarding.playground.v0.models.TechOnboardingDescription => ({
|
|
5728
|
+
description: factories.string(),
|
|
5729
|
+
}),
|
|
5730
|
+
|
|
5731
|
+
'io.flow.token.v0.models.channel_token': (): io.flow.token.v0.models.ChannelToken => ({
|
|
5732
|
+
discriminator: 'channel_token',
|
|
5733
|
+
id: factories.string(),
|
|
5734
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
5735
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5736
|
+
partial: factories.string(),
|
|
5737
|
+
cleartext: factories.string(),
|
|
5738
|
+
created_at: factories.date_time_iso_8601(),
|
|
5739
|
+
description: factories.string(),
|
|
5740
|
+
}),
|
|
5741
|
+
|
|
5742
|
+
'io.flow.token.v0.models.channel_token_form': (): io.flow.token.v0.models.ChannelTokenForm => ({
|
|
5743
|
+
channel_id: factories.string(),
|
|
5744
|
+
description: factories.string(),
|
|
5745
|
+
}),
|
|
5746
|
+
|
|
5747
|
+
'io.flow.token.v0.models.channel_token_reference': (): io.flow.token.v0.models.ChannelTokenReference => ({
|
|
5748
|
+
discriminator: 'channel_token_reference',
|
|
5749
|
+
id: factories.string(),
|
|
5750
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
5751
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5752
|
+
}),
|
|
5753
|
+
|
|
5754
|
+
'io.flow.token.v0.models.cleartext': (): io.flow.token.v0.models.Cleartext => ({
|
|
5755
|
+
value: factories.string(),
|
|
5756
|
+
}),
|
|
5757
|
+
|
|
5758
|
+
'io.flow.token.v0.models.organization_token': (): io.flow.token.v0.models.OrganizationToken => ({
|
|
5759
|
+
discriminator: 'organization_token',
|
|
5760
|
+
id: factories.string(),
|
|
5761
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
5762
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5763
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5764
|
+
partial: factories.string(),
|
|
5765
|
+
created_at: factories.date_time_iso_8601(),
|
|
5766
|
+
description: factories.string(),
|
|
5767
|
+
}),
|
|
5768
|
+
|
|
5769
|
+
'io.flow.token.v0.models.organization_token_form': (): io.flow.token.v0.models.OrganizationTokenForm => ({
|
|
5770
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5771
|
+
description: factories.string(),
|
|
5772
|
+
}),
|
|
5773
|
+
|
|
5774
|
+
'io.flow.token.v0.models.organization_token_form_v2': (): io.flow.token.v0.models.OrganizationTokenFormV2 => ({
|
|
5775
|
+
organization_id: factories.string(),
|
|
5776
|
+
description: factories.string(),
|
|
5777
|
+
}),
|
|
5778
|
+
|
|
5779
|
+
'io.flow.token.v0.models.organization_token_reference': (): io.flow.token.v0.models.OrganizationTokenReference => ({
|
|
5780
|
+
discriminator: 'organization_token_reference',
|
|
5781
|
+
id: factories.string(),
|
|
5782
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
5783
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5784
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5785
|
+
}),
|
|
5786
|
+
|
|
5787
|
+
'io.flow.token.v0.models.organization_token_v2': (): io.flow.token.v0.models.OrganizationTokenV2 => ({
|
|
5788
|
+
discriminator: 'organization_token_v2',
|
|
5789
|
+
id: factories.string(),
|
|
5790
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
5791
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5792
|
+
partial: factories.string(),
|
|
5793
|
+
cleartext: factories.string(),
|
|
5794
|
+
created_at: factories.date_time_iso_8601(),
|
|
5795
|
+
description: factories.string(),
|
|
5796
|
+
}),
|
|
5797
|
+
|
|
5798
|
+
'io.flow.token.v0.models.organization_token_v2_reference': (): io.flow.token.v0.models.OrganizationTokenV2Reference => ({
|
|
5799
|
+
discriminator: 'organization_token_v2_reference',
|
|
5800
|
+
id: factories.string(),
|
|
5801
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
5802
|
+
}),
|
|
5803
|
+
|
|
5804
|
+
'io.flow.token.v0.models.partner_token': (): io.flow.token.v0.models.PartnerToken => ({
|
|
5805
|
+
discriminator: 'partner_token',
|
|
5806
|
+
id: factories.string(),
|
|
5807
|
+
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
5808
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5809
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5810
|
+
partial: factories.string(),
|
|
5811
|
+
created_at: factories.date_time_iso_8601(),
|
|
5812
|
+
description: factories.string(),
|
|
5813
|
+
}),
|
|
5814
|
+
|
|
5815
|
+
'io.flow.token.v0.models.partner_token_form': (): io.flow.token.v0.models.PartnerTokenForm => ({
|
|
5816
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5817
|
+
description: factories.string(),
|
|
5818
|
+
}),
|
|
5819
|
+
|
|
5820
|
+
'io.flow.token.v0.models.partner_token_reference': (): io.flow.token.v0.models.PartnerTokenReference => ({
|
|
5821
|
+
discriminator: 'partner_token_reference',
|
|
5822
|
+
id: factories.string(),
|
|
5823
|
+
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
5824
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5825
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5826
|
+
}),
|
|
5827
|
+
|
|
5828
|
+
'io.flow.token.v0.models.token_authentication_form': (): io.flow.token.v0.models.TokenAuthenticationForm => ({
|
|
5829
|
+
token: factories.string(),
|
|
5830
|
+
}),
|
|
5831
|
+
|
|
5832
|
+
'io.flow.token.v0.models.token_partner_reference': (): io.flow.token.v0.models.TokenPartnerReference => ({
|
|
5833
|
+
id: factories.string(),
|
|
5834
|
+
}),
|
|
5835
|
+
|
|
5836
|
+
'io.flow.token.v0.models.token_rbac_authentication_form': (): io.flow.token.v0.models.TokenRbacAuthenticationForm => ({
|
|
5837
|
+
token: factories.string(),
|
|
5838
|
+
method: factories.string(),
|
|
5839
|
+
path_pattern: factories.string(),
|
|
5840
|
+
path: factories.string(),
|
|
5841
|
+
}),
|
|
5842
|
+
|
|
5843
|
+
'io.flow.token.v0.models.token_validation': (): io.flow.token.v0.models.TokenValidation => ({
|
|
5844
|
+
status: factories.string(),
|
|
5845
|
+
}),
|
|
5846
|
+
|
|
5847
|
+
'io.flow.token.v0.models.token_validation_form': (): io.flow.token.v0.models.TokenValidationForm => ({
|
|
5848
|
+
token: factories.string(),
|
|
5849
|
+
}),
|
|
5850
|
+
|
|
5851
|
+
'io.flow.token.v0.unions.token': (): io.flow.token.v0.unions.Token => {
|
|
5852
|
+
const f = faker.helpers.arrayElement([
|
|
5853
|
+
() => factories['io.flow.token.v0.models.channel_token'](),
|
|
5854
|
+
() => factories['io.flow.token.v0.models.organization_token'](),
|
|
5855
|
+
() => factories['io.flow.token.v0.models.organization_token_v2'](),
|
|
5856
|
+
() => factories['io.flow.token.v0.models.partner_token'](),
|
|
5857
|
+
]);
|
|
5858
|
+
|
|
5859
|
+
return f();
|
|
5860
|
+
},
|
|
5861
|
+
|
|
5862
|
+
'io.flow.token.v0.unions.token_reference': (): io.flow.token.v0.unions.TokenReference => {
|
|
5863
|
+
const f = faker.helpers.arrayElement([
|
|
5864
|
+
() => factories['io.flow.token.v0.models.channel_token_reference'](),
|
|
5865
|
+
() => factories['io.flow.token.v0.models.organization_token_reference'](),
|
|
5866
|
+
() => factories['io.flow.token.v0.models.organization_token_v2_reference'](),
|
|
5867
|
+
() => factories['io.flow.token.v0.models.partner_token_reference'](),
|
|
5868
|
+
]);
|
|
5869
|
+
|
|
5870
|
+
return f();
|
|
5871
|
+
},
|
|
5872
|
+
|
|
5696
5873
|
'io.flow.v0.enums.abandoned_order_promotion_status': (): io.flow.v0.enums.AbandonedOrderPromotionStatus => faker.helpers.arrayElement(['active', 'inactive']),
|
|
5697
5874
|
'io.flow.v0.enums.abandoned_order_setting_status': (): io.flow.v0.enums.AbandonedOrderSettingStatus => faker.helpers.arrayElement(['active', 'inactive']),
|
|
5698
5875
|
|
|
@@ -5900,6 +6077,8 @@ const factories = {
|
|
|
5900
6077
|
'io.flow.v0.enums.event_type': (): io.flow.v0.enums.EventType => faker.helpers.arrayElement([
|
|
5901
6078
|
'test_upserted',
|
|
5902
6079
|
'generate_load',
|
|
6080
|
+
'aldo_item_upserted',
|
|
6081
|
+
'aldo_item_deleted',
|
|
5903
6082
|
'transaction_upserted',
|
|
5904
6083
|
'organization_transaction_upserted',
|
|
5905
6084
|
'organization_transaction_deleted',
|
|
@@ -5960,8 +6139,6 @@ const factories = {
|
|
|
5960
6139
|
'customer_deleted',
|
|
5961
6140
|
'customer_address_book_contact_upserted',
|
|
5962
6141
|
'customer_address_book_contact_deleted',
|
|
5963
|
-
'email_notification_upserted',
|
|
5964
|
-
'email_notification_deleted',
|
|
5965
6142
|
'available_promotions_upserted',
|
|
5966
6143
|
'available_promotions_deleted',
|
|
5967
6144
|
'available_promotions_upserted_v2',
|
|
@@ -6211,7 +6388,6 @@ const factories = {
|
|
|
6211
6388
|
'io.flow.v0.enums.lane_preselect_preference': (): io.flow.v0.enums.LanePreselectPreference => faker.helpers.arrayElement(['lowest_cost', 'default_tier']),
|
|
6212
6389
|
'io.flow.v0.enums.lane_strategy': (): io.flow.v0.enums.LaneStrategy => faker.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']),
|
|
6213
6390
|
'io.flow.v0.enums.levy_component': (): io.flow.v0.enums.LevyComponent => faker.helpers.arrayElement(['goods', 'duty', 'insurance', 'freight', 'vat']),
|
|
6214
|
-
'io.flow.v0.enums.levy_inclusion': (): io.flow.v0.enums.LevyInclusion => faker.helpers.arrayElement(['tax', 'duty']),
|
|
6215
6391
|
'io.flow.v0.enums.levy_strategy': (): io.flow.v0.enums.LevyStrategy => faker.helpers.arrayElement(['minimum', 'average', 'maximum']),
|
|
6216
6392
|
'io.flow.v0.enums.location_error_code': (): io.flow.v0.enums.LocationErrorCode => faker.helpers.arrayElement(['address_required', 'ip_invalid', 'ip_required', 'timezone_unavailable']),
|
|
6217
6393
|
'io.flow.v0.enums.logistics_format_preference': (): io.flow.v0.enums.LogisticsFormatPreference => faker.helpers.arrayElement(['shopify_console', 'existing_3pl_integration', 'byo_integration']),
|
|
@@ -6678,31 +6854,6 @@ const factories = {
|
|
|
6678
6854
|
'io.flow.v0.enums.sync_stream_type': (): io.flow.v0.enums.SyncStreamType => faker.helpers.arrayElement(['submitted_order', 'placed_order']),
|
|
6679
6855
|
'io.flow.v0.enums.sync_unit_of_time': (): io.flow.v0.enums.SyncUnitOfTime => faker.helpers.arrayElement(['day', 'hour', 'minute', 'second']),
|
|
6680
6856
|
'io.flow.v0.enums.tax_applicability': (): io.flow.v0.enums.TaxApplicability => faker.helpers.arrayElement(['none', 'all']),
|
|
6681
|
-
|
|
6682
|
-
'io.flow.v0.enums.tax_duty_calculator_validation_error_code': (): io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode => faker.helpers.arrayElement([
|
|
6683
|
-
'generic_error',
|
|
6684
|
-
'destination_country_not_defined',
|
|
6685
|
-
'destination_address_iso3166_unrecognized',
|
|
6686
|
-
'line_item_shipfrom_shipto_country_invalid',
|
|
6687
|
-
'line_item_ship_from_invalid',
|
|
6688
|
-
'line_item_currency_iso4217_unrecognized',
|
|
6689
|
-
'line_quantity_invalid',
|
|
6690
|
-
'line_item_quantity_invalid',
|
|
6691
|
-
'line_item_unit_price_precision_invalid',
|
|
6692
|
-
'line_item_unit_price_negative',
|
|
6693
|
-
'line_item_discount_amount_precision_invalid',
|
|
6694
|
-
'line_item_discount_amount_positive',
|
|
6695
|
-
'line_item_country_of_origin_iso3166_unrecognized',
|
|
6696
|
-
'line_item_hs_code_invalid',
|
|
6697
|
-
'line_item_duty_provider_invalid',
|
|
6698
|
-
'shipping_unit_price_precision_invalid',
|
|
6699
|
-
'shipping_unit_price_negative',
|
|
6700
|
-
'shipping_discount_amount_precision_invalid',
|
|
6701
|
-
'shipping_discount_amount_invalid',
|
|
6702
|
-
'merchant_of_record_invalid',
|
|
6703
|
-
'wrong_unit_specified',
|
|
6704
|
-
]),
|
|
6705
|
-
|
|
6706
6857
|
'io.flow.v0.enums.tax_report_type': (): io.flow.v0.enums.TaxReportType => faker.helpers.arrayElement(['consumer', 'b2b']),
|
|
6707
6858
|
'io.flow.v0.enums.tax_verification_result': (): io.flow.v0.enums.TaxVerificationResult => faker.helpers.arrayElement(['valid', 'invalid', 'unable_to_validate']),
|
|
6708
6859
|
'io.flow.v0.enums.taxability_type': (): io.flow.v0.enums.TaxabilityType => faker.helpers.arrayElement(['tax_rule']),
|
|
@@ -6811,19 +6962,6 @@ const factories = {
|
|
|
6811
6962
|
'io.flow.v0.enums.withholding_deduction_type': (): io.flow.v0.enums.WithholdingDeductionType => faker.helpers.arrayElement(['tax', 'duty', 'freight', 'insurance']),
|
|
6812
6963
|
'io.flow.v0.enums.zero_amount_indicator': (): io.flow.v0.enums.ZeroAmountIndicator => faker.helpers.arrayElement(['zero', 'free']),
|
|
6813
6964
|
|
|
6814
|
-
'io.flow.v0.enums.zero_levy_reason_code': (): io.flow.v0.enums.ZeroLevyReasonCode => faker.helpers.arrayElement([
|
|
6815
|
-
'zero_basis',
|
|
6816
|
-
'zero_rate_on_goods',
|
|
6817
|
-
'value_rounds_to_zero',
|
|
6818
|
-
'order_below_de_minimis_threshold',
|
|
6819
|
-
'amount_below_de_minimis_threshold',
|
|
6820
|
-
'delivered_unpaid',
|
|
6821
|
-
'duty_free_domestic',
|
|
6822
|
-
'duty_free_intra_community',
|
|
6823
|
-
'duty_free_reimport',
|
|
6824
|
-
'duty_free_by_trade_agreement',
|
|
6825
|
-
]),
|
|
6826
|
-
|
|
6827
6965
|
'io.flow.v0.models.abandoned_order_email_settings': (): io.flow.v0.models.AbandonedOrderEmailSettings => ({
|
|
6828
6966
|
delay: factories['io.flow.v0.models.duration'](),
|
|
6829
6967
|
frequency: factories['io.flow.v0.models.duration'](),
|
|
@@ -7140,6 +7278,20 @@ const factories = {
|
|
|
7140
7278
|
fingerprint_token: factories.string(),
|
|
7141
7279
|
}),
|
|
7142
7280
|
|
|
7281
|
+
'io.flow.v0.models.aldo_item_deleted': (): io.flow.v0.models.AldoItemDeleted => ({
|
|
7282
|
+
discriminator: 'aldo_item_deleted',
|
|
7283
|
+
event_id: factories.string(),
|
|
7284
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7285
|
+
id: factories.string(),
|
|
7286
|
+
}),
|
|
7287
|
+
|
|
7288
|
+
'io.flow.v0.models.aldo_item_upserted': (): io.flow.v0.models.AldoItemUpserted => ({
|
|
7289
|
+
discriminator: 'aldo_item_upserted',
|
|
7290
|
+
event_id: factories.string(),
|
|
7291
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7292
|
+
item: factories['io.flow.tech.onboarding.playground.v0.models.aldo_item'](),
|
|
7293
|
+
}),
|
|
7294
|
+
|
|
7143
7295
|
'io.flow.v0.models.allocation': (): io.flow.v0.models.Allocation => ({
|
|
7144
7296
|
order: factories['io.flow.v0.models.allocation_order_summary'](),
|
|
7145
7297
|
details: arrayOf(() => factories['io.flow.v0.unions.allocation_detail']()),
|
|
@@ -9684,28 +9836,12 @@ const factories = {
|
|
|
9684
9836
|
payment: factories['io.flow.v0.models.email_payment_summary'](),
|
|
9685
9837
|
}),
|
|
9686
9838
|
|
|
9687
|
-
'io.flow.v0.models.email_notification_deleted': (): io.flow.v0.models.EmailNotificationDeleted => ({
|
|
9688
|
-
discriminator: 'email_notification_deleted',
|
|
9689
|
-
event_id: factories.string(),
|
|
9690
|
-
timestamp: factories.date_time_iso_8601(),
|
|
9691
|
-
organization: factories.string(),
|
|
9692
|
-
notification: factories['io.flow.v0.models.email_notification'](),
|
|
9693
|
-
}),
|
|
9694
|
-
|
|
9695
9839
|
'io.flow.v0.models.email_notification_form': (): io.flow.v0.models.EmailNotificationForm => ({
|
|
9696
9840
|
to: factories['io.flow.v0.models.email_recipient'](),
|
|
9697
9841
|
created_at: factories.date_time_iso_8601(),
|
|
9698
9842
|
data: factories['io.flow.v0.unions.email_notification_data'](),
|
|
9699
9843
|
}),
|
|
9700
9844
|
|
|
9701
|
-
'io.flow.v0.models.email_notification_upserted': (): io.flow.v0.models.EmailNotificationUpserted => ({
|
|
9702
|
-
discriminator: 'email_notification_upserted',
|
|
9703
|
-
event_id: factories.string(),
|
|
9704
|
-
timestamp: factories.date_time_iso_8601(),
|
|
9705
|
-
organization: factories.string(),
|
|
9706
|
-
notification: factories['io.flow.v0.models.email_notification'](),
|
|
9707
|
-
}),
|
|
9708
|
-
|
|
9709
9845
|
'io.flow.v0.models.email_payment_summary': (): io.flow.v0.models.EmailPaymentSummary => ({
|
|
9710
9846
|
refund: factories['io.flow.v0.models.refund'](),
|
|
9711
9847
|
}),
|
|
@@ -14129,6 +14265,17 @@ const factories = {
|
|
|
14129
14265
|
source: factories['io.flow.v0.enums.delivery_window_component_source'](),
|
|
14130
14266
|
}),
|
|
14131
14267
|
|
|
14268
|
+
'io.flow.v0.models.product': (): io.flow.v0.models.Product => ({
|
|
14269
|
+
id: factories.string(),
|
|
14270
|
+
organization_id: factories.string(),
|
|
14271
|
+
number: factories.string(),
|
|
14272
|
+
taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
|
|
14273
|
+
taxonomy_data: arrayOf(() => factories['io.flow.v0.models.product_taxonomy_data']()),
|
|
14274
|
+
item_numbers: arrayOf(() => factories.string()),
|
|
14275
|
+
updated_at: factories.date_time_iso_8601(),
|
|
14276
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
14277
|
+
}),
|
|
14278
|
+
|
|
14132
14279
|
'io.flow.v0.models.product_restriction_result': (): io.flow.v0.models.ProductRestrictionResult => ({
|
|
14133
14280
|
id: factories.string(),
|
|
14134
14281
|
product_id: factories.string(),
|
|
@@ -14158,6 +14305,16 @@ const factories = {
|
|
|
14158
14305
|
product_restriction_result: factories['io.flow.v0.models.product_restriction_result'](),
|
|
14159
14306
|
}),
|
|
14160
14307
|
|
|
14308
|
+
'io.flow.v0.models.product_taxonomy_category': (): io.flow.v0.models.ProductTaxonomyCategory => ({
|
|
14309
|
+
name: factories.string(),
|
|
14310
|
+
fullname: factories.string(),
|
|
14311
|
+
}),
|
|
14312
|
+
|
|
14313
|
+
'io.flow.v0.models.product_taxonomy_data': (): io.flow.v0.models.ProductTaxonomyData => ({
|
|
14314
|
+
key: factories.string(),
|
|
14315
|
+
value: arrayOf(() => factories.string()),
|
|
14316
|
+
}),
|
|
14317
|
+
|
|
14161
14318
|
'io.flow.v0.models.promotion_trigger': (): io.flow.v0.models.PromotionTrigger => ({
|
|
14162
14319
|
type: factories['io.flow.v0.enums.promotion_trigger_type'](),
|
|
14163
14320
|
min: factories['io.flow.v0.models.price'](),
|
|
@@ -15908,14 +16065,6 @@ const factories = {
|
|
|
15908
16065
|
statement: factories['io.flow.v0.models.statement'](),
|
|
15909
16066
|
}),
|
|
15910
16067
|
|
|
15911
|
-
'io.flow.v0.models.street_address': (): io.flow.v0.models.StreetAddress => ({
|
|
15912
|
-
streets: arrayOf(() => factories.string()),
|
|
15913
|
-
city: factories.string(),
|
|
15914
|
-
province: factories.string(),
|
|
15915
|
-
postal: factories.string(),
|
|
15916
|
-
country: factories.string(),
|
|
15917
|
-
}),
|
|
15918
|
-
|
|
15919
16068
|
'io.flow.v0.models.stripe_authentication_data': (): io.flow.v0.models.StripeAuthenticationData => ({
|
|
15920
16069
|
discriminator: 'stripe_authentication_data',
|
|
15921
16070
|
secret_key_reference: factories.string(),
|
|
@@ -16143,92 +16292,6 @@ const factories = {
|
|
|
16143
16292
|
deminimis: factories['io.flow.v0.unions.deminimis'](),
|
|
16144
16293
|
}),
|
|
16145
16294
|
|
|
16146
|
-
'io.flow.v0.models.tax_duty_calculator_validation_error': (): io.flow.v0.models.TaxDutyCalculatorValidationError => ({
|
|
16147
|
-
code: factories['io.flow.v0.enums.tax_duty_calculator_validation_error_code'](),
|
|
16148
|
-
messages: arrayOf(() => factories.string()),
|
|
16149
|
-
}),
|
|
16150
|
-
|
|
16151
|
-
'io.flow.v0.models.tax_duty_quote': (): io.flow.v0.models.TaxDutyQuote => ({
|
|
16152
|
-
id: factories.string(),
|
|
16153
|
-
primary_identifier: factories.string(),
|
|
16154
|
-
attributes: objectOf(() => factories.string()),
|
|
16155
|
-
merchant_of_record: factories['io.flow.v0.enums.merchant_of_record'](),
|
|
16156
|
-
delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
|
|
16157
|
-
destination: factories['io.flow.v0.models.street_address'](),
|
|
16158
|
-
quote_date: factories.date_time_iso_8601(),
|
|
16159
|
-
currency: factories.string(),
|
|
16160
|
-
lines: arrayOf(() => factories['io.flow.v0.models.tax_duty_quote_line_item']()),
|
|
16161
|
-
shipping: arrayOf(() => factories['io.flow.v0.models.tax_duty_quote_simple_shipping']()),
|
|
16162
|
-
total_values: factories['io.flow.v0.models.tax_duty_quote_values'](),
|
|
16163
|
-
}),
|
|
16164
|
-
|
|
16165
|
-
'io.flow.v0.models.tax_duty_quote_fee_value': (): io.flow.v0.models.TaxDutyQuoteFeeValue => ({
|
|
16166
|
-
amount: factories.decimal(),
|
|
16167
|
-
description: factories.string(),
|
|
16168
|
-
amount_refundable_on_return: factories.decimal(),
|
|
16169
|
-
}),
|
|
16170
|
-
|
|
16171
|
-
'io.flow.v0.models.tax_duty_quote_form': (): io.flow.v0.models.TaxDutyQuoteForm => ({
|
|
16172
|
-
primary_identifier: factories.string(),
|
|
16173
|
-
attributes: objectOf(() => factories.string()),
|
|
16174
|
-
delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
|
|
16175
|
-
destination: factories['io.flow.v0.models.street_address'](),
|
|
16176
|
-
currency: factories.string(),
|
|
16177
|
-
lines: arrayOf(() => factories['io.flow.v0.models.tax_duty_quote_line_item_form']()),
|
|
16178
|
-
shipping: arrayOf(() => factories['io.flow.v0.models.tax_duty_quote_simple_shipping_form']()),
|
|
16179
|
-
includes: arrayOf(() => factories['io.flow.v0.enums.levy_inclusion']()),
|
|
16180
|
-
}),
|
|
16181
|
-
|
|
16182
|
-
'io.flow.v0.models.tax_duty_quote_line_item': (): io.flow.v0.models.TaxDutyQuoteLineItem => ({
|
|
16183
|
-
primary_identifier: factories.string(),
|
|
16184
|
-
attributes: objectOf(() => factories.string()),
|
|
16185
|
-
ship_from: factories['io.flow.v0.models.street_address'](),
|
|
16186
|
-
quantity: factories.long(),
|
|
16187
|
-
unit_values: factories['io.flow.v0.models.tax_duty_quote_values'](),
|
|
16188
|
-
country_of_origin: factories.string(),
|
|
16189
|
-
hs_code: factories.string(),
|
|
16190
|
-
}),
|
|
16191
|
-
|
|
16192
|
-
'io.flow.v0.models.tax_duty_quote_line_item_form': (): io.flow.v0.models.TaxDutyQuoteLineItemForm => ({
|
|
16193
|
-
primary_identifier: factories.string(),
|
|
16194
|
-
attributes: objectOf(() => factories.string()),
|
|
16195
|
-
ship_from: factories['io.flow.v0.models.street_address'](),
|
|
16196
|
-
quantity: factories.long(),
|
|
16197
|
-
unit_price: factories.decimal(),
|
|
16198
|
-
unit_weight: factories['io.flow.v0.models.measurement'](),
|
|
16199
|
-
country_of_origin: factories.string(),
|
|
16200
|
-
hs_code: factories.string(),
|
|
16201
|
-
includes: arrayOf(() => factories['io.flow.v0.enums.levy_inclusion']()),
|
|
16202
|
-
}),
|
|
16203
|
-
|
|
16204
|
-
'io.flow.v0.models.tax_duty_quote_simple_levy_value': (): io.flow.v0.models.TaxDutyQuoteSimpleLevyValue => ({
|
|
16205
|
-
discriminator: 'tax_duty_quote_simple_levy_value',
|
|
16206
|
-
amount: factories.decimal(),
|
|
16207
|
-
rate: factories.decimal(),
|
|
16208
|
-
description: factories.string(),
|
|
16209
|
-
zero_levy_reason: arrayOf(() => factories['io.flow.v0.enums.zero_levy_reason_code']()),
|
|
16210
|
-
amount_refundable_on_return: factories.decimal(),
|
|
16211
|
-
}),
|
|
16212
|
-
|
|
16213
|
-
'io.flow.v0.models.tax_duty_quote_simple_shipping': (): io.flow.v0.models.TaxDutyQuoteSimpleShipping => ({
|
|
16214
|
-
values: factories['io.flow.v0.models.tax_duty_quote_values'](),
|
|
16215
|
-
ship_from: factories['io.flow.v0.models.street_address'](),
|
|
16216
|
-
}),
|
|
16217
|
-
|
|
16218
|
-
'io.flow.v0.models.tax_duty_quote_simple_shipping_form': (): io.flow.v0.models.TaxDutyQuoteSimpleShippingForm => ({
|
|
16219
|
-
price: factories.decimal(),
|
|
16220
|
-
includes: arrayOf(() => factories['io.flow.v0.enums.levy_inclusion']()),
|
|
16221
|
-
ship_from: factories['io.flow.v0.models.street_address'](),
|
|
16222
|
-
}),
|
|
16223
|
-
|
|
16224
|
-
'io.flow.v0.models.tax_duty_quote_values': (): io.flow.v0.models.TaxDutyQuoteValues => ({
|
|
16225
|
-
price: factories.decimal(),
|
|
16226
|
-
duty: factories['io.flow.v0.models.tax_duty_quote_simple_levy_value'](),
|
|
16227
|
-
tax: factories['io.flow.v0.models.tax_duty_quote_simple_levy_value'](),
|
|
16228
|
-
fees: factories['io.flow.v0.models.tax_duty_quote_fee_value'](),
|
|
16229
|
-
total: factories.decimal(),
|
|
16230
|
-
}),
|
|
16231
|
-
|
|
16232
16295
|
'io.flow.v0.models.tax_registration': (): io.flow.v0.models.TaxRegistration => ({
|
|
16233
16296
|
id: factories.string(),
|
|
16234
16297
|
key: factories.string(),
|
|
@@ -16470,6 +16533,7 @@ const factories = {
|
|
|
16470
16533
|
timestamp: factories.date_time_iso_8601(),
|
|
16471
16534
|
description: factories.string(),
|
|
16472
16535
|
aggregator_status_code: factories.string(),
|
|
16536
|
+
created_at: factories.date_time_iso_8601(),
|
|
16473
16537
|
}),
|
|
16474
16538
|
|
|
16475
16539
|
'io.flow.v0.models.tracking_event_form': (): io.flow.v0.models.TrackingEventForm => ({
|
|
@@ -17304,6 +17368,8 @@ const factories = {
|
|
|
17304
17368
|
const f = faker.helpers.arrayElement([
|
|
17305
17369
|
() => factories['io.flow.v0.models.test_upserted'](),
|
|
17306
17370
|
() => factories['io.flow.v0.models.generate_load'](),
|
|
17371
|
+
() => factories['io.flow.v0.models.aldo_item_upserted'](),
|
|
17372
|
+
() => factories['io.flow.v0.models.aldo_item_deleted'](),
|
|
17307
17373
|
() => factories['io.flow.v0.models.transaction_upserted'](),
|
|
17308
17374
|
() => factories['io.flow.v0.models.organization_transaction_upserted'](),
|
|
17309
17375
|
() => factories['io.flow.v0.models.organization_transaction_deleted'](),
|
|
@@ -17364,8 +17430,6 @@ const factories = {
|
|
|
17364
17430
|
() => factories['io.flow.v0.models.customer_deleted'](),
|
|
17365
17431
|
() => factories['io.flow.v0.models.customer_address_book_contact_upserted'](),
|
|
17366
17432
|
() => factories['io.flow.v0.models.customer_address_book_contact_deleted'](),
|
|
17367
|
-
() => factories['io.flow.v0.models.email_notification_upserted'](),
|
|
17368
|
-
() => factories['io.flow.v0.models.email_notification_deleted'](),
|
|
17369
17433
|
() => factories['io.flow.v0.models.available_promotions_upserted'](),
|
|
17370
17434
|
() => factories['io.flow.v0.models.available_promotions_deleted'](),
|
|
17371
17435
|
() => factories['io.flow.v0.models.available_promotions_upserted_v2'](),
|
|
@@ -18180,11 +18244,6 @@ const factories = {
|
|
|
18180
18244
|
return f();
|
|
18181
18245
|
},
|
|
18182
18246
|
|
|
18183
|
-
'io.flow.v0.unions.tax_duty_quote_levy_value': (): io.flow.v0.unions.TaxDutyQuoteLevyValue => {
|
|
18184
|
-
const f = faker.helpers.arrayElement([() => factories['io.flow.v0.models.tax_duty_quote_simple_levy_value']()]);
|
|
18185
|
-
return f();
|
|
18186
|
-
},
|
|
18187
|
-
|
|
18188
18247
|
'io.flow.v0.unions.tax_setting': (): io.flow.v0.unions.TaxSetting => {
|
|
18189
18248
|
const f = faker.helpers.arrayElement([
|
|
18190
18249
|
() => factories['io.flow.v0.models.avalara_tax_setting'](),
|
|
@@ -18321,6 +18380,8 @@ export const makeAdyenNativeActionDetails = () => factories['io.flow.v0.models.a
|
|
|
18321
18380
|
export const makeAdyenNativeData = () => factories['io.flow.v0.unions.adyen_native_data']();
|
|
18322
18381
|
export const makeAdyenV3ChallengeToken = () => factories['io.flow.v0.models.adyen_v3_challenge_token']();
|
|
18323
18382
|
export const makeAdyenV3FingerprintToken = () => factories['io.flow.v0.models.adyen_v3_fingerprint_token']();
|
|
18383
|
+
export const makeAldoItemDeleted = () => factories['io.flow.v0.models.aldo_item_deleted']();
|
|
18384
|
+
export const makeAldoItemUpserted = () => factories['io.flow.v0.models.aldo_item_upserted']();
|
|
18324
18385
|
export const makeAllocation = () => factories['io.flow.v0.models.allocation']();
|
|
18325
18386
|
export const makeAllocationComponent = () => factories['io.flow.v0.unions.allocation_component']();
|
|
18326
18387
|
export const makeAllocationDeletedV2 = () => factories['io.flow.v0.models.allocation_deleted_v2']();
|
|
@@ -18740,9 +18801,7 @@ export const makeEmailNotification = () => factories['io.flow.v0.models.email_no
|
|
|
18740
18801
|
export const makeEmailNotificationAbandonedOrder = () => factories['io.flow.v0.models.email_notification_abandoned_order']();
|
|
18741
18802
|
export const makeEmailNotificationData = () => factories['io.flow.v0.unions.email_notification_data']();
|
|
18742
18803
|
export const makeEmailNotificationDataRefund = () => factories['io.flow.v0.models.email_notification_data_refund']();
|
|
18743
|
-
export const makeEmailNotificationDeleted = () => factories['io.flow.v0.models.email_notification_deleted']();
|
|
18744
18804
|
export const makeEmailNotificationForm = () => factories['io.flow.v0.models.email_notification_form']();
|
|
18745
|
-
export const makeEmailNotificationUpserted = () => factories['io.flow.v0.models.email_notification_upserted']();
|
|
18746
18805
|
export const makeEmailPaymentSummary = () => factories['io.flow.v0.models.email_payment_summary']();
|
|
18747
18806
|
export const makeEmailRecipient = () => factories['io.flow.v0.models.email_recipient']();
|
|
18748
18807
|
export const makeEmailVerification = () => factories['io.flow.v0.models.email_verification']();
|
|
@@ -19046,7 +19105,6 @@ export const makeLaneSummary = () => factories['io.flow.v0.models.lane_summary']
|
|
|
19046
19105
|
export const makeLanguage = () => factories['io.flow.v0.models.language']();
|
|
19047
19106
|
export const makeLargePackageServiceFee = () => factories['io.flow.v0.models.large_package_service_fee']();
|
|
19048
19107
|
export const makeLevyComponent = () => factories['io.flow.v0.enums.levy_component']();
|
|
19049
|
-
export const makeLevyInclusion = () => factories['io.flow.v0.enums.levy_inclusion']();
|
|
19050
19108
|
export const makeLevyStrategy = () => factories['io.flow.v0.enums.levy_strategy']();
|
|
19051
19109
|
export const makeLine = () => factories['io.flow.v0.models.line']();
|
|
19052
19110
|
export const makeLineItem = () => factories['io.flow.v0.models.line_item']();
|
|
@@ -19521,10 +19579,13 @@ export const makePricingSettings = () => factories['io.flow.v0.models.pricing_se
|
|
|
19521
19579
|
export const makePricingUpserted = () => factories['io.flow.v0.models.pricing_upserted']();
|
|
19522
19580
|
export const makePricingVersion = () => factories['io.flow.v0.models.pricing_version']();
|
|
19523
19581
|
export const makeProcessingEstimate = () => factories['io.flow.v0.models.processing_estimate']();
|
|
19582
|
+
export const makeProduct = () => factories['io.flow.v0.models.product']();
|
|
19524
19583
|
export const makeProductRestrictionResult = () => factories['io.flow.v0.models.product_restriction_result']();
|
|
19525
19584
|
export const makeProductRestrictionResultDeleted = () => factories['io.flow.v0.models.product_restriction_result_deleted']();
|
|
19526
19585
|
export const makeProductRestrictionResultUpserted = () => factories['io.flow.v0.models.product_restriction_result_upserted']();
|
|
19527
19586
|
export const makeProductRestrictionRule = () => factories['io.flow.v0.enums.product_restriction_rule']();
|
|
19587
|
+
export const makeProductTaxonomyCategory = () => factories['io.flow.v0.models.product_taxonomy_category']();
|
|
19588
|
+
export const makeProductTaxonomyData = () => factories['io.flow.v0.models.product_taxonomy_data']();
|
|
19528
19589
|
export const makePromotion = () => factories['io.flow.v0.unions.promotion']();
|
|
19529
19590
|
export const makePromotionTrigger = () => factories['io.flow.v0.models.promotion_trigger']();
|
|
19530
19591
|
export const makePromotionTriggerForm = () => factories['io.flow.v0.models.promotion_trigger_form']();
|
|
@@ -19802,7 +19863,6 @@ export const makeStatementDeleted = () => factories['io.flow.v0.models.statement
|
|
|
19802
19863
|
export const makeStatementUpserted = () => factories['io.flow.v0.models.statement_upserted']();
|
|
19803
19864
|
export const makeStoredMethodUsageStep = () => factories['io.flow.v0.enums.stored_method_usage_step']();
|
|
19804
19865
|
export const makeStrategy = () => factories['io.flow.v0.enums.strategy']();
|
|
19805
|
-
export const makeStreetAddress = () => factories['io.flow.v0.models.street_address']();
|
|
19806
19866
|
export const makeStripeAuthenticationData = () => factories['io.flow.v0.models.stripe_authentication_data']();
|
|
19807
19867
|
export const makeStripeAuthenticationDataForm = () => factories['io.flow.v0.models.stripe_authentication_data_form']();
|
|
19808
19868
|
export const makeStripeAuthorizationResultActionDetails = () => factories['io.flow.v0.models.stripe_authorization_result_action_details']();
|
|
@@ -19843,18 +19903,6 @@ export const makeSyncStreamType = () => factories['io.flow.v0.enums.sync_stream_
|
|
|
19843
19903
|
export const makeSyncUnitOfTime = () => factories['io.flow.v0.enums.sync_unit_of_time']();
|
|
19844
19904
|
export const makeTax = () => factories['io.flow.v0.models.tax']();
|
|
19845
19905
|
export const makeTaxApplicability = () => factories['io.flow.v0.enums.tax_applicability']();
|
|
19846
|
-
export const makeTaxDutyCalculatorValidationError = () => factories['io.flow.v0.models.tax_duty_calculator_validation_error']();
|
|
19847
|
-
export const makeTaxDutyCalculatorValidationErrorCode = () => factories['io.flow.v0.enums.tax_duty_calculator_validation_error_code']();
|
|
19848
|
-
export const makeTaxDutyQuote = () => factories['io.flow.v0.models.tax_duty_quote']();
|
|
19849
|
-
export const makeTaxDutyQuoteFeeValue = () => factories['io.flow.v0.models.tax_duty_quote_fee_value']();
|
|
19850
|
-
export const makeTaxDutyQuoteForm = () => factories['io.flow.v0.models.tax_duty_quote_form']();
|
|
19851
|
-
export const makeTaxDutyQuoteLevyValue = () => factories['io.flow.v0.unions.tax_duty_quote_levy_value']();
|
|
19852
|
-
export const makeTaxDutyQuoteLineItem = () => factories['io.flow.v0.models.tax_duty_quote_line_item']();
|
|
19853
|
-
export const makeTaxDutyQuoteLineItemForm = () => factories['io.flow.v0.models.tax_duty_quote_line_item_form']();
|
|
19854
|
-
export const makeTaxDutyQuoteSimpleLevyValue = () => factories['io.flow.v0.models.tax_duty_quote_simple_levy_value']();
|
|
19855
|
-
export const makeTaxDutyQuoteSimpleShipping = () => factories['io.flow.v0.models.tax_duty_quote_simple_shipping']();
|
|
19856
|
-
export const makeTaxDutyQuoteSimpleShippingForm = () => factories['io.flow.v0.models.tax_duty_quote_simple_shipping_form']();
|
|
19857
|
-
export const makeTaxDutyQuoteValues = () => factories['io.flow.v0.models.tax_duty_quote_values']();
|
|
19858
19906
|
export const makeTaxRegistration = () => factories['io.flow.v0.models.tax_registration']();
|
|
19859
19907
|
export const makeTaxRegistrationForm = () => factories['io.flow.v0.models.tax_registration_form']();
|
|
19860
19908
|
export const makeTaxReport = () => factories['io.flow.v0.models.tax_report']();
|
|
@@ -20001,5 +20049,4 @@ export const makeWebhookStatus = () => factories['io.flow.v0.enums.webhook_statu
|
|
|
20001
20049
|
export const makeWithholdingDeduction = () => factories['io.flow.v0.models.withholding_deduction']();
|
|
20002
20050
|
export const makeWithholdingDeductionType = () => factories['io.flow.v0.enums.withholding_deduction_type']();
|
|
20003
20051
|
export const makeZeroAmountIndicator = () => factories['io.flow.v0.enums.zero_amount_indicator']();
|
|
20004
|
-
export const makeZeroLevyReasonCode = () => factories['io.flow.v0.enums.zero_levy_reason_code']();
|
|
20005
20052
|
export const makeZone = () => factories['io.flow.v0.models.zone']();
|