@gofynd/fdk-client-javascript 3.19.0 → 3.20.0

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.
Files changed (35) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +2 -2
  4. package/sdk/application/Cart/CartApplicationClient.js +12 -4
  5. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +1 -1
  6. package/sdk/partner/Logistics/LogisticsPartnerClient.js +11 -3
  7. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +1 -0
  8. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +5 -5
  9. package/sdk/platform/Cart/CartPlatformApplicationClient.js +50 -7
  10. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +69 -10
  11. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +30 -5
  12. package/sdk/platform/Cart/CartPlatformModel.d.ts +97 -72
  13. package/sdk/platform/Cart/CartPlatformModel.js +54 -35
  14. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  15. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
  16. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +17 -11
  17. package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -12
  18. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +353 -156
  19. package/sdk/platform/Catalog/CatalogPlatformModel.js +176 -87
  20. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -38
  21. package/sdk/platform/Catalog/CatalogPlatformValidator.js +22 -21
  22. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +1 -1
  23. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1 -1
  24. package/sdk/platform/Content/ContentPlatformModel.d.ts +7 -7
  25. package/sdk/platform/Content/ContentPlatformModel.js +5 -5
  26. package/sdk/platform/Order/OrderPlatformModel.d.ts +2 -2
  27. package/sdk/platform/Order/OrderPlatformModel.js +1 -1
  28. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  29. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +12 -3
  30. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +5 -0
  31. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -0
  32. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +4 -2
  33. package/sdk/platform/User/UserPlatformApplicationClient.js +9 -5
  34. package/sdk/platform/User/UserPlatformModel.d.ts +17 -1
  35. package/sdk/platform/User/UserPlatformModel.js +17 -1
@@ -808,10 +808,25 @@ const Joi = require("joi");
808
808
  * @property {Page} [page]
809
809
  */
810
810
 
811
+ /**
812
+ * @typedef InventoryRecord
813
+ * @property {string} [command] - The command associated with the data entry.
814
+ * @property {string} [currency] - The currency code, e.g., INR, USD.
815
+ * @property {string} [inventory_bucket] - Inventory bucket identifier.
816
+ * @property {number} [price_effective] - The effective price of the item.
817
+ * @property {number} [price_marked] - The marked price of the item.
818
+ * @property {string} [seller_identifier] - Identifier for the seller.
819
+ * @property {string} [store_code] - Code identifying the store.
820
+ * @property {number} [total_quantity] - The total quantity for the item.
821
+ * @property {string} [trace_id] - Trace identifier for tracking.
822
+ */
823
+
811
824
  /**
812
825
  * @typedef FailedRecord
813
826
  * @property {string} [identifiers]
814
827
  * @property {string} [message]
828
+ * @property {InventoryRecord[]} [data] - List of data items representing the
829
+ * bulk inventory get response.
815
830
  */
816
831
 
817
832
  /**
@@ -832,6 +847,7 @@ const Joi = require("joi");
832
847
  * @property {number} [succeed]
833
848
  * @property {number} [total]
834
849
  * @property {string[]} [tags]
850
+ * @property {string} [error_file_url]
835
851
  * @property {BulkMeta} [meta]
836
852
  */
837
853
 
@@ -841,6 +857,8 @@ const Joi = require("joi");
841
857
  * context or reason for the bulk inventory action.
842
858
  * @property {string[]} [image_urls] - A list of image URLs providing visual
843
859
  * evidence or supporting context for the comment.
860
+ * @property {number} [total] - The total count, if provided.
861
+ * @property {Object} [meta] - Metadata as a key-value map.
844
862
  */
845
863
 
846
864
  /**
@@ -877,6 +895,8 @@ const Joi = require("joi");
877
895
  * @property {string} [template_tag]
878
896
  * @property {number} [total]
879
897
  * @property {string} [tracking_url]
898
+ * @property {string[]} [tags]
899
+ * @property {Object} [meta]
880
900
  */
881
901
 
882
902
  /**
@@ -1996,7 +2016,7 @@ const Joi = require("joi");
1996
2016
  * @property {string} name - Name of the store location.
1997
2017
  * @property {string[]} [notification_emails] - Email addresses for sending
1998
2018
  * notifications related to this store.
1999
- * @property {string} phone_number - Primary phone number for contacting the store.
2019
+ * @property {string} [phone_number] - Primary phone number for contacting the store.
2000
2020
  * @property {ProductReturnConfigSchema} [product_return_config]
2001
2021
  * @property {string} [stage] - Current operational stage of the store.
2002
2022
  * @property {string} [store_type] - Type of store.
@@ -2438,8 +2458,8 @@ const Joi = require("joi");
2438
2458
 
2439
2459
  /**
2440
2460
  * @typedef InventoryExportJobListResponseSchema
2441
- * @property {InventoryJobDetailResponseSchema} items - This is the list/history
2442
- * of all the jobs.
2461
+ * @property {InventoryJobDetailResponseSchema[]} [items] - This is the
2462
+ * list/history of all the jobs.
2443
2463
  * @property {Page} [page]
2444
2464
  */
2445
2465
 
@@ -2487,9 +2507,9 @@ const Joi = require("joi");
2487
2507
  * @property {UserDetail} [created_by] - This is the user detail of the user who
2488
2508
  * cancelled the job.
2489
2509
  * @property {string} [created_on] - This is the timestamp of the creation for this job.
2490
- * @property {InventoryJobFilters} filters - This is the filter criteria applied
2491
- * for the export job.
2492
- * @property {string} id - This is the ID of the job.
2510
+ * @property {InventoryJobFilters} [filters] - This is the filter criteria
2511
+ * applied for the export job.
2512
+ * @property {string} [id] - This is the ID of the job.
2493
2513
  * @property {string} [modified_on] - This is the timestamp of the modification
2494
2514
  * for this job.
2495
2515
  * @property {string[]} [notification_emails] - User email to get notification
@@ -2497,9 +2517,9 @@ const Joi = require("joi");
2497
2517
  * @property {number} seller_id - This ID of the company.
2498
2518
  * @property {string} [status] - This tells you the current status of the export job.
2499
2519
  * @property {Object} [stats] - Provides count of total/success/failed
2500
- * @property {string} task_id - This is the task id of the jobs that is used for search.
2520
+ * @property {string} [task_id] - This is the task id of the jobs that is used for search.
2501
2521
  * @property {string} [type] - This is the file type of the export.
2502
- * @property {string} url - This is the url to download the export.
2522
+ * @property {string} [url] - This is the url to download the export.
2503
2523
  */
2504
2524
 
2505
2525
  /**
@@ -2564,6 +2584,7 @@ const Joi = require("joi");
2564
2584
  * @property {number} [not_available_quantity] - The not available quantity of
2565
2585
  * the inventory item.
2566
2586
  * @property {string} [trace_id] - The trace ID of the inventory payload.
2587
+ * @property {Object} [meta]
2567
2588
  */
2568
2589
 
2569
2590
  /**
@@ -3945,6 +3966,11 @@ const Joi = require("joi");
3945
3966
  /**
3946
3967
  * @typedef SizeDetails
3947
3968
  * @property {string} [size] - Size identifier for the product (e.g., "S", "M", "L").
3969
+ * @property {number} [item_width] - Item width for the size.
3970
+ * @property {number} [item_length] - Item length for the size.
3971
+ * @property {number} [item_height] - Item height for the size.
3972
+ * @property {number} [price_effective] - Effective price for the size.
3973
+ * @property {number} [item_weight] - Item weight for the size.
3948
3974
  * @property {number} [store_count] - The number of stores that have this size available.
3949
3975
  * @property {number} [sellable_quantity] - Quantity of the product that is
3950
3976
  * sellable in this size.
@@ -4840,6 +4866,8 @@ const Joi = require("joi");
4840
4866
  * @property {string} file_path - URL of the uploaded file containing inventory
4841
4867
  * update data.
4842
4868
  * @property {string[]} [tags] - Tags associated with the inventory update job.
4869
+ * @property {string} [created_on] - The date and time when the bulk inventory
4870
+ * job was created.
4843
4871
  * @property {BulkMeta} [meta]
4844
4872
  */
4845
4873
 
@@ -4914,43 +4942,49 @@ const Joi = require("joi");
4914
4942
 
4915
4943
  /**
4916
4944
  * @typedef TaxReqBodyRule
4917
- * @property {string} name - Tax rule name
4918
- * @property {string} [description] - Tax rule description
4945
+ * @property {string} name - Unique name of the tax rule
4946
+ * @property {string} [description] - A detailed description of the tax rule.
4947
+ * Helps provide context about its purpose and scope.
4919
4948
  */
4920
4949
 
4921
4950
  /**
4922
4951
  * @typedef TaxThreshold
4923
4952
  * @property {number} value - Tax rate is applied to products above or equal to
4924
4953
  * this price.
4925
- * @property {number} rate - Tax rate ranging from 0 to 1.
4954
+ * @property {number} rate - Tax rate ranging from 0 to 1
4926
4955
  */
4927
4956
 
4928
4957
  /**
4929
4958
  * @typedef TaxComponent
4930
- * @property {string} name - Name represent different types of taxes that may be
4931
- * applied to products or transactions, such as sales tax, value-added tax
4932
- * (VAT), goods and services tax, consumption tax, or other region-specific
4933
- * taxation systems.
4934
- * @property {TaxThreshold[]} slabs - List of slabs which comprises of tax rate
4935
- * and their respective threshold value
4959
+ * @property {string} name - The name of the tax component. This field
4960
+ * identifies the specific type of tax that the component represents, such as
4961
+ * sales tax, value-added tax (VAT), goods and services tax (GST), consumption
4962
+ * tax, or any other tax applicable at a regional or national level. This
4963
+ * enables classification and clear distinction between multiple tax types
4964
+ * applied to products or transactions.
4965
+ * @property {TaxThreshold[]} slabs - An array of tax rate slabs that define the
4966
+ * thresholds and corresponding rates for this component. Each slab specifies
4967
+ * a minimum value at which the tax rate applies and the rate itself, allowing
4968
+ * for tiered tax calculations based on price ranges or thresholds.
4936
4969
  */
4937
4970
 
4938
4971
  /**
4939
4972
  * @typedef TaxComponentResponseSchema
4940
- * @property {string} name - Name of the component.
4941
- * @property {string} [description] - Description of the tax component.
4942
- * @property {TaxThreshold[]} slabs - List of slabs that comprises of tax rate
4943
- * and their respective threshold.
4944
- * @property {string} _id - Unique identifier of the tax component. This _id is
4945
- * required for updating any tax component; If _id field is not in "update tax
4946
- * version" request then that component will be created.
4973
+ * @property {string} name - Name of the component
4974
+ * @property {string} [description] - Description of the tax component
4975
+ * @property {TaxThreshold[]} slabs - An array of tax rate slabs, each
4976
+ * specifying the applicable tax rate and its corresponding threshold for this
4977
+ * component.
4978
+ * @property {string} _id - Unique identifier of the tax component. It is
4979
+ * required for updating any tax component; If _id field is not in
4980
+ * "updateTaxVersion" request then that component will be created.
4947
4981
  */
4948
4982
 
4949
4983
  /**
4950
4984
  * @typedef TaxComponentName
4951
4985
  * @property {string} _id - Unique identifier for the tax component name
4952
- * @property {number} company_id - Identifier of the company this component name
4953
- * belongs to
4986
+ * @property {number} company_id - Unique identifier of the company to which
4987
+ * this tax component name is associated.
4954
4988
  * @property {string} name - Name of the tax component
4955
4989
  * @property {string} [description] - Description of the tax component name
4956
4990
  * @property {string} [created_on] - Timestamp when the component name was created
@@ -4960,19 +4994,23 @@ const Joi = require("joi");
4960
4994
  /**
4961
4995
  * @typedef CreateTaxComponentNameRequestSchema
4962
4996
  * @property {string} name - Name of the tax component
4963
- * @property {string} [description] - Description of the tax component name
4964
4997
  */
4965
4998
 
4966
4999
  /**
4967
5000
  * @typedef TaxReqBodyVersion
4968
- * @property {TaxComponent[]} components - List of tax components with their
4969
- * respective slabs and rates.
4970
- * @property {string} [applicable_date] - Optional future effective date for the
4971
- * version. Must be at least one minute ahead of the current time when supplied.
4972
- * @property {string} [region_type] - Required whenever areas are supplied to
4973
- * indicate the granularity of the provided regions.
5001
+ * @property {string} [scope] - Scope of the tax version
5002
+ * @property {TaxComponent[]} components - Array of tax components included in
5003
+ * this version that will apply within the scope of this tax version.
5004
+ * @property {string} [applicable_date] - The date and time (in ISO 8601 format)
5005
+ * when this tax version becomes effective. If provided, it must be at least
5006
+ * one minute later than the current time, allowing scheduling of future tax
5007
+ * rule activation.
5008
+ * @property {string} [region_type] - Specifies the level (like state, city, or
5009
+ * pincode) for this tax version when the 'areas' field is used. Use values
5010
+ * allowed for the country, which you can get from the Servicability
5011
+ * country-hierarchy API. This field is needed if 'areas' are provided.
4974
5012
  * @property {TaxGeoArea} [areas]
4975
- * @property {number[]} [store_ids] - Store identifiers for store-level taxation.
5013
+ * @property {number[]} [store_ids] - List of store identifiers for store-level taxation.
4976
5014
  */
4977
5015
 
4978
5016
  /**
@@ -5012,59 +5050,77 @@ const Joi = require("joi");
5012
5050
  /**
5013
5051
  * @typedef CreateTaxRequestBody
5014
5052
  * @property {TaxReqBodyRule} rule
5015
- * @property {TaxReqBodyVersion[]} versions - List of tax versions for the tax rule.
5053
+ * @property {TaxReqBodyVersion} versions
5016
5054
  */
5017
5055
 
5018
5056
  /**
5019
5057
  * @typedef TaxVersion
5020
- * @property {string} [_id]
5021
- * @property {string} [rule_id] - Tax Rule ID.
5022
- * @property {string} [applicable_date] - Scheduled effective date for the
5023
- * version. Must be at least one minute ahead of current time when provided.
5024
- * @property {string} [created_on]
5025
- * @property {string} [modified_on]
5026
- * @property {number} [company_id] - Company ID.
5058
+ * @property {string} [_id] - Unique identifier of the tax version
5059
+ * @property {string} [rule_id] - Unique identifier of the tax rule to which
5060
+ * this version belongs. This identifier links the tax version to its parent rule.
5061
+ * @property {string} [applicable_date] - The date and time when this version
5062
+ * becomes effective and is used for taxation purposes. This field must be at
5063
+ * least one minute in the future relative to the current system time to
5064
+ * ensure future scheduling of tax versions.
5065
+ * @property {string} [created_on] - ISO 8601 timestamp indicating when this tax
5066
+ * version was created in the system. Used for audit trails and version history.
5067
+ * @property {string} [modified_on] - ISO 8601 timestamp of the latest update to
5068
+ * this tax version. Every modification or update to the version record
5069
+ * updates this field, ensuring accurate audit and traceability.
5070
+ * @property {number} [company_id] - Unique identifier of the company for which
5071
+ * this tax version is defined.
5027
5072
  * @property {TaxStatusEnum} [status]
5028
- * @property {string} [region_type] - Present when the version targets a
5029
- * specific set of regions rather than the default country-level rule.
5073
+ * @property {string} [region_type] - Specifies the geographical region at which
5074
+ * the tax rule version applies. Required and present when the version targets
5075
+ * a specific region rather than the default country-level rule.
5030
5076
  * @property {TaxGeoArea} [areas]
5031
- * @property {number[]} [store_ids] - Store identifiers for store-level taxation.
5077
+ * @property {number[]} [store_ids] - Array of store identifiers to which this
5078
+ * tax version is scoped. Enables store-level tax configuration, allowing
5079
+ * companies to specify tax applicability at individual store granularity.
5032
5080
  * @property {TaxVersionScopeEnum} [scope]
5033
- * @property {TaxComponentResponseSchema[]} [components] - List of tax components.
5081
+ * @property {TaxComponentResponseSchema[]} [components]
5034
5082
  */
5035
5083
 
5036
5084
  /**
5037
5085
  * @typedef UpdateTaxVersionRequestBody
5038
- * @property {TaxComponentResponseSchema[]} components - List of tax components.
5086
+ * @property {TaxComponentResponseSchema[]} components
5039
5087
  * @property {string} applicable_date - It is the date from when this rule will
5040
5088
  * come in effect. It should be at least one minute in the future from the
5041
5089
  * current time.
5042
5090
  * @property {string} [region_type] - Required when areas are present to denote
5043
- * the level (city/state/pincode) at which the version applies.
5091
+ * the level (city/state/pincode) at which the version applies. Supported
5092
+ * region types are derived from Servicability's country hierarchy (e.g.,
5093
+ * India: state, city; UAE: sector, city). Use the Servicability
5094
+ * country-hierarchy API to read the allowed levels.
5044
5095
  * @property {TaxGeoArea} [areas]
5045
5096
  * @property {number[]} [store_ids] - Store identifiers for store-level taxation.
5046
5097
  */
5047
5098
 
5048
5099
  /**
5049
5100
  * @typedef CreateTaxVersionRequestBody
5050
- * @property {TaxComponent[]} components - List of tax components.
5101
+ * @property {string} [scope] - Scope of the tax version
5102
+ * @property {TaxComponent[]} components - List of tax components
5051
5103
  * @property {string} [applicable_date] - Optional scheduled date from when this
5052
5104
  * rule will come in effect. It should be at least one minute in the future
5053
- * from the current time. Date time format YYYY-MM-DDThh:mm:ss±hh:mm.
5105
+ * from the current time.
5054
5106
  * @property {string} [region_type] - Required when areas are present to denote
5055
- * the level (city/state/pincode) at which the version applies.
5107
+ * the level (city/state/pincode) at which the version applies. Supported
5108
+ * values follow Servicability's country hierarchy (e.g., India: state, city;
5109
+ * UAE: sector, city); consult Servicability country-hierarchy APIs to
5110
+ * retrieve valid levels.
5056
5111
  * @property {TaxGeoArea} [areas]
5057
5112
  * @property {number[]} [store_ids] - Store identifiers for store-level taxation.
5058
5113
  */
5059
5114
 
5060
5115
  /**
5061
5116
  * @typedef TaxRule
5062
- * @property {string} [_id]
5063
- * @property {string} [name]
5064
- * @property {string} [description] - Description of the tax rule.
5065
- * @property {boolean} [is_default] - Flag to set any tax rule as default, in
5066
- * case any tax rule is inactive on a product then default tax rule gets applied
5067
- * @property {number} [company_id]
5117
+ * @property {string} [_id] - Unique identifier of the tax rule
5118
+ * @property {string} [name] - Name of the tax rule
5119
+ * @property {string} [description] - Description of the tax rule
5120
+ * @property {boolean} [is_default] - Flag to set any tax rule as default. If
5121
+ * any tax rule is inactive on a product then default tax rule gets applied.
5122
+ * @property {number} [company_id] - Unique identifier of the company which the
5123
+ * tax rule created
5068
5124
  * @property {TaxStatusEnum} [status]
5069
5125
  * @property {string} [created_on]
5070
5126
  * @property {string} [modified_on]
@@ -5072,14 +5128,15 @@ const Joi = require("joi");
5072
5128
 
5073
5129
  /**
5074
5130
  * @typedef TaxVersionDetail
5075
- * @property {string} _id
5076
- * @property {string} rule_id
5131
+ * @property {string} _id - Unique identifier for the tax version
5132
+ * @property {string} rule_id - Unique identifier for the rule ID
5077
5133
  * @property {string} applicable_date - It is the date from when this rule comes
5078
5134
  * in effect. Always present and should be at least one minute in the future
5079
5135
  * when scheduled.
5080
5136
  * @property {string} created_on
5081
5137
  * @property {string} modified_on
5082
- * @property {number} company_id
5138
+ * @property {number} company_id - Unique identifier of the company which the
5139
+ * tax rule created
5083
5140
  * @property {TaxStatusEnum} [status]
5084
5141
  * @property {string} [region_code] - Region code for areas sent when adding a
5085
5142
  * region override.
@@ -5099,10 +5156,10 @@ const Joi = require("joi");
5099
5156
  /**
5100
5157
  * @typedef UpdateTaxRequestBody
5101
5158
  * @property {TaxStatusEnum} status
5102
- * @property {boolean} is_default - Flag to set any tax rule as default, in case
5103
- * any tax rule is inactive or not available on a product then default tax
5104
- * rule gets applied.
5105
- * @property {string} name - New name of the tax rule.
5159
+ * @property {boolean} is_default - Flag to set tax rule as the default. If a
5160
+ * tax rule is inactive or not available for a product, the default tax rule
5161
+ * will be applied.
5162
+ * @property {string} name - New name of the tax rule
5106
5163
  */
5107
5164
 
5108
5165
  /**
@@ -5113,7 +5170,7 @@ const Joi = require("joi");
5113
5170
 
5114
5171
  /**
5115
5172
  * @typedef TaxRules
5116
- * @property {TaxRuleItem[]} items - List of tax rules with their versions.
5173
+ * @property {TaxRuleItem[]} items - List of tax rules with their versions
5117
5174
  * @property {Page} page
5118
5175
  */
5119
5176
 
@@ -5125,27 +5182,30 @@ const Joi = require("joi");
5125
5182
 
5126
5183
  /**
5127
5184
  * @typedef TaxRuleVersion
5128
- * @property {TaxVersionDetail[]} items - List of tax versions.
5185
+ * @property {TaxVersionDetail[]} items - List of tax versions
5129
5186
  * @property {TaxRule} rule
5130
5187
  * @property {Page} page
5131
5188
  */
5132
5189
 
5133
5190
  /**
5134
5191
  * @typedef HSCodeItem
5135
- * @property {string} [created_on] - Timestamp of when the HS code was created.
5136
- * @property {string} [modified_on] - Timestamp of when the HS code was last modified.
5137
- * @property {HsTypeEnum} type
5138
- * @property {number} [company_id] - Company ID associated with this HS code.
5139
- * @property {string} [description] - Description of the HS code.
5140
- * @property {string} hs_code - The HS code of the product.
5141
- * @property {string} [_id] - Unique identifier for the HS code entry.
5142
- * @property {string} [country_iso] - ISO 2-digit country code. Will be set by
5143
- * default according to company's country.
5192
+ * @property {string} [created_on] - Timestamp when the HS/SAC code entry was created.
5193
+ * @property {string} [modified_on] - Timestamp of the most recent modification
5194
+ * to this HS/SAC code entry.
5195
+ * @property {string} type - Type of the code for services
5196
+ * @property {number} [company_id] - Unique identifier of the company to which
5197
+ * this HS/SAC code is associated.
5198
+ * @property {string} [description] - Description providing details about the HS
5199
+ * or SAC code
5200
+ * @property {string} hs_code - The HS or SAC value being registered for the company.
5201
+ * @property {string} [_id] - Unique identifier for the HS/SAC code entry
5202
+ * @property {string} [country_iso] - ISO 3166-1 alpha-2 country code
5203
+ * representing the country for which this code is registered.
5144
5204
  */
5145
5205
 
5146
5206
  /**
5147
5207
  * @typedef HSCodes
5148
- * @property {HSCodeItem[]} items - Array of HS code responses.
5208
+ * @property {HSCodeItem[]} items - Array of HS code responses
5149
5209
  * @property {Page} page
5150
5210
  */
5151
5211
 
@@ -6220,11 +6280,27 @@ class CatalogPlatformModel {
6220
6280
  });
6221
6281
  }
6222
6282
 
6283
+ /** @returns {InventoryRecord} */
6284
+ static InventoryRecord() {
6285
+ return Joi.object({
6286
+ command: Joi.string().allow(""),
6287
+ currency: Joi.string().allow(""),
6288
+ inventory_bucket: Joi.string().allow(""),
6289
+ price_effective: Joi.number(),
6290
+ price_marked: Joi.number(),
6291
+ seller_identifier: Joi.string().allow(""),
6292
+ store_code: Joi.string().allow(""),
6293
+ total_quantity: Joi.number(),
6294
+ trace_id: Joi.string().allow(""),
6295
+ });
6296
+ }
6297
+
6223
6298
  /** @returns {FailedRecord} */
6224
6299
  static FailedRecord() {
6225
6300
  return Joi.object({
6226
6301
  identifiers: Joi.string().allow(""),
6227
6302
  message: Joi.string().allow(""),
6303
+ data: Joi.array().items(CatalogPlatformModel.InventoryRecord()),
6228
6304
  });
6229
6305
  }
6230
6306
 
@@ -6247,6 +6323,7 @@ class CatalogPlatformModel {
6247
6323
  succeed: Joi.number(),
6248
6324
  total: Joi.number(),
6249
6325
  tags: Joi.array().items(Joi.string().allow("")),
6326
+ error_file_url: Joi.string().allow(""),
6250
6327
  meta: CatalogPlatformModel.BulkMeta(),
6251
6328
  });
6252
6329
  }
@@ -6256,6 +6333,8 @@ class CatalogPlatformModel {
6256
6333
  return Joi.object({
6257
6334
  comment: Joi.string().allow(""),
6258
6335
  image_urls: Joi.array().items(Joi.string().allow("")),
6336
+ total: Joi.number().allow(null),
6337
+ meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
6259
6338
  });
6260
6339
  }
6261
6340
 
@@ -6293,6 +6372,8 @@ class CatalogPlatformModel {
6293
6372
  template_tag: Joi.string().allow(""),
6294
6373
  total: Joi.number(),
6295
6374
  tracking_url: Joi.string().allow(""),
6375
+ tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
6376
+ meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
6296
6377
  });
6297
6378
  }
6298
6379
 
@@ -7507,7 +7588,7 @@ class CatalogPlatformModel {
7507
7588
  modified_on: Joi.string().allow(""),
7508
7589
  name: Joi.string().allow("").required(),
7509
7590
  notification_emails: Joi.array().items(Joi.string().allow("")),
7510
- phone_number: Joi.string().allow("").required(),
7591
+ phone_number: Joi.string().allow(""),
7511
7592
  product_return_config: CatalogPlatformModel.ProductReturnConfigSchema(),
7512
7593
  stage: Joi.string().allow(""),
7513
7594
  store_type: Joi.string().allow(""),
@@ -7985,7 +8066,9 @@ class CatalogPlatformModel {
7985
8066
  /** @returns {InventoryExportJobListResponseSchema} */
7986
8067
  static InventoryExportJobListResponseSchema() {
7987
8068
  return Joi.object({
7988
- items: CatalogPlatformModel.InventoryJobDetailResponseSchema().required(),
8069
+ items: Joi.array()
8070
+ .items(CatalogPlatformModel.InventoryJobDetailResponseSchema())
8071
+ .allow(null, ""),
7989
8072
  page: CatalogPlatformModel.Page(),
7990
8073
  });
7991
8074
  }
@@ -8039,16 +8122,16 @@ class CatalogPlatformModel {
8039
8122
  completed_on: Joi.string().allow(""),
8040
8123
  created_by: CatalogPlatformModel.UserDetail(),
8041
8124
  created_on: Joi.string().allow(""),
8042
- filters: CatalogPlatformModel.InventoryJobFilters().required(),
8043
- id: Joi.string().allow("").required(),
8125
+ filters: CatalogPlatformModel.InventoryJobFilters(),
8126
+ id: Joi.string().allow(""),
8044
8127
  modified_on: Joi.string().allow(""),
8045
8128
  notification_emails: Joi.array().items(Joi.string().allow("")),
8046
8129
  seller_id: Joi.number().required(),
8047
8130
  status: Joi.string().allow(""),
8048
8131
  stats: Joi.object().pattern(/\S/, Joi.any()),
8049
- task_id: Joi.string().allow("").required(),
8132
+ task_id: Joi.string().allow(""),
8050
8133
  type: Joi.string().allow("").allow(null),
8051
- url: Joi.string().allow("").required(),
8134
+ url: Joi.string().allow(""),
8052
8135
  });
8053
8136
  }
8054
8137
 
@@ -8114,6 +8197,7 @@ class CatalogPlatformModel {
8114
8197
  damaged_quantity: Joi.number().allow(null),
8115
8198
  not_available_quantity: Joi.number().allow(null),
8116
8199
  trace_id: Joi.string().allow(""),
8200
+ meta: Joi.object().pattern(/\S/, Joi.any()),
8117
8201
  });
8118
8202
  }
8119
8203
 
@@ -9564,6 +9648,11 @@ class CatalogPlatformModel {
9564
9648
  static SizeDetails() {
9565
9649
  return Joi.object({
9566
9650
  size: Joi.string().allow(""),
9651
+ item_width: Joi.number().allow(null),
9652
+ item_length: Joi.number().allow(null),
9653
+ item_height: Joi.number().allow(null),
9654
+ price_effective: Joi.number().allow(null),
9655
+ item_weight: Joi.number().allow(null),
9567
9656
  store_count: Joi.number(),
9568
9657
  sellable_quantity: Joi.number(),
9569
9658
  sellable: Joi.boolean(),
@@ -10501,6 +10590,7 @@ class CatalogPlatformModel {
10501
10590
  file_type: Joi.string().allow("").required(),
10502
10591
  file_path: Joi.string().allow("").required(),
10503
10592
  tags: Joi.array().items(Joi.string().allow("")),
10593
+ created_on: Joi.string().allow(""),
10504
10594
  meta: CatalogPlatformModel.BulkMeta(),
10505
10595
  });
10506
10596
  }
@@ -10634,13 +10724,13 @@ class CatalogPlatformModel {
10634
10724
  static CreateTaxComponentNameRequestSchema() {
10635
10725
  return Joi.object({
10636
10726
  name: Joi.string().allow("").required(),
10637
- description: Joi.string().allow(""),
10638
10727
  });
10639
10728
  }
10640
10729
 
10641
10730
  /** @returns {TaxReqBodyVersion} */
10642
10731
  static TaxReqBodyVersion() {
10643
10732
  return Joi.object({
10733
+ scope: Joi.string().allow(""),
10644
10734
  components: Joi.array()
10645
10735
  .items(CatalogPlatformModel.TaxComponent())
10646
10736
  .required(),
@@ -10698,9 +10788,7 @@ class CatalogPlatformModel {
10698
10788
  static CreateTaxRequestBody() {
10699
10789
  return Joi.object({
10700
10790
  rule: CatalogPlatformModel.TaxReqBodyRule().required(),
10701
- versions: Joi.array()
10702
- .items(CatalogPlatformModel.TaxReqBodyVersion())
10703
- .required(),
10791
+ versions: CatalogPlatformModel.TaxReqBodyVersion().required(),
10704
10792
  });
10705
10793
  }
10706
10794
 
@@ -10740,6 +10828,7 @@ class CatalogPlatformModel {
10740
10828
  /** @returns {CreateTaxVersionRequestBody} */
10741
10829
  static CreateTaxVersionRequestBody() {
10742
10830
  return Joi.object({
10831
+ scope: Joi.string().allow(""),
10743
10832
  components: Joi.array()
10744
10833
  .items(CatalogPlatformModel.TaxComponent())
10745
10834
  .required(),
@@ -10844,7 +10933,7 @@ class CatalogPlatformModel {
10844
10933
  return Joi.object({
10845
10934
  created_on: Joi.string().allow(""),
10846
10935
  modified_on: Joi.string().allow(""),
10847
- type: CatalogPlatformModel.HsTypeEnum().required(),
10936
+ type: Joi.string().allow("").required(),
10848
10937
  company_id: Joi.number(),
10849
10938
  description: Joi.string().allow(""),
10850
10939
  hs_code: Joi.string().allow("").required(),