@flowio/api-internal-mock-generator 4.0.1 → 4.0.2

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.
@@ -1750,9 +1750,9 @@
1750
1750
  "type": "string",
1751
1751
  "required": true
1752
1752
  }, {
1753
- "name": "estimated",
1753
+ "name": "unverified",
1754
1754
  "annotations": [],
1755
- "description": "whether the user inferred the value of the attribute from the context (e.g image)",
1755
+ "description": "True when the user has no way of verifying the label to associate to an attribute, but they still want to set a value. See this [comment](https://github.com/flowcommerce/api-internal/pull/1139/files#r405434573) for further details",
1756
1756
  "attributes": [],
1757
1757
  "type": "boolean",
1758
1758
  "required": true
@@ -5499,6 +5499,53 @@
5499
5499
  "type": "string",
5500
5500
  "required": false
5501
5501
  }]
5502
+ }, {
5503
+ "plural": "customs_description_statisticses",
5504
+ "name": "customs_description_statistics",
5505
+ "attributes": [],
5506
+ "fields": [{
5507
+ "name": "message",
5508
+ "annotations": [],
5509
+ "attributes": [],
5510
+ "type": "string",
5511
+ "required": true
5512
+ }, {
5513
+ "name": "default_customs_description_total",
5514
+ "annotations": [],
5515
+ "attributes": [],
5516
+ "type": "integer",
5517
+ "required": true
5518
+ }, {
5519
+ "name": "new_customs_description_total",
5520
+ "annotations": [],
5521
+ "attributes": [],
5522
+ "type": "integer",
5523
+ "required": true
5524
+ }, {
5525
+ "name": "phrase_status_duty_requested_total",
5526
+ "annotations": [],
5527
+ "attributes": [],
5528
+ "type": "integer",
5529
+ "required": true
5530
+ }, {
5531
+ "name": "phrase_status_classified_total",
5532
+ "annotations": [],
5533
+ "attributes": [],
5534
+ "type": "integer",
5535
+ "required": true
5536
+ }, {
5537
+ "name": "mismatching_hs6_total",
5538
+ "annotations": [],
5539
+ "attributes": [],
5540
+ "type": "integer",
5541
+ "required": true
5542
+ }, {
5543
+ "name": "mismatching_hs6",
5544
+ "annotations": [],
5545
+ "attributes": [],
5546
+ "type": "map[string]",
5547
+ "required": true
5548
+ }]
5502
5549
  }, {
5503
5550
  "plural": "customs_description_sugestions",
5504
5551
  "name": "customs_description_sugestion",
@@ -17284,6 +17331,12 @@
17284
17331
  "attributes": [],
17285
17332
  "type": "product_labels",
17286
17333
  "required": true
17334
+ }, {
17335
+ "name": "model_version",
17336
+ "annotations": [],
17337
+ "attributes": [],
17338
+ "type": "string",
17339
+ "required": true
17287
17340
  }, {
17288
17341
  "name": "current_customs_description",
17289
17342
  "annotations": [],
@@ -17435,6 +17488,12 @@
17435
17488
  "attributes": [],
17436
17489
  "type": "product_labels",
17437
17490
  "required": true
17491
+ }, {
17492
+ "name": "customs_description",
17493
+ "annotations": [],
17494
+ "attributes": [],
17495
+ "type": "string",
17496
+ "required": false
17438
17497
  }]
17439
17498
  }, {
17440
17499
  "plural": "product_labelses",
@@ -18462,6 +18521,17 @@
18462
18521
  "type": "[io.flow.reference.v0.models.country]",
18463
18522
  "required": true
18464
18523
  }]
18524
+ }, {
18525
+ "plural": "resync_fallback_rates",
18526
+ "name": "resync_fallback_rates",
18527
+ "attributes": [],
18528
+ "fields": [{
18529
+ "name": "destinations",
18530
+ "annotations": [],
18531
+ "attributes": [],
18532
+ "type": "[io.flow.reference.v0.models.country]",
18533
+ "required": true
18534
+ }]
18465
18535
  }, {
18466
18536
  "plural": "return_summaries",
18467
18537
  "name": "return_summary",
@@ -23078,6 +23148,10 @@
23078
23148
  "discriminator_value": "resync_by_destinations",
23079
23149
  "attributes": [],
23080
23150
  "type": "resync_by_destinations"
23151
+ }, {
23152
+ "discriminator_value": "resync_fallback_rates",
23153
+ "attributes": [],
23154
+ "type": "resync_fallback_rates"
23081
23155
  }, {
23082
23156
  "discriminator_value": "shopify_shop_upserted",
23083
23157
  "attributes": [],
@@ -27171,10 +27245,10 @@
27171
27245
  "application": {
27172
27246
  "key": "harmonization-internal"
27173
27247
  },
27174
- "version": "0.8.16",
27175
- "enums": ["item_classification_action", "item_classification_status", "item_type"],
27176
- "unions": ["task_data"],
27177
- "models": ["blacklisted_item", "classification_item", "classification_product", "classification_product_id", "classification_product_summary", "classification_product_summary_page", "classified_product", "customs", "customs_description_suggestion", "customs_description_tariff_code_duty", "customs_description_tariff_code_duty_form", "duties", "harmonization_countries", "harmonization_statistics", "harmonization_statistics_breakout", "harmonization_summary", "item_harmonization", "item_harmonization_summary", "levies", "levies_address", "levies_form", "levies_item", "product_classification_judgement_form", "product_classification_result", "search_item_hs6_code", "tariff_code_duty", "task_import", "task_item_upserted", "task_process_queued_event", "task_summarize_code", "unclassified_products_form", "unphrased_products_export", "vies_result"],
27248
+ "version": "0.8.57",
27249
+ "enums": ["empty_attribute", "item_classification_action", "item_classification_status", "item_type", "product_classification_action", "unclassified_product_status"],
27250
+ "unions": ["classification_label_attribute", "task_data"],
27251
+ "models": ["allowed_labels", "attribute_label", "blacklisted_item", "classification_item", "classification_product", "classification_product_id", "classification_product_summary", "classification_product_summary_page", "classified_product", "customs", "customs_description_suggestion", "customs_description_tariff_code_duty", "customs_description_tariff_code_duty_form", "duties", "harmonization_countries", "harmonization_statistics", "harmonization_statistics_breakout", "harmonization_summary", "item_harmonization", "item_harmonization_summary", "label_aliases", "label_association", "label_taxonomy", "levies", "levies_address", "levies_form", "levies_item", "product_classification", "product_classification_form", "product_classification_judgement_form", "product_classification_result", "product_harmonization", "product_harmonization_form", "product_labels", "search_item_hs6_code", "supported_labels", "tariff_code_duty", "task_import", "task_item_upserted", "task_process_queued_event", "task_summarize_code", "unclassified_products_form", "unphrased_products_export", "vies_result"],
27178
27252
  "annotations": []
27179
27253
  }, {
27180
27254
  "uri": "https://app.apibuilder.io/flow/price/latest/service.json",
@@ -47752,6 +47826,44 @@
47752
47826
  "type": "string",
47753
47827
  "required": true
47754
47828
  }]
47829
+ }, {
47830
+ "path": "/product_classifications/refresh_default_hs6",
47831
+ "method": "GET",
47832
+ "responses": [{
47833
+ "code": {
47834
+ "integer": {
47835
+ "value": 200
47836
+ }
47837
+ },
47838
+ "description": "Successful response",
47839
+ "attributes": [],
47840
+ "type": "customs_description_statistics"
47841
+ }, {
47842
+ "code": {
47843
+ "integer": {
47844
+ "value": 401
47845
+ }
47846
+ },
47847
+ "description": "Authorization failed",
47848
+ "attributes": [],
47849
+ "type": "unit"
47850
+ }, {
47851
+ "code": {
47852
+ "integer": {
47853
+ "value": 422
47854
+ }
47855
+ },
47856
+ "description": "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
47857
+ "attributes": [],
47858
+ "type": "io.flow.error.v0.models.generic_error"
47859
+ }],
47860
+ "attributes": [],
47861
+ "parameters": [{
47862
+ "name": "dry_run",
47863
+ "location": "Query",
47864
+ "type": "boolean",
47865
+ "required": true
47866
+ }]
47755
47867
  }],
47756
47868
  "description": "Label based product classification endpoints",
47757
47869
  "attributes": [{
@@ -52391,6 +52503,9 @@
52391
52503
  }, {
52392
52504
  "name": "resync_by_destinations",
52393
52505
  "attributes": []
52506
+ }, {
52507
+ "name": "resync_fallback_rates",
52508
+ "attributes": []
52394
52509
  }, {
52395
52510
  "name": "shopify_shop_upserted",
52396
52511
  "attributes": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-internal-mock-generator",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "A mock data generator based on our internal API specifications for JavaScript",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -34,5 +34,5 @@
34
34
  "tslint-config-airbnb": "^5.11.2",
35
35
  "typescript": "^3.6.3"
36
36
  },
37
- "gitHead": "5f1812efa146eeb5c7f4804a2047883a9308f84d"
37
+ "gitHead": "33959b5bbe81ae48692196d6fd0b418244ef4e88"
38
38
  }
@@ -1750,9 +1750,9 @@
1750
1750
  "type" : "string",
1751
1751
  "required" : true
1752
1752
  }, {
1753
- "name" : "estimated",
1753
+ "name" : "unverified",
1754
1754
  "annotations" : [ ],
1755
- "description" : "whether the user inferred the value of the attribute from the context (e.g image)",
1755
+ "description" : "True when the user has no way of verifying the label to associate to an attribute, but they still want to set a value. See this [comment](https://github.com/flowcommerce/api-internal/pull/1139/files#r405434573) for further details",
1756
1756
  "attributes" : [ ],
1757
1757
  "type" : "boolean",
1758
1758
  "required" : true
@@ -5499,6 +5499,53 @@
5499
5499
  "type" : "string",
5500
5500
  "required" : false
5501
5501
  } ]
5502
+ }, {
5503
+ "plural" : "customs_description_statisticses",
5504
+ "name" : "customs_description_statistics",
5505
+ "attributes" : [ ],
5506
+ "fields" : [ {
5507
+ "name" : "message",
5508
+ "annotations" : [ ],
5509
+ "attributes" : [ ],
5510
+ "type" : "string",
5511
+ "required" : true
5512
+ }, {
5513
+ "name" : "default_customs_description_total",
5514
+ "annotations" : [ ],
5515
+ "attributes" : [ ],
5516
+ "type" : "integer",
5517
+ "required" : true
5518
+ }, {
5519
+ "name" : "new_customs_description_total",
5520
+ "annotations" : [ ],
5521
+ "attributes" : [ ],
5522
+ "type" : "integer",
5523
+ "required" : true
5524
+ }, {
5525
+ "name" : "phrase_status_duty_requested_total",
5526
+ "annotations" : [ ],
5527
+ "attributes" : [ ],
5528
+ "type" : "integer",
5529
+ "required" : true
5530
+ }, {
5531
+ "name" : "phrase_status_classified_total",
5532
+ "annotations" : [ ],
5533
+ "attributes" : [ ],
5534
+ "type" : "integer",
5535
+ "required" : true
5536
+ }, {
5537
+ "name" : "mismatching_hs6_total",
5538
+ "annotations" : [ ],
5539
+ "attributes" : [ ],
5540
+ "type" : "integer",
5541
+ "required" : true
5542
+ }, {
5543
+ "name" : "mismatching_hs6",
5544
+ "annotations" : [ ],
5545
+ "attributes" : [ ],
5546
+ "type" : "map[string]",
5547
+ "required" : true
5548
+ } ]
5502
5549
  }, {
5503
5550
  "plural" : "customs_description_sugestions",
5504
5551
  "name" : "customs_description_sugestion",
@@ -17284,6 +17331,12 @@
17284
17331
  "attributes" : [ ],
17285
17332
  "type" : "product_labels",
17286
17333
  "required" : true
17334
+ }, {
17335
+ "name" : "model_version",
17336
+ "annotations" : [ ],
17337
+ "attributes" : [ ],
17338
+ "type" : "string",
17339
+ "required" : true
17287
17340
  }, {
17288
17341
  "name" : "current_customs_description",
17289
17342
  "annotations" : [ ],
@@ -17435,6 +17488,12 @@
17435
17488
  "attributes" : [ ],
17436
17489
  "type" : "product_labels",
17437
17490
  "required" : true
17491
+ }, {
17492
+ "name" : "customs_description",
17493
+ "annotations" : [ ],
17494
+ "attributes" : [ ],
17495
+ "type" : "string",
17496
+ "required" : false
17438
17497
  } ]
17439
17498
  }, {
17440
17499
  "plural" : "product_labelses",
@@ -18462,6 +18521,17 @@
18462
18521
  "type" : "[io.flow.reference.v0.models.country]",
18463
18522
  "required" : true
18464
18523
  } ]
18524
+ }, {
18525
+ "plural" : "resync_fallback_rates",
18526
+ "name" : "resync_fallback_rates",
18527
+ "attributes" : [ ],
18528
+ "fields" : [ {
18529
+ "name" : "destinations",
18530
+ "annotations" : [ ],
18531
+ "attributes" : [ ],
18532
+ "type" : "[io.flow.reference.v0.models.country]",
18533
+ "required" : true
18534
+ } ]
18465
18535
  }, {
18466
18536
  "plural" : "return_summaries",
18467
18537
  "name" : "return_summary",
@@ -23078,6 +23148,10 @@
23078
23148
  "discriminator_value" : "resync_by_destinations",
23079
23149
  "attributes" : [ ],
23080
23150
  "type" : "resync_by_destinations"
23151
+ }, {
23152
+ "discriminator_value" : "resync_fallback_rates",
23153
+ "attributes" : [ ],
23154
+ "type" : "resync_fallback_rates"
23081
23155
  }, {
23082
23156
  "discriminator_value" : "shopify_shop_upserted",
23083
23157
  "attributes" : [ ],
@@ -27171,10 +27245,10 @@
27171
27245
  "application" : {
27172
27246
  "key" : "harmonization-internal"
27173
27247
  },
27174
- "version" : "0.8.16",
27175
- "enums" : [ "item_classification_action", "item_classification_status", "item_type" ],
27176
- "unions" : [ "task_data" ],
27177
- "models" : [ "blacklisted_item", "classification_item", "classification_product", "classification_product_id", "classification_product_summary", "classification_product_summary_page", "classified_product", "customs", "customs_description_suggestion", "customs_description_tariff_code_duty", "customs_description_tariff_code_duty_form", "duties", "harmonization_countries", "harmonization_statistics", "harmonization_statistics_breakout", "harmonization_summary", "item_harmonization", "item_harmonization_summary", "levies", "levies_address", "levies_form", "levies_item", "product_classification_judgement_form", "product_classification_result", "search_item_hs6_code", "tariff_code_duty", "task_import", "task_item_upserted", "task_process_queued_event", "task_summarize_code", "unclassified_products_form", "unphrased_products_export", "vies_result" ],
27248
+ "version" : "0.8.57",
27249
+ "enums" : [ "empty_attribute", "item_classification_action", "item_classification_status", "item_type", "product_classification_action", "unclassified_product_status" ],
27250
+ "unions" : [ "classification_label_attribute", "task_data" ],
27251
+ "models" : [ "allowed_labels", "attribute_label", "blacklisted_item", "classification_item", "classification_product", "classification_product_id", "classification_product_summary", "classification_product_summary_page", "classified_product", "customs", "customs_description_suggestion", "customs_description_tariff_code_duty", "customs_description_tariff_code_duty_form", "duties", "harmonization_countries", "harmonization_statistics", "harmonization_statistics_breakout", "harmonization_summary", "item_harmonization", "item_harmonization_summary", "label_aliases", "label_association", "label_taxonomy", "levies", "levies_address", "levies_form", "levies_item", "product_classification", "product_classification_form", "product_classification_judgement_form", "product_classification_result", "product_harmonization", "product_harmonization_form", "product_labels", "search_item_hs6_code", "supported_labels", "tariff_code_duty", "task_import", "task_item_upserted", "task_process_queued_event", "task_summarize_code", "unclassified_products_form", "unphrased_products_export", "vies_result" ],
27178
27252
  "annotations" : [ ]
27179
27253
  }, {
27180
27254
  "uri" : "https://app.apibuilder.io/flow/price/latest/service.json",
@@ -47752,6 +47826,44 @@
47752
47826
  "type" : "string",
47753
47827
  "required" : true
47754
47828
  } ]
47829
+ }, {
47830
+ "path" : "/product_classifications/refresh_default_hs6",
47831
+ "method" : "GET",
47832
+ "responses" : [ {
47833
+ "code" : {
47834
+ "integer" : {
47835
+ "value" : 200
47836
+ }
47837
+ },
47838
+ "description" : "Successful response",
47839
+ "attributes" : [ ],
47840
+ "type" : "customs_description_statistics"
47841
+ }, {
47842
+ "code" : {
47843
+ "integer" : {
47844
+ "value" : 401
47845
+ }
47846
+ },
47847
+ "description" : "Authorization failed",
47848
+ "attributes" : [ ],
47849
+ "type" : "unit"
47850
+ }, {
47851
+ "code" : {
47852
+ "integer" : {
47853
+ "value" : 422
47854
+ }
47855
+ },
47856
+ "description" : "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
47857
+ "attributes" : [ ],
47858
+ "type" : "io.flow.error.v0.models.generic_error"
47859
+ } ],
47860
+ "attributes" : [ ],
47861
+ "parameters" : [ {
47862
+ "name" : "dry_run",
47863
+ "location" : "Query",
47864
+ "type" : "boolean",
47865
+ "required" : true
47866
+ } ]
47755
47867
  } ],
47756
47868
  "description" : "Label based product classification endpoints",
47757
47869
  "attributes" : [ {
@@ -52391,6 +52503,9 @@
52391
52503
  }, {
52392
52504
  "name" : "resync_by_destinations",
52393
52505
  "attributes" : [ ]
52506
+ }, {
52507
+ "name" : "resync_fallback_rates",
52508
+ "attributes" : [ ]
52394
52509
  }, {
52395
52510
  "name" : "shopify_shop_upserted",
52396
52511
  "attributes" : [ ]