@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- 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 +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- 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 +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- 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 +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- 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 +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- 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 +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- 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 +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -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/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- 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 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -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(
|
|
@@ -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(
|
|
@@ -1370,89 +1370,11 @@ 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
|
-
|
|
1450
1373
|
/**
|
|
1451
1374
|
* @param {ThemePartnerValidator.CreateExtensionSectionDraftParam} arg - Arg object.
|
|
1452
1375
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1453
1376
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1454
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1455
|
-
* Success response
|
|
1377
|
+
* @returns {Promise<ThemePartnerModel.ExtensionSectionDraft>} - Success response
|
|
1456
1378
|
* @name createExtensionSectionDraft
|
|
1457
1379
|
* @summary: Draft extension section
|
|
1458
1380
|
* @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/).
|
|
@@ -1510,89 +1432,7 @@ class Theme {
|
|
|
1510
1432
|
|
|
1511
1433
|
const {
|
|
1512
1434
|
error: res_error,
|
|
1513
|
-
} = ThemePartnerModel.
|
|
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, {
|
|
1435
|
+
} = ThemePartnerModel.ExtensionSectionDraft().validate(responseData, {
|
|
1596
1436
|
abortEarly: false,
|
|
1597
1437
|
allowUnknown: true,
|
|
1598
1438
|
});
|
|
@@ -1603,7 +1443,7 @@ class Theme {
|
|
|
1603
1443
|
} else {
|
|
1604
1444
|
Logger({
|
|
1605
1445
|
level: "WARN",
|
|
1606
|
-
message: `Response Validation Warnings for partner > Theme >
|
|
1446
|
+
message: `Response Validation Warnings for partner > Theme > createExtensionSectionDraft \n ${res_error}`,
|
|
1607
1447
|
});
|
|
1608
1448
|
}
|
|
1609
1449
|
}
|
|
@@ -1615,8 +1455,7 @@ class Theme {
|
|
|
1615
1455
|
* @param {ThemePartnerValidator.PublishExtensionSectionsParam} arg - Arg object.
|
|
1616
1456
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1617
1457
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1618
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1619
|
-
* Success response
|
|
1458
|
+
* @returns {Promise<ThemePartnerModel.ExtensionSectionPublish>} - Success response
|
|
1620
1459
|
* @name publishExtensionSections
|
|
1621
1460
|
* @summary: Publish an extension section
|
|
1622
1461
|
* @description: Publish a draft extension section within the specified organization. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/theme/publishExtensionSections/).
|
|
@@ -1672,10 +1511,10 @@ class Theme {
|
|
|
1672
1511
|
|
|
1673
1512
|
const {
|
|
1674
1513
|
error: res_error,
|
|
1675
|
-
} = ThemePartnerModel.
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
);
|
|
1514
|
+
} = ThemePartnerModel.ExtensionSectionPublish().validate(responseData, {
|
|
1515
|
+
abortEarly: false,
|
|
1516
|
+
allowUnknown: true,
|
|
1517
|
+
});
|
|
1679
1518
|
|
|
1680
1519
|
if (res_error) {
|
|
1681
1520
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1695,7 +1534,7 @@ class Theme {
|
|
|
1695
1534
|
* @param {ThemePartnerValidator.ApplyExtensionPreviewParam} arg - Arg object.
|
|
1696
1535
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1697
1536
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1698
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1537
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreview>} - Success response
|
|
1699
1538
|
* @name applyExtensionPreview
|
|
1700
1539
|
* @summary: Start a Preview of Extension Section
|
|
1701
1540
|
* @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/).
|
|
@@ -1751,7 +1590,7 @@ class Theme {
|
|
|
1751
1590
|
|
|
1752
1591
|
const {
|
|
1753
1592
|
error: res_error,
|
|
1754
|
-
} = ThemePartnerModel.
|
|
1593
|
+
} = ThemePartnerModel.ExtensionPreview().validate(responseData, {
|
|
1755
1594
|
abortEarly: false,
|
|
1756
1595
|
allowUnknown: true,
|
|
1757
1596
|
});
|
|
@@ -1774,7 +1613,7 @@ class Theme {
|
|
|
1774
1613
|
* @param {ThemePartnerValidator.RemoveExtensionPreviewParam} arg - Arg object.
|
|
1775
1614
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1776
1615
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1777
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1616
|
+
* @returns {Promise<ThemePartnerModel.ExtensionPreview>} - Success response
|
|
1778
1617
|
* @name removeExtensionPreview
|
|
1779
1618
|
* @summary: Close a Preview of Extension Section
|
|
1780
1619
|
* @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/).
|
|
@@ -1830,7 +1669,7 @@ class Theme {
|
|
|
1830
1669
|
|
|
1831
1670
|
const {
|
|
1832
1671
|
error: res_error,
|
|
1833
|
-
} = ThemePartnerModel.
|
|
1672
|
+
} = ThemePartnerModel.ExtensionPreview().validate(responseData, {
|
|
1834
1673
|
abortEarly: false,
|
|
1835
1674
|
allowUnknown: true,
|
|
1836
1675
|
});
|
|
@@ -1850,23 +1689,21 @@ class Theme {
|
|
|
1850
1689
|
}
|
|
1851
1690
|
|
|
1852
1691
|
/**
|
|
1853
|
-
* @param {ThemePartnerValidator.
|
|
1692
|
+
* @param {ThemePartnerValidator.GetThemeRejectionReasonsParam} arg - Arg object.
|
|
1854
1693
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1855
1694
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
1856
|
-
* @returns {Promise<ThemePartnerModel.
|
|
1857
|
-
* @name
|
|
1858
|
-
* @summary: Get theme
|
|
1859
|
-
* @description: Retrieve
|
|
1695
|
+
* @returns {Promise<ThemePartnerModel.ThemeRejectionReasons>} - Success response
|
|
1696
|
+
* @name getThemeRejectionReasons
|
|
1697
|
+
* @summary: Get theme rejection reasons
|
|
1698
|
+
* @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/).
|
|
1860
1699
|
*/
|
|
1861
|
-
async
|
|
1862
|
-
{
|
|
1700
|
+
async getThemeRejectionReasons(
|
|
1701
|
+
{ themeId, requestHeaders } = { requestHeaders: {} },
|
|
1863
1702
|
{ responseHeaders } = { responseHeaders: false }
|
|
1864
1703
|
) {
|
|
1865
|
-
const { error } = ThemePartnerValidator.
|
|
1704
|
+
const { error } = ThemePartnerValidator.getThemeRejectionReasons().validate(
|
|
1866
1705
|
{
|
|
1867
|
-
|
|
1868
|
-
pageSize,
|
|
1869
|
-
pageNo,
|
|
1706
|
+
themeId,
|
|
1870
1707
|
},
|
|
1871
1708
|
{ abortEarly: false, allowUnknown: true }
|
|
1872
1709
|
);
|
|
@@ -1877,29 +1714,25 @@ class Theme {
|
|
|
1877
1714
|
// Showing warrnings if extra unknown parameters are found
|
|
1878
1715
|
const {
|
|
1879
1716
|
error: warrning,
|
|
1880
|
-
} = ThemePartnerValidator.
|
|
1717
|
+
} = ThemePartnerValidator.getThemeRejectionReasons().validate(
|
|
1881
1718
|
{
|
|
1882
|
-
|
|
1883
|
-
pageSize,
|
|
1884
|
-
pageNo,
|
|
1719
|
+
themeId,
|
|
1885
1720
|
},
|
|
1886
1721
|
{ abortEarly: false, allowUnknown: false }
|
|
1887
1722
|
);
|
|
1888
1723
|
if (warrning) {
|
|
1889
1724
|
Logger({
|
|
1890
1725
|
level: "WARN",
|
|
1891
|
-
message: `Parameter Validation warrnings for partner > Theme >
|
|
1726
|
+
message: `Parameter Validation warrnings for partner > Theme > getThemeRejectionReasons \n ${warrning}`,
|
|
1892
1727
|
});
|
|
1893
1728
|
}
|
|
1894
1729
|
|
|
1895
1730
|
const query_params = {};
|
|
1896
|
-
query_params["page_size"] = pageSize;
|
|
1897
|
-
query_params["page_no"] = pageNo;
|
|
1898
1731
|
|
|
1899
1732
|
const response = await PartnerAPIClient.execute(
|
|
1900
1733
|
this.config,
|
|
1901
1734
|
"get",
|
|
1902
|
-
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/theme/${
|
|
1735
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/theme/${themeId}/reasons`,
|
|
1903
1736
|
query_params,
|
|
1904
1737
|
undefined,
|
|
1905
1738
|
requestHeaders,
|
|
@@ -1913,87 +1746,7 @@ class Theme {
|
|
|
1913
1746
|
|
|
1914
1747
|
const {
|
|
1915
1748
|
error: res_error,
|
|
1916
|
-
} = ThemePartnerModel.
|
|
1917
|
-
abortEarly: false,
|
|
1918
|
-
allowUnknown: true,
|
|
1919
|
-
});
|
|
1920
|
-
|
|
1921
|
-
if (res_error) {
|
|
1922
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
1923
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1924
|
-
} else {
|
|
1925
|
-
Logger({
|
|
1926
|
-
level: "WARN",
|
|
1927
|
-
message: `Response Validation Warnings for partner > Theme > getThemeVersions \n ${res_error}`,
|
|
1928
|
-
});
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
return response;
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
/**
|
|
1936
|
-
* @param {ThemePartnerValidator.CreateThemeParam} arg - Arg object.
|
|
1937
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1938
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
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/).
|
|
1943
|
-
*/
|
|
1944
|
-
async createTheme(
|
|
1945
|
-
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
1946
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1947
|
-
) {
|
|
1948
|
-
const { error } = ThemePartnerValidator.createTheme().validate(
|
|
1949
|
-
{
|
|
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, {
|
|
1749
|
+
} = ThemePartnerModel.ThemeRejectionReasons().validate(responseData, {
|
|
1997
1750
|
abortEarly: false,
|
|
1998
1751
|
allowUnknown: true,
|
|
1999
1752
|
});
|
|
@@ -2004,7 +1757,7 @@ class Theme {
|
|
|
2004
1757
|
} else {
|
|
2005
1758
|
Logger({
|
|
2006
1759
|
level: "WARN",
|
|
2007
|
-
message: `Response Validation Warnings for partner > Theme >
|
|
1760
|
+
message: `Response Validation Warnings for partner > Theme > getThemeRejectionReasons \n ${res_error}`,
|
|
2008
1761
|
});
|
|
2009
1762
|
}
|
|
2010
1763
|
}
|
|
@@ -2013,24 +1766,23 @@ class Theme {
|
|
|
2013
1766
|
}
|
|
2014
1767
|
|
|
2015
1768
|
/**
|
|
2016
|
-
* @param {ThemePartnerValidator.
|
|
1769
|
+
* @param {ThemePartnerValidator.GetThemeVersionsParam} arg - Arg object.
|
|
2017
1770
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2018
1771
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
2019
|
-
* @returns {Promise<ThemePartnerModel.
|
|
2020
|
-
* @name
|
|
2021
|
-
* @summary: Get
|
|
2022
|
-
* @description:
|
|
1772
|
+
* @returns {Promise<ThemePartnerModel.MarketplaceThemeSchema>} - Success response
|
|
1773
|
+
* @name getThemeVersions
|
|
1774
|
+
* @summary: Get theme versions
|
|
1775
|
+
* @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/).
|
|
2023
1776
|
*/
|
|
2024
|
-
async
|
|
2025
|
-
{
|
|
1777
|
+
async getThemeVersions(
|
|
1778
|
+
{ themeSlug, pageSize, pageNo, requestHeaders } = { requestHeaders: {} },
|
|
2026
1779
|
{ responseHeaders } = { responseHeaders: false }
|
|
2027
1780
|
) {
|
|
2028
|
-
const {
|
|
2029
|
-
error,
|
|
2030
|
-
} = ThemePartnerValidator.getOrgnaizationDefaultTheme().validate(
|
|
1781
|
+
const { error } = ThemePartnerValidator.getThemeVersions().validate(
|
|
2031
1782
|
{
|
|
2032
|
-
|
|
2033
|
-
|
|
1783
|
+
themeSlug,
|
|
1784
|
+
pageSize,
|
|
1785
|
+
pageNo,
|
|
2034
1786
|
},
|
|
2035
1787
|
{ abortEarly: false, allowUnknown: true }
|
|
2036
1788
|
);
|
|
@@ -2041,107 +1793,29 @@ class Theme {
|
|
|
2041
1793
|
// Showing warrnings if extra unknown parameters are found
|
|
2042
1794
|
const {
|
|
2043
1795
|
error: warrning,
|
|
2044
|
-
} = ThemePartnerValidator.
|
|
2045
|
-
{
|
|
2046
|
-
companyId,
|
|
2047
|
-
applicationId,
|
|
2048
|
-
},
|
|
2049
|
-
{ abortEarly: false, allowUnknown: false }
|
|
2050
|
-
);
|
|
2051
|
-
if (warrning) {
|
|
2052
|
-
Logger({
|
|
2053
|
-
level: "WARN",
|
|
2054
|
-
message: `Parameter Validation warrnings for partner > Theme > getOrgnaizationDefaultTheme \n ${warrning}`,
|
|
2055
|
-
});
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
const query_params = {};
|
|
2059
|
-
|
|
2060
|
-
const response = await PartnerAPIClient.execute(
|
|
2061
|
-
this.config,
|
|
2062
|
-
"get",
|
|
2063
|
-
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}/default_theme`,
|
|
2064
|
-
query_params,
|
|
2065
|
-
undefined,
|
|
2066
|
-
requestHeaders,
|
|
2067
|
-
{ responseHeaders }
|
|
2068
|
-
);
|
|
2069
|
-
|
|
2070
|
-
let responseData = response;
|
|
2071
|
-
if (responseHeaders) {
|
|
2072
|
-
responseData = response[0];
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
const {
|
|
2076
|
-
error: res_error,
|
|
2077
|
-
} = ThemePartnerModel.MarketplaceTheme().validate(responseData, {
|
|
2078
|
-
abortEarly: false,
|
|
2079
|
-
allowUnknown: true,
|
|
2080
|
-
});
|
|
2081
|
-
|
|
2082
|
-
if (res_error) {
|
|
2083
|
-
if (this.config.options.strictResponseCheck === true) {
|
|
2084
|
-
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2085
|
-
} else {
|
|
2086
|
-
Logger({
|
|
2087
|
-
level: "WARN",
|
|
2088
|
-
message: `Response Validation Warnings for partner > Theme > getOrgnaizationDefaultTheme \n ${res_error}`,
|
|
2089
|
-
});
|
|
2090
|
-
}
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
return response;
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
/**
|
|
2097
|
-
* @param {ThemePartnerValidator.GetSystemPageParam} arg - Arg object.
|
|
2098
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2099
|
-
* @param {import("../PartnerAPIClient").Options} - Options
|
|
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/).
|
|
2104
|
-
*/
|
|
2105
|
-
async getSystemPage(
|
|
2106
|
-
{ companyId, applicationId, pageValue, requestHeaders } = {
|
|
2107
|
-
requestHeaders: {},
|
|
2108
|
-
},
|
|
2109
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
2110
|
-
) {
|
|
2111
|
-
const { error } = ThemePartnerValidator.getSystemPage().validate(
|
|
2112
|
-
{
|
|
2113
|
-
companyId,
|
|
2114
|
-
applicationId,
|
|
2115
|
-
pageValue,
|
|
2116
|
-
},
|
|
2117
|
-
{ abortEarly: false, allowUnknown: true }
|
|
2118
|
-
);
|
|
2119
|
-
if (error) {
|
|
2120
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
// Showing warrnings if extra unknown parameters are found
|
|
2124
|
-
const { error: warrning } = ThemePartnerValidator.getSystemPage().validate(
|
|
1796
|
+
} = ThemePartnerValidator.getThemeVersions().validate(
|
|
2125
1797
|
{
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
1798
|
+
themeSlug,
|
|
1799
|
+
pageSize,
|
|
1800
|
+
pageNo,
|
|
2129
1801
|
},
|
|
2130
1802
|
{ abortEarly: false, allowUnknown: false }
|
|
2131
1803
|
);
|
|
2132
1804
|
if (warrning) {
|
|
2133
1805
|
Logger({
|
|
2134
1806
|
level: "WARN",
|
|
2135
|
-
message: `Parameter Validation warrnings for partner > Theme >
|
|
1807
|
+
message: `Parameter Validation warrnings for partner > Theme > getThemeVersions \n ${warrning}`,
|
|
2136
1808
|
});
|
|
2137
1809
|
}
|
|
2138
1810
|
|
|
2139
1811
|
const query_params = {};
|
|
1812
|
+
query_params["page_size"] = pageSize;
|
|
1813
|
+
query_params["page_no"] = pageNo;
|
|
2140
1814
|
|
|
2141
1815
|
const response = await PartnerAPIClient.execute(
|
|
2142
1816
|
this.config,
|
|
2143
1817
|
"get",
|
|
2144
|
-
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/
|
|
1818
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/theme/${themeSlug}/versions`,
|
|
2145
1819
|
query_params,
|
|
2146
1820
|
undefined,
|
|
2147
1821
|
requestHeaders,
|
|
@@ -2155,7 +1829,7 @@ class Theme {
|
|
|
2155
1829
|
|
|
2156
1830
|
const {
|
|
2157
1831
|
error: res_error,
|
|
2158
|
-
} = ThemePartnerModel.
|
|
1832
|
+
} = ThemePartnerModel.MarketplaceThemeSchema().validate(responseData, {
|
|
2159
1833
|
abortEarly: false,
|
|
2160
1834
|
allowUnknown: true,
|
|
2161
1835
|
});
|
|
@@ -2166,7 +1840,7 @@ class Theme {
|
|
|
2166
1840
|
} else {
|
|
2167
1841
|
Logger({
|
|
2168
1842
|
level: "WARN",
|
|
2169
|
-
message: `Response Validation Warnings for partner > Theme >
|
|
1843
|
+
message: `Response Validation Warnings for partner > Theme > getThemeVersions \n ${res_error}`,
|
|
2170
1844
|
});
|
|
2171
1845
|
}
|
|
2172
1846
|
}
|
|
@@ -2175,22 +1849,23 @@ class Theme {
|
|
|
2175
1849
|
}
|
|
2176
1850
|
|
|
2177
1851
|
/**
|
|
2178
|
-
* @param {ThemePartnerValidator.
|
|
1852
|
+
* @param {ThemePartnerValidator.CreateThemeParam} arg - Arg object.
|
|
2179
1853
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2180
1854
|
* @param {import("../PartnerAPIClient").Options} - Options
|
|
2181
1855
|
* @returns {Promise<ThemePartnerModel.ThemesSchema>} - Success response
|
|
2182
|
-
* @name
|
|
2183
|
-
* @summary:
|
|
2184
|
-
* @description:
|
|
1856
|
+
* @name createTheme
|
|
1857
|
+
* @summary: Create a new theme
|
|
1858
|
+
* @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/).
|
|
2185
1859
|
*/
|
|
2186
|
-
async
|
|
2187
|
-
{ companyId, applicationId, requestHeaders } = { requestHeaders: {} },
|
|
1860
|
+
async createTheme(
|
|
1861
|
+
{ companyId, applicationId, body, requestHeaders } = { requestHeaders: {} },
|
|
2188
1862
|
{ responseHeaders } = { responseHeaders: false }
|
|
2189
1863
|
) {
|
|
2190
|
-
const { error } = ThemePartnerValidator.
|
|
1864
|
+
const { error } = ThemePartnerValidator.createTheme().validate(
|
|
2191
1865
|
{
|
|
2192
1866
|
companyId,
|
|
2193
1867
|
applicationId,
|
|
1868
|
+
body,
|
|
2194
1869
|
},
|
|
2195
1870
|
{ abortEarly: false, allowUnknown: true }
|
|
2196
1871
|
);
|
|
@@ -2199,19 +1874,19 @@ class Theme {
|
|
|
2199
1874
|
}
|
|
2200
1875
|
|
|
2201
1876
|
// Showing warrnings if extra unknown parameters are found
|
|
2202
|
-
const {
|
|
2203
|
-
error: warrning,
|
|
2204
|
-
} = ThemePartnerValidator.getAppliedTheme().validate(
|
|
1877
|
+
const { error: warrning } = ThemePartnerValidator.createTheme().validate(
|
|
2205
1878
|
{
|
|
2206
1879
|
companyId,
|
|
2207
1880
|
applicationId,
|
|
1881
|
+
|
|
1882
|
+
body,
|
|
2208
1883
|
},
|
|
2209
1884
|
{ abortEarly: false, allowUnknown: false }
|
|
2210
1885
|
);
|
|
2211
1886
|
if (warrning) {
|
|
2212
1887
|
Logger({
|
|
2213
1888
|
level: "WARN",
|
|
2214
|
-
message: `Parameter Validation warrnings for partner > Theme >
|
|
1889
|
+
message: `Parameter Validation warrnings for partner > Theme > createTheme \n ${warrning}`,
|
|
2215
1890
|
});
|
|
2216
1891
|
}
|
|
2217
1892
|
|
|
@@ -2219,10 +1894,10 @@ class Theme {
|
|
|
2219
1894
|
|
|
2220
1895
|
const response = await PartnerAPIClient.execute(
|
|
2221
1896
|
this.config,
|
|
2222
|
-
"
|
|
2223
|
-
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}
|
|
1897
|
+
"post",
|
|
1898
|
+
`/service/partner/theme/v1.0/organization/${this.config.organizationId}/company/${companyId}/application/${applicationId}`,
|
|
2224
1899
|
query_params,
|
|
2225
|
-
|
|
1900
|
+
body,
|
|
2226
1901
|
requestHeaders,
|
|
2227
1902
|
{ responseHeaders }
|
|
2228
1903
|
);
|
|
@@ -2245,7 +1920,7 @@ class Theme {
|
|
|
2245
1920
|
} else {
|
|
2246
1921
|
Logger({
|
|
2247
1922
|
level: "WARN",
|
|
2248
|
-
message: `Response Validation Warnings for partner > Theme >
|
|
1923
|
+
message: `Response Validation Warnings for partner > Theme > createTheme \n ${res_error}`,
|
|
2249
1924
|
});
|
|
2250
1925
|
}
|
|
2251
1926
|
}
|