@flowio/api-factories 0.0.1 → 0.0.3
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 +22 -77
- package/dist/esm/api.js +13290 -0
- package/dist/types/api.d.ts +1506 -0
- package/package.json +3 -3
- package/src/api.ts +9 -63
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Flow API mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"module": "dist/esm/api.js",
|
|
22
22
|
"types": "dist/types/api.d.ts",
|
|
23
23
|
"files": [
|
|
24
|
-
"
|
|
24
|
+
"dist",
|
|
25
25
|
"src"
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@faker-js/faker": "^6.2.0",
|
|
37
37
|
"@flowio/api-types": "file:../api-types"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "b219238400a0d75e42c2c633fcd02e44f8b6bd38"
|
|
40
40
|
}
|
package/src/api.ts
CHANGED
|
@@ -2284,6 +2284,9 @@ const factories = {
|
|
|
2284
2284
|
transfer: factories.string(),
|
|
2285
2285
|
transfer_group: factories.string(),
|
|
2286
2286
|
payment_intent: factories.string(),
|
|
2287
|
+
calculated_statement_descriptor: factories.string(),
|
|
2288
|
+
statement_descriptor: factories.string(),
|
|
2289
|
+
payment_method_details: factories.object(),
|
|
2287
2290
|
}),
|
|
2288
2291
|
|
|
2289
2292
|
'io.flow.stripe.v0.models.charge_destination': (): io.flow.stripe.v0.models.ChargeDestination => ({
|
|
@@ -2331,6 +2334,9 @@ const factories = {
|
|
|
2331
2334
|
transfer: factories.string(),
|
|
2332
2335
|
transfer_group: factories.string(),
|
|
2333
2336
|
payment_intent: factories.string(),
|
|
2337
|
+
calculated_statement_descriptor: factories.string(),
|
|
2338
|
+
statement_descriptor: factories.string(),
|
|
2339
|
+
payment_method_details: factories.object(),
|
|
2334
2340
|
}),
|
|
2335
2341
|
|
|
2336
2342
|
'io.flow.stripe.v0.models.code_verification': (): io.flow.stripe.v0.models.CodeVerification => ({
|
|
@@ -3310,10 +3316,6 @@ const factories = {
|
|
|
3310
3316
|
'organization_deleted',
|
|
3311
3317
|
'organization_upserted_v2',
|
|
3312
3318
|
'organization_deleted_v2',
|
|
3313
|
-
'organization_short_id_upserted',
|
|
3314
|
-
'organization_short_id_deleted',
|
|
3315
|
-
'short_id_upserted',
|
|
3316
|
-
'short_id_deleted',
|
|
3317
3319
|
'organization_default_configurations_upserted',
|
|
3318
3320
|
'organization_default_configurations_deleted',
|
|
3319
3321
|
'ecommerce_platform_upserted',
|
|
@@ -3606,6 +3608,7 @@ const factories = {
|
|
|
3606
3608
|
'not_supported',
|
|
3607
3609
|
'fraudulent',
|
|
3608
3610
|
'error',
|
|
3611
|
+
'payment_checks_declined',
|
|
3609
3612
|
]),
|
|
3610
3613
|
|
|
3611
3614
|
'io.flow.v0.enums.payment_method_capability': (): io.flow.v0.enums.PaymentMethodCapability => faker.random.arrayElement(['credit', 'debit']),
|
|
@@ -3739,7 +3742,6 @@ const factories = {
|
|
|
3739
3742
|
'io.flow.v0.enums.shopify_grant': (): io.flow.v0.enums.ShopifyGrant => faker.random.arrayElement(['customer', 'discount', 'gift_card', 'metafield', 'order']),
|
|
3740
3743
|
'io.flow.v0.enums.shopify_localization_method': (): io.flow.v0.enums.ShopifyLocalizationMethod => faker.random.arrayElement(['api', 'ssr']),
|
|
3741
3744
|
'io.flow.v0.enums.shopify_sync_check': (): io.flow.v0.enums.ShopifySyncCheck => faker.random.arrayElement(['localized_variants', 'flow_variant_metafields']),
|
|
3742
|
-
'io.flow.v0.enums.short_id_source_key': (): io.flow.v0.enums.ShortIdSourceKey => faker.random.arrayElement(['channel', 'organization']),
|
|
3743
3745
|
'io.flow.v0.enums.sort_direction': (): io.flow.v0.enums.SortDirection => faker.random.arrayElement(['ascending', 'descending']),
|
|
3744
3746
|
'io.flow.v0.enums.strategy': (): io.flow.v0.enums.Strategy => faker.random.arrayElement(['range', 'from', 'to']),
|
|
3745
3747
|
'io.flow.v0.enums.subcatalog_item_status': (): io.flow.v0.enums.SubcatalogItemStatus => faker.random.arrayElement(['excluded', 'included', 'restricted']),
|
|
@@ -9202,26 +9204,6 @@ const factories = {
|
|
|
9202
9204
|
environment: factories['io.flow.v0.enums.environment'](),
|
|
9203
9205
|
}),
|
|
9204
9206
|
|
|
9205
|
-
'io.flow.v0.models.organization_short_id': (): io.flow.v0.models.OrganizationShortId => ({
|
|
9206
|
-
id: factories.string(),
|
|
9207
|
-
organization: factories['io.flow.v0.models.organization_reference'](),
|
|
9208
|
-
short_id: factories.string(),
|
|
9209
|
-
}),
|
|
9210
|
-
|
|
9211
|
-
'io.flow.v0.models.organization_short_id_deleted': (): io.flow.v0.models.OrganizationShortIdDeleted => ({
|
|
9212
|
-
discriminator: 'organization_short_id_deleted',
|
|
9213
|
-
event_id: factories.string(),
|
|
9214
|
-
timestamp: factories.date_time_iso_8601(),
|
|
9215
|
-
organization_short_id: factories['io.flow.v0.models.organization_short_id'](),
|
|
9216
|
-
}),
|
|
9217
|
-
|
|
9218
|
-
'io.flow.v0.models.organization_short_id_upserted': (): io.flow.v0.models.OrganizationShortIdUpserted => ({
|
|
9219
|
-
discriminator: 'organization_short_id_upserted',
|
|
9220
|
-
event_id: factories.string(),
|
|
9221
|
-
timestamp: factories.date_time_iso_8601(),
|
|
9222
|
-
organization_short_id: factories['io.flow.v0.models.organization_short_id'](),
|
|
9223
|
-
}),
|
|
9224
|
-
|
|
9225
9207
|
'io.flow.v0.models.organization_summary': (): io.flow.v0.models.OrganizationSummary => ({
|
|
9226
9208
|
id: factories.string(),
|
|
9227
9209
|
name: factories.string(),
|
|
@@ -11796,31 +11778,6 @@ const factories = {
|
|
|
11796
11778
|
status: factories['io.flow.v0.enums.item_availability_status'](),
|
|
11797
11779
|
}),
|
|
11798
11780
|
|
|
11799
|
-
'io.flow.v0.models.short_id': (): io.flow.v0.models.ShortId => ({
|
|
11800
|
-
id: factories.string(),
|
|
11801
|
-
source: factories['io.flow.v0.models.short_id_source'](),
|
|
11802
|
-
identifier: factories.string(),
|
|
11803
|
-
}),
|
|
11804
|
-
|
|
11805
|
-
'io.flow.v0.models.short_id_deleted': (): io.flow.v0.models.ShortIdDeleted => ({
|
|
11806
|
-
discriminator: 'short_id_deleted',
|
|
11807
|
-
event_id: factories.string(),
|
|
11808
|
-
timestamp: factories.date_time_iso_8601(),
|
|
11809
|
-
id: factories.string(),
|
|
11810
|
-
}),
|
|
11811
|
-
|
|
11812
|
-
'io.flow.v0.models.short_id_source': (): io.flow.v0.models.ShortIdSource => ({
|
|
11813
|
-
key: factories['io.flow.v0.enums.short_id_source_key'](),
|
|
11814
|
-
id: factories.string(),
|
|
11815
|
-
}),
|
|
11816
|
-
|
|
11817
|
-
'io.flow.v0.models.short_id_upserted': (): io.flow.v0.models.ShortIdUpserted => ({
|
|
11818
|
-
discriminator: 'short_id_upserted',
|
|
11819
|
-
event_id: factories.string(),
|
|
11820
|
-
timestamp: factories.date_time_iso_8601(),
|
|
11821
|
-
short_id: factories['io.flow.v0.models.short_id'](),
|
|
11822
|
-
}),
|
|
11823
|
-
|
|
11824
11781
|
'io.flow.v0.models.simple_permission_check': (): io.flow.v0.models.SimplePermissionCheck => ({
|
|
11825
11782
|
behaviors: arrayOf(() => factories['io.flow.v0.enums.flow_behavior']()),
|
|
11826
11783
|
}),
|
|
@@ -12457,7 +12414,8 @@ const factories = {
|
|
|
12457
12414
|
delivery_estimate: factories.date_time_iso_8601(),
|
|
12458
12415
|
description: factories.string(),
|
|
12459
12416
|
timestamp: factories.date_time_iso_8601(),
|
|
12460
|
-
|
|
12417
|
+
cost: factories['io.flow.v0.models.money'](),
|
|
12418
|
+
ratecard_owner: factories['io.flow.v0.enums.ratecard_owner'](),
|
|
12461
12419
|
}),
|
|
12462
12420
|
|
|
12463
12421
|
'io.flow.v0.models.tracking_label_summary': (): io.flow.v0.models.TrackingLabelSummary => ({
|
|
@@ -13103,10 +13061,6 @@ const factories = {
|
|
|
13103
13061
|
() => factories['io.flow.v0.models.organization_deleted'](),
|
|
13104
13062
|
() => factories['io.flow.v0.models.organization_upserted_v2'](),
|
|
13105
13063
|
() => factories['io.flow.v0.models.organization_deleted_v2'](),
|
|
13106
|
-
() => factories['io.flow.v0.models.organization_short_id_upserted'](),
|
|
13107
|
-
() => factories['io.flow.v0.models.organization_short_id_deleted'](),
|
|
13108
|
-
() => factories['io.flow.v0.models.short_id_upserted'](),
|
|
13109
|
-
() => factories['io.flow.v0.models.short_id_deleted'](),
|
|
13110
13064
|
() => factories['io.flow.v0.models.organization_default_configurations_upserted'](),
|
|
13111
13065
|
() => factories['io.flow.v0.models.organization_default_configurations_deleted'](),
|
|
13112
13066
|
() => factories['io.flow.v0.models.ecommerce_platform_upserted'](),
|
|
@@ -14656,9 +14610,6 @@ export const makeOrganizationRatesPublished = () => factories['io.flow.v0.models
|
|
|
14656
14610
|
export const makeOrganizationReference = () => factories['io.flow.v0.models.organization_reference']();
|
|
14657
14611
|
export const makeOrganizationSession = () => factories['io.flow.v0.models.organization_session']();
|
|
14658
14612
|
export const makeOrganizationSessionAuthorization = () => factories['io.flow.v0.models.organization_session_authorization']();
|
|
14659
|
-
export const makeOrganizationShortId = () => factories['io.flow.v0.models.organization_short_id']();
|
|
14660
|
-
export const makeOrganizationShortIdDeleted = () => factories['io.flow.v0.models.organization_short_id_deleted']();
|
|
14661
|
-
export const makeOrganizationShortIdUpserted = () => factories['io.flow.v0.models.organization_short_id_upserted']();
|
|
14662
14613
|
export const makeOrganizationStatus = () => factories['io.flow.v0.enums.organization_status']();
|
|
14663
14614
|
export const makeOrganizationSummary = () => factories['io.flow.v0.models.organization_summary']();
|
|
14664
14615
|
export const makeOrganizationToken = () => factories['io.flow.v0.models.organization_token']();
|
|
@@ -15091,11 +15042,6 @@ export const makeShopifySyncCheck = () => factories['io.flow.v0.enums.shopify_sy
|
|
|
15091
15042
|
export const makeShopifySyncStatus = () => factories['io.flow.v0.models.shopify_sync_status']();
|
|
15092
15043
|
export const makeShopifyVariantFlowMetafield = () => factories['io.flow.v0.models.shopify_variant_flow_metafield']();
|
|
15093
15044
|
export const makeShopifyVariantInventoryMetafield = () => factories['io.flow.v0.models.shopify_variant_inventory_metafield']();
|
|
15094
|
-
export const makeShortId = () => factories['io.flow.v0.models.short_id']();
|
|
15095
|
-
export const makeShortIdDeleted = () => factories['io.flow.v0.models.short_id_deleted']();
|
|
15096
|
-
export const makeShortIdSource = () => factories['io.flow.v0.models.short_id_source']();
|
|
15097
|
-
export const makeShortIdSourceKey = () => factories['io.flow.v0.enums.short_id_source_key']();
|
|
15098
|
-
export const makeShortIdUpserted = () => factories['io.flow.v0.models.short_id_upserted']();
|
|
15099
15045
|
export const makeSimplePermissionCheck = () => factories['io.flow.v0.models.simple_permission_check']();
|
|
15100
15046
|
export const makeSinglePackageShippingNotificationForm = () => factories['io.flow.v0.models.single_package_shipping_notification_form']();
|
|
15101
15047
|
export const makeSnapshotDeleted = () => factories['io.flow.v0.models.snapshot_deleted']();
|