@gofynd/fdk-client-javascript 1.4.2-beta.1 → 1.4.2-beta.10

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 (265) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -2
  3. package/sdk/application/ApplicationClient.js +20 -0
  4. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  5. package/sdk/application/Cart/CartApplicationClient.js +3 -5
  6. package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
  7. package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
  8. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
  9. package/sdk/application/Cart/CartApplicationValidator.js +0 -4
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
  12. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  13. package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
  14. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
  15. package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
  16. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  17. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  18. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  19. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  20. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
  23. package/sdk/application/Content/ContentApplicationClient.js +0 -246
  24. package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
  25. package/sdk/application/Content/ContentApplicationModel.js +565 -817
  26. package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
  27. package/sdk/application/Content/ContentApplicationValidator.js +0 -41
  28. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  29. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  30. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  31. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  32. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
  33. package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
  34. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
  35. package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
  36. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
  37. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
  38. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  39. package/sdk/application/Order/OrderApplicationClient.js +8 -32
  40. package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
  41. package/sdk/application/Order/OrderApplicationModel.js +816 -824
  42. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
  43. package/sdk/application/Order/OrderApplicationValidator.js +0 -8
  44. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
  45. package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
  46. package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
  47. package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
  48. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
  49. package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
  50. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
  51. package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
  52. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  53. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  54. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  55. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  56. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  57. package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
  58. package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
  59. package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
  60. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
  61. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
  62. package/sdk/application/User/UserApplicationClient.d.ts +0 -33
  63. package/sdk/application/User/UserApplicationClient.js +0 -239
  64. package/sdk/application/User/UserApplicationModel.d.ts +753 -768
  65. package/sdk/application/User/UserApplicationModel.js +731 -755
  66. package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
  67. package/sdk/application/User/UserApplicationValidator.js +0 -36
  68. package/sdk/common/Clickstream.d.ts +1 -0
  69. package/sdk/common/Clickstream.js +254 -0
  70. package/sdk/common/Utility.js +1 -4
  71. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
  72. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
  73. package/sdk/partner/PartnerClient.d.ts +0 -6
  74. package/sdk/partner/PartnerClient.js +0 -9
  75. package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
  76. package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
  77. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
  78. package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
  79. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
  80. package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
  81. package/sdk/partner/index.d.ts +0 -3
  82. package/sdk/partner/index.js +0 -6
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
  87. package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
  89. package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
  97. package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
  108. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  109. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
  112. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
  113. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
  114. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
  115. package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
  121. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  124. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
  125. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
  126. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  127. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  128. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
  129. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
  130. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
  131. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
  133. package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
  145. package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
  147. package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
  150. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  151. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
  157. package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
  163. package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
  165. package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
  167. package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
  168. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  169. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  170. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
  172. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
  174. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  175. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  176. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
  177. package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
  178. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  179. package/sdk/platform/PlatformApplicationClient.js +4 -4
  180. package/sdk/platform/PlatformClient.d.ts +2 -4
  181. package/sdk/platform/PlatformClient.js +4 -8
  182. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  183. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +989 -1588
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +977 -1695
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  195. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  196. package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
  197. package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
  198. package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
  199. package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
  200. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
  201. package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
  206. package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
  207. package/sdk/platform/User/UserPlatformModel.js +428 -679
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  214. package/sdk/platform/index.d.ts +1 -1
  215. package/sdk/platform/index.js +2 -2
  216. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  217. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  218. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  219. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  220. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  221. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  222. package/sdk/public/PublicClient.d.ts +0 -4
  223. package/sdk/public/PublicClient.js +0 -8
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
  225. package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
  227. package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
  230. package/sdk/public/index.d.ts +0 -2
  231. package/sdk/public/index.js +0 -4
  232. package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
  233. package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
  234. package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
  235. package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
  236. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
  237. package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
  238. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
  239. package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
  240. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
  241. package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
  242. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
  243. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
  244. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
  245. package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
  246. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
  247. package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
  248. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
  249. package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
  250. package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
  251. package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
  252. package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
  253. package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
  254. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
  255. package/sdk/public/Billing/BillingPublicClient.js +0 -116
  256. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
  257. package/sdk/public/Billing/BillingPublicModel.js +0 -96
  258. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
  259. package/sdk/public/Billing/BillingPublicValidator.js +0 -19
  260. package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
  261. package/sdk/public/Content/ContentPublicClient.js +0 -114
  262. package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
  263. package/sdk/public/Content/ContentPublicModel.js +0 -60
  264. package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
  265. package/sdk/public/Content/ContentPublicValidator.js +0 -19
@@ -148,6 +148,8 @@ export = CatalogApplicationValidator;
148
148
  * /service/application/catalog/v1.0/products/sizes
149
149
  * @property {number} [storeId] - The ID of the store that is selling the
150
150
  * product, e.g. 1,2,3.
151
+ * @property {string} [pincode] - The PIN Code of the area near which the
152
+ * selling locations should be searched, e.g. 400059.
151
153
  * @property {number} [moq] - An Integer indication the Minimum Order Quantity
152
154
  * of a product, e.g. 100.
153
155
  */
@@ -159,6 +161,8 @@ export = CatalogApplicationValidator;
159
161
  * @property {string} size - A string indicating the size of the product, e.g.
160
162
  * S, M, XL. You can get slug value from the endpoint
161
163
  * /service/application/catalog/v1.0/products/sizes
164
+ * @property {string} [pincode] - The 6-digit PIN Code of the area near which
165
+ * the selling locations should be searched, e.g. 400059
162
166
  * @property {string} [strategy] - Sort stores on the basis of strategy. eg,
163
167
  * fast-delivery, low-price, optimal.
164
168
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -585,6 +589,11 @@ type GetProductPriceBySlugParam = {
585
589
  * product, e.g. 1,2,3.
586
590
  */
587
591
  storeId?: number;
592
+ /**
593
+ * - The PIN Code of the area near which the
594
+ * selling locations should be searched, e.g. 400059.
595
+ */
596
+ pincode?: string;
588
597
  /**
589
598
  * - An Integer indication the Minimum Order Quantity
590
599
  * of a product, e.g. 100.
@@ -604,6 +613,11 @@ type GetProductSellersBySlugParam = {
604
613
  * /service/application/catalog/v1.0/products/sizes
605
614
  */
606
615
  size: string;
616
+ /**
617
+ * - The 6-digit PIN Code of the area near which
618
+ * the selling locations should be searched, e.g. 400059
619
+ */
620
+ pincode?: string;
607
621
  /**
608
622
  * - Sort stores on the basis of strategy. eg,
609
623
  * fast-delivery, low-price, optimal.
@@ -170,6 +170,8 @@ const CatalogApplicationModel = require("./CatalogApplicationModel");
170
170
  * /service/application/catalog/v1.0/products/sizes
171
171
  * @property {number} [storeId] - The ID of the store that is selling the
172
172
  * product, e.g. 1,2,3.
173
+ * @property {string} [pincode] - The PIN Code of the area near which the
174
+ * selling locations should be searched, e.g. 400059.
173
175
  * @property {number} [moq] - An Integer indication the Minimum Order Quantity
174
176
  * of a product, e.g. 100.
175
177
  */
@@ -182,6 +184,8 @@ const CatalogApplicationModel = require("./CatalogApplicationModel");
182
184
  * @property {string} size - A string indicating the size of the product, e.g.
183
185
  * S, M, XL. You can get slug value from the endpoint
184
186
  * /service/application/catalog/v1.0/products/sizes
187
+ * @property {string} [pincode] - The 6-digit PIN Code of the area near which
188
+ * the selling locations should be searched, e.g. 400059
185
189
  * @property {string} [strategy] - Sort stores on the basis of strategy. eg,
186
190
  * fast-delivery, low-price, optimal.
187
191
  * @property {number} [pageNo] - The page number to navigate through the given
@@ -447,6 +451,7 @@ class CatalogApplicationValidator {
447
451
  slug: Joi.string().allow("").required(),
448
452
  size: Joi.string().allow("").required(),
449
453
  storeId: Joi.number(),
454
+ pincode: Joi.string().allow(""),
450
455
  moq: Joi.number(),
451
456
  }).required();
452
457
  }
@@ -456,6 +461,7 @@ class CatalogApplicationValidator {
456
461
  return Joi.object({
457
462
  slug: Joi.string().allow("").required(),
458
463
  size: Joi.string().allow("").required(),
464
+ pincode: Joi.string().allow(""),
459
465
  strategy: Joi.string().allow(""),
460
466
  pageNo: Joi.number(),
461
467
  pageSize: Joi.number(),
@@ -1,54 +1,33 @@
1
1
  export = CommonApplicationModel;
2
2
  /**
3
- * @typedef Application
4
- * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
3
+ * @typedef ApplicationResponse
4
+ * @property {Application} [application]
5
+ */
6
+ /**
7
+ * @typedef Domain
8
+ * @property {boolean} [verified] - Indicates domain is verified or not. TXT and
9
+ * A records should propagate correctly.
10
+ * @property {boolean} [is_primary] - Indicates domain is primary or not.
11
+ * Primary domain is the default/main domain.
12
+ * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
5
13
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
6
- * of the sales channel
7
- * @property {string} [app_type] - It shows whether application is live or in
8
- * development mode
9
- * @property {ApplicationAuth} [auth]
10
- * @property {SecureUrl} [banner]
11
- * @property {number} [cache_ttl] - An integer value that specifies the number
12
- * of seconds until the key expires
13
- * @property {string} [channel_type] - It indicates different channel types like
14
- * store, website-and-mobile-apps. Default value is store.
15
- * @property {number} [company_id] - Numeric ID allotted to a business account
16
- * where the sales channel exists
17
- * @property {ApplicationCors} [cors]
18
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
19
- * @property {string} [description] - It contains detailed information about the
20
- * sales channel
21
- * @property {Domain} [domain]
22
- * @property {Domain[]} [domains]
23
- * @property {SecureUrl} [favicon]
24
- * @property {boolean} [is_active] - Indicates whether a sales channel is active
25
- * or not active
26
- * @property {boolean} [is_internal] - Indicates whether a sales channel is
27
- * internal or not
28
- * @property {SecureUrl} [logo]
29
- * @property {ApplicationMeta[]} [meta]
30
- * @property {SecureUrl} [mobile_logo]
31
- * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
32
- * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
33
- * of owner who owns the application
34
- * @property {ApplicationRedirections[]} [redirections]
35
- * @property {string} [token] - Randomly generated fixed-length string for sales
36
- * channel. It is required and auto-generated.
37
- * @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
38
- * @property {ApplicationWebsite} [website]
14
+ * of the domain
15
+ * @property {string} [name]
16
+ * @property {boolean} [is_predefined] - Domain is hosting domain or not
39
17
  */
40
18
  /**
41
- * @typedef ApplicationAuth
42
- * @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
19
+ * @typedef ApplicationWebsite
20
+ * @property {boolean} [enabled] - Shows whether sales channel website URL is
21
+ * enabled or not
22
+ * @property {string} [basepath] - Base path for the current sales channel website
43
23
  */
44
24
  /**
45
25
  * @typedef ApplicationCors
46
26
  * @property {string[]} [domains]
47
27
  */
48
28
  /**
49
- * @typedef ApplicationMeta
50
- * @property {string} [name] - Indicates the name of application meta
51
- * @property {string} [value] - Value related to application meta name
29
+ * @typedef ApplicationAuth
30
+ * @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
52
31
  */
53
32
  /**
54
33
  * @typedef ApplicationRedirections
@@ -60,184 +39,158 @@ export = CommonApplicationModel;
60
39
  * for a short time period.
61
40
  */
62
41
  /**
63
- * @typedef ApplicationResponse
64
- * @property {Application} [application]
42
+ * @typedef ApplicationMeta
43
+ * @property {string} [name] - Indicates the name of application meta
44
+ * @property {string} [value] - Value related to application meta name
65
45
  */
66
46
  /**
67
- * @typedef ApplicationWebsite
68
- * @property {string} [basepath] - Base path for the current sales channel website
69
- * @property {boolean} [enabled] - Shows whether sales channel website URL is
70
- * enabled or not
47
+ * @typedef SecureUrl
48
+ * @property {string} [secure_url] - Hosted URL of the image
49
+ */
50
+ /**
51
+ * @typedef Application
52
+ * @property {ApplicationWebsite} [website]
53
+ * @property {ApplicationCors} [cors]
54
+ * @property {ApplicationAuth} [auth]
55
+ * @property {string} [description] - It contains detailed information about the
56
+ * sales channel
57
+ * @property {string} [channel_type] - It indicates different channel types like
58
+ * store, website-and-mobile-apps. Default value is store.
59
+ * @property {number} [cache_ttl] - An integer value that specifies the number
60
+ * of seconds until the key expires
61
+ * @property {boolean} [is_internal] - Indicates whether a sales channel is
62
+ * internal or not
63
+ * @property {boolean} [is_active] - Indicates whether a sales channel is active
64
+ * or not active
65
+ * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
66
+ * of the sales channel
67
+ * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
68
+ * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
69
+ * of owner who owns the application
70
+ * @property {number} [company_id] - Numeric ID allotted to a business account
71
+ * where the sales channel exists
72
+ * @property {string} [token] - Randomly generated fixed-length string for sales
73
+ * channel. It is required and auto-generated.
74
+ * @property {ApplicationRedirections[]} [redirections]
75
+ * @property {ApplicationMeta[]} [meta]
76
+ * @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
77
+ * @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
78
+ * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
79
+ * @property {SecureUrl} [banner]
80
+ * @property {SecureUrl} [logo]
81
+ * @property {SecureUrl} [favicon]
82
+ * @property {Domain[]} [domains]
83
+ * @property {string} [app_type] - It shows whether application is live or in
84
+ * development mode
85
+ * @property {SecureUrl} [mobile_logo]
86
+ * @property {Domain} [domain]
87
+ */
88
+ /**
89
+ * @typedef NotFound
90
+ * @property {string} [message] - Response message for not found
71
91
  */
72
92
  /**
73
93
  * @typedef BadRequest
74
94
  * @property {string} [message] - Failure message (in a string format)
75
95
  */
76
96
  /**
77
- * @typedef Domain
78
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
79
- * of the domain
80
- * @property {boolean} [is_predefined] - Domain is hosting domain or not
81
- * @property {boolean} [is_primary] - Indicates domain is primary or not.
82
- * Primary domain is the default/main domain.
83
- * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
97
+ * @typedef LocationDefaultLanguage
84
98
  * @property {string} [name]
85
- * @property {boolean} [verified] - Indicates domain is verified or not. TXT and
86
- * A records should propagate correctly.
99
+ * @property {string} [code]
100
+ */
101
+ /**
102
+ * @typedef LocationDefaultCurrency
103
+ * @property {string} [name]
104
+ * @property {string} [symbol]
105
+ * @property {string} [code]
87
106
  */
88
107
  /**
89
108
  * @typedef LocationCountry
90
- * @property {number} [__v]
91
- * @property {string} [_id]
92
109
  * @property {string} [capital]
93
- * @property {string} [country_code]
94
110
  * @property {string} [currency]
95
- * @property {LocationDefaultCurrency} [default_currency]
96
- * @property {LocationDefaultLanguage} [default_language]
97
111
  * @property {string} [iso2]
98
112
  * @property {string} [iso3]
99
- * @property {string} [latitude]
100
- * @property {string} [longitude]
101
113
  * @property {string} [name]
102
114
  * @property {string} [parent]
103
115
  * @property {string} [phone_code]
104
- * @property {string} [state_code]
105
116
  * @property {string} [type]
106
117
  * @property {number} [uid]
107
- */
108
- /**
109
- * @typedef LocationDefaultCurrency
110
- * @property {string} [code]
111
- * @property {string} [name]
112
- * @property {string} [symbol]
113
- */
114
- /**
115
- * @typedef LocationDefaultLanguage
116
- * @property {string} [code]
117
- * @property {string} [name]
118
+ * @property {number} [__v]
119
+ * @property {string} [_id]
120
+ * @property {LocationDefaultCurrency} [default_currency]
121
+ * @property {LocationDefaultLanguage} [default_language]
122
+ * @property {string} [state_code]
123
+ * @property {string} [country_code]
124
+ * @property {string} [latitude]
125
+ * @property {string} [longitude]
118
126
  */
119
127
  /**
120
128
  * @typedef Locations
121
129
  * @property {LocationCountry[]} [items]
122
130
  */
123
- /**
124
- * @typedef NotFound
125
- * @property {string} [message] - Response message for not found
126
- */
127
- /**
128
- * @typedef SecureUrl
129
- * @property {string} [secure_url] - Hosted URL of the image
130
- */
131
131
  declare class CommonApplicationModel {
132
132
  }
133
133
  declare namespace CommonApplicationModel {
134
- export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, SecureUrl };
134
+ export { ApplicationResponse, Domain, ApplicationWebsite, ApplicationCors, ApplicationAuth, ApplicationRedirections, ApplicationMeta, SecureUrl, Application, NotFound, BadRequest, LocationDefaultLanguage, LocationDefaultCurrency, LocationCountry, Locations };
135
135
  }
136
- /** @returns {Application} */
137
- declare function Application(): Application;
138
- type Application = {
139
- /**
140
- * - Version key for tracking revisions. Default value is zero.
141
- */
142
- __v?: number;
143
- /**
144
- * - The unique identifier (24-digit Mongo Object ID)
145
- * of the sales channel
146
- */
147
- _id?: string;
148
- /**
149
- * - It shows whether application is live or in
150
- * development mode
151
- */
152
- app_type?: string;
153
- auth?: ApplicationAuth;
154
- banner?: SecureUrl;
155
- /**
156
- * - An integer value that specifies the number
157
- * of seconds until the key expires
158
- */
159
- cache_ttl?: number;
160
- /**
161
- * - It indicates different channel types like
162
- * store, website-and-mobile-apps. Default value is store.
163
- */
164
- channel_type?: string;
165
- /**
166
- * - Numeric ID allotted to a business account
167
- * where the sales channel exists
168
- */
169
- company_id?: number;
170
- cors?: ApplicationCors;
171
- /**
172
- * - ISO 8601 timestamp of sales channel creation
173
- */
174
- created_at?: string;
175
- /**
176
- * - It contains detailed information about the
177
- * sales channel
178
- */
179
- description?: string;
180
- domain?: Domain;
181
- domains?: Domain[];
182
- favicon?: SecureUrl;
136
+ /** @returns {ApplicationResponse} */
137
+ declare function ApplicationResponse(): ApplicationResponse;
138
+ type ApplicationResponse = {
139
+ application?: Application;
140
+ };
141
+ /** @returns {Domain} */
142
+ declare function Domain(): Domain;
143
+ type Domain = {
183
144
  /**
184
- * - Indicates whether a sales channel is active
185
- * or not active
145
+ * - Indicates domain is verified or not. TXT and
146
+ * A records should propagate correctly.
186
147
  */
187
- is_active?: boolean;
148
+ verified?: boolean;
188
149
  /**
189
- * - Indicates whether a sales channel is
190
- * internal or not
150
+ * - Indicates domain is primary or not.
151
+ * Primary domain is the default/main domain.
191
152
  */
192
- is_internal?: boolean;
193
- logo?: SecureUrl;
194
- meta?: ApplicationMeta[];
195
- mobile_logo?: SecureUrl;
153
+ is_primary?: boolean;
196
154
  /**
197
- * - Name of the sales channel, e.g. Zenz Fashion
155
+ * - Shortlink is present or not for the domain
198
156
  */
199
- name?: string;
157
+ is_shortlink?: boolean;
200
158
  /**
201
159
  * - The unique identifier (24-digit Mongo Object ID)
202
- * of owner who owns the application
203
- */
204
- owner?: string;
205
- redirections?: ApplicationRedirections[];
206
- /**
207
- * - Randomly generated fixed-length string for sales
208
- * channel. It is required and auto-generated.
160
+ * of the domain
209
161
  */
210
- token?: string;
162
+ _id?: string;
163
+ name?: string;
211
164
  /**
212
- * - ISO 8601 timestamp of sales channel updation
165
+ * - Domain is hosting domain or not
213
166
  */
214
- updated_at?: string;
215
- website?: ApplicationWebsite;
167
+ is_predefined?: boolean;
216
168
  };
217
- /** @returns {ApplicationAuth} */
218
- declare function ApplicationAuth(): ApplicationAuth;
219
- type ApplicationAuth = {
169
+ /** @returns {ApplicationWebsite} */
170
+ declare function ApplicationWebsite(): ApplicationWebsite;
171
+ type ApplicationWebsite = {
220
172
  /**
221
- * - Shows sales channel auth is enabled or not enabled.
173
+ * - Shows whether sales channel website URL is
174
+ * enabled or not
222
175
  */
223
176
  enabled?: boolean;
177
+ /**
178
+ * - Base path for the current sales channel website
179
+ */
180
+ basepath?: string;
224
181
  };
225
182
  /** @returns {ApplicationCors} */
226
183
  declare function ApplicationCors(): ApplicationCors;
227
184
  type ApplicationCors = {
228
185
  domains?: string[];
229
186
  };
230
- /** @returns {ApplicationMeta} */
231
- declare function ApplicationMeta(): ApplicationMeta;
232
- type ApplicationMeta = {
233
- /**
234
- * - Indicates the name of application meta
235
- */
236
- name?: string;
187
+ /** @returns {ApplicationAuth} */
188
+ declare function ApplicationAuth(): ApplicationAuth;
189
+ type ApplicationAuth = {
237
190
  /**
238
- * - Value related to application meta name
191
+ * - Shows sales channel auth is enabled or not enabled.
239
192
  */
240
- value?: string;
193
+ enabled?: boolean;
241
194
  };
242
195
  /** @returns {ApplicationRedirections} */
243
196
  declare function ApplicationRedirections(): ApplicationRedirections;
@@ -258,112 +211,159 @@ type ApplicationRedirections = {
258
211
  */
259
212
  type?: string;
260
213
  };
261
- /** @returns {ApplicationResponse} */
262
- declare function ApplicationResponse(): ApplicationResponse;
263
- type ApplicationResponse = {
264
- application?: Application;
265
- };
266
- /** @returns {ApplicationWebsite} */
267
- declare function ApplicationWebsite(): ApplicationWebsite;
268
- type ApplicationWebsite = {
214
+ /** @returns {ApplicationMeta} */
215
+ declare function ApplicationMeta(): ApplicationMeta;
216
+ type ApplicationMeta = {
269
217
  /**
270
- * - Base path for the current sales channel website
218
+ * - Indicates the name of application meta
271
219
  */
272
- basepath?: string;
220
+ name?: string;
273
221
  /**
274
- * - Shows whether sales channel website URL is
275
- * enabled or not
222
+ * - Value related to application meta name
276
223
  */
277
- enabled?: boolean;
224
+ value?: string;
278
225
  };
279
- /** @returns {BadRequest} */
280
- declare function BadRequest(): BadRequest;
281
- type BadRequest = {
226
+ /** @returns {SecureUrl} */
227
+ declare function SecureUrl(): SecureUrl;
228
+ type SecureUrl = {
282
229
  /**
283
- * - Failure message (in a string format)
230
+ * - Hosted URL of the image
284
231
  */
285
- message?: string;
232
+ secure_url?: string;
286
233
  };
287
- /** @returns {Domain} */
288
- declare function Domain(): Domain;
289
- type Domain = {
234
+ /** @returns {Application} */
235
+ declare function Application(): Application;
236
+ type Application = {
237
+ website?: ApplicationWebsite;
238
+ cors?: ApplicationCors;
239
+ auth?: ApplicationAuth;
240
+ /**
241
+ * - It contains detailed information about the
242
+ * sales channel
243
+ */
244
+ description?: string;
245
+ /**
246
+ * - It indicates different channel types like
247
+ * store, website-and-mobile-apps. Default value is store.
248
+ */
249
+ channel_type?: string;
250
+ /**
251
+ * - An integer value that specifies the number
252
+ * of seconds until the key expires
253
+ */
254
+ cache_ttl?: number;
255
+ /**
256
+ * - Indicates whether a sales channel is
257
+ * internal or not
258
+ */
259
+ is_internal?: boolean;
260
+ /**
261
+ * - Indicates whether a sales channel is active
262
+ * or not active
263
+ */
264
+ is_active?: boolean;
290
265
  /**
291
266
  * - The unique identifier (24-digit Mongo Object ID)
292
- * of the domain
267
+ * of the sales channel
293
268
  */
294
269
  _id?: string;
295
270
  /**
296
- * - Domain is hosting domain or not
271
+ * - Name of the sales channel, e.g. Zenz Fashion
297
272
  */
298
- is_predefined?: boolean;
273
+ name?: string;
299
274
  /**
300
- * - Indicates domain is primary or not.
301
- * Primary domain is the default/main domain.
275
+ * - The unique identifier (24-digit Mongo Object ID)
276
+ * of owner who owns the application
302
277
  */
303
- is_primary?: boolean;
278
+ owner?: string;
304
279
  /**
305
- * - Shortlink is present or not for the domain
280
+ * - Numeric ID allotted to a business account
281
+ * where the sales channel exists
306
282
  */
307
- is_shortlink?: boolean;
308
- name?: string;
283
+ company_id?: number;
309
284
  /**
310
- * - Indicates domain is verified or not. TXT and
311
- * A records should propagate correctly.
285
+ * - Randomly generated fixed-length string for sales
286
+ * channel. It is required and auto-generated.
312
287
  */
313
- verified?: boolean;
288
+ token?: string;
289
+ redirections?: ApplicationRedirections[];
290
+ meta?: ApplicationMeta[];
291
+ /**
292
+ * - ISO 8601 timestamp of sales channel creation
293
+ */
294
+ created_at?: string;
295
+ /**
296
+ * - ISO 8601 timestamp of sales channel updation
297
+ */
298
+ updated_at?: string;
299
+ /**
300
+ * - Version key for tracking revisions. Default value is zero.
301
+ */
302
+ __v?: number;
303
+ banner?: SecureUrl;
304
+ logo?: SecureUrl;
305
+ favicon?: SecureUrl;
306
+ domains?: Domain[];
307
+ /**
308
+ * - It shows whether application is live or in
309
+ * development mode
310
+ */
311
+ app_type?: string;
312
+ mobile_logo?: SecureUrl;
313
+ domain?: Domain;
314
+ };
315
+ /** @returns {NotFound} */
316
+ declare function NotFound(): NotFound;
317
+ type NotFound = {
318
+ /**
319
+ * - Response message for not found
320
+ */
321
+ message?: string;
322
+ };
323
+ /** @returns {BadRequest} */
324
+ declare function BadRequest(): BadRequest;
325
+ type BadRequest = {
326
+ /**
327
+ * - Failure message (in a string format)
328
+ */
329
+ message?: string;
330
+ };
331
+ /** @returns {LocationDefaultLanguage} */
332
+ declare function LocationDefaultLanguage(): LocationDefaultLanguage;
333
+ type LocationDefaultLanguage = {
334
+ name?: string;
335
+ code?: string;
336
+ };
337
+ /** @returns {LocationDefaultCurrency} */
338
+ declare function LocationDefaultCurrency(): LocationDefaultCurrency;
339
+ type LocationDefaultCurrency = {
340
+ name?: string;
341
+ symbol?: string;
342
+ code?: string;
314
343
  };
315
344
  /** @returns {LocationCountry} */
316
345
  declare function LocationCountry(): LocationCountry;
317
346
  type LocationCountry = {
318
- __v?: number;
319
- _id?: string;
320
347
  capital?: string;
321
- country_code?: string;
322
348
  currency?: string;
323
- default_currency?: LocationDefaultCurrency;
324
- default_language?: LocationDefaultLanguage;
325
349
  iso2?: string;
326
350
  iso3?: string;
327
- latitude?: string;
328
- longitude?: string;
329
351
  name?: string;
330
352
  parent?: string;
331
353
  phone_code?: string;
332
- state_code?: string;
333
354
  type?: string;
334
355
  uid?: number;
335
- };
336
- /** @returns {LocationDefaultCurrency} */
337
- declare function LocationDefaultCurrency(): LocationDefaultCurrency;
338
- type LocationDefaultCurrency = {
339
- code?: string;
340
- name?: string;
341
- symbol?: string;
342
- };
343
- /** @returns {LocationDefaultLanguage} */
344
- declare function LocationDefaultLanguage(): LocationDefaultLanguage;
345
- type LocationDefaultLanguage = {
346
- code?: string;
347
- name?: string;
356
+ __v?: number;
357
+ _id?: string;
358
+ default_currency?: LocationDefaultCurrency;
359
+ default_language?: LocationDefaultLanguage;
360
+ state_code?: string;
361
+ country_code?: string;
362
+ latitude?: string;
363
+ longitude?: string;
348
364
  };
349
365
  /** @returns {Locations} */
350
366
  declare function Locations(): Locations;
351
367
  type Locations = {
352
368
  items?: LocationCountry[];
353
369
  };
354
- /** @returns {NotFound} */
355
- declare function NotFound(): NotFound;
356
- type NotFound = {
357
- /**
358
- * - Response message for not found
359
- */
360
- message?: string;
361
- };
362
- /** @returns {SecureUrl} */
363
- declare function SecureUrl(): SecureUrl;
364
- type SecureUrl = {
365
- /**
366
- * - Hosted URL of the image
367
- */
368
- secure_url?: string;
369
- };