@gofynd/fdk-client-javascript 1.6.4 → 3.0.0-beta.1
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 +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4103 -9109
- package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -20,7 +20,7 @@ class Theme {
|
|
|
20
20
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
21
21
|
* @returns {Promise<ThemePartnerModel.AllAvailablePageSchema>} - Success response
|
|
22
22
|
* @name getAllPages
|
|
23
|
-
* @summary: Get all pages
|
|
23
|
+
* @summary: Get all pages.
|
|
24
24
|
* @description: Retrieve a list of all pages available in the partner server setup. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getAllPages/).
|
|
25
25
|
*/
|
|
26
26
|
async getAllPages(
|
|
@@ -509,7 +509,7 @@ class Theme {
|
|
|
509
509
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
510
510
|
* @returns {Promise<ThemePartnerModel.ThemesSchema[]>} - Success response
|
|
511
511
|
* @name getApplicationThemes
|
|
512
|
-
* @summary: Get application themes
|
|
512
|
+
* @summary: Get application themes.
|
|
513
513
|
* @description: Retrieve a list of themes available for the partner server application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getApplicationThemes/).
|
|
514
514
|
*/
|
|
515
515
|
async getApplicationThemes(
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -743,7 +743,7 @@ class Theme {
|
|
|
743
743
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
744
744
|
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
745
745
|
* @name deleteTheme
|
|
746
|
-
* @summary: Delete theme
|
|
746
|
+
* @summary: Delete theme.
|
|
747
747
|
* @description: Remove a theme from the partner server configurations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/deleteTheme/).
|
|
748
748
|
*/
|
|
749
749
|
async deleteTheme(
|
|
@@ -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,
|
|
@@ -1370,11 +1370,89 @@ class Theme {
|
|
|
1370
1370
|
return response;
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
1373
|
+
/**
|
|
1374
|
+
* @param {ThemePartnerValidator.GetThemeRejectionReasonsParam} arg - Arg object.
|
|
1375
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1376
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1377
|
+
* @returns {Promise<ThemePartnerModel.ThemeRejectionReasons>} - Success response
|
|
1378
|
+
* @name getThemeRejectionReasons
|
|
1379
|
+
* @summary: Get theme rejection reasons.
|
|
1380
|
+
* @description: Retrieve reasons for the rejection of themes within partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getThemeRejectionReasons/).
|
|
1381
|
+
*/
|
|
1382
|
+
async getThemeRejectionReasons(
|
|
1383
|
+
{ themeId, requestHeaders } = { requestHeaders: {} },
|
|
1384
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1385
|
+
) {
|
|
1386
|
+
const { error } = ThemePartnerValidator.getThemeRejectionReasons().validate(
|
|
1387
|
+
{
|
|
1388
|
+
themeId,
|
|
1389
|
+
},
|
|
1390
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1391
|
+
);
|
|
1392
|
+
if (error) {
|
|
1393
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1397
|
+
const {
|
|
1398
|
+
error: warrning,
|
|
1399
|
+
} = ThemePartnerValidator.getThemeRejectionReasons().validate(
|
|
1400
|
+
{
|
|
1401
|
+
themeId,
|
|
1402
|
+
},
|
|
1403
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1404
|
+
);
|
|
1405
|
+
if (warrning) {
|
|
1406
|
+
Logger({
|
|
1407
|
+
level: "WARN",
|
|
1408
|
+
message: `Parameter Validation warrnings for partner > Theme > getThemeRejectionReasons \n ${warrning}`,
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
const query_params = {};
|
|
1413
|
+
|
|
1414
|
+
const response = await PartnerAPIClient.execute(
|
|
1415
|
+
this.config,
|
|
1416
|
+
"get",
|
|
1417
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/theme/${themeId}/reasons`,
|
|
1418
|
+
query_params,
|
|
1419
|
+
undefined,
|
|
1420
|
+
requestHeaders,
|
|
1421
|
+
{ responseHeaders }
|
|
1422
|
+
);
|
|
1423
|
+
|
|
1424
|
+
let responseData = response;
|
|
1425
|
+
if (responseHeaders) {
|
|
1426
|
+
responseData = response[0];
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
const {
|
|
1430
|
+
error: res_error,
|
|
1431
|
+
} = ThemePartnerModel.ThemeRejectionReasons().validate(responseData, {
|
|
1432
|
+
abortEarly: false,
|
|
1433
|
+
allowUnknown: true,
|
|
1434
|
+
});
|
|
1435
|
+
|
|
1436
|
+
if (res_error) {
|
|
1437
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1438
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1439
|
+
} else {
|
|
1440
|
+
Logger({
|
|
1441
|
+
level: "WARN",
|
|
1442
|
+
message: `Response Validation Warnings for partner > Theme > getThemeRejectionReasons \n ${res_error}`,
|
|
1443
|
+
});
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
return response;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1373
1450
|
/**
|
|
1374
1451
|
* @param {ThemePartnerValidator.CreateExtensionSectionDraftParam} arg - Arg object.
|
|
1375
1452
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1376
1453
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1377
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1454
|
+
* @returns {Promise<ThemePartnerModel.DraftExtensionSectionResponse>} -
|
|
1455
|
+
* Success response
|
|
1378
1456
|
* @name createExtensionSectionDraft
|
|
1379
1457
|
* @summary: Draft extension section
|
|
1380
1458
|
* @description: Create a new draft for an extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createExtensionSectionDraft/).
|
|
@@ -1432,7 +1510,89 @@ class Theme {
|
|
|
1432
1510
|
|
|
1433
1511
|
const {
|
|
1434
1512
|
error: res_error,
|
|
1435
|
-
} = ThemePartnerModel.
|
|
1513
|
+
} = ThemePartnerModel.DraftExtensionSectionResponse().validate(
|
|
1514
|
+
responseData,
|
|
1515
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1516
|
+
);
|
|
1517
|
+
|
|
1518
|
+
if (res_error) {
|
|
1519
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1520
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1521
|
+
} else {
|
|
1522
|
+
Logger({
|
|
1523
|
+
level: "WARN",
|
|
1524
|
+
message: `Response Validation Warnings for partner > Theme > createExtensionSectionDraft \n ${res_error}`,
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
return response;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* @param {ThemePartnerValidator.GetExtensionbindingParam} arg - Arg object.
|
|
1534
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1535
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1536
|
+
* @returns {Promise<ThemePartnerModel.ExtensionBinding>} - Success response
|
|
1537
|
+
* @name getExtensionbinding
|
|
1538
|
+
* @summary: Get extension binding
|
|
1539
|
+
* @description: Get the details for extension binding. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getExtensionbinding/).
|
|
1540
|
+
*/
|
|
1541
|
+
async getExtensionbinding(
|
|
1542
|
+
{ extensionId, bundleName, type, requestHeaders } = { requestHeaders: {} },
|
|
1543
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1544
|
+
) {
|
|
1545
|
+
const { error } = ThemePartnerValidator.getExtensionbinding().validate(
|
|
1546
|
+
{
|
|
1547
|
+
extensionId,
|
|
1548
|
+
bundleName,
|
|
1549
|
+
type,
|
|
1550
|
+
},
|
|
1551
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1552
|
+
);
|
|
1553
|
+
if (error) {
|
|
1554
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1558
|
+
const {
|
|
1559
|
+
error: warrning,
|
|
1560
|
+
} = ThemePartnerValidator.getExtensionbinding().validate(
|
|
1561
|
+
{
|
|
1562
|
+
extensionId,
|
|
1563
|
+
bundleName,
|
|
1564
|
+
type,
|
|
1565
|
+
},
|
|
1566
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1567
|
+
);
|
|
1568
|
+
if (warrning) {
|
|
1569
|
+
Logger({
|
|
1570
|
+
level: "WARN",
|
|
1571
|
+
message: `Parameter Validation warrnings for partner > Theme > getExtensionbinding \n ${warrning}`,
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
const query_params = {};
|
|
1576
|
+
query_params["type"] = type;
|
|
1577
|
+
|
|
1578
|
+
const response = await PartnerAPIClient.execute(
|
|
1579
|
+
this.config,
|
|
1580
|
+
"get",
|
|
1581
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/extension-section/${extensionId}/${bundleName}`,
|
|
1582
|
+
query_params,
|
|
1583
|
+
undefined,
|
|
1584
|
+
requestHeaders,
|
|
1585
|
+
{ responseHeaders }
|
|
1586
|
+
);
|
|
1587
|
+
|
|
1588
|
+
let responseData = response;
|
|
1589
|
+
if (responseHeaders) {
|
|
1590
|
+
responseData = response[0];
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
const {
|
|
1594
|
+
error: res_error,
|
|
1595
|
+
} = ThemePartnerModel.ExtensionBinding().validate(responseData, {
|
|
1436
1596
|
abortEarly: false,
|
|
1437
1597
|
allowUnknown: true,
|
|
1438
1598
|
});
|
|
@@ -1443,7 +1603,7 @@ class Theme {
|
|
|
1443
1603
|
} else {
|
|
1444
1604
|
Logger({
|
|
1445
1605
|
level: "WARN",
|
|
1446
|
-
message: `Response Validation Warnings for partner > Theme >
|
|
1606
|
+
message: `Response Validation Warnings for partner > Theme > getExtensionbinding \n ${res_error}`,
|
|
1447
1607
|
});
|
|
1448
1608
|
}
|
|
1449
1609
|
}
|
|
@@ -1455,7 +1615,8 @@ class Theme {
|
|
|
1455
1615
|
* @param {ThemePartnerValidator.PublishExtensionSectionsParam} arg - Arg object.
|
|
1456
1616
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1457
1617
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1458
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1618
|
+
* @returns {Promise<ThemePartnerModel.PublishExtensionSectionResponse>} -
|
|
1619
|
+
* Success response
|
|
1459
1620
|
* @name publishExtensionSections
|
|
1460
1621
|
* @summary: Publish an extension section
|
|
1461
1622
|
* @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/publishExtensionSections/).
|
|
@@ -1511,10 +1672,10 @@ class Theme {
|
|
|
1511
1672
|
|
|
1512
1673
|
const {
|
|
1513
1674
|
error: res_error,
|
|
1514
|
-
} = ThemePartnerModel.
|
|
1515
|
-
|
|
1516
|
-
allowUnknown: true
|
|
1517
|
-
|
|
1675
|
+
} = ThemePartnerModel.PublishExtensionSectionResponse().validate(
|
|
1676
|
+
responseData,
|
|
1677
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1678
|
+
);
|
|
1518
1679
|
|
|
1519
1680
|
if (res_error) {
|
|
1520
1681
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1534,7 +1695,7 @@ class Theme {
|
|
|
1534
1695
|
* @param {ThemePartnerValidator.ApplyExtensionPreviewParam} arg - Arg object.
|
|
1535
1696
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1536
1697
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1537
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1698
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
|
|
1538
1699
|
* @name applyExtensionPreview
|
|
1539
1700
|
* @summary: Start a Preview of Extension Section
|
|
1540
1701
|
* @description: Use this API to start a local session for previewing the extension section binding. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/applyExtensionPreview/).
|
|
@@ -1590,7 +1751,7 @@ class Theme {
|
|
|
1590
1751
|
|
|
1591
1752
|
const {
|
|
1592
1753
|
error: res_error,
|
|
1593
|
-
} = ThemePartnerModel.
|
|
1754
|
+
} = ThemePartnerModel.ExtensionPreviewResponse().validate(responseData, {
|
|
1594
1755
|
abortEarly: false,
|
|
1595
1756
|
allowUnknown: true,
|
|
1596
1757
|
});
|
|
@@ -1613,7 +1774,7 @@ class Theme {
|
|
|
1613
1774
|
* @param {ThemePartnerValidator.RemoveExtensionPreviewParam} arg - Arg object.
|
|
1614
1775
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1615
1776
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1616
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1777
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreviewResponse>} - Success response
|
|
1617
1778
|
* @name removeExtensionPreview
|
|
1618
1779
|
* @summary: Close a Preview of Extension Section
|
|
1619
1780
|
* @description: Use this API to close a local session for previewing the extension section binding - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/removeExtensionPreview/).
|
|
@@ -1669,7 +1830,7 @@ class Theme {
|
|
|
1669
1830
|
|
|
1670
1831
|
const {
|
|
1671
1832
|
error: res_error,
|
|
1672
|
-
} = ThemePartnerModel.
|
|
1833
|
+
} = ThemePartnerModel.ExtensionPreviewResponse().validate(responseData, {
|
|
1673
1834
|
abortEarly: false,
|
|
1674
1835
|
allowUnknown: true,
|
|
1675
1836
|
});
|
|
@@ -1689,21 +1850,23 @@ class Theme {
|
|
|
1689
1850
|
}
|
|
1690
1851
|
|
|
1691
1852
|
/**
|
|
1692
|
-
* @param {ThemePartnerValidator.
|
|
1853
|
+
* @param {ThemePartnerValidator.GetThemeVersionsParam} arg - Arg object.
|
|
1693
1854
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1694
1855
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1695
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1696
|
-
* @name
|
|
1697
|
-
* @summary: Get theme
|
|
1698
|
-
* @description: Retrieve
|
|
1856
|
+
* @returns {Promise<ThemePartnerModel.MarketplaceThemeSchema>} - Success response
|
|
1857
|
+
* @name getThemeVersions
|
|
1858
|
+
* @summary: Get theme versions
|
|
1859
|
+
* @description: Retrieve a list of versions available for a theme within partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getThemeVersions/).
|
|
1699
1860
|
*/
|
|
1700
|
-
async
|
|
1701
|
-
{
|
|
1861
|
+
async getThemeVersions(
|
|
1862
|
+
{ themeSlug, pageSize, pageNo, requestHeaders } = { requestHeaders: {} },
|
|
1702
1863
|
{ responseHeaders } = { responseHeaders: false }
|
|
1703
1864
|
) {
|
|
1704
|
-
const { error } = ThemePartnerValidator.
|
|
1865
|
+
const { error } = ThemePartnerValidator.getThemeVersions().validate(
|
|
1705
1866
|
{
|
|
1706
|
-
|
|
1867
|
+
themeSlug,
|
|
1868
|
+
pageSize,
|
|
1869
|
+
pageNo,
|
|
1707
1870
|
},
|
|
1708
1871
|
{ abortEarly: false, allowUnknown: true }
|
|
1709
1872
|
);
|
|
@@ -1714,25 +1877,29 @@ class Theme {
|
|
|
1714
1877
|
// Showing warrnings if extra unknown parameters are found
|
|
1715
1878
|
const {
|
|
1716
1879
|
error: warrning,
|
|
1717
|
-
} = ThemePartnerValidator.
|
|
1880
|
+
} = ThemePartnerValidator.getThemeVersions().validate(
|
|
1718
1881
|
{
|
|
1719
|
-
|
|
1882
|
+
themeSlug,
|
|
1883
|
+
pageSize,
|
|
1884
|
+
pageNo,
|
|
1720
1885
|
},
|
|
1721
1886
|
{ abortEarly: false, allowUnknown: false }
|
|
1722
1887
|
);
|
|
1723
1888
|
if (warrning) {
|
|
1724
1889
|
Logger({
|
|
1725
1890
|
level: "WARN",
|
|
1726
|
-
message: `Parameter Validation warrnings for partner > Theme >
|
|
1891
|
+
message: `Parameter Validation warrnings for partner > Theme > getThemeVersions \n ${warrning}`,
|
|
1727
1892
|
});
|
|
1728
1893
|
}
|
|
1729
1894
|
|
|
1730
1895
|
const query_params = {};
|
|
1896
|
+
query_params["page_size"] = pageSize;
|
|
1897
|
+
query_params["page_no"] = pageNo;
|
|
1731
1898
|
|
|
1732
1899
|
const response = await PartnerAPIClient.execute(
|
|
1733
1900
|
this.config,
|
|
1734
1901
|
"get",
|
|
1735
|
-
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/theme/${
|
|
1902
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/theme/${themeSlug}/versions`,
|
|
1736
1903
|
query_params,
|
|
1737
1904
|
undefined,
|
|
1738
1905
|
requestHeaders,
|
|
@@ -1746,7 +1913,7 @@ class Theme {
|
|
|
1746
1913
|
|
|
1747
1914
|
const {
|
|
1748
1915
|
error: res_error,
|
|
1749
|
-
} = ThemePartnerModel.
|
|
1916
|
+
} = ThemePartnerModel.MarketplaceThemeSchema().validate(responseData, {
|
|
1750
1917
|
abortEarly: false,
|
|
1751
1918
|
allowUnknown: true,
|
|
1752
1919
|
});
|
|
@@ -1757,7 +1924,7 @@ class Theme {
|
|
|
1757
1924
|
} else {
|
|
1758
1925
|
Logger({
|
|
1759
1926
|
level: "WARN",
|
|
1760
|
-
message: `Response Validation Warnings for partner > Theme >
|
|
1927
|
+
message: `Response Validation Warnings for partner > Theme > getThemeVersions \n ${res_error}`,
|
|
1761
1928
|
});
|
|
1762
1929
|
}
|
|
1763
1930
|
}
|
|
@@ -1766,23 +1933,104 @@ class Theme {
|
|
|
1766
1933
|
}
|
|
1767
1934
|
|
|
1768
1935
|
/**
|
|
1769
|
-
* @param {ThemePartnerValidator.
|
|
1936
|
+
* @param {ThemePartnerValidator.CreateThemeParam} arg - Arg object.
|
|
1770
1937
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1771
1938
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1772
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1773
|
-
* @name
|
|
1774
|
-
* @summary:
|
|
1775
|
-
* @description:
|
|
1939
|
+
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
1940
|
+
* @name createTheme
|
|
1941
|
+
* @summary: Create a new theme
|
|
1942
|
+
* @description: Themes improve the look and appearance of a website. Use this API to create a theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/createTheme/).
|
|
1776
1943
|
*/
|
|
1777
|
-
async
|
|
1778
|
-
{
|
|
1944
|
+
async createTheme(
|
|
1945
|
+
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
1779
1946
|
{ responseHeaders } = { responseHeaders: false }
|
|
1780
1947
|
) {
|
|
1781
|
-
const { error } = ThemePartnerValidator.
|
|
1948
|
+
const { error } = ThemePartnerValidator.createTheme().validate(
|
|
1782
1949
|
{
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1950
|
+
companyId,
|
|
1951
|
+
applicationId,
|
|
1952
|
+
body,
|
|
1953
|
+
},
|
|
1954
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1955
|
+
);
|
|
1956
|
+
if (error) {
|
|
1957
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1961
|
+
const { error: warrning } = ThemePartnerValidator.createTheme().validate(
|
|
1962
|
+
{
|
|
1963
|
+
companyId,
|
|
1964
|
+
applicationId,
|
|
1965
|
+
|
|
1966
|
+
body,
|
|
1967
|
+
},
|
|
1968
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1969
|
+
);
|
|
1970
|
+
if (warrning) {
|
|
1971
|
+
Logger({
|
|
1972
|
+
level: "WARN",
|
|
1973
|
+
message: `Parameter Validation warrnings for partner > Theme > createTheme \n ${warrning}`,
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
const query_params = {};
|
|
1978
|
+
|
|
1979
|
+
const response = await PartnerAPIClient.execute(
|
|
1980
|
+
this.config,
|
|
1981
|
+
"post",
|
|
1982
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}`,
|
|
1983
|
+
query_params,
|
|
1984
|
+
body,
|
|
1985
|
+
requestHeaders,
|
|
1986
|
+
{ responseHeaders }
|
|
1987
|
+
);
|
|
1988
|
+
|
|
1989
|
+
let responseData = response;
|
|
1990
|
+
if (responseHeaders) {
|
|
1991
|
+
responseData = response[0];
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
const {
|
|
1995
|
+
error: res_error,
|
|
1996
|
+
} = ThemePartnerModel.ThemesSchema().validate(responseData, {
|
|
1997
|
+
abortEarly: false,
|
|
1998
|
+
allowUnknown: true,
|
|
1999
|
+
});
|
|
2000
|
+
|
|
2001
|
+
if (res_error) {
|
|
2002
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2003
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2004
|
+
} else {
|
|
2005
|
+
Logger({
|
|
2006
|
+
level: "WARN",
|
|
2007
|
+
message: `Response Validation Warnings for partner > Theme > createTheme \n ${res_error}`,
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
return response;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* @param {ThemePartnerValidator.GetOrgnaizationDefaultThemeParam} arg - Arg object.
|
|
2017
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2018
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
2019
|
+
* @returns {Promise<ThemePartnerModel.MarketplaceTheme>} - Success response
|
|
2020
|
+
* @name getOrgnaizationDefaultTheme
|
|
2021
|
+
* @summary: Get organization default theme details.
|
|
2022
|
+
* @description: Obtain detailed information about a theme within partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getOrgnaizationDefaultTheme/).
|
|
2023
|
+
*/
|
|
2024
|
+
async getOrgnaizationDefaultTheme(
|
|
2025
|
+
{ companyId, applicationId, requestHeaders } = { requestHeaders: {} },
|
|
2026
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2027
|
+
) {
|
|
2028
|
+
const {
|
|
2029
|
+
error,
|
|
2030
|
+
} = ThemePartnerValidator.getOrgnaizationDefaultTheme().validate(
|
|
2031
|
+
{
|
|
2032
|
+
companyId,
|
|
2033
|
+
applicationId,
|
|
1786
2034
|
},
|
|
1787
2035
|
{ abortEarly: false, allowUnknown: true }
|
|
1788
2036
|
);
|
|
@@ -1793,29 +2041,26 @@ class Theme {
|
|
|
1793
2041
|
// Showing warrnings if extra unknown parameters are found
|
|
1794
2042
|
const {
|
|
1795
2043
|
error: warrning,
|
|
1796
|
-
} = ThemePartnerValidator.
|
|
2044
|
+
} = ThemePartnerValidator.getOrgnaizationDefaultTheme().validate(
|
|
1797
2045
|
{
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
pageNo,
|
|
2046
|
+
companyId,
|
|
2047
|
+
applicationId,
|
|
1801
2048
|
},
|
|
1802
2049
|
{ abortEarly: false, allowUnknown: false }
|
|
1803
2050
|
);
|
|
1804
2051
|
if (warrning) {
|
|
1805
2052
|
Logger({
|
|
1806
2053
|
level: "WARN",
|
|
1807
|
-
message: `Parameter Validation warrnings for partner > Theme >
|
|
2054
|
+
message: `Parameter Validation warrnings for partner > Theme > getOrgnaizationDefaultTheme \n ${warrning}`,
|
|
1808
2055
|
});
|
|
1809
2056
|
}
|
|
1810
2057
|
|
|
1811
2058
|
const query_params = {};
|
|
1812
|
-
query_params["page_size"] = pageSize;
|
|
1813
|
-
query_params["page_no"] = pageNo;
|
|
1814
2059
|
|
|
1815
2060
|
const response = await PartnerAPIClient.execute(
|
|
1816
2061
|
this.config,
|
|
1817
2062
|
"get",
|
|
1818
|
-
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/
|
|
2063
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/default_theme`,
|
|
1819
2064
|
query_params,
|
|
1820
2065
|
undefined,
|
|
1821
2066
|
requestHeaders,
|
|
@@ -1829,7 +2074,7 @@ class Theme {
|
|
|
1829
2074
|
|
|
1830
2075
|
const {
|
|
1831
2076
|
error: res_error,
|
|
1832
|
-
} = ThemePartnerModel.
|
|
2077
|
+
} = ThemePartnerModel.MarketplaceTheme().validate(responseData, {
|
|
1833
2078
|
abortEarly: false,
|
|
1834
2079
|
allowUnknown: true,
|
|
1835
2080
|
});
|
|
@@ -1840,7 +2085,7 @@ class Theme {
|
|
|
1840
2085
|
} else {
|
|
1841
2086
|
Logger({
|
|
1842
2087
|
level: "WARN",
|
|
1843
|
-
message: `Response Validation Warnings for partner > Theme >
|
|
2088
|
+
message: `Response Validation Warnings for partner > Theme > getOrgnaizationDefaultTheme \n ${res_error}`,
|
|
1844
2089
|
});
|
|
1845
2090
|
}
|
|
1846
2091
|
}
|
|
@@ -1849,23 +2094,25 @@ class Theme {
|
|
|
1849
2094
|
}
|
|
1850
2095
|
|
|
1851
2096
|
/**
|
|
1852
|
-
* @param {ThemePartnerValidator.
|
|
2097
|
+
* @param {ThemePartnerValidator.GetSystemPageParam} arg - Arg object.
|
|
1853
2098
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1854
2099
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1855
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1856
|
-
* @name
|
|
1857
|
-
* @summary:
|
|
1858
|
-
* @description:
|
|
2100
|
+
* @returns {Promise<ThemePartnerModel.DefaultPageSchema>} - Success response
|
|
2101
|
+
* @name getSystemPage
|
|
2102
|
+
* @summary: Get system page.
|
|
2103
|
+
* @description: Obtain detailed information about a system page within partner server organizations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getSystemPage/).
|
|
1859
2104
|
*/
|
|
1860
|
-
async
|
|
1861
|
-
{ companyId, applicationId,
|
|
2105
|
+
async getSystemPage(
|
|
2106
|
+
{ companyId, applicationId, pageValue, requestHeaders } = {
|
|
2107
|
+
requestHeaders: {},
|
|
2108
|
+
},
|
|
1862
2109
|
{ responseHeaders } = { responseHeaders: false }
|
|
1863
2110
|
) {
|
|
1864
|
-
const { error } = ThemePartnerValidator.
|
|
2111
|
+
const { error } = ThemePartnerValidator.getSystemPage().validate(
|
|
1865
2112
|
{
|
|
1866
2113
|
companyId,
|
|
1867
2114
|
applicationId,
|
|
1868
|
-
|
|
2115
|
+
pageValue,
|
|
1869
2116
|
},
|
|
1870
2117
|
{ abortEarly: false, allowUnknown: true }
|
|
1871
2118
|
);
|
|
@@ -1874,19 +2121,97 @@ class Theme {
|
|
|
1874
2121
|
}
|
|
1875
2122
|
|
|
1876
2123
|
// Showing warrnings if extra unknown parameters are found
|
|
1877
|
-
const { error: warrning } = ThemePartnerValidator.
|
|
2124
|
+
const { error: warrning } = ThemePartnerValidator.getSystemPage().validate(
|
|
1878
2125
|
{
|
|
1879
2126
|
companyId,
|
|
1880
2127
|
applicationId,
|
|
2128
|
+
pageValue,
|
|
2129
|
+
},
|
|
2130
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2131
|
+
);
|
|
2132
|
+
if (warrning) {
|
|
2133
|
+
Logger({
|
|
2134
|
+
level: "WARN",
|
|
2135
|
+
message: `Parameter Validation warrnings for partner > Theme > getSystemPage \n ${warrning}`,
|
|
2136
|
+
});
|
|
2137
|
+
}
|
|
1881
2138
|
|
|
1882
|
-
|
|
2139
|
+
const query_params = {};
|
|
2140
|
+
|
|
2141
|
+
const response = await PartnerAPIClient.execute(
|
|
2142
|
+
this.config,
|
|
2143
|
+
"get",
|
|
2144
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/page/${pageValue}/system`,
|
|
2145
|
+
query_params,
|
|
2146
|
+
undefined,
|
|
2147
|
+
requestHeaders,
|
|
2148
|
+
{ responseHeaders }
|
|
2149
|
+
);
|
|
2150
|
+
|
|
2151
|
+
let responseData = response;
|
|
2152
|
+
if (responseHeaders) {
|
|
2153
|
+
responseData = response[0];
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
const {
|
|
2157
|
+
error: res_error,
|
|
2158
|
+
} = ThemePartnerModel.DefaultPageSchema().validate(responseData, {
|
|
2159
|
+
abortEarly: false,
|
|
2160
|
+
allowUnknown: true,
|
|
2161
|
+
});
|
|
2162
|
+
|
|
2163
|
+
if (res_error) {
|
|
2164
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2165
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2166
|
+
} else {
|
|
2167
|
+
Logger({
|
|
2168
|
+
level: "WARN",
|
|
2169
|
+
message: `Response Validation Warnings for partner > Theme > getSystemPage \n ${res_error}`,
|
|
2170
|
+
});
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
return response;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
/**
|
|
2178
|
+
* @param {ThemePartnerValidator.GetAppliedThemeParam} arg - Arg object.
|
|
2179
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2180
|
+
* @param {import("../PartnerAPIClient").Options} - Options
|
|
2181
|
+
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
2182
|
+
* @name getAppliedTheme
|
|
2183
|
+
* @summary: Current theme.
|
|
2184
|
+
* @description: Gets the theme currently applied to the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/getAppliedTheme/).
|
|
2185
|
+
*/
|
|
2186
|
+
async getAppliedTheme(
|
|
2187
|
+
{ companyId, applicationId, requestHeaders } = { requestHeaders: {} },
|
|
2188
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2189
|
+
) {
|
|
2190
|
+
const { error } = ThemePartnerValidator.getAppliedTheme().validate(
|
|
2191
|
+
{
|
|
2192
|
+
companyId,
|
|
2193
|
+
applicationId,
|
|
2194
|
+
},
|
|
2195
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2196
|
+
);
|
|
2197
|
+
if (error) {
|
|
2198
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2202
|
+
const {
|
|
2203
|
+
error: warrning,
|
|
2204
|
+
} = ThemePartnerValidator.getAppliedTheme().validate(
|
|
2205
|
+
{
|
|
2206
|
+
companyId,
|
|
2207
|
+
applicationId,
|
|
1883
2208
|
},
|
|
1884
2209
|
{ abortEarly: false, allowUnknown: false }
|
|
1885
2210
|
);
|
|
1886
2211
|
if (warrning) {
|
|
1887
2212
|
Logger({
|
|
1888
2213
|
level: "WARN",
|
|
1889
|
-
message: `Parameter Validation warrnings for partner > Theme >
|
|
2214
|
+
message: `Parameter Validation warrnings for partner > Theme > getAppliedTheme \n ${warrning}`,
|
|
1890
2215
|
});
|
|
1891
2216
|
}
|
|
1892
2217
|
|
|
@@ -1894,10 +2219,10 @@ class Theme {
|
|
|
1894
2219
|
|
|
1895
2220
|
const response = await PartnerAPIClient.execute(
|
|
1896
2221
|
this.config,
|
|
1897
|
-
"
|
|
1898
|
-
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}`,
|
|
2222
|
+
"get",
|
|
2223
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/applied-theme`,
|
|
1899
2224
|
query_params,
|
|
1900
|
-
|
|
2225
|
+
undefined,
|
|
1901
2226
|
requestHeaders,
|
|
1902
2227
|
{ responseHeaders }
|
|
1903
2228
|
);
|
|
@@ -1920,7 +2245,7 @@ class Theme {
|
|
|
1920
2245
|
} else {
|
|
1921
2246
|
Logger({
|
|
1922
2247
|
level: "WARN",
|
|
1923
|
-
message: `Response Validation Warnings for partner > Theme >
|
|
2248
|
+
message: `Response Validation Warnings for partner > Theme > getAppliedTheme \n ${res_error}`,
|
|
1924
2249
|
});
|
|
1925
2250
|
}
|
|
1926
2251
|
}
|