@flowio/api-factories 0.0.38 → 0.0.39
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 +151 -43
- package/dist/esm/api.js +104 -10
- package/dist/types/api.d.ts +15 -1
- package/package.json +2 -2
- package/src/api.ts +121 -11
package/dist/esm/api.js
CHANGED
|
@@ -2068,11 +2068,13 @@ var factories = {
|
|
|
2068
2068
|
'io.flow.v0.enums.environment': function () { return faker.random.arrayElement(['sandbox', 'production']); },
|
|
2069
2069
|
'io.flow.v0.enums.event_type': function () { return faker.random.arrayElement([
|
|
2070
2070
|
'transaction_upserted',
|
|
2071
|
-
'
|
|
2071
|
+
'organization_transaction_upserted',
|
|
2072
|
+
'organization_transaction_deleted',
|
|
2072
2073
|
'statement_upserted',
|
|
2073
2074
|
'statement_deleted',
|
|
2074
2075
|
'channel_transaction_upserted',
|
|
2075
2076
|
'channel_transaction_deleted',
|
|
2077
|
+
'channel_transaction_deleted_v2',
|
|
2076
2078
|
'channel_statement_upserted',
|
|
2077
2079
|
'channel_statement_deleted',
|
|
2078
2080
|
'attribute_upserted',
|
|
@@ -2350,8 +2352,19 @@ var factories = {
|
|
|
2350
2352
|
'unsupported_currency',
|
|
2351
2353
|
]); },
|
|
2352
2354
|
'io.flow.v0.enums.merchant_of_record': function () { return faker.random.arrayElement(['flow', 'organization']); },
|
|
2355
|
+
'io.flow.v0.enums.merchant_rejected_reason': function () { return faker.random.arrayElement([
|
|
2356
|
+
'merchant_ubo_is_pep',
|
|
2357
|
+
'merchant_catalog_is_unsupportable',
|
|
2358
|
+
'merchant_failed_kyb_review',
|
|
2359
|
+
]); },
|
|
2353
2360
|
'io.flow.v0.enums.method': function () { return faker.random.arrayElement(['post']); },
|
|
2354
2361
|
'io.flow.v0.enums.onboarding_application_status': function () { return faker.random.arrayElement(['to_do', 'in_progress', 'on_hold', 'rejected', 'accepted']); },
|
|
2362
|
+
'io.flow.v0.enums.onboarding_blocked_reason': function () { return faker.random.arrayElement([
|
|
2363
|
+
'street_address_is_blank_3pl',
|
|
2364
|
+
'street_address_is_po_box_3pl',
|
|
2365
|
+
'business_street_address_is_blank',
|
|
2366
|
+
'business_street_address_is_po_box',
|
|
2367
|
+
]); },
|
|
2355
2368
|
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker.random.arrayElement([
|
|
2356
2369
|
'accessories',
|
|
2357
2370
|
'animals_and_pet_supplies',
|
|
@@ -2729,6 +2742,7 @@ var factories = {
|
|
|
2729
2742
|
'other_adjustment',
|
|
2730
2743
|
'tax_adjustment',
|
|
2731
2744
|
'channel',
|
|
2745
|
+
'channel_billed',
|
|
2732
2746
|
'order_service',
|
|
2733
2747
|
'virtual_card_capture',
|
|
2734
2748
|
'virtual_card_refund',
|
|
@@ -3123,6 +3137,10 @@ var factories = {
|
|
|
3123
3137
|
validation_url: factories.string(),
|
|
3124
3138
|
display_name: factories.string(),
|
|
3125
3139
|
}); },
|
|
3140
|
+
'io.flow.v0.models.application_received': function () { return ({
|
|
3141
|
+
discriminator: 'application_received',
|
|
3142
|
+
placeholder: factories.boolean(),
|
|
3143
|
+
}); },
|
|
3126
3144
|
'io.flow.v0.models.at_cost': function () { return ({
|
|
3127
3145
|
discriminator: 'at_cost',
|
|
3128
3146
|
ignore: factories.string(),
|
|
@@ -4054,6 +4072,13 @@ var factories = {
|
|
|
4054
4072
|
channel_id: factories.string(),
|
|
4055
4073
|
channel_transaction: factories['io.flow.v0.models.channel_transaction'](),
|
|
4056
4074
|
}); },
|
|
4075
|
+
'io.flow.v0.models.channel_transaction_deleted_v2': function () { return ({
|
|
4076
|
+
discriminator: 'channel_transaction_deleted_v2',
|
|
4077
|
+
event_id: factories.string(),
|
|
4078
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4079
|
+
channel_id: factories.string(),
|
|
4080
|
+
id: factories.string(),
|
|
4081
|
+
}); },
|
|
4057
4082
|
'io.flow.v0.models.channel_transaction_upserted': function () { return ({
|
|
4058
4083
|
discriminator: 'channel_transaction_upserted',
|
|
4059
4084
|
event_id: factories.string(),
|
|
@@ -5878,6 +5903,10 @@ var factories = {
|
|
|
5878
5903
|
type: factories['io.flow.v0.enums.change_type'](),
|
|
5879
5904
|
'import': factories['io.flow.v0.models.import'](),
|
|
5880
5905
|
}); },
|
|
5906
|
+
'io.flow.v0.models.in_compliance_review': function () { return ({
|
|
5907
|
+
discriminator: 'in_compliance_review',
|
|
5908
|
+
placeholder: factories.boolean(),
|
|
5909
|
+
}); },
|
|
5881
5910
|
'io.flow.v0.models.inbound_carton_fee': function () { return ({
|
|
5882
5911
|
discriminator: 'inbound_carton_fee',
|
|
5883
5912
|
amount: factories['io.flow.v0.models.money'](),
|
|
@@ -6660,6 +6689,10 @@ var factories = {
|
|
|
6660
6689
|
type: factories['io.flow.v0.enums.change_type'](),
|
|
6661
6690
|
membership: factories['io.flow.v0.models.membership'](),
|
|
6662
6691
|
}); },
|
|
6692
|
+
'io.flow.v0.models.merchant_activated': function () { return ({
|
|
6693
|
+
discriminator: 'merchant_activated',
|
|
6694
|
+
placeholder: factories.boolean(),
|
|
6695
|
+
}); },
|
|
6663
6696
|
'io.flow.v0.models.merchant_application_deleted': function () { return ({
|
|
6664
6697
|
discriminator: 'merchant_application_deleted',
|
|
6665
6698
|
event_id: factories.string(),
|
|
@@ -6753,6 +6786,11 @@ var factories = {
|
|
|
6753
6786
|
postal: factories.string(),
|
|
6754
6787
|
country: factories.string(),
|
|
6755
6788
|
}); },
|
|
6789
|
+
'io.flow.v0.models.merchant_rejected': function () { return ({
|
|
6790
|
+
discriminator: 'merchant_rejected',
|
|
6791
|
+
reason: factories['io.flow.v0.enums.merchant_rejected_reason'](),
|
|
6792
|
+
description: factories.string(),
|
|
6793
|
+
}); },
|
|
6756
6794
|
'io.flow.v0.models.money': function () { return ({
|
|
6757
6795
|
amount: factories.double(),
|
|
6758
6796
|
currency: factories.string(),
|
|
@@ -6833,6 +6871,10 @@ var factories = {
|
|
|
6833
6871
|
id: factories.string(),
|
|
6834
6872
|
status: factories['io.flow.v0.enums.organization_status'](),
|
|
6835
6873
|
}); },
|
|
6874
|
+
'io.flow.v0.models.onboarding_state_transition': function () { return ({
|
|
6875
|
+
state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
6876
|
+
started_at: factories.date_time_iso_8601(),
|
|
6877
|
+
}); },
|
|
6836
6878
|
'io.flow.v0.models.online_authorization': function () { return ({
|
|
6837
6879
|
discriminator: 'online_authorization',
|
|
6838
6880
|
id: factories.string(),
|
|
@@ -7625,6 +7667,11 @@ var factories = {
|
|
|
7625
7667
|
status: factories['io.flow.v0.enums.organization_status'](),
|
|
7626
7668
|
type: factories['io.flow.v0.enums.organization_type'](),
|
|
7627
7669
|
}); },
|
|
7670
|
+
'io.flow.v0.models.organization_onboarding_state': function () { return ({
|
|
7671
|
+
organization: factories['io.flow.v0.models.organization_reference'](),
|
|
7672
|
+
transitions: arrayOf(function () { return factories['io.flow.v0.models.onboarding_state_transition'](); }),
|
|
7673
|
+
current_state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
7674
|
+
}); },
|
|
7628
7675
|
'io.flow.v0.models.organization_put_form': function () { return ({
|
|
7629
7676
|
name: factories.string(),
|
|
7630
7677
|
environment: factories['io.flow.v0.enums.environment'](),
|
|
@@ -7712,6 +7759,20 @@ var factories = {
|
|
|
7712
7759
|
id: factories.string(),
|
|
7713
7760
|
organization: factories['io.flow.v0.models.organization_reference'](),
|
|
7714
7761
|
}); },
|
|
7762
|
+
'io.flow.v0.models.organization_transaction_deleted': function () { return ({
|
|
7763
|
+
discriminator: 'organization_transaction_deleted',
|
|
7764
|
+
event_id: factories.string(),
|
|
7765
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7766
|
+
organization: factories.string(),
|
|
7767
|
+
id: factories.string(),
|
|
7768
|
+
}); },
|
|
7769
|
+
'io.flow.v0.models.organization_transaction_upserted': function () { return ({
|
|
7770
|
+
discriminator: 'organization_transaction_upserted',
|
|
7771
|
+
event_id: factories.string(),
|
|
7772
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7773
|
+
organization: factories.string(),
|
|
7774
|
+
transaction: factories['io.flow.v0.models.transaction'](),
|
|
7775
|
+
}); },
|
|
7715
7776
|
'io.flow.v0.models.organization_upserted': function () { return ({
|
|
7716
7777
|
discriminator: 'organization_upserted',
|
|
7717
7778
|
event_id: factories.string(),
|
|
@@ -9491,6 +9552,18 @@ var factories = {
|
|
|
9491
9552
|
'io.flow.v0.models.session_visitor': function () { return ({
|
|
9492
9553
|
id: factories.string(),
|
|
9493
9554
|
}); },
|
|
9555
|
+
'io.flow.v0.models.setup_blocked': function () { return ({
|
|
9556
|
+
discriminator: 'setup_blocked',
|
|
9557
|
+
reasons: arrayOf(function () { return factories['io.flow.v0.enums.onboarding_blocked_reason'](); }),
|
|
9558
|
+
}); },
|
|
9559
|
+
'io.flow.v0.models.setup_completed': function () { return ({
|
|
9560
|
+
discriminator: 'setup_completed',
|
|
9561
|
+
placeholder: factories.boolean(),
|
|
9562
|
+
}); },
|
|
9563
|
+
'io.flow.v0.models.setup_in_progress': function () { return ({
|
|
9564
|
+
discriminator: 'setup_in_progress',
|
|
9565
|
+
placeholder: factories.boolean(),
|
|
9566
|
+
}); },
|
|
9494
9567
|
'io.flow.v0.models.shipment_window': function () { return ({
|
|
9495
9568
|
from: factories.long(),
|
|
9496
9569
|
to: factories.long(),
|
|
@@ -10684,13 +10757,6 @@ var factories = {
|
|
|
10684
10757
|
identifiers: objectOf(function () { return factories.string(); }),
|
|
10685
10758
|
created_at: factories.date_time_iso_8601(),
|
|
10686
10759
|
}); },
|
|
10687
|
-
'io.flow.v0.models.transaction_deleted': function () { return ({
|
|
10688
|
-
discriminator: 'transaction_deleted',
|
|
10689
|
-
event_id: factories.string(),
|
|
10690
|
-
timestamp: factories.date_time_iso_8601(),
|
|
10691
|
-
organization: factories.string(),
|
|
10692
|
-
transaction: factories['io.flow.v0.models.transaction'](),
|
|
10693
|
-
}); },
|
|
10694
10760
|
'io.flow.v0.models.transaction_upserted': function () { return ({
|
|
10695
10761
|
discriminator: 'transaction_upserted',
|
|
10696
10762
|
event_id: factories.string(),
|
|
@@ -11099,11 +11165,13 @@ var factories = {
|
|
|
11099
11165
|
'io.flow.v0.unions.event': function () {
|
|
11100
11166
|
var f = faker.random.arrayElement([
|
|
11101
11167
|
function () { return factories['io.flow.v0.models.transaction_upserted'](); },
|
|
11102
|
-
function () { return factories['io.flow.v0.models.
|
|
11168
|
+
function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); },
|
|
11169
|
+
function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); },
|
|
11103
11170
|
function () { return factories['io.flow.v0.models.statement_upserted'](); },
|
|
11104
11171
|
function () { return factories['io.flow.v0.models.statement_deleted'](); },
|
|
11105
11172
|
function () { return factories['io.flow.v0.models.channel_transaction_upserted'](); },
|
|
11106
11173
|
function () { return factories['io.flow.v0.models.channel_transaction_deleted'](); },
|
|
11174
|
+
function () { return factories['io.flow.v0.models.channel_transaction_deleted_v2'](); },
|
|
11107
11175
|
function () { return factories['io.flow.v0.models.channel_statement_upserted'](); },
|
|
11108
11176
|
function () { return factories['io.flow.v0.models.channel_statement_deleted'](); },
|
|
11109
11177
|
function () { return factories['io.flow.v0.models.attribute_upserted'](); },
|
|
@@ -11447,6 +11515,18 @@ var factories = {
|
|
|
11447
11515
|
]);
|
|
11448
11516
|
return f();
|
|
11449
11517
|
},
|
|
11518
|
+
'io.flow.v0.unions.onboarding_state': function () {
|
|
11519
|
+
var f = faker.random.arrayElement([
|
|
11520
|
+
function () { return factories['io.flow.v0.models.application_received'](); },
|
|
11521
|
+
function () { return factories['io.flow.v0.models.in_compliance_review'](); },
|
|
11522
|
+
function () { return factories['io.flow.v0.models.setup_in_progress'](); },
|
|
11523
|
+
function () { return factories['io.flow.v0.models.merchant_rejected'](); },
|
|
11524
|
+
function () { return factories['io.flow.v0.models.setup_blocked'](); },
|
|
11525
|
+
function () { return factories['io.flow.v0.models.setup_completed'](); },
|
|
11526
|
+
function () { return factories['io.flow.v0.models.merchant_activated'](); },
|
|
11527
|
+
]);
|
|
11528
|
+
return f();
|
|
11529
|
+
},
|
|
11450
11530
|
'io.flow.v0.unions.online_authorization_details': function () {
|
|
11451
11531
|
var f = faker.random.arrayElement([
|
|
11452
11532
|
function () { return factories['io.flow.v0.models.cryptopay_authorization_details'](); },
|
|
@@ -11863,6 +11943,7 @@ export var makeAmountMargin = function () { return factories['io.flow.v0.models.
|
|
|
11863
11943
|
export var makeAmountMarginForm = function () { return factories['io.flow.v0.models.amount_margin_form'](); };
|
|
11864
11944
|
export var makeAnalyticsExportType = function () { return factories['io.flow.v0.models.analytics_export_type'](); };
|
|
11865
11945
|
export var makeApplePayMerchantValidationPayload = function () { return factories['io.flow.v0.models.apple_pay_merchant_validation_payload'](); };
|
|
11946
|
+
export var makeApplicationReceived = function () { return factories['io.flow.v0.models.application_received'](); };
|
|
11866
11947
|
export var makeAtCost = function () { return factories['io.flow.v0.models.at_cost'](); };
|
|
11867
11948
|
export var makeAttachment = function () { return factories['io.flow.v0.models.attachment'](); };
|
|
11868
11949
|
export var makeAttachmentType = function () { return factories['io.flow.v0.enums.attachment_type'](); };
|
|
@@ -12040,6 +12121,7 @@ export var makeChannelTokenForm = function () { return factories['io.flow.v0.mod
|
|
|
12040
12121
|
export var makeChannelTokenReference = function () { return factories['io.flow.v0.models.channel_token_reference'](); };
|
|
12041
12122
|
export var makeChannelTransaction = function () { return factories['io.flow.v0.models.channel_transaction'](); };
|
|
12042
12123
|
export var makeChannelTransactionDeleted = function () { return factories['io.flow.v0.models.channel_transaction_deleted'](); };
|
|
12124
|
+
export var makeChannelTransactionDeletedV2 = function () { return factories['io.flow.v0.models.channel_transaction_deleted_v2'](); };
|
|
12043
12125
|
export var makeChannelTransactionUpserted = function () { return factories['io.flow.v0.models.channel_transaction_upserted'](); };
|
|
12044
12126
|
export var makeChannelUpserted = function () { return factories['io.flow.v0.models.channel_upserted'](); };
|
|
12045
12127
|
export var makeChannelViesRegistration = function () { return factories['io.flow.v0.models.channel_vies_registration'](); };
|
|
@@ -12428,6 +12510,7 @@ export var makeImportTemplateExample = function () { return factories['io.flow.v
|
|
|
12428
12510
|
export var makeImportTemplateForm = function () { return factories['io.flow.v0.models.import_template_form'](); };
|
|
12429
12511
|
export var makeImportType = function () { return factories['io.flow.v0.enums.import_type'](); };
|
|
12430
12512
|
export var makeImportVersion = function () { return factories['io.flow.v0.models.import_version'](); };
|
|
12513
|
+
export var makeInComplianceReview = function () { return factories['io.flow.v0.models.in_compliance_review'](); };
|
|
12431
12514
|
export var makeInboundCartonFee = function () { return factories['io.flow.v0.models.inbound_carton_fee'](); };
|
|
12432
12515
|
export var makeIncludedLevies = function () { return factories['io.flow.v0.models.included_levies'](); };
|
|
12433
12516
|
export var makeIncludedLevyKey = function () { return factories['io.flow.v0.enums.included_levy_key'](); };
|
|
@@ -12577,6 +12660,7 @@ export var makeMembershipForm = function () { return factories['io.flow.v0.model
|
|
|
12577
12660
|
export var makeMembershipPutForm = function () { return factories['io.flow.v0.models.membership_put_form'](); };
|
|
12578
12661
|
export var makeMembershipUpsertedV2 = function () { return factories['io.flow.v0.models.membership_upserted_v2'](); };
|
|
12579
12662
|
export var makeMembershipVersion = function () { return factories['io.flow.v0.models.membership_version'](); };
|
|
12663
|
+
export var makeMerchantActivated = function () { return factories['io.flow.v0.models.merchant_activated'](); };
|
|
12580
12664
|
export var makeMerchantApplication = function () { return factories['io.flow.v0.unions.merchant_application'](); };
|
|
12581
12665
|
export var makeMerchantApplicationDeleted = function () { return factories['io.flow.v0.models.merchant_application_deleted'](); };
|
|
12582
12666
|
export var makeMerchantApplicationForm = function () { return factories['io.flow.v0.unions.merchant_application_form'](); };
|
|
@@ -12598,6 +12682,8 @@ export var makeMerchantOfRecordEntity = function () { return factories['io.flow.
|
|
|
12598
12682
|
export var makeMerchantOfRecordEntityRegistration = function () { return factories['io.flow.v0.models.merchant_of_record_entity_registration'](); };
|
|
12599
12683
|
export var makeMerchantOfRecordPaymentForm = function () { return factories['io.flow.v0.models.merchant_of_record_payment_form'](); };
|
|
12600
12684
|
export var makeMerchantOnboardingAddress = function () { return factories['io.flow.v0.models.merchant_onboarding_address'](); };
|
|
12685
|
+
export var makeMerchantRejected = function () { return factories['io.flow.v0.models.merchant_rejected'](); };
|
|
12686
|
+
export var makeMerchantRejectedReason = function () { return factories['io.flow.v0.enums.merchant_rejected_reason'](); };
|
|
12601
12687
|
export var makeMethod = function () { return factories['io.flow.v0.enums.method'](); };
|
|
12602
12688
|
export var makeMoney = function () { return factories['io.flow.v0.models.money'](); };
|
|
12603
12689
|
export var makeMoneyWithBase = function () { return factories['io.flow.v0.models.money_with_base'](); };
|
|
@@ -12613,10 +12699,13 @@ export var makeNotificationDeletedV2 = function () { return factories['io.flow.v
|
|
|
12613
12699
|
export var makeNotificationUpsertedV2 = function () { return factories['io.flow.v0.models.notification_upserted_v2'](); };
|
|
12614
12700
|
export var makeNumberRange = function () { return factories['io.flow.v0.models.number_range'](); };
|
|
12615
12701
|
export var makeOnboardingApplicationStatus = function () { return factories['io.flow.v0.enums.onboarding_application_status'](); };
|
|
12702
|
+
export var makeOnboardingBlockedReason = function () { return factories['io.flow.v0.enums.onboarding_blocked_reason'](); };
|
|
12616
12703
|
export var makeOnboardingMerchantPickupWindow = function () { return factories['io.flow.v0.models.onboarding_merchant_pickup_window'](); };
|
|
12617
12704
|
export var makeOnboardingMerchantScheduledPickup = function () { return factories['io.flow.v0.models.onboarding_merchant_scheduled_pickup'](); };
|
|
12618
12705
|
export var makeOnboardingMerchantTime = function () { return factories['io.flow.v0.models.onboarding_merchant_time'](); };
|
|
12619
12706
|
export var makeOnboardingOrganizationReference = function () { return factories['io.flow.v0.models.onboarding_organization_reference'](); };
|
|
12707
|
+
export var makeOnboardingState = function () { return factories['io.flow.v0.unions.onboarding_state'](); };
|
|
12708
|
+
export var makeOnboardingStateTransition = function () { return factories['io.flow.v0.models.onboarding_state_transition'](); };
|
|
12620
12709
|
export var makeOnboardingTradeSector = function () { return factories['io.flow.v0.enums.onboarding_trade_sector'](); };
|
|
12621
12710
|
export var makeOnlineAuthorization = function () { return factories['io.flow.v0.models.online_authorization'](); };
|
|
12622
12711
|
export var makeOnlineAuthorizationDeletedV2 = function () { return factories['io.flow.v0.models.online_authorization_deleted_v2'](); };
|
|
@@ -12765,6 +12854,7 @@ export var makeOrganizationDefaults = function () { return factories['io.flow.v0
|
|
|
12765
12854
|
export var makeOrganizationDeleted = function () { return factories['io.flow.v0.models.organization_deleted'](); };
|
|
12766
12855
|
export var makeOrganizationDeletedV2 = function () { return factories['io.flow.v0.models.organization_deleted_v2'](); };
|
|
12767
12856
|
export var makeOrganizationForm = function () { return factories['io.flow.v0.models.organization_form'](); };
|
|
12857
|
+
export var makeOrganizationOnboardingState = function () { return factories['io.flow.v0.models.organization_onboarding_state'](); };
|
|
12768
12858
|
export var makeOrganizationPaymentMethodTag = function () { return factories['io.flow.v0.enums.organization_payment_method_tag'](); };
|
|
12769
12859
|
export var makeOrganizationPutForm = function () { return factories['io.flow.v0.models.organization_put_form'](); };
|
|
12770
12860
|
export var makeOrganizationRatesData = function () { return factories['io.flow.v0.models.organization_rates_data'](); };
|
|
@@ -12780,6 +12870,8 @@ export var makeOrganizationTokenFormV2 = function () { return factories['io.flow
|
|
|
12780
12870
|
export var makeOrganizationTokenReference = function () { return factories['io.flow.v0.models.organization_token_reference'](); };
|
|
12781
12871
|
export var makeOrganizationTokenV2 = function () { return factories['io.flow.v0.models.organization_token_v2'](); };
|
|
12782
12872
|
export var makeOrganizationTokenV2Reference = function () { return factories['io.flow.v0.models.organization_token_v2_reference'](); };
|
|
12873
|
+
export var makeOrganizationTransactionDeleted = function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); };
|
|
12874
|
+
export var makeOrganizationTransactionUpserted = function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); };
|
|
12783
12875
|
export var makeOrganizationType = function () { return factories['io.flow.v0.enums.organization_type'](); };
|
|
12784
12876
|
export var makeOrganizationUpserted = function () { return factories['io.flow.v0.models.organization_upserted'](); };
|
|
12785
12877
|
export var makeOrganizationUpsertedV2 = function () { return factories['io.flow.v0.models.organization_upserted_v2'](); };
|
|
@@ -13144,6 +13236,9 @@ export var makeSessionReference = function () { return factories['io.flow.v0.mod
|
|
|
13144
13236
|
export var makeSessionVisit = function () { return factories['io.flow.v0.models.session_visit'](); };
|
|
13145
13237
|
export var makeSessionVisitor = function () { return factories['io.flow.v0.models.session_visitor'](); };
|
|
13146
13238
|
export var makeSettlement = function () { return factories['io.flow.v0.unions.settlement'](); };
|
|
13239
|
+
export var makeSetupBlocked = function () { return factories['io.flow.v0.models.setup_blocked'](); };
|
|
13240
|
+
export var makeSetupCompleted = function () { return factories['io.flow.v0.models.setup_completed'](); };
|
|
13241
|
+
export var makeSetupInProgress = function () { return factories['io.flow.v0.models.setup_in_progress'](); };
|
|
13147
13242
|
export var makeShipmentIntegrationType = function () { return factories['io.flow.v0.enums.shipment_integration_type'](); };
|
|
13148
13243
|
export var makeShipmentRecipient = function () { return factories['io.flow.v0.enums.shipment_recipient'](); };
|
|
13149
13244
|
export var makeShipmentWindow = function () { return factories['io.flow.v0.models.shipment_window'](); };
|
|
@@ -13362,7 +13457,6 @@ export var makeTradeAgreementDuty = function () { return factories['io.flow.v0.m
|
|
|
13362
13457
|
export var makeTradeAgreementName = function () { return factories['io.flow.v0.enums.trade_agreement_name'](); };
|
|
13363
13458
|
export var makeTradeAgreementStatus = function () { return factories['io.flow.v0.enums.trade_agreement_status'](); };
|
|
13364
13459
|
export var makeTransaction = function () { return factories['io.flow.v0.models.transaction'](); };
|
|
13365
|
-
export var makeTransactionDeleted = function () { return factories['io.flow.v0.models.transaction_deleted'](); };
|
|
13366
13460
|
export var makeTransactionSource = function () { return factories['io.flow.v0.enums.transaction_source'](); };
|
|
13367
13461
|
export var makeTransactionUpserted = function () { return factories['io.flow.v0.models.transaction_upserted'](); };
|
|
13368
13462
|
export var makeTransitEstimate = function () { return factories['io.flow.v0.models.transit_estimate'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare const makeAmountMargin: () => io.flow.v0.models.AmountMargin;
|
|
|
63
63
|
export declare const makeAmountMarginForm: () => io.flow.v0.models.AmountMarginForm;
|
|
64
64
|
export declare const makeAnalyticsExportType: () => io.flow.v0.models.AnalyticsExportType;
|
|
65
65
|
export declare const makeApplePayMerchantValidationPayload: () => io.flow.v0.models.ApplePayMerchantValidationPayload;
|
|
66
|
+
export declare const makeApplicationReceived: () => io.flow.v0.models.ApplicationReceived;
|
|
66
67
|
export declare const makeAtCost: () => io.flow.v0.models.AtCost;
|
|
67
68
|
export declare const makeAttachment: () => io.flow.v0.models.Attachment;
|
|
68
69
|
export declare const makeAttachmentType: () => "csv";
|
|
@@ -240,6 +241,7 @@ export declare const makeChannelTokenForm: () => io.flow.v0.models.ChannelTokenF
|
|
|
240
241
|
export declare const makeChannelTokenReference: () => io.flow.v0.models.ChannelTokenReference;
|
|
241
242
|
export declare const makeChannelTransaction: () => io.flow.v0.models.ChannelTransaction;
|
|
242
243
|
export declare const makeChannelTransactionDeleted: () => io.flow.v0.models.ChannelTransactionDeleted;
|
|
244
|
+
export declare const makeChannelTransactionDeletedV2: () => io.flow.v0.models.ChannelTransactionDeletedV2;
|
|
243
245
|
export declare const makeChannelTransactionUpserted: () => io.flow.v0.models.ChannelTransactionUpserted;
|
|
244
246
|
export declare const makeChannelUpserted: () => io.flow.v0.models.ChannelUpserted;
|
|
245
247
|
export declare const makeChannelViesRegistration: () => io.flow.v0.models.ChannelViesRegistration;
|
|
@@ -628,6 +630,7 @@ export declare const makeImportTemplateExample: () => io.flow.v0.models.ImportTe
|
|
|
628
630
|
export declare const makeImportTemplateForm: () => io.flow.v0.models.ImportTemplateForm;
|
|
629
631
|
export declare const makeImportType: () => io.flow.v0.enums.ImportType;
|
|
630
632
|
export declare const makeImportVersion: () => io.flow.v0.models.ImportVersion;
|
|
633
|
+
export declare const makeInComplianceReview: () => io.flow.v0.models.InComplianceReview;
|
|
631
634
|
export declare const makeInboundCartonFee: () => io.flow.v0.models.InboundCartonFee;
|
|
632
635
|
export declare const makeIncludedLevies: () => io.flow.v0.models.IncludedLevies;
|
|
633
636
|
export declare const makeIncludedLevyKey: () => io.flow.v0.enums.IncludedLevyKey;
|
|
@@ -777,6 +780,7 @@ export declare const makeMembershipForm: () => io.flow.v0.models.MembershipForm;
|
|
|
777
780
|
export declare const makeMembershipPutForm: () => io.flow.v0.models.MembershipPutForm;
|
|
778
781
|
export declare const makeMembershipUpsertedV2: () => io.flow.v0.models.MembershipUpsertedV2;
|
|
779
782
|
export declare const makeMembershipVersion: () => io.flow.v0.models.MembershipVersion;
|
|
783
|
+
export declare const makeMerchantActivated: () => io.flow.v0.models.MerchantActivated;
|
|
780
784
|
export declare const makeMerchantApplication: () => io.flow.v0.models.ShopifyMerchantApplication;
|
|
781
785
|
export declare const makeMerchantApplicationDeleted: () => io.flow.v0.models.MerchantApplicationDeleted;
|
|
782
786
|
export declare const makeMerchantApplicationForm: () => io.flow.v0.models.ShopifyMerchantApplicationForm;
|
|
@@ -798,6 +802,8 @@ export declare const makeMerchantOfRecordEntity: () => io.flow.v0.models.Merchan
|
|
|
798
802
|
export declare const makeMerchantOfRecordEntityRegistration: () => io.flow.v0.models.MerchantOfRecordEntityRegistration;
|
|
799
803
|
export declare const makeMerchantOfRecordPaymentForm: () => io.flow.v0.models.MerchantOfRecordPaymentForm;
|
|
800
804
|
export declare const makeMerchantOnboardingAddress: () => io.flow.v0.models.MerchantOnboardingAddress;
|
|
805
|
+
export declare const makeMerchantRejected: () => io.flow.v0.models.MerchantRejected;
|
|
806
|
+
export declare const makeMerchantRejectedReason: () => io.flow.v0.enums.MerchantRejectedReason;
|
|
801
807
|
export declare const makeMethod: () => "post";
|
|
802
808
|
export declare const makeMoney: () => io.flow.v0.models.Money;
|
|
803
809
|
export declare const makeMoneyWithBase: () => io.flow.v0.models.MoneyWithBase;
|
|
@@ -813,10 +819,13 @@ export declare const makeNotificationDeletedV2: () => io.flow.v0.models.Notifica
|
|
|
813
819
|
export declare const makeNotificationUpsertedV2: () => io.flow.v0.models.NotificationUpsertedV2;
|
|
814
820
|
export declare const makeNumberRange: () => io.flow.v0.models.NumberRange;
|
|
815
821
|
export declare const makeOnboardingApplicationStatus: () => io.flow.v0.enums.OnboardingApplicationStatus;
|
|
822
|
+
export declare const makeOnboardingBlockedReason: () => io.flow.v0.enums.OnboardingBlockedReason;
|
|
816
823
|
export declare const makeOnboardingMerchantPickupWindow: () => io.flow.v0.models.OnboardingMerchantPickupWindow;
|
|
817
824
|
export declare const makeOnboardingMerchantScheduledPickup: () => io.flow.v0.models.OnboardingMerchantScheduledPickup;
|
|
818
825
|
export declare const makeOnboardingMerchantTime: () => io.flow.v0.models.OnboardingMerchantTime;
|
|
819
826
|
export declare const makeOnboardingOrganizationReference: () => io.flow.v0.models.OnboardingOrganizationReference;
|
|
827
|
+
export declare const makeOnboardingState: () => io.flow.v0.unions.OnboardingState;
|
|
828
|
+
export declare const makeOnboardingStateTransition: () => io.flow.v0.models.OnboardingStateTransition;
|
|
820
829
|
export declare const makeOnboardingTradeSector: () => io.flow.v0.enums.OnboardingTradeSector;
|
|
821
830
|
export declare const makeOnlineAuthorization: () => io.flow.v0.models.OnlineAuthorization;
|
|
822
831
|
export declare const makeOnlineAuthorizationDeletedV2: () => io.flow.v0.models.OnlineAuthorizationDeletedV2;
|
|
@@ -965,6 +974,7 @@ export declare const makeOrganizationDefaults: () => io.flow.v0.models.Organizat
|
|
|
965
974
|
export declare const makeOrganizationDeleted: () => io.flow.v0.models.OrganizationDeleted;
|
|
966
975
|
export declare const makeOrganizationDeletedV2: () => io.flow.v0.models.OrganizationDeletedV2;
|
|
967
976
|
export declare const makeOrganizationForm: () => io.flow.v0.models.OrganizationForm;
|
|
977
|
+
export declare const makeOrganizationOnboardingState: () => io.flow.v0.models.OrganizationOnboardingState;
|
|
968
978
|
export declare const makeOrganizationPaymentMethodTag: () => "deny";
|
|
969
979
|
export declare const makeOrganizationPutForm: () => io.flow.v0.models.OrganizationPutForm;
|
|
970
980
|
export declare const makeOrganizationRatesData: () => io.flow.v0.models.OrganizationRatesData;
|
|
@@ -980,6 +990,8 @@ export declare const makeOrganizationTokenFormV2: () => io.flow.v0.models.Organi
|
|
|
980
990
|
export declare const makeOrganizationTokenReference: () => io.flow.v0.models.OrganizationTokenReference;
|
|
981
991
|
export declare const makeOrganizationTokenV2: () => io.flow.v0.models.OrganizationTokenV2;
|
|
982
992
|
export declare const makeOrganizationTokenV2Reference: () => io.flow.v0.models.OrganizationTokenV2Reference;
|
|
993
|
+
export declare const makeOrganizationTransactionDeleted: () => io.flow.v0.models.OrganizationTransactionDeleted;
|
|
994
|
+
export declare const makeOrganizationTransactionUpserted: () => io.flow.v0.models.OrganizationTransactionUpserted;
|
|
983
995
|
export declare const makeOrganizationType: () => io.flow.v0.enums.OrganizationType;
|
|
984
996
|
export declare const makeOrganizationUpserted: () => io.flow.v0.models.OrganizationUpserted;
|
|
985
997
|
export declare const makeOrganizationUpsertedV2: () => io.flow.v0.models.OrganizationUpsertedV2;
|
|
@@ -1344,6 +1356,9 @@ export declare const makeSessionReference: () => io.flow.v0.models.SessionRefere
|
|
|
1344
1356
|
export declare const makeSessionVisit: () => io.flow.v0.models.SessionVisit;
|
|
1345
1357
|
export declare const makeSessionVisitor: () => io.flow.v0.models.SessionVisitor;
|
|
1346
1358
|
export declare const makeSettlement: () => io.flow.v0.unions.Settlement;
|
|
1359
|
+
export declare const makeSetupBlocked: () => io.flow.v0.models.SetupBlocked;
|
|
1360
|
+
export declare const makeSetupCompleted: () => io.flow.v0.models.SetupCompleted;
|
|
1361
|
+
export declare const makeSetupInProgress: () => io.flow.v0.models.SetupInProgress;
|
|
1347
1362
|
export declare const makeShipmentIntegrationType: () => io.flow.v0.enums.ShipmentIntegrationType;
|
|
1348
1363
|
export declare const makeShipmentRecipient: () => io.flow.v0.enums.ShipmentRecipient;
|
|
1349
1364
|
export declare const makeShipmentWindow: () => io.flow.v0.models.ShipmentWindow;
|
|
@@ -1562,7 +1577,6 @@ export declare const makeTradeAgreementDuty: () => io.flow.v0.models.TradeAgreem
|
|
|
1562
1577
|
export declare const makeTradeAgreementName: () => io.flow.v0.enums.TradeAgreementName;
|
|
1563
1578
|
export declare const makeTradeAgreementStatus: () => io.flow.v0.enums.TradeAgreementStatus;
|
|
1564
1579
|
export declare const makeTransaction: () => io.flow.v0.models.Transaction;
|
|
1565
|
-
export declare const makeTransactionDeleted: () => io.flow.v0.models.TransactionDeleted;
|
|
1566
1580
|
export declare const makeTransactionSource: () => io.flow.v0.enums.TransactionSource;
|
|
1567
1581
|
export declare const makeTransactionUpserted: () => io.flow.v0.models.TransactionUpserted;
|
|
1568
1582
|
export declare const makeTransitEstimate: () => io.flow.v0.models.TransitEstimate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"description": "Flow API mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@faker-js/faker": "^6.2.0",
|
|
37
37
|
"@flowio/api-types": "*"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "475458c8e90ba7ef707144894938180f4237ff3f"
|
|
40
40
|
}
|