@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.11

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 (150) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +1 -2
  3. package/application.js +2 -3
  4. package/index.d.ts +1 -2
  5. package/index.js +7 -1
  6. package/package.json +3 -4
  7. package/sdk/application/ApplicationClient.js +0 -18
  8. package/sdk/application/Cart/CartApplicationClient.d.ts +55 -90
  9. package/sdk/application/Cart/CartApplicationClient.js +60 -1185
  10. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +90 -142
  11. package/sdk/application/Catalog/CatalogApplicationClient.js +187 -1293
  12. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
  13. package/sdk/application/Common/CommonApplicationClient.js +5 -89
  14. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
  15. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
  17. package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -718
  18. package/sdk/application/Content/ContentApplicationClient.d.ts +46 -78
  19. package/sdk/application/Content/ContentApplicationClient.js +77 -914
  20. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -11
  21. package/sdk/application/FileStorage/FileStorageApplicationClient.js +19 -125
  22. package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
  23. package/sdk/application/Lead/LeadApplicationClient.js +32 -202
  24. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -39
  25. package/sdk/application/Logistic/LogisticApplicationClient.js +50 -478
  26. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -42
  27. package/sdk/application/Order/OrderApplicationClient.js +86 -472
  28. package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -212
  29. package/sdk/application/Payment/PaymentApplicationClient.js +57 -2102
  30. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -28
  31. package/sdk/application/Rewards/RewardsApplicationClient.js +16 -305
  32. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
  33. package/sdk/application/Share/ShareApplicationClient.js +34 -294
  34. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
  35. package/sdk/application/Theme/ThemeApplicationClient.js +28 -162
  36. package/sdk/application/User/UserApplicationClient.d.ts +85 -136
  37. package/sdk/application/User/UserApplicationClient.js +45 -1815
  38. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +2 -5
  39. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -47
  40. package/sdk/application/index.d.ts +0 -18
  41. package/sdk/application/index.js +0 -33
  42. package/sdk/common/Utility.d.ts +1 -1
  43. package/sdk/common/Utility.js +10 -7
  44. package/sdk/common/Validator.d.ts +1 -0
  45. package/sdk/common/Validator.js +20 -0
  46. package/sdk/common/utils.d.ts +0 -1
  47. package/sdk/common/utils.js +0 -14
  48. package/sdk/partner/OAuthClient.js +1 -0
  49. package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -40
  50. package/sdk/partner/Theme/ThemePartnerModel.js +2 -24
  51. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +39 -1
  52. package/sdk/platform/Cart/CartPlatformApplicationClient.js +247 -1
  53. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +33 -1
  54. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +37 -0
  55. package/sdk/platform/Cart/CartPlatformModel.d.ts +193 -1
  56. package/sdk/platform/Cart/CartPlatformModel.js +132 -0
  57. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +0 -7
  58. package/sdk/platform/Catalog/CatalogPlatformModel.js +1 -4
  59. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +14 -0
  60. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +6 -0
  61. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  62. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  63. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  64. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  65. package/sdk/platform/Order/OrderPlatformClient.d.ts +10 -0
  66. package/sdk/platform/Order/OrderPlatformClient.js +99 -0
  67. package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
  68. package/sdk/platform/Order/OrderPlatformModel.js +3 -0
  69. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  70. package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
  71. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +1 -1
  72. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +4 -4
  73. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +56 -19
  74. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -18
  75. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +3 -3
  76. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
  77. package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -40
  78. package/sdk/platform/Theme/ThemePlatformModel.js +2 -24
  79. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -2
  80. package/sdk/public/Content/ContentPublicClient.d.ts +1 -1
  81. package/sdk/public/Content/ContentPublicClient.js +14 -2
  82. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  83. package/sdk/public/Partner/PartnerPublicClient.js +14 -2
  84. package/sdk/public/Webhook/WebhookPublicClient.js +5 -2
  85. package/sdk/application/Cart/CartApplicationModel.d.ts +0 -3994
  86. package/sdk/application/Cart/CartApplicationModel.js +0 -2497
  87. package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
  88. package/sdk/application/Cart/CartApplicationValidator.js +0 -530
  89. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
  90. package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
  91. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
  92. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
  93. package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
  94. package/sdk/application/Common/CommonApplicationModel.js +0 -308
  95. package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
  96. package/sdk/application/Common/CommonApplicationValidator.js +0 -38
  97. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
  98. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
  99. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
  100. package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
  101. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
  102. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
  103. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
  104. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
  105. package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
  106. package/sdk/application/Content/ContentApplicationModel.js +0 -1589
  107. package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
  108. package/sdk/application/Content/ContentApplicationValidator.js +0 -264
  109. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
  110. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
  111. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
  112. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
  113. package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
  114. package/sdk/application/Lead/LeadApplicationModel.js +0 -480
  115. package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
  116. package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
  117. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
  118. package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
  119. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
  120. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
  121. package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
  122. package/sdk/application/Order/OrderApplicationModel.js +0 -1471
  123. package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
  124. package/sdk/application/Order/OrderApplicationValidator.js +0 -197
  125. package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
  126. package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
  127. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
  128. package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
  129. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
  130. package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
  131. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
  132. package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
  133. package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
  134. package/sdk/application/Share/ShareApplicationModel.js +0 -234
  135. package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
  136. package/sdk/application/Share/ShareApplicationValidator.js +0 -91
  137. package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
  138. package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
  139. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
  140. package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
  141. package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
  142. package/sdk/application/User/UserApplicationModel.js +0 -1382
  143. package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
  144. package/sdk/application/User/UserApplicationValidator.js +0 -573
  145. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
  146. package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
  147. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
  148. package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
  149. package/sdk/common/Clickstream.d.ts +0 -1
  150. package/sdk/common/Clickstream.js +0 -464
@@ -155,11 +155,25 @@ const Joi = require("joi");
155
155
  * @property {string[]} tags
156
156
  */
157
157
 
158
+ /**
159
+ * @typedef ZoneMappingDetailType
160
+ * @property {string} country - Uid for the country.
161
+ * @property {ZoneMappingRegions[]} [regions] - List of regions with its details.
162
+ */
163
+
158
164
  /**
159
165
  * @typedef ZoneMappingType
160
166
  * @property {string} country
161
- * @property {string[]} [pincode]
162
- * @property {string[]} [state]
167
+ * @property {string[]} regions
168
+ */
169
+
170
+ /**
171
+ * @typedef ZoneMappingRegions
172
+ * @property {string} [display_name] - Name of the region that is in proper casing.
173
+ * @property {string[]} [parent_id]
174
+ * @property {string} [parent_uid] - Unique identifier for that regions parent.
175
+ * @property {string} [sub_type] - What type does the region belong to.
176
+ * @property {string} [uid] - Unique identifier for that region.
163
177
  */
164
178
 
165
179
  /**
@@ -174,7 +188,6 @@ const Joi = require("joi");
174
188
  * @property {number[]} store_ids
175
189
  * @property {string} region_type
176
190
  * @property {ZoneMappingType[]} mapping
177
- * @property {string} [assignment_preference]
178
191
  */
179
192
 
180
193
  /**
@@ -201,7 +214,6 @@ const Joi = require("joi");
201
214
  * @property {number[]} store_ids
202
215
  * @property {string} [region_type]
203
216
  * @property {ZoneMappingType[]} mapping
204
- * @property {string} [assignment_preference]
205
217
  * @property {number} stores_count
206
218
  */
207
219
 
@@ -221,9 +233,7 @@ const Joi = require("joi");
221
233
  * @property {ZoneProductTypes} product
222
234
  * @property {number[]} store_ids
223
235
  * @property {string} region_type
224
- * @property {ZoneMappingType[]} mapping
225
- * @property {string} [assignment_preference]
226
- * @property {number} stores_count
236
+ * @property {ZoneMappingDetailType[]} mapping - Country to region mapping for the zone.
227
237
  */
228
238
 
229
239
  /**
@@ -234,9 +244,9 @@ const Joi = require("joi");
234
244
  * @property {boolean} is_active
235
245
  * @property {GetZoneDataViewChannels[]} channels
236
246
  * @property {number[]} store_ids
247
+ * @property {ZoneProductTypes} product
237
248
  * @property {string} region_type
238
249
  * @property {ZoneMappingType[]} mapping
239
- * @property {string} [assignment_preference]
240
250
  */
241
251
 
242
252
  /**
@@ -261,7 +271,6 @@ const Joi = require("joi");
261
271
  * @property {string} slug
262
272
  * @property {boolean} is_active
263
273
  * @property {number[]} store_ids
264
- * @property {string} assignment_preference
265
274
  */
266
275
 
267
276
  /**
@@ -1365,12 +1374,32 @@ class ServiceabilityPlatformModel {
1365
1374
  });
1366
1375
  }
1367
1376
 
1377
+ /** @returns {ZoneMappingDetailType} */
1378
+ static ZoneMappingDetailType() {
1379
+ return Joi.object({
1380
+ country: Joi.string().allow("").required(),
1381
+ regions: Joi.array().items(
1382
+ ServiceabilityPlatformModel.ZoneMappingRegions()
1383
+ ),
1384
+ });
1385
+ }
1386
+
1368
1387
  /** @returns {ZoneMappingType} */
1369
1388
  static ZoneMappingType() {
1370
1389
  return Joi.object({
1371
1390
  country: Joi.string().allow("").required(),
1372
- pincode: Joi.array().items(Joi.string().allow("")),
1373
- state: Joi.array().items(Joi.string().allow("")),
1391
+ regions: Joi.array().items(Joi.string().allow("")).required(),
1392
+ });
1393
+ }
1394
+
1395
+ /** @returns {ZoneMappingRegions} */
1396
+ static ZoneMappingRegions() {
1397
+ return Joi.object({
1398
+ display_name: Joi.string().allow(""),
1399
+ parent_id: Joi.array().items(Joi.string().allow("")),
1400
+ parent_uid: Joi.string().allow(""),
1401
+ sub_type: Joi.string().allow(""),
1402
+ uid: Joi.string().allow(""),
1374
1403
  });
1375
1404
  }
1376
1405
 
@@ -1391,7 +1420,6 @@ class ServiceabilityPlatformModel {
1391
1420
  mapping: Joi.array()
1392
1421
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1393
1422
  .required(),
1394
- assignment_preference: Joi.string().allow(""),
1395
1423
  });
1396
1424
  }
1397
1425
 
@@ -1428,7 +1456,6 @@ class ServiceabilityPlatformModel {
1428
1456
  mapping: Joi.array()
1429
1457
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1430
1458
  .required(),
1431
- assignment_preference: Joi.string().allow(""),
1432
1459
  stores_count: Joi.number().required(),
1433
1460
  });
1434
1461
  }
@@ -1455,10 +1482,8 @@ class ServiceabilityPlatformModel {
1455
1482
  store_ids: Joi.array().items(Joi.number()).required(),
1456
1483
  region_type: Joi.string().allow("").required(),
1457
1484
  mapping: Joi.array()
1458
- .items(ServiceabilityPlatformModel.ZoneMappingType())
1485
+ .items(ServiceabilityPlatformModel.ZoneMappingDetailType())
1459
1486
  .required(),
1460
- assignment_preference: Joi.string().allow(""),
1461
- stores_count: Joi.number().required(),
1462
1487
  });
1463
1488
  }
1464
1489
 
@@ -1473,11 +1498,11 @@ class ServiceabilityPlatformModel {
1473
1498
  .items(ServiceabilityPlatformModel.GetZoneDataViewChannels())
1474
1499
  .required(),
1475
1500
  store_ids: Joi.array().items(Joi.number()).required(),
1501
+ product: ServiceabilityPlatformModel.ZoneProductTypes().required(),
1476
1502
  region_type: Joi.string().allow("").required(),
1477
1503
  mapping: Joi.array()
1478
1504
  .items(ServiceabilityPlatformModel.ZoneMappingType())
1479
1505
  .required(),
1480
- assignment_preference: Joi.string().allow(""),
1481
1506
  });
1482
1507
  }
1483
1508
 
@@ -1508,7 +1533,6 @@ class ServiceabilityPlatformModel {
1508
1533
  slug: Joi.string().allow("").required(),
1509
1534
  is_active: Joi.boolean().required(),
1510
1535
  store_ids: Joi.array().items(Joi.number()).required(),
1511
- assignment_preference: Joi.string().allow("").required(),
1512
1536
  });
1513
1537
  }
1514
1538
 
@@ -112,7 +112,7 @@ export = ServiceabilityPlatformValidator;
112
112
  * @property {number} [pageNo] - Index of the item to start returning with
113
113
  * @property {number} [pageSize] - Determines the items to be displayed in a page
114
114
  * @property {boolean} [isActive] - Status of Zone (either active or inactive)
115
- * @property {string} [channelId] - Zones filtered by an application
115
+ * @property {string} [applicationIds] - Zones filtered by applications
116
116
  * @property {string} [q] - Search with name as a free text
117
117
  * @property {string} [countryIsoCode] - ISO2 code of the country
118
118
  * @property {string} [state] - State name
@@ -451,9 +451,9 @@ type GetZonesParam = {
451
451
  */
452
452
  isActive?: boolean;
453
453
  /**
454
- * - Zones filtered by an application
454
+ * - Zones filtered by applications
455
455
  */
456
- channelId?: string;
456
+ applicationIds?: string;
457
457
  /**
458
458
  * - Search with name as a free text
459
459
  */
@@ -134,7 +134,7 @@ const ServiceabilityPlatformModel = require("./ServiceabilityPlatformModel");
134
134
  * @property {number} [pageNo] - Index of the item to start returning with
135
135
  * @property {number} [pageSize] - Determines the items to be displayed in a page
136
136
  * @property {boolean} [isActive] - Status of Zone (either active or inactive)
137
- * @property {string} [channelId] - Zones filtered by an application
137
+ * @property {string} [applicationIds] - Zones filtered by applications
138
138
  * @property {string} [q] - Search with name as a free text
139
139
  * @property {string} [countryIsoCode] - ISO2 code of the country
140
140
  * @property {string} [state] - State name
@@ -354,7 +354,7 @@ class ServiceabilityPlatformValidator {
354
354
  pageNo: Joi.number(),
355
355
  pageSize: Joi.number(),
356
356
  isActive: Joi.boolean(),
357
- channelId: Joi.string().allow(""),
357
+ applicationIds: Joi.string().allow(""),
358
358
  q: Joi.string().allow(""),
359
359
  countryIsoCode: Joi.string().allow(""),
360
360
  state: Joi.string().allow(""),
@@ -379,16 +379,7 @@ export = ThemePlatformModel;
379
379
  */
380
380
  /**
381
381
  * @typedef GlobalSchema
382
- * @property {Prop[]} [props]
383
- */
384
- /**
385
- * @typedef Prop
386
- * @property {string} [type] - The type of the property
387
- * @property {string} [category] - The category of the property
388
- * @property {string} [value] - The value of the property
389
- * @property {string} [id] - The ID of the property
390
- * @property {string} [label] - The label of the property
391
- * @property {string} [info] - Additional information about the property
382
+ * @property {Object[]} [props]
392
383
  */
393
384
  /**
394
385
  * @typedef Assets
@@ -590,7 +581,7 @@ export = ThemePlatformModel;
590
581
  declare class ThemePlatformModel {
591
582
  }
592
583
  declare namespace ThemePlatformModel {
593
- export { GetExtensionSectionRes, ExtensionSection, PropExtension, AssetsExtension, ThemeReq, CompanyThemeSchema, MarketplaceThemeId, CompanyThemeMeta, ThemePayment, ThemeImages, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AllAvailablePageSchema, AddThemeRequestSchema, FontsSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, FontsSchemaItems, FontsSchemaItemsFiles, ThemesSchema, ThemeUpgradableResponse, UpdateThemeNameRequestBody, UpdateThemeRequestBody, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, ThemeMeta, Release, Images, CustomProps, GlobalSchema, Prop, Assets, UMDJs, CommonJS, CSS, SectionItem, Preset, Page, Section, Block, Predicate, Screen, ThemeUserSchema, Route, SectionProps, SectionPreset, BlockProps, TextProp, CheckboxProp, RangeProp, ImagePickerProp, UrlProp, ThemeVersions, DummyResponse, AppliedThemes, CompanyPrivateTheme, ActionPage, PageType };
584
+ export { GetExtensionSectionRes, ExtensionSection, PropExtension, AssetsExtension, ThemeReq, CompanyThemeSchema, MarketplaceThemeId, CompanyThemeMeta, ThemePayment, ThemeImages, AvailablePageSchema, AvailablePageSectionMetaAttributes, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSeo, AvailablePageSchemaSections, AvailablePagePredicate, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AllAvailablePageSchema, AddThemeRequestSchema, FontsSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, FontsSchemaItems, FontsSchemaItemsFiles, ThemesSchema, ThemeUpgradableResponse, UpdateThemeNameRequestBody, UpdateThemeRequestBody, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, ThemeMeta, Release, Images, CustomProps, GlobalSchema, Assets, UMDJs, CommonJS, CSS, SectionItem, Preset, Page, Section, Block, Predicate, Screen, ThemeUserSchema, Route, SectionProps, SectionPreset, BlockProps, TextProp, CheckboxProp, RangeProp, ImagePickerProp, UrlProp, ThemeVersions, DummyResponse, AppliedThemes, CompanyPrivateTheme, ActionPage, PageType };
594
585
  }
595
586
  /** @returns {GetExtensionSectionRes} */
596
587
  declare function GetExtensionSectionRes(): GetExtensionSectionRes;
@@ -1286,35 +1277,7 @@ type CustomProps = {
1286
1277
  /** @returns {GlobalSchema} */
1287
1278
  declare function GlobalSchema(): GlobalSchema;
1288
1279
  type GlobalSchema = {
1289
- props?: Prop[];
1290
- };
1291
- /** @returns {Prop} */
1292
- declare function Prop(): Prop;
1293
- type Prop = {
1294
- /**
1295
- * - The type of the property
1296
- */
1297
- type?: string;
1298
- /**
1299
- * - The category of the property
1300
- */
1301
- category?: string;
1302
- /**
1303
- * - The value of the property
1304
- */
1305
- value?: string;
1306
- /**
1307
- * - The ID of the property
1308
- */
1309
- id?: string;
1310
- /**
1311
- * - The label of the property
1312
- */
1313
- label?: string;
1314
- /**
1315
- * - Additional information about the property
1316
- */
1317
- info?: string;
1280
+ props?: any[];
1318
1281
  };
1319
1282
  /** @returns {Assets} */
1320
1283
  declare function Assets(): Assets;
@@ -432,17 +432,7 @@ const Joi = require("joi");
432
432
 
433
433
  /**
434
434
  * @typedef GlobalSchema
435
- * @property {Prop[]} [props]
436
- */
437
-
438
- /**
439
- * @typedef Prop
440
- * @property {string} [type] - The type of the property
441
- * @property {string} [category] - The category of the property
442
- * @property {string} [value] - The value of the property
443
- * @property {string} [id] - The ID of the property
444
- * @property {string} [label] - The label of the property
445
- * @property {string} [info] - Additional information about the property
435
+ * @property {Object[]} [props]
446
436
  */
447
437
 
448
438
  /**
@@ -1206,19 +1196,7 @@ class ThemePlatformModel {
1206
1196
  /** @returns {GlobalSchema} */
1207
1197
  static GlobalSchema() {
1208
1198
  return Joi.object({
1209
- props: Joi.array().items(ThemePlatformModel.Prop()),
1210
- });
1211
- }
1212
-
1213
- /** @returns {Prop} */
1214
- static Prop() {
1215
- return Joi.object({
1216
- type: Joi.string().allow(""),
1217
- category: Joi.string().allow(""),
1218
- value: Joi.string().allow(""),
1219
- id: Joi.string().allow(""),
1220
- label: Joi.string().allow(""),
1221
- info: Joi.string().allow(""),
1199
+ props: Joi.array().items(Joi.any()),
1222
1200
  });
1223
1201
  }
1224
1202
 
@@ -1,14 +1,17 @@
1
- const PublicAPIClient = require("../PublicAPIClient");
2
1
  const {
3
2
  FDKClientValidationError,
4
3
  FDKResponseValidationError,
5
4
  } = require("../../common/FDKError");
5
+
6
+ const PublicAPIClient = require("../PublicAPIClient");
6
7
  const constructUrl = require("../constructUrl");
7
8
  const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
10
+
8
11
  const ConfigurationPublicValidator = require("./ConfigurationPublicValidator");
9
12
  const ConfigurationPublicModel = require("./ConfigurationPublicModel");
10
- const { Logger } = require("./../../common/Logger");
11
13
  const Joi = require("joi");
14
+ const { Logger } = require("./../../common/Logger");
12
15
 
13
16
  class Configuration {
14
17
  constructor(_conf) {
@@ -16,7 +16,7 @@ declare class Content {
16
16
  * @summary: Get credentials to power chat support systems
17
17
  * @description: Get credentials for support system - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getCredentialsByEntity/).
18
18
  */
19
- getCredentialsByEntity({ entity, requestHeaders }?: ContentPublicValidator.GetCredentialsByEntityParam, { responseHeaders }?: object): Promise<ContentPublicModel.CredentialsSchema>;
19
+ getCredentialsByEntity({ entity, requestHeaders }?: ContentPublicValidator.GetCredentialsByEntityParam, { responseHeaders }?: object, ...args: any[]): Promise<ContentPublicModel.CredentialsSchema>;
20
20
  }
21
21
  import ContentPublicValidator = require("./ContentPublicValidator");
22
22
  import ContentPublicModel = require("./ContentPublicModel");
@@ -1,14 +1,17 @@
1
- const PublicAPIClient = require("../PublicAPIClient");
2
1
  const {
3
2
  FDKClientValidationError,
4
3
  FDKResponseValidationError,
5
4
  } = require("../../common/FDKError");
5
+
6
+ const PublicAPIClient = require("../PublicAPIClient");
6
7
  const constructUrl = require("../constructUrl");
7
8
  const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
10
+
8
11
  const ContentPublicValidator = require("./ContentPublicValidator");
9
12
  const ContentPublicModel = require("./ContentPublicModel");
10
- const { Logger } = require("./../../common/Logger");
11
13
  const Joi = require("joi");
14
+ const { Logger } = require("./../../common/Logger");
12
15
 
13
16
  class Content {
14
17
  constructor(_conf) {
@@ -45,6 +48,15 @@ class Content {
45
48
  { entity, requestHeaders } = { requestHeaders: {} },
46
49
  { responseHeaders } = { responseHeaders: false }
47
50
  ) {
51
+ const errors = validateRequiredParams(arguments[0], ["entity"]);
52
+ if (errors.length > 0) {
53
+ const error = new FDKClientValidationError({
54
+ message: "Missing required field",
55
+ details: errors,
56
+ });
57
+ return Promise.reject(new FDKClientValidationError(error));
58
+ }
59
+
48
60
  const { error } = ContentPublicValidator.getCredentialsByEntity().validate(
49
61
  { entity },
50
62
  { abortEarly: false, allowUnknown: true }
@@ -16,7 +16,7 @@ declare class Partner {
16
16
  * @summary: Get panel extension details
17
17
  * @description: Retrieve detailed information about panel extensions in the public server setup. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/partner/getPanelExtensionDetails/).
18
18
  */
19
- getPanelExtensionDetails({ slug, requestHeaders }?: PartnerPublicValidator.GetPanelExtensionDetailsParam, { responseHeaders }?: object): Promise<PartnerPublicModel.ExtensionUsingSlug>;
19
+ getPanelExtensionDetails({ slug, requestHeaders }?: PartnerPublicValidator.GetPanelExtensionDetailsParam, { responseHeaders }?: object, ...args: any[]): Promise<PartnerPublicModel.ExtensionUsingSlug>;
20
20
  }
21
21
  import PartnerPublicValidator = require("./PartnerPublicValidator");
22
22
  import PartnerPublicModel = require("./PartnerPublicModel");
@@ -1,14 +1,17 @@
1
- const PublicAPIClient = require("../PublicAPIClient");
2
1
  const {
3
2
  FDKClientValidationError,
4
3
  FDKResponseValidationError,
5
4
  } = require("../../common/FDKError");
5
+
6
+ const PublicAPIClient = require("../PublicAPIClient");
6
7
  const constructUrl = require("../constructUrl");
7
8
  const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
10
+
8
11
  const PartnerPublicValidator = require("./PartnerPublicValidator");
9
12
  const PartnerPublicModel = require("./PartnerPublicModel");
10
- const { Logger } = require("./../../common/Logger");
11
13
  const Joi = require("joi");
14
+ const { Logger } = require("./../../common/Logger");
12
15
 
13
16
  class Partner {
14
17
  constructor(_conf) {
@@ -46,6 +49,15 @@ class Partner {
46
49
  { slug, requestHeaders } = { requestHeaders: {} },
47
50
  { responseHeaders } = { responseHeaders: false }
48
51
  ) {
52
+ const errors = validateRequiredParams(arguments[0], ["slug"]);
53
+ if (errors.length > 0) {
54
+ const error = new FDKClientValidationError({
55
+ message: "Missing required field",
56
+ details: errors,
57
+ });
58
+ return Promise.reject(new FDKClientValidationError(error));
59
+ }
60
+
49
61
  const {
50
62
  error,
51
63
  } = PartnerPublicValidator.getPanelExtensionDetails().validate(
@@ -1,14 +1,17 @@
1
- const PublicAPIClient = require("../PublicAPIClient");
2
1
  const {
3
2
  FDKClientValidationError,
4
3
  FDKResponseValidationError,
5
4
  } = require("../../common/FDKError");
5
+
6
+ const PublicAPIClient = require("../PublicAPIClient");
6
7
  const constructUrl = require("../constructUrl");
7
8
  const Paginator = require("../../common/Paginator");
9
+ const { validateRequiredParams } = require("../../common/Validator");
10
+
8
11
  const WebhookPublicValidator = require("./WebhookPublicValidator");
9
12
  const WebhookPublicModel = require("./WebhookPublicModel");
10
- const { Logger } = require("./../../common/Logger");
11
13
  const Joi = require("joi");
14
+ const { Logger } = require("./../../common/Logger");
12
15
 
13
16
  class Webhook {
14
17
  constructor(_conf) {