@gofynd/fdk-client-javascript 1.6.3 → 2.0.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 (146) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
  4. package/sdk/application/Cart/CartApplicationClient.js +26 -268
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
  7. package/sdk/application/Common/CommonApplicationClient.js +1 -16
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
  10. package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
  12. package/sdk/application/Content/ContentApplicationClient.js +222 -191
  13. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  14. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  15. package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
  16. package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
  17. package/sdk/application/Lead/LeadApplicationClient.js +21 -52
  18. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
  19. package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
  20. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
  21. package/sdk/application/Order/OrderApplicationClient.js +68 -153
  22. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
  23. package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
  24. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
  25. package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
  26. package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
  27. package/sdk/application/Share/ShareApplicationClient.js +21 -75
  28. package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
  29. package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
  30. package/sdk/application/User/UserApplicationClient.js +1 -407
  31. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
  32. package/sdk/common/Utility.d.ts +1 -1
  33. package/sdk/common/Utility.js +4 -4
  34. package/sdk/common/Validator.d.ts +1 -0
  35. package/sdk/common/Validator.js +20 -0
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -55
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
  38. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
  40. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
  41. package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
  42. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
  43. package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
  44. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
  46. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
  47. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +64 -1
  48. package/sdk/partner/Webhook/WebhookPartnerModel.js +36 -0
  49. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  50. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
  51. package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
  52. package/sdk/platform/Cart/CartPlatformModel.js +38 -5
  53. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
  54. package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
  57. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
  58. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
  59. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
  60. package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
  61. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
  62. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
  63. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
  64. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
  65. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
  66. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
  67. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
  68. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
  72. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
  74. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
  75. package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
  76. package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
  77. package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
  78. package/sdk/platform/Content/ContentPlatformModel.js +717 -34
  79. package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
  80. package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
  81. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
  82. package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
  83. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
  84. package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
  85. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
  86. package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
  87. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
  88. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
  89. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
  90. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
  91. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
  92. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
  93. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
  94. package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
  95. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  96. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  97. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  98. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  99. package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
  100. package/sdk/platform/Order/OrderPlatformClient.js +397 -0
  101. package/sdk/platform/Order/OrderPlatformModel.d.ts +66 -10
  102. package/sdk/platform/Order/OrderPlatformModel.js +39 -7
  103. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  104. package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
  105. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
  106. package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
  107. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
  108. package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
  109. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
  110. package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
  111. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
  112. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
  113. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
  114. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
  115. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
  116. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
  117. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
  118. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
  119. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
  120. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
  121. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
  122. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  123. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +73 -0
  124. package/sdk/platform/User/UserPlatformApplicationClient.js +543 -0
  125. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +129 -1
  126. package/sdk/platform/User/UserPlatformApplicationValidator.js +97 -0
  127. package/sdk/platform/User/UserPlatformModel.d.ts +269 -6
  128. package/sdk/platform/User/UserPlatformModel.js +187 -5
  129. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +64 -1
  130. package/sdk/platform/Webhook/WebhookPlatformModel.js +36 -0
  131. package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
  132. package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
  133. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
  134. package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
  135. package/sdk/public/Content/ContentPublicClient.js +261 -104
  136. package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
  137. package/sdk/public/Content/ContentPublicModel.js +102 -0
  138. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
  139. package/sdk/public/Content/ContentPublicValidator.js +26 -0
  140. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  141. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  142. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  143. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  144. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  145. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  146. package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
@@ -2,30 +2,70 @@ const Joi = require("joi");
2
2
 
3
3
  const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
4
4
 
5
+ /**
6
+ * @typedef CreateBulkExportParam
7
+ * @property {ServiceabilityPlatformModel.BulkCreateZoneExport} body
8
+ */
9
+
10
+ /**
11
+ * @typedef CreateBulkGeoAreaParam
12
+ * @property {ServiceabilityPlatformModel.BulkGeoAreaDetails} body
13
+ */
14
+
5
15
  /**
6
16
  * @typedef CreateCourierPartnerRuleParam
7
17
  * @property {ServiceabilityPlatformModel.CourierPartnerRule} body
8
18
  */
9
19
 
20
+ /**
21
+ * @typedef CreateGeoAreaParam
22
+ * @property {ServiceabilityPlatformModel.GeoAreaRequestBody} body
23
+ */
24
+
25
+ /**
26
+ * @typedef CreateGeoAreaExportJobParam
27
+ * @property {string} geoareaId - The unique identifier of the Geoarea.
28
+ */
29
+
10
30
  /**
11
31
  * @typedef CreateStoreRulesParam
12
32
  * @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
13
33
  */
14
34
 
35
+ /**
36
+ * @typedef CreateZoneParam
37
+ * @property {ServiceabilityPlatformModel.CreateZoneDataSchema} body
38
+ */
39
+
40
+ /**
41
+ * @typedef DeleteZoneParam
42
+ * @property {string} zoneId - Unique identifier for a particular zone
43
+ */
44
+
45
+ /** @typedef DownloadGeoareaSampleFileParam */
46
+
15
47
  /** @typedef GetApplicationConfigParam */
16
48
 
17
49
  /** @typedef GetApplicationConfigurationParam */
18
50
 
19
- /** @typedef GetApplicationServiceabilitySelfShipmentParam */
51
+ /**
52
+ * @typedef GetBulkExportParam
53
+ * @property {string} batchId - A `batch_id` is a unique identifier for a particular zone.
54
+ */
55
+
56
+ /**
57
+ * @typedef GetBulkGeoAreaParam
58
+ * @property {string} geoareaId - A unique identifier for the GeoArea.
59
+ */
20
60
 
21
61
  /**
22
62
  * @typedef GetCourierPartnerRuleParam
23
- * @property {string} ruleId - Unique identifier of the courier partner rule
63
+ * @property {string} ruleUid - Unique identifier of the courier partner rule
24
64
  */
25
65
 
26
66
  /**
27
67
  * @typedef GetCourierPartnerRulesParam
28
- * @property {number} [pageNo] - Index of the item to start returning with
68
+ * @property {number} [pageNo] - The current page number for paginated results.
29
69
  * @property {number} [pageSize] - Determines the items to be displayed in a page
30
70
  * @property {string} [status] - Filter rules based on rule status
31
71
  */
@@ -35,6 +75,31 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
35
75
  * @property {ServiceabilityPlatformModel.ShipmentCourierPartnerDetails} body
36
76
  */
37
77
 
78
+ /**
79
+ * @typedef GetGeoAreaParam
80
+ * @property {string} geoareaId - A unique identifier for the GeoArea.
81
+ */
82
+
83
+ /**
84
+ * @typedef GetGeoAreaExportJobStatusParam
85
+ * @property {string} geoareaId - The unique identifier of the Geoarea.
86
+ */
87
+
88
+ /**
89
+ * @typedef GetGeoAreasParam
90
+ * @property {number} [pageSize] - Determines the items to be displayed in a page
91
+ * @property {boolean} [isActive] - Status of GeoAreas (either active or inactive)
92
+ * @property {number} [pageNo] - Current page number
93
+ * @property {string} [type] - To fetch the type of a specific geoarea.
94
+ * @property {string} [q] - Used to search for matching results based on the
95
+ * provided input.
96
+ * @property {string} [countryIsoCode] - ISO2 code of the country
97
+ * @property {string} [state] - State name
98
+ * @property {string} [city] - City name
99
+ * @property {string} [pincode] - Pincode value to search geoareas
100
+ * @property {string} [sector] - Sector value to search geoareas
101
+ */
102
+
38
103
  /**
39
104
  * @typedef GetStoreRuleParam
40
105
  * @property {string} ruleUid - A `rule_uid` is a unique identifier for a
@@ -43,9 +108,29 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
43
108
 
44
109
  /**
45
110
  * @typedef GetStoreRulesParam
46
- * @property {number} [pageNo]
47
- * @property {number} [pageSize]
48
- * @property {string} [status]
111
+ * @property {number} [pageNo] - The current page number for paginated results.
112
+ * @property {number} [pageSize] - Determines the items to be displayed in a page
113
+ * @property {string} [status] - Filter rules based on rule status
114
+ */
115
+
116
+ /**
117
+ * @typedef GetZoneParam
118
+ * @property {string} zoneId - Unique identifier for a particular zone
119
+ */
120
+
121
+ /**
122
+ * @typedef GetZonesParam
123
+ * @property {string} [stage] - Identifies the specific stage of zone bing requested.
124
+ * @property {number} [pageSize] - Defines the number of items displayed per page.
125
+ * @property {number} [pageNo] - Current page number.
126
+ * @property {boolean} [isActive] - Status of Zone (either active or inactive)
127
+ * @property {string} [q] - Used to search for matching results based on the
128
+ * provided input.
129
+ * @property {string} [countryIsoCode] - ISO2 code of the country.
130
+ * @property {string} [pincode] - PIN Code of the country.
131
+ * @property {string} [state] - State of the country.
132
+ * @property {string} [city] - City of the country.
133
+ * @property {string} [sector] - Sector name of mentioned address.
49
134
  */
50
135
 
51
136
  /**
@@ -54,13 +139,19 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
54
139
  */
55
140
 
56
141
  /**
57
- * @typedef PatchApplicationServiceabilitySelfShipmentParam
58
- * @property {ServiceabilityPlatformModel.SelfShipResult} body
142
+ * @typedef PatchApplicationConfigurationParam
143
+ * @property {ServiceabilityPlatformModel.ApplicationConfigPatch} body
59
144
  */
60
145
 
61
146
  /**
62
147
  * @typedef UpdateApplicationConfigurationParam
63
- * @property {ServiceabilityPlatformModel.ApplicationConfig} body
148
+ * @property {ServiceabilityPlatformModel.ApplicationConfigPutDetail} body
149
+ */
150
+
151
+ /**
152
+ * @typedef UpdateBulkGeoAreaParam
153
+ * @property {string} geoareaId - A unique identifier for the GeoArea.
154
+ * @property {ServiceabilityPlatformModel.BulkGeoAreaDetails} body
64
155
  */
65
156
 
66
157
  /**
@@ -70,10 +161,16 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
70
161
 
71
162
  /**
72
163
  * @typedef UpdateCourierRuleParam
73
- * @property {string} ruleId - Unique identifier of the courier partner rule.
164
+ * @property {string} ruleUid - Unique identifier of the courier partner rule.
74
165
  * @property {ServiceabilityPlatformModel.CourierPartnerRule} body
75
166
  */
76
167
 
168
+ /**
169
+ * @typedef UpdateGeoAreaParam
170
+ * @property {string} geoareaId - A unique identifier for the GeoArea.
171
+ * @property {ServiceabilityPlatformModel.GeoAreaRequestBody} body
172
+ */
173
+
77
174
  /**
78
175
  * @typedef UpdatePincodeAuditHistoryParam
79
176
  * @property {number} [pageNumber] - Page number to be fetched.
@@ -98,6 +195,11 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
98
195
  * @property {ServiceabilityPlatformModel.PincodeMopData} body
99
196
  */
100
197
 
198
+ /**
199
+ * @typedef UpdateStoreRulePriorityParam
200
+ * @property {ServiceabilityPlatformModel.RulePriorityDetails} body
201
+ */
202
+
101
203
  /**
102
204
  * @typedef UpdateStoreRulesParam
103
205
  * @property {string} ruleUid - A `rule_uid` is a unique identifier for a
@@ -110,7 +212,27 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
110
212
  * @property {ServiceabilityPlatformModel.StoreRuleConfigData} body
111
213
  */
112
214
 
215
+ /**
216
+ * @typedef UpdateZoneParam
217
+ * @property {string} zoneId - Unique identifier for a particular zone
218
+ * @property {ServiceabilityPlatformModel.UpdateZoneData} body
219
+ */
220
+
113
221
  class ServiceabilityPlatformApplicationValidator {
222
+ /** @returns {CreateBulkExportParam} */
223
+ static createBulkExport() {
224
+ return Joi.object({
225
+ body: ServiceabilityPlatformModel.BulkCreateZoneExport().required(),
226
+ }).required();
227
+ }
228
+
229
+ /** @returns {CreateBulkGeoAreaParam} */
230
+ static createBulkGeoArea() {
231
+ return Joi.object({
232
+ body: ServiceabilityPlatformModel.BulkGeoAreaDetails().required(),
233
+ }).required();
234
+ }
235
+
114
236
  /** @returns {CreateCourierPartnerRuleParam} */
115
237
  static createCourierPartnerRule() {
116
238
  return Joi.object({
@@ -118,6 +240,20 @@ class ServiceabilityPlatformApplicationValidator {
118
240
  }).required();
119
241
  }
120
242
 
243
+ /** @returns {CreateGeoAreaParam} */
244
+ static createGeoArea() {
245
+ return Joi.object({
246
+ body: ServiceabilityPlatformModel.GeoAreaRequestBody().required(),
247
+ }).required();
248
+ }
249
+
250
+ /** @returns {CreateGeoAreaExportJobParam} */
251
+ static createGeoAreaExportJob() {
252
+ return Joi.object({
253
+ geoareaId: Joi.string().allow("").required(),
254
+ }).required();
255
+ }
256
+
121
257
  /** @returns {CreateStoreRulesParam} */
122
258
  static createStoreRules() {
123
259
  return Joi.object({
@@ -125,6 +261,25 @@ class ServiceabilityPlatformApplicationValidator {
125
261
  }).required();
126
262
  }
127
263
 
264
+ /** @returns {CreateZoneParam} */
265
+ static createZone() {
266
+ return Joi.object({
267
+ body: ServiceabilityPlatformModel.CreateZoneDataSchema().required(),
268
+ }).required();
269
+ }
270
+
271
+ /** @returns {DeleteZoneParam} */
272
+ static deleteZone() {
273
+ return Joi.object({
274
+ zoneId: Joi.string().allow("").required(),
275
+ }).required();
276
+ }
277
+
278
+ /** @returns {DownloadGeoareaSampleFileParam} */
279
+ static downloadGeoareaSampleFile() {
280
+ return Joi.object({}).required();
281
+ }
282
+
128
283
  /** @returns {GetApplicationConfigParam} */
129
284
  static getApplicationConfig() {
130
285
  return Joi.object({}).required();
@@ -135,15 +290,24 @@ class ServiceabilityPlatformApplicationValidator {
135
290
  return Joi.object({}).required();
136
291
  }
137
292
 
138
- /** @returns {GetApplicationServiceabilitySelfShipmentParam} */
139
- static getApplicationServiceabilitySelfShipment() {
140
- return Joi.object({}).required();
293
+ /** @returns {GetBulkExportParam} */
294
+ static getBulkExport() {
295
+ return Joi.object({
296
+ batchId: Joi.string().allow("").required(),
297
+ }).required();
298
+ }
299
+
300
+ /** @returns {GetBulkGeoAreaParam} */
301
+ static getBulkGeoArea() {
302
+ return Joi.object({
303
+ geoareaId: Joi.string().allow("").required(),
304
+ }).required();
141
305
  }
142
306
 
143
307
  /** @returns {GetCourierPartnerRuleParam} */
144
308
  static getCourierPartnerRule() {
145
309
  return Joi.object({
146
- ruleId: Joi.string().allow("").required(),
310
+ ruleUid: Joi.string().allow("").required(),
147
311
  }).required();
148
312
  }
149
313
 
@@ -163,6 +327,36 @@ class ServiceabilityPlatformApplicationValidator {
163
327
  }).required();
164
328
  }
165
329
 
330
+ /** @returns {GetGeoAreaParam} */
331
+ static getGeoArea() {
332
+ return Joi.object({
333
+ geoareaId: Joi.string().allow("").required(),
334
+ }).required();
335
+ }
336
+
337
+ /** @returns {GetGeoAreaExportJobStatusParam} */
338
+ static getGeoAreaExportJobStatus() {
339
+ return Joi.object({
340
+ geoareaId: Joi.string().allow("").required(),
341
+ }).required();
342
+ }
343
+
344
+ /** @returns {GetGeoAreasParam} */
345
+ static getGeoAreas() {
346
+ return Joi.object({
347
+ pageSize: Joi.number(),
348
+ isActive: Joi.boolean(),
349
+ pageNo: Joi.number(),
350
+ type: Joi.string().allow(""),
351
+ q: Joi.string().allow(""),
352
+ countryIsoCode: Joi.string().allow(""),
353
+ state: Joi.string().allow(""),
354
+ city: Joi.string().allow(""),
355
+ pincode: Joi.string().allow(""),
356
+ sector: Joi.string().allow(""),
357
+ }).required();
358
+ }
359
+
166
360
  /** @returns {GetStoreRuleParam} */
167
361
  static getStoreRule() {
168
362
  return Joi.object({
@@ -179,6 +373,29 @@ class ServiceabilityPlatformApplicationValidator {
179
373
  }).required();
180
374
  }
181
375
 
376
+ /** @returns {GetZoneParam} */
377
+ static getZone() {
378
+ return Joi.object({
379
+ zoneId: Joi.string().allow("").required(),
380
+ }).required();
381
+ }
382
+
383
+ /** @returns {GetZonesParam} */
384
+ static getZones() {
385
+ return Joi.object({
386
+ stage: Joi.string().allow(""),
387
+ pageSize: Joi.number(),
388
+ pageNo: Joi.number(),
389
+ isActive: Joi.boolean(),
390
+ q: Joi.string().allow(""),
391
+ countryIsoCode: Joi.string().allow(""),
392
+ pincode: Joi.string().allow(""),
393
+ state: Joi.string().allow(""),
394
+ city: Joi.string().allow(""),
395
+ sector: Joi.string().allow(""),
396
+ }).required();
397
+ }
398
+
182
399
  /** @returns {InsertApplicationConfigParam} */
183
400
  static insertApplicationConfig() {
184
401
  return Joi.object({
@@ -186,17 +403,25 @@ class ServiceabilityPlatformApplicationValidator {
186
403
  }).required();
187
404
  }
188
405
 
189
- /** @returns {PatchApplicationServiceabilitySelfShipmentParam} */
190
- static patchApplicationServiceabilitySelfShipment() {
406
+ /** @returns {PatchApplicationConfigurationParam} */
407
+ static patchApplicationConfiguration() {
191
408
  return Joi.object({
192
- body: ServiceabilityPlatformModel.SelfShipResult().required(),
409
+ body: ServiceabilityPlatformModel.ApplicationConfigPatch().required(),
193
410
  }).required();
194
411
  }
195
412
 
196
413
  /** @returns {UpdateApplicationConfigurationParam} */
197
414
  static updateApplicationConfiguration() {
198
415
  return Joi.object({
199
- body: ServiceabilityPlatformModel.ApplicationConfig().required(),
416
+ body: ServiceabilityPlatformModel.ApplicationConfigPutDetail().required(),
417
+ }).required();
418
+ }
419
+
420
+ /** @returns {UpdateBulkGeoAreaParam} */
421
+ static updateBulkGeoArea() {
422
+ return Joi.object({
423
+ geoareaId: Joi.string().allow("").required(),
424
+ body: ServiceabilityPlatformModel.BulkGeoAreaDetails().required(),
200
425
  }).required();
201
426
  }
202
427
 
@@ -210,11 +435,20 @@ class ServiceabilityPlatformApplicationValidator {
210
435
  /** @returns {UpdateCourierRuleParam} */
211
436
  static updateCourierRule() {
212
437
  return Joi.object({
213
- ruleId: Joi.string().allow("").required(),
438
+ ruleUid: Joi.string().allow("").required(),
214
439
  body: ServiceabilityPlatformModel.CourierPartnerRule().required(),
215
440
  }).required();
216
441
  }
217
442
 
443
+ /** @returns {UpdateGeoAreaParam} */
444
+ static updateGeoArea() {
445
+ return Joi.object({
446
+ geoareaId: Joi.string().allow("").required(),
447
+
448
+ body: ServiceabilityPlatformModel.GeoAreaRequestBody().required(),
449
+ }).required();
450
+ }
451
+
218
452
  /** @returns {UpdatePincodeAuditHistoryParam} */
219
453
  static updatePincodeAuditHistory() {
220
454
  return Joi.object({
@@ -247,6 +481,13 @@ class ServiceabilityPlatformApplicationValidator {
247
481
  }).required();
248
482
  }
249
483
 
484
+ /** @returns {UpdateStoreRulePriorityParam} */
485
+ static updateStoreRulePriority() {
486
+ return Joi.object({
487
+ body: ServiceabilityPlatformModel.RulePriorityDetails().required(),
488
+ }).required();
489
+ }
490
+
250
491
  /** @returns {UpdateStoreRulesParam} */
251
492
  static updateStoreRules() {
252
493
  return Joi.object({
@@ -261,6 +502,15 @@ class ServiceabilityPlatformApplicationValidator {
261
502
  body: ServiceabilityPlatformModel.StoreRuleConfigData().required(),
262
503
  }).required();
263
504
  }
505
+
506
+ /** @returns {UpdateZoneParam} */
507
+ static updateZone() {
508
+ return Joi.object({
509
+ zoneId: Joi.string().allow("").required(),
510
+
511
+ body: ServiceabilityPlatformModel.UpdateZoneData().required(),
512
+ }).required();
513
+ }
264
514
  }
265
515
 
266
516
  module.exports = ServiceabilityPlatformApplicationValidator;