@gofynd/fdk-client-javascript 3.11.0 → 3.13.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 (32) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +16 -6
  4. package/sdk/application/Catalog/CatalogApplicationClient.js +71 -12
  5. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +80 -80
  6. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -48
  7. package/sdk/platform/Cart/CartPlatformModel.d.ts +6 -18
  8. package/sdk/platform/Cart/CartPlatformModel.js +2 -36
  9. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +14 -48
  10. package/sdk/platform/Catalog/CatalogPlatformClient.js +85 -338
  11. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +207 -763
  12. package/sdk/platform/Catalog/CatalogPlatformModel.js +107 -392
  13. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -71
  14. package/sdk/platform/Catalog/CatalogPlatformValidator.js +14 -60
  15. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +36 -0
  16. package/sdk/platform/Order/OrderPlatformApplicationClient.js +252 -0
  17. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +34 -1
  18. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +42 -0
  19. package/sdk/platform/Order/OrderPlatformClient.d.ts +69 -7
  20. package/sdk/platform/Order/OrderPlatformClient.js +453 -7
  21. package/sdk/platform/Order/OrderPlatformModel.d.ts +1938 -493
  22. package/sdk/platform/Order/OrderPlatformModel.js +1238 -506
  23. package/sdk/platform/Order/OrderPlatformValidator.d.ts +162 -16
  24. package/sdk/platform/Order/OrderPlatformValidator.js +111 -9
  25. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +14 -0
  26. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +85 -0
  27. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -1
  28. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +16 -0
  29. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +861 -178
  30. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +534 -84
  31. package/sdk/public/Webhook/WebhookPublicModel.d.ts +5 -0
  32. package/sdk/public/Webhook/WebhookPublicModel.js +2 -0
@@ -23,6 +23,12 @@ export = ServiceabilityPlatformApplicationValidator;
23
23
  * @typedef CreateGeoAreaExportJobParam
24
24
  * @property {string} geoareaId - The unique identifier of the Geoarea.
25
25
  */
26
+ /**
27
+ * @typedef CreateShipmentsParam
28
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
29
+ * identify source of order creation.
30
+ * @property {ServiceabilityPlatformModel.PlatformShipmentsRequestSchema} body
31
+ */
26
32
  /**
27
33
  * @typedef CreateStoreRulesParam
28
34
  * @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
@@ -242,6 +248,8 @@ declare class ServiceabilityPlatformApplicationValidator {
242
248
  static createGeoArea(): CreateGeoAreaParam;
243
249
  /** @returns {CreateGeoAreaExportJobParam} */
244
250
  static createGeoAreaExportJob(): CreateGeoAreaExportJobParam;
251
+ /** @returns {CreateShipmentsParam} */
252
+ static createShipments(): CreateShipmentsParam;
245
253
  /** @returns {CreateStoreRulesParam} */
246
254
  static createStoreRules(): CreateStoreRulesParam;
247
255
  /** @returns {CreateZoneParam} */
@@ -328,7 +336,7 @@ declare class ServiceabilityPlatformApplicationValidator {
328
336
  static validateBulkFulfillmentOptions(): ValidateBulkFulfillmentOptionsParam;
329
337
  }
330
338
  declare namespace ServiceabilityPlatformApplicationValidator {
331
- export { CreateBulkExportParam, CreateBulkGeoAreaParam, CreateCourierPartnerRuleParam, CreateFulfillmentOptionParam, CreateGeoAreaParam, CreateGeoAreaExportJobParam, CreateStoreRulesParam, CreateZoneParam, DeleteFulfillmentOptionsParam, DeleteZoneParam, DownloadGeoareaSampleFileParam, GetApplicationConfigParam, GetApplicationConfigurationParam, GetBulkExportParam, GetBulkFulfillmentValidationStatusParam, GetBulkGeoAreaParam, GetCourierPartnerRuleParam, GetCourierPartnerRulesParam, GetCourierPartnersParam, GetFulfillmentOptionProductsParam, GetFulfillmentOptionStoresParam, GetFulfillmentOptionsParam, GetFulfillmentOptionsListParam, GetGeoAreaParam, GetGeoAreaExportJobStatusParam, GetGeoAreasParam, GetStoreRuleParam, GetStoreRulesParam, GetZoneParam, GetZonesParam, InsertApplicationConfigParam, PatchApplicationConfigurationParam, PutFulfillmentOptionParam, UpdateApplicationConfigurationParam, UpdateBulkGeoAreaParam, UpdateCourierPartnerRulePriorityParam, UpdateCourierRuleParam, UpdateGeoAreaParam, UpdatePincodeAuditHistoryParam, UpdatePincodeBulkViewParam, UpdatePincodeCoDListingParam, UpdatePincodeMopViewParam, UpdateStoreRulePriorityParam, UpdateStoreRulesParam, UpdateStoreRulesConfigParam, UpdateZoneParam, UploadBulkFulfillmentOptionsParam, ValidateBulkFulfillmentOptionsParam };
339
+ export { CreateBulkExportParam, CreateBulkGeoAreaParam, CreateCourierPartnerRuleParam, CreateFulfillmentOptionParam, CreateGeoAreaParam, CreateGeoAreaExportJobParam, CreateShipmentsParam, CreateStoreRulesParam, CreateZoneParam, DeleteFulfillmentOptionsParam, DeleteZoneParam, DownloadGeoareaSampleFileParam, GetApplicationConfigParam, GetApplicationConfigurationParam, GetBulkExportParam, GetBulkFulfillmentValidationStatusParam, GetBulkGeoAreaParam, GetCourierPartnerRuleParam, GetCourierPartnerRulesParam, GetCourierPartnersParam, GetFulfillmentOptionProductsParam, GetFulfillmentOptionStoresParam, GetFulfillmentOptionsParam, GetFulfillmentOptionsListParam, GetGeoAreaParam, GetGeoAreaExportJobStatusParam, GetGeoAreasParam, GetStoreRuleParam, GetStoreRulesParam, GetZoneParam, GetZonesParam, InsertApplicationConfigParam, PatchApplicationConfigurationParam, PutFulfillmentOptionParam, UpdateApplicationConfigurationParam, UpdateBulkGeoAreaParam, UpdateCourierPartnerRulePriorityParam, UpdateCourierRuleParam, UpdateGeoAreaParam, UpdatePincodeAuditHistoryParam, UpdatePincodeBulkViewParam, UpdatePincodeCoDListingParam, UpdatePincodeMopViewParam, UpdateStoreRulePriorityParam, UpdateStoreRulesParam, UpdateStoreRulesConfigParam, UpdateZoneParam, UploadBulkFulfillmentOptionsParam, ValidateBulkFulfillmentOptionsParam };
332
340
  }
333
341
  type CreateBulkExportParam = {
334
342
  body: ServiceabilityPlatformModel.BulkCreateZoneExport;
@@ -351,6 +359,14 @@ type CreateGeoAreaExportJobParam = {
351
359
  */
352
360
  geoareaId: string;
353
361
  };
362
+ type CreateShipmentsParam = {
363
+ /**
364
+ * - Ordering source header, to be used to
365
+ * identify source of order creation.
366
+ */
367
+ xOrderingSource?: string;
368
+ body: ServiceabilityPlatformModel.PlatformShipmentsRequestSchema;
369
+ };
354
370
  type CreateStoreRulesParam = {
355
371
  body: ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema;
356
372
  };
@@ -32,6 +32,13 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
32
32
  * @property {string} geoareaId - The unique identifier of the Geoarea.
33
33
  */
34
34
 
35
+ /**
36
+ * @typedef CreateShipmentsParam
37
+ * @property {string} [xOrderingSource] - Ordering source header, to be used to
38
+ * identify source of order creation.
39
+ * @property {ServiceabilityPlatformModel.PlatformShipmentsRequestSchema} body
40
+ */
41
+
35
42
  /**
36
43
  * @typedef CreateStoreRulesParam
37
44
  * @property {ServiceabilityPlatformModel.CreateStoreRuleDetailsSchema} body
@@ -323,6 +330,15 @@ class ServiceabilityPlatformApplicationValidator {
323
330
  }).required();
324
331
  }
325
332
 
333
+ /** @returns {CreateShipmentsParam} */
334
+ static createShipments() {
335
+ return Joi.object({
336
+ xOrderingSource: Joi.string().allow(""),
337
+
338
+ body: ServiceabilityPlatformModel.PlatformShipmentsRequestSchema().required(),
339
+ }).required();
340
+ }
341
+
326
342
  /** @returns {CreateStoreRulesParam} */
327
343
  static createStoreRules() {
328
344
  return Joi.object({