@flowio/api-factories 0.0.114 → 0.0.116
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 +31 -1
- package/dist/esm/api.js +31 -1
- package/package.json +2 -2
- package/src/api.ts +43 -1
package/dist/cjs/api.js
CHANGED
|
@@ -187,6 +187,7 @@ var factories = {
|
|
|
187
187
|
'order_missing',
|
|
188
188
|
]); },
|
|
189
189
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': function () { return faker_1.default.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']); },
|
|
190
|
+
'io.flow.channel.internal.v0.enums.channel_service': function () { return faker_1.default.helpers.arrayElement(['payment', 'duty_tax_calculator', 'sellability', 'all']); },
|
|
190
191
|
'io.flow.channel.internal.v0.enums.order_payment_source_type': function () { return faker_1.default.helpers.arrayElement(['globale', 'third_party']); },
|
|
191
192
|
'io.flow.channel.internal.v0.models.channel_currency_form': function () { return ({
|
|
192
193
|
currency: factories.string(),
|
|
@@ -248,6 +249,29 @@ var factories = {
|
|
|
248
249
|
description: factories.string(),
|
|
249
250
|
rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
|
|
250
251
|
}); },
|
|
252
|
+
'io.flow.channel.internal.v0.models.channel_organization_domain': function () { return ({
|
|
253
|
+
internal: factories.string(),
|
|
254
|
+
'public': factories.string(),
|
|
255
|
+
}); },
|
|
256
|
+
'io.flow.channel.internal.v0.models.channel_organization_installation': function () { return ({
|
|
257
|
+
organization: factories['io.flow.channel.v0.models.channel_organization'](),
|
|
258
|
+
tokens: arrayOf(function () { return factories['io.flow.channel.internal.v0.models.channel_organization_token'](); }),
|
|
259
|
+
}); },
|
|
260
|
+
'io.flow.channel.internal.v0.models.channel_organization_installation_post_form': function () { return ({
|
|
261
|
+
form: factories['io.flow.channel.v0.models.channel_organization_form'](),
|
|
262
|
+
metadata: factories['io.flow.channel.internal.v0.models.channel_organization_metadata'](),
|
|
263
|
+
}); },
|
|
264
|
+
'io.flow.channel.internal.v0.models.channel_organization_metadata': function () { return ({
|
|
265
|
+
domain: factories['io.flow.channel.internal.v0.models.channel_organization_domain'](),
|
|
266
|
+
token: factories.string(),
|
|
267
|
+
}); },
|
|
268
|
+
'io.flow.channel.internal.v0.models.channel_organization_token': function () { return ({
|
|
269
|
+
token: factories['io.flow.channel.internal.v0.models.channel_organization_token_body'](),
|
|
270
|
+
service: factories['io.flow.channel.internal.v0.enums.channel_service'](),
|
|
271
|
+
}); },
|
|
272
|
+
'io.flow.channel.internal.v0.models.channel_organization_token_body': function () { return ({
|
|
273
|
+
cleartext: factories.string(),
|
|
274
|
+
}); },
|
|
251
275
|
'io.flow.channel.internal.v0.models.flow_channel_organization': function () { return ({
|
|
252
276
|
placeholder: factories.string(),
|
|
253
277
|
}); },
|
|
@@ -4135,6 +4159,11 @@ var factories = {
|
|
|
4135
4159
|
'duty_guarantee',
|
|
4136
4160
|
'mor',
|
|
4137
4161
|
'fraud',
|
|
4162
|
+
'tax',
|
|
4163
|
+
'duty',
|
|
4164
|
+
'tax_and_duty',
|
|
4165
|
+
'product',
|
|
4166
|
+
'tax_and_duty_fx_diff',
|
|
4138
4167
|
'fx',
|
|
4139
4168
|
'processing',
|
|
4140
4169
|
'rate_lock',
|
|
@@ -4143,7 +4172,7 @@ var factories = {
|
|
|
4143
4172
|
'sp',
|
|
4144
4173
|
]); },
|
|
4145
4174
|
'io.flow.v0.enums.flow_behavior': function () { return faker_1.default.helpers.arrayElement(['view_consumer_data']); },
|
|
4146
|
-
'io.flow.v0.enums.flow_entity': function () { return faker_1.default.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
4175
|
+
'io.flow.v0.enums.flow_entity': function () { return faker_1.default.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa', 'ge-can', 'ge-gbr', 'ge-irl']); },
|
|
4147
4176
|
'io.flow.v0.enums.flow_role': function () { return faker_1.default.helpers.arrayElement([
|
|
4148
4177
|
'organization_admin',
|
|
4149
4178
|
'organization_merchant',
|
|
@@ -6849,6 +6878,7 @@ var factories = {
|
|
|
6849
6878
|
delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
|
|
6850
6879
|
price: factories['io.flow.v0.models.price_with_base_and_details'](),
|
|
6851
6880
|
service: factories['io.flow.v0.models.service_summary'](),
|
|
6881
|
+
actual_service: factories['io.flow.v0.models.service_summary'](),
|
|
6852
6882
|
tier: factories['io.flow.v0.models.tier_summary'](),
|
|
6853
6883
|
window: factories['io.flow.v0.models.delivery_window'](),
|
|
6854
6884
|
rule_outcome: factories['io.flow.v0.unions.tier_rule_outcome'](),
|
package/dist/esm/api.js
CHANGED
|
@@ -147,6 +147,7 @@ var factories = {
|
|
|
147
147
|
'order_missing',
|
|
148
148
|
]); },
|
|
149
149
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': function () { return faker.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']); },
|
|
150
|
+
'io.flow.channel.internal.v0.enums.channel_service': function () { return faker.helpers.arrayElement(['payment', 'duty_tax_calculator', 'sellability', 'all']); },
|
|
150
151
|
'io.flow.channel.internal.v0.enums.order_payment_source_type': function () { return faker.helpers.arrayElement(['globale', 'third_party']); },
|
|
151
152
|
'io.flow.channel.internal.v0.models.channel_currency_form': function () { return ({
|
|
152
153
|
currency: factories.string(),
|
|
@@ -208,6 +209,29 @@ var factories = {
|
|
|
208
209
|
description: factories.string(),
|
|
209
210
|
rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
|
|
210
211
|
}); },
|
|
212
|
+
'io.flow.channel.internal.v0.models.channel_organization_domain': function () { return ({
|
|
213
|
+
internal: factories.string(),
|
|
214
|
+
'public': factories.string(),
|
|
215
|
+
}); },
|
|
216
|
+
'io.flow.channel.internal.v0.models.channel_organization_installation': function () { return ({
|
|
217
|
+
organization: factories['io.flow.channel.v0.models.channel_organization'](),
|
|
218
|
+
tokens: arrayOf(function () { return factories['io.flow.channel.internal.v0.models.channel_organization_token'](); }),
|
|
219
|
+
}); },
|
|
220
|
+
'io.flow.channel.internal.v0.models.channel_organization_installation_post_form': function () { return ({
|
|
221
|
+
form: factories['io.flow.channel.v0.models.channel_organization_form'](),
|
|
222
|
+
metadata: factories['io.flow.channel.internal.v0.models.channel_organization_metadata'](),
|
|
223
|
+
}); },
|
|
224
|
+
'io.flow.channel.internal.v0.models.channel_organization_metadata': function () { return ({
|
|
225
|
+
domain: factories['io.flow.channel.internal.v0.models.channel_organization_domain'](),
|
|
226
|
+
token: factories.string(),
|
|
227
|
+
}); },
|
|
228
|
+
'io.flow.channel.internal.v0.models.channel_organization_token': function () { return ({
|
|
229
|
+
token: factories['io.flow.channel.internal.v0.models.channel_organization_token_body'](),
|
|
230
|
+
service: factories['io.flow.channel.internal.v0.enums.channel_service'](),
|
|
231
|
+
}); },
|
|
232
|
+
'io.flow.channel.internal.v0.models.channel_organization_token_body': function () { return ({
|
|
233
|
+
cleartext: factories.string(),
|
|
234
|
+
}); },
|
|
211
235
|
'io.flow.channel.internal.v0.models.flow_channel_organization': function () { return ({
|
|
212
236
|
placeholder: factories.string(),
|
|
213
237
|
}); },
|
|
@@ -4095,6 +4119,11 @@ var factories = {
|
|
|
4095
4119
|
'duty_guarantee',
|
|
4096
4120
|
'mor',
|
|
4097
4121
|
'fraud',
|
|
4122
|
+
'tax',
|
|
4123
|
+
'duty',
|
|
4124
|
+
'tax_and_duty',
|
|
4125
|
+
'product',
|
|
4126
|
+
'tax_and_duty_fx_diff',
|
|
4098
4127
|
'fx',
|
|
4099
4128
|
'processing',
|
|
4100
4129
|
'rate_lock',
|
|
@@ -4103,7 +4132,7 @@ var factories = {
|
|
|
4103
4132
|
'sp',
|
|
4104
4133
|
]); },
|
|
4105
4134
|
'io.flow.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
|
|
4106
|
-
'io.flow.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
4135
|
+
'io.flow.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa', 'ge-can', 'ge-gbr', 'ge-irl']); },
|
|
4107
4136
|
'io.flow.v0.enums.flow_role': function () { return faker.helpers.arrayElement([
|
|
4108
4137
|
'organization_admin',
|
|
4109
4138
|
'organization_merchant',
|
|
@@ -6809,6 +6838,7 @@ var factories = {
|
|
|
6809
6838
|
delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
|
|
6810
6839
|
price: factories['io.flow.v0.models.price_with_base_and_details'](),
|
|
6811
6840
|
service: factories['io.flow.v0.models.service_summary'](),
|
|
6841
|
+
actual_service: factories['io.flow.v0.models.service_summary'](),
|
|
6812
6842
|
tier: factories['io.flow.v0.models.tier_summary'](),
|
|
6813
6843
|
window: factories['io.flow.v0.models.delivery_window'](),
|
|
6814
6844
|
rule_outcome: factories['io.flow.v0.unions.tier_rule_outcome'](),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.116",
|
|
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": "942e116995931225d013428a9da8237ec64c06be"
|
|
40
40
|
}
|
package/src/api.ts
CHANGED
|
@@ -176,6 +176,7 @@ const factories = {
|
|
|
176
176
|
]),
|
|
177
177
|
|
|
178
178
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_status': (): io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus => faker.helpers.arrayElement(['accepted', 'rejected', 'review', 'edit_review', 'edit_accepted']),
|
|
179
|
+
'io.flow.channel.internal.v0.enums.channel_service': (): io.flow.channel.internal.v0.enums.ChannelService => faker.helpers.arrayElement(['payment', 'duty_tax_calculator', 'sellability', 'all']),
|
|
179
180
|
'io.flow.channel.internal.v0.enums.order_payment_source_type': (): io.flow.channel.internal.v0.enums.OrderPaymentSourceType => faker.helpers.arrayElement(['globale', 'third_party']),
|
|
180
181
|
|
|
181
182
|
'io.flow.channel.internal.v0.models.channel_currency_form': (): io.flow.channel.internal.v0.models.ChannelCurrencyForm => ({
|
|
@@ -252,6 +253,38 @@ const factories = {
|
|
|
252
253
|
rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
|
|
253
254
|
}),
|
|
254
255
|
|
|
256
|
+
'io.flow.channel.internal.v0.models.channel_organization_domain': (): io.flow.channel.internal.v0.models.ChannelOrganizationDomain => ({
|
|
257
|
+
internal: factories.string(),
|
|
258
|
+
'public': factories.string(),
|
|
259
|
+
}),
|
|
260
|
+
|
|
261
|
+
'io.flow.channel.internal.v0.models.channel_organization_installation': (): io.flow.channel.internal.v0.models.ChannelOrganizationInstallation => ({
|
|
262
|
+
organization: factories['io.flow.channel.v0.models.channel_organization'](),
|
|
263
|
+
|
|
264
|
+
tokens: arrayOf(
|
|
265
|
+
() => factories['io.flow.channel.internal.v0.models.channel_organization_token'](),
|
|
266
|
+
),
|
|
267
|
+
}),
|
|
268
|
+
|
|
269
|
+
'io.flow.channel.internal.v0.models.channel_organization_installation_post_form': (): io.flow.channel.internal.v0.models.ChannelOrganizationInstallationPostForm => ({
|
|
270
|
+
form: factories['io.flow.channel.v0.models.channel_organization_form'](),
|
|
271
|
+
metadata: factories['io.flow.channel.internal.v0.models.channel_organization_metadata'](),
|
|
272
|
+
}),
|
|
273
|
+
|
|
274
|
+
'io.flow.channel.internal.v0.models.channel_organization_metadata': (): io.flow.channel.internal.v0.models.ChannelOrganizationMetadata => ({
|
|
275
|
+
domain: factories['io.flow.channel.internal.v0.models.channel_organization_domain'](),
|
|
276
|
+
token: factories.string(),
|
|
277
|
+
}),
|
|
278
|
+
|
|
279
|
+
'io.flow.channel.internal.v0.models.channel_organization_token': (): io.flow.channel.internal.v0.models.ChannelOrganizationToken => ({
|
|
280
|
+
token: factories['io.flow.channel.internal.v0.models.channel_organization_token_body'](),
|
|
281
|
+
service: factories['io.flow.channel.internal.v0.enums.channel_service'](),
|
|
282
|
+
}),
|
|
283
|
+
|
|
284
|
+
'io.flow.channel.internal.v0.models.channel_organization_token_body': (): io.flow.channel.internal.v0.models.ChannelOrganizationTokenBody => ({
|
|
285
|
+
cleartext: factories.string(),
|
|
286
|
+
}),
|
|
287
|
+
|
|
255
288
|
'io.flow.channel.internal.v0.models.flow_channel_organization': (): io.flow.channel.internal.v0.models.FlowChannelOrganization => ({
|
|
256
289
|
placeholder: factories.string(),
|
|
257
290
|
}),
|
|
@@ -4708,6 +4741,11 @@ const factories = {
|
|
|
4708
4741
|
'duty_guarantee',
|
|
4709
4742
|
'mor',
|
|
4710
4743
|
'fraud',
|
|
4744
|
+
'tax',
|
|
4745
|
+
'duty',
|
|
4746
|
+
'tax_and_duty',
|
|
4747
|
+
'product',
|
|
4748
|
+
'tax_and_duty_fx_diff',
|
|
4711
4749
|
'fx',
|
|
4712
4750
|
'processing',
|
|
4713
4751
|
'rate_lock',
|
|
@@ -4717,7 +4755,10 @@ const factories = {
|
|
|
4717
4755
|
]),
|
|
4718
4756
|
|
|
4719
4757
|
'io.flow.v0.enums.flow_behavior': (): io.flow.v0.enums.FlowBehavior => faker.helpers.arrayElement(['view_consumer_data']),
|
|
4720
|
-
|
|
4758
|
+
|
|
4759
|
+
'io.flow.v0.enums.flow_entity': (): io.flow.v0.enums.FlowEntity => faker.helpers.arrayElement(
|
|
4760
|
+
['flow-usa', 'flow-irl', 'flow-can', 'ge-usa', 'ge-can', 'ge-gbr', 'ge-irl'],
|
|
4761
|
+
),
|
|
4721
4762
|
|
|
4722
4763
|
'io.flow.v0.enums.flow_role': (): io.flow.v0.enums.FlowRole => faker.helpers.arrayElement([
|
|
4723
4764
|
'organization_admin',
|
|
@@ -7818,6 +7859,7 @@ const factories = {
|
|
|
7818
7859
|
delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
|
|
7819
7860
|
price: factories['io.flow.v0.models.price_with_base_and_details'](),
|
|
7820
7861
|
service: factories['io.flow.v0.models.service_summary'](),
|
|
7862
|
+
actual_service: factories['io.flow.v0.models.service_summary'](),
|
|
7821
7863
|
tier: factories['io.flow.v0.models.tier_summary'](),
|
|
7822
7864
|
window: factories['io.flow.v0.models.delivery_window'](),
|
|
7823
7865
|
rule_outcome: factories['io.flow.v0.unions.tier_rule_outcome'](),
|