@gofynd/fdk-client-javascript 1.6.3 → 2.0.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 (146) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +5 -5
  4. package/sdk/application/Cart/CartApplicationClient.js +26 -268
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +20 -20
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +98 -347
  7. package/sdk/application/Common/CommonApplicationClient.js +1 -16
  8. package/sdk/application/Communication/CommunicationApplicationClient.js +1 -24
  9. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +24 -2
  10. package/sdk/application/Configuration/ConfigurationApplicationClient.js +58 -137
  11. package/sdk/application/Content/ContentApplicationClient.d.ts +47 -7
  12. package/sdk/application/Content/ContentApplicationClient.js +222 -191
  13. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  14. package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
  15. package/sdk/application/Finance/FinanceApplicationClient.js +1 -16
  16. package/sdk/application/Lead/LeadApplicationClient.d.ts +4 -4
  17. package/sdk/application/Lead/LeadApplicationClient.js +21 -52
  18. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -56
  19. package/sdk/application/Logistic/LogisticApplicationClient.js +57 -332
  20. package/sdk/application/Order/OrderApplicationClient.d.ts +11 -11
  21. package/sdk/application/Order/OrderApplicationClient.js +68 -153
  22. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -12
  23. package/sdk/application/Payment/PaymentApplicationClient.js +7 -487
  24. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +1 -1
  25. package/sdk/application/Rewards/RewardsApplicationClient.js +6 -59
  26. package/sdk/application/Share/ShareApplicationClient.d.ts +4 -4
  27. package/sdk/application/Share/ShareApplicationClient.js +21 -75
  28. package/sdk/application/Theme/ThemeApplicationClient.d.ts +3 -3
  29. package/sdk/application/Theme/ThemeApplicationClient.js +19 -47
  30. package/sdk/application/User/UserApplicationClient.js +1 -407
  31. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -8
  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/FileStorage/FileStoragePartnerClient.d.ts +1 -55
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +1 -408
  38. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -5
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -37
  40. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -0
  41. package/sdk/partner/Lead/LeadPartnerModel.js +2 -0
  42. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +29 -25
  43. package/sdk/partner/Logistics/LogisticsPartnerClient.js +65 -42
  44. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1008 -794
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.js +573 -460
  46. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +10 -5
  47. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +64 -1
  48. package/sdk/partner/Webhook/WebhookPartnerModel.js +36 -0
  49. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  50. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +2 -0
  51. package/sdk/platform/Cart/CartPlatformModel.d.ts +67 -9
  52. package/sdk/platform/Cart/CartPlatformModel.js +38 -5
  53. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -1
  54. package/sdk/platform/Catalog/CatalogPlatformClient.js +4 -4
  55. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +47 -13
  56. package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -7
  57. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
  58. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +7 -4
  59. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +71 -7
  60. package/sdk/platform/Communication/CommunicationPlatformModel.js +70 -6
  61. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +0 -27
  62. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +8 -60
  63. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +31 -20
  64. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +18 -18
  65. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +1 -1
  66. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -3
  67. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +13 -0
  68. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -1
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +68 -11
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +49 -7
  71. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +169 -0
  72. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1279 -132
  73. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +156 -1
  74. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +180 -0
  75. package/sdk/platform/Content/ContentPlatformClient.d.ts +162 -0
  76. package/sdk/platform/Content/ContentPlatformClient.js +1697 -497
  77. package/sdk/platform/Content/ContentPlatformModel.d.ts +1053 -35
  78. package/sdk/platform/Content/ContentPlatformModel.js +717 -34
  79. package/sdk/platform/Content/ContentPlatformValidator.d.ts +127 -1
  80. package/sdk/platform/Content/ContentPlatformValidator.js +171 -0
  81. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +34 -0
  82. package/sdk/platform/Discount/DiscountPlatformClient.js +59 -0
  83. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +365 -93
  84. package/sdk/platform/Discount/DiscountPlatformModel.js +98 -93
  85. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +54 -34
  86. package/sdk/platform/Discount/DiscountPlatformValidator.js +27 -17
  87. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +0 -156
  88. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +0 -1072
  89. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -137
  90. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +0 -173
  91. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +1 -1105
  92. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +0 -1125
  93. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -0
  94. package/sdk/platform/Lead/LeadPlatformModel.js +2 -0
  95. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +0 -10
  96. package/sdk/platform/Order/OrderPlatformApplicationClient.js +0 -92
  97. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
  98. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
  99. package/sdk/platform/Order/OrderPlatformClient.d.ts +212 -0
  100. package/sdk/platform/Order/OrderPlatformClient.js +397 -0
  101. package/sdk/platform/Order/OrderPlatformModel.d.ts +66 -10
  102. package/sdk/platform/Order/OrderPlatformModel.js +39 -7
  103. package/sdk/platform/Order/OrderPlatformValidator.d.ts +33 -1
  104. package/sdk/platform/Order/OrderPlatformValidator.js +20 -0
  105. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +58 -10
  106. package/sdk/platform/Partner/PartnerPlatformModel.js +19 -10
  107. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -2
  108. package/sdk/platform/Payment/PaymentPlatformModel.js +8 -2
  109. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +5 -0
  110. package/sdk/platform/Rewards/RewardsPlatformModel.js +2 -0
  111. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +240 -24
  112. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +1753 -277
  113. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +320 -22
  114. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +269 -19
  115. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +53 -104
  116. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +201 -629
  117. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +5720 -2891
  118. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3414 -2181
  119. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +138 -216
  120. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +81 -148
  121. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
  122. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  123. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +73 -0
  124. package/sdk/platform/User/UserPlatformApplicationClient.js +543 -0
  125. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +129 -1
  126. package/sdk/platform/User/UserPlatformApplicationValidator.js +97 -0
  127. package/sdk/platform/User/UserPlatformModel.d.ts +269 -6
  128. package/sdk/platform/User/UserPlatformModel.js +187 -5
  129. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +64 -1
  130. package/sdk/platform/Webhook/WebhookPlatformModel.js +36 -0
  131. package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
  132. package/sdk/public/Catalog/CatalogPublicClient.js +6 -11
  133. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -16
  134. package/sdk/public/Content/ContentPublicClient.d.ts +36 -3
  135. package/sdk/public/Content/ContentPublicClient.js +261 -104
  136. package/sdk/public/Content/ContentPublicModel.d.ts +155 -1
  137. package/sdk/public/Content/ContentPublicModel.js +102 -0
  138. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -1
  139. package/sdk/public/Content/ContentPublicValidator.js +26 -0
  140. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  141. package/sdk/public/Partner/PartnerPublicClient.js +6 -11
  142. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  143. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  144. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  145. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  146. package/sdk/public/Webhook/WebhookPublicClient.js +1 -40
@@ -185,7 +185,7 @@ export = ContentPlatformModel;
185
185
  * @typedef Author
186
186
  * @property {string} [designation]
187
187
  * @property {string} [id]
188
- * @property {string} [name]
188
+ * @property {string} [name] - Name of the author
189
189
  */
190
190
  /**
191
191
  * @typedef BlogSchema
@@ -330,33 +330,67 @@ export = ContentPlatformModel;
330
330
  */
331
331
  /**
332
332
  * @typedef HandpickedTagSchema
333
- * @property {string} [position]
334
- * @property {Object} [attributes]
335
- * @property {string} [name]
336
- * @property {string} [url]
337
- * @property {string} [type]
338
- * @property {string} [sub_type]
339
- * @property {string} [content]
333
+ * @property {string} [position] - The location in the page where the tag should
334
+ * be injected, such as 'head', 'body-top', or 'body-bottom'.
335
+ * @property {Object} [attributes] - Additional attributes for the tag to define
336
+ * its behavior or compatibility. Supported attributes may vary based on the
337
+ * tag type for example:
338
+ *
339
+ * - For `script` tags: `async`, `defer`, `crossorigin`, `type`, `onload`.
340
+ * - For `link` tags: `rel`, `media`, `type`, `crossorigin`, `onload`.
341
+ * - For `style` tags: `media`, `type`, `scoped`.
342
+ * - Custom data attributes like `data-*` can also be added.
343
+ *
344
+ * @property {string[]} [compatible_engines] - List of UI frameworks where this
345
+ * third-party tag can be injected or supported.
346
+ * @property {string} [name] - The name of the tag used to identify it in the
347
+ * system. Example: 'Google External Script' or 'Bootstrap CSS'.
348
+ * @property {string} [url] - The URL where the external tag resource (such as a
349
+ * script or stylesheet) is hosted.
350
+ * @property {string} [type] - The type of the tag, such as 'script' (for
351
+ * JavaScript) or 'link' (for CSS).
352
+ * @property {string} [sub_type] - Defines whether the tag is embedded within
353
+ * the HTML (inline) or linked externally (external).
354
+ * @property {string} [content] - The actual content of the inline tag, such as
355
+ * JavaScript or CSS code if the tag is inline.
340
356
  */
341
357
  /**
342
358
  * @typedef RemoveHandpickedSchema
343
- * @property {string[]} [tags]
359
+ * @property {string[]} [tags] - A list of tag IDs to remove from the system.
344
360
  */
345
361
  /**
346
362
  * @typedef CreateTagSchema
347
- * @property {string} [name]
348
- * @property {string} [sub_type]
349
- * @property {string} [_id]
350
- * @property {string} [type]
351
- * @property {string} [url]
352
- * @property {string} [position]
353
- * @property {Object} [attributes]
354
- * @property {Object[]} [pages]
355
- * @property {string} [content]
363
+ * @property {string} [name] - The name of the tag to be created, used for
364
+ * identification purposes.
365
+ * @property {string} [sub_type] - Indicates if the tag is external (linked) or
366
+ * inline (embedded within the page).
367
+ * @property {string} [_id] - The unique identifier for the tag.
368
+ * @property {string} [type] - The type of the tag, either JavaScript ('js') or
369
+ * CSS ('css').
370
+ * @property {string} [url] - The external URL pointing to the script or
371
+ * stylesheet resource.
372
+ * @property {string} [position] - The position on the webpage where the tag
373
+ * will be injected, such as 'head', 'body-top', or 'body-bottom'.
374
+ * @property {Object} [attributes] - Additional attributes for the tag to define
375
+ * its behavior or compatibility. Supported attributes may vary based on the
376
+ * tag type for example:
377
+ *
378
+ * - For `script` tags: `async`, `defer`, `crossorigin`, `type`, `onload`.
379
+ * - For `link` tags: `rel`, `media`, `type`, `crossorigin`, `onload`.
380
+ * - For `style` tags: `media`, `type`, `scoped`.
381
+ * - Custom data attributes like `data-*` can also be added.
382
+ *
383
+ * @property {string[]} [compatible_engines] - List of UI frameworks where this
384
+ * third-party tag can be injected or supported.
385
+ * @property {Object[]} [pages] - Pages or environments where the tag should be
386
+ * injected or active.
387
+ * @property {string} [content] - The inline content for tags of type 'inline'
388
+ * (e.g., JavaScript or CSS code).
356
389
  */
357
390
  /**
358
391
  * @typedef CreateTagRequestSchema
359
- * @property {CreateTagSchema[]} [tags]
392
+ * @property {CreateTagSchema[]} [tags] - A list of tags to be created or
393
+ * updated, each containing details such as name, type, and attributes.
360
394
  */
361
395
  /**
362
396
  * @typedef DataLoaderSchema
@@ -380,7 +414,8 @@ export = ContentPlatformModel;
380
414
  */
381
415
  /**
382
416
  * @typedef TagDeleteSuccessDetails
383
- * @property {boolean} [success]
417
+ * @property {boolean} [success] - Indicates whether the tag removal operation
418
+ * was successful.
384
419
  */
385
420
  /**
386
421
  * @typedef ContentAPIError
@@ -490,6 +525,7 @@ export = ContentPlatformModel;
490
525
  * @property {number} [current] - The current page number.
491
526
  * @property {string} type - The type of the page, such as 'PageType'.
492
527
  * @property {number} [size] - The number of items per page.
528
+ * @property {number} [page_size] - The number of items per page.
493
529
  */
494
530
  /**
495
531
  * @typedef LandingPageGetDetails
@@ -666,27 +702,44 @@ export = ContentPlatformModel;
666
702
  */
667
703
  /**
668
704
  * @typedef TagsSchema
669
- * @property {string} [application]
670
- * @property {string} [_id]
671
- * @property {TagSchema[]} [tags]
705
+ * @property {string} [application] - The ID of the application that owns the tags.
706
+ * @property {string} [_id] - The unique identifier for the tag set.
707
+ * @property {TagSchema[]} [tags] - A list of tags (HTML resources like scripts
708
+ * or stylesheets) that are configured for the application.
672
709
  */
673
710
  /**
674
711
  * @typedef TagSchema
675
- * @property {string} [name]
676
- * @property {string} [url]
677
- * @property {string} [type]
678
- * @property {string} [sub_type]
679
- * @property {string} [_id]
680
- * @property {string} [position]
681
- * @property {Object} [attributes]
682
- * @property {string} [content]
683
- * @property {Object[]} [pages]
712
+ * @property {string} [name] - The name of the tag used to identify it.
713
+ * @property {string} [url] - The URL where the external tag resource (such as a
714
+ * script or stylesheet) is located.
715
+ * @property {string} [type] - Specifies whether the tag is a JavaScript ('js')
716
+ * or CSS ('css') tag.
717
+ * @property {string} [sub_type] - Indicates whether the tag is an external
718
+ * resource (external) or inline content (inline).
719
+ * @property {string} [_id] - The unique identifier for the tag in the system.
720
+ * @property {string} [position] - The position within the page where the tag
721
+ * should be injected.
722
+ * @property {Object} [attributes] - Additional attributes for the tag to define
723
+ * its behavior or compatibility. Supported attributes may vary based on the
724
+ * tag type for example:
725
+ *
726
+ * - For `script` tags: `async`, `defer`, `crossorigin`, `type`, `onload`.
727
+ * - For `link` tags: `rel`, `media`, `type`, `crossorigin`, `onload`.
728
+ * - For `style` tags: `media`, `type`, `scoped`.
729
+ * - Custom data attributes like `data-*` can also be added.
730
+ *
731
+ * @property {string} [content] - Content of the tag if it is inline, such as
732
+ * JavaScript or CSS code.
733
+ * @property {string[]} [compatible_engines] - List of UI frameworks where this
734
+ * third-party tag can be injected or supported.
735
+ * @property {Object[]} [pages] - Pages or environments where the tag should be active.
684
736
  * @property {TagSourceSchema} [__source]
685
737
  */
686
738
  /**
687
739
  * @typedef TagSourceSchema
688
- * @property {string} [type]
689
- * @property {string} [id]
740
+ * @property {string} [type] - The type of source, such as 'extension'
741
+ * @property {string} [id] - The identifier of the source that created or
742
+ * provided the tag.
690
743
  */
691
744
  /**
692
745
  * @typedef ResourcesSchema
@@ -1202,6 +1255,258 @@ export = ContentPlatformModel;
1202
1255
  * @property {string} [url] - The URL for the action.
1203
1256
  * @property {PageType} type
1204
1257
  */
1258
+ /**
1259
+ * @typedef TranslateUiLabels
1260
+ * @property {string} [_id] - Unique MongoDB identifier assigned to the
1261
+ * Translate Ui Labels entry
1262
+ * @property {string} [company_id] - Identifier linking the resource to a
1263
+ * specific company within the platform
1264
+ * @property {string} [application_id] - Reference to the application where this
1265
+ * Translate Ui Labels is utilized
1266
+ * @property {string} [template_theme_id] - Links the resource to a specific
1267
+ * template theme configuration
1268
+ * @property {string} [theme_id] - Associates the resource with a particular
1269
+ * theme implementation
1270
+ * @property {string} [locale] - Specifies the language and region format for
1271
+ * the resource content
1272
+ * @property {Object} [resource] - Contains the actual resource data and
1273
+ * configuration settings
1274
+ * @property {string} [type] - Categorizes the resource type for proper handling
1275
+ * and processing
1276
+ */
1277
+ /**
1278
+ * @typedef TranslateUiLabelsCreate
1279
+ * @property {string} [template_theme_id] - Unique identifier for the template theme
1280
+ * @property {string} [theme_id] - Unique identifier for the theme
1281
+ * @property {string} [locale] - Locale
1282
+ * @property {Object} [resource] - Translate Ui Labels json object
1283
+ * @property {string} [type] - Resource type
1284
+ */
1285
+ /**
1286
+ * @typedef StaticResourceUpdate
1287
+ * @property {string} [template_theme_id] - Unique identifier for the template theme
1288
+ * @property {string} [theme_id] - Unique identifier for the theme
1289
+ * @property {string} [locale] - Locale
1290
+ * @property {Object} [resource] - Translate Ui Labels json object
1291
+ * @property {string} [type] - Resource type
1292
+ */
1293
+ /**
1294
+ * @typedef TranslateUiLabelsPage
1295
+ * @property {TranslateUiLabels[]} [items] - List of items containing all the
1296
+ * static info data.
1297
+ * @property {Page} [page]
1298
+ */
1299
+ /**
1300
+ * @typedef Error
1301
+ * @property {string} [error] - Detailed message explaining the error that occurred
1302
+ */
1303
+ /**
1304
+ * @typedef Meta
1305
+ * @property {string} [created_by] - Identifier of the user who created this resource
1306
+ * @property {string} [modified_by] - Identifier of the user who last modified
1307
+ * this resource
1308
+ * @property {string} [created_on] - Timestamp when this resource was initially created
1309
+ * @property {string} [modified_on] - Timestamp when this resource was last modified
1310
+ */
1311
+ /**
1312
+ * @typedef CompanyLanguage
1313
+ * @property {string} [_id] - Unique identifier for the company language setting
1314
+ * @property {string} company_id - Identifier of the company this language
1315
+ * configuration belongs to
1316
+ * @property {string} [locale] - Language code following ISO standards for this
1317
+ * company setting
1318
+ * @property {string} [name] - Display name of the language for company usage
1319
+ * @property {string} [direction] - Text direction setting for company content
1320
+ * in this language
1321
+ * @property {boolean} [is_default] - Indicates if this is the default language
1322
+ * for the company
1323
+ * @property {string} [display_name] - Translated name of the language in
1324
+ * English for easy reference and display at the website.
1325
+ */
1326
+ /**
1327
+ * @typedef CompanyLanguageCreate
1328
+ * @property {string[]} locales - List of language codes to be added to company
1329
+ * configuration
1330
+ */
1331
+ /**
1332
+ * @typedef CompanyLanguageUpdate
1333
+ * @property {boolean} is_default - Sets the specified language as the company default
1334
+ */
1335
+ /**
1336
+ * @typedef ApplicationLanguage
1337
+ * @property {string} [_id] - Unique identifier for the application language setting
1338
+ * @property {string} company_id - Identifier of the company this application belongs to
1339
+ * @property {string} application_id - Unique identifier of the application
1340
+ * using this language
1341
+ * @property {string} locale - Language code following ISO standards for this application
1342
+ * @property {string} name - Display name of the language for application usage
1343
+ * @property {string} direction - Specifies the text direction for displaying
1344
+ * application content, either left-to-right (ltr) or right-to-left (rtl)
1345
+ * @property {boolean} is_default - Indicates if this is the default language
1346
+ * for the application
1347
+ * @property {boolean} published - Indicates whether this language is currently
1348
+ * active and visible within the storefront.
1349
+ * @property {string} [display_name] - Translated name of the language in
1350
+ * English for easy reference and display at the website.
1351
+ */
1352
+ /**
1353
+ * @typedef unPublishApplicationLanguage
1354
+ * @property {boolean} published - Updates the publication status of the language
1355
+ */
1356
+ /**
1357
+ * @typedef ApplicationLanguageCreate
1358
+ * @property {string[]} locales - List of language codes to be added to
1359
+ * application configuration
1360
+ */
1361
+ /**
1362
+ * @typedef ApplicationLanguageUpdate
1363
+ * @property {boolean} is_default - Sets the specified language as the application default
1364
+ * @property {boolean} published - Updates the publication status of the language
1365
+ */
1366
+ /**
1367
+ * @typedef TranslatableResource
1368
+ * @property {string} [_id] - Unique identifier for the translatable resource
1369
+ * @property {string} type - Categorizes the type of content that can be translated
1370
+ * @property {string} name - Display name of the translatable resource
1371
+ * @property {string} description - Detailed explanation of the translatable resource
1372
+ * @property {string} schema_type - Defines the processing type for the
1373
+ * translation schema static (fixed), dynamic (flexible), or partial_dynamic (mixed).
1374
+ * @property {string} [created_by] - Identifier of the user who created this resource
1375
+ * @property {string} [modified_by] - Identifier of the user who last modified
1376
+ * this resource
1377
+ * @property {string} [created_on] - Timestamp when this resource was initially created
1378
+ * @property {string} [modified_on] - Timestamp when this resource was last modified
1379
+ * @property {TranslatableSection} [section_id]
1380
+ */
1381
+ /**
1382
+ * @typedef ResourceDefinition
1383
+ * @property {string} [_id] - Unique identifier for the resource definition
1384
+ * @property {string} translatable_resource_id - Reference to the associated
1385
+ * translatable resource
1386
+ * @property {ResourceJsonSchema} [json_schema]
1387
+ * @property {ResourceUISchema} [ui_schema]
1388
+ * @property {ResourceBulkDetails} [bulk_details]
1389
+ */
1390
+ /**
1391
+ * @typedef ResourceJsonSchema
1392
+ * @property {string} [schema]
1393
+ * @property {ResourceJsonSchemaType} [type]
1394
+ */
1395
+ /**
1396
+ * @typedef ResourceJsonSchemaType
1397
+ * @property {Author} [author]
1398
+ * @property {Title} [title]
1399
+ * @property {FeatureImage} [feature_image]
1400
+ */
1401
+ /**
1402
+ * @typedef ResourceUISchema
1403
+ * @property {Author} [author]
1404
+ * @property {Title} [title]
1405
+ * @property {FeatureImage} [feature_image]
1406
+ * @property {Seo} [seo]
1407
+ */
1408
+ /**
1409
+ * @typedef ResourceBulkDetails
1410
+ * @property {string[]} [fields]
1411
+ */
1412
+ /**
1413
+ * @typedef Title
1414
+ * @property {string} [ui_widget]
1415
+ * @property {boolean} [ui_description]
1416
+ */
1417
+ /**
1418
+ * @typedef FeatureImage
1419
+ * @property {string} [secure_url] - URL of the secure image
1420
+ */
1421
+ /**
1422
+ * @typedef Seo
1423
+ * @property {Title} [title]
1424
+ * @property {string} [description]
1425
+ * @property {string} [canonical_url]
1426
+ * @property {MetaTag[]} [meta_tags]
1427
+ */
1428
+ /**
1429
+ * @typedef MetaTag
1430
+ * @property {string} [title] - Title of the meta tag
1431
+ * @property {MetaTagItem[]} [items]
1432
+ */
1433
+ /**
1434
+ * @typedef MetaTagItem
1435
+ * @property {string} [key] - Key of the meta tag item
1436
+ * @property {string} [value] - Value of the meta tag item
1437
+ */
1438
+ /**
1439
+ * @typedef ResourceTranslation
1440
+ * @property {string} [_id] - Unique identifier for the translation entry
1441
+ * @property {string} [locale] - Language code for this translation
1442
+ * @property {TranslationValue} [value]
1443
+ */
1444
+ /**
1445
+ * @typedef TranslationValue
1446
+ * @property {string} [name] - Translated name
1447
+ * @property {TranslationSeo} [seo]
1448
+ */
1449
+ /**
1450
+ * @typedef TranslationSeo
1451
+ * @property {string} [title] - Translated SEO title
1452
+ * @property {string[]} [breadcrumbs] - List of translated breadcrumbs
1453
+ * @property {string[]} [meta_tags] - List of translated meta tags
1454
+ * @property {string} [canonical_url] - Translated canonical URL
1455
+ * @property {string} [description] - Translated SEO description
1456
+ */
1457
+ /**
1458
+ * @typedef DeletedResource
1459
+ * @property {string} [message] - Confirmation message for successful deletion
1460
+ */
1461
+ /**
1462
+ * @typedef ResourceTranslationList
1463
+ * @property {ResourceTranslationCreate[]} [items]
1464
+ */
1465
+ /**
1466
+ * @typedef ResourceTranslationCreate
1467
+ * @property {string} [type] - Type of content being translated
1468
+ * @property {string} [resource_id] - Identifier of the resource requiring translation
1469
+ * @property {string} [locale] - Target language code for the translation
1470
+ * @property {TranslationValue} [value]
1471
+ */
1472
+ /**
1473
+ * @typedef ResourceTranslationUpdate
1474
+ * @property {TranslationValue} [value]
1475
+ */
1476
+ /**
1477
+ * @typedef TranslatableSection
1478
+ * @property {string} [_id] - Unique identifier for the translatable section
1479
+ * @property {string} [name] - Display name of the section
1480
+ * @property {string} [description] - Detailed explanation of the section's purpose
1481
+ * @property {string} [created_by] - Identifier of the user who created this resource
1482
+ * @property {string} [modified_by] - Identifier of the user who last modified
1483
+ * this resource
1484
+ * @property {string} [created_on] - Timestamp when this resource was initially created
1485
+ * @property {string} [modified_on] - Timestamp when this resource was last modified
1486
+ */
1487
+ /**
1488
+ * @typedef Metrics
1489
+ * @property {number} [total] - Total number of translation operations attempted
1490
+ * @property {number} [success] - Number of successful translation operations
1491
+ * @property {number} [failed] - Number of failed translation operations
1492
+ */
1493
+ /**
1494
+ * @typedef ResourceTranslationUpsertItem
1495
+ * @property {string} [message] - Status message for the translation operation
1496
+ * @property {ResourceTranslationCreate} [data]
1497
+ */
1498
+ /**
1499
+ * @typedef ResourceTranslationBulkUpsert
1500
+ * @property {Metrics} [metrics]
1501
+ * @property {ResourceTranslationUpsertItem[]} [failed_items] - List of failed
1502
+ * translation operations
1503
+ * @property {ResourceTranslationUpsertItem[]} [updated_items] - List of
1504
+ * successful translation operations
1505
+ */
1506
+ /**
1507
+ * @typedef StandardError
1508
+ * @property {string} message - A brief description of the error.
1509
+ */
1205
1510
  /** @typedef {"title" | "description"} GenerationEntityType */
1206
1511
  /**
1207
1512
  * @typedef {| "about-us"
@@ -1256,7 +1561,7 @@ export = ContentPlatformModel;
1256
1561
  declare class ContentPlatformModel {
1257
1562
  }
1258
1563
  declare namespace ContentPlatformModel {
1259
- export { ValidationError, GenerateSEOContent, GeneratedSEOContent, ApplicationLegal, ApplicationLegalFAQ, PathMappingSchema, PathSourceSchema, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, SEOSchemaMarkupTemplateRequestBody, AnnouncementPageSchema, EditorMeta, AnnouncementAuthorSchema, AdminAnnouncementSchema, DefaultSchemaComponent, DefaultSEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, BlogGetDetails, BlogFilters, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, BlogPayload, GetAnnouncementListSchema, CreateAnnouncementSchema, DataLoaderResponseSchema, DataLoaderResetResponseSchema, LocaleLanguage, Language, Action, NavigationReference, CronBasedScheduleSchema, UpdateHandpickedSchema, HandpickedTagSchema, RemoveHandpickedSchema, CreateTagSchema, CreateTagRequestSchema, DataLoaderSchema, DataLoaderSourceSchema, DataLoadersSchema, TagDeleteSuccessDetails, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, CategoryRequestSchema, FAQCategorySchema, FaqSchema, FAQ, CreateFaqResponseSchema, CreateFaqSchema, GetFaqSchema, UpdateFaqCategoryRequestSchema, CreateFaqCategoryRequestSchema, CreateFaqCategorySchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageGetDetails, LandingPageSchema, DefaultNavigationDetails, NavigationGetDetails, Orientation, NavigationSchema, NavigationPayload, PageGetDetails, PageSpec, PageSpecParam, PageSpecItem, PageSchema, CreatedBySchema, PagePayload, CronSchedule, PagePublishPayload, PageMetaSchema, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, ResourcesSchema, ResourceSchema, FieldValidations, FieldDefinitionSchema, CustomFieldDefinitionsSchema, CustomFieldDefinitionRequestSchema, CustomObjectCustomFieldDefinitions, CustomObjectDefinitionUpdateRequestSchema, CustomFieldDefinitionDetailResSchema, MetaFieldDefinitionDetailResSchema, CustomDataDeleteSchema, CustomFieldValue, CustomFieldSchema, CustomFieldsResponseSchema, CustomFieldsDeleteSchema, CustomFieldsResponseByResourceIdSchema, CustomField, CustomFieldRequestSchema, CustomObjectSchema, CustomObjectDefinitionRequestSchema, CustomObjectDefinitionSlugSchema, CustomObjectDefinitionDeleteResponseSchema, CustomObjectEntryBulkUploadDetails, CustomObjectListItemDefinitionModel, CustomObjectListItemSchema, CustomObjectsSchema, CustomObjectFieldDefinition, CustomObjectBySlugSchema, CustomObjectBulkEntryInitiateDownload, CustomObjectMetaSchema, JobSchema, CustomFieldBulkEntry, CustomObjectBulkEntry, MetafieldTypesSchema, CustomFieldTypeSchema, SupportedValidationsMetaExampleSchema, SupportedValidationsMetaSchema, SupportedValidationsSchema, Duration, HTML, StringSingleLine, StringMultiLine, Dropdown, Integer, FloatType, BooleanType, Date, Datetime, Json, File, Url, Metaobject, Product, CustomObjectEntry, CustomObjectDefinitionsSchema, CustomObjectEntryFieldSchema, CustomObjectEntryFieldSchemaWithoutID, CustomObjectRequestSchema, CustomObjectRequestSchemaWithoutId, CustomObjectBulkSchema, ActionPage, GenerationEntityType, PageType };
1564
+ export { ValidationError, GenerateSEOContent, GeneratedSEOContent, ApplicationLegal, ApplicationLegalFAQ, PathMappingSchema, PathSourceSchema, SeoComponent, SeoSchema, CustomMetaTag, Detail, SeoSchemaComponent, SEOSchemaMarkupTemplate, SEOSchemaMarkupTemplateRequestBody, AnnouncementPageSchema, EditorMeta, AnnouncementAuthorSchema, AdminAnnouncementSchema, DefaultSchemaComponent, DefaultSEOSchemaMarkupTemplate, ScheduleSchema, NextSchedule, BlogGetDetails, BlogFilters, ResourceContent, Asset, Author, BlogSchema, SEO, SEOImage, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, DateMeta, BlogPayload, GetAnnouncementListSchema, CreateAnnouncementSchema, DataLoaderResponseSchema, DataLoaderResetResponseSchema, LocaleLanguage, Language, Action, NavigationReference, CronBasedScheduleSchema, UpdateHandpickedSchema, HandpickedTagSchema, RemoveHandpickedSchema, CreateTagSchema, CreateTagRequestSchema, DataLoaderSchema, DataLoaderSourceSchema, DataLoadersSchema, TagDeleteSuccessDetails, ContentAPIError, CommonError, CategorySchema, ChildrenSchema, CategoryRequestSchema, FAQCategorySchema, FaqSchema, FAQ, CreateFaqResponseSchema, CreateFaqSchema, GetFaqSchema, UpdateFaqCategoryRequestSchema, CreateFaqCategoryRequestSchema, CreateFaqCategorySchema, GetFaqCategoriesSchema, GetFaqCategoryBySlugSchema, Page, LandingPageGetDetails, LandingPageSchema, DefaultNavigationDetails, NavigationGetDetails, Orientation, NavigationSchema, NavigationPayload, PageGetDetails, PageSpec, PageSpecParam, PageSpecItem, PageSchema, CreatedBySchema, PagePayload, CronSchedule, PagePublishPayload, PageMetaSchema, Support, PhoneProperties, PhoneSchema, EmailProperties, EmailSchema, ContactSchema, TagsSchema, TagSchema, TagSourceSchema, ResourcesSchema, ResourceSchema, FieldValidations, FieldDefinitionSchema, CustomFieldDefinitionsSchema, CustomFieldDefinitionRequestSchema, CustomObjectCustomFieldDefinitions, CustomObjectDefinitionUpdateRequestSchema, CustomFieldDefinitionDetailResSchema, MetaFieldDefinitionDetailResSchema, CustomDataDeleteSchema, CustomFieldValue, CustomFieldSchema, CustomFieldsResponseSchema, CustomFieldsDeleteSchema, CustomFieldsResponseByResourceIdSchema, CustomField, CustomFieldRequestSchema, CustomObjectSchema, CustomObjectDefinitionRequestSchema, CustomObjectDefinitionSlugSchema, CustomObjectDefinitionDeleteResponseSchema, CustomObjectEntryBulkUploadDetails, CustomObjectListItemDefinitionModel, CustomObjectListItemSchema, CustomObjectsSchema, CustomObjectFieldDefinition, CustomObjectBySlugSchema, CustomObjectBulkEntryInitiateDownload, CustomObjectMetaSchema, JobSchema, CustomFieldBulkEntry, CustomObjectBulkEntry, MetafieldTypesSchema, CustomFieldTypeSchema, SupportedValidationsMetaExampleSchema, SupportedValidationsMetaSchema, SupportedValidationsSchema, Duration, HTML, StringSingleLine, StringMultiLine, Dropdown, Integer, FloatType, BooleanType, Date, Datetime, Json, File, Url, Metaobject, Product, CustomObjectEntry, CustomObjectDefinitionsSchema, CustomObjectEntryFieldSchema, CustomObjectEntryFieldSchemaWithoutID, CustomObjectRequestSchema, CustomObjectRequestSchemaWithoutId, CustomObjectBulkSchema, ActionPage, TranslateUiLabels, TranslateUiLabelsCreate, StaticResourceUpdate, TranslateUiLabelsPage, Error, Meta, CompanyLanguage, CompanyLanguageCreate, CompanyLanguageUpdate, ApplicationLanguage, unPublishApplicationLanguage, ApplicationLanguageCreate, ApplicationLanguageUpdate, TranslatableResource, ResourceDefinition, ResourceJsonSchema, ResourceJsonSchemaType, ResourceUISchema, ResourceBulkDetails, Title, FeatureImage, Seo, MetaTag, MetaTagItem, ResourceTranslation, TranslationValue, TranslationSeo, DeletedResource, ResourceTranslationList, ResourceTranslationCreate, ResourceTranslationUpdate, TranslatableSection, Metrics, ResourceTranslationUpsertItem, ResourceTranslationBulkUpsert, StandardError, GenerationEntityType, PageType };
1260
1565
  }
1261
1566
  /** @returns {ValidationError} */
1262
1567
  declare function ValidationError(): ValidationError;
@@ -1477,6 +1782,9 @@ declare function Author(): Author;
1477
1782
  type Author = {
1478
1783
  designation?: string;
1479
1784
  id?: string;
1785
+ /**
1786
+ * - Name of the author
1787
+ */
1480
1788
  name?: string;
1481
1789
  };
1482
1790
  /** @returns {BlogSchema} */
@@ -1645,35 +1953,127 @@ type UpdateHandpickedSchema = {
1645
1953
  /** @returns {HandpickedTagSchema} */
1646
1954
  declare function HandpickedTagSchema(): HandpickedTagSchema;
1647
1955
  type HandpickedTagSchema = {
1956
+ /**
1957
+ * - The location in the page where the tag should
1958
+ * be injected, such as 'head', 'body-top', or 'body-bottom'.
1959
+ */
1648
1960
  position?: string;
1961
+ /**
1962
+ * - Additional attributes for the tag to define
1963
+ * its behavior or compatibility. Supported attributes may vary based on the
1964
+ * tag type for example:
1965
+ *
1966
+ * - For `script` tags: `async`, `defer`, `crossorigin`, `type`, `onload`.
1967
+ * - For `link` tags: `rel`, `media`, `type`, `crossorigin`, `onload`.
1968
+ * - For `style` tags: `media`, `type`, `scoped`.
1969
+ * - Custom data attributes like `data-*` can also be added.
1970
+ */
1649
1971
  attributes?: any;
1972
+ /**
1973
+ * - List of UI frameworks where this
1974
+ * third-party tag can be injected or supported.
1975
+ */
1976
+ compatible_engines?: string[];
1977
+ /**
1978
+ * - The name of the tag used to identify it in the
1979
+ * system. Example: 'Google External Script' or 'Bootstrap CSS'.
1980
+ */
1650
1981
  name?: string;
1982
+ /**
1983
+ * - The URL where the external tag resource (such as a
1984
+ * script or stylesheet) is hosted.
1985
+ */
1651
1986
  url?: string;
1987
+ /**
1988
+ * - The type of the tag, such as 'script' (for
1989
+ * JavaScript) or 'link' (for CSS).
1990
+ */
1652
1991
  type?: string;
1992
+ /**
1993
+ * - Defines whether the tag is embedded within
1994
+ * the HTML (inline) or linked externally (external).
1995
+ */
1653
1996
  sub_type?: string;
1997
+ /**
1998
+ * - The actual content of the inline tag, such as
1999
+ * JavaScript or CSS code if the tag is inline.
2000
+ */
1654
2001
  content?: string;
1655
2002
  };
1656
2003
  /** @returns {RemoveHandpickedSchema} */
1657
2004
  declare function RemoveHandpickedSchema(): RemoveHandpickedSchema;
1658
2005
  type RemoveHandpickedSchema = {
2006
+ /**
2007
+ * - A list of tag IDs to remove from the system.
2008
+ */
1659
2009
  tags?: string[];
1660
2010
  };
1661
2011
  /** @returns {CreateTagSchema} */
1662
2012
  declare function CreateTagSchema(): CreateTagSchema;
1663
2013
  type CreateTagSchema = {
2014
+ /**
2015
+ * - The name of the tag to be created, used for
2016
+ * identification purposes.
2017
+ */
1664
2018
  name?: string;
2019
+ /**
2020
+ * - Indicates if the tag is external (linked) or
2021
+ * inline (embedded within the page).
2022
+ */
1665
2023
  sub_type?: string;
2024
+ /**
2025
+ * - The unique identifier for the tag.
2026
+ */
1666
2027
  _id?: string;
2028
+ /**
2029
+ * - The type of the tag, either JavaScript ('js') or
2030
+ * CSS ('css').
2031
+ */
1667
2032
  type?: string;
2033
+ /**
2034
+ * - The external URL pointing to the script or
2035
+ * stylesheet resource.
2036
+ */
1668
2037
  url?: string;
2038
+ /**
2039
+ * - The position on the webpage where the tag
2040
+ * will be injected, such as 'head', 'body-top', or 'body-bottom'.
2041
+ */
1669
2042
  position?: string;
2043
+ /**
2044
+ * - Additional attributes for the tag to define
2045
+ * its behavior or compatibility. Supported attributes may vary based on the
2046
+ * tag type for example:
2047
+ *
2048
+ * - For `script` tags: `async`, `defer`, `crossorigin`, `type`, `onload`.
2049
+ * - For `link` tags: `rel`, `media`, `type`, `crossorigin`, `onload`.
2050
+ * - For `style` tags: `media`, `type`, `scoped`.
2051
+ * - Custom data attributes like `data-*` can also be added.
2052
+ */
1670
2053
  attributes?: any;
2054
+ /**
2055
+ * - List of UI frameworks where this
2056
+ * third-party tag can be injected or supported.
2057
+ */
2058
+ compatible_engines?: string[];
2059
+ /**
2060
+ * - Pages or environments where the tag should be
2061
+ * injected or active.
2062
+ */
1671
2063
  pages?: any[];
2064
+ /**
2065
+ * - The inline content for tags of type 'inline'
2066
+ * (e.g., JavaScript or CSS code).
2067
+ */
1672
2068
  content?: string;
1673
2069
  };
1674
2070
  /** @returns {CreateTagRequestSchema} */
1675
2071
  declare function CreateTagRequestSchema(): CreateTagRequestSchema;
1676
2072
  type CreateTagRequestSchema = {
2073
+ /**
2074
+ * - A list of tags to be created or
2075
+ * updated, each containing details such as name, type, and attributes.
2076
+ */
1677
2077
  tags?: CreateTagSchema[];
1678
2078
  };
1679
2079
  /** @returns {DataLoaderSchema} */
@@ -1702,6 +2102,10 @@ type DataLoadersSchema = {
1702
2102
  /** @returns {TagDeleteSuccessDetails} */
1703
2103
  declare function TagDeleteSuccessDetails(): TagDeleteSuccessDetails;
1704
2104
  type TagDeleteSuccessDetails = {
2105
+ /**
2106
+ * - Indicates whether the tag removal operation
2107
+ * was successful.
2108
+ */
1705
2109
  success?: boolean;
1706
2110
  };
1707
2111
  /** @returns {ContentAPIError} */
@@ -1850,6 +2254,10 @@ type Page = {
1850
2254
  * - The number of items per page.
1851
2255
  */
1852
2256
  size?: number;
2257
+ /**
2258
+ * - The number of items per page.
2259
+ */
2260
+ page_size?: number;
1853
2261
  };
1854
2262
  /** @returns {LandingPageGetDetails} */
1855
2263
  declare function LandingPageGetDetails(): LandingPageGetDetails;
@@ -2053,28 +2461,89 @@ type ContactSchema = {
2053
2461
  /** @returns {TagsSchema} */
2054
2462
  declare function TagsSchema(): TagsSchema;
2055
2463
  type TagsSchema = {
2464
+ /**
2465
+ * - The ID of the application that owns the tags.
2466
+ */
2056
2467
  application?: string;
2468
+ /**
2469
+ * - The unique identifier for the tag set.
2470
+ */
2057
2471
  _id?: string;
2472
+ /**
2473
+ * - A list of tags (HTML resources like scripts
2474
+ * or stylesheets) that are configured for the application.
2475
+ */
2058
2476
  tags?: TagSchema[];
2059
2477
  };
2060
2478
  /** @returns {TagSchema} */
2061
2479
  declare function TagSchema(): TagSchema;
2062
2480
  type TagSchema = {
2481
+ /**
2482
+ * - The name of the tag used to identify it.
2483
+ */
2063
2484
  name?: string;
2485
+ /**
2486
+ * - The URL where the external tag resource (such as a
2487
+ * script or stylesheet) is located.
2488
+ */
2064
2489
  url?: string;
2490
+ /**
2491
+ * - Specifies whether the tag is a JavaScript ('js')
2492
+ * or CSS ('css') tag.
2493
+ */
2065
2494
  type?: string;
2495
+ /**
2496
+ * - Indicates whether the tag is an external
2497
+ * resource (external) or inline content (inline).
2498
+ */
2066
2499
  sub_type?: string;
2500
+ /**
2501
+ * - The unique identifier for the tag in the system.
2502
+ */
2067
2503
  _id?: string;
2504
+ /**
2505
+ * - The position within the page where the tag
2506
+ * should be injected.
2507
+ */
2068
2508
  position?: string;
2509
+ /**
2510
+ * - Additional attributes for the tag to define
2511
+ * its behavior or compatibility. Supported attributes may vary based on the
2512
+ * tag type for example:
2513
+ *
2514
+ * - For `script` tags: `async`, `defer`, `crossorigin`, `type`, `onload`.
2515
+ * - For `link` tags: `rel`, `media`, `type`, `crossorigin`, `onload`.
2516
+ * - For `style` tags: `media`, `type`, `scoped`.
2517
+ * - Custom data attributes like `data-*` can also be added.
2518
+ */
2069
2519
  attributes?: any;
2520
+ /**
2521
+ * - Content of the tag if it is inline, such as
2522
+ * JavaScript or CSS code.
2523
+ */
2070
2524
  content?: string;
2525
+ /**
2526
+ * - List of UI frameworks where this
2527
+ * third-party tag can be injected or supported.
2528
+ */
2529
+ compatible_engines?: string[];
2530
+ /**
2531
+ * - Pages or environments where the tag should be active.
2532
+ */
2071
2533
  pages?: any[];
2072
2534
  __source?: TagSourceSchema;
2073
2535
  };
2074
2536
  /** @returns {TagSourceSchema} */
2075
2537
  declare function TagSourceSchema(): TagSourceSchema;
2076
2538
  type TagSourceSchema = {
2539
+ /**
2540
+ * - The type of source, such as 'extension'
2541
+ */
2077
2542
  type?: string;
2543
+ /**
2544
+ * - The identifier of the source that created or
2545
+ * provided the tag.
2546
+ */
2078
2547
  id?: string;
2079
2548
  };
2080
2549
  /** @returns {ResourcesSchema} */
@@ -3378,6 +3847,555 @@ type ActionPage = {
3378
3847
  url?: string;
3379
3848
  type: PageType;
3380
3849
  };
3850
+ /** @returns {TranslateUiLabels} */
3851
+ declare function TranslateUiLabels(): TranslateUiLabels;
3852
+ type TranslateUiLabels = {
3853
+ /**
3854
+ * - Unique MongoDB identifier assigned to the
3855
+ * Translate Ui Labels entry
3856
+ */
3857
+ _id?: string;
3858
+ /**
3859
+ * - Identifier linking the resource to a
3860
+ * specific company within the platform
3861
+ */
3862
+ company_id?: string;
3863
+ /**
3864
+ * - Reference to the application where this
3865
+ * Translate Ui Labels is utilized
3866
+ */
3867
+ application_id?: string;
3868
+ /**
3869
+ * - Links the resource to a specific
3870
+ * template theme configuration
3871
+ */
3872
+ template_theme_id?: string;
3873
+ /**
3874
+ * - Associates the resource with a particular
3875
+ * theme implementation
3876
+ */
3877
+ theme_id?: string;
3878
+ /**
3879
+ * - Specifies the language and region format for
3880
+ * the resource content
3881
+ */
3882
+ locale?: string;
3883
+ /**
3884
+ * - Contains the actual resource data and
3885
+ * configuration settings
3886
+ */
3887
+ resource?: any;
3888
+ /**
3889
+ * - Categorizes the resource type for proper handling
3890
+ * and processing
3891
+ */
3892
+ type?: string;
3893
+ };
3894
+ /** @returns {TranslateUiLabelsCreate} */
3895
+ declare function TranslateUiLabelsCreate(): TranslateUiLabelsCreate;
3896
+ type TranslateUiLabelsCreate = {
3897
+ /**
3898
+ * - Unique identifier for the template theme
3899
+ */
3900
+ template_theme_id?: string;
3901
+ /**
3902
+ * - Unique identifier for the theme
3903
+ */
3904
+ theme_id?: string;
3905
+ /**
3906
+ * - Locale
3907
+ */
3908
+ locale?: string;
3909
+ /**
3910
+ * - Translate Ui Labels json object
3911
+ */
3912
+ resource?: any;
3913
+ /**
3914
+ * - Resource type
3915
+ */
3916
+ type?: string;
3917
+ };
3918
+ /** @returns {StaticResourceUpdate} */
3919
+ declare function StaticResourceUpdate(): StaticResourceUpdate;
3920
+ type StaticResourceUpdate = {
3921
+ /**
3922
+ * - Unique identifier for the template theme
3923
+ */
3924
+ template_theme_id?: string;
3925
+ /**
3926
+ * - Unique identifier for the theme
3927
+ */
3928
+ theme_id?: string;
3929
+ /**
3930
+ * - Locale
3931
+ */
3932
+ locale?: string;
3933
+ /**
3934
+ * - Translate Ui Labels json object
3935
+ */
3936
+ resource?: any;
3937
+ /**
3938
+ * - Resource type
3939
+ */
3940
+ type?: string;
3941
+ };
3942
+ /** @returns {TranslateUiLabelsPage} */
3943
+ declare function TranslateUiLabelsPage(): TranslateUiLabelsPage;
3944
+ type TranslateUiLabelsPage = {
3945
+ /**
3946
+ * - List of items containing all the
3947
+ * static info data.
3948
+ */
3949
+ items?: TranslateUiLabels[];
3950
+ page?: Page;
3951
+ };
3952
+ /** @returns {Error} */
3953
+ declare function Error(): Error;
3954
+ type Error = {
3955
+ /**
3956
+ * - Detailed message explaining the error that occurred
3957
+ */
3958
+ error?: string;
3959
+ };
3960
+ /** @returns {Meta} */
3961
+ declare function Meta(): Meta;
3962
+ type Meta = {
3963
+ /**
3964
+ * - Identifier of the user who created this resource
3965
+ */
3966
+ created_by?: string;
3967
+ /**
3968
+ * - Identifier of the user who last modified
3969
+ * this resource
3970
+ */
3971
+ modified_by?: string;
3972
+ /**
3973
+ * - Timestamp when this resource was initially created
3974
+ */
3975
+ created_on?: string;
3976
+ /**
3977
+ * - Timestamp when this resource was last modified
3978
+ */
3979
+ modified_on?: string;
3980
+ };
3981
+ /** @returns {CompanyLanguage} */
3982
+ declare function CompanyLanguage(): CompanyLanguage;
3983
+ type CompanyLanguage = {
3984
+ /**
3985
+ * - Unique identifier for the company language setting
3986
+ */
3987
+ _id?: string;
3988
+ /**
3989
+ * - Identifier of the company this language
3990
+ * configuration belongs to
3991
+ */
3992
+ company_id: string;
3993
+ /**
3994
+ * - Language code following ISO standards for this
3995
+ * company setting
3996
+ */
3997
+ locale?: string;
3998
+ /**
3999
+ * - Display name of the language for company usage
4000
+ */
4001
+ name?: string;
4002
+ /**
4003
+ * - Text direction setting for company content
4004
+ * in this language
4005
+ */
4006
+ direction?: string;
4007
+ /**
4008
+ * - Indicates if this is the default language
4009
+ * for the company
4010
+ */
4011
+ is_default?: boolean;
4012
+ /**
4013
+ * - Translated name of the language in
4014
+ * English for easy reference and display at the website.
4015
+ */
4016
+ display_name?: string;
4017
+ };
4018
+ /** @returns {CompanyLanguageCreate} */
4019
+ declare function CompanyLanguageCreate(): CompanyLanguageCreate;
4020
+ type CompanyLanguageCreate = {
4021
+ /**
4022
+ * - List of language codes to be added to company
4023
+ * configuration
4024
+ */
4025
+ locales: string[];
4026
+ };
4027
+ /** @returns {CompanyLanguageUpdate} */
4028
+ declare function CompanyLanguageUpdate(): CompanyLanguageUpdate;
4029
+ type CompanyLanguageUpdate = {
4030
+ /**
4031
+ * - Sets the specified language as the company default
4032
+ */
4033
+ is_default: boolean;
4034
+ };
4035
+ /** @returns {ApplicationLanguage} */
4036
+ declare function ApplicationLanguage(): ApplicationLanguage;
4037
+ type ApplicationLanguage = {
4038
+ /**
4039
+ * - Unique identifier for the application language setting
4040
+ */
4041
+ _id?: string;
4042
+ /**
4043
+ * - Identifier of the company this application belongs to
4044
+ */
4045
+ company_id: string;
4046
+ /**
4047
+ * - Unique identifier of the application
4048
+ * using this language
4049
+ */
4050
+ application_id: string;
4051
+ /**
4052
+ * - Language code following ISO standards for this application
4053
+ */
4054
+ locale: string;
4055
+ /**
4056
+ * - Display name of the language for application usage
4057
+ */
4058
+ name: string;
4059
+ /**
4060
+ * - Specifies the text direction for displaying
4061
+ * application content, either left-to-right (ltr) or right-to-left (rtl)
4062
+ */
4063
+ direction: string;
4064
+ /**
4065
+ * - Indicates if this is the default language
4066
+ * for the application
4067
+ */
4068
+ is_default: boolean;
4069
+ /**
4070
+ * - Indicates whether this language is currently
4071
+ * active and visible within the storefront.
4072
+ */
4073
+ published: boolean;
4074
+ /**
4075
+ * - Translated name of the language in
4076
+ * English for easy reference and display at the website.
4077
+ */
4078
+ display_name?: string;
4079
+ };
4080
+ /** @returns {unPublishApplicationLanguage} */
4081
+ declare function unPublishApplicationLanguage(): unPublishApplicationLanguage;
4082
+ type unPublishApplicationLanguage = {
4083
+ /**
4084
+ * - Updates the publication status of the language
4085
+ */
4086
+ published: boolean;
4087
+ };
4088
+ /** @returns {ApplicationLanguageCreate} */
4089
+ declare function ApplicationLanguageCreate(): ApplicationLanguageCreate;
4090
+ type ApplicationLanguageCreate = {
4091
+ /**
4092
+ * - List of language codes to be added to
4093
+ * application configuration
4094
+ */
4095
+ locales: string[];
4096
+ };
4097
+ /** @returns {ApplicationLanguageUpdate} */
4098
+ declare function ApplicationLanguageUpdate(): ApplicationLanguageUpdate;
4099
+ type ApplicationLanguageUpdate = {
4100
+ /**
4101
+ * - Sets the specified language as the application default
4102
+ */
4103
+ is_default: boolean;
4104
+ /**
4105
+ * - Updates the publication status of the language
4106
+ */
4107
+ published: boolean;
4108
+ };
4109
+ /** @returns {TranslatableResource} */
4110
+ declare function TranslatableResource(): TranslatableResource;
4111
+ type TranslatableResource = {
4112
+ /**
4113
+ * - Unique identifier for the translatable resource
4114
+ */
4115
+ _id?: string;
4116
+ /**
4117
+ * - Categorizes the type of content that can be translated
4118
+ */
4119
+ type: string;
4120
+ /**
4121
+ * - Display name of the translatable resource
4122
+ */
4123
+ name: string;
4124
+ /**
4125
+ * - Detailed explanation of the translatable resource
4126
+ */
4127
+ description: string;
4128
+ /**
4129
+ * - Defines the processing type for the
4130
+ * translation schema static (fixed), dynamic (flexible), or partial_dynamic (mixed).
4131
+ */
4132
+ schema_type: string;
4133
+ /**
4134
+ * - Identifier of the user who created this resource
4135
+ */
4136
+ created_by?: string;
4137
+ /**
4138
+ * - Identifier of the user who last modified
4139
+ * this resource
4140
+ */
4141
+ modified_by?: string;
4142
+ /**
4143
+ * - Timestamp when this resource was initially created
4144
+ */
4145
+ created_on?: string;
4146
+ /**
4147
+ * - Timestamp when this resource was last modified
4148
+ */
4149
+ modified_on?: string;
4150
+ section_id?: TranslatableSection;
4151
+ };
4152
+ /** @returns {ResourceDefinition} */
4153
+ declare function ResourceDefinition(): ResourceDefinition;
4154
+ type ResourceDefinition = {
4155
+ /**
4156
+ * - Unique identifier for the resource definition
4157
+ */
4158
+ _id?: string;
4159
+ /**
4160
+ * - Reference to the associated
4161
+ * translatable resource
4162
+ */
4163
+ translatable_resource_id: string;
4164
+ json_schema?: ResourceJsonSchema;
4165
+ ui_schema?: ResourceUISchema;
4166
+ bulk_details?: ResourceBulkDetails;
4167
+ };
4168
+ /** @returns {ResourceJsonSchema} */
4169
+ declare function ResourceJsonSchema(): ResourceJsonSchema;
4170
+ type ResourceJsonSchema = {
4171
+ schema?: string;
4172
+ type?: ResourceJsonSchemaType;
4173
+ };
4174
+ /** @returns {ResourceJsonSchemaType} */
4175
+ declare function ResourceJsonSchemaType(): ResourceJsonSchemaType;
4176
+ type ResourceJsonSchemaType = {
4177
+ author?: Author;
4178
+ title?: Title;
4179
+ feature_image?: FeatureImage;
4180
+ };
4181
+ /** @returns {ResourceUISchema} */
4182
+ declare function ResourceUISchema(): ResourceUISchema;
4183
+ type ResourceUISchema = {
4184
+ author?: Author;
4185
+ title?: Title;
4186
+ feature_image?: FeatureImage;
4187
+ seo?: Seo;
4188
+ };
4189
+ /** @returns {ResourceBulkDetails} */
4190
+ declare function ResourceBulkDetails(): ResourceBulkDetails;
4191
+ type ResourceBulkDetails = {
4192
+ fields?: string[];
4193
+ };
4194
+ /** @returns {Title} */
4195
+ declare function Title(): Title;
4196
+ type Title = {
4197
+ ui_widget?: string;
4198
+ ui_description?: boolean;
4199
+ };
4200
+ /** @returns {FeatureImage} */
4201
+ declare function FeatureImage(): FeatureImage;
4202
+ type FeatureImage = {
4203
+ /**
4204
+ * - URL of the secure image
4205
+ */
4206
+ secure_url?: string;
4207
+ };
4208
+ /** @returns {Seo} */
4209
+ declare function Seo(): Seo;
4210
+ type Seo = {
4211
+ title?: Title;
4212
+ description?: string;
4213
+ canonical_url?: string;
4214
+ meta_tags?: MetaTag[];
4215
+ };
4216
+ /** @returns {MetaTag} */
4217
+ declare function MetaTag(): MetaTag;
4218
+ type MetaTag = {
4219
+ /**
4220
+ * - Title of the meta tag
4221
+ */
4222
+ title?: string;
4223
+ items?: MetaTagItem[];
4224
+ };
4225
+ /** @returns {MetaTagItem} */
4226
+ declare function MetaTagItem(): MetaTagItem;
4227
+ type MetaTagItem = {
4228
+ /**
4229
+ * - Key of the meta tag item
4230
+ */
4231
+ key?: string;
4232
+ /**
4233
+ * - Value of the meta tag item
4234
+ */
4235
+ value?: string;
4236
+ };
4237
+ /** @returns {ResourceTranslation} */
4238
+ declare function ResourceTranslation(): ResourceTranslation;
4239
+ type ResourceTranslation = {
4240
+ /**
4241
+ * - Unique identifier for the translation entry
4242
+ */
4243
+ _id?: string;
4244
+ /**
4245
+ * - Language code for this translation
4246
+ */
4247
+ locale?: string;
4248
+ value?: TranslationValue;
4249
+ };
4250
+ /** @returns {TranslationValue} */
4251
+ declare function TranslationValue(): TranslationValue;
4252
+ type TranslationValue = {
4253
+ /**
4254
+ * - Translated name
4255
+ */
4256
+ name?: string;
4257
+ seo?: TranslationSeo;
4258
+ };
4259
+ /** @returns {TranslationSeo} */
4260
+ declare function TranslationSeo(): TranslationSeo;
4261
+ type TranslationSeo = {
4262
+ /**
4263
+ * - Translated SEO title
4264
+ */
4265
+ title?: string;
4266
+ /**
4267
+ * - List of translated breadcrumbs
4268
+ */
4269
+ breadcrumbs?: string[];
4270
+ /**
4271
+ * - List of translated meta tags
4272
+ */
4273
+ meta_tags?: string[];
4274
+ /**
4275
+ * - Translated canonical URL
4276
+ */
4277
+ canonical_url?: string;
4278
+ /**
4279
+ * - Translated SEO description
4280
+ */
4281
+ description?: string;
4282
+ };
4283
+ /** @returns {DeletedResource} */
4284
+ declare function DeletedResource(): DeletedResource;
4285
+ type DeletedResource = {
4286
+ /**
4287
+ * - Confirmation message for successful deletion
4288
+ */
4289
+ message?: string;
4290
+ };
4291
+ /** @returns {ResourceTranslationList} */
4292
+ declare function ResourceTranslationList(): ResourceTranslationList;
4293
+ type ResourceTranslationList = {
4294
+ items?: ResourceTranslationCreate[];
4295
+ };
4296
+ /** @returns {ResourceTranslationCreate} */
4297
+ declare function ResourceTranslationCreate(): ResourceTranslationCreate;
4298
+ type ResourceTranslationCreate = {
4299
+ /**
4300
+ * - Type of content being translated
4301
+ */
4302
+ type?: string;
4303
+ /**
4304
+ * - Identifier of the resource requiring translation
4305
+ */
4306
+ resource_id?: string;
4307
+ /**
4308
+ * - Target language code for the translation
4309
+ */
4310
+ locale?: string;
4311
+ value?: TranslationValue;
4312
+ };
4313
+ /** @returns {ResourceTranslationUpdate} */
4314
+ declare function ResourceTranslationUpdate(): ResourceTranslationUpdate;
4315
+ type ResourceTranslationUpdate = {
4316
+ value?: TranslationValue;
4317
+ };
4318
+ /** @returns {TranslatableSection} */
4319
+ declare function TranslatableSection(): TranslatableSection;
4320
+ type TranslatableSection = {
4321
+ /**
4322
+ * - Unique identifier for the translatable section
4323
+ */
4324
+ _id?: string;
4325
+ /**
4326
+ * - Display name of the section
4327
+ */
4328
+ name?: string;
4329
+ /**
4330
+ * - Detailed explanation of the section's purpose
4331
+ */
4332
+ description?: string;
4333
+ /**
4334
+ * - Identifier of the user who created this resource
4335
+ */
4336
+ created_by?: string;
4337
+ /**
4338
+ * - Identifier of the user who last modified
4339
+ * this resource
4340
+ */
4341
+ modified_by?: string;
4342
+ /**
4343
+ * - Timestamp when this resource was initially created
4344
+ */
4345
+ created_on?: string;
4346
+ /**
4347
+ * - Timestamp when this resource was last modified
4348
+ */
4349
+ modified_on?: string;
4350
+ };
4351
+ /** @returns {Metrics} */
4352
+ declare function Metrics(): Metrics;
4353
+ type Metrics = {
4354
+ /**
4355
+ * - Total number of translation operations attempted
4356
+ */
4357
+ total?: number;
4358
+ /**
4359
+ * - Number of successful translation operations
4360
+ */
4361
+ success?: number;
4362
+ /**
4363
+ * - Number of failed translation operations
4364
+ */
4365
+ failed?: number;
4366
+ };
4367
+ /** @returns {ResourceTranslationUpsertItem} */
4368
+ declare function ResourceTranslationUpsertItem(): ResourceTranslationUpsertItem;
4369
+ type ResourceTranslationUpsertItem = {
4370
+ /**
4371
+ * - Status message for the translation operation
4372
+ */
4373
+ message?: string;
4374
+ data?: ResourceTranslationCreate;
4375
+ };
4376
+ /** @returns {ResourceTranslationBulkUpsert} */
4377
+ declare function ResourceTranslationBulkUpsert(): ResourceTranslationBulkUpsert;
4378
+ type ResourceTranslationBulkUpsert = {
4379
+ metrics?: Metrics;
4380
+ /**
4381
+ * - List of failed
4382
+ * translation operations
4383
+ */
4384
+ failed_items?: ResourceTranslationUpsertItem[];
4385
+ /**
4386
+ * - List of
4387
+ * successful translation operations
4388
+ */
4389
+ updated_items?: ResourceTranslationUpsertItem[];
4390
+ };
4391
+ /** @returns {StandardError} */
4392
+ declare function StandardError(): StandardError;
4393
+ type StandardError = {
4394
+ /**
4395
+ * - A brief description of the error.
4396
+ */
4397
+ message: string;
4398
+ };
3381
4399
  /**
3382
4400
  * Enum: GenerationEntityType Used By: Content
3383
4401
  *