@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.5.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 (47) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +11 -11
  4. package/sdk/application/Cart/CartApplicationClient.js +48 -50
  5. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -20
  6. package/sdk/application/Content/ContentApplicationClient.js +0 -78
  7. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -1
  8. package/sdk/application/Logistic/LogisticApplicationClient.js +2 -0
  9. package/sdk/application/Payment/PaymentApplicationClient.d.ts +10 -0
  10. package/sdk/application/Payment/PaymentApplicationClient.js +39 -0
  11. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -12
  12. package/sdk/partner/Logistics/LogisticsPartnerClient.js +209 -38
  13. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +399 -19
  14. package/sdk/partner/Logistics/LogisticsPartnerModel.js +212 -11
  15. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +3 -1
  16. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +22 -7
  17. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
  18. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  19. package/sdk/platform/Cart/CartPlatformApplicationClient.js +3 -12
  20. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +0 -7
  21. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +0 -3
  22. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -14
  23. package/sdk/platform/Cart/CartPlatformModel.js +12 -6
  24. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +24 -0
  25. package/sdk/platform/Catalog/CatalogPlatformClient.js +176 -0
  26. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +80 -29
  27. package/sdk/platform/Catalog/CatalogPlatformModel.js +72 -32
  28. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +45 -1
  29. package/sdk/platform/Catalog/CatalogPlatformValidator.js +35 -0
  30. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -52
  31. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -411
  32. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -85
  33. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -73
  34. package/sdk/platform/Content/ContentPlatformModel.d.ts +1 -90
  35. package/sdk/platform/Content/ContentPlatformModel.js +0 -104
  36. package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
  37. package/sdk/platform/Order/OrderPlatformClient.js +8 -0
  38. package/sdk/platform/Order/OrderPlatformModel.d.ts +73 -1
  39. package/sdk/platform/Order/OrderPlatformModel.js +39 -0
  40. package/sdk/platform/Order/OrderPlatformValidator.d.ts +22 -0
  41. package/sdk/platform/Order/OrderPlatformValidator.js +10 -0
  42. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +94 -0
  43. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +699 -76
  44. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +598 -23
  45. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +382 -20
  46. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +134 -1
  47. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +108 -0
@@ -15,6 +15,10 @@ export = ServiceabilityPlatformValidator;
15
15
  * @typedef CreateCourierPartnerAccountParam
16
16
  * @property {ServiceabilityPlatformModel.CourierAccountDetailsBody} body
17
17
  */
18
+ /**
19
+ * @typedef CreateCourierPartnerSchemeParam
20
+ * @property {ServiceabilityPlatformModel.CourierPartnerSchemeV2DetailsModel} body
21
+ */
18
22
  /**
19
23
  * @typedef CreatePackageMaterialParam
20
24
  * @property {ServiceabilityPlatformModel.PackageMaterial} body
@@ -57,6 +61,15 @@ export = ServiceabilityPlatformValidator;
57
61
  * @property {string} [endDate] - Fetch job history before a particule date
58
62
  */
59
63
  /** @typedef GetCompanyConfigurationParam */
64
+ /**
65
+ * @typedef GetCountriesParam
66
+ * @property {boolean} [onboarding] - Only fetch countries which allowed for
67
+ * onboard on Platform.
68
+ * @property {number} [pageNo] - Page number.
69
+ * @property {number} [pageSize] - Page size.
70
+ * @property {string} [q] - Search.
71
+ * @property {string} [hierarchy] - Fetch countries that has certain heirarchy present.
72
+ */
60
73
  /**
61
74
  * @typedef GetCourierPartnerAccountParam
62
75
  * @property {string} accountId - Unique ID of courier partner account
@@ -69,6 +82,20 @@ export = ServiceabilityPlatformValidator;
69
82
  * @property {string} [paymentMode] - Filters dp accounts based on payment mode
70
83
  * @property {string} [transportType] - Filters dp accounts based on transport_type
71
84
  */
85
+ /**
86
+ * @typedef GetCourierPartnerSchemeParam
87
+ * @property {string} schemeId - Unique Identifier of Scheme
88
+ */
89
+ /**
90
+ * @typedef GetCourierPartnerSchemesParam
91
+ * @property {string} [schemeType] - Indicates whether a scheme is created by an
92
+ * admin for global purposes or customized for a specific company.
93
+ * @property {string} [paymentMode] - Indicates payment mode for a scheme.
94
+ * @property {string[]} [capabilities] - Indicates whether the scheme possesses
95
+ * certain capabilities.
96
+ * @property {string[]} [schemeIds] - List of scheme ids which need to be
97
+ * returned in the response.
98
+ */
72
99
  /**
73
100
  * @typedef GetOptimalLocationsParam
74
101
  * @property {ServiceabilityPlatformModel.OptimlLocationsDetailsSchema} body
@@ -96,6 +123,12 @@ export = ServiceabilityPlatformValidator;
96
123
  * @typedef GetPackageMaterialsParam
97
124
  * @property {string} packageMaterialId - Unique identifier for a Package. Material
98
125
  */
126
+ /**
127
+ * @typedef GetSampleFileServiceabilityStatusParam
128
+ * @property {number} [pageNo] - Index of the item to start returning with
129
+ * @property {number} [pageSize] - Determines the items to be displayed in a page
130
+ * @property {string} [batchId] - Batch id of the execution
131
+ */
99
132
  /**
100
133
  * @typedef GetServiceabilityParam
101
134
  * @property {string} extensionId - Unique Identifier of courier partner extension.
@@ -119,6 +152,10 @@ export = ServiceabilityPlatformValidator;
119
152
  * @property {string} [pincode] - Pincode value to search zones
120
153
  * @property {string} [sector] - Sector value to search zones
121
154
  */
155
+ /**
156
+ * @typedef SampleFileServiceabilityParam
157
+ * @property {ServiceabilityPlatformModel.BulkRegionServiceabilityTatDetails} body
158
+ */
122
159
  /**
123
160
  * @typedef UpdateCompanyConfigurationParam
124
161
  * @property {ServiceabilityPlatformModel.CompanyConfig} body
@@ -128,6 +165,11 @@ export = ServiceabilityPlatformValidator;
128
165
  * @property {string} accountId - Unique ID of courier partner account
129
166
  * @property {ServiceabilityPlatformModel.CourierAccountUpdateDetails} body
130
167
  */
168
+ /**
169
+ * @typedef UpdateCourierPartnerSchemeParam
170
+ * @property {string} schemeId - Unique Identifier of Scheme
171
+ * @property {ServiceabilityPlatformModel.CourierPartnerSchemeV2UpdateDetails} body
172
+ */
131
173
  /**
132
174
  * @typedef UpdatePackageMaterialRuleParam
133
175
  * @property {string} ruleId - A `package_material_rule_id` is a unique
@@ -158,6 +200,8 @@ declare class ServiceabilityPlatformValidator {
158
200
  static bulkTat(): BulkTatParam;
159
201
  /** @returns {CreateCourierPartnerAccountParam} */
160
202
  static createCourierPartnerAccount(): CreateCourierPartnerAccountParam;
203
+ /** @returns {CreateCourierPartnerSchemeParam} */
204
+ static createCourierPartnerScheme(): CreateCourierPartnerSchemeParam;
161
205
  /** @returns {CreatePackageMaterialParam} */
162
206
  static createPackageMaterial(): CreatePackageMaterialParam;
163
207
  /** @returns {CreatePackageMaterialRuleParam} */
@@ -172,10 +216,16 @@ declare class ServiceabilityPlatformValidator {
172
216
  static getBulkTat(): GetBulkTatParam;
173
217
  /** @returns {GetCompanyConfigurationParam} */
174
218
  static getCompanyConfiguration(): any;
219
+ /** @returns {GetCountriesParam} */
220
+ static getCountries(): GetCountriesParam;
175
221
  /** @returns {GetCourierPartnerAccountParam} */
176
222
  static getCourierPartnerAccount(): GetCourierPartnerAccountParam;
177
223
  /** @returns {GetCourierPartnerAccountsParam} */
178
224
  static getCourierPartnerAccounts(): GetCourierPartnerAccountsParam;
225
+ /** @returns {GetCourierPartnerSchemeParam} */
226
+ static getCourierPartnerScheme(): GetCourierPartnerSchemeParam;
227
+ /** @returns {GetCourierPartnerSchemesParam} */
228
+ static getCourierPartnerSchemes(): GetCourierPartnerSchemesParam;
179
229
  /** @returns {GetOptimalLocationsParam} */
180
230
  static getOptimalLocations(): GetOptimalLocationsParam;
181
231
  /** @returns {GetPackageMaterialListParam} */
@@ -186,16 +236,22 @@ declare class ServiceabilityPlatformValidator {
186
236
  static getPackageMaterialRules(): GetPackageMaterialRulesParam;
187
237
  /** @returns {GetPackageMaterialsParam} */
188
238
  static getPackageMaterials(): GetPackageMaterialsParam;
239
+ /** @returns {GetSampleFileServiceabilityStatusParam} */
240
+ static getSampleFileServiceabilityStatus(): GetSampleFileServiceabilityStatusParam;
189
241
  /** @returns {GetServiceabilityParam} */
190
242
  static getServiceability(): GetServiceabilityParam;
191
243
  /** @returns {GetZoneByIdParam} */
192
244
  static getZoneById(): GetZoneByIdParam;
193
245
  /** @returns {GetZonesParam} */
194
246
  static getZones(): GetZonesParam;
247
+ /** @returns {SampleFileServiceabilityParam} */
248
+ static sampleFileServiceability(): SampleFileServiceabilityParam;
195
249
  /** @returns {UpdateCompanyConfigurationParam} */
196
250
  static updateCompanyConfiguration(): UpdateCompanyConfigurationParam;
197
251
  /** @returns {UpdateCourierPartnerAccountParam} */
198
252
  static updateCourierPartnerAccount(): UpdateCourierPartnerAccountParam;
253
+ /** @returns {UpdateCourierPartnerSchemeParam} */
254
+ static updateCourierPartnerScheme(): UpdateCourierPartnerSchemeParam;
199
255
  /** @returns {UpdatePackageMaterialRuleParam} */
200
256
  static updatePackageMaterialRule(): UpdatePackageMaterialRuleParam;
201
257
  /** @returns {UpdatePackageMaterialsParam} */
@@ -206,7 +262,7 @@ declare class ServiceabilityPlatformValidator {
206
262
  static updateZoneById(): UpdateZoneByIdParam;
207
263
  }
208
264
  declare namespace ServiceabilityPlatformValidator {
209
- export { BulkServiceabilityParam, BulkTatParam, CreateCourierPartnerAccountParam, CreatePackageMaterialParam, CreatePackageMaterialRuleParam, CreateZoneParam, GetAllStoresParam, GetBulkServiceabilityParam, GetBulkTatParam, GetCompanyConfigurationParam, GetCourierPartnerAccountParam, GetCourierPartnerAccountsParam, GetOptimalLocationsParam, GetPackageMaterialListParam, GetPackageMaterialRuleParam, GetPackageMaterialRulesParam, GetPackageMaterialsParam, GetServiceabilityParam, GetZoneByIdParam, GetZonesParam, UpdateCompanyConfigurationParam, UpdateCourierPartnerAccountParam, UpdatePackageMaterialRuleParam, UpdatePackageMaterialsParam, UpdateServiceabilityParam, UpdateZoneByIdParam };
265
+ export { BulkServiceabilityParam, BulkTatParam, CreateCourierPartnerAccountParam, CreateCourierPartnerSchemeParam, CreatePackageMaterialParam, CreatePackageMaterialRuleParam, CreateZoneParam, GetAllStoresParam, GetBulkServiceabilityParam, GetBulkTatParam, GetCompanyConfigurationParam, GetCountriesParam, GetCourierPartnerAccountParam, GetCourierPartnerAccountsParam, GetCourierPartnerSchemeParam, GetCourierPartnerSchemesParam, GetOptimalLocationsParam, GetPackageMaterialListParam, GetPackageMaterialRuleParam, GetPackageMaterialRulesParam, GetPackageMaterialsParam, GetSampleFileServiceabilityStatusParam, GetServiceabilityParam, GetZoneByIdParam, GetZonesParam, SampleFileServiceabilityParam, UpdateCompanyConfigurationParam, UpdateCourierPartnerAccountParam, UpdateCourierPartnerSchemeParam, UpdatePackageMaterialRuleParam, UpdatePackageMaterialsParam, UpdateServiceabilityParam, UpdateZoneByIdParam };
210
266
  }
211
267
  type BulkServiceabilityParam = {
212
268
  /**
@@ -233,6 +289,9 @@ type BulkTatParam = {
233
289
  type CreateCourierPartnerAccountParam = {
234
290
  body: ServiceabilityPlatformModel.CourierAccountDetailsBody;
235
291
  };
292
+ type CreateCourierPartnerSchemeParam = {
293
+ body: ServiceabilityPlatformModel.CourierPartnerSchemeV2DetailsModel;
294
+ };
236
295
  type CreatePackageMaterialParam = {
237
296
  body: ServiceabilityPlatformModel.PackageMaterial;
238
297
  };
@@ -334,6 +393,29 @@ type GetBulkTatParam = {
334
393
  */
335
394
  endDate?: string;
336
395
  };
396
+ type GetCountriesParam = {
397
+ /**
398
+ * - Only fetch countries which allowed for
399
+ * onboard on Platform.
400
+ */
401
+ onboarding?: boolean;
402
+ /**
403
+ * - Page number.
404
+ */
405
+ pageNo?: number;
406
+ /**
407
+ * - Page size.
408
+ */
409
+ pageSize?: number;
410
+ /**
411
+ * - Search.
412
+ */
413
+ q?: string;
414
+ /**
415
+ * - Fetch countries that has certain heirarchy present.
416
+ */
417
+ hierarchy?: string;
418
+ };
337
419
  type GetCourierPartnerAccountParam = {
338
420
  /**
339
421
  * - Unique ID of courier partner account
@@ -362,6 +444,33 @@ type GetCourierPartnerAccountsParam = {
362
444
  */
363
445
  transportType?: string;
364
446
  };
447
+ type GetCourierPartnerSchemeParam = {
448
+ /**
449
+ * - Unique Identifier of Scheme
450
+ */
451
+ schemeId: string;
452
+ };
453
+ type GetCourierPartnerSchemesParam = {
454
+ /**
455
+ * - Indicates whether a scheme is created by an
456
+ * admin for global purposes or customized for a specific company.
457
+ */
458
+ schemeType?: string;
459
+ /**
460
+ * - Indicates payment mode for a scheme.
461
+ */
462
+ paymentMode?: string;
463
+ /**
464
+ * - Indicates whether the scheme possesses
465
+ * certain capabilities.
466
+ */
467
+ capabilities?: string[];
468
+ /**
469
+ * - List of scheme ids which need to be
470
+ * returned in the response.
471
+ */
472
+ schemeIds?: string[];
473
+ };
365
474
  type GetOptimalLocationsParam = {
366
475
  body: ServiceabilityPlatformModel.OptimlLocationsDetailsSchema;
367
476
  };
@@ -414,6 +523,20 @@ type GetPackageMaterialsParam = {
414
523
  */
415
524
  packageMaterialId: string;
416
525
  };
526
+ type GetSampleFileServiceabilityStatusParam = {
527
+ /**
528
+ * - Index of the item to start returning with
529
+ */
530
+ pageNo?: number;
531
+ /**
532
+ * - Determines the items to be displayed in a page
533
+ */
534
+ pageSize?: number;
535
+ /**
536
+ * - Batch id of the execution
537
+ */
538
+ batchId?: string;
539
+ };
417
540
  type GetServiceabilityParam = {
418
541
  /**
419
542
  * - Unique Identifier of courier partner extension.
@@ -476,6 +599,9 @@ type GetZonesParam = {
476
599
  */
477
600
  sector?: string;
478
601
  };
602
+ type SampleFileServiceabilityParam = {
603
+ body: ServiceabilityPlatformModel.BulkRegionServiceabilityTatDetails;
604
+ };
479
605
  type UpdateCompanyConfigurationParam = {
480
606
  body: ServiceabilityPlatformModel.CompanyConfig;
481
607
  };
@@ -486,6 +612,13 @@ type UpdateCourierPartnerAccountParam = {
486
612
  accountId: string;
487
613
  body: ServiceabilityPlatformModel.CourierAccountUpdateDetails;
488
614
  };
615
+ type UpdateCourierPartnerSchemeParam = {
616
+ /**
617
+ * - Unique Identifier of Scheme
618
+ */
619
+ schemeId: string;
620
+ body: ServiceabilityPlatformModel.CourierPartnerSchemeV2UpdateDetails;
621
+ };
489
622
  type UpdatePackageMaterialRuleParam = {
490
623
  /**
491
624
  * - A `package_material_rule_id` is a unique
@@ -21,6 +21,11 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
21
21
  * @property {ServiceabilityPlatformModel.CourierAccountDetailsBody} body
22
22
  */
23
23
 
24
+ /**
25
+ * @typedef CreateCourierPartnerSchemeParam
26
+ * @property {ServiceabilityPlatformModel.CourierPartnerSchemeV2DetailsModel} body
27
+ */
28
+
24
29
  /**
25
30
  * @typedef CreatePackageMaterialParam
26
31
  * @property {ServiceabilityPlatformModel.PackageMaterial} body
@@ -70,6 +75,16 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
70
75
 
71
76
  /** @typedef GetCompanyConfigurationParam */
72
77
 
78
+ /**
79
+ * @typedef GetCountriesParam
80
+ * @property {boolean} [onboarding] - Only fetch countries which allowed for
81
+ * onboard on Platform.
82
+ * @property {number} [pageNo] - Page number.
83
+ * @property {number} [pageSize] - Page size.
84
+ * @property {string} [q] - Search.
85
+ * @property {string} [hierarchy] - Fetch countries that has certain heirarchy present.
86
+ */
87
+
73
88
  /**
74
89
  * @typedef GetCourierPartnerAccountParam
75
90
  * @property {string} accountId - Unique ID of courier partner account
@@ -84,6 +99,22 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
84
99
  * @property {string} [transportType] - Filters dp accounts based on transport_type
85
100
  */
86
101
 
102
+ /**
103
+ * @typedef GetCourierPartnerSchemeParam
104
+ * @property {string} schemeId - Unique Identifier of Scheme
105
+ */
106
+
107
+ /**
108
+ * @typedef GetCourierPartnerSchemesParam
109
+ * @property {string} [schemeType] - Indicates whether a scheme is created by an
110
+ * admin for global purposes or customized for a specific company.
111
+ * @property {string} [paymentMode] - Indicates payment mode for a scheme.
112
+ * @property {string[]} [capabilities] - Indicates whether the scheme possesses
113
+ * certain capabilities.
114
+ * @property {string[]} [schemeIds] - List of scheme ids which need to be
115
+ * returned in the response.
116
+ */
117
+
87
118
  /**
88
119
  * @typedef GetOptimalLocationsParam
89
120
  * @property {ServiceabilityPlatformModel.OptimlLocationsDetailsSchema} body
@@ -116,6 +147,13 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
116
147
  * @property {string} packageMaterialId - Unique identifier for a Package. Material
117
148
  */
118
149
 
150
+ /**
151
+ * @typedef GetSampleFileServiceabilityStatusParam
152
+ * @property {number} [pageNo] - Index of the item to start returning with
153
+ * @property {number} [pageSize] - Determines the items to be displayed in a page
154
+ * @property {string} [batchId] - Batch id of the execution
155
+ */
156
+
119
157
  /**
120
158
  * @typedef GetServiceabilityParam
121
159
  * @property {string} extensionId - Unique Identifier of courier partner extension.
@@ -142,6 +180,11 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
142
180
  * @property {string} [sector] - Sector value to search zones
143
181
  */
144
182
 
183
+ /**
184
+ * @typedef SampleFileServiceabilityParam
185
+ * @property {ServiceabilityPlatformModel.BulkRegionServiceabilityTatDetails} body
186
+ */
187
+
145
188
  /**
146
189
  * @typedef UpdateCompanyConfigurationParam
147
190
  * @property {ServiceabilityPlatformModel.CompanyConfig} body
@@ -153,6 +196,12 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
153
196
  * @property {ServiceabilityPlatformModel.CourierAccountUpdateDetails} body
154
197
  */
155
198
 
199
+ /**
200
+ * @typedef UpdateCourierPartnerSchemeParam
201
+ * @property {string} schemeId - Unique Identifier of Scheme
202
+ * @property {ServiceabilityPlatformModel.CourierPartnerSchemeV2UpdateDetails} body
203
+ */
204
+
156
205
  /**
157
206
  * @typedef UpdatePackageMaterialRuleParam
158
207
  * @property {string} ruleId - A `package_material_rule_id` is a unique
@@ -206,6 +255,13 @@ class ServiceabilityPlatformValidator {
206
255
  }).required();
207
256
  }
208
257
 
258
+ /** @returns {CreateCourierPartnerSchemeParam} */
259
+ static createCourierPartnerScheme() {
260
+ return Joi.object({
261
+ body: ServiceabilityPlatformModel.CourierPartnerSchemeV2DetailsModel().required(),
262
+ }).required();
263
+ }
264
+
209
265
  /** @returns {CreatePackageMaterialParam} */
210
266
  static createPackageMaterial() {
211
267
  return Joi.object({
@@ -271,6 +327,17 @@ class ServiceabilityPlatformValidator {
271
327
  return Joi.object({}).required();
272
328
  }
273
329
 
330
+ /** @returns {GetCountriesParam} */
331
+ static getCountries() {
332
+ return Joi.object({
333
+ onboarding: Joi.boolean(),
334
+ pageNo: Joi.number(),
335
+ pageSize: Joi.number(),
336
+ q: Joi.string().allow(""),
337
+ hierarchy: Joi.string().allow(""),
338
+ }).required();
339
+ }
340
+
274
341
  /** @returns {GetCourierPartnerAccountParam} */
275
342
  static getCourierPartnerAccount() {
276
343
  return Joi.object({
@@ -289,6 +356,23 @@ class ServiceabilityPlatformValidator {
289
356
  }).required();
290
357
  }
291
358
 
359
+ /** @returns {GetCourierPartnerSchemeParam} */
360
+ static getCourierPartnerScheme() {
361
+ return Joi.object({
362
+ schemeId: Joi.string().allow("").required(),
363
+ }).required();
364
+ }
365
+
366
+ /** @returns {GetCourierPartnerSchemesParam} */
367
+ static getCourierPartnerSchemes() {
368
+ return Joi.object({
369
+ schemeType: Joi.string().allow(""),
370
+ paymentMode: Joi.string().allow(""),
371
+ capabilities: Joi.array().items(Joi.string().allow("")),
372
+ schemeIds: Joi.array().items(Joi.string().allow("")),
373
+ }).required();
374
+ }
375
+
292
376
  /** @returns {GetOptimalLocationsParam} */
293
377
  static getOptimalLocations() {
294
378
  return Joi.object({
@@ -330,6 +414,15 @@ class ServiceabilityPlatformValidator {
330
414
  }).required();
331
415
  }
332
416
 
417
+ /** @returns {GetSampleFileServiceabilityStatusParam} */
418
+ static getSampleFileServiceabilityStatus() {
419
+ return Joi.object({
420
+ pageNo: Joi.number(),
421
+ pageSize: Joi.number(),
422
+ batchId: Joi.string().allow(""),
423
+ }).required();
424
+ }
425
+
333
426
  /** @returns {GetServiceabilityParam} */
334
427
  static getServiceability() {
335
428
  return Joi.object({
@@ -362,6 +455,13 @@ class ServiceabilityPlatformValidator {
362
455
  }).required();
363
456
  }
364
457
 
458
+ /** @returns {SampleFileServiceabilityParam} */
459
+ static sampleFileServiceability() {
460
+ return Joi.object({
461
+ body: ServiceabilityPlatformModel.BulkRegionServiceabilityTatDetails().required(),
462
+ }).required();
463
+ }
464
+
365
465
  /** @returns {UpdateCompanyConfigurationParam} */
366
466
  static updateCompanyConfiguration() {
367
467
  return Joi.object({
@@ -377,6 +477,14 @@ class ServiceabilityPlatformValidator {
377
477
  }).required();
378
478
  }
379
479
 
480
+ /** @returns {UpdateCourierPartnerSchemeParam} */
481
+ static updateCourierPartnerScheme() {
482
+ return Joi.object({
483
+ schemeId: Joi.string().allow("").required(),
484
+ body: ServiceabilityPlatformModel.CourierPartnerSchemeV2UpdateDetails().required(),
485
+ }).required();
486
+ }
487
+
380
488
  /** @returns {UpdatePackageMaterialRuleParam} */
381
489
  static updatePackageMaterialRule() {
382
490
  return Joi.object({