@gofynd/fdk-client-javascript 1.4.15-beta.14 → 1.4.15-beta.15
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.
- package/README.md +23 -26
- package/package.json +5 -1
- package/sdk/application/ApplicationClient.d.ts +5 -6
- package/sdk/application/ApplicationClient.js +24 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
- package/sdk/application/Cart/CartApplicationClient.js +444 -76
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
- package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
- package/sdk/application/Content/ContentApplicationClient.js +274 -111
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
- package/sdk/application/Lead/LeadApplicationClient.js +6 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
- package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
- package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
- package/sdk/application/Order/OrderApplicationClient.js +217 -17
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
- package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
- package/sdk/application/User/UserApplicationClient.d.ts +103 -53
- package/sdk/application/User/UserApplicationClient.js +308 -49
- package/sdk/common/AxiosHelper.js +11 -4
- package/sdk/common/Constant.d.ts +27 -4
- package/sdk/common/Constant.js +33 -6
- package/sdk/common/utils.d.ts +10 -0
- package/sdk/common/utils.js +24 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
- package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
- package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
- package/sdk/partner/PartnerClient.d.ts +5 -2
- package/sdk/partner/PartnerClient.js +21 -7
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
- package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
- package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
- package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
- package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
- package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9573 -2678
- package/sdk/platform/Catalog/CatalogPlatformModel.js +5033 -1973
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
- package/sdk/platform/Common/CommonPlatformModel.js +25 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
- package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
- package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
- package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
- package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
- package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
- package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
- package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
- package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
- package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
- package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
- package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
- package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
- package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/PlatformClient.d.ts +5 -4
- package/sdk/platform/PlatformClient.js +32 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
- package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
- package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
- package/sdk/platform/Share/SharePlatformModel.js +31 -6
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
- package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
- package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
- package/sdk/platform/User/UserPlatformModel.js +607 -46
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
- package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
- package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -2
- package/sdk/platform/index.js +0 -4
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
- package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
- package/sdk/public/Content/ContentPublicClient.js +1067 -17
- package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
- package/sdk/public/Content/ContentPublicModel.js +751 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
- package/sdk/public/Content/ContentPublicValidator.js +119 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +5 -2
- package/sdk/public/PublicClient.js +16 -6
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/utility.d.ts +3 -0
- package/utility.js +7 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
- package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
|
@@ -21,7 +21,7 @@ class Theme {
|
|
|
21
21
|
* @returns {Promise<ThemePartnerModel.AllAvailablePageSchema>} - Success response
|
|
22
22
|
* @name getAllPages
|
|
23
23
|
* @summary: Get all pages
|
|
24
|
-
* @description: Retrieve a list of all pages available in the partner server setup. - Check out [method documentation](https://
|
|
24
|
+
* @description: Retrieve a list of all pages available in the partner server setup. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/getAllPages/).
|
|
25
25
|
*/
|
|
26
26
|
async getAllPages(
|
|
27
27
|
{ companyId, applicationId, themeId, requestHeaders } = {
|
|
@@ -98,7 +98,7 @@ class Theme {
|
|
|
98
98
|
* @returns {Promise<ThemePartnerModel.AvailablePageSchema>} - Success response
|
|
99
99
|
* @name createPage
|
|
100
100
|
* @summary: Create page
|
|
101
|
-
* @description: Add a new page to the partner server configurations. - Check out [method documentation](https://
|
|
101
|
+
* @description: Add a new page to the partner server configurations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/createPage/).
|
|
102
102
|
*/
|
|
103
103
|
async createPage(
|
|
104
104
|
{ companyId, applicationId, themeId, body, requestHeaders } = {
|
|
@@ -182,7 +182,7 @@ class Theme {
|
|
|
182
182
|
* @returns {Promise<ThemePartnerModel.AllAvailablePageSchema>} - Success response
|
|
183
183
|
* @name updateMultiplePages
|
|
184
184
|
* @summary: Update multiple pages
|
|
185
|
-
* @description: Modify and update multiple pages in the partner server setup. - Check out [method documentation](https://
|
|
185
|
+
* @description: Modify and update multiple pages in the partner server setup. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/updateMultiplePages/).
|
|
186
186
|
*/
|
|
187
187
|
async updateMultiplePages(
|
|
188
188
|
{ companyId, applicationId, themeId, body, requestHeaders } = {
|
|
@@ -268,7 +268,7 @@ class Theme {
|
|
|
268
268
|
* @returns {Promise<ThemePartnerModel.AvailablePageSchema>} - Success response
|
|
269
269
|
* @name getPage
|
|
270
270
|
* @summary: Get page
|
|
271
|
-
* @description: Obtain detailed information about a specific page in the partner server. - Check out [method documentation](https://
|
|
271
|
+
* @description: Obtain detailed information about a specific page in the partner server. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/getPage/).
|
|
272
272
|
*/
|
|
273
273
|
async getPage(
|
|
274
274
|
{ companyId, applicationId, themeId, pageValue, requestHeaders } = {
|
|
@@ -346,7 +346,7 @@ class Theme {
|
|
|
346
346
|
* @returns {Promise<ThemePartnerModel.AvailablePageSchema>} - Success response
|
|
347
347
|
* @name updatePage
|
|
348
348
|
* @summary: Update page
|
|
349
|
-
* @description: Modify and update information related to a specific page in the partner server. - Check out [method documentation](https://
|
|
349
|
+
* @description: Modify and update information related to a specific page in the partner server. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/updatePage/).
|
|
350
350
|
*/
|
|
351
351
|
async updatePage(
|
|
352
352
|
{ companyId, applicationId, themeId, pageValue, body, requestHeaders } = {
|
|
@@ -432,7 +432,7 @@ class Theme {
|
|
|
432
432
|
* @returns {Promise<ThemePartnerModel.AvailablePageSchema>} - Success response
|
|
433
433
|
* @name deletePage
|
|
434
434
|
* @summary: Delete page
|
|
435
|
-
* @description: Remove a page from the partner server configurations. - Check out [method documentation](https://
|
|
435
|
+
* @description: Remove a page from the partner server configurations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/deletePage/).
|
|
436
436
|
*/
|
|
437
437
|
async deletePage(
|
|
438
438
|
{ companyId, applicationId, themeId, pageValue, requestHeaders } = {
|
|
@@ -510,7 +510,7 @@ class Theme {
|
|
|
510
510
|
* @returns {Promise<ThemePartnerModel.ThemesSchema[]>} - Success response
|
|
511
511
|
* @name getApplicationThemes
|
|
512
512
|
* @summary: Get application themes
|
|
513
|
-
* @description: Retrieve a list of themes available for the partner server application. - Check out [method documentation](https://
|
|
513
|
+
* @description: Retrieve a list of themes available for the partner server application. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/getApplicationThemes/).
|
|
514
514
|
*/
|
|
515
515
|
async getApplicationThemes(
|
|
516
516
|
{ companyId, applicationId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -546,7 +546,7 @@ class Theme {
|
|
|
546
546
|
const response = await PartnerAPIClient.execute(
|
|
547
547
|
this.config,
|
|
548
548
|
"get",
|
|
549
|
-
`/service/partner/theme/
|
|
549
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/themes`,
|
|
550
550
|
query_params,
|
|
551
551
|
undefined,
|
|
552
552
|
requestHeaders,
|
|
@@ -583,7 +583,7 @@ class Theme {
|
|
|
583
583
|
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
584
584
|
* @name getThemeById
|
|
585
585
|
* @summary: Get theme by ID
|
|
586
|
-
* @description: Obtain detailed information about a theme using its unique ID. - Check out [method documentation](https://
|
|
586
|
+
* @description: Obtain detailed information about a theme using its unique ID. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/getThemeById/).
|
|
587
587
|
*/
|
|
588
588
|
async getThemeById(
|
|
589
589
|
{ companyId, applicationId, themeId, requestHeaders } = {
|
|
@@ -620,7 +620,7 @@ class Theme {
|
|
|
620
620
|
const response = await PartnerAPIClient.execute(
|
|
621
621
|
this.config,
|
|
622
622
|
"get",
|
|
623
|
-
`/service/partner/theme/
|
|
623
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/${themeId}`,
|
|
624
624
|
query_params,
|
|
625
625
|
undefined,
|
|
626
626
|
requestHeaders,
|
|
@@ -660,7 +660,7 @@ class Theme {
|
|
|
660
660
|
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
661
661
|
* @name updateTheme
|
|
662
662
|
* @summary: Update theme
|
|
663
|
-
* @description: Modify and update information related to a theme in the partner server. - Check out [method documentation](https://
|
|
663
|
+
* @description: Modify and update information related to a theme in the partner server. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/updateTheme/).
|
|
664
664
|
*/
|
|
665
665
|
async updateTheme(
|
|
666
666
|
{ companyId, applicationId, themeId, body, requestHeaders } = {
|
|
@@ -704,7 +704,7 @@ class Theme {
|
|
|
704
704
|
const response = await PartnerAPIClient.execute(
|
|
705
705
|
this.config,
|
|
706
706
|
"put",
|
|
707
|
-
`/service/partner/theme/
|
|
707
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/${themeId}`,
|
|
708
708
|
query_params,
|
|
709
709
|
body,
|
|
710
710
|
requestHeaders,
|
|
@@ -744,7 +744,7 @@ class Theme {
|
|
|
744
744
|
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
745
745
|
* @name deleteTheme
|
|
746
746
|
* @summary: Delete theme
|
|
747
|
-
* @description: Remove a theme from the partner server configurations. - Check out [method documentation](https://
|
|
747
|
+
* @description: Remove a theme from the partner server configurations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/deleteTheme/).
|
|
748
748
|
*/
|
|
749
749
|
async deleteTheme(
|
|
750
750
|
{ companyId, applicationId, themeId, requestHeaders } = {
|
|
@@ -781,7 +781,7 @@ class Theme {
|
|
|
781
781
|
const response = await PartnerAPIClient.execute(
|
|
782
782
|
this.config,
|
|
783
783
|
"delete",
|
|
784
|
-
`/service/partner/theme/
|
|
784
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/${themeId}`,
|
|
785
785
|
query_params,
|
|
786
786
|
undefined,
|
|
787
787
|
requestHeaders,
|
|
@@ -821,7 +821,7 @@ class Theme {
|
|
|
821
821
|
* @returns {Promise<ThemePartnerModel.MarketplaceThemeSchema>} - Success response
|
|
822
822
|
* @name getOrganizationThemes
|
|
823
823
|
* @summary: Get organization themes
|
|
824
|
-
* @description: Retrieve a list of themes associated with partner server organizations. - Check out [method documentation](https://
|
|
824
|
+
* @description: Retrieve a list of themes associated with partner server organizations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/getOrganizationThemes/).
|
|
825
825
|
*/
|
|
826
826
|
async getOrganizationThemes(
|
|
827
827
|
{ status, pageSize, pageNo, requestHeaders } = { requestHeaders: {} },
|
|
@@ -905,7 +905,7 @@ class Theme {
|
|
|
905
905
|
* @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
|
|
906
906
|
* @name getOrganizationThemeDetails
|
|
907
907
|
* @summary: Get organization theme details
|
|
908
|
-
* @description: Obtain detailed information about a theme within partner server organizations. - Check out [method documentation](https://
|
|
908
|
+
* @description: Obtain detailed information about a theme within partner server organizations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/getOrganizationThemeDetails/).
|
|
909
909
|
*/
|
|
910
910
|
async getOrganizationThemeDetails(
|
|
911
911
|
{ themeId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -984,7 +984,7 @@ class Theme {
|
|
|
984
984
|
* @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
|
|
985
985
|
* @name updateDraftTheme
|
|
986
986
|
* @summary: Update draft theme
|
|
987
|
-
* @description: Modify and update a draft theme in partner server organizations. - Check out [method documentation](https://
|
|
987
|
+
* @description: Modify and update a draft theme in partner server organizations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/updateDraftTheme/).
|
|
988
988
|
*/
|
|
989
989
|
async updateDraftTheme(
|
|
990
990
|
{ themeId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1063,7 +1063,7 @@ class Theme {
|
|
|
1063
1063
|
* @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
|
|
1064
1064
|
* @name submitOrganizationTheme
|
|
1065
1065
|
* @summary: Submit organization theme
|
|
1066
|
-
* @description: Initiate the process of submitting a theme within partner server organizations. - Check out [method documentation](https://
|
|
1066
|
+
* @description: Initiate the process of submitting a theme within partner server organizations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/submitOrganizationTheme/).
|
|
1067
1067
|
*/
|
|
1068
1068
|
async submitOrganizationTheme(
|
|
1069
1069
|
{ themeId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1142,7 +1142,7 @@ class Theme {
|
|
|
1142
1142
|
* @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
|
|
1143
1143
|
* @name deleteOrganizationTheme
|
|
1144
1144
|
* @summary: Delete organization theme
|
|
1145
|
-
* @description: Remove a theme from partner server organizations. - Check out [method documentation](https://
|
|
1145
|
+
* @description: Remove a theme from partner server organizations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/deleteOrganizationTheme/).
|
|
1146
1146
|
*/
|
|
1147
1147
|
async deleteOrganizationTheme(
|
|
1148
1148
|
{ themeId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1219,7 +1219,7 @@ class Theme {
|
|
|
1219
1219
|
* @returns {Promise<ThemePartnerModel.MarketplaceTheme[]>} - Success response
|
|
1220
1220
|
* @name getLatestVersionOfThemeBySlug
|
|
1221
1221
|
* @summary: Get latest version of theme by slug
|
|
1222
|
-
* @description: Retrieve the most recent version of a theme using its slug. - Check out [method documentation](https://
|
|
1222
|
+
* @description: Retrieve the most recent version of a theme using its slug. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/getLatestVersionOfThemeBySlug/).
|
|
1223
1223
|
*/
|
|
1224
1224
|
async getLatestVersionOfThemeBySlug(
|
|
1225
1225
|
{ slugName, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1295,7 +1295,7 @@ class Theme {
|
|
|
1295
1295
|
* @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
|
|
1296
1296
|
* @name createNewThemeInOrganization
|
|
1297
1297
|
* @summary: Create new theme in organization
|
|
1298
|
-
* @description: Add a new theme to partner server organizations. - Check out [method documentation](https://
|
|
1298
|
+
* @description: Add a new theme to partner server organizations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/createNewThemeInOrganization/).
|
|
1299
1299
|
*/
|
|
1300
1300
|
async createNewThemeInOrganization(
|
|
1301
1301
|
{ body, slug, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1374,11 +1374,10 @@ class Theme {
|
|
|
1374
1374
|
* @param {ThemePartnerValidator.CreateExtensionSectionDraftParam} arg - Arg object.
|
|
1375
1375
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1376
1376
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1377
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1378
|
-
* Success response
|
|
1377
|
+
* @returns {Promise<ThemePartnerModel.ExtensionSectionDraft>} - Success response
|
|
1379
1378
|
* @name createExtensionSectionDraft
|
|
1380
1379
|
* @summary: Draft extension section
|
|
1381
|
-
* @description: Create a new draft for an extension section within the specified organization. - Check out [method documentation](https://
|
|
1380
|
+
* @description: Create a new draft for an extension section within the specified organization. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/createExtensionSectionDraft/).
|
|
1382
1381
|
*/
|
|
1383
1382
|
async createExtensionSectionDraft(
|
|
1384
1383
|
{ extensionId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1433,10 +1432,10 @@ class Theme {
|
|
|
1433
1432
|
|
|
1434
1433
|
const {
|
|
1435
1434
|
error: res_error,
|
|
1436
|
-
} = ThemePartnerModel.
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
);
|
|
1435
|
+
} = ThemePartnerModel.ExtensionSectionDraft().validate(responseData, {
|
|
1436
|
+
abortEarly: false,
|
|
1437
|
+
allowUnknown: true,
|
|
1438
|
+
});
|
|
1440
1439
|
|
|
1441
1440
|
if (res_error) {
|
|
1442
1441
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1456,11 +1455,10 @@ class Theme {
|
|
|
1456
1455
|
* @param {ThemePartnerValidator.PublishExtensionSectionsParam} arg - Arg object.
|
|
1457
1456
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1458
1457
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1459
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1460
|
-
* Success response
|
|
1458
|
+
* @returns {Promise<ThemePartnerModel.ExtensionSectionPublish>} - Success response
|
|
1461
1459
|
* @name publishExtensionSections
|
|
1462
1460
|
* @summary: Publish an extension section
|
|
1463
|
-
* @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://
|
|
1461
|
+
* @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/publishExtensionSections/).
|
|
1464
1462
|
*/
|
|
1465
1463
|
async publishExtensionSections(
|
|
1466
1464
|
{ extensionId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1513,10 +1511,10 @@ class Theme {
|
|
|
1513
1511
|
|
|
1514
1512
|
const {
|
|
1515
1513
|
error: res_error,
|
|
1516
|
-
} = ThemePartnerModel.
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
);
|
|
1514
|
+
} = ThemePartnerModel.ExtensionSectionPublish().validate(responseData, {
|
|
1515
|
+
abortEarly: false,
|
|
1516
|
+
allowUnknown: true,
|
|
1517
|
+
});
|
|
1520
1518
|
|
|
1521
1519
|
if (res_error) {
|
|
1522
1520
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1536,10 +1534,10 @@ class Theme {
|
|
|
1536
1534
|
* @param {ThemePartnerValidator.ApplyExtensionPreviewParam} arg - Arg object.
|
|
1537
1535
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1538
1536
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1539
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1537
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreview>} - Success response
|
|
1540
1538
|
* @name applyExtensionPreview
|
|
1541
1539
|
* @summary: Start a Preview of Extension Section
|
|
1542
|
-
* @description: Use this API to start a local session for previewing the extension section binding. - Check out [method documentation](https://
|
|
1540
|
+
* @description: Use this API to start a local session for previewing the extension section binding. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/applyExtensionPreview/).
|
|
1543
1541
|
*/
|
|
1544
1542
|
async applyExtensionPreview(
|
|
1545
1543
|
{ extensionSectionId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1592,7 +1590,7 @@ class Theme {
|
|
|
1592
1590
|
|
|
1593
1591
|
const {
|
|
1594
1592
|
error: res_error,
|
|
1595
|
-
} = ThemePartnerModel.
|
|
1593
|
+
} = ThemePartnerModel.ExtensionPreview().validate(responseData, {
|
|
1596
1594
|
abortEarly: false,
|
|
1597
1595
|
allowUnknown: true,
|
|
1598
1596
|
});
|
|
@@ -1615,10 +1613,10 @@ class Theme {
|
|
|
1615
1613
|
* @param {ThemePartnerValidator.RemoveExtensionPreviewParam} arg - Arg object.
|
|
1616
1614
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1617
1615
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1618
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1616
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreview>} - Success response
|
|
1619
1617
|
* @name removeExtensionPreview
|
|
1620
1618
|
* @summary: Close a Preview of Extension Section
|
|
1621
|
-
* @description: Use this API to close a local session for previewing the extension section binding - Check out [method documentation](https://
|
|
1619
|
+
* @description: Use this API to close a local session for previewing the extension section binding - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/removeExtensionPreview/).
|
|
1622
1620
|
*/
|
|
1623
1621
|
async removeExtensionPreview(
|
|
1624
1622
|
{ extensionSectionId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1671,7 +1669,7 @@ class Theme {
|
|
|
1671
1669
|
|
|
1672
1670
|
const {
|
|
1673
1671
|
error: res_error,
|
|
1674
|
-
} = ThemePartnerModel.
|
|
1672
|
+
} = ThemePartnerModel.ExtensionPreview().validate(responseData, {
|
|
1675
1673
|
abortEarly: false,
|
|
1676
1674
|
allowUnknown: true,
|
|
1677
1675
|
});
|
|
@@ -1697,7 +1695,7 @@ class Theme {
|
|
|
1697
1695
|
* @returns {Promise<ThemePartnerModel.ThemeRejectionReasons>} - Success response
|
|
1698
1696
|
* @name getThemeRejectionReasons
|
|
1699
1697
|
* @summary: Get theme rejection reasons
|
|
1700
|
-
* @description: Retrieve reasons for the rejection of themes within partner server organizations. - Check out [method documentation](https://
|
|
1698
|
+
* @description: Retrieve reasons for the rejection of themes within partner server organizations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/getThemeRejectionReasons/).
|
|
1701
1699
|
*/
|
|
1702
1700
|
async getThemeRejectionReasons(
|
|
1703
1701
|
{ themeId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1774,7 +1772,7 @@ class Theme {
|
|
|
1774
1772
|
* @returns {Promise<ThemePartnerModel.MarketplaceThemeSchema>} - Success response
|
|
1775
1773
|
* @name getThemeVersions
|
|
1776
1774
|
* @summary: Get theme versions
|
|
1777
|
-
* @description: Retrieve a list of versions available for a theme within partner server organizations. - Check out [method documentation](https://
|
|
1775
|
+
* @description: Retrieve a list of versions available for a theme within partner server organizations. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/getThemeVersions/).
|
|
1778
1776
|
*/
|
|
1779
1777
|
async getThemeVersions(
|
|
1780
1778
|
{ themeSlug, pageSize, pageNo, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1857,7 +1855,7 @@ class Theme {
|
|
|
1857
1855
|
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
1858
1856
|
* @name createTheme
|
|
1859
1857
|
* @summary: Create a new theme
|
|
1860
|
-
* @description: Themes improve the look and appearance of a website. Use this API to create a theme. - Check out [method documentation](https://
|
|
1858
|
+
* @description: Themes improve the look and appearance of a website. Use this API to create a theme. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/theme/createTheme/).
|
|
1861
1859
|
*/
|
|
1862
1860
|
async createTheme(
|
|
1863
1861
|
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -15,7 +15,7 @@ export = ThemePartnerModel;
|
|
|
15
15
|
* @property {string} [updated_at] - The last update timestamp of the page
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
|
-
* @typedef
|
|
18
|
+
* @typedef DraftExtensionSection
|
|
19
19
|
* @property {string} [extension_id]
|
|
20
20
|
* @property {string} [bundle_name]
|
|
21
21
|
* @property {string} [organization_id]
|
|
@@ -25,11 +25,11 @@ export = ThemePartnerModel;
|
|
|
25
25
|
* @property {string} [status]
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
|
-
* @typedef
|
|
29
|
-
* @property {
|
|
28
|
+
* @typedef ExtensionSectionDraft
|
|
29
|
+
* @property {Sections} [sections]
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
|
-
* @typedef
|
|
32
|
+
* @typedef Sections
|
|
33
33
|
* @property {boolean} [acknowledged]
|
|
34
34
|
* @property {number} [matched_count]
|
|
35
35
|
* @property {number} [modified_count]
|
|
@@ -56,7 +56,7 @@ export = ThemePartnerModel;
|
|
|
56
56
|
* @property {string} [css]
|
|
57
57
|
*/
|
|
58
58
|
/**
|
|
59
|
-
* @typedef
|
|
59
|
+
* @typedef PublishExtensionSection
|
|
60
60
|
* @property {string} [extension_id]
|
|
61
61
|
* @property {string} [bundle_name]
|
|
62
62
|
* @property {string} [organization_id]
|
|
@@ -66,17 +66,17 @@ export = ThemePartnerModel;
|
|
|
66
66
|
* @property {string} [status]
|
|
67
67
|
*/
|
|
68
68
|
/**
|
|
69
|
-
* @typedef
|
|
69
|
+
* @typedef PreviewExtension
|
|
70
70
|
* @property {string} [application_id] - Application ID
|
|
71
71
|
* @property {string} [section_preview_hash] - Hash for the section preview
|
|
72
72
|
*/
|
|
73
73
|
/**
|
|
74
|
-
* @typedef
|
|
74
|
+
* @typedef ExtensionPreview
|
|
75
75
|
* @property {string} [message]
|
|
76
76
|
*/
|
|
77
77
|
/**
|
|
78
|
-
* @typedef
|
|
79
|
-
* @property {
|
|
78
|
+
* @typedef ExtensionSectionPublish
|
|
79
|
+
* @property {Sections} [sections]
|
|
80
80
|
*/
|
|
81
81
|
/**
|
|
82
82
|
* @typedef AvailablePageSectionMetaAttributes
|
|
@@ -125,7 +125,15 @@ export = ThemePartnerModel;
|
|
|
125
125
|
* @property {Object[]} [blocks]
|
|
126
126
|
* @property {Object} [preset]
|
|
127
127
|
* @property {AvailablePagePredicate} [predicate]
|
|
128
|
-
* @property {
|
|
128
|
+
* @property {SectionSource} [__source]
|
|
129
|
+
*/
|
|
130
|
+
/**
|
|
131
|
+
* @typedef SectionSource
|
|
132
|
+
* @property {string} [id] - The source id specifying the source of the section.
|
|
133
|
+
* @property {string} [bundle_name] - This is the extension binding name
|
|
134
|
+
* containing this section.
|
|
135
|
+
* @property {string} [type] - This is source type. It will either be
|
|
136
|
+
* themeBundle or extension.
|
|
129
137
|
*/
|
|
130
138
|
/**
|
|
131
139
|
* @typedef AvailablePageScreenPredicate
|
|
@@ -273,12 +281,26 @@ export = ThemePartnerModel;
|
|
|
273
281
|
* @property {string} admin_id - The ID of the admin who rejected the theme
|
|
274
282
|
* @property {string} user_id - The ID of the user who submitted the theme
|
|
275
283
|
* @property {string} status - The status of the theme (e.g., rejected)
|
|
276
|
-
* @property {
|
|
284
|
+
* @property {RejectedMessages} rejection_reasons
|
|
277
285
|
* @property {string} [created_at] - The date and time when the theme rejection
|
|
278
286
|
* reasons object was created
|
|
279
287
|
* @property {string} [updated_at] - The date and time when the theme rejection
|
|
280
288
|
* reasons object was last updated
|
|
281
289
|
*/
|
|
290
|
+
/**
|
|
291
|
+
* @typedef RejectedMessages
|
|
292
|
+
* @property {ThemeReviewRequestMessage} [theme_file]
|
|
293
|
+
* @property {ThemeReviewRequestMessage} [theme_details]
|
|
294
|
+
* @property {ThemeReviewRequestMessage} [theme_value_proposition]
|
|
295
|
+
* @property {ThemeReviewRequestMessage} [theme_attributes]
|
|
296
|
+
* @property {ThemeReviewRequestMessage} [theme_variations]
|
|
297
|
+
* @property {ThemeReviewRequestMessage} [theme_docs]
|
|
298
|
+
* @property {ThemeReviewRequestMessage} [theme_review]
|
|
299
|
+
*/
|
|
300
|
+
/**
|
|
301
|
+
* @typedef ThemeReviewRequestMessage
|
|
302
|
+
* @property {string} [message] - Message Explaining what the issue is
|
|
303
|
+
*/
|
|
282
304
|
/**
|
|
283
305
|
* @typedef AllAvailablePageSchema
|
|
284
306
|
* @property {AvailablePageSchema[]} [pages]
|
|
@@ -482,7 +504,16 @@ export = ThemePartnerModel;
|
|
|
482
504
|
*/
|
|
483
505
|
/**
|
|
484
506
|
* @typedef GlobalSchema
|
|
485
|
-
* @property {
|
|
507
|
+
* @property {Prop[]} [props]
|
|
508
|
+
*/
|
|
509
|
+
/**
|
|
510
|
+
* @typedef Prop
|
|
511
|
+
* @property {string} [type] - The type of the property
|
|
512
|
+
* @property {string} [category] - The category of the property
|
|
513
|
+
* @property {string} [value] - The value of the property
|
|
514
|
+
* @property {string} [id] - The ID of the property
|
|
515
|
+
* @property {string} [label] - The label of the property
|
|
516
|
+
* @property {string} [info] - Additional information about the property
|
|
486
517
|
*/
|
|
487
518
|
/**
|
|
488
519
|
* @typedef Preset
|
|
@@ -623,8 +654,8 @@ export = ThemePartnerModel;
|
|
|
623
654
|
* | "profile-order-shipment"
|
|
624
655
|
* | "profile-basic"
|
|
625
656
|
* | "profile-company"
|
|
626
|
-
* | "profile-
|
|
627
|
-
* | "profile-
|
|
657
|
+
* | "profile-email"
|
|
658
|
+
* | "profile-phone"
|
|
628
659
|
* | "rate-us"
|
|
629
660
|
* | "refer-earn"
|
|
630
661
|
* | "settings"
|
|
@@ -642,12 +673,15 @@ export = ThemePartnerModel;
|
|
|
642
673
|
* | "shipping-policy"
|
|
643
674
|
* | "return-policy"
|
|
644
675
|
* | "order-status"
|
|
645
|
-
* | "locate-us"
|
|
676
|
+
* | "locate-us"
|
|
677
|
+
* | "single-page-checkout"
|
|
678
|
+
* | "request-reattempt"
|
|
679
|
+
* | "files"} PageType
|
|
646
680
|
*/
|
|
647
681
|
declare class ThemePartnerModel {
|
|
648
682
|
}
|
|
649
683
|
declare namespace ThemePartnerModel {
|
|
650
|
-
export { AvailablePageSchema,
|
|
684
|
+
export { AvailablePageSchema, DraftExtensionSection, ExtensionSectionDraft, Sections, ExtensionSection, PropExtension, AssetsExtension, PublishExtensionSection, PreviewExtension, ExtensionPreview, ExtensionSectionPublish, AvailablePageSectionMetaAttributes, AvailablePageSeo, SEOMetaItem, SEOMetaItems, SEOSitemap, SEObreadcrumb, Action, AvailablePageSchemaSections, SectionSource, AvailablePageScreenPredicate, AvailablePageUserPredicate, AvailablePageRoutePredicate, AvailablePagePlatformPredicate, AvailablePageSchedulePredicate, AvailablePagePredicate, MarketplaceThemeSchema, MarketplaceTheme, PaymentInfo, ContactInfo, CatalogSize, MarketplaceThemeImages, CarouselItem, ExploreInfo, Feature, FeatureItem, Highlight, Variation, Documentation, Comments, ThemeRejectionReasons, RejectedMessages, ThemeReviewRequestMessage, AllAvailablePageSchema, PaginationSchema, BlitzkriegApiErrorSchema, BlitzkriegInternalServerErrorSchema, ThemesSchema, Font, FontVariants, FontVariant, Config, ThemeConfiguration, OverlayPopup, DividerStrokeHighlight, UserAlerts, OrderTracking, ThemeConfigListPage, ThemeConfigListPageSettingsProps, CustomConfig, CustomProps, ThemeMeta, ThemePayment, Release, Images, Assets, UMDJs, CommonJS, CSS, SectionItem, GlobalSchema, Prop, Preset, Page, SectionProps, SectionPreset, ImagePickerProp, UrlProp, BlockProps, TextProp, CheckboxProp, RangeProp, Section, Block, Predicate, Screen, ThemeUserSchema, Route, UpdateThemeRequestBody, CreateNewTheme, ActionPage, PageType };
|
|
651
685
|
}
|
|
652
686
|
/** @returns {AvailablePageSchema} */
|
|
653
687
|
declare function AvailablePageSchema(): AvailablePageSchema;
|
|
@@ -671,9 +705,9 @@ type AvailablePageSchema = {
|
|
|
671
705
|
*/
|
|
672
706
|
updated_at?: string;
|
|
673
707
|
};
|
|
674
|
-
/** @returns {
|
|
675
|
-
declare function
|
|
676
|
-
type
|
|
708
|
+
/** @returns {DraftExtensionSection} */
|
|
709
|
+
declare function DraftExtensionSection(): DraftExtensionSection;
|
|
710
|
+
type DraftExtensionSection = {
|
|
677
711
|
extension_id?: string;
|
|
678
712
|
bundle_name?: string;
|
|
679
713
|
organization_id?: string;
|
|
@@ -682,14 +716,14 @@ type DraftExtensionSectionRequest = {
|
|
|
682
716
|
type?: string;
|
|
683
717
|
status?: string;
|
|
684
718
|
};
|
|
685
|
-
/** @returns {
|
|
686
|
-
declare function
|
|
687
|
-
type
|
|
688
|
-
sections?:
|
|
719
|
+
/** @returns {ExtensionSectionDraft} */
|
|
720
|
+
declare function ExtensionSectionDraft(): ExtensionSectionDraft;
|
|
721
|
+
type ExtensionSectionDraft = {
|
|
722
|
+
sections?: Sections;
|
|
689
723
|
};
|
|
690
|
-
/** @returns {
|
|
691
|
-
declare function
|
|
692
|
-
type
|
|
724
|
+
/** @returns {Sections} */
|
|
725
|
+
declare function Sections(): Sections;
|
|
726
|
+
type Sections = {
|
|
693
727
|
acknowledged?: boolean;
|
|
694
728
|
matched_count?: number;
|
|
695
729
|
modified_count?: number;
|
|
@@ -718,9 +752,9 @@ type AssetsExtension = {
|
|
|
718
752
|
js?: string;
|
|
719
753
|
css?: string;
|
|
720
754
|
};
|
|
721
|
-
/** @returns {
|
|
722
|
-
declare function
|
|
723
|
-
type
|
|
755
|
+
/** @returns {PublishExtensionSection} */
|
|
756
|
+
declare function PublishExtensionSection(): PublishExtensionSection;
|
|
757
|
+
type PublishExtensionSection = {
|
|
724
758
|
extension_id?: string;
|
|
725
759
|
bundle_name?: string;
|
|
726
760
|
organization_id?: string;
|
|
@@ -729,9 +763,9 @@ type PublishExtensionSectionRequest = {
|
|
|
729
763
|
type?: string;
|
|
730
764
|
status?: string;
|
|
731
765
|
};
|
|
732
|
-
/** @returns {
|
|
733
|
-
declare function
|
|
734
|
-
type
|
|
766
|
+
/** @returns {PreviewExtension} */
|
|
767
|
+
declare function PreviewExtension(): PreviewExtension;
|
|
768
|
+
type PreviewExtension = {
|
|
735
769
|
/**
|
|
736
770
|
* - Application ID
|
|
737
771
|
*/
|
|
@@ -741,15 +775,15 @@ type ExtensionPreviewRequest = {
|
|
|
741
775
|
*/
|
|
742
776
|
section_preview_hash?: string;
|
|
743
777
|
};
|
|
744
|
-
/** @returns {
|
|
745
|
-
declare function
|
|
746
|
-
type
|
|
778
|
+
/** @returns {ExtensionPreview} */
|
|
779
|
+
declare function ExtensionPreview(): ExtensionPreview;
|
|
780
|
+
type ExtensionPreview = {
|
|
747
781
|
message?: string;
|
|
748
782
|
};
|
|
749
|
-
/** @returns {
|
|
750
|
-
declare function
|
|
751
|
-
type
|
|
752
|
-
sections?:
|
|
783
|
+
/** @returns {ExtensionSectionPublish} */
|
|
784
|
+
declare function ExtensionSectionPublish(): ExtensionSectionPublish;
|
|
785
|
+
type ExtensionSectionPublish = {
|
|
786
|
+
sections?: Sections;
|
|
753
787
|
};
|
|
754
788
|
/** @returns {AvailablePageSectionMetaAttributes} */
|
|
755
789
|
declare function AvailablePageSectionMetaAttributes(): AvailablePageSectionMetaAttributes;
|
|
@@ -809,7 +843,25 @@ type AvailablePageSchemaSections = {
|
|
|
809
843
|
blocks?: any[];
|
|
810
844
|
preset?: any;
|
|
811
845
|
predicate?: AvailablePagePredicate;
|
|
812
|
-
|
|
846
|
+
__source?: SectionSource;
|
|
847
|
+
};
|
|
848
|
+
/** @returns {SectionSource} */
|
|
849
|
+
declare function SectionSource(): SectionSource;
|
|
850
|
+
type SectionSource = {
|
|
851
|
+
/**
|
|
852
|
+
* - The source id specifying the source of the section.
|
|
853
|
+
*/
|
|
854
|
+
id?: string;
|
|
855
|
+
/**
|
|
856
|
+
* - This is the extension binding name
|
|
857
|
+
* containing this section.
|
|
858
|
+
*/
|
|
859
|
+
bundle_name?: string;
|
|
860
|
+
/**
|
|
861
|
+
* - This is source type. It will either be
|
|
862
|
+
* themeBundle or extension.
|
|
863
|
+
*/
|
|
864
|
+
type?: string;
|
|
813
865
|
};
|
|
814
866
|
/** @returns {AvailablePageScreenPredicate} */
|
|
815
867
|
declare function AvailablePageScreenPredicate(): AvailablePageScreenPredicate;
|
|
@@ -1134,7 +1186,7 @@ type ThemeRejectionReasons = {
|
|
|
1134
1186
|
* - The status of the theme (e.g., rejected)
|
|
1135
1187
|
*/
|
|
1136
1188
|
status: string;
|
|
1137
|
-
rejection_reasons:
|
|
1189
|
+
rejection_reasons: RejectedMessages;
|
|
1138
1190
|
/**
|
|
1139
1191
|
* - The date and time when the theme rejection
|
|
1140
1192
|
* reasons object was created
|
|
@@ -1146,6 +1198,25 @@ type ThemeRejectionReasons = {
|
|
|
1146
1198
|
*/
|
|
1147
1199
|
updated_at?: string;
|
|
1148
1200
|
};
|
|
1201
|
+
/** @returns {RejectedMessages} */
|
|
1202
|
+
declare function RejectedMessages(): RejectedMessages;
|
|
1203
|
+
type RejectedMessages = {
|
|
1204
|
+
theme_file?: ThemeReviewRequestMessage;
|
|
1205
|
+
theme_details?: ThemeReviewRequestMessage;
|
|
1206
|
+
theme_value_proposition?: ThemeReviewRequestMessage;
|
|
1207
|
+
theme_attributes?: ThemeReviewRequestMessage;
|
|
1208
|
+
theme_variations?: ThemeReviewRequestMessage;
|
|
1209
|
+
theme_docs?: ThemeReviewRequestMessage;
|
|
1210
|
+
theme_review?: ThemeReviewRequestMessage;
|
|
1211
|
+
};
|
|
1212
|
+
/** @returns {ThemeReviewRequestMessage} */
|
|
1213
|
+
declare function ThemeReviewRequestMessage(): ThemeReviewRequestMessage;
|
|
1214
|
+
type ThemeReviewRequestMessage = {
|
|
1215
|
+
/**
|
|
1216
|
+
* - Message Explaining what the issue is
|
|
1217
|
+
*/
|
|
1218
|
+
message?: string;
|
|
1219
|
+
};
|
|
1149
1220
|
/** @returns {AllAvailablePageSchema} */
|
|
1150
1221
|
declare function AllAvailablePageSchema(): AllAvailablePageSchema;
|
|
1151
1222
|
type AllAvailablePageSchema = {
|
|
@@ -1572,7 +1643,35 @@ type SectionItem = {
|
|
|
1572
1643
|
/** @returns {GlobalSchema} */
|
|
1573
1644
|
declare function GlobalSchema(): GlobalSchema;
|
|
1574
1645
|
type GlobalSchema = {
|
|
1575
|
-
props?:
|
|
1646
|
+
props?: Prop[];
|
|
1647
|
+
};
|
|
1648
|
+
/** @returns {Prop} */
|
|
1649
|
+
declare function Prop(): Prop;
|
|
1650
|
+
type Prop = {
|
|
1651
|
+
/**
|
|
1652
|
+
* - The type of the property
|
|
1653
|
+
*/
|
|
1654
|
+
type?: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* - The category of the property
|
|
1657
|
+
*/
|
|
1658
|
+
category?: string;
|
|
1659
|
+
/**
|
|
1660
|
+
* - The value of the property
|
|
1661
|
+
*/
|
|
1662
|
+
value?: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* - The ID of the property
|
|
1665
|
+
*/
|
|
1666
|
+
id?: string;
|
|
1667
|
+
/**
|
|
1668
|
+
* - The label of the property
|
|
1669
|
+
*/
|
|
1670
|
+
label?: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* - Additional information about the property
|
|
1673
|
+
*/
|
|
1674
|
+
info?: string;
|
|
1576
1675
|
};
|
|
1577
1676
|
/** @returns {Preset} */
|
|
1578
1677
|
declare function Preset(): Preset;
|
|
@@ -1799,4 +1898,4 @@ type ActionPage = {
|
|
|
1799
1898
|
* @returns {PageType}
|
|
1800
1899
|
*/
|
|
1801
1900
|
declare function PageType(): PageType;
|
|
1802
|
-
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-
|
|
1901
|
+
type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-email" | "profile-phone" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us" | "single-page-checkout" | "request-reattempt" | "files";
|