@gofynd/fdk-client-javascript 3.22.0 → 3.24.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 (38) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +14 -14
  4. package/sdk/application/Cart/CartApplicationClient.js +124 -35
  5. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  6. package/sdk/application/Logistic/LogisticApplicationClient.js +4 -2
  7. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +17 -17
  8. package/sdk/platform/Cart/CartPlatformApplicationClient.js +84 -13
  9. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -0
  10. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +52 -0
  11. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +7 -2
  12. package/sdk/platform/Catalog/CatalogPlatformModel.js +5 -2
  13. package/sdk/platform/Common/CommonPlatformClient.js +1 -1
  14. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +96 -1
  15. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +61 -0
  16. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -12
  17. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -81
  18. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -10
  19. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -12
  20. package/sdk/platform/Order/OrderPlatformClient.d.ts +28 -0
  21. package/sdk/platform/Order/OrderPlatformClient.js +179 -3
  22. package/sdk/platform/Order/OrderPlatformModel.d.ts +155 -6
  23. package/sdk/platform/Order/OrderPlatformModel.js +105 -3
  24. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  25. package/sdk/platform/Order/OrderPlatformValidator.js +30 -0
  26. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +94 -0
  27. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +574 -0
  28. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +70 -1
  29. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +81 -0
  30. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +14 -0
  31. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +85 -0
  32. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1382 -187
  33. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +955 -155
  34. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +10 -1
  35. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +12 -0
  36. package/sdk/platform/User/UserPlatformModel.d.ts +14 -1
  37. package/sdk/platform/User/UserPlatformModel.js +16 -0
  38. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
@@ -61,6 +61,10 @@ export = ServiceabilityPlatformValidator;
61
61
  * @property {string} [endDate] - Fetch job history before a particule date
62
62
  */
63
63
  /** @typedef GetCompanyConfigurationParam */
64
+ /**
65
+ * @typedef GetCompanyCourierPartnersListParam
66
+ * @property {ServiceabilityPlatformModel.CourierPartnerDetails} body
67
+ */
64
68
  /**
65
69
  * @typedef GetCountriesParam
66
70
  * @property {boolean} [onboard] - Only fetch countries which allowed for
@@ -199,6 +203,8 @@ declare class ServiceabilityPlatformValidator {
199
203
  static getBulkTat(): GetBulkTatParam;
200
204
  /** @returns {GetCompanyConfigurationParam} */
201
205
  static getCompanyConfiguration(): any;
206
+ /** @returns {GetCompanyCourierPartnersListParam} */
207
+ static getCompanyCourierPartnersList(): GetCompanyCourierPartnersListParam;
202
208
  /** @returns {GetCountriesParam} */
203
209
  static getCountries(): GetCountriesParam;
204
210
  /** @returns {GetCourierPartnerAccountParam} */
@@ -239,7 +245,7 @@ declare class ServiceabilityPlatformValidator {
239
245
  static updateSelfShipDetails(): UpdateSelfShipDetailsParam;
240
246
  }
241
247
  declare namespace ServiceabilityPlatformValidator {
242
- export { BulkServiceabilityParam, BulkTatParam, CreateCourierPartnerAccountParam, CreateCourierPartnerSchemeParam, CreatePackageMaterialParam, CreatePackageMaterialRuleParam, GetBulkServiceabilityParam, GetBulkTatParam, GetCompanyConfigurationParam, GetCountriesParam, GetCourierPartnerAccountParam, GetCourierPartnerAccountsParam, GetCourierPartnerSchemeParam, GetCourierPartnerSchemesParam, GetInstalledCourierPartnerExtensionsParam, GetOptimalLocationsParam, GetPackageMaterialListParam, GetPackageMaterialRuleParam, GetPackageMaterialsParam, GetSampleFileServiceabilityStatusParam, GetSelfShipDetailsParam, SampleFileServiceabilityParam, UpdateCompanyConfigurationParam, UpdateCourierPartnerAccountParam, UpdateCourierPartnerSchemeParam, UpdatePackageMaterialRuleParam, UpdatePackageMaterialsParam, UpdateSelfShipDetailsParam };
248
+ export { BulkServiceabilityParam, BulkTatParam, CreateCourierPartnerAccountParam, CreateCourierPartnerSchemeParam, CreatePackageMaterialParam, CreatePackageMaterialRuleParam, GetBulkServiceabilityParam, GetBulkTatParam, GetCompanyConfigurationParam, GetCompanyCourierPartnersListParam, GetCountriesParam, GetCourierPartnerAccountParam, GetCourierPartnerAccountsParam, GetCourierPartnerSchemeParam, GetCourierPartnerSchemesParam, GetInstalledCourierPartnerExtensionsParam, GetOptimalLocationsParam, GetPackageMaterialListParam, GetPackageMaterialRuleParam, GetPackageMaterialsParam, GetSampleFileServiceabilityStatusParam, GetSelfShipDetailsParam, SampleFileServiceabilityParam, UpdateCompanyConfigurationParam, UpdateCourierPartnerAccountParam, UpdateCourierPartnerSchemeParam, UpdatePackageMaterialRuleParam, UpdatePackageMaterialsParam, UpdateSelfShipDetailsParam };
243
249
  }
244
250
  type BulkServiceabilityParam = {
245
251
  /**
@@ -375,6 +381,9 @@ type GetBulkTatParam = {
375
381
  */
376
382
  endDate?: string;
377
383
  };
384
+ type GetCompanyCourierPartnersListParam = {
385
+ body: ServiceabilityPlatformModel.CourierPartnerDetails;
386
+ };
378
387
  type GetCountriesParam = {
379
388
  /**
380
389
  * - Only fetch countries which allowed for
@@ -73,6 +73,11 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
73
73
 
74
74
  /** @typedef GetCompanyConfigurationParam */
75
75
 
76
+ /**
77
+ * @typedef GetCompanyCourierPartnersListParam
78
+ * @property {ServiceabilityPlatformModel.CourierPartnerDetails} body
79
+ */
80
+
76
81
  /**
77
82
  * @typedef GetCountriesParam
78
83
  * @property {boolean} [onboard] - Only fetch countries which allowed for
@@ -298,6 +303,13 @@ class ServiceabilityPlatformValidator {
298
303
  return Joi.object({}).required();
299
304
  }
300
305
 
306
+ /** @returns {GetCompanyCourierPartnersListParam} */
307
+ static getCompanyCourierPartnersList() {
308
+ return Joi.object({
309
+ body: ServiceabilityPlatformModel.CourierPartnerDetails().required(),
310
+ }).required();
311
+ }
312
+
301
313
  /** @returns {GetCountriesParam} */
302
314
  static getCountries() {
303
315
  return Joi.object({
@@ -538,6 +538,7 @@ export = UserPlatformModel;
538
538
  * @property {Facebook} [facebook]
539
539
  * @property {Accountkit} [account_kit]
540
540
  * @property {Google} [google]
541
+ * @property {Apple} [apple]
541
542
  */
542
543
  /**
543
544
  * @typedef DeleteAccountReasons
@@ -577,6 +578,11 @@ export = UserPlatformModel;
577
578
  * @property {string} [app_id]
578
579
  * @property {string} [app_secret]
579
580
  */
581
+ /**
582
+ * @typedef Apple
583
+ * @property {string} [app_id]
584
+ * @property {string} [redirect_uri]
585
+ */
580
586
  /**
581
587
  * @typedef SessionExpiry
582
588
  * @property {number} [duration]
@@ -722,7 +728,7 @@ export = UserPlatformModel;
722
728
  declare class UserPlatformModel {
723
729
  }
724
730
  declare namespace UserPlatformModel {
725
- export { SuccessMessage, UserAttributeDefinitionList, UserAttributeDefinitionsResponseSchema, UserAttributeDefinition, UserAttributeDefinitionDetails, AttributeMaskingProperties, AttributeRegistrationProperties, UserAttributeDefinitionValidation, BulkUserAttribute, UserAttribute, CreateBulkUserAttribute, BulkUserAttributeRequestBody, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, DeleteBulkUserAttribute, UserAttributeFilter, UserAttributeFilterQuery, UserAttributeFilterRequestConditions, UserAttributeFiltered, UserAttributeFilteredList, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email, UserConsent, DeleteUserGroupSuccess, PrivacyPolicyConsentSchema };
731
+ export { SuccessMessage, UserAttributeDefinitionList, UserAttributeDefinitionsResponseSchema, UserAttributeDefinition, UserAttributeDefinitionDetails, AttributeMaskingProperties, AttributeRegistrationProperties, UserAttributeDefinitionValidation, BulkUserAttribute, UserAttribute, CreateBulkUserAttribute, BulkUserAttributeRequestBody, CreateUserAttribute, CreateUserAttributeDefinition, CreateStoreFrontUsersPayload, BulkUserExportSchema, BulkActionModel, CreatedBySchema, BulkActionLinkSchema, FileLinks, BulkActionCountSchema, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, BulkActionPaginationSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, DeleteBulkUserAttribute, UserAttributeFilter, UserAttributeFilterQuery, UserAttributeFilterRequestConditions, UserAttributeFiltered, UserAttributeFilteredList, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, GetUserTimeline, UserTimeline, Facebook, Accountkit, Google, Apple, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email, UserConsent, DeleteUserGroupSuccess, PrivacyPolicyConsentSchema };
726
732
  }
727
733
  /** @returns {SuccessMessage} */
728
734
  declare function SuccessMessage(): SuccessMessage;
@@ -1702,6 +1708,7 @@ type SocialTokens = {
1702
1708
  facebook?: Facebook;
1703
1709
  account_kit?: Accountkit;
1704
1710
  google?: Google;
1711
+ apple?: Apple;
1705
1712
  };
1706
1713
  /** @returns {DeleteAccountReasons} */
1707
1714
  declare function DeleteAccountReasons(): DeleteAccountReasons;
@@ -1769,6 +1776,12 @@ type Google = {
1769
1776
  app_id?: string;
1770
1777
  app_secret?: string;
1771
1778
  };
1779
+ /** @returns {Apple} */
1780
+ declare function Apple(): Apple;
1781
+ type Apple = {
1782
+ app_id?: string;
1783
+ redirect_uri?: string;
1784
+ };
1772
1785
  /** @returns {SessionExpiry} */
1773
1786
  declare function SessionExpiry(): SessionExpiry;
1774
1787
  type SessionExpiry = {
@@ -603,6 +603,7 @@ const Joi = require("joi");
603
603
  * @property {Facebook} [facebook]
604
604
  * @property {Accountkit} [account_kit]
605
605
  * @property {Google} [google]
606
+ * @property {Apple} [apple]
606
607
  */
607
608
 
608
609
  /**
@@ -650,6 +651,12 @@ const Joi = require("joi");
650
651
  * @property {string} [app_secret]
651
652
  */
652
653
 
654
+ /**
655
+ * @typedef Apple
656
+ * @property {string} [app_id]
657
+ * @property {string} [redirect_uri]
658
+ */
659
+
653
660
  /**
654
661
  * @typedef SessionExpiry
655
662
  * @property {number} [duration]
@@ -1489,6 +1496,7 @@ class UserPlatformModel {
1489
1496
  facebook: UserPlatformModel.Facebook(),
1490
1497
  account_kit: UserPlatformModel.Accountkit(),
1491
1498
  google: UserPlatformModel.Google(),
1499
+ apple: UserPlatformModel.Apple(),
1492
1500
  });
1493
1501
  }
1494
1502
 
@@ -1551,6 +1559,14 @@ class UserPlatformModel {
1551
1559
  });
1552
1560
  }
1553
1561
 
1562
+ /** @returns {Apple} */
1563
+ static Apple() {
1564
+ return Joi.object({
1565
+ app_id: Joi.string().allow(""),
1566
+ redirect_uri: Joi.string().allow(""),
1567
+ });
1568
+ }
1569
+
1554
1570
  /** @returns {SessionExpiry} */
1555
1571
  static SessionExpiry() {
1556
1572
  return Joi.object({
@@ -157,7 +157,7 @@ class Configuration {
157
157
  query_params["query"] = query;
158
158
 
159
159
  const xHeaders = {};
160
- xHeaders["authorization"] = authorization;
160
+ if (authorization !== undefined) xHeaders["authorization"] = authorization;
161
161
 
162
162
  const response = await PublicAPIClient.execute(
163
163
  this._conf,