@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/dist/esm/api.js
CHANGED
|
@@ -398,6 +398,151 @@ var factories = {
|
|
|
398
398
|
]);
|
|
399
399
|
return f();
|
|
400
400
|
},
|
|
401
|
+
'io.flow.channel.internal.v0.enums.channel_order_acceptance_error_action': function () { return faker.helpers.arrayElement(['auto_reject', 'auto_accept']); },
|
|
402
|
+
'io.flow.channel.internal.v0.enums.channel_order_acceptance_failure_reason_code': function () { return faker.helpers.arrayElement(['channel_order_mor_invalid', 'channel_order_does_not_exist']); },
|
|
403
|
+
'io.flow.channel.internal.v0.enums.channel_order_acceptance_next_action_from': function () { return faker.helpers.arrayElement([
|
|
404
|
+
'cx_team',
|
|
405
|
+
'core_team',
|
|
406
|
+
'core_team_investigate',
|
|
407
|
+
'mex_team',
|
|
408
|
+
'payments_team',
|
|
409
|
+
'tc_team',
|
|
410
|
+
'logistics_team',
|
|
411
|
+
]); },
|
|
412
|
+
'io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason': function () { return faker.helpers.arrayElement([
|
|
413
|
+
'unsupported_origin_country',
|
|
414
|
+
'unsupported_destination_country',
|
|
415
|
+
'domestic_order',
|
|
416
|
+
'order_contains_gift_card',
|
|
417
|
+
'order_contains_restricted_goods',
|
|
418
|
+
'missing_order_information',
|
|
419
|
+
'missing_classification_information',
|
|
420
|
+
'unsupported_payment_information',
|
|
421
|
+
'unsupported_shop_currency',
|
|
422
|
+
'unsupported_free_order',
|
|
423
|
+
'extracting_distribution_info_failed',
|
|
424
|
+
'shipping_estimation_failed',
|
|
425
|
+
'payment_authorization_failed',
|
|
426
|
+
'unsupported_subsidized_order',
|
|
427
|
+
'unsupported_virtual_goods',
|
|
428
|
+
'non_matching_currencies',
|
|
429
|
+
'unsupported_order_edit',
|
|
430
|
+
'order_missing',
|
|
431
|
+
]); },
|
|
432
|
+
'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': function () { return faker.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']); },
|
|
433
|
+
'io.flow.channel.internal.v0.models.channel_currency_form': function () { return ({
|
|
434
|
+
currency: factories.string(),
|
|
435
|
+
channel_id: factories.string(),
|
|
436
|
+
capabilities: arrayOf(function () { return factories['io.flow.channel.v0.enums.channel_currency_capability'](); }),
|
|
437
|
+
}); },
|
|
438
|
+
'io.flow.channel.internal.v0.models.channel_form': function () { return ({
|
|
439
|
+
name: factories.string(),
|
|
440
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
441
|
+
organization_id_prefix: factories.string(),
|
|
442
|
+
}); },
|
|
443
|
+
'io.flow.channel.internal.v0.models.channel_membership': function () { return ({
|
|
444
|
+
id: factories.string(),
|
|
445
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
446
|
+
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
447
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
448
|
+
}); },
|
|
449
|
+
'io.flow.channel.internal.v0.models.channel_membership_form': function () { return ({
|
|
450
|
+
channel_id: factories.string(),
|
|
451
|
+
user_id: factories.string(),
|
|
452
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
453
|
+
}); },
|
|
454
|
+
'io.flow.channel.internal.v0.models.channel_membership_put_form': function () { return ({
|
|
455
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
456
|
+
}); },
|
|
457
|
+
'io.flow.channel.internal.v0.models.channel_order_acceptance': function () { return ({
|
|
458
|
+
id: factories.string(),
|
|
459
|
+
organization_id: factories.string(),
|
|
460
|
+
order_number: factories.string(),
|
|
461
|
+
channel_id: factories.string(),
|
|
462
|
+
external_order_reference: factories.string(),
|
|
463
|
+
payment_request_id: factories.string(),
|
|
464
|
+
order_edit_payment_request_ids: arrayOf(function () { return factories.string(); }),
|
|
465
|
+
status: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_status'](),
|
|
466
|
+
reasons: arrayOf(function () { return factories['io.flow.channel.internal.v0.models.channel_order_acceptance_reason'](); }),
|
|
467
|
+
next_action_from: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_next_action_from'](),
|
|
468
|
+
order_created_at: factories.date_time_iso_8601(),
|
|
469
|
+
order_updated_at: factories.date_time_iso_8601(),
|
|
470
|
+
order_edit_summary: factories['io.flow.channel.internal.v0.models.order_edit_summary'](),
|
|
471
|
+
}); },
|
|
472
|
+
'io.flow.channel.internal.v0.models.channel_order_acceptance_details': function () { return ({
|
|
473
|
+
order_acceptance: factories['io.flow.channel.internal.v0.models.channel_order_acceptance'](),
|
|
474
|
+
external_order: factories.object(),
|
|
475
|
+
}); },
|
|
476
|
+
'io.flow.channel.internal.v0.models.channel_order_acceptance_failure': function () { return ({
|
|
477
|
+
id: factories.string(),
|
|
478
|
+
organization_id: factories.string(),
|
|
479
|
+
channel_id: factories.string(),
|
|
480
|
+
payment_request_id: factories.string(),
|
|
481
|
+
code: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_failure_reason_code'](),
|
|
482
|
+
reason: factories.string(),
|
|
483
|
+
}); },
|
|
484
|
+
'io.flow.channel.internal.v0.models.channel_order_acceptance_form': function () { return ({
|
|
485
|
+
status: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_status'](),
|
|
486
|
+
}); },
|
|
487
|
+
'io.flow.channel.internal.v0.models.channel_order_acceptance_reason': function () { return ({
|
|
488
|
+
description: factories.string(),
|
|
489
|
+
rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
|
|
490
|
+
}); },
|
|
491
|
+
'io.flow.channel.internal.v0.models.flow_channel_organization': function () { return ({
|
|
492
|
+
placeholder: factories.string(),
|
|
493
|
+
}); },
|
|
494
|
+
'io.flow.channel.internal.v0.models.order_edit_summary': function () { return ({
|
|
495
|
+
edited_at: factories.date_time_iso_8601(),
|
|
496
|
+
}); },
|
|
497
|
+
'io.flow.channel.v0.enums.channel_currency_capability': function () { return faker.helpers.arrayElement(['payment_authorizations', 'settlement_currency']); },
|
|
498
|
+
'io.flow.channel.v0.models.channel': function () { return ({
|
|
499
|
+
id: factories.string(),
|
|
500
|
+
name: factories.string(),
|
|
501
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
502
|
+
organization_id_prefix: factories.string(),
|
|
503
|
+
}); },
|
|
504
|
+
'io.flow.channel.v0.models.channel_authorization': function () { return ({
|
|
505
|
+
placeholder: factories.string(),
|
|
506
|
+
}); },
|
|
507
|
+
'io.flow.channel.v0.models.channel_authorization_form': function () { return ({
|
|
508
|
+
channel_id: factories.string(),
|
|
509
|
+
}); },
|
|
510
|
+
'io.flow.channel.v0.models.channel_currency': function () { return ({
|
|
511
|
+
id: factories.string(),
|
|
512
|
+
currency: factories.string(),
|
|
513
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
514
|
+
capabilities: arrayOf(function () { return factories['io.flow.channel.v0.enums.channel_currency_capability'](); }),
|
|
515
|
+
}); },
|
|
516
|
+
'io.flow.channel.v0.models.channel_organization': function () { return ({
|
|
517
|
+
id: factories.string(),
|
|
518
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
519
|
+
key: factories.string(),
|
|
520
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
521
|
+
name: factories.string(),
|
|
522
|
+
slug: factories.string(),
|
|
523
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
524
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
525
|
+
}); },
|
|
526
|
+
'io.flow.channel.v0.models.channel_organization_authorization': function () { return ({
|
|
527
|
+
placeholder: factories.string(),
|
|
528
|
+
}); },
|
|
529
|
+
'io.flow.channel.v0.models.channel_organization_authorization_form': function () { return ({
|
|
530
|
+
channel_id: factories.string(),
|
|
531
|
+
organization_id: factories.string(),
|
|
532
|
+
}); },
|
|
533
|
+
'io.flow.channel.v0.models.channel_organization_form': function () { return ({
|
|
534
|
+
key: factories.string(),
|
|
535
|
+
name: factories.string(),
|
|
536
|
+
slug: factories.string(),
|
|
537
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
538
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
539
|
+
}); },
|
|
540
|
+
'io.flow.channel.v0.models.channel_organization_put_form': function () { return ({
|
|
541
|
+
name: factories.string(),
|
|
542
|
+
slug: factories.string(),
|
|
543
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
544
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
545
|
+
}); },
|
|
401
546
|
'io.flow.common.v0.enums.attribute_data_type': function () { return faker.helpers.arrayElement(['boolean', 'integer', 'decimal', 'string', 'json_array']); },
|
|
402
547
|
'io.flow.common.v0.enums.availability_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled']); },
|
|
403
548
|
'io.flow.common.v0.enums.calendar': function () { return faker.helpers.arrayElement(['weekdays', 'everyday']); },
|
|
@@ -2178,6 +2323,23 @@ var factories = {
|
|
|
2178
2323
|
]);
|
|
2179
2324
|
return f();
|
|
2180
2325
|
},
|
|
2326
|
+
'io.flow.product.v0.models.product': function () { return ({
|
|
2327
|
+
organization_id: factories.string(),
|
|
2328
|
+
number: factories.string(),
|
|
2329
|
+
taxonomy_category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
|
|
2330
|
+
taxonomy_data: arrayOf(function () { return factories['io.flow.product.v0.models.product_taxonomy_data'](); }),
|
|
2331
|
+
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
2332
|
+
updated_at: factories.date_time_iso_8601(),
|
|
2333
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
2334
|
+
}); },
|
|
2335
|
+
'io.flow.product.v0.models.product_taxonomy_category': function () { return ({
|
|
2336
|
+
name: factories.string(),
|
|
2337
|
+
full_name: factories.string(),
|
|
2338
|
+
}); },
|
|
2339
|
+
'io.flow.product.v0.models.product_taxonomy_data': function () { return ({
|
|
2340
|
+
key: factories.string(),
|
|
2341
|
+
value: arrayOf(function () { return factories.string(); }),
|
|
2342
|
+
}); },
|
|
2181
2343
|
'io.flow.query.builder.v0.enums.available_filter_format': function () { return faker.helpers.arrayElement([
|
|
2182
2344
|
'boolean',
|
|
2183
2345
|
'date',
|
|
@@ -2553,6 +2715,10 @@ var factories = {
|
|
|
2553
2715
|
'io.flow.shopify.external.v0.models.graphql_measurement': function () { return ({
|
|
2554
2716
|
weight: factories['io.flow.shopify.external.v0.models.graphql_weight'](),
|
|
2555
2717
|
}); },
|
|
2718
|
+
'io.flow.shopify.external.v0.models.graphql_metafield': function () { return ({
|
|
2719
|
+
key: factories.string(),
|
|
2720
|
+
value: factories.string(),
|
|
2721
|
+
}); },
|
|
2556
2722
|
'io.flow.shopify.external.v0.models.graphql_option': function () { return ({
|
|
2557
2723
|
id: factories.string(),
|
|
2558
2724
|
values: arrayOf(function () { return factories.string(); }),
|
|
@@ -2577,6 +2743,8 @@ var factories = {
|
|
|
2577
2743
|
createdAt: factories.date_time_iso_8601(),
|
|
2578
2744
|
updatedAt: factories.date_time_iso_8601(),
|
|
2579
2745
|
hasVariantsThatRequiresComponents: factories.boolean(),
|
|
2746
|
+
category: factories['io.flow.shopify.external.v0.models.graphql_taxonomy_category'](),
|
|
2747
|
+
metafields: arrayOf(function () { return factories['io.flow.shopify.external.v0.models.graphql_metafield'](); }),
|
|
2580
2748
|
}); },
|
|
2581
2749
|
'io.flow.shopify.external.v0.models.graphql_product_image': function () { return ({
|
|
2582
2750
|
id: factories.string(),
|
|
@@ -2597,6 +2765,10 @@ var factories = {
|
|
|
2597
2765
|
image: factories['io.flow.shopify.external.v0.models.graphql_variant_image'](),
|
|
2598
2766
|
inventoryItem: factories['io.flow.shopify.external.v0.models.graphql_inventory_item'](),
|
|
2599
2767
|
}); },
|
|
2768
|
+
'io.flow.shopify.external.v0.models.graphql_taxonomy_category': function () { return ({
|
|
2769
|
+
name: factories.string(),
|
|
2770
|
+
fullName: factories.string(),
|
|
2771
|
+
}); },
|
|
2600
2772
|
'io.flow.shopify.external.v0.models.graphql_variant_image': function () { return ({
|
|
2601
2773
|
id: factories.string(),
|
|
2602
2774
|
}); },
|
|
@@ -2702,6 +2874,7 @@ var factories = {
|
|
|
2702
2874
|
created_at: factories.date_time_iso_8601(),
|
|
2703
2875
|
updated_at: factories.date_time_iso_8601(),
|
|
2704
2876
|
has_variants_that_requires_components: factories.boolean(),
|
|
2877
|
+
category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
|
|
2705
2878
|
}); },
|
|
2706
2879
|
'io.flow.shopify.external.v0.models.product_delete': function () { return ({
|
|
2707
2880
|
id: factories.long(),
|
|
@@ -4873,6 +5046,171 @@ var factories = {
|
|
|
4873
5046
|
]);
|
|
4874
5047
|
return f();
|
|
4875
5048
|
},
|
|
5049
|
+
'io.flow.tech.onboarding.playground.v0.enums.aldo_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
5050
|
+
'io.flow.tech.onboarding.playground.v0.enums.ansh_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
5051
|
+
'io.flow.tech.onboarding.playground.v0.models.aldo_item': function () { return ({
|
|
5052
|
+
id: factories.string(),
|
|
5053
|
+
number: factories.string(),
|
|
5054
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
5055
|
+
description: factories.string(),
|
|
5056
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.aldo_item_type'](),
|
|
5057
|
+
added_on: factories.date_iso_8601(),
|
|
5058
|
+
}); },
|
|
5059
|
+
'io.flow.tech.onboarding.playground.v0.models.aldo_item_form': function () { return ({
|
|
5060
|
+
number: factories.string(),
|
|
5061
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
5062
|
+
description: factories.string(),
|
|
5063
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.aldo_item_type'](),
|
|
5064
|
+
added_on: factories.date_iso_8601(),
|
|
5065
|
+
}); },
|
|
5066
|
+
'io.flow.tech.onboarding.playground.v0.models.ansh_item': function () { return ({
|
|
5067
|
+
id: factories.string(),
|
|
5068
|
+
number: factories.string(),
|
|
5069
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
5070
|
+
description: factories.string(),
|
|
5071
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.ansh_item_type'](),
|
|
5072
|
+
added_on: factories.date_iso_8601(),
|
|
5073
|
+
}); },
|
|
5074
|
+
'io.flow.tech.onboarding.playground.v0.models.ansh_item_form': function () { return ({
|
|
5075
|
+
number: factories.string(),
|
|
5076
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
5077
|
+
description: factories.string(),
|
|
5078
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.ansh_item_type'](),
|
|
5079
|
+
added_on: factories.date_iso_8601(),
|
|
5080
|
+
}); },
|
|
5081
|
+
'io.flow.tech.onboarding.playground.v0.models.jean_demo_item': function () { return ({
|
|
5082
|
+
id: factories.string(),
|
|
5083
|
+
name: factories.string(),
|
|
5084
|
+
}); },
|
|
5085
|
+
'io.flow.tech.onboarding.playground.v0.models.shawn_roundtable_workshop_rate': function () { return ({
|
|
5086
|
+
origin_country: factories.string(),
|
|
5087
|
+
destination_country: factories.string(),
|
|
5088
|
+
weight: factories.double(),
|
|
5089
|
+
amount: factories.double(),
|
|
5090
|
+
}); },
|
|
5091
|
+
'io.flow.tech.onboarding.playground.v0.models.tech_onboarding_description': function () { return ({
|
|
5092
|
+
description: factories.string(),
|
|
5093
|
+
}); },
|
|
5094
|
+
'io.flow.token.v0.models.channel_token': function () { return ({
|
|
5095
|
+
discriminator: 'channel_token',
|
|
5096
|
+
id: factories.string(),
|
|
5097
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
5098
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5099
|
+
partial: factories.string(),
|
|
5100
|
+
cleartext: factories.string(),
|
|
5101
|
+
created_at: factories.date_time_iso_8601(),
|
|
5102
|
+
description: factories.string(),
|
|
5103
|
+
}); },
|
|
5104
|
+
'io.flow.token.v0.models.channel_token_form': function () { return ({
|
|
5105
|
+
channel_id: factories.string(),
|
|
5106
|
+
description: factories.string(),
|
|
5107
|
+
}); },
|
|
5108
|
+
'io.flow.token.v0.models.channel_token_reference': function () { return ({
|
|
5109
|
+
discriminator: 'channel_token_reference',
|
|
5110
|
+
id: factories.string(),
|
|
5111
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
5112
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5113
|
+
}); },
|
|
5114
|
+
'io.flow.token.v0.models.cleartext': function () { return ({
|
|
5115
|
+
value: factories.string(),
|
|
5116
|
+
}); },
|
|
5117
|
+
'io.flow.token.v0.models.organization_token': function () { return ({
|
|
5118
|
+
discriminator: 'organization_token',
|
|
5119
|
+
id: factories.string(),
|
|
5120
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
5121
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5122
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5123
|
+
partial: factories.string(),
|
|
5124
|
+
created_at: factories.date_time_iso_8601(),
|
|
5125
|
+
description: factories.string(),
|
|
5126
|
+
}); },
|
|
5127
|
+
'io.flow.token.v0.models.organization_token_form': function () { return ({
|
|
5128
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5129
|
+
description: factories.string(),
|
|
5130
|
+
}); },
|
|
5131
|
+
'io.flow.token.v0.models.organization_token_form_v2': function () { return ({
|
|
5132
|
+
organization_id: factories.string(),
|
|
5133
|
+
description: factories.string(),
|
|
5134
|
+
}); },
|
|
5135
|
+
'io.flow.token.v0.models.organization_token_reference': function () { return ({
|
|
5136
|
+
discriminator: 'organization_token_reference',
|
|
5137
|
+
id: factories.string(),
|
|
5138
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
5139
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5140
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5141
|
+
}); },
|
|
5142
|
+
'io.flow.token.v0.models.organization_token_v2': function () { return ({
|
|
5143
|
+
discriminator: 'organization_token_v2',
|
|
5144
|
+
id: factories.string(),
|
|
5145
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
5146
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5147
|
+
partial: factories.string(),
|
|
5148
|
+
cleartext: factories.string(),
|
|
5149
|
+
created_at: factories.date_time_iso_8601(),
|
|
5150
|
+
description: factories.string(),
|
|
5151
|
+
}); },
|
|
5152
|
+
'io.flow.token.v0.models.organization_token_v2_reference': function () { return ({
|
|
5153
|
+
discriminator: 'organization_token_v2_reference',
|
|
5154
|
+
id: factories.string(),
|
|
5155
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
5156
|
+
}); },
|
|
5157
|
+
'io.flow.token.v0.models.partner_token': function () { return ({
|
|
5158
|
+
discriminator: 'partner_token',
|
|
5159
|
+
id: factories.string(),
|
|
5160
|
+
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
5161
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5162
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5163
|
+
partial: factories.string(),
|
|
5164
|
+
created_at: factories.date_time_iso_8601(),
|
|
5165
|
+
description: factories.string(),
|
|
5166
|
+
}); },
|
|
5167
|
+
'io.flow.token.v0.models.partner_token_form': function () { return ({
|
|
5168
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5169
|
+
description: factories.string(),
|
|
5170
|
+
}); },
|
|
5171
|
+
'io.flow.token.v0.models.partner_token_reference': function () { return ({
|
|
5172
|
+
discriminator: 'partner_token_reference',
|
|
5173
|
+
id: factories.string(),
|
|
5174
|
+
partner: factories['io.flow.token.v0.models.token_partner_reference'](),
|
|
5175
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
5176
|
+
user: factories['io.flow.common.v0.models.user_reference'](),
|
|
5177
|
+
}); },
|
|
5178
|
+
'io.flow.token.v0.models.token_authentication_form': function () { return ({
|
|
5179
|
+
token: factories.string(),
|
|
5180
|
+
}); },
|
|
5181
|
+
'io.flow.token.v0.models.token_partner_reference': function () { return ({
|
|
5182
|
+
id: factories.string(),
|
|
5183
|
+
}); },
|
|
5184
|
+
'io.flow.token.v0.models.token_rbac_authentication_form': function () { return ({
|
|
5185
|
+
token: factories.string(),
|
|
5186
|
+
method: factories.string(),
|
|
5187
|
+
path_pattern: factories.string(),
|
|
5188
|
+
path: factories.string(),
|
|
5189
|
+
}); },
|
|
5190
|
+
'io.flow.token.v0.models.token_validation': function () { return ({
|
|
5191
|
+
status: factories.string(),
|
|
5192
|
+
}); },
|
|
5193
|
+
'io.flow.token.v0.models.token_validation_form': function () { return ({
|
|
5194
|
+
token: factories.string(),
|
|
5195
|
+
}); },
|
|
5196
|
+
'io.flow.token.v0.unions.token': function () {
|
|
5197
|
+
var f = faker.helpers.arrayElement([
|
|
5198
|
+
function () { return factories['io.flow.token.v0.models.channel_token'](); },
|
|
5199
|
+
function () { return factories['io.flow.token.v0.models.organization_token'](); },
|
|
5200
|
+
function () { return factories['io.flow.token.v0.models.organization_token_v2'](); },
|
|
5201
|
+
function () { return factories['io.flow.token.v0.models.partner_token'](); },
|
|
5202
|
+
]);
|
|
5203
|
+
return f();
|
|
5204
|
+
},
|
|
5205
|
+
'io.flow.token.v0.unions.token_reference': function () {
|
|
5206
|
+
var f = faker.helpers.arrayElement([
|
|
5207
|
+
function () { return factories['io.flow.token.v0.models.channel_token_reference'](); },
|
|
5208
|
+
function () { return factories['io.flow.token.v0.models.organization_token_reference'](); },
|
|
5209
|
+
function () { return factories['io.flow.token.v0.models.organization_token_v2_reference'](); },
|
|
5210
|
+
function () { return factories['io.flow.token.v0.models.partner_token_reference'](); },
|
|
5211
|
+
]);
|
|
5212
|
+
return f();
|
|
5213
|
+
},
|
|
4876
5214
|
'io.flow.v0.enums.abandoned_order_promotion_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
|
|
4877
5215
|
'io.flow.v0.enums.abandoned_order_setting_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
|
|
4878
5216
|
'io.flow.v0.enums.address_field_name': function () { return faker.helpers.arrayElement([
|
|
@@ -4989,6 +5327,7 @@ var factories = {
|
|
|
4989
5327
|
'io.flow.v0.enums.center_capability': function () { return faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']); },
|
|
4990
5328
|
'io.flow.v0.enums.change_type': function () { return faker.helpers.arrayElement(['insert', 'update', 'delete']); },
|
|
4991
5329
|
'io.flow.v0.enums.channel_currency_capability': function () { return faker.helpers.arrayElement(['payment_authorizations', 'settlement_currency']); },
|
|
5330
|
+
'io.flow.v0.enums.channel_shopify_order_state_reason_code': function () { return faker.helpers.arrayElement(['placeholder_reason_code']); },
|
|
4992
5331
|
'io.flow.v0.enums.consumer_invoice_customer_type': function () { return faker.helpers.arrayElement(['business_eu_verified', 'business_non_verified', 'individual']); },
|
|
4993
5332
|
'io.flow.v0.enums.consumer_invoice_document_type': function () { return faker.helpers.arrayElement(['pdf']); },
|
|
4994
5333
|
'io.flow.v0.enums.consumer_invoice_status': function () { return faker.helpers.arrayElement(['pending', 'available', 'invalid']); },
|
|
@@ -5058,6 +5397,8 @@ var factories = {
|
|
|
5058
5397
|
'io.flow.v0.enums.event_type': function () { return faker.helpers.arrayElement([
|
|
5059
5398
|
'test_upserted',
|
|
5060
5399
|
'generate_load',
|
|
5400
|
+
'aldo_item_upserted',
|
|
5401
|
+
'aldo_item_deleted',
|
|
5061
5402
|
'transaction_upserted',
|
|
5062
5403
|
'organization_transaction_upserted',
|
|
5063
5404
|
'organization_transaction_deleted',
|
|
@@ -5084,10 +5425,6 @@ var factories = {
|
|
|
5084
5425
|
'catalog_deleted',
|
|
5085
5426
|
'subcatalog_upserted',
|
|
5086
5427
|
'subcatalog_deleted',
|
|
5087
|
-
'catalog_item_upserted',
|
|
5088
|
-
'catalog_item_deleted',
|
|
5089
|
-
'catalog_item_upserted_v2',
|
|
5090
|
-
'catalog_item_deleted_v2',
|
|
5091
5428
|
'subcatalog_item_upserted',
|
|
5092
5429
|
'subcatalog_item_deleted',
|
|
5093
5430
|
'catalog_statistics_upserted',
|
|
@@ -5095,6 +5432,8 @@ var factories = {
|
|
|
5095
5432
|
'item_inserted',
|
|
5096
5433
|
'item_updated',
|
|
5097
5434
|
'item_deleted',
|
|
5435
|
+
'channel_shopify_order_state_upserted',
|
|
5436
|
+
'channel_shopify_order_state_deleted',
|
|
5098
5437
|
'channel_upserted',
|
|
5099
5438
|
'channel_deleted',
|
|
5100
5439
|
'channel_currency_upserted',
|
|
@@ -5243,6 +5582,9 @@ var factories = {
|
|
|
5243
5582
|
'price_book_deleted',
|
|
5244
5583
|
'price_book_item_upserted',
|
|
5245
5584
|
'price_book_item_deleted',
|
|
5585
|
+
'product_inserted',
|
|
5586
|
+
'product_updated',
|
|
5587
|
+
'product_deleted',
|
|
5246
5588
|
'organization_rates_published',
|
|
5247
5589
|
'ratecard_lane_upserted',
|
|
5248
5590
|
'ratecard_lane_deleted',
|
|
@@ -5752,6 +6094,7 @@ var factories = {
|
|
|
5752
6094
|
'io.flow.v0.enums.role': function () { return faker.helpers.arrayElement(['admin', 'member']); },
|
|
5753
6095
|
'io.flow.v0.enums.rounding_method': function () { return faker.helpers.arrayElement(['up', 'down', 'nearest']); },
|
|
5754
6096
|
'io.flow.v0.enums.rounding_type': function () { return faker.helpers.arrayElement(['pattern', 'multiple']); },
|
|
6097
|
+
'io.flow.v0.enums.rule_effect_type': function () { return faker.helpers.arrayElement(['market', 'dhl', 'dhl_ecommerce', 'ups']); },
|
|
5755
6098
|
'io.flow.v0.enums.schedule_exception_status': function () { return faker.helpers.arrayElement(['Open', 'Closed']); },
|
|
5756
6099
|
'io.flow.v0.enums.shipment_integration_type': function () { return faker.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
5757
6100
|
'io.flow.v0.enums.shipment_recipient': function () { return faker.helpers.arrayElement(['customer', 'return', 'crossdock']); },
|
|
@@ -5778,6 +6121,49 @@ var factories = {
|
|
|
5778
6121
|
'io.flow.v0.enums.stored_method_usage_step': function () { return faker.helpers.arrayElement(['initial', 'subsequent']); },
|
|
5779
6122
|
'io.flow.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
5780
6123
|
'io.flow.v0.enums.subcatalog_item_status': function () { return faker.helpers.arrayElement(['excluded', 'included', 'restricted']); },
|
|
6124
|
+
'io.flow.v0.enums.substatus_code': function () { return faker.helpers.arrayElement([
|
|
6125
|
+
'Delivered_001',
|
|
6126
|
+
'Delivered_002',
|
|
6127
|
+
'Delivered_003',
|
|
6128
|
+
'Delivered_004',
|
|
6129
|
+
'AvailableForPickup_001',
|
|
6130
|
+
'Exception_001',
|
|
6131
|
+
'Exception_002',
|
|
6132
|
+
'Exception_003',
|
|
6133
|
+
'Exception_004',
|
|
6134
|
+
'Exception_005',
|
|
6135
|
+
'Exception_006',
|
|
6136
|
+
'Exception_007',
|
|
6137
|
+
'Exception_008',
|
|
6138
|
+
'Exception_009',
|
|
6139
|
+
'Exception_010',
|
|
6140
|
+
'Exception_011',
|
|
6141
|
+
'Exception_012',
|
|
6142
|
+
'Exception_013',
|
|
6143
|
+
'AttemptFail_001',
|
|
6144
|
+
'AttemptFail_002',
|
|
6145
|
+
'AttemptFail_003',
|
|
6146
|
+
'InTransit_001',
|
|
6147
|
+
'InTransit_002',
|
|
6148
|
+
'InTransit_003',
|
|
6149
|
+
'InTransit_004',
|
|
6150
|
+
'InTransit_005',
|
|
6151
|
+
'InTransit_006',
|
|
6152
|
+
'InTransit_007',
|
|
6153
|
+
'InTransit_008',
|
|
6154
|
+
'InTransit_009',
|
|
6155
|
+
'InfoReceived_001',
|
|
6156
|
+
'OutForDelivery_001',
|
|
6157
|
+
'OutForDelivery_003',
|
|
6158
|
+
'OutForDelivery_004',
|
|
6159
|
+
'Pending_001',
|
|
6160
|
+
'Pending_002',
|
|
6161
|
+
'Pending_003',
|
|
6162
|
+
'Pending_004',
|
|
6163
|
+
'Pending_005',
|
|
6164
|
+
'Pending_006',
|
|
6165
|
+
'Expired_001',
|
|
6166
|
+
]); },
|
|
5781
6167
|
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
5782
6168
|
'io.flow.v0.enums.sync_record_failure_reason': function () { return faker.helpers.arrayElement(['inventory', 'address', 'promotion', 'other']); },
|
|
5783
6169
|
'io.flow.v0.enums.sync_stream_type': function () { return faker.helpers.arrayElement(['submitted_order', 'placed_order']); },
|
|
@@ -5836,6 +6222,9 @@ var factories = {
|
|
|
5836
6222
|
'virtual_card_refund',
|
|
5837
6223
|
'failed_payout',
|
|
5838
6224
|
'tax_refund',
|
|
6225
|
+
'order_fx',
|
|
6226
|
+
'ge_revenue_share',
|
|
6227
|
+
'tax_duty_delta',
|
|
5839
6228
|
]); },
|
|
5840
6229
|
'io.flow.v0.enums.trueup_source': function () { return faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl', 'ups']); },
|
|
5841
6230
|
'io.flow.v0.enums.trueup_surcharge_type': function () { return faker.helpers.arrayElement([
|
|
@@ -6150,6 +6539,18 @@ var factories = {
|
|
|
6150
6539
|
type: 'fingerprint',
|
|
6151
6540
|
fingerprint_token: factories.string(),
|
|
6152
6541
|
}); },
|
|
6542
|
+
'io.flow.v0.models.aldo_item_deleted': function () { return ({
|
|
6543
|
+
discriminator: 'aldo_item_deleted',
|
|
6544
|
+
event_id: factories.string(),
|
|
6545
|
+
timestamp: factories.date_time_iso_8601(),
|
|
6546
|
+
id: factories.string(),
|
|
6547
|
+
}); },
|
|
6548
|
+
'io.flow.v0.models.aldo_item_upserted': function () { return ({
|
|
6549
|
+
discriminator: 'aldo_item_upserted',
|
|
6550
|
+
event_id: factories.string(),
|
|
6551
|
+
timestamp: factories.date_time_iso_8601(),
|
|
6552
|
+
item: factories['io.flow.tech.onboarding.playground.v0.models.aldo_item'](),
|
|
6553
|
+
}); },
|
|
6153
6554
|
'io.flow.v0.models.allocation': function () { return ({
|
|
6154
6555
|
order: factories['io.flow.v0.models.allocation_order_summary'](),
|
|
6155
6556
|
details: arrayOf(function () { return factories['io.flow.v0.unions.allocation_detail'](); }),
|
|
@@ -6936,6 +7337,10 @@ var factories = {
|
|
|
6936
7337
|
'io.flow.v0.models.carrier_reference': function () { return ({
|
|
6937
7338
|
id: factories.string(),
|
|
6938
7339
|
}); },
|
|
7340
|
+
'io.flow.v0.models.carrier_restrictions': function () { return ({
|
|
7341
|
+
carrier: factories.string(),
|
|
7342
|
+
regions: arrayOf(function () { return factories.string(); }),
|
|
7343
|
+
}); },
|
|
6939
7344
|
'io.flow.v0.models.carrier_service': function () { return ({
|
|
6940
7345
|
id: factories.string(),
|
|
6941
7346
|
carrier: factories['io.flow.v0.models.carrier'](),
|
|
@@ -6953,20 +7358,6 @@ var factories = {
|
|
|
6953
7358
|
timestamp: factories.date_time_iso_8601(),
|
|
6954
7359
|
organization: factories.string(),
|
|
6955
7360
|
}); },
|
|
6956
|
-
'io.flow.v0.models.catalog_item_deleted': function () { return ({
|
|
6957
|
-
discriminator: 'catalog_item_deleted',
|
|
6958
|
-
event_id: factories.string(),
|
|
6959
|
-
timestamp: factories.date_time_iso_8601(),
|
|
6960
|
-
organization: factories.string(),
|
|
6961
|
-
number: factories.string(),
|
|
6962
|
-
}); },
|
|
6963
|
-
'io.flow.v0.models.catalog_item_deleted_v2': function () { return ({
|
|
6964
|
-
discriminator: 'catalog_item_deleted_v2',
|
|
6965
|
-
event_id: factories.string(),
|
|
6966
|
-
timestamp: factories.date_time_iso_8601(),
|
|
6967
|
-
organization: factories.string(),
|
|
6968
|
-
item: factories['io.flow.v0.models.item'](),
|
|
6969
|
-
}); },
|
|
6970
7361
|
'io.flow.v0.models.catalog_item_document': function () { return ({
|
|
6971
7362
|
discriminator: 'catalog_item_document',
|
|
6972
7363
|
number: factories.string(),
|
|
@@ -6994,29 +7385,6 @@ var factories = {
|
|
|
6994
7385
|
name: factories.string(),
|
|
6995
7386
|
attributes: objectOf(function () { return factories.string(); }),
|
|
6996
7387
|
}); },
|
|
6997
|
-
'io.flow.v0.models.catalog_item_upserted': function () { return ({
|
|
6998
|
-
discriminator: 'catalog_item_upserted',
|
|
6999
|
-
event_id: factories.string(),
|
|
7000
|
-
timestamp: factories.date_time_iso_8601(),
|
|
7001
|
-
organization: factories.string(),
|
|
7002
|
-
number: factories.string(),
|
|
7003
|
-
locale: factories.string(),
|
|
7004
|
-
name: factories.string(),
|
|
7005
|
-
currency: factories.string(),
|
|
7006
|
-
price: factories.double(),
|
|
7007
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
7008
|
-
description: factories.string(),
|
|
7009
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
7010
|
-
dimensions: factories.object(),
|
|
7011
|
-
images: arrayOf(function () { return factories.object(); }),
|
|
7012
|
-
}); },
|
|
7013
|
-
'io.flow.v0.models.catalog_item_upserted_v2': function () { return ({
|
|
7014
|
-
discriminator: 'catalog_item_upserted_v2',
|
|
7015
|
-
event_id: factories.string(),
|
|
7016
|
-
timestamp: factories.date_time_iso_8601(),
|
|
7017
|
-
organization: factories.string(),
|
|
7018
|
-
item: factories['io.flow.v0.models.item'](),
|
|
7019
|
-
}); },
|
|
7020
7388
|
'io.flow.v0.models.catalog_price_book_item_document': function () { return ({
|
|
7021
7389
|
price_book_key: factories.string(),
|
|
7022
7390
|
price_book_item_key: factories.string(),
|
|
@@ -7270,6 +7638,34 @@ var factories = {
|
|
|
7270
7638
|
'io.flow.v0.models.channel_reference': function () { return ({
|
|
7271
7639
|
id: factories.string(),
|
|
7272
7640
|
}); },
|
|
7641
|
+
'io.flow.v0.models.channel_shopify_order_state': function () { return ({
|
|
7642
|
+
id: factories.string(),
|
|
7643
|
+
shopify_order_summary: factories['io.flow.v0.models.channel_shopify_order_summary'](),
|
|
7644
|
+
status: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_status'](),
|
|
7645
|
+
reasons: arrayOf(function () { return factories['io.flow.v0.models.channel_shopify_order_state_reason'](); }),
|
|
7646
|
+
}); },
|
|
7647
|
+
'io.flow.v0.models.channel_shopify_order_state_deleted': function () { return ({
|
|
7648
|
+
discriminator: 'channel_shopify_order_state_deleted',
|
|
7649
|
+
event_id: factories.string(),
|
|
7650
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7651
|
+
organization: factories.string(),
|
|
7652
|
+
id: factories.string(),
|
|
7653
|
+
}); },
|
|
7654
|
+
'io.flow.v0.models.channel_shopify_order_state_reason': function () { return ({
|
|
7655
|
+
code: factories['io.flow.v0.enums.channel_shopify_order_state_reason_code'](),
|
|
7656
|
+
message: factories.string(),
|
|
7657
|
+
}); },
|
|
7658
|
+
'io.flow.v0.models.channel_shopify_order_state_upserted': function () { return ({
|
|
7659
|
+
discriminator: 'channel_shopify_order_state_upserted',
|
|
7660
|
+
event_id: factories.string(),
|
|
7661
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7662
|
+
organization: factories.string(),
|
|
7663
|
+
channel_shopify_order_state: factories['io.flow.v0.models.channel_shopify_order_state'](),
|
|
7664
|
+
}); },
|
|
7665
|
+
'io.flow.v0.models.channel_shopify_order_summary': function () { return ({
|
|
7666
|
+
order_id: factories.long(),
|
|
7667
|
+
shop_id: factories.long(),
|
|
7668
|
+
}); },
|
|
7273
7669
|
'io.flow.v0.models.channel_statement': function () { return ({
|
|
7274
7670
|
id: factories.string(),
|
|
7275
7671
|
account: factories['io.flow.v0.models.account_reference'](),
|
|
@@ -8132,11 +8528,13 @@ var factories = {
|
|
|
8132
8528
|
q: factories.string(),
|
|
8133
8529
|
dimensions: factories['io.flow.v0.models.estimated_dimensions'](),
|
|
8134
8530
|
position: factories.long(),
|
|
8531
|
+
block_bulk_update: factories.boolean(),
|
|
8135
8532
|
}); },
|
|
8136
8533
|
'io.flow.v0.models.dimension_estimate_form': function () { return ({
|
|
8137
8534
|
q: factories.string(),
|
|
8138
8535
|
dimensions: factories['io.flow.v0.models.estimated_dimensions'](),
|
|
8139
8536
|
position: factories.long(),
|
|
8537
|
+
block_bulk_update: factories.boolean(),
|
|
8140
8538
|
}); },
|
|
8141
8539
|
'io.flow.v0.models.dimension_estimate_version': function () { return ({
|
|
8142
8540
|
id: factories.string(),
|
|
@@ -12146,6 +12544,29 @@ var factories = {
|
|
|
12146
12544
|
max_date: factories.date_time_iso_8601(),
|
|
12147
12545
|
source: factories['io.flow.v0.enums.delivery_window_component_source'](),
|
|
12148
12546
|
}); },
|
|
12547
|
+
'io.flow.v0.models.product': function () { return ({
|
|
12548
|
+
organization_id: factories.string(),
|
|
12549
|
+
number: factories.string(),
|
|
12550
|
+
taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
|
|
12551
|
+
taxonomy_data: arrayOf(function () { return factories['io.flow.v0.models.product_taxonomy_data'](); }),
|
|
12552
|
+
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
12553
|
+
updated_at: factories.date_time_iso_8601(),
|
|
12554
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
12555
|
+
}); },
|
|
12556
|
+
'io.flow.v0.models.product_deleted': function () { return ({
|
|
12557
|
+
discriminator: 'product_deleted',
|
|
12558
|
+
event_id: factories.string(),
|
|
12559
|
+
timestamp: factories.date_time_iso_8601(),
|
|
12560
|
+
organization: factories.string(),
|
|
12561
|
+
product: factories['io.flow.v0.models.product'](),
|
|
12562
|
+
}); },
|
|
12563
|
+
'io.flow.v0.models.product_inserted': function () { return ({
|
|
12564
|
+
discriminator: 'product_inserted',
|
|
12565
|
+
event_id: factories.string(),
|
|
12566
|
+
timestamp: factories.date_time_iso_8601(),
|
|
12567
|
+
organization: factories.string(),
|
|
12568
|
+
product: factories['io.flow.v0.models.product'](),
|
|
12569
|
+
}); },
|
|
12149
12570
|
'io.flow.v0.models.product_restriction_result': function () { return ({
|
|
12150
12571
|
id: factories.string(),
|
|
12151
12572
|
product_id: factories.string(),
|
|
@@ -12172,6 +12593,41 @@ var factories = {
|
|
|
12172
12593
|
organization: factories.string(),
|
|
12173
12594
|
product_restriction_result: factories['io.flow.v0.models.product_restriction_result'](),
|
|
12174
12595
|
}); },
|
|
12596
|
+
'io.flow.v0.models.product_sellability': function () { return ({
|
|
12597
|
+
organization_id: factories.string(),
|
|
12598
|
+
product_id: factories.string(),
|
|
12599
|
+
product_correlation_id: factories.string(),
|
|
12600
|
+
restricted_regions: arrayOf(function () { return factories['io.flow.v0.models.sellablility_region_result'](); }),
|
|
12601
|
+
in_review_regions: arrayOf(function () { return factories['io.flow.v0.models.sellablility_region_result'](); }),
|
|
12602
|
+
}); },
|
|
12603
|
+
'io.flow.v0.models.product_sellability_form': function () { return ({
|
|
12604
|
+
organization_id: factories.string(),
|
|
12605
|
+
product_id: factories.string(),
|
|
12606
|
+
product_correlation_id: factories.string(),
|
|
12607
|
+
name: factories.string(),
|
|
12608
|
+
price: factories['io.flow.v0.models.product_sellability_price'](),
|
|
12609
|
+
description: factories.string(),
|
|
12610
|
+
taxonomy_category: factories['io.flow.v0.models.product_taxonomy_category'](),
|
|
12611
|
+
}); },
|
|
12612
|
+
'io.flow.v0.models.product_sellability_price': function () { return ({
|
|
12613
|
+
currency: factories.string(),
|
|
12614
|
+
amount: factories.decimal(),
|
|
12615
|
+
}); },
|
|
12616
|
+
'io.flow.v0.models.product_taxonomy_category': function () { return ({
|
|
12617
|
+
name: factories.string(),
|
|
12618
|
+
full_name: factories.string(),
|
|
12619
|
+
}); },
|
|
12620
|
+
'io.flow.v0.models.product_taxonomy_data': function () { return ({
|
|
12621
|
+
key: factories.string(),
|
|
12622
|
+
value: arrayOf(function () { return factories.string(); }),
|
|
12623
|
+
}); },
|
|
12624
|
+
'io.flow.v0.models.product_updated': function () { return ({
|
|
12625
|
+
discriminator: 'product_updated',
|
|
12626
|
+
event_id: factories.string(),
|
|
12627
|
+
timestamp: factories.date_time_iso_8601(),
|
|
12628
|
+
organization: factories.string(),
|
|
12629
|
+
product: factories['io.flow.v0.models.product'](),
|
|
12630
|
+
}); },
|
|
12175
12631
|
'io.flow.v0.models.promotion_trigger': function () { return ({
|
|
12176
12632
|
type: factories['io.flow.v0.enums.promotion_trigger_type'](),
|
|
12177
12633
|
min: factories['io.flow.v0.models.price'](),
|
|
@@ -12993,6 +13449,10 @@ var factories = {
|
|
|
12993
13449
|
discriminator: 'select_issuer_option_action_details',
|
|
12994
13450
|
issuer_options: arrayOf(function () { return factories['io.flow.v0.models.issuer_reference'](); }),
|
|
12995
13451
|
}); },
|
|
13452
|
+
'io.flow.v0.models.sellablility_region_result': function () { return ({
|
|
13453
|
+
type: factories['io.flow.v0.enums.rule_effect_type'](),
|
|
13454
|
+
regions: arrayOf(function () { return factories.string(); }),
|
|
13455
|
+
}); },
|
|
12996
13456
|
'io.flow.v0.models.service_reference': function () { return ({
|
|
12997
13457
|
id: factories.string(),
|
|
12998
13458
|
}); },
|
|
@@ -14789,6 +15249,8 @@ var factories = {
|
|
|
14789
15249
|
var f = faker.helpers.arrayElement([
|
|
14790
15250
|
function () { return factories['io.flow.v0.models.test_upserted'](); },
|
|
14791
15251
|
function () { return factories['io.flow.v0.models.generate_load'](); },
|
|
15252
|
+
function () { return factories['io.flow.v0.models.aldo_item_upserted'](); },
|
|
15253
|
+
function () { return factories['io.flow.v0.models.aldo_item_deleted'](); },
|
|
14792
15254
|
function () { return factories['io.flow.v0.models.transaction_upserted'](); },
|
|
14793
15255
|
function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); },
|
|
14794
15256
|
function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); },
|
|
@@ -14815,10 +15277,6 @@ var factories = {
|
|
|
14815
15277
|
function () { return factories['io.flow.v0.models.catalog_deleted'](); },
|
|
14816
15278
|
function () { return factories['io.flow.v0.models.subcatalog_upserted'](); },
|
|
14817
15279
|
function () { return factories['io.flow.v0.models.subcatalog_deleted'](); },
|
|
14818
|
-
function () { return factories['io.flow.v0.models.catalog_item_upserted'](); },
|
|
14819
|
-
function () { return factories['io.flow.v0.models.catalog_item_deleted'](); },
|
|
14820
|
-
function () { return factories['io.flow.v0.models.catalog_item_upserted_v2'](); },
|
|
14821
|
-
function () { return factories['io.flow.v0.models.catalog_item_deleted_v2'](); },
|
|
14822
15280
|
function () { return factories['io.flow.v0.models.subcatalog_item_upserted'](); },
|
|
14823
15281
|
function () { return factories['io.flow.v0.models.subcatalog_item_deleted'](); },
|
|
14824
15282
|
function () { return factories['io.flow.v0.models.catalog_statistics_upserted'](); },
|
|
@@ -14826,6 +15284,8 @@ var factories = {
|
|
|
14826
15284
|
function () { return factories['io.flow.v0.models.item_inserted'](); },
|
|
14827
15285
|
function () { return factories['io.flow.v0.models.item_updated'](); },
|
|
14828
15286
|
function () { return factories['io.flow.v0.models.item_deleted'](); },
|
|
15287
|
+
function () { return factories['io.flow.v0.models.channel_shopify_order_state_upserted'](); },
|
|
15288
|
+
function () { return factories['io.flow.v0.models.channel_shopify_order_state_deleted'](); },
|
|
14829
15289
|
function () { return factories['io.flow.v0.models.channel_upserted'](); },
|
|
14830
15290
|
function () { return factories['io.flow.v0.models.channel_deleted'](); },
|
|
14831
15291
|
function () { return factories['io.flow.v0.models.channel_currency_upserted'](); },
|
|
@@ -14974,6 +15434,9 @@ var factories = {
|
|
|
14974
15434
|
function () { return factories['io.flow.v0.models.price_book_deleted'](); },
|
|
14975
15435
|
function () { return factories['io.flow.v0.models.price_book_item_upserted'](); },
|
|
14976
15436
|
function () { return factories['io.flow.v0.models.price_book_item_deleted'](); },
|
|
15437
|
+
function () { return factories['io.flow.v0.models.product_inserted'](); },
|
|
15438
|
+
function () { return factories['io.flow.v0.models.product_updated'](); },
|
|
15439
|
+
function () { return factories['io.flow.v0.models.product_deleted'](); },
|
|
14977
15440
|
function () { return factories['io.flow.v0.models.organization_rates_published'](); },
|
|
14978
15441
|
function () { return factories['io.flow.v0.models.ratecard_lane_upserted'](); },
|
|
14979
15442
|
function () { return factories['io.flow.v0.models.ratecard_lane_deleted'](); },
|
|
@@ -15645,6 +16108,8 @@ export var makeAdyenNativeActionDetails = function () { return factories['io.flo
|
|
|
15645
16108
|
export var makeAdyenNativeData = function () { return factories['io.flow.v0.unions.adyen_native_data'](); };
|
|
15646
16109
|
export var makeAdyenV3ChallengeToken = function () { return factories['io.flow.v0.models.adyen_v3_challenge_token'](); };
|
|
15647
16110
|
export var makeAdyenV3FingerprintToken = function () { return factories['io.flow.v0.models.adyen_v3_fingerprint_token'](); };
|
|
16111
|
+
export var makeAldoItemDeleted = function () { return factories['io.flow.v0.models.aldo_item_deleted'](); };
|
|
16112
|
+
export var makeAldoItemUpserted = function () { return factories['io.flow.v0.models.aldo_item_upserted'](); };
|
|
15648
16113
|
export var makeAllocation = function () { return factories['io.flow.v0.models.allocation'](); };
|
|
15649
16114
|
export var makeAllocationComponent = function () { return factories['io.flow.v0.unions.allocation_component'](); };
|
|
15650
16115
|
export var makeAllocationDeletedV2 = function () { return factories['io.flow.v0.models.allocation_deleted_v2'](); };
|
|
@@ -15797,19 +16262,16 @@ export var makeCardVersion = function () { return factories['io.flow.v0.models.c
|
|
|
15797
16262
|
export var makeCarrier = function () { return factories['io.flow.v0.models.carrier'](); };
|
|
15798
16263
|
export var makeCarrierChargeReason = function () { return factories['io.flow.v0.enums.carrier_charge_reason'](); };
|
|
15799
16264
|
export var makeCarrierReference = function () { return factories['io.flow.v0.models.carrier_reference'](); };
|
|
16265
|
+
export var makeCarrierRestrictions = function () { return factories['io.flow.v0.models.carrier_restrictions'](); };
|
|
15800
16266
|
export var makeCarrierService = function () { return factories['io.flow.v0.models.carrier_service'](); };
|
|
15801
16267
|
export var makeCartReference = function () { return factories['io.flow.v0.models.cart_reference'](); };
|
|
15802
16268
|
export var makeCatalog = function () { return factories['io.flow.v0.models.catalog'](); };
|
|
15803
16269
|
export var makeCatalogDeleted = function () { return factories['io.flow.v0.models.catalog_deleted'](); };
|
|
15804
|
-
export var makeCatalogItemDeleted = function () { return factories['io.flow.v0.models.catalog_item_deleted'](); };
|
|
15805
|
-
export var makeCatalogItemDeletedV2 = function () { return factories['io.flow.v0.models.catalog_item_deleted_v2'](); };
|
|
15806
16270
|
export var makeCatalogItemDocument = function () { return factories['io.flow.v0.models.catalog_item_document'](); };
|
|
15807
16271
|
export var makeCatalogItemDocumentImages = function () { return factories['io.flow.v0.models.catalog_item_document_images'](); };
|
|
15808
16272
|
export var makeCatalogItemExportType = function () { return factories['io.flow.v0.models.catalog_item_export_type'](); };
|
|
15809
16273
|
export var makeCatalogItemReference = function () { return factories['io.flow.v0.models.catalog_item_reference'](); };
|
|
15810
16274
|
export var makeCatalogItemSummary = function () { return factories['io.flow.v0.models.catalog_item_summary'](); };
|
|
15811
|
-
export var makeCatalogItemUpserted = function () { return factories['io.flow.v0.models.catalog_item_upserted'](); };
|
|
15812
|
-
export var makeCatalogItemUpsertedV2 = function () { return factories['io.flow.v0.models.catalog_item_upserted_v2'](); };
|
|
15813
16275
|
export var makeCatalogPriceBookItemDocument = function () { return factories['io.flow.v0.models.catalog_price_book_item_document'](); };
|
|
15814
16276
|
export var makeCatalogReference = function () { return factories['io.flow.v0.models.catalog_reference'](); };
|
|
15815
16277
|
export var makeCatalogStatistics = function () { return factories['io.flow.v0.models.catalog_statistics'](); };
|
|
@@ -15855,6 +16317,12 @@ export var makeChannelPendingPayoutTransactionDeleted = function () { return fac
|
|
|
15855
16317
|
export var makeChannelPendingPayoutTransactionUpserted = function () { return factories['io.flow.v0.models.channel_pending_payout_transaction_upserted'](); };
|
|
15856
16318
|
export var makeChannelRate = function () { return factories['io.flow.v0.models.channel_rate'](); };
|
|
15857
16319
|
export var makeChannelReference = function () { return factories['io.flow.v0.models.channel_reference'](); };
|
|
16320
|
+
export var makeChannelShopifyOrderState = function () { return factories['io.flow.v0.models.channel_shopify_order_state'](); };
|
|
16321
|
+
export var makeChannelShopifyOrderStateDeleted = function () { return factories['io.flow.v0.models.channel_shopify_order_state_deleted'](); };
|
|
16322
|
+
export var makeChannelShopifyOrderStateReason = function () { return factories['io.flow.v0.models.channel_shopify_order_state_reason'](); };
|
|
16323
|
+
export var makeChannelShopifyOrderStateReasonCode = function () { return factories['io.flow.v0.enums.channel_shopify_order_state_reason_code'](); };
|
|
16324
|
+
export var makeChannelShopifyOrderStateUpserted = function () { return factories['io.flow.v0.models.channel_shopify_order_state_upserted'](); };
|
|
16325
|
+
export var makeChannelShopifyOrderSummary = function () { return factories['io.flow.v0.models.channel_shopify_order_summary'](); };
|
|
15858
16326
|
export var makeChannelStatement = function () { return factories['io.flow.v0.models.channel_statement'](); };
|
|
15859
16327
|
export var makeChannelStatementDeleted = function () { return factories['io.flow.v0.models.channel_statement_deleted'](); };
|
|
15860
16328
|
export var makeChannelStatementUpserted = function () { return factories['io.flow.v0.models.channel_statement_upserted'](); };
|
|
@@ -16842,10 +17310,19 @@ export var makePricingSettings = function () { return factories['io.flow.v0.mode
|
|
|
16842
17310
|
export var makePricingUpserted = function () { return factories['io.flow.v0.models.pricing_upserted'](); };
|
|
16843
17311
|
export var makePricingVersion = function () { return factories['io.flow.v0.models.pricing_version'](); };
|
|
16844
17312
|
export var makeProcessingEstimate = function () { return factories['io.flow.v0.models.processing_estimate'](); };
|
|
17313
|
+
export var makeProduct = function () { return factories['io.flow.v0.models.product'](); };
|
|
17314
|
+
export var makeProductDeleted = function () { return factories['io.flow.v0.models.product_deleted'](); };
|
|
17315
|
+
export var makeProductInserted = function () { return factories['io.flow.v0.models.product_inserted'](); };
|
|
16845
17316
|
export var makeProductRestrictionResult = function () { return factories['io.flow.v0.models.product_restriction_result'](); };
|
|
16846
17317
|
export var makeProductRestrictionResultDeleted = function () { return factories['io.flow.v0.models.product_restriction_result_deleted'](); };
|
|
16847
17318
|
export var makeProductRestrictionResultUpserted = function () { return factories['io.flow.v0.models.product_restriction_result_upserted'](); };
|
|
16848
17319
|
export var makeProductRestrictionRule = function () { return factories['io.flow.v0.enums.product_restriction_rule'](); };
|
|
17320
|
+
export var makeProductSellability = function () { return factories['io.flow.v0.models.product_sellability'](); };
|
|
17321
|
+
export var makeProductSellabilityForm = function () { return factories['io.flow.v0.models.product_sellability_form'](); };
|
|
17322
|
+
export var makeProductSellabilityPrice = function () { return factories['io.flow.v0.models.product_sellability_price'](); };
|
|
17323
|
+
export var makeProductTaxonomyCategory = function () { return factories['io.flow.v0.models.product_taxonomy_category'](); };
|
|
17324
|
+
export var makeProductTaxonomyData = function () { return factories['io.flow.v0.models.product_taxonomy_data'](); };
|
|
17325
|
+
export var makeProductUpdated = function () { return factories['io.flow.v0.models.product_updated'](); };
|
|
16849
17326
|
export var makePromotion = function () { return factories['io.flow.v0.unions.promotion'](); };
|
|
16850
17327
|
export var makePromotionTrigger = function () { return factories['io.flow.v0.models.promotion_trigger'](); };
|
|
16851
17328
|
export var makePromotionTriggerForm = function () { return factories['io.flow.v0.models.promotion_trigger_form'](); };
|
|
@@ -16990,6 +17467,7 @@ export var makeRounding = function () { return factories['io.flow.v0.models.roun
|
|
|
16990
17467
|
export var makeRoundingMethod = function () { return factories['io.flow.v0.enums.rounding_method'](); };
|
|
16991
17468
|
export var makeRoundingType = function () { return factories['io.flow.v0.enums.rounding_type'](); };
|
|
16992
17469
|
export var makeRouteAudit = function () { return factories['io.flow.v0.models.route_audit'](); };
|
|
17470
|
+
export var makeRuleEffectType = function () { return factories['io.flow.v0.enums.rule_effect_type'](); };
|
|
16993
17471
|
export var makeSchedule = function () { return factories['io.flow.v0.models.schedule'](); };
|
|
16994
17472
|
export var makeScheduleExceptionStatus = function () { return factories['io.flow.v0.enums.schedule_exception_status'](); };
|
|
16995
17473
|
export var makeScheduledExport = function () { return factories['io.flow.v0.models.scheduled_export'](); };
|
|
@@ -16999,6 +17477,7 @@ export var makeSdkAdyenV3AuthenticationToken = function () { return factories['i
|
|
|
16999
17477
|
export var makeSecurityRatecardFee = function () { return factories['io.flow.v0.models.security_ratecard_fee'](); };
|
|
17000
17478
|
export var makeSecurityServiceFee = function () { return factories['io.flow.v0.models.security_service_fee'](); };
|
|
17001
17479
|
export var makeSelectIssuerOptionActionDetails = function () { return factories['io.flow.v0.models.select_issuer_option_action_details'](); };
|
|
17480
|
+
export var makeSellablilityRegionResult = function () { return factories['io.flow.v0.models.sellablility_region_result'](); };
|
|
17002
17481
|
export var makeServiceDescription = function () { return factories['io.flow.v0.unions.service_description'](); };
|
|
17003
17482
|
export var makeServiceFee = function () { return factories['io.flow.v0.unions.service_fee'](); };
|
|
17004
17483
|
export var makeServiceReference = function () { return factories['io.flow.v0.models.service_reference'](); };
|
|
@@ -17140,6 +17619,7 @@ export var makeSubcatalogSettingsForm = function () { return factories['io.flow.
|
|
|
17140
17619
|
export var makeSubcatalogStatistics = function () { return factories['io.flow.v0.models.subcatalog_statistics'](); };
|
|
17141
17620
|
export var makeSubcatalogUpserted = function () { return factories['io.flow.v0.models.subcatalog_upserted'](); };
|
|
17142
17621
|
export var makeSubcatalogVersion = function () { return factories['io.flow.v0.models.subcatalog_version'](); };
|
|
17622
|
+
export var makeSubstatusCode = function () { return factories['io.flow.v0.enums.substatus_code'](); };
|
|
17143
17623
|
export var makeSuggestion = function () { return factories['io.flow.v0.models.suggestion'](); };
|
|
17144
17624
|
export var makeSummaryShippingLabelForm = function () { return factories['io.flow.v0.models.summary_shipping_label_form'](); };
|
|
17145
17625
|
export var makeSummaryShippingNotificationForm = function () { return factories['io.flow.v0.models.summary_shipping_notification_form'](); };
|