@flowio/api-factories 0.0.100 → 0.0.101

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/src/api.ts CHANGED
@@ -467,6 +467,181 @@ const factories = {
467
467
  return f();
468
468
  },
469
469
 
470
+ 'io.flow.channel.internal.v0.enums.channel_order_acceptance_error_action': (): io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceErrorAction => faker.helpers.arrayElement(['auto_reject', 'auto_accept']),
471
+ 'io.flow.channel.internal.v0.enums.channel_order_acceptance_failure_reason_code': (): io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceFailureReasonCode => faker.helpers.arrayElement(['channel_order_mor_invalid', 'channel_order_does_not_exist']),
472
+
473
+ 'io.flow.channel.internal.v0.enums.channel_order_acceptance_next_action_from': (): io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceNextActionFrom => faker.helpers.arrayElement([
474
+ 'cx_team',
475
+ 'core_team',
476
+ 'core_team_investigate',
477
+ 'mex_team',
478
+ 'payments_team',
479
+ 'tc_team',
480
+ 'logistics_team',
481
+ ]),
482
+
483
+ 'io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason': (): io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason => faker.helpers.arrayElement([
484
+ 'unsupported_origin_country',
485
+ 'unsupported_destination_country',
486
+ 'domestic_order',
487
+ 'order_contains_gift_card',
488
+ 'order_contains_restricted_goods',
489
+ 'missing_order_information',
490
+ 'missing_classification_information',
491
+ 'unsupported_payment_information',
492
+ 'unsupported_shop_currency',
493
+ 'unsupported_free_order',
494
+ 'extracting_distribution_info_failed',
495
+ 'shipping_estimation_failed',
496
+ 'payment_authorization_failed',
497
+ 'unsupported_subsidized_order',
498
+ 'unsupported_virtual_goods',
499
+ 'non_matching_currencies',
500
+ 'unsupported_order_edit',
501
+ 'order_missing',
502
+ ]),
503
+
504
+ 'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': (): io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus => faker.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']),
505
+
506
+ 'io.flow.channel.internal.v0.models.channel_currency_form': (): io.flow.channel.internal.v0.models.ChannelCurrencyForm => ({
507
+ currency: factories.string(),
508
+ channel_id: factories.string(),
509
+ capabilities: arrayOf(() => factories['io.flow.channel.v0.enums.channel_currency_capability']()),
510
+ }),
511
+
512
+ 'io.flow.channel.internal.v0.models.channel_form': (): io.flow.channel.internal.v0.models.ChannelForm => ({
513
+ name: factories.string(),
514
+ environment: factories['io.flow.common.v0.enums.environment'](),
515
+ organization_id_prefix: factories.string(),
516
+ }),
517
+
518
+ 'io.flow.channel.internal.v0.models.channel_membership': (): io.flow.channel.internal.v0.models.ChannelMembership => ({
519
+ id: factories.string(),
520
+ channel: factories['io.flow.common.v0.models.channel_reference'](),
521
+ user: factories['io.flow.common.v0.unions.expandable_user'](),
522
+ role: factories['io.flow.common.v0.enums.role'](),
523
+ }),
524
+
525
+ 'io.flow.channel.internal.v0.models.channel_membership_form': (): io.flow.channel.internal.v0.models.ChannelMembershipForm => ({
526
+ channel_id: factories.string(),
527
+ user_id: factories.string(),
528
+ role: factories['io.flow.common.v0.enums.role'](),
529
+ }),
530
+
531
+ 'io.flow.channel.internal.v0.models.channel_membership_put_form': (): io.flow.channel.internal.v0.models.ChannelMembershipPutForm => ({
532
+ role: factories['io.flow.common.v0.enums.role'](),
533
+ }),
534
+
535
+ 'io.flow.channel.internal.v0.models.channel_order_acceptance': (): io.flow.channel.internal.v0.models.ChannelOrderAcceptance => ({
536
+ id: factories.string(),
537
+ organization_id: factories.string(),
538
+ order_number: factories.string(),
539
+ channel_id: factories.string(),
540
+ external_order_reference: factories.string(),
541
+ payment_request_id: factories.string(),
542
+ order_edit_payment_request_ids: arrayOf(() => factories.string()),
543
+ status: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_status'](),
544
+
545
+ reasons: arrayOf(
546
+ () => factories['io.flow.channel.internal.v0.models.channel_order_acceptance_reason'](),
547
+ ),
548
+
549
+ next_action_from: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_next_action_from'](),
550
+ order_created_at: factories.date_time_iso_8601(),
551
+ order_updated_at: factories.date_time_iso_8601(),
552
+ order_edit_summary: factories['io.flow.channel.internal.v0.models.order_edit_summary'](),
553
+ }),
554
+
555
+ 'io.flow.channel.internal.v0.models.channel_order_acceptance_details': (): io.flow.channel.internal.v0.models.ChannelOrderAcceptanceDetails => ({
556
+ order_acceptance: factories['io.flow.channel.internal.v0.models.channel_order_acceptance'](),
557
+ external_order: factories.object(),
558
+ }),
559
+
560
+ 'io.flow.channel.internal.v0.models.channel_order_acceptance_failure': (): io.flow.channel.internal.v0.models.ChannelOrderAcceptanceFailure => ({
561
+ id: factories.string(),
562
+ organization_id: factories.string(),
563
+ channel_id: factories.string(),
564
+ payment_request_id: factories.string(),
565
+ code: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_failure_reason_code'](),
566
+ reason: factories.string(),
567
+ }),
568
+
569
+ 'io.flow.channel.internal.v0.models.channel_order_acceptance_form': (): io.flow.channel.internal.v0.models.ChannelOrderAcceptanceForm => ({
570
+ status: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_status'](),
571
+ }),
572
+
573
+ 'io.flow.channel.internal.v0.models.channel_order_acceptance_reason': (): io.flow.channel.internal.v0.models.ChannelOrderAcceptanceReason => ({
574
+ description: factories.string(),
575
+ rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
576
+ }),
577
+
578
+ 'io.flow.channel.internal.v0.models.flow_channel_organization': (): io.flow.channel.internal.v0.models.FlowChannelOrganization => ({
579
+ placeholder: factories.string(),
580
+ }),
581
+
582
+ 'io.flow.channel.internal.v0.models.order_edit_summary': (): io.flow.channel.internal.v0.models.OrderEditSummary => ({
583
+ edited_at: factories.date_time_iso_8601(),
584
+ }),
585
+
586
+ 'io.flow.channel.v0.enums.channel_currency_capability': (): io.flow.channel.v0.enums.ChannelCurrencyCapability => faker.helpers.arrayElement(['payment_authorizations', 'settlement_currency']),
587
+
588
+ 'io.flow.channel.v0.models.channel': (): io.flow.channel.v0.models.Channel => ({
589
+ id: factories.string(),
590
+ name: factories.string(),
591
+ environment: factories['io.flow.common.v0.enums.environment'](),
592
+ organization_id_prefix: factories.string(),
593
+ }),
594
+
595
+ 'io.flow.channel.v0.models.channel_authorization': (): io.flow.channel.v0.models.ChannelAuthorization => ({
596
+ placeholder: factories.string(),
597
+ }),
598
+
599
+ 'io.flow.channel.v0.models.channel_authorization_form': (): io.flow.channel.v0.models.ChannelAuthorizationForm => ({
600
+ channel_id: factories.string(),
601
+ }),
602
+
603
+ 'io.flow.channel.v0.models.channel_currency': (): io.flow.channel.v0.models.ChannelCurrency => ({
604
+ id: factories.string(),
605
+ currency: factories.string(),
606
+ channel: factories['io.flow.common.v0.models.channel_reference'](),
607
+ capabilities: arrayOf(() => factories['io.flow.channel.v0.enums.channel_currency_capability']()),
608
+ }),
609
+
610
+ 'io.flow.channel.v0.models.channel_organization': (): io.flow.channel.v0.models.ChannelOrganization => ({
611
+ id: factories.string(),
612
+ organization: factories['io.flow.common.v0.models.organization_reference'](),
613
+ key: factories.string(),
614
+ channel: factories['io.flow.common.v0.models.channel_reference'](),
615
+ name: factories.string(),
616
+ slug: factories.string(),
617
+ defaults: factories['io.flow.common.v0.models.organization_defaults'](),
618
+ attributes: objectOf(() => factories.string()),
619
+ }),
620
+
621
+ 'io.flow.channel.v0.models.channel_organization_authorization': (): io.flow.channel.v0.models.ChannelOrganizationAuthorization => ({
622
+ placeholder: factories.string(),
623
+ }),
624
+
625
+ 'io.flow.channel.v0.models.channel_organization_authorization_form': (): io.flow.channel.v0.models.ChannelOrganizationAuthorizationForm => ({
626
+ channel_id: factories.string(),
627
+ organization_id: factories.string(),
628
+ }),
629
+
630
+ 'io.flow.channel.v0.models.channel_organization_form': (): io.flow.channel.v0.models.ChannelOrganizationForm => ({
631
+ key: factories.string(),
632
+ name: factories.string(),
633
+ slug: factories.string(),
634
+ defaults: factories['io.flow.common.v0.models.organization_defaults'](),
635
+ attributes: objectOf(() => factories.string()),
636
+ }),
637
+
638
+ 'io.flow.channel.v0.models.channel_organization_put_form': (): io.flow.channel.v0.models.ChannelOrganizationPutForm => ({
639
+ name: factories.string(),
640
+ slug: factories.string(),
641
+ defaults: factories['io.flow.common.v0.models.organization_defaults'](),
642
+ attributes: objectOf(() => factories.string()),
643
+ }),
644
+
470
645
  'io.flow.common.v0.enums.attribute_data_type': (): io.flow.common.v0.enums.AttributeDataType => faker.helpers.arrayElement(['boolean', 'integer', 'decimal', 'string', 'json_array']),
471
646
  'io.flow.common.v0.enums.availability_status': (): io.flow.common.v0.enums.AvailabilityStatus => faker.helpers.arrayElement(['enabled', 'disabled']),
472
647
  'io.flow.common.v0.enums.calendar': (): io.flow.common.v0.enums.Calendar => faker.helpers.arrayElement(['weekdays', 'everyday']),
@@ -2599,6 +2774,26 @@ const factories = {
2599
2774
  return f();
2600
2775
  },
2601
2776
 
2777
+ 'io.flow.product.v0.models.product': (): io.flow.product.v0.models.Product => ({
2778
+ organization_id: factories.string(),
2779
+ number: factories.string(),
2780
+ taxonomy_category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
2781
+ taxonomy_data: arrayOf(() => factories['io.flow.product.v0.models.product_taxonomy_data']()),
2782
+ item_numbers: arrayOf(() => factories.string()),
2783
+ updated_at: factories.date_time_iso_8601(),
2784
+ deleted_at: factories.date_time_iso_8601(),
2785
+ }),
2786
+
2787
+ 'io.flow.product.v0.models.product_taxonomy_category': (): io.flow.product.v0.models.ProductTaxonomyCategory => ({
2788
+ name: factories.string(),
2789
+ full_name: factories.string(),
2790
+ }),
2791
+
2792
+ 'io.flow.product.v0.models.product_taxonomy_data': (): io.flow.product.v0.models.ProductTaxonomyData => ({
2793
+ key: factories.string(),
2794
+ value: arrayOf(() => factories.string()),
2795
+ }),
2796
+
2602
2797
  'io.flow.query.builder.v0.enums.available_filter_format': (): io.flow.query.builder.v0.enums.AvailableFilterFormat => faker.helpers.arrayElement([
2603
2798
  'boolean',
2604
2799
  'date',
@@ -3027,6 +3222,11 @@ const factories = {
3027
3222
  weight: factories['io.flow.shopify.external.v0.models.graphql_weight'](),
3028
3223
  }),
3029
3224
 
3225
+ 'io.flow.shopify.external.v0.models.graphql_metafield': (): io.flow.shopify.external.v0.models.GraphqlMetafield => ({
3226
+ key: factories.string(),
3227
+ value: factories.string(),
3228
+ }),
3229
+
3030
3230
  'io.flow.shopify.external.v0.models.graphql_option': (): io.flow.shopify.external.v0.models.GraphqlOption => ({
3031
3231
  id: factories.string(),
3032
3232
  values: arrayOf(() => factories.string()),
@@ -3059,6 +3259,8 @@ const factories = {
3059
3259
  createdAt: factories.date_time_iso_8601(),
3060
3260
  updatedAt: factories.date_time_iso_8601(),
3061
3261
  hasVariantsThatRequiresComponents: factories.boolean(),
3262
+ category: factories['io.flow.shopify.external.v0.models.graphql_taxonomy_category'](),
3263
+ metafields: arrayOf(() => factories['io.flow.shopify.external.v0.models.graphql_metafield']()),
3062
3264
  }),
3063
3265
 
3064
3266
  'io.flow.shopify.external.v0.models.graphql_product_image': (): io.flow.shopify.external.v0.models.GraphqlProductImage => ({
@@ -3082,6 +3284,11 @@ const factories = {
3082
3284
  inventoryItem: factories['io.flow.shopify.external.v0.models.graphql_inventory_item'](),
3083
3285
  }),
3084
3286
 
3287
+ 'io.flow.shopify.external.v0.models.graphql_taxonomy_category': (): io.flow.shopify.external.v0.models.GraphqlTaxonomyCategory => ({
3288
+ name: factories.string(),
3289
+ fullName: factories.string(),
3290
+ }),
3291
+
3085
3292
  'io.flow.shopify.external.v0.models.graphql_variant_image': (): io.flow.shopify.external.v0.models.GraphqlVariantImage => ({
3086
3293
  id: factories.string(),
3087
3294
  }),
@@ -3199,6 +3406,7 @@ const factories = {
3199
3406
  created_at: factories.date_time_iso_8601(),
3200
3407
  updated_at: factories.date_time_iso_8601(),
3201
3408
  has_variants_that_requires_components: factories.boolean(),
3409
+ category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
3202
3410
  }),
3203
3411
 
3204
3412
  'io.flow.shopify.external.v0.models.product_delete': (): io.flow.shopify.external.v0.models.ProductDelete => ({
@@ -5701,6 +5909,7 @@ const factories = {
5701
5909
  },
5702
5910
 
5703
5911
  'io.flow.tech.onboarding.playground.v0.enums.aldo_item_type': (): io.flow.tech.onboarding.playground.v0.enums.AldoItemType => faker.helpers.arrayElement(['physical', 'digital']),
5912
+ 'io.flow.tech.onboarding.playground.v0.enums.ansh_item_type': (): io.flow.tech.onboarding.playground.v0.enums.AnshItemType => faker.helpers.arrayElement(['physical', 'digital']),
5704
5913
 
5705
5914
  'io.flow.tech.onboarding.playground.v0.models.aldo_item': (): io.flow.tech.onboarding.playground.v0.models.AldoItem => ({
5706
5915
  id: factories.string(),
@@ -5719,11 +5928,35 @@ const factories = {
5719
5928
  added_on: factories.date_iso_8601(),
5720
5929
  }),
5721
5930
 
5931
+ 'io.flow.tech.onboarding.playground.v0.models.ansh_item': (): io.flow.tech.onboarding.playground.v0.models.AnshItem => ({
5932
+ id: factories.string(),
5933
+ number: factories.string(),
5934
+ amount: factories['io.flow.common.v0.models.price'](),
5935
+ description: factories.string(),
5936
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.ansh_item_type'](),
5937
+ added_on: factories.date_iso_8601(),
5938
+ }),
5939
+
5940
+ 'io.flow.tech.onboarding.playground.v0.models.ansh_item_form': (): io.flow.tech.onboarding.playground.v0.models.AnshItemForm => ({
5941
+ number: factories.string(),
5942
+ amount: factories['io.flow.common.v0.models.price'](),
5943
+ description: factories.string(),
5944
+ type: factories['io.flow.tech.onboarding.playground.v0.enums.ansh_item_type'](),
5945
+ added_on: factories.date_iso_8601(),
5946
+ }),
5947
+
5722
5948
  'io.flow.tech.onboarding.playground.v0.models.jean_demo_item': (): io.flow.tech.onboarding.playground.v0.models.JeanDemoItem => ({
5723
5949
  id: factories.string(),
5724
5950
  name: factories.string(),
5725
5951
  }),
5726
5952
 
5953
+ 'io.flow.tech.onboarding.playground.v0.models.shawn_roundtable_workshop_rate': (): io.flow.tech.onboarding.playground.v0.models.ShawnRoundtableWorkshopRate => ({
5954
+ origin_country: factories.string(),
5955
+ destination_country: factories.string(),
5956
+ weight: factories.double(),
5957
+ amount: factories.double(),
5958
+ }),
5959
+
5727
5960
  'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': (): io.flow.tech.onboarding.playground.v0.models.TechOnboardingDescription => ({
5728
5961
  description: factories.string(),
5729
5962
  }),
@@ -5999,6 +6232,7 @@ const factories = {
5999
6232
  'io.flow.v0.enums.center_capability': (): io.flow.v0.enums.CenterCapability => faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']),
6000
6233
  'io.flow.v0.enums.change_type': (): io.flow.v0.enums.ChangeType => faker.helpers.arrayElement(['insert', 'update', 'delete']),
6001
6234
  'io.flow.v0.enums.channel_currency_capability': (): io.flow.v0.enums.ChannelCurrencyCapability => faker.helpers.arrayElement(['payment_authorizations', 'settlement_currency']),
6235
+ 'io.flow.v0.enums.channel_shopify_order_state_reason_code': (): io.flow.v0.enums.ChannelShopifyOrderStateReasonCode => faker.helpers.arrayElement(['placeholder_reason_code']),
6002
6236
  'io.flow.v0.enums.consumer_invoice_customer_type': (): io.flow.v0.enums.ConsumerInvoiceCustomerType => faker.helpers.arrayElement(['business_eu_verified', 'business_non_verified', 'individual']),
6003
6237
  'io.flow.v0.enums.consumer_invoice_document_type': (): io.flow.v0.enums.ConsumerInvoiceDocumentType => faker.helpers.arrayElement(['pdf']),
6004
6238
  'io.flow.v0.enums.consumer_invoice_status': (): io.flow.v0.enums.ConsumerInvoiceStatus => faker.helpers.arrayElement(['pending', 'available', 'invalid']),
@@ -6105,10 +6339,6 @@ const factories = {
6105
6339
  'catalog_deleted',
6106
6340
  'subcatalog_upserted',
6107
6341
  'subcatalog_deleted',
6108
- 'catalog_item_upserted',
6109
- 'catalog_item_deleted',
6110
- 'catalog_item_upserted_v2',
6111
- 'catalog_item_deleted_v2',
6112
6342
  'subcatalog_item_upserted',
6113
6343
  'subcatalog_item_deleted',
6114
6344
  'catalog_statistics_upserted',
@@ -6116,6 +6346,8 @@ const factories = {
6116
6346
  'item_inserted',
6117
6347
  'item_updated',
6118
6348
  'item_deleted',
6349
+ 'channel_shopify_order_state_upserted',
6350
+ 'channel_shopify_order_state_deleted',
6119
6351
  'channel_upserted',
6120
6352
  'channel_deleted',
6121
6353
  'channel_currency_upserted',
@@ -6264,6 +6496,9 @@ const factories = {
6264
6496
  'price_book_deleted',
6265
6497
  'price_book_item_upserted',
6266
6498
  'price_book_item_deleted',
6499
+ 'product_inserted',
6500
+ 'product_updated',
6501
+ 'product_deleted',
6267
6502
  'organization_rates_published',
6268
6503
  'ratecard_lane_upserted',
6269
6504
  'ratecard_lane_deleted',
@@ -6821,6 +7056,7 @@ const factories = {
6821
7056
  'io.flow.v0.enums.role': (): io.flow.v0.enums.Role => faker.helpers.arrayElement(['admin', 'member']),
6822
7057
  'io.flow.v0.enums.rounding_method': (): io.flow.v0.enums.RoundingMethod => faker.helpers.arrayElement(['up', 'down', 'nearest']),
6823
7058
  'io.flow.v0.enums.rounding_type': (): io.flow.v0.enums.RoundingType => faker.helpers.arrayElement(['pattern', 'multiple']),
7059
+ 'io.flow.v0.enums.rule_effect_type': (): io.flow.v0.enums.RuleEffectType => faker.helpers.arrayElement(['market', 'dhl', 'dhl_ecommerce', 'ups']),
6824
7060
  'io.flow.v0.enums.schedule_exception_status': (): io.flow.v0.enums.ScheduleExceptionStatus => faker.helpers.arrayElement(['Open', 'Closed']),
6825
7061
  'io.flow.v0.enums.shipment_integration_type': (): io.flow.v0.enums.ShipmentIntegrationType => faker.helpers.arrayElement(['direct', 'information', 'preadvice']),
6826
7062
  'io.flow.v0.enums.shipment_recipient': (): io.flow.v0.enums.ShipmentRecipient => faker.helpers.arrayElement(['customer', 'return', 'crossdock']),
@@ -6849,6 +7085,51 @@ const factories = {
6849
7085
  'io.flow.v0.enums.stored_method_usage_step': (): io.flow.v0.enums.StoredMethodUsageStep => faker.helpers.arrayElement(['initial', 'subsequent']),
6850
7086
  'io.flow.v0.enums.strategy': (): io.flow.v0.enums.Strategy => faker.helpers.arrayElement(['range', 'from', 'to']),
6851
7087
  'io.flow.v0.enums.subcatalog_item_status': (): io.flow.v0.enums.SubcatalogItemStatus => faker.helpers.arrayElement(['excluded', 'included', 'restricted']),
7088
+
7089
+ 'io.flow.v0.enums.substatus_code': (): io.flow.v0.enums.SubstatusCode => faker.helpers.arrayElement([
7090
+ 'Delivered_001',
7091
+ 'Delivered_002',
7092
+ 'Delivered_003',
7093
+ 'Delivered_004',
7094
+ 'AvailableForPickup_001',
7095
+ 'Exception_001',
7096
+ 'Exception_002',
7097
+ 'Exception_003',
7098
+ 'Exception_004',
7099
+ 'Exception_005',
7100
+ 'Exception_006',
7101
+ 'Exception_007',
7102
+ 'Exception_008',
7103
+ 'Exception_009',
7104
+ 'Exception_010',
7105
+ 'Exception_011',
7106
+ 'Exception_012',
7107
+ 'Exception_013',
7108
+ 'AttemptFail_001',
7109
+ 'AttemptFail_002',
7110
+ 'AttemptFail_003',
7111
+ 'InTransit_001',
7112
+ 'InTransit_002',
7113
+ 'InTransit_003',
7114
+ 'InTransit_004',
7115
+ 'InTransit_005',
7116
+ 'InTransit_006',
7117
+ 'InTransit_007',
7118
+ 'InTransit_008',
7119
+ 'InTransit_009',
7120
+ 'InfoReceived_001',
7121
+ 'OutForDelivery_001',
7122
+ 'OutForDelivery_003',
7123
+ 'OutForDelivery_004',
7124
+ 'Pending_001',
7125
+ 'Pending_002',
7126
+ 'Pending_003',
7127
+ 'Pending_004',
7128
+ 'Pending_005',
7129
+ 'Pending_006',
7130
+ 'Expired_001',
7131
+ ]),
7132
+
6852
7133
  'io.flow.v0.enums.surcharge_responsible_party': (): io.flow.v0.enums.SurchargeResponsibleParty => faker.helpers.arrayElement(['organization', 'customer']),
6853
7134
  'io.flow.v0.enums.sync_record_failure_reason': (): io.flow.v0.enums.SyncRecordFailureReason => faker.helpers.arrayElement(['inventory', 'address', 'promotion', 'other']),
6854
7135
  'io.flow.v0.enums.sync_stream_type': (): io.flow.v0.enums.SyncStreamType => faker.helpers.arrayElement(['submitted_order', 'placed_order']),
@@ -6910,6 +7191,9 @@ const factories = {
6910
7191
  'virtual_card_refund',
6911
7192
  'failed_payout',
6912
7193
  'tax_refund',
7194
+ 'order_fx',
7195
+ 'ge_revenue_share',
7196
+ 'tax_duty_delta',
6913
7197
  ]),
6914
7198
 
6915
7199
  'io.flow.v0.enums.trueup_source': (): io.flow.v0.enums.TrueupSource => faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl', 'ups']),
@@ -8198,6 +8482,11 @@ const factories = {
8198
8482
  id: factories.string(),
8199
8483
  }),
8200
8484
 
8485
+ 'io.flow.v0.models.carrier_restrictions': (): io.flow.v0.models.CarrierRestrictions => ({
8486
+ carrier: factories.string(),
8487
+ regions: arrayOf(() => factories.string()),
8488
+ }),
8489
+
8201
8490
  'io.flow.v0.models.carrier_service': (): io.flow.v0.models.CarrierService => ({
8202
8491
  id: factories.string(),
8203
8492
  carrier: factories['io.flow.v0.models.carrier'](),
@@ -8219,22 +8508,6 @@ const factories = {
8219
8508
  organization: factories.string(),
8220
8509
  }),
8221
8510
 
8222
- 'io.flow.v0.models.catalog_item_deleted': (): io.flow.v0.models.CatalogItemDeleted => ({
8223
- discriminator: 'catalog_item_deleted',
8224
- event_id: factories.string(),
8225
- timestamp: factories.date_time_iso_8601(),
8226
- organization: factories.string(),
8227
- number: factories.string(),
8228
- }),
8229
-
8230
- 'io.flow.v0.models.catalog_item_deleted_v2': (): io.flow.v0.models.CatalogItemDeletedV2 => ({
8231
- discriminator: 'catalog_item_deleted_v2',
8232
- event_id: factories.string(),
8233
- timestamp: factories.date_time_iso_8601(),
8234
- organization: factories.string(),
8235
- item: factories['io.flow.v0.models.item'](),
8236
- }),
8237
-
8238
8511
  'io.flow.v0.models.catalog_item_document': (): io.flow.v0.models.CatalogItemDocument => ({
8239
8512
  discriminator: 'catalog_item_document',
8240
8513
  number: factories.string(),
@@ -8267,31 +8540,6 @@ const factories = {
8267
8540
  attributes: objectOf(() => factories.string()),
8268
8541
  }),
8269
8542
 
8270
- 'io.flow.v0.models.catalog_item_upserted': (): io.flow.v0.models.CatalogItemUpserted => ({
8271
- discriminator: 'catalog_item_upserted',
8272
- event_id: factories.string(),
8273
- timestamp: factories.date_time_iso_8601(),
8274
- organization: factories.string(),
8275
- number: factories.string(),
8276
- locale: factories.string(),
8277
- name: factories.string(),
8278
- currency: factories.string(),
8279
- price: factories.double(),
8280
- categories: arrayOf(() => factories.string()),
8281
- description: factories.string(),
8282
- attributes: objectOf(() => factories.string()),
8283
- dimensions: factories.object(),
8284
- images: arrayOf(() => factories.object()),
8285
- }),
8286
-
8287
- 'io.flow.v0.models.catalog_item_upserted_v2': (): io.flow.v0.models.CatalogItemUpsertedV2 => ({
8288
- discriminator: 'catalog_item_upserted_v2',
8289
- event_id: factories.string(),
8290
- timestamp: factories.date_time_iso_8601(),
8291
- organization: factories.string(),
8292
- item: factories['io.flow.v0.models.item'](),
8293
- }),
8294
-
8295
8543
  'io.flow.v0.models.catalog_price_book_item_document': (): io.flow.v0.models.CatalogPriceBookItemDocument => ({
8296
8544
  price_book_key: factories.string(),
8297
8545
  price_book_item_key: factories.string(),
@@ -8587,6 +8835,39 @@ const factories = {
8587
8835
  id: factories.string(),
8588
8836
  }),
8589
8837
 
8838
+ 'io.flow.v0.models.channel_shopify_order_state': (): io.flow.v0.models.ChannelShopifyOrderState => ({
8839
+ id: factories.string(),
8840
+ shopify_order_summary: factories['io.flow.v0.models.channel_shopify_order_summary'](),
8841
+ status: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_status'](),
8842
+ reasons: arrayOf(() => factories['io.flow.v0.models.channel_shopify_order_state_reason']()),
8843
+ }),
8844
+
8845
+ 'io.flow.v0.models.channel_shopify_order_state_deleted': (): io.flow.v0.models.ChannelShopifyOrderStateDeleted => ({
8846
+ discriminator: 'channel_shopify_order_state_deleted',
8847
+ event_id: factories.string(),
8848
+ timestamp: factories.date_time_iso_8601(),
8849
+ organization: factories.string(),
8850
+ id: factories.string(),
8851
+ }),
8852
+
8853
+ 'io.flow.v0.models.channel_shopify_order_state_reason': (): io.flow.v0.models.ChannelShopifyOrderStateReason => ({
8854
+ code: factories['io.flow.v0.enums.channel_shopify_order_state_reason_code'](),
8855
+ message: factories.string(),
8856
+ }),
8857
+
8858
+ 'io.flow.v0.models.channel_shopify_order_state_upserted': (): io.flow.v0.models.ChannelShopifyOrderStateUpserted => ({
8859
+ discriminator: 'channel_shopify_order_state_upserted',
8860
+ event_id: factories.string(),
8861
+ timestamp: factories.date_time_iso_8601(),
8862
+ organization: factories.string(),
8863
+ channel_shopify_order_state: factories['io.flow.v0.models.channel_shopify_order_state'](),
8864
+ }),
8865
+
8866
+ 'io.flow.v0.models.channel_shopify_order_summary': (): io.flow.v0.models.ChannelShopifyOrderSummary => ({
8867
+ order_id: factories.long(),
8868
+ shop_id: factories.long(),
8869
+ }),
8870
+
8590
8871
  'io.flow.v0.models.channel_statement': (): io.flow.v0.models.ChannelStatement => ({
8591
8872
  id: factories.string(),
8592
8873
  account: factories['io.flow.v0.models.account_reference'](),
@@ -9584,12 +9865,14 @@ const factories = {
9584
9865
  q: factories.string(),
9585
9866
  dimensions: factories['io.flow.v0.models.estimated_dimensions'](),
9586
9867
  position: factories.long(),
9868
+ block_bulk_update: factories.boolean(),
9587
9869
  }),
9588
9870
 
9589
9871
  'io.flow.v0.models.dimension_estimate_form': (): io.flow.v0.models.DimensionEstimateForm => ({
9590
9872
  q: factories.string(),
9591
9873
  dimensions: factories['io.flow.v0.models.estimated_dimensions'](),
9592
9874
  position: factories.long(),
9875
+ block_bulk_update: factories.boolean(),
9593
9876
  }),
9594
9877
 
9595
9878
  'io.flow.v0.models.dimension_estimate_version': (): io.flow.v0.models.DimensionEstimateVersion => ({
@@ -14266,7 +14549,6 @@ const factories = {
14266
14549
  }),
14267
14550
 
14268
14551
  'io.flow.v0.models.product': (): io.flow.v0.models.Product => ({
14269
- id: factories.string(),
14270
14552
  organization_id: factories.string(),
14271
14553
  number: factories.string(),
14272
14554
  taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
@@ -14276,6 +14558,22 @@ const factories = {
14276
14558
  deleted_at: factories.date_time_iso_8601(),
14277
14559
  }),
14278
14560
 
14561
+ 'io.flow.v0.models.product_deleted': (): io.flow.v0.models.ProductDeleted => ({
14562
+ discriminator: 'product_deleted',
14563
+ event_id: factories.string(),
14564
+ timestamp: factories.date_time_iso_8601(),
14565
+ organization: factories.string(),
14566
+ product: factories['io.flow.v0.models.product'](),
14567
+ }),
14568
+
14569
+ 'io.flow.v0.models.product_inserted': (): io.flow.v0.models.ProductInserted => ({
14570
+ discriminator: 'product_inserted',
14571
+ event_id: factories.string(),
14572
+ timestamp: factories.date_time_iso_8601(),
14573
+ organization: factories.string(),
14574
+ product: factories['io.flow.v0.models.product'](),
14575
+ }),
14576
+
14279
14577
  'io.flow.v0.models.product_restriction_result': (): io.flow.v0.models.ProductRestrictionResult => ({
14280
14578
  id: factories.string(),
14281
14579
  product_id: factories.string(),
@@ -14305,9 +14603,32 @@ const factories = {
14305
14603
  product_restriction_result: factories['io.flow.v0.models.product_restriction_result'](),
14306
14604
  }),
14307
14605
 
14606
+ 'io.flow.v0.models.product_sellability': (): io.flow.v0.models.ProductSellability => ({
14607
+ organization_id: factories.string(),
14608
+ product_id: factories.string(),
14609
+ product_correlation_id: factories.string(),
14610
+ restricted_regions: arrayOf(() => factories['io.flow.v0.models.sellablility_region_result']()),
14611
+ in_review_regions: arrayOf(() => factories['io.flow.v0.models.sellablility_region_result']()),
14612
+ }),
14613
+
14614
+ 'io.flow.v0.models.product_sellability_form': (): io.flow.v0.models.ProductSellabilityForm => ({
14615
+ organization_id: factories.string(),
14616
+ product_id: factories.string(),
14617
+ product_correlation_id: factories.string(),
14618
+ name: factories.string(),
14619
+ price: factories['io.flow.v0.models.product_sellability_price'](),
14620
+ description: factories.string(),
14621
+ taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
14622
+ }),
14623
+
14624
+ 'io.flow.v0.models.product_sellability_price': (): io.flow.v0.models.ProductSellabilityPrice => ({
14625
+ currency: factories.string(),
14626
+ amount: factories.decimal(),
14627
+ }),
14628
+
14308
14629
  'io.flow.v0.models.product_taxonomy_category': (): io.flow.v0.models.ProductTaxonomyCategory => ({
14309
14630
  name: factories.string(),
14310
- fullname: factories.string(),
14631
+ full_name: factories.string(),
14311
14632
  }),
14312
14633
 
14313
14634
  'io.flow.v0.models.product_taxonomy_data': (): io.flow.v0.models.ProductTaxonomyData => ({
@@ -14315,6 +14636,14 @@ const factories = {
14315
14636
  value: arrayOf(() => factories.string()),
14316
14637
  }),
14317
14638
 
14639
+ 'io.flow.v0.models.product_updated': (): io.flow.v0.models.ProductUpdated => ({
14640
+ discriminator: 'product_updated',
14641
+ event_id: factories.string(),
14642
+ timestamp: factories.date_time_iso_8601(),
14643
+ organization: factories.string(),
14644
+ product: factories['io.flow.v0.models.product'](),
14645
+ }),
14646
+
14318
14647
  'io.flow.v0.models.promotion_trigger': (): io.flow.v0.models.PromotionTrigger => ({
14319
14648
  type: factories['io.flow.v0.enums.promotion_trigger_type'](),
14320
14649
  min: factories['io.flow.v0.models.price'](),
@@ -15260,6 +15589,11 @@ const factories = {
15260
15589
  issuer_options: arrayOf(() => factories['io.flow.v0.models.issuer_reference']()),
15261
15590
  }),
15262
15591
 
15592
+ 'io.flow.v0.models.sellablility_region_result': (): io.flow.v0.models.SellablilityRegionResult => ({
15593
+ type: factories['io.flow.v0.enums.rule_effect_type'](),
15594
+ regions: arrayOf(() => factories.string()),
15595
+ }),
15596
+
15263
15597
  'io.flow.v0.models.service_reference': (): io.flow.v0.models.ServiceReference => ({
15264
15598
  id: factories.string(),
15265
15599
  }),
@@ -17396,10 +17730,6 @@ const factories = {
17396
17730
  () => factories['io.flow.v0.models.catalog_deleted'](),
17397
17731
  () => factories['io.flow.v0.models.subcatalog_upserted'](),
17398
17732
  () => factories['io.flow.v0.models.subcatalog_deleted'](),
17399
- () => factories['io.flow.v0.models.catalog_item_upserted'](),
17400
- () => factories['io.flow.v0.models.catalog_item_deleted'](),
17401
- () => factories['io.flow.v0.models.catalog_item_upserted_v2'](),
17402
- () => factories['io.flow.v0.models.catalog_item_deleted_v2'](),
17403
17733
  () => factories['io.flow.v0.models.subcatalog_item_upserted'](),
17404
17734
  () => factories['io.flow.v0.models.subcatalog_item_deleted'](),
17405
17735
  () => factories['io.flow.v0.models.catalog_statistics_upserted'](),
@@ -17407,6 +17737,8 @@ const factories = {
17407
17737
  () => factories['io.flow.v0.models.item_inserted'](),
17408
17738
  () => factories['io.flow.v0.models.item_updated'](),
17409
17739
  () => factories['io.flow.v0.models.item_deleted'](),
17740
+ () => factories['io.flow.v0.models.channel_shopify_order_state_upserted'](),
17741
+ () => factories['io.flow.v0.models.channel_shopify_order_state_deleted'](),
17410
17742
  () => factories['io.flow.v0.models.channel_upserted'](),
17411
17743
  () => factories['io.flow.v0.models.channel_deleted'](),
17412
17744
  () => factories['io.flow.v0.models.channel_currency_upserted'](),
@@ -17555,6 +17887,9 @@ const factories = {
17555
17887
  () => factories['io.flow.v0.models.price_book_deleted'](),
17556
17888
  () => factories['io.flow.v0.models.price_book_item_upserted'](),
17557
17889
  () => factories['io.flow.v0.models.price_book_item_deleted'](),
17890
+ () => factories['io.flow.v0.models.product_inserted'](),
17891
+ () => factories['io.flow.v0.models.product_updated'](),
17892
+ () => factories['io.flow.v0.models.product_deleted'](),
17558
17893
  () => factories['io.flow.v0.models.organization_rates_published'](),
17559
17894
  () => factories['io.flow.v0.models.ratecard_lane_upserted'](),
17560
17895
  () => factories['io.flow.v0.models.ratecard_lane_deleted'](),
@@ -18534,19 +18869,16 @@ export const makeCardVersion = () => factories['io.flow.v0.models.card_version']
18534
18869
  export const makeCarrier = () => factories['io.flow.v0.models.carrier']();
18535
18870
  export const makeCarrierChargeReason = () => factories['io.flow.v0.enums.carrier_charge_reason']();
18536
18871
  export const makeCarrierReference = () => factories['io.flow.v0.models.carrier_reference']();
18872
+ export const makeCarrierRestrictions = () => factories['io.flow.v0.models.carrier_restrictions']();
18537
18873
  export const makeCarrierService = () => factories['io.flow.v0.models.carrier_service']();
18538
18874
  export const makeCartReference = () => factories['io.flow.v0.models.cart_reference']();
18539
18875
  export const makeCatalog = () => factories['io.flow.v0.models.catalog']();
18540
18876
  export const makeCatalogDeleted = () => factories['io.flow.v0.models.catalog_deleted']();
18541
- export const makeCatalogItemDeleted = () => factories['io.flow.v0.models.catalog_item_deleted']();
18542
- export const makeCatalogItemDeletedV2 = () => factories['io.flow.v0.models.catalog_item_deleted_v2']();
18543
18877
  export const makeCatalogItemDocument = () => factories['io.flow.v0.models.catalog_item_document']();
18544
18878
  export const makeCatalogItemDocumentImages = () => factories['io.flow.v0.models.catalog_item_document_images']();
18545
18879
  export const makeCatalogItemExportType = () => factories['io.flow.v0.models.catalog_item_export_type']();
18546
18880
  export const makeCatalogItemReference = () => factories['io.flow.v0.models.catalog_item_reference']();
18547
18881
  export const makeCatalogItemSummary = () => factories['io.flow.v0.models.catalog_item_summary']();
18548
- export const makeCatalogItemUpserted = () => factories['io.flow.v0.models.catalog_item_upserted']();
18549
- export const makeCatalogItemUpsertedV2 = () => factories['io.flow.v0.models.catalog_item_upserted_v2']();
18550
18882
  export const makeCatalogPriceBookItemDocument = () => factories['io.flow.v0.models.catalog_price_book_item_document']();
18551
18883
  export const makeCatalogReference = () => factories['io.flow.v0.models.catalog_reference']();
18552
18884
  export const makeCatalogStatistics = () => factories['io.flow.v0.models.catalog_statistics']();
@@ -18592,6 +18924,12 @@ export const makeChannelPendingPayoutTransactionDeleted = () => factories['io.fl
18592
18924
  export const makeChannelPendingPayoutTransactionUpserted = () => factories['io.flow.v0.models.channel_pending_payout_transaction_upserted']();
18593
18925
  export const makeChannelRate = () => factories['io.flow.v0.models.channel_rate']();
18594
18926
  export const makeChannelReference = () => factories['io.flow.v0.models.channel_reference']();
18927
+ export const makeChannelShopifyOrderState = () => factories['io.flow.v0.models.channel_shopify_order_state']();
18928
+ export const makeChannelShopifyOrderStateDeleted = () => factories['io.flow.v0.models.channel_shopify_order_state_deleted']();
18929
+ export const makeChannelShopifyOrderStateReason = () => factories['io.flow.v0.models.channel_shopify_order_state_reason']();
18930
+ export const makeChannelShopifyOrderStateReasonCode = () => factories['io.flow.v0.enums.channel_shopify_order_state_reason_code']();
18931
+ export const makeChannelShopifyOrderStateUpserted = () => factories['io.flow.v0.models.channel_shopify_order_state_upserted']();
18932
+ export const makeChannelShopifyOrderSummary = () => factories['io.flow.v0.models.channel_shopify_order_summary']();
18595
18933
  export const makeChannelStatement = () => factories['io.flow.v0.models.channel_statement']();
18596
18934
  export const makeChannelStatementDeleted = () => factories['io.flow.v0.models.channel_statement_deleted']();
18597
18935
  export const makeChannelStatementUpserted = () => factories['io.flow.v0.models.channel_statement_upserted']();
@@ -19580,12 +19918,18 @@ export const makePricingUpserted = () => factories['io.flow.v0.models.pricing_up
19580
19918
  export const makePricingVersion = () => factories['io.flow.v0.models.pricing_version']();
19581
19919
  export const makeProcessingEstimate = () => factories['io.flow.v0.models.processing_estimate']();
19582
19920
  export const makeProduct = () => factories['io.flow.v0.models.product']();
19921
+ export const makeProductDeleted = () => factories['io.flow.v0.models.product_deleted']();
19922
+ export const makeProductInserted = () => factories['io.flow.v0.models.product_inserted']();
19583
19923
  export const makeProductRestrictionResult = () => factories['io.flow.v0.models.product_restriction_result']();
19584
19924
  export const makeProductRestrictionResultDeleted = () => factories['io.flow.v0.models.product_restriction_result_deleted']();
19585
19925
  export const makeProductRestrictionResultUpserted = () => factories['io.flow.v0.models.product_restriction_result_upserted']();
19586
19926
  export const makeProductRestrictionRule = () => factories['io.flow.v0.enums.product_restriction_rule']();
19927
+ export const makeProductSellability = () => factories['io.flow.v0.models.product_sellability']();
19928
+ export const makeProductSellabilityForm = () => factories['io.flow.v0.models.product_sellability_form']();
19929
+ export const makeProductSellabilityPrice = () => factories['io.flow.v0.models.product_sellability_price']();
19587
19930
  export const makeProductTaxonomyCategory = () => factories['io.flow.v0.models.product_taxonomy_category']();
19588
19931
  export const makeProductTaxonomyData = () => factories['io.flow.v0.models.product_taxonomy_data']();
19932
+ export const makeProductUpdated = () => factories['io.flow.v0.models.product_updated']();
19589
19933
  export const makePromotion = () => factories['io.flow.v0.unions.promotion']();
19590
19934
  export const makePromotionTrigger = () => factories['io.flow.v0.models.promotion_trigger']();
19591
19935
  export const makePromotionTriggerForm = () => factories['io.flow.v0.models.promotion_trigger_form']();
@@ -19730,6 +20074,7 @@ export const makeRounding = () => factories['io.flow.v0.models.rounding']();
19730
20074
  export const makeRoundingMethod = () => factories['io.flow.v0.enums.rounding_method']();
19731
20075
  export const makeRoundingType = () => factories['io.flow.v0.enums.rounding_type']();
19732
20076
  export const makeRouteAudit = () => factories['io.flow.v0.models.route_audit']();
20077
+ export const makeRuleEffectType = () => factories['io.flow.v0.enums.rule_effect_type']();
19733
20078
  export const makeSchedule = () => factories['io.flow.v0.models.schedule']();
19734
20079
  export const makeScheduleExceptionStatus = () => factories['io.flow.v0.enums.schedule_exception_status']();
19735
20080
  export const makeScheduledExport = () => factories['io.flow.v0.models.scheduled_export']();
@@ -19739,6 +20084,7 @@ export const makeSdkAdyenV3AuthenticationToken = () => factories['io.flow.v0.uni
19739
20084
  export const makeSecurityRatecardFee = () => factories['io.flow.v0.models.security_ratecard_fee']();
19740
20085
  export const makeSecurityServiceFee = () => factories['io.flow.v0.models.security_service_fee']();
19741
20086
  export const makeSelectIssuerOptionActionDetails = () => factories['io.flow.v0.models.select_issuer_option_action_details']();
20087
+ export const makeSellablilityRegionResult = () => factories['io.flow.v0.models.sellablility_region_result']();
19742
20088
  export const makeServiceDescription = () => factories['io.flow.v0.unions.service_description']();
19743
20089
  export const makeServiceFee = () => factories['io.flow.v0.unions.service_fee']();
19744
20090
  export const makeServiceReference = () => factories['io.flow.v0.models.service_reference']();
@@ -19880,6 +20226,7 @@ export const makeSubcatalogSettingsForm = () => factories['io.flow.v0.models.sub
19880
20226
  export const makeSubcatalogStatistics = () => factories['io.flow.v0.models.subcatalog_statistics']();
19881
20227
  export const makeSubcatalogUpserted = () => factories['io.flow.v0.models.subcatalog_upserted']();
19882
20228
  export const makeSubcatalogVersion = () => factories['io.flow.v0.models.subcatalog_version']();
20229
+ export const makeSubstatusCode = () => factories['io.flow.v0.enums.substatus_code']();
19883
20230
  export const makeSuggestion = () => factories['io.flow.v0.models.suggestion']();
19884
20231
  export const makeSummaryShippingLabelForm = () => factories['io.flow.v0.models.summary_shipping_label_form']();
19885
20232
  export const makeSummaryShippingNotificationForm = () => factories['io.flow.v0.models.summary_shipping_notification_form']();