@flowio/api-internal-mock-generator 0.0.2 → 0.0.4

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.
@@ -669,7 +669,7 @@
669
669
  "version": "0.2.3",
670
670
  "enums": ["account_type", "card_brand", "card_error_code", "card_funding_type", "check_outcome", "code_verification_status", "decline_code", "error_type", "event_type", "network_status", "order_item_type", "payment_outcome_type", "payment_status", "refund_failure_reason", "refund_reason", "refund_status", "source_flow", "source_status", "source_type", "source_usage_type", "three_d_secure_support", "token_type"],
671
671
  "unions": [],
672
- "models": ["address", "card", "card_request", "charge", "charge_destination", "charge_request", "code_verification", "customer", "customer_request", "error", "metadata", "order", "order_item", "order_item_request", "order_request", "owner", "payment_outcome", "receiver", "redirect", "refund", "refund_request", "refunds", "shipping", "source", "source_card", "source_card_request", "source_klarna", "source_klarna_request", "source_request", "stripe_error", "stripe_event", "stripe_event_data", "stripe_event_request", "three_d_secure", "token"],
672
+ "models": ["account", "account_request", "address", "card", "card_request", "charge", "charge_destination", "charge_request", "code_verification", "customer", "customer_request", "error", "keys", "legal_entity", "metadata", "order", "order_item", "order_item_request", "order_request", "owner", "payment_outcome", "receiver", "redirect", "refund", "refund_request", "refunds", "shipping", "source", "source_card", "source_card_request", "source_klarna", "source_klarna_request", "source_request", "stripe_error", "stripe_event", "stripe_event_data", "stripe_event_request", "three_d_secure", "token", "tos_acceptance"],
673
673
  "annotations": []
674
674
  }, {
675
675
  "uri": "https://app.apibuilder.io/flow/error/latest/service.json",
@@ -2379,6 +2379,20 @@
2379
2379
  "unions": ["carrier_credentials"],
2380
2380
  "models": ["dhl", "dhl_ecommerce", "landmark", "sf_express", "tracking_event", "tracking_request", "tracking_response"],
2381
2381
  "annotations": []
2382
+ }, {
2383
+ "uri": "https://app.apibuilder.io/flow/ratecard-internal/latest/service.json",
2384
+ "namespace": "io.flow.ratecard.internal.v0",
2385
+ "organization": {
2386
+ "key": "flow"
2387
+ },
2388
+ "application": {
2389
+ "key": "ratecard-internal"
2390
+ },
2391
+ "version": "0.5.81",
2392
+ "enums": [],
2393
+ "unions": ["ratecard_estimate", "ratecard_estimate_form", "ratecard_fee", "service_fee"],
2394
+ "models": ["crossdock_ratecard_fee", "ddp_ratecard_fee", "dimension_estimate", "dimension_estimate_form", "dimension_estimate_version", "estimated_dimensions", "fuel_surcharge_ratecard_fee", "fuel_surcharge_service_fee", "hop", "hop_estimate", "oversized_shipment_ratecard_fee", "ratecard", "ratecard_carrier_summary", "ratecard_estimate_form_v1", "ratecard_estimate_form_v2", "ratecard_estimate_summary_form", "ratecard_estimate_v1", "ratecard_estimate_v2", "ratecard_form", "ratecard_lane", "ratecard_lane_form", "ratecard_lane_version", "ratecard_rate", "ratecard_rate_form", "ratecard_rate_version", "ratecard_reference", "ratecard_service_summary", "ratecard_version", "remote_area_ratecard_fee", "remote_area_service_fee", "return_package_ratecard_fee", "shipment_window"],
2395
+ "annotations": []
2382
2396
  }, {
2383
2397
  "uri": "https://app.apibuilder.io/flow/catalog/latest/service.json",
2384
2398
  "namespace": "io.flow.catalog.v0",
@@ -3474,6 +3488,12 @@
3474
3488
  }, {
3475
3489
  "name": "ratecard_rate_deleted",
3476
3490
  "attributes": []
3491
+ }, {
3492
+ "name": "ratecard_lane_upserted",
3493
+ "attributes": []
3494
+ }, {
3495
+ "name": "ratecard_lane_deleted",
3496
+ "attributes": []
3477
3497
  }, {
3478
3498
  "name": "shopify_shop_upserted",
3479
3499
  "attributes": []
@@ -4863,10 +4883,16 @@
4863
4883
  }, {
4864
4884
  "type": "lane_upserted",
4865
4885
  "attributes": [],
4886
+ "deprecation": {
4887
+ "description": "use ratecard_lane_upserted"
4888
+ },
4866
4889
  "discriminator_value": "lane_upserted"
4867
4890
  }, {
4868
4891
  "type": "lane_deleted",
4869
4892
  "attributes": [],
4893
+ "deprecation": {
4894
+ "description": "use ratecard_lane_deleted"
4895
+ },
4870
4896
  "discriminator_value": "lane_deleted"
4871
4897
  }, {
4872
4898
  "type": "ratecard_rate_upserted",
@@ -4876,6 +4902,14 @@
4876
4902
  "type": "ratecard_rate_deleted",
4877
4903
  "attributes": [],
4878
4904
  "discriminator_value": "ratecard_rate_deleted"
4905
+ }, {
4906
+ "type": "ratecard_lane_upserted",
4907
+ "attributes": [],
4908
+ "discriminator_value": "ratecard_lane_upserted"
4909
+ }, {
4910
+ "type": "ratecard_lane_deleted",
4911
+ "attributes": [],
4912
+ "discriminator_value": "ratecard_lane_deleted"
4879
4913
  }, {
4880
4914
  "type": "shopify_shop_upserted",
4881
4915
  "attributes": [],
@@ -20129,6 +20163,37 @@
20129
20163
  }],
20130
20164
  "attributes": [],
20131
20165
  "description": "Describe list of rates applicable for a lane on the ratecard - defined by origin and destination zone"
20166
+ }, {
20167
+ "name": "ratecard_lane_deleted",
20168
+ "plural": "ratecard_lane_deleteds",
20169
+ "fields": [{
20170
+ "name": "event_id",
20171
+ "type": "string",
20172
+ "required": true,
20173
+ "attributes": [],
20174
+ "annotations": []
20175
+ }, {
20176
+ "name": "timestamp",
20177
+ "type": "date-time-iso8601",
20178
+ "required": true,
20179
+ "attributes": [],
20180
+ "annotations": []
20181
+ }, {
20182
+ "name": "organization",
20183
+ "type": "string",
20184
+ "required": true,
20185
+ "attributes": [],
20186
+ "annotations": [],
20187
+ "description": "Refers to your organization's account identifier"
20188
+ }, {
20189
+ "name": "id",
20190
+ "type": "string",
20191
+ "required": true,
20192
+ "attributes": [],
20193
+ "annotations": [],
20194
+ "description": "Globally unique identifier"
20195
+ }],
20196
+ "attributes": []
20132
20197
  }, {
20133
20198
  "name": "ratecard_lane_form",
20134
20199
  "plural": "ratecard_lane_forms",
@@ -20214,6 +20279,36 @@
20214
20279
  "example": "inch, feet"
20215
20280
  }],
20216
20281
  "attributes": []
20282
+ }, {
20283
+ "name": "ratecard_lane_upserted",
20284
+ "plural": "ratecard_lane_upserteds",
20285
+ "fields": [{
20286
+ "name": "event_id",
20287
+ "type": "string",
20288
+ "required": true,
20289
+ "attributes": [],
20290
+ "annotations": []
20291
+ }, {
20292
+ "name": "timestamp",
20293
+ "type": "date-time-iso8601",
20294
+ "required": true,
20295
+ "attributes": [],
20296
+ "annotations": []
20297
+ }, {
20298
+ "name": "organization",
20299
+ "type": "string",
20300
+ "required": true,
20301
+ "attributes": [],
20302
+ "annotations": [],
20303
+ "description": "Refers to your organization's account identifier"
20304
+ }, {
20305
+ "name": "ratecard_lane",
20306
+ "type": "io.flow.ratecard.internal.v0.models.ratecard_lane",
20307
+ "required": true,
20308
+ "attributes": [],
20309
+ "annotations": []
20310
+ }],
20311
+ "attributes": []
20217
20312
  }, {
20218
20313
  "name": "ratecard_lane_version",
20219
20314
  "plural": "ratecard_lane_versions",
@@ -22280,13 +22375,12 @@
22280
22375
  "name": "stripe_account_form",
22281
22376
  "plural": "stripe_account_forms",
22282
22377
  "fields": [{
22283
- "name": "country",
22378
+ "name": "account_name",
22284
22379
  "type": "string",
22285
22380
  "required": true,
22286
22381
  "attributes": [],
22287
22382
  "annotations": [],
22288
- "description": "The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code.",
22289
- "example": "IE"
22383
+ "description": "The publicly sharable name for this account."
22290
22384
  }, {
22291
22385
  "name": "account_type",
22292
22386
  "type": "io.flow.stripe.v0.enums.account_type",
@@ -22295,27 +22389,34 @@
22295
22389
  "annotations": [],
22296
22390
  "description": "An account type can be either custom or platform."
22297
22391
  }, {
22298
- "name": "payout_statement_descriptor",
22392
+ "name": "country",
22299
22393
  "type": "string",
22300
22394
  "required": true,
22301
22395
  "attributes": [],
22302
22396
  "annotations": [],
22303
- "description": "The text that appears on the bank account statement for payouts and cannot use the special characters <, >, \\, ', or \".",
22304
- "minimum": 5,
22305
- "maximum": 22
22397
+ "description": "The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code.",
22398
+ "example": "IE"
22306
22399
  }, {
22307
- "name": "account_name",
22308
- "type": "string",
22400
+ "name": "merchant_of_record",
22401
+ "type": "io.flow.common.v0.enums.merchant_of_record",
22309
22402
  "required": true,
22310
22403
  "attributes": [],
22311
- "annotations": [],
22312
- "description": "The publicly sharable name for this account."
22404
+ "annotations": []
22313
22405
  }, {
22314
- "name": "merchant_of_record",
22315
- "type": "io.flow.common.v0.enums.merchant_of_record",
22406
+ "name": "organization_id",
22407
+ "type": "string",
22316
22408
  "required": true,
22317
22409
  "attributes": [],
22318
22410
  "annotations": []
22411
+ }, {
22412
+ "name": "payout_statement_descriptor",
22413
+ "type": "string",
22414
+ "required": true,
22415
+ "attributes": [],
22416
+ "annotations": [],
22417
+ "description": "The text that appears on the bank account statement for payouts and cannot use the special characters <, >, \\, ', or \".",
22418
+ "minimum": 5,
22419
+ "maximum": 22
22319
22420
  }],
22320
22421
  "attributes": [],
22321
22422
  "description": "A request form for creation of Stripe account."
@@ -41346,14 +41447,8 @@
41346
41447
  "plural": "payment_accounts",
41347
41448
  "operations": [{
41348
41449
  "method": "POST",
41349
- "path": "/:organization/payment/accounts",
41350
- "parameters": [{
41351
- "name": "organization",
41352
- "type": "string",
41353
- "location": "Path",
41354
- "required": true,
41355
- "description": "Refers to your organization's account identifier"
41356
- }],
41450
+ "path": "/internal/payment/accounts",
41451
+ "parameters": [],
41357
41452
  "responses": [{
41358
41453
  "code": {
41359
41454
  "integer": {
@@ -41418,7 +41513,7 @@
41418
41513
  "module": "general"
41419
41514
  }
41420
41515
  }],
41421
- "path": "/:organization/payment/accounts",
41516
+ "path": "/internal/payment/accounts",
41422
41517
  "description": "Types of payment accounts that represent underlying payment processor account."
41423
41518
  }, {
41424
41519
  "type": "payment_redirect",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-mock-generator",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "A mock data generator based on our internal API specifications for JavaScript",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -25,12 +25,12 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "apibuilder-js": "0.0.3",
28
- "apibuilder-mock-generator": "0.0.1"
28
+ "apibuilder-mock-generator": "0.0.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "tslint": "^5.11.0",
32
32
  "tslint-config-airbnb": "^5.11.1",
33
33
  "typescript": "^3.2.2"
34
34
  },
35
- "gitHead": "df365981db08a87d82ec9dca0a597ffa3107989c"
35
+ "gitHead": "62c3f3ff06e7e8a18ffe19c036522960a41ffbdb"
36
36
  }
@@ -669,7 +669,7 @@
669
669
  "version": "0.2.3",
670
670
  "enums": ["account_type", "card_brand", "card_error_code", "card_funding_type", "check_outcome", "code_verification_status", "decline_code", "error_type", "event_type", "network_status", "order_item_type", "payment_outcome_type", "payment_status", "refund_failure_reason", "refund_reason", "refund_status", "source_flow", "source_status", "source_type", "source_usage_type", "three_d_secure_support", "token_type"],
671
671
  "unions": [],
672
- "models": ["address", "card", "card_request", "charge", "charge_destination", "charge_request", "code_verification", "customer", "customer_request", "error", "metadata", "order", "order_item", "order_item_request", "order_request", "owner", "payment_outcome", "receiver", "redirect", "refund", "refund_request", "refunds", "shipping", "source", "source_card", "source_card_request", "source_klarna", "source_klarna_request", "source_request", "stripe_error", "stripe_event", "stripe_event_data", "stripe_event_request", "three_d_secure", "token"],
672
+ "models": ["account", "account_request", "address", "card", "card_request", "charge", "charge_destination", "charge_request", "code_verification", "customer", "customer_request", "error", "keys", "legal_entity", "metadata", "order", "order_item", "order_item_request", "order_request", "owner", "payment_outcome", "receiver", "redirect", "refund", "refund_request", "refunds", "shipping", "source", "source_card", "source_card_request", "source_klarna", "source_klarna_request", "source_request", "stripe_error", "stripe_event", "stripe_event_data", "stripe_event_request", "three_d_secure", "token", "tos_acceptance"],
673
673
  "annotations": []
674
674
  }, {
675
675
  "uri": "https://app.apibuilder.io/flow/error/latest/service.json",
@@ -2379,6 +2379,20 @@
2379
2379
  "unions": ["carrier_credentials"],
2380
2380
  "models": ["dhl", "dhl_ecommerce", "landmark", "sf_express", "tracking_event", "tracking_request", "tracking_response"],
2381
2381
  "annotations": []
2382
+ }, {
2383
+ "uri": "https://app.apibuilder.io/flow/ratecard-internal/latest/service.json",
2384
+ "namespace": "io.flow.ratecard.internal.v0",
2385
+ "organization": {
2386
+ "key": "flow"
2387
+ },
2388
+ "application": {
2389
+ "key": "ratecard-internal"
2390
+ },
2391
+ "version": "0.5.81",
2392
+ "enums": [],
2393
+ "unions": ["ratecard_estimate", "ratecard_estimate_form", "ratecard_fee", "service_fee"],
2394
+ "models": ["crossdock_ratecard_fee", "ddp_ratecard_fee", "dimension_estimate", "dimension_estimate_form", "dimension_estimate_version", "estimated_dimensions", "fuel_surcharge_ratecard_fee", "fuel_surcharge_service_fee", "hop", "hop_estimate", "oversized_shipment_ratecard_fee", "ratecard", "ratecard_carrier_summary", "ratecard_estimate_form_v1", "ratecard_estimate_form_v2", "ratecard_estimate_summary_form", "ratecard_estimate_v1", "ratecard_estimate_v2", "ratecard_form", "ratecard_lane", "ratecard_lane_form", "ratecard_lane_version", "ratecard_rate", "ratecard_rate_form", "ratecard_rate_version", "ratecard_reference", "ratecard_service_summary", "ratecard_version", "remote_area_ratecard_fee", "remote_area_service_fee", "return_package_ratecard_fee", "shipment_window"],
2395
+ "annotations": []
2382
2396
  }, {
2383
2397
  "uri": "https://app.apibuilder.io/flow/catalog/latest/service.json",
2384
2398
  "namespace": "io.flow.catalog.v0",
@@ -3474,6 +3488,12 @@
3474
3488
  }, {
3475
3489
  "name": "ratecard_rate_deleted",
3476
3490
  "attributes": []
3491
+ }, {
3492
+ "name": "ratecard_lane_upserted",
3493
+ "attributes": []
3494
+ }, {
3495
+ "name": "ratecard_lane_deleted",
3496
+ "attributes": []
3477
3497
  }, {
3478
3498
  "name": "shopify_shop_upserted",
3479
3499
  "attributes": []
@@ -4863,10 +4883,16 @@
4863
4883
  }, {
4864
4884
  "type": "lane_upserted",
4865
4885
  "attributes": [],
4886
+ "deprecation": {
4887
+ "description": "use ratecard_lane_upserted"
4888
+ },
4866
4889
  "discriminator_value": "lane_upserted"
4867
4890
  }, {
4868
4891
  "type": "lane_deleted",
4869
4892
  "attributes": [],
4893
+ "deprecation": {
4894
+ "description": "use ratecard_lane_deleted"
4895
+ },
4870
4896
  "discriminator_value": "lane_deleted"
4871
4897
  }, {
4872
4898
  "type": "ratecard_rate_upserted",
@@ -4876,6 +4902,14 @@
4876
4902
  "type": "ratecard_rate_deleted",
4877
4903
  "attributes": [],
4878
4904
  "discriminator_value": "ratecard_rate_deleted"
4905
+ }, {
4906
+ "type": "ratecard_lane_upserted",
4907
+ "attributes": [],
4908
+ "discriminator_value": "ratecard_lane_upserted"
4909
+ }, {
4910
+ "type": "ratecard_lane_deleted",
4911
+ "attributes": [],
4912
+ "discriminator_value": "ratecard_lane_deleted"
4879
4913
  }, {
4880
4914
  "type": "shopify_shop_upserted",
4881
4915
  "attributes": [],
@@ -20129,6 +20163,37 @@
20129
20163
  }],
20130
20164
  "attributes": [],
20131
20165
  "description": "Describe list of rates applicable for a lane on the ratecard - defined by origin and destination zone"
20166
+ }, {
20167
+ "name": "ratecard_lane_deleted",
20168
+ "plural": "ratecard_lane_deleteds",
20169
+ "fields": [{
20170
+ "name": "event_id",
20171
+ "type": "string",
20172
+ "required": true,
20173
+ "attributes": [],
20174
+ "annotations": []
20175
+ }, {
20176
+ "name": "timestamp",
20177
+ "type": "date-time-iso8601",
20178
+ "required": true,
20179
+ "attributes": [],
20180
+ "annotations": []
20181
+ }, {
20182
+ "name": "organization",
20183
+ "type": "string",
20184
+ "required": true,
20185
+ "attributes": [],
20186
+ "annotations": [],
20187
+ "description": "Refers to your organization's account identifier"
20188
+ }, {
20189
+ "name": "id",
20190
+ "type": "string",
20191
+ "required": true,
20192
+ "attributes": [],
20193
+ "annotations": [],
20194
+ "description": "Globally unique identifier"
20195
+ }],
20196
+ "attributes": []
20132
20197
  }, {
20133
20198
  "name": "ratecard_lane_form",
20134
20199
  "plural": "ratecard_lane_forms",
@@ -20214,6 +20279,36 @@
20214
20279
  "example": "inch, feet"
20215
20280
  }],
20216
20281
  "attributes": []
20282
+ }, {
20283
+ "name": "ratecard_lane_upserted",
20284
+ "plural": "ratecard_lane_upserteds",
20285
+ "fields": [{
20286
+ "name": "event_id",
20287
+ "type": "string",
20288
+ "required": true,
20289
+ "attributes": [],
20290
+ "annotations": []
20291
+ }, {
20292
+ "name": "timestamp",
20293
+ "type": "date-time-iso8601",
20294
+ "required": true,
20295
+ "attributes": [],
20296
+ "annotations": []
20297
+ }, {
20298
+ "name": "organization",
20299
+ "type": "string",
20300
+ "required": true,
20301
+ "attributes": [],
20302
+ "annotations": [],
20303
+ "description": "Refers to your organization's account identifier"
20304
+ }, {
20305
+ "name": "ratecard_lane",
20306
+ "type": "io.flow.ratecard.internal.v0.models.ratecard_lane",
20307
+ "required": true,
20308
+ "attributes": [],
20309
+ "annotations": []
20310
+ }],
20311
+ "attributes": []
20217
20312
  }, {
20218
20313
  "name": "ratecard_lane_version",
20219
20314
  "plural": "ratecard_lane_versions",
@@ -22280,13 +22375,12 @@
22280
22375
  "name": "stripe_account_form",
22281
22376
  "plural": "stripe_account_forms",
22282
22377
  "fields": [{
22283
- "name": "country",
22378
+ "name": "account_name",
22284
22379
  "type": "string",
22285
22380
  "required": true,
22286
22381
  "attributes": [],
22287
22382
  "annotations": [],
22288
- "description": "The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code.",
22289
- "example": "IE"
22383
+ "description": "The publicly sharable name for this account."
22290
22384
  }, {
22291
22385
  "name": "account_type",
22292
22386
  "type": "io.flow.stripe.v0.enums.account_type",
@@ -22295,27 +22389,34 @@
22295
22389
  "annotations": [],
22296
22390
  "description": "An account type can be either custom or platform."
22297
22391
  }, {
22298
- "name": "payout_statement_descriptor",
22392
+ "name": "country",
22299
22393
  "type": "string",
22300
22394
  "required": true,
22301
22395
  "attributes": [],
22302
22396
  "annotations": [],
22303
- "description": "The text that appears on the bank account statement for payouts and cannot use the special characters <, >, \\, ', or \".",
22304
- "minimum": 5,
22305
- "maximum": 22
22397
+ "description": "The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code.",
22398
+ "example": "IE"
22306
22399
  }, {
22307
- "name": "account_name",
22308
- "type": "string",
22400
+ "name": "merchant_of_record",
22401
+ "type": "io.flow.common.v0.enums.merchant_of_record",
22309
22402
  "required": true,
22310
22403
  "attributes": [],
22311
- "annotations": [],
22312
- "description": "The publicly sharable name for this account."
22404
+ "annotations": []
22313
22405
  }, {
22314
- "name": "merchant_of_record",
22315
- "type": "io.flow.common.v0.enums.merchant_of_record",
22406
+ "name": "organization_id",
22407
+ "type": "string",
22316
22408
  "required": true,
22317
22409
  "attributes": [],
22318
22410
  "annotations": []
22411
+ }, {
22412
+ "name": "payout_statement_descriptor",
22413
+ "type": "string",
22414
+ "required": true,
22415
+ "attributes": [],
22416
+ "annotations": [],
22417
+ "description": "The text that appears on the bank account statement for payouts and cannot use the special characters <, >, \\, ', or \".",
22418
+ "minimum": 5,
22419
+ "maximum": 22
22319
22420
  }],
22320
22421
  "attributes": [],
22321
22422
  "description": "A request form for creation of Stripe account."
@@ -41346,14 +41447,8 @@
41346
41447
  "plural": "payment_accounts",
41347
41448
  "operations": [{
41348
41449
  "method": "POST",
41349
- "path": "/:organization/payment/accounts",
41350
- "parameters": [{
41351
- "name": "organization",
41352
- "type": "string",
41353
- "location": "Path",
41354
- "required": true,
41355
- "description": "Refers to your organization's account identifier"
41356
- }],
41450
+ "path": "/internal/payment/accounts",
41451
+ "parameters": [],
41357
41452
  "responses": [{
41358
41453
  "code": {
41359
41454
  "integer": {
@@ -41418,7 +41513,7 @@
41418
41513
  "module": "general"
41419
41514
  }
41420
41515
  }],
41421
- "path": "/:organization/payment/accounts",
41516
+ "path": "/internal/payment/accounts",
41422
41517
  "description": "Types of payment accounts that represent underlying payment processor account."
41423
41518
  }, {
41424
41519
  "type": "payment_redirect",