@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
|
@@ -6,22 +6,23 @@ const {
|
|
|
6
6
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
7
7
|
const constructUrl = require("../constructUrl");
|
|
8
8
|
const Paginator = require("../../common/Paginator");
|
|
9
|
+
const { validateRequiredParams } = require("../../common/Validator");
|
|
9
10
|
|
|
10
11
|
class Content {
|
|
11
12
|
constructor(_conf) {
|
|
12
13
|
this._conf = _conf;
|
|
13
14
|
this._relativeUrls = {
|
|
15
|
+
fetchResourceTranslations:
|
|
16
|
+
"/service/application/content/v1.0/resource/translations/{type}/{locale}",
|
|
17
|
+
fetchResourceTranslationsWithPayload:
|
|
18
|
+
"/service/application/content/v1.0/resource/translations/{type}/{locale}",
|
|
14
19
|
getAnnouncements: "/service/application/content/v1.0/announcements",
|
|
15
20
|
getBlog: "/service/application/content/v1.0/blogs/{slug}",
|
|
16
21
|
getBlogs: "/service/application/content/v1.0/blogs",
|
|
17
|
-
|
|
18
|
-
"/service/application/content/
|
|
19
|
-
|
|
20
|
-
"/service/application/content/
|
|
21
|
-
getCustomFields:
|
|
22
|
-
"/service/application/content/v1.0/metafields/{resource}",
|
|
23
|
-
getCustomObject: "/service/application/content/v1.0/metaobjects/{id}",
|
|
24
|
-
getCustomObjects: "/service/application/content/v1.0/metaobjects",
|
|
22
|
+
getCustomFieldsByResourceId:
|
|
23
|
+
"/service/application/content/v2.0/customfields/resource/{resource}/{resource_slug}",
|
|
24
|
+
getCustomObjectBySlug:
|
|
25
|
+
"/service/application/content/v2.0/customobjects/definition/{definition_slug}/entries/{slug}",
|
|
25
26
|
getDataLoaders: "/service/application/content/v1.0/data-loader",
|
|
26
27
|
getFaqBySlug: "/service/application/content/v1.0/faq/{slug}",
|
|
27
28
|
getFaqCategories: "/service/application/content/v1.0/faq/categories",
|
|
@@ -38,8 +39,10 @@ class Content {
|
|
|
38
39
|
getSEOConfiguration: "/service/application/content/v1.0/seo",
|
|
39
40
|
getSEOMarkupSchemas: "/service/application/content/v1.0/seo/schema",
|
|
40
41
|
getSupportInformation: "/service/application/content/v1.0/support",
|
|
42
|
+
getSupportedLanguages: "/service/application/content/v1.0/languages",
|
|
41
43
|
getTags: "/service/application/content/v1.0/tags",
|
|
42
|
-
|
|
44
|
+
getTranslateUILabels:
|
|
45
|
+
"/service/application/content/v1.0/translate-ui-labels",
|
|
43
46
|
};
|
|
44
47
|
this._urls = Object.entries(this._relativeUrls).reduce(
|
|
45
48
|
(urls, [method, relativeUrl]) => {
|
|
@@ -60,24 +63,26 @@ class Content {
|
|
|
60
63
|
/**
|
|
61
64
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
62
65
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
63
|
-
* @returns {Promise<
|
|
64
|
-
* @name
|
|
65
|
-
* @summary:
|
|
66
|
-
* @description:
|
|
66
|
+
* @returns {Promise<ResourceTranslations>} - Success response
|
|
67
|
+
* @name fetchResourceTranslations
|
|
68
|
+
* @summary: Get Resource Translations
|
|
69
|
+
* @description: Fetch translations for specific resource IDs based on type and locale settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/fetchResourceTranslations/).
|
|
67
70
|
*/
|
|
68
|
-
async
|
|
69
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
71
|
+
async fetchResourceTranslations(
|
|
72
|
+
{ type, locale, resourceId, requestHeaders } = { requestHeaders: {} },
|
|
70
73
|
{ responseHeaders } = { responseHeaders: false }
|
|
71
74
|
) {
|
|
72
|
-
|
|
73
|
-
if (
|
|
74
|
-
const error = new
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
const errors = validateRequiredParams(arguments[0], ["type", "locale"]);
|
|
76
|
+
if (errors.length > 0) {
|
|
77
|
+
const error = new FDKClientValidationError({
|
|
78
|
+
message: "Missing required field",
|
|
79
|
+
details: errors,
|
|
80
|
+
});
|
|
77
81
|
return Promise.reject(new FDKClientValidationError(error));
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
const query_params = {};
|
|
85
|
+
query_params["resource_id"] = resourceId;
|
|
81
86
|
|
|
82
87
|
const xHeaders = {};
|
|
83
88
|
|
|
@@ -85,8 +90,8 @@ class Content {
|
|
|
85
90
|
this._conf,
|
|
86
91
|
"get",
|
|
87
92
|
constructUrl({
|
|
88
|
-
url: this._urls["
|
|
89
|
-
params: {},
|
|
93
|
+
url: this._urls["fetchResourceTranslations"],
|
|
94
|
+
params: { type, locale },
|
|
90
95
|
}),
|
|
91
96
|
query_params,
|
|
92
97
|
undefined,
|
|
@@ -105,44 +110,38 @@ class Content {
|
|
|
105
110
|
/**
|
|
106
111
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
107
112
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
108
|
-
* @returns {Promise<
|
|
109
|
-
* @name
|
|
110
|
-
* @summary:
|
|
111
|
-
* @description:
|
|
113
|
+
* @returns {Promise<ResourceTranslations>} - Success response
|
|
114
|
+
* @name fetchResourceTranslationsWithPayload
|
|
115
|
+
* @summary: Post Resource Translations
|
|
116
|
+
* @description: Submit and retrieve translations for resources using payload data and locale settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/fetchResourceTranslationsWithPayload/).
|
|
112
117
|
*/
|
|
113
|
-
async
|
|
114
|
-
{
|
|
118
|
+
async fetchResourceTranslationsWithPayload(
|
|
119
|
+
{ type, locale, resourceId, body, requestHeaders } = { requestHeaders: {} },
|
|
115
120
|
{ responseHeaders } = { responseHeaders: false }
|
|
116
121
|
) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
path: ["slug"],
|
|
122
|
+
const errors = validateRequiredParams(arguments[0], ["type", "locale"]);
|
|
123
|
+
if (errors.length > 0) {
|
|
124
|
+
const error = new FDKClientValidationError({
|
|
125
|
+
message: "Missing required field",
|
|
126
|
+
details: errors,
|
|
123
127
|
});
|
|
124
|
-
}
|
|
125
|
-
if (invalidInput.length) {
|
|
126
|
-
const error = new Error();
|
|
127
|
-
error.message = "Missing required field";
|
|
128
|
-
error.details = invalidInput;
|
|
129
128
|
return Promise.reject(new FDKClientValidationError(error));
|
|
130
129
|
}
|
|
131
130
|
|
|
132
131
|
const query_params = {};
|
|
133
|
-
query_params["
|
|
132
|
+
query_params["resource_id"] = resourceId;
|
|
134
133
|
|
|
135
134
|
const xHeaders = {};
|
|
136
135
|
|
|
137
136
|
const response = await ApplicationAPIClient.execute(
|
|
138
137
|
this._conf,
|
|
139
|
-
"
|
|
138
|
+
"post",
|
|
140
139
|
constructUrl({
|
|
141
|
-
url: this._urls["
|
|
142
|
-
params: {
|
|
140
|
+
url: this._urls["fetchResourceTranslationsWithPayload"],
|
|
141
|
+
params: { type, locale },
|
|
143
142
|
}),
|
|
144
143
|
query_params,
|
|
145
|
-
|
|
144
|
+
body,
|
|
146
145
|
{ ...xHeaders, ...requestHeaders },
|
|
147
146
|
{ responseHeaders }
|
|
148
147
|
);
|
|
@@ -158,28 +157,16 @@ class Content {
|
|
|
158
157
|
/**
|
|
159
158
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
160
159
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
161
|
-
* @returns {Promise<
|
|
162
|
-
* @name
|
|
163
|
-
* @summary: List
|
|
164
|
-
* @description: List all
|
|
160
|
+
* @returns {Promise<AnnouncementsResponseSchema>} - Success response
|
|
161
|
+
* @name getAnnouncements
|
|
162
|
+
* @summary: List announcements
|
|
163
|
+
* @description: List all current announcements in the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getAnnouncements/).
|
|
165
164
|
*/
|
|
166
|
-
async
|
|
167
|
-
{
|
|
165
|
+
async getAnnouncements(
|
|
166
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
168
167
|
{ responseHeaders } = { responseHeaders: false }
|
|
169
168
|
) {
|
|
170
|
-
let invalidInput = [];
|
|
171
|
-
if (invalidInput.length) {
|
|
172
|
-
const error = new Error();
|
|
173
|
-
error.message = "Missing required field";
|
|
174
|
-
error.details = invalidInput;
|
|
175
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
176
|
-
}
|
|
177
|
-
|
|
178
169
|
const query_params = {};
|
|
179
|
-
query_params["page_no"] = pageNo;
|
|
180
|
-
query_params["page_size"] = pageSize;
|
|
181
|
-
query_params["tags"] = tags;
|
|
182
|
-
query_params["search"] = search;
|
|
183
170
|
|
|
184
171
|
const xHeaders = {};
|
|
185
172
|
|
|
@@ -187,7 +174,7 @@ class Content {
|
|
|
187
174
|
this._conf,
|
|
188
175
|
"get",
|
|
189
176
|
constructUrl({
|
|
190
|
-
url: this._urls["
|
|
177
|
+
url: this._urls["getAnnouncements"],
|
|
191
178
|
params: {},
|
|
192
179
|
}),
|
|
193
180
|
query_params,
|
|
@@ -207,31 +194,27 @@ class Content {
|
|
|
207
194
|
/**
|
|
208
195
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
209
196
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
210
|
-
* @returns {Promise<
|
|
211
|
-
* @name
|
|
212
|
-
* @summary: Get
|
|
213
|
-
* @description:
|
|
197
|
+
* @returns {Promise<BlogSchema>} - Success response
|
|
198
|
+
* @name getBlog
|
|
199
|
+
* @summary: Get a blog
|
|
200
|
+
* @description: Get information related to a specific blog such as it's contents, author, publish date, SEO related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlog/).
|
|
214
201
|
*/
|
|
215
|
-
async
|
|
216
|
-
{
|
|
202
|
+
async getBlog(
|
|
203
|
+
{ slug, rootId, preview, requestHeaders } = { requestHeaders: {} },
|
|
217
204
|
{ responseHeaders } = { responseHeaders: false }
|
|
218
205
|
) {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
path: ["id"],
|
|
206
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
207
|
+
if (errors.length > 0) {
|
|
208
|
+
const error = new FDKClientValidationError({
|
|
209
|
+
message: "Missing required field",
|
|
210
|
+
details: errors,
|
|
225
211
|
});
|
|
226
|
-
}
|
|
227
|
-
if (invalidInput.length) {
|
|
228
|
-
const error = new Error();
|
|
229
|
-
error.message = "Missing required field";
|
|
230
|
-
error.details = invalidInput;
|
|
231
212
|
return Promise.reject(new FDKClientValidationError(error));
|
|
232
213
|
}
|
|
233
214
|
|
|
234
215
|
const query_params = {};
|
|
216
|
+
query_params["root_id"] = rootId;
|
|
217
|
+
query_params["preview"] = preview;
|
|
235
218
|
|
|
236
219
|
const xHeaders = {};
|
|
237
220
|
|
|
@@ -239,8 +222,8 @@ class Content {
|
|
|
239
222
|
this._conf,
|
|
240
223
|
"get",
|
|
241
224
|
constructUrl({
|
|
242
|
-
url: this._urls["
|
|
243
|
-
params: {
|
|
225
|
+
url: this._urls["getBlog"],
|
|
226
|
+
params: { slug },
|
|
244
227
|
}),
|
|
245
228
|
query_params,
|
|
246
229
|
undefined,
|
|
@@ -259,24 +242,20 @@ class Content {
|
|
|
259
242
|
/**
|
|
260
243
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
261
244
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
262
|
-
* @returns {Promise<
|
|
263
|
-
* @name
|
|
264
|
-
* @summary:
|
|
265
|
-
* @description:
|
|
245
|
+
* @returns {Promise<BlogGetDetails>} - Success response
|
|
246
|
+
* @name getBlogs
|
|
247
|
+
* @summary: List blogs
|
|
248
|
+
* @description: List all the blogs against an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getBlogs/).
|
|
266
249
|
*/
|
|
267
|
-
async
|
|
268
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
250
|
+
async getBlogs(
|
|
251
|
+
{ pageNo, pageSize, tags, search, requestHeaders } = { requestHeaders: {} },
|
|
269
252
|
{ responseHeaders } = { responseHeaders: false }
|
|
270
253
|
) {
|
|
271
|
-
let invalidInput = [];
|
|
272
|
-
if (invalidInput.length) {
|
|
273
|
-
const error = new Error();
|
|
274
|
-
error.message = "Missing required field";
|
|
275
|
-
error.details = invalidInput;
|
|
276
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
277
|
-
}
|
|
278
|
-
|
|
279
254
|
const query_params = {};
|
|
255
|
+
query_params["page_no"] = pageNo;
|
|
256
|
+
query_params["page_size"] = pageSize;
|
|
257
|
+
query_params["tags"] = tags;
|
|
258
|
+
query_params["search"] = search;
|
|
280
259
|
|
|
281
260
|
const xHeaders = {};
|
|
282
261
|
|
|
@@ -284,7 +263,7 @@ class Content {
|
|
|
284
263
|
this._conf,
|
|
285
264
|
"get",
|
|
286
265
|
constructUrl({
|
|
287
|
-
url: this._urls["
|
|
266
|
+
url: this._urls["getBlogs"],
|
|
288
267
|
params: {},
|
|
289
268
|
}),
|
|
290
269
|
query_params,
|
|
@@ -305,37 +284,27 @@ class Content {
|
|
|
305
284
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
306
285
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
307
286
|
* @returns {Promise<CustomFieldsResponseByResourceIdSchema>} - Success response
|
|
308
|
-
* @name
|
|
309
|
-
* @summary: Get list of custom fields of given resource
|
|
310
|
-
* @description:
|
|
287
|
+
* @name getCustomFieldsByResourceId
|
|
288
|
+
* @summary: Get list of custom fields of given resource and resource slug
|
|
289
|
+
* @description: Retrieves a list of custom fields attached to a particular resource by using the resource and resource slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomFieldsByResourceId/).
|
|
311
290
|
*/
|
|
312
|
-
async
|
|
313
|
-
{ resource,
|
|
291
|
+
async getCustomFieldsByResourceId(
|
|
292
|
+
{ resource, resourceSlug, requestHeaders } = { requestHeaders: {} },
|
|
314
293
|
{ responseHeaders } = { responseHeaders: false }
|
|
315
294
|
) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
if (!resourceIds) {
|
|
325
|
-
invalidInput.push({
|
|
326
|
-
message: `The 'resourceIds' field is required.`,
|
|
327
|
-
path: ["resourceIds"],
|
|
295
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
296
|
+
"resource",
|
|
297
|
+
"resourceSlug",
|
|
298
|
+
]);
|
|
299
|
+
if (errors.length > 0) {
|
|
300
|
+
const error = new FDKClientValidationError({
|
|
301
|
+
message: "Missing required field",
|
|
302
|
+
details: errors,
|
|
328
303
|
});
|
|
329
|
-
}
|
|
330
|
-
if (invalidInput.length) {
|
|
331
|
-
const error = new Error();
|
|
332
|
-
error.message = "Missing required field";
|
|
333
|
-
error.details = invalidInput;
|
|
334
304
|
return Promise.reject(new FDKClientValidationError(error));
|
|
335
305
|
}
|
|
336
306
|
|
|
337
307
|
const query_params = {};
|
|
338
|
-
query_params["resource_ids"] = resourceIds;
|
|
339
308
|
|
|
340
309
|
const xHeaders = {};
|
|
341
310
|
|
|
@@ -343,8 +312,8 @@ class Content {
|
|
|
343
312
|
this._conf,
|
|
344
313
|
"get",
|
|
345
314
|
constructUrl({
|
|
346
|
-
url: this._urls["
|
|
347
|
-
params: { resource },
|
|
315
|
+
url: this._urls["getCustomFieldsByResourceId"],
|
|
316
|
+
params: { resource, resourceSlug },
|
|
348
317
|
}),
|
|
349
318
|
query_params,
|
|
350
319
|
undefined,
|
|
@@ -364,96 +333,27 @@ class Content {
|
|
|
364
333
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
365
334
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
366
335
|
* @returns {Promise<CustomObjectByIdSchema>} - Success response
|
|
367
|
-
* @name
|
|
368
|
-
* @summary: Get custom object
|
|
369
|
-
* @description: Details of custom
|
|
370
|
-
*/
|
|
371
|
-
async getCustomObject(
|
|
372
|
-
{ id, requestHeaders } = { requestHeaders: {} },
|
|
373
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
374
|
-
) {
|
|
375
|
-
let invalidInput = [];
|
|
376
|
-
|
|
377
|
-
if (!id) {
|
|
378
|
-
invalidInput.push({
|
|
379
|
-
message: `The 'id' field is required.`,
|
|
380
|
-
path: ["id"],
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
if (invalidInput.length) {
|
|
384
|
-
const error = new Error();
|
|
385
|
-
error.message = "Missing required field";
|
|
386
|
-
error.details = invalidInput;
|
|
387
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
const query_params = {};
|
|
391
|
-
|
|
392
|
-
const xHeaders = {};
|
|
393
|
-
|
|
394
|
-
const response = await ApplicationAPIClient.execute(
|
|
395
|
-
this._conf,
|
|
396
|
-
"get",
|
|
397
|
-
constructUrl({
|
|
398
|
-
url: this._urls["getCustomObject"],
|
|
399
|
-
params: { id },
|
|
400
|
-
}),
|
|
401
|
-
query_params,
|
|
402
|
-
undefined,
|
|
403
|
-
{ ...xHeaders, ...requestHeaders },
|
|
404
|
-
{ responseHeaders }
|
|
405
|
-
);
|
|
406
|
-
|
|
407
|
-
let responseData = response;
|
|
408
|
-
if (responseHeaders) {
|
|
409
|
-
responseData = response[0];
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
return response;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
417
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
418
|
-
* @returns {Promise<CustomObjectsSchema>} - Success response
|
|
419
|
-
* @name getCustomObjects
|
|
420
|
-
* @summary: Get list of custom objects
|
|
421
|
-
* @description: Use this API to retrieve the custom objects. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObjects/).
|
|
336
|
+
* @name getCustomObjectBySlug
|
|
337
|
+
* @summary: Get custom object details
|
|
338
|
+
* @description: Details of a custom object entry can be obtained using this endpoint. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getCustomObjectBySlug/).
|
|
422
339
|
*/
|
|
423
|
-
async
|
|
424
|
-
{
|
|
425
|
-
requestHeaders: {},
|
|
426
|
-
},
|
|
340
|
+
async getCustomObjectBySlug(
|
|
341
|
+
{ definitionSlug, slug, requestHeaders } = { requestHeaders: {} },
|
|
427
342
|
{ responseHeaders } = { responseHeaders: false }
|
|
428
343
|
) {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
if (!pageSize) {
|
|
438
|
-
invalidInput.push({
|
|
439
|
-
message: `The 'pageSize' field is required.`,
|
|
440
|
-
path: ["pageSize"],
|
|
344
|
+
const errors = validateRequiredParams(arguments[0], [
|
|
345
|
+
"definitionSlug",
|
|
346
|
+
"slug",
|
|
347
|
+
]);
|
|
348
|
+
if (errors.length > 0) {
|
|
349
|
+
const error = new FDKClientValidationError({
|
|
350
|
+
message: "Missing required field",
|
|
351
|
+
details: errors,
|
|
441
352
|
});
|
|
442
|
-
}
|
|
443
|
-
if (invalidInput.length) {
|
|
444
|
-
const error = new Error();
|
|
445
|
-
error.message = "Missing required field";
|
|
446
|
-
error.details = invalidInput;
|
|
447
353
|
return Promise.reject(new FDKClientValidationError(error));
|
|
448
354
|
}
|
|
449
355
|
|
|
450
356
|
const query_params = {};
|
|
451
|
-
query_params["definition_id"] = definitionId;
|
|
452
|
-
query_params["page_no"] = pageNo;
|
|
453
|
-
query_params["page_size"] = pageSize;
|
|
454
|
-
query_params["type"] = type;
|
|
455
|
-
query_params["ids"] = ids;
|
|
456
|
-
query_params["search"] = search;
|
|
457
357
|
|
|
458
358
|
const xHeaders = {};
|
|
459
359
|
|
|
@@ -461,8 +361,8 @@ class Content {
|
|
|
461
361
|
this._conf,
|
|
462
362
|
"get",
|
|
463
363
|
constructUrl({
|
|
464
|
-
url: this._urls["
|
|
465
|
-
params: {},
|
|
364
|
+
url: this._urls["getCustomObjectBySlug"],
|
|
365
|
+
params: { definitionSlug, slug },
|
|
466
366
|
}),
|
|
467
367
|
query_params,
|
|
468
368
|
undefined,
|
|
@@ -490,14 +390,6 @@ class Content {
|
|
|
490
390
|
{ requestHeaders } = { requestHeaders: {} },
|
|
491
391
|
{ responseHeaders } = { responseHeaders: false }
|
|
492
392
|
) {
|
|
493
|
-
let invalidInput = [];
|
|
494
|
-
if (invalidInput.length) {
|
|
495
|
-
const error = new Error();
|
|
496
|
-
error.message = "Missing required field";
|
|
497
|
-
error.details = invalidInput;
|
|
498
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
499
|
-
}
|
|
500
|
-
|
|
501
393
|
const query_params = {};
|
|
502
394
|
|
|
503
395
|
const xHeaders = {};
|
|
@@ -535,18 +427,12 @@ class Content {
|
|
|
535
427
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
536
428
|
{ responseHeaders } = { responseHeaders: false }
|
|
537
429
|
) {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
path: ["slug"],
|
|
430
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
431
|
+
if (errors.length > 0) {
|
|
432
|
+
const error = new FDKClientValidationError({
|
|
433
|
+
message: "Missing required field",
|
|
434
|
+
details: errors,
|
|
544
435
|
});
|
|
545
|
-
}
|
|
546
|
-
if (invalidInput.length) {
|
|
547
|
-
const error = new Error();
|
|
548
|
-
error.message = "Missing required field";
|
|
549
|
-
error.details = invalidInput;
|
|
550
436
|
return Promise.reject(new FDKClientValidationError(error));
|
|
551
437
|
}
|
|
552
438
|
|
|
@@ -587,14 +473,6 @@ class Content {
|
|
|
587
473
|
{ requestHeaders } = { requestHeaders: {} },
|
|
588
474
|
{ responseHeaders } = { responseHeaders: false }
|
|
589
475
|
) {
|
|
590
|
-
let invalidInput = [];
|
|
591
|
-
if (invalidInput.length) {
|
|
592
|
-
const error = new Error();
|
|
593
|
-
error.message = "Missing required field";
|
|
594
|
-
error.details = invalidInput;
|
|
595
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
596
|
-
}
|
|
597
|
-
|
|
598
476
|
const query_params = {};
|
|
599
477
|
|
|
600
478
|
const xHeaders = {};
|
|
@@ -632,18 +510,12 @@ class Content {
|
|
|
632
510
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
633
511
|
{ responseHeaders } = { responseHeaders: false }
|
|
634
512
|
) {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
path: ["slug"],
|
|
513
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
514
|
+
if (errors.length > 0) {
|
|
515
|
+
const error = new FDKClientValidationError({
|
|
516
|
+
message: "Missing required field",
|
|
517
|
+
details: errors,
|
|
641
518
|
});
|
|
642
|
-
}
|
|
643
|
-
if (invalidInput.length) {
|
|
644
|
-
const error = new Error();
|
|
645
|
-
error.message = "Missing required field";
|
|
646
|
-
error.details = invalidInput;
|
|
647
519
|
return Promise.reject(new FDKClientValidationError(error));
|
|
648
520
|
}
|
|
649
521
|
|
|
@@ -684,14 +556,6 @@ class Content {
|
|
|
684
556
|
{ requestHeaders } = { requestHeaders: {} },
|
|
685
557
|
{ responseHeaders } = { responseHeaders: false }
|
|
686
558
|
) {
|
|
687
|
-
let invalidInput = [];
|
|
688
|
-
if (invalidInput.length) {
|
|
689
|
-
const error = new Error();
|
|
690
|
-
error.message = "Missing required field";
|
|
691
|
-
error.details = invalidInput;
|
|
692
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
693
|
-
}
|
|
694
|
-
|
|
695
559
|
const query_params = {};
|
|
696
560
|
|
|
697
561
|
const xHeaders = {};
|
|
@@ -729,18 +593,12 @@ class Content {
|
|
|
729
593
|
{ slug, requestHeaders } = { requestHeaders: {} },
|
|
730
594
|
{ responseHeaders } = { responseHeaders: false }
|
|
731
595
|
) {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
path: ["slug"],
|
|
596
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
597
|
+
if (errors.length > 0) {
|
|
598
|
+
const error = new FDKClientValidationError({
|
|
599
|
+
message: "Missing required field",
|
|
600
|
+
details: errors,
|
|
738
601
|
});
|
|
739
|
-
}
|
|
740
|
-
if (invalidInput.length) {
|
|
741
|
-
const error = new Error();
|
|
742
|
-
error.message = "Missing required field";
|
|
743
|
-
error.details = invalidInput;
|
|
744
602
|
return Promise.reject(new FDKClientValidationError(error));
|
|
745
603
|
}
|
|
746
604
|
|
|
@@ -775,20 +633,12 @@ class Content {
|
|
|
775
633
|
* @returns {Promise<LandingPageSchema>} - Success response
|
|
776
634
|
* @name getLandingPage
|
|
777
635
|
* @summary: Get a landing page
|
|
778
|
-
* @description:
|
|
636
|
+
* @description: Get content of the application's landing page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getLandingPage/).
|
|
779
637
|
*/
|
|
780
638
|
async getLandingPage(
|
|
781
639
|
{ requestHeaders } = { requestHeaders: {} },
|
|
782
640
|
{ responseHeaders } = { responseHeaders: false }
|
|
783
641
|
) {
|
|
784
|
-
let invalidInput = [];
|
|
785
|
-
if (invalidInput.length) {
|
|
786
|
-
const error = new Error();
|
|
787
|
-
error.message = "Missing required field";
|
|
788
|
-
error.details = invalidInput;
|
|
789
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
790
|
-
}
|
|
791
|
-
|
|
792
642
|
const query_params = {};
|
|
793
643
|
|
|
794
644
|
const xHeaders = {};
|
|
@@ -826,14 +676,6 @@ class Content {
|
|
|
826
676
|
{ requestHeaders } = { requestHeaders: {} },
|
|
827
677
|
{ responseHeaders } = { responseHeaders: false }
|
|
828
678
|
) {
|
|
829
|
-
let invalidInput = [];
|
|
830
|
-
if (invalidInput.length) {
|
|
831
|
-
const error = new Error();
|
|
832
|
-
error.message = "Missing required field";
|
|
833
|
-
error.details = invalidInput;
|
|
834
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
835
|
-
}
|
|
836
|
-
|
|
837
679
|
const query_params = {};
|
|
838
680
|
|
|
839
681
|
const xHeaders = {};
|
|
@@ -862,7 +704,7 @@ class Content {
|
|
|
862
704
|
/**
|
|
863
705
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
864
706
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
865
|
-
* @returns {Promise<
|
|
707
|
+
* @returns {Promise<NavigationGetDetails>} - Success response
|
|
866
708
|
* @name getNavigations
|
|
867
709
|
* @summary: List navigation items
|
|
868
710
|
* @description: Get the navigation link items which can be powered to generate menus on application's website or equivalent mobile apps. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getNavigations/).
|
|
@@ -871,14 +713,6 @@ class Content {
|
|
|
871
713
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
872
714
|
{ responseHeaders } = { responseHeaders: false }
|
|
873
715
|
) {
|
|
874
|
-
let invalidInput = [];
|
|
875
|
-
if (invalidInput.length) {
|
|
876
|
-
const error = new Error();
|
|
877
|
-
error.message = "Missing required field";
|
|
878
|
-
error.details = invalidInput;
|
|
879
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
880
|
-
}
|
|
881
|
-
|
|
882
716
|
const query_params = {};
|
|
883
717
|
query_params["page_no"] = pageNo;
|
|
884
718
|
query_params["page_size"] = pageSize;
|
|
@@ -911,25 +745,19 @@ class Content {
|
|
|
911
745
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
912
746
|
* @returns {Promise<PageSchema>} - Success response
|
|
913
747
|
* @name getPage
|
|
914
|
-
* @summary: Get page
|
|
915
|
-
* @description: Get detailed information
|
|
748
|
+
* @summary: Get a page
|
|
749
|
+
* @description: Get detailed information for a specific page within the theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPage/).
|
|
916
750
|
*/
|
|
917
751
|
async getPage(
|
|
918
752
|
{ slug, rootId, requestHeaders } = { requestHeaders: {} },
|
|
919
753
|
{ responseHeaders } = { responseHeaders: false }
|
|
920
754
|
) {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
path: ["slug"],
|
|
755
|
+
const errors = validateRequiredParams(arguments[0], ["slug"]);
|
|
756
|
+
if (errors.length > 0) {
|
|
757
|
+
const error = new FDKClientValidationError({
|
|
758
|
+
message: "Missing required field",
|
|
759
|
+
details: errors,
|
|
927
760
|
});
|
|
928
|
-
}
|
|
929
|
-
if (invalidInput.length) {
|
|
930
|
-
const error = new Error();
|
|
931
|
-
error.message = "Missing required field";
|
|
932
|
-
error.details = invalidInput;
|
|
933
761
|
return Promise.reject(new FDKClientValidationError(error));
|
|
934
762
|
}
|
|
935
763
|
|
|
@@ -962,23 +790,15 @@ class Content {
|
|
|
962
790
|
/**
|
|
963
791
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
964
792
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
965
|
-
* @returns {Promise<
|
|
793
|
+
* @returns {Promise<PageGetDetails>} - Success response
|
|
966
794
|
* @name getPages
|
|
967
795
|
* @summary: Lists pages
|
|
968
|
-
* @description: Lists all Custom Pages - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
|
|
796
|
+
* @description: Lists all Custom Pages. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getPages/).
|
|
969
797
|
*/
|
|
970
798
|
async getPages(
|
|
971
799
|
{ pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
972
800
|
{ responseHeaders } = { responseHeaders: false }
|
|
973
801
|
) {
|
|
974
|
-
let invalidInput = [];
|
|
975
|
-
if (invalidInput.length) {
|
|
976
|
-
const error = new Error();
|
|
977
|
-
error.message = "Missing required field";
|
|
978
|
-
error.details = invalidInput;
|
|
979
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
980
|
-
}
|
|
981
|
-
|
|
982
802
|
const query_params = {};
|
|
983
803
|
query_params["page_no"] = pageNo;
|
|
984
804
|
query_params["page_size"] = pageSize;
|
|
@@ -1018,14 +838,6 @@ class Content {
|
|
|
1018
838
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1019
839
|
{ responseHeaders } = { responseHeaders: false }
|
|
1020
840
|
) {
|
|
1021
|
-
let invalidInput = [];
|
|
1022
|
-
if (invalidInput.length) {
|
|
1023
|
-
const error = new Error();
|
|
1024
|
-
error.message = "Missing required field";
|
|
1025
|
-
error.details = invalidInput;
|
|
1026
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
841
|
const query_params = {};
|
|
1030
842
|
|
|
1031
843
|
const xHeaders = {};
|
|
@@ -1063,14 +875,6 @@ class Content {
|
|
|
1063
875
|
{ pageType, active, requestHeaders } = { requestHeaders: {} },
|
|
1064
876
|
{ responseHeaders } = { responseHeaders: false }
|
|
1065
877
|
) {
|
|
1066
|
-
let invalidInput = [];
|
|
1067
|
-
if (invalidInput.length) {
|
|
1068
|
-
const error = new Error();
|
|
1069
|
-
error.message = "Missing required field";
|
|
1070
|
-
error.details = invalidInput;
|
|
1071
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
878
|
const query_params = {};
|
|
1075
879
|
query_params["page_type"] = pageType;
|
|
1076
880
|
query_params["active"] = active;
|
|
@@ -1110,14 +914,43 @@ class Content {
|
|
|
1110
914
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1111
915
|
{ responseHeaders } = { responseHeaders: false }
|
|
1112
916
|
) {
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
917
|
+
const query_params = {};
|
|
918
|
+
|
|
919
|
+
const xHeaders = {};
|
|
920
|
+
|
|
921
|
+
const response = await ApplicationAPIClient.execute(
|
|
922
|
+
this._conf,
|
|
923
|
+
"get",
|
|
924
|
+
constructUrl({
|
|
925
|
+
url: this._urls["getSupportInformation"],
|
|
926
|
+
params: {},
|
|
927
|
+
}),
|
|
928
|
+
query_params,
|
|
929
|
+
undefined,
|
|
930
|
+
{ ...xHeaders, ...requestHeaders },
|
|
931
|
+
{ responseHeaders }
|
|
932
|
+
);
|
|
933
|
+
|
|
934
|
+
let responseData = response;
|
|
935
|
+
if (responseHeaders) {
|
|
936
|
+
responseData = response[0];
|
|
1119
937
|
}
|
|
1120
938
|
|
|
939
|
+
return response;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
944
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
945
|
+
* @returns {Promise<Object>} - Success response
|
|
946
|
+
* @name getSupportedLanguages
|
|
947
|
+
* @summary: List App Languages
|
|
948
|
+
* @description: Retrieve available languages and their configurations for the specified application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSupportedLanguages/).
|
|
949
|
+
*/
|
|
950
|
+
async getSupportedLanguages(
|
|
951
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
952
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
953
|
+
) {
|
|
1121
954
|
const query_params = {};
|
|
1122
955
|
|
|
1123
956
|
const xHeaders = {};
|
|
@@ -1126,7 +959,7 @@ class Content {
|
|
|
1126
959
|
this._conf,
|
|
1127
960
|
"get",
|
|
1128
961
|
constructUrl({
|
|
1129
|
-
url: this._urls["
|
|
962
|
+
url: this._urls["getSupportedLanguages"],
|
|
1130
963
|
params: {},
|
|
1131
964
|
}),
|
|
1132
965
|
query_params,
|
|
@@ -1155,14 +988,6 @@ class Content {
|
|
|
1155
988
|
{ requestHeaders } = { requestHeaders: {} },
|
|
1156
989
|
{ responseHeaders } = { responseHeaders: false }
|
|
1157
990
|
) {
|
|
1158
|
-
let invalidInput = [];
|
|
1159
|
-
if (invalidInput.length) {
|
|
1160
|
-
const error = new Error();
|
|
1161
|
-
error.message = "Missing required field";
|
|
1162
|
-
error.details = invalidInput;
|
|
1163
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
991
|
const query_params = {};
|
|
1167
992
|
|
|
1168
993
|
const xHeaders = {};
|
|
@@ -1191,31 +1016,23 @@ class Content {
|
|
|
1191
1016
|
/**
|
|
1192
1017
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1193
1018
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1194
|
-
* @returns {Promise<
|
|
1195
|
-
* @name
|
|
1196
|
-
* @summary: Get
|
|
1197
|
-
* @description:
|
|
1019
|
+
* @returns {Promise<TranslateUiLabelsPage>} - Success response
|
|
1020
|
+
* @name getTranslateUILabels
|
|
1021
|
+
* @summary: Get Translate Ui Labels
|
|
1022
|
+
* @description: Retrieve Translate Ui Labels with filtering options for type, template, and locale settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getTranslateUILabels/).
|
|
1198
1023
|
*/
|
|
1199
|
-
async
|
|
1200
|
-
{
|
|
1024
|
+
async getTranslateUILabels(
|
|
1025
|
+
{ template, templateThemeId, themeId, locale, type, requestHeaders } = {
|
|
1026
|
+
requestHeaders: {},
|
|
1027
|
+
},
|
|
1201
1028
|
{ responseHeaders } = { responseHeaders: false }
|
|
1202
1029
|
) {
|
|
1203
|
-
let invalidInput = [];
|
|
1204
|
-
|
|
1205
|
-
if (!slug) {
|
|
1206
|
-
invalidInput.push({
|
|
1207
|
-
message: `The 'slug' field is required.`,
|
|
1208
|
-
path: ["slug"],
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
if (invalidInput.length) {
|
|
1212
|
-
const error = new Error();
|
|
1213
|
-
error.message = "Missing required field";
|
|
1214
|
-
error.details = invalidInput;
|
|
1215
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
1030
|
const query_params = {};
|
|
1031
|
+
query_params["template"] = template;
|
|
1032
|
+
query_params["template_theme_id"] = templateThemeId;
|
|
1033
|
+
query_params["theme_id"] = themeId;
|
|
1034
|
+
query_params["locale"] = locale;
|
|
1035
|
+
query_params["type"] = type;
|
|
1219
1036
|
|
|
1220
1037
|
const xHeaders = {};
|
|
1221
1038
|
|
|
@@ -1223,8 +1040,8 @@ class Content {
|
|
|
1223
1040
|
this._conf,
|
|
1224
1041
|
"get",
|
|
1225
1042
|
constructUrl({
|
|
1226
|
-
url: this._urls["
|
|
1227
|
-
params: {
|
|
1043
|
+
url: this._urls["getTranslateUILabels"],
|
|
1044
|
+
params: {},
|
|
1228
1045
|
}),
|
|
1229
1046
|
query_params,
|
|
1230
1047
|
undefined,
|