@gofynd/fdk-client-javascript 1.4.8-beta.2 → 1.4.8

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 (198) hide show
  1. package/README.md +26 -1
  2. package/package.json +2 -2
  3. package/sdk/application/ApplicationClient.d.ts +8 -0
  4. package/sdk/application/ApplicationClient.js +14 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
  6. package/sdk/application/Cart/CartApplicationClient.js +20 -20
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
  8. package/sdk/application/Cart/CartApplicationModel.js +783 -552
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
  10. package/sdk/application/Cart/CartApplicationValidator.js +100 -114
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
  15. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
  16. package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
  20. package/sdk/application/Common/CommonApplicationModel.js +59 -58
  21. package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
  22. package/sdk/application/Common/CommonApplicationValidator.js +3 -3
  23. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
  25. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
  26. package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
  27. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
  28. package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
  29. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
  30. package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
  31. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
  32. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
  33. package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
  34. package/sdk/application/Content/ContentApplicationClient.js +16 -16
  35. package/sdk/application/Content/ContentApplicationModel.d.ts +1206 -281
  36. package/sdk/application/Content/ContentApplicationModel.js +342 -276
  37. package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
  38. package/sdk/application/Content/ContentApplicationValidator.js +11 -10
  39. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  40. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  41. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
  42. package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
  43. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  44. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  45. package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
  46. package/sdk/application/Lead/LeadApplicationModel.js +110 -67
  47. package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
  48. package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
  49. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
  50. package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
  51. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
  52. package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
  53. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
  54. package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
  55. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
  56. package/sdk/application/Order/OrderApplicationClient.js +10 -10
  57. package/sdk/application/Order/OrderApplicationModel.d.ts +1401 -324
  58. package/sdk/application/Order/OrderApplicationModel.js +392 -316
  59. package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
  60. package/sdk/application/Order/OrderApplicationValidator.js +15 -14
  61. package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
  62. package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
  63. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
  64. package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
  65. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
  66. package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
  67. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
  68. package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
  69. package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
  70. package/sdk/application/Share/ShareApplicationModel.js +53 -37
  71. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
  72. package/sdk/application/Share/ShareApplicationValidator.js +2 -1
  73. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  74. package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
  75. package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
  76. package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
  77. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
  78. package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
  79. package/sdk/application/User/UserApplicationClient.d.ts +36 -36
  80. package/sdk/application/User/UserApplicationClient.js +36 -36
  81. package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
  82. package/sdk/application/User/UserApplicationModel.js +298 -244
  83. package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
  84. package/sdk/application/User/UserApplicationValidator.js +40 -40
  85. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  86. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  87. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
  88. package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
  89. package/sdk/common/Clickstream.js +95 -15
  90. package/sdk/common/Constant.d.ts +9 -0
  91. package/sdk/common/Constant.js +11 -0
  92. package/sdk/common/Utility.js +19 -0
  93. package/sdk/common/utils.js +8 -1
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
  95. package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
  96. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +75 -8
  97. package/sdk/partner/Logistics/LogisticsPartnerModel.js +59 -7
  98. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +2 -2
  99. package/sdk/partner/PartnerClient.d.ts +8 -0
  100. package/sdk/partner/PartnerClient.js +14 -0
  101. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
  102. package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
  103. package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
  104. package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
  105. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
  106. package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
  107. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
  108. package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
  109. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
  110. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
  111. package/sdk/platform/Billing/BillingPlatformClient.d.ts +21 -10
  112. package/sdk/platform/Billing/BillingPlatformClient.js +167 -83
  113. package/sdk/platform/Billing/BillingPlatformModel.d.ts +2849 -565
  114. package/sdk/platform/Billing/BillingPlatformModel.js +935 -556
  115. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +30 -14
  116. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -16
  117. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
  118. package/sdk/platform/Cart/CartPlatformModel.js +8 -8
  119. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  120. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +20 -0
  121. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +37 -0
  122. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +16 -0
  123. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
  124. package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
  125. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
  126. package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
  127. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
  128. package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
  129. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
  130. package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
  134. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
  136. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
  137. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
  138. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
  139. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
  140. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
  141. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
  142. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
  143. package/sdk/platform/Content/ContentPlatformModel.d.ts +60 -17
  144. package/sdk/platform/Content/ContentPlatformModel.js +30 -15
  145. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
  146. package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
  147. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
  148. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
  149. package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
  150. package/sdk/platform/Finance/FinancePlatformClient.js +30 -30
  151. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1601 -348
  152. package/sdk/platform/Finance/FinancePlatformModel.js +488 -352
  153. package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
  154. package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
  155. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
  156. package/sdk/platform/Order/OrderPlatformClient.js +165 -0
  157. package/sdk/platform/Order/OrderPlatformModel.d.ts +631 -39
  158. package/sdk/platform/Order/OrderPlatformModel.js +367 -41
  159. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
  160. package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
  161. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
  162. package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
  163. package/sdk/platform/PlatformClient.d.ts +8 -0
  164. package/sdk/platform/PlatformClient.js +14 -0
  165. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
  166. package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
  167. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
  168. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
  169. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  170. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  171. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +139 -22
  172. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +98 -21
  173. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  174. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  175. package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
  176. package/sdk/platform/Share/SharePlatformModel.js +7 -7
  177. package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
  178. package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
  179. package/sdk/platform/User/UserPlatformModel.d.ts +18 -20
  180. package/sdk/platform/User/UserPlatformModel.js +9 -11
  181. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +54 -33
  182. package/sdk/platform/Webhook/WebhookPlatformModel.js +33 -33
  183. package/sdk/public/Billing/BillingPublicClient.d.ts +11 -0
  184. package/sdk/public/Billing/BillingPublicClient.js +80 -0
  185. package/sdk/public/Billing/BillingPublicModel.d.ts +584 -99
  186. package/sdk/public/Billing/BillingPublicModel.js +252 -87
  187. package/sdk/public/Billing/BillingPublicValidator.d.ts +10 -1
  188. package/sdk/public/Billing/BillingPublicValidator.js +12 -0
  189. package/sdk/public/PublicClient.d.ts +0 -2
  190. package/sdk/public/PublicClient.js +0 -4
  191. package/sdk/public/index.d.ts +0 -1
  192. package/sdk/public/index.js +0 -2
  193. package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
  194. package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
  195. package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
  196. package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
  197. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
  198. package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
@@ -108,14 +108,18 @@ const Joi = require("joi");
108
108
 
109
109
  /**
110
110
  * @typedef ListViewItems
111
- * @property {string} zone_id
112
- * @property {string} name
113
- * @property {string} slug
114
- * @property {number} stores_count
115
- * @property {boolean} is_active
116
- * @property {number} regions_count
117
- * @property {number} company_id
118
- * @property {ListViewChannels[]} channels
111
+ * @property {string} zone_id - The unique identifier for the zone.
112
+ * @property {string} name - The name of the zone.
113
+ * @property {string} slug - A human-readable and unique identifier for the
114
+ * zone, derived from the name.
115
+ * @property {number} stores_count - The number of stores within the zone.
116
+ * @property {boolean} is_active - A flag indicating whether the zone is active.
117
+ * @property {number} regions_count - The number of regions within the zone.
118
+ * @property {number} company_id - The unique identifier for the company to
119
+ * which the zone belongs.
120
+ * @property {number[]} [store_ids] - A list of store identifiers associated
121
+ * with the zone.
122
+ * @property {ListViewChannels[]} channels - The name of the zone.
119
123
  */
120
124
 
121
125
  /**
@@ -595,6 +599,16 @@ const Joi = require("joi");
595
599
  * @property {boolean} is_own_account
596
600
  */
597
601
 
602
+ /**
603
+ * @typedef CourierAccountRequestBody
604
+ * @property {string} extension_id
605
+ * @property {string} [account_id]
606
+ * @property {string} scheme_id
607
+ * @property {boolean} is_self_ship
608
+ * @property {string} stage
609
+ * @property {boolean} is_own_account
610
+ */
611
+
598
612
  /**
599
613
  * @typedef ErrorResponse
600
614
  * @property {string} value
@@ -610,21 +624,43 @@ const Joi = require("joi");
610
624
 
611
625
  /**
612
626
  * @typedef Page
613
- * @property {number} [item_total]
614
- * @property {string} [next_id]
615
- * @property {boolean} [has_previous]
616
- * @property {boolean} [has_next]
617
- * @property {number} [current]
618
- * @property {string} type
619
- * @property {number} [size]
627
+ * @property {number} [item_total] - The total number of items on the page.
628
+ * @property {string} [next_id] - The identifier for the next page.
629
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
630
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
631
+ * @property {number} [current] - The current page number.
632
+ * @property {string} type - The type of the page, such as 'PageType'.
633
+ * @property {number} [size] - The number of items per page.
634
+ */
635
+
636
+ /**
637
+ * @typedef CourierPartnerRuleCPListResponse
638
+ * @property {string} [account_id]
639
+ * @property {string} [extension_id]
640
+ * @property {boolean} [is_self_ship]
641
+ * @property {Object} [scheme_rules]
642
+ */
643
+
644
+ /**
645
+ * @typedef CourierPartnerRuleResponse
646
+ * @property {boolean} [is_active]
647
+ * @property {string} [application_id]
648
+ * @property {number} [company_id]
649
+ * @property {CourierPartnerRuleConditions} [conditions]
650
+ * @property {string[]} [sort]
651
+ * @property {Object} [created_by]
652
+ * @property {string} [id]
653
+ * @property {Object} [modified_by]
654
+ * @property {string} [modified_on]
655
+ * @property {string} [name]
656
+ * @property {string} [type]
657
+ * @property {CourierPartnerRuleCPListResponse[]} [cp_list]
620
658
  */
621
659
 
622
660
  /**
623
661
  * @typedef CourierPartnerList
624
662
  * @property {string} extension_id
625
663
  * @property {string} account_id
626
- * @property {string} name
627
- * @property {boolean} is_self_ship
628
664
  */
629
665
 
630
666
  /**
@@ -690,7 +726,7 @@ const Joi = require("joi");
690
726
 
691
727
  /**
692
728
  * @typedef CourierPartnerRulesListResponse
693
- * @property {CourierPartnerRule[]} items
729
+ * @property {CourierPartnerRuleResponse[]} items
694
730
  * @property {Page} page
695
731
  */
696
732
 
@@ -1275,6 +1311,7 @@ class ServiceabilityPlatformModel {
1275
1311
  is_active: Joi.boolean().required(),
1276
1312
  regions_count: Joi.number().required(),
1277
1313
  company_id: Joi.number().required(),
1314
+ store_ids: Joi.array().items(Joi.number()),
1278
1315
  channels: Joi.array()
1279
1316
  .items(ServiceabilityPlatformModel.ListViewChannels())
1280
1317
  .required(),
@@ -1908,6 +1945,18 @@ class ServiceabilityPlatformModel {
1908
1945
  });
1909
1946
  }
1910
1947
 
1948
+ /** @returns {CourierAccountRequestBody} */
1949
+ static CourierAccountRequestBody() {
1950
+ return Joi.object({
1951
+ extension_id: Joi.string().allow("").required(),
1952
+ account_id: Joi.string().allow(""),
1953
+ scheme_id: Joi.string().allow("").required(),
1954
+ is_self_ship: Joi.boolean().required(),
1955
+ stage: Joi.string().allow("").required(),
1956
+ is_own_account: Joi.boolean().required(),
1957
+ });
1958
+ }
1959
+
1911
1960
  /** @returns {ErrorResponse} */
1912
1961
  static ErrorResponse() {
1913
1962
  return Joi.object({
@@ -1940,13 +1989,41 @@ class ServiceabilityPlatformModel {
1940
1989
  });
1941
1990
  }
1942
1991
 
1992
+ /** @returns {CourierPartnerRuleCPListResponse} */
1993
+ static CourierPartnerRuleCPListResponse() {
1994
+ return Joi.object({
1995
+ account_id: Joi.string().allow(""),
1996
+ extension_id: Joi.string().allow(""),
1997
+ is_self_ship: Joi.boolean(),
1998
+ scheme_rules: Joi.any(),
1999
+ });
2000
+ }
2001
+
2002
+ /** @returns {CourierPartnerRuleResponse} */
2003
+ static CourierPartnerRuleResponse() {
2004
+ return Joi.object({
2005
+ is_active: Joi.boolean(),
2006
+ application_id: Joi.string().allow(""),
2007
+ company_id: Joi.number(),
2008
+ conditions: ServiceabilityPlatformModel.CourierPartnerRuleConditions(),
2009
+ sort: Joi.array().items(Joi.string().allow("")),
2010
+ created_by: Joi.any().allow(null),
2011
+ id: Joi.string().allow(""),
2012
+ modified_by: Joi.any().allow(null),
2013
+ modified_on: Joi.string().allow("").allow(null),
2014
+ name: Joi.string().allow(""),
2015
+ type: Joi.string().allow(""),
2016
+ cp_list: Joi.array().items(
2017
+ ServiceabilityPlatformModel.CourierPartnerRuleCPListResponse()
2018
+ ),
2019
+ });
2020
+ }
2021
+
1943
2022
  /** @returns {CourierPartnerList} */
1944
2023
  static CourierPartnerList() {
1945
2024
  return Joi.object({
1946
2025
  extension_id: Joi.string().allow("").required(),
1947
2026
  account_id: Joi.string().allow("").required(),
1948
- name: Joi.string().allow("").required(),
1949
- is_self_ship: Joi.boolean().required(),
1950
2027
  });
1951
2028
  }
1952
2029
 
@@ -2035,7 +2112,7 @@ class ServiceabilityPlatformModel {
2035
2112
  static CourierPartnerRulesListResponse() {
2036
2113
  return Joi.object({
2037
2114
  items: Joi.array()
2038
- .items(ServiceabilityPlatformModel.CourierPartnerRule())
2115
+ .items(ServiceabilityPlatformModel.CourierPartnerRuleResponse())
2039
2116
  .required(),
2040
2117
  page: ServiceabilityPlatformModel.Page().required(),
2041
2118
  });
@@ -13,7 +13,7 @@ export = ServiceabilityPlatformValidator;
13
13
  */
14
14
  /**
15
15
  * @typedef CreateCourierPartnerAccountParam
16
- * @property {ServiceabilityPlatformModel.CourierAccount} body
16
+ * @property {ServiceabilityPlatformModel.CourierAccountRequestBody} body
17
17
  */
18
18
  /**
19
19
  * @typedef CreatePackageMaterialParam
@@ -114,7 +114,7 @@ export = ServiceabilityPlatformValidator;
114
114
  * @property {boolean} [isActive] - Status of Zone (either active or inactive)
115
115
  * @property {string} [channelId] - Zones filtered by an application
116
116
  * @property {string} [q] - Search with name as a free text
117
- * @property {string} [country] - ISO2 code of the country
117
+ * @property {string} [countryIsoCode] - ISO2 code of the country
118
118
  * @property {string} [state] - State name
119
119
  * @property {string} [city] - City name
120
120
  * @property {string} [pincode] - Pincode value to search zones
@@ -233,7 +233,7 @@ type BulkTatParam = {
233
233
  body: ServiceabilityPlatformModel.BulkRegionJobSerializer;
234
234
  };
235
235
  type CreateCourierPartnerAccountParam = {
236
- body: ServiceabilityPlatformModel.CourierAccount;
236
+ body: ServiceabilityPlatformModel.CourierAccountRequestBody;
237
237
  };
238
238
  type CreatePackageMaterialParam = {
239
239
  body: ServiceabilityPlatformModel.PackageMaterial;
@@ -461,7 +461,7 @@ type GetZonesParam = {
461
461
  /**
462
462
  * - ISO2 code of the country
463
463
  */
464
- country?: string;
464
+ countryIsoCode?: string;
465
465
  /**
466
466
  * - State name
467
467
  */
@@ -18,7 +18,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
18
18
 
19
19
  /**
20
20
  * @typedef CreateCourierPartnerAccountParam
21
- * @property {ServiceabilityPlatformModel.CourierAccount} body
21
+ * @property {ServiceabilityPlatformModel.CourierAccountRequestBody} body
22
22
  */
23
23
 
24
24
  /**
@@ -136,7 +136,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
136
136
  * @property {boolean} [isActive] - Status of Zone (either active or inactive)
137
137
  * @property {string} [channelId] - Zones filtered by an application
138
138
  * @property {string} [q] - Search with name as a free text
139
- * @property {string} [country] - ISO2 code of the country
139
+ * @property {string} [countryIsoCode] - ISO2 code of the country
140
140
  * @property {string} [state] - State name
141
141
  * @property {string} [city] - City name
142
142
  * @property {string} [pincode] - Pincode value to search zones
@@ -204,7 +204,7 @@ class ServiceabilityPlatformValidator {
204
204
  /** @returns {CreateCourierPartnerAccountParam} */
205
205
  static createCourierPartnerAccount() {
206
206
  return Joi.object({
207
- body: ServiceabilityPlatformModel.CourierAccount().required(),
207
+ body: ServiceabilityPlatformModel.CourierAccountRequestBody().required(),
208
208
  }).required();
209
209
  }
210
210
 
@@ -356,7 +356,7 @@ class ServiceabilityPlatformValidator {
356
356
  isActive: Joi.boolean(),
357
357
  channelId: Joi.string().allow(""),
358
358
  q: Joi.string().allow(""),
359
- country: Joi.string().allow(""),
359
+ countryIsoCode: Joi.string().allow(""),
360
360
  state: Joi.string().allow(""),
361
361
  city: Joi.string().allow(""),
362
362
  pincode: Joi.string().allow(""),
@@ -87,13 +87,13 @@ export = SharePlatformModel;
87
87
  */
88
88
  /**
89
89
  * @typedef Page
90
- * @property {number} [item_total]
91
- * @property {string} [next_id]
92
- * @property {boolean} [has_previous]
93
- * @property {boolean} [has_next]
94
- * @property {number} [current]
95
- * @property {string} type
96
- * @property {number} [size]
90
+ * @property {number} [item_total] - The total number of items on the page.
91
+ * @property {string} [next_id] - The identifier for the next page.
92
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
93
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
94
+ * @property {number} [current] - The current page number.
95
+ * @property {string} type - The type of the page, such as 'PageType'.
96
+ * @property {number} [size] - The number of items per page.
97
97
  */
98
98
  /**
99
99
  * @typedef ShortLinkList
@@ -230,12 +230,33 @@ type ShortLinkRes = {
230
230
  /** @returns {Page} */
231
231
  declare function Page(): Page;
232
232
  type Page = {
233
+ /**
234
+ * - The total number of items on the page.
235
+ */
233
236
  item_total?: number;
237
+ /**
238
+ * - The identifier for the next page.
239
+ */
234
240
  next_id?: string;
241
+ /**
242
+ * - Indicates whether there is a previous page.
243
+ */
235
244
  has_previous?: boolean;
245
+ /**
246
+ * - Indicates whether there is a next page.
247
+ */
236
248
  has_next?: boolean;
249
+ /**
250
+ * - The current page number.
251
+ */
237
252
  current?: number;
253
+ /**
254
+ * - The type of the page, such as 'PageType'.
255
+ */
238
256
  type: string;
257
+ /**
258
+ * - The number of items per page.
259
+ */
239
260
  size?: number;
240
261
  };
241
262
  /** @returns {ShortLinkList} */
@@ -99,13 +99,13 @@ const Joi = require("joi");
99
99
 
100
100
  /**
101
101
  * @typedef Page
102
- * @property {number} [item_total]
103
- * @property {string} [next_id]
104
- * @property {boolean} [has_previous]
105
- * @property {boolean} [has_next]
106
- * @property {number} [current]
107
- * @property {string} type
108
- * @property {number} [size]
102
+ * @property {number} [item_total] - The total number of items on the page.
103
+ * @property {string} [next_id] - The identifier for the next page.
104
+ * @property {boolean} [has_previous] - Indicates whether there is a previous page.
105
+ * @property {boolean} [has_next] - Indicates whether there is a next page.
106
+ * @property {number} [current] - The current page number.
107
+ * @property {string} type - The type of the page, such as 'PageType'.
108
+ * @property {number} [size] - The number of items per page.
109
109
  */
110
110
 
111
111
  /**
@@ -114,7 +114,7 @@ export = ThemePlatformModel;
114
114
  */
115
115
  /**
116
116
  * @typedef Action
117
- * @property {string} [type]
117
+ * @property {string} [type] - Type of action to be taken e.g, page.
118
118
  * @property {ActionPage} [page]
119
119
  * @property {ActionPage} [popup]
120
120
  */
@@ -532,9 +532,9 @@ export = ThemePlatformModel;
532
532
  */
533
533
  /**
534
534
  * @typedef ActionPage
535
- * @property {Object} [params]
536
- * @property {Object} [query]
537
- * @property {string} [url]
535
+ * @property {Object} [params] - Parameters that should be considered in path.
536
+ * @property {Object} [query] - Query parameter if any to be added to the action.
537
+ * @property {string} [url] - The URL for the action.
538
538
  * @property {PageType} type
539
539
  */
540
540
  /**
@@ -549,6 +549,7 @@ export = ThemePlatformModel;
549
549
  * | "category"
550
550
  * | "collection"
551
551
  * | "collections"
552
+ * | "custom"
552
553
  * | "contact-us"
553
554
  * | "external"
554
555
  * | "faq"
@@ -779,6 +780,9 @@ type SEObreadcrumb = {
779
780
  /** @returns {Action} */
780
781
  declare function Action(): Action;
781
782
  type Action = {
783
+ /**
784
+ * - Type of action to be taken e.g, page.
785
+ */
782
786
  type?: string;
783
787
  page?: ActionPage;
784
788
  popup?: ActionPage;
@@ -1593,8 +1597,17 @@ type CompanyPrivateTheme = {
1593
1597
  /** @returns {ActionPage} */
1594
1598
  declare function ActionPage(): ActionPage;
1595
1599
  type ActionPage = {
1600
+ /**
1601
+ * - Parameters that should be considered in path.
1602
+ */
1596
1603
  params?: any;
1604
+ /**
1605
+ * - Query parameter if any to be added to the action.
1606
+ */
1597
1607
  query?: any;
1608
+ /**
1609
+ * - The URL for the action.
1610
+ */
1598
1611
  url?: string;
1599
1612
  type: PageType;
1600
1613
  };
@@ -1604,4 +1617,4 @@ type ActionPage = {
1604
1617
  * @returns {PageType}
1605
1618
  */
1606
1619
  declare function PageType(): PageType;
1607
- type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
1620
+ type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
@@ -131,7 +131,7 @@ const Joi = require("joi");
131
131
 
132
132
  /**
133
133
  * @typedef Action
134
- * @property {string} [type]
134
+ * @property {string} [type] - Type of action to be taken e.g, page.
135
135
  * @property {ActionPage} [page]
136
136
  * @property {ActionPage} [popup]
137
137
  */
@@ -612,9 +612,9 @@ const Joi = require("joi");
612
612
 
613
613
  /**
614
614
  * @typedef ActionPage
615
- * @property {Object} [params]
616
- * @property {Object} [query]
617
- * @property {string} [url]
615
+ * @property {Object} [params] - Parameters that should be considered in path.
616
+ * @property {Object} [query] - Query parameter if any to be added to the action.
617
+ * @property {string} [url] - The URL for the action.
618
618
  * @property {PageType} type
619
619
  */
620
620
 
@@ -630,6 +630,7 @@ const Joi = require("joi");
630
630
  * | "category"
631
631
  * | "collection"
632
632
  * | "collections"
633
+ * | "custom"
633
634
  * | "contact-us"
634
635
  * | "external"
635
636
  * | "faq"
@@ -1480,6 +1481,8 @@ class ThemePlatformModel {
1480
1481
 
1481
1482
  "collections",
1482
1483
 
1484
+ "custom",
1485
+
1483
1486
  "contact-us",
1484
1487
 
1485
1488
  "external",
@@ -223,7 +223,6 @@ export = UserPlatformModel;
223
223
  /**
224
224
  * @typedef CreateUserSessionRequestSchema
225
225
  * @property {string} [domain]
226
- * @property {number} [max_age]
227
226
  * @property {string} [user_id]
228
227
  */
229
228
  /**
@@ -458,18 +457,18 @@ export = UserPlatformModel;
458
457
  */
459
458
  /**
460
459
  * @typedef PhoneNumber
461
- * @property {string} [phone] - Phone number
462
- * @property {number} [country_code] - Country code
463
- * @property {boolean} [active] - Is the phone number active
464
- * @property {boolean} [primary] - Is it a primary phone number
465
- * @property {boolean} [verified] - Is the phone number verified
460
+ * @property {string} [phone] - Phone number of the user.
461
+ * @property {number} [country_code] - Country code for mobile number.
462
+ * @property {boolean} [active] - Is the phone number active.
463
+ * @property {boolean} [primary] - Is it a primary phone number.
464
+ * @property {boolean} [verified] - Is the phone number verified.
466
465
  */
467
466
  /**
468
467
  * @typedef Email
469
- * @property {string} [email] - Email address
470
- * @property {boolean} [active] - Is the email active
471
- * @property {boolean} [primary] - Is it a primary email
472
- * @property {boolean} [verified] - Is the email verified
468
+ * @property {string} [email] - Email address.
469
+ * @property {boolean} [active] - Is the email active.
470
+ * @property {boolean} [primary] - Is it a primary email.
471
+ * @property {boolean} [verified] - Is the email verified.
473
472
  */
474
473
  declare class UserPlatformModel {
475
474
  }
@@ -850,7 +849,6 @@ type CreateUserResponseSchema = {
850
849
  declare function CreateUserSessionRequestSchema(): CreateUserSessionRequestSchema;
851
850
  type CreateUserSessionRequestSchema = {
852
851
  domain?: string;
853
- max_age?: number;
854
852
  user_id?: string;
855
853
  };
856
854
  /** @returns {CreateUserSessionResponseSchema} */
@@ -1133,23 +1131,23 @@ type UserSearchSchema = {
1133
1131
  declare function PhoneNumber(): PhoneNumber;
1134
1132
  type PhoneNumber = {
1135
1133
  /**
1136
- * - Phone number
1134
+ * - Phone number of the user.
1137
1135
  */
1138
1136
  phone?: string;
1139
1137
  /**
1140
- * - Country code
1138
+ * - Country code for mobile number.
1141
1139
  */
1142
1140
  country_code?: number;
1143
1141
  /**
1144
- * - Is the phone number active
1142
+ * - Is the phone number active.
1145
1143
  */
1146
1144
  active?: boolean;
1147
1145
  /**
1148
- * - Is it a primary phone number
1146
+ * - Is it a primary phone number.
1149
1147
  */
1150
1148
  primary?: boolean;
1151
1149
  /**
1152
- * - Is the phone number verified
1150
+ * - Is the phone number verified.
1153
1151
  */
1154
1152
  verified?: boolean;
1155
1153
  };
@@ -1157,19 +1155,19 @@ type PhoneNumber = {
1157
1155
  declare function Email(): Email;
1158
1156
  type Email = {
1159
1157
  /**
1160
- * - Email address
1158
+ * - Email address.
1161
1159
  */
1162
1160
  email?: string;
1163
1161
  /**
1164
- * - Is the email active
1162
+ * - Is the email active.
1165
1163
  */
1166
1164
  active?: boolean;
1167
1165
  /**
1168
- * - Is it a primary email
1166
+ * - Is it a primary email.
1169
1167
  */
1170
1168
  primary?: boolean;
1171
1169
  /**
1172
- * - Is the email verified
1170
+ * - Is the email verified.
1173
1171
  */
1174
1172
  verified?: boolean;
1175
1173
  };
@@ -253,7 +253,6 @@ const Joi = require("joi");
253
253
  /**
254
254
  * @typedef CreateUserSessionRequestSchema
255
255
  * @property {string} [domain]
256
- * @property {number} [max_age]
257
256
  * @property {string} [user_id]
258
257
  */
259
258
 
@@ -517,19 +516,19 @@ const Joi = require("joi");
517
516
 
518
517
  /**
519
518
  * @typedef PhoneNumber
520
- * @property {string} [phone] - Phone number
521
- * @property {number} [country_code] - Country code
522
- * @property {boolean} [active] - Is the phone number active
523
- * @property {boolean} [primary] - Is it a primary phone number
524
- * @property {boolean} [verified] - Is the phone number verified
519
+ * @property {string} [phone] - Phone number of the user.
520
+ * @property {number} [country_code] - Country code for mobile number.
521
+ * @property {boolean} [active] - Is the phone number active.
522
+ * @property {boolean} [primary] - Is it a primary phone number.
523
+ * @property {boolean} [verified] - Is the phone number verified.
525
524
  */
526
525
 
527
526
  /**
528
527
  * @typedef Email
529
- * @property {string} [email] - Email address
530
- * @property {boolean} [active] - Is the email active
531
- * @property {boolean} [primary] - Is it a primary email
532
- * @property {boolean} [verified] - Is the email verified
528
+ * @property {string} [email] - Email address.
529
+ * @property {boolean} [active] - Is the email active.
530
+ * @property {boolean} [primary] - Is it a primary email.
531
+ * @property {boolean} [verified] - Is the email verified.
533
532
  */
534
533
 
535
534
  class UserPlatformModel {
@@ -846,7 +845,6 @@ class UserPlatformModel {
846
845
  static CreateUserSessionRequestSchema() {
847
846
  return Joi.object({
848
847
  domain: Joi.string().allow(""),
849
- max_age: Joi.number(),
850
848
  user_id: Joi.string().allow(""),
851
849
  });
852
850
  }