@flowio/api-factories 0.0.99 → 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/dist/cjs/api.js +584 -87
- package/dist/esm/api.js +529 -49
- package/dist/types/api.d.ts +21 -4
- package/package.json +2 -2
- package/src/api.ts +614 -53
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 => ({
|
|
@@ -5700,6 +5908,201 @@ const factories = {
|
|
|
5700
5908
|
return f();
|
|
5701
5909
|
},
|
|
5702
5910
|
|
|
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']),
|
|
5913
|
+
|
|
5914
|
+
'io.flow.tech.onboarding.playground.v0.models.aldo_item': (): io.flow.tech.onboarding.playground.v0.models.AldoItem => ({
|
|
5915
|
+
id: factories.string(),
|
|
5916
|
+
number: factories.string(),
|
|
5917
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
5918
|
+
description: factories.string(),
|
|
5919
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.aldo_item_type'](),
|
|
5920
|
+
added_on: factories.date_iso_8601(),
|
|
5921
|
+
}),
|
|
5922
|
+
|
|
5923
|
+
'io.flow.tech.onboarding.playground.v0.models.aldo_item_form': (): io.flow.tech.onboarding.playground.v0.models.AldoItemForm => ({
|
|
5924
|
+
number: factories.string(),
|
|
5925
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
5926
|
+
description: factories.string(),
|
|
5927
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.aldo_item_type'](),
|
|
5928
|
+
added_on: factories.date_iso_8601(),
|
|
5929
|
+
}),
|
|
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
|
+
|
|
5948
|
+
'io.flow.tech.onboarding.playground.v0.models.jean_demo_item': (): io.flow.tech.onboarding.playground.v0.models.JeanDemoItem => ({
|
|
5949
|
+
id: factories.string(),
|
|
5950
|
+
name: factories.string(),
|
|
5951
|
+
}),
|
|
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
|
+
|
|
5960
|
+
'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': (): io.flow.tech.onboarding.playground.v0.models.TechOnboardingDescription => ({
|
|
5961
|
+
description: factories.string(),
|
|
5962
|
+
}),
|
|
5963
|
+
|
|
5964
|
+
'io.flow.token.v0.models.channel_token': (): io.flow.token.v0.models.ChannelToken => ({
|
|
5965
|
+
discriminator: 'channel_token',
|
|
5966
|
+
id: factories.string(),
|
|
5967
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
5968
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5969
|
+
partial: factories.string(),
|
|
5970
|
+
cleartext: factories.string(),
|
|
5971
|
+
created_at: factories.date_time_iso_8601(),
|
|
5972
|
+
description: factories.string(),
|
|
5973
|
+
}),
|
|
5974
|
+
|
|
5975
|
+
'io.flow.token.v0.models.channel_token_form': (): io.flow.token.v0.models.ChannelTokenForm => ({
|
|
5976
|
+
channel_id: factories.string(),
|
|
5977
|
+
description: factories.string(),
|
|
5978
|
+
}),
|
|
5979
|
+
|
|
5980
|
+
'io.flow.token.v0.models.channel_token_reference': (): io.flow.token.v0.models.ChannelTokenReference => ({
|
|
5981
|
+
discriminator: 'channel_token_reference',
|
|
5982
|
+
id: factories.string(),
|
|
5983
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
5984
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5985
|
+
}),
|
|
5986
|
+
|
|
5987
|
+
'io.flow.token.v0.models.cleartext': (): io.flow.token.v0.models.Cleartext => ({
|
|
5988
|
+
value: factories.string(),
|
|
5989
|
+
}),
|
|
5990
|
+
|
|
5991
|
+
'io.flow.token.v0.models.organization_token': (): io.flow.token.v0.models.OrganizationToken => ({
|
|
5992
|
+
discriminator: 'organization_token',
|
|
5993
|
+
id: factories.string(),
|
|
5994
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
5995
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5996
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5997
|
+
partial: factories.string(),
|
|
5998
|
+
created_at: factories.date_time_iso_8601(),
|
|
5999
|
+
description: factories.string(),
|
|
6000
|
+
}),
|
|
6001
|
+
|
|
6002
|
+
'io.flow.token.v0.models.organization_token_form': (): io.flow.token.v0.models.OrganizationTokenForm => ({
|
|
6003
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
6004
|
+
description: factories.string(),
|
|
6005
|
+
}),
|
|
6006
|
+
|
|
6007
|
+
'io.flow.token.v0.models.organization_token_form_v2': (): io.flow.token.v0.models.OrganizationTokenFormV2 => ({
|
|
6008
|
+
organization_id: factories.string(),
|
|
6009
|
+
description: factories.string(),
|
|
6010
|
+
}),
|
|
6011
|
+
|
|
6012
|
+
'io.flow.token.v0.models.organization_token_reference': (): io.flow.token.v0.models.OrganizationTokenReference => ({
|
|
6013
|
+
discriminator: 'organization_token_reference',
|
|
6014
|
+
id: factories.string(),
|
|
6015
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
6016
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
6017
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
6018
|
+
}),
|
|
6019
|
+
|
|
6020
|
+
'io.flow.token.v0.models.organization_token_v2': (): io.flow.token.v0.models.OrganizationTokenV2 => ({
|
|
6021
|
+
discriminator: 'organization_token_v2',
|
|
6022
|
+
id: factories.string(),
|
|
6023
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
6024
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
6025
|
+
partial: factories.string(),
|
|
6026
|
+
cleartext: factories.string(),
|
|
6027
|
+
created_at: factories.date_time_iso_8601(),
|
|
6028
|
+
description: factories.string(),
|
|
6029
|
+
}),
|
|
6030
|
+
|
|
6031
|
+
'io.flow.token.v0.models.organization_token_v2_reference': (): io.flow.token.v0.models.OrganizationTokenV2Reference => ({
|
|
6032
|
+
discriminator: 'organization_token_v2_reference',
|
|
6033
|
+
id: factories.string(),
|
|
6034
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
6035
|
+
}),
|
|
6036
|
+
|
|
6037
|
+
'io.flow.token.v0.models.partner_token': (): io.flow.token.v0.models.PartnerToken => ({
|
|
6038
|
+
discriminator: 'partner_token',
|
|
6039
|
+
id: factories.string(),
|
|
6040
|
+
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
6041
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
6042
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
6043
|
+
partial: factories.string(),
|
|
6044
|
+
created_at: factories.date_time_iso_8601(),
|
|
6045
|
+
description: factories.string(),
|
|
6046
|
+
}),
|
|
6047
|
+
|
|
6048
|
+
'io.flow.token.v0.models.partner_token_form': (): io.flow.token.v0.models.PartnerTokenForm => ({
|
|
6049
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
6050
|
+
description: factories.string(),
|
|
6051
|
+
}),
|
|
6052
|
+
|
|
6053
|
+
'io.flow.token.v0.models.partner_token_reference': (): io.flow.token.v0.models.PartnerTokenReference => ({
|
|
6054
|
+
discriminator: 'partner_token_reference',
|
|
6055
|
+
id: factories.string(),
|
|
6056
|
+
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
6057
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
6058
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
6059
|
+
}),
|
|
6060
|
+
|
|
6061
|
+
'io.flow.token.v0.models.token_authentication_form': (): io.flow.token.v0.models.TokenAuthenticationForm => ({
|
|
6062
|
+
token: factories.string(),
|
|
6063
|
+
}),
|
|
6064
|
+
|
|
6065
|
+
'io.flow.token.v0.models.token_partner_reference': (): io.flow.token.v0.models.TokenPartnerReference => ({
|
|
6066
|
+
id: factories.string(),
|
|
6067
|
+
}),
|
|
6068
|
+
|
|
6069
|
+
'io.flow.token.v0.models.token_rbac_authentication_form': (): io.flow.token.v0.models.TokenRbacAuthenticationForm => ({
|
|
6070
|
+
token: factories.string(),
|
|
6071
|
+
method: factories.string(),
|
|
6072
|
+
path_pattern: factories.string(),
|
|
6073
|
+
path: factories.string(),
|
|
6074
|
+
}),
|
|
6075
|
+
|
|
6076
|
+
'io.flow.token.v0.models.token_validation': (): io.flow.token.v0.models.TokenValidation => ({
|
|
6077
|
+
status: factories.string(),
|
|
6078
|
+
}),
|
|
6079
|
+
|
|
6080
|
+
'io.flow.token.v0.models.token_validation_form': (): io.flow.token.v0.models.TokenValidationForm => ({
|
|
6081
|
+
token: factories.string(),
|
|
6082
|
+
}),
|
|
6083
|
+
|
|
6084
|
+
'io.flow.token.v0.unions.token': (): io.flow.token.v0.unions.Token => {
|
|
6085
|
+
const f = faker.helpers.arrayElement([
|
|
6086
|
+
() => factories['io.flow.token.v0.models.channel_token'](),
|
|
6087
|
+
() => factories['io.flow.token.v0.models.organization_token'](),
|
|
6088
|
+
() => factories['io.flow.token.v0.models.organization_token_v2'](),
|
|
6089
|
+
() => factories['io.flow.token.v0.models.partner_token'](),
|
|
6090
|
+
]);
|
|
6091
|
+
|
|
6092
|
+
return f();
|
|
6093
|
+
},
|
|
6094
|
+
|
|
6095
|
+
'io.flow.token.v0.unions.token_reference': (): io.flow.token.v0.unions.TokenReference => {
|
|
6096
|
+
const f = faker.helpers.arrayElement([
|
|
6097
|
+
() => factories['io.flow.token.v0.models.channel_token_reference'](),
|
|
6098
|
+
() => factories['io.flow.token.v0.models.organization_token_reference'](),
|
|
6099
|
+
() => factories['io.flow.token.v0.models.organization_token_v2_reference'](),
|
|
6100
|
+
() => factories['io.flow.token.v0.models.partner_token_reference'](),
|
|
6101
|
+
]);
|
|
6102
|
+
|
|
6103
|
+
return f();
|
|
6104
|
+
},
|
|
6105
|
+
|
|
5703
6106
|
'io.flow.v0.enums.abandoned_order_promotion_status': (): io.flow.v0.enums.AbandonedOrderPromotionStatus => faker.helpers.arrayElement(['active', 'inactive']),
|
|
5704
6107
|
'io.flow.v0.enums.abandoned_order_setting_status': (): io.flow.v0.enums.AbandonedOrderSettingStatus => faker.helpers.arrayElement(['active', 'inactive']),
|
|
5705
6108
|
|
|
@@ -5829,6 +6232,7 @@ const factories = {
|
|
|
5829
6232
|
'io.flow.v0.enums.center_capability': (): io.flow.v0.enums.CenterCapability => faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']),
|
|
5830
6233
|
'io.flow.v0.enums.change_type': (): io.flow.v0.enums.ChangeType => faker.helpers.arrayElement(['insert', 'update', 'delete']),
|
|
5831
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']),
|
|
5832
6236
|
'io.flow.v0.enums.consumer_invoice_customer_type': (): io.flow.v0.enums.ConsumerInvoiceCustomerType => faker.helpers.arrayElement(['business_eu_verified', 'business_non_verified', 'individual']),
|
|
5833
6237
|
'io.flow.v0.enums.consumer_invoice_document_type': (): io.flow.v0.enums.ConsumerInvoiceDocumentType => faker.helpers.arrayElement(['pdf']),
|
|
5834
6238
|
'io.flow.v0.enums.consumer_invoice_status': (): io.flow.v0.enums.ConsumerInvoiceStatus => faker.helpers.arrayElement(['pending', 'available', 'invalid']),
|
|
@@ -5907,6 +6311,8 @@ const factories = {
|
|
|
5907
6311
|
'io.flow.v0.enums.event_type': (): io.flow.v0.enums.EventType => faker.helpers.arrayElement([
|
|
5908
6312
|
'test_upserted',
|
|
5909
6313
|
'generate_load',
|
|
6314
|
+
'aldo_item_upserted',
|
|
6315
|
+
'aldo_item_deleted',
|
|
5910
6316
|
'transaction_upserted',
|
|
5911
6317
|
'organization_transaction_upserted',
|
|
5912
6318
|
'organization_transaction_deleted',
|
|
@@ -5933,10 +6339,6 @@ const factories = {
|
|
|
5933
6339
|
'catalog_deleted',
|
|
5934
6340
|
'subcatalog_upserted',
|
|
5935
6341
|
'subcatalog_deleted',
|
|
5936
|
-
'catalog_item_upserted',
|
|
5937
|
-
'catalog_item_deleted',
|
|
5938
|
-
'catalog_item_upserted_v2',
|
|
5939
|
-
'catalog_item_deleted_v2',
|
|
5940
6342
|
'subcatalog_item_upserted',
|
|
5941
6343
|
'subcatalog_item_deleted',
|
|
5942
6344
|
'catalog_statistics_upserted',
|
|
@@ -5944,6 +6346,8 @@ const factories = {
|
|
|
5944
6346
|
'item_inserted',
|
|
5945
6347
|
'item_updated',
|
|
5946
6348
|
'item_deleted',
|
|
6349
|
+
'channel_shopify_order_state_upserted',
|
|
6350
|
+
'channel_shopify_order_state_deleted',
|
|
5947
6351
|
'channel_upserted',
|
|
5948
6352
|
'channel_deleted',
|
|
5949
6353
|
'channel_currency_upserted',
|
|
@@ -6092,6 +6496,9 @@ const factories = {
|
|
|
6092
6496
|
'price_book_deleted',
|
|
6093
6497
|
'price_book_item_upserted',
|
|
6094
6498
|
'price_book_item_deleted',
|
|
6499
|
+
'product_inserted',
|
|
6500
|
+
'product_updated',
|
|
6501
|
+
'product_deleted',
|
|
6095
6502
|
'organization_rates_published',
|
|
6096
6503
|
'ratecard_lane_upserted',
|
|
6097
6504
|
'ratecard_lane_deleted',
|
|
@@ -6649,6 +7056,7 @@ const factories = {
|
|
|
6649
7056
|
'io.flow.v0.enums.role': (): io.flow.v0.enums.Role => faker.helpers.arrayElement(['admin', 'member']),
|
|
6650
7057
|
'io.flow.v0.enums.rounding_method': (): io.flow.v0.enums.RoundingMethod => faker.helpers.arrayElement(['up', 'down', 'nearest']),
|
|
6651
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']),
|
|
6652
7060
|
'io.flow.v0.enums.schedule_exception_status': (): io.flow.v0.enums.ScheduleExceptionStatus => faker.helpers.arrayElement(['Open', 'Closed']),
|
|
6653
7061
|
'io.flow.v0.enums.shipment_integration_type': (): io.flow.v0.enums.ShipmentIntegrationType => faker.helpers.arrayElement(['direct', 'information', 'preadvice']),
|
|
6654
7062
|
'io.flow.v0.enums.shipment_recipient': (): io.flow.v0.enums.ShipmentRecipient => faker.helpers.arrayElement(['customer', 'return', 'crossdock']),
|
|
@@ -6677,6 +7085,51 @@ const factories = {
|
|
|
6677
7085
|
'io.flow.v0.enums.stored_method_usage_step': (): io.flow.v0.enums.StoredMethodUsageStep => faker.helpers.arrayElement(['initial', 'subsequent']),
|
|
6678
7086
|
'io.flow.v0.enums.strategy': (): io.flow.v0.enums.Strategy => faker.helpers.arrayElement(['range', 'from', 'to']),
|
|
6679
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
|
+
|
|
6680
7133
|
'io.flow.v0.enums.surcharge_responsible_party': (): io.flow.v0.enums.SurchargeResponsibleParty => faker.helpers.arrayElement(['organization', 'customer']),
|
|
6681
7134
|
'io.flow.v0.enums.sync_record_failure_reason': (): io.flow.v0.enums.SyncRecordFailureReason => faker.helpers.arrayElement(['inventory', 'address', 'promotion', 'other']),
|
|
6682
7135
|
'io.flow.v0.enums.sync_stream_type': (): io.flow.v0.enums.SyncStreamType => faker.helpers.arrayElement(['submitted_order', 'placed_order']),
|
|
@@ -6738,6 +7191,9 @@ const factories = {
|
|
|
6738
7191
|
'virtual_card_refund',
|
|
6739
7192
|
'failed_payout',
|
|
6740
7193
|
'tax_refund',
|
|
7194
|
+
'order_fx',
|
|
7195
|
+
'ge_revenue_share',
|
|
7196
|
+
'tax_duty_delta',
|
|
6741
7197
|
]),
|
|
6742
7198
|
|
|
6743
7199
|
'io.flow.v0.enums.trueup_source': (): io.flow.v0.enums.TrueupSource => faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl', 'ups']),
|
|
@@ -7106,6 +7562,20 @@ const factories = {
|
|
|
7106
7562
|
fingerprint_token: factories.string(),
|
|
7107
7563
|
}),
|
|
7108
7564
|
|
|
7565
|
+
'io.flow.v0.models.aldo_item_deleted': (): io.flow.v0.models.AldoItemDeleted => ({
|
|
7566
|
+
discriminator: 'aldo_item_deleted',
|
|
7567
|
+
event_id: factories.string(),
|
|
7568
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7569
|
+
id: factories.string(),
|
|
7570
|
+
}),
|
|
7571
|
+
|
|
7572
|
+
'io.flow.v0.models.aldo_item_upserted': (): io.flow.v0.models.AldoItemUpserted => ({
|
|
7573
|
+
discriminator: 'aldo_item_upserted',
|
|
7574
|
+
event_id: factories.string(),
|
|
7575
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7576
|
+
item: factories['io.flow.tech.onboarding.playground.v0.models.aldo_item'](),
|
|
7577
|
+
}),
|
|
7578
|
+
|
|
7109
7579
|
'io.flow.v0.models.allocation': (): io.flow.v0.models.Allocation => ({
|
|
7110
7580
|
order: factories['io.flow.v0.models.allocation_order_summary'](),
|
|
7111
7581
|
details: arrayOf(() => factories['io.flow.v0.unions.allocation_detail']()),
|
|
@@ -8012,6 +8482,11 @@ const factories = {
|
|
|
8012
8482
|
id: factories.string(),
|
|
8013
8483
|
}),
|
|
8014
8484
|
|
|
8485
|
+
'io.flow.v0.models.carrier_restrictions': (): io.flow.v0.models.CarrierRestrictions => ({
|
|
8486
|
+
carrier: factories.string(),
|
|
8487
|
+
regions: arrayOf(() => factories.string()),
|
|
8488
|
+
}),
|
|
8489
|
+
|
|
8015
8490
|
'io.flow.v0.models.carrier_service': (): io.flow.v0.models.CarrierService => ({
|
|
8016
8491
|
id: factories.string(),
|
|
8017
8492
|
carrier: factories['io.flow.v0.models.carrier'](),
|
|
@@ -8033,22 +8508,6 @@ const factories = {
|
|
|
8033
8508
|
organization: factories.string(),
|
|
8034
8509
|
}),
|
|
8035
8510
|
|
|
8036
|
-
'io.flow.v0.models.catalog_item_deleted': (): io.flow.v0.models.CatalogItemDeleted => ({
|
|
8037
|
-
discriminator: 'catalog_item_deleted',
|
|
8038
|
-
event_id: factories.string(),
|
|
8039
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8040
|
-
organization: factories.string(),
|
|
8041
|
-
number: factories.string(),
|
|
8042
|
-
}),
|
|
8043
|
-
|
|
8044
|
-
'io.flow.v0.models.catalog_item_deleted_v2': (): io.flow.v0.models.CatalogItemDeletedV2 => ({
|
|
8045
|
-
discriminator: 'catalog_item_deleted_v2',
|
|
8046
|
-
event_id: factories.string(),
|
|
8047
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8048
|
-
organization: factories.string(),
|
|
8049
|
-
item: factories['io.flow.v0.models.item'](),
|
|
8050
|
-
}),
|
|
8051
|
-
|
|
8052
8511
|
'io.flow.v0.models.catalog_item_document': (): io.flow.v0.models.CatalogItemDocument => ({
|
|
8053
8512
|
discriminator: 'catalog_item_document',
|
|
8054
8513
|
number: factories.string(),
|
|
@@ -8081,31 +8540,6 @@ const factories = {
|
|
|
8081
8540
|
attributes: objectOf(() => factories.string()),
|
|
8082
8541
|
}),
|
|
8083
8542
|
|
|
8084
|
-
'io.flow.v0.models.catalog_item_upserted': (): io.flow.v0.models.CatalogItemUpserted => ({
|
|
8085
|
-
discriminator: 'catalog_item_upserted',
|
|
8086
|
-
event_id: factories.string(),
|
|
8087
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8088
|
-
organization: factories.string(),
|
|
8089
|
-
number: factories.string(),
|
|
8090
|
-
locale: factories.string(),
|
|
8091
|
-
name: factories.string(),
|
|
8092
|
-
currency: factories.string(),
|
|
8093
|
-
price: factories.double(),
|
|
8094
|
-
categories: arrayOf(() => factories.string()),
|
|
8095
|
-
description: factories.string(),
|
|
8096
|
-
attributes: objectOf(() => factories.string()),
|
|
8097
|
-
dimensions: factories.object(),
|
|
8098
|
-
images: arrayOf(() => factories.object()),
|
|
8099
|
-
}),
|
|
8100
|
-
|
|
8101
|
-
'io.flow.v0.models.catalog_item_upserted_v2': (): io.flow.v0.models.CatalogItemUpsertedV2 => ({
|
|
8102
|
-
discriminator: 'catalog_item_upserted_v2',
|
|
8103
|
-
event_id: factories.string(),
|
|
8104
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8105
|
-
organization: factories.string(),
|
|
8106
|
-
item: factories['io.flow.v0.models.item'](),
|
|
8107
|
-
}),
|
|
8108
|
-
|
|
8109
8543
|
'io.flow.v0.models.catalog_price_book_item_document': (): io.flow.v0.models.CatalogPriceBookItemDocument => ({
|
|
8110
8544
|
price_book_key: factories.string(),
|
|
8111
8545
|
price_book_item_key: factories.string(),
|
|
@@ -8401,6 +8835,39 @@ const factories = {
|
|
|
8401
8835
|
id: factories.string(),
|
|
8402
8836
|
}),
|
|
8403
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
|
+
|
|
8404
8871
|
'io.flow.v0.models.channel_statement': (): io.flow.v0.models.ChannelStatement => ({
|
|
8405
8872
|
id: factories.string(),
|
|
8406
8873
|
account: factories['io.flow.v0.models.account_reference'](),
|
|
@@ -9398,12 +9865,14 @@ const factories = {
|
|
|
9398
9865
|
q: factories.string(),
|
|
9399
9866
|
dimensions: factories['io.flow.v0.models.estimated_dimensions'](),
|
|
9400
9867
|
position: factories.long(),
|
|
9868
|
+
block_bulk_update: factories.boolean(),
|
|
9401
9869
|
}),
|
|
9402
9870
|
|
|
9403
9871
|
'io.flow.v0.models.dimension_estimate_form': (): io.flow.v0.models.DimensionEstimateForm => ({
|
|
9404
9872
|
q: factories.string(),
|
|
9405
9873
|
dimensions: factories['io.flow.v0.models.estimated_dimensions'](),
|
|
9406
9874
|
position: factories.long(),
|
|
9875
|
+
block_bulk_update: factories.boolean(),
|
|
9407
9876
|
}),
|
|
9408
9877
|
|
|
9409
9878
|
'io.flow.v0.models.dimension_estimate_version': (): io.flow.v0.models.DimensionEstimateVersion => ({
|
|
@@ -14079,6 +14548,32 @@ const factories = {
|
|
|
14079
14548
|
source: factories['io.flow.v0.enums.delivery_window_component_source'](),
|
|
14080
14549
|
}),
|
|
14081
14550
|
|
|
14551
|
+
'io.flow.v0.models.product': (): io.flow.v0.models.Product => ({
|
|
14552
|
+
organization_id: factories.string(),
|
|
14553
|
+
number: factories.string(),
|
|
14554
|
+
taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
|
|
14555
|
+
taxonomy_data: arrayOf(() => factories['io.flow.v0.models.product_taxonomy_data']()),
|
|
14556
|
+
item_numbers: arrayOf(() => factories.string()),
|
|
14557
|
+
updated_at: factories.date_time_iso_8601(),
|
|
14558
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
14559
|
+
}),
|
|
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
|
+
|
|
14082
14577
|
'io.flow.v0.models.product_restriction_result': (): io.flow.v0.models.ProductRestrictionResult => ({
|
|
14083
14578
|
id: factories.string(),
|
|
14084
14579
|
product_id: factories.string(),
|
|
@@ -14108,6 +14603,47 @@ const factories = {
|
|
|
14108
14603
|
product_restriction_result: factories['io.flow.v0.models.product_restriction_result'](),
|
|
14109
14604
|
}),
|
|
14110
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
|
+
|
|
14629
|
+
'io.flow.v0.models.product_taxonomy_category': (): io.flow.v0.models.ProductTaxonomyCategory => ({
|
|
14630
|
+
name: factories.string(),
|
|
14631
|
+
full_name: factories.string(),
|
|
14632
|
+
}),
|
|
14633
|
+
|
|
14634
|
+
'io.flow.v0.models.product_taxonomy_data': (): io.flow.v0.models.ProductTaxonomyData => ({
|
|
14635
|
+
key: factories.string(),
|
|
14636
|
+
value: arrayOf(() => factories.string()),
|
|
14637
|
+
}),
|
|
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
|
+
|
|
14111
14647
|
'io.flow.v0.models.promotion_trigger': (): io.flow.v0.models.PromotionTrigger => ({
|
|
14112
14648
|
type: factories['io.flow.v0.enums.promotion_trigger_type'](),
|
|
14113
14649
|
min: factories['io.flow.v0.models.price'](),
|
|
@@ -15053,6 +15589,11 @@ const factories = {
|
|
|
15053
15589
|
issuer_options: arrayOf(() => factories['io.flow.v0.models.issuer_reference']()),
|
|
15054
15590
|
}),
|
|
15055
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
|
+
|
|
15056
15597
|
'io.flow.v0.models.service_reference': (): io.flow.v0.models.ServiceReference => ({
|
|
15057
15598
|
id: factories.string(),
|
|
15058
15599
|
}),
|
|
@@ -17161,6 +17702,8 @@ const factories = {
|
|
|
17161
17702
|
const f = faker.helpers.arrayElement([
|
|
17162
17703
|
() => factories['io.flow.v0.models.test_upserted'](),
|
|
17163
17704
|
() => factories['io.flow.v0.models.generate_load'](),
|
|
17705
|
+
() => factories['io.flow.v0.models.aldo_item_upserted'](),
|
|
17706
|
+
() => factories['io.flow.v0.models.aldo_item_deleted'](),
|
|
17164
17707
|
() => factories['io.flow.v0.models.transaction_upserted'](),
|
|
17165
17708
|
() => factories['io.flow.v0.models.organization_transaction_upserted'](),
|
|
17166
17709
|
() => factories['io.flow.v0.models.organization_transaction_deleted'](),
|
|
@@ -17187,10 +17730,6 @@ const factories = {
|
|
|
17187
17730
|
() => factories['io.flow.v0.models.catalog_deleted'](),
|
|
17188
17731
|
() => factories['io.flow.v0.models.subcatalog_upserted'](),
|
|
17189
17732
|
() => factories['io.flow.v0.models.subcatalog_deleted'](),
|
|
17190
|
-
() => factories['io.flow.v0.models.catalog_item_upserted'](),
|
|
17191
|
-
() => factories['io.flow.v0.models.catalog_item_deleted'](),
|
|
17192
|
-
() => factories['io.flow.v0.models.catalog_item_upserted_v2'](),
|
|
17193
|
-
() => factories['io.flow.v0.models.catalog_item_deleted_v2'](),
|
|
17194
17733
|
() => factories['io.flow.v0.models.subcatalog_item_upserted'](),
|
|
17195
17734
|
() => factories['io.flow.v0.models.subcatalog_item_deleted'](),
|
|
17196
17735
|
() => factories['io.flow.v0.models.catalog_statistics_upserted'](),
|
|
@@ -17198,6 +17737,8 @@ const factories = {
|
|
|
17198
17737
|
() => factories['io.flow.v0.models.item_inserted'](),
|
|
17199
17738
|
() => factories['io.flow.v0.models.item_updated'](),
|
|
17200
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'](),
|
|
17201
17742
|
() => factories['io.flow.v0.models.channel_upserted'](),
|
|
17202
17743
|
() => factories['io.flow.v0.models.channel_deleted'](),
|
|
17203
17744
|
() => factories['io.flow.v0.models.channel_currency_upserted'](),
|
|
@@ -17346,6 +17887,9 @@ const factories = {
|
|
|
17346
17887
|
() => factories['io.flow.v0.models.price_book_deleted'](),
|
|
17347
17888
|
() => factories['io.flow.v0.models.price_book_item_upserted'](),
|
|
17348
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'](),
|
|
17349
17893
|
() => factories['io.flow.v0.models.organization_rates_published'](),
|
|
17350
17894
|
() => factories['io.flow.v0.models.ratecard_lane_upserted'](),
|
|
17351
17895
|
() => factories['io.flow.v0.models.ratecard_lane_deleted'](),
|
|
@@ -18171,6 +18715,8 @@ export const makeAdyenNativeActionDetails = () => factories['io.flow.v0.models.a
|
|
|
18171
18715
|
export const makeAdyenNativeData = () => factories['io.flow.v0.unions.adyen_native_data']();
|
|
18172
18716
|
export const makeAdyenV3ChallengeToken = () => factories['io.flow.v0.models.adyen_v3_challenge_token']();
|
|
18173
18717
|
export const makeAdyenV3FingerprintToken = () => factories['io.flow.v0.models.adyen_v3_fingerprint_token']();
|
|
18718
|
+
export const makeAldoItemDeleted = () => factories['io.flow.v0.models.aldo_item_deleted']();
|
|
18719
|
+
export const makeAldoItemUpserted = () => factories['io.flow.v0.models.aldo_item_upserted']();
|
|
18174
18720
|
export const makeAllocation = () => factories['io.flow.v0.models.allocation']();
|
|
18175
18721
|
export const makeAllocationComponent = () => factories['io.flow.v0.unions.allocation_component']();
|
|
18176
18722
|
export const makeAllocationDeletedV2 = () => factories['io.flow.v0.models.allocation_deleted_v2']();
|
|
@@ -18323,19 +18869,16 @@ export const makeCardVersion = () => factories['io.flow.v0.models.card_version']
|
|
|
18323
18869
|
export const makeCarrier = () => factories['io.flow.v0.models.carrier']();
|
|
18324
18870
|
export const makeCarrierChargeReason = () => factories['io.flow.v0.enums.carrier_charge_reason']();
|
|
18325
18871
|
export const makeCarrierReference = () => factories['io.flow.v0.models.carrier_reference']();
|
|
18872
|
+
export const makeCarrierRestrictions = () => factories['io.flow.v0.models.carrier_restrictions']();
|
|
18326
18873
|
export const makeCarrierService = () => factories['io.flow.v0.models.carrier_service']();
|
|
18327
18874
|
export const makeCartReference = () => factories['io.flow.v0.models.cart_reference']();
|
|
18328
18875
|
export const makeCatalog = () => factories['io.flow.v0.models.catalog']();
|
|
18329
18876
|
export const makeCatalogDeleted = () => factories['io.flow.v0.models.catalog_deleted']();
|
|
18330
|
-
export const makeCatalogItemDeleted = () => factories['io.flow.v0.models.catalog_item_deleted']();
|
|
18331
|
-
export const makeCatalogItemDeletedV2 = () => factories['io.flow.v0.models.catalog_item_deleted_v2']();
|
|
18332
18877
|
export const makeCatalogItemDocument = () => factories['io.flow.v0.models.catalog_item_document']();
|
|
18333
18878
|
export const makeCatalogItemDocumentImages = () => factories['io.flow.v0.models.catalog_item_document_images']();
|
|
18334
18879
|
export const makeCatalogItemExportType = () => factories['io.flow.v0.models.catalog_item_export_type']();
|
|
18335
18880
|
export const makeCatalogItemReference = () => factories['io.flow.v0.models.catalog_item_reference']();
|
|
18336
18881
|
export const makeCatalogItemSummary = () => factories['io.flow.v0.models.catalog_item_summary']();
|
|
18337
|
-
export const makeCatalogItemUpserted = () => factories['io.flow.v0.models.catalog_item_upserted']();
|
|
18338
|
-
export const makeCatalogItemUpsertedV2 = () => factories['io.flow.v0.models.catalog_item_upserted_v2']();
|
|
18339
18882
|
export const makeCatalogPriceBookItemDocument = () => factories['io.flow.v0.models.catalog_price_book_item_document']();
|
|
18340
18883
|
export const makeCatalogReference = () => factories['io.flow.v0.models.catalog_reference']();
|
|
18341
18884
|
export const makeCatalogStatistics = () => factories['io.flow.v0.models.catalog_statistics']();
|
|
@@ -18381,6 +18924,12 @@ export const makeChannelPendingPayoutTransactionDeleted = () => factories['io.fl
|
|
|
18381
18924
|
export const makeChannelPendingPayoutTransactionUpserted = () => factories['io.flow.v0.models.channel_pending_payout_transaction_upserted']();
|
|
18382
18925
|
export const makeChannelRate = () => factories['io.flow.v0.models.channel_rate']();
|
|
18383
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']();
|
|
18384
18933
|
export const makeChannelStatement = () => factories['io.flow.v0.models.channel_statement']();
|
|
18385
18934
|
export const makeChannelStatementDeleted = () => factories['io.flow.v0.models.channel_statement_deleted']();
|
|
18386
18935
|
export const makeChannelStatementUpserted = () => factories['io.flow.v0.models.channel_statement_upserted']();
|
|
@@ -19368,10 +19917,19 @@ export const makePricingSettings = () => factories['io.flow.v0.models.pricing_se
|
|
|
19368
19917
|
export const makePricingUpserted = () => factories['io.flow.v0.models.pricing_upserted']();
|
|
19369
19918
|
export const makePricingVersion = () => factories['io.flow.v0.models.pricing_version']();
|
|
19370
19919
|
export const makeProcessingEstimate = () => factories['io.flow.v0.models.processing_estimate']();
|
|
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']();
|
|
19371
19923
|
export const makeProductRestrictionResult = () => factories['io.flow.v0.models.product_restriction_result']();
|
|
19372
19924
|
export const makeProductRestrictionResultDeleted = () => factories['io.flow.v0.models.product_restriction_result_deleted']();
|
|
19373
19925
|
export const makeProductRestrictionResultUpserted = () => factories['io.flow.v0.models.product_restriction_result_upserted']();
|
|
19374
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']();
|
|
19930
|
+
export const makeProductTaxonomyCategory = () => factories['io.flow.v0.models.product_taxonomy_category']();
|
|
19931
|
+
export const makeProductTaxonomyData = () => factories['io.flow.v0.models.product_taxonomy_data']();
|
|
19932
|
+
export const makeProductUpdated = () => factories['io.flow.v0.models.product_updated']();
|
|
19375
19933
|
export const makePromotion = () => factories['io.flow.v0.unions.promotion']();
|
|
19376
19934
|
export const makePromotionTrigger = () => factories['io.flow.v0.models.promotion_trigger']();
|
|
19377
19935
|
export const makePromotionTriggerForm = () => factories['io.flow.v0.models.promotion_trigger_form']();
|
|
@@ -19516,6 +20074,7 @@ export const makeRounding = () => factories['io.flow.v0.models.rounding']();
|
|
|
19516
20074
|
export const makeRoundingMethod = () => factories['io.flow.v0.enums.rounding_method']();
|
|
19517
20075
|
export const makeRoundingType = () => factories['io.flow.v0.enums.rounding_type']();
|
|
19518
20076
|
export const makeRouteAudit = () => factories['io.flow.v0.models.route_audit']();
|
|
20077
|
+
export const makeRuleEffectType = () => factories['io.flow.v0.enums.rule_effect_type']();
|
|
19519
20078
|
export const makeSchedule = () => factories['io.flow.v0.models.schedule']();
|
|
19520
20079
|
export const makeScheduleExceptionStatus = () => factories['io.flow.v0.enums.schedule_exception_status']();
|
|
19521
20080
|
export const makeScheduledExport = () => factories['io.flow.v0.models.scheduled_export']();
|
|
@@ -19525,6 +20084,7 @@ export const makeSdkAdyenV3AuthenticationToken = () => factories['io.flow.v0.uni
|
|
|
19525
20084
|
export const makeSecurityRatecardFee = () => factories['io.flow.v0.models.security_ratecard_fee']();
|
|
19526
20085
|
export const makeSecurityServiceFee = () => factories['io.flow.v0.models.security_service_fee']();
|
|
19527
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']();
|
|
19528
20088
|
export const makeServiceDescription = () => factories['io.flow.v0.unions.service_description']();
|
|
19529
20089
|
export const makeServiceFee = () => factories['io.flow.v0.unions.service_fee']();
|
|
19530
20090
|
export const makeServiceReference = () => factories['io.flow.v0.models.service_reference']();
|
|
@@ -19666,6 +20226,7 @@ export const makeSubcatalogSettingsForm = () => factories['io.flow.v0.models.sub
|
|
|
19666
20226
|
export const makeSubcatalogStatistics = () => factories['io.flow.v0.models.subcatalog_statistics']();
|
|
19667
20227
|
export const makeSubcatalogUpserted = () => factories['io.flow.v0.models.subcatalog_upserted']();
|
|
19668
20228
|
export const makeSubcatalogVersion = () => factories['io.flow.v0.models.subcatalog_version']();
|
|
20229
|
+
export const makeSubstatusCode = () => factories['io.flow.v0.enums.substatus_code']();
|
|
19669
20230
|
export const makeSuggestion = () => factories['io.flow.v0.models.suggestion']();
|
|
19670
20231
|
export const makeSummaryShippingLabelForm = () => factories['io.flow.v0.models.summary_shipping_label_form']();
|
|
19671
20232
|
export const makeSummaryShippingNotificationForm = () => factories['io.flow.v0.models.summary_shipping_notification_form']();
|