@gofynd/fdk-client-javascript 1.4.15 → 1.4.16-beta.2

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 (95) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +16 -16
  4. package/sdk/application/Cart/CartApplicationClient.js +101 -48
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +16 -16
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +159 -0
  7. package/sdk/application/Common/CommonApplicationClient.js +6 -0
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -0
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +2 -2
  10. package/sdk/application/Configuration/ConfigurationApplicationClient.js +24 -0
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +59 -7
  12. package/sdk/application/Content/ContentApplicationClient.js +290 -0
  13. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  14. package/sdk/application/FileStorage/FileStorageApplicationClient.js +24 -0
  15. package/sdk/application/Finance/FinanceApplicationClient.js +6 -0
  16. package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
  17. package/sdk/application/Lead/LeadApplicationClient.js +42 -0
  18. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +6 -6
  19. package/sdk/application/Logistic/LogisticApplicationClient.js +69 -2
  20. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
  21. package/sdk/application/Order/OrderApplicationClient.js +117 -0
  22. package/sdk/application/Payment/PaymentApplicationClient.d.ts +1 -11
  23. package/sdk/application/Payment/PaymentApplicationClient.js +15 -39
  24. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
  25. package/sdk/application/Rewards/RewardsApplicationClient.js +15 -0
  26. package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
  27. package/sdk/application/Share/ShareApplicationClient.js +42 -0
  28. package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
  29. package/sdk/application/Theme/ThemeApplicationClient.js +36 -0
  30. package/sdk/application/User/UserApplicationClient.js +6 -0
  31. package/sdk/application/Webhook/WebhookApplicationClient.js +6 -0
  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/Logistics/LogisticsPartnerClient.d.ts +12 -33
  37. package/sdk/partner/Logistics/LogisticsPartnerClient.js +38 -209
  38. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +19 -399
  39. package/sdk/partner/Logistics/LogisticsPartnerModel.js +11 -212
  40. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -3
  41. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -22
  42. package/sdk/partner/OAuthClient.js +1 -0
  43. package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
  44. package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
  45. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
  46. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  47. package/sdk/platform/Cart/CartPlatformApplicationClient.js +12 -3
  48. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -1
  49. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -1
  50. package/sdk/platform/Cart/CartPlatformModel.d.ts +49 -28
  51. package/sdk/platform/Cart/CartPlatformModel.js +23 -13
  52. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +0 -24
  53. package/sdk/platform/Catalog/CatalogPlatformClient.js +0 -176
  54. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +33 -80
  55. package/sdk/platform/Catalog/CatalogPlatformModel.js +36 -72
  56. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -45
  57. package/sdk/platform/Catalog/CatalogPlatformValidator.js +0 -35
  58. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +7 -0
  59. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +3 -0
  60. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +132 -0
  61. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1104 -122
  62. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +159 -1
  63. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +161 -0
  64. package/sdk/platform/Content/ContentPlatformModel.d.ts +220 -5
  65. package/sdk/platform/Content/ContentPlatformModel.js +214 -4
  66. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  67. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  68. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  69. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  70. package/sdk/platform/Order/OrderPlatformClient.d.ts +12 -2
  71. package/sdk/platform/Order/OrderPlatformClient.js +99 -8
  72. package/sdk/platform/Order/OrderPlatformModel.d.ts +3 -75
  73. package/sdk/platform/Order/OrderPlatformModel.js +2 -43
  74. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -23
  75. package/sdk/platform/Order/OrderPlatformValidator.js +20 -10
  76. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -95
  77. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +78 -701
  78. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +23 -598
  79. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +20 -382
  80. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -136
  81. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -110
  82. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +3 -3
  83. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  84. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
  85. package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
  86. package/sdk/platform/Share/SharePlatformModel.d.ts +10 -2
  87. package/sdk/platform/Share/SharePlatformModel.js +4 -2
  88. package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
  89. package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
  90. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -0
  91. package/sdk/public/Content/ContentPublicClient.d.ts +3 -3
  92. package/sdk/public/Content/ContentPublicClient.js +28 -0
  93. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  94. package/sdk/public/Partner/PartnerPublicClient.js +10 -0
  95. package/sdk/public/Webhook/WebhookPublicClient.js +1 -0
@@ -70,6 +70,15 @@ const OrderPlatformModel = require("./OrderPlatformModel");
70
70
  * @property {string} logId - Log Error ID
71
71
  */
72
72
 
73
+ /**
74
+ * @typedef FailedOrderLogsParam
75
+ * @property {string} [applicationId] - Application ID
76
+ * @property {number} [pageNo] - Page Number
77
+ * @property {number} [pageSize] - Page Size
78
+ * @property {string} [searchType] - Search type for filter
79
+ * @property {string} [searchValue] - Search value for filter
80
+ */
81
+
73
82
  /**
74
83
  * @typedef FetchRefundModeConfigParam
75
84
  * @property {OrderPlatformModel.RefundModeConfigRequestPayload} body
@@ -292,10 +301,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
292
301
  * @property {boolean} [enforceDateFilter] - Applies a date filter for listing
293
302
  * orders. This is useful when fetching data for a specific date range while
294
303
  * performing searches.
295
- * @property {string} [fulfillmentType] - Define the Fulfillment Type for
296
- * Listing Orders, This is use when we want to get list of shipments or orders
297
- * by cross store or cross company or fulfilling Store (by default), this is
298
- * also depends on the login user accessType and store access
299
304
  */
300
305
 
301
306
  /** @typedef GetRoleBasedActionsParam */
@@ -388,10 +393,6 @@ const OrderPlatformModel = require("./OrderPlatformModel");
388
393
  * @property {boolean} [enforceDateFilter] - Applies a date filter for listing
389
394
  * shipments. This is useful when fetching data for a specific date range
390
395
  * while performing searches.
391
- * @property {string} [fulfillmentType] - Define the Fulfillment Type for
392
- * Listing Orders, This is use when we want to get list of shipments or orders
393
- * by cross store or cross company or fulfilling Store (by default), this is
394
- * also depends on the login user accessType and store access
395
396
  */
396
397
 
397
398
  /**
@@ -590,6 +591,17 @@ class OrderPlatformValidator {
590
591
  }).required();
591
592
  }
592
593
 
594
+ /** @returns {FailedOrderLogsParam} */
595
+ static failedOrderLogs() {
596
+ return Joi.object({
597
+ applicationId: Joi.string().allow(""),
598
+ pageNo: Joi.number(),
599
+ pageSize: Joi.number(),
600
+ searchType: Joi.string().allow(""),
601
+ searchValue: Joi.string().allow(""),
602
+ }).required();
603
+ }
604
+
593
605
  /** @returns {FetchRefundModeConfigParam} */
594
606
  static fetchRefundModeConfig() {
595
607
  return Joi.object({
@@ -815,7 +827,6 @@ class OrderPlatformValidator {
815
827
  allowInactive: Joi.boolean(),
816
828
  groupEntity: Joi.string().allow(""),
817
829
  enforceDateFilter: Joi.boolean(),
818
- fulfillmentType: Joi.string().allow(""),
819
830
  }).required();
820
831
  }
821
832
 
@@ -887,7 +898,6 @@ class OrderPlatformValidator {
887
898
  orderType: Joi.string().allow(""),
888
899
  groupEntity: Joi.string().allow(""),
889
900
  enforceDateFilter: Joi.boolean(),
890
- fulfillmentType: Joi.string().allow(""),
891
901
  }).required();
892
902
  }
893
903
 
@@ -39,20 +39,6 @@ declare class Serviceability {
39
39
  * @description: Creates a courier partner account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerAccount/).
40
40
  */
41
41
  createCourierPartnerAccount({ body, requestHeaders }?: ServiceabilityPlatformValidator.CreateCourierPartnerAccountParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CourierAccount>;
42
- /**
43
- * @param {ServiceabilityPlatformValidator.CreateCourierPartnerSchemeParam} arg
44
- * - Arg object
45
- *
46
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
47
- * @param {import("../PlatformAPIClient").Options} - Options
48
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
49
- * - Success response
50
- *
51
- * @name createCourierPartnerScheme
52
- * @summary: Create Scheme for courier partner extension
53
- * @description: Create Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerScheme/).
54
- */
55
- createCourierPartnerScheme({ body, requestHeaders }?: ServiceabilityPlatformValidator.CreateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>;
56
42
  /**
57
43
  * @param {ServiceabilityPlatformValidator.CreatePackageMaterialParam} arg
58
44
  * - Arg object
@@ -134,16 +120,6 @@ declare class Serviceability {
134
120
  * @description: Retrieves information about the delivery setup for a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCompanyConfiguration/).
135
121
  */
136
122
  getCompanyConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CompanyConfig>;
137
- /**
138
- * @param {ServiceabilityPlatformValidator.GetCountriesParam} arg - Arg object
139
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
140
- * @param {import("../PlatformAPIClient").Options} - Options
141
- * @returns {Promise<ServiceabilityPlatformModel.GetCountries>} - Success response
142
- * @name getCountries
143
- * @summary: Get countries
144
- * @description: Retrieve a list of countries for logistical purposes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCountries/).
145
- */
146
- getCountries({ onboarding, pageNo, pageSize, q, hierarchy, requestHeaders }?: ServiceabilityPlatformValidator.GetCountriesParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.GetCountries>;
147
123
  /**
148
124
  * @param {ServiceabilityPlatformValidator.GetCourierPartnerAccountParam} arg
149
125
  * - Arg object
@@ -171,34 +147,6 @@ declare class Serviceability {
171
147
  * @description: Retrieves a list of courier partner accounts. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerAccounts/).
172
148
  */
173
149
  getCourierPartnerAccounts({ pageNo, pageSize, stage, paymentMode, transportType, requestHeaders }?: ServiceabilityPlatformValidator.GetCourierPartnerAccountsParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CompanyCourierPartnerAccountListResult>;
174
- /**
175
- * @param {ServiceabilityPlatformValidator.GetCourierPartnerSchemeParam} arg
176
- * - Arg object
177
- *
178
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
179
- * @param {import("../PlatformAPIClient").Options} - Options
180
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
181
- * - Success response
182
- *
183
- * @name getCourierPartnerScheme
184
- * @summary: Get Scheme for courier partner extension by Id
185
- * @description: Update Scheme for courier partner extension by Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerScheme/).
186
- */
187
- getCourierPartnerScheme({ schemeId, requestHeaders }?: ServiceabilityPlatformValidator.GetCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>;
188
- /**
189
- * @param {ServiceabilityPlatformValidator.GetCourierPartnerSchemesParam} arg
190
- * - Arg object
191
- *
192
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
193
- * @param {import("../PlatformAPIClient").Options} - Options
194
- * @returns {Promise<ServiceabilityPlatformModel.courierPartnerSchemeV2List>}
195
- * - Success response
196
- *
197
- * @name getCourierPartnerSchemes
198
- * @summary: Get created Schemes for courier partner
199
- * @description: Get created Schemes for courier partner - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerSchemes/).
200
- */
201
- getCourierPartnerSchemes({ schemeType, paymentMode, capabilities, schemeIds, requestHeaders }?: ServiceabilityPlatformValidator.GetCourierPartnerSchemesParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.courierPartnerSchemeV2List>;
202
150
  /**
203
151
  * @param {ServiceabilityPlatformValidator.GetOptimalLocationsParam} arg - Arg object
204
152
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -261,20 +209,6 @@ declare class Serviceability {
261
209
  * @description: Retrieve a single packaging material - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getPackageMaterials/).
262
210
  */
263
211
  getPackageMaterials({ packageMaterialId, requestHeaders }?: ServiceabilityPlatformValidator.GetPackageMaterialsParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.PackageMaterialResult>;
264
- /**
265
- * @param {ServiceabilityPlatformValidator.GetSampleFileServiceabilityStatusParam} arg
266
- * - Arg object
267
- *
268
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
269
- * @param {import("../PlatformAPIClient").Options} - Options
270
- * @returns {Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResult>}
271
- * - Success response
272
- *
273
- * @name getSampleFileServiceabilityStatus
274
- * @summary: Get Serviceability TAT sample files generator status
275
- * @description: Get Serviceability TAT sample file generator status - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getSampleFileServiceabilityStatus/).
276
- */
277
- getSampleFileServiceabilityStatus({ pageNo, pageSize, batchId, requestHeaders }?: ServiceabilityPlatformValidator.GetSampleFileServiceabilityStatusParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResult>;
278
212
  /**
279
213
  * @param {ServiceabilityPlatformValidator.GetServiceabilityParam} arg - Arg object
280
214
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -306,21 +240,7 @@ declare class Serviceability {
306
240
  * @summary: Get zones
307
241
  * @description: Retrieves a list of delivery zones. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZones/).
308
242
  */
309
- getZones({ pageNo, pageSize, isActive, channelId, q, countryIsoCode, state, city, pincode, sector, requestHeaders, }?: ServiceabilityPlatformValidator.GetZonesParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.ListViewResult>;
310
- /**
311
- * @param {ServiceabilityPlatformValidator.SampleFileServiceabilityParam} arg
312
- * - Arg object
313
- *
314
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
315
- * @param {import("../PlatformAPIClient").Options} - Options
316
- * @returns {Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResultItemData>}
317
- * - Success response
318
- *
319
- * @name sampleFileServiceability
320
- * @summary: Sample File Download
321
- * @description: Sample File Download - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/sampleFileServiceability/).
322
- */
323
- sampleFileServiceability({ body, requestHeaders }?: ServiceabilityPlatformValidator.SampleFileServiceabilityParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.BulkRegionServiceabilityTatResultItemData>;
243
+ getZones({ pageNo, pageSize, isActive, applicationId, q, countryIsoCode, state, city, pincode, sector, requestHeaders, }?: ServiceabilityPlatformValidator.GetZonesParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.ListViewResult>;
324
244
  /**
325
245
  * @param {ServiceabilityPlatformValidator.UpdateCompanyConfigurationParam} arg
326
246
  * - Arg object
@@ -346,20 +266,6 @@ declare class Serviceability {
346
266
  * @description: Updates an existing courier partner account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierPartnerAccount/).
347
267
  */
348
268
  updateCourierPartnerAccount({ accountId, body, requestHeaders }?: ServiceabilityPlatformValidator.UpdateCourierPartnerAccountParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CourierAccountResult>;
349
- /**
350
- * @param {ServiceabilityPlatformValidator.UpdateCourierPartnerSchemeParam} arg
351
- * - Arg object
352
- *
353
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
354
- * @param {import("../PlatformAPIClient").Options} - Options
355
- * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>}
356
- * - Success response
357
- *
358
- * @name updateCourierPartnerScheme
359
- * @summary: Update Scheme for courier partner extension
360
- * @description: Update Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierPartnerScheme/).
361
- */
362
- updateCourierPartnerScheme({ schemeId, body, requestHeaders }?: ServiceabilityPlatformValidator.UpdateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.CourierPartnerV2SchemeModel>;
363
269
  /**
364
270
  * @param {ServiceabilityPlatformValidator.UpdatePackageMaterialRuleParam} arg
365
271
  * - Arg object